ShtukbaseStandard
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.

  1. // Hermes Agent: `hermes -z <prompt>` (one-shot) prints only the final answer; approvals are bypassed in this mode,
  2. // so the toolsets are cut to `file` (plus `web` with network: true): no terminal, no code execution, no browser.
  3. // Hermes cannot keep file tools inside the project or make them read-only: said in the notes.
  4. import type { Adapter } from '../harness/lib/harness.ts';
  5. export const adapter: Adapter = {
  6. id: 'hermes', pkg: 'harness-hermes', bin: 'hermes', title: 'Hermes Agent', defaultModel: 'deepseek-v4.1-flash',
  7. install: 'the Hermes Agent installer (folder ~/.hermes), then hermes setup or hermes model — the provider and the model',
  8. build(s) {
  9. return {
  10. exe: 'hermes',
  11. args: ['-z', s.prompt, '--in', s.cwd, '-m', s.model, '-t', s.network ? 'file,web' : 'file', ...(s.effort ? ['--reasoning', s.effort] : [])],
  12. notes: [
  13. 'hermes: the file tools are not limited to the project folder (only the instruction to the agent holds it)',
  14. ...(s.access === 'read' ? ['hermes: the "read only" access cannot be held — the file tool set can write'] : []),
  15. ],
  16. };
  17. },
  18. };