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 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.
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.
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
Group each selected list registration under one layout-neutral item, including a fixed only selection. Preserve registration identity and distinguish an empty component from a missing row. Adapt the affected panel, settings and toolbar consumers without changing other slot kinds.
BREAKING CHANGE: CSS selectors and DOM queries that cross a rendered list entry must account for its data-slot-item root.
* perf(session): merge short SQLite frames inside the append transaction
Live writes store one to three events per frame, so compression barely
works. When the newest short frames of a Segment reach frameEvents events,
the append transaction re-encodes them as full frames. The frames_no_delete
trigger is dropped from the unreleased schema and from existing databases.
Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>
* perf(session): read SQLite frame payloads only for a merge
Scan only frame ranges to decide whether the trailing short frames merge,
then read their payloads. Append decoded lines one by one so a large
frame size cannot exceed the argument limit.
Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>
* perf(session): cap SQLite frame merges by decoded bytes
A merge skips a run of short frames whose stored or decoded text exceeds
4 MiB, bounding how long it holds the event loop and the write lock. Tests
cover merged compression, the live event path, a failure after the merge's
delete, and large events; a seeded synthetic diagnostic measures size and
append cost. Documentation drops the one-frame-per-write wording and lists
the write stop after short-frame corruption.
Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>
* perf(session): store short SQLite frames uncompressed until merged
A short frame below min(64 KiB, 2 MiB / frameEvents) of JSON text is stored
as text; the merge compresses it together with its neighbours. This skips a
compression on every live append that the merge would redo, and keeps any run
of such frames within the 4 MiB merge limit.
Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>
* perf(session): seal short SQLite frames when a writer closes
* test(session): assert the reported seal failure without an untyped matcher
---------
Co-authored-by: Turtle <turtle1999@deepseek.com>
Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>
Co-authored-by: Magolor <magolor@qq.com>
* fix(headless): preserve preset selection and release closed turn state
* fix(agent-presets): report invalid preset selections and keep stored headers
Validate only agent-preset/selected records in the agentPreset projection and name the event sequence in the failure. The state and view schemas accept every header value the Session validator admits, so an empty stored header no longer fails restoration.
* fix(agent-presets): keep trusting logged preset selections
Restore the agentPreset projection, its tests, and the Agent Note consequence to their master state. Writers record non-empty preset IDs only, and Session format admission owns payload validation for stored events, so the projection does not re-validate the typed event payload.
Bind each children outlet to the slot passing it to the layer. Key compiled HOC chains by the slot name as well as the declaration and dispatch key so distinct named slots can safely reuse one spec.
Mark the exact position where each hoc layer renders its children without wrapping the layer itself. Preserve the sidebar rail animation through forwarded outlets.
BREAKING CHANGE: selectors and DOM traversal across a forwarding hoc layer must account for its named display: contents children outlet.
The release family test lists every published experimental package; add
dsh-speech-to-text-deepseek. The new package and its edges push the
dual-release npm graph to 341 packages x 3332 internal edges, above the
1,134,400-unit budget, so raise MAX_RESOLUTION_WORK_UNITS to 1,420,265
(1.25x the measured 1,136,212 units) and record the new timings in the
Agent Note.
The voice bundle summary now names cloud recognition, which the recorded
plugin and recommendation catalogs repeat; update those recordings, their
expected output, and the browser assertion.
Refs #8059
After a prepare step that failed or was cancelled, the published account
is the registration's `unprepared` object. A later check that found
nothing missing, because its own step succeeded or the files arrived
another way, ran `perform` with that account still published; a
`perform` that failed without publishing left it, so the page kept
reporting a missing download that was in place. The Service now
publishes the registration's first account before `perform` in that
case.
Feishu shows the retry view for a check that failed before the account
was read; it showed the checking view without a button.
Refs #8942
Move the DeepSeek cloud recognizer from the harness One-Shot endpoint to the
public /v1/tools/asr API. It is a ctx.deepseekAuth consumer that accepts the
account sign-in and the API key, tries the sign-in first, sends the WAV
unchanged, and never retries. The account service keeps master's token
origins.
speech-to-text drops the client locale, picks the first provider that can
record without preparation under auto, and reports an unlisted saved language
as auto. The voice UI explains cost, links the speech recognition guide, names
API keys beside sign-in, and blocks recording until a switch to local
recognition reaches the catalog.
Refs #8059
ctx.cliAccounts takes an optional `prepare` (phase, unprepared, ready,
run). While it is not ready, a check stages the phase and awaits `run`
before the plugin's `perform`; a failed or cancelled run publishes
`unprepared` and `perform` is not called.
- Feishu and DingTalk declare the lark-cli and dws release downloads as
their prepare step instead of running them in their own check.
- WeCom and Tencent Meeting declare the upstream skills download as
theirs, so the account check waits for the skills and the page can
cancel and retry it. The skills handle is now `installed()` /
`install(signal)`; `state`, `watch()`, and `retry()` are removed.
- `CliPathContext.ready` is replaced by `prepare.ready`.
- Feishu's skill provider invalidates the catalog once lark-cli is in
place after a listing without the entry, including after a cancelled
download that already copied the binary and after an installation made
outside the plugin's download.
Refs #8942