From 5a7246cb98eb1d496fb8afdafd6ee1e45496fed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=A2=A8?= Date: Tue, 28 Apr 2026 05:18:09 +0000 Subject: [PATCH] fix(workflow-utils): correct hermes CLI args (#216) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 'run' → 'chat' (hermes has no 'run' subcommand) - '-p' → '-q' (single query mode uses -q/--query) - '--skill' → '-s' (correct flag is -s/--skills) --- packages/workflow-utils/src/hermes-agent.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/workflow-utils/src/hermes-agent.ts b/packages/workflow-utils/src/hermes-agent.ts index 001a93c..61620dc 100644 --- a/packages/workflow-utils/src/hermes-agent.ts +++ b/packages/workflow-utils/src/hermes-agent.ts @@ -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"); -- 2.43.0