feat: add fable5 spec alias

This commit is contained in:
artale 2026-06-18 04:15:02 +02:00
parent 779b8d3eca
commit a07b182c5b
2 changed files with 21 additions and 0 deletions

View File

@ -251,6 +251,9 @@ fable-agent plinius godmode "improve explanation quality"
- `fable5 goal <text>`
- `-i, --iterations <n>`
- `-s, --min-score <n>`
- `fable5 spec <task>`
- `--repo <path>`
- `--out <file>`
- `fable5 zte <task>`
- `--repo <path>`
- `--out <file>`

View File

@ -1865,6 +1865,24 @@ fable
console.log(` `);
});
fable
.command("spec <task>")
.description("Generate a six-section anti-hallucination spec with verifier gates")
.option("--repo <path>", "Repo path for validation commands", ".")
.option("--out <file>", "Write spec markdown to a file")
.action(async (task: string, opts: { repo?: string; out?: string }) => {
const { createZteSpec } = await import("./fable5/zte-protocol.js");
const spec = createZteSpec(task, { repo: opts.repo ?? "." });
if (opts.out) {
fs.writeFileSync(path.resolve(opts.out), spec.markdown);
console.log(` ✓ Spec written: ${path.resolve(opts.out)}`);
return;
}
console.log(spec.markdown);
});
fable
.command("zte <task>")
.description("Generate a Zero-Touch Engineering spec with verifier gates")