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.
This commit is contained in:
1 parent
caa7111f28
commit
a9fc7f9945
364 files changed
+567
-233
No files matched your search
@@ -33,8 +33,8 @@
|
||||
en: d83f6cf38529c5b5
|
||||
zh: 4df5659b2154d3b7
|
||||
/agent-note-private-npm-publication-as-three-independent-sequences/decision/release-family-objects:
|
||||
en: 9b38e8eb8fc6ef9b
|
||||
zh: 19b573c7c4f5d6e8
|
||||
en: e0cdaa5aaa1f7d25
|
||||
zh: 645f0a0e43a37ddd
|
||||
/agent-note-private-npm-publication-as-three-independent-sequences/decision/workflow-shape-pack-on-pr-push-publish-from-a-manual-dispatch-workflow:
|
||||
en: ea0acc6409da4d5c
|
||||
zh: ac0bd2fe41f4fe67
|
||||
|
||||
@@ -117,7 +117,7 @@ The entity in this domain is a **release family**: a set of packages sharing one
|
||||
| `publish` | the three registry states above |
|
||||
| `process` / `tarball` | the one home for spawning commands and for reading a packed tarball, including the entry guard that keeps every script importable |
|
||||
|
||||
The dsh family applies the repository's publication payload policy, which rejects bundled JavaScript maps and publishes `src` with its declaration maps ([rationale](2026-10-08-published-source-and-docs.md)). The vendored family keeps upstream's payload, because upstream's manifest owns it and those manifests export `./src/*`.
|
||||
The dsh family applies the repository's publication payload policy, which publishes `src`, its declaration maps, and the JavaScript maps beside the bundles they describe ([rationale](2026-10-08-published-source-and-docs.md)). The vendored family keeps upstream's payload, because upstream's manifest owns it and those manifests export `./src/*`.
|
||||
|
||||
### Workflow shape: pack on PR/push, publish from a manual dispatch workflow
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ registry 的两个行为决定了「怎么尝试一次发布」。写入之间
|
||||
| `publish` | 上面那三态 |
|
||||
| `process` / `tarball` | 启动命令、读取打包 tarball 的唯一正家,其中的入口守卫让每个脚本都可被 import |
|
||||
|
||||
dsh 族套用仓库的发布 payload 策略(拒绝打包后的 JavaScript map,随声明映射一起发布 `src`,[理由](2026-10-08-published-source-and-docs.zh.md))。vendored 族保留上游 payload,因为该 payload 由上游 manifest 拥有,且它们导出 `./src/*`。
|
||||
dsh 族套用仓库的发布 payload 策略(发布 `src`、其声明映射,以及紧挨所描述 bundle 的 JavaScript map,[理由](2026-10-08-published-source-and-docs.zh.md))。vendored 族保留上游 payload,因为该 payload 由上游 manifest 拥有,且它们导出 `./src/*`。
|
||||
|
||||
### workflow 形状:PR/push 上 pack,从手动 dispatch 工作流发布
|
||||
|
||||
|
||||
@@ -2,18 +2,18 @@
|
||||
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write .agents/notes/implemented/process/2026-10-08-published-source-and-docs.md
|
||||
/agent-note-published-source-and-documentation:
|
||||
en: dcd10c6e1f5b6ceb
|
||||
zh: 269cc2401be0f414
|
||||
/agent-note-published-source-and-documentation/problem:
|
||||
en: 973cdfc5319db522
|
||||
zh: b298d546b55b77ef
|
||||
/agent-note-published-source-and-documentation/decision:
|
||||
en: 8c1fb9b17ef2377e
|
||||
zh: fbc81e2633a61f0f
|
||||
/agent-note-published-source-and-documentation/alternatives-considered:
|
||||
en: 538980c8b24caee7
|
||||
zh: d076222bdbcbdebd
|
||||
/agent-note-published-source-and-documentation/consequences:
|
||||
en: 1df4bdcfc4bfaa5b
|
||||
zh: 32f65ff4dd9c6fba
|
||||
/agent-note-published-source-maps-and-documentation:
|
||||
en: dbec3958b6bb3a8c
|
||||
zh: f17abeb0533b4191
|
||||
/agent-note-published-source-maps-and-documentation/problem:
|
||||
en: 699d35bd0bb12645
|
||||
zh: c9e362c336c6b440
|
||||
/agent-note-published-source-maps-and-documentation/decision:
|
||||
en: b5d394bd286b1e2d
|
||||
zh: f5d3317115442caa
|
||||
/agent-note-published-source-maps-and-documentation/alternatives-considered:
|
||||
en: 0bcc1a6864bcb340
|
||||
zh: ff5d138040563624
|
||||
/agent-note-published-source-maps-and-documentation/consequences:
|
||||
en: bd76714dd121f9aa
|
||||
zh: 6d474d6ea90e1b5f
|
||||
@@ -1,4 +1,4 @@
|
||||
# Agent Note: Published source and documentation
|
||||
# Agent Note: Published source, maps, and documentation
|
||||
|
||||
Status: implemented
|
||||
|
||||
@@ -6,36 +6,36 @@ English | [中文](2026-10-08-published-source-and-docs.zh.md)
|
||||
|
||||
## Problem
|
||||
|
||||
A published `@deepseek-ai/dsh-*` package carried declarations, bundled runtime, and locale resources, but not the TypeScript the declarations describe. Its `exports` map nevertheless declared `./src/*`, so an installed consumer resolved that subpath to files the tarball did not contain. A plugin author who wanted the implementation behind a documented API had to read the declaration, the documentation website, or a checkout at the matching `dsh-v*` tag: the first stops at the declaration, and the other two are not the installed version. The repository's Markdown documentation reached readers only through the website, which tracks the published release.
|
||||
A published `@deepseek-ai/dsh-*` package carried declarations, bundled runtime, and locale resources, but neither the TypeScript the declarations describe nor the maps that resolve into it. Its `exports` map nevertheless declared `./src/*`, so an installed consumer resolved that subpath to files the tarball did not contain. A plugin author who wanted the implementation behind a documented API had to read the declaration, the documentation website, or a checkout at the matching `dsh-v*` tag: the first stops at the declaration, and the other two are not the installed version. The repository's Markdown documentation reached readers only through the website, which tracks the published release.
|
||||
|
||||
## Decision
|
||||
|
||||
Every release member publishes its TypeScript source and the declaration maps that resolve into it, and `@deepseek-ai/dsh` publishes the repository's Markdown documentation.
|
||||
Every release member publishes its TypeScript source, the declaration maps that resolve into it, and the JavaScript maps beside the bundles they describe. `@deepseek-ai/dsh` publishes the documentation website's page set, and the build compresses emitted bundles without mangling identifiers.
|
||||
|
||||
[`expectedDshPackageFiles`](../../../../scripts/check-workspace-constraints.ts) lists `lib/types/**/*.d.ts.map` after the declarations and `src` last; a package with Typert Remote navigation also lists `lib/typert.remote-client.d.ts.map`, which its generated declaration references through `sourceMappingURL`. [`isForbiddenPublicationFile`](../../../../scripts/publication-payload.ts) rejects only bundled JavaScript maps, so both additions pass the static manifest check and the release family's packed-tarball check. The `./src/*` export that 315 of the 332 release members already declared resolves for an installed consumer.
|
||||
[`expectedDshPackageFiles`](../../../../scripts/check-workspace-constraints.ts) lists `lib/types/**/*.d.ts.map`, `lib/**/*.js.map`, and `src`; a package with Typert Remote navigation also lists `lib/typert.remote-client.d.ts.map`, which its generated declaration references through `sourceMappingURL`. No payload member is forbidden, so the static manifest check owns the exact publication list. The `./src/*` export that 315 of the 332 release members declare resolves to those files, which serves editor navigation and reading; plain Node still cannot import them without a TypeScript loader.
|
||||
|
||||
`@deepseek-ai/dsh` stages the repository `docs` tree into `apps/cli/docs` from its `prepack` lifecycle through [`scripts/stage-dsh-docs.ts`](../../../../scripts/stage-dsh-docs.ts). The staged copy omits `docs/persistence-changes/`, whose per-release migration records the current contract replaces, and the `*.i18n.yaml` consistency records the documentation gates own. Images and every other reader-facing asset ship with it.
|
||||
The workspace build and the client preset compress every emitted bundle (`minify: { compress: true, mangle: false }`). Identifiers keep their names, so a stack frame and the published map still name the original code.
|
||||
|
||||
The vendored family keeps upstream's payload unchanged; upstream owns those manifests, and they export `./src/*` ([release sequences](2026-08-10-npm-release-sequences.md)).
|
||||
`@deepseek-ai/dsh` stages the documentation website's page set into `apps/cli/docs` from its `prepack` lifecycle through [`scripts/stage-dsh-docs.ts`](../../../../scripts/stage-dsh-docs.ts), which reads the publication manifest in [`website/docs.ts`](../../../../website/docs.ts), and removes that copy again from `postpack`. Non-Markdown assets under `docs/` ship with those pages; the generated `docs/persistence-changes/` records and the `docs/i18n/` guidelines do not. The vendored family keeps upstream's payload unchanged ([release sequences](2026-08-10-npm-release-sequences.md)).
|
||||
|
||||
Desktop packaging keeps its own [runtime-file policy](../../../../apps/desktop/scripts/runtime-file-policy.ts), so the packaged application omits declarations and declaration maps and carries `src` and the staged `docs` tree, neither of which it loads.
|
||||
Desktop and the Python single-file executable pay nothing for either addition. [Desktop's runtime file policy](../../../../apps/desktop/scripts/runtime-file-policy.ts) omits `src/`, `docs/`, and every map from `@deepseek-ai/dsh*` packages while keeping third-party `src` trees that some of their `main` entries reach, and [`PUBLISHED_PAYLOAD_IGNORES`](../../../../scripts/build-exe-for-python-sdk.ts) excludes the same trees from the executable, so its contents no longer depend on a staged `docs` left in the checkout.
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
**Keep the payload declarations-only and send readers to the documentation website or the matching `dsh-v*` tag.** Rejected because neither is the installed version, and the website serves the latest published release rather than a prerelease. The declared `./src/*` export also has no meaning without those files.
|
||||
|
||||
**Publish declaration maps without `src`.** Rejected because a map whose `sources` are absent resolves nothing, which is exactly the navigation the [Typert Remote design](../architecture/2026-08-02-typert-remote-method-calls.md) requires.
|
||||
**Publish maps without `src`.** Rejected because a map whose `sources` are absent resolves nothing, which is exactly the navigation the [Typert Remote design](../architecture/2026-08-02-typert-remote-method-calls.md) requires.
|
||||
|
||||
**Publish bundled JavaScript maps alongside the runtime bundles.** Rejected because those are single-artifact builds whose maps describe a build tree that is not published.
|
||||
**Publish the whole `docs/` tree.** Rejected because that publishes RFCs, postmortems, testing guides, and maintainer workflows the website manifest deliberately withholds.
|
||||
|
||||
**Ship the documentation as a separate `@deepseek-ai/dsh-docs` package.** Rejected because it adds a public package and a release member for content that belongs beside the command every install already has.
|
||||
**Mangle the bundles as well.** Rejected because mangled identifiers break the correspondence a published map exists to provide and make an unhandled stack frame unreadable.
|
||||
|
||||
**Publish `docs/persistence-changes` with the rest of the documentation.** Rejected because those records answer a version-comparison question, and their 16 MB would dominate the payload.
|
||||
**Compress only `lib/index.js` and `lib/client.js`.** Rejected because one workspace build configuration emits every bundle, and a per-package exception would need a second configuration for no reader-visible gain.
|
||||
|
||||
## Consequences
|
||||
|
||||
`src` adds about 29 MB and declaration maps about 10 MB across the release set, and the staged `docs` tree adds about 6.7 MB to `@deepseek-ai/dsh`. Package tarballs grow accordingly, and the Desktop application carries `src` it never loads.
|
||||
`src` adds about 29 MB and declaration maps about 10 MB across the release set; JavaScript maps add about 49 MB, and the staged documentation adds 5.9 MB to `@deepseek-ai/dsh`. Compression removes roughly half of a host bundle — `dsh-session`'s `lib/index.js` falls from 95 kB to 46 kB — and about a third of a client bundle. The Desktop application and the Python executable keep their previous payload.
|
||||
|
||||
A consumer editor now follows a declaration to the installed implementation, and a plugin author reads that version's source and documentation without a checkout. The staged copy keeps the repository's relative links, so a link from a shipped page into an unshipped tree — `../packages/**`, or the omitted `docs/persistence-changes/` records — resolves only in a checkout. The documentation payload closes the website's release skew only for the version it shipped with; a consumer still compares `dsh --version` when the difference matters.
|
||||
A consumer editor now follows a declaration to the installed implementation, and a plugin author reads that version's documentation without a checkout. The staged copy keeps the repository's relative links, so a link from a shipped page into an unshipped tree — `../packages/**`, or the omitted `persistence-changes/` records — resolves only in a checkout. `docs/` exists in the working tree only between `prepack` and `postpack`, and `pnpm run clean` removes a copy an interrupted pack left behind.
|
||||
|
||||
`pnpm run constraints` rejects a member whose `files` omits `src` or either declaration map, because the canonical list is exact. The release family's tarball validation rejects a bundled JavaScript map and requires `@deepseek-ai/dsh` to carry documentation and source, so a pack run that skips the staging hook fails instead of publishing without them.
|
||||
`pnpm run constraints` rejects a member whose `files` omits `src` or a map, because the canonical list is exact. The release family's tarball check requires `@deepseek-ai/dsh` to carry documentation and source, so a pack run that skips the staging hook fails instead of publishing without them.
|
||||
@@ -1,4 +1,4 @@
|
||||
# Agent Note: 发布源码与文档
|
||||
# Agent Note: 发布源码、映射与文档
|
||||
|
||||
Status: implemented
|
||||
|
||||
@@ -6,36 +6,36 @@ Status: implemented
|
||||
|
||||
## Problem
|
||||
|
||||
已发布的 `@deepseek-ai/dsh-*` 包带有声明文件、打包后的运行时和 locale 资源,却没有声明文件所描述的 TypeScript 源码。它的 `exports` 仍然声明了 `./src/*`,于是已安装的消费方把该子路径解析到 tarball 中并不存在的文件。插件作者若想看到某个已记录 API 背后的实现,只能读声明文件、文档网站,或检出匹配的 `dsh-v*` tag:第一种停在声明处,后两者都不是已安装的版本。仓库的 Markdown 文档也只能通过网站到达读者,而网站跟随的是已发布版本。
|
||||
已发布的 `@deepseek-ai/dsh-*` 包带有声明文件、打包后的运行时和 locale 资源,却没有声明文件所描述的 TypeScript,也没有能解析到它的映射。它的 `exports` 仍然声明了 `./src/*`,于是已安装的消费方把该子路径解析到 tarball 中并不存在的文件。插件作者若想看到某个已记录 API 背后的实现,只能读声明文件、文档网站,或检出匹配的 `dsh-v*` tag:第一种停在声明处,后两者都不是已安装的版本。仓库的 Markdown 文档也只能通过网站到达读者,而网站跟随的是已发布版本。
|
||||
|
||||
## Decision
|
||||
|
||||
每个发布成员都发布自己的 TypeScript 源码,以及能解析到该源码的声明映射;`@deepseek-ai/dsh` 另发布仓库的 Markdown 文档。
|
||||
每个发布成员都发布自己的 TypeScript 源码、能解析到该源码的声明映射,以及紧挨所描述 bundle 的 JavaScript map。`@deepseek-ai/dsh` 另发布文档网站的页面集合,构建也会压缩产出的 bundle,但不混淆标识符。
|
||||
|
||||
[`expectedDshPackageFiles`](../../../../scripts/check-workspace-constraints.ts) 在声明之后列出 `lib/types/**/*.d.ts.map`,并把 `src` 列在最后;带 Typert Remote 导航的包还会列出 `lib/typert.remote-client.d.ts.map`,其生成的声明通过 `sourceMappingURL` 引用该映射。[`isForbiddenPublicationFile`](../../../../scripts/publication-payload.ts) 只拒绝打包后的 JavaScript map,因此这两项新增内容都能通过静态 manifest 检查与发布族的 tarball 打包检查。332 个发布成员中已有 315 个声明过 `./src/*`,该导出对已安装的消费方开始真正解析。
|
||||
[`expectedDshPackageFiles`](../../../../scripts/check-workspace-constraints.ts) 列出 `lib/types/**/*.d.ts.map`、`lib/**/*.js.map` 与 `src`;带 Typert Remote 导航的包还会列出 `lib/typert.remote-client.d.ts.map`,其生成的声明通过 `sourceMappingURL` 引用该映射。没有任何载荷成员被禁止,发布清单由静态 manifest 检查精确持有。332 个发布成员中已有 315 个声明过 `./src/*`,该导出现在解析到这些文件,服务于编辑器导航与阅读;纯 Node 仍需 TypeScript loader 才能 import 它们。
|
||||
|
||||
`@deepseek-ai/dsh` 通过 [`scripts/stage-dsh-docs.ts`](../../../../scripts/stage-dsh-docs.ts) 在自己的 `prepack` 生命周期里把仓库的 `docs` 树暂存到 `apps/cli/docs`。暂存副本不包含 `docs/persistence-changes/`(其中的逐版本迁移记录已被当前契约取代),也不包含由文档门禁拥有的 `*.i18n.yaml` 一致性记录。图片以及其他面向读者的资产都会一并发布。
|
||||
工作区构建与 client 预设会压缩每个产出的 bundle(`minify: { compress: true, mangle: false }`)。标识符保持原名,因此栈帧与已发布的 map 仍然指向原始代码。
|
||||
|
||||
vendored 族保持上游 payload 不变;那些 manifest 由上游拥有,且它们导出 `./src/*`([发布序列](2026-08-10-npm-release-sequences.zh.md))。
|
||||
`@deepseek-ai/dsh` 通过 [`scripts/stage-dsh-docs.ts`](../../../../scripts/stage-dsh-docs.ts) 在自己的 `prepack` 生命周期里把文档网站的页面集合暂存到 `apps/cli/docs`,该脚本读取 [`website/docs.ts`](../../../../website/docs.ts) 中的发布清单,并在 `postpack` 中再次删除这份副本。`docs/` 下的非 Markdown 资产随这些页面一起发布;生成的 `docs/persistence-changes/` 记录与 `docs/i18n/` 规范不发布。vendored 族保持上游 payload 不变([发布序列](2026-08-10-npm-release-sequences.zh.md))。
|
||||
|
||||
桌面打包保留自己的[运行时文件策略](../../../../apps/desktop/scripts/runtime-file-policy.ts),因此打包后的应用不含声明与声明映射,并携带它同样不会加载的 `src` 与暂存 `docs` 树。
|
||||
桌面版与 Python 单文件可执行体不为这两项新增内容付出代价。桌面的[运行时文件策略](../../../../apps/desktop/scripts/runtime-file-policy.ts)会从 `@deepseek-ai/dsh*` 包中剔除 `src/`、`docs/` 与所有映射,同时保留部分第三方包 `main` 指向的 `src` 树;[`PUBLISHED_PAYLOAD_IGNORES`](../../../../scripts/build-exe-for-python-sdk.ts) 则把这些树排除出可执行体,因此其内容不再取决于检出中是否残留暂存的 `docs`。
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
**保持只发声明文件,把读者引向文档网站或匹配的 `dsh-v*` tag。** 否决:两者都不是已安装的版本,而网站提供的是最新已发布版本而非预发布版本。声明的 `./src/*` 导出没有这些文件也毫无意义。
|
||||
|
||||
**只发布声明映射,不发布 `src`。** 否决:`sources` 不存在的映射解析不到任何东西,而这正是 [Typert Remote 设计](../architecture/2026-08-02-typert-remote-method-calls.zh.md)所要求的导航。
|
||||
**只发布映射,不发布 `src`。** 否决:`sources` 不存在的映射解析不到任何东西,而这正是 [Typert Remote 设计](../architecture/2026-08-02-typert-remote-method-calls.zh.md)所要求的导航。
|
||||
|
||||
**随运行时 bundle 一起发布打包后的 JavaScript map。** 否决:那些是单产物构建,其 map 描述的构建树并未发布。
|
||||
**发布整棵 `docs/` 树。** 否决:那会把网站清单刻意不公开的 RFC、事故复盘、测试指南与维护者工作流一并发布。
|
||||
|
||||
**把文档做成独立的 `@deepseek-ai/dsh-docs` 包。** 否决:这些内容本来就该待在每个人都会安装的命令旁边,独立成包会多出一个公开包和一个发布成员。
|
||||
**连标识符一起混淆。** 否决:混淆会破坏已发布 map 本应提供的对应关系,并使未处理栈帧无法阅读。
|
||||
|
||||
**把 `docs/persistence-changes` 与其余文档一起发布。** 否决:那些记录回答的是版本对比问题,其 16 MB 会主导整个 payload。
|
||||
**只压缩 `lib/index.js` 与 `lib/client.js`。** 否决:一次工作区构建配置产出所有 bundle,为单包开例外需要第二套配置,而读者看不到任何收益。
|
||||
|
||||
## Consequences
|
||||
|
||||
`src` 在整个发布集上增加约 29 MB,声明映射增加约 10 MB,暂存的 `docs` 树给 `@deepseek-ai/dsh` 增加约 6.7 MB。包 tarball 相应变大,桌面应用则携带它永不加载的 `src` 与 `docs`。
|
||||
`src` 在整个发布集上增加约 29 MB,声明映射增加约 10 MB,JavaScript map 增加约 49 MB,暂存的文档给 `@deepseek-ai/dsh` 增加 5.9 MB。压缩让 host bundle 大约减半——`dsh-session` 的 `lib/index.js` 从 95 kB 降到 46 kB——client bundle 约减少三分之一。桌面应用与 Python 可执行体保持原有载荷。
|
||||
|
||||
消费方编辑器现在可以从声明跳转到已安装的实现,插件作者无需检出即可读到该版本的源码与文档。暂存副本保留仓库的相对链接,因此从随包页面指向未随包目录的链接——`../packages/**`,或被排除的 `docs/persistence-changes/` 记录——只在检出中可解析。文档 payload 只对它随包发布的那个版本消除网站的版本偏差;当差异确实重要时,消费方仍应核对 `dsh --version`。
|
||||
消费方编辑器现在可以从声明跳转到已安装的实现,插件作者无需检出即可读到该版本的文档。暂存副本保留仓库的相对链接,因此从随包页面指向未随包目录的链接——`../packages/**`,或被排除的 `persistence-changes/` 记录——只在检出中可解析。`docs/` 只在 `prepack` 与 `postpack` 之间存在于工作树,`pnpm run clean` 会清掉被中断的打包留下的副本。
|
||||
|
||||
`pnpm run constraints` 会拒绝 `files` 中缺少 `src` 或任一声明映射的发布成员,因为该清单是精确匹配的。发布族的 tarball 校验会拒绝打包后的 JavaScript map,并要求 `@deepseek-ai/dsh` 必须带上文档与源码,因此跳过暂存钩子的打包会直接失败,而不是发出一个缺少它们的包。
|
||||
`pnpm run constraints` 会拒绝 `files` 中缺少 `src` 或任一声明映射的发布成员,因为该清单是精确匹配的。发布族的 tarball 校验要求 `@deepseek-ai/dsh` 必须带上文档与源码,因此跳过暂存钩子的打包会直接失败,而不是发出一个缺少它们的包。
|
||||
@@ -17,6 +17,9 @@
|
||||
/deepseek-ai-dsh/optional-overlays:
|
||||
en: 3a40ddc44e55f79c
|
||||
zh: 8d3949132e1ef93c
|
||||
/deepseek-ai-dsh/installed-payload:
|
||||
en: 11b7ca48d1da9da3
|
||||
zh: 1f909f6bc2e72e14
|
||||
/deepseek-ai-dsh/development:
|
||||
en: 0a289c1235869927
|
||||
zh: a1f473f70036ad37
|
||||
@@ -53,6 +53,12 @@ The [CLI behavior reference](reference/README.md) owns exact layer precedence, f
|
||||
|
||||
`config/examples/` ships opt-in overlays for GitHub review webhooks, memory MCP servers, and runtime Cordis tools. They are never part of a default profile; the [user guides](../../docs/user/guide/index.md) and [developer practice guides](../../docs/user/develop/practice/index.md) own setup and safety instructions.
|
||||
|
||||
## Installed payload
|
||||
|
||||
The published tarball carries the bundled runtime under `lib/`, the TypeScript under `src/`, the declaration and JavaScript maps beside the files they describe, and the documentation website's page set under `docs/`. Only `prepack` stages `docs/`, and `postpack` removes that copy again, so a reader of the working tree sees whatever the checkout holds.
|
||||
|
||||
`docs/` excludes the generated `persistence-changes/` records and the `*.i18n.yaml` consistency records. Its pages keep the repository's relative links, so a link into `../packages/**` or into the omitted `persistence-changes/` tree resolves only in a checkout.
|
||||
|
||||
## Development
|
||||
|
||||
Production runs require built package and frontend artifacts. From the repository root, run `pnpm run build` separately, then use `pnpm dsh <args...>` to run the TypeScript entry and forward every argument; the [source-execution reference](reference/README.md#source-execution) owns the module-resolution contract.
|
||||
|
||||
@@ -53,6 +53,12 @@ profile 目录包含一个 `package.json`,其中记录树外插件依赖,以
|
||||
|
||||
`config/examples/` 交付 GitHub 评审 webhook、记忆 MCP 服务器与运行时 Cordis 工具的可选覆盖层。它们绝不属于默认 profile;设置与安全说明由[用户指南](../../docs/user/guide/index.zh.md)和[开发实战指南](../../docs/user/develop/practice/index.zh.md)负责。
|
||||
|
||||
## 安装包内容
|
||||
|
||||
发布 tarball 在 `lib/` 下携带打包后的运行时,在 `src/` 下携带 TypeScript 源码,在各自描述的文件旁携带声明映射与 JavaScript map,并在 `docs/` 下携带文档网站的页面集合。只有 `prepack` 会暂存 `docs/`,`postpack` 又会删除这份副本,因此工作树里的读者看到的始终是检出当前的内容。
|
||||
|
||||
`docs/` 不包含生成的 `persistence-changes/` 记录与 `*.i18n.yaml` 一致性记录。其中的页面保留仓库的相对链接,因此指向 `../packages/**` 或指向被排除的 `persistence-changes/` 树的链接只在检出中可解析。
|
||||
|
||||
## 开发
|
||||
|
||||
生产运行需要已构建的包与前端产物。请在仓库根目录单独运行 `pnpm run build`,然后使用 `pnpm dsh <args...>` 运行 TypeScript 入口并转发所有参数;模块解析约定以[源码执行参考](reference/README.zh.md#source-execution)为准。
|
||||
|
||||
@@ -16,13 +16,15 @@
|
||||
},
|
||||
"files": [
|
||||
"lib/*.js",
|
||||
"lib/*.js.map",
|
||||
"lib/types/*.d.ts",
|
||||
"lib/types/*.d.ts.map",
|
||||
"docs",
|
||||
"src"
|
||||
],
|
||||
"scripts": {
|
||||
"prepack": "tsx ../../scripts/stage-dsh-docs.ts"
|
||||
"prepack": "tsx ../../scripts/stage-dsh-docs.ts",
|
||||
"postpack": "tsx ../../scripts/stage-dsh-docs.ts --clean"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@@ -24,6 +24,12 @@ export function desktopRuntimeFileExclusion(
|
||||
const nameParts = packageParts[0]?.startsWith('@') ? 2 : 1
|
||||
const name = packageParts.slice(0, nameParts).join('/')
|
||||
const entry = packageParts.slice(nameParts).join('/')
|
||||
if (name.startsWith('@deepseek-ai/dsh') && (entry === 'src' || entry.startsWith('src/'))) {
|
||||
return 'published source'
|
||||
}
|
||||
if (name === '@deepseek-ai/dsh' && (entry === 'docs' || entry.startsWith('docs/'))) {
|
||||
return 'published documentation'
|
||||
}
|
||||
if (name.startsWith('@deepseek-ai/libreoffice-kit-')) {
|
||||
if (name !== `@deepseek-ai/libreoffice-kit-${officeEngine}`) return 'LibreOffice other platform'
|
||||
}
|
||||
|
||||
@@ -29,6 +29,9 @@ it('omits development artifacts while preserving executable modules, assets and
|
||||
'@mixmark-io/domino/test/entities.html',
|
||||
'@deepseek-ai/libreoffice-kit-wasm/assets/soffice.data',
|
||||
'@deepseek-ai/libreoffice-kit-darwin-arm64/bin/libreoffice-kit',
|
||||
'@deepseek-ai/dsh/src/bin.ts', '@deepseek-ai/dsh/docs/architecture.md',
|
||||
'@deepseek-ai/dsh-session/src/index.ts',
|
||||
'@deepseek-ai/dsh-client-ui-chat/src/client/Page.tsx',
|
||||
'.modules.yaml', '.pnpm-workspace-state-v1.json', '.bin/tool', '.pnpm/cache',
|
||||
]
|
||||
const retained = [
|
||||
@@ -49,6 +52,8 @@ it('omits development artifacts while preserving executable modules, assets and
|
||||
'@deepseek-ai/libreoffice-kit-win32-x64/bin/libreoffice-kit.exe',
|
||||
'@deepseek-ai/libreoffice-kit-win32-x64/sources/core-source.json',
|
||||
'@deepseek-ai/libreoffice-kit-win32-x64/licenses/MPL-2.0.txt',
|
||||
'@deepseek-ai/dsh/lib/index.js', '@deepseek-ai/dsh/lib/bin.js',
|
||||
'@deepseek-ai/dsh-session/lib/index.js',
|
||||
]
|
||||
try {
|
||||
const runtime = runtimeFixture(source)
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"!dist/**/*.map",
|
||||
"!dist/preview.html",
|
||||
"!dist/preview",
|
||||
"src"
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
en: b94bcdbebcd6355e
|
||||
zh: 9fd61c2b986da759
|
||||
/cookbook-adding-a-workspace-package/1-create-the-package:
|
||||
en: 3dd23deee555ebb0
|
||||
zh: 5aa75243b67a1241
|
||||
en: 8dced23a19db2c69
|
||||
zh: ad9021f9fe5e9bb2
|
||||
/cookbook-adding-a-workspace-package/2-register-it-in-the-root-configs:
|
||||
en: 12b985dee93a47a7
|
||||
zh: 1027db3d251cd860
|
||||
|
||||
@@ -24,7 +24,7 @@ packages/<group>/<pkg>/
|
||||
|
||||
Choose an existing group when one matches the package's role (`core`, `llm`, `shell`, `compaction`, `subagent`, `todo`, `session`, `client`/`host`, `util`, or `test-support`). A new group is allowed, but it is a pure container: no `package.json`, no source files, and packages still sit exactly one level below it.
|
||||
|
||||
package.json invariants (enforced by `pnpm run constraints` / `scripts/check-workspace-constraints.ts`): `private: true`, a `version` matching the root `package.json`, `type: module`, `main: "lib/index.js"`, `types: "lib/types/index.d.ts"`, `exports["."].types: "./lib/types/index.d.ts"`, `exports["."].default: "./lib/index.js"`, `@deepseek-ai/cordis` in BOTH peerDependencies and devDependencies (same range). Mirror every dsh peer dependency in devDependencies. `@deepseek-ai/schemastery` goes in `dependencies` (it is a runtime validator), matching agent-loop. The `files` list contains exactly `lib/index.js`, `lib/types/**/*.d.ts`, `lib/types/**/*.d.ts.map`, `src`, and package-specific runtime artifacts recognized by the gate. A package whose runtime export points into the emitted tree also includes `lib/types/**/*.js`. Declaration maps and `src` publish together so a consumer editor and a plugin author read the implementation behind an exported declaration; do not publish JS maps or stale root declaration files. CLI app packages with a package `bin` include `lib/bin.js` immediately after `lib/index.js` in `files`.
|
||||
package.json invariants (enforced by `pnpm run constraints` / `scripts/check-workspace-constraints.ts`): `private: true`, a `version` matching the root `package.json`, `type: module`, `main: "lib/index.js"`, `types: "lib/types/index.d.ts"`, `exports["."].types: "./lib/types/index.d.ts"`, `exports["."].default: "./lib/index.js"`, `@deepseek-ai/cordis` in BOTH peerDependencies and devDependencies (same range). Mirror every dsh peer dependency in devDependencies. `@deepseek-ai/schemastery` goes in `dependencies` (it is a runtime validator), matching agent-loop. The `files` list contains exactly `lib/index.js`, `lib/types/**/*.d.ts`, `lib/types/**/*.d.ts.map`, `src`, and package-specific runtime artifacts recognized by the gate. A package whose runtime export points into the emitted tree also includes `lib/types/**/*.js`. Declaration and JavaScript maps publish beside the files they describe, and `src` publishes with them, so a consumer editor and a plugin author read the implementation behind an exported declaration; do not publish stale root declaration files. CLI app packages with a package `bin` include `lib/bin.js` immediately after `lib/index.js` in `files`.
|
||||
|
||||
In-package relative imports use explicit `.ts` specifiers in source (for example, `export * from './types.ts'`). The compiler rewrites those to `.js` in emitted JS and leaves explicit `.ts` specifiers in declarations, which standard NodeNext/Node16 TypeScript consumers resolve to the sibling `.d.ts` files.
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ packages/<group>/<pkg>/
|
||||
|
||||
当已有分组与包的角色匹配时,选择该分组(`core`、`llm`、`shell`、`compaction`、`subagent`、`todo`、`session`、`client`/`host`、`util` 或 `test-support`)。允许新建分组,但分组只是纯容器:没有 `package.json`,没有源文件,包仍然恰好位于其下一层。
|
||||
|
||||
package.json 不变式(由 `pnpm run constraints` / `scripts/check-workspace-constraints.ts` 强制执行):`private: true`,`version` 与根 `package.json` 一致,`type: module`,`main: "lib/index.js"`,`types: "lib/types/index.d.ts"`,`exports["."].types: "./lib/types/index.d.ts"`,`exports["."].default: "./lib/index.js"`,`@deepseek-ai/cordis` 同时出现在 peerDependencies 和 devDependencies 中(相同范围)。每个 dsh 对等依赖(peer dependency)都要在 devDependencies 中镜像。`@deepseek-ai/schemastery` 放在 `dependencies` 中(它是运行时校验器),与 agent-loop 保持一致。`files` 列表精确包含 `lib/index.js`、`lib/types/**/*.d.ts`、`lib/types/**/*.d.ts.map`、`src` 以及门禁认可的包专用运行时产物。如果包的运行时 export 指向输出树,还要包含 `lib/types/**/*.js`。声明映射与 `src` 一起发布,让消费方编辑器和插件作者都能读到导出声明背后的实现;不要发布 JS map 或陈旧的根声明文件。带有 `bin` 的 CLI 应用包在 `files` 中将 `lib/bin.js` 紧跟在 `lib/index.js` 之后。
|
||||
package.json 不变式(由 `pnpm run constraints` / `scripts/check-workspace-constraints.ts` 强制执行):`private: true`,`version` 与根 `package.json` 一致,`type: module`,`main: "lib/index.js"`,`types: "lib/types/index.d.ts"`,`exports["."].types: "./lib/types/index.d.ts"`,`exports["."].default: "./lib/index.js"`,`@deepseek-ai/cordis` 同时出现在 peerDependencies 和 devDependencies 中(相同范围)。每个 dsh 对等依赖(peer dependency)都要在 devDependencies 中镜像。`@deepseek-ai/schemastery` 放在 `dependencies` 中(它是运行时校验器),与 agent-loop 保持一致。`files` 列表精确包含 `lib/index.js`、`lib/types/**/*.d.ts`、`lib/types/**/*.d.ts.map`、`src` 以及门禁认可的包专用运行时产物。如果包的运行时 export 指向输出树,还要包含 `lib/types/**/*.js`。声明映射与 JavaScript map 随各自描述的产物一起发布,`src` 也随之发布,让消费方编辑器和插件作者都能读到导出声明背后的实现;不要发布陈旧的根声明文件。带有 `bin` 的 CLI 应用包在 `files` 中将 `lib/bin.js` 紧跟在 `lib/index.js` 之后。
|
||||
|
||||
包内的相对导入在源码中使用显式 `.ts` 后缀(例如 `export * from './types.ts'`)。编译器在输出的 JS 中将其重写为 `.js`,在声明文件中保留显式 `.ts` 后缀;标准的 NodeNext/Node16 TypeScript 消费方会将其解析到同目录的 `.d.ts` 文件。
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
"lib/index.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"dependencies": {
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -89,6 +89,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -79,6 +79,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./src/*": "./src/*",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"files": ["lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", "src"],
|
||||
"files": ["lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", "lib/**/*.js.map", "src"],
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"@deepseek-ai/dsh-attachment": "workspace:*",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"./src/*": "./src/*",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"files": ["lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", "src"],
|
||||
"files": ["lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", "lib/**/*.js.map", "src"],
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"@deepseek-ai/dsh-brand": "workspace:*",
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
"lib/worker/profile-resolution-bootstrap.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
"lib/index.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
"lib/index.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
"lib/index.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"author": "Shigma <[email protected]>",
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
"cordis.patch.yml",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
"cordis.patch.yml",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
"lib/json-stream-*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
"cordis.patch.yml",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
"cordis.patch.yml",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
"lib/public-url-*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"license": "MIT",
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
"lib/types/**/*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -64,6 +64,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"scripts": {
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -60,6 +60,7 @@
|
||||
"lib/protocol.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"dependencies": {
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
"lib/index.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -486,6 +486,9 @@ function clientConfig(id: string, entry: string, clientBanner?: (fileName: strin
|
||||
// Plugin code is fetched outside Vite's module graph, so its own bundle
|
||||
// must carry the TS/TSX mapping consumed by browser profiling tools.
|
||||
sourcemap: true,
|
||||
// Compress only: identifier names stay readable in the shipped bundle,
|
||||
// and the source map still resolves through the published `src`.
|
||||
minify: { compress: true, mangle: false },
|
||||
clean: false,
|
||||
deps: {
|
||||
neverBundle: isRequested,
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"dependencies": {}
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -63,6 +63,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -103,6 +103,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -70,6 +70,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -104,6 +104,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -87,6 +87,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"dependencies": {
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -57,6 +57,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -38,6 +38,7 @@
|
||||
"lib/**/*.css",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -67,6 +67,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -55,6 +55,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"dsh": {
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -75,6 +75,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -73,6 +73,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -30,6 +30,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"scripts": {
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -78,6 +78,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -80,6 +80,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"lib/typert.host.js",
|
||||
"lib/typert.host.d.ts",
|
||||
"lib/typert.remote-client.js",
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
"lib/**/*.css",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -55,6 +55,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -87,6 +87,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -62,6 +62,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -77,6 +77,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"dependencies": {
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -79,6 +79,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -68,6 +68,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -69,6 +69,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -58,6 +58,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -64,6 +64,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -62,6 +62,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -63,6 +63,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -63,6 +63,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -57,6 +57,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"dependencies": {
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -70,6 +70,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -94,6 +94,7 @@
|
||||
"lib/client.*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"dependencies": {
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -79,6 +79,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -78,6 +78,7 @@
|
||||
"lib/client.*.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -70,6 +70,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -73,6 +73,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -31,6 +31,7 @@
|
||||
"lib/index.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -78,6 +78,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -66,6 +66,7 @@
|
||||
"lib/styles",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
],
|
||||
"scripts": {
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
@@ -76,6 +76,7 @@
|
||||
"lib/client.js",
|
||||
"lib/types/**/*.d.ts",
|
||||
"lib/types/**/*.d.ts.map",
|
||||
"lib/**/*.js.map",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
Loaded 100 of 364 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user