Add conversation package registry

This commit is contained in:
john
2026-07-02 21:17:40 +08:00
parent 1b3e64703e
commit 97b648322a
5 changed files with 223 additions and 2 deletions
+11
View File
@@ -87,6 +87,17 @@ test('createConversationArtifact validates artifact kind and preserves provenanc
assert.equal(artifact.messageId, 'msg-1');
});
test('createConversationArtifact preserves unknown size as null', () => {
const artifact = createConversationArtifact({
packageId: 'cp_1',
artifactKind: 'generated_file',
sizeBytes: null,
now: 1000,
});
assert.equal(artifact.sizeBytes, null);
});
test('buildConversationPackageManifest sorts artifacts and emits stable public shape', () => {
const manifest = buildConversationPackageManifest({
packageRecord: {