Resolves import conflicts with the brand-export split (#8214): value
brand factories are now brandString<T>() calls, and dsh-workflow's
WorkflowRunId is imported from its types entry. Generated persistence
and config catalogs are regenerated.
A fatal WorkflowError such as AGENT_CAP or ITEM_CAP was rendered to text
inside the PTC guest, so the workflow tool could only report RUN_FAILED.
WorkflowResult and the workflow/end payload now carry errorCode, the
code of the fatal error that ended an error run; the host validates it
at the process boundary and the tool fails with that code. RUN_FAILED
remains only for an error run without one: the script's own exception or
an engine runtime failure. WorkflowError narrows code to
WorkflowErrorCode.
Refs #7869
Add 'uiSession.sessionStatus' to the Cordis inject of ui-conversation,
ui-workspace, ui-subagent, and ui-workflow-run, whose components call
useSessionStatus. Unloading or reloading ui-session-status now stops these
plugins and starts them again instead of leaving their components calling
a missing hook. A whole-client test disables and re-enables the status
entry and checks that the Workspace browser and Conversation shell leave
and render again without errors.
Address the documentation, comment, and test review points: the status
class JSDoc states only its contract and links the README, the ctx.slots
type merge moves to the module that reads ctx.slots, the upgrade guide
separates type-only dependencies from hook consumers, and the
stop-shortcut test name states the invariant it guards.
Refs #4076
Move packages/api/session-status (@deepseek-ai/dsh-api-session-status) to
packages/client/ui-session-status (@deepseek-ai/dsh-client-ui-session-status):
the package has no Remote or Host behavior and depends on ui-session, so it
belongs to the Client group. The uiSession.sessionStatus service,
ctx.uiSession.sessionStatus, useSessionStatus, and UiSessionService keep
their names.
Add the package to the Web client's required boot entries, so startup is
rejected when the status table cannot be imported or fails to apply, as it
was when the table lived in the required ui-session entry.
Refs #4076
Move the Client Session status table (running state, the effective
pending interaction, and completion reminders) and the useSessionStatus
root hook out of ui-session into the new @deepseek-ai/dsh-api-session-status
package. The UiSessionStatus service is provided as uiSession.sessionStatus
and read as ctx.uiSession.sessionStatus through the mergeable
UiSessionService type of ctx.uiSession.
Pending-interaction registration, precedence, withdrawal, and teardown
delegation stay in ui-session unchanged; ui-session now exposes the
effective requests read-only as ctx.uiSession.pendingInteractions, which
the status table and the Conversation stop shortcut consume. ui-session no
longer depends on api-remotes.
Refs #4076
A lens registration's disposer now waits for the classification itself,
and a run whose registration ended or whose caller left before it started
never reaches the lens; changesLens refuses a lens withdrawn while the
files were read and a local result whose files changed during the run.
The extension state names each lens's version, so the view keys results
by source, files, lens, and version. Hunks holding an open comment form
or a saved browser comment stay unfolded, the view reads threads and
viewed marks again on reviewRevision, a thread jump clears a lens that
hides its file, and the Client entry re-exports the lens types.
Master's unreleased ptc-bootstrap-protocol guide already covers protocol
version 3, so the scoped-repl format, the PtcProgramFormat member and the
dsh-ssh bootstrapHash step join it instead of a second guide. Re-record the
README, Note and guide translation pairs after the rebase.
With replScoped: true, persistent-in-memory runs each call as a separate
VM Script in one retained context. Each call starts with copies of the
top-level bindings left by earlier calls, so a later call may declare any
earlier name again with any keyword while earlier functions and
still-running code keep their values. Results, top-level await, errors
and asynchronous failures follow the existing REPL evaluator; modules
load only through dynamic import(), resolved from the environment's first
working directory.
The control protocol moves to version 3; the upgrade guide covers
preinstalled bootstraps and the new PtcProgramFormat member. The Agent
Note records the decision and its comparison with node:repl and
vm-script, and the ptc-scoped-repl snapshot pins the model guidance.