cordis.patch.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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>"`), the `--session-id` and `--json` options,
  5. # and this app's --help, then the direct driver creates a fresh Agent, or adopts
  6. # the exact Session the flag names, through the core registry and prints its
  7. # durable result.
  8. - id: system-prompt
  9. config:
  10. personaSuffix: Your working directory is {{cwd}}.
  11. personaPrefix: >-
  12. You are a coding agent powered by the {{model}} model.
  13. - id: tools
  14. config:
  15. # Keep the same temporary process-wide PTC mode opt-in as the Web surface.
  16. mode: !!js process.env.DSH_TOOLS_MODE
  17. - insert:
  18. # PTC mode is a core execution capability, not a Web component.
  19. - id: code-runtime
  20. name: '@deepseek-ai/dsh-code-runtime-node'
  21. - id: headless-startup
  22. name: '@deepseek-ai/dsh-headless/startup'
  23. # Reads its task and run options from the ordinary headlessStartup provider.
  24. - id: headless-runner
  25. name: '@deepseek-ai/dsh-headless'
  26. inject: [headlessStartup]
  27. config:
  28. task: !!js ctx.headlessStartup.task
  29. sessionId: !!js ctx.headlessStartup.sessionId
  30. json: !!js ctx.headlessStartup.json