mirror of
https://github.com/sdwolf4103/opencode-working-memory.git
synced 2026-07-17 12:56:42 +02:00
5bca3432b0
Add memory-diag quality command for objective review of memory-system mechanisms and active memory content. The command is read-only and non-authoritative, providing evidence, heuristic flags, and review questions without making quality judgments or suggesting mutations. Key components: - quality-review-model.ts: builds ReviewBoardReport with provenance, re-absorption detection, mechanism facts (rejection, reinforcement, eviction/caps, identity/dedup), and memory content facts - formatters/quality.ts: human and JSON output with separate system-mechanism and memory-content sections - commands/quality.ts: command entry point with --json, --verbose, --no-emoji, --raw options - cli.ts: parser whitelist for quality accepting --workspace, --json, rejecting mutation/filter flags co-author: code-execute-agent, comprehensive-code-reviewer, systems-architect, creative-disruptor Closes docs/plans/2026-05-11-memory-diag-quality-review-board.md
17 lines
840 B
TypeScript
17 lines
840 B
TypeScript
export const VISIBLE_COMMANDS = ["status", "rejected", "missing", "explain", "commands", "quality", "revert"] 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);
|
|
}
|