Review suggested keeping the byte-count comparison at the call site
instead of exporting a one-line filter with its own spec case, and
pointed out that the session snapshots already replay the routing body
so the added keyless case duplicated that guard. Both hold: inline the
comparison in the export case with the rationale in its comment, delete
deliveredConversions and its spec case, and drop the skill-office case.
Review found that matching the recorded command text against the reported
temporary path only proved the command mentioned that path, while the
byte count carried the discrimination, and that a copy written with a
variable, a changed directory, or a relative name would fail the check
even though the deliverable was the same file. Match the reported size
only and keep the commands in the failure diagnostic.
Review also found that the Render-the-saved-deliverable message check
cannot fail: no repository text injects that instruction. Drop the new
message-only helper, restore the shared render-context assertion, and
leave the no-render rule to the routing guard in skill-office.spec.ts.
The export case asserted that the model loads no format skill, calls no
office_render, and runs no PDF parser command. Those assertions measure
model-selected extra steps on a sampled lane: run 44008246438 failed three
attempts on three different assertions while office_convert produced the
PDF in each one.
Judge the artifact instead: office_convert is called with format pdf, the
shell copies the temporary file the tool reported, the delivered bytes
match its reported size, the header is %PDF-, and the source is unchanged.
Extra inspection steps stay allowed.
Pin the routing rules the removed assertions proxied (operations need no
format skill; a PDF export is delivered without rendering) in a keyless
test, and cover the provenance helpers with their own negative examples.
Name every empty catch binding, state why each discarded failure is safe,
and narrow each wide try to the single statement whose failure is tolerated.
The empty-catch baseline is now empty.
pluginMarketToolError recognizes the market service's in-process
RemoteError by its declared plugin-market/* code instead of the
mechanism-internal remoteErrorOf. readPrimaryRuntime reports only a
missing runtime.json or invalid JSON as INVALID_PAYLOAD; other read
failures propagate and become PREPARATION_FAILED.
Refs #7869
Both are hand-checked argument constraints, like the blank web_search
query, so they throw ToolArgsError and gain the invalid arguments:
prefix. SkillError no longer declares SKILL_INVALID_NAME.
Refs #7869
load_workspace_dependencies failures now carry WorkspaceDependencyError:
WORKSPACE_DEPENDENCY_INVALID_PAYLOAD for a missing, unreadable,
malformed, or inconsistent runtime.json and for missing or wrong-kind
payload entries and interpreter aliases; WORKSPACE_DEPENDENCY_UNSUPPORTED_PLATFORM
for another target; and WORKSPACE_DEPENDENCY_PREPARATION_FAILED for any
other filesystem failure, keeping the original error as cause. The
package now declares @deepseek-ai/dsh-error as a peer for HarnessError.
Refs #7869
The skill tool now reports invalid names, unknown skills, and skills
excluded from model invocation as SkillError with SKILL_INVALID_NAME,
SKILL_NOT_FOUND, and SKILL_NOT_MODEL_INVOCABLE. Registry validation of
provider catalogs, candidates, loaded definitions, and runtime
registrations throws SKILL_INVALID_DEFINITION, and a host-filesystem
SKILL.md read that fails for a reason other than absence throws
SKILL_READ_FAILED with the system error as cause. Messages are unchanged.
Refs #7869
* feat(release): publish package source, declaration maps, and documentation
Every release member publishes its TypeScript source and the declaration
maps that resolve into it, and @deepseek-ai/dsh publishes the repository
Markdown documentation staged from docs/ at prepack time.
The ./src/* export most members already declared now resolves for an
installed consumer, and a consumer editor follows a declaration to the
implementation. Bundled JavaScript maps stay unpublished; the vendored
family and the Desktop runtime file policy are unchanged.
Rationale: .agents/notes/implemented/process/2026-10-08-published-source-and-docs.md
* feat(release): publish JavaScript maps and compress bundles
Every emitted JavaScript map ships beside the bundle it describes, and the
workspace build and the client preset compress bundles without mangling
identifiers.
The documentation payload now mirrors the website publication manifest and
is removed again by `postpack`; Desktop and the Python executable exclude
the published source, documentation, and maps; `clean` removes a staged
copy. Typert's publication contract gains the Remote declaration map.
* fix(release): keep node bundles readable for the worker image
The browser worker image lowers `yield*` only as a whole statement and
rewrites `for await` loops by their source layout, so compressed node-side
entries either fail that lowering or lower to unparseable code. Only the
browser bundles keep compression, which removes about a third of their text.
The bundle-purity assertion now matches the module-loader call regardless of
the quote style compression picks, and the release-pack fixture exercises
the installed package's new documentation requirement.
* feat(release): publish the whole documentation tree
`@deepseek-ai/dsh` copies `docs/` in full instead of the website's page
set: the maintainer documents, the generated migration records, the
translation guidelines, and the `*.i18n.yaml` consistency records ship
with the installed package, so the documentation's own links resolve
without a checkout.
* feat(release): publish the upgrade guides with the documentation
The staged documentation keeps the website's page set and adds every
`docs/upgrade-guide/` document, which is what an installed reader consults
when a released change breaks something. The rest of the maintainer tree
stays out.
* test(release): expect source and maps in master's new payload cases
* feat(release): keep installed docs and source readable in Desktop
Desktop keeps the published src/ and docs/ trees inside app.asar, and
every model shell call receives DSH_INSTALL_DIR and DSH_NODE_EXECUTABLE
so an agent can read them through Electron's Node mode. Staging also
generates docs/upgrade-guide/README.md, an index of the upgrade guides
grouped by the release they upgrade from.
Minified client bundles print string literals with backticks: the
worker image packer now recognizes those chunk requests, client license
banners are prepended after minification so their text survives, and
the affected artifact tests accept either quote.
* test(desktop): read archived docs through the Windows PowerShell form
Regenerate the config catalog for the shifted shell-env source line.
* test(desktop): wait for the GUI-subsystem Electron process from PowerShell
* build(release): publish source and maps from the message-quotes package
* build(release): publish source and maps from packages new on master
* build(release): publish source and maps from the tool-office package