archivo del paquete→ .shtukbase/packages/harness-hermes/adapter.ts
adapter.ts
19 líneas, 1.1 KB.
El archivo tal como está en el paquete: el código y sus comentarios no se traducen.
- // Hermes Agent: `hermes -z <prompt>` (one-shot) prints only the final answer; approvals are bypassed in this mode,
- // so the toolsets are cut to `file` (plus `web` with network: true): no terminal, no code execution, no browser.
- // Hermes cannot keep file tools inside the project or make them read-only: said in the notes.
- import type { Adapter } from '../harness/lib/harness.ts';
- export const adapter: Adapter = {
- id: 'hermes', pkg: 'harness-hermes', bin: 'hermes', title: 'Hermes Agent', defaultModel: 'deepseek-v4.1-flash',
- install: 'the Hermes Agent installer (folder ~/.hermes), then hermes setup or hermes model — the provider and the model',
- build(s) {
- return {
- exe: 'hermes',
- args: ['-z', s.prompt, '--in', s.cwd, '-m', s.model, '-t', s.network ? 'file,web' : 'file', ...(s.effort ? ['--reasoning', s.effort] : [])],
- notes: [
- 'hermes: the file tools are not limited to the project folder (only the instruction to the agent holds it)',
- ...(s.access === 'read' ? ['hermes: the "read only" access cannot be held — the file tool set can write'] : []),
- ],
- };
- },
- };