mirror of
https://github.com/sdwolf4103/opencode-working-memory.git
synced 2026-07-17 12:56:42 +02:00
cc9656ed59
- Remove legacy CLI aliases (health, quality, rejections, disappearances, trace) - Centralize command metadata in command-metadata.ts - Move trace lifecycle into explain command - Move disappearance helpers into missing formatter - Remove cleanup:workspaces from package scripts (dev tool preserved) - Bump version to 1.5.4
17 lines
807 B
TypeScript
17 lines
807 B
TypeScript
export const VISIBLE_COMMANDS = ["status", "rejected", "missing", "explain"] as const;
|
|
export const HIDDEN_COMMANDS = ["coverage", "audit"] as const;
|
|
|
|
export type VisibleCommand = typeof VISIBLE_COMMANDS[number];
|
|
export type HiddenCommand = typeof HIDDEN_COMMANDS[number];
|
|
export type Command = VisibleCommand | HiddenCommand;
|
|
|
|
export const HIDDEN_COMMAND_NOTICES: Partial<Record<Command, string>> = {
|
|
coverage: "Note: 'coverage' is a maintainer-only diagnostic and is not part of the public CLI surface.",
|
|
audit: "Note: 'audit' is a maintainer-only diagnostic and is not part of the public CLI surface.",
|
|
};
|
|
|
|
export function isCommand(value: string | undefined): value is Command {
|
|
return value !== undefined
|
|
&& ([...VISIBLE_COMMANDS, ...HIDDEN_COMMANDS] as readonly string[]).includes(value);
|
|
}
|