fix(workflow-utils): correct hermes CLI args (#216)

- 'run' → 'chat' (hermes has no 'run' subcommand)
- '-p' → '-q' (single query mode uses -q/--query)
- '--skill' → '-s' (correct flag is -s/--skills)
This commit is contained in:
2026-04-28 05:18:09 +00:00
parent bda0c69261
commit 5a7246cb98
+4 -4
View File
@@ -3,7 +3,7 @@ import { type Result, ok } from "@uncaged/nerve-core";
import { type SpawnEnv, type SpawnError, spawnSafe } from "./spawn-safe.js";
/**
* Spawns a non-interactive `hermes` run with YOLO enabled, argv-only
* Spawns a non-interactive `hermes chat` invocation with YOLO enabled, argv-only
* (shell: false) following the Nerve issue #208 contract.
* Adjust argv here if the upstream CLI surface changes.
*/
@@ -34,8 +34,8 @@ export async function hermesAgent(
return ok("[dryRun] hermes stub");
}
const args: string[] = [
"run",
"-p",
"chat",
"-q",
options.prompt,
"--yolo",
"--model",
@@ -46,7 +46,7 @@ export async function hermesAgent(
String(options.maxTurns),
];
for (const s of options.skills) {
args.push("--skill", s);
args.push("-s", s);
}
if (options.quiet) {
args.push("--quiet");