web.cordis.yml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. # `dsh web` — the browser surface, as a patch list over `base.cordis.yml`.
  2. # The launcher includes the base and applies this file, then any `--config`
  3. # overlay, then AppCLIEntry's profile-json and CLI-flag patches, as sibling patch
  4. # lists at ONE include level: patches never cross an include boundary, so
  5. # stacking overlays as nested includes would silently stop reaching base rows.
  6. #
  7. # A patch replaces the targeted row's whole `config`, so each row below restates
  8. # every key it owns. `--dev` appends the dsh-client-hmr row in code
  9. # (AppCLIEntry) — prod and dev differ by exactly that one row.
  10. # ── surface-specific values the base deliberately omits ─────────────────────
  11. - id: system-prompt
  12. config:
  13. persona: ''
  14. - id: tools
  15. config:
  16. # TEMPORARY workaround: DSH_TOOLS_MODE (native|code|both) opts a whole dsh
  17. # process into Code Mode while per-session tool-mode selection is being
  18. # designed; unset keeps the schema default (native). Remove the env seam
  19. # once the web UI owns the choice per session.
  20. mode: !!js process.env.DSH_TOOLS_MODE
  21. - id: agent-loop
  22. config:
  23. agents: []
  24. - id: llm-deepseek
  25. config:
  26. apiKey: !!js process.env.DEEPSEEK_API_KEY
  27. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  28. # The web surface replaces the unrestricted local executors with the shared
  29. # sandbox policy. Its default preserves the previous unrestricted behavior;
  30. # DSH_PERMISSION_MODE and the browser permission picker can confine a session.
  31. - insert:
  32. - id: sandbox
  33. name: '@deepseek-ai/dsh-sandbox-local'
  34. - id: sandbox-policy
  35. name: '@deepseek-ai/dsh-sandbox-policy'
  36. config:
  37. mode: !!js process.env.DSH_PERMISSION_MODE ?? 'danger-full-access'
  38. workspaceRoot: !!js process.cwd()
  39. - id: bash-sandbox
  40. name: '@deepseek-ai/dsh-bash-sandbox'
  41. - id: approval
  42. name: '@deepseek-ai/dsh-user-approval'
  43. config:
  44. policy: !!js "(process.env.DSH_PERMISSION_MODE ?? 'danger-full-access') === 'danger-full-access' ? 'never' : 'ask'"
  45. - id: permission
  46. name: '@deepseek-ai/dsh-permission'
  47. config:
  48. presets:
  49. read-only:
  50. sandbox: read-only
  51. approval: ask
  52. workspace-write:
  53. sandbox: workspace-write
  54. approval: ask
  55. danger-full-access:
  56. sandbox: danger-full-access
  57. approval: never
  58. - id: fs-sandbox
  59. name: '@deepseek-ai/dsh-fs-sandbox'
  60. - id: bash-local
  61. disabled: true
  62. - id: fs-local
  63. disabled: true
  64. # ── web-only host rows, the transport layer, and the browser roster ─────────
  65. # `dshClient` rows are the browser roster the modules node half scans into
  66. # window.__DSH_BOOT__; the modules row is simultaneously a host row.
  67. - insert:
  68. - id: session-projection
  69. name: '@deepseek-ai/dsh-session-projection'
  70. - id: code-runtime
  71. name: '@deepseek-ai/dsh-code-runtime-worker'
  72. - id: storage
  73. name: '@deepseek-ai/dsh-storage'
  74. - id: storage-json
  75. name: '@deepseek-ai/dsh-storage-json'
  76. config:
  77. root: './.storages'
  78. - id: storage-domain
  79. name: '@deepseek-ai/dsh-storage-domain'
  80. config:
  81. backend: json
  82. - id: workspace
  83. name: '@deepseek-ai/dsh-workspace'
  84. - id: session-projection-cache
  85. name: '@deepseek-ai/dsh-session-projection-cache'
  86. config:
  87. writeEveryEvents: 200
  88. writeIntervalMs: 5000
  89. - id: tool-todo
  90. name: '@deepseek-ai/dsh-tool-todo'
  91. # The API gateway: the transport-agnostic dispatch face every client shape
  92. # shares. provider/model are the host default routing — the profile json's
  93. # mapping target (user config overrides these engineering defaults).
  94. - id: directory-picker
  95. name: '@deepseek-ai/dsh-host-directory-picker-browse'
  96. - id: api-gateway
  97. name: '@deepseek-ai/dsh-host-apiproxy'
  98. config:
  99. provider: deepseek
  100. model: deepseek-v4-flash
  101. # ── layer 2: transport/service ──────────────────────────────────────────────
  102. # Plain route-registration carrier. distIndex is an assembly fact, not user
  103. # config — AppCLIEntry resolves the frontend dist and patches it in; host and
  104. # port arrive as CLI-flag patches over these defaults.
  105. - id: webserver
  106. name: '@deepseek-ai/dsh-host-webserver'
  107. config:
  108. host: 127.0.0.1
  109. port: 3080
  110. # ── browser plugin roster (dshClient rows; node halves are layer-2 hosts) ──
  111. # Dual-face: node half scans this very tree for dshClient rows, composes
  112. # window.__DSH_BOOT__, serves /plugins/<id>/client.js; browser half is the
  113. # module table the shell kernel constructs before cordis exists (§4.7 —
  114. # adopted as a plugin entry by the kernel, never fetched).
  115. - id: modules
  116. name: '@deepseek-ai/dsh-client-modules'
  117. # Owns both ends of the web transport: node half binds the gateway to the
  118. # webserver under /api; browser half is the fetch/SSE client.
  119. - id: connection
  120. name: '@deepseek-ai/dsh-client-connection'
  121. - id: client-runtime
  122. name: '@deepseek-ai/dsh-client-runtime'
  123. - id: ui-theme
  124. name: '@deepseek-ai/dsh-client-ui-theme'
  125. - id: locale
  126. name: '@deepseek-ai/dsh-client-locale'
  127. - id: ui-layout
  128. name: '@deepseek-ai/dsh-client-ui-layout'
  129. - id: ui-sidebar
  130. name: '@deepseek-ai/dsh-client-ui-sidebar'
  131. - id: ui-settings
  132. name: '@deepseek-ai/dsh-client-ui-settings'
  133. - id: ui-settings-general
  134. name: '@deepseek-ai/dsh-client-ui-settings-general'
  135. - id: ui-models
  136. name: '@deepseek-ai/dsh-client-ui-models'
  137. - id: ui-conversation
  138. name: '@deepseek-ai/dsh-client-ui-conversation'
  139. - id: ui-workspace
  140. name: '@deepseek-ai/dsh-client-ui-workspace'
  141. # Input triggers: the '/' | '@' pipeline (ui-slash), the command surface over
  142. # it (ui-command), and the two reference sources (ui-skill / ui-subagent).
  143. - id: ui-slash
  144. name: '@deepseek-ai/dsh-client-ui-slash'
  145. - id: ui-command
  146. name: '@deepseek-ai/dsh-client-ui-command'
  147. - id: ui-skill
  148. name: '@deepseek-ai/dsh-client-ui-skill'
  149. - id: ui-subagent
  150. name: '@deepseek-ai/dsh-client-ui-subagent'
  151. # Goal surface: GoalBar in the input dock over the goal session projection.
  152. - id: ui-goal
  153. name: '@deepseek-ai/dsh-client-ui-goal'
  154. # Model selection: the /model popupSelect + composer seat over session.models.
  155. - id: ui-model
  156. name: '@deepseek-ai/dsh-client-ui-model'
  157. - id: ui-permission
  158. name: '@deepseek-ai/dsh-client-ui-permission'
  159. # Plan control: the composer plan seat over the plan projection + /plan channel.
  160. - id: ui-plan
  161. name: '@deepseek-ai/dsh-client-ui-plan'
  162. - id: ui-question
  163. name: '@deepseek-ai/dsh-client-ui-question'
  164. - id: ui-trajectory
  165. name: '@deepseek-ai/dsh-client-ui-trajectory'