cordis.patch.yml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. # Standalone minimal SDK application. Unlike the ordinary SDK profile, this
  2. # bundle does not layer over dsh-base: this insert is the complete Cordis tree.
  3. # User profile, home, and invocation patches still apply above it.
  4. - insert:
  5. - id: sdk-app-startup
  6. name: '@deepseek-ai/dsh-sdk-app'
  7. config:
  8. profile: sdk-minimal
  9. - id: sdk-jsonrpc-server
  10. name: '@deepseek-ai/dsh-sdk-jsonrpc-server'
  11. inject: [sdkAppStartup, loader]
  12. config:
  13. maxTokensAsSuccess: false
  14. - id: deepseek-llm-api-extensions
  15. name: '@deepseek-ai/dsh-deepseek-llm-api-extensions'
  16. - id: session-log-deepseek
  17. name: '@deepseek-ai/dsh-session-log-deepseek'
  18. - id: plugin-package-inventory-deepseek
  19. name: '@deepseek-ai/dsh-plugin-package-inventory-deepseek'
  20. - id: llm-deepseek
  21. name: '@deepseek-ai/dsh-llm-deepseek'
  22. config:
  23. apiKeyEnv: DEEPSEEK_API_KEY
  24. defaultContextWindow: !!js Number(process.env.DSH_CONTEXT_WINDOW ?? 1000000)
  25. streamIdleTimeoutMs: 172800000
  26. - id: sandbox
  27. name: '@deepseek-ai/dsh-sandbox-local'
  28. # Shared projection registry: sandbox-policy and terminal-bash fold
  29. # sandbox-mode state through its units and require it as a hard injection.
  30. - id: session-projection
  31. name: '@deepseek-ai/dsh-session-projection'
  32. - id: sandbox-policy
  33. name: '@deepseek-ai/dsh-sandbox-policy'
  34. config:
  35. mode: danger-full-access
  36. workspaceRoot: !!js process.cwd()
  37. - id: subprocess
  38. name: '@deepseek-ai/dsh-subprocess-local'
  39. - id: pty
  40. name: '@deepseek-ai/dsh-terminal'
  41. - id: terminal-bash
  42. name: '@deepseek-ai/dsh-terminal-bash'
  43. disabled: !!js process.platform === 'win32'
  44. config:
  45. timeoutMs: 300000
  46. - id: terminal-pwsh
  47. name: '@deepseek-ai/dsh-terminal-bash'
  48. disabled: !!js process.platform !== 'win32'
  49. config:
  50. shellDialect: pwsh
  51. timeoutMs: 300000
  52. # Keep the minimal agent kernel explicit: unlike dsh-base, this profile
  53. # owns each service row and omits every optional producer it does not use.
  54. - id: timer
  55. name: '@deepseek-ai/cordis-plugin-timer'
  56. - id: llm
  57. name: '@deepseek-ai/dsh-llm'
  58. - id: session
  59. name: '@deepseek-ai/dsh-session'
  60. - id: session-title
  61. name: '@deepseek-ai/dsh-session-title'
  62. config:
  63. fallbackMaxWords: 5
  64. fallbackMaxBytes: 40
  65. maxTitleBytes: 80
  66. - id: system-prompt
  67. name: '@deepseek-ai/dsh-system-prompt'
  68. config:
  69. includeHarnessIdentity: false
  70. includeRuntimeContext: false
  71. personaPrefix: !!js process.env.DSH_SYSTEM_PROMPT ?? 'You are a helpful software engineer assistant.'
  72. - id: tools
  73. name: '@deepseek-ai/dsh-tools'
  74. - id: agent
  75. name: '@deepseek-ai/dsh-agent'
  76. - id: llm-retry
  77. name: '@deepseek-ai/dsh-llm-retry'
  78. - id: jobs
  79. name: '@deepseek-ai/dsh-jobs-local'
  80. - id: invariants
  81. name: '@deepseek-ai/dsh-invariants'
  82. - id: session-invariant
  83. name: '@deepseek-ai/dsh-session/invariant'
  84. - id: agent-invariant
  85. name: '@deepseek-ai/dsh-agent/invariant'
  86. - id: scope-invariant
  87. name: '@deepseek-ai/dsh-scope/invariant'
  88. - id: agent-loop-invariant
  89. name: '@deepseek-ai/dsh-agent-loop/invariant'
  90. - id: agent-loop
  91. name: '@deepseek-ai/dsh-agent-loop'
  92. config:
  93. agents: []
  94. - id: persistent-bash
  95. name: '@deepseek-ai/dsh-tool-bash-persistent'
  96. disabled: !!js process.platform === 'win32'
  97. config:
  98. timeoutMs: 300000
  99. description: |-
  100. Run commands in a bash shell
  101. * When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
  102. * Network access depends on the task environment. Prefer configured mirrors/proxies when they are available.
  103. * State is persistent across command calls and discussions with the user.
  104. * To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.
  105. * Please avoid commands that may produce a very large amount of output.
  106. * Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.
  107. - id: persistent-pwsh
  108. name: '@deepseek-ai/dsh-tool-pwsh-persistent'
  109. disabled: !!js process.platform !== 'win32'
  110. config:
  111. timeoutMs: 300000
  112. description: |-
  113. Run commands in a PowerShell shell
  114. * When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
  115. * You don't have access to the internet via this tool.
  116. * State is persistent across command calls and discussions with the user.
  117. * Use native Windows paths (C:\...) and $env:NAME variables; this is PowerShell, not bash.
  118. * Please avoid commands that may produce a very large amount of output.
  119. * Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.
  120. - id: sessions
  121. name: '@deepseek-ai/dsh-session-persistence-jsonl'
  122. config:
  123. root: !!js dshHomePath('sessions')
  124. compression: none