cordis.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Stdio agent with the network-free `mock-echo` adapter and example-local `echo`
  2. # tool. The app bundle supplies the spine; this leaf selects backends, HMR, and app config.
  3. # No API key: the `mock-echo` adapter never touches the network.
  4. # Hot-module reload for the dev/demo loop (a leaf entry, not baked into
  5. # dsh-stdio-demo — it needs `node --expose-internals`, which `demo:echo` passes).
  6. - id: hmr
  7. name: '@cordisjs/plugin-hmr'
  8. config:
  9. root: ['.']
  10. # Example-local model and tool plugins resolve relative to this file.
  11. - id: mock-llm
  12. name: './src/mock-llm.ts'
  13. - id: echo-tool
  14. name: './src/echo-tool.ts'
  15. # Local bash executor: agent-spine-demo ships the `tool-bash` consumer schema, so the
  16. # leaf provides the executor it runs on (the echo demo doesn't drive bash, but
  17. # the tool is part of the shared spine).
  18. - id: bash
  19. name: '@deepseek-ai/dsh-bash-local'
  20. # Local filesystem provider for agent-spine-demo's workspace-context loader. This
  21. # does not expose model-facing read/write/edit tools in the echo demo.
  22. - id: fs-local
  23. name: '@deepseek-ai/dsh-fs-local'
  24. config:
  25. cwd: !!js process.cwd()
  26. # The app pre-creates `main` on the mock model and supplies persistence plus
  27. # TTY-selected `dsh-tui`/`dsh-stdio` front doors; readline mode also owns logging.
  28. - id: stdio-agent
  29. name: '@deepseek-ai/dsh-stdio-demo'
  30. config:
  31. provider: mock
  32. model: mock-echo
  33. persona: 'You are echo-agent, a demo agent.'
  34. welcome: 'echo-agent ready. Type a message ("echo <text>" triggers the tool).'
  35. persistenceRoot: './.sessions'
  36. workspaceContext:
  37. maxBytes: 65536