| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- # The dsh-web-app bundle patch: the browser surface over the dsh-base layer.
- # Applied after dsh-base's insert; rows here override base rows by id, with
- # the profile's own cordis.patch.yml and any --patch overlays still to come.
- #
- # A patch replaces the targeted row's whole `config`, so each row below
- # restates every key it owns. The `dsh web` launcher alias turns --host/--port/
- # --dev/--workspace-root/--trusted-host into further patches over these rows
- # (`--dev` inserts the dsh-client-hmr row).
- # ── surface-specific values the base deliberately omits ─────────────────────
- - id: system-prompt
- config:
- persona: >-
- You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
- # TODO: Re-enable shared HMR for Web after its reload lifecycle is tested.
- - id: hmr
- disabled: true
- # Web content search runs on an ephemeral in-memory index. The service
- # activates at boot, while first-search defers the node:sqlite import and
- # in-memory handle so Node 22 startup stays quiet until content search
- # actually uses SQLite. That search then reconciles this boot's sources.
- - id: session-query-sqlite
- config:
- path: ':memory:'
- openAt: first-search
- - id: tools
- config:
- # TEMPORARY workaround: DSH_TOOLS_MODE (native|code|both) opts a whole dsh
- # process into Code Mode while per-session tool-mode selection is being
- # designed; unset keeps the schema default (native). Remove the env seam
- # once the web UI owns the choice per session.
- mode: !!js process.env.DSH_TOOLS_MODE
- - id: llm-deepseek
- config:
- apiKey: !!js process.env.DEEPSEEK_API_KEY
- baseURL: !!js process.env.DEEPSEEK_BASE_URL
- # ── web-only host rows, the transport layer, and the browser roster ─────────
- # `dshClient` rows are the browser roster the modules node half scans into
- # window.__DSH_BOOT__; the modules row is simultaneously a host row.
- - insert:
- - id: code-runtime
- name: '@deepseek-ai/dsh-code-runtime-worker'
- - id: storage
- name: '@deepseek-ai/dsh-storage'
- - id: storage-json
- name: '@deepseek-ai/dsh-storage-json'
- config:
- root: !!js dshHomePath('storages')
- - id: storage-domain
- name: '@deepseek-ai/dsh-storage-domain'
- config:
- backend: json
- - id: workspace
- name: '@deepseek-ai/dsh-workspace'
- - id: session-projection-cache
- name: '@deepseek-ai/dsh-session-projection-cache'
- config:
- writeEveryEvents: 200
- writeIntervalMs: 5000
- # Resolve bind host, SSH launch, and display once at boot, then mount the
- # matching dual-face directory picker. Mount -native or -browse directly in
- # an overlay to pin the interaction.
- - id: directory-picker
- name: '@deepseek-ai/dsh-host-directory-picker-auto'
- # The API gateway: the transport-agnostic dispatch face every client shape
- # shares. provider/model are the host default routing — the profile json's
- # mapping target (user config overrides these engineering defaults).
- - id: api-gateway
- name: '@deepseek-ai/dsh-host-apiproxy'
- config:
- provider: deepseek-official
- model: deepseek-v4-flash
- # ── layer 2: transport/service ──────────────────────────────────────────────
- # Plain route-registration carrier; host and port arrive as `dsh web`
- # flag patches over these defaults. The dist is served by the web-runtime
- # row below through the fallback seat.
- - id: webserver
- name: '@deepseek-ai/dsh-host-webserver'
- config:
- host: 127.0.0.1
- port: 3080
- # Web glue owned by this bundle: resolves the built frontend dist (an
- # assembly fact of dsh-web-app, never user config), mounts the
- # frontend-static fallback owner, registers the web-surface prompt
- # section and bash runtime variables, and prints the URL line. `dsh web`
- # patches mode/lanAddresses over these defaults; complete-prompt overlays
- # set surfaceContext false to suppress every model- and shell-visible Web
- # runtime contribution.
- - id: web-runtime
- name: '@deepseek-ai/dsh-web-app'
- config:
- mode: production
- printUrl: true
- surfaceContext: true
- # ── browser plugin roster (dshClient rows; node halves are layer-2 hosts) ──
- # Dual-face: node half scans this very tree for dshClient rows, composes
- # window.__DSH_BOOT__, serves /plugins/<id>/client.js; browser half is the
- # module table the shell kernel constructs before cordis exists (§4.7 —
- # adopted as a plugin entry by the kernel, never fetched).
- - id: modules
- name: '@deepseek-ai/dsh-client-modules'
- # Owns both ends of the web transport: node half binds the gateway to the
- # webserver under /api; browser half is the fetch/SSE client.
- - id: connection
- name: '@deepseek-ai/dsh-client-connection'
- - id: api-remotes
- name: '@deepseek-ai/dsh-api-remotes'
- - id: client-runtime
- name: '@deepseek-ai/dsh-client-runtime'
- - id: ui-theme
- name: '@deepseek-ai/dsh-client-ui-theme'
- - id: locale
- name: '@deepseek-ai/dsh-client-locale'
- - id: ui-layout
- name: '@deepseek-ai/dsh-client-ui-layout'
- - id: ui-sidebar
- name: '@deepseek-ai/dsh-client-ui-sidebar'
- - id: ui-settings
- name: '@deepseek-ai/dsh-client-ui-settings'
- - id: ui-settings-general
- name: '@deepseek-ai/dsh-client-ui-settings-general'
- - id: ui-models
- name: '@deepseek-ai/dsh-client-ui-models'
- - id: ui-conversation
- name: '@deepseek-ai/dsh-client-ui-conversation'
- # Turn tail: the produced-files row under each closing assistant message.
- # Remove this entry to turn the surface off; the tail hole renders empty.
- - id: ui-deliverables
- name: '@deepseek-ai/dsh-client-ui-deliverables'
- - id: ui-workspace
- name: '@deepseek-ai/dsh-client-ui-workspace'
- # Input triggers: the '/' | '@' pipeline (ui-slash), the command surface over
- # it (ui-command), and the two reference sources (ui-skill / ui-subagent).
- - id: ui-slash
- name: '@deepseek-ai/dsh-client-ui-slash'
- - id: ui-command
- name: '@deepseek-ai/dsh-client-ui-command'
- - id: ui-skill
- name: '@deepseek-ai/dsh-client-ui-skill'
- - id: ui-subagent
- name: '@deepseek-ai/dsh-client-ui-subagent'
- # Goal surface: GoalBar in the input dock over the goal session projection.
- - id: ui-goal
- name: '@deepseek-ai/dsh-client-ui-goal'
- # Model selection: the /model popupSelect + composer seat over session.models.
- - id: ui-model
- name: '@deepseek-ai/dsh-client-ui-model'
- - id: ui-permission
- name: '@deepseek-ai/dsh-client-ui-permission'
- # Plan control: the composer plan seat over the plan projection + /plan channel.
- - id: ui-plan
- name: '@deepseek-ai/dsh-client-ui-plan'
- - id: ui-question
- name: '@deepseek-ai/dsh-client-ui-question'
- - id: ui-trajectory
- name: '@deepseek-ai/dsh-client-ui-trajectory'
|