From a9fc7f9945dc004bb72a2fa8dac60c00431420b6 Mon Sep 17 00:00:00 2001 From: turtle1999 Date: Thu, 8 Oct 2026 17:04:23 +0800 Subject: [PATCH] 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. --- ...2026-08-10-npm-release-sequences.i18n.yaml | 4 +- .../2026-08-10-npm-release-sequences.md | 2 +- .../2026-08-10-npm-release-sequences.zh.md | 2 +- ...-10-08-published-source-and-docs.i18n.yaml | 30 +++--- .../2026-10-08-published-source-and-docs.md | 28 +++--- ...2026-10-08-published-source-and-docs.zh.md | 28 +++--- apps/cli/README.i18n.yaml | 3 + apps/cli/README.md | 6 ++ apps/cli/README.zh.md | 6 ++ apps/cli/package.json | 4 +- apps/desktop/scripts/runtime-file-policy.ts | 6 ++ .../desktop/tests/runtime-file-policy.spec.ts | 5 + apps/web/package.json | 1 - docs/cookbook/adding-a-package.i18n.yaml | 4 +- docs/cookbook/adding-a-package.md | 2 +- docs/cookbook/adding-a-package.zh.md | 2 +- packages/acp/acp/package.json | 1 + packages/api/account-controller/package.json | 1 + packages/api/gateway/package.json | 1 + packages/api/job-controller/package.json | 1 + packages/api/remotes/package.json | 1 + packages/api/session-controller/package.json | 1 + packages/api/settings-controller/package.json | 1 + packages/api/terminal-controller/package.json | 1 + .../api/workspace-controller/package.json | 1 + packages/api/workspace-files/package.json | 1 + .../attachment/attachment-local/package.json | 2 +- packages/attachment/attachment/package.json | 2 +- packages/boot/app-boot/package.json | 1 + packages/boot/cmdline/package.json | 1 + packages/boot/config-editor/package.json | 1 + packages/boot/hmr/package.json | 1 + packages/boot/plugin-manager/package.json | 1 + packages/browser-use/browser-use/package.json | 1 + packages/bundle/acp-app/package.json | 1 + packages/bundle/base/package.json | 1 + packages/bundle/headless/package.json | 1 + packages/bundle/sdk-app/package.json | 1 + packages/bundle/sdk-minimal/package.json | 1 + packages/bundle/web-app/package.json | 1 + packages/client/connection/package.json | 1 + packages/client/file-upload/package.json | 1 + packages/client/hmr/package.json | 1 + packages/client/locale/package.json | 1 + packages/client/modules/package.json | 1 + .../client/product-analytics/package.json | 1 + packages/client/resources/package.json | 1 + packages/client/shortcuts/package.json | 1 + packages/client/store/package.json | 1 + packages/client/tsdown.client.ts | 3 + packages/client/ui-agent-preset/package.json | 1 + packages/client/ui-approval/package.json | 1 + packages/client/ui-attachment/package.json | 1 + .../client/ui-brand-official/package.json | 1 + packages/client/ui-chat/package.json | 1 + packages/client/ui-commands/package.json | 1 + packages/client/ui-conversation/package.json | 1 + packages/client/ui-deliverables/package.json | 1 + .../ui-directory-picker-browse/package.json | 1 + .../ui-directory-picker-native/package.json | 1 + packages/client/ui-dockkit/package.json | 1 + packages/client/ui-goal/package.json | 1 + packages/client/ui-input-trigger/package.json | 1 + packages/client/ui-jobs/package.json | 1 + packages/client/ui-layout/package.json | 1 + .../client/ui-message-feedback/package.json | 1 + .../client/ui-model-selection/package.json | 1 + packages/client/ui-open-in-app/package.json | 1 + .../client/ui-permission-presets/package.json | 1 + packages/client/ui-plan/package.json | 1 + .../client/ui-plugin-manager/package.json | 1 + packages/client/ui-primitives/package.json | 1 + packages/client/ui-reference/package.json | 1 + packages/client/ui-renderer/package.json | 1 + packages/client/ui-schedule/package.json | 1 + packages/client/ui-session/package.json | 1 + .../client/ui-settings-account/package.json | 1 + .../ui-settings-agent-loop/package.json | 1 + .../client/ui-settings-general/package.json | 1 + .../client/ui-settings-models/package.json | 1 + .../ui-settings-plugin-inventory/package.json | 1 + .../client/ui-settings-plugins/package.json | 1 + .../ui-settings-session-log/package.json | 1 + .../client/ui-settings-shell/package.json | 1 + .../client/ui-settings-subagent/package.json | 1 + .../ui-settings-web-search/package.json | 1 + packages/client/ui-settings/package.json | 1 + packages/client/ui-shortcuts/package.json | 1 + .../client/ui-sidebar-browser/package.json | 1 + .../ui-sidebar-documentpreview/package.json | 1 + packages/client/ui-sidebar-files/package.json | 1 + packages/client/ui-sidebar-right/package.json | 1 + .../client/ui-sidebar-terminal/package.json | 1 + packages/client/ui-sidebar/package.json | 1 + packages/client/ui-skill/package.json | 1 + packages/client/ui-slots/package.json | 1 + packages/client/ui-subagent/package.json | 1 + packages/client/ui-theme/package.json | 1 + packages/client/ui-tool/package.json | 1 + packages/client/ui-trajectory/package.json | 1 + .../client/ui-user-questions/package.json | 1 + packages/client/ui-workflow-run/package.json | 1 + packages/client/ui-workspace/package.json | 1 + packages/client/web/package.json | 1 + .../compaction/command-compact/package.json | 1 + .../compaction/compaction-basic/package.json | 1 + .../compaction-image-offload/package.json | 1 + .../package.json | 1 + packages/compaction/compaction/package.json | 1 + .../computer-use/computer-use/package.json | 1 + .../context/agent-instructions/package.json | 1 + .../context/file-reference-local/package.json | 1 + packages/context/file-reference/package.json | 1 + .../context/session-reference/package.json | 1 + packages/context/time-context/package.json | 1 + packages/context/tmux-context/package.json | 1 + .../core/agent-default-model/package.json | 1 + packages/core/agent-loop/package.json | 1 + .../core/agent-tool-presentation/package.json | 1 + packages/core/agent/package.json | 1 + packages/core/scope/package.json | 1 + packages/core/session/package.json | 1 + packages/core/system-prompt/package.json | 1 + packages/core/tools/package.json | 1 + .../credentials/authorization/package.json | 1 + .../credentials-local/package.json | 1 + packages/credentials/credentials/package.json | 1 + .../deepseek-account-platform/package.json | 1 + .../credentials/deepseek-account/package.json | 1 + .../deliverables/tool-present/package.json | 1 + .../workspace-changes/package.json | 1 + packages/document/office-to-pdf/package.json | 1 + .../agent-team-profile/package.json | 1 + packages/experimental/agent-team/package.json | 1 + .../api-speech-to-text/package.json | 1 + .../experimental/auto-review/package.json | 1 + .../badge-skill-bundle/package.json | 1 + .../package.json | 1 + .../browser-use-playwright-mcp/package.json | 1 + .../browser-use-runtime/package.json | 1 + .../browser-use-stagehand-native/package.json | 1 + .../claude-code-mods/package.json | 1 + .../client-ui-agent-team/package.json | 1 + .../client-ui-claude-code-mods/package.json | 1 + .../client-ui-cot-translation/package.json | 1 + .../client-ui-voice-input/package.json | 1 + .../computer-use-cua-driver-mcp/package.json | 1 + .../package.json | 1 + .../cot-translation-bundle/package.json | 1 + .../experimental/hook-protocol/package.json | 1 + .../hooks-claude-code/package.json | 1 + .../experimental/hooks-codex/package.json | 1 + .../inspector-profile/package.json | 1 + packages/experimental/inspector/package.json | 1 + .../ptc-runtime-python/package.json | 1 + .../experimental/ralph-bundle/package.json | 1 + .../session-inspector/package.json | 1 + .../experimental/session-search/package.json | 1 + .../package.json | 2 +- .../session-titles-bundle/package.json | 1 + .../experimental/skill-badge/package.json | 1 + .../speech-to-text-sensevoice/package.json | 1 + .../experimental/speech-to-text/package.json | 1 + .../experimental/terminal-bundle/package.json | 1 + .../experimental/tool-agent-team/package.json | 1 + packages/experimental/tool-ralph/package.json | 1 + .../tool-session-query/package.json | 1 + .../experimental/tool-terminal/package.json | 1 + .../experimental/tool-worktree/package.json | 1 + packages/experimental/translator/package.json | 1 + .../voice-input-bundle/package.json | 1 + .../experimental/webhook-github/package.json | 1 + packages/experimental/webhook/package.json | 1 + .../webworker-packer/package.json | 1 + .../webworker-runtime/package.json | 1 + packages/experimental/worktree/package.json | 1 + .../cordis-client-runner/package.json | 1 + .../cordis-host-runner/package.json | 1 + packages/extensions/tool-cordis/package.json | 1 + packages/extensions/ui-cordis/package.json | 1 + .../feedback/command-feedback/package.json | 1 + .../feedback/message-feedback/package.json | 1 + packages/fs/fs-local/package.json | 1 + .../fs/fs-observation-policy/package.json | 1 + packages/fs/fs-sandbox/package.json | 1 + packages/fs/fs/package.json | 1 + packages/fs/tool-fs-search/package.json | 1 + packages/fs/tool-fs/package.json | 1 + .../fs/tool-str-replace-editor/package.json | 1 + packages/goal/command-goal/package.json | 1 + packages/goal/goal-round-driver/package.json | 1 + packages/goal/goal/package.json | 1 + packages/goal/tool-goal/package.json | 1 + .../guard/repeat-tool-reminder/package.json | 1 + packages/guard/timeout-policy/package.json | 1 + .../host/directory-picker-auto/package.json | 1 + .../host/directory-picker-browse/package.json | 1 + .../host/directory-picker-native/package.json | 1 + packages/host/directory-picker/package.json | 1 + packages/host/frontend-static/package.json | 1 + packages/host/open-in-app/package.json | 1 + packages/host/plugin-inventory/package.json | 1 + .../host/product-telemetry-otel/package.json | 1 + packages/host/webserver/package.json | 1 + .../identity/anonymous-user-id/package.json | 1 + packages/interaction/commands/package.json | 1 + .../permission-presets/package.json | 1 + .../interaction/tool-ask-user/package.json | 1 + .../interaction/user-approval/package.json | 1 + .../interaction/user-questions/package.json | 1 + packages/jobs/jobs-local/package.json | 1 + packages/jobs/jobs/package.json | 1 + packages/jobs/tool-jobs/package.json | 1 + .../deepseek-llm-api-extensions/package.json | 1 + .../llm/llm-deepseek-account/package.json | 1 + .../llm/llm-deepseek-api-key/package.json | 1 + packages/llm/llm-deepseek/package.json | 1 + packages/llm/llm-pi-ai/package.json | 1 + packages/llm/llm-retry/package.json | 1 + packages/llm/llm/package.json | 1 + .../package.json | 1 + packages/llm/token-meter/package.json | 1 + packages/lsp/lsp-stdio/package.json | 1 + packages/lsp/lsp/package.json | 1 + packages/lsp/tool-lsp/package.json | 1 + packages/mcp/mcp-client/package.json | 1 + packages/mcp/mcp-resources/package.json | 1 + packages/plan/plan-mode/package.json | 1 + .../preset/agent-preset-registry/package.json | 1 + packages/preset/agent-preset/package.json | 1 + packages/preset/persona/package.json | 1 + .../ptc-runtime/ptc-runtime-node/package.json | 1 + packages/ptc-runtime/ptc-runtime/package.json | 1 + packages/sandbox/sandbox-local/package.json | 1 + packages/sandbox/sandbox-policy/package.json | 1 + .../sandbox/sandbox-windows-acl/package.json | 1 + packages/sandbox/sandbox/package.json | 1 + packages/schedule/schedule/package.json | 1 + packages/schedule/tool-schedule/package.json | 1 + packages/sdk/client/package.json | 1 + packages/sdk/protocol/package.json | 1 + packages/sdk/server/package.json | 1 + .../session-log-export/package.json | 1 + .../session-query-sqlite/package.json | 1 + .../session-query/session-query/package.json | 1 + .../session-checkpoint-policy/package.json | 1 + .../session-format-catalog/package.json | 1 + .../session-format-v0-to-v1/package.json | 1 + .../session-format-v1-to-v2/package.json | 1 + .../session-format-v2-to-v3/package.json | 1 + .../session-format-v3-to-v4/package.json | 1 + packages/session/session-format/package.json | 1 + .../session/session-log-deepseek/package.json | 1 + .../session-persistence-jsonl/package.json | 1 + .../session/session-persistence/package.json | 1 + .../session-projection-cache/package.json | 1 + .../session/session-projection/package.json | 1 + packages/session/session-stats/package.json | 1 + .../session-telemetry-otel/package.json | 1 + .../session/session-telemetry/package.json | 1 + .../package.json | 2 +- .../session/session-title-llm/package.json | 1 + packages/session/session-title/package.json | 1 + .../session/session-turn-outline/package.json | 1 + .../tool-working-directory/package.json | 1 + .../session/working-directory/package.json | 1 + packages/settings/settings/package.json | 1 + packages/shell/bash-local/package.json | 1 + packages/shell/bash-sandbox/package.json | 1 + packages/shell/pwsh-local/package.json | 1 + packages/shell/pwsh-sandbox/package.json | 1 + packages/shell/shell-env/package.json | 1 + packages/shell/shell/package.json | 1 + .../shell/tool-bash-persistent/package.json | 1 + packages/shell/tool-bash/package.json | 1 + .../shell/tool-pwsh-persistent/package.json | 1 + packages/shell/tool-pwsh/package.json | 1 + packages/skill/skill-filesystem/package.json | 1 + packages/skill/skill-office/package.json | 1 + packages/skill/skill/package.json | 1 + packages/skill/tool-skill/package.json | 1 + .../tool-workspace-dependencies/package.json | 1 + packages/spill/spill-local/package.json | 1 + packages/spill/spill-policy/package.json | 1 + packages/spill/spill/package.json | 1 + packages/ssh/fs-ssh/package.json | 1 + packages/ssh/sandbox-ssh/package.json | 1 + packages/ssh/ssh/package.json | 1 + packages/ssh/subprocess-ssh/package.json | 1 + packages/storage/storage-domain/package.json | 1 + packages/storage/storage-json/package.json | 1 + packages/storage/storage-sqlite/package.json | 1 + packages/storage/storage/package.json | 1 + packages/subagent/subagent-acp/package.json | 1 + .../subagent-claude-code/package.json | 1 + packages/subagent/subagent-codex/package.json | 1 + .../subagent/subagent-dsh-sdk/package.json | 1 + .../subagent-fork-in-process/package.json | 1 + .../subagent-spawn-in-process/package.json | 1 + packages/subagent/subagent/package.json | 1 + .../tool-subagent-control/package.json | 1 + packages/subagent/tool-subagent/package.json | 1 + .../subprocess/subprocess-local/package.json | 1 + packages/subprocess/subprocess/package.json | 1 + .../subprocess/win32-process/package.json | 1 + packages/telemetry/otel/package.json | 1 + packages/terminal/terminal-bash/package.json | 1 + packages/terminal/terminal/package.json | 1 + .../agent-loop-testkit/package.json | 1 + .../test-support/client-runtime/package.json | 1 + .../test-support/llm-mock-server/package.json | 1 + packages/test-support/llm-replay/package.json | 1 + .../test-support/loader-smoke/package.json | 1 + .../test-support/remote-mock/package.json | 1 + .../session-snapshot/package.json | 1 + packages/todo/tool-todo/package.json | 1 + packages/typert/generator/README.i18n.yaml | 4 +- packages/typert/generator/README.md | 2 +- packages/typert/generator/README.zh.md | 2 +- packages/typert/generator/package.json | 1 + packages/typert/generator/src/workspace.ts | 7 +- .../remote-model/packages/remote/package.json | 3 +- packages/typert/loader/package.json | 1 + packages/typert/protocol/package.json | 1 + packages/typert/registry/package.json | 1 + packages/util/atomic-write/package.json | 1 + packages/util/brand/package.json | 1 + packages/util/chunked-list/package.json | 1 + packages/util/code-language/package.json | 1 + packages/util/crypto/package.json | 1 + packages/util/deque/package.json | 1 + packages/util/home-paths/package.json | 1 + packages/util/http-proxy/package.json | 1 + packages/util/launch-environment/package.json | 1 + packages/util/lazy-require/package.json | 1 + packages/util/native-command/package.json | 1 + packages/util/output-retention/package.json | 1 + packages/util/package-manifest/package.json | 1 + packages/util/time/package.json | 1 + packages/util/timeout/package.json | 1 + packages/util/values/package.json | 1 + packages/util/workspace-path/package.json | 1 + packages/web/tool-web/package.json | 1 + packages/web/web-fetch-http/package.json | 1 + packages/web/web-search-deepseek/package.json | 1 + packages/web/web-search-exa/package.json | 1 + .../web/web-search-perplexity/package.json | 1 + packages/web/web/package.json | 1 + packages/workflow/tool-workflow/package.json | 1 + packages/workflow/workflow-ptc/package.json | 1 + packages/workflow/workflow/package.json | 1 + packages/workspace/workspace/package.json | 1 + scripts/build-exe-for-python-sdk.ts | 9 +- scripts/check-workspace-constraints.spec.ts | 14 +-- scripts/check-workspace-constraints.ts | 26 ++--- scripts/clean.ts | 2 + scripts/publication-payload.spec.ts | 67 +------------ scripts/publication-payload.ts | 31 +----- scripts/publish-npm-baseline.ts | 7 -- scripts/release/families.spec.ts | 6 +- scripts/release/families.ts | 13 +-- scripts/stage-dsh-docs.spec.ts | 40 ++++++-- scripts/stage-dsh-docs.ts | 94 ++++++++++++++----- tsdown.config.ts | 3 + 364 files changed, 567 insertions(+), 233 deletions(-) diff --git a/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.i18n.yaml b/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.i18n.yaml index 58a7f3654a..957d8ff349 100644 --- a/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.i18n.yaml +++ b/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.i18n.yaml @@ -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 diff --git a/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.md b/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.md index bd50b428a4..68b3b067a9 100644 --- a/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.md +++ b/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.md @@ -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 diff --git a/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.zh.md b/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.zh.md index 325b1133eb..d3437eecae 100644 --- a/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.zh.md +++ b/.agents/notes/implemented/process/2026-08-10-npm-release-sequences.zh.md @@ -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 工作流发布 diff --git a/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.i18n.yaml b/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.i18n.yaml index dea1726712..3be3da2012 100644 --- a/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.i18n.yaml +++ b/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.i18n.yaml @@ -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 diff --git a/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.md b/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.md index dc78150dcf..820f84a409 100644 --- a/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.md +++ b/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.md @@ -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. diff --git a/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.zh.md b/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.zh.md index cdd0788f5e..77835c5cba 100644 --- a/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.zh.md +++ b/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.zh.md @@ -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` 必须带上文档与源码,因此跳过暂存钩子的打包会直接失败,而不是发出一个缺少它们的包。 diff --git a/apps/cli/README.i18n.yaml b/apps/cli/README.i18n.yaml index ddde8bd95c..c62beb75bb 100644 --- a/apps/cli/README.i18n.yaml +++ b/apps/cli/README.i18n.yaml @@ -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 diff --git a/apps/cli/README.md b/apps/cli/README.md index 55e761cb8b..35a2d48424 100644 --- a/apps/cli/README.md +++ b/apps/cli/README.md @@ -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 ` to run the TypeScript entry and forward every argument; the [source-execution reference](reference/README.md#source-execution) owns the module-resolution contract. diff --git a/apps/cli/README.zh.md b/apps/cli/README.zh.md index a2cc6b8a35..38a8415371 100644 --- a/apps/cli/README.zh.md +++ b/apps/cli/README.zh.md @@ -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 ` 运行 TypeScript 入口并转发所有参数;模块解析约定以[源码执行参考](reference/README.zh.md#source-execution)为准。 diff --git a/apps/cli/package.json b/apps/cli/package.json index 2749f9d735..c3dc7d18d3 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -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": { diff --git a/apps/desktop/scripts/runtime-file-policy.ts b/apps/desktop/scripts/runtime-file-policy.ts index 1bc16b2a1c..b7cbc4415c 100644 --- a/apps/desktop/scripts/runtime-file-policy.ts +++ b/apps/desktop/scripts/runtime-file-policy.ts @@ -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' } diff --git a/apps/desktop/tests/runtime-file-policy.spec.ts b/apps/desktop/tests/runtime-file-policy.spec.ts index 76f5c8d95e..c113783e55 100644 --- a/apps/desktop/tests/runtime-file-policy.spec.ts +++ b/apps/desktop/tests/runtime-file-policy.spec.ts @@ -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) diff --git a/apps/web/package.json b/apps/web/package.json index f5efe2b592..7548471a7e 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -17,7 +17,6 @@ }, "files": [ "dist", - "!dist/**/*.map", "!dist/preview.html", "!dist/preview", "src" diff --git a/docs/cookbook/adding-a-package.i18n.yaml b/docs/cookbook/adding-a-package.i18n.yaml index 61a6dfa7d6..b8195f19e5 100644 --- a/docs/cookbook/adding-a-package.i18n.yaml +++ b/docs/cookbook/adding-a-package.i18n.yaml @@ -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 diff --git a/docs/cookbook/adding-a-package.md b/docs/cookbook/adding-a-package.md index 56d3c9134f..7ad2a4e645 100644 --- a/docs/cookbook/adding-a-package.md +++ b/docs/cookbook/adding-a-package.md @@ -24,7 +24,7 @@ packages/// 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. diff --git a/docs/cookbook/adding-a-package.zh.md b/docs/cookbook/adding-a-package.zh.md index 21052b5904..38fa7d55b4 100644 --- a/docs/cookbook/adding-a-package.zh.md +++ b/docs/cookbook/adding-a-package.zh.md @@ -24,7 +24,7 @@ packages/// 当已有分组与包的角色匹配时,选择该分组(`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` 文件。 diff --git a/packages/acp/acp/package.json b/packages/acp/acp/package.json index 292d5d3d6d..a491ae3e56 100644 --- a/packages/acp/acp/package.json +++ b/packages/acp/acp/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/api/account-controller/package.json b/packages/api/account-controller/package.json index c4e9a0144e..5fc1052837 100644 --- a/packages/api/account-controller/package.json +++ b/packages/api/account-controller/package.json @@ -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", diff --git a/packages/api/gateway/package.json b/packages/api/gateway/package.json index 81fa3057fc..98040a54b2 100644 --- a/packages/api/gateway/package.json +++ b/packages/api/gateway/package.json @@ -53,6 +53,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/api/job-controller/package.json b/packages/api/job-controller/package.json index a668daa6fe..666fa150e5 100644 --- a/packages/api/job-controller/package.json +++ b/packages/api/job-controller/package.json @@ -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", diff --git a/packages/api/remotes/package.json b/packages/api/remotes/package.json index dfe5a003ba..153dba81db 100644 --- a/packages/api/remotes/package.json +++ b/packages/api/remotes/package.json @@ -49,6 +49,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "dependencies": { diff --git a/packages/api/session-controller/package.json b/packages/api/session-controller/package.json index 37a1a6da7f..6060164c0d 100644 --- a/packages/api/session-controller/package.json +++ b/packages/api/session-controller/package.json @@ -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", diff --git a/packages/api/settings-controller/package.json b/packages/api/settings-controller/package.json index e2c7b73780..568e0cca9d 100644 --- a/packages/api/settings-controller/package.json +++ b/packages/api/settings-controller/package.json @@ -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", diff --git a/packages/api/terminal-controller/package.json b/packages/api/terminal-controller/package.json index e903b9b030..a03a3035c7 100644 --- a/packages/api/terminal-controller/package.json +++ b/packages/api/terminal-controller/package.json @@ -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", diff --git a/packages/api/workspace-controller/package.json b/packages/api/workspace-controller/package.json index 16a1fb77ee..67844bcfe3 100644 --- a/packages/api/workspace-controller/package.json +++ b/packages/api/workspace-controller/package.json @@ -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", diff --git a/packages/api/workspace-files/package.json b/packages/api/workspace-files/package.json index d2bce1d79c..87144d75f8 100644 --- a/packages/api/workspace-files/package.json +++ b/packages/api/workspace-files/package.json @@ -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", diff --git a/packages/attachment/attachment-local/package.json b/packages/attachment/attachment-local/package.json index 840ffbbff4..9af4fa08dd 100644 --- a/packages/attachment/attachment-local/package.json +++ b/packages/attachment/attachment-local/package.json @@ -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:*", diff --git a/packages/attachment/attachment/package.json b/packages/attachment/attachment/package.json index b1b5b85b42..1a8c50129b 100644 --- a/packages/attachment/attachment/package.json +++ b/packages/attachment/attachment/package.json @@ -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:*", diff --git a/packages/boot/app-boot/package.json b/packages/boot/app-boot/package.json index d49a7357d7..5ac33eaef3 100644 --- a/packages/boot/app-boot/package.json +++ b/packages/boot/app-boot/package.json @@ -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", diff --git a/packages/boot/cmdline/package.json b/packages/boot/cmdline/package.json index 5e09ffe0b3..fbb190a2e7 100644 --- a/packages/boot/cmdline/package.json +++ b/packages/boot/cmdline/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/boot/config-editor/package.json b/packages/boot/config-editor/package.json index 29dfca78e4..1fe2798f67 100644 --- a/packages/boot/config-editor/package.json +++ b/packages/boot/config-editor/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/boot/hmr/package.json b/packages/boot/hmr/package.json index 3eb72e9bcc..56996edf69 100644 --- a/packages/boot/hmr/package.json +++ b/packages/boot/hmr/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "author": "Shigma ", diff --git a/packages/boot/plugin-manager/package.json b/packages/boot/plugin-manager/package.json index d6f0c4e545..7e13d96b65 100644 --- a/packages/boot/plugin-manager/package.json +++ b/packages/boot/plugin-manager/package.json @@ -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", diff --git a/packages/browser-use/browser-use/package.json b/packages/browser-use/browser-use/package.json index 28f2cea1dc..58fe381489 100644 --- a/packages/browser-use/browser-use/package.json +++ b/packages/browser-use/browser-use/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/bundle/acp-app/package.json b/packages/bundle/acp-app/package.json index cf47a11fcb..2aa91ed8b1 100644 --- a/packages/bundle/acp-app/package.json +++ b/packages/bundle/acp-app/package.json @@ -27,6 +27,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/bundle/base/package.json b/packages/bundle/base/package.json index 561d5271e6..c8ccd95c8f 100644 --- a/packages/bundle/base/package.json +++ b/packages/bundle/base/package.json @@ -27,6 +27,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/bundle/headless/package.json b/packages/bundle/headless/package.json index 42dcf52c01..4655f48c37 100644 --- a/packages/bundle/headless/package.json +++ b/packages/bundle/headless/package.json @@ -33,6 +33,7 @@ "lib/json-stream-*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/bundle/sdk-app/package.json b/packages/bundle/sdk-app/package.json index 980cabaa30..23205a07e8 100644 --- a/packages/bundle/sdk-app/package.json +++ b/packages/bundle/sdk-app/package.json @@ -27,6 +27,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/bundle/sdk-minimal/package.json b/packages/bundle/sdk-minimal/package.json index fc7807fc38..236e7e4240 100644 --- a/packages/bundle/sdk-minimal/package.json +++ b/packages/bundle/sdk-minimal/package.json @@ -27,6 +27,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/bundle/web-app/package.json b/packages/bundle/web-app/package.json index 9de3952235..1333adb356 100644 --- a/packages/bundle/web-app/package.json +++ b/packages/bundle/web-app/package.json @@ -38,6 +38,7 @@ "lib/public-url-*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/client/connection/package.json b/packages/client/connection/package.json index f84ec837ea..881601a7df 100644 --- a/packages/client/connection/package.json +++ b/packages/client/connection/package.json @@ -43,6 +43,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "peerDependencies": { diff --git a/packages/client/file-upload/package.json b/packages/client/file-upload/package.json index ac40374cd4..c7cd4b0902 100644 --- a/packages/client/file-upload/package.json +++ b/packages/client/file-upload/package.json @@ -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", diff --git a/packages/client/hmr/package.json b/packages/client/hmr/package.json index 65bd8843b2..e1b3b47cd6 100644 --- a/packages/client/hmr/package.json +++ b/packages/client/hmr/package.json @@ -52,6 +52,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/locale/package.json b/packages/client/locale/package.json index 3b6bf825dd..fbc182390b 100644 --- a/packages/client/locale/package.json +++ b/packages/client/locale/package.json @@ -64,6 +64,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "scripts": { diff --git a/packages/client/modules/package.json b/packages/client/modules/package.json index 878948b7e1..f441c356f6 100644 --- a/packages/client/modules/package.json +++ b/packages/client/modules/package.json @@ -49,6 +49,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "peerDependencies": { diff --git a/packages/client/product-analytics/package.json b/packages/client/product-analytics/package.json index 4dc26d82fe..b3a957e8a6 100644 --- a/packages/client/product-analytics/package.json +++ b/packages/client/product-analytics/package.json @@ -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", diff --git a/packages/client/resources/package.json b/packages/client/resources/package.json index 5e4dbc12ff..87554f8d7d 100644 --- a/packages/client/resources/package.json +++ b/packages/client/resources/package.json @@ -54,6 +54,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/shortcuts/package.json b/packages/client/shortcuts/package.json index 1aee3812c3..fbb01628e2 100644 --- a/packages/client/shortcuts/package.json +++ b/packages/client/shortcuts/package.json @@ -60,6 +60,7 @@ "lib/protocol.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "dependencies": { diff --git a/packages/client/store/package.json b/packages/client/store/package.json index 058442f123..7ae6fd4a45 100644 --- a/packages/client/store/package.json +++ b/packages/client/store/package.json @@ -34,6 +34,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/tsdown.client.ts b/packages/client/tsdown.client.ts index 2e8c06b18e..e76c9c3fe3 100644 --- a/packages/client/tsdown.client.ts +++ b/packages/client/tsdown.client.ts @@ -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, diff --git a/packages/client/ui-agent-preset/package.json b/packages/client/ui-agent-preset/package.json index 5eea4b7db8..b37e353385 100644 --- a/packages/client/ui-agent-preset/package.json +++ b/packages/client/ui-agent-preset/package.json @@ -75,6 +75,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "dependencies": {} diff --git a/packages/client/ui-approval/package.json b/packages/client/ui-approval/package.json index 6158620117..81569ff26c 100644 --- a/packages/client/ui-approval/package.json +++ b/packages/client/ui-approval/package.json @@ -68,6 +68,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-attachment/package.json b/packages/client/ui-attachment/package.json index d0d3e9f7d1..55801fc185 100644 --- a/packages/client/ui-attachment/package.json +++ b/packages/client/ui-attachment/package.json @@ -63,6 +63,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "peerDependencies": { diff --git a/packages/client/ui-brand-official/package.json b/packages/client/ui-brand-official/package.json index 074dcec296..8647939e25 100644 --- a/packages/client/ui-brand-official/package.json +++ b/packages/client/ui-brand-official/package.json @@ -57,6 +57,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-chat/package.json b/packages/client/ui-chat/package.json index a0fa173ab5..b3939f1f12 100644 --- a/packages/client/ui-chat/package.json +++ b/packages/client/ui-chat/package.json @@ -103,6 +103,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-commands/package.json b/packages/client/ui-commands/package.json index 50e41ecdd9..420298e908 100644 --- a/packages/client/ui-commands/package.json +++ b/packages/client/ui-commands/package.json @@ -70,6 +70,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-conversation/package.json b/packages/client/ui-conversation/package.json index 6748ea7139..ba27bcef13 100644 --- a/packages/client/ui-conversation/package.json +++ b/packages/client/ui-conversation/package.json @@ -104,6 +104,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-deliverables/package.json b/packages/client/ui-deliverables/package.json index d318924908..1f3f253b10 100644 --- a/packages/client/ui-deliverables/package.json +++ b/packages/client/ui-deliverables/package.json @@ -87,6 +87,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "dependencies": { diff --git a/packages/client/ui-directory-picker-browse/package.json b/packages/client/ui-directory-picker-browse/package.json index 99f5457dd8..0cf7f059f4 100644 --- a/packages/client/ui-directory-picker-browse/package.json +++ b/packages/client/ui-directory-picker-browse/package.json @@ -64,6 +64,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-directory-picker-native/package.json b/packages/client/ui-directory-picker-native/package.json index 4dd2ae3e3e..e885f10d56 100644 --- a/packages/client/ui-directory-picker-native/package.json +++ b/packages/client/ui-directory-picker-native/package.json @@ -57,6 +57,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-dockkit/package.json b/packages/client/ui-dockkit/package.json index ff5a987c91..ca46a2a52a 100644 --- a/packages/client/ui-dockkit/package.json +++ b/packages/client/ui-dockkit/package.json @@ -38,6 +38,7 @@ "lib/**/*.css", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "peerDependencies": { diff --git a/packages/client/ui-goal/package.json b/packages/client/ui-goal/package.json index d6b5791d5a..b92d047aa2 100644 --- a/packages/client/ui-goal/package.json +++ b/packages/client/ui-goal/package.json @@ -73,6 +73,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-input-trigger/package.json b/packages/client/ui-input-trigger/package.json index 4b7f05fd3a..8f69365169 100644 --- a/packages/client/ui-input-trigger/package.json +++ b/packages/client/ui-input-trigger/package.json @@ -67,6 +67,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-jobs/package.json b/packages/client/ui-jobs/package.json index 119051ecb3..5873ba9d18 100644 --- a/packages/client/ui-jobs/package.json +++ b/packages/client/ui-jobs/package.json @@ -55,6 +55,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "dsh": { diff --git a/packages/client/ui-layout/package.json b/packages/client/ui-layout/package.json index 8a6b1bf9d9..7c82975f4e 100644 --- a/packages/client/ui-layout/package.json +++ b/packages/client/ui-layout/package.json @@ -63,6 +63,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-message-feedback/package.json b/packages/client/ui-message-feedback/package.json index 5e91d8d77b..68c00c0989 100644 --- a/packages/client/ui-message-feedback/package.json +++ b/packages/client/ui-message-feedback/package.json @@ -75,6 +75,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-model-selection/package.json b/packages/client/ui-model-selection/package.json index b9f51eabb4..a196c25b3d 100644 --- a/packages/client/ui-model-selection/package.json +++ b/packages/client/ui-model-selection/package.json @@ -73,6 +73,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-open-in-app/package.json b/packages/client/ui-open-in-app/package.json index f16823d885..451e3357c8 100644 --- a/packages/client/ui-open-in-app/package.json +++ b/packages/client/ui-open-in-app/package.json @@ -30,6 +30,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "scripts": { diff --git a/packages/client/ui-permission-presets/package.json b/packages/client/ui-permission-presets/package.json index 703beb0f7e..d8b6130eeb 100644 --- a/packages/client/ui-permission-presets/package.json +++ b/packages/client/ui-permission-presets/package.json @@ -74,6 +74,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-plan/package.json b/packages/client/ui-plan/package.json index d6be83ae67..a5ecbad0f7 100644 --- a/packages/client/ui-plan/package.json +++ b/packages/client/ui-plan/package.json @@ -78,6 +78,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-plugin-manager/package.json b/packages/client/ui-plugin-manager/package.json index 2cc57af932..b7fc0efe78 100644 --- a/packages/client/ui-plugin-manager/package.json +++ b/packages/client/ui-plugin-manager/package.json @@ -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", diff --git a/packages/client/ui-primitives/package.json b/packages/client/ui-primitives/package.json index df24ffd5d1..d1aa264296 100644 --- a/packages/client/ui-primitives/package.json +++ b/packages/client/ui-primitives/package.json @@ -57,6 +57,7 @@ "lib/**/*.css", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "peerDependencies": { diff --git a/packages/client/ui-reference/package.json b/packages/client/ui-reference/package.json index c1ed59761c..26d5cea771 100644 --- a/packages/client/ui-reference/package.json +++ b/packages/client/ui-reference/package.json @@ -67,6 +67,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-renderer/package.json b/packages/client/ui-renderer/package.json index 7422b8f82e..b307e41e29 100644 --- a/packages/client/ui-renderer/package.json +++ b/packages/client/ui-renderer/package.json @@ -55,6 +55,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-schedule/package.json b/packages/client/ui-schedule/package.json index f53200307d..fa0326641b 100644 --- a/packages/client/ui-schedule/package.json +++ b/packages/client/ui-schedule/package.json @@ -87,6 +87,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-session/package.json b/packages/client/ui-session/package.json index c5f71e18b1..6a80f10dc2 100644 --- a/packages/client/ui-session/package.json +++ b/packages/client/ui-session/package.json @@ -62,6 +62,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-settings-account/package.json b/packages/client/ui-settings-account/package.json index a6283a3186..95b3ad65b7 100644 --- a/packages/client/ui-settings-account/package.json +++ b/packages/client/ui-settings-account/package.json @@ -77,6 +77,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "dependencies": { diff --git a/packages/client/ui-settings-agent-loop/package.json b/packages/client/ui-settings-agent-loop/package.json index c6a17d6989..138afab147 100644 --- a/packages/client/ui-settings-agent-loop/package.json +++ b/packages/client/ui-settings-agent-loop/package.json @@ -62,6 +62,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-settings-general/package.json b/packages/client/ui-settings-general/package.json index 8e891050f0..bf4b3f8d80 100644 --- a/packages/client/ui-settings-general/package.json +++ b/packages/client/ui-settings-general/package.json @@ -79,6 +79,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-settings-models/package.json b/packages/client/ui-settings-models/package.json index 0406435b03..3539985eb1 100644 --- a/packages/client/ui-settings-models/package.json +++ b/packages/client/ui-settings-models/package.json @@ -68,6 +68,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-settings-plugin-inventory/package.json b/packages/client/ui-settings-plugin-inventory/package.json index 08fe010f98..79657293be 100644 --- a/packages/client/ui-settings-plugin-inventory/package.json +++ b/packages/client/ui-settings-plugin-inventory/package.json @@ -69,6 +69,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-settings-plugins/package.json b/packages/client/ui-settings-plugins/package.json index 5b63a88665..ab73c3f23c 100644 --- a/packages/client/ui-settings-plugins/package.json +++ b/packages/client/ui-settings-plugins/package.json @@ -58,6 +58,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-settings-session-log/package.json b/packages/client/ui-settings-session-log/package.json index 73b015a62e..6ad84de315 100644 --- a/packages/client/ui-settings-session-log/package.json +++ b/packages/client/ui-settings-session-log/package.json @@ -64,6 +64,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-settings-shell/package.json b/packages/client/ui-settings-shell/package.json index 81133f38bc..5b324d5ce2 100644 --- a/packages/client/ui-settings-shell/package.json +++ b/packages/client/ui-settings-shell/package.json @@ -62,6 +62,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-settings-subagent/package.json b/packages/client/ui-settings-subagent/package.json index 46aaba01ed..4c2cdb88ed 100644 --- a/packages/client/ui-settings-subagent/package.json +++ b/packages/client/ui-settings-subagent/package.json @@ -63,6 +63,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-settings-web-search/package.json b/packages/client/ui-settings-web-search/package.json index 9322cfb595..700fe643be 100644 --- a/packages/client/ui-settings-web-search/package.json +++ b/packages/client/ui-settings-web-search/package.json @@ -63,6 +63,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-settings/package.json b/packages/client/ui-settings/package.json index 7d61bf0286..1dbb653f63 100644 --- a/packages/client/ui-settings/package.json +++ b/packages/client/ui-settings/package.json @@ -57,6 +57,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "dependencies": { diff --git a/packages/client/ui-shortcuts/package.json b/packages/client/ui-shortcuts/package.json index 48810efd1d..2764748d8d 100644 --- a/packages/client/ui-shortcuts/package.json +++ b/packages/client/ui-shortcuts/package.json @@ -65,6 +65,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-sidebar-browser/package.json b/packages/client/ui-sidebar-browser/package.json index 9bb1561e62..9058e0e49d 100644 --- a/packages/client/ui-sidebar-browser/package.json +++ b/packages/client/ui-sidebar-browser/package.json @@ -70,6 +70,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-sidebar-documentpreview/package.json b/packages/client/ui-sidebar-documentpreview/package.json index 112e221df0..5ab00bb83b 100644 --- a/packages/client/ui-sidebar-documentpreview/package.json +++ b/packages/client/ui-sidebar-documentpreview/package.json @@ -94,6 +94,7 @@ "lib/client.*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "dependencies": { diff --git a/packages/client/ui-sidebar-files/package.json b/packages/client/ui-sidebar-files/package.json index fd84e6d154..4626f5228b 100644 --- a/packages/client/ui-sidebar-files/package.json +++ b/packages/client/ui-sidebar-files/package.json @@ -74,6 +74,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-sidebar-right/package.json b/packages/client/ui-sidebar-right/package.json index 3ce4c8e314..a54139af26 100644 --- a/packages/client/ui-sidebar-right/package.json +++ b/packages/client/ui-sidebar-right/package.json @@ -79,6 +79,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-sidebar-terminal/package.json b/packages/client/ui-sidebar-terminal/package.json index 6279fa350a..cc2754520b 100644 --- a/packages/client/ui-sidebar-terminal/package.json +++ b/packages/client/ui-sidebar-terminal/package.json @@ -78,6 +78,7 @@ "lib/client.*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-sidebar/package.json b/packages/client/ui-sidebar/package.json index b09fd9ffa4..0f313e69c9 100644 --- a/packages/client/ui-sidebar/package.json +++ b/packages/client/ui-sidebar/package.json @@ -70,6 +70,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-skill/package.json b/packages/client/ui-skill/package.json index e5d2e84496..26c61bb10f 100644 --- a/packages/client/ui-skill/package.json +++ b/packages/client/ui-skill/package.json @@ -73,6 +73,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-slots/package.json b/packages/client/ui-slots/package.json index 808269b089..0998991039 100644 --- a/packages/client/ui-slots/package.json +++ b/packages/client/ui-slots/package.json @@ -31,6 +31,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "peerDependencies": { diff --git a/packages/client/ui-subagent/package.json b/packages/client/ui-subagent/package.json index 4ebd50f44d..a5c6c741fa 100644 --- a/packages/client/ui-subagent/package.json +++ b/packages/client/ui-subagent/package.json @@ -78,6 +78,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-theme/package.json b/packages/client/ui-theme/package.json index e3310e252e..9436774466 100644 --- a/packages/client/ui-theme/package.json +++ b/packages/client/ui-theme/package.json @@ -66,6 +66,7 @@ "lib/styles", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "scripts": { diff --git a/packages/client/ui-tool/package.json b/packages/client/ui-tool/package.json index 45c3781fcd..c8a5d020f2 100644 --- a/packages/client/ui-tool/package.json +++ b/packages/client/ui-tool/package.json @@ -84,6 +84,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-trajectory/package.json b/packages/client/ui-trajectory/package.json index 06e1f18796..c28ed82e65 100644 --- a/packages/client/ui-trajectory/package.json +++ b/packages/client/ui-trajectory/package.json @@ -76,6 +76,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-user-questions/package.json b/packages/client/ui-user-questions/package.json index 0cbe8cfa97..6ad654d93a 100644 --- a/packages/client/ui-user-questions/package.json +++ b/packages/client/ui-user-questions/package.json @@ -78,6 +78,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/ui-workflow-run/package.json b/packages/client/ui-workflow-run/package.json index bbe4728d52..6ddf43bb3e 100644 --- a/packages/client/ui-workflow-run/package.json +++ b/packages/client/ui-workflow-run/package.json @@ -48,6 +48,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/client/ui-workspace/package.json b/packages/client/ui-workspace/package.json index 05a9c77ded..d14bde4679 100644 --- a/packages/client/ui-workspace/package.json +++ b/packages/client/ui-workspace/package.json @@ -86,6 +86,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/client/web/package.json b/packages/client/web/package.json index c43c8e3c55..161f233048 100644 --- a/packages/client/web/package.json +++ b/packages/client/web/package.json @@ -51,6 +51,7 @@ "lib/apply-injections.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/compaction/command-compact/package.json b/packages/compaction/command-compact/package.json index 324dfef173..7afdd53c65 100644 --- a/packages/compaction/command-compact/package.json +++ b/packages/compaction/command-compact/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/compaction/compaction-basic/package.json b/packages/compaction/compaction-basic/package.json index 2e7458d70a..a2af26e156 100644 --- a/packages/compaction/compaction-basic/package.json +++ b/packages/compaction/compaction-basic/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/compaction/compaction-image-offload/package.json b/packages/compaction/compaction-image-offload/package.json index 104f443ada..687688cf56 100644 --- a/packages/compaction/compaction-image-offload/package.json +++ b/packages/compaction/compaction-image-offload/package.json @@ -29,6 +29,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/compaction/compaction-tool-result-pruner/package.json b/packages/compaction/compaction-tool-result-pruner/package.json index 98e8bac151..fc128a2a51 100644 --- a/packages/compaction/compaction-tool-result-pruner/package.json +++ b/packages/compaction/compaction-tool-result-pruner/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/compaction/compaction/package.json b/packages/compaction/compaction/package.json index 4da7b162d0..456d3058bb 100644 --- a/packages/compaction/compaction/package.json +++ b/packages/compaction/compaction/package.json @@ -34,6 +34,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/computer-use/computer-use/package.json b/packages/computer-use/computer-use/package.json index 2f4bd4b561..dc02636cf6 100644 --- a/packages/computer-use/computer-use/package.json +++ b/packages/computer-use/computer-use/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/context/agent-instructions/package.json b/packages/context/agent-instructions/package.json index bbb0a78028..4a80e83ede 100644 --- a/packages/context/agent-instructions/package.json +++ b/packages/context/agent-instructions/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/context/file-reference-local/package.json b/packages/context/file-reference-local/package.json index 4bb0ed6609..61a40a7102 100644 --- a/packages/context/file-reference-local/package.json +++ b/packages/context/file-reference-local/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/context/file-reference/package.json b/packages/context/file-reference/package.json index af6f101793..83dfd75fa4 100644 --- a/packages/context/file-reference/package.json +++ b/packages/context/file-reference/package.json @@ -34,6 +34,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/context/session-reference/package.json b/packages/context/session-reference/package.json index e9897c5d0e..38941f3a48 100644 --- a/packages/context/session-reference/package.json +++ b/packages/context/session-reference/package.json @@ -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", diff --git a/packages/context/time-context/package.json b/packages/context/time-context/package.json index 2f33097a13..5d3a913680 100644 --- a/packages/context/time-context/package.json +++ b/packages/context/time-context/package.json @@ -27,6 +27,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/context/tmux-context/package.json b/packages/context/tmux-context/package.json index 6614e96b4f..0d83abf942 100644 --- a/packages/context/tmux-context/package.json +++ b/packages/context/tmux-context/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/core/agent-default-model/package.json b/packages/core/agent-default-model/package.json index 95a8c6bf9a..b21beec348 100644 --- a/packages/core/agent-default-model/package.json +++ b/packages/core/agent-default-model/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/core/agent-loop/package.json b/packages/core/agent-loop/package.json index 11e2637b19..aeb09317b5 100644 --- a/packages/core/agent-loop/package.json +++ b/packages/core/agent-loop/package.json @@ -24,6 +24,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/core/agent-tool-presentation/package.json b/packages/core/agent-tool-presentation/package.json index 24222c7831..252d99369e 100644 --- a/packages/core/agent-tool-presentation/package.json +++ b/packages/core/agent-tool-presentation/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/core/agent/package.json b/packages/core/agent/package.json index baa51e2bae..556217987b 100644 --- a/packages/core/agent/package.json +++ b/packages/core/agent/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/core/scope/package.json b/packages/core/scope/package.json index 2f0cdca10a..e545d43729 100644 --- a/packages/core/scope/package.json +++ b/packages/core/scope/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/core/session/package.json b/packages/core/session/package.json index 036627d364..b1556705dd 100644 --- a/packages/core/session/package.json +++ b/packages/core/session/package.json @@ -38,6 +38,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/core/system-prompt/package.json b/packages/core/system-prompt/package.json index 8674b12846..967baef5ea 100644 --- a/packages/core/system-prompt/package.json +++ b/packages/core/system-prompt/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/core/tools/package.json b/packages/core/tools/package.json index f08522c45a..92d3f98b34 100644 --- a/packages/core/tools/package.json +++ b/packages/core/tools/package.json @@ -34,6 +34,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/credentials/authorization/package.json b/packages/credentials/authorization/package.json index 8086274bc9..714cb5b15c 100644 --- a/packages/credentials/authorization/package.json +++ b/packages/credentials/authorization/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/credentials/credentials-local/package.json b/packages/credentials/credentials-local/package.json index 2c03c980c0..4413d85547 100644 --- a/packages/credentials/credentials-local/package.json +++ b/packages/credentials/credentials-local/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/credentials/credentials/package.json b/packages/credentials/credentials/package.json index bbbd675062..a8eef507f5 100644 --- a/packages/credentials/credentials/package.json +++ b/packages/credentials/credentials/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/credentials/deepseek-account-platform/package.json b/packages/credentials/deepseek-account-platform/package.json index 8327ec2ba3..cb8735c422 100644 --- a/packages/credentials/deepseek-account-platform/package.json +++ b/packages/credentials/deepseek-account-platform/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/credentials/deepseek-account/package.json b/packages/credentials/deepseek-account/package.json index 27a9da1f24..cd85a24e12 100644 --- a/packages/credentials/deepseek-account/package.json +++ b/packages/credentials/deepseek-account/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/deliverables/tool-present/package.json b/packages/deliverables/tool-present/package.json index e9181ed2a6..23c578afc6 100644 --- a/packages/deliverables/tool-present/package.json +++ b/packages/deliverables/tool-present/package.json @@ -31,6 +31,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "dependencies": { diff --git a/packages/deliverables/workspace-changes/package.json b/packages/deliverables/workspace-changes/package.json index f93a7d0712..dbef73bf4a 100644 --- a/packages/deliverables/workspace-changes/package.json +++ b/packages/deliverables/workspace-changes/package.json @@ -31,6 +31,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "dependencies": { diff --git a/packages/document/office-to-pdf/package.json b/packages/document/office-to-pdf/package.json index bf13eaaf96..b78bfac838 100644 --- a/packages/document/office-to-pdf/package.json +++ b/packages/document/office-to-pdf/package.json @@ -39,6 +39,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", diff --git a/packages/experimental/agent-team-profile/package.json b/packages/experimental/agent-team-profile/package.json index cdcc2217b8..f1b90dc051 100644 --- a/packages/experimental/agent-team-profile/package.json +++ b/packages/experimental/agent-team-profile/package.json @@ -31,6 +31,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/agent-team/package.json b/packages/experimental/agent-team/package.json index cb10d380cd..52786d25f5 100644 --- a/packages/experimental/agent-team/package.json +++ b/packages/experimental/agent-team/package.json @@ -36,6 +36,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/api-speech-to-text/package.json b/packages/experimental/api-speech-to-text/package.json index 0503a8c646..6ebb11c3e7 100644 --- a/packages/experimental/api-speech-to-text/package.json +++ b/packages/experimental/api-speech-to-text/package.json @@ -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", diff --git a/packages/experimental/auto-review/package.json b/packages/experimental/auto-review/package.json index d369477539..c625c226bb 100644 --- a/packages/experimental/auto-review/package.json +++ b/packages/experimental/auto-review/package.json @@ -28,6 +28,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/badge-skill-bundle/package.json b/packages/experimental/badge-skill-bundle/package.json index 31e091cae6..3f191f403e 100644 --- a/packages/experimental/badge-skill-bundle/package.json +++ b/packages/experimental/badge-skill-bundle/package.json @@ -31,6 +31,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/browser-use-chrome-devtools-mcp/package.json b/packages/experimental/browser-use-chrome-devtools-mcp/package.json index 649d452d51..cd9f9a99b5 100644 --- a/packages/experimental/browser-use-chrome-devtools-mcp/package.json +++ b/packages/experimental/browser-use-chrome-devtools-mcp/package.json @@ -27,6 +27,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/browser-use-playwright-mcp/package.json b/packages/experimental/browser-use-playwright-mcp/package.json index 130fd36866..bf1da64375 100644 --- a/packages/experimental/browser-use-playwright-mcp/package.json +++ b/packages/experimental/browser-use-playwright-mcp/package.json @@ -27,6 +27,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/browser-use-runtime/package.json b/packages/experimental/browser-use-runtime/package.json index 1c2bb93a41..e35925b0a1 100644 --- a/packages/experimental/browser-use-runtime/package.json +++ b/packages/experimental/browser-use-runtime/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/browser-use-stagehand-native/package.json b/packages/experimental/browser-use-stagehand-native/package.json index 9a098ea4d8..31a1cc64a3 100644 --- a/packages/experimental/browser-use-stagehand-native/package.json +++ b/packages/experimental/browser-use-stagehand-native/package.json @@ -30,6 +30,7 @@ "lib/worker.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/claude-code-mods/package.json b/packages/experimental/claude-code-mods/package.json index 0cea68cf83..028396302f 100644 --- a/packages/experimental/claude-code-mods/package.json +++ b/packages/experimental/claude-code-mods/package.json @@ -43,6 +43,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", diff --git a/packages/experimental/client-ui-agent-team/package.json b/packages/experimental/client-ui-agent-team/package.json index 39095ad10f..ff6de22113 100644 --- a/packages/experimental/client-ui-agent-team/package.json +++ b/packages/experimental/client-ui-agent-team/package.json @@ -82,6 +82,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/experimental/client-ui-claude-code-mods/package.json b/packages/experimental/client-ui-claude-code-mods/package.json index 219958feb4..d874ed5a30 100644 --- a/packages/experimental/client-ui-claude-code-mods/package.json +++ b/packages/experimental/client-ui-claude-code-mods/package.json @@ -46,6 +46,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/client-ui-cot-translation/package.json b/packages/experimental/client-ui-cot-translation/package.json index 4c34f6995d..147fc00d6a 100644 --- a/packages/experimental/client-ui-cot-translation/package.json +++ b/packages/experimental/client-ui-cot-translation/package.json @@ -99,6 +99,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", diff --git a/packages/experimental/client-ui-voice-input/package.json b/packages/experimental/client-ui-voice-input/package.json index 52947344eb..6fb49645e6 100644 --- a/packages/experimental/client-ui-voice-input/package.json +++ b/packages/experimental/client-ui-voice-input/package.json @@ -30,6 +30,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/computer-use-cua-driver-mcp/package.json b/packages/experimental/computer-use-cua-driver-mcp/package.json index 8dc46d644c..264bd03a3a 100644 --- a/packages/experimental/computer-use-cua-driver-mcp/package.json +++ b/packages/experimental/computer-use-cua-driver-mcp/package.json @@ -27,6 +27,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/computer-use-cua-driver-native/package.json b/packages/experimental/computer-use-cua-driver-native/package.json index 1ff2b78772..d2c958a156 100644 --- a/packages/experimental/computer-use-cua-driver-native/package.json +++ b/packages/experimental/computer-use-cua-driver-native/package.json @@ -27,6 +27,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/cot-translation-bundle/package.json b/packages/experimental/cot-translation-bundle/package.json index 94adb61160..a7a7226a46 100644 --- a/packages/experimental/cot-translation-bundle/package.json +++ b/packages/experimental/cot-translation-bundle/package.json @@ -31,6 +31,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/hook-protocol/package.json b/packages/experimental/hook-protocol/package.json index 7bc2b5ccfd..5b8cbe7589 100644 --- a/packages/experimental/hook-protocol/package.json +++ b/packages/experimental/hook-protocol/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/hooks-claude-code/package.json b/packages/experimental/hooks-claude-code/package.json index bc53713b75..c2bba1f575 100644 --- a/packages/experimental/hooks-claude-code/package.json +++ b/packages/experimental/hooks-claude-code/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/hooks-codex/package.json b/packages/experimental/hooks-codex/package.json index db892f744b..903161ea0f 100644 --- a/packages/experimental/hooks-codex/package.json +++ b/packages/experimental/hooks-codex/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/inspector-profile/package.json b/packages/experimental/inspector-profile/package.json index fce0e27389..84bb5ee08b 100644 --- a/packages/experimental/inspector-profile/package.json +++ b/packages/experimental/inspector-profile/package.json @@ -31,6 +31,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/inspector/package.json b/packages/experimental/inspector/package.json index d07bc8440e..a5722a6821 100644 --- a/packages/experimental/inspector/package.json +++ b/packages/experimental/inspector/package.json @@ -44,6 +44,7 @@ "lib/devtools/**", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/ptc-runtime-python/package.json b/packages/experimental/ptc-runtime-python/package.json index 05d6695922..3a05730ee4 100644 --- a/packages/experimental/ptc-runtime-python/package.json +++ b/packages/experimental/ptc-runtime-python/package.json @@ -22,6 +22,7 @@ "py/**/*.py", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/ralph-bundle/package.json b/packages/experimental/ralph-bundle/package.json index 8a9ca8c122..27f94165f6 100644 --- a/packages/experimental/ralph-bundle/package.json +++ b/packages/experimental/ralph-bundle/package.json @@ -31,6 +31,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/session-inspector/package.json b/packages/experimental/session-inspector/package.json index d72e339160..a260aa49e3 100644 --- a/packages/experimental/session-inspector/package.json +++ b/packages/experimental/session-inspector/package.json @@ -44,6 +44,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "scripts": { diff --git a/packages/experimental/session-search/package.json b/packages/experimental/session-search/package.json index 27b4d8a481..3a04d084ea 100644 --- a/packages/experimental/session-search/package.json +++ b/packages/experimental/session-search/package.json @@ -31,6 +31,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/session-title-all-prompts-llm/package.json b/packages/experimental/session-title-all-prompts-llm/package.json index 3bb6b1a8a1..e74f6e9468 100644 --- a/packages/experimental/session-title-all-prompts-llm/package.json +++ b/packages/experimental/session-title-all-prompts-llm/package.json @@ -20,7 +20,7 @@ }, "./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-llm": "workspace:*", diff --git a/packages/experimental/session-titles-bundle/package.json b/packages/experimental/session-titles-bundle/package.json index 475f158d5e..873e852787 100644 --- a/packages/experimental/session-titles-bundle/package.json +++ b/packages/experimental/session-titles-bundle/package.json @@ -31,6 +31,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/skill-badge/package.json b/packages/experimental/skill-badge/package.json index 8fabfbad9f..ef68b88b8f 100644 --- a/packages/experimental/skill-badge/package.json +++ b/packages/experimental/skill-badge/package.json @@ -25,6 +25,7 @@ "assets", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/speech-to-text-sensevoice/package.json b/packages/experimental/speech-to-text-sensevoice/package.json index 104c4b0536..b4e0ff12d4 100644 --- a/packages/experimental/speech-to-text-sensevoice/package.json +++ b/packages/experimental/speech-to-text-sensevoice/package.json @@ -31,6 +31,7 @@ "runtime/assets.json", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/speech-to-text/package.json b/packages/experimental/speech-to-text/package.json index a409000607..952b563a62 100644 --- a/packages/experimental/speech-to-text/package.json +++ b/packages/experimental/speech-to-text/package.json @@ -34,6 +34,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/terminal-bundle/package.json b/packages/experimental/terminal-bundle/package.json index fe5c7f385b..04a3362a4e 100644 --- a/packages/experimental/terminal-bundle/package.json +++ b/packages/experimental/terminal-bundle/package.json @@ -31,6 +31,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/tool-agent-team/package.json b/packages/experimental/tool-agent-team/package.json index c87306ccfd..ee4ca4b1b3 100644 --- a/packages/experimental/tool-agent-team/package.json +++ b/packages/experimental/tool-agent-team/package.json @@ -27,6 +27,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/tool-ralph/package.json b/packages/experimental/tool-ralph/package.json index 1a00b6fdfa..e7a8d4c85b 100644 --- a/packages/experimental/tool-ralph/package.json +++ b/packages/experimental/tool-ralph/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/tool-session-query/package.json b/packages/experimental/tool-session-query/package.json index 6529b88486..76203c03a5 100644 --- a/packages/experimental/tool-session-query/package.json +++ b/packages/experimental/tool-session-query/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/tool-terminal/package.json b/packages/experimental/tool-terminal/package.json index 77eeba7bde..61c1bd7e29 100644 --- a/packages/experimental/tool-terminal/package.json +++ b/packages/experimental/tool-terminal/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/tool-worktree/package.json b/packages/experimental/tool-worktree/package.json index c190a33d11..bbd3e07fb6 100644 --- a/packages/experimental/tool-worktree/package.json +++ b/packages/experimental/tool-worktree/package.json @@ -25,6 +25,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/translator/package.json b/packages/experimental/translator/package.json index 0b8532d919..5d49683137 100644 --- a/packages/experimental/translator/package.json +++ b/packages/experimental/translator/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/voice-input-bundle/package.json b/packages/experimental/voice-input-bundle/package.json index 42c4b82110..b28acf3d03 100644 --- a/packages/experimental/voice-input-bundle/package.json +++ b/packages/experimental/voice-input-bundle/package.json @@ -31,6 +31,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/webhook-github/package.json b/packages/experimental/webhook-github/package.json index 6876690a14..90ff38f0d8 100644 --- a/packages/experimental/webhook-github/package.json +++ b/packages/experimental/webhook-github/package.json @@ -33,6 +33,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/webhook/package.json b/packages/experimental/webhook/package.json index 6ae1c738a3..eae75821ad 100644 --- a/packages/experimental/webhook/package.json +++ b/packages/experimental/webhook/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/webworker-packer/package.json b/packages/experimental/webworker-packer/package.json index d559b90127..5b8052801c 100644 --- a/packages/experimental/webworker-packer/package.json +++ b/packages/experimental/webworker-packer/package.json @@ -31,6 +31,7 @@ "lib/repository-*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/experimental/webworker-runtime/package.json b/packages/experimental/webworker-runtime/package.json index 8e0dd86948..caf81bc345 100644 --- a/packages/experimental/webworker-runtime/package.json +++ b/packages/experimental/webworker-runtime/package.json @@ -72,6 +72,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/experimental/worktree/package.json b/packages/experimental/worktree/package.json index 04d9bef0a9..4e3d89dc28 100644 --- a/packages/experimental/worktree/package.json +++ b/packages/experimental/worktree/package.json @@ -20,6 +20,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/extensions/cordis-client-runner/package.json b/packages/extensions/cordis-client-runner/package.json index 4a5969e872..025c4bceb6 100644 --- a/packages/extensions/cordis-client-runner/package.json +++ b/packages/extensions/cordis-client-runner/package.json @@ -60,6 +60,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/extensions/cordis-host-runner/package.json b/packages/extensions/cordis-host-runner/package.json index 6d7230de92..9a81b3374d 100644 --- a/packages/extensions/cordis-host-runner/package.json +++ b/packages/extensions/cordis-host-runner/package.json @@ -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", diff --git a/packages/extensions/tool-cordis/package.json b/packages/extensions/tool-cordis/package.json index eeb414d4da..2ee5343f2e 100644 --- a/packages/extensions/tool-cordis/package.json +++ b/packages/extensions/tool-cordis/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/extensions/ui-cordis/package.json b/packages/extensions/ui-cordis/package.json index c54a7609a3..c54128f3c3 100644 --- a/packages/extensions/ui-cordis/package.json +++ b/packages/extensions/ui-cordis/package.json @@ -70,6 +70,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/feedback/command-feedback/package.json b/packages/feedback/command-feedback/package.json index 1fff4ede00..3459d00427 100644 --- a/packages/feedback/command-feedback/package.json +++ b/packages/feedback/command-feedback/package.json @@ -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", diff --git a/packages/feedback/message-feedback/package.json b/packages/feedback/message-feedback/package.json index 7e7eb125c1..629d3f0efe 100644 --- a/packages/feedback/message-feedback/package.json +++ b/packages/feedback/message-feedback/package.json @@ -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", diff --git a/packages/fs/fs-local/package.json b/packages/fs/fs-local/package.json index c35b192556..6b56482279 100644 --- a/packages/fs/fs-local/package.json +++ b/packages/fs/fs-local/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/fs/fs-observation-policy/package.json b/packages/fs/fs-observation-policy/package.json index 4fafe004a6..25c0a03649 100644 --- a/packages/fs/fs-observation-policy/package.json +++ b/packages/fs/fs-observation-policy/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/fs/fs-sandbox/package.json b/packages/fs/fs-sandbox/package.json index 0489bd3683..12d908f154 100644 --- a/packages/fs/fs-sandbox/package.json +++ b/packages/fs/fs-sandbox/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/fs/fs/package.json b/packages/fs/fs/package.json index ed24412780..a55da0c15e 100644 --- a/packages/fs/fs/package.json +++ b/packages/fs/fs/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/fs/tool-fs-search/package.json b/packages/fs/tool-fs-search/package.json index 5d071328cb..86bd3caaa7 100644 --- a/packages/fs/tool-fs-search/package.json +++ b/packages/fs/tool-fs-search/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/fs/tool-fs/package.json b/packages/fs/tool-fs/package.json index d23fc7f325..50dba805f0 100644 --- a/packages/fs/tool-fs/package.json +++ b/packages/fs/tool-fs/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/fs/tool-str-replace-editor/package.json b/packages/fs/tool-str-replace-editor/package.json index 935db843f3..7b831e2c48 100644 --- a/packages/fs/tool-str-replace-editor/package.json +++ b/packages/fs/tool-str-replace-editor/package.json @@ -24,6 +24,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/goal/command-goal/package.json b/packages/goal/command-goal/package.json index 8768f3faea..af3503d309 100644 --- a/packages/goal/command-goal/package.json +++ b/packages/goal/command-goal/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/goal/goal-round-driver/package.json b/packages/goal/goal-round-driver/package.json index 0c31c44ff5..e3a475c7d2 100644 --- a/packages/goal/goal-round-driver/package.json +++ b/packages/goal/goal-round-driver/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/goal/goal/package.json b/packages/goal/goal/package.json index 6aaf86841b..48af188478 100644 --- a/packages/goal/goal/package.json +++ b/packages/goal/goal/package.json @@ -42,6 +42,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", diff --git a/packages/goal/tool-goal/package.json b/packages/goal/tool-goal/package.json index 5d435f756d..97dd70ce74 100644 --- a/packages/goal/tool-goal/package.json +++ b/packages/goal/tool-goal/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/guard/repeat-tool-reminder/package.json b/packages/guard/repeat-tool-reminder/package.json index 768dc9fce4..24d36a8ad9 100644 --- a/packages/guard/repeat-tool-reminder/package.json +++ b/packages/guard/repeat-tool-reminder/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/guard/timeout-policy/package.json b/packages/guard/timeout-policy/package.json index 0a73a9f35c..f45c509f20 100644 --- a/packages/guard/timeout-policy/package.json +++ b/packages/guard/timeout-policy/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/host/directory-picker-auto/package.json b/packages/host/directory-picker-auto/package.json index 5cf701d404..cf13247ba0 100644 --- a/packages/host/directory-picker-auto/package.json +++ b/packages/host/directory-picker-auto/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/host/directory-picker-browse/package.json b/packages/host/directory-picker-browse/package.json index dd7ba06db4..63c5c69623 100644 --- a/packages/host/directory-picker-browse/package.json +++ b/packages/host/directory-picker-browse/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/host/directory-picker-native/package.json b/packages/host/directory-picker-native/package.json index 0eac59940f..bb08985bd0 100644 --- a/packages/host/directory-picker-native/package.json +++ b/packages/host/directory-picker-native/package.json @@ -30,6 +30,7 @@ "lib/worker.cjs", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/host/directory-picker/package.json b/packages/host/directory-picker/package.json index 25336edb88..1f9c9c7909 100644 --- a/packages/host/directory-picker/package.json +++ b/packages/host/directory-picker/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/host/frontend-static/package.json b/packages/host/frontend-static/package.json index 340f90aafc..fdb1c30292 100644 --- a/packages/host/frontend-static/package.json +++ b/packages/host/frontend-static/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/host/open-in-app/package.json b/packages/host/open-in-app/package.json index 4f5ac03af2..356d760753 100644 --- a/packages/host/open-in-app/package.json +++ b/packages/host/open-in-app/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "scripts": { diff --git a/packages/host/plugin-inventory/package.json b/packages/host/plugin-inventory/package.json index 6866a73d15..8bb14b5536 100644 --- a/packages/host/plugin-inventory/package.json +++ b/packages/host/plugin-inventory/package.json @@ -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", diff --git a/packages/host/product-telemetry-otel/package.json b/packages/host/product-telemetry-otel/package.json index c4df33880d..e91e51f4f2 100644 --- a/packages/host/product-telemetry-otel/package.json +++ b/packages/host/product-telemetry-otel/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/host/webserver/package.json b/packages/host/webserver/package.json index 937e784b2f..d8dab05ab1 100644 --- a/packages/host/webserver/package.json +++ b/packages/host/webserver/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/identity/anonymous-user-id/package.json b/packages/identity/anonymous-user-id/package.json index 343a2e0129..8e823db394 100644 --- a/packages/identity/anonymous-user-id/package.json +++ b/packages/identity/anonymous-user-id/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/interaction/commands/package.json b/packages/interaction/commands/package.json index 1438b1ba34..76f07d8b32 100644 --- a/packages/interaction/commands/package.json +++ b/packages/interaction/commands/package.json @@ -42,6 +42,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", diff --git a/packages/interaction/permission-presets/package.json b/packages/interaction/permission-presets/package.json index 02574196ce..46c7492160 100644 --- a/packages/interaction/permission-presets/package.json +++ b/packages/interaction/permission-presets/package.json @@ -42,6 +42,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", diff --git a/packages/interaction/tool-ask-user/package.json b/packages/interaction/tool-ask-user/package.json index be03b9753b..60e9061b0f 100644 --- a/packages/interaction/tool-ask-user/package.json +++ b/packages/interaction/tool-ask-user/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/interaction/user-approval/package.json b/packages/interaction/user-approval/package.json index 892822c325..5e6a9f1473 100644 --- a/packages/interaction/user-approval/package.json +++ b/packages/interaction/user-approval/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/interaction/user-questions/package.json b/packages/interaction/user-questions/package.json index 32a5e187f5..7cd34e2a8b 100644 --- a/packages/interaction/user-questions/package.json +++ b/packages/interaction/user-questions/package.json @@ -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", diff --git a/packages/jobs/jobs-local/package.json b/packages/jobs/jobs-local/package.json index 2ec47820ee..91da4a53ce 100644 --- a/packages/jobs/jobs-local/package.json +++ b/packages/jobs/jobs-local/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/jobs/jobs/package.json b/packages/jobs/jobs/package.json index 583262031c..d567ada934 100644 --- a/packages/jobs/jobs/package.json +++ b/packages/jobs/jobs/package.json @@ -34,6 +34,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/jobs/tool-jobs/package.json b/packages/jobs/tool-jobs/package.json index ddb327ed01..c824d667f3 100644 --- a/packages/jobs/tool-jobs/package.json +++ b/packages/jobs/tool-jobs/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/llm/deepseek-llm-api-extensions/package.json b/packages/llm/deepseek-llm-api-extensions/package.json index b0cfbfe34b..7c3f186669 100644 --- a/packages/llm/deepseek-llm-api-extensions/package.json +++ b/packages/llm/deepseek-llm-api-extensions/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/llm/llm-deepseek-account/package.json b/packages/llm/llm-deepseek-account/package.json index eb845ebf0f..ee7238864c 100644 --- a/packages/llm/llm-deepseek-account/package.json +++ b/packages/llm/llm-deepseek-account/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/llm/llm-deepseek-api-key/package.json b/packages/llm/llm-deepseek-api-key/package.json index 4f38bd175f..8711aa3073 100644 --- a/packages/llm/llm-deepseek-api-key/package.json +++ b/packages/llm/llm-deepseek-api-key/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/llm/llm-deepseek/package.json b/packages/llm/llm-deepseek/package.json index a063196db7..89805c8de3 100644 --- a/packages/llm/llm-deepseek/package.json +++ b/packages/llm/llm-deepseek/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/llm/llm-pi-ai/package.json b/packages/llm/llm-pi-ai/package.json index f7bd71cf67..203dd57edc 100644 --- a/packages/llm/llm-pi-ai/package.json +++ b/packages/llm/llm-pi-ai/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/llm/llm-retry/package.json b/packages/llm/llm-retry/package.json index ace74cef77..7403df8116 100644 --- a/packages/llm/llm-retry/package.json +++ b/packages/llm/llm-retry/package.json @@ -29,6 +29,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/llm/llm/package.json b/packages/llm/llm/package.json index fd795473b1..fc32fb2a37 100644 --- a/packages/llm/llm/package.json +++ b/packages/llm/llm/package.json @@ -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", diff --git a/packages/llm/plugin-package-inventory-deepseek/package.json b/packages/llm/plugin-package-inventory-deepseek/package.json index 7b44e081a0..2aff06d58f 100644 --- a/packages/llm/plugin-package-inventory-deepseek/package.json +++ b/packages/llm/plugin-package-inventory-deepseek/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/llm/token-meter/package.json b/packages/llm/token-meter/package.json index b6deb61092..da3d59b940 100644 --- a/packages/llm/token-meter/package.json +++ b/packages/llm/token-meter/package.json @@ -34,6 +34,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/lsp/lsp-stdio/package.json b/packages/lsp/lsp-stdio/package.json index c7951b7fe7..100d30ef89 100644 --- a/packages/lsp/lsp-stdio/package.json +++ b/packages/lsp/lsp-stdio/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/lsp/lsp/package.json b/packages/lsp/lsp/package.json index 0e0fc2cd15..0840b8f2ca 100644 --- a/packages/lsp/lsp/package.json +++ b/packages/lsp/lsp/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/lsp/tool-lsp/package.json b/packages/lsp/tool-lsp/package.json index fa1ae3eb6e..982c0b566d 100644 --- a/packages/lsp/tool-lsp/package.json +++ b/packages/lsp/tool-lsp/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/mcp/mcp-client/package.json b/packages/mcp/mcp-client/package.json index bede42eef5..4bf1bde51f 100644 --- a/packages/mcp/mcp-client/package.json +++ b/packages/mcp/mcp-client/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/mcp/mcp-resources/package.json b/packages/mcp/mcp-resources/package.json index 007f95b2ed..f8cf52918d 100644 --- a/packages/mcp/mcp-resources/package.json +++ b/packages/mcp/mcp-resources/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/plan/plan-mode/package.json b/packages/plan/plan-mode/package.json index 39506db035..f702b6d503 100644 --- a/packages/plan/plan-mode/package.json +++ b/packages/plan/plan-mode/package.json @@ -34,6 +34,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/preset/agent-preset-registry/package.json b/packages/preset/agent-preset-registry/package.json index 6d4b08ce46..933f0f2060 100644 --- a/packages/preset/agent-preset-registry/package.json +++ b/packages/preset/agent-preset-registry/package.json @@ -42,6 +42,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", diff --git a/packages/preset/agent-preset/package.json b/packages/preset/agent-preset/package.json index c81c5f53bf..d33f3d9f40 100644 --- a/packages/preset/agent-preset/package.json +++ b/packages/preset/agent-preset/package.json @@ -26,6 +26,7 @@ "skills", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/preset/persona/package.json b/packages/preset/persona/package.json index e075a9451c..b7898304c6 100644 --- a/packages/preset/persona/package.json +++ b/packages/preset/persona/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/ptc-runtime/ptc-runtime-node/package.json b/packages/ptc-runtime/ptc-runtime-node/package.json index 985970c1f0..a556409593 100644 --- a/packages/ptc-runtime/ptc-runtime-node/package.json +++ b/packages/ptc-runtime/ptc-runtime-node/package.json @@ -29,6 +29,7 @@ "lib/process.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/ptc-runtime/ptc-runtime/package.json b/packages/ptc-runtime/ptc-runtime/package.json index 1c9b574c5f..06656c1475 100644 --- a/packages/ptc-runtime/ptc-runtime/package.json +++ b/packages/ptc-runtime/ptc-runtime/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/sandbox/sandbox-local/package.json b/packages/sandbox/sandbox-local/package.json index aa62a7f346..449a12546c 100644 --- a/packages/sandbox/sandbox-local/package.json +++ b/packages/sandbox/sandbox-local/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/sandbox/sandbox-policy/package.json b/packages/sandbox/sandbox-policy/package.json index 01fd4fadf2..ac21da1136 100644 --- a/packages/sandbox/sandbox-policy/package.json +++ b/packages/sandbox/sandbox-policy/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/sandbox/sandbox-windows-acl/package.json b/packages/sandbox/sandbox-windows-acl/package.json index 50bbf248f2..f9f8b2d6eb 100644 --- a/packages/sandbox/sandbox-windows-acl/package.json +++ b/packages/sandbox/sandbox-windows-acl/package.json @@ -32,6 +32,7 @@ "assets", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/sandbox/sandbox/package.json b/packages/sandbox/sandbox/package.json index 7832484f82..cb67f2990c 100644 --- a/packages/sandbox/sandbox/package.json +++ b/packages/sandbox/sandbox/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/schedule/schedule/package.json b/packages/schedule/schedule/package.json index 06c581865d..a734ff99c7 100644 --- a/packages/schedule/schedule/package.json +++ b/packages/schedule/schedule/package.json @@ -40,6 +40,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", diff --git a/packages/schedule/tool-schedule/package.json b/packages/schedule/tool-schedule/package.json index f1aeace930..b46ceeb2c5 100644 --- a/packages/schedule/tool-schedule/package.json +++ b/packages/schedule/tool-schedule/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/sdk/client/package.json b/packages/sdk/client/package.json index 36b69dc026..ec5bfd9443 100644 --- a/packages/sdk/client/package.json +++ b/packages/sdk/client/package.json @@ -24,6 +24,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/sdk/protocol/package.json b/packages/sdk/protocol/package.json index 015ae6f137..9954b04ebe 100644 --- a/packages/sdk/protocol/package.json +++ b/packages/sdk/protocol/package.json @@ -24,6 +24,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/sdk/server/package.json b/packages/sdk/server/package.json index d22b5d50ce..7b12a98734 100644 --- a/packages/sdk/server/package.json +++ b/packages/sdk/server/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session-query/session-log-export/package.json b/packages/session-query/session-log-export/package.json index 42d5a57a5b..c1b6bc868a 100644 --- a/packages/session-query/session-log-export/package.json +++ b/packages/session-query/session-log-export/package.json @@ -30,6 +30,7 @@ "lib/client.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "scripts": { diff --git a/packages/session-query/session-query-sqlite/package.json b/packages/session-query/session-query-sqlite/package.json index b870decc61..81519eb794 100644 --- a/packages/session-query/session-query-sqlite/package.json +++ b/packages/session-query/session-query-sqlite/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session-query/session-query/package.json b/packages/session-query/session-query/package.json index 451e2629e9..58051b7e8a 100644 --- a/packages/session-query/session-query/package.json +++ b/packages/session-query/session-query/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-checkpoint-policy/package.json b/packages/session/session-checkpoint-policy/package.json index 5ffdd494eb..d93c487126 100644 --- a/packages/session/session-checkpoint-policy/package.json +++ b/packages/session/session-checkpoint-policy/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-format-catalog/package.json b/packages/session/session-format-catalog/package.json index 3784a39249..a83808e66b 100644 --- a/packages/session/session-format-catalog/package.json +++ b/packages/session/session-format-catalog/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-format-v0-to-v1/package.json b/packages/session/session-format-v0-to-v1/package.json index 725b79b2eb..8440b113bd 100644 --- a/packages/session/session-format-v0-to-v1/package.json +++ b/packages/session/session-format-v0-to-v1/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-format-v1-to-v2/package.json b/packages/session/session-format-v1-to-v2/package.json index 479a05a5d0..f5690db897 100644 --- a/packages/session/session-format-v1-to-v2/package.json +++ b/packages/session/session-format-v1-to-v2/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-format-v2-to-v3/package.json b/packages/session/session-format-v2-to-v3/package.json index 54ca6aae2d..f3b20ce642 100644 --- a/packages/session/session-format-v2-to-v3/package.json +++ b/packages/session/session-format-v2-to-v3/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-format-v3-to-v4/package.json b/packages/session/session-format-v3-to-v4/package.json index 761da726bf..9191699421 100644 --- a/packages/session/session-format-v3-to-v4/package.json +++ b/packages/session/session-format-v3-to-v4/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-format/package.json b/packages/session/session-format/package.json index fb177e97e6..b72cf4cd3b 100644 --- a/packages/session/session-format/package.json +++ b/packages/session/session-format/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-log-deepseek/package.json b/packages/session/session-log-deepseek/package.json index 6c74e725dd..7a73885d72 100644 --- a/packages/session/session-log-deepseek/package.json +++ b/packages/session/session-log-deepseek/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-persistence-jsonl/package.json b/packages/session/session-persistence-jsonl/package.json index 77d58cfa01..8a89b5beed 100644 --- a/packages/session/session-persistence-jsonl/package.json +++ b/packages/session/session-persistence-jsonl/package.json @@ -26,6 +26,7 @@ "lib/worker.cjs", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-persistence/package.json b/packages/session/session-persistence/package.json index 2900a4a2a3..d9a72e9cb0 100644 --- a/packages/session/session-persistence/package.json +++ b/packages/session/session-persistence/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-projection-cache/package.json b/packages/session/session-projection-cache/package.json index cf24b30d98..a3ebfe4e2c 100644 --- a/packages/session/session-projection-cache/package.json +++ b/packages/session/session-projection-cache/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-projection/package.json b/packages/session/session-projection/package.json index d63b56a026..ede8c2ff5c 100644 --- a/packages/session/session-projection/package.json +++ b/packages/session/session-projection/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-stats/package.json b/packages/session/session-stats/package.json index 878d543def..50caf46ac1 100644 --- a/packages/session/session-stats/package.json +++ b/packages/session/session-stats/package.json @@ -34,6 +34,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-telemetry-otel/package.json b/packages/session/session-telemetry-otel/package.json index 175e801b56..b0a264e209 100644 --- a/packages/session/session-telemetry-otel/package.json +++ b/packages/session/session-telemetry-otel/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-telemetry/package.json b/packages/session/session-telemetry/package.json index 573e8f171b..a34a40a12b 100644 --- a/packages/session/session-telemetry/package.json +++ b/packages/session/session-telemetry/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-title-first-prompt-llm/package.json b/packages/session/session-title-first-prompt-llm/package.json index 3395384ef6..bdc6714774 100644 --- a/packages/session/session-title-first-prompt-llm/package.json +++ b/packages/session/session-title-first-prompt-llm/package.json @@ -20,7 +20,7 @@ }, "./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-llm": "workspace:*", diff --git a/packages/session/session-title-llm/package.json b/packages/session/session-title-llm/package.json index 95da594832..1a5ce3a82c 100644 --- a/packages/session/session-title-llm/package.json +++ b/packages/session/session-title-llm/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-title/package.json b/packages/session/session-title/package.json index b545573984..31e91fcc55 100644 --- a/packages/session/session-title/package.json +++ b/packages/session/session-title/package.json @@ -34,6 +34,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/session-turn-outline/package.json b/packages/session/session-turn-outline/package.json index ac528a90a1..2a7ae07230 100644 --- a/packages/session/session-turn-outline/package.json +++ b/packages/session/session-turn-outline/package.json @@ -34,6 +34,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/tool-working-directory/package.json b/packages/session/tool-working-directory/package.json index db4594b767..cb2c4cbafd 100644 --- a/packages/session/tool-working-directory/package.json +++ b/packages/session/tool-working-directory/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/session/working-directory/package.json b/packages/session/working-directory/package.json index 61a4159008..7052e756b5 100644 --- a/packages/session/working-directory/package.json +++ b/packages/session/working-directory/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/settings/settings/package.json b/packages/settings/settings/package.json index a02ee57b62..401678d966 100644 --- a/packages/settings/settings/package.json +++ b/packages/settings/settings/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/shell/bash-local/package.json b/packages/shell/bash-local/package.json index a287353745..895ae4b967 100644 --- a/packages/shell/bash-local/package.json +++ b/packages/shell/bash-local/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/shell/bash-sandbox/package.json b/packages/shell/bash-sandbox/package.json index c49873ba25..8b7b30f1ae 100644 --- a/packages/shell/bash-sandbox/package.json +++ b/packages/shell/bash-sandbox/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/shell/pwsh-local/package.json b/packages/shell/pwsh-local/package.json index 1c99653f6c..d9b704d72e 100644 --- a/packages/shell/pwsh-local/package.json +++ b/packages/shell/pwsh-local/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/shell/pwsh-sandbox/package.json b/packages/shell/pwsh-sandbox/package.json index 7e90ad4256..720ec3f1bc 100644 --- a/packages/shell/pwsh-sandbox/package.json +++ b/packages/shell/pwsh-sandbox/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/shell/shell-env/package.json b/packages/shell/shell-env/package.json index 24275782ac..92459b07da 100644 --- a/packages/shell/shell-env/package.json +++ b/packages/shell/shell-env/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/shell/shell/package.json b/packages/shell/shell/package.json index 64869626ec..37a4582071 100644 --- a/packages/shell/shell/package.json +++ b/packages/shell/shell/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/shell/tool-bash-persistent/package.json b/packages/shell/tool-bash-persistent/package.json index eadf65eead..15480a03f7 100644 --- a/packages/shell/tool-bash-persistent/package.json +++ b/packages/shell/tool-bash-persistent/package.json @@ -24,6 +24,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/shell/tool-bash/package.json b/packages/shell/tool-bash/package.json index 1e7adb6cb2..ff5e76ad77 100644 --- a/packages/shell/tool-bash/package.json +++ b/packages/shell/tool-bash/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/shell/tool-pwsh-persistent/package.json b/packages/shell/tool-pwsh-persistent/package.json index 479bb85878..6673e279d9 100644 --- a/packages/shell/tool-pwsh-persistent/package.json +++ b/packages/shell/tool-pwsh-persistent/package.json @@ -24,6 +24,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/shell/tool-pwsh/package.json b/packages/shell/tool-pwsh/package.json index 265abe2943..ce9e9a4b30 100644 --- a/packages/shell/tool-pwsh/package.json +++ b/packages/shell/tool-pwsh/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/skill/skill-filesystem/package.json b/packages/skill/skill-filesystem/package.json index 893ca65fab..a13a730f24 100644 --- a/packages/skill/skill-filesystem/package.json +++ b/packages/skill/skill-filesystem/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/skill/skill-office/package.json b/packages/skill/skill-office/package.json index 2efa309580..94cd3c5866 100644 --- a/packages/skill/skill-office/package.json +++ b/packages/skill/skill-office/package.json @@ -25,6 +25,7 @@ "assets", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/skill/skill/package.json b/packages/skill/skill/package.json index 59c23bb9bf..2596590c48 100644 --- a/packages/skill/skill/package.json +++ b/packages/skill/skill/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/skill/tool-skill/package.json b/packages/skill/tool-skill/package.json index 1e12f6503f..188a4474b1 100644 --- a/packages/skill/tool-skill/package.json +++ b/packages/skill/tool-skill/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/skill/tool-workspace-dependencies/package.json b/packages/skill/tool-workspace-dependencies/package.json index db102420a0..219fe9f336 100644 --- a/packages/skill/tool-workspace-dependencies/package.json +++ b/packages/skill/tool-workspace-dependencies/package.json @@ -24,6 +24,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/spill/spill-local/package.json b/packages/spill/spill-local/package.json index 0f05232f58..bc7aa42d4d 100644 --- a/packages/spill/spill-local/package.json +++ b/packages/spill/spill-local/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/spill/spill-policy/package.json b/packages/spill/spill-policy/package.json index 37d6a0a693..6623c3bbe4 100644 --- a/packages/spill/spill-policy/package.json +++ b/packages/spill/spill-policy/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/spill/spill/package.json b/packages/spill/spill/package.json index c1345ab1b1..3da0c77c25 100644 --- a/packages/spill/spill/package.json +++ b/packages/spill/spill/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/ssh/fs-ssh/package.json b/packages/ssh/fs-ssh/package.json index 9688e2e05d..26ef4a9c88 100644 --- a/packages/ssh/fs-ssh/package.json +++ b/packages/ssh/fs-ssh/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/ssh/sandbox-ssh/package.json b/packages/ssh/sandbox-ssh/package.json index 59491f170e..aad40d7891 100644 --- a/packages/ssh/sandbox-ssh/package.json +++ b/packages/ssh/sandbox-ssh/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/ssh/ssh/package.json b/packages/ssh/ssh/package.json index 9dc1213d83..dab89e61ad 100644 --- a/packages/ssh/ssh/package.json +++ b/packages/ssh/ssh/package.json @@ -43,6 +43,7 @@ "lib/stream-security-*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/ssh/subprocess-ssh/package.json b/packages/ssh/subprocess-ssh/package.json index 849e0fc9bc..13dbdc1332 100644 --- a/packages/ssh/subprocess-ssh/package.json +++ b/packages/ssh/subprocess-ssh/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/storage/storage-domain/package.json b/packages/storage/storage-domain/package.json index 7b6af4bb26..cc286beb47 100644 --- a/packages/storage/storage-domain/package.json +++ b/packages/storage/storage-domain/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/storage/storage-json/package.json b/packages/storage/storage-json/package.json index e0f05739e8..a4006cc8ef 100644 --- a/packages/storage/storage-json/package.json +++ b/packages/storage/storage-json/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/storage/storage-sqlite/package.json b/packages/storage/storage-sqlite/package.json index 4253798329..30588f9bf0 100644 --- a/packages/storage/storage-sqlite/package.json +++ b/packages/storage/storage-sqlite/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/storage/storage/package.json b/packages/storage/storage/package.json index be52b80df7..02effc3eba 100644 --- a/packages/storage/storage/package.json +++ b/packages/storage/storage/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/subagent/subagent-acp/package.json b/packages/subagent/subagent-acp/package.json index cd86d7395c..51a2579ac9 100644 --- a/packages/subagent/subagent-acp/package.json +++ b/packages/subagent/subagent-acp/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/subagent/subagent-claude-code/package.json b/packages/subagent/subagent-claude-code/package.json index 152d97544d..6ce6964667 100644 --- a/packages/subagent/subagent-claude-code/package.json +++ b/packages/subagent/subagent-claude-code/package.json @@ -30,6 +30,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/subagent/subagent-codex/package.json b/packages/subagent/subagent-codex/package.json index 37bfeed7c1..2c9722993a 100644 --- a/packages/subagent/subagent-codex/package.json +++ b/packages/subagent/subagent-codex/package.json @@ -30,6 +30,7 @@ "cordis.patch.yml", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/subagent/subagent-dsh-sdk/package.json b/packages/subagent/subagent-dsh-sdk/package.json index 1eab960b7b..ab961bcb08 100644 --- a/packages/subagent/subagent-dsh-sdk/package.json +++ b/packages/subagent/subagent-dsh-sdk/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/subagent/subagent-fork-in-process/package.json b/packages/subagent/subagent-fork-in-process/package.json index 280fd497b4..cc4f703cbc 100644 --- a/packages/subagent/subagent-fork-in-process/package.json +++ b/packages/subagent/subagent-fork-in-process/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/subagent/subagent-spawn-in-process/package.json b/packages/subagent/subagent-spawn-in-process/package.json index c29cd5d271..c792a40314 100644 --- a/packages/subagent/subagent-spawn-in-process/package.json +++ b/packages/subagent/subagent-spawn-in-process/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/subagent/subagent/package.json b/packages/subagent/subagent/package.json index 70737dbc74..f09178ea43 100644 --- a/packages/subagent/subagent/package.json +++ b/packages/subagent/subagent/package.json @@ -42,6 +42,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", diff --git a/packages/subagent/tool-subagent-control/package.json b/packages/subagent/tool-subagent-control/package.json index 6714e66c9e..2cc49eba6f 100644 --- a/packages/subagent/tool-subagent-control/package.json +++ b/packages/subagent/tool-subagent-control/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/subagent/tool-subagent/package.json b/packages/subagent/tool-subagent/package.json index 20bdf140e1..eb29ca10b3 100644 --- a/packages/subagent/tool-subagent/package.json +++ b/packages/subagent/tool-subagent/package.json @@ -30,6 +30,7 @@ "lib/model-selection-settings.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/subprocess/subprocess-local/package.json b/packages/subprocess/subprocess-local/package.json index 979336b1fc..90c8e19422 100644 --- a/packages/subprocess/subprocess-local/package.json +++ b/packages/subprocess/subprocess-local/package.json @@ -37,6 +37,7 @@ "scripts/ensure-spawn-helper.mjs", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "scripts": { diff --git a/packages/subprocess/subprocess/package.json b/packages/subprocess/subprocess/package.json index da0acd0a67..79ad4c8cbf 100644 --- a/packages/subprocess/subprocess/package.json +++ b/packages/subprocess/subprocess/package.json @@ -30,6 +30,7 @@ "lib/control.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/subprocess/win32-process/package.json b/packages/subprocess/win32-process/package.json index 7346518259..e1d2cb0016 100644 --- a/packages/subprocess/win32-process/package.json +++ b/packages/subprocess/win32-process/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/telemetry/otel/package.json b/packages/telemetry/otel/package.json index 0ba889e06c..d9ba5b65d1 100644 --- a/packages/telemetry/otel/package.json +++ b/packages/telemetry/otel/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/terminal/terminal-bash/package.json b/packages/terminal/terminal-bash/package.json index 587bb0e1f6..af15862dbe 100644 --- a/packages/terminal/terminal-bash/package.json +++ b/packages/terminal/terminal-bash/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/terminal/terminal/package.json b/packages/terminal/terminal/package.json index c79bcc206b..86b6e3b09b 100644 --- a/packages/terminal/terminal/package.json +++ b/packages/terminal/terminal/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/test-support/agent-loop-testkit/package.json b/packages/test-support/agent-loop-testkit/package.json index 969308cb43..eb4a279935 100644 --- a/packages/test-support/agent-loop-testkit/package.json +++ b/packages/test-support/agent-loop-testkit/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/test-support/client-runtime/package.json b/packages/test-support/client-runtime/package.json index 1fa8f15ec7..bb6ed76645 100644 --- a/packages/test-support/client-runtime/package.json +++ b/packages/test-support/client-runtime/package.json @@ -93,6 +93,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/test-support/llm-mock-server/package.json b/packages/test-support/llm-mock-server/package.json index e244027fe4..9822857dec 100644 --- a/packages/test-support/llm-mock-server/package.json +++ b/packages/test-support/llm-mock-server/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/test-support/llm-replay/package.json b/packages/test-support/llm-replay/package.json index 2ae6de0843..0bdaa2f44e 100644 --- a/packages/test-support/llm-replay/package.json +++ b/packages/test-support/llm-replay/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/test-support/loader-smoke/package.json b/packages/test-support/loader-smoke/package.json index 8d4561589d..0da53542a7 100644 --- a/packages/test-support/loader-smoke/package.json +++ b/packages/test-support/loader-smoke/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/test-support/remote-mock/package.json b/packages/test-support/remote-mock/package.json index 2238cf21b8..66e8fc6b85 100644 --- a/packages/test-support/remote-mock/package.json +++ b/packages/test-support/remote-mock/package.json @@ -40,6 +40,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ] } diff --git a/packages/test-support/session-snapshot/package.json b/packages/test-support/session-snapshot/package.json index 13cd49e722..c6f6376e6d 100644 --- a/packages/test-support/session-snapshot/package.json +++ b/packages/test-support/session-snapshot/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/todo/tool-todo/package.json b/packages/todo/tool-todo/package.json index 13f5eb4cdf..94f0856d5c 100644 --- a/packages/todo/tool-todo/package.json +++ b/packages/todo/tool-todo/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/typert/generator/README.i18n.yaml b/packages/typert/generator/README.i18n.yaml index b83e755ee4..83bf3128e8 100644 --- a/packages/typert/generator/README.i18n.yaml +++ b/packages/typert/generator/README.i18n.yaml @@ -39,8 +39,8 @@ en: a844aafcafbc27b6 zh: 8efe7d472361bbc2 /deepseek-ai-dsh-typert-generator/understand-the-implementation/emission-and-publication-contract: - en: 2f6f72eecffc33c2 - zh: ded33dbc1d9a4ea5 + en: 0b8a7adb91f66d26 + zh: 09565b09a6de5310 /deepseek-ai-dsh-typert-generator/understand-the-implementation/catalog-projection: en: e85b521a1e01ab2c zh: 4416dca569de0f61 diff --git a/packages/typert/generator/README.md b/packages/typert/generator/README.md index db2dcb1260..92a9a12aa8 100644 --- a/packages/typert/generator/README.md +++ b/packages/typert/generator/README.md @@ -85,7 +85,7 @@ Host and Client are independent TypeScript programs. Direct project references e ### Emission and publication contract -`FaceModelEmitter` emits executable JavaScript containing success-cached Zod schema factories and the `TYPERT` contribution, plus a declaration file whose factories return `z.ZodType` through the package's public export; unsupported Zod projections fail. The Host face with Remote methods additionally emits `typert.remote-client.*` projections of Host Remote contracts for the Client. `WorkspaceTypertGenerator` validates each contributor's `package.json`: `./typert` and `./client/typert` (and `./remote` when Remote methods exist) must point at the exact generated files, and the `files` list must include them. +`FaceModelEmitter` emits executable JavaScript containing success-cached Zod schema factories and the `TYPERT` contribution, plus a declaration file whose factories return `z.ZodType` through the package's public export; unsupported Zod projections fail. The Host face with Remote methods additionally emits `typert.remote-client.*` projections of Host Remote contracts for the Client, including the declaration map its generated declaration references. `WorkspaceTypertGenerator` validates each contributor's `package.json`: `./typert` and `./client/typert` (and `./remote` when Remote methods exist) must point at the exact generated files, and the `files` list must include them. [Unary binary results](../protocol/README.md) are recognized after generic type resolution. Their codecs validate the byte-array type and JSON metadata without iterating, copying, or freezing the byte payload; generated Client declarations retain the authored metadata and narrow the byte backing to `ArrayBuffer`. diff --git a/packages/typert/generator/README.zh.md b/packages/typert/generator/README.zh.md index 694df32bc0..acd7d63088 100644 --- a/packages/typert/generator/README.zh.md +++ b/packages/typert/generator/README.zh.md @@ -85,7 +85,7 @@ Host 与 Client 是两个独立的 TypeScript 程序。直接项目引用确定 ### 生成与发布约定 -`FaceModelEmitter` 输出包含只缓存成功结果的 Zod schema factory 与 `TYPERT` 贡献的可执行 JavaScript,以及把 factory 通过包的公开导出标注为返回 `z.ZodType` 的声明文件;不支持的 Zod 投影会失败。含 Remote 方法的 Host face 还会额外为 Client 生成 Host Remote 约定的 `typert.remote-client.*` 投影。`WorkspaceTypertGenerator` 校验每个贡献方的 `package.json`:`./typert` 与 `./client/typert`(存在 Remote 方法时还有 `./remote`)必须指向精确的生成文件,且 `files` 清单必须包含它们。 +`FaceModelEmitter` 输出包含只缓存成功结果的 Zod schema factory 与 `TYPERT` 贡献的可执行 JavaScript,以及把 factory 通过包的公开导出标注为返回 `z.ZodType` 的声明文件;不支持的 Zod 投影会失败。含 Remote 方法的 Host face 还会额外为 Client 生成 Host Remote 约定的 `typert.remote-client.*` 投影,其中包括生成声明所引用的声明映射。`WorkspaceTypertGenerator` 校验每个贡献方的 `package.json`:`./typert` 与 `./client/typert`(存在 Remote 方法时还有 `./remote`)必须指向精确的生成文件,且 `files` 清单必须包含它们。 [一元二进制结果](../protocol/README.zh.md)在泛型类型解析后被识别。其 codec 校验字节数组类型与 JSON 元数据,不遍历、复制或冻结字节载荷;生成的 Client 声明保留原有元数据类型,并将字节的底层缓冲区收窄为 `ArrayBuffer`。 diff --git a/packages/typert/generator/package.json b/packages/typert/generator/package.json index 8d26526401..55813c0523 100644 --- a/packages/typert/generator/package.json +++ b/packages/typert/generator/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/typert/generator/src/workspace.ts b/packages/typert/generator/src/workspace.ts index 50866dc8b1..b1423dbf49 100644 --- a/packages/typert/generator/src/workspace.ts +++ b/packages/typert/generator/src/workspace.ts @@ -120,12 +120,13 @@ export class WorkspaceTypertGenerator { const remoteActual = manifest.exports !== null && typeof manifest.exports === 'object' ? (manifest.exports as Record)['./remote'] : undefined - // The declaration map is emitted beside these two but never published: it - // serves editor navigation in the workspace, where the package link - // resolves its source. + // The generated declaration carries a `sourceMappingURL`, and the payload + // publishes that map beside the `src` it resolves, so an installed consumer + // navigates from the Remote method to the Host implementation. const remoteFiles = [ 'lib/typert.remote-client.js', 'lib/typert.remote-client.d.ts', + 'lib/typert.remote-client.d.ts.map', ] if (artifact.remote === undefined) { if (remoteActual !== undefined || remoteFiles.some(file => files.includes(file))) { diff --git a/packages/typert/generator/tests/fixtures/remote-model/packages/remote/package.json b/packages/typert/generator/tests/fixtures/remote-model/packages/remote/package.json index bfd57762df..b7e0631a0a 100644 --- a/packages/typert/generator/tests/fixtures/remote-model/packages/remote/package.json +++ b/packages/typert/generator/tests/fixtures/remote-model/packages/remote/package.json @@ -18,6 +18,7 @@ "lib/typert.host.js", "lib/typert.host.d.ts", "lib/typert.remote-client.js", - "lib/typert.remote-client.d.ts" + "lib/typert.remote-client.d.ts", + "lib/typert.remote-client.d.ts.map" ] } diff --git a/packages/typert/loader/package.json b/packages/typert/loader/package.json index 48f2885ab7..49c8a93387 100644 --- a/packages/typert/loader/package.json +++ b/packages/typert/loader/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/typert/protocol/package.json b/packages/typert/protocol/package.json index 44af00c2de..eb5ba0b4ff 100644 --- a/packages/typert/protocol/package.json +++ b/packages/typert/protocol/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/typert/registry/package.json b/packages/typert/registry/package.json index ebed2e7c1b..0a7172365a 100644 --- a/packages/typert/registry/package.json +++ b/packages/typert/registry/package.json @@ -46,6 +46,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/atomic-write/package.json b/packages/util/atomic-write/package.json index 149a1f288a..ecb3c2bbd8 100644 --- a/packages/util/atomic-write/package.json +++ b/packages/util/atomic-write/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/brand/package.json b/packages/util/brand/package.json index 55896e2d6a..5fd2eb92ef 100644 --- a/packages/util/brand/package.json +++ b/packages/util/brand/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/chunked-list/package.json b/packages/util/chunked-list/package.json index b0e77b3eb5..257bd708be 100644 --- a/packages/util/chunked-list/package.json +++ b/packages/util/chunked-list/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/code-language/package.json b/packages/util/code-language/package.json index a404c741a0..268c2b0c1a 100644 --- a/packages/util/code-language/package.json +++ b/packages/util/code-language/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/crypto/package.json b/packages/util/crypto/package.json index f1b53840fd..6324b31e9b 100644 --- a/packages/util/crypto/package.json +++ b/packages/util/crypto/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/deque/package.json b/packages/util/deque/package.json index ad1d18c407..858f00ed20 100644 --- a/packages/util/deque/package.json +++ b/packages/util/deque/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/home-paths/package.json b/packages/util/home-paths/package.json index 57f5e19354..807292dfcb 100644 --- a/packages/util/home-paths/package.json +++ b/packages/util/home-paths/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/http-proxy/package.json b/packages/util/http-proxy/package.json index d694d3e2a9..11c4ef6450 100644 --- a/packages/util/http-proxy/package.json +++ b/packages/util/http-proxy/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/launch-environment/package.json b/packages/util/launch-environment/package.json index fa2b81dc94..dea18e4f0a 100644 --- a/packages/util/launch-environment/package.json +++ b/packages/util/launch-environment/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/lazy-require/package.json b/packages/util/lazy-require/package.json index 2bdc884e7a..3ad6edba74 100644 --- a/packages/util/lazy-require/package.json +++ b/packages/util/lazy-require/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/native-command/package.json b/packages/util/native-command/package.json index f40fc60f22..4ff4c9f2c4 100644 --- a/packages/util/native-command/package.json +++ b/packages/util/native-command/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/output-retention/package.json b/packages/util/output-retention/package.json index 9697bd6c40..8b57900ba6 100644 --- a/packages/util/output-retention/package.json +++ b/packages/util/output-retention/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/package-manifest/package.json b/packages/util/package-manifest/package.json index 8d6f82551b..612c46f834 100644 --- a/packages/util/package-manifest/package.json +++ b/packages/util/package-manifest/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/time/package.json b/packages/util/time/package.json index 597a7ac897..381356405b 100644 --- a/packages/util/time/package.json +++ b/packages/util/time/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/timeout/package.json b/packages/util/timeout/package.json index 1ee6a942fc..fcfc342348 100644 --- a/packages/util/timeout/package.json +++ b/packages/util/timeout/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/values/package.json b/packages/util/values/package.json index 0a6f016a1c..86c6c16e0d 100644 --- a/packages/util/values/package.json +++ b/packages/util/values/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/util/workspace-path/package.json b/packages/util/workspace-path/package.json index 6179ad6c3a..eb99527e2c 100644 --- a/packages/util/workspace-path/package.json +++ b/packages/util/workspace-path/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/web/tool-web/package.json b/packages/web/tool-web/package.json index 8f39806314..8f9c8bef55 100644 --- a/packages/web/tool-web/package.json +++ b/packages/web/tool-web/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/web/web-fetch-http/package.json b/packages/web/web-fetch-http/package.json index 963d32b754..39c6fbd372 100644 --- a/packages/web/web-fetch-http/package.json +++ b/packages/web/web-fetch-http/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/web/web-search-deepseek/package.json b/packages/web/web-search-deepseek/package.json index cd2a8c892c..5e3da2a40f 100644 --- a/packages/web/web-search-deepseek/package.json +++ b/packages/web/web-search-deepseek/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/web/web-search-exa/package.json b/packages/web/web-search-exa/package.json index 2c1db818b7..6f5da9d641 100644 --- a/packages/web/web-search-exa/package.json +++ b/packages/web/web-search-exa/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/web/web-search-perplexity/package.json b/packages/web/web-search-perplexity/package.json index 28ac81ee68..5a16985870 100644 --- a/packages/web/web-search-perplexity/package.json +++ b/packages/web/web-search-perplexity/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/web/web/package.json b/packages/web/web/package.json index 6fb833bdd4..264f1e786b 100644 --- a/packages/web/web/package.json +++ b/packages/web/web/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/workflow/tool-workflow/package.json b/packages/workflow/tool-workflow/package.json index c712a18a52..d27e2e2091 100644 --- a/packages/workflow/tool-workflow/package.json +++ b/packages/workflow/tool-workflow/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/workflow/workflow-ptc/package.json b/packages/workflow/workflow-ptc/package.json index 6b70347f39..a6a5f2852e 100644 --- a/packages/workflow/workflow-ptc/package.json +++ b/packages/workflow/workflow-ptc/package.json @@ -25,6 +25,7 @@ "lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/workflow/workflow/package.json b/packages/workflow/workflow/package.json index 86595ac9bd..58e31de588 100644 --- a/packages/workflow/workflow/package.json +++ b/packages/workflow/workflow/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/packages/workspace/workspace/package.json b/packages/workspace/workspace/package.json index af0428a440..bdb4947bb7 100644 --- a/packages/workspace/workspace/package.json +++ b/packages/workspace/workspace/package.json @@ -30,6 +30,7 @@ "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.map", + "lib/**/*.js.map", "src" ], "license": "MIT", diff --git a/scripts/build-exe-for-python-sdk.ts b/scripts/build-exe-for-python-sdk.ts index 3fe119d7c6..858f138fef 100644 --- a/scripts/build-exe-for-python-sdk.ts +++ b/scripts/build-exe-for-python-sdk.ts @@ -67,6 +67,13 @@ const ASSET_GLOBS = [ 'node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/**/*', ] +/** Published source and documentation: types and maps already describe the runtime, so no load path needs them. */ +const PUBLISHED_PAYLOAD_IGNORES = [ + '**/node_modules/@deepseek-ai/dsh/src/**', + '**/node_modules/@deepseek-ai/dsh-*/src/**', + '**/node_modules/@deepseek-ai/dsh/docs/**', +] + const PLATFORMS = ['linux', 'macos', 'win'] as const const ARCHES = ['x64', 'arm64'] as const type Platform = (typeof PLATFORMS)[number] @@ -380,7 +387,7 @@ class SingleExeBuild { /** Add the executable entry and pkg assets to the staged manifest. */ async injectPkgConfig(): Promise { - const patch = { bin: ENTRY_BIN, pkg: { assets: ASSET_GLOBS, ignore: OFFICE_ASSET_IGNORES } } + const patch = { bin: ENTRY_BIN, pkg: { assets: ASSET_GLOBS, ignore: [...OFFICE_ASSET_IGNORES, ...PUBLISHED_PAYLOAD_IGNORES] } } const manifestPath = join(this.staging, 'package.json') if (this.cli.dryRun) { console.log(`build-exe-for-python-sdk: [dry-run] patch ${manifestPath} with ${JSON.stringify(patch)}`) diff --git a/scripts/check-workspace-constraints.spec.ts b/scripts/check-workspace-constraints.spec.ts index defce2656a..9fc25ea936 100644 --- a/scripts/check-workspace-constraints.spec.ts +++ b/scripts/check-workspace-constraints.spec.ts @@ -293,16 +293,16 @@ describe('package payload constraints', () => { [{ import: './art/icon.svg', default: './art/fallback.svg' }, ['art/icon.svg', 'art/fallback.svg']], [['./art/icon.svg', './art/icon.svg'], ['art/icon.svg']], ] as const)('includes exported icon targets in the canonical payload: %j', (icon, expected) => { - expect(expectedDshPackageFiles({ exports: { './icon': icon } })).toEqual([...expected, 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'src']) + expect(expectedDshPackageFiles({ exports: { './icon': icon } })).toEqual([...expected, 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'lib/**/*.js.map', 'src']) }) it.each(['icon.svg', './icon.svg'])('includes and deduplicates manifest icon %s', (icon) => { - expect(expectedDshPackageFiles({ icon, exports: { './icon': './icon.svg' } })).toEqual(['icon.svg', 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'src']) + expect(expectedDshPackageFiles({ icon, exports: { './icon': './icon.svg' } })).toEqual(['icon.svg', 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'lib/**/*.js.map', 'src']) }) it('includes manifest, root, and subpath icon targets', () => { expect(expectedDshPackageFiles({ icon: './legacy.svg', exports: { './icon': './fallback.svg', './search/icon': './search.svg' } })).toEqual([ - 'legacy.svg', 'fallback.svg', 'search.svg', 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'src', + 'legacy.svg', 'fallback.svg', 'search.svg', 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'lib/**/*.js.map', 'src', ]) }) @@ -323,7 +323,7 @@ describe('package payload constraints', () => { { exports: { './search/locale/*.json': './z/*.json', './locale/*.json': './a/*.json' }, resources: ['a/*.json', 'z/*.json'] }, ])('includes declared locale resources in the canonical payload: $exports', ({ exports, resources }) => { expect(expectedDshPackageFiles({ name: '@deepseek-ai/dsh-localized', exports })).toEqual([ - ...resources, 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'src', + ...resources, 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'lib/**/*.js.map', 'src', ]) }) @@ -336,7 +336,7 @@ describe('package payload constraints', () => { './locale/zh.json': null, './locale/fr.json': { types: './locale/fr.d.ts' }, }, - })).toEqual(['lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'src']) + })).toEqual(['lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'lib/**/*.js.map', 'src']) }) it.each(['agent-team', 'agent-team-profile', 'auto-review', 'client-ui-agent-team', 'tool-agent-team'])( @@ -368,6 +368,7 @@ describe('package payload constraints', () => { 'cordis.patch.yml', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', + 'lib/**/*.js.map', 'src', ]) expect(expectedDshPackageFiles({ @@ -379,6 +380,7 @@ describe('package payload constraints', () => { 'layers/web.patch.yml', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', + 'lib/**/*.js.map', 'src', ]) }) @@ -396,7 +398,7 @@ it('publishes CLI runtime declarations and rejects a payload that omits them', ( const manifest = JSON.parse(readFileSync(new URL('../apps/cli/package.json', import.meta.url), 'utf8')) as WorkspaceManifest['manifest'] expect(checkWorkspaceManifest({ dir: 'apps/cli', manifest })).toEqual([]) expect(checkWorkspaceManifest({ dir: 'apps/cli', manifest: { ...manifest, files: ['lib/*.js'] } })) - .toEqual([expect.stringContaining('@deepseek-ai/dsh: package.json files must be ["lib/*.js","lib/types/*.d.ts","lib/types/*.d.ts.map","docs","src"]')]) + .toEqual([expect.stringContaining('@deepseek-ai/dsh: package.json files must be ["lib/*.js","lib/*.js.map","lib/types/*.d.ts","lib/types/*.d.ts.map","docs","src"]')]) }) it('requires the shared Web injection entry in the published payload', () => { diff --git a/scripts/check-workspace-constraints.ts b/scripts/check-workspace-constraints.ts index 6e08c60aaa..ea6a7238ce 100644 --- a/scripts/check-workspace-constraints.ts +++ b/scripts/check-workspace-constraints.ts @@ -17,7 +17,7 @@ import { EXPERIMENTAL_PACKAGE_NAME_PREFIX, PRIVATE_EXPERIMENTAL_PACKAGE_DIRECTORIES, } from './experimental-package-policy.ts' -import { hasTypertRemoteNavigation, isForbiddenPublicationFile } from './publication-payload.ts' +import { hasTypertRemoteNavigation } from './publication-payload.ts' import type { DshBundleManifest } from '../packages/util/package-manifest/src/types.ts' import { OPTIONAL_BUNDLES, bundlePatchFiles } from '../packages/boot/app-boot/src/profile.ts' import { collectProjectReferenceFaceViolations } from './project-reference-faces.ts' @@ -59,16 +59,15 @@ const standardReleaseMemberDirectory = /^(?:packages\/(?!experimental\/)[^/]+\/[ const desktopApplicationDirectory = 'apps/desktop' const localArtifactDirs = new Set(['node_modules']) const appPackageFiles: Readonly> = { - // `docs` carries the repository's Markdown documentation, staged by - // `scripts/stage-dsh-docs.ts` before packing. - '@deepseek-ai/dsh': ['lib/*.js', 'lib/types/*.d.ts', 'lib/types/*.d.ts.map', 'docs', 'src'], + // Only `prepack` stages `docs`; every other reader of this directory sees + // whatever the checkout holds. + '@deepseek-ai/dsh': ['lib/*.js', 'lib/*.js.map', 'lib/types/*.d.ts', 'lib/types/*.d.ts.map', 'docs', 'src'], '@deepseek-ai/dsh-desktop-host': [ 'lib/index.js', 'lib/cli.js', ], - // Bundled JavaScript maps stay out by payload policy; the worker-preview - // surface (dist/preview.html and dist/preview/) backs opt-in experimental - // packages and is not published. - '@deepseek-ai/dsh-web-frontend': ['dist', '!dist/**/*.map', '!dist/preview.html', '!dist/preview', 'src'], + // The worker-preview surface (dist/preview.html and dist/preview/) backs + // opt-in experimental packages and is not published. + '@deepseek-ai/dsh-web-frontend': ['dist', '!dist/preview.html', '!dist/preview', 'src'], } /** The subset of package.json fields this constraint check cares about. */ @@ -293,6 +292,9 @@ export function expectedDshPackageFiles(manifest: PackageManifest): readonly str // implementation behind an exported declaration, and lets a plugin author // read it without a repository checkout. 'lib/types/**/*.d.ts.map', + // Every emitted map ships beside the JavaScript it describes, so a stack + // frame or a debugger session resolves into the published `src`. + 'lib/**/*.js.map', ...hasExportPair(manifest, './typert', './lib/typert.host.d.ts', './lib/typert.host.js') ? ['lib/typert.host.js', 'lib/typert.host.d.ts'] : [], @@ -465,14 +467,6 @@ export function checkWorkspaceManifest({ dir, manifest }: WorkspaceManifest): st return errors } - if (manifest.name?.startsWith('@deepseek-ai/')) { - for (const file of manifest.files ?? []) { - if (isForbiddenPublicationFile(file)) { - errors.push(`${label}: package.json files must not publish ${JSON.stringify(file)}`) - } - } - } - if (dir.startsWith('apps/') && dir !== desktopApplicationDirectory && manifest.name?.startsWith('@deepseek-ai/')) { const expectedFiles = appPackageFiles[manifest.name] if (expectedFiles === undefined) { diff --git a/scripts/clean.ts b/scripts/clean.ts index bb789f298c..b312577af4 100644 --- a/scripts/clean.ts +++ b/scripts/clean.ts @@ -69,6 +69,8 @@ export class RepositoryCleaner { await this.addIfPresent(targets, join(this.root, '.dsh-build'), canonicalRoot) await this.addIfPresent(targets, join(this.root, 'apps/desktop/.desktop-build'), canonicalRoot) + // The CLI package's documentation copy: `prepack` writes it, `postpack` removes it. + await this.addIfPresent(targets, join(this.root, 'apps/cli/docs'), canonicalRoot) // These checks cover legacy root-level incremental state emitted by older configs. await this.addIfPresent(targets, join(this.root, '.typecheck'), canonicalRoot) diff --git a/scripts/publication-payload.spec.ts b/scripts/publication-payload.spec.ts index e65ff38dc9..85c02d52a9 100644 --- a/scripts/publication-payload.spec.ts +++ b/scripts/publication-payload.spec.ts @@ -1,68 +1,7 @@ import { describe, expect, it } from 'vitest' -import { - hasTypertRemoteNavigation, - isForbiddenPublicationFile, - validateTarballPayload, -} from './publication-payload.ts' - -function validateFixtureTarball(files: readonly string[]): () => void { - return () => { - validateTarballPayload(files, 'fixture.tgz') - } -} - -describe('publication payload policy', () => { - it.each([ - 'lib/index.js', - 'lib/types/index.d.ts', - 'lib/types/index.d.ts.map', - 'lib/typert.remote-client.d.ts.map', - 'lib/styles/base.css', - 'src', - './src', - 'src/', - 'src/index.ts', - './src/index.ts', - String.raw`src\index.ts`, - ])('accepts %s', (file) => { - expect(isForbiddenPublicationFile(file)).toBe(false) - }) - - it.each([ - 'lib/client.js.map', - './lib/client.js.map', - 'lib/types/index.js.map', - String.raw`lib\client.js.map`, - ])('rejects static manifest path %s', (file) => { - expect(isForbiddenPublicationFile(file)).toBe(true) - }) - - it('rejects bundled JavaScript maps in packed tarballs', () => { - expect(validateFixtureTarball([ - 'package/package.json', - 'package/lib/client.js.map', - ])).toThrow('fixture.tgz publishes JavaScript map package/lib/client.js.map') - }) - - it('accepts source, declaration maps, and declarations in packed tarballs', () => { - expect(validateFixtureTarball([ - 'package/package.json', - 'package/src/index.ts', - 'package/lib/types/index.d.ts', - 'package/lib/types/index.d.ts.map', - 'package/lib/typert.remote-client.d.ts.map', - ])).not.toThrow() - }) - - it('accepts a clean packed tarball', () => { - expect(validateFixtureTarball([ - 'package/package.json', - 'package/lib/index.js', - 'package/lib/types/index.d.ts', - 'package/lib/styles/base.css', - ])).not.toThrow() - }) +import { hasTypertRemoteNavigation } from './publication-payload.ts' +describe('publication payload facts', () => { it('recognizes only the canonical Host-for-Client export pair', () => { expect(hasTypertRemoteNavigation({ exports: { @@ -73,5 +12,7 @@ describe('publication payload policy', () => { }, })).toBe(true) expect(hasTypertRemoteNavigation({ exports: { './remote': './lib/remote.js' } })).toBe(false) + expect(hasTypertRemoteNavigation({ exports: { './remote': { types: './lib/typert.remote-client.d.ts' } } })).toBe(false) + expect(hasTypertRemoteNavigation(undefined)).toBe(false) }) }) diff --git a/scripts/publication-payload.ts b/scripts/publication-payload.ts index eeb64f6929..6d61f51145 100644 --- a/scripts/publication-payload.ts +++ b/scripts/publication-payload.ts @@ -1,4 +1,4 @@ -/** Publication payload policy shared by static manifests and packed tarballs. */ +/** Publication payload facts shared by static manifests and packed tarballs. */ /** * Whether a package manifest exports generated Host-for-Client metadata. @@ -15,32 +15,3 @@ export function hasTypertRemoteNavigation(manifest: unknown): boolean { return entry.types === './lib/typert.remote-client.d.ts' && entry.default === './lib/typert.remote-client.js' } - -/** Normalize a package manifest path or npm tarball member to its payload-relative path. */ -function payloadPath(file: string): string { - const normalized = file.replaceAll('\\', '/').replace(/^\.\/+/, '').replace(/\/+$/, '') - return normalized.startsWith('package/') ? normalized.slice('package/'.length) : normalized -} - -/** - * Whether a package payload path exposes JavaScript map intermediates. A - * declaration map pairs with the source and the declaration a consumer - * reaches; a JavaScript map describes bundler output that no published entry - * pairs with, so no payload publishes one. - * @param file - manifest path or tarball member to classify. - * @returns whether publishing this path is forbidden. - */ -export function isForbiddenPublicationFile(file: string): boolean { - return payloadPath(file).endsWith('.js.map') -} - -/** - * Reject bundled JavaScript map members in a packed npm tarball. - * @param files - tarball members to validate. - * @param context - tarball identity named in the failure. - */ -export function validateTarballPayload(files: readonly string[], context: string): void { - for (const file of files) { - if (isForbiddenPublicationFile(file)) throw new Error(`${context} publishes JavaScript map ${file}`) - } -} diff --git a/scripts/publish-npm-baseline.ts b/scripts/publish-npm-baseline.ts index baf51cb112..c37c9dfde5 100644 --- a/scripts/publish-npm-baseline.ts +++ b/scripts/publish-npm-baseline.ts @@ -18,7 +18,6 @@ import { createInterface } from 'node:readline/promises' import { pathToFileURL } from 'node:url' import { parseArgs } from 'node:util' import { discoverNpmBaselineManifests } from './npm-baseline-packages.ts' -import { validateTarballPayload } from './publication-payload.ts' const DEFAULT_REGISTRY = 'https://registry.npm.harnessment.com' const DEFAULT_OUTPUT_DIRECTORY = '.artifacts/npm-baseline' @@ -317,9 +316,6 @@ class ReleaseBundle { if (expected === undefined || !missingNames.delete(artifact.name)) { throw new Error(`unexpected or duplicate packed package: ${artifact.name}`) } - if (expected.origin === 'harness') { - validateTarballPayload(artifact.files, tarball) - } if (artifact.version !== version) { throw new Error(`${tarball} has version ${artifact.version}; expected ${version}`) } @@ -393,9 +389,6 @@ class ReleaseBundle { throw new Error(`tarball checksum mismatch: ${pkg.tarball}`) } const artifact = inspectTarball(path, runner) - if (pkg.origin === 'harness') { - validateTarballPayload(artifact.files, pkg.tarball) - } if (artifact.name !== pkg.name || artifact.version !== this.manifest.version) { throw new Error(`tarball identity mismatch: ${pkg.tarball}`) } diff --git a/scripts/release/families.spec.ts b/scripts/release/families.spec.ts index 7cfb5935d7..5aed768de3 100644 --- a/scripts/release/families.spec.ts +++ b/scripts/release/families.spec.ts @@ -381,15 +381,13 @@ describe('release families', () => { ]) }) - it('applies the harness payload policy to dsh and keeps upstream payloads for vendored packages', () => { + it('accepts the harness payload and keeps upstream payloads for vendored packages', () => { const dsh = releaseFamily('dsh') const vendor = releaseFamily('vendor') const harness = member('packages/a/library', '@deepseek-ai/dsh-library') const vendored = member('vendor/cordis', '@deepseek-ai/cordis') - expect(() => { dsh.validatePayload(harness, ['package/lib/index.js', 'package/lib/client.js.map']) }) - .toThrow(/publishes JavaScript map/) - expect(() => { dsh.validatePayload(harness, ['package/lib/index.js', 'package/src/index.ts']) }).not.toThrow() + expect(() => { dsh.validatePayload(harness, ['package/lib/index.js', 'package/lib/index.js.map', 'package/src/index.ts']) }).not.toThrow() expect(() => { vendor.validatePayload(vendored, ['package/lib/index.js', 'package/src/index.ts']) }).not.toThrow() expect(() => { vendor.validatePayload(vendored, []) }).toThrow(/empty tarball/) }) diff --git a/scripts/release/families.ts b/scripts/release/families.ts index df4a1fd606..4511a95bdd 100644 --- a/scripts/release/families.ts +++ b/scripts/release/families.ts @@ -15,7 +15,6 @@ import { officialClientBuildEnvironment, readClientBuildRecord, } from '../client-build-environment.ts' -import { validateTarballPayload } from '../publication-payload.ts' import { ON_DEMAND_BUNDLES } from '../../packages/boot/app-boot/src/official-bundle-packages.ts' /** @@ -387,15 +386,14 @@ class DshFamily extends ReleaseFamily { } /** - * Reject bundled JavaScript maps, and require the installed package to carry - * the documentation and source its manifest promises. `docs` exists only - * because `prepack` stages it, so a pack run that skips lifecycle scripts - * would otherwise publish the package without it. + * Require the installed package to carry the documentation and source its + * manifest promises. `docs` exists only because `prepack` stages it, and a + * stale tree in the checkout would satisfy a weaker check, so the staged + * copy must be complete for the pack that publishes it. * @param member - the packed member. * @param files - every path inside its tarball. */ validatePayload(member: ReleaseMember, files: readonly string[]): void { - validateTarballPayload(files, member.name) if (member.name !== this.installedEntry.packageName) return if (!files.some(file => file.startsWith('package/docs/') && file.endsWith('.md'))) { throw new Error(`${member.name} packed no documentation`) @@ -456,8 +454,7 @@ class VendorFamily extends ReleaseFamily { } /** - * Require the payload the vendored manifest declares, including upstream's - * `src` tree and declaration maps. + * Accept upstream's payload. * * Upstream's manifest owns that payload, so this family enforces no shape of * its own beyond a nonempty tarball. What must hold is that every path the diff --git a/scripts/stage-dsh-docs.spec.ts b/scripts/stage-dsh-docs.spec.ts index e2f6d7d3fa..cd93267ce9 100644 --- a/scripts/stage-dsh-docs.spec.ts +++ b/scripts/stage-dsh-docs.spec.ts @@ -2,7 +2,7 @@ import { existsSync, mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node: import { tmpdir } from 'node:os' import { join } from 'node:path' import { afterEach, describe, expect, it } from 'vitest' -import { stageDshDocs } from './stage-dsh-docs.ts' +import { cleanStagedDshDocs, publishedDocuments, stageDshDocs } from './stage-dsh-docs.ts' const roots: string[] = [] @@ -23,25 +23,28 @@ afterEach(() => { }) describe('documentation staging', () => { - it('copies reader-facing documents and assets without the tooling-owned records', async () => { + it('copies published pages and assets without the internal trees', async () => { const source = join(temporaryRoot(), 'docs') const destination = join(temporaryRoot(), 'cli', 'docs') + const published = new Set(['guide/index.md', 'guide/index.zh.md']) write(source, 'guide/index.md') write(source, 'guide/index.zh.md') write(source, 'guide/index.i18n.yaml') write(source, 'images/diagram.png', 'png') - write(source, 'persistence-changes/v1/changes.md') - write(source, 'persistence-changes/README.md') + write(source, 'postmortem/incident.md') write(source, 'AGENTS.md') + write(source, 'persistence-changes/v1/changes.md') + write(source, 'persistence-changes/v1/record.json') + write(source, 'i18n/terminology.md') - await stageDshDocs(source, destination) + await stageDshDocs(source, destination, published) expect(existsSync(join(destination, 'guide', 'index.md'))).toBe(true) expect(existsSync(join(destination, 'guide', 'index.zh.md'))).toBe(true) expect(existsSync(join(destination, 'images', 'diagram.png'))).toBe(true) - expect(existsSync(join(destination, 'AGENTS.md'))).toBe(true) - expect(existsSync(join(destination, 'guide', 'index.i18n.yaml'))).toBe(false) - expect(existsSync(join(destination, 'persistence-changes'))).toBe(false) + for (const excluded of ['guide/index.i18n.yaml', 'postmortem', 'AGENTS.md', 'persistence-changes', 'i18n']) { + expect(existsSync(join(destination, excluded))).toBe(false) + } }) it('replaces a previous copy instead of merging into it', async () => { @@ -50,9 +53,28 @@ describe('documentation staging', () => { write(source, 'kept.md') write(destination, 'removed.md') - await stageDshDocs(source, destination) + await stageDshDocs(source, destination, new Set(['kept.md'])) expect(existsSync(join(destination, 'kept.md'))).toBe(true) expect(existsSync(join(destination, 'removed.md'))).toBe(false) }) + + it('removes a staged copy', async () => { + const destination = join(temporaryRoot(), 'cli', 'docs') + write(destination, 'architecture.md') + + await cleanStagedDshDocs(destination) + + expect(existsSync(destination)).toBe(false) + }) + + it('publishes the website manifest pages and no internal document', () => { + const published = publishedDocuments() + + expect(published.has('architecture.md')).toBe(true) + expect(published.has('architecture.zh.md')).toBe(true) + for (const excluded of ['AGENTS.md', 'testing.md', 'postmortem/README.md', 'persistence-changes/README.md', 'i18n/README.md']) { + expect(published.has(excluded)).toBe(false) + } + }) }) diff --git a/scripts/stage-dsh-docs.ts b/scripts/stage-dsh-docs.ts index ebaec604c7..90b1cb75f0 100644 --- a/scripts/stage-dsh-docs.ts +++ b/scripts/stage-dsh-docs.ts @@ -1,49 +1,95 @@ -/** Stage the reader-facing documentation inside the published `dsh` package. */ +/** Stage the documentation the website publishes inside the published `dsh` package. */ -import { cp, rm } from 'node:fs/promises' -import { join, relative, sep } from 'node:path' +import { cp, mkdir, readdir, rm } from 'node:fs/promises' +import { dirname, join } from 'node:path' import { fileURLToPath } from 'node:url' +import { docsPages } from '../website/docs.ts' /** Repository root, resolved from this script rather than the invoking directory. */ const REPOSITORY_ROOT = fileURLToPath(new URL('..', import.meta.url)) -/** Generated per-release migration records; an installed package carries the current contract instead. */ -const EXCLUDED_DIRECTORY = 'persistence-changes' +/** Directory whose contents are published, and the package directory that receives them. */ +const DOCS_DIRECTORY = join(REPOSITORY_ROOT, 'docs') +const STAGED_DIRECTORY = join(REPOSITORY_ROOT, 'apps', 'cli', 'docs') -/** Translation alignment records the documentation gates own; a reader never opens one. */ +/** Generated migration records and the translation guidelines: maintainer material no reader in an installed package needs. */ +const EXCLUDED_DIRECTORIES = ['persistence-changes', 'i18n'] as const + +/** Translation alignment records the documentation gates own. */ const EXCLUDED_SUFFIX = '.i18n.yaml' +/** + * Source-relative Markdown paths the documentation website publishes. + * + * The npm payload and the site carry the same pages, so a new internal + * document under `docs/` reaches neither until the manifest adopts it. + * @returns every manifest source and alias, relative to the documentation root. + */ +export function publishedDocuments(): ReadonlySet { + const published = new Set() + for (const page of docsPages) { + for (const file of [page.source, ...page.sourceAliases ?? []]) { + if (file.startsWith('docs/')) published.add(file.slice('docs/'.length)) + } + } + return published +} + /** * Replace a package's `docs` directory with the documentation a reader needs. * - * Runs from the `prepack` lifecycle of `@deepseek-ai/dsh`, so packing the - * package and packing the release set both publish the same Markdown. + * The copy follows the working tree, so a pack publishes the `docs/` contents + * the checkout holds rather than the committed tree. Runs from the `prepack` + * lifecycle of `@deepseek-ai/dsh`, so packing the package and packing the + * release set both publish the same pages. * @param source - Documentation root to copy; defaults to the repository `docs`. * @param destination - Package directory to replace; defaults to `apps/cli/docs`. + * @param published - Source-relative Markdown paths to keep; defaults to the website manifest. * @returns Resolves after the destination holds the filtered copy. */ export async function stageDshDocs( - source: string = join(REPOSITORY_ROOT, 'docs'), - destination: string = join(REPOSITORY_ROOT, 'apps', 'cli', 'docs'), + source: string = DOCS_DIRECTORY, + destination: string = STAGED_DIRECTORY, + published: ReadonlySet = publishedDocuments(), ): Promise { await rm(destination, { recursive: true, force: true }) - await cp(source, destination, { - recursive: true, - filter: entry => !isExcluded(source, entry), - }) + for (const file of await stagedFiles(source, published)) { + const target = join(destination, file) + await mkdir(dirname(target), { recursive: true }) + await cp(join(source, file), target) + } } /** - * Whether one source path is tooling-owned or generated rather than reader-facing. - * @param source - Documentation root the entry belongs to. - * @param entry - Absolute source path offered to the copy filter. - * @returns whether the copy skips this entry. + * Remove a staged copy, so no pack leaves a stale tree for the next one. + * @param destination - Package directory to remove; defaults to `apps/cli/docs`. + * @returns Resolves after the directory is absent. */ -function isExcluded(source: string, entry: string): boolean { - const path = relative(source, entry).split(sep).join('/') - return path === EXCLUDED_DIRECTORY - || path.startsWith(`${EXCLUDED_DIRECTORY}/`) - || path.endsWith(EXCLUDED_SUFFIX) +export async function cleanStagedDshDocs(destination: string = STAGED_DIRECTORY): Promise { + await rm(destination, { recursive: true, force: true }) } -if (import.meta.main) await stageDshDocs() +/** + * List the files one stage publishes, in stable path order. + * @param source - Documentation root to walk. + * @param published - Source-relative Markdown paths to keep. + * @returns source-relative POSIX paths of every published file. + */ +async function stagedFiles(source: string, published: ReadonlySet): Promise { + const files: string[] = [] + const walk = async (directory: string): Promise => { + for (const entry of await readdir(join(source, directory), { withFileTypes: true })) { + const path = directory === '' ? entry.name : `${directory}/${entry.name}` + if (EXCLUDED_DIRECTORIES.some(excluded => path === excluded || path.startsWith(`${excluded}/`))) continue + if (entry.isDirectory()) await walk(path) + else if (!path.endsWith(EXCLUDED_SUFFIX) && (!path.endsWith('.md') || published.has(path))) files.push(path) + } + } + await walk('') + return files.sort() +} + +if (import.meta.main) { + if (process.argv.includes('--clean')) await cleanStagedDshDocs() + else await stageDshDocs() +} diff --git a/tsdown.config.ts b/tsdown.config.ts index c378de376a..6c7396eb77 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -30,6 +30,9 @@ export default defineConfig(({ env }) => { fixedExtension: false, dts: false, clean: false, + // Published packages carry their source and its maps, so the shipped + // JavaScript is compressed for size and identifier names stay readable. + minify: { compress: true, mangle: false }, plugins: client ? [] : [typertPlugin({ mode: 'workspace', faces: ['host'] })], } })