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
19 lines
790 B
TypeScript
19 lines
790 B
TypeScript
import { runAudit } from "./commands/audit.ts";
|
|
import { runCoverage } from "./commands/coverage.ts";
|
|
import { runExplain } from "./commands/explain.ts";
|
|
import { runMissing } from "./commands/missing.ts";
|
|
import { runRejected } from "./commands/rejected.ts";
|
|
import { runStatus } from "./commands/status.ts";
|
|
import type { CliOptions, Command, CommandResult } from "./types.ts";
|
|
|
|
export async function dispatch(command: Command, options: CliOptions): Promise<CommandResult> {
|
|
switch (command) {
|
|
case "status": return runStatus(options);
|
|
case "rejected": return runRejected(options);
|
|
case "missing": return runMissing(options);
|
|
case "coverage": return runCoverage(options);
|
|
case "audit": return runAudit(options);
|
|
case "explain": return runExplain(options);
|
|
}
|
|
}
|