* 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 |
|---|---|
| Package map for the application's Remote layer: typed Client-to-Host capability calls, results, and forwarded events, for users and maintainers navigating the group. | package-group |
api/ — Remote API layers
English | 中文
Summary
The api/ group provides the application's Remote layer: a Client environment can call the business capabilities running on the Host — manage goals, run commands, list the plugin inventory, discover file and session references — as typed method calls, receive results or streams, send uplink items on an open stream, and observe forwarded Host events. remotes decides which capabilities are exposed and how each call reaches the right session's agent; gateway carries the calls and their results between Client and Host. The stack runs over the application's shared Connection; streaming session data is deliberately outside it.
Table of Contents
Packages
The packages below provide the Remote layer; the package READMEs own the exhaustive contracts.
| Package | Role | ctx key |
|---|---|---|
remotes/ |
Chooses which Host capabilities and events the Client can consume. | — |
gateway/ |
Carries typed unary calls, multiplexed streams with their Client uplinks, and forwarded Host events. | ctx.typertGateway / ctx.remote |
remote-access/ |
Decides which Remote methods non-owner Peers may call, filters list results, and streams each Peer's access snapshot. | ctx.remoteAccess / ctx.remote.remoteAccess |
job-controller/ |
Streams one background job's observation record to the Client. | ctx.jobController / ctx.remote.job |
session-controller/ |
Owns Session commands, history streams, live control state, and Agent/Session identity policy. | ctx.sessionController / ctx.remote.session |
settings-controller/ |
Owns the configuration-surface reads and writes over the settings-domain seams. | ctx.settingsController, ctx.credentialsController / ctx.remote.settings, ctx.remote.credentials |
workspace-controller/ |
Owns Workspace mutations and the complete Client Workspace projection. | ctx.workspaceController / ctx.remote.workspace |
terminal-controller/ |
Session-owned interactive shells, screen recovery and browser terminal control. | ctx.terminalController / ctx.remote.terminal |
workspace-files/ |
Owns bounded workspace file access — stat, paged read, list, and the instrumented-operation changes feed — and the Client file resource provider over it. |
ctx.workspaceFiles / ctx.remote.workspaceFiles |
Remote calls run Client → Host over the application's shared Connection; stream items flow Host → Client on the Gateway mux, and a stream's uplink items flow Client → Host on the same logical stream. API Gateway owns Remote transport, while the controller packages own Session, configuration-surface, and Workspace behavior. Feature packages register exact Connection Fetch routes for responses that do not fit Remote invocation, such as streamed downloads.
Related documentation
Start with the API Gateway reference to see the Remote model end to end, then the Typert subsystem page for the shared definitions and Connection for the physical carrier.
- API Gateway reference — the current-state reference for the Typert API Gateway: programming model, generation pipeline, and runtime invocation.
- Typert subsystem reference — the public contracts shared by protocol, Gateway, and consumer assemblies.
- Connection — the RPC carrier,
/apitrust fence, and response envelopes behind every Remote call.
Dev Note
Working context for maintainers — click to expand
None.