test(web): use string memory ids in the Room fixtures (P1.5)
Memory ids from the memory contract are strings; the Room tests still built memory refs with numeric frame ids and failed the app typecheck.
This commit is contained in:
@@ -117,8 +117,8 @@ function canonicalWorker(over: Partial<CollaborationWorkerRun> = {}): Collaborat
|
||||
metrics: { toolsUsed: ['read_file'], inputTokens: 10, outputTokens: 20, costUsd: 0.01 },
|
||||
memoryRefs: {
|
||||
status: 'partial',
|
||||
personalFrameIds: [11],
|
||||
workspaceFrameIds: { ws1: [21, 22] },
|
||||
personalFrameIds: ['mem-11'],
|
||||
workspaceFrameIds: { ws1: ['mem-21', 'mem-22'] },
|
||||
},
|
||||
capabilities: { cancel: true, pause: false, resume: true, message: true },
|
||||
revision: 1,
|
||||
|
||||
@@ -244,7 +244,7 @@ describe('durable collaboration runs', () => {
|
||||
revision: 2,
|
||||
completedAt: new Date(NOW + 1_000).toISOString(),
|
||||
result: { summary: 'Finished' },
|
||||
memoryRefs: { status: 'complete' as const, personalFrameIds: [1], workspaceFrameIds: { ws1: [2] } },
|
||||
memoryRefs: { status: 'complete' as const, personalFrameIds: ['mem-1'], workspaceFrameIds: { ws1: ['mem-2'] } },
|
||||
};
|
||||
const next = applyRunEvent(hydrated, {
|
||||
seq: 10, type: 'upsert', run: completed, timestamp: new Date(NOW + 1_000).toISOString(),
|
||||
|
||||
@@ -99,8 +99,8 @@ function worker(
|
||||
metrics: { toolsUsed: ['read_file'], inputTokens: 10, outputTokens: 20, costUsd: 0.01 },
|
||||
memoryRefs: {
|
||||
status: 'partial',
|
||||
personalFrameIds: [1],
|
||||
workspaceFrameIds: { [workspaceId]: [2] },
|
||||
personalFrameIds: ['mem-1'],
|
||||
workspaceFrameIds: { [workspaceId]: ['mem-2'] },
|
||||
},
|
||||
capabilities: { cancel: true, pause: true, resume: true, message: false },
|
||||
revision: 1,
|
||||
|
||||
Reference in New Issue
Block a user