cordis.patch.yml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. # The dsh-web-app bundle patch: the browser surface over the dsh-base layer.
  2. # Applied after dsh-base's insert; rows here override base rows by id, with
  3. # the profile's own cordis.patch.yml and any --patch overlays still to come.
  4. #
  5. # A patch replaces the targeted row's whole `config`, so each row below
  6. # restates every key it owns. The `dsh web` launcher alias turns --host/--port/
  7. # --dev/--workspace-root/--trusted-host into further patches over these rows
  8. # (`--dev` inserts the dsh-client-hmr row).
  9. # ── surface-specific values the base deliberately omits ─────────────────────
  10. - id: system-prompt
  11. config:
  12. persona: >-
  13. You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
  14. # TODO: Re-enable shared HMR for Web after its reload lifecycle is tested.
  15. - id: hmr
  16. disabled: true
  17. # Web content search runs on an ephemeral in-memory index. The service
  18. # activates at boot, while first-search defers the node:sqlite import and
  19. # in-memory handle so Node 22 startup stays quiet until content search
  20. # actually uses SQLite. That search then reconciles this boot's sources.
  21. - id: session-query-sqlite
  22. config:
  23. path: ':memory:'
  24. openAt: first-search
  25. - id: tools
  26. config:
  27. # TEMPORARY workaround: DSH_TOOLS_MODE (native|code|both) opts a whole dsh
  28. # process into Code Mode while per-session tool-mode selection is being
  29. # designed; unset keeps the schema default (native). Remove the env seam
  30. # once the web UI owns the choice per session.
  31. mode: !!js process.env.DSH_TOOLS_MODE
  32. - id: llm-deepseek
  33. config:
  34. apiKey: !!js process.env.DEEPSEEK_API_KEY
  35. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  36. # ── web-only host rows, the transport layer, and the browser roster ─────────
  37. # `dshClient` rows are the browser roster the modules node half scans into
  38. # window.__DSH_BOOT__; the modules row is simultaneously a host row.
  39. - insert:
  40. - id: code-runtime
  41. name: '@deepseek-ai/dsh-code-runtime-worker'
  42. - id: storage
  43. name: '@deepseek-ai/dsh-storage'
  44. - id: storage-json
  45. name: '@deepseek-ai/dsh-storage-json'
  46. config:
  47. root: !!js dshHomePath('storages')
  48. - id: storage-domain
  49. name: '@deepseek-ai/dsh-storage-domain'
  50. config:
  51. backend: json
  52. - id: workspace
  53. name: '@deepseek-ai/dsh-workspace'
  54. - id: session-projection-cache
  55. name: '@deepseek-ai/dsh-session-projection-cache'
  56. config:
  57. writeEveryEvents: 200
  58. writeIntervalMs: 5000
  59. # Resolve bind host, SSH launch, and display once at boot, then mount the
  60. # matching dual-face directory picker. Mount -native or -browse directly in
  61. # an overlay to pin the interaction.
  62. - id: directory-picker
  63. name: '@deepseek-ai/dsh-host-directory-picker-auto'
  64. # The API gateway: the transport-agnostic dispatch face every client shape
  65. # shares. provider/model are the host default routing — the profile json's
  66. # mapping target (user config overrides these engineering defaults).
  67. - id: api-gateway
  68. name: '@deepseek-ai/dsh-host-apiproxy'
  69. config:
  70. provider: deepseek-official
  71. model: deepseek-v4-flash
  72. # ── layer 2: transport/service ──────────────────────────────────────────────
  73. # Plain route-registration carrier; host and port arrive as `dsh web`
  74. # flag patches over these defaults. The dist is served by the web-runtime
  75. # row below through the fallback seat.
  76. - id: webserver
  77. name: '@deepseek-ai/dsh-host-webserver'
  78. config:
  79. host: 127.0.0.1
  80. port: 3080
  81. # Web glue owned by this bundle: resolves the built frontend dist (an
  82. # assembly fact of dsh-web-app, never user config), mounts the
  83. # frontend-static fallback owner, registers the web-surface prompt
  84. # section and bash runtime variables, and prints the URL line. `dsh web`
  85. # patches mode/lanAddresses over these defaults; complete-prompt overlays
  86. # set surfaceContext false to suppress every model- and shell-visible Web
  87. # runtime contribution.
  88. - id: web-runtime
  89. name: '@deepseek-ai/dsh-web-app'
  90. config:
  91. mode: production
  92. printUrl: true
  93. surfaceContext: true
  94. # ── browser plugin roster (dshClient rows; node halves are layer-2 hosts) ──
  95. # Dual-face: node half scans this very tree for dshClient rows, composes
  96. # window.__DSH_BOOT__, serves /plugins/<id>/client.js; browser half is the
  97. # module table the shell kernel constructs before cordis exists (§4.7 —
  98. # adopted as a plugin entry by the kernel, never fetched).
  99. - id: modules
  100. name: '@deepseek-ai/dsh-client-modules'
  101. # Owns both ends of the web transport: node half binds the gateway to the
  102. # webserver under /api; browser half is the fetch/SSE client.
  103. - id: connection
  104. name: '@deepseek-ai/dsh-client-connection'
  105. - id: api-remotes
  106. name: '@deepseek-ai/dsh-api-remotes'
  107. - id: client-runtime
  108. name: '@deepseek-ai/dsh-client-runtime'
  109. - id: ui-theme
  110. name: '@deepseek-ai/dsh-client-ui-theme'
  111. - id: locale
  112. name: '@deepseek-ai/dsh-client-locale'
  113. - id: ui-layout
  114. name: '@deepseek-ai/dsh-client-ui-layout'
  115. - id: ui-sidebar
  116. name: '@deepseek-ai/dsh-client-ui-sidebar'
  117. - id: ui-settings
  118. name: '@deepseek-ai/dsh-client-ui-settings'
  119. - id: ui-settings-general
  120. name: '@deepseek-ai/dsh-client-ui-settings-general'
  121. - id: ui-models
  122. name: '@deepseek-ai/dsh-client-ui-models'
  123. - id: ui-conversation
  124. name: '@deepseek-ai/dsh-client-ui-conversation'
  125. # Turn tail: the produced-files row under each closing assistant message.
  126. # Remove this entry to turn the surface off; the tail hole renders empty.
  127. - id: ui-deliverables
  128. name: '@deepseek-ai/dsh-client-ui-deliverables'
  129. - id: ui-workspace
  130. name: '@deepseek-ai/dsh-client-ui-workspace'
  131. # Input triggers: the '/' | '@' pipeline (ui-slash), the command surface over
  132. # it (ui-command), and the two reference sources (ui-skill / ui-subagent).
  133. - id: ui-slash
  134. name: '@deepseek-ai/dsh-client-ui-slash'
  135. - id: ui-command
  136. name: '@deepseek-ai/dsh-client-ui-command'
  137. - id: ui-skill
  138. name: '@deepseek-ai/dsh-client-ui-skill'
  139. - id: ui-subagent
  140. name: '@deepseek-ai/dsh-client-ui-subagent'
  141. # Goal surface: GoalBar in the input dock over the goal session projection.
  142. - id: ui-goal
  143. name: '@deepseek-ai/dsh-client-ui-goal'
  144. # Model selection: the /model popupSelect + composer seat over session.models.
  145. - id: ui-model
  146. name: '@deepseek-ai/dsh-client-ui-model'
  147. - id: ui-permission
  148. name: '@deepseek-ai/dsh-client-ui-permission'
  149. # Plan control: the composer plan seat over the plan projection + /plan channel.
  150. - id: ui-plan
  151. name: '@deepseek-ai/dsh-client-ui-plan'
  152. - id: ui-question
  153. name: '@deepseek-ai/dsh-client-ui-question'
  154. - id: ui-trajectory
  155. name: '@deepseek-ai/dsh-client-ui-trajectory'