feat: add fable5 spec alias
This commit is contained in:
parent
779b8d3eca
commit
a07b182c5b
|
|
@ -251,6 +251,9 @@ fable-agent plinius godmode "improve explanation quality"
|
||||||
- `fable5 goal <text>`
|
- `fable5 goal <text>`
|
||||||
- `-i, --iterations <n>`
|
- `-i, --iterations <n>`
|
||||||
- `-s, --min-score <n>`
|
- `-s, --min-score <n>`
|
||||||
|
- `fable5 spec <task>`
|
||||||
|
- `--repo <path>`
|
||||||
|
- `--out <file>`
|
||||||
- `fable5 zte <task>`
|
- `fable5 zte <task>`
|
||||||
- `--repo <path>`
|
- `--repo <path>`
|
||||||
- `--out <file>`
|
- `--out <file>`
|
||||||
|
|
|
||||||
18
src/index.ts
18
src/index.ts
|
|
@ -1865,6 +1865,24 @@ fable
|
||||||
console.log(` `);
|
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
|
fable
|
||||||
.command("zte <task>")
|
.command("zte <task>")
|
||||||
.description("Generate a Zero-Touch Engineering spec with verifier gates")
|
.description("Generate a Zero-Touch Engineering spec with verifier gates")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue