* 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
description, kind
| description | kind |
|---|---|
| Installation-owned lists of official dsh bundles (shipped profile templates, the default list, and the optional, on-demand, and retired bundles) and the plugin manager's protected and presented packages. | package-library |
@deepseek-ai/dsh-official-bundles
English | 中文
Summary
@deepseek-ai/dsh-official-bundles holds the bundle package names the dsh installation decides on: which bundles each shipped profile starts with, which bundles it ships switched off, which official bundles install on request, which bundles earlier releases shipped and profiles drop, and which packages the plugin manager protects, hides, orders, or marks experimental. dsh-app-boot applies these lists when it loads a profile; the plugin manager, the CLI, Desktop, the image packer, and repository checks read them directly. The package holds data only, so changing a list leaves app-boot and the plugin manager untouched. Use it as a direct library dependency, not through cordis.yml.
Table of Contents
- Use this package
- Understand the implementation
- Further Exploration
- Known Limitations and Deferred Work
- Dev Note
Use this package
Edit this package when the installation's bundle selection or the plugin manager's protected or presented packages change; read it wherever code must agree with the launcher about that selection.
Profile templates
PROFILE_TEMPLATES maps each shipped profile name (web, headless, acp, sdk, sdk-minimal) to its ordered bundle layer list. App-boot initializes a missing shipped profile from its template, and dsh --profile <name> --from-default-profile <template> copies one into a custom profile. DEFAULT_PROFILE_BUNDLES is the list dsh plugin uses for a profile name with no template. INSTALLATION_OWNED_PROFILE_TUPLES names bundle lists that an earlier release wrote into a shipped profile; app-boot replaces an exact match with the current template.
Optional and retired bundles
OPTIONAL_BUNDLES names the bundles the installation ships for a person to switch on. Each must be a runtime dependency of the dsh app that declares dsh.bundle.patch, an icon, and ./locale/*.json display metadata, and no template may select it; verify-default-product-isolation checks these rules. The plugin manager reports these bundles as optional. RETIRED_BUNDLES names bundles the installation no longer carries; app-boot removes them from a profile's bundle list when it loads the profile.
Plugin manager lists
PROTECTED_PLUGINS names the plugin packages the plugin manager keeps read-only because management needs them; a bundle that contains one is a management bundle. Removing a name drops only this management-required refusal; the manager's own entry, installation-carried bundles, and unaddressable rows stay protected by their own rules. The Web plugin page hides the HIDDEN_BUNDLES, ranks the EXTENSION_BUNDLES first in their order, keeps the MORE_BUNDLES off its main list until the profile enables them, and marks the EXPERIMENTAL_BUNDLES with the Experimental badge.
On-demand bundles
ON_DEMAND_BUNDLES names the public Official packages installed only on request. OFFICIAL_ON_DEMAND_CATALOG embeds their package-owned localized metadata, icons, and optional dsh.bundle.platforms declarations for offline discovery and Host platform checks before installation; pnpm gen-official-bundle-catalog explicitly updates generated content, and verify-official-bundle-catalog checks resource completeness and freshness; builds consume the committed catalog without importing provider code. The catalog contains no install target: the plugin manager derives it from the running version and installation and uses the ordinary bundle installer. The product-use check composes shipped and on-demand selections against Web without executing providers.
Understand the implementation
Implementation internals — click to expand
Repository checks read the lists in src/bundles.ts as TypeScript literals without executing them, so each list stays a static array or object literal of package names. INLINE_SAFE in tsdown.client.ts lets Client bundles inline this whole package, so every export stays data with no runtime identity to share. ui-plugin-manager imports the Web lists from the package root, and tree-shaking keeps the profile templates and the generated catalog out of its bundle while no Client code imports them.
Source map
| File | Role |
|---|---|
src/bundles.ts |
Profile templates and the default, installation-owned, retired, optional, and on-demand bundle lists |
src/plugin-manager.ts |
Protected plugin packages and the Web plugin page's hidden, ordered, and experimental bundle lists |
src/catalog.generated.ts |
Generated offline metadata for the on-demand bundles |
src/index.ts |
Public exports and the catalog entry type |
Further Exploration
- dsh-app-boot — profile loading that applies the templates and retired list.
- Shipped optional bundles — why the installation owns the optional list.
- Official on-demand bundles — the offline catalog decision.
Known Limitations and Deferred Work
- Lists are compiled into the installation — changing a list requires a new dsh release; a profile cannot extend the optional or on-demand lists.
Dev Note
Working context for maintainers — click to expand
None.