Compare commits
1 Commits
fix/build-
...
feat/mosai
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09777e5ef7 |
@@ -33,7 +33,23 @@ try {
|
|||||||
|
|
||||||
const program = new Command();
|
const program = new Command();
|
||||||
|
|
||||||
program.name('mosaic').description('Mosaic Stack CLI').version(CLI_VERSION);
|
program
|
||||||
|
.name('mosaic')
|
||||||
|
.description('Mosaic Stack CLI')
|
||||||
|
.version(CLI_VERSION)
|
||||||
|
.configureHelp({ sortSubcommands: true })
|
||||||
|
.addHelpText(
|
||||||
|
'after',
|
||||||
|
`
|
||||||
|
Command Groups:
|
||||||
|
|
||||||
|
Runtime: tui, login, sessions
|
||||||
|
Gateway: gateway
|
||||||
|
Framework: agent, bootstrap, coord, doctor, init, launch, mission, prdy, seq, sync, upgrade, wizard, yolo
|
||||||
|
Platform: update
|
||||||
|
Runtimes: claude, codex, opencode, pi
|
||||||
|
`,
|
||||||
|
);
|
||||||
|
|
||||||
// ─── runtime launchers + framework commands ────────────────────────────
|
// ─── runtime launchers + framework commands ────────────────────────────
|
||||||
|
|
||||||
@@ -214,7 +230,10 @@ program
|
|||||||
|
|
||||||
// ─── sessions ───────────────────────────────────────────────────────────
|
// ─── sessions ───────────────────────────────────────────────────────────
|
||||||
|
|
||||||
const sessionsCmd = program.command('sessions').description('Manage active agent sessions');
|
const sessionsCmd = program
|
||||||
|
.command('sessions')
|
||||||
|
.description('Manage active agent sessions')
|
||||||
|
.configureHelp({ sortSubcommands: true });
|
||||||
|
|
||||||
sessionsCmd
|
sessionsCmd
|
||||||
.command('list')
|
.command('list')
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export function registerGatewayCommand(program: Command): void {
|
|||||||
.option('-h, --host <host>', 'Gateway host', 'localhost')
|
.option('-h, --host <host>', 'Gateway host', 'localhost')
|
||||||
.option('-p, --port <port>', 'Gateway port', '14242')
|
.option('-p, --port <port>', 'Gateway port', '14242')
|
||||||
.option('-t, --token <token>', 'Admin API token')
|
.option('-t, --token <token>', 'Admin API token')
|
||||||
|
.configureHelp({ sortSubcommands: true })
|
||||||
.action(() => {
|
.action(() => {
|
||||||
gw.outputHelp();
|
gw.outputHelp();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export function registerMissionCommand(program: Command) {
|
|||||||
.option('--update <idOrName>', 'Update a mission')
|
.option('--update <idOrName>', 'Update a mission')
|
||||||
.option('--project <idOrName>', 'Scope to project')
|
.option('--project <idOrName>', 'Scope to project')
|
||||||
.argument('[id]', 'Show mission detail by ID')
|
.argument('[id]', 'Show mission detail by ID')
|
||||||
|
.configureHelp({ sortSubcommands: true })
|
||||||
.action(
|
.action(
|
||||||
async (
|
async (
|
||||||
id: string | undefined,
|
id: string | undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user