* feat(ui-renderer): scope opted-in package styles on existing slot roots
Share the package style policy between slot dispatch and stylesheet installation. Preserve global themes, root identity and component state through style-only toggles, including nested Factory, HOC and list output.
* fix(dev-web): keep launcher validation independent of package sources
* refactor(ui-renderer): identify generated scope CSS as stylesheet content
* fix(client): keep panel indicators visible under style isolation
Position a shared indicator area on the Session panel toggle. Jobs, Subagents, and Forge paint their own marks without crossing package scopes.
* refactor(ui-renderer): fix each package style scope for the page
Stamp the content supplier on existing slot roots. Read its page-owned mode when registering content and writing stylesheets instead of subscribing the render tree to live policy changes.
* fix(ui-renderer): keep scoped styles with their actual package
Resolve Loader aliases against the page module table and stamp contributions from the renderer’s own module source. Let a valid package stylesheet take over a path rejected during scope preflight or by the destination.
* fix(client-modules): declare the row callback receiver-free
* refactor(ui-renderer): scope styles from their module records
* test(ui-renderer): verify module-record style scoping
* chore(ui-renderer): restore scoped slots to the PR base
* fix(ui-renderer): mark slot roots with their supplying module
* refactor(ui-renderer): bind Factory child slots once per supplier
An outlet belongs to whoever called renderSlot for it, wherever it later
renders. A Factory's child-slot methods are now kept per Factory and per
supplier: the Factory itself for its own Component and fallback locals,
the occurrence's caller for a local it selected. One caller mounting its
local in several places shares one method, and no per-mount binding or
extra occurrence context field remains.
* refactor(ui-renderer): scan a Factory's chain children once
Whether a Factory declares a chain child is recorded once per Factory
beside its per-supplier child-slot methods, instead of once per
supplier. The Factory kit assigns `renderSlot` and `renderSlotChain`
by name rather than copying whichever keys the methods object holds.
* test(client-runtime): expect data-plugin on the mounted slot root
The slot outlet names its supplier on the existing root; the test runtime registers without a package, so the two DOM snapshots gain data-plugin="".
* test(web): launch the panel indicator scenario per isolation mode
The Host reads an entry's client isolation when its plugin starts, so
updating that field on a running entry never reached the boot graph and
the scenario waited forever. Each mode now starts its own Host: the
shipped composition, and one whose overlay declares style isolation for
the panel and the two packages drawing on its toggle. Both check the
boot graph first, then run the same interaction and indicator
assertions.
This reverts commit af6d659de2858d7760acdd680d942166724ffaed, the merge of
#8423.
A bare github.com pull request or gitlab.com merge request URL streamed in
as its full URL and shrank to its owner/name#N reference only when the
reply settled, so the reply reflowed after it finished. The URL arrives
character by character, so the reference cannot be drawn before the URL is
complete. Links keep their written text again, and the Open in code review
URL menu entry, the forgePanel.recognize Remote, and the generic URL menu
adjustments that shipped with it leave with the revert.
Stop observing the isolation option on the Host and on every incoming graph. Record the execution environment with a registered generation so its lazy chunks use the same carrier. Keep the existing Realm provider boot sequence.
Let ordinary revision-based replacements retain every materialized generation until its runtime releases it. Drop unused iframe candidates and stop fetching a removed package instead of creating a new orphaned Realm.
Publish the unstable per-entry script switch in the Host boot graph and keep opted-in bundles out of the Main Realm batches. Activate the Realm providers before isolated code, reuse a frame across its package-local chunks, and release it on replacement or teardown. Dev Web can opt entries in through a transient final overlay.
Refs #8131
* fix(app-boot)!: load bundle plugin rows from the packages their bundles select
The root config tree imports every row from the profile directory. A copy of
a built-in plugin package that a third-party plugin pins is hoisted into
<profile>/node_modules, where it replaced the package of the row that
@deepseek-ai/dsh-base inserts under the same name. The compatibility
admission then disabled that row and DSH started without its services.
createRuntimeResolution now reads the bundle layers in order and records, for
each plugin package name they insert as rows, the package in the nearest
node_modules above the inserting bundle; a bundle installed in the profile
looks no higher than the profile directory. A request whose importer is the
active profile directory itself uses that package before any copy in the
profile; every other importer keeps its lookup. A later bundle that finds
another copy adds a warning and does not change the selection. publish()
compares the selections, so a successor that differs only there is published.
A package installed into a profile no longer replaces the package of a row
that a bundle inserts; the upgrade guide describes the patch that does.
Refs #8476
* test(app-boot): expect the bundle plugin warning to name native real paths
The warning reports directories as the native real path spells them. On
Windows that expands 8.3 short names, which the JavaScript realpath keeps, so
the expected text differed under a short-named temporary directory.
Refs #8476
* fix(app-boot): select shipped peers and preset rows for bundle plugins
A bundle that declares a row's package under peerDependencies selects the
package the running installation ships, so a development bundle linked into
a profile keeps running its row from the host's package, as its own imports
do. Any other row still selects the nearest package above its bundle.
The rows an inserted row lists under config.plugins, as an agent preset
does, count as rows of the bundle that inserts it. A pinned copy in the
profile therefore no longer disables a row of a built-in preset.
Each package name is looked up once per bundle.
* fix(app-boot): bind bundle plugin rows to the bundle that declares them
A plugin row now resolves from the first bundle that inserts it and
declares the package under dependencies or optionalDependencies. The
resolution stores the package name and the bundle directory only: binding
reads one manifest per bundle and looks no package up. A request for a
bound name from the profile directory resolves again as an import of that
bundle does, from the real path of the bundle's manifest, so a source
launch keeps mapping workspace packages to their sources.
A row whose bundle declares the package as a peer, as a development
dependency, or not at all is not bound and keeps the lookup of the profile
directory. A bound row does not fall back to that lookup.
Two bundles that bind one name and reach different copies add a warning;
only such names are resolved while binding.
* fix(app-boot): read the rows of a group named without the group marker
The group plugin mounts its array configuration as rows whether or not the
row carries the `group` marker, and the compatibility admission already
visits those rows. Binding now reads them too, for `cordis:group` and
`@deepseek-ai/cordis-plugin-group`, so a bundle's row inside such a group
resolves from that bundle.
* perf(app-boot): compare bundle plugin copies only for differing ranges
Two bundles that bind one plugin package name and declare the same range
for it are taken to reach the same copy, so binding no longer resolves the
package from both. Only bundles whose declared ranges differ are compared
on disk and can record a warning. The shipped `web` profile, whose two
bundles insert 22 rows of the same names, now reads two manifests while
binding instead of making 90 file-system calls.
* feat(app-boot): print bundle plugin warnings when dsh starts a profile
`reportBundlePluginWarnings` prints each recorded warning to stderr, as
`reportSkippedBundles` does for skipped bundles, and the `dsh` launcher
calls it once after it computes the runtime resolution. A resolution
recomputed while the application runs still only records its warnings.
Review asked for one startup-wait setting instead of an MCP-specific
parameter that each similar need would repeat. The `initialize` parameter
`mcpStartupTimeoutMs` and its TypeScript and Python client options are
removed, so the protocol and both clients match master again.
`sdk-jsonrpc-server` gains `startupWaitMs` (0 by default, at most the timer
maximum). After route validation, `initialize` waits at most that long for
startup work that finishes after Loader settlement, currently MCP manager
servers in their first connection attempt, then answers and logs what is
still pending. The `sdk` profile sets it to 5000, below the TypeScript and
Python handshake timeouts.
Plugin entries export only what the Loader loads, so replace the
isModelListed entry function with LlmRuntime.isModelListed(provider, model)
and route session-controller and subagent catalog checks through ctx.llm.
- Report CONTINUATION_UNAVAILABLE when an agent/created listener wakes a
maintenance restoration before the choice is recorded; the release
cancels the started turn.
- Accept only catalog-listed models in subagents.selectModelByUser, using
the isModelListed check shared with session.selectModel.
- Share the client model-selectable rule and derive ModelDirectory
availability from the subagent address.
- Wait for the maintenance release before reading the child log in the
Web e2e, and fix the Chinese README sentence.
Restore a cold continuable child as a maintenance Activation, record the
choice through its Agent, and release it before returning instead of writing
the stored log directly. The restoration reserves no capacity slot, publishes
no subagent lifecycle events, refuses manager-routed input, and closes from
the idle phase it owns. A child with pending input is refused so that input
stays for its next execution; a child with no saved model restores through the
choice being recorded.
The Models page chose a card layout by namespace id, so a provider row,
whose namespace is its own row id, got the card for a form without a
layout: one line that names the patch file, and a disabled Save.
Settings already sends the page everything it needs to do better. A
provider row's form declares exactly the fields of an entry of the
adapter row's providers dict, because both are built from the same field
schemas, so the page recognizes the row by its form and lays its route
out as a pi-ai route at the root of the row's namespace. No interface
carries the fact, and settings, its Remote controller, and the
configuration editor are unchanged.
A key typed for a row is stored under the credential reference the row
names. A changed field goes to the configuration editor, which refuses a
row that a home patch or overlay adds; the card shows that refusal. While
the profile patch holds no override of a row, the card takes the running
config as the layer a cleared field returns to, so a row that a later
layer adds shows its models and name. A provider row waits for its key as
an ordinary row in the first-run posture, like a dict entry.
The editor is keyed by the route's settings address: when another row
starts to serve the route being edited, the draft and revision read at
the old address are dropped instead of being written to the new one.
The previous commit marked a provider row that a later layer decides as
managed: the configuration editor reported which rows a home patch or
overlay decides, settings and its Remote controller carried that to the
page, and the Models page showed such a row with a tag and a read-only
card.
The page already handles a provider row without any of that. It lists the
row's route, offers no deletion for it, and opens it with its card for a
form it has no layout for, which names the row's section of the patch file
and takes no input; the configuration editor already refuses a write to a
row that a home patch or overlay adds. So the configuration editor,
settings, its Remote controller, and the Models page go back to what they
were, and the change is confined to the adapter package.
The Web test now describes the unchanged page beside a deployment's rows,
and the adapter's test helper stores the profile patch itself instead of
through a parameter added to the settings test helper.
A patch that sets the config of the llm-pi-ai row replaces the `providers`
dict of the layers before it. A deployment's home patch and the profile
patch that the Models page writes therefore cannot both configure
providers: the home patch's dict replaces the person's, and the
configuration editor refuses every later save of that row.
A layer that adds a provider now writes a row of
`@deepseek-ai/dsh-llm-pi-ai/provider`, whose config is the route key and
the profile fields of a dict entry. The adapter row serves those rows
together with its dict. Of the declarations that name one route, the one
that comes last in the composed entry list is in effect, and the dict
takes the position of the adapter's row. The dict, stored profile patches
and the Models page's writes are unchanged.
The configuration editor reports whether a home patch or an overlay
decides the config a row runs with (`managed`), settings forwards it with
the row's plugin name on each descriptor and namespace view, and the
Models page shows a managed provider row with a tag and a card whose
controls are disabled.
Providers list their voices and the synthesis registry saves one voice
preference in its profile entry, as voice input saves its language. The
read-aloud Remote reports the voices, saves a choice, fixes the voice of a
reading when its plan is made, and speaks a Host-owned sample sentence.
The bundle details gain a voice field and a speaker that plays the sample
with the three states of the read control. The DeepSeek provider's own
voice key moves to the registry. The details text lists the supported
languages; the API detects the language itself and accepts no choice.
Add five experimental packages: the text-to-speech registry, the DeepSeek
cloud synthesizer, the read-aloud Remote that plans segments and streams
their audio, the Client action and notice, and the optional bundle, titled
语音朗读 in Chinese.
A reply is cut into segments of about thirty seconds. Each segment is one
request to /v1/tools/tts, sent only when at most fifteen seconds of the
received audio is unplayed, so stopping a reading leaves the later
segments unsent and unbilled.
The Host reduces the reply's Markdown to speech text itself and finds
formulas by their dollar delimiters; the math syntax packages are left out
because they install KaTeX into the runtime. The build embeds the Markdown
parser, whose installed browser build reads document inside a Web Worker
Host.
The previous commit held every SDK `initialize` for up to 30 seconds through
an `sdk-jsonrpc-server` config field. That wait outlasts the TypeScript
client's 10-second handshake timeout and most of the Python client's
30-second one when an MCP server hangs, so the field is removed and the wait
becomes a request parameter.
`InitializeParams.mcpStartupTimeoutMs` (0 to 2147483647) holds the answer,
after route validation, until `mcpManager.whenSettled()` reports no server in
its first connection attempt; omission or `0` answers at once. The Python
`DeepSeekHarness` sends `mcp_startup_timeout_seconds` (5 by default) and
`HarnessClient.initialize` accepts it explicitly; the TypeScript client sends
`mcpStartupTimeoutMs` only when configured. A manager with no listed server
settles at once.
MCP manager servers mount after the manager activates, outside Loader
settlement, so an SDK client that prompts right after `initialize` reached
the model before their tools registered.
`McpServerManager.whenSettled(signal)` resolves once no listed server is
`connecting` with `attempt: 0`; any later state counts, including failures
and reconnect attempts. The SDK server awaits it after Loader settlement for
at most `mcpStartupTimeoutMs` (30 seconds by default, `0` skips the wait),
then answers `initialize` and logs the servers still connecting. Desktop and
Web readiness are unchanged.
The `mcp-manager` SDK snapshot no longer waits for the fixture before
prompting; `initialize` alone puts both MCP tools in the first request.
Let the Office kit trust the argument rules its model-facing tool already enforces, and stop validating PNG chunk structure the splitter inherently depends on.
Rename dsh-tool-office to dsh-tool-document and office_render/convert/recalculate to document_*, keep the old names readable for pre-rename Sessions, and fix the Poppler page-count forgery, per-run pdfinfo, and real-Poppler test provider reported in review.
Refs #9015
Add a renderer option to office_render and a per-type renderer order to the Office kit. PDFs use Poppler pdfinfo/pdftoppm through piped short-lived subprocesses when available, falling back to LibreOffice only when Poppler is unavailable.
Refs #9015