File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -351,3 +351,26 @@ export function getSessionDecisions(projectRoot: string): Decision[] {
351351 const store = loadDecisions ( projectRoot ) ;
352352 return store . decisions ;
353353}
354+
355+ // Alias: "memory" command (same as decision)
356+ export function createMemoryCommand ( ) : Command {
357+ const cmd = createDecisionCommand ( ) ;
358+ // Change command name to "memory" but keep all subcommands
359+ return new Command ( 'memory' )
360+ . description ( 'Store memories for session context (alias for decision)' )
361+ . addCommand (
362+ cmd . commands . find ( ( c ) => c . name ( ) === 'add' ) ! . copyInheritedSettings ( cmd )
363+ )
364+ . addCommand (
365+ cmd . commands . find ( ( c ) => c . name ( ) === 'list' ) ! . copyInheritedSettings ( cmd )
366+ )
367+ . addCommand (
368+ cmd . commands . find ( ( c ) => c . name ( ) === 'clear' ) ! . copyInheritedSettings ( cmd )
369+ )
370+ . addCommand (
371+ cmd . commands . find ( ( c ) => c . name ( ) === 'arch' ) ! . copyInheritedSettings ( cmd )
372+ )
373+ . addCommand (
374+ cmd . commands . find ( ( c ) => c . name ( ) === 'tool' ) ! . copyInheritedSettings ( cmd )
375+ ) ;
376+ }
Original file line number Diff line number Diff line change @@ -32,7 +32,10 @@ import { createLogCommand } from './commands/log.js';
3232import { createContextCommands } from './commands/context.js' ;
3333import { createConfigCommand } from './commands/config.js' ;
3434import { createHandoffCommand } from './commands/handoff.js' ;
35- import { createDecisionCommand } from './commands/decision.js' ;
35+ import {
36+ createDecisionCommand ,
37+ createMemoryCommand ,
38+ } from './commands/decision.js' ;
3639import { createStorageCommand } from './commands/storage.js' ;
3740import { createSkillsCommand } from './commands/skills.js' ;
3841import { createTestCommand } from './commands/test.js' ;
@@ -561,6 +564,7 @@ program.addCommand(createContextCommands());
561564program . addCommand ( createConfigCommand ( ) ) ;
562565program . addCommand ( createHandoffCommand ( ) ) ;
563566program . addCommand ( createDecisionCommand ( ) ) ;
567+ program . addCommand ( createMemoryCommand ( ) ) ;
564568program . addCommand ( createStorageCommand ( ) ) ;
565569program . addCommand ( createSkillsCommand ( ) ) ;
566570program . addCommand ( createTestCommand ( ) ) ;
You can’t perform that action at this time.
0 commit comments