* fix(typert): accept plain JSON values from any realm An isolated Client plugin builds its values in an iframe, so they inherit that realm's Array.prototype and Object.prototype, and the identity checks in the Remote JSON validation and the Gateway's record checks rejected them. dsh-util-values exports hasPlainPrototype, which matches this realm's intrinsics by identity and another realm's through their native constructors. isRemoteJsonValue and the Gateway's event-frame and event-request record checks use it. Objects and arrays that inherit any other prototype stay rejected, so an inherited toJSON cannot rewrite a validated value. * fix(client-store): compare Maps and Sets from any realm in shallowEqual shallowEqual delegated to zustand/shallow, which recognizes collections with instanceof Map and instanceof Set. A selector in a script-isolated plugin returns collections built by its iframe realm, so both checks failed and two Maps fell through to an Object.keys comparison, where any two Maps are equal. ui-workflow-run selects its running members as a Map, so under isolation its "Open ..." member buttons never appeared. shallowEqual now recognizes Maps and Sets by their Object.prototype.toString tag and otherwise keeps the one-level semantics: Object.is for scalars and values, Set membership, and own enumerable string keys for other objects and arrays. A Map comparison also requires each key to exist in the other Map, so new Map([["a", undefined]]) no longer equals new Map([["b", undefined]]). zustand remains a development dependency for createStore and subscribeWithSelector. * fix(ui-sidebar): ease the sidebar width from its layout owner props ui-sidebar eased its width under `[data-animating]:not([data-dragging])`, attributes of ui-layout's frame. With ui-sidebar's styles isolated that ancestor lies outside its scope, so collapse and expand lost the easing. ui-layout now passes the same state through `SidebarOwnerProps.animating`, true while the frame eases its tracks and false during a resize drag or a viewport change. The sidebar marks its own root `data-sidebar-animating` and keeps the width transition there, after the quiet-scrollbar transition it replaces, and reduced motion still turns it off. * fix(ui-chat): style only Chat's own DOM inside the Conversation scrollport ui-chat laid out its frame, scroller, aside layer, back-to-bottom control, and turn rail under `:global([data-conversation-scroll]) .x`, and set `overscroll-behavior-y` and `overflow-anchor` on ui-conversation's scrollport through `[data-conversation-scroll]:has(.root)`. With ui-chat's styles isolated, neither form matched, so Chat scrolled itself inside the shared scrollport and lost its anchoring, back-to-bottom position, and floating controls. Chat's rules now test the scrollport in `:is()` on its own compounds, `.frame:is(:global([data-conversation-scroll]) *)`, with unchanged specificity. The scrollport rules move to their owner: ui-conversation reads `data-conversation-overscroll="none"` and `data-conversation-scroll-anchor="none"` from an element a View marks inside the scrollport, and Chat marks its root with them, the second only while it follows the tail. * fix(ui-sidebar-documentpreview): hide the body a filling navigator covers ui-sidebar-files hid the body of any row marked `data-files-navigator-row` while its navigator Factory filled the row. The document preview's content row is documentpreview's DOM, so with ui-sidebar-files' styles isolated the covered preview stayed visible and reachable by Tab. The preview's own stylesheet now holds those rules on its `.content` row, reading the navigator's `data-files-navigator-mode` through the row's `:has()`, so the preview hides its body itself in both modes. The files page row never had a covered sibling, so ui-sidebar-files drops the rules and the `data-files-navigator-row` mark, and its README and Factory documentation state that the host hides the covered content. * chore(workflow-ptc): regenerate the workflow guest for the util-values prototype checks The guest bundles packages/util/values; its same-realm Object.prototype and Array.prototype fast paths changed the generated source.
description, kind
| description | kind |
|---|---|
| The DeepSeek Harness package workspace: how the npm packages under packages/ are grouped, what each group owns, and the conventions that bind them. | package-group |
Packages
English | 中文
Summary
The harness is assembled from npm packages under packages/, grouped by capability family: sessions and the agent loop, model-facing tools, shell and filesystem execution, web access, subagents, and the rest. Use this page as the top-level map: find the owning group, then open its README for the package list. Every package is scoped @deepseek-ai/dsh-* and lives in exactly one group; each group README is the authoritative package map for its family.
Table of Contents
Package groups
Every package lives in exactly one group; new packages join existing groups, and a new group updates its own README and this table.
| Group | Role |
|---|---|
core/ |
Product API spine: sessions, prompts, tools, agent services, and the concrete loop |
api/ |
Remote BFF assembly and Typert RPC gateway |
typert/ |
Type graph generation, artifact loading, and runtime registry |
goal/ |
Same-session goal persistence and lifecycle |
schedule/ |
Host-owned scheduled follow-ups |
feedback/ |
Human feedback capture and command |
telemetry/ |
Shared Cordis OTel reporting channels |
identity/ |
Shared anonymous identity |
llm/ |
LLM capability family: abstract service + provider adapters |
subprocess/ |
Subprocess capability family: Service Definition + local process-tree provider |
ssh/ |
POSIX remote connection with paired filesystem, subprocess and sandbox providers |
shell/ |
Bash capability family: executor seam, local impl, model-facing tools |
terminal/ |
Persistent PTY service with owner-scoped sessions and a local shell backend |
ptc-runtime/ |
PTC execution capability family: Service Definition + sandboxed Node provider + PTC mode Consumer |
computer-use/ |
Exclusive named desktop-provider registration |
browser-use/ |
Exclusive named browser-provider registration |
sandbox/ |
Process-confinement seam; bwrap/Landlock/Seatbelt backends |
deliverables/ |
Turn deliverables: explicit file delivery and recorded workspace changes |
fs/ |
Filesystem capability family: seam, local impl, model-facing file tools, discovery tools |
lsp/ |
LSP capability family: seam, generic stdio provider, and the lsp tool |
skill/ |
Skill capability family: provider registry, local provider, model-facing catalog/loader |
connector/ |
Plugins connecting third-party services through existing capabilities |
compaction/ |
Compaction capability family: Service Definition + basic provider + command Consumer |
context/ |
Model-visible request context: workspace instructions, time context, references |
subagent/ |
Subagent capability family: provider-registry contract and model-facing delegation tools |
team/ |
Team coordination: shared task boards and model-facing task tools |
jobs/ |
Generic background-job runtime and model-facing job control tools |
experimental/ |
Capabilities under evaluation; status and support policy |
workflow/ |
Workflow seam, PTC process engine, and the model-facing workflow tool |
web/ |
Web capability family: seam, search/fetch providers, model-facing web tools |
document/ |
Shared Host Office rendering, conversion, and recalculation, the Office tools, and Kit engine resolution |
attachment/ |
Durable attachment identity, validation, local content-addressed storage |
spill/ |
Spill capability family: storage seam, local impl, tool-result spill policy |
todo/ |
The model-facing todo_write tool |
plan/ |
Plan collaboration state with a direct entry command and reviewed exit |
preset/ |
Per-session agent composition from preset cordis.yml files |
guard/ |
Loop-hygiene guards: advisory repeat-call reminders + the tools/execute deadline enforcer |
bundle/ |
Installable dsh --profile patch layers |
extensions/ |
Agent runtime self-modification: live plugin/service inspection and model-written mount/unmount |
mcp/ |
External Model Context Protocol servers exposed as native tools |
session/ |
Durable session data plane: persistence seam + backends, projection seam, log-backed titles, session reporting |
session-query/ |
Session retrieval family: logical corpus, bounded reads, lineage, semantic filtering, SQLite full-text search |
settings/ |
User-settings seam + file-backed provider |
credentials/ |
Credential-reference and credential-record seam + env-over-.env provider + authorization flows that ask a human |
account/ |
DeepSeek account sign-in and Host-only request credentials |
storage/ |
Non-session storage hub + backends + domain form |
workspace/ |
Workspace entity |
sdk/ |
Out-of-process SDK: JSON-RPC protocol and TypeScript client/server |
acp/ |
Automation-only Agent Client Protocol server |
interaction/ |
Human-collaboration plane: approval/interaction seams, permission preset, commands, ask-user tool |
boot/ |
Shared app-bin boot glue |
host/ |
Web GUI host services, directory picking, application launch, plugin inventory, and product telemetry |
client/ |
Web-GUI browser half: shell, wire, object services, slots, ui-* plugins |
test-support/ |
Test infrastructure (testkits, replay, Loader smokes) |
util/ |
Low-level utilities and data-only package lists shared across groups (Branded<B>, home/path helpers, timeout, retention, official bundle lists) |
Release expectations
Product groups have maintained product roles, while their public APIs remain pre-stable. Experimental status is independent of publication, installation, and optional delivery. Nonexperimental runtime packages must have product use or an explicit package classification; SDK, build, test, and declaration infrastructure have separate classifications.
Dependencies
The dependency graph is generated: docs/module-graph.md (pnpm run gen-module-graph, freshness-gated in CI).
Extension plugins depend on Service Definitions, never concrete providers. dsh-agent-loop is swappable; UI, hook, and tool plugins use dsh-agent. Composition bundles may depend on spine plugins. Capabilities separate Service Definition / Service Provider / Consumer roles when they evolve independently; see capability seams.
Package README contracts
Every package README covers purpose, configuration, extension points, and Model Experience unless the model-agnostic omission allowlist exempts it. It also carries ## Known Limitations and Deferred Work or uses its allowlist. Package conventions — exports, service access, tests — live in packages/AGENTS.md.
Dev Note
Working context for maintainers — click to expand
None.