test(server): seed the SSE knowledge-only memory through the contract (P1.5)

The checkout-queue test searches memory for 'SSE resilience test frame'. The
text used to reach mem0 only through the background copy of the seeded
legacy personal.mind; write it with server.memory instead.
This commit is contained in:
shumeiko.it
2026-10-24 17:28:05 +02:00
parent 3308263613
commit 60fa8a1c54

View File

@@ -18,6 +18,7 @@ import path from 'node:path';
import os from 'node:os';
import { EventEmitter } from 'node:events';
import type { ToolDefinition } from '@waggle/agent';
import { PERSONAL_SCOPE } from '@waggle/memory-contract';
import { buildLocalServer } from '../../src/local/index.js';
import type { FastifyInstance } from 'fastify';
import type { LlmProviderStatus } from '../../src/local/index.js';
@@ -50,6 +51,8 @@ describe('SSE Stream Resilience', () => {
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'waggle-sse-resilience-'));
server = await buildLocalServer({ dataDir: tmpDir });
// The knowledge-only session searches memory for this text.
await server.memory.remember({ scope: PERSONAL_SCOPE, text: 'SSE resilience test frame' });
});
afterAll(async () => {