Add structured sections and hierarchical navigation

Add --section flag to add/update commands for structured node content,
render sections and inline children in show, and add memory children command.
This commit is contained in:
2026-02-02 22:29:23 +01:00
parent f1b59a2d1a
commit 5f7692f5f6
6 changed files with 125 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ import { removeCommand } from './commands/remove';
import { graphCommand } from './commands/graph';
import { serveCommand } from './commands/serve';
import { decayCommand } from './commands/decay';
import { childrenCommand } from './commands/children';
import { closeDb } from '../core/db';
const program = new Command();
@@ -29,6 +30,7 @@ program.addCommand(removeCommand);
program.addCommand(graphCommand);
program.addCommand(serveCommand);
program.addCommand(decayCommand);
program.addCommand(childrenCommand);
program.hook('postAction', () => {
closeDb();