From caa7111f28f7d60be590b3fde89166bdffb1404b Mon Sep 17 00:00:00 2001 From: turtle1999 Date: Thu, 8 Oct 2026 15:06:13 +0800 Subject: [PATCH 001/193] feat(release): publish package source, declaration maps, and documentation Every release member publishes its TypeScript source and the declaration maps that resolve into it, and @deepseek-ai/dsh publishes the repository Markdown documentation staged from docs/ at prepack time. The ./src/* export most members already declared now resolves for an installed consumer, and a consumer editor follows a declaration to the implementation. Bundled JavaScript maps stay unpublished; the vendored family and the Desktop runtime file policy are unchanged. Rationale: .agents/notes/implemented/process/2026-10-08-published-source-and-docs.md --- ...08-02-typert-remote-method-calls.i18n.yaml | 4 +- .../2026-08-02-typert-remote-method-calls.md | 2 +- ...026-08-02-typert-remote-method-calls.zh.md | 2 +- ...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 | 19 ++++++ .../2026-10-08-published-source-and-docs.md | 41 +++++++++++++ ...2026-10-08-published-source-and-docs.zh.md | 41 +++++++++++++ .gitignore | 1 + apps/cli/package.json | 8 ++- apps/web/package.json | 3 +- 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 | 4 +- packages/api/account-controller/package.json | 5 +- packages/api/gateway/package.json | 4 +- packages/api/job-controller/package.json | 5 +- packages/api/remotes/package.json | 4 +- packages/api/session-controller/package.json | 5 +- packages/api/settings-controller/package.json | 5 +- packages/api/terminal-controller/package.json | 5 +- .../api/workspace-controller/package.json | 5 +- packages/api/workspace-files/package.json | 5 +- .../attachment/attachment-local/package.json | 2 +- packages/attachment/attachment/package.json | 2 +- packages/boot/app-boot/package.json | 4 +- packages/boot/cmdline/package.json | 4 +- packages/boot/config-editor/package.json | 4 +- packages/boot/hmr/package.json | 4 +- packages/boot/plugin-manager/package.json | 5 +- packages/browser-use/browser-use/package.json | 4 +- packages/bundle/acp-app/package.json | 4 +- packages/bundle/base/package.json | 4 +- packages/bundle/headless/package.json | 4 +- packages/bundle/sdk-app/package.json | 4 +- packages/bundle/sdk-minimal/package.json | 4 +- packages/bundle/web-app/package.json | 4 +- packages/client/connection/package.json | 4 +- packages/client/file-upload/package.json | 5 +- packages/client/hmr/package.json | 4 +- packages/client/locale/package.json | 4 +- packages/client/modules/package.json | 4 +- .../client/product-analytics/package.json | 5 +- packages/client/resources/package.json | 4 +- packages/client/shortcuts/package.json | 4 +- packages/client/store/package.json | 4 +- packages/client/ui-agent-preset/package.json | 4 +- packages/client/ui-approval/package.json | 4 +- packages/client/ui-attachment/package.json | 4 +- .../client/ui-brand-official/package.json | 4 +- packages/client/ui-chat/package.json | 4 +- packages/client/ui-commands/package.json | 4 +- packages/client/ui-conversation/package.json | 4 +- packages/client/ui-deliverables/package.json | 4 +- .../ui-directory-picker-browse/package.json | 4 +- .../ui-directory-picker-native/package.json | 4 +- packages/client/ui-dockkit/package.json | 4 +- packages/client/ui-goal/package.json | 4 +- packages/client/ui-input-trigger/package.json | 4 +- packages/client/ui-jobs/package.json | 4 +- packages/client/ui-layout/package.json | 4 +- .../client/ui-message-feedback/package.json | 4 +- .../client/ui-model-selection/package.json | 4 +- packages/client/ui-open-in-app/package.json | 4 +- .../client/ui-permission-presets/package.json | 4 +- packages/client/ui-plan/package.json | 4 +- .../client/ui-plugin-manager/package.json | 5 +- packages/client/ui-primitives/package.json | 4 +- packages/client/ui-reference/package.json | 4 +- packages/client/ui-renderer/package.json | 4 +- packages/client/ui-schedule/package.json | 4 +- packages/client/ui-session/package.json | 4 +- .../client/ui-settings-account/package.json | 4 +- .../ui-settings-agent-loop/package.json | 4 +- .../client/ui-settings-general/package.json | 4 +- .../client/ui-settings-models/package.json | 4 +- .../ui-settings-plugin-inventory/package.json | 4 +- .../client/ui-settings-plugins/package.json | 4 +- .../ui-settings-session-log/package.json | 4 +- .../client/ui-settings-shell/package.json | 4 +- .../client/ui-settings-subagent/package.json | 4 +- .../ui-settings-web-search/package.json | 4 +- packages/client/ui-settings/package.json | 4 +- packages/client/ui-shortcuts/package.json | 4 +- .../client/ui-sidebar-browser/package.json | 4 +- .../ui-sidebar-documentpreview/package.json | 4 +- packages/client/ui-sidebar-files/package.json | 4 +- packages/client/ui-sidebar-right/package.json | 4 +- .../client/ui-sidebar-terminal/package.json | 4 +- packages/client/ui-sidebar/package.json | 4 +- packages/client/ui-skill/package.json | 4 +- packages/client/ui-slots/package.json | 4 +- packages/client/ui-subagent/package.json | 4 +- packages/client/ui-theme/package.json | 4 +- packages/client/ui-tool/package.json | 4 +- packages/client/ui-trajectory/package.json | 4 +- .../client/ui-user-questions/package.json | 4 +- packages/client/ui-workflow-run/package.json | 4 +- packages/client/ui-workspace/package.json | 4 +- packages/client/web/package.json | 4 +- .../compaction/command-compact/package.json | 4 +- .../compaction/compaction-basic/package.json | 4 +- .../compaction-image-offload/package.json | 4 +- .../package.json | 4 +- packages/compaction/compaction/package.json | 4 +- .../computer-use/computer-use/package.json | 4 +- .../context/agent-instructions/package.json | 4 +- .../context/file-reference-local/package.json | 4 +- packages/context/file-reference/package.json | 4 +- .../context/session-reference/package.json | 5 +- packages/context/time-context/package.json | 4 +- packages/context/tmux-context/package.json | 4 +- .../core/agent-default-model/package.json | 4 +- packages/core/agent-loop/package.json | 4 +- .../core/agent-tool-presentation/package.json | 4 +- packages/core/agent/package.json | 4 +- packages/core/scope/package.json | 4 +- packages/core/session/package.json | 4 +- packages/core/system-prompt/package.json | 4 +- packages/core/tools/package.json | 4 +- .../credentials/authorization/package.json | 4 +- .../credentials-local/package.json | 4 +- packages/credentials/credentials/package.json | 4 +- .../deepseek-account-platform/package.json | 4 +- .../credentials/deepseek-account/package.json | 4 +- .../deliverables/tool-present/package.json | 4 +- .../workspace-changes/package.json | 4 +- packages/document/office-to-pdf/package.json | 5 +- .../agent-team-profile/package.json | 4 +- packages/experimental/agent-team/package.json | 4 +- .../api-speech-to-text/package.json | 5 +- .../experimental/auto-review/package.json | 4 +- .../badge-skill-bundle/package.json | 4 +- .../package.json | 4 +- .../browser-use-playwright-mcp/package.json | 4 +- .../browser-use-runtime/package.json | 4 +- .../browser-use-stagehand-native/package.json | 4 +- .../claude-code-mods/package.json | 5 +- .../client-ui-agent-team/package.json | 4 +- .../client-ui-claude-code-mods/package.json | 4 +- .../client-ui-cot-translation/package.json | 5 +- .../client-ui-voice-input/package.json | 4 +- .../computer-use-cua-driver-mcp/package.json | 4 +- .../package.json | 4 +- .../cot-translation-bundle/package.json | 4 +- .../experimental/hook-protocol/package.json | 4 +- .../hooks-claude-code/package.json | 4 +- .../experimental/hooks-codex/package.json | 4 +- .../inspector-profile/package.json | 4 +- packages/experimental/inspector/package.json | 4 +- .../ptc-runtime-python/package.json | 4 +- .../experimental/ralph-bundle/package.json | 4 +- .../session-inspector/package.json | 4 +- .../experimental/session-search/package.json | 4 +- .../package.json | 2 +- .../session-titles-bundle/package.json | 4 +- .../experimental/skill-badge/package.json | 4 +- .../speech-to-text-sensevoice/package.json | 4 +- .../experimental/speech-to-text/package.json | 4 +- .../experimental/terminal-bundle/package.json | 4 +- .../experimental/tool-agent-team/package.json | 4 +- packages/experimental/tool-ralph/package.json | 4 +- .../tool-session-query/package.json | 4 +- .../experimental/tool-terminal/package.json | 4 +- .../experimental/tool-worktree/package.json | 4 +- packages/experimental/translator/package.json | 4 +- .../voice-input-bundle/package.json | 4 +- .../experimental/webhook-github/package.json | 4 +- packages/experimental/webhook/package.json | 4 +- .../webworker-packer/package.json | 4 +- .../webworker-packer/tests/built-lib.e2e.ts | 5 +- .../webworker-runtime/package.json | 4 +- packages/experimental/worktree/package.json | 4 +- .../cordis-client-runner/package.json | 4 +- .../cordis-host-runner/package.json | 5 +- packages/extensions/tool-cordis/package.json | 4 +- packages/extensions/ui-cordis/package.json | 4 +- .../feedback/command-feedback/package.json | 5 +- .../feedback/message-feedback/package.json | 5 +- packages/fs/fs-local/package.json | 4 +- .../fs/fs-observation-policy/package.json | 4 +- packages/fs/fs-sandbox/package.json | 4 +- packages/fs/fs/package.json | 4 +- packages/fs/tool-fs-search/package.json | 4 +- packages/fs/tool-fs/package.json | 4 +- .../fs/tool-str-replace-editor/package.json | 4 +- packages/goal/command-goal/package.json | 4 +- packages/goal/goal-round-driver/package.json | 4 +- packages/goal/goal/package.json | 5 +- packages/goal/tool-goal/package.json | 4 +- .../guard/repeat-tool-reminder/package.json | 4 +- packages/guard/timeout-policy/package.json | 4 +- .../host/directory-picker-auto/package.json | 4 +- .../host/directory-picker-browse/package.json | 4 +- .../host/directory-picker-native/package.json | 4 +- packages/host/directory-picker/package.json | 4 +- packages/host/frontend-static/package.json | 4 +- packages/host/open-in-app/package.json | 4 +- packages/host/plugin-inventory/package.json | 5 +- .../host/product-telemetry-otel/package.json | 4 +- packages/host/webserver/package.json | 4 +- .../identity/anonymous-user-id/package.json | 4 +- packages/interaction/commands/package.json | 5 +- .../permission-presets/package.json | 5 +- .../interaction/tool-ask-user/package.json | 4 +- .../interaction/user-approval/package.json | 4 +- .../interaction/user-questions/package.json | 5 +- packages/jobs/jobs-local/package.json | 4 +- packages/jobs/jobs/package.json | 4 +- packages/jobs/tool-jobs/package.json | 4 +- .../deepseek-llm-api-extensions/package.json | 4 +- .../llm/llm-deepseek-account/package.json | 4 +- .../llm/llm-deepseek-api-key/package.json | 4 +- packages/llm/llm-deepseek/package.json | 4 +- packages/llm/llm-pi-ai/package.json | 4 +- packages/llm/llm-retry/package.json | 4 +- packages/llm/llm/package.json | 5 +- .../package.json | 4 +- packages/llm/token-meter/package.json | 4 +- packages/lsp/lsp-stdio/package.json | 4 +- packages/lsp/lsp/package.json | 4 +- packages/lsp/tool-lsp/package.json | 4 +- packages/mcp/mcp-client/package.json | 4 +- packages/mcp/mcp-resources/package.json | 4 +- packages/plan/plan-mode/package.json | 4 +- .../preset/agent-preset-registry/package.json | 5 +- packages/preset/agent-preset/package.json | 4 +- packages/preset/persona/package.json | 4 +- .../ptc-runtime/ptc-runtime-node/package.json | 4 +- packages/ptc-runtime/ptc-runtime/package.json | 4 +- packages/sandbox/sandbox-local/package.json | 4 +- packages/sandbox/sandbox-policy/package.json | 4 +- .../sandbox/sandbox-windows-acl/package.json | 4 +- packages/sandbox/sandbox/package.json | 4 +- packages/schedule/schedule/package.json | 5 +- packages/schedule/tool-schedule/package.json | 4 +- packages/sdk/client/package.json | 4 +- packages/sdk/protocol/package.json | 4 +- packages/sdk/server/package.json | 4 +- .../session-log-export/package.json | 4 +- .../session-query-sqlite/package.json | 4 +- .../session-query/session-query/package.json | 4 +- .../session-checkpoint-policy/package.json | 4 +- .../session-format-catalog/package.json | 4 +- .../session-format-v0-to-v1/package.json | 4 +- .../session-format-v1-to-v2/package.json | 4 +- .../session-format-v2-to-v3/package.json | 4 +- .../session-format-v3-to-v4/package.json | 4 +- packages/session/session-format/package.json | 4 +- .../session/session-log-deepseek/package.json | 4 +- .../session-persistence-jsonl/package.json | 4 +- .../session/session-persistence/package.json | 4 +- .../session-projection-cache/package.json | 4 +- .../session/session-projection/package.json | 4 +- packages/session/session-stats/package.json | 4 +- .../session-telemetry-otel/package.json | 4 +- .../session/session-telemetry/package.json | 4 +- .../package.json | 2 +- .../session/session-title-llm/package.json | 4 +- packages/session/session-title/package.json | 4 +- .../session/session-turn-outline/package.json | 4 +- .../tool-working-directory/package.json | 4 +- .../session/working-directory/package.json | 4 +- packages/settings/settings/package.json | 4 +- packages/shell/bash-local/package.json | 4 +- packages/shell/bash-sandbox/package.json | 4 +- packages/shell/pwsh-local/package.json | 4 +- packages/shell/pwsh-sandbox/package.json | 4 +- packages/shell/shell-env/package.json | 4 +- packages/shell/shell/package.json | 4 +- .../shell/tool-bash-persistent/package.json | 4 +- packages/shell/tool-bash/package.json | 4 +- .../shell/tool-pwsh-persistent/package.json | 4 +- packages/shell/tool-pwsh/package.json | 4 +- packages/skill/skill-filesystem/package.json | 4 +- packages/skill/skill-office/package.json | 4 +- packages/skill/skill/package.json | 4 +- packages/skill/tool-skill/package.json | 4 +- .../tool-workspace-dependencies/package.json | 4 +- packages/spill/spill-local/package.json | 4 +- packages/spill/spill-policy/package.json | 4 +- packages/spill/spill/package.json | 4 +- packages/ssh/fs-ssh/package.json | 4 +- packages/ssh/sandbox-ssh/package.json | 4 +- packages/ssh/ssh/package.json | 4 +- packages/ssh/subprocess-ssh/package.json | 4 +- packages/storage/storage-domain/package.json | 4 +- packages/storage/storage-json/package.json | 4 +- packages/storage/storage-sqlite/package.json | 4 +- packages/storage/storage/package.json | 4 +- packages/subagent/subagent-acp/package.json | 4 +- .../subagent-claude-code/package.json | 4 +- packages/subagent/subagent-codex/package.json | 4 +- .../subagent/subagent-dsh-sdk/package.json | 4 +- .../subagent-fork-in-process/package.json | 4 +- .../subagent-spawn-in-process/package.json | 4 +- packages/subagent/subagent/package.json | 5 +- .../tool-subagent-control/package.json | 4 +- packages/subagent/tool-subagent/package.json | 4 +- .../subprocess/subprocess-local/package.json | 4 +- packages/subprocess/subprocess/package.json | 4 +- .../subprocess/win32-process/package.json | 4 +- packages/telemetry/otel/package.json | 4 +- packages/terminal/terminal-bash/package.json | 4 +- packages/terminal/terminal/package.json | 4 +- .../agent-loop-testkit/package.json | 4 +- .../test-support/client-runtime/package.json | 4 +- .../test-support/llm-mock-server/package.json | 4 +- packages/test-support/llm-replay/package.json | 4 +- .../test-support/loader-smoke/package.json | 4 +- .../test-support/remote-mock/package.json | 4 +- .../session-snapshot/package.json | 4 +- packages/todo/tool-todo/package.json | 4 +- packages/typert/generator/package.json | 4 +- packages/typert/loader/package.json | 4 +- packages/typert/protocol/package.json | 4 +- packages/typert/registry/package.json | 4 +- packages/util/atomic-write/package.json | 4 +- packages/util/brand/package.json | 4 +- packages/util/chunked-list/package.json | 4 +- packages/util/code-language/package.json | 4 +- packages/util/crypto/package.json | 4 +- packages/util/deque/package.json | 4 +- packages/util/home-paths/package.json | 4 +- packages/util/http-proxy/package.json | 4 +- packages/util/launch-environment/package.json | 4 +- packages/util/lazy-require/package.json | 4 +- packages/util/native-command/package.json | 4 +- packages/util/output-retention/package.json | 4 +- packages/util/package-manifest/package.json | 4 +- packages/util/time/package.json | 4 +- packages/util/timeout/package.json | 4 +- packages/util/values/package.json | 4 +- packages/util/workspace-path/package.json | 4 +- packages/web/tool-web/package.json | 4 +- packages/web/web-fetch-http/package.json | 4 +- packages/web/web-search-deepseek/package.json | 4 +- packages/web/web-search-exa/package.json | 4 +- .../web/web-search-perplexity/package.json | 4 +- packages/web/web/package.json | 4 +- packages/workflow/tool-workflow/package.json | 4 +- packages/workflow/workflow-ptc/package.json | 4 +- packages/workflow/workflow/package.json | 4 +- packages/workspace/workspace/package.json | 4 +- scripts/check-workspace-constraints.spec.ts | 16 +++-- scripts/check-workspace-constraints.ts | 26 +++++---- scripts/publication-payload.spec.ts | 46 +++++++-------- scripts/publication-payload.ts | 23 +++----- scripts/release/families.spec.ts | 17 +++++- scripts/release/families.ts | 21 +++++-- scripts/release/pack.spec.ts | 6 +- scripts/stage-dsh-docs.spec.ts | 58 +++++++++++++++++++ scripts/stage-dsh-docs.ts | 49 ++++++++++++++++ scripts/translation-pairing.ts | 2 + 356 files changed, 1331 insertions(+), 415 deletions(-) create mode 100644 .agents/notes/implemented/process/2026-10-08-published-source-and-docs.i18n.yaml create mode 100644 .agents/notes/implemented/process/2026-10-08-published-source-and-docs.md create mode 100644 .agents/notes/implemented/process/2026-10-08-published-source-and-docs.zh.md create mode 100644 scripts/stage-dsh-docs.spec.ts create mode 100644 scripts/stage-dsh-docs.ts diff --git a/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.i18n.yaml b/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.i18n.yaml index 7afdf2c22c..9e09fd093d 100644 --- a/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.i18n.yaml +++ b/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.i18n.yaml @@ -36,8 +36,8 @@ en: 6ea4bddcf35a834d zh: 4af474c6818b1cf0 /agent-note-typert-gateway-targeted-method-calls/the-remote-package-entry: - en: 75e977fe0fb71d59 - zh: 00760c79da173cb7 + en: 91033aab32e4d8eb + zh: a11ada70e047af55 /agent-note-typert-gateway-targeted-method-calls/strict-consumer-api-types: en: 983f55c0ed4a8edc zh: 5a736e00e4b57e6a diff --git a/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.md b/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.md index 8e91598f7d..6fdd5ebd5c 100644 --- a/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.md +++ b/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.md @@ -238,7 +238,7 @@ import goalsRemote from '@deepseek-ai/dsh-goal/remote' This import brings the `.d.ts` map augmentation into the current TypeScript project while supplying the JS descriptor for the same contract as a value to the runtime. A business package that is not imported does not extend the current project's Remote API types. -The business package's published files must include `lib/typert.remote-client.d.ts.map`. The generated DTS refers to its adjacent map with `//# sourceMappingURL=typert.remote-client.d.ts.map`; the map source points from `lib` to the business source by a relative path such as `../src/index.ts`. The `/remote` export does not list the map separately; the package `files` field publishes it. That target is a development-time path: a workspace consumer resolves it through the package link, so the published payload keeps excluding `src` and a published map simply resolves nothing. +The business package's published files must include `lib/typert.remote-client.d.ts.map`. The generated DTS refers to its adjacent map with `//# sourceMappingURL=typert.remote-client.d.ts.map`; the map source points from `lib` to the business source by a relative path such as `../src/index.ts`. The `/remote` export does not list the map separately; the package `files` field publishes it. That target is a relative path inside the same package, and the payload publishes `src` beside the declaration map, so the navigation resolves for an installed consumer ([rationale](../process/2026-10-08-published-source-and-docs.md)). Code that needs only static types may use `import type {} from '@deepseek-ai/dsh-goal/remote'`. This import is erased at runtime, loads no JS, and cannot trigger runtime registration. An environment that makes real calls must pass the contribution from a normal value import to the Client Remote Service. diff --git a/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.zh.md b/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.zh.md index fd6cd2bcfc..f7d6a03abe 100644 --- a/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.zh.md +++ b/.agents/notes/implemented/architecture/2026-08-02-typert-remote-method-calls.zh.md @@ -238,7 +238,7 @@ import goalsRemote from '@deepseek-ai/dsh-goal/remote' 该 import 让 `.d.ts` 的 map augmentation 进入当前 TypeScript project,同时把同一约定的 JS descriptor 作为值交给运行时。未 import 的业务包不会扩展当前 project 的 Remote API 类型。 -业务 package 的发布文件必须包含 `lib/typert.remote-client.d.ts.map`。生成 DTS 以 `//# sourceMappingURL=typert.remote-client.d.ts.map` 引用相邻 map;map 中的 source 从 `lib` 相对指向业务源码,例如 `../src/index.ts`。`/remote` export 不单独列出 map,package `files` 负责发布它。该目标是开发期路径:workspace 消费者经 package link 解析它,因此发布产物仍然不含 `src`,已发布的 map 只是解析不到东西。 +业务 package 的发布文件必须包含 `lib/typert.remote-client.d.ts.map`。生成 DTS 以 `//# sourceMappingURL=typert.remote-client.d.ts.map` 引用相邻 map;map 中的 source 从 `lib` 相对指向业务源码,例如 `../src/index.ts`。`/remote` export 不单独列出 map,package `files` 负责发布它。该目标是同一 package 内的相对路径,发布产物在声明映射旁一并发布 `src`,因此已安装的消费方也能完成这次导航([理由](../process/2026-10-08-published-source-and-docs.zh.md))。 仅需要静态类型时可以使用 `import type {} from '@deepseek-ai/dsh-goal/remote'`;这种 import 在运行时会被擦除,不会加载 JS,也不能触发任何运行时注册。需要真实调用的环境必须把普通 value import 得到的 contribution 交给 Client Remote Service。 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 531b156371..58a7f3654a 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: 5bc6a83d124b682d - zh: 17383ec5c3c7e0e5 + en: 9b38e8eb8fc6ef9b + zh: 19b573c7c4f5d6e8 /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 8552232363..bd50b428a4 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 sources and declaration maps. The vendored family keeps upstream's payload, because those manifests export `./src/*` and dropping `src` would publish an export map pointing at absent files. +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/*`. ### 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 9d130478e6..325b1133eb 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 策略(拒绝源码与声明映射)。vendored 族保留上游 payload,因为那些 manifest 导出 `./src/*`,去掉 `src` 会发出一个导出映射指向不存在文件的包。 +dsh 族套用仓库的发布 payload 策略(拒绝打包后的 JavaScript map,随声明映射一起发布 `src`,[理由](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 new file mode 100644 index 0000000000..dea1726712 --- /dev/null +++ b/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.i18n.yaml @@ -0,0 +1,19 @@ +# Bilingual-pair consistency record for 2026-10-08-published-source-and-docs.md (docs/i18n/README.md): per heading +# 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 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 new file mode 100644 index 0000000000..dc78150dcf --- /dev/null +++ b/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.md @@ -0,0 +1,41 @@ +# Agent Note: Published source and documentation + +Status: implemented + +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. + +## 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. + +[`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. + +`@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 vendored family keeps upstream's payload unchanged; upstream owns those manifests, and they export `./src/*` ([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. + +## 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 bundled JavaScript maps alongside the runtime bundles.** Rejected because those are single-artifact builds whose maps describe a build tree that is not published. + +**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. + +**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. + +## 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. + +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. + +`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. 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 new file mode 100644 index 0000000000..cdd0788f5e --- /dev/null +++ b/.agents/notes/implemented/process/2026-10-08-published-source-and-docs.zh.md @@ -0,0 +1,41 @@ +# Agent Note: 发布源码与文档 + +Status: implemented + +[English](2026-10-08-published-source-and-docs.md) | 中文 + +## Problem + +已发布的 `@deepseek-ai/dsh-*` 包带有声明文件、打包后的运行时和 locale 资源,却没有声明文件所描述的 TypeScript 源码。它的 `exports` 仍然声明了 `./src/*`,于是已安装的消费方把该子路径解析到 tarball 中并不存在的文件。插件作者若想看到某个已记录 API 背后的实现,只能读声明文件、文档网站,或检出匹配的 `dsh-v*` tag:第一种停在声明处,后两者都不是已安装的版本。仓库的 Markdown 文档也只能通过网站到达读者,而网站跟随的是已发布版本。 + +## Decision + +每个发布成员都发布自己的 TypeScript 源码,以及能解析到该源码的声明映射;`@deepseek-ai/dsh` 另发布仓库的 Markdown 文档。 + +[`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/*`,该导出对已安装的消费方开始真正解析。 + +`@deepseek-ai/dsh` 通过 [`scripts/stage-dsh-docs.ts`](../../../../scripts/stage-dsh-docs.ts) 在自己的 `prepack` 生命周期里把仓库的 `docs` 树暂存到 `apps/cli/docs`。暂存副本不包含 `docs/persistence-changes/`(其中的逐版本迁移记录已被当前契约取代),也不包含由文档门禁拥有的 `*.i18n.yaml` 一致性记录。图片以及其他面向读者的资产都会一并发布。 + +vendored 族保持上游 payload 不变;那些 manifest 由上游拥有,且它们导出 `./src/*`([发布序列](2026-08-10-npm-release-sequences.zh.md))。 + +桌面打包保留自己的[运行时文件策略](../../../../apps/desktop/scripts/runtime-file-policy.ts),因此打包后的应用不含声明与声明映射,并携带它同样不会加载的 `src` 与暂存 `docs` 树。 + +## Alternatives considered + +**保持只发声明文件,把读者引向文档网站或匹配的 `dsh-v*` tag。** 否决:两者都不是已安装的版本,而网站提供的是最新已发布版本而非预发布版本。声明的 `./src/*` 导出没有这些文件也毫无意义。 + +**只发布声明映射,不发布 `src`。** 否决:`sources` 不存在的映射解析不到任何东西,而这正是 [Typert Remote 设计](../architecture/2026-08-02-typert-remote-method-calls.zh.md)所要求的导航。 + +**随运行时 bundle 一起发布打包后的 JavaScript map。** 否决:那些是单产物构建,其 map 描述的构建树并未发布。 + +**把文档做成独立的 `@deepseek-ai/dsh-docs` 包。** 否决:这些内容本来就该待在每个人都会安装的命令旁边,独立成包会多出一个公开包和一个发布成员。 + +**把 `docs/persistence-changes` 与其余文档一起发布。** 否决:那些记录回答的是版本对比问题,其 16 MB 会主导整个 payload。 + +## Consequences + +`src` 在整个发布集上增加约 29 MB,声明映射增加约 10 MB,暂存的 `docs` 树给 `@deepseek-ai/dsh` 增加约 6.7 MB。包 tarball 相应变大,桌面应用则携带它永不加载的 `src` 与 `docs`。 + +消费方编辑器现在可以从声明跳转到已安装的实现,插件作者无需检出即可读到该版本的源码与文档。暂存副本保留仓库的相对链接,因此从随包页面指向未随包目录的链接——`../packages/**`,或被排除的 `docs/persistence-changes/` 记录——只在检出中可解析。文档 payload 只对它随包发布的那个版本消除网站的版本偏差;当差异确实重要时,消费方仍应核对 `dsh --version`。 + +`pnpm run constraints` 会拒绝 `files` 中缺少 `src` 或任一声明映射的发布成员,因为该清单是精确匹配的。发布族的 tarball 校验会拒绝打包后的 JavaScript map,并要求 `@deepseek-ai/dsh` 必须带上文档与源码,因此跳过暂存钩子的打包会直接失败,而不是发出一个缺少它们的包。 diff --git a/.gitignore b/.gitignore index 3cb86ce87d..2412cde9f1 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ python/**/__pycache__/ python/**/.pytest_cache/ packages/**/__pycache__/ apps/web/dist/ +apps/cli/docs/ .artifacts/ .dsh-build/ .dsh-report/ diff --git a/apps/cli/package.json b/apps/cli/package.json index 3da15fcad8..2749f9d735 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -16,8 +16,14 @@ }, "files": [ "lib/*.js", - "lib/types/*.d.ts" + "lib/types/*.d.ts", + "lib/types/*.d.ts.map", + "docs", + "src" ], + "scripts": { + "prepack": "tsx ../../scripts/stage-dsh-docs.ts" + }, "license": "MIT", "dependencies": { "@deepseek-ai/cordis": "workspace:~", diff --git a/apps/web/package.json b/apps/web/package.json index 6dfc75207f..f5efe2b592 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -19,7 +19,8 @@ "dist", "!dist/**/*.map", "!dist/preview.html", - "!dist/preview" + "!dist/preview", + "src" ], "scripts": { "build": "vite build", diff --git a/docs/cookbook/adding-a-package.i18n.yaml b/docs/cookbook/adding-a-package.i18n.yaml index 013ecb4344..61a6dfa7d6 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: 062249fc249b2fec - zh: f6b9fe7f63c4cbad + en: 3dd23deee555ebb0 + zh: 5aa75243b67a1241 /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 af3547ea1f..56d3c9134f 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`, and package-specific runtime artifacts recognized by the gate. A package whose runtime export points into the emitted tree also includes `lib/types/**/*.js`. Do not publish `src`, declaration maps, 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 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`. 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 c45632d3e7..21052b5904 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` 以及门禁认可的包专用运行时产物。如果包的运行时 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`。声明映射与 `src` 一起发布,让消费方编辑器和插件作者都能读到导出声明背后的实现;不要发布 JS map 或陈旧的根声明文件。带有 `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 5a9e332ce9..292d5d3d6d 100644 --- a/packages/acp/acp/package.json +++ b/packages/acp/acp/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/api/account-controller/package.json b/packages/api/account-controller/package.json index ae3bfe24a1..c4e9a0144e 100644 --- a/packages/api/account-controller/package.json +++ b/packages/api/account-controller/package.json @@ -37,10 +37,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/api/gateway/package.json b/packages/api/gateway/package.json index 0ee56662b0..81fa3057fc 100644 --- a/packages/api/gateway/package.json +++ b/packages/api/gateway/package.json @@ -51,7 +51,9 @@ "lib/index.js", "lib/client.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/api/job-controller/package.json b/packages/api/job-controller/package.json index f9fd59429b..a668daa6fe 100644 --- a/packages/api/job-controller/package.json +++ b/packages/api/job-controller/package.json @@ -58,10 +58,13 @@ "lib/client.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/api/remotes/package.json b/packages/api/remotes/package.json index f09b9a96ae..dfe5a003ba 100644 --- a/packages/api/remotes/package.json +++ b/packages/api/remotes/package.json @@ -47,7 +47,9 @@ "lib/index.js", "lib/client.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "dependencies": { "@deepseek-ai/dsh-deque": "workspace:*", diff --git a/packages/api/session-controller/package.json b/packages/api/session-controller/package.json index 3f421fe675..37a1a6da7f 100644 --- a/packages/api/session-controller/package.json +++ b/packages/api/session-controller/package.json @@ -62,10 +62,13 @@ "lib/client.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/api/settings-controller/package.json b/packages/api/settings-controller/package.json index ded8c8bf22..e2c7b73780 100644 --- a/packages/api/settings-controller/package.json +++ b/packages/api/settings-controller/package.json @@ -37,10 +37,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/api/terminal-controller/package.json b/packages/api/terminal-controller/package.json index 9b67bd26cc..e903b9b030 100644 --- a/packages/api/terminal-controller/package.json +++ b/packages/api/terminal-controller/package.json @@ -88,9 +88,12 @@ "lib/client.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ] } diff --git a/packages/api/workspace-controller/package.json b/packages/api/workspace-controller/package.json index 118a4772a9..16a1fb77ee 100644 --- a/packages/api/workspace-controller/package.json +++ b/packages/api/workspace-controller/package.json @@ -62,10 +62,13 @@ "lib/client.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/api/workspace-files/package.json b/packages/api/workspace-files/package.json index 01a35b7da2..d2bce1d79c 100644 --- a/packages/api/workspace-files/package.json +++ b/packages/api/workspace-files/package.json @@ -78,9 +78,12 @@ "lib/client.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ] } diff --git a/packages/attachment/attachment-local/package.json b/packages/attachment/attachment-local/package.json index 810513ab0e..840ffbbff4 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"], + "files": ["lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.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 e119eb4700..b1b5b85b42 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"], + "files": ["lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.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 af2930239b..d49a7357d7 100644 --- a/packages/boot/app-boot/package.json +++ b/packages/boot/app-boot/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/worker/profile-resolution-bootstrap.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/boot/cmdline/package.json b/packages/boot/cmdline/package.json index c6ea6cb37a..5e09ffe0b3 100644 --- a/packages/boot/cmdline/package.json +++ b/packages/boot/cmdline/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/boot/config-editor/package.json b/packages/boot/config-editor/package.json index 346d9d4442..29dfca78e4 100644 --- a/packages/boot/config-editor/package.json +++ b/packages/boot/config-editor/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/boot/hmr/package.json b/packages/boot/hmr/package.json index d957e864ba..3eb72e9bcc 100644 --- a/packages/boot/hmr/package.json +++ b/packages/boot/hmr/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "author": "Shigma ", "license": "MIT", diff --git a/packages/boot/plugin-manager/package.json b/packages/boot/plugin-manager/package.json index 4a83a1781a..d6f0c4e545 100644 --- a/packages/boot/plugin-manager/package.json +++ b/packages/boot/plugin-manager/package.json @@ -49,10 +49,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/browser-use/browser-use/package.json b/packages/browser-use/browser-use/package.json index 8178f5d01d..28f2cea1dc 100644 --- a/packages/browser-use/browser-use/package.json +++ b/packages/browser-use/browser-use/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/bundle/acp-app/package.json b/packages/bundle/acp-app/package.json index d1d12860c2..cf47a11fcb 100644 --- a/packages/bundle/acp-app/package.json +++ b/packages/bundle/acp-app/package.json @@ -25,7 +25,9 @@ "files": [ "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/bundle/base/package.json b/packages/bundle/base/package.json index be152900d3..561d5271e6 100644 --- a/packages/bundle/base/package.json +++ b/packages/bundle/base/package.json @@ -25,7 +25,9 @@ "files": [ "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/bundle/headless/package.json b/packages/bundle/headless/package.json index cf2dc9f38f..42dcf52c01 100644 --- a/packages/bundle/headless/package.json +++ b/packages/bundle/headless/package.json @@ -31,7 +31,9 @@ "lib/startup.js", "cordis.patch.yml", "lib/json-stream-*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/bundle/sdk-app/package.json b/packages/bundle/sdk-app/package.json index fdfc1d2ad3..980cabaa30 100644 --- a/packages/bundle/sdk-app/package.json +++ b/packages/bundle/sdk-app/package.json @@ -25,7 +25,9 @@ "files": [ "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/bundle/sdk-minimal/package.json b/packages/bundle/sdk-minimal/package.json index df59eaae4d..fc7807fc38 100644 --- a/packages/bundle/sdk-minimal/package.json +++ b/packages/bundle/sdk-minimal/package.json @@ -25,7 +25,9 @@ "files": [ "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/bundle/web-app/package.json b/packages/bundle/web-app/package.json index 81c3782121..9de3952235 100644 --- a/packages/bundle/web-app/package.json +++ b/packages/bundle/web-app/package.json @@ -36,7 +36,9 @@ "presets/minimal.patch.yml", "presets/cordis.patch.yml", "lib/public-url-*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/client/connection/package.json b/packages/client/connection/package.json index b233722f10..f84ec837ea 100644 --- a/packages/client/connection/package.json +++ b/packages/client/connection/package.json @@ -41,7 +41,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "peerDependencies": { "@deepseek-ai/cordis": "workspace:~", diff --git a/packages/client/file-upload/package.json b/packages/client/file-upload/package.json index eecaa28d28..ac40374cd4 100644 --- a/packages/client/file-upload/package.json +++ b/packages/client/file-upload/package.json @@ -56,10 +56,13 @@ "lib/client.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "dependencies": { "zod": "^4.4.3", diff --git a/packages/client/hmr/package.json b/packages/client/hmr/package.json index 373c176123..65bd8843b2 100644 --- a/packages/client/hmr/package.json +++ b/packages/client/hmr/package.json @@ -50,6 +50,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/locale/package.json b/packages/client/locale/package.json index a1577330a2..3b6bf825dd 100644 --- a/packages/client/locale/package.json +++ b/packages/client/locale/package.json @@ -62,7 +62,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "scripts": { "bundle": "tsdown", diff --git a/packages/client/modules/package.json b/packages/client/modules/package.json index 497adf5366..878948b7e1 100644 --- a/packages/client/modules/package.json +++ b/packages/client/modules/package.json @@ -47,7 +47,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "peerDependencies": { "@deepseek-ai/cordis": "workspace:~" diff --git a/packages/client/product-analytics/package.json b/packages/client/product-analytics/package.json index a7a8b4cddc..4dc26d82fe 100644 --- a/packages/client/product-analytics/package.json +++ b/packages/client/product-analytics/package.json @@ -69,10 +69,13 @@ "lib/index.js", "lib/client.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "dependencies": { "@deepseek-ai/dsh-typert-protocol": "workspace:*", diff --git a/packages/client/resources/package.json b/packages/client/resources/package.json index 531d64def9..5e4dbc12ff 100644 --- a/packages/client/resources/package.json +++ b/packages/client/resources/package.json @@ -52,6 +52,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/shortcuts/package.json b/packages/client/shortcuts/package.json index 76f34297ec..1aee3812c3 100644 --- a/packages/client/shortcuts/package.json +++ b/packages/client/shortcuts/package.json @@ -58,7 +58,9 @@ "lib/index.js", "lib/client.js", "lib/protocol.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "dependencies": { "@deepseek-ai/dsh-util-crypto": "workspace:*", diff --git a/packages/client/store/package.json b/packages/client/store/package.json index e6284b5e8c..058442f123 100644 --- a/packages/client/store/package.json +++ b/packages/client/store/package.json @@ -32,6 +32,8 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-agent-preset/package.json b/packages/client/ui-agent-preset/package.json index d65a284667..5eea4b7db8 100644 --- a/packages/client/ui-agent-preset/package.json +++ b/packages/client/ui-agent-preset/package.json @@ -73,7 +73,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "dependencies": {} } diff --git a/packages/client/ui-approval/package.json b/packages/client/ui-approval/package.json index 4d8ef679e1..6158620117 100644 --- a/packages/client/ui-approval/package.json +++ b/packages/client/ui-approval/package.json @@ -66,6 +66,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-attachment/package.json b/packages/client/ui-attachment/package.json index e37afaf50d..d0d3e9f7d1 100644 --- a/packages/client/ui-attachment/package.json +++ b/packages/client/ui-attachment/package.json @@ -61,7 +61,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "peerDependencies": { "@deepseek-ai/cordis": "workspace:~" diff --git a/packages/client/ui-brand-official/package.json b/packages/client/ui-brand-official/package.json index b4587a84ac..074dcec296 100644 --- a/packages/client/ui-brand-official/package.json +++ b/packages/client/ui-brand-official/package.json @@ -55,6 +55,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-chat/package.json b/packages/client/ui-chat/package.json index 432346bf9d..a0fa173ab5 100644 --- a/packages/client/ui-chat/package.json +++ b/packages/client/ui-chat/package.json @@ -101,6 +101,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-commands/package.json b/packages/client/ui-commands/package.json index ecedb1d9f8..50e41ecdd9 100644 --- a/packages/client/ui-commands/package.json +++ b/packages/client/ui-commands/package.json @@ -68,6 +68,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-conversation/package.json b/packages/client/ui-conversation/package.json index af91420381..6748ea7139 100644 --- a/packages/client/ui-conversation/package.json +++ b/packages/client/ui-conversation/package.json @@ -102,6 +102,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-deliverables/package.json b/packages/client/ui-deliverables/package.json index 174fcf3f72..d318924908 100644 --- a/packages/client/ui-deliverables/package.json +++ b/packages/client/ui-deliverables/package.json @@ -85,7 +85,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "dependencies": { "@deepseek-ai/dsh-typert-protocol": "workspace:*" diff --git a/packages/client/ui-directory-picker-browse/package.json b/packages/client/ui-directory-picker-browse/package.json index 557ca70801..99f5457dd8 100644 --- a/packages/client/ui-directory-picker-browse/package.json +++ b/packages/client/ui-directory-picker-browse/package.json @@ -62,6 +62,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-directory-picker-native/package.json b/packages/client/ui-directory-picker-native/package.json index 727c9f22b2..4dd2ae3e3e 100644 --- a/packages/client/ui-directory-picker-native/package.json +++ b/packages/client/ui-directory-picker-native/package.json @@ -55,6 +55,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-dockkit/package.json b/packages/client/ui-dockkit/package.json index e42a8d828f..ff5a987c91 100644 --- a/packages/client/ui-dockkit/package.json +++ b/packages/client/ui-dockkit/package.json @@ -36,7 +36,9 @@ "files": [ "lib/index.js", "lib/**/*.css", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "peerDependencies": { "@deepseek-ai/cordis": "workspace:~" diff --git a/packages/client/ui-goal/package.json b/packages/client/ui-goal/package.json index b1cac92875..d6b5791d5a 100644 --- a/packages/client/ui-goal/package.json +++ b/packages/client/ui-goal/package.json @@ -71,6 +71,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-input-trigger/package.json b/packages/client/ui-input-trigger/package.json index 280dbdaaad..4b7f05fd3a 100644 --- a/packages/client/ui-input-trigger/package.json +++ b/packages/client/ui-input-trigger/package.json @@ -65,6 +65,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-jobs/package.json b/packages/client/ui-jobs/package.json index 7cd9351e30..119051ecb3 100644 --- a/packages/client/ui-jobs/package.json +++ b/packages/client/ui-jobs/package.json @@ -53,7 +53,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "dsh": { "client": { diff --git a/packages/client/ui-layout/package.json b/packages/client/ui-layout/package.json index 9c04a714ca..8a6b1bf9d9 100644 --- a/packages/client/ui-layout/package.json +++ b/packages/client/ui-layout/package.json @@ -61,6 +61,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-message-feedback/package.json b/packages/client/ui-message-feedback/package.json index df6cb6895e..5e91d8d77b 100644 --- a/packages/client/ui-message-feedback/package.json +++ b/packages/client/ui-message-feedback/package.json @@ -73,6 +73,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-model-selection/package.json b/packages/client/ui-model-selection/package.json index 90a4f1dbcb..b9f51eabb4 100644 --- a/packages/client/ui-model-selection/package.json +++ b/packages/client/ui-model-selection/package.json @@ -71,6 +71,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-open-in-app/package.json b/packages/client/ui-open-in-app/package.json index e1b15cdf72..f16823d885 100644 --- a/packages/client/ui-open-in-app/package.json +++ b/packages/client/ui-open-in-app/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "scripts": { "bundle": "tsdown", diff --git a/packages/client/ui-permission-presets/package.json b/packages/client/ui-permission-presets/package.json index 48e196a2eb..703beb0f7e 100644 --- a/packages/client/ui-permission-presets/package.json +++ b/packages/client/ui-permission-presets/package.json @@ -72,6 +72,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-plan/package.json b/packages/client/ui-plan/package.json index efaa5d5869..d6be83ae67 100644 --- a/packages/client/ui-plan/package.json +++ b/packages/client/ui-plan/package.json @@ -76,6 +76,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-plugin-manager/package.json b/packages/client/ui-plugin-manager/package.json index 696e1a2f6c..2cc57af932 100644 --- a/packages/client/ui-plugin-manager/package.json +++ b/packages/client/ui-plugin-manager/package.json @@ -79,10 +79,13 @@ "lib/index.js", "lib/client.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "dependencies": { "@deepseek-ai/dsh-timeout": "workspace:*", diff --git a/packages/client/ui-primitives/package.json b/packages/client/ui-primitives/package.json index e8a5b84d1a..df24ffd5d1 100644 --- a/packages/client/ui-primitives/package.json +++ b/packages/client/ui-primitives/package.json @@ -55,7 +55,9 @@ "files": [ "lib/index.js", "lib/**/*.css", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "peerDependencies": { "@deepseek-ai/cordis": "workspace:~" diff --git a/packages/client/ui-reference/package.json b/packages/client/ui-reference/package.json index cee0b99508..c1ed59761c 100644 --- a/packages/client/ui-reference/package.json +++ b/packages/client/ui-reference/package.json @@ -65,6 +65,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-renderer/package.json b/packages/client/ui-renderer/package.json index 347920cc81..7422b8f82e 100644 --- a/packages/client/ui-renderer/package.json +++ b/packages/client/ui-renderer/package.json @@ -53,6 +53,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-schedule/package.json b/packages/client/ui-schedule/package.json index 0d65fc8977..f53200307d 100644 --- a/packages/client/ui-schedule/package.json +++ b/packages/client/ui-schedule/package.json @@ -85,6 +85,8 @@ "locale/*.json", "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-session/package.json b/packages/client/ui-session/package.json index e0d1b55faa..c5f71e18b1 100644 --- a/packages/client/ui-session/package.json +++ b/packages/client/ui-session/package.json @@ -60,6 +60,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-settings-account/package.json b/packages/client/ui-settings-account/package.json index ed21b99671..a6283a3186 100644 --- a/packages/client/ui-settings-account/package.json +++ b/packages/client/ui-settings-account/package.json @@ -75,7 +75,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "dependencies": { "@deepseek-ai/schemastery": "workspace:~" diff --git a/packages/client/ui-settings-agent-loop/package.json b/packages/client/ui-settings-agent-loop/package.json index 4ab203ecbf..c6a17d6989 100644 --- a/packages/client/ui-settings-agent-loop/package.json +++ b/packages/client/ui-settings-agent-loop/package.json @@ -60,6 +60,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-settings-general/package.json b/packages/client/ui-settings-general/package.json index ddba8ede7b..8e891050f0 100644 --- a/packages/client/ui-settings-general/package.json +++ b/packages/client/ui-settings-general/package.json @@ -77,6 +77,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-settings-models/package.json b/packages/client/ui-settings-models/package.json index 0f4aa17a27..0406435b03 100644 --- a/packages/client/ui-settings-models/package.json +++ b/packages/client/ui-settings-models/package.json @@ -66,6 +66,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-settings-plugin-inventory/package.json b/packages/client/ui-settings-plugin-inventory/package.json index b4f868e424..08fe010f98 100644 --- a/packages/client/ui-settings-plugin-inventory/package.json +++ b/packages/client/ui-settings-plugin-inventory/package.json @@ -67,6 +67,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-settings-plugins/package.json b/packages/client/ui-settings-plugins/package.json index 0f32affb06..5b63a88665 100644 --- a/packages/client/ui-settings-plugins/package.json +++ b/packages/client/ui-settings-plugins/package.json @@ -56,6 +56,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-settings-session-log/package.json b/packages/client/ui-settings-session-log/package.json index 32fb45425d..73b015a62e 100644 --- a/packages/client/ui-settings-session-log/package.json +++ b/packages/client/ui-settings-session-log/package.json @@ -62,6 +62,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-settings-shell/package.json b/packages/client/ui-settings-shell/package.json index 017b51260c..81133f38bc 100644 --- a/packages/client/ui-settings-shell/package.json +++ b/packages/client/ui-settings-shell/package.json @@ -60,6 +60,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-settings-subagent/package.json b/packages/client/ui-settings-subagent/package.json index 0899660cd8..46aaba01ed 100644 --- a/packages/client/ui-settings-subagent/package.json +++ b/packages/client/ui-settings-subagent/package.json @@ -61,6 +61,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-settings-web-search/package.json b/packages/client/ui-settings-web-search/package.json index 5cdf2fdfe7..9322cfb595 100644 --- a/packages/client/ui-settings-web-search/package.json +++ b/packages/client/ui-settings-web-search/package.json @@ -61,6 +61,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-settings/package.json b/packages/client/ui-settings/package.json index e1cc80cd17..7d61bf0286 100644 --- a/packages/client/ui-settings/package.json +++ b/packages/client/ui-settings/package.json @@ -55,7 +55,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "dependencies": { "@deepseek-ai/schemastery": "workspace:~" diff --git a/packages/client/ui-shortcuts/package.json b/packages/client/ui-shortcuts/package.json index 72204436f3..48810efd1d 100644 --- a/packages/client/ui-shortcuts/package.json +++ b/packages/client/ui-shortcuts/package.json @@ -63,6 +63,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-sidebar-browser/package.json b/packages/client/ui-sidebar-browser/package.json index b97e65024b..9bb1561e62 100644 --- a/packages/client/ui-sidebar-browser/package.json +++ b/packages/client/ui-sidebar-browser/package.json @@ -68,6 +68,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-sidebar-documentpreview/package.json b/packages/client/ui-sidebar-documentpreview/package.json index de0132b03f..112e221df0 100644 --- a/packages/client/ui-sidebar-documentpreview/package.json +++ b/packages/client/ui-sidebar-documentpreview/package.json @@ -92,7 +92,9 @@ "lib/index.js", "lib/client.js", "lib/client.*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "dependencies": { "@deepseek-ai/schemastery": "workspace:~" diff --git a/packages/client/ui-sidebar-files/package.json b/packages/client/ui-sidebar-files/package.json index 791ed03364..fd84e6d154 100644 --- a/packages/client/ui-sidebar-files/package.json +++ b/packages/client/ui-sidebar-files/package.json @@ -72,6 +72,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-sidebar-right/package.json b/packages/client/ui-sidebar-right/package.json index 406c3322ac..3ce4c8e314 100644 --- a/packages/client/ui-sidebar-right/package.json +++ b/packages/client/ui-sidebar-right/package.json @@ -77,6 +77,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-sidebar-terminal/package.json b/packages/client/ui-sidebar-terminal/package.json index 713c3e9c77..6279fa350a 100644 --- a/packages/client/ui-sidebar-terminal/package.json +++ b/packages/client/ui-sidebar-terminal/package.json @@ -76,6 +76,8 @@ "lib/index.js", "lib/client.js", "lib/client.*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-sidebar/package.json b/packages/client/ui-sidebar/package.json index 092797ec13..b09fd9ffa4 100644 --- a/packages/client/ui-sidebar/package.json +++ b/packages/client/ui-sidebar/package.json @@ -68,6 +68,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-skill/package.json b/packages/client/ui-skill/package.json index b4e69169b7..e5d2e84496 100644 --- a/packages/client/ui-skill/package.json +++ b/packages/client/ui-skill/package.json @@ -71,6 +71,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-slots/package.json b/packages/client/ui-slots/package.json index 7e7e9c28fb..808269b089 100644 --- a/packages/client/ui-slots/package.json +++ b/packages/client/ui-slots/package.json @@ -29,7 +29,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "peerDependencies": { "@deepseek-ai/cordis": "workspace:~" diff --git a/packages/client/ui-subagent/package.json b/packages/client/ui-subagent/package.json index 77876b327d..4ebd50f44d 100644 --- a/packages/client/ui-subagent/package.json +++ b/packages/client/ui-subagent/package.json @@ -76,6 +76,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-theme/package.json b/packages/client/ui-theme/package.json index 2e43211b92..e3310e252e 100644 --- a/packages/client/ui-theme/package.json +++ b/packages/client/ui-theme/package.json @@ -64,7 +64,9 @@ "lib/index.js", "lib/client.js", "lib/styles", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "scripts": { "bundle": "tsdown", diff --git a/packages/client/ui-tool/package.json b/packages/client/ui-tool/package.json index 6058888f57..45c3781fcd 100644 --- a/packages/client/ui-tool/package.json +++ b/packages/client/ui-tool/package.json @@ -82,6 +82,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-trajectory/package.json b/packages/client/ui-trajectory/package.json index f184db05d2..06e1f18796 100644 --- a/packages/client/ui-trajectory/package.json +++ b/packages/client/ui-trajectory/package.json @@ -74,6 +74,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-user-questions/package.json b/packages/client/ui-user-questions/package.json index 58c9a968eb..0cbe8cfa97 100644 --- a/packages/client/ui-user-questions/package.json +++ b/packages/client/ui-user-questions/package.json @@ -76,6 +76,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/ui-workflow-run/package.json b/packages/client/ui-workflow-run/package.json index 79d2efd4fb..bbe4728d52 100644 --- a/packages/client/ui-workflow-run/package.json +++ b/packages/client/ui-workflow-run/package.json @@ -46,7 +46,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/client/ui-workspace/package.json b/packages/client/ui-workspace/package.json index f062d8392c..05a9c77ded 100644 --- a/packages/client/ui-workspace/package.json +++ b/packages/client/ui-workspace/package.json @@ -84,6 +84,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/client/web/package.json b/packages/client/web/package.json index ceb21773d5..c43c8e3c55 100644 --- a/packages/client/web/package.json +++ b/packages/client/web/package.json @@ -49,6 +49,8 @@ "lib/index.js", "lib/**/*.css", "lib/apply-injections.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/compaction/command-compact/package.json b/packages/compaction/command-compact/package.json index 3fbfb59544..324dfef173 100644 --- a/packages/compaction/command-compact/package.json +++ b/packages/compaction/command-compact/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/compaction/compaction-basic/package.json b/packages/compaction/compaction-basic/package.json index 4eba2ada7b..2e7458d70a 100644 --- a/packages/compaction/compaction-basic/package.json +++ b/packages/compaction/compaction-basic/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/compaction/compaction-image-offload/package.json b/packages/compaction/compaction-image-offload/package.json index 67b3dc20e7..104f443ada 100644 --- a/packages/compaction/compaction-image-offload/package.json +++ b/packages/compaction/compaction-image-offload/package.json @@ -27,7 +27,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/compaction/compaction-tool-result-pruner/package.json b/packages/compaction/compaction-tool-result-pruner/package.json index b8cd3f2062..98e8bac151 100644 --- a/packages/compaction/compaction-tool-result-pruner/package.json +++ b/packages/compaction/compaction-tool-result-pruner/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/compaction/compaction/package.json b/packages/compaction/compaction/package.json index 8f9c368f70..4da7b162d0 100644 --- a/packages/compaction/compaction/package.json +++ b/packages/compaction/compaction/package.json @@ -32,7 +32,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/computer-use/computer-use/package.json b/packages/computer-use/computer-use/package.json index db8daf5fbe..2f4bd4b561 100644 --- a/packages/computer-use/computer-use/package.json +++ b/packages/computer-use/computer-use/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/context/agent-instructions/package.json b/packages/context/agent-instructions/package.json index 16f68d3634..bbb0a78028 100644 --- a/packages/context/agent-instructions/package.json +++ b/packages/context/agent-instructions/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/context/file-reference-local/package.json b/packages/context/file-reference-local/package.json index 5cb1646286..4bb0ed6609 100644 --- a/packages/context/file-reference-local/package.json +++ b/packages/context/file-reference-local/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/context/file-reference/package.json b/packages/context/file-reference/package.json index 125f4f7b10..af6f101793 100644 --- a/packages/context/file-reference/package.json +++ b/packages/context/file-reference/package.json @@ -32,7 +32,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/context/session-reference/package.json b/packages/context/session-reference/package.json index 9b8572ca85..e9897c5d0e 100644 --- a/packages/context/session-reference/package.json +++ b/packages/context/session-reference/package.json @@ -37,10 +37,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/context/time-context/package.json b/packages/context/time-context/package.json index 0f778f8591..2f33097a13 100644 --- a/packages/context/time-context/package.json +++ b/packages/context/time-context/package.json @@ -25,7 +25,9 @@ "files": [ "locale/*.json", "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/context/tmux-context/package.json b/packages/context/tmux-context/package.json index fc3834a07d..6614e96b4f 100644 --- a/packages/context/tmux-context/package.json +++ b/packages/context/tmux-context/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/core/agent-default-model/package.json b/packages/core/agent-default-model/package.json index 7acef9bb27..95a8c6bf9a 100644 --- a/packages/core/agent-default-model/package.json +++ b/packages/core/agent-default-model/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/core/agent-loop/package.json b/packages/core/agent-loop/package.json index 1e1678594f..11e2637b19 100644 --- a/packages/core/agent-loop/package.json +++ b/packages/core/agent-loop/package.json @@ -22,7 +22,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/core/agent-tool-presentation/package.json b/packages/core/agent-tool-presentation/package.json index 99aafd9731..24222c7831 100644 --- a/packages/core/agent-tool-presentation/package.json +++ b/packages/core/agent-tool-presentation/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/core/agent/package.json b/packages/core/agent/package.json index f33481fc28..baa51e2bae 100644 --- a/packages/core/agent/package.json +++ b/packages/core/agent/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/core/scope/package.json b/packages/core/scope/package.json index 29d8d56bf0..2f0cdca10a 100644 --- a/packages/core/scope/package.json +++ b/packages/core/scope/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/core/session/package.json b/packages/core/session/package.json index 68fec8f3d6..036627d364 100644 --- a/packages/core/session/package.json +++ b/packages/core/session/package.json @@ -36,7 +36,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/core/system-prompt/package.json b/packages/core/system-prompt/package.json index 951ec3fb95..8674b12846 100644 --- a/packages/core/system-prompt/package.json +++ b/packages/core/system-prompt/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/core/tools/package.json b/packages/core/tools/package.json index 1e4fa8ba01..f08522c45a 100644 --- a/packages/core/tools/package.json +++ b/packages/core/tools/package.json @@ -32,7 +32,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/credentials/authorization/package.json b/packages/credentials/authorization/package.json index 8ceffd30dc..8086274bc9 100644 --- a/packages/credentials/authorization/package.json +++ b/packages/credentials/authorization/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/credentials/credentials-local/package.json b/packages/credentials/credentials-local/package.json index 93276c131e..2c03c980c0 100644 --- a/packages/credentials/credentials-local/package.json +++ b/packages/credentials/credentials-local/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/credentials/credentials/package.json b/packages/credentials/credentials/package.json index e6f5d79399..bbbd675062 100644 --- a/packages/credentials/credentials/package.json +++ b/packages/credentials/credentials/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/credentials/deepseek-account-platform/package.json b/packages/credentials/deepseek-account-platform/package.json index 381954457a..8327ec2ba3 100644 --- a/packages/credentials/deepseek-account-platform/package.json +++ b/packages/credentials/deepseek-account-platform/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/credentials/deepseek-account/package.json b/packages/credentials/deepseek-account/package.json index c1b7867842..27a9da1f24 100644 --- a/packages/credentials/deepseek-account/package.json +++ b/packages/credentials/deepseek-account/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/deliverables/tool-present/package.json b/packages/deliverables/tool-present/package.json index 8bbd9e427b..e9181ed2a6 100644 --- a/packages/deliverables/tool-present/package.json +++ b/packages/deliverables/tool-present/package.json @@ -29,7 +29,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "dependencies": { "@deepseek-ai/schemastery": "workspace:~" diff --git a/packages/deliverables/workspace-changes/package.json b/packages/deliverables/workspace-changes/package.json index 5fc5f7ae86..f93a7d0712 100644 --- a/packages/deliverables/workspace-changes/package.json +++ b/packages/deliverables/workspace-changes/package.json @@ -29,7 +29,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "dependencies": { "@deepseek-ai/schemastery": "workspace:~", diff --git a/packages/document/office-to-pdf/package.json b/packages/document/office-to-pdf/package.json index 26cc2f353c..bf13eaaf96 100644 --- a/packages/document/office-to-pdf/package.json +++ b/packages/document/office-to-pdf/package.json @@ -38,10 +38,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "peerDependencies": { "@deepseek-ai/cordis": "workspace:~" diff --git a/packages/experimental/agent-team-profile/package.json b/packages/experimental/agent-team-profile/package.json index 0d907efdd8..cdcc2217b8 100644 --- a/packages/experimental/agent-team-profile/package.json +++ b/packages/experimental/agent-team-profile/package.json @@ -29,7 +29,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/experimental/agent-team/package.json b/packages/experimental/agent-team/package.json index 12d49f07dd..cb10d380cd 100644 --- a/packages/experimental/agent-team/package.json +++ b/packages/experimental/agent-team/package.json @@ -34,7 +34,9 @@ "locale/*.json", "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/api-speech-to-text/package.json b/packages/experimental/api-speech-to-text/package.json index 2c02c9443a..0503a8c646 100644 --- a/packages/experimental/api-speech-to-text/package.json +++ b/packages/experimental/api-speech-to-text/package.json @@ -37,10 +37,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/auto-review/package.json b/packages/experimental/auto-review/package.json index fa458f0726..d369477539 100644 --- a/packages/experimental/auto-review/package.json +++ b/packages/experimental/auto-review/package.json @@ -26,7 +26,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/badge-skill-bundle/package.json b/packages/experimental/badge-skill-bundle/package.json index 7853f04167..31e091cae6 100644 --- a/packages/experimental/badge-skill-bundle/package.json +++ b/packages/experimental/badge-skill-bundle/package.json @@ -29,7 +29,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/experimental/browser-use-chrome-devtools-mcp/package.json b/packages/experimental/browser-use-chrome-devtools-mcp/package.json index cee92d700c..649d452d51 100644 --- a/packages/experimental/browser-use-chrome-devtools-mcp/package.json +++ b/packages/experimental/browser-use-chrome-devtools-mcp/package.json @@ -25,7 +25,9 @@ "files": [ "locale/*.json", "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/browser-use-playwright-mcp/package.json b/packages/experimental/browser-use-playwright-mcp/package.json index 8f006c5310..130fd36866 100644 --- a/packages/experimental/browser-use-playwright-mcp/package.json +++ b/packages/experimental/browser-use-playwright-mcp/package.json @@ -25,7 +25,9 @@ "files": [ "locale/*.json", "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/browser-use-runtime/package.json b/packages/experimental/browser-use-runtime/package.json index ebefaf7e56..1c2bb93a41 100644 --- a/packages/experimental/browser-use-runtime/package.json +++ b/packages/experimental/browser-use-runtime/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/browser-use-stagehand-native/package.json b/packages/experimental/browser-use-stagehand-native/package.json index ea9dd3142b..9a098ea4d8 100644 --- a/packages/experimental/browser-use-stagehand-native/package.json +++ b/packages/experimental/browser-use-stagehand-native/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/worker.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/claude-code-mods/package.json b/packages/experimental/claude-code-mods/package.json index 21b9d18317..0cea68cf83 100644 --- a/packages/experimental/claude-code-mods/package.json +++ b/packages/experimental/claude-code-mods/package.json @@ -42,10 +42,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/client-ui-agent-team/package.json b/packages/experimental/client-ui-agent-team/package.json index d1d727a400..39095ad10f 100644 --- a/packages/experimental/client-ui-agent-team/package.json +++ b/packages/experimental/client-ui-agent-team/package.json @@ -80,6 +80,8 @@ "locale/*.json", "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.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 0fa362cc1b..219958feb4 100644 --- a/packages/experimental/client-ui-claude-code-mods/package.json +++ b/packages/experimental/client-ui-claude-code-mods/package.json @@ -44,7 +44,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/client-ui-cot-translation/package.json b/packages/experimental/client-ui-cot-translation/package.json index 90117ed048..4c34f6995d 100644 --- a/packages/experimental/client-ui-cot-translation/package.json +++ b/packages/experimental/client-ui-cot-translation/package.json @@ -98,9 +98,12 @@ "lib/index.js", "lib/client.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ] } diff --git a/packages/experimental/client-ui-voice-input/package.json b/packages/experimental/client-ui-voice-input/package.json index ede23b2d00..52947344eb 100644 --- a/packages/experimental/client-ui-voice-input/package.json +++ b/packages/experimental/client-ui-voice-input/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": {}, diff --git a/packages/experimental/computer-use-cua-driver-mcp/package.json b/packages/experimental/computer-use-cua-driver-mcp/package.json index b058a5c6b8..8dc46d644c 100644 --- a/packages/experimental/computer-use-cua-driver-mcp/package.json +++ b/packages/experimental/computer-use-cua-driver-mcp/package.json @@ -25,7 +25,9 @@ "files": [ "locale/*.json", "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/computer-use-cua-driver-native/package.json b/packages/experimental/computer-use-cua-driver-native/package.json index e9055c9bb4..1ff2b78772 100644 --- a/packages/experimental/computer-use-cua-driver-native/package.json +++ b/packages/experimental/computer-use-cua-driver-native/package.json @@ -25,7 +25,9 @@ "files": [ "locale/*.json", "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/cot-translation-bundle/package.json b/packages/experimental/cot-translation-bundle/package.json index d723a94941..94adb61160 100644 --- a/packages/experimental/cot-translation-bundle/package.json +++ b/packages/experimental/cot-translation-bundle/package.json @@ -29,7 +29,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/hook-protocol/package.json b/packages/experimental/hook-protocol/package.json index 1195c9de2c..7bc2b5ccfd 100644 --- a/packages/experimental/hook-protocol/package.json +++ b/packages/experimental/hook-protocol/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/hooks-claude-code/package.json b/packages/experimental/hooks-claude-code/package.json index 9799278af9..bc53713b75 100644 --- a/packages/experimental/hooks-claude-code/package.json +++ b/packages/experimental/hooks-claude-code/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/hooks-codex/package.json b/packages/experimental/hooks-codex/package.json index e4eac2a937..db892f744b 100644 --- a/packages/experimental/hooks-codex/package.json +++ b/packages/experimental/hooks-codex/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/inspector-profile/package.json b/packages/experimental/inspector-profile/package.json index 8a043b0a09..fce0e27389 100644 --- a/packages/experimental/inspector-profile/package.json +++ b/packages/experimental/inspector-profile/package.json @@ -29,7 +29,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/experimental/inspector/package.json b/packages/experimental/inspector/package.json index 225e54565f..d07bc8440e 100644 --- a/packages/experimental/inspector/package.json +++ b/packages/experimental/inspector/package.json @@ -42,7 +42,9 @@ "lib/client.*.js", "lib/worker.js", "lib/devtools/**", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/ptc-runtime-python/package.json b/packages/experimental/ptc-runtime-python/package.json index 026dce8443..05d6695922 100644 --- a/packages/experimental/ptc-runtime-python/package.json +++ b/packages/experimental/ptc-runtime-python/package.json @@ -20,7 +20,9 @@ "files": [ "lib/index.js", "py/**/*.py", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/ralph-bundle/package.json b/packages/experimental/ralph-bundle/package.json index f36ebb0eec..8a9ca8c122 100644 --- a/packages/experimental/ralph-bundle/package.json +++ b/packages/experimental/ralph-bundle/package.json @@ -29,7 +29,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/experimental/session-inspector/package.json b/packages/experimental/session-inspector/package.json index 9a9b2aa39e..d72e339160 100644 --- a/packages/experimental/session-inspector/package.json +++ b/packages/experimental/session-inspector/package.json @@ -42,7 +42,9 @@ "locale/*.json", "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "scripts": { "bundle": "tsdown", diff --git a/packages/experimental/session-search/package.json b/packages/experimental/session-search/package.json index e563a02406..27b4d8a481 100644 --- a/packages/experimental/session-search/package.json +++ b/packages/experimental/session-search/package.json @@ -29,7 +29,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/experimental/session-title-all-prompts-llm/package.json b/packages/experimental/session-title-all-prompts-llm/package.json index 0768ee82b0..3bb6b1a8a1 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"], + "files": ["lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.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 5232bea10c..475f158d5e 100644 --- a/packages/experimental/session-titles-bundle/package.json +++ b/packages/experimental/session-titles-bundle/package.json @@ -29,7 +29,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/experimental/skill-badge/package.json b/packages/experimental/skill-badge/package.json index fdc2588323..8fabfbad9f 100644 --- a/packages/experimental/skill-badge/package.json +++ b/packages/experimental/skill-badge/package.json @@ -23,7 +23,9 @@ "files": [ "lib/index.js", "assets", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/speech-to-text-sensevoice/package.json b/packages/experimental/speech-to-text-sensevoice/package.json index f5889577ec..104c4b0536 100644 --- a/packages/experimental/speech-to-text-sensevoice/package.json +++ b/packages/experimental/speech-to-text-sensevoice/package.json @@ -29,7 +29,9 @@ "lib/index.js", "lib/worker.js", "runtime/assets.json", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/speech-to-text/package.json b/packages/experimental/speech-to-text/package.json index aae9285419..a409000607 100644 --- a/packages/experimental/speech-to-text/package.json +++ b/packages/experimental/speech-to-text/package.json @@ -32,7 +32,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/terminal-bundle/package.json b/packages/experimental/terminal-bundle/package.json index 18d5e3822b..fe5c7f385b 100644 --- a/packages/experimental/terminal-bundle/package.json +++ b/packages/experimental/terminal-bundle/package.json @@ -29,7 +29,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/experimental/tool-agent-team/package.json b/packages/experimental/tool-agent-team/package.json index 95222ce232..c87306ccfd 100644 --- a/packages/experimental/tool-agent-team/package.json +++ b/packages/experimental/tool-agent-team/package.json @@ -25,7 +25,9 @@ "files": [ "locale/*.json", "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/tool-ralph/package.json b/packages/experimental/tool-ralph/package.json index 3458cc12db..1a00b6fdfa 100644 --- a/packages/experimental/tool-ralph/package.json +++ b/packages/experimental/tool-ralph/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/tool-session-query/package.json b/packages/experimental/tool-session-query/package.json index c2708f81bc..6529b88486 100644 --- a/packages/experimental/tool-session-query/package.json +++ b/packages/experimental/tool-session-query/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/tool-terminal/package.json b/packages/experimental/tool-terminal/package.json index c3140c8ea5..77eeba7bde 100644 --- a/packages/experimental/tool-terminal/package.json +++ b/packages/experimental/tool-terminal/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/tool-worktree/package.json b/packages/experimental/tool-worktree/package.json index 80c110c98d..c190a33d11 100644 --- a/packages/experimental/tool-worktree/package.json +++ b/packages/experimental/tool-worktree/package.json @@ -23,7 +23,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "repository": { diff --git a/packages/experimental/translator/package.json b/packages/experimental/translator/package.json index 0111d23db6..0b8532d919 100644 --- a/packages/experimental/translator/package.json +++ b/packages/experimental/translator/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/voice-input-bundle/package.json b/packages/experimental/voice-input-bundle/package.json index 846db038ad..42c4b82110 100644 --- a/packages/experimental/voice-input-bundle/package.json +++ b/packages/experimental/voice-input-bundle/package.json @@ -29,7 +29,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/webhook-github/package.json b/packages/experimental/webhook-github/package.json index f1f5c2c14a..6876690a14 100644 --- a/packages/experimental/webhook-github/package.json +++ b/packages/experimental/webhook-github/package.json @@ -31,7 +31,9 @@ "examples/github-review/cordis.yml", "examples/github-review/github-ready-review-rule.mjs", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/webhook/package.json b/packages/experimental/webhook/package.json index 3674193d07..6ae1c738a3 100644 --- a/packages/experimental/webhook/package.json +++ b/packages/experimental/webhook/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/experimental/webworker-packer/package.json b/packages/experimental/webworker-packer/package.json index 27220fa0b3..d559b90127 100644 --- a/packages/experimental/webworker-packer/package.json +++ b/packages/experimental/webworker-packer/package.json @@ -29,7 +29,9 @@ "lib/bin.js", "bin.js", "lib/repository-*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/experimental/webworker-packer/tests/built-lib.e2e.ts b/packages/experimental/webworker-packer/tests/built-lib.e2e.ts index e945c60c8c..cd438f3f63 100644 --- a/packages/experimental/webworker-packer/tests/built-lib.e2e.ts +++ b/packages/experimental/webworker-packer/tests/built-lib.e2e.ts @@ -1,4 +1,4 @@ -/** Installed packer/runtime interoperability without either package's source tree. */ +/** Installed packer/runtime interoperability from published tarballs, without a workspace checkout. */ import { existsSync } from 'node:fs' import { mkdir, mkdtemp, readFile, readdir, realpath, rm, symlink, unlink, writeFile } from 'node:fs/promises' import { tmpdir } from 'node:os' @@ -54,7 +54,8 @@ it('loads both tarballs through plain Node and mounts their base image and overl const archives = (await readdir(packRoot)).filter(file => file.endsWith('.tgz')) expect(archives).toHaveLength(1) await run('tar', ['-xzf', join(packRoot, archives[0]!), '-C', directory, '--strip-components=1'], root) - expect(existsSync(join(directory, 'src'))).toBe(false) + // The published payload carries the source tree; the consumer below resolves and runs `lib` alone. + expect(existsSync(join(directory, 'src'))).toBe(true) const manifest = JSON.parse(await readFile(join(directory, 'package.json'), 'utf8')) as { dependencies?: Record peerDependencies?: Record diff --git a/packages/experimental/webworker-runtime/package.json b/packages/experimental/webworker-runtime/package.json index 2fd84363f7..8e0dd86948 100644 --- a/packages/experimental/webworker-runtime/package.json +++ b/packages/experimental/webworker-runtime/package.json @@ -70,6 +70,8 @@ "lib/index.js", "lib/worker.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/experimental/worktree/package.json b/packages/experimental/worktree/package.json index 493ddce15b..04d9bef0a9 100644 --- a/packages/experimental/worktree/package.json +++ b/packages/experimental/worktree/package.json @@ -18,7 +18,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "repository": { diff --git a/packages/extensions/cordis-client-runner/package.json b/packages/extensions/cordis-client-runner/package.json index 57f0f6e8b0..4a5969e872 100644 --- a/packages/extensions/cordis-client-runner/package.json +++ b/packages/extensions/cordis-client-runner/package.json @@ -58,6 +58,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/extensions/cordis-host-runner/package.json b/packages/extensions/cordis-host-runner/package.json index 88e037d1f7..6d7230de92 100644 --- a/packages/extensions/cordis-host-runner/package.json +++ b/packages/extensions/cordis-host-runner/package.json @@ -37,10 +37,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/extensions/tool-cordis/package.json b/packages/extensions/tool-cordis/package.json index a9be3331b5..eeb414d4da 100644 --- a/packages/extensions/tool-cordis/package.json +++ b/packages/extensions/tool-cordis/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/extensions/ui-cordis/package.json b/packages/extensions/ui-cordis/package.json index 419b88a221..c54a7609a3 100644 --- a/packages/extensions/ui-cordis/package.json +++ b/packages/extensions/ui-cordis/package.json @@ -68,6 +68,8 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/feedback/command-feedback/package.json b/packages/feedback/command-feedback/package.json index 6886dd91c1..1fff4ede00 100644 --- a/packages/feedback/command-feedback/package.json +++ b/packages/feedback/command-feedback/package.json @@ -37,10 +37,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/feedback/message-feedback/package.json b/packages/feedback/message-feedback/package.json index 2fbbf44e5f..7e7eb125c1 100644 --- a/packages/feedback/message-feedback/package.json +++ b/packages/feedback/message-feedback/package.json @@ -37,10 +37,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/fs/fs-local/package.json b/packages/fs/fs-local/package.json index b61ad778c2..c35b192556 100644 --- a/packages/fs/fs-local/package.json +++ b/packages/fs/fs-local/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/fs/fs-observation-policy/package.json b/packages/fs/fs-observation-policy/package.json index 45b7115610..4fafe004a6 100644 --- a/packages/fs/fs-observation-policy/package.json +++ b/packages/fs/fs-observation-policy/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/fs/fs-sandbox/package.json b/packages/fs/fs-sandbox/package.json index 8147cfab14..0489bd3683 100644 --- a/packages/fs/fs-sandbox/package.json +++ b/packages/fs/fs-sandbox/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/fs/fs/package.json b/packages/fs/fs/package.json index 7c64b4d90d..ed24412780 100644 --- a/packages/fs/fs/package.json +++ b/packages/fs/fs/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/fs/tool-fs-search/package.json b/packages/fs/tool-fs-search/package.json index 406fa179dd..5d071328cb 100644 --- a/packages/fs/tool-fs-search/package.json +++ b/packages/fs/tool-fs-search/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/fs/tool-fs/package.json b/packages/fs/tool-fs/package.json index 87afa35ff6..d23fc7f325 100644 --- a/packages/fs/tool-fs/package.json +++ b/packages/fs/tool-fs/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/fs/tool-str-replace-editor/package.json b/packages/fs/tool-str-replace-editor/package.json index 7f5f2ac3cf..935db843f3 100644 --- a/packages/fs/tool-str-replace-editor/package.json +++ b/packages/fs/tool-str-replace-editor/package.json @@ -22,7 +22,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/goal/command-goal/package.json b/packages/goal/command-goal/package.json index 4692291dba..8768f3faea 100644 --- a/packages/goal/command-goal/package.json +++ b/packages/goal/command-goal/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/goal/goal-round-driver/package.json b/packages/goal/goal-round-driver/package.json index 268b6526ae..0c31c44ff5 100644 --- a/packages/goal/goal-round-driver/package.json +++ b/packages/goal/goal-round-driver/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/goal/goal/package.json b/packages/goal/goal/package.json index c2b217de5c..6aaf86841b 100644 --- a/packages/goal/goal/package.json +++ b/packages/goal/goal/package.json @@ -41,10 +41,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/goal/tool-goal/package.json b/packages/goal/tool-goal/package.json index 9d38fbf653..5d435f756d 100644 --- a/packages/goal/tool-goal/package.json +++ b/packages/goal/tool-goal/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/guard/repeat-tool-reminder/package.json b/packages/guard/repeat-tool-reminder/package.json index 7d2fc8082b..768dc9fce4 100644 --- a/packages/guard/repeat-tool-reminder/package.json +++ b/packages/guard/repeat-tool-reminder/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/guard/timeout-policy/package.json b/packages/guard/timeout-policy/package.json index c716bdf1e7..0a73a9f35c 100644 --- a/packages/guard/timeout-policy/package.json +++ b/packages/guard/timeout-policy/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/host/directory-picker-auto/package.json b/packages/host/directory-picker-auto/package.json index 06ed8a4def..5cf701d404 100644 --- a/packages/host/directory-picker-auto/package.json +++ b/packages/host/directory-picker-auto/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/host/directory-picker-browse/package.json b/packages/host/directory-picker-browse/package.json index bda4a30ea5..dd7ba06db4 100644 --- a/packages/host/directory-picker-browse/package.json +++ b/packages/host/directory-picker-browse/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/host/directory-picker-native/package.json b/packages/host/directory-picker-native/package.json index a129f21a2e..0eac59940f 100644 --- a/packages/host/directory-picker-native/package.json +++ b/packages/host/directory-picker-native/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/worker.cjs", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/host/directory-picker/package.json b/packages/host/directory-picker/package.json index ddb6145f1f..25336edb88 100644 --- a/packages/host/directory-picker/package.json +++ b/packages/host/directory-picker/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/host/frontend-static/package.json b/packages/host/frontend-static/package.json index d6faa0b18d..340f90aafc 100644 --- a/packages/host/frontend-static/package.json +++ b/packages/host/frontend-static/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/host/open-in-app/package.json b/packages/host/open-in-app/package.json index 25149ca12e..4f5ac03af2 100644 --- a/packages/host/open-in-app/package.json +++ b/packages/host/open-in-app/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "scripts": { "bundle": "tsdown", diff --git a/packages/host/plugin-inventory/package.json b/packages/host/plugin-inventory/package.json index 7a09c38637..6866a73d15 100644 --- a/packages/host/plugin-inventory/package.json +++ b/packages/host/plugin-inventory/package.json @@ -37,10 +37,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/host/product-telemetry-otel/package.json b/packages/host/product-telemetry-otel/package.json index b027a678c9..c4df33880d 100644 --- a/packages/host/product-telemetry-otel/package.json +++ b/packages/host/product-telemetry-otel/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/host/webserver/package.json b/packages/host/webserver/package.json index 407d7844e4..937e784b2f 100644 --- a/packages/host/webserver/package.json +++ b/packages/host/webserver/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/identity/anonymous-user-id/package.json b/packages/identity/anonymous-user-id/package.json index 315f77de69..343a2e0129 100644 --- a/packages/identity/anonymous-user-id/package.json +++ b/packages/identity/anonymous-user-id/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/interaction/commands/package.json b/packages/interaction/commands/package.json index cabd389d23..1438b1ba34 100644 --- a/packages/interaction/commands/package.json +++ b/packages/interaction/commands/package.json @@ -41,10 +41,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/interaction/permission-presets/package.json b/packages/interaction/permission-presets/package.json index b387c7f877..02574196ce 100644 --- a/packages/interaction/permission-presets/package.json +++ b/packages/interaction/permission-presets/package.json @@ -41,10 +41,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/interaction/tool-ask-user/package.json b/packages/interaction/tool-ask-user/package.json index 92b36a324f..be03b9753b 100644 --- a/packages/interaction/tool-ask-user/package.json +++ b/packages/interaction/tool-ask-user/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/interaction/user-approval/package.json b/packages/interaction/user-approval/package.json index 3eec2d2a52..892822c325 100644 --- a/packages/interaction/user-approval/package.json +++ b/packages/interaction/user-approval/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/interaction/user-questions/package.json b/packages/interaction/user-questions/package.json index 6f245a1c18..32a5e187f5 100644 --- a/packages/interaction/user-questions/package.json +++ b/packages/interaction/user-questions/package.json @@ -37,10 +37,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/jobs/jobs-local/package.json b/packages/jobs/jobs-local/package.json index 17c6bade1a..2ec47820ee 100644 --- a/packages/jobs/jobs-local/package.json +++ b/packages/jobs/jobs-local/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/jobs/jobs/package.json b/packages/jobs/jobs/package.json index 40e47524e8..583262031c 100644 --- a/packages/jobs/jobs/package.json +++ b/packages/jobs/jobs/package.json @@ -32,7 +32,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/jobs/tool-jobs/package.json b/packages/jobs/tool-jobs/package.json index 7f696f2d42..ddb327ed01 100644 --- a/packages/jobs/tool-jobs/package.json +++ b/packages/jobs/tool-jobs/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/llm/deepseek-llm-api-extensions/package.json b/packages/llm/deepseek-llm-api-extensions/package.json index a90d7f749b..b0cfbfe34b 100644 --- a/packages/llm/deepseek-llm-api-extensions/package.json +++ b/packages/llm/deepseek-llm-api-extensions/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/llm/llm-deepseek-account/package.json b/packages/llm/llm-deepseek-account/package.json index 39938a7ebb..eb845ebf0f 100644 --- a/packages/llm/llm-deepseek-account/package.json +++ b/packages/llm/llm-deepseek-account/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/llm/llm-deepseek-api-key/package.json b/packages/llm/llm-deepseek-api-key/package.json index cf53d0831a..4f38bd175f 100644 --- a/packages/llm/llm-deepseek-api-key/package.json +++ b/packages/llm/llm-deepseek-api-key/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/llm/llm-deepseek/package.json b/packages/llm/llm-deepseek/package.json index 204e755f09..a063196db7 100644 --- a/packages/llm/llm-deepseek/package.json +++ b/packages/llm/llm-deepseek/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/llm/llm-pi-ai/package.json b/packages/llm/llm-pi-ai/package.json index ba4e7dd712..f7bd71cf67 100644 --- a/packages/llm/llm-pi-ai/package.json +++ b/packages/llm/llm-pi-ai/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/llm/llm-retry/package.json b/packages/llm/llm-retry/package.json index faf14468bb..ace74cef77 100644 --- a/packages/llm/llm-retry/package.json +++ b/packages/llm/llm-retry/package.json @@ -27,7 +27,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/llm/llm/package.json b/packages/llm/llm/package.json index e510ddbd25..fd795473b1 100644 --- a/packages/llm/llm/package.json +++ b/packages/llm/llm/package.json @@ -49,10 +49,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/llm/plugin-package-inventory-deepseek/package.json b/packages/llm/plugin-package-inventory-deepseek/package.json index 3ab8965d38..7b44e081a0 100644 --- a/packages/llm/plugin-package-inventory-deepseek/package.json +++ b/packages/llm/plugin-package-inventory-deepseek/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/llm/token-meter/package.json b/packages/llm/token-meter/package.json index b7323e5680..b6deb61092 100644 --- a/packages/llm/token-meter/package.json +++ b/packages/llm/token-meter/package.json @@ -32,7 +32,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/lsp/lsp-stdio/package.json b/packages/lsp/lsp-stdio/package.json index c63e5b1765..c7951b7fe7 100644 --- a/packages/lsp/lsp-stdio/package.json +++ b/packages/lsp/lsp-stdio/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/lsp/lsp/package.json b/packages/lsp/lsp/package.json index 274cbd11ec..0e0fc2cd15 100644 --- a/packages/lsp/lsp/package.json +++ b/packages/lsp/lsp/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/lsp/tool-lsp/package.json b/packages/lsp/tool-lsp/package.json index 0f21928f28..fa1ae3eb6e 100644 --- a/packages/lsp/tool-lsp/package.json +++ b/packages/lsp/tool-lsp/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/mcp/mcp-client/package.json b/packages/mcp/mcp-client/package.json index dedce66e52..bede42eef5 100644 --- a/packages/mcp/mcp-client/package.json +++ b/packages/mcp/mcp-client/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/mcp/mcp-resources/package.json b/packages/mcp/mcp-resources/package.json index 2a6b1d1817..007f95b2ed 100644 --- a/packages/mcp/mcp-resources/package.json +++ b/packages/mcp/mcp-resources/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/plan/plan-mode/package.json b/packages/plan/plan-mode/package.json index d6b6bc8f4b..39506db035 100644 --- a/packages/plan/plan-mode/package.json +++ b/packages/plan/plan-mode/package.json @@ -32,7 +32,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/preset/agent-preset-registry/package.json b/packages/preset/agent-preset-registry/package.json index 783644adf6..6d4b08ce46 100644 --- a/packages/preset/agent-preset-registry/package.json +++ b/packages/preset/agent-preset-registry/package.json @@ -41,10 +41,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/preset/agent-preset/package.json b/packages/preset/agent-preset/package.json index a54ace97aa..c81c5f53bf 100644 --- a/packages/preset/agent-preset/package.json +++ b/packages/preset/agent-preset/package.json @@ -24,7 +24,9 @@ "files": [ "lib/index.js", "skills", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/preset/persona/package.json b/packages/preset/persona/package.json index 2ac606cbf2..e075a9451c 100644 --- a/packages/preset/persona/package.json +++ b/packages/preset/persona/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/ptc-runtime/ptc-runtime-node/package.json b/packages/ptc-runtime/ptc-runtime-node/package.json index 931eb8cef3..985970c1f0 100644 --- a/packages/ptc-runtime/ptc-runtime-node/package.json +++ b/packages/ptc-runtime/ptc-runtime-node/package.json @@ -27,7 +27,9 @@ "files": [ "lib/index.js", "lib/process.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/ptc-runtime/ptc-runtime/package.json b/packages/ptc-runtime/ptc-runtime/package.json index 7550079c00..1c9b574c5f 100644 --- a/packages/ptc-runtime/ptc-runtime/package.json +++ b/packages/ptc-runtime/ptc-runtime/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/sandbox/sandbox-local/package.json b/packages/sandbox/sandbox-local/package.json index dafad4ebe0..aa62a7f346 100644 --- a/packages/sandbox/sandbox-local/package.json +++ b/packages/sandbox/sandbox-local/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/sandbox/sandbox-policy/package.json b/packages/sandbox/sandbox-policy/package.json index a6432636df..01fd4fadf2 100644 --- a/packages/sandbox/sandbox-policy/package.json +++ b/packages/sandbox/sandbox-policy/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/sandbox/sandbox-windows-acl/package.json b/packages/sandbox/sandbox-windows-acl/package.json index 873054d5b0..50bbf248f2 100644 --- a/packages/sandbox/sandbox-windows-acl/package.json +++ b/packages/sandbox/sandbox-windows-acl/package.json @@ -30,7 +30,9 @@ "lib/runner.js", "lib/types-*.js", "assets", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/sandbox/sandbox/package.json b/packages/sandbox/sandbox/package.json index eb456ae513..7832484f82 100644 --- a/packages/sandbox/sandbox/package.json +++ b/packages/sandbox/sandbox/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/schedule/schedule/package.json b/packages/schedule/schedule/package.json index 7ea453734a..06c581865d 100644 --- a/packages/schedule/schedule/package.json +++ b/packages/schedule/schedule/package.json @@ -39,10 +39,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/schedule/tool-schedule/package.json b/packages/schedule/tool-schedule/package.json index 4e932cfd7a..f1aeace930 100644 --- a/packages/schedule/tool-schedule/package.json +++ b/packages/schedule/tool-schedule/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/sdk/client/package.json b/packages/sdk/client/package.json index 0ebd31e34c..36b69dc026 100644 --- a/packages/sdk/client/package.json +++ b/packages/sdk/client/package.json @@ -22,7 +22,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/sdk/protocol/package.json b/packages/sdk/protocol/package.json index 4c147d6e6a..015ae6f137 100644 --- a/packages/sdk/protocol/package.json +++ b/packages/sdk/protocol/package.json @@ -22,7 +22,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/sdk/server/package.json b/packages/sdk/server/package.json index 7d2ed5c36c..d22b5d50ce 100644 --- a/packages/sdk/server/package.json +++ b/packages/sdk/server/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/session-query/session-log-export/package.json b/packages/session-query/session-log-export/package.json index a57a18900e..42d5a57a5b 100644 --- a/packages/session-query/session-log-export/package.json +++ b/packages/session-query/session-log-export/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/client.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "scripts": { "bundle": "tsdown", diff --git a/packages/session-query/session-query-sqlite/package.json b/packages/session-query/session-query-sqlite/package.json index 158957833b..b870decc61 100644 --- a/packages/session-query/session-query-sqlite/package.json +++ b/packages/session-query/session-query-sqlite/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session-query/session-query/package.json b/packages/session-query/session-query/package.json index 67fdf0490e..451e2629e9 100644 --- a/packages/session-query/session-query/package.json +++ b/packages/session-query/session-query/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session/session-checkpoint-policy/package.json b/packages/session/session-checkpoint-policy/package.json index 9b6d62374d..5ffdd494eb 100644 --- a/packages/session/session-checkpoint-policy/package.json +++ b/packages/session/session-checkpoint-policy/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session/session-format-catalog/package.json b/packages/session/session-format-catalog/package.json index 36e8ab8df0..3784a39249 100644 --- a/packages/session/session-format-catalog/package.json +++ b/packages/session/session-format-catalog/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/session/session-format-v0-to-v1/package.json b/packages/session/session-format-v0-to-v1/package.json index e04844f76b..725b79b2eb 100644 --- a/packages/session/session-format-v0-to-v1/package.json +++ b/packages/session/session-format-v0-to-v1/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/session/session-format-v1-to-v2/package.json b/packages/session/session-format-v1-to-v2/package.json index b65773bf7f..479a05a5d0 100644 --- a/packages/session/session-format-v1-to-v2/package.json +++ b/packages/session/session-format-v1-to-v2/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/session/session-format-v2-to-v3/package.json b/packages/session/session-format-v2-to-v3/package.json index c9fd5bb969..54ca6aae2d 100644 --- a/packages/session/session-format-v2-to-v3/package.json +++ b/packages/session/session-format-v2-to-v3/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/session/session-format-v3-to-v4/package.json b/packages/session/session-format-v3-to-v4/package.json index 41704c96df..761da726bf 100644 --- a/packages/session/session-format-v3-to-v4/package.json +++ b/packages/session/session-format-v3-to-v4/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/session/session-format/package.json b/packages/session/session-format/package.json index bfffee8f17..fb177e97e6 100644 --- a/packages/session/session-format/package.json +++ b/packages/session/session-format/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/session/session-log-deepseek/package.json b/packages/session/session-log-deepseek/package.json index 55d7e89235..6c74e725dd 100644 --- a/packages/session/session-log-deepseek/package.json +++ b/packages/session/session-log-deepseek/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/session/session-persistence-jsonl/package.json b/packages/session/session-persistence-jsonl/package.json index 8104843888..77d58cfa01 100644 --- a/packages/session/session-persistence-jsonl/package.json +++ b/packages/session/session-persistence-jsonl/package.json @@ -24,7 +24,9 @@ "files": [ "lib/index.js", "lib/worker.cjs", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session/session-persistence/package.json b/packages/session/session-persistence/package.json index 6b9647575c..2900a4a2a3 100644 --- a/packages/session/session-persistence/package.json +++ b/packages/session/session-persistence/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session/session-projection-cache/package.json b/packages/session/session-projection-cache/package.json index 712a587078..cf24b30d98 100644 --- a/packages/session/session-projection-cache/package.json +++ b/packages/session/session-projection-cache/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/session/session-projection/package.json b/packages/session/session-projection/package.json index 92bc24db4d..d63b56a026 100644 --- a/packages/session/session-projection/package.json +++ b/packages/session/session-projection/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/session/session-stats/package.json b/packages/session/session-stats/package.json index a6b9228458..878d543def 100644 --- a/packages/session/session-stats/package.json +++ b/packages/session/session-stats/package.json @@ -32,7 +32,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session/session-telemetry-otel/package.json b/packages/session/session-telemetry-otel/package.json index 879c434958..175e801b56 100644 --- a/packages/session/session-telemetry-otel/package.json +++ b/packages/session/session-telemetry-otel/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/session/session-telemetry/package.json b/packages/session/session-telemetry/package.json index 079101c947..573e8f171b 100644 --- a/packages/session/session-telemetry/package.json +++ b/packages/session/session-telemetry/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session/session-title-first-prompt-llm/package.json b/packages/session/session-title-first-prompt-llm/package.json index 6dd329f3cb..3395384ef6 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"], + "files": ["lib/index.js", "lib/types/**/*.d.ts", "lib/types/**/*.d.ts.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 e9c50790c4..95da594832 100644 --- a/packages/session/session-title-llm/package.json +++ b/packages/session/session-title-llm/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session/session-title/package.json b/packages/session/session-title/package.json index 245844c59e..b545573984 100644 --- a/packages/session/session-title/package.json +++ b/packages/session/session-title/package.json @@ -32,7 +32,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session/session-turn-outline/package.json b/packages/session/session-turn-outline/package.json index 6afd2081ae..ac528a90a1 100644 --- a/packages/session/session-turn-outline/package.json +++ b/packages/session/session-turn-outline/package.json @@ -32,7 +32,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session/tool-working-directory/package.json b/packages/session/tool-working-directory/package.json index dc30eec34c..db4594b767 100644 --- a/packages/session/tool-working-directory/package.json +++ b/packages/session/tool-working-directory/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/session/working-directory/package.json b/packages/session/working-directory/package.json index 3a0f00f37d..61a4159008 100644 --- a/packages/session/working-directory/package.json +++ b/packages/session/working-directory/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/settings/settings/package.json b/packages/settings/settings/package.json index 5b9e7f78de..a02ee57b62 100644 --- a/packages/settings/settings/package.json +++ b/packages/settings/settings/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/shell/bash-local/package.json b/packages/shell/bash-local/package.json index 18682d30ef..a287353745 100644 --- a/packages/shell/bash-local/package.json +++ b/packages/shell/bash-local/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/shell/bash-sandbox/package.json b/packages/shell/bash-sandbox/package.json index 85f41305e3..c49873ba25 100644 --- a/packages/shell/bash-sandbox/package.json +++ b/packages/shell/bash-sandbox/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/shell/pwsh-local/package.json b/packages/shell/pwsh-local/package.json index 57c81122f6..1c99653f6c 100644 --- a/packages/shell/pwsh-local/package.json +++ b/packages/shell/pwsh-local/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/shell/pwsh-sandbox/package.json b/packages/shell/pwsh-sandbox/package.json index 82bdf0c17d..7e90ad4256 100644 --- a/packages/shell/pwsh-sandbox/package.json +++ b/packages/shell/pwsh-sandbox/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/shell/shell-env/package.json b/packages/shell/shell-env/package.json index 2cfa07bf5c..24275782ac 100644 --- a/packages/shell/shell-env/package.json +++ b/packages/shell/shell-env/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/shell/shell/package.json b/packages/shell/shell/package.json index 176aaae77e..64869626ec 100644 --- a/packages/shell/shell/package.json +++ b/packages/shell/shell/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/shell/tool-bash-persistent/package.json b/packages/shell/tool-bash-persistent/package.json index 9fc096e693..eadf65eead 100644 --- a/packages/shell/tool-bash-persistent/package.json +++ b/packages/shell/tool-bash-persistent/package.json @@ -22,7 +22,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/shell/tool-bash/package.json b/packages/shell/tool-bash/package.json index 5f51b174c3..1e7adb6cb2 100644 --- a/packages/shell/tool-bash/package.json +++ b/packages/shell/tool-bash/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/shell/tool-pwsh-persistent/package.json b/packages/shell/tool-pwsh-persistent/package.json index 0564de02c6..479bb85878 100644 --- a/packages/shell/tool-pwsh-persistent/package.json +++ b/packages/shell/tool-pwsh-persistent/package.json @@ -22,7 +22,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/shell/tool-pwsh/package.json b/packages/shell/tool-pwsh/package.json index 3128beaada..265abe2943 100644 --- a/packages/shell/tool-pwsh/package.json +++ b/packages/shell/tool-pwsh/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/skill/skill-filesystem/package.json b/packages/skill/skill-filesystem/package.json index 310428186a..893ca65fab 100644 --- a/packages/skill/skill-filesystem/package.json +++ b/packages/skill/skill-filesystem/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/skill/skill-office/package.json b/packages/skill/skill-office/package.json index 52e30831d8..2efa309580 100644 --- a/packages/skill/skill-office/package.json +++ b/packages/skill/skill-office/package.json @@ -23,7 +23,9 @@ "files": [ "lib/index.js", "assets", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/skill/skill/package.json b/packages/skill/skill/package.json index f8cd3704e4..59c23bb9bf 100644 --- a/packages/skill/skill/package.json +++ b/packages/skill/skill/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/skill/tool-skill/package.json b/packages/skill/tool-skill/package.json index 202e6eb998..1e12f6503f 100644 --- a/packages/skill/tool-skill/package.json +++ b/packages/skill/tool-skill/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/skill/tool-workspace-dependencies/package.json b/packages/skill/tool-workspace-dependencies/package.json index c304f1e001..db102420a0 100644 --- a/packages/skill/tool-workspace-dependencies/package.json +++ b/packages/skill/tool-workspace-dependencies/package.json @@ -22,7 +22,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/spill/spill-local/package.json b/packages/spill/spill-local/package.json index fc1537ba5c..0f05232f58 100644 --- a/packages/spill/spill-local/package.json +++ b/packages/spill/spill-local/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/spill/spill-policy/package.json b/packages/spill/spill-policy/package.json index bb903da012..37d6a0a693 100644 --- a/packages/spill/spill-policy/package.json +++ b/packages/spill/spill-policy/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/spill/spill/package.json b/packages/spill/spill/package.json index c8923dae7d..c1345ab1b1 100644 --- a/packages/spill/spill/package.json +++ b/packages/spill/spill/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/ssh/fs-ssh/package.json b/packages/ssh/fs-ssh/package.json index 85ced49f07..9688e2e05d 100644 --- a/packages/ssh/fs-ssh/package.json +++ b/packages/ssh/fs-ssh/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/ssh/sandbox-ssh/package.json b/packages/ssh/sandbox-ssh/package.json index ffd4826b2b..59491f170e 100644 --- a/packages/ssh/sandbox-ssh/package.json +++ b/packages/ssh/sandbox-ssh/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/ssh/ssh/package.json b/packages/ssh/ssh/package.json index a171ae8d8f..9dc1213d83 100644 --- a/packages/ssh/ssh/package.json +++ b/packages/ssh/ssh/package.json @@ -41,7 +41,9 @@ "lib/protocol-*.js", "lib/schemas-*.js", "lib/stream-security-*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/ssh/subprocess-ssh/package.json b/packages/ssh/subprocess-ssh/package.json index c30f8755fb..849e0fc9bc 100644 --- a/packages/ssh/subprocess-ssh/package.json +++ b/packages/ssh/subprocess-ssh/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/storage/storage-domain/package.json b/packages/storage/storage-domain/package.json index 1d585399c1..7b6af4bb26 100644 --- a/packages/storage/storage-domain/package.json +++ b/packages/storage/storage-domain/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/storage/storage-json/package.json b/packages/storage/storage-json/package.json index a1cff23fbe..e0f05739e8 100644 --- a/packages/storage/storage-json/package.json +++ b/packages/storage/storage-json/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/storage/storage-sqlite/package.json b/packages/storage/storage-sqlite/package.json index 198b865be1..4253798329 100644 --- a/packages/storage/storage-sqlite/package.json +++ b/packages/storage/storage-sqlite/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/storage/storage/package.json b/packages/storage/storage/package.json index e7f05faf0d..be52b80df7 100644 --- a/packages/storage/storage/package.json +++ b/packages/storage/storage/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/subagent/subagent-acp/package.json b/packages/subagent/subagent-acp/package.json index e6814533a2..cd86d7395c 100644 --- a/packages/subagent/subagent-acp/package.json +++ b/packages/subagent/subagent-acp/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/subagent/subagent-claude-code/package.json b/packages/subagent/subagent-claude-code/package.json index 4103fd3054..152d97544d 100644 --- a/packages/subagent/subagent-claude-code/package.json +++ b/packages/subagent/subagent-claude-code/package.json @@ -28,7 +28,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/subagent/subagent-codex/package.json b/packages/subagent/subagent-codex/package.json index 1d3daa2d58..37bfeed7c1 100644 --- a/packages/subagent/subagent-codex/package.json +++ b/packages/subagent/subagent-codex/package.json @@ -28,7 +28,9 @@ "locale/*.json", "lib/index.js", "cordis.patch.yml", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dsh": { diff --git a/packages/subagent/subagent-dsh-sdk/package.json b/packages/subagent/subagent-dsh-sdk/package.json index 432bc66908..1eab960b7b 100644 --- a/packages/subagent/subagent-dsh-sdk/package.json +++ b/packages/subagent/subagent-dsh-sdk/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/subagent/subagent-fork-in-process/package.json b/packages/subagent/subagent-fork-in-process/package.json index 9213bcaf4e..280fd497b4 100644 --- a/packages/subagent/subagent-fork-in-process/package.json +++ b/packages/subagent/subagent-fork-in-process/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/subagent/subagent-spawn-in-process/package.json b/packages/subagent/subagent-spawn-in-process/package.json index d05dfe5fea..c29cd5d271 100644 --- a/packages/subagent/subagent-spawn-in-process/package.json +++ b/packages/subagent/subagent-spawn-in-process/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/subagent/subagent/package.json b/packages/subagent/subagent/package.json index f96d04b84b..70737dbc74 100644 --- a/packages/subagent/subagent/package.json +++ b/packages/subagent/subagent/package.json @@ -41,10 +41,13 @@ "lib/index.js", "lib/types/**/*.js", "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", "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", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/subagent/tool-subagent-control/package.json b/packages/subagent/tool-subagent-control/package.json index 736d54e0a9..6714e66c9e 100644 --- a/packages/subagent/tool-subagent-control/package.json +++ b/packages/subagent/tool-subagent-control/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/subagent/tool-subagent/package.json b/packages/subagent/tool-subagent/package.json index f6c8100036..20bdf140e1 100644 --- a/packages/subagent/tool-subagent/package.json +++ b/packages/subagent/tool-subagent/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/model-selection-settings.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/subprocess/subprocess-local/package.json b/packages/subprocess/subprocess-local/package.json index 75a4bb5c82..979336b1fc 100644 --- a/packages/subprocess/subprocess-local/package.json +++ b/packages/subprocess/subprocess-local/package.json @@ -35,7 +35,9 @@ "lib/runner-*.js", "lib/output.js", "scripts/ensure-spawn-helper.mjs", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "scripts": { "postinstall": "node scripts/ensure-spawn-helper.mjs" diff --git a/packages/subprocess/subprocess/package.json b/packages/subprocess/subprocess/package.json index 80d36d5586..da0acd0a67 100644 --- a/packages/subprocess/subprocess/package.json +++ b/packages/subprocess/subprocess/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/control.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/subprocess/win32-process/package.json b/packages/subprocess/win32-process/package.json index 2caabeb749..7346518259 100644 --- a/packages/subprocess/win32-process/package.json +++ b/packages/subprocess/win32-process/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/telemetry/otel/package.json b/packages/telemetry/otel/package.json index e5fd5a6ad6..0ba889e06c 100644 --- a/packages/telemetry/otel/package.json +++ b/packages/telemetry/otel/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/terminal/terminal-bash/package.json b/packages/terminal/terminal-bash/package.json index 8bef012d2d..587bb0e1f6 100644 --- a/packages/terminal/terminal-bash/package.json +++ b/packages/terminal/terminal-bash/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/terminal/terminal/package.json b/packages/terminal/terminal/package.json index 1540d795c1..c79bcc206b 100644 --- a/packages/terminal/terminal/package.json +++ b/packages/terminal/terminal/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/test-support/agent-loop-testkit/package.json b/packages/test-support/agent-loop-testkit/package.json index 557acfef7f..969308cb43 100644 --- a/packages/test-support/agent-loop-testkit/package.json +++ b/packages/test-support/agent-loop-testkit/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/test-support/client-runtime/package.json b/packages/test-support/client-runtime/package.json index 1b9912ddac..1fa8f15ec7 100644 --- a/packages/test-support/client-runtime/package.json +++ b/packages/test-support/client-runtime/package.json @@ -91,6 +91,8 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/test-support/llm-mock-server/package.json b/packages/test-support/llm-mock-server/package.json index 98c7c17c55..e244027fe4 100644 --- a/packages/test-support/llm-mock-server/package.json +++ b/packages/test-support/llm-mock-server/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/test-support/llm-replay/package.json b/packages/test-support/llm-replay/package.json index f7a38026f8..2ae6de0843 100644 --- a/packages/test-support/llm-replay/package.json +++ b/packages/test-support/llm-replay/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/test-support/loader-smoke/package.json b/packages/test-support/loader-smoke/package.json index 0470324adf..8d4561589d 100644 --- a/packages/test-support/loader-smoke/package.json +++ b/packages/test-support/loader-smoke/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/test-support/remote-mock/package.json b/packages/test-support/remote-mock/package.json index 38dd89e3d7..2238cf21b8 100644 --- a/packages/test-support/remote-mock/package.json +++ b/packages/test-support/remote-mock/package.json @@ -38,6 +38,8 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ] } diff --git a/packages/test-support/session-snapshot/package.json b/packages/test-support/session-snapshot/package.json index 51a0b989a2..13cd49e722 100644 --- a/packages/test-support/session-snapshot/package.json +++ b/packages/test-support/session-snapshot/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/todo/tool-todo/package.json b/packages/todo/tool-todo/package.json index a140cd0a49..13f5eb4cdf 100644 --- a/packages/todo/tool-todo/package.json +++ b/packages/todo/tool-todo/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/typert/generator/package.json b/packages/typert/generator/package.json index 95810252a7..8d26526401 100644 --- a/packages/typert/generator/package.json +++ b/packages/typert/generator/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/typert/loader/package.json b/packages/typert/loader/package.json index d66d99a679..48f2885ab7 100644 --- a/packages/typert/loader/package.json +++ b/packages/typert/loader/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/typert/protocol/package.json b/packages/typert/protocol/package.json index 7bc01940aa..44af00c2de 100644 --- a/packages/typert/protocol/package.json +++ b/packages/typert/protocol/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/typert/registry/package.json b/packages/typert/registry/package.json index 2e37402492..ebed2e7c1b 100644 --- a/packages/typert/registry/package.json +++ b/packages/typert/registry/package.json @@ -44,7 +44,9 @@ "lib/index.js", "lib/client.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "dependencies": { diff --git a/packages/util/atomic-write/package.json b/packages/util/atomic-write/package.json index 2455bc3780..149a1f288a 100644 --- a/packages/util/atomic-write/package.json +++ b/packages/util/atomic-write/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/brand/package.json b/packages/util/brand/package.json index 1e58f76b74..55896e2d6a 100644 --- a/packages/util/brand/package.json +++ b/packages/util/brand/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/chunked-list/package.json b/packages/util/chunked-list/package.json index 955057de01..b0e77b3eb5 100644 --- a/packages/util/chunked-list/package.json +++ b/packages/util/chunked-list/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/code-language/package.json b/packages/util/code-language/package.json index ddf14d11fa..a404c741a0 100644 --- a/packages/util/code-language/package.json +++ b/packages/util/code-language/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/crypto/package.json b/packages/util/crypto/package.json index 2caeb9b5fc..f1b53840fd 100644 --- a/packages/util/crypto/package.json +++ b/packages/util/crypto/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/deque/package.json b/packages/util/deque/package.json index 634a2f9025..ad1d18c407 100644 --- a/packages/util/deque/package.json +++ b/packages/util/deque/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/home-paths/package.json b/packages/util/home-paths/package.json index 93068e5a61..57f5e19354 100644 --- a/packages/util/home-paths/package.json +++ b/packages/util/home-paths/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/http-proxy/package.json b/packages/util/http-proxy/package.json index d3b2b59257..d694d3e2a9 100644 --- a/packages/util/http-proxy/package.json +++ b/packages/util/http-proxy/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/launch-environment/package.json b/packages/util/launch-environment/package.json index c7dc136326..fa2b81dc94 100644 --- a/packages/util/launch-environment/package.json +++ b/packages/util/launch-environment/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/lazy-require/package.json b/packages/util/lazy-require/package.json index 5cff0efb9e..2bdc884e7a 100644 --- a/packages/util/lazy-require/package.json +++ b/packages/util/lazy-require/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/native-command/package.json b/packages/util/native-command/package.json index 09ef7d1ae9..f40fc60f22 100644 --- a/packages/util/native-command/package.json +++ b/packages/util/native-command/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/output-retention/package.json b/packages/util/output-retention/package.json index 9f0ab57695..9697bd6c40 100644 --- a/packages/util/output-retention/package.json +++ b/packages/util/output-retention/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/package-manifest/package.json b/packages/util/package-manifest/package.json index c85511b79c..8d6f82551b 100644 --- a/packages/util/package-manifest/package.json +++ b/packages/util/package-manifest/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/time/package.json b/packages/util/time/package.json index bc27b6d943..597a7ac897 100644 --- a/packages/util/time/package.json +++ b/packages/util/time/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/timeout/package.json b/packages/util/timeout/package.json index a1f6e1c835..1ee6a942fc 100644 --- a/packages/util/timeout/package.json +++ b/packages/util/timeout/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/values/package.json b/packages/util/values/package.json index 65a13b177f..0a6f016a1c 100644 --- a/packages/util/values/package.json +++ b/packages/util/values/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/util/workspace-path/package.json b/packages/util/workspace-path/package.json index 008798f662..6179ad6c3a 100644 --- a/packages/util/workspace-path/package.json +++ b/packages/util/workspace-path/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/web/tool-web/package.json b/packages/web/tool-web/package.json index 4065557b42..8f39806314 100644 --- a/packages/web/tool-web/package.json +++ b/packages/web/tool-web/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/web/web-fetch-http/package.json b/packages/web/web-fetch-http/package.json index 066df024e9..963d32b754 100644 --- a/packages/web/web-fetch-http/package.json +++ b/packages/web/web-fetch-http/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/web/web-search-deepseek/package.json b/packages/web/web-search-deepseek/package.json index 1be9919401..cd2a8c892c 100644 --- a/packages/web/web-search-deepseek/package.json +++ b/packages/web/web-search-deepseek/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/web/web-search-exa/package.json b/packages/web/web-search-exa/package.json index 7db65adb01..2c1db818b7 100644 --- a/packages/web/web-search-exa/package.json +++ b/packages/web/web-search-exa/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/web/web-search-perplexity/package.json b/packages/web/web-search-perplexity/package.json index 8e4b78b771..28ac81ee68 100644 --- a/packages/web/web-search-perplexity/package.json +++ b/packages/web/web-search-perplexity/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/web/web/package.json b/packages/web/web/package.json index 10fbd3a665..6fb833bdd4 100644 --- a/packages/web/web/package.json +++ b/packages/web/web/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/workflow/tool-workflow/package.json b/packages/workflow/tool-workflow/package.json index 09d223f289..c712a18a52 100644 --- a/packages/workflow/tool-workflow/package.json +++ b/packages/workflow/tool-workflow/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/workflow/workflow-ptc/package.json b/packages/workflow/workflow-ptc/package.json index 6e970275c6..6b70347f39 100644 --- a/packages/workflow/workflow-ptc/package.json +++ b/packages/workflow/workflow-ptc/package.json @@ -23,7 +23,9 @@ }, "files": [ "lib/index.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/workflow/workflow/package.json b/packages/workflow/workflow/package.json index db9af7f3e0..86595ac9bd 100644 --- a/packages/workflow/workflow/package.json +++ b/packages/workflow/workflow/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/packages/workspace/workspace/package.json b/packages/workspace/workspace/package.json index e8ed63de35..af0428a440 100644 --- a/packages/workspace/workspace/package.json +++ b/packages/workspace/workspace/package.json @@ -28,7 +28,9 @@ "files": [ "lib/index.js", "lib/types/**/*.js", - "lib/types/**/*.d.ts" + "lib/types/**/*.d.ts", + "lib/types/**/*.d.ts.map", + "src" ], "license": "MIT", "peerDependencies": { diff --git a/scripts/check-workspace-constraints.spec.ts b/scripts/check-workspace-constraints.spec.ts index 6ee447873e..defce2656a 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']) + expect(expectedDshPackageFiles({ exports: { './icon': icon } })).toEqual([...expected, 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.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']) + expect(expectedDshPackageFiles({ icon, exports: { './icon': './icon.svg' } })).toEqual(['icon.svg', 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.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', + 'legacy.svg', 'fallback.svg', 'search.svg', 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.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', + ...resources, 'lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.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']) + })).toEqual(['lib/index.js', 'lib/types/**/*.d.ts', 'lib/types/**/*.d.ts.map', 'src']) }) it.each(['agent-team', 'agent-team-profile', 'auto-review', 'client-ui-agent-team', 'tool-agent-team'])( @@ -367,6 +367,8 @@ describe('package payload constraints', () => { 'lib/index.js', 'cordis.patch.yml', 'lib/types/**/*.d.ts', + 'lib/types/**/*.d.ts.map', + 'src', ]) expect(expectedDshPackageFiles({ name: '@deepseek-ai/dsh-private-profile', @@ -376,6 +378,8 @@ describe('package payload constraints', () => { 'cordis.patch.yml', 'layers/web.patch.yml', 'lib/types/**/*.d.ts', + 'lib/types/**/*.d.ts.map', + 'src', ]) }) @@ -392,7 +396,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"]')]) + .toEqual([expect.stringContaining('@deepseek-ai/dsh: package.json files must be ["lib/*.js","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 c670b46f2a..6e08c60aaa 100644 --- a/scripts/check-workspace-constraints.ts +++ b/scripts/check-workspace-constraints.ts @@ -49,10 +49,6 @@ const publicNativePackages = new Set([ '@deepseek-ai/node-addon-system-linux-arm64', '@deepseek-ai/node-addon-system-linux-x64', ]) -/** Deliberate source payloads whose exact bytes are part of the package's audit surface. */ -const publicationSourceAllowlist: Readonly> = { - '@deepseek-ai/node-addon-system': ['src/main.c', 'src/flock.c'], -} /** Public source home recorded in maintained package manifests. */ const publishedRepositoryUrl = 'git+https://github.com/deepseek-ai/deepseek-harness.git' /** Packages that participate in the experimental policy. */ @@ -63,14 +59,16 @@ const standardReleaseMemberDirectory = /^(?:packages\/(?!experimental\/)[^/]+\/[ const desktopApplicationDirectory = 'apps/desktop' const localArtifactDirs = new Set(['node_modules']) const appPackageFiles: Readonly> = { - '@deepseek-ai/dsh': ['lib/*.js', 'lib/types/*.d.ts'], + // `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'], '@deepseek-ai/dsh-desktop-host': [ 'lib/index.js', 'lib/cli.js', ], - // Sourcemaps stay out by payload policy; the worker-preview surface - // (dist/preview.html and dist/preview/) backs opt-in experimental + // 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'], + '@deepseek-ai/dsh-web-frontend': ['dist', '!dist/**/*.map', '!dist/preview.html', '!dist/preview', 'src'], } /** The subset of package.json fields this constraint check cares about. */ @@ -291,6 +289,10 @@ export function expectedDshPackageFiles(manifest: PackageManifest): readonly str // declarations. ...usesEmittedTreeDefaults(manifest) ? ['lib/types/**/*.js'] : [], 'lib/types/**/*.d.ts', + // A published declaration map plus `src` lets a consumer editor open the + // implementation behind an exported declaration, and lets a plugin author + // read it without a repository checkout. + 'lib/types/**/*.d.ts.map', ...hasExportPair(manifest, './typert', './lib/typert.host.d.ts', './lib/typert.host.js') ? ['lib/typert.host.js', 'lib/typert.host.d.ts'] : [], @@ -298,8 +300,11 @@ export function expectedDshPackageFiles(manifest: PackageManifest): readonly str ? ['lib/typert.client.js', 'lib/typert.client.d.ts'] : [], ...hasTypertRemoteNavigation(manifest) - ? ['lib/typert.remote-client.js', 'lib/typert.remote-client.d.ts'] + // The generated Remote declaration carries a `sourceMappingURL` its map + // resolves, and that map resolves the Host method through `src`. + ? ['lib/typert.remote-client.js', 'lib/typert.remote-client.d.ts', 'lib/typert.remote-client.d.ts.map'] : [], + 'src', ] } @@ -461,9 +466,8 @@ export function checkWorkspaceManifest({ dir, manifest }: WorkspaceManifest): st } if (manifest.name?.startsWith('@deepseek-ai/')) { - const allowedSources = publicationSourceAllowlist[manifest.name] ?? [] for (const file of manifest.files ?? []) { - if (isForbiddenPublicationFile(file) && !allowedSources.includes(file)) { + if (isForbiddenPublicationFile(file)) { errors.push(`${label}: package.json files must not publish ${JSON.stringify(file)}`) } } diff --git a/scripts/publication-payload.spec.ts b/scripts/publication-payload.spec.ts index 52c0e7da33..e65ff38dc9 100644 --- a/scripts/publication-payload.spec.ts +++ b/scripts/publication-payload.spec.ts @@ -15,47 +15,43 @@ 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', - ])('accepts %s', (file) => { - expect(isForbiddenPublicationFile(file)).toBe(false) - }) - - it.each([ 'src', './src', 'src/', 'src/index.ts', './src/index.ts', String.raw`src\index.ts`, - 'lib/types/index.d.ts.map', - './lib/types/index.d.ts.map', - 'lib/typert.remote-client.d.ts.map', + ])('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 source members in packed tarballs', () => { - expect(validateFixtureTarball([ - 'package/package.json', - 'package/src/index.ts', - ])).toThrow('fixture.tgz publishes source file package/src/index.ts') - }) - - it('rejects source maps in packed tarballs', () => { - expect(validateFixtureTarball([ - 'package/package.json', - 'package/lib/types/index.d.ts.map', - ])).toThrow('fixture.tgz publishes source map package/lib/types/index.d.ts.map') - expect(validateFixtureTarball([ - 'package/package.json', - 'package/lib/typert.remote-client.d.ts.map', - ])).toThrow('fixture.tgz publishes source map package/lib/typert.remote-client.d.ts.map') + it('rejects bundled JavaScript maps in packed tarballs', () => { expect(validateFixtureTarball([ 'package/package.json', 'package/lib/client.js.map', - ])).toThrow('fixture.tgz publishes source map 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', () => { diff --git a/scripts/publication-payload.ts b/scripts/publication-payload.ts index 4ff8e6f05d..eeb64f6929 100644 --- a/scripts/publication-payload.ts +++ b/scripts/publication-payload.ts @@ -23,33 +23,24 @@ function payloadPath(file: string): string { } /** - * Whether a package payload path exposes source or map intermediates. Maps - * serve editor navigation during development, where a workspace consumer - * resolves their source through the package link; a published map resolves - * nothing, so no payload publishes one. + * 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 { - const normalized = payloadPath(file) - return normalized === 'src' - || normalized.startsWith('src/') - || normalized.endsWith('.d.ts.map') - || normalized.endsWith('.js.map') + return payloadPath(file).endsWith('.js.map') } /** - * Reject source and map members in a packed npm tarball. + * 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)) continue - const normalized = payloadPath(file) - if (normalized === 'src' || normalized.startsWith('src/')) { - throw new Error(`${context} publishes source file ${file}`) - } - throw new Error(`${context} publishes source map ${file}`) + if (isForbiddenPublicationFile(file)) throw new Error(`${context} publishes JavaScript map ${file}`) } } diff --git a/scripts/release/families.spec.ts b/scripts/release/families.spec.ts index af6bcde4cf..7cfb5935d7 100644 --- a/scripts/release/families.spec.ts +++ b/scripts/release/families.spec.ts @@ -387,12 +387,25 @@ describe('release families', () => { 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/src/index.ts']) }) - .toThrow(/publishes source file/) + 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(() => { vendor.validatePayload(vendored, ['package/lib/index.js', 'package/src/index.ts']) }).not.toThrow() expect(() => { vendor.validatePayload(vendored, []) }).toThrow(/empty tarball/) }) + it('requires the installed package payload the staging hook supplies', () => { + const dsh = releaseFamily('dsh') + const installed = member('apps/cli', '@deepseek-ai/dsh') + + expect(() => { dsh.validatePayload(installed, ['package/lib/index.js', 'package/src/bin.ts']) }) + .toThrow(/@deepseek-ai\/dsh packed no documentation/) + expect(() => { dsh.validatePayload(installed, ['package/lib/index.js', 'package/docs/guide.md']) }) + .toThrow(/@deepseek-ai\/dsh packed no source/) + expect(() => { dsh.validatePayload(installed, ['package/lib/index.js', 'package/docs/guide.md', 'package/src/bin.ts']) }) + .not.toThrow() + }) + it('drives the installed entry only for the family that publishes one', () => { expect(releaseFamily('dsh').installedEntry).toEqual({ packageName: '@deepseek-ai/dsh', binPath: 'lib/bin.js' }) expect(releaseFamily('vendor').installedEntry).toBeUndefined() diff --git a/scripts/release/families.ts b/scripts/release/families.ts index 1f821ffd7e..df4a1fd606 100644 --- a/scripts/release/families.ts +++ b/scripts/release/families.ts @@ -387,12 +387,22 @@ class DshFamily extends ReleaseFamily { } /** - * Reject source and declaration-map members, the repository's publication policy. + * 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. * @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`) + } + if (!files.some(file => file.startsWith('package/src/') && file.endsWith('.ts'))) { + throw new Error(`${member.name} packed no source`) + } } /** Publish every advertised on-demand package before the installation that offers it. */ @@ -449,11 +459,10 @@ class VendorFamily extends ReleaseFamily { * Require the payload the vendored manifest declares, including upstream's * `src` tree and declaration maps. * - * The harness policy that rejects both does not apply here: these manifests - * export `./src/*` for source navigation, so dropping `src` would publish a - * package whose export map points at absent files. What must hold instead is - * that every path the manifest selects is present, which `files` already - * decides and `pnpm pack` already enforces. + * 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 + * manifest selects is present, which `files` already decides and `pnpm pack` + * already enforces. * @param member - the packed member. * @param files - every path inside its tarball. */ diff --git a/scripts/release/pack.spec.ts b/scripts/release/pack.spec.ts index b7a102122f..444ce5ddf8 100644 --- a/scripts/release/pack.spec.ts +++ b/scripts/release/pack.spec.ts @@ -307,15 +307,15 @@ describe('release pack CLI', () => { it('validates every parallel tarball before recording the publish order', async () => { const root = fixture() packageFixture(root, 'packages/util/alpha', '@deepseek-ai/alpha') - packageFixture(root, 'packages/util/zebra', '@deepseek-ai/zebra', { files: ['lib/index.js', 'src/index.ts'] }) - write(join(root, 'packages/util/zebra/src/index.ts'), 'export const source = 1\n') + packageFixture(root, 'packages/util/zebra', '@deepseek-ai/zebra', { files: ['lib/index.js', 'lib/client.js.map'] }) + write(join(root, 'packages/util/zebra/lib/client.js.map'), '{"version":3}\n') write(join(root, 'apps/web/dist/index.html'), '
') writeClientBuildRecord(root, officialClientBuildEnvironment(root, { DSH_CLIENT_COMMIT_HASH: commit })) const result = await runPack(root, ['--family', 'dsh', '--concurrency', '8']) expect(result.status).not.toBe(0) - expect(result.stderr).toContain('@deepseek-ai/zebra publishes source file package/src/index.ts') + expect(result.stderr).toContain('@deepseek-ai/zebra publishes JavaScript map package/lib/client.js.map') expect(readdirSync(join(root, 'packed')).filter(name => name.endsWith('.tgz'))).toHaveLength(2) expect(existsSync(join(root, 'packed', PUBLISH_ORDER_FILE))).toBe(false) }) diff --git a/scripts/stage-dsh-docs.spec.ts b/scripts/stage-dsh-docs.spec.ts new file mode 100644 index 0000000000..e2f6d7d3fa --- /dev/null +++ b/scripts/stage-dsh-docs.spec.ts @@ -0,0 +1,58 @@ +import { existsSync, mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join } from 'node:path' +import { afterEach, describe, expect, it } from 'vitest' +import { stageDshDocs } from './stage-dsh-docs.ts' + +const roots: string[] = [] + +function temporaryRoot(): string { + const root = mkdtempSync(join(tmpdir(), 'dsh-stage-docs-')) + roots.push(root) + return root +} + +function write(root: string, path: string, contents = '# fixture\n'): void { + const target = join(root, path) + mkdirSync(join(target, '..'), { recursive: true }) + writeFileSync(target, contents) +} + +afterEach(() => { + for (const root of roots.splice(0)) rmSync(root, { recursive: true, force: true }) +}) + +describe('documentation staging', () => { + it('copies reader-facing documents and assets without the tooling-owned records', async () => { + const source = join(temporaryRoot(), 'docs') + const destination = join(temporaryRoot(), 'cli', 'docs') + 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, 'AGENTS.md') + + await stageDshDocs(source, destination) + + 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) + }) + + it('replaces a previous copy instead of merging into it', async () => { + const source = join(temporaryRoot(), 'docs') + const destination = join(temporaryRoot(), 'cli', 'docs') + write(source, 'kept.md') + write(destination, 'removed.md') + + await stageDshDocs(source, destination) + + expect(existsSync(join(destination, 'kept.md'))).toBe(true) + expect(existsSync(join(destination, 'removed.md'))).toBe(false) + }) +}) diff --git a/scripts/stage-dsh-docs.ts b/scripts/stage-dsh-docs.ts new file mode 100644 index 0000000000..ebaec604c7 --- /dev/null +++ b/scripts/stage-dsh-docs.ts @@ -0,0 +1,49 @@ +/** Stage the reader-facing documentation inside the published `dsh` package. */ + +import { cp, rm } from 'node:fs/promises' +import { join, relative, sep } from 'node:path' +import { fileURLToPath } from 'node:url' + +/** 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' + +/** Translation alignment records the documentation gates own; a reader never opens one. */ +const EXCLUDED_SUFFIX = '.i18n.yaml' + +/** + * 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. + * @param source - Documentation root to copy; defaults to the repository `docs`. + * @param destination - Package directory to replace; defaults to `apps/cli/docs`. + * @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'), +): Promise { + await rm(destination, { recursive: true, force: true }) + await cp(source, destination, { + recursive: true, + filter: entry => !isExcluded(source, entry), + }) +} + +/** + * 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. + */ +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) +} + +if (import.meta.main) await stageDshDocs() diff --git a/scripts/translation-pairing.ts b/scripts/translation-pairing.ts index 04ea0e72a6..466b39d490 100644 --- a/scripts/translation-pairing.ts +++ b/scripts/translation-pairing.ts @@ -142,6 +142,7 @@ export const TRANSLATION_SCOPE_GLOB_EXCLUDES = [ '**/__pycache__/**', '**/.pytest_cache/**', 'apps/web/dist/**', + 'apps/cli/docs/**', '.artifacts/**', 'python/sdk-runtime/src/deepseek_harness_runtime/runtime/**', 'vendor/**', @@ -154,6 +155,7 @@ function isTranslationSourceExcluded(file: string): boolean { || segment.startsWith('.doc-typecheck-') || segment.startsWith('.node-next-types-')) || file.startsWith('apps/web/dist/') + || file.startsWith('apps/cli/docs/') || file.startsWith('python/sdk-runtime/src/deepseek_harness_runtime/runtime/') } From a9fc7f9945dc004bb72a2fa8dac60c00431420b6 Mon Sep 17 00:00:00 2001 From: turtle1999 Date: Thu, 8 Oct 2026 17:04:23 +0800 Subject: [PATCH 002/193] 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'] })], } }) From 8890ac370528bb8028ca3cd0c8d307b601da4b56 Mon Sep 17 00:00:00 2001 From: turtle1999 Date: Thu, 8 Oct 2026 20:20:54 +0800 Subject: [PATCH 003/193] fix(release): keep node bundles readable for the worker image The browser worker image lowers `yield*` only as a whole statement and rewrites `for await` loops by their source layout, so compressed node-side entries either fail that lowering or lower to unparseable code. Only the browser bundles keep compression, which removes about a third of their text. The bundle-purity assertion now matches the module-loader call regardless of the quote style compression picks, and the release-pack fixture exercises the installed package's new documentation requirement. --- .../2026-10-08-published-source-and-docs.i18n.yaml | 12 ++++++------ .../process/2026-10-08-published-source-and-docs.md | 6 +++--- .../2026-10-08-published-source-and-docs.zh.md | 6 +++--- packages/client/tsdown.client.ts | 9 ++++++--- scripts/client-bundle-purity.spec.ts | 5 +++-- scripts/release/pack.spec.ts | 10 ++++++---- tsdown.config.ts | 3 --- 7 files changed, 27 insertions(+), 24 deletions(-) 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 3be3da2012..738efe10c6 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 @@ -9,11 +9,11 @@ en: 699d35bd0bb12645 zh: c9e362c336c6b440 /agent-note-published-source-maps-and-documentation/decision: - en: b5d394bd286b1e2d - zh: f5d3317115442caa + en: 7b0556c6eab6fcf9 + zh: 4788e9a4ebb9d528 /agent-note-published-source-maps-and-documentation/alternatives-considered: - en: 0bcc1a6864bcb340 - zh: ff5d138040563624 + en: a61183c5b42eddba + zh: 031679975ab1f9c7 /agent-note-published-source-maps-and-documentation/consequences: - en: bd76714dd121f9aa - zh: 6d474d6ea90e1b5f + en: 4e7510bd2a14a1bc + zh: b9eb3000268cfd51 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 820f84a409..010724b55e 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 @@ -14,7 +14,7 @@ Every release member publishes its TypeScript source, the declaration maps that [`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. -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 client preset compresses the browser bundle's text (`minify: { compress: false, mangle: false }`). Identifiers keep their names, so a stack frame and the published map still name the original code. Node-side entries stay uncompressed: the browser worker image lowers `yield*` only as a whole statement and rewrites `for await` loops by their source layout, and compressed input breaks both. `@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)). @@ -30,11 +30,11 @@ Desktop and the Python single-file executable pay nothing for either addition. [ **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. -**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. +**Compress the node-side entries as well.** Rejected because the browser worker image refuses compressed input: the packer rejects a `yield*` a compressor moved into an expression, and it produces unparseable code for `dsh-agent-instructions`. Both are lowering constraints, not size arguments. ## Consequences -`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. +`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 about a third of a browser bundle — `ui-chat`'s `lib/client.js` falls from 591 kB to 420 kB — while node-side entries keep their size until the worker image lowering accepts compressed input. 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 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. 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 77835c5cba..5b973aac37 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 @@ -14,7 +14,7 @@ Status: implemented [`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 它们。 -工作区构建与 client 预设会压缩每个产出的 bundle(`minify: { compress: true, mangle: false }`)。标识符保持原名,因此栈帧与已发布的 map 仍然指向原始代码。 +client 预设会压缩浏览器 bundle 的文本(`minify: { compress: false, mangle: false }`)。标识符保持原名,因此栈帧与已发布的 map 仍然指向原始代码。Node 侧入口不压缩:浏览器 worker 镜像只把 `yield*` 当作整条语句下沉,并按源码版式重写 `for await` 循环,压缩后的输入会同时破坏这两者。 `@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))。 @@ -30,11 +30,11 @@ Status: implemented **连标识符一起混淆。** 否决:混淆会破坏已发布 map 本应提供的对应关系,并使未处理栈帧无法阅读。 -**只压缩 `lib/index.js` 与 `lib/client.js`。** 否决:一次工作区构建配置产出所有 bundle,为单包开例外需要第二套配置,而读者看不到任何收益。 +**连 Node 侧入口一起压缩。** 否决:浏览器 worker 镜像拒绝压缩后的输入——打包器会拒绝被压缩器挪进表达式的 `yield*`,并且对 `dsh-agent-instructions` 产出无法解析的代码。这两条都是下沉变换的限制,不是体积上的理由。 ## Consequences -`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 可执行体保持原有载荷。 +`src` 在整个发布集上增加约 29 MB,声明映射增加约 10 MB,JavaScript map 增加约 49 MB,暂存的文档给 `@deepseek-ai/dsh` 增加 5.9 MB。压缩让浏览器 bundle 约减少三分之一——`ui-chat` 的 `lib/client.js` 从 591 kB 降到 420 kB——而 Node 侧入口在 worker 镜像接受压缩输入之前保持原体积。桌面应用与 Python 可执行体保持原有载荷。 消费方编辑器现在可以从声明跳转到已安装的实现,插件作者无需检出即可读到该版本的文档。暂存副本保留仓库的相对链接,因此从随包页面指向未随包目录的链接——`../packages/**`,或被排除的 `persistence-changes/` 记录——只在检出中可解析。`docs/` 只在 `prepack` 与 `postpack` 之间存在于工作树,`pnpm run clean` 会清掉被中断的打包留下的副本。 diff --git a/packages/client/tsdown.client.ts b/packages/client/tsdown.client.ts index e76c9c3fe3..795ce96711 100644 --- a/packages/client/tsdown.client.ts +++ b/packages/client/tsdown.client.ts @@ -486,9 +486,12 @@ 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 }, + // Compress the browser bundle's text while identifier names stay readable + // and the source map still resolves through the published `src`. The + // compressor stays off: the browser worker image lowers `yield*` only as a + // whole statement, and a compressor that folds statements into expressions + // hides it. + minify: { compress: false, mangle: false }, clean: false, deps: { neverBundle: isRequested, diff --git a/scripts/client-bundle-purity.spec.ts b/scripts/client-bundle-purity.spec.ts index b172dab5f4..a7d91d0b3d 100644 --- a/scripts/client-bundle-purity.spec.ts +++ b/scripts/client-bundle-purity.spec.ts @@ -76,8 +76,9 @@ describe('client bundle dynamic imports', () => { }) const chunks = builds.flatMap(bundle => bundle.chunks).filter(chunk => chunk.type === 'chunk') const output = chunks.find(chunk => chunk.fileName === 'client.js')?.code - expect(output).toContain('require.async("./client.terminal.js")') - expect(output).not.toContain('Promise.resolve().then(() => require("./client.terminal.js"))') + // The compressor rewrites string literals, so the quotes are not part of the contract. + expect(output).toMatch(/require\.async\((["'`])\.\/client\.terminal\.js\1\)/) + expect(output).not.toMatch(/Promise\.resolve\(\)\.then\(\(\)\s*=>\s*require\((["'`])\.\/client\.terminal\.js\1\)\)/) } finally { for (const bundle of builds) await bundle[Symbol.asyncDispose]() } diff --git a/scripts/release/pack.spec.ts b/scripts/release/pack.spec.ts index 444ce5ddf8..48a4723512 100644 --- a/scripts/release/pack.spec.ts +++ b/scripts/release/pack.spec.ts @@ -307,16 +307,18 @@ describe('release pack CLI', () => { it('validates every parallel tarball before recording the publish order', async () => { const root = fixture() packageFixture(root, 'packages/util/alpha', '@deepseek-ai/alpha') - packageFixture(root, 'packages/util/zebra', '@deepseek-ai/zebra', { files: ['lib/index.js', 'lib/client.js.map'] }) - write(join(root, 'packages/util/zebra/lib/client.js.map'), '{"version":3}\n') + packageFixture(root, 'apps/cli', '@deepseek-ai/dsh', { files: ['lib/index.js', 'src/bin.ts'] }) + packageFixture(root, 'packages/subagent/subagent-claude-code', '@deepseek-ai/dsh-subagent-claude-code') + packageFixture(root, 'packages/subagent/subagent-codex', '@deepseek-ai/dsh-subagent-codex') + write(join(root, 'apps/cli/src/bin.ts'), 'export const bin = 1\n') write(join(root, 'apps/web/dist/index.html'), '
') writeClientBuildRecord(root, officialClientBuildEnvironment(root, { DSH_CLIENT_COMMIT_HASH: commit })) const result = await runPack(root, ['--family', 'dsh', '--concurrency', '8']) expect(result.status).not.toBe(0) - expect(result.stderr).toContain('@deepseek-ai/zebra publishes JavaScript map package/lib/client.js.map') - expect(readdirSync(join(root, 'packed')).filter(name => name.endsWith('.tgz'))).toHaveLength(2) + expect(result.stderr).toContain('@deepseek-ai/dsh packed no documentation') + expect(readdirSync(join(root, 'packed')).filter(name => name.endsWith('.tgz'))).toHaveLength(4) expect(existsSync(join(root, 'packed', PUBLISH_ORDER_FILE))).toBe(false) }) diff --git a/tsdown.config.ts b/tsdown.config.ts index 6c7396eb77..c378de376a 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -30,9 +30,6 @@ 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'] })], } }) From 7613702164df8de2fa551c6baa0fb3ac69aa9e56 Mon Sep 17 00:00:00 2001 From: turtle1999 Date: Wed, 14 Oct 2026 12:22:20 +0800 Subject: [PATCH 004/193] feat(release): publish the whole documentation tree `@deepseek-ai/dsh` copies `docs/` in full instead of the website's page set: the maintainer documents, the generated migration records, the translation guidelines, and the `*.i18n.yaml` consistency records ship with the installed package, so the documentation's own links resolve without a checkout. --- ...-10-08-published-source-and-docs.i18n.yaml | 12 ++-- .../2026-10-08-published-source-and-docs.md | 10 +-- ...2026-10-08-published-source-and-docs.zh.md | 10 +-- apps/cli/README.i18n.yaml | 4 +- apps/cli/README.md | 4 +- apps/cli/README.zh.md | 4 +- scripts/stage-dsh-docs.spec.ts | 32 +++------- scripts/stage-dsh-docs.ts | 64 ++----------------- 8 files changed, 39 insertions(+), 101 deletions(-) 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 738efe10c6..2ce7f727a4 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 @@ -9,11 +9,11 @@ en: 699d35bd0bb12645 zh: c9e362c336c6b440 /agent-note-published-source-maps-and-documentation/decision: - en: 7b0556c6eab6fcf9 - zh: 4788e9a4ebb9d528 + en: 6aa403f2e4bdccd0 + zh: 21d6471d50f5a859 /agent-note-published-source-maps-and-documentation/alternatives-considered: - en: a61183c5b42eddba - zh: 031679975ab1f9c7 + en: 37ed96ad5fb2c648 + zh: 2481300e7303032c /agent-note-published-source-maps-and-documentation/consequences: - en: 4e7510bd2a14a1bc - zh: b9eb3000268cfd51 + en: 3533c3f170053435 + zh: 6214628847535a3f 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 010724b55e..2d9173c656 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 @@ -10,13 +10,13 @@ A published `@deepseek-ai/dsh-*` package carried declarations, bundled runtime, ## Decision -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. +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 repository `docs/` tree, and the build compresses emitted bundles without mangling identifiers. [`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. The client preset compresses the browser bundle's text (`minify: { compress: false, mangle: false }`). Identifiers keep their names, so a stack frame and the published map still name the original code. Node-side entries stay uncompressed: the browser worker image lowers `yield*` only as a whole statement and rewrites `for await` loops by their source layout, and compressed input breaks both. -`@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)). +`@deepseek-ai/dsh` copies the repository `docs/` tree into `apps/cli/docs` from its `prepack` lifecycle through [`scripts/stage-dsh-docs.ts`](../../../../scripts/stage-dsh-docs.ts), and removes that copy again from `postpack`. Every file ships: the published pages, the maintainer documents, the generated `docs/persistence-changes/` records, the `docs/i18n/` guidelines, the `*.i18n.yaml` consistency records, and the referenced images. The vendored family keeps upstream's payload unchanged ([release sequences](2026-08-10-npm-release-sequences.md)). 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. @@ -26,7 +26,7 @@ Desktop and the Python single-file executable pay nothing for either addition. [ **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 the whole `docs/` tree.** Rejected because that publishes RFCs, postmortems, testing guides, and maintainer workflows the website manifest deliberately withholds. +**Publish only the website's page set.** Rejected because an installed reader is not the website's reader: the maintainer documents, the migration records, and the translation guidelines are exactly what a plugin author cannot get offline, and a catalog page's link into `persistence-changes/` resolves only when those records ship with it. **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. @@ -34,8 +34,8 @@ Desktop and the Python single-file executable pay nothing for either addition. [ ## Consequences -`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 about a third of a browser bundle — `ui-chat`'s `lib/client.js` falls from 591 kB to 420 kB — while node-side entries keep their size until the worker image lowering accepts compressed input. The Desktop application and the Python executable keep their previous payload. +`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 31 MB to `@deepseek-ai/dsh`. Compression removes about a third of a browser bundle — `ui-chat`'s `lib/client.js` falls from 591 kB to 420 kB — while node-side entries keep their size until the worker image lowering accepts compressed input. 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 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. +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 into `../packages/**` resolves only in a checkout while the documentation's own cross-references stay intact. `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 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 5b973aac37..1d68df2d11 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 @@ -10,13 +10,13 @@ Status: implemented ## Decision -每个发布成员都发布自己的 TypeScript 源码、能解析到该源码的声明映射,以及紧挨所描述 bundle 的 JavaScript map。`@deepseek-ai/dsh` 另发布文档网站的页面集合,构建也会压缩产出的 bundle,但不混淆标识符。 +每个发布成员都发布自己的 TypeScript 源码、能解析到该源码的声明映射,以及紧挨所描述 bundle 的 JavaScript map。`@deepseek-ai/dsh` 另发布仓库的 `docs/` 树,构建也会压缩产出的 bundle,但不混淆标识符。 [`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 它们。 client 预设会压缩浏览器 bundle 的文本(`minify: { compress: false, mangle: false }`)。标识符保持原名,因此栈帧与已发布的 map 仍然指向原始代码。Node 侧入口不压缩:浏览器 worker 镜像只把 `yield*` 当作整条语句下沉,并按源码版式重写 `for await` 循环,压缩后的输入会同时破坏这两者。 -`@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))。 +`@deepseek-ai/dsh` 通过 [`scripts/stage-dsh-docs.ts`](../../../../scripts/stage-dsh-docs.ts) 在自己的 `prepack` 生命周期里把仓库 `docs/` 树整体复制到 `apps/cli/docs`,并在 `postpack` 中再次删除这份副本。所有文件都会发布:已上站的页面、维护者文档、生成的 `docs/persistence-changes/` 记录、`docs/i18n/` 规范、`*.i18n.yaml` 一致性记录,以及被引用的图片。vendored 族保持上游 payload 不变([发布序列](2026-08-10-npm-release-sequences.zh.md))。 桌面版与 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`。 @@ -26,7 +26,7 @@ client 预设会压缩浏览器 bundle 的文本(`minify: { compress: false, m **只发布映射,不发布 `src`。** 否决:`sources` 不存在的映射解析不到任何东西,而这正是 [Typert Remote 设计](../architecture/2026-08-02-typert-remote-method-calls.zh.md)所要求的导航。 -**发布整棵 `docs/` 树。** 否决:那会把网站清单刻意不公开的 RFC、事故复盘、测试指南与维护者工作流一并发布。 +**只发布网站页面集合。** 否决:已安装的读者不是网站的读者——维护者文档、迁移记录与翻译规范正是插件作者离线拿不到的部分,而且目录页指向 `persistence-changes/` 的链接只有随记录一起发布才可解析。 **连标识符一起混淆。** 否决:混淆会破坏已发布 map 本应提供的对应关系,并使未处理栈帧无法阅读。 @@ -34,8 +34,8 @@ client 预设会压缩浏览器 bundle 的文本(`minify: { compress: false, m ## Consequences -`src` 在整个发布集上增加约 29 MB,声明映射增加约 10 MB,JavaScript map 增加约 49 MB,暂存的文档给 `@deepseek-ai/dsh` 增加 5.9 MB。压缩让浏览器 bundle 约减少三分之一——`ui-chat` 的 `lib/client.js` 从 591 kB 降到 420 kB——而 Node 侧入口在 worker 镜像接受压缩输入之前保持原体积。桌面应用与 Python 可执行体保持原有载荷。 +`src` 在整个发布集上增加约 29 MB,声明映射增加约 10 MB,JavaScript map 增加约 49 MB,暂存的文档给 `@deepseek-ai/dsh` 增加 31 MB。压缩让浏览器 bundle 约减少三分之一——`ui-chat` 的 `lib/client.js` 从 591 kB 降到 420 kB——而 Node 侧入口在 worker 镜像接受压缩输入之前保持原体积。桌面应用与 Python 可执行体保持原有载荷。 -消费方编辑器现在可以从声明跳转到已安装的实现,插件作者无需检出即可读到该版本的文档。暂存副本保留仓库的相对链接,因此从随包页面指向未随包目录的链接——`../packages/**`,或被排除的 `persistence-changes/` 记录——只在检出中可解析。`docs/` 只在 `prepack` 与 `postpack` 之间存在于工作树,`pnpm run clean` 会清掉被中断的打包留下的副本。 +消费方编辑器现在可以从声明跳转到已安装的实现,插件作者无需检出即可读到该版本的文档。暂存副本保留仓库的相对链接,因此指向 `../packages/**` 的链接只在检出中可解析,而文档自身的交叉引用保持完整。`docs/` 只在 `prepack` 与 `postpack` 之间存在于工作树,`pnpm run clean` 会清掉被中断的打包留下的副本。 `pnpm run constraints` 会拒绝 `files` 中缺少 `src` 或任一声明映射的发布成员,因为该清单是精确匹配的。发布族的 tarball 校验要求 `@deepseek-ai/dsh` 必须带上文档与源码,因此跳过暂存钩子的打包会直接失败,而不是发出一个缺少它们的包。 diff --git a/apps/cli/README.i18n.yaml b/apps/cli/README.i18n.yaml index c62beb75bb..881e2c5c4b 100644 --- a/apps/cli/README.i18n.yaml +++ b/apps/cli/README.i18n.yaml @@ -18,8 +18,8 @@ en: 3a40ddc44e55f79c zh: 8d3949132e1ef93c /deepseek-ai-dsh/installed-payload: - en: 11b7ca48d1da9da3 - zh: 1f909f6bc2e72e14 + en: 9c0e0d0f4d2680e1 + zh: d0a714fe5d909f12 /deepseek-ai-dsh/development: en: 0a289c1235869927 zh: a1f473f70036ad37 diff --git a/apps/cli/README.md b/apps/cli/README.md index 35a2d48424..eb04c5db68 100644 --- a/apps/cli/README.md +++ b/apps/cli/README.md @@ -55,9 +55,9 @@ The [CLI behavior reference](reference/README.md) owns exact layer precedence, f ## 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. +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 repository documentation under `docs/`. Only `prepack` copies `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. +`docs/` is the repository's documentation tree in full, including the generated `persistence-changes/` records, the `i18n/` guidelines, and the `*.i18n.yaml` consistency records. Its pages keep the repository's relative links, so a link into `../packages/**` resolves only in a checkout. ## Development diff --git a/apps/cli/README.zh.md b/apps/cli/README.zh.md index 38a8415371..c26ea2c0d0 100644 --- a/apps/cli/README.zh.md +++ b/apps/cli/README.zh.md @@ -55,9 +55,9 @@ profile 目录包含一个 `package.json`,其中记录树外插件依赖,以 ## 安装包内容 -发布 tarball 在 `lib/` 下携带打包后的运行时,在 `src/` 下携带 TypeScript 源码,在各自描述的文件旁携带声明映射与 JavaScript map,并在 `docs/` 下携带文档网站的页面集合。只有 `prepack` 会暂存 `docs/`,`postpack` 又会删除这份副本,因此工作树里的读者看到的始终是检出当前的内容。 +发布 tarball 在 `lib/` 下携带打包后的运行时,在 `src/` 下携带 TypeScript 源码,在各自描述的文件旁携带声明映射与 JavaScript map,并在 `docs/` 下携带仓库文档。只有 `prepack` 会复制 `docs/`,`postpack` 又会删除这份副本,因此工作树里的读者看到的始终是检出当前的内容。 -`docs/` 不包含生成的 `persistence-changes/` 记录与 `*.i18n.yaml` 一致性记录。其中的页面保留仓库的相对链接,因此指向 `../packages/**` 或指向被排除的 `persistence-changes/` 树的链接只在检出中可解析。 +`docs/` 是仓库文档树的完整副本,包含生成的 `persistence-changes/` 记录、`i18n/` 规范与 `*.i18n.yaml` 一致性记录。其中的页面保留仓库的相对链接,因此指向 `../packages/**` 的链接只在检出中可解析。 ## 开发 diff --git a/scripts/stage-dsh-docs.spec.ts b/scripts/stage-dsh-docs.spec.ts index cd93267ce9..ca9d5c56ab 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 { cleanStagedDshDocs, publishedDocuments, stageDshDocs } from './stage-dsh-docs.ts' +import { cleanStagedDshDocs, stageDshDocs } from './stage-dsh-docs.ts' const roots: string[] = [] @@ -23,27 +23,25 @@ afterEach(() => { }) describe('documentation staging', () => { - it('copies published pages and assets without the internal trees', async () => { + it('copies the complete documentation tree', 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, '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, published) + await stageDshDocs(source, destination) - 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) - for (const excluded of ['guide/index.i18n.yaml', 'postmortem', 'AGENTS.md', 'persistence-changes', 'i18n']) { - expect(existsSync(join(destination, excluded))).toBe(false) + for (const copied of [ + 'guide/index.md', 'guide/index.i18n.yaml', 'images/diagram.png', + 'postmortem/incident.md', 'AGENTS.md', + 'persistence-changes/v1/changes.md', 'persistence-changes/v1/record.json', + ]) { + expect(existsSync(join(destination, copied)), copied).toBe(true) } }) @@ -53,7 +51,7 @@ describe('documentation staging', () => { write(source, 'kept.md') write(destination, 'removed.md') - await stageDshDocs(source, destination, new Set(['kept.md'])) + await stageDshDocs(source, destination) expect(existsSync(join(destination, 'kept.md'))).toBe(true) expect(existsSync(join(destination, 'removed.md'))).toBe(false) @@ -67,14 +65,4 @@ describe('documentation staging', () => { 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 90b1cb75f0..9d16c0f455 100644 --- a/scripts/stage-dsh-docs.ts +++ b/scripts/stage-dsh-docs.ts @@ -1,9 +1,8 @@ -/** Stage the documentation the website publishes inside the published `dsh` package. */ +/** Stage the repository documentation inside the published `dsh` package. */ -import { cp, mkdir, readdir, rm } from 'node:fs/promises' -import { dirname, join } from 'node:path' +import { cp, rm } from 'node:fs/promises' +import { 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)) @@ -12,52 +11,23 @@ const REPOSITORY_ROOT = fileURLToPath(new URL('..', import.meta.url)) const DOCS_DIRECTORY = join(REPOSITORY_ROOT, 'docs') const STAGED_DIRECTORY = join(REPOSITORY_ROOT, 'apps', 'cli', 'docs') -/** 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. + * Replace a package's `docs` directory with the repository documentation. * * 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. + * release set both publish the same files. * @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. + * @returns Resolves after the destination holds the copy. */ export async function stageDshDocs( source: string = DOCS_DIRECTORY, destination: string = STAGED_DIRECTORY, - published: ReadonlySet = publishedDocuments(), ): Promise { await rm(destination, { recursive: true, force: true }) - 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) - } + await cp(source, destination, { recursive: true }) } /** @@ -69,26 +39,6 @@ export async function cleanStagedDshDocs(destination: string = STAGED_DIRECTORY) await rm(destination, { recursive: true, force: true }) } -/** - * 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() From 91e5c46dd65910ef24482d2e2dd53436800d6378 Mon Sep 17 00:00:00 2001 From: turtle1999 Date: Wed, 14 Oct 2026 12:59:30 +0800 Subject: [PATCH 005/193] feat(release): publish the upgrade guides with the documentation The staged documentation keeps the website's page set and adds every `docs/upgrade-guide/` document, which is what an installed reader consults when a released change breaks something. The rest of the maintainer tree stays out. --- ...-10-08-published-source-and-docs.i18n.yaml | 12 +-- .../2026-10-08-published-source-and-docs.md | 10 +-- ...2026-10-08-published-source-and-docs.zh.md | 10 +-- apps/cli/README.i18n.yaml | 4 +- apps/cli/README.md | 4 +- apps/cli/README.zh.md | 4 +- scripts/stage-dsh-docs.spec.ts | 36 +++++++-- scripts/stage-dsh-docs.ts | 80 +++++++++++++++++-- 8 files changed, 124 insertions(+), 36 deletions(-) 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 2ce7f727a4..eb021f8031 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 @@ -9,11 +9,11 @@ en: 699d35bd0bb12645 zh: c9e362c336c6b440 /agent-note-published-source-maps-and-documentation/decision: - en: 6aa403f2e4bdccd0 - zh: 21d6471d50f5a859 + en: e7afd5742d502cc4 + zh: 3d66bbf36b373b0d /agent-note-published-source-maps-and-documentation/alternatives-considered: - en: 37ed96ad5fb2c648 - zh: 2481300e7303032c + en: 953acd4b427b6698 + zh: 43426e6213773943 /agent-note-published-source-maps-and-documentation/consequences: - en: 3533c3f170053435 - zh: 6214628847535a3f + en: 9aab6e70f1d6a6a8 + zh: 9837857df3a7c146 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 2d9173c656..725753a6b4 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 @@ -10,13 +10,13 @@ A published `@deepseek-ai/dsh-*` package carried declarations, bundled runtime, ## Decision -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 repository `docs/` tree, and the build compresses emitted bundles without mangling identifiers. +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 plus the upgrade guides, and the build compresses emitted bundles without mangling identifiers. [`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. The client preset compresses the browser bundle's text (`minify: { compress: false, mangle: false }`). Identifiers keep their names, so a stack frame and the published map still name the original code. Node-side entries stay uncompressed: the browser worker image lowers `yield*` only as a whole statement and rewrites `for await` loops by their source layout, and compressed input breaks both. -`@deepseek-ai/dsh` copies the repository `docs/` tree into `apps/cli/docs` from its `prepack` lifecycle through [`scripts/stage-dsh-docs.ts`](../../../../scripts/stage-dsh-docs.ts), and removes that copy again from `postpack`. Every file ships: the published pages, the maintainer documents, the generated `docs/persistence-changes/` records, the `docs/i18n/` guidelines, the `*.i18n.yaml` consistency records, and the referenced images. The vendored family keeps upstream's payload unchanged ([release sequences](2026-08-10-npm-release-sequences.md)). +`@deepseek-ai/dsh` stages that set into `apps/cli/docs` from its `prepack` lifecycle through [`scripts/stage-dsh-docs.ts`](../../../../scripts/stage-dsh-docs.ts), and removes the copy again from `postpack`. The set is the website manifest's Markdown, every `docs/upgrade-guide/` document, and the non-Markdown assets those pages reference. The generated `docs/persistence-changes/` records, the `docs/i18n/` guidelines, and the `*.i18n.yaml` consistency records stay out. The vendored family keeps upstream's payload unchanged ([release sequences](2026-08-10-npm-release-sequences.md)). 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. @@ -26,7 +26,7 @@ Desktop and the Python single-file executable pay nothing for either addition. [ **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 only the website's page set.** Rejected because an installed reader is not the website's reader: the maintainer documents, the migration records, and the translation guidelines are exactly what a plugin author cannot get offline, and a catalog page's link into `persistence-changes/` resolves only when those records ship with it. +**Publish the whole `docs/` tree, or only the website's page set.** Both extremes were rejected. The whole tree publishes maintainer material an installed reader does not need — postmortems, testing guides, agent instructions, and the generated migration records — while the site's page set alone omits the upgrade guides, which are the documents an installed reader consults when a released change breaks something. **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. @@ -34,8 +34,8 @@ Desktop and the Python single-file executable pay nothing for either addition. [ ## Consequences -`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 31 MB to `@deepseek-ai/dsh`. Compression removes about a third of a browser bundle — `ui-chat`'s `lib/client.js` falls from 591 kB to 420 kB — while node-side entries keep their size until the worker image lowering accepts compressed input. The Desktop application and the Python executable keep their previous payload. +`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 6.2 MB across 269 files to `@deepseek-ai/dsh`. Compression removes about a third of a browser bundle — `ui-chat`'s `lib/client.js` falls from 591 kB to 420 kB — while node-side entries keep their size until the worker image lowering accepts compressed input. 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 documentation without a checkout. The staged copy keeps the repository's relative links, so a link into `../packages/**` resolves only in a checkout while the documentation's own cross-references stay intact. `docs/` exists in the working tree only between `prepack` and `postpack`, and `pnpm run clean` removes a copy an interrupted pack left behind. +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 into `../packages/**` or into 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 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 1d68df2d11..a522f4d07d 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 @@ -10,13 +10,13 @@ Status: implemented ## Decision -每个发布成员都发布自己的 TypeScript 源码、能解析到该源码的声明映射,以及紧挨所描述 bundle 的 JavaScript map。`@deepseek-ai/dsh` 另发布仓库的 `docs/` 树,构建也会压缩产出的 bundle,但不混淆标识符。 +每个发布成员都发布自己的 TypeScript 源码、能解析到该源码的声明映射,以及紧挨所描述 bundle 的 JavaScript map。`@deepseek-ai/dsh` 另发布文档网站的页面集合外加升级指南,构建也会压缩产出的 bundle,但不混淆标识符。 [`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 它们。 client 预设会压缩浏览器 bundle 的文本(`minify: { compress: false, mangle: false }`)。标识符保持原名,因此栈帧与已发布的 map 仍然指向原始代码。Node 侧入口不压缩:浏览器 worker 镜像只把 `yield*` 当作整条语句下沉,并按源码版式重写 `for await` 循环,压缩后的输入会同时破坏这两者。 -`@deepseek-ai/dsh` 通过 [`scripts/stage-dsh-docs.ts`](../../../../scripts/stage-dsh-docs.ts) 在自己的 `prepack` 生命周期里把仓库 `docs/` 树整体复制到 `apps/cli/docs`,并在 `postpack` 中再次删除这份副本。所有文件都会发布:已上站的页面、维护者文档、生成的 `docs/persistence-changes/` 记录、`docs/i18n/` 规范、`*.i18n.yaml` 一致性记录,以及被引用的图片。vendored 族保持上游 payload 不变([发布序列](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`,并在 `postpack` 中再次删除这份副本。集合包含:网站清单中的 Markdown、`docs/upgrade-guide/` 下的全部文档,以及这些页面引用的非 Markdown 资产。生成的 `docs/persistence-changes/` 记录、`docs/i18n/` 规范与 `*.i18n.yaml` 一致性记录不发布。vendored 族保持上游 payload 不变([发布序列](2026-08-10-npm-release-sequences.zh.md))。 桌面版与 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`。 @@ -26,7 +26,7 @@ client 预设会压缩浏览器 bundle 的文本(`minify: { compress: false, m **只发布映射,不发布 `src`。** 否决:`sources` 不存在的映射解析不到任何东西,而这正是 [Typert Remote 设计](../architecture/2026-08-02-typert-remote-method-calls.zh.md)所要求的导航。 -**只发布网站页面集合。** 否决:已安装的读者不是网站的读者——维护者文档、迁移记录与翻译规范正是插件作者离线拿不到的部分,而且目录页指向 `persistence-changes/` 的链接只有随记录一起发布才可解析。 +**整树发布,或只发布网站页面集合。** 两个极端都否决。整树会把已安装读者并不需要的维护者材料发出去——事故复盘、测试指南、Agent 指令与生成的迁移记录;而只发网站页面集合会漏掉升级指南,也就是已发布改动造成破坏时读者真正要查的文档。 **连标识符一起混淆。** 否决:混淆会破坏已发布 map 本应提供的对应关系,并使未处理栈帧无法阅读。 @@ -34,8 +34,8 @@ client 预设会压缩浏览器 bundle 的文本(`minify: { compress: false, m ## Consequences -`src` 在整个发布集上增加约 29 MB,声明映射增加约 10 MB,JavaScript map 增加约 49 MB,暂存的文档给 `@deepseek-ai/dsh` 增加 31 MB。压缩让浏览器 bundle 约减少三分之一——`ui-chat` 的 `lib/client.js` 从 591 kB 降到 420 kB——而 Node 侧入口在 worker 镜像接受压缩输入之前保持原体积。桌面应用与 Python 可执行体保持原有载荷。 +`src` 在整个发布集上增加约 29 MB,声明映射增加约 10 MB,JavaScript map 增加约 49 MB,暂存的文档以 269 个文件给 `@deepseek-ai/dsh` 增加 6.2 MB。压缩让浏览器 bundle 约减少三分之一——`ui-chat` 的 `lib/client.js` 从 591 kB 降到 420 kB——而 Node 侧入口在 worker 镜像接受压缩输入之前保持原体积。桌面应用与 Python 可执行体保持原有载荷。 -消费方编辑器现在可以从声明跳转到已安装的实现,插件作者无需检出即可读到该版本的文档。暂存副本保留仓库的相对链接,因此指向 `../packages/**` 的链接只在检出中可解析,而文档自身的交叉引用保持完整。`docs/` 只在 `prepack` 与 `postpack` 之间存在于工作树,`pnpm run clean` 会清掉被中断的打包留下的副本。 +消费方编辑器现在可以从声明跳转到已安装的实现,插件作者无需检出即可读到该版本的文档。暂存副本保留仓库的相对链接,因此指向 `../packages/**` 或指向被排除的 `persistence-changes/` 记录的链接只在检出中可解析。`docs/` 只在 `prepack` 与 `postpack` 之间存在于工作树,`pnpm run clean` 会清掉被中断的打包留下的副本。 `pnpm run constraints` 会拒绝 `files` 中缺少 `src` 或任一声明映射的发布成员,因为该清单是精确匹配的。发布族的 tarball 校验要求 `@deepseek-ai/dsh` 必须带上文档与源码,因此跳过暂存钩子的打包会直接失败,而不是发出一个缺少它们的包。 diff --git a/apps/cli/README.i18n.yaml b/apps/cli/README.i18n.yaml index 881e2c5c4b..aad83c226c 100644 --- a/apps/cli/README.i18n.yaml +++ b/apps/cli/README.i18n.yaml @@ -18,8 +18,8 @@ en: 3a40ddc44e55f79c zh: 8d3949132e1ef93c /deepseek-ai-dsh/installed-payload: - en: 9c0e0d0f4d2680e1 - zh: d0a714fe5d909f12 + en: da093ab26c9403fd + zh: 3c7bb7e9dcc772ac /deepseek-ai-dsh/development: en: 0a289c1235869927 zh: a1f473f70036ad37 diff --git a/apps/cli/README.md b/apps/cli/README.md index eb04c5db68..d0624e98a8 100644 --- a/apps/cli/README.md +++ b/apps/cli/README.md @@ -55,9 +55,9 @@ The [CLI behavior reference](reference/README.md) owns exact layer precedence, f ## 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 repository documentation under `docs/`. Only `prepack` copies `docs/`, and `postpack` removes that copy again, so a reader of the working tree sees whatever the checkout holds. +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 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/` is the repository's documentation tree in full, including the generated `persistence-changes/` records, the `i18n/` guidelines, and the `*.i18n.yaml` consistency records. Its pages keep the repository's relative links, so a link into `../packages/**` resolves only in a checkout. +`docs/` holds the documentation website's pages plus every upgrade guide, with the assets those pages reference. The generated `persistence-changes/` records, the `i18n/` guidelines, and the `*.i18n.yaml` consistency records are not published. Its pages keep the repository's relative links, so a link into `../packages/**` or into the omitted `persistence-changes/` records resolves only in a checkout. ## Development diff --git a/apps/cli/README.zh.md b/apps/cli/README.zh.md index c26ea2c0d0..de139fa373 100644 --- a/apps/cli/README.zh.md +++ b/apps/cli/README.zh.md @@ -55,9 +55,9 @@ profile 目录包含一个 `package.json`,其中记录树外插件依赖,以 ## 安装包内容 -发布 tarball 在 `lib/` 下携带打包后的运行时,在 `src/` 下携带 TypeScript 源码,在各自描述的文件旁携带声明映射与 JavaScript map,并在 `docs/` 下携带仓库文档。只有 `prepack` 会复制 `docs/`,`postpack` 又会删除这份副本,因此工作树里的读者看到的始终是检出当前的内容。 +发布 tarball 在 `lib/` 下携带打包后的运行时,在 `src/` 下携带 TypeScript 源码,在各自描述的文件旁携带声明映射与 JavaScript map,并在 `docs/` 下携带文档。只有 `prepack` 会暂存 `docs/`,`postpack` 又会删除这份副本,因此工作树里的读者看到的始终是检出当前的内容。 -`docs/` 是仓库文档树的完整副本,包含生成的 `persistence-changes/` 记录、`i18n/` 规范与 `*.i18n.yaml` 一致性记录。其中的页面保留仓库的相对链接,因此指向 `../packages/**` 的链接只在检出中可解析。 +`docs/` 包含文档网站的页面与全部升级指南,以及这些页面引用的资产。生成的 `persistence-changes/` 记录、`i18n/` 规范与 `*.i18n.yaml` 一致性记录不发布。其中的页面保留仓库的相对链接,因此指向 `../packages/**` 或指向被排除的 `persistence-changes/` 记录的链接只在检出中可解析。 ## 开发 diff --git a/scripts/stage-dsh-docs.spec.ts b/scripts/stage-dsh-docs.spec.ts index ca9d5c56ab..6e83137ed6 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 { cleanStagedDshDocs, stageDshDocs } from './stage-dsh-docs.ts' +import { cleanStagedDshDocs, publishedDocuments, stageDshDocs } from './stage-dsh-docs.ts' const roots: string[] = [] @@ -23,26 +23,36 @@ afterEach(() => { }) describe('documentation staging', () => { - it('copies the complete documentation tree', async () => { + it('copies published pages, assets, and upgrade guides 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, 'upgrade-guide/v0.1.0/change/guide.md') + write(source, 'upgrade-guide/v0.1.0/change/guide.zh.md') + write(source, 'upgrade-guide/v0.1.0/change/guide.i18n.yaml') 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) for (const copied of [ - 'guide/index.md', 'guide/index.i18n.yaml', 'images/diagram.png', - 'postmortem/incident.md', 'AGENTS.md', - 'persistence-changes/v1/changes.md', 'persistence-changes/v1/record.json', + 'guide/index.md', 'guide/index.zh.md', 'images/diagram.png', + 'upgrade-guide/v0.1.0/change/guide.md', 'upgrade-guide/v0.1.0/change/guide.zh.md', ]) { expect(existsSync(join(destination, copied)), copied).toBe(true) } + for (const excluded of [ + 'guide/index.i18n.yaml', 'upgrade-guide/v0.1.0/change/guide.i18n.yaml', + 'postmortem', 'AGENTS.md', 'persistence-changes', 'i18n', + ]) { + expect(existsSync(join(destination, excluded)), excluded).toBe(false) + } }) it('replaces a previous copy instead of merging into it', async () => { @@ -51,7 +61,7 @@ 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) @@ -65,4 +75,14 @@ describe('documentation staging', () => { 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 9d16c0f455..90fcdffb51 100644 --- a/scripts/stage-dsh-docs.ts +++ b/scripts/stage-dsh-docs.ts @@ -1,8 +1,9 @@ -/** Stage the repository documentation inside the published `dsh` package. */ +/** Stage the published documentation inside the published `dsh` package. */ -import { cp, rm } from 'node:fs/promises' -import { join } 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)) @@ -11,8 +12,35 @@ const REPOSITORY_ROOT = fileURLToPath(new URL('..', import.meta.url)) const DOCS_DIRECTORY = join(REPOSITORY_ROOT, 'docs') const STAGED_DIRECTORY = join(REPOSITORY_ROOT, 'apps', 'cli', 'docs') +/** 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' + +/** Upgrade guides reach an installed reader and are not on the website. */ +const ALWAYS_PUBLISHED_DIRECTORY = 'upgrade-guide' + /** - * Replace a package's `docs` directory with the repository documentation. + * Source-relative Markdown paths the documentation website publishes. + * + * The npm payload carries the same pages plus the upgrade guides, so a new + * internal document under `docs/` reaches neither surface 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. * * 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` @@ -20,14 +48,20 @@ const STAGED_DIRECTORY = join(REPOSITORY_ROOT, 'apps', 'cli', 'docs') * release set both publish the same files. * @param source - Documentation root to copy; defaults to the repository `docs`. * @param destination - Package directory to replace; defaults to `apps/cli/docs`. - * @returns Resolves after the destination holds the copy. + * @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 = DOCS_DIRECTORY, destination: string = STAGED_DIRECTORY, + published: ReadonlySet = publishedDocuments(), ): Promise { await rm(destination, { recursive: true, force: true }) - await cp(source, destination, { recursive: true }) + 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) + } } /** @@ -39,6 +73,40 @@ export async function cleanStagedDshDocs(destination: string = STAGED_DIRECTORY) await rm(destination, { recursive: true, force: true }) } +/** + * 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) + continue + } + if (path.endsWith(EXCLUDED_SUFFIX)) continue + if (path.endsWith('.md') && !published.has(path) && !isUpgradeGuide(path)) continue + files.push(path) + } + } + await walk('') + return files.sort() +} + +/** + * Whether one path belongs to a shipped upgrade guide. + * @param path - Source-relative documentation path. + * @returns whether the path lives under the upgrade-guide tree. + */ +function isUpgradeGuide(path: string): boolean { + return path.startsWith(`${ALWAYS_PUBLISHED_DIRECTORY}/`) +} + if (import.meta.main) { if (process.argv.includes('--clean')) await cleanStagedDshDocs() else await stageDshDocs() From b64dc28edb8a388912270d6a680a2262b958f8a9 Mon Sep 17 00:00:00 2001 From: turtle1999 Date: Mon, 19 Oct 2026 23:42:30 +0800 Subject: [PATCH 006/193] feat(agent-preset): ship plugin artwork skill with creator mode --- .../dsh-official-plugin-artwork/SKILL.md | 40 +++++++------------ apps/cli/tests/web-agent-presets.e2e.ts | 6 +-- packages/preset/agent-preset/README.i18n.yaml | 4 +- packages/preset/agent-preset/README.md | 2 +- packages/preset/agent-preset/README.zh.md | 2 +- .../references/host-plugin.md | 2 +- .../templates/decoration/icon.svg | 4 +- .../templates/mcp/icon.svg | 8 ++-- .../skills/plugin-artwork/SKILL.md | 34 ++++++++++++++++ 9 files changed, 62 insertions(+), 40 deletions(-) create mode 100644 packages/preset/agent-preset/skills/plugin-artwork/SKILL.md diff --git a/.agents/skills/dsh-official-plugin-artwork/SKILL.md b/.agents/skills/dsh-official-plugin-artwork/SKILL.md index 809409c8b5..5a42030a2c 100644 --- a/.agents/skills/dsh-official-plugin-artwork/SKILL.md +++ b/.agents/skills/dsh-official-plugin-artwork/SKILL.md @@ -1,41 +1,29 @@ --- name: dsh-official-plugin-artwork -description: Draw and review official DeepSeek Harness plugin icons and optional feature previews, including experimental plugins. Use for package artwork and PluginArtwork glyphs; covers semantic references, proportions, lettering, transparency, localization, package metadata, and designer review. Not for toolbar or action icons. +description: Draw and review official DeepSeek Harness plugin icons and optional feature previews, including experimental plugins. Use for package artwork and PluginArtwork glyphs; covers official references and palettes, feature previews, package metadata gates, and designer review, and links the shared drawing rules of plugin-artwork. Not for toolbar or action icons. --- # Official plugin artwork -Draw recognizable artwork that belongs beside the existing official icons. Official and official experimental plugins share this visual language; the UI label communicates experimental status. This guidance does not replace designer approval. +Read and follow [plugin artwork](../../../packages/preset/agent-preset/skills/plugin-artwork/SKILL.md) first; Creator mode ships it for all plugins, and it owns the subject, drawing, and export rules. Its Review section describes Creator bundles installed through Plugin Manager; for official plugins, follow its comparison step and replace its other steps with [Review and verify](#review-and-verify) below. Official and official experimental plugins share one visual language; the UI label communicates experimental status. This guidance does not replace designer approval. ## Optional feature previews -Before drawing a larger image for the top of an official bundle's detail document, read and follow [adding a plugin feature preview](../../../docs/cookbook/adding-a-plugin-preview.md). It owns optionality, image count, design canvas, position, language variants, file location, and acceptance. The guide also owns the embedded-raster exception for SVG previews; small icons remain geometry-only. The icon dimensions below do not apply to previews. Inspect the real feature and preserve its produced assets. +Before drawing a larger image for the top of an official bundle's detail document, read and follow [adding a plugin feature preview](../../../docs/cookbook/adding-a-plugin-preview.md). It owns optionality, image count, design canvas, position, language variants, file location, and acceptance. The guide also owns the embedded-raster exception for SVG previews; small icons remain geometry-only. The icon dimensions in plugin artwork do not apply to previews. Inspect the real feature and preserve its produced assets. -## Establish the subject +## Official references and owners -- Inspect the actual feature, its output, and its owning manifest before drawing. A badge-producing skill may need a tag, not a medal. Reuse designer-supplied assets; do not invent a brand mark or change product names, identifiers, or unrelated icons without approval. -- Read the [existing artwork](../../../packages/client/ui-primitives/src/plugin-artwork.tsx) and the nearest relevant package SVGs. Borrow one coherent treatment, not every reference's effects. Action icons remain with [dsh-client-ui-ux](../dsh-client-ui-ux/SKILL.md#reuse-before-adding). -- Check every affected entry, list, detail, and component row. Bundle artwork and a component's name and icon can have separate metadata owners; changing one does not update the other. - -## Draw and refine - -1. **Start simple.** Use one dominant subject and only the detail needed to explain it. Related capabilities can share a metaphor; distinguish them through proportions, silhouette, or palette rather than extra panels, symbols, or badges. -2. **Judge optical size.** Use `width="36" height="36" viewBox="0 0 36 36"`. Center the artwork with deliberate margins; 18–22 units is a useful starting extent, not a requirement for every silhouette or wide text tag. The [page renderer](../../../packages/client/ui-plugin-manager/src/client/PluginManagerPage.tsx) owns display sizes and outer tile framing. Do not bake that tile into the SVG or enlarge a toolbar glyph to fill it. -3. **Keep geometry consistent.** Balance the main subject and secondary element. Align repeated marks and corners; keep tails and handles intentional. Refine one requested dimension at a time without changing approved parts. -4. **Use restrained color by default.** Balance saturation and brightness with neighboring icons; prefer existing palettes such as [Auto Authorization Review](../../../packages/experimental/auto-review/icon.svg) and [Codex subagent](../../../packages/subagent/subagent-codex/icon.svg). Reserve unusually vivid, bright, or neon colors for approved brand requirements, essential contrast, or explicit designer direction. Tune saturation separately from hue and lightness; do not make artwork gray or muddy merely to reduce saturation. Keep flat fills or short gradients and limited layering; avoid glow, drop shadows, glossy highlights, and emoji. Page CSS still uses semantic theme tokens. -5. **Align lettering by visible ink.** Use consistent letterforms, cap height, baseline, weight, and spacing. Compare rendered stroke edges, not just path coordinates: stroke caps and joins can make equal coordinates appear unequal. Export lettering as paths without a font dependency, and keep it readable at actual size. -6. **Make empty areas genuinely transparent.** A hollow lens must reveal the background, including where it overlaps another shape. Remove the underlying fill with a local mask or cutout; do not substitute a white or dark disk. Check both themes. - -## Export at the owner - -- Use the manifest's `icon` path and publish its resources. Update intentional bundle/component copies together; verify localized display names and descriptions when those are in scope. Do not change the feature's produced assets merely to change its plugin icon. -- Package images render through ``: export self-contained SVG geometry with local, uniquely named gradient, mask, and clip references. No scripts, event handlers, animation, external images/styles, fonts, or `foreignObject`. Inline React artwork needs per-instance IDs; separate image documents do not share IDs. +- Reuse designer-supplied assets. Do not invent a brand mark or change product names, identifiers, or unrelated icons without approval. +- Read the [existing artwork](../../../packages/client/ui-primitives/src/plugin-artwork.tsx) and the nearest relevant package SVGs. Prefer existing palettes such as [Auto Authorization Review](../../../packages/experimental/auto-review/icon.svg) and [Codex subagent](../../../packages/subagent/subagent-codex/icon.svg). For official plugins, the explicit direction that permits vivid colors comes from the designer, and brand requirements need approval. Action icons remain with [dsh-client-ui-ux](../dsh-client-ui-ux/SKILL.md#reuse-before-adding). +- The [page renderer](../../../packages/client/ui-plugin-manager/src/client/PluginManagerPage.tsx) owns display sizes and outer tile framing. SVG artwork may use literal colors; page CSS uses semantic theme tokens. +- Update intentional bundle/component icon copies together, check the detail page as well as rows, and verify localized display names and descriptions when those are in scope. +- Inline React artwork needs per-instance IDs; separate image documents do not share IDs. - Keep the asset change local. Do not add runtime dependencies, primitive exports, or renderer special cases just to display it. + ## Review and verify -1. Show a few numbered alternatives before polishing uncertain geometry. Preserve their labels through review and apply the chosen version; an existing file or generated draft does not establish designer approval. Keep comparison artifacts in a gitignored directory, not the product package. -2. Compare old and new artwork beside unchanged references in light and dark themes, at actual row/card sizes as well as enlarged. Check balance, lettering, empty space, clipping, and image decoding. -3. Run `pnpm run verify-package-meta` for [package metadata and SVG artwork](../../../scripts/verify-package-meta.ts), `pnpm run constraints` for the canonical package payload, and `pnpm run verify-official-bundle-catalog`. Regenerate a stale catalog with `pnpm run gen-official-bundle-catalog`, never by hand. Structural checks do not replace visual review. -4. Build affected artifacts and inspect the real page through `dsh web`. Batch approved refinements before restarting a metadata-caching Host, then verify the entry and nested component rows in both themes. -5. Follow the repository's UI testing policy and [record-browser-gif](../record-browser-gif/SKILL.md) for a GUI PR. Obtain designer approval before landing new glyphs. Record reusable drawing principles here, not the history of rejected drafts. +1. Before polishing uncertain geometry, show a few numbered alternatives and keep their numbers through designer review; existing files and generated drafts do not establish approval. Keep comparison artifacts in a gitignored directory, not the product package. +2. Run `pnpm run verify-package-meta` for [package metadata and SVG artwork](../../../scripts/verify-package-meta.ts), `pnpm run constraints` for the canonical package payload, and `pnpm run verify-official-bundle-catalog`. Regenerate a stale catalog with `pnpm run gen-official-bundle-catalog`, never by hand. Structural checks do not replace visual review. +3. Build affected artifacts and inspect the real page through `dsh web`. Batch approved refinements before restarting a metadata-caching Host, then verify the entry and nested component rows in both themes. +4. Follow the repository's UI testing policy and [record-browser-gif](../record-browser-gif/SKILL.md) for a GUI PR. Obtain designer approval before landing new glyphs. Record reusable drawing principles in [plugin artwork](../../../packages/preset/agent-preset/skills/plugin-artwork/SKILL.md), not the history of rejected drafts. diff --git a/apps/cli/tests/web-agent-presets.e2e.ts b/apps/cli/tests/web-agent-presets.e2e.ts index 9bc37e78b2..246ef778d2 100644 --- a/apps/cli/tests/web-agent-presets.e2e.ts +++ b/apps/cli/tests/web-agent-presets.e2e.ts @@ -517,10 +517,10 @@ describe('the shipped Web composition', () => { expect(tools).not.toContain('str_replace_editor') expect(ctx.commands.find(handle.agent, 'goal')).toBeDefined() - // The preset's own authoring skill registers into ITS layer of the host - // registry: the cordis agent's view carries it, the global view does not. + // The preset's own authoring skills register into ITS layer of the host + // registry: the cordis agent's view carries them, the global view does not. const scoped = (await ctx.skills.list({ scope: handle.agent })).map(skill => skill.name) - expect(scoped).toContain('editing-cordis-compositions') + expect(scoped).toEqual(expect.arrayContaining(['editing-cordis-compositions', 'plugin-artwork'])) expect((await ctx.skills.list()).map(skill => skill.name)).not.toContain('editing-cordis-compositions') // The persona is `standard`'s, pinned verbatim so the two declarations diff --git a/packages/preset/agent-preset/README.i18n.yaml b/packages/preset/agent-preset/README.i18n.yaml index a2b45603c1..1ca83596b3 100644 --- a/packages/preset/agent-preset/README.i18n.yaml +++ b/packages/preset/agent-preset/README.i18n.yaml @@ -15,8 +15,8 @@ en: d152484eb41ac6b4 zh: b3ad7867f23dad1c /deepseek-ai-dsh-agent-preset/use-this-package: - en: 3e243b0ee04dd23f - zh: 832841c35b57180a + en: bdef487baf915690 + zh: 2d697a502ba09342 /deepseek-ai-dsh-agent-preset/understand-the-implementation: en: 7ac55a3a3af4fcef zh: 95fe36abba794967 diff --git a/packages/preset/agent-preset/README.md b/packages/preset/agent-preset/README.md index 243d771ec7..b86b56c0cb 100644 --- a/packages/preset/agent-preset/README.md +++ b/packages/preset/agent-preset/README.md @@ -47,7 +47,7 @@ Define an Agent’s child plugins in ordinary Cordis YAML. Declare several prese The declaration row’s `id` addresses Loader edits; `config.id` is the preset identity saved by sessions. Child entry IDs may be omitted and assigned by Loader. -The package also ships the `skills/` directory that creator mode mounts through `skill-filesystem`: `agent-experience` (tool descriptions and efficient context loading), `cordis-plugin-development` (a short procedure with `references/` read on demand and copyable `templates/` bundles), `editing-cordis-compositions`, and `cordis-composition-reference`, whose `references/packages.md` is generated by `scripts/gen-plugin-packages.ts` and freshness-gated in `doc-sync`. The two procedure skills tell the agent to read inspection results first, then the package README under the `packageDir` that `Config.listConfigs` reports, then built `lib/` or checkout sources. Every shipped `SKILL.md`, rendered as a `skill` tool result, stays under the 8192-character threshold above which the standard preset's tool-result pruner trims results. +The package also ships the `skills/` directory that creator mode mounts through `skill-filesystem`: `agent-experience` (tool descriptions and efficient context loading), `cordis-plugin-development` (a short procedure with `references/` read on demand and copyable `templates/` bundles), `editing-cordis-compositions`, `plugin-artwork` (plugin icon drawing and review), and `cordis-composition-reference`, whose `references/packages.md` is generated by `scripts/gen-plugin-packages.ts` and freshness-gated in `doc-sync`. The two procedure skills tell the agent to read inspection results first, then the package README under the `packageDir` that `Config.listConfigs` reports, then built `lib/` or checkout sources. Every shipped `SKILL.md`, rendered as a `skill` tool result, stays under the 8192-character threshold above which the standard preset's tool-result pruner trims results. Edit `agent-experience` in [skills/agent-experience/SKILL.md](skills/agent-experience/SKILL.md). The repository discovery path, `.agents/skills/agent-experience/SKILL.md`, is a relative symbolic link to this file; the published package contains the regular file. diff --git a/packages/preset/agent-preset/README.zh.md b/packages/preset/agent-preset/README.zh.md index c7bde250e4..3ecba91769 100644 --- a/packages/preset/agent-preset/README.zh.md +++ b/packages/preset/agent-preset/README.zh.md @@ -47,7 +47,7 @@ kind: "package-reference" 声明行的 `id` 是 Loader 编辑地址;`config.id` 是会话保存的 preset 标识符。子插件可省略行 ID,由 Loader 分配。 -本包还随包出货创造模式通过 `skill-filesystem` 挂载的 `skills/` 目录:`agent-experience`(工具描述与高效上下文加载)、`cordis-plugin-development`(简短流程,配合按需读取的 `references/` 与可复制的 `templates/` 组合包)、`editing-cordis-compositions`,以及 `cordis-composition-reference`,后者的 `references/packages.md` 由 `scripts/gen-plugin-packages.ts` 生成并在 `doc-sync` 中做新鲜度门禁。两个流程 skill 让 agent 先读检查结果,再读 `Config.listConfigs` 报告的 `packageDir` 下的包 README,最后读构建后的 `lib/` 或 checkout 源码。每个出货的 `SKILL.md` 作为 `skill` 工具结果渲染后都保持在 8192 字符阈值之下,标准 preset 的工具结果修剪器超过该阈值才会裁剪。 +本包还随包出货创造模式通过 `skill-filesystem` 挂载的 `skills/` 目录:`agent-experience`(工具描述与高效上下文加载)、`cordis-plugin-development`(简短流程,配合按需读取的 `references/` 与可复制的 `templates/` 组合包)、`editing-cordis-compositions`、`plugin-artwork`(插件图标绘制与评审),以及 `cordis-composition-reference`,后者的 `references/packages.md` 由 `scripts/gen-plugin-packages.ts` 生成并在 `doc-sync` 中做新鲜度门禁。两个流程 skill 让 agent 先读检查结果,再读 `Config.listConfigs` 报告的 `packageDir` 下的包 README,最后读构建后的 `lib/` 或 checkout 源码。每个出货的 `SKILL.md` 作为 `skill` 工具结果渲染后都保持在 8192 字符阈值之下,标准 preset 的工具结果修剪器超过该阈值才会裁剪。 在 [skills/agent-experience/SKILL.md](skills/agent-experience/SKILL.md) 编辑 `agent-experience`。仓库发现路径 `.agents/skills/agent-experience/SKILL.md` 是指向该文件的相对符号链接;发布包包含普通文件。 diff --git a/packages/preset/agent-preset/skills/cordis-plugin-development/references/host-plugin.md b/packages/preset/agent-preset/skills/cordis-plugin-development/references/host-plugin.md index fe88761ae4..127dd88a8a 100644 --- a/packages/preset/agent-preset/skills/cordis-plugin-development/references/host-plugin.md +++ b/packages/preset/agent-preset/skills/cordis-plugin-development/references/host-plugin.md @@ -31,7 +31,7 @@ A Host-only bundle needs no dependencies, install scripts, or build tool: Plugin Manager and Settings read `meta.title` and `meta.description` from exported locale JSON and an icon from exported resources without activating plugins. Complete this checklist before installation: - Write a recognizable title and a description of the capability in `locale/en.json` under `meta.title` and `meta.description`. Add the same fields for the user's language and other supported locales, such as `locale/zh.json`; do not leave template copy unrelated to the delivered plugin. -- Create an original icon or use artwork whose license permits redistribution, retaining any required attribution. +- Create an original icon or use artwork whose license permits redistribution, retaining any required attribution. Load the `plugin-artwork` skill before drawing or revising an icon. - Export `./locale/*.json` and `./icon`; retain existing runtime exports. Keep the patch, locales, icon, and every runtime file in `files`, updating it whenever you add modules or assets. For a packed or published bundle, verify the actual packed file list. Local directory installation links the checkout instead, so check the files directly; `files` does not filter a linked directory. - Check that the icon is a valid image of the declared format and satisfies the path and size limits below. An accepted filename alone does not establish that its bytes render. diff --git a/packages/preset/agent-preset/skills/cordis-plugin-development/templates/decoration/icon.svg b/packages/preset/agent-preset/skills/cordis-plugin-development/templates/decoration/icon.svg index 5c7caf5c24..d73576eb5a 100644 --- a/packages/preset/agent-preset/skills/cordis-plugin-development/templates/decoration/icon.svg +++ b/packages/preset/agent-preset/skills/cordis-plugin-development/templates/decoration/icon.svg @@ -1,3 +1,3 @@ - - + + diff --git a/packages/preset/agent-preset/skills/cordis-plugin-development/templates/mcp/icon.svg b/packages/preset/agent-preset/skills/cordis-plugin-development/templates/mcp/icon.svg index 4a2710adeb..0a18ff1314 100644 --- a/packages/preset/agent-preset/skills/cordis-plugin-development/templates/mcp/icon.svg +++ b/packages/preset/agent-preset/skills/cordis-plugin-development/templates/mcp/icon.svg @@ -1,5 +1,5 @@ - - - - + + + + diff --git a/packages/preset/agent-preset/skills/plugin-artwork/SKILL.md b/packages/preset/agent-preset/skills/plugin-artwork/SKILL.md new file mode 100644 index 0000000000..9a3facb175 --- /dev/null +++ b/packages/preset/agent-preset/skills/plugin-artwork/SKILL.md @@ -0,0 +1,34 @@ +--- +name: plugin-artwork +description: Use when drawing, revising, or reviewing the icon of a plugin or bundle shown in Plugin Manager; covers the subject, proportions, color, lettering, transparency, SVG export, and visual review. Not for toolbar or action icons. +--- + +# Plugin artwork + +Draw an icon that is recognizable at row size and belongs beside the icons of installed DSH plugins. The display checklist in the `cordis-plugin-development` skill's host-plugin reference owns manifest exports, accepted formats, size limits, and installed-display checks. + +## Establish the subject + +- Inspect the feature, its output, and its manifest before drawing. A badge-producing skill may need a tag, not a medal. Reuse assets the user supplies; do not invent a brand mark for a third-party product or copy one whose license does not permit redistribution. +- Read the icons of two or three installed plugins with related purposes. `cordis_inspect_query` `Config.listConfigs` reports each entry's `packageDir`; a top-level `icon` in its `package.json`, else the `./icon` export (`.//icon` for a subpath plugin), names the file. Plugins that Plugin Manager draws itself have no icon file. Borrow one coherent treatment, not every reference's effects. +- Plugin Manager resolves the icon and display metadata separately for the bundle package and for each plugin its patch inserts; a subpath plugin or another package does not inherit the bundle's icon. Update every one you intend to change, and only those. + +## Draw and refine + +1. **Start simple.** Use one dominant subject and only the detail needed to explain it. Related capabilities can share a subject; distinguish them through proportions, silhouette, or palette rather than extra panels, symbols, or badges. +2. **Judge optical size.** Use `width="36" height="36" viewBox="0 0 36 36"`. Center the artwork with deliberate margins; 18–22 units is a useful starting extent, not a requirement for every silhouette or wide text tag. Plugin Manager chooses display sizes and draws the surrounding tile, so do not draw a tile or background in the SVG or enlarge a toolbar glyph to fill it. +3. **Keep geometry consistent.** Balance the main subject and secondary element. Align repeated marks and corners; keep tails and handles intentional. Refine one requested dimension at a time without changing approved parts. +4. **Use restrained color.** Match the saturation and brightness of neighboring installed icons. Reserve unusually vivid, bright, or neon colors for brand requirements, essential contrast, or explicit user direction. Tune saturation separately from hue and lightness; do not make artwork gray or muddy merely to reduce saturation. Keep flat fills or short gradients and limited layering; avoid glow, drop shadows, glossy highlights, and emoji. +5. **Align lettering by visible ink.** Use consistent letterforms, cap height, baseline, weight, and spacing. Compare rendered stroke edges, not just path coordinates: stroke caps and joins can make equal coordinates appear unequal. Draw lettering as paths and keep it readable at actual size. +6. **Make empty areas genuinely transparent.** A hollow lens must reveal the background, including where it overlaps another shape. Remove the underlying fill with a local mask or cutout; do not substitute a white or dark disk. Check both themes. + +## Export + +- Plugin Manager renders the icon through ``, which silently drops what it cannot load. Export self-contained SVG geometry with local, uniquely named gradient, mask, and clip references. Use no scripts, event handlers, `