refactor: describe memory without the .mind file and knowledge graph (P1.5)
Memory lives in the mem0 store and the knowledge graph is not in v1 (ADR-0002, ADR-0007). - The CLI system prompt listed query_knowledge, a tool the community edition does not register. It now lists search_all_workspaces, which the orchestrator does provide. - The default identity no longer claims "persistent memory (.mind file)" or "knowledge graph queries".
This commit is contained in:
@@ -13,11 +13,10 @@ const DEFAULT_IDENTITY: Required<IdentityConfig> = {
|
||||
personality:
|
||||
'Direct, concise, helpful. Leads with answers, avoids filler. Admits uncertainty rather than guessing.',
|
||||
capabilities: [
|
||||
'persistent memory (.mind file)',
|
||||
'persistent memory stored on this computer',
|
||||
'web search and page reading',
|
||||
'file system operations (read, write, edit, search)',
|
||||
'shell command execution',
|
||||
'knowledge graph queries',
|
||||
'task tracking',
|
||||
],
|
||||
};
|
||||
|
||||
@@ -25,8 +25,11 @@ describe('ensureIdentity', () => {
|
||||
expect(id.name).toBe('Waggle');
|
||||
expect(id.role).toBe('AI assistant with persistent memory and web access');
|
||||
expect(id.personality).toContain('Direct, concise, helpful');
|
||||
expect(id.capabilities).toContain('persistent memory (.mind file)');
|
||||
expect(id.capabilities).toContain('persistent memory stored on this computer');
|
||||
expect(id.capabilities).toContain('task tracking');
|
||||
// Memory lives in the mem0 store, not a .mind file, and the knowledge graph is not in v1.
|
||||
expect(id.capabilities).not.toContain('.mind');
|
||||
expect(id.capabilities).not.toContain('knowledge graph');
|
||||
});
|
||||
|
||||
it('does not overwrite existing identity', () => {
|
||||
|
||||
@@ -284,7 +284,7 @@ Your key strength: you remember past conversations through your memory.
|
||||
# Tools
|
||||
Workspace (${process.cwd()}): bash, read_file, write_file, edit_file, search_files, search_content
|
||||
Web: web_search (DuckDuckGo), web_fetch (read any URL)
|
||||
Memory: search_memory, save_memory, get_identity, get_awareness, query_knowledge, add_task
|
||||
Memory: search_memory, search_all_workspaces, save_memory, get_identity, get_awareness, add_task
|
||||
|
||||
When asked about current events, products, releases, docs, or anything you're not 100% certain about — web_search FIRST, answer SECOND.`;
|
||||
|
||||
|
||||
@@ -636,6 +636,9 @@ describe('@waggle/cli runtime UX', () => {
|
||||
expect(chatRequest?.body.stream).toBe(true);
|
||||
expect(chatRequest?.body.stream_options).toEqual({ include_usage: true });
|
||||
expect(JSON.stringify(chatRequest?.body.messages)).toContain('Say hello from the installed CLI test.');
|
||||
// The system prompt names only tools the CLI registers; the knowledge graph is not in v1.
|
||||
expect(JSON.stringify(chatRequest?.body.messages)).toContain('search_all_workspaces');
|
||||
expect(JSON.stringify(chatRequest?.body.messages)).not.toContain('query_knowledge');
|
||||
expect(child.exitCode).toBe(0);
|
||||
expect(stdout).toContain('Model:');
|
||||
expect(stdout).toContain('mock-model');
|
||||
|
||||
Reference in New Issue
Block a user