summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks
diff options
context:
space:
mode:
authorAllen Hutchison <[email protected]>2025-05-22 10:57:06 -0700
committerGitHub <[email protected]>2025-05-22 10:57:06 -0700
commit581709df80769ae5174a1fab66bd3aa9d2967c15 (patch)
treebfb9c257d0177e4dd7c6dabbcb09bbc11de2d832 /packages/cli/src/ui/hooks
parent0c192555bb72940e6d4ed3c45cf6a4dfa5f23f69 (diff)
Refactor: Streamline memoryUtils and update slash commands (#478)
Diffstat (limited to 'packages/cli/src/ui/hooks')
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.test.ts12
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.ts2
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts
index beee1418..1d9eec53 100644
--- a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts
+++ b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts
@@ -77,13 +77,13 @@ describe('useSlashCommandProcessor', () => {
performAddMemoryEntrySpy.mockReset();
(open as Mock).mockClear();
- vi.spyOn(memoryUtils, 'deleteLastMemoryEntry').mockImplementation(vi.fn());
- vi.spyOn(memoryUtils, 'deleteAllAddedMemoryEntries').mockImplementation(
- vi.fn(),
- );
+ // vi.spyOn(memoryUtils, 'deleteLastMemoryEntry').mockImplementation(vi.fn());
+ // vi.spyOn(memoryUtils, 'deleteAllAddedMemoryEntries').mockImplementation(
+ // vi.fn(),
+ // );
- vi.mocked(memoryUtils.deleteLastMemoryEntry).mockClear();
- vi.mocked(memoryUtils.deleteAllAddedMemoryEntries).mockClear();
+ // vi.mocked(memoryUtils.deleteLastMemoryEntry).mockClear();
+ // vi.mocked(memoryUtils.deleteAllAddedMemoryEntries).mockClear();
mockProcessExit.mockClear();
(ShowMemoryCommandModule.createShowMemoryAction as Mock).mockClear();
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
index 858897f0..1f1c0444 100644
--- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts
+++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
@@ -113,7 +113,7 @@ export const useSlashCommandProcessor = (
{
name: 'memory',
description:
- 'Manage memory. Usage: /memory <show|refresh|add|delete_last|delete_all_added> [text for add]',
+ 'Manage memory. Usage: /memory <show|refresh|add> [text for add]',
action: (mainCommand, subCommand, args) => {
switch (subCommand) {
case 'show':