web.cordis.yml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. - id: fs-local
  29. # ── web-only host rows, the transport layer, and the browser roster ─────────
  30. # `dshClient` rows are the browser roster the modules node half scans into
  31. # window.__DSH_BOOT__; the modules row is simultaneously a host row.
  32. - insert:
  33. - id: session-projection
  34. name: '@deepseek-ai/dsh-session-projection'
  35. - id: code-runtime
  36. name: '@deepseek-ai/dsh-code-runtime-worker'
  37. - id: storage
  38. name: '@deepseek-ai/dsh-storage'
  39. - id: storage-json
  40. name: '@deepseek-ai/dsh-storage-json'
  41. config:
  42. root: './.storages'
  43. - id: storage-domain
  44. name: '@deepseek-ai/dsh-storage-domain'
  45. config:
  46. backend: json
  47. - id: workspace
  48. name: '@deepseek-ai/dsh-workspace'
  49. - id: session-projection-cache
  50. name: '@deepseek-ai/dsh-session-projection-cache'
  51. config:
  52. writeEveryEvents: 200
  53. writeIntervalMs: 5000
  54. - id: tool-todo
  55. name: '@deepseek-ai/dsh-tool-todo'
  56. # The API gateway: the transport-agnostic dispatch face every client shape
  57. # shares. provider/model are the host default routing — the profile json's
  58. # mapping target (user config overrides these engineering defaults).
  59. - id: api-gateway
  60. name: '@deepseek-ai/dsh-host-apiproxy'
  61. config:
  62. provider: deepseek
  63. model: deepseek-v4-flash
  64. # ── layer 2: transport/service ──────────────────────────────────────────────
  65. # Plain route-registration carrier. distIndex is an assembly fact, not user
  66. # config — AppCLIEntry resolves the frontend dist and patches it in; host and
  67. # port arrive as CLI-flag patches over these defaults.
  68. - id: webserver
  69. name: '@deepseek-ai/dsh-host-webserver'
  70. config:
  71. host: 127.0.0.1
  72. port: 3080
  73. # ── browser plugin roster (dshClient rows; node halves are layer-2 hosts) ──
  74. # Dual-face: node half scans this very tree for dshClient rows, composes
  75. # window.__DSH_BOOT__, serves /plugins/<id>/client.js; browser half is the
  76. # module table the shell kernel constructs before cordis exists (§4.7 —
  77. # adopted as a plugin entry by the kernel, never fetched).
  78. - id: modules
  79. name: '@deepseek-ai/dsh-client-modules'
  80. # Owns both ends of the web transport: node half binds the gateway to the
  81. # webserver under /api; browser half is the fetch/SSE client.
  82. - id: connection
  83. name: '@deepseek-ai/dsh-client-connection'
  84. - id: client-runtime
  85. name: '@deepseek-ai/dsh-client-runtime'
  86. - id: ui-theme
  87. name: '@deepseek-ai/dsh-client-ui-theme'
  88. - id: locale
  89. name: '@deepseek-ai/dsh-client-locale'
  90. - id: ui-layout
  91. name: '@deepseek-ai/dsh-client-ui-layout'
  92. - id: ui-sidebar
  93. name: '@deepseek-ai/dsh-client-ui-sidebar'
  94. - id: ui-settings
  95. name: '@deepseek-ai/dsh-client-ui-settings'
  96. - id: ui-settings-general
  97. name: '@deepseek-ai/dsh-client-ui-settings-general'
  98. - id: ui-models
  99. name: '@deepseek-ai/dsh-client-ui-models'
  100. - id: ui-conversation
  101. name: '@deepseek-ai/dsh-client-ui-conversation'
  102. - id: ui-workspace
  103. name: '@deepseek-ai/dsh-client-ui-workspace'
  104. # Input triggers: the '/' | '@' pipeline (ui-slash), the command surface over
  105. # it (ui-command), and the two reference sources (ui-skill / ui-subagent).
  106. - id: ui-slash
  107. name: '@deepseek-ai/dsh-client-ui-slash'
  108. - id: ui-command
  109. name: '@deepseek-ai/dsh-client-ui-command'
  110. - id: ui-skill
  111. name: '@deepseek-ai/dsh-client-ui-skill'
  112. - id: ui-subagent
  113. name: '@deepseek-ai/dsh-client-ui-subagent'
  114. # Goal surface: GoalBar in the input dock over the goal session projection.
  115. - id: ui-goal
  116. name: '@deepseek-ai/dsh-client-ui-goal'
  117. # Model selection: the /model popupSelect + composer seat over session.models.
  118. - id: ui-model
  119. name: '@deepseek-ai/dsh-client-ui-model'
  120. # Plan control: the composer plan seat over the plan projection + /plan channel.
  121. - id: ui-plan
  122. name: '@deepseek-ai/dsh-client-ui-plan'
  123. - id: ui-question
  124. name: '@deepseek-ai/dsh-client-ui-question'
  125. - id: ui-trajectory
  126. name: '@deepseek-ai/dsh-client-ui-trajectory'