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

Merged
xiaoju merged 1 commits from fix/216-hermes-cli-args into main 2026-04-28 05:28:57 +00:00
+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");