2ef004eecf
Reorganize flat cmd-*.ts files into commands/{workflow,thread,cas,init}/
subdirectories that strictly mirror the CLI subcommand hierarchy:
- workflow/: add, list, show, rm, history, rollback
- thread/: run, list, show, rm, fork, ps, kill, live, pause, resume
- cas/: get, put, list, rm, gc
- init/: workspace, template
Each group has an index.ts re-export. Split multi-command files
(cmd-cas.ts, cmd-thread.ts, cmd-init.ts) into per-subcommand files.
Rename cmd-help.ts → skill.ts to match the primary command name.
Update all import paths in cli-dispatch.ts and test files.
Pure structural change — no logic modifications.
Ref: #93, closes #94
6 lines
195 B
TypeScript
6 lines
195 B
TypeScript
import type { ParsedAddArgv } from "../src/commands/workflow/add.js";
|
|
|
|
export function addCliArgs(name: string, filePath: string): ParsedAddArgv {
|
|
return { name, filePath, typesPath: null };
|
|
}
|