cordis.patch.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. - id: sandbox-policy
  29. name: '@deepseek-ai/dsh-sandbox-policy'
  30. config:
  31. mode: danger-full-access
  32. workspaceRoot: !!js process.cwd()
  33. - id: subprocess
  34. name: '@deepseek-ai/dsh-subprocess-local'
  35. - id: pty
  36. name: '@deepseek-ai/dsh-terminal'
  37. - id: terminal-bash
  38. name: '@deepseek-ai/dsh-terminal-bash'
  39. disabled: !!js process.platform === 'win32'
  40. config:
  41. timeoutMs: 300000
  42. - id: terminal-pwsh
  43. name: '@deepseek-ai/dsh-terminal-bash'
  44. disabled: !!js process.platform !== 'win32'
  45. config:
  46. shellDialect: pwsh
  47. timeoutMs: 300000
  48. # The editor uses the bare local filesystem; persistent Bash still consumes
  49. # the shared danger-full-access sandbox policy above.
  50. - id: fs-local
  51. name: '@deepseek-ai/dsh-fs-local'
  52. config:
  53. cwd: !!js process.cwd()
  54. - id: agent-spine
  55. name: '@deepseek-ai/dsh-agent-spine-demo'
  56. config:
  57. includeHarnessIdentity: false
  58. includeRuntimeContext: false
  59. persona: !!js process.env.DSH_SYSTEM_PROMPT ?? 'You are a helpful software engineer assistant.'
  60. workspaceContext: false
  61. skills:
  62. enabled: false
  63. toolBash: false
  64. toolJobs: false
  65. - id: persistent-bash
  66. name: '@deepseek-ai/dsh-tool-bash-persistent'
  67. disabled: !!js process.platform === 'win32'
  68. config:
  69. timeoutMs: 300000
  70. description: |-
  71. Run commands in a bash shell
  72. * When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
  73. * You don't have access to the internet via this tool.
  74. * You do have access to a mirror of common linux and python packages via apt and pip.
  75. * State is persistent across command calls and discussions with the user.
  76. * To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.
  77. * Please avoid commands that may produce a very large amount of output.
  78. * Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.
  79. - id: persistent-pwsh
  80. name: '@deepseek-ai/dsh-tool-pwsh-persistent'
  81. disabled: !!js process.platform !== 'win32'
  82. config:
  83. timeoutMs: 300000
  84. description: |-
  85. Run commands in a PowerShell shell
  86. * When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
  87. * You don't have access to the internet via this tool.
  88. * State is persistent across command calls and discussions with the user.
  89. * Use native Windows paths (C:\...) and $env:NAME variables; this is PowerShell, not bash.
  90. * Please avoid commands that may produce a very large amount of output.
  91. * Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.
  92. - id: str-replace-editor
  93. name: '@deepseek-ai/dsh-tool-str-replace-editor'
  94. config:
  95. maxOutputChars: 16000
  96. - id: sessions
  97. name: '@deepseek-ai/dsh-session-persistence-jsonl'
  98. config:
  99. root: !!js dshHomePath('sessions')
  100. compression: none