fix: harden workspace swarm prompt submission (#307)

Co-authored-by: Jarno de Vries <jarno@match-day.nl>
This commit is contained in:
jarnodevries-byte
2026-05-05 21:23:27 +02:00
committed by GitHub
parent 1b3ebdefb4
commit 4f1bf50105
2 changed files with 22 additions and 5 deletions

View File

@@ -46,9 +46,11 @@ function resolveClaudeAgentDir(env: Record<string, string>): string | null {
return null
}
/** Find the `claude` CLI binary installed by Nous's installer. */
/** Find the Hermes CLI binary used to start the local gateway. */
function resolveClaudeBinary(): string | null {
const candidates = [
process.env.HERMES_CLI_BIN || '',
resolve(os.homedir(), '.hermes', 'hermes-agent', 'venv', 'bin', 'hermes'),
resolve(os.homedir(), '.claude', 'bin', 'claude'),
resolve(os.homedir(), '.local', 'bin', 'claude'),
]