cordis.patch.yml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # The dsh-headless bundle patch: one-shot task mode directly over dsh-base.
  2. # It mounts no Host, HTTP server, Web runtime, or browser plugin. An ordinary
  3. # provider plugin injects `cmdlineArgs`, parses the task positional
  4. # (`dsh --profile headless "<task>"`) and this app's --help, then the direct
  5. # driver creates an Agent through the core registry and prints its durable result.
  6. - id: system-prompt
  7. config:
  8. personaSuffix: Your working directory is {{cwd}}.
  9. personaPrefix: >-
  10. You are a coding agent powered by the {{model}} model.
  11. - id: tools
  12. config:
  13. # Keep the same temporary process-wide PTC mode opt-in as the Web surface.
  14. mode: !!js process.env.DSH_TOOLS_MODE
  15. - insert:
  16. # PTC mode is a core execution capability, not a Web component.
  17. - id: code-runtime
  18. name: '@deepseek-ai/dsh-code-runtime-worker-thread'
  19. - id: headless-startup
  20. name: '@deepseek-ai/dsh-headless/startup'
  21. # Reads its task from the ordinary headlessStartup provider.
  22. - id: headless-runner
  23. name: '@deepseek-ai/dsh-headless'
  24. inject: [headlessStartup]
  25. config:
  26. task: !!js ctx.headlessStartup.task