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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user