Files
2026-09-14 15:16:26 +08:00

73 lines
3.0 KiB
TypeScript

export declare const COMMAND_GROUP_ORDER: readonly ["Daemon", "Evolution", "Memory", "Assets", "Hub", "Operations", "Tools", "Advanced"];
export type CommandGroup = (typeof COMMAND_GROUP_ORDER)[number];
export declare const SYNC_COMMAND_NAMES: readonly ["status", "cycles", "trigger", "value", "narrative", "retention", "gene-value", "replay", "rebuild-views", "reset-local-secret"];
export type SyncCommandName = (typeof SYNC_COMMAND_NAMES)[number];
export declare function isSyncCommandName(value: string): value is SyncCommandName;
export declare const COMMAND_GROUPS: {
readonly proxy: "Daemon";
readonly lifecycle: "Daemon";
readonly 'proxy-token': "Daemon";
readonly doctor: "Daemon";
readonly 'setup-hooks': "Daemon";
readonly run: "Evolution";
readonly cycle: "Evolution";
readonly autoexec: "Evolution";
readonly solidify: "Evolution";
readonly distill: "Evolution";
readonly review: "Evolution";
readonly thesis: "Evolution";
readonly ingest: "Memory";
readonly inject: "Memory";
readonly recall: "Memory";
readonly reuse: "Memory";
readonly 'reuse-report': "Memory";
readonly 'recall-verify-report': "Memory";
readonly narrative: "Memory";
readonly 'gene-value': "Memory";
readonly 'memory-graph': "Memory";
readonly 'asset-log': "Assets";
readonly 'asset-trust': "Assets";
readonly 'asset-health': "Assets";
readonly 'asset-repair': "Assets";
readonly material: "Assets";
readonly reference: "Assets";
readonly recipe: "Assets";
readonly skill: "Assets";
readonly login: "Hub";
readonly logout: "Hub";
readonly phub: "Hub";
readonly sync: "Hub";
readonly publish: "Hub";
readonly fetch: "Hub";
readonly buy: "Hub";
readonly orders: "Hub";
readonly verify: "Hub";
readonly atp: "Hub";
readonly status: "Operations";
readonly daily: "Operations";
readonly workflow: "Operations";
readonly cycles: "Operations";
readonly trigger: "Operations";
readonly value: "Operations";
readonly retention: "Operations";
readonly replay: "Operations";
readonly 'rebuild-views': "Operations";
readonly 'issue-report': "Operations";
readonly dashboard: "Tools";
readonly webui: "Tools";
readonly 'trajectory-export': "Tools";
readonly migrate: "Tools";
readonly exec: "Tools";
readonly 'anti-gene-benchmark': "Advanced";
readonly 'anti-gene-rollout': "Advanced";
readonly 'model-compatibility-replay': "Advanced";
readonly 'reset-local-secret': "Advanced";
readonly 'skill-distill': "Advanced";
readonly 'skill-md-update': "Advanced";
};
export type CommandName = keyof typeof COMMAND_GROUPS;
export type AsyncCommandName = Exclude<CommandName, SyncCommandName>;
export declare const COMMAND_HELP_MAX_WIDTH = 100;
export declare function commandsInGroup(group: CommandGroup): readonly CommandName[];
export declare function commandHelpLabel(command: CommandName): string;
export declare function renderCommandGroups(): string[];