Files
deepseek-harness/packages/bundle/web-app/cordis.patch.yml
T
a39d44b5dc feat(session): add host reading status to SessionStatus (#6858)
* ✨ feat(session): persist and synchronize read state

* 🌐 fix(client): complete Japanese labels after base update

* 📝 docs: refresh session read-state dependency graph

* 🧪 test(web): align session menu and read-state snapshots

* 🌐 fix(session): complete Japanese plugin metadata

* 🧪 test(web): distinguish unread from pending user input

* 🐛 修复会话阅读状态的故障隔离与生命周期

* 🐛 修复阅读状态依赖检查并补齐自动已读覆盖

* 🐛 恢复会话绿点并移除未读标题加粗

* ♻️ Keep shared session reading state in Host memory

* 🌐 Complete reading-state metadata for supported locales

* 📝 Refresh module graph after removing storage dependency

* 🧹 Move storage dependency policy out of memory-only reading

* 🐛 Wait for sidebar catalog before replay navigation

* 🔧 Give Host TypeScript checks 8 GiB of heap

* ✅ Align Host heap checks and Windows diagnostics

* ♻️ Keep CI repairs outside the session reading PR

* 🐛 Show failed unread turns with an error indicator

* 🔧 Adjust npm layout budget for the reading package

* 🧪 Scope projection stream assertions to observed units

* 🧪 Scope permission and title assertions to their projections

* ♻️ Simplify session reading updates to explicit positions

* 🐛 Align session reading package with release version

* 🧪 Load reading state in LiveShare viewer fixtures

* 🧹 Remove persistence-only type link from memory PR

* 🧪 Align context menu expectations with reading actions

* 🐛 Sync reading package with the release version

* 🧪 Include turn boundaries in session summary expectations

* ♻️ Derive reading failure facts from Host events instead of a projection

The reading service took each completion from the Agent turn-boundary
projection, which forced a stateVersion bump and put that projection's whole
internal state on the wire for every Session list row. The service now records
`turn/end` itself, so `core/agent` and the persisted projection schema are
untouched.

History that ended before the service started raises no reminder, which keeps
"existing history reads as read" without a startup scan. The failure flag
therefore describes only turns this Host observed: marking a Session whose last
turn failed before a restart shows the ordinary unread reminder.

* 🐛 Preserve manual unread until explicit Session interaction

* 🧪 Align cold Session reading snapshot with unloaded title

* 🔖 chore(session): align session-read-state with 0.2.2-rc.2

Master moved the root and every released manifest to 0.2.2-rc.2, but the
new dsh-session-read-state package still declared 0.2.2-rc.1, failing
constraints, verify-version-sync, verify-npm-install-layout, and
release:verify after the master merge.

* ♻️ refactor(gateway): recognize Remote stream carrier loss by error code

RemoteStream now decides whether a generation end or failure is a
retryable carrier loss by the stable code 'gateway/carrier-lost' instead
of `instanceof RemoteStreamCarrierError`. RemoteStreamCarrierError keeps
working and carries that code, so existing callers are unchanged, while a
Client feature package can return a coded Error from `ended` without
importing the class. The new RemoteStreamCarrierFailure type describes
such errors; terminal-controller classifies disconnects the same way.

* ♻️ refactor(session): move Session reading into ui-session-status

Fold the reading feature into the single package
packages/client/ui-session-status and delete session-read-state.

- Host face: SessionStatusService keeps in-memory reading records and
  serves the sessionStatus Remote namespace (mark, follow) with
  session-status/* error codes; its service key is registered only for
  Gateway discovery and is not declared on Context.
- Client face: a package-internal reading model follows the Host stream
  through RemoteSnapshotStream; ctx.uiSession.sessionStatus folds the
  records into completionUnread and completionFailed and exposes mark and
  readingReady; main-view acknowledgement and the
  session-status/read-intent event live here. No reading service or type
  is exported.
- verify-client-packages lets a packages/client feature package request
  packages/api rows through dsh.client.external; feature-to-feature
  requests stay rejected.
- ui-workspace, ui-conversation, bundles, remotes, LiveShare, the client
  test runtime, docs, Agent Notes, and the upgrade guide follow.

* ♻️ refactor(session): clear manual unread only when the main view switches to the Session

Remove the session-status/read-intent event. ui-session-status now clears an
existing manual unread mark when the main view switches to a different
Session, including the first selection after a page load, once the reading
baseline is ready and the body arrives. Window focus, visibility changes,
a replaced binding for the same Session, and activity in the open Session
preserve manual unread.

ui-conversation returns to master (only the ui-session-status client
tsconfig reference remains), and ui-workspace navigation no longer emits
the event. Tests, the session-reading Web e2e case, READMEs, and the
reading Agent Note follow the new rule.

* 🐛 fix(session): address the Session status review findings

- Open the reading stream only while ctx.remoteAccess allows
  sessionStatus/follow, so a LiveShare viewer opens no owner-only stream,
  keeps readingReady false, and logs no synchronization failure; access
  changes start or stop the stream.
- Hide the unacknowledged completion of the Session the visible, focused
  main view retains; manual marks stay visible, completionFailed follows
  completionUnread, and the reminder returns on blur, hiding, or a switch.
- Declare ctx.sessionStatus on Context and restore its SERVICE_PAGE and
  SERVICE_ROLES entries; the service and SessionRead* types document on
  docs/subsystems/web-client.md, which now owns the reading section with
  the failed field.
- Document that a Host plugin reload can leave the Client with a terminal
  error until a page reload; drop the redundant types import and the
  unused publish() result.
- Archived Sessions read as read and offer no reading mark in the row
  menu or the toggle-read shortcut.
- session.toggleRead names the open dialog, open panel, or archived
  Session that blocks it instead of asking to select a Session.
- isRemoteStreamCarrierFailure rejects a RemoteError from the Host even
  when it carries gateway/carrier-lost; the code is Client-local.
- ./types is types-only like ui-trajectory, and files no longer ship
  lib/types JavaScript.

* 🐛 fix(session): close the remaining Session status review gaps

- The Gateway Client exports isRemoteStreamCarrierFailure, and the
  terminal view uses it, so a Host RemoteError carrying the carrier code
  shows as failed rather than disconnected.
- Each access grant's reading stream carries a token: frames a revoked
  or superseded stream still delivers are discarded, and cleanup waits
  for disposal before leaving reading unavailable unless a newer grant
  is active.
- The status table hides the viewed Session's natural reminder only
  while that Session is open; the panel case is a documented limitation.
- The README limitation and the upgrade guide state that only the
  main-view switch rule, including a reload restore, clears manual
  unread automatically.
- Add the missing blank line before the next heading in the web-client
  reading section.

* ♻️ refactor(session): install reading under the Session status table

- apply returns to master's form plus one line: UiSessionStatus is the
  root, published as the useSessionStatus source, and installReading()
  from the new src/client/read.ts follows Host reading records into it.
  UiSessionStatus takes master's three constructor parameters and
  creates its own SessionReadModel as the package-internal `reading`
  member; installSessionStatus is removed and acknowledge.ts stays a
  separate file.
- The viewed Session's snapshot subscription republishes the table only
  when its openState changes, so streamed events do not rebuild it.
- Remove the obsolete Dev Note sentence about failure outcomes.
- session.toggleRead passes when the Peer may not mark reading, matching
  the row menu, and reports readingUnavailable only while unsynchronized.

---------

Co-authored-by: imccyu <[email protected]>
Co-authored-by: imccyu <[email protected]>
2026-11-12 05:35:57 +00:00

626 lines
24 KiB
YAML

# 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 web-startup plugin injects `cmdlineArgs` and provides `webStartup` as an
# ordinary Cordis service. Rows configured from flags inject that service, so
# Loader resolves their expressions only after it exists. The web-runtime row
# validates the advertised public URL; Connection reads invocation authorities
# directly from `webStartup`.
# `dsh --profile web --help` provides no `webStartup`, so no server binds.
# ── surface-specific values the base deliberately omits ─────────────────────
- id: system-prompt
config:
personaPrefix: >-
You are a coding agent powered by the {{model}} model.
# Full-text session search is opt-in (the base row's `openAt: never`). This
# restatement keeps the Web values on one ephemeral in-memory index; a
# deployment enabling content search overrides `openAt` to `first-search` in a
# later patch layer, which defers the node:sqlite import and in-memory handle
# to the first search so startup stays quiet.
- id: session-query-sqlite
config:
path: ':memory:'
openAt: never
# ── web-only host rows, the transport layer, and the browser roster ─────────
# `dsh.client` rows are the browser roster the modules node half scans into
# window.__DSH_BOOT__; the modules row is simultaneously a host row.
- insert:
- id: desktop-product-telemetry
name: '@deepseek-ai/dsh-host-product-telemetry-otel'
disabled: !!js "ctx.get('profileContext')?.name !== 'desktop'"
config:
scheduledDelayMillis: 30000
timeoutMillis: 15000
exportTimeoutMillis: 20000
shutdownTimeoutMillis: 2000
serviceName: deepseek-harness-desktop
serviceVersion: !!js process.env.DSH_CLIENT_VERSION
endpoint: !!js process.env.DSH_PRODUCT_ANALYTICS_OTLP_URL
- id: product-analytics
name: '@deepseek-ai/dsh-client-product-analytics'
disabled: !!js "ctx.get('profileContext')?.name !== 'desktop'"
config:
enabled: true
appVersion: !!js process.env.DSH_CLIENT_VERSION
# Host-owned authorization sampled at Agent creation. The Plugins page
# edits this settings namespace independently of the selected preset.
- id: subagent-model-selection-settings
name: '@deepseek-ai/dsh-tool-subagent/model-selection-settings'
- id: message-feedback
name: '@deepseek-ai/dsh-message-feedback'
config:
maxNoteBytes: 8192
# Browser Session export: `/export` command plus the shared download dialog.
- id: session-log-download
name: '@deepseek-ai/dsh-session-log-export'
# Session-menu application choices over Host resolution on macOS, Windows,
# and Linux. An empty catalog hides the action. The Host routes and browser
# controls also serve the file-tree directory opener.
- id: open-in-app
name: '@deepseek-ai/dsh-host-open-in-app'
config:
probeTimeoutMs: 10000
iconTimeoutMs: 10000
launchWatchMs: 1000
- id: ui-file-actions
name: '@deepseek-ai/dsh-client-ui-file-actions'
- id: ui-context-menu
name: '@deepseek-ai/dsh-client-ui-context-menu'
- id: ui-open-in-app
name: '@deepseek-ai/dsh-client-ui-open-in-app'
- id: workspace
name: '@deepseek-ai/dsh-workspace'
- id: session-reference
name: '@deepseek-ai/dsh-session-reference'
- id: file-reference-local
name: '@deepseek-ai/dsh-file-reference-local'
# Whole-log turn/step counts for the chat stats strip (the sessionStats
# projection key); the projection registry itself is a base-layer row.
- id: session-stats
name: '@deepseek-ai/dsh-session-stats'
# Whole-log turn outline for the chat turn rail (the turnOutline
# projection key): every turn stays navigable before its events page in.
- id: session-turn-outline
name: '@deepseek-ai/dsh-session-turn-outline'
# 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'
# Read-only projection of current Loader entries for trusted client RPCs.
- id: plugin-inventory
name: '@deepseek-ai/dsh-host-plugin-inventory'
# Session commands, cold reads, and live control over Typert Remote.
- id: session-controller
name: '@deepseek-ai/dsh-api-session-controller'
# One background job's observation record streamed over Typert Remote;
# the roster rides the session control stream above.
- id: job-controller
name: '@deepseek-ai/dsh-api-job-controller'
# Workspace file service: bounded read, directory listing, and the
# agent-write change feed inside the session workspace root.
- id: terminal-controller
name: '@deepseek-ai/dsh-api-terminal-controller'
- id: workspace-files
name: '@deepseek-ai/dsh-api-workspace-files'
# The Schedule service owns the task store and delivers each due occurrence
# as a follow-up to the task's target Session. The clock reading and the four
# reminder tools belong to the `standard`, `cordis`, and `ptc` presets,
# which declare them in their own scope.
- id: schedule
name: '@deepseek-ai/dsh-schedule'
# Configuration-surface reads and writes over Typert Remote. Each method
# reports an actionable error when its settings-domain provider is absent.
- id: ui-settings-account
name: '@deepseek-ai/dsh-client-ui-settings-account'
- id: ui-account-notifications
name: '@deepseek-ai/dsh-client-ui-account-notifications'
- id: settings-controller
name: '@deepseek-ai/dsh-api-settings-controller'
# One shared MCP server fleet: Settings-configured servers plus servers
# that installed plugins register, with status and recovery over Remote.
# Credential templates and OAuth grants resolve through the credentials
# provider, so the manager starts after it.
- id: mcp-manager
name: '@deepseek-ai/dsh-mcp-manager'
inject: [credentials]
# Workspace commands and reconnect-safe projection over Typert Remote.
- id: workspace-controller
name: '@deepseek-ai/dsh-api-workspace-controller'
- id: cordis-host-runner
name: '@deepseek-ai/dsh-cordis-host-runner'
# The Host inspect providers are process-global: the registry rejects a
# duplicate id, so they register here once and every preset's `tool-cordis`
# row reads them.
- id: cordis-inspect-providers
name: '@deepseek-ai/dsh-tool-cordis/host'
# Ordinary provider for the parsed Web flags. Its plugin-level injection
# waits for cmdlineArgs; no launcher metadata or special row kind is needed.
- id: web-startup
name: '@deepseek-ai/dsh-web-app/startup'
# ── layer 2: transport/service ──────────────────────────────────────────────
# Plain route-registration carrier; host and port come from the app's
# webStartup provider, with these deployment fallbacks. The dist is served
# by the web-runtime row below through the fallback seat. Routing and
# browser-facing asset paths do not depend on the advertised URL, which the
# web-runtime row owns; Connection reads trust authorities from webStartup.
# This row rejects wildcard binds.
- id: webserver
name: '@deepseek-ai/dsh-host-webserver'
inject: [webStartup]
config:
host: !!js ctx.webStartup.host ?? '127.0.0.1'
port: !!js ctx.webStartup.port ?? 3080
tls: !!js ctx.webStartup.tls
compression: gzip
compressionLevel: 1
compressionThresholdBytes: 1024
# 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 bash runtime variable,
# prints the URL line, and opens the canonical URL after the full Loader
# tree settles and the required-entry audit passes. Invocation-only values
# come from the webStartup provider; the advertised application URL is
# this row's `publicUrl`, otherwise the bind-address URL.
- id: web-runtime
name: '@deepseek-ai/dsh-web-app'
inject: [webStartup]
config:
openBrowser: !!js ctx.webStartup.openBrowser
printUrl: true
publicUrl: !!js ctx.webStartup.publicUrl
surfaceContext: true
# Model context for an agent that inspects or extends the harness serving
# this GUI: value-free prompt sections plus the current checkout and GUI
# URL as optional runtime context. A complete agent-preset persona replaces
# the sections, and a persona that suppresses optional runtime context
# also drops the two value lines.
- id: harness-dev-context
name: '@deepseek-ai/dsh-harness-dev-context'
# The client-plugin reload chain, always mounted: it is idle until a
# rebuild watcher (pnpm run dev:web) actually rewrites client bundles. It
# is a row rather than a child of web-runtime because its node half is a
# client-side package, which a host-side bundle cannot import.
- id: client-hmr
name: '@deepseek-ai/dsh-client-hmr'
# ── browser plugin roster (dsh.client rows; node halves are layer-2 hosts) ──
# Dual-face: the node half scans this tree, composes window.__DSH_BOOT__,
# and serves /plugins/<id>/client.js; the browser half is the module table
# the shell kernel constructs before cordis exists (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. Every API
# request and upgrade passes the loopback, listener-bind, or trustedHosts
# policy; an advertised public URL contributes nothing to it.
- id: connection
name: '@deepseek-ai/dsh-client-connection'
inject: [webStartup]
config:
# Keep invocation authorities (each --trusted-host value) when adding
# deployment values, for example: ['app.internal', ...ctx.webStartup.trustedHosts].
# The listener's bind IP is accepted separately from this list.
trustedHosts: !!js ctx.webStartup.trustedHosts
# Raw Blob and ReadableStream uploads run independently of Connection's
# RPC and generation service.
- id: file-upload
name: '@deepseek-ai/dsh-client-file-upload'
- id: api-remotes
name: '@deepseek-ai/dsh-api-remotes'
- id: cordis-client-runner
name: '@deepseek-ai/dsh-cordis-client-runner'
- id: ui-theme
name: '@deepseek-ai/dsh-client-ui-theme'
- id: locale
name: '@deepseek-ai/dsh-client-locale'
- id: shortcuts
name: '@deepseek-ai/dsh-client-shortcuts'
- id: ui-shortcuts
name: '@deepseek-ai/dsh-client-ui-shortcuts'
- id: ui-layout
name: '@deepseek-ai/dsh-client-ui-layout'
- id: ui-renderer
name: '@deepseek-ai/dsh-client-ui-renderer'
- id: ui-session
name: '@deepseek-ai/dsh-client-ui-session'
# Host reading records (ctx.sessionStatus) and the Session status table behind
# ctx.uiSession.sessionStatus and useSessionStatus.
- id: ui-session-status
name: '@deepseek-ai/dsh-client-ui-session-status'
# Unified resource model: protocol providers behind the useResource hook.
- id: resources
name: '@deepseek-ai/dsh-client-resources'
- id: ui-sidebar
name: '@deepseek-ai/dsh-client-ui-sidebar'
# The right Sidebar: one docking surface per session over ui-dockkit.
- id: ui-sidebar-right
name: '@deepseek-ai/dsh-client-ui-sidebar-right'
- id: office-kit
name: '@deepseek-ai/dsh-office-kit'
config:
outputDirectory: !!js dshHomePath('office-kit', 'outputs')
# Every profile uses the packaged Office skills. Desktop supplies their Python
# environment through the primary runtime named by DSH_PRIMARY_RUNTIME and
# selects `workspace-dependencies`. A Desktop profile launched without a
# nonempty value disables workspace-dependencies and, like the other
# profiles, selects `user` to direct the model to the user's Python.
- id: workspace-dependencies
name: '@deepseek-ai/dsh-tool-workspace-dependencies'
disabled: !!js "ctx.get('profileContext')?.name !== 'desktop' || !process.env.DSH_PRIMARY_RUNTIME"
config:
source: !!js process.env.DSH_PRIMARY_RUNTIME
root: !!js dshHomePath('dsh-runtimes', 'dsh-primary-runtime')
- id: skill-office
name: '@deepseek-ai/dsh-skill-office'
config:
pythonEnvironment: !!js "ctx.get('profileContext')?.name === 'desktop' && process.env.DSH_PRIMARY_RUNTIME ? 'workspace-dependencies' : 'user'"
# The right Sidebar's document tab: bounded file reads with selectable
# Markdown, code, HTML, PDF, Office, and plain-text renderers.
- id: ui-sidebar-documentpreview
name: '@deepseek-ai/dsh-client-ui-sidebar-documentpreview'
# Web profiles opt in; Desktop retains sandboxed HTTP(S) Browser tabs.
- id: ui-sidebar-browser
name: '@deepseek-ai/dsh-client-ui-sidebar-browser'
disabled: !!js "ctx.get('profileContext')?.name !== 'desktop'"
- id: ui-sidebar-terminal
name: '@deepseek-ai/dsh-client-ui-sidebar-terminal'
# The right Sidebar's workspace file tree tab type.
- id: ui-sidebar-files
name: '@deepseek-ai/dsh-client-ui-sidebar-files'
- id: ui-settings
name: '@deepseek-ai/dsh-client-ui-settings'
- id: ui-settings-general
name: '@deepseek-ai/dsh-client-ui-settings-general'
- id: ui-settings-models
name: '@deepseek-ai/dsh-client-ui-settings-models'
# Plugin management: the sidebar Plugins page installs, enables, disables,
# and removes the profile's bundles through the `pluginManager` Remote.
# Without a profile-backed Host it reports itself unavailable.
- id: ui-plugin-manager
name: '@deepseek-ai/dsh-client-ui-plugin-manager'
# Read-only Plugin list tab in the Settings Plugins section; the built-in
# bundles the sidebar page leaves out are inspected here.
- id: ui-settings-plugin-inventory
name: '@deepseek-ai/dsh-client-ui-settings-plugin-inventory'
- id: ui-conversation
name: '@deepseek-ai/dsh-client-ui-conversation'
- id: ui-approval
name: '@deepseek-ai/dsh-client-ui-approval'
- id: message-quotes
name: '@deepseek-ai/dsh-message-quotes'
- id: ui-chat
name: '@deepseek-ai/dsh-client-ui-chat'
# Official occupants for the sidebar brand slots and the home whale frame layer.
- id: ui-brand-official
name: '@deepseek-ai/dsh-client-ui-brand-official'
- id: ui-attachment
name: '@deepseek-ai/dsh-client-ui-attachment'
- id: ui-file-drag
name: '@deepseek-ai/dsh-client-ui-file-drag'
# Tool call tree, generic fallback, and keyed business Tool views.
- id: ui-tool
name: '@deepseek-ai/dsh-client-ui-tool'
- id: ui-cordis
name: '@deepseek-ai/dsh-client-ui-cordis'
- id: deliverable-file-references
name: '@deepseek-ai/dsh-deliverable-file-references'
# Turn tail: the changed-files card and delivery cards 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'
# Records each top-level turn's changed files from git working-tree
# snapshots; the changed-files card above renders its events.
- id: workspace-changes
name: '@deepseek-ai/dsh-workspace-changes'
- id: ui-workspace
name: '@deepseek-ai/dsh-client-ui-workspace'
# Durable workflow lifecycle as an independent Chat node after the
# existing generic workflow tool row.
- id: ui-workflow-run
name: '@deepseek-ai/dsh-client-ui-workflow-run'
# Input triggers: the '/' | '@' pipeline (ui-input-trigger), the command surface over
# it (ui-commands), and the reference sources (ui-skill / ui-reference).
- id: ui-input-trigger
name: '@deepseek-ai/dsh-client-ui-input-trigger'
- id: ui-commands
name: '@deepseek-ai/dsh-client-ui-commands'
- id: ui-skill
name: '@deepseek-ai/dsh-client-ui-skill'
- id: ui-agent-team
name: '@deepseek-ai/dsh-client-ui-agent-team'
- id: ui-subagent
name: '@deepseek-ai/dsh-client-ui-subagent'
- id: ui-reference
name: '@deepseek-ai/dsh-client-ui-reference'
# Display masking for recognized credentials in sent user text; remove
# this entry to draw credentials as written.
- id: ui-secret-mask
name: '@deepseek-ai/dsh-client-ui-secret-mask'
# Background jobs: the session-header roster with on-demand streaming
# record panels over the session job-output service.
- id: ui-jobs
name: '@deepseek-ai/dsh-client-ui-jobs'
# Task management and Session reminder catalog over the Host Schedule
# service mounted above.
- id: ui-schedule
name: '@deepseek-ai/dsh-client-ui-schedule'
# Goal surface: GoalBar in the input dock over the goal session projection.
- id: ui-goal
name: '@deepseek-ai/dsh-client-ui-goal'
# The feedback surface: Like/Dislike in the assistant-message action
# strip, the feedback dialog behind Dislike and /feedback with its
# acknowledgement toast, over the messageFeedback and sessionFeedback Remotes.
- id: ui-message-feedback
name: '@deepseek-ai/dsh-client-ui-message-feedback'
# Model selection: the /model popupSelect + composer seat over session.models.
- id: ui-model-selection
name: '@deepseek-ai/dsh-client-ui-model-selection'
- id: ui-permission
name: '@deepseek-ai/dsh-client-ui-permission-presets'
# The agent-preset row in General settings: the default preset for
# sessions created later. Absent a roster it renders nothing.
- id: ui-agent-preset
name: '@deepseek-ai/dsh-client-ui-agent-preset'
# Region-local More menus: pin or unpin plugin launchers and start a
# plugin draft.
- id: entry-customization
name: '@deepseek-ai/dsh-client-ui-entry-customization'
- id: ui-settings-session-log
name: '@deepseek-ai/dsh-client-ui-settings-session-log'
# The Built-in plugins settings section: the navigation entry and the tab
# row the inventory tab registers into. The official configuration pages
# are the companion rows below.
- id: ui-settings-plugins
name: '@deepseek-ai/dsh-client-ui-settings-plugins'
# The official settings pages: one companion package per host-plane
# namespace, each registering its page into the Plugins page while the
# Host serves the namespace.
- id: ui-settings-shell
name: '@deepseek-ai/dsh-client-ui-settings-shell'
- id: ui-settings-agent-loop
name: '@deepseek-ai/dsh-client-ui-settings-agent-loop'
- id: ui-settings-subagent
name: '@deepseek-ai/dsh-client-ui-settings-subagent'
- id: ui-settings-web-search
name: '@deepseek-ai/dsh-client-ui-settings-web-search'
# Plan control: the composer plan seat over the plan projection + /plan channel.
- id: ui-plan
name: '@deepseek-ai/dsh-client-ui-plan'
- id: ui-user-questions
name: '@deepseek-ai/dsh-client-ui-user-questions'
- id: ui-trajectory
name: '@deepseek-ai/dsh-client-ui-trajectory'
# ── the agent plane moves behind agent presets ─────────────────────────────
#
# Every row below composes what ONE agent contributes to the host registries:
# its tools, its prompt sections, its delegation backends. The base keeps them
# for the TUI, which is single-session and composes its agent process-wide; the
# Web surface disables them here and lets each session mount a preset instead.
#
# Disabling rather than deleting is deliberate: the base is shared, and a row
# absent from a surface overlay would silently reappear the day someone reorders
# the composition.
# `shell-env` STAYS in the host plane: `apps/cli/src/web.ts` injects it to
# publish `DSH_WEB_URL`/`DSH_WEB_MODE`, and a host row that injects a service is
# the criterion for host-plane ownership — injection resolves before any session
# exists, so there is no agent to key by. Behind a preset realm those variables
# would never reach the model's shell at all.
- id: tool-plugin-manager
disabled: true
- id: tool-bash
disabled: true
- id: tool-pwsh
disabled: true
# The background-job REGISTRY stays on the host plane; only the model-facing
# `job_*` controls move. Its producers — `tool-bash` here and `tool-terminal`
# elsewhere — are preset rows that resolve it
# with `ctx.get`, and an entry-local realm around the registry is invisible to
# every sibling row outside that realm, so `run_in_background` answered
# "background jobs unavailable" while the controls sat in the catalog. That is
# the `goals` criterion read from inside the preset: a Service a row outside its
# realm READS belongs to the plane both can see. The registry is keyed by owning
# agent, so one host instance serves every session exactly as before presets.
- id: tool-jobs
disabled: true
- id: tool-fs
disabled: true
- id: tool-fs-search
disabled: true
# The `skill` REGISTRY stays in the host plane. It is host+per-scope layered
# (the tools-registry shape): deployment-level providers — repository plugins,
# a host skill-filesystem row — register into its global layer, while a preset's
# `skill-filesystem` registers into that preset's layer, and each agent reads the
# merged catalog its scope chain selects. Only the per-agent rows move behind
# presets: the base host `skill-filesystem` row is disabled here (presets own local
# discovery), and `tool-skill` is what a preset mounts to give its agent the
# catalog and loader at all.
- id: skill-filesystem
disabled: true
- id: tool-skill
disabled: true
# The goal service and session driver stay on the host plane, where Gateway
# remotes resolve them. Presets own the human command and model-facing tool.
- id: command-goal
disabled: true
- id: tool-goal
disabled: true
- id: plan-mode
disabled: true
# The token METER stays on the host plane; only the compaction backend that
# reads it moves. It owns the context-meter projection units, and that table is
# process-wide, so preset ownership would make the meter a function of which
# presets happen to be mounted rather than a per-session fact. Same criterion as
# `tasks` and `goals`; the reasoning has one home in
# `.agents/notes/implemented/architecture/2026-08-10-host-plane-ownership-after-presets.md`.
- id: compaction-basic
disabled: true
- id: command-compact
disabled: true
- id: tool-result-pruner
disabled: true
# The subagent registry and its backends belong in the host composition: browser
# prompt and interrupt requests share its runtime, and provider names are unique
# within the registry. Presets select the delegation tools visible to each Agent.
- id: tool-subagent-control
disabled: true
- id: tool-subagent
disabled: true
- id: tool-subagent-fork
disabled: true
- id: workflow-ptc
disabled: true
- id: tool-workflow
disabled: true
- id: agent-instructions
disabled: true
- id: tool-todo
disabled: true
- id: tool-web
disabled: true
# The preset selection registry. The shipped preset declarations follow as
# separate patch files under `presets/`, listed after this file in
# `package.json` `dsh.bundle.patch`.
- insert:
- id: agent-preset-registry
name: '@deepseek-ai/dsh-agent-preset-registry'
config:
default: standard