e2b.cordis.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # POC overlay: keep the advanced headless agent and model-facing tools, but
  2. # place its filesystem and process substrate in one short-lived E2B sandbox;
  3. # the generic Bash, PTY, and LSP consumers compose above them.
  4. #
  5. # One-world invariant: e2b.cwd, sandbox-policy.workspaceRoot, and bash-local's
  6. # default workdir (implicit host process.cwd()) must all name the same remote
  7. # directory. Only e2b.cwd is created at sandbox open; dropping its !!js line
  8. # falls back to /home/user/workspace while Bash and PTY keep targeting the
  9. # host path, so every tool call fails with a remote spawn error.
  10. - id: base
  11. name: '@deepseek-ai/cordis-plugin-include'
  12. config:
  13. path: ./advanced.cordis.yml
  14. patches:
  15. - id: subprocess
  16. name: '@deepseek-ai/dsh-subprocess-local'
  17. disabled: true
  18. - id: fs-local
  19. name: '@deepseek-ai/dsh-fs-local'
  20. disabled: true
  21. - insert:
  22. - id: e2b
  23. name: '@deepseek-ai/dsh-e2b'
  24. config:
  25. cwd: !!js process.cwd()
  26. timeoutMs: 300000
  27. - id: subprocess-e2b
  28. name: '@deepseek-ai/dsh-subprocess-e2b'
  29. - id: fs-e2b
  30. name: '@deepseek-ai/dsh-fs-e2b'
  31. - id: sandbox-policy
  32. name: '@deepseek-ai/dsh-sandbox-policy'
  33. config:
  34. mode: danger-full-access
  35. workspaceRoot: !!js process.cwd()
  36. - id: pty
  37. name: '@deepseek-ai/dsh-pty'
  38. - id: pty-local
  39. name: '@deepseek-ai/dsh-pty-local'
  40. - id: tool-pty
  41. name: '@deepseek-ai/dsh-tool-pty'
  42. - id: lsp
  43. name: '@deepseek-ai/dsh-lsp'
  44. - id: lsp-local
  45. name: '@deepseek-ai/dsh-lsp-local'
  46. config:
  47. servers:
  48. typescript:
  49. command: npx
  50. args: [--yes, typescript-language-server@5.0.0, --stdio]
  51. extensionToLanguage:
  52. .ts: typescript
  53. .tsx: typescriptreact
  54. .js: javascript
  55. .jsx: javascriptreact
  56. - id: tool-lsp
  57. name: '@deepseek-ai/dsh-tool-lsp'