cordis.yml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. # dsh web — the full web-shape composition: host runtime (layer 1), the
  2. # transport/service layer (layer 2), and the browser plugin roster (dshClient
  3. # rows the modules node half scans into window.__DSH_BOOT__). Row order
  4. # carries no load semantics (activation is service-availability driven); the
  5. # grouping below is for readers. `--dev` appends the dsh-client-hmr row in
  6. # code (AppCLIEntry) — prod and dev differ by exactly that one row.
  7. # AppCLIEntry patches this tree before boot: profile json + CLI flags +
  8. # distIndex land as config patches over the rows below (yaml = engineering
  9. # defaults, json = user config, user wins per field).
  10. # ── layer 1: runtime ────────────────────────────────────────────────────────
  11. - id: timer
  12. name: '@cordisjs/plugin-timer'
  13. - id: llm
  14. name: '@deepseek-ai/dsh-llm'
  15. - id: session
  16. name: '@deepseek-ai/dsh-session'
  17. - id: session-title
  18. name: '@deepseek-ai/dsh-session-title'
  19. config:
  20. fallbackMaxWords: 5
  21. fallbackMaxBytes: 40
  22. maxTitleBytes: 80
  23. # Model-made titles on the first-message cadence (the web sidebar renders
  24. # session/title). Same values as the TUI composition.
  25. - id: session-title-llm
  26. name: '@deepseek-ai/dsh-session-title-first-message-llm'
  27. config:
  28. targetWords: 5
  29. targetCjkCharacters: 10
  30. maxInputBytes: 4096
  31. maxOutputTokens: 64
  32. timeoutMs: 60000
  33. - id: system-prompt
  34. name: '@deepseek-ai/dsh-system-prompt'
  35. config:
  36. persona: ''
  37. - id: tools
  38. name: '@deepseek-ai/dsh-tools'
  39. - id: user-interaction
  40. name: '@deepseek-ai/dsh-user-interaction'
  41. - id: agent
  42. name: '@deepseek-ai/dsh-agent'
  43. - id: tasks
  44. name: '@deepseek-ai/dsh-tasks'
  45. - id: agent-loop
  46. name: '@deepseek-ai/dsh-agent-loop'
  47. config:
  48. agents: []
  49. # The native DeepSeek adapter; reads the key/base-url the boot's layered
  50. # .env loading (cwd then $DSH_HOME) left in the environment.
  51. - id: llm-deepseek
  52. name: '@deepseek-ai/dsh-llm-deepseek'
  53. config:
  54. apiKey: !!js process.env.DEEPSEEK_API_KEY
  55. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  56. - id: session-persistence-jsonl
  57. name: '@deepseek-ai/dsh-session-persistence-jsonl'
  58. config:
  59. root: './.sessions'
  60. - id: storage
  61. name: '@deepseek-ai/dsh-storage'
  62. - id: storage-json
  63. name: '@deepseek-ai/dsh-storage-json'
  64. config:
  65. root: './.storages'
  66. - id: storage-domain
  67. name: '@deepseek-ai/dsh-storage-domain'
  68. config:
  69. backend: json
  70. - id: workspace
  71. name: '@deepseek-ai/dsh-workspace'
  72. - id: bash-local
  73. name: '@deepseek-ai/dsh-bash-local'
  74. - id: tool-bash
  75. name: '@deepseek-ai/dsh-tool-bash'
  76. - id: tool-todo
  77. name: '@deepseek-ai/dsh-tool-todo'
  78. - id: tool-tasks
  79. name: '@deepseek-ai/dsh-tool-tasks'
  80. # fs cwd stays the package default (process.cwd()) — the same value the
  81. # gateway injects into session.cwd, so paths and sessions agree.
  82. - id: fs-local
  83. name: '@deepseek-ai/dsh-fs-local'
  84. - id: fs-policy
  85. name: '@deepseek-ai/dsh-fs-policy'
  86. - id: tool-fs
  87. name: '@deepseek-ai/dsh-tool-fs'
  88. - id: tool-fs-search
  89. name: '@deepseek-ai/dsh-tool-fs-search'
  90. - id: workspace-context
  91. name: '@deepseek-ai/dsh-workspace-context'
  92. config:
  93. maxBytes: 65536
  94. - id: skill
  95. name: '@deepseek-ai/dsh-skill'
  96. - id: skill-local
  97. name: '@deepseek-ai/dsh-skill-local'
  98. - id: tool-skill
  99. name: '@deepseek-ai/dsh-tool-skill'
  100. # token-meter rejects unknown config keys — keep this row bare.
  101. - id: token-meter
  102. name: '@deepseek-ai/dsh-token-meter'
  103. - id: compact-basic
  104. name: '@deepseek-ai/dsh-compact-basic'
  105. - id: subagent
  106. name: '@deepseek-ai/dsh-subagent'
  107. - id: subagent-spawn
  108. name: '@deepseek-ai/dsh-subagent-spawn'
  109. config:
  110. providerName: spawn
  111. - id: subagent-fork
  112. name: '@deepseek-ai/dsh-subagent-fork'
  113. config:
  114. providerName: fork
  115. - id: tool-subagent
  116. name: '@deepseek-ai/dsh-tool-subagent'
  117. config:
  118. provider: spawn
  119. toolName: subagent
  120. - id: tool-subagent-fork
  121. name: '@deepseek-ai/dsh-tool-subagent'
  122. config:
  123. provider: fork
  124. toolName: subagent_fork
  125. - id: workflow-workerthread
  126. name: '@deepseek-ai/dsh-workflow-workerthread'
  127. config:
  128. provider: spawn
  129. - id: tool-workflow
  130. name: '@deepseek-ai/dsh-tool-workflow'
  131. - id: timeout-policy
  132. name: '@deepseek-ai/dsh-timeout-policy'
  133. - id: spill-local
  134. name: '@deepseek-ai/dsh-spill-local'
  135. # Omitting maxInlineBytes makes the whole policy a silent no-op — always
  136. # state it explicitly.
  137. - id: spill-policy
  138. name: '@deepseek-ai/dsh-spill-policy'
  139. config:
  140. maxInlineBytes: 50000
  141. # The API gateway: the transport-agnostic dispatch face every client shape
  142. # shares. provider/model are the host default routing — the profile json's
  143. # mapping target (user config overrides these engineering defaults).
  144. - id: api-gateway
  145. name: '@deepseek-ai/dsh-host-apiproxy'
  146. config:
  147. provider: deepseek
  148. model: deepseek-v4-flash
  149. # ── layer 2: transport/service ──────────────────────────────────────────────
  150. # Plain route-registration carrier. distIndex is an assembly fact, not user
  151. # config — AppCLIEntry resolves the frontend dist and patches it in; host and
  152. # port arrive as CLI-flag patches over these defaults.
  153. - id: webserver
  154. name: '@deepseek-ai/dsh-host-webserver'
  155. config:
  156. host: 127.0.0.1
  157. port: 3080
  158. # ── browser plugin roster (dshClient rows; node halves are layer-2 hosts) ──
  159. # Dual-face: node half scans this very tree for dshClient rows, composes
  160. # window.__DSH_BOOT__, serves /plugins/<id>/client.js; browser half is the
  161. # module table the shell kernel constructs before cordis exists (§4.7 —
  162. # adopted as a plugin entry by the kernel, never fetched).
  163. - id: modules
  164. name: '@deepseek-ai/dsh-client-modules'
  165. # Owns both ends of the web transport: node half binds the gateway to the
  166. # webserver under /api; browser half is the fetch/SSE client.
  167. - id: connection
  168. name: '@deepseek-ai/dsh-client-connection'
  169. - id: client-runtime
  170. name: '@deepseek-ai/dsh-client-runtime'
  171. - id: ui-theme
  172. name: '@deepseek-ai/dsh-client-ui-theme'
  173. - id: locale
  174. name: '@deepseek-ai/dsh-client-locale'
  175. - id: ui-layout
  176. name: '@deepseek-ai/dsh-client-ui-layout'
  177. - id: ui-sidebar
  178. name: '@deepseek-ai/dsh-client-ui-sidebar'
  179. - id: ui-settings
  180. name: '@deepseek-ai/dsh-client-ui-settings'
  181. - id: ui-settings-general
  182. name: '@deepseek-ai/dsh-client-ui-settings-general'
  183. - id: ui-models
  184. name: '@deepseek-ai/dsh-client-ui-models'
  185. - id: ui-conversation
  186. name: '@deepseek-ai/dsh-client-ui-conversation'
  187. - id: ui-workspace
  188. name: '@deepseek-ai/dsh-client-ui-workspace'
  189. - id: ui-question
  190. name: '@deepseek-ai/dsh-client-ui-question'
  191. - id: ui-trajectory
  192. name: '@deepseek-ai/dsh-client-ui-trajectory'