update: use sub-command to switch between project and global memory ops

This commit is contained in:
koalazf.99
2025-08-26 13:18:11 +08:00
parent 300881405a
commit 380afc53cb
2 changed files with 133 additions and 7 deletions

View File

@@ -132,7 +132,7 @@ describe('memoryCommand', () => {
expect(mockContext.ui.addItem).toHaveBeenCalledWith(
{
type: MessageType.INFO,
text: `Attempting to save to memory: "${fact}"`,
text: `Attempting to save to memory : "${fact}"`,
},
expect.any(Number),
);
@@ -228,7 +228,7 @@ describe('memoryCommand', () => {
mockContext = createMockCommandContext({
services: {
config: Promise.resolve(mockConfig),
config: mockConfig,
settings: {
merged: {
memoryDiscoveryMaxDirs: 1000,