Review of the consumers layer: - `SandboxPolicyRequest.root` is removed. `resolve` answers only for a Session. `prepare` accepts a Session or a checkout directory and returns that checkout's validated Git administration directories. The worktree service builds the policy of removal and restoration itself: the Session's mode and grants, the source checkout as the root, and that checkout's derived directories. The forge panel swaps the root for its two reads of the source repository. - The Git layout reads move to `src/linked-checkout.ts` with direct tests; the security rationale stays in the README, which the function comment links. - `resolve` and the model-visible policy share one merge of configured, registered, and derived writable roots. - `workspace-files` takes a live Session's root from the sandbox policy instead of repeating its fallback chain. - `TurnRecorder` takes a fixed directory and an explicit `moveTo`, which the plugin calls on `workspace-root/change`; each turn keeps its own canonical paths. A real-sandbox test restores a missing worktree of a linked source checkout in a process that never worked in it.
description, kind
| description | kind |
|---|---|
| Runtime API inspection, process-local runners, and historical Cordis cards. | package-group |
packages/extensions
English | 中文
Summary
The extensions group provides read-only runtime API discovery for agents, process-local runners for programmatic and browser consumers, and historical generated-plugin cards. Standard and Creator modes install persistent plugins through Plugin Manager. Choose a child package for inspection, Host execution, Client execution, or browser controls.
Table of Contents
Packages
| Package | Role | ctx key |
|---|---|---|
tool-cordis |
One read-only tool for runtime API discovery | registers on ctx.tools |
cordis-host-runner |
Host half: definition registry, sandboxed host-half lifecycle, and the inspect registry that answers browser queries | provides ctx.dynamicCordisRunner and ctx.cordisInspect |
cordis-client-runner |
Browser half: evaluates a browser-half source into a live plugin and answers run requests | client face; provides browser ctx.dynamicCordisRunner |
ui-cordis |
Browser panel and historical lifecycle tool cards | client face; registers slots |
Related documentation
- Extensions subsystem — the generated
ctx.cordisInspectandctx.dynamicCordisRunnerservice API. - Generated tool catalog — the read-only inspection tool schema.
- Generated configuration catalog — the runner's accepted config fields.
- Self-referential Cordis toolset reference — design home for sandbox semantics, lifecycle, and composition.
- Client shells and dynamic packages Agent Note — package placement and build faces for the client halves.
Dev Note
Working context for maintainers — click to expand
The two browser-half packages live in this group rather than under packages/client/ because they are halves of this subsystem's dual-half packages; the client face compiles them through the client program, while the host program references only the host runner.