chore: add ion package, codesight wiki, work plans, ascli config

New @boocode/ion package (v0.0.1) for inference optimization network.
.codesight/ wiki artifacts for codebase documentation.
.omo/ work plans for openspec cleanup and enhanced file panel.
This commit is contained in:
2026-06-07 22:16:45 +00:00
parent ec48066a80
commit 02063072ab
63 changed files with 14025 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
/**
* `workflow resume` — Resume a failed workflow run.
*
* Skips completed nodes and re-executes from the failure point.
*
* @example
* workflow resume abc123
* workflow resume abc123 --json
*/
import type { CliOptions } from '../utils.js';
import { printJson } from '../utils.js';
// ---------------------------------------------------------------------------
// Stub: engine integration (not implemented yet)
// ---------------------------------------------------------------------------
interface ResumeResult {
runId: string;
resumed: boolean;
message: string;
}
async function resumeWorkflowRun(_runId: string): Promise<ResumeResult> {
throw new Error('not implemented yet: resumeWorkflowRun');
}
// ---------------------------------------------------------------------------
// Command handler
// ---------------------------------------------------------------------------
export async function resumeCommand(
args: string[],
options: CliOptions,
): Promise<void> {
if (args.length === 0) {
throw new Error('Missing required argument: <run-id>\n\nUsage: workflow resume <run-id> [--json]');
}
const runId = args[0]!;
const result = await resumeWorkflowRun(runId);
if (options.json) {
printJson(result);
return;
}
if (result.resumed) {
console.log(`↻ Run ${result.runId} resumed.`);
console.log(` ${result.message}`);
} else {
console.log(`Failed to resume run ${result.runId}: ${result.message}`);
}
}