From 09d9609a28e5a201d3113a1854049ead07c31ebe Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:23:51 +0800 Subject: [PATCH] Merge pull request #8837 from deepseek-harness/chore/node-24-22-3-floor chore(deps): raise the Node.js floor to 24.22.3 --- ...cutable-sdk-runtime-distribution.i18n.yaml | 4 +- ...ile-executable-sdk-runtime-distribution.md | 2 +- ...-executable-sdk-runtime-distribution.zh.md | 2 +- ...2026-08-27-outbound-proxy-policy.i18n.yaml | 4 +- .../2026-08-27-outbound-proxy-policy.md | 2 +- .../2026-08-27-outbound-proxy-policy.zh.md | 2 +- .../2026-07-26-ci-failover-runbook.i18n.yaml | 4 +- .../process/2026-07-26-ci-failover-runbook.md | 2 +- .../2026-07-26-ci-failover-runbook.zh.md | 2 +- ...026-10-05-pr-artifact-typechecks.i18n.yaml | 4 +- .../2026-10-05-pr-artifact-typechecks.md | 4 +- .../2026-10-05-pr-artifact-typechecks.zh.md | 4 +- ...0-11-build-artifacts-check-split.i18n.yaml | 4 +- .../2026-10-11-build-artifacts-check-split.md | 2 +- ...26-10-11-build-artifacts-check-split.zh.md | 2 +- ...2026-10-15-node-24-runtime-floor.i18n.yaml | 12 +- .../2026-10-15-node-24-runtime-floor.md | 14 +- .../2026-10-15-node-24-runtime-floor.zh.md | 14 +- .../workflows/build-exe-for-python-sdk.yml | 2 +- .../workflows/build-exe-for-ssh-helper.yml | 2 +- .../workflows/build-preview-cloudflare.yml | 2 +- .github/workflows/ci-master.yml | 2 +- .github/workflows/ci-python.yml | 4 +- .github/workflows/ci-windows.yml | 4 +- .github/workflows/ci.yml | 15 +- .../workflows/cua-helper-package-macos.yml | 2 +- .github/workflows/desktop-publish.yml | 10 +- .github/workflows/desktop-rollout.yml | 10 +- .github/workflows/docs-pages.yml | 2 +- .github/workflows/e2e.yml | 2 +- .github/workflows/macos-intel-package.yml | 4 +- .github/workflows/macos-package.yml | 4 +- .../workflows/node-addon-system-release.yml | 6 +- .github/workflows/node-addon-system.yml | 2 +- .github/workflows/pi-ai-provider-e2e.yml | 2 +- .github/workflows/pr-check-after-approve.yml | 2 +- .github/workflows/pr-check-on-base-branch.yml | 2 +- .github/workflows/pr-check-on-head-branch.yml | 4 +- .github/workflows/publish-ssh-helper.yml | 2 +- .github/workflows/release-publish.yml | 2 +- .github/workflows/release-vendor-publish.yml | 2 +- .github/workflows/release-vendor.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/sandbox.yml | 4 +- .github/workflows/windows-package.yml | 4 +- AGENTS.md | 2 +- apps/cli/package.json | 4 +- apps/desktop/package.json | 2 +- .../electron-updater/verified-versions.json | 4 +- docs/development.i18n.yaml | 8 +- docs/development.md | 4 +- docs/development.zh.md | 4 +- .../node-24-22-3/guide.i18n.yaml | 16 ++ .../v0.2.3-alpha.1/node-24-22-3/guide.md | 17 ++ .../v0.2.3-alpha.1/node-24-22-3/guide.zh.md | 17 ++ package.json | 2 +- packages/boot/app-boot/package.json | 2 +- .../src/profile-resolution/resolver.ts | 2 +- packages/boot/hmr/package.json | 2 +- packages/boot/hmr/src/package-manifest.ts | 2 +- packages/experimental/liveshare/package.json | 2 +- .../experimental/subagent-oar/package.json | 2 +- .../src/imports/vm-modules.ts | 2 +- packages/util/http-proxy/package.json | 2 +- packages/web/web-fetch-http/package.json | 2 +- pnpm-lock.yaml | 217 +++++++++--------- pnpm-workspace.yaml | 33 +-- python/development.i18n.yaml | 4 +- python/development.md | 2 +- python/development.zh.md | 2 +- python/sdk-runtime/README.i18n.yaml | 4 +- python/sdk-runtime/README.md | 2 +- python/sdk-runtime/README.zh.md | 2 +- .../src/deepseek_harness_runtime/__init__.py | 4 +- scripts/build-exe-for-python-sdk.spec.ts | 15 +- scripts/build-exe-for-python-sdk.ts | 31 +-- scripts/ci-compatible-selfhosted.spec.ts | 16 +- scripts/ci-workflow.spec.ts | 2 +- scripts/preview-workflow.spec.ts | 2 +- scripts/primary-runtime/lock.json | 12 +- scripts/publint-all.spec.ts | 2 +- scripts/run-gates.spec.ts | 33 ++- scripts/run-gates.ts | 12 +- scripts/wine-windows-gates.sh | 7 +- vendor/loader/package.json | 2 +- 85 files changed, 393 insertions(+), 294 deletions(-) create mode 100644 docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.i18n.yaml create mode 100644 docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.md create mode 100644 docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.zh.md diff --git a/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.i18n.yaml b/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.i18n.yaml index 280cafd0db..8b9c2ebf42 100644 --- a/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.i18n.yaml +++ b/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.i18n.yaml @@ -24,8 +24,8 @@ en: 4a55602284b462e8 zh: 762c4f8b719f179c /agent-note-single-file-executable-sdk-runtime-distribution-single-exe/decision/python-sdk-distribution-two-carriers-exe-for-production-node-for-development: - en: b2a740a1ab7a5002 - zh: a48be6ca6fc65912 + en: ea49431552a3f35d + zh: 355a26743e2e9a2d /agent-note-single-file-executable-sdk-runtime-distribution-single-exe/decision/naming-lineage: en: 31a5aecb8bf828bb zh: 2dffb6fd2e0f8194 diff --git a/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.md b/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.md index 0a3b958af9..a10c55ff84 100644 --- a/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.md +++ b/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.md @@ -56,7 +56,7 @@ CI: [`.github/workflows/build-exe-for-python-sdk.yml`](../../../../.github/workf ### Python SDK distribution: two carriers, exe for production, node for development -The Python SDK lives at [`python/`](../../../../python/README.md): `python/sdk` is the client and `python/sdk-runtime` is the runtime carrier package. The runtime package's data directory holds the build-injected platform executable with its required `-rg` sidecar, lightweight download metadata and Office skills, and optional macOS helper, plus the build-injected `runtime/node/` closure tree for repository development. `resolve_bundled_launch_args()` selects the executable by default; explicit `DSH_RUNTIME_MODE=node` runs `runtime/node/runtime-bootstrap.mjs` on system Node 24.9 or newer. The node carrier never enters wheel distributions, and neither carrier uses a checked-in complete `cordis.yml`. +The Python SDK lives at [`python/`](../../../../python/README.md): `python/sdk` is the client and `python/sdk-runtime` is the runtime carrier package. The runtime package's data directory holds the build-injected platform executable with its required `-rg` sidecar, lightweight download metadata and Office skills, and optional macOS helper, plus the build-injected `runtime/node/` closure tree for repository development. `resolve_bundled_launch_args()` selects the executable by default; explicit `DSH_RUNTIME_MODE=node` runs `runtime/node/runtime-bootstrap.mjs` on system Node `^24.22.3 || >=26.13.1`. The node carrier never enters wheel distributions, and neither carrier uses a checked-in complete `cordis.yml`. [`scripts/build-python-release.py`](../../../../scripts/build-python-release.py) reads the authoritative `X.Y.Z` or prerelease version from the repository root `package.json`, converts prereleases to their PEP 440 spelling, and stages both packages at that wheel version, with `deepseek-harness-sdk` depending exactly on the matching `deepseek-harness-runtime-bin`. An optional `python-v` release tag is a consistency assertion and is rejected when it differs from the repository version; the source `pyproject.toml` development sentinel never determines a release version. Staging also carries the repository license into both wheels and the third-party notices into the bundled runtime wheel. The SDK is a `py3-none-any` wheel; each wheel-only runtime package contains one exe, lightweight resource metadata and skills, and its architecture-matched ripgrep sidecar, and the macOS wheel also contains its architecture-matched spawn helper. Runtime wheels use `py3-none-manylinux_2_28_x86_64`, `py3-none-manylinux_2_28_aarch64`, `py3-none-macosx_14_0_arm64`, `py3-none-macosx_14_0_x86_64`, or `py3-none-win_amd64`; the Hatch hook rejects sdists, universal tags, mixed-platform payloads, missing or extra sidecars, and unsupported platforms. Both macOS tags deliberately declare a conservative 14.0 installation floor: the packaged Node 24 executables declare macOS 13.5, and the x64 PTY helper declares 10.7, but release validation proves the complete payload only against the 14.0 wheel claim rather than promising each observed component minimum as a supported host. The two macOS wheels remain architecture-specific; no universal2 wheel is published. diff --git a/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.zh.md b/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.zh.md index d7ef76d0e8..f4e83707aa 100644 --- a/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.zh.md +++ b/.agents/notes/implemented/architecture/2026-07-10-single-file-executable-sdk-runtime-distribution.zh.md @@ -56,7 +56,7 @@ CI 使用 [`.github/workflows/build-exe-for-python-sdk.yml`](../../../../.github ### Python SDK 分发:双载体,exe 用于生产,`node` 用于开发 -Python SDK 位于 [`python/`](../../../../python/README.zh.md):`python/sdk` 是客户端,`python/sdk-runtime` 是运行时载体包。运行时包的数据目录包含构建注入的平台可执行文件及其必需的 `-rg` 伴随文件、轻量下载元数据与 Office skills 和可选的 macOS helper,以及供仓库开发使用的构建注入 `runtime/node/` 闭包树。`resolve_bundled_launch_args()` 默认选择可执行文件;显式设置 `DSH_RUNTIME_MODE=node` 会在系统 Node 24.9 或更高版本上运行 `runtime/node/runtime-bootstrap.mjs`。node 载体从不进入 wheel 分发,两种载体都不使用检入的完整 `cordis.yml`。 +Python SDK 位于 [`python/`](../../../../python/README.zh.md):`python/sdk` 是客户端,`python/sdk-runtime` 是运行时载体包。运行时包的数据目录包含构建注入的平台可执行文件及其必需的 `-rg` 伴随文件、轻量下载元数据与 Office skills 和可选的 macOS helper,以及供仓库开发使用的构建注入 `runtime/node/` 闭包树。`resolve_bundled_launch_args()` 默认选择可执行文件;显式设置 `DSH_RUNTIME_MODE=node` 会在系统 Node `^24.22.3 || >=26.13.1` 上运行 `runtime/node/runtime-bootstrap.mjs`。node 载体从不进入 wheel 分发,两种载体都不使用检入的完整 `cordis.yml`。 [`scripts/build-python-release.py`](../../../../scripts/build-python-release.py) 从仓库根目录的 `package.json` 读取权威的 `X.Y.Z` 或预发布版本,把预发布版本转换为 PEP 440 写法,并以该 wheel 包版本暂存两个包,让 `deepseek-harness-sdk` 精确依赖匹配版本的 `deepseek-harness-runtime-bin`。可选的 `python-v` 发布标签只是一项一致性断言,与仓库版本不同时会被拒绝;源码 `pyproject.toml` 中的开发占位版本从不决定发布版本。暂存过程还会把仓库许可证放入两个 wheel 包,并把第三方声明放入内置运行时 wheel 包。SDK 是 `py3-none-any` wheel 包;每个只提供 wheel 包的运行时包都包含一个 exe、轻量资源元数据与 skills 及架构匹配的 ripgrep 伴随文件,macOS wheel 包还包含与其架构匹配的 spawn helper。运行时 wheel 包使用 `py3-none-manylinux_2_28_x86_64`、`py3-none-manylinux_2_28_aarch64`、`py3-none-macosx_14_0_arm64`、`py3-none-macosx_14_0_x86_64` 或 `py3-none-win_amd64`;Hatch 钩子拒绝 sdist、通用标签、混合平台载荷、伴随文件缺失或多余,以及不支持的平台。两个 macOS 标签都会特意声明保守的 14.0 安装下限:打包后的 Node 24 可执行文件声明 macOS 13.5,x64 PTY helper 声明 10.7,但发布验证只按照 14.0 wheel 声明证明完整载荷,不会把各组件实测的最低版本承诺为受支持宿主。两个 macOS wheel 包仍按架构分别发布,不发布 universal2 wheel 包。 diff --git a/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.i18n.yaml b/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.i18n.yaml index 636bd6815c..088ad5e38b 100644 --- a/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.i18n.yaml +++ b/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.i18n.yaml @@ -9,8 +9,8 @@ en: 6379f0a2522f4c46 zh: c45ffeb5089be274 /agent-note-one-outbound-proxy-policy-installed-before-anything-can-request/decision: - en: 5168301af05473ed - zh: 30b840cb41998bee + en: ab8483f25f1a8561 + zh: ef0934416e44d2af /agent-note-one-outbound-proxy-policy-installed-before-anything-can-request/alternatives-considered: en: df6c078f239a11f5 zh: 914da26836aa373b diff --git a/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.md b/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.md index 338f7f192e..9d91a3b304 100644 --- a/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.md +++ b/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.md @@ -48,7 +48,7 @@ This accepts a documented seam. Such a context matches bypass entries by Node's **SDK transports need independent verification.** The OTLP exporter selects `http-exporter-transport` on Node, which posts through `node:http` and bypasses the global fetch dispatcher; a `globalThis.fetch` reference in its browser implementation does not prove Node routing. The [E2B removal](../simplification/2026-09-11-remove-e2b-providers.md) retires a second SDK transport integration without changing this requirement. -**Telemetry stays direct on purpose.** Routing it needs one of two things, and both cost more than the channel is worth. An `http.Agent` reads the environment through `proxyEnv`, which arrived in Node 22.21 and 24.5 — above the runtime floor at adoption, so Node 22.19, 22.20, and 24.0–24.4 stayed direct regardless, and the proxy package would have to keep a `createNodeHttpAgent` export for a path that worked on some runtimes. The Node 24.9 floor removes this API gap; routing still needs independent transport integration and must preserve compression. Replacing the transport with the SDK's `fetch` delegate covers every runtime, but that delegate has no compression, and the shipped `base` bundle enables gzip: a realistic OTLP batch measures 6.4x smaller with it. An attempt that refused `exporter.compression` instead broke every test that boots the shipped bundle, and one that gzipped at the serializer worked but put transport code in a telemetry plugin to keep it working. +**Telemetry stays direct on purpose.** Routing it needs one of two things, and both cost more than the channel is worth. An `http.Agent` reads the environment through `proxyEnv`, which arrived in Node 22.21 and 24.5 — above the runtime floor at adoption, so Node 22.19, 22.20, and 24.0–24.4 stayed direct regardless, and the proxy package would have to keep a `createNodeHttpAgent` export for a path that worked on some runtimes. The supported Node 24.22.3 floor removes this API gap; routing still needs independent transport integration and must preserve compression. Replacing the transport with the SDK's `fetch` delegate covers every runtime, but that delegate has no compression, and the shipped `base` bundle enables gzip: a realistic OTLP batch measures 6.4x smaller with it. An attempt that refused `exporter.compression` instead broke every test that boots the shipped bundle, and one that gzipped at the serializer worked but put transport code in a telemetry plugin to keep it working. Weighed against that, telemetry is the one outbound channel whose loss costs the user nothing: no tool, no model request, and no session depends on it, and an export that cannot connect is already dropped silently. A user behind a mandatory proxy is left exactly where they were before this change rather than regressed. `egress.spec.ts` now asserts the exclusion — an SDK upgrade that moved the exporter onto `fetch` would start routing telemetry through a proxy silently, and that case is what makes it visible. diff --git a/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.zh.md b/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.zh.md index 78b019ae71..502fe1cd0a 100644 --- a/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.zh.md +++ b/.agents/notes/implemented/architecture/2026-08-27-outbound-proxy-policy.zh.md @@ -48,7 +48,7 @@ URL 层策略未受影响:仅 `http(s)`、禁止内嵌凭据、长度上限与 **SDK 传输需要独立验证。** OTLP 导出器在 Node 上选择 `http-exporter-transport`,通过 `node:http` 投递并绕过全局 fetch dispatcher;其浏览器实现中的 `globalThis.fetch` 引用不能证明 Node 路由。[E2B 移除决策](../simplification/2026-09-11-remove-e2b-providers.zh.md)撤下另一项 SDK 传输集成,但不改变这一要求。 -**遥测的直连是有意为之。** 要让它走代理只有两条路,代价都超过这条通道本身的价值。`http.Agent` 通过 `proxyEnv` 读取环境,而该选项自 Node 22.21 与 24.5 才有——高于采用此决策时的运行时下限,因此 Node 22.19、22.20 与 24.0–24.4 无论如何仍是直连,而代理包还得为一条只在当时部分运行时生效的路径保留 `createNodeHttpAgent` 导出。Node 24.9 下限消除了这一 API 缺口;代理路由仍需要独立集成传输,并保留压缩。改用 SDK 的 `fetch` delegate 替换传输可以覆盖所有运行时,但该 delegate 没有压缩能力,而随附的 `base` bundle 启用了 gzip:实测一批真实规模的 OTLP 数据启用后体积只有 1/6.4。曾有一版转而在加载期拒绝 `exporter.compression`,结果凡是启动随附 bundle 的测试全部失败;另一版在 serializer 处 gzip 确实能跑通,但代价是把传输层代码塞进了遥测插件。 +**遥测的直连是有意为之。** 要让它走代理只有两条路,代价都超过这条通道本身的价值。`http.Agent` 通过 `proxyEnv` 读取环境,而该选项自 Node 22.21 与 24.5 才有——高于采用此决策时的运行时下限,因此 Node 22.19、22.20 与 24.0–24.4 无论如何仍是直连,而代理包还得为一条只在当时部分运行时生效的路径保留 `createNodeHttpAgent` 导出。受支持的 Node 24.22.3 下限消除了这一 API 缺口;代理路由仍需要独立集成传输,并保留压缩。改用 SDK 的 `fetch` delegate 替换传输可以覆盖所有运行时,但该 delegate 没有压缩能力,而随附的 `base` bundle 启用了 gzip:实测一批真实规模的 OTLP 数据启用后体积只有 1/6.4。曾有一版转而在加载期拒绝 `exporter.compression`,结果凡是启动随附 bundle 的测试全部失败;另一版在 serializer 处 gzip 确实能跑通,但代价是把传输层代码塞进了遥测插件。 与之相比,遥测是唯一一条丢失了对用户毫无代价的出网通道:没有任何工具、模型请求或会话依赖它,而连不上的导出本就被静默丢弃。处在强制代理后的用户,只是停留在本次改动之前的状态,而不是被弄坏。`egress.spec.ts` 现在断言这一排除——若某次 SDK 升级把导出器挪到 `fetch` 上,遥测就会开始静默走代理,而该用例正是让这件事暴露出来的东西。 diff --git a/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.i18n.yaml b/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.i18n.yaml index 2b557568b7..d40fbcab24 100644 --- a/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.i18n.yaml +++ b/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.i18n.yaml @@ -24,8 +24,8 @@ en: f5ec9b53f6fd483a zh: f6a22f29bf13e66e /agent-note-ci-failover-runbook-hosted-pools-in-house-pool/capacity-during-failover: - en: 3dffe12ecf2356c2 - zh: 7e2385fcabab1398 + en: acd7524d5ead1686 + zh: e7cfc563a67aadce /agent-note-ci-failover-runbook-hosted-pools-in-house-pool/capacity-during-failover/switch-back: en: 63cf911019db8d2f zh: 5eb3903b0ceb30db diff --git a/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.md b/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.md index df7ccd68e6..29ee652acd 100644 --- a/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.md +++ b/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.md @@ -40,7 +40,7 @@ The two switches are independent: flip only the one whose platform is degraded. ## Capacity during failover -Capacity includes the master standby, main-CI jobs, and three release-rehearsal jobs for each eligible PR or master push while the Linux switch is set. Each trusted PR also adds two Node compatibility jobs at gate concurrency one, including the build-backed Node 24.9 leg and cold temporary runtime downloads. The release rehearsal workflows cancel superseded runs within each workflow/ref group under the [cancellation policy](../../../../.github/workflows/ci.yml); different refs can still add concurrent build, pack, and install load. Check current CPU, memory, disk, and queue pressure before extending self-hosted operation; extra registrations on this VM add scheduling slots, not machine resources. Do not infer spare capacity from the standby alone. When host resources permit extra registrations, use an org registration token (org Settings → Actions → Runners → New runner). Clone an existing runner directory **excluding its identity files** — `rsync -a --exclude '.runner*' --exclude '.credentials*' --exclude '_diag' --exclude '_work' / /` (the globs also catch `.runner_migrated`/`.credentials_migrated`, which GitHub writes on migrated runners and which equally trigger the already-configured refusal) — then run `config.sh` (copying `.runner`/`.credentials` verbatim makes it refuse with "already configured"), and **start the listener**: `sudo ./svc.sh install ubuntu && sudo ./svc.sh start`. Registration alone leaves the runner offline; a started service adds a scheduling slot, not CPU or memory. +Capacity includes the master standby, main-CI jobs, and three release-rehearsal jobs for each eligible PR or master push while the Linux switch is set. Each trusted PR also adds two Node compatibility jobs at gate concurrency one, including the build-backed Node 24.22.3 leg and cold temporary runtime downloads. The release rehearsal workflows cancel superseded runs within each workflow/ref group under the [cancellation policy](../../../../.github/workflows/ci.yml); different refs can still add concurrent build, pack, and install load. Check current CPU, memory, disk, and queue pressure before extending self-hosted operation; extra registrations on this VM add scheduling slots, not machine resources. Do not infer spare capacity from the standby alone. When host resources permit extra registrations, use an org registration token (org Settings → Actions → Runners → New runner). Clone an existing runner directory **excluding its identity files** — `rsync -a --exclude '.runner*' --exclude '.credentials*' --exclude '_diag' --exclude '_work' / /` (the globs also catch `.runner_migrated`/`.credentials_migrated`, which GitHub writes on migrated runners and which equally trigger the already-configured refusal) — then run `config.sh` (copying `.runner`/`.credentials` verbatim makes it refuse with "already configured"), and **start the listener**: `sudo ./svc.sh install ubuntu && sudo ./svc.sh start`. Registration alone leaves the runner offline; a started service adds a scheduling slot, not CPU or memory. ### Switch back diff --git a/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.zh.md b/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.zh.md index d17a434556..57e4e4748e 100644 --- a/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.zh.md +++ b/.agents/notes/implemented/process/2026-07-26-ci-failover-runbook.zh.md @@ -40,7 +40,7 @@ Status: implemented ## 切换期间的容量 -Linux 开关启用期间,容量需覆盖 master 热备、主 CI 作业,以及每个符合条件的 PR 或 master 推送的三个发布演练作业。每个可信 PR 还会增加两个门禁并发度为一的 Node 兼容性作业,包括需要构建的 Node 24.9 条目和冷临时运行时下载。发布演练工作流依据[取消策略](../../../../.github/workflows/ci.yml)取消各工作流/引用组内被取代的运行;不同引用仍可能增加并发构建、打包和安装负载。延长自托管运行前,检查当前 CPU、内存、磁盘和队列压力;同一虚拟机上新增注册只增加调度槽位,不增加机器资源。不能只依据热备负载推断空闲容量。主机资源允许增加注册实例时,使用组织级注册 token(组织 Settings → Actions → Runners → New runner)。复制现有 runner 目录时**必须排除身份文件**——`rsync -a --exclude '.runner*' --exclude '.credentials*' --exclude '_diag' --exclude '_work' / /`(通配同时排除 `.runner_migrated`/`.credentials_migrated`——GitHub 会在迁移过的运行器上写入这些文件,它们同样会触发 already-configured 拒绝)——再跑 `config.sh`(原样拷贝 `.runner`/`.credentials` 会使其以 "already configured" 拒绝),然后**启动监听器**:`sudo ./svc.sh install ubuntu && sudo ./svc.sh start`。仅注册不会上线;启动服务增加的是调度槽位,而非 CPU 或内存。 +Linux 开关启用期间,容量需覆盖 master 热备、主 CI 作业,以及每个符合条件的 PR 或 master 推送的三个发布演练作业。每个可信 PR 还会增加两个门禁并发度为一的 Node 兼容性作业,包括需要构建的 Node 24.22.3 条目和冷临时运行时下载。发布演练工作流依据[取消策略](../../../../.github/workflows/ci.yml)取消各工作流/引用组内被取代的运行;不同引用仍可能增加并发构建、打包和安装负载。延长自托管运行前,检查当前 CPU、内存、磁盘和队列压力;同一虚拟机上新增注册只增加调度槽位,不增加机器资源。不能只依据热备负载推断空闲容量。主机资源允许增加注册实例时,使用组织级注册 token(组织 Settings → Actions → Runners → New runner)。复制现有 runner 目录时**必须排除身份文件**——`rsync -a --exclude '.runner*' --exclude '.credentials*' --exclude '_diag' --exclude '_work' / /`(通配同时排除 `.runner_migrated`/`.credentials_migrated`——GitHub 会在迁移过的运行器上写入这些文件,它们同样会触发 already-configured 拒绝)——再跑 `config.sh`(原样拷贝 `.runner`/`.credentials` 会使其以 "already configured" 拒绝),然后**启动监听器**:`sudo ./svc.sh install ubuntu && sudo ./svc.sh start`。仅注册不会上线;启动服务增加的是调度槽位,而非 CPU 或内存。 ### 切回 diff --git a/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.i18n.yaml b/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.i18n.yaml index f7726e4c5a..4bc2668145 100644 --- a/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.i18n.yaml +++ b/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.i18n.yaml @@ -9,8 +9,8 @@ en: e5c984fa32cc5e69 zh: 25d5742b2106d830 /agent-note-pr-artifact-builds-and-aggregate-typescript-checks/decision: - en: 2b047b7d8ffaaeb9 - zh: 035e1a99cb0ffe84 + en: e2a114f00135c33d + zh: 4185b33b87f72949 /agent-note-pr-artifact-builds-and-aggregate-typescript-checks/alternatives-considered: en: f61da066f9ddcd62 zh: 816fd6e0063017cd diff --git a/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.md b/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.md index 00378de709..b0b280e36a 100644 --- a/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.md +++ b/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.md @@ -20,9 +20,9 @@ The Python executable builder selects `build:artifacts` artifact compilation wit PR artifact builds in CI invoke the root manifest's `build:artifacts`; a PR that edits these root manifest scripts activates the separate native-addon platform matrix, a trade-off [the build split](2026-10-11-build-artifacts-check-split.md) records. The vendor rehearsal and benchmark lanes invoke the internal build helpers directly. -Benchmark sample counts stay fixed. The Linux artifact consumers emit artifacts only; the aggregate test and script type checks belong to the master lanes, and lint plus duplication run in their own lane, which compiles package declarations because oxlint's type-aware rules read them, so a red lint no longer costs a rerun of the snapshot and artifact consumers. The two compatibility cases run one job at a time; both x64 Python runtime targets start after the keyless Python SDK job succeeds in CI Python. Five Linux lanes, one compatibility job, three Windows lanes, and the Python SDK job permit at most eleven worker jobs initially. Once the SDK job finishes, those five Linux lanes, one compatibility job, and three Windows lanes run beside the two runtime targets, permitting at most eleven. Each runtime caller's plan and wheel stages precede its target and each use one job. This permits runtime validation to overlap the Node 24.9 build within the eleven-job ceiling. Coverage partitions reuse compact file-cost metadata within their platform and runner pool. Parallel release packing uses pnpm's existing bounded scheduler; serial publication keeps family order. +Benchmark sample counts stay fixed. The Linux artifact consumers emit artifacts only; the aggregate test and script type checks belong to the master lanes, and lint plus duplication run in their own lane, which compiles package declarations because oxlint's type-aware rules read them, so a red lint no longer costs a rerun of the snapshot and artifact consumers. The two compatibility cases run one job at a time; both x64 Python runtime targets start after the keyless Python SDK job succeeds in CI Python. Five Linux lanes, one compatibility job, three Windows lanes, and the Python SDK job permit at most eleven worker jobs initially. Once the SDK job finishes, those five Linux lanes, one compatibility job, and three Windows lanes run beside the two runtime targets, permitting at most eleven. Each runtime caller's plan and wheel stages precede its target and each use one job. This permits runtime validation to overlap the Node 24.22.3 build within the eleven-job ceiling. Coverage partitions reuse compact file-cost metadata within their platform and runner pool. Parallel release packing uses pnpm's existing bounded scheduler; serial publication keeps family order. -Each Node version runs the same eight source compatibility specs in one serial Vitest invocation. Both file parallelism and the CLI worker limit are fixed to one, and the gate sets `VITEST_MAX_WORKERS=1` because that environment variable overrides Vitest's CLI limit. Files retain fork isolation; the build-backed Node 24.9 lazy-search smoke keeps its separate build dependency. The original seven-spec paired samples preserve all 253 assertion outcomes and reduce startup-only median time from 11.52 to 8.69 seconds, without increasing owned descendant-process peak. +Each Node version runs the same eight source compatibility specs in one serial Vitest invocation. Both file parallelism and the CLI worker limit are fixed to one, and the gate sets `VITEST_MAX_WORKERS=1` because that environment variable overrides Vitest's CLI limit. Files retain fork isolation; the build-backed Node 24.22.3 lazy-search smoke keeps its separate build dependency. The original seven-spec paired samples preserve all 253 assertion outcomes and reduce startup-only median time from 11.52 to 8.69 seconds, without increasing owned descendant-process peak. ## Alternatives considered diff --git a/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.zh.md b/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.zh.md index 45ea09f6f6..bba44561d8 100644 --- a/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.zh.md +++ b/.agents/notes/implemented/process/2026-10-05-pr-artifact-typechecks.zh.md @@ -20,9 +20,9 @@ Python executable builder 在验证 runtime closure 后,通过 `--build-artifa CI 的 PR 产物构建调用 root manifest 中的 `build:artifacts`;修改 root manifest 中这些 script 的 PR 会激活独立的 native-addon 平台矩阵,[构建拆分](2026-10-11-build-artifacts-check-split.zh.md)记录这一取舍。vendor 演练与 benchmark lane 直接调用内部 build helper。 -benchmark sample 数量保持固定。Linux 产物消费者只产出产物;聚合的 test 与 script 类型检查归 master lane;lint 与 duplication 单独占用一个 lane,该 lane 会先编译包声明(oxlint 的类型感知规则要读它们),因此 lint 变红不再让 snapshot 与 artifact 消费者整体重跑。两个 compatibility case 每次运行一个 job;两个 x64 Python runtime target 都在 CI Python 中于 keyless Python SDK job 成功后启动。五个 Linux lane、一个 compatibility job、三个 Windows lane 与 Python SDK job,初始最多占用十一个 worker job。SDK job 完成后,这五个 Linux lane、一个 compatibility job 与三个 Windows lane 与两个 runtime target 并行,最多占用十一个 job。每个 runtime 调用方的 plan 与 wheel 阶段先于其 target,各占一个 job。这允许 runtime 验证与 Node 24.9 构建重叠,同时保持十一个 job 的上限。覆盖率分区在各自的平台和 runner pool 内复用精简的文件成本元数据。并行 release 打包使用 pnpm 现有的有界调度器;串行发布保持 family 顺序。 +benchmark sample 数量保持固定。Linux 产物消费者只产出产物;聚合的 test 与 script 类型检查归 master lane;lint 与 duplication 单独占用一个 lane,该 lane 会先编译包声明(oxlint 的类型感知规则要读它们),因此 lint 变红不再让 snapshot 与 artifact 消费者整体重跑。两个 compatibility case 每次运行一个 job;两个 x64 Python runtime target 都在 CI Python 中于 keyless Python SDK job 成功后启动。五个 Linux lane、一个 compatibility job、三个 Windows lane 与 Python SDK job,初始最多占用十一个 worker job。SDK job 完成后,这五个 Linux lane、一个 compatibility job 与三个 Windows lane 与两个 runtime target 并行,最多占用十一个 job。每个 runtime 调用方的 plan 与 wheel 阶段先于其 target,各占一个 job。这允许 runtime 验证与 Node 24.22.3 构建重叠,同时保持十一个 job 的上限。覆盖率分区在各自的平台和 runner pool 内复用精简的文件成本元数据。并行 release 打包使用 pnpm 现有的有界调度器;串行发布保持 family 顺序。 -每个 Node 版本在一次串行 Vitest 调用中运行相同的八个 source compatibility spec。文件并行和 CLI worker 上限均固定为一,gate 还设置 `VITEST_MAX_WORKERS=1`,因为该环境变量会覆盖 Vitest 的 CLI 上限。文件保持 fork 隔离;依赖构建的 Node 24.9 lazy-search smoke 保留独立的 build 依赖。原来七个 spec 的成对样本保持全部 253 个 assertion outcome,将启动开销比较的 median 从 11.52 秒降至 8.69 秒,且不增加所拥有 descendant process 的峰值。 +每个 Node 版本在一次串行 Vitest 调用中运行相同的八个 source compatibility spec。文件并行和 CLI worker 上限均固定为一,gate 还设置 `VITEST_MAX_WORKERS=1`,因为该环境变量会覆盖 Vitest 的 CLI 上限。文件保持 fork 隔离;依赖构建的 Node 24.22.3 lazy-search smoke 保留独立的 build 依赖。原来七个 spec 的成对样本保持全部 253 个 assertion outcome,将启动开销比较的 median 从 11.52 秒降至 8.69 秒,且不增加所拥有 descendant process 的峰值。 ## Alternatives considered diff --git a/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.i18n.yaml b/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.i18n.yaml index 611f01dd80..a54dd03f99 100644 --- a/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.i18n.yaml +++ b/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.i18n.yaml @@ -21,8 +21,8 @@ en: 6a1b4ed0d9910133 zh: f32c6882208ded71 /agent-note-split-build-artifacts-and-build-check-with-build-running-both-concurrently/decision/callers: - en: 130636aa0395c746 - zh: 0314fe0490f64410 + en: 754af17fdaf8282c + zh: 9a31ebe528785e15 /agent-note-split-build-artifacts-and-build-check-with-build-running-both-concurrently/decision/measurements: en: b3a753ac2aab6073 zh: 19cbd0e32751896f diff --git a/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.md b/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.md index 2a49a391dd..a9a76a3012 100644 --- a/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.md +++ b/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.md @@ -51,7 +51,7 @@ Each command does only its own job. | `dev:web` ([`scripts/dev-web.ts`](../../../../scripts/dev-web.ts)), `dev:desktop` (`apps/desktop/scripts/dev.ts`) | `build:artifacts` | None before launch; after `dev:web` launches, its `tsc -b tsconfig.client.json --watch` keeps checking the Client aggregate root program | | Prerequisite step of `lint`, `lint:fix`, `doc-typecheck`, and the CI Typert contracts gate | Source-only Typert generation before Host package compilation (`compile-referenced-projects.ts host-contracts`), without any bundle | None | | CI node 24 / build (`check:ci:build`), whose restored output `node 24 / snapshots and artifacts` (`check:ci:consumers-prebuilt`) and `node 24 / web snapshots /2` consume, windows node 24 / build & observational (`check:ci:windows-blocking`) | `build` | Yes, the two required lanes | -| CI node-compat 24.9 | `build:artifacts` (through run-gates) | None | +| CI node-compat 24.22.3 | `build:artifacts` (through run-gates) | None | | CI python runtime | `build-exe-for-python-sdk.ts --build-artifacts` | None | | PR rehearsals in `e2e.yml` and `release.yml` | `pnpm run build:artifacts --profile official` | None | | `build-preview-cloudflare.yml` | `pnpm run build:artifacts` | None | diff --git a/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.zh.md b/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.zh.md index 195bee3bef..2373b28aa5 100644 --- a/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.zh.md +++ b/.agents/notes/implemented/process/2026-10-11-build-artifacts-check-split.zh.md @@ -51,7 +51,7 @@ Status: implemented | `dev:web`([`scripts/dev-web.ts`](../../../../scripts/dev-web.ts))、`dev:desktop`(`apps/desktop/scripts/dev.ts`) | `build:artifacts` | 启动前无;`dev:web` 启动后的 `tsc -b tsconfig.client.json --watch` 持续检查 Client 聚合根程序 | | `lint`、`lint:fix`、`doc-typecheck` 与 CI 的 Typert contracts gate 的前置步骤 | 仅源码 Typert 生成后进行 Host 包编译(`compile-referenced-projects.ts host-contracts`),不含任何 bundle | 无 | | CI node 24 / build(`check:ci:build`,`node 24 / snapshots and artifacts`(`check:ci:consumers-prebuilt`)与 `node 24 / web snapshots /2` 恢复并消费其产物)、windows node 24 / build & observational(`check:ci:windows-blocking`) | `build` | 有,两个必需 lane | -| CI node-compat 24.9 | `build:artifacts`(经 run-gates) | 无 | +| CI node-compat 24.22.3 | `build:artifacts`(经 run-gates) | 无 | | CI python runtime | `build-exe-for-python-sdk.ts --build-artifacts` | 无 | | `e2e.yml`、`release.yml` 的 PR 演练 | `pnpm run build:artifacts --profile official` | 无 | | `build-preview-cloudflare.yml` | `pnpm run build:artifacts` | 无 | diff --git a/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.i18n.yaml b/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.i18n.yaml index 16e75091eb..787f3756d9 100644 --- a/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.i18n.yaml +++ b/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.i18n.yaml @@ -9,11 +9,11 @@ en: 1e45546d7452029f zh: d99966ac42bb193f /agent-note-node-runtime-floor-and-compatibility-coverage/decision: - en: 13b84da1ca9bbb1f - zh: 5bf45cf6f742cd5a + en: 582c4e09cac8dae9 + zh: 9c09b8fce011ecdd /agent-note-node-runtime-floor-and-compatibility-coverage/consequences: - en: 224ce4b13f297f8b - zh: 1bb5f8ebdf3243b3 + en: 6b16198e89927132 + zh: 8b28e6e053fbe900 /agent-note-node-runtime-floor-and-compatibility-coverage/alternatives-considered: - en: 413d1133689bd55c - zh: fc77301991e1f425 + en: 54fb33cb0b6055e7 + zh: cab9ecf206cd49e1 diff --git a/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.md b/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.md index b43845d147..c1a3af9fe1 100644 --- a/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.md +++ b/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.md @@ -10,24 +10,26 @@ The root `engines.node` range promises that the installed workspace supports eac ## Decision -Set `engines.node` to `>=24.9.0`. Node 24.9 is the minimum for DSH and its development carriers, including the experimental OAR subagent integration, whose `@botiverse/oar` library requires Node 24. This supersedes the [Node 22.19 floor](../../archived/process/2026-07-06-node-engine-floor.md); its Node 23 exclusion remains satisfied, and the declaration policy below remains narrower than the runtime floor. Migration instructions live in the [upgrade guide](../../../../docs/upgrade-guide/v0.2.1-rc.2/node-24/guide.md). +Set `engines.node` to `^24.22.3 || >=26.13.1`. Node 24.22.3 is the Node 24 minimum for DSH and its development carriers, including the experimental OAR subagent integration, whose `@botiverse/oar` library requires Node 24. It is a Node security release and the Node version embedded in Electron 44.11.4 and later, so source, npm, desktop, and Python SDK executable installations run the same minimum Node release. Node 24.22.3 bundles undici 7.30.2; Node 26.13.1 is the first Node 26 release whose bundled undici, 8.12.4, carries the same security fixes, so the range excludes earlier Node 26 releases. The Python SDK executable pins exactly this release in `scripts/build-exe-for-python-sdk.ts`, and the desktop primary runtime pins it in `scripts/primary-runtime/lock.json`. This supersedes the [Node 22.19 floor](../../archived/process/2026-07-06-node-engine-floor.md); its Node 23 exclusion remains satisfied, and the declaration policy below remains narrower than the runtime floor. Migration instructions live in the [Node 24.9 upgrade guide](../../../../docs/upgrade-guide/v0.2.1-rc.2/node-24/guide.md) and the [Node 24.22.3 upgrade guide](../../../../docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.md). -The primary Node 24 jobs own complete typechecking and unit coverage. Focused compatibility jobs run on pinned Node 24.9 and Node 26. Node 24.9 supports the existing `import.meta.main` script entrypoints and native TypeScript stripping. Pinning 24.9 exercises this verified minimum and its v1 private module loader; the primary jobs track the latest Node 24 and exercise its v2 loader, introduced in 24.12.0. A floating `24` compatibility job would duplicate the primary loader coverage and stop testing the minimum. +The primary Node 24 jobs own complete typechecking and unit coverage. Focused compatibility jobs run on pinned Node 24.22.3 and Node 26. Pinning 24.22.3 exercises the verified minimum; the primary jobs track the latest Node 24. A floating `24` compatibility job would duplicate the primary coverage and stop testing the minimum. Every supported Node 24 release uses the v2 private module loader introduced in 24.12.0; the v1 loader adapters in `app-boot` and `hmr` are no longer reachable on a supported runtime. -The Node 24.9 compatibility job also builds artifacts and checks that the shipped Web CLI starts and disposes with full-text Session search disabled. Command-entrypoint, source-worker, Zstandard, source-launch, profile-resolution, and jsdom-storage checks run on both compatibility versions. Real-API e2e jobs stay on Node 24 because they validate provider integration. +The Node 24.22.3 compatibility job also builds artifacts and checks that the shipped Web CLI starts and disposes with full-text Session search disabled. It requests these build-backed gates with `DSH_NODE_COMPAT_BUILD=1`, which `run-gates` rejects on any other Node release. The Node version alone does not select them: the primary jobs can run the floor release and nest the same compatibility mode beside readers of restored build output, where a rebuild would delete the files under test. Command-entrypoint, source-worker, Zstandard, source-launch, profile-resolution, and jsdom-storage checks run on both compatibility versions. Real-API e2e jobs stay on Node 24 because they validate provider integration. The root, Web, and desktop projects retain `@types/node` on the 22.x line. Their current code needs no Node 24-only declarations. A narrower type API remains valid on the supported runtime and avoids unrelated declaration changes. Raise these declarations when a supported API requires them, and keep their major no newer than the runtime floor. The independently published native addon has its own runtime and type support policy. ## Consequences -- Node 22 installations must upgrade before running DSH. Packaged applications with an embedded runtime do not require a system Node upgrade. +- Node 22, Node 24 releases before 24.22.3, and Node 26 releases before 26.13.1 must upgrade before running DSH. Packaged applications with an embedded runtime do not require a system Node upgrade. - Supported runtimes provide `node:sqlite` and native TypeScript stripping without opt-in flags. The source CLI still uses its declared `tsx/esm` launcher. -- The compatibility graph retains both private loader interfaces used by supported Node versions. +- The compatibility graph exercises only the v2 private loader interface; the unreachable v1 adapters can be removed. - A future runtime-floor change updates `engines.node`, compatibility jobs, current documentation, this note, and an upgrade guide together. ## Alternatives considered - **Keep Node 22 support.** It excludes the OAR library from the supported installation. - **Use OAR’s declared minimum of Node 24.0.** Existing script entrypoints depend on `import.meta.main`, which Node 24.0 lacks. A dependency minimum alone does not establish the application minimum. -- **Test only the latest Node 24.** It does not exercise the minimum or the older private loader interface still used within the supported 24.x line. +- **Keep the Node 24.9 floor.** It admits Node releases older than the runtime embedded in the desktop application and Python SDK executable, and releases without the 24.22.3 security fixes. +- **Keep `>=24.22.3`.** It admits Node 26 releases before 26.13.1, whose bundled undici lacks the security fixes in Node 24.22.3. +- **Test only the latest Node 24.** It does not exercise the minimum. - **Raise Node declarations ahead of the minimum.** It allows code to compile against APIs that a supported runtime can lack. diff --git a/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.zh.md b/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.zh.md index 60fe3ac97a..83cd5c5904 100644 --- a/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.zh.md +++ b/.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.zh.md @@ -10,24 +10,26 @@ Status: implemented ## 决策 -将 `engines.node` 设为 `>=24.9.0`。Node 24.9 是 DSH 及其开发载体的下限,也允许实验性 OAR 子代理集成使用要求 Node 24 的 `@botiverse/oar` 库。此决策取代 [Node 22.19 下限](../../archived/process/2026-07-06-node-engine-floor.md);Node 23 仍被排除,下文的声明策略也仍比运行时下限更窄。迁移说明见[升级指南](../../../../docs/upgrade-guide/v0.2.1-rc.2/node-24/guide.zh.md)。 +将 `engines.node` 设为 `^24.22.3 || >=26.13.1`。Node 24.22.3 是 DSH 及其开发载体在 Node 24 上的下限,也允许实验性 OAR 子代理集成使用要求 Node 24 的 `@botiverse/oar` 库。它是 Node 安全版本,也是 Electron 44.11.4 及之后版本内嵌的 Node 版本,因此源码、npm、桌面应用和 Python SDK 可执行文件安装都运行同一个最低 Node 版本。Node 24.22.3 内置 undici 7.30.2;Node 26.13.1 是第一个内置 undici(8.12.4)包含同一批安全修复的 Node 26 版本,因此该范围排除更早的 Node 26 版本。Python SDK 可执行文件在 `scripts/build-exe-for-python-sdk.ts` 中精确固定此版本,桌面主运行时在 `scripts/primary-runtime/lock.json` 中固定此版本。此决策取代 [Node 22.19 下限](../../archived/process/2026-07-06-node-engine-floor.md);Node 23 仍被排除,下文的声明策略也仍比运行时下限更窄。迁移说明见 [Node 24.9 升级指南](../../../../docs/upgrade-guide/v0.2.1-rc.2/node-24/guide.zh.md)和 [Node 24.22.3 升级指南](../../../../docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.zh.md)。 -主要的 Node 24 任务负责完整的类型检查和单元测试覆盖率。聚焦的兼容性任务在固定的 Node 24.9 和 Node 26 上运行。Node 24.9 支持现有 `import.meta.main` 脚本入口和原生 TypeScript 类型剥离。固定 24.9 能验证这个已验证的下限及其 v1 私有模块加载器;主要任务跟随最新的 Node 24,验证 24.12.0 引入的 v2 加载器。浮动的 `24` 兼容性任务会重复主要任务的加载器覆盖,并停止验证下限。 +主要的 Node 24 任务负责完整的类型检查和单元测试覆盖率。聚焦的兼容性任务在固定的 Node 24.22.3 和 Node 26 上运行。固定 24.22.3 能验证这个已验证的下限;主要任务跟随最新的 Node 24。浮动的 `24` 兼容性任务会重复主要任务的覆盖,并停止验证下限。所有受支持的 Node 24 版本都使用 24.12.0 引入的 v2 私有模块加载器;`app-boot` 和 `hmr` 中的 v1 加载器适配代码在受支持的运行时上已不可达。 -Node 24.9 兼容性任务还构建产物,并检查随产品提供的 Web CLI 能在禁用全文 Session 搜索时启动和释放资源。command-entrypoint、source-worker、Zstandard、source-launch、profile-resolution 和 jsdom-storage 检查在两个兼容性版本上运行。真实 API 的 e2e 任务保留在 Node 24 上,因为它们验证的是提供方集成。 +Node 24.22.3 兼容性任务还构建产物,并检查随产品提供的 Web CLI 能在禁用全文 Session 搜索时启动和释放资源。它通过 `DSH_NODE_COMPAT_BUILD=1` 请求这些依赖构建的 gate,`run-gates` 会在其他 Node 版本上拒绝该请求。Node 版本本身不会触发它们:主要任务可能运行下限版本,并在读取已恢复构建产物的 gate 旁嵌套同一兼容性模式,此时重新构建会删除正在被测试的文件。command-entrypoint、source-worker、Zstandard、source-launch、profile-resolution 和 jsdom-storage 检查在两个兼容性版本上运行。真实 API 的 e2e 任务保留在 Node 24 上,因为它们验证的是提供方集成。 根项目、Web 和桌面项目将 `@types/node` 保留在 22.x 线。它们当前的代码不需要 Node 24 专属声明。较窄的类型 API 仍适用于受支持的运行时,也避免无关的声明变更。当受支持的 API 需要时再提升这些声明,并确保其主版本不高于运行时下限。独立发布的原生 addon 有自己的运行时和类型支持策略。 ## 后果 -- 使用 Node 22 的安装必须先升级,才能运行 DSH。内嵌运行时的打包应用不要求升级系统 Node。 +- 使用 Node 22、24.22.3 之前的 Node 24 版本或 26.13.1 之前的 Node 26 版本的安装必须先升级,才能运行 DSH。内嵌运行时的打包应用不要求升级系统 Node。 - 受支持的运行时无需启用标志即可使用 `node:sqlite` 和原生 TypeScript 类型剥离。源码 CLI 仍使用声明的 `tsx/esm` 启动器。 -- 兼容性任务图保留受支持 Node 版本使用的两种私有加载器接口。 +- 兼容性任务图只验证 v2 私有加载器接口;不可达的 v1 适配代码可以删除。 - 后续提升运行时下限时,必须一起更新 `engines.node`、兼容性任务、当前文档、本文和升级指南。 ## 考虑过的替代方案 - **保留 Node 22 支持。** 这会将 OAR 库排除在受支持的安装之外。 - **采用 OAR 声明的 Node 24.0 下限。** 现有脚本入口依赖 `import.meta.main`,而 Node 24.0 缺少该功能。仅凭依赖下限无法确定应用下限。 -- **只验证最新的 Node 24。** 这既不能验证下限,也不能验证受支持 24.x 系列仍使用的旧私有加载器接口。 +- **保留 Node 24.9 下限。** 这会允许早于桌面应用和 Python SDK 可执行文件内嵌运行时的 Node 版本,以及缺少 24.22.3 安全修复的版本。 +- **保留 `>=24.22.3`。** 这会允许 26.13.1 之前的 Node 26 版本,其内置 undici 缺少 Node 24.22.3 中的安全修复。 +- **只验证最新的 Node 24。** 这无法验证下限。 - **将 Node 声明提升至下限之上。** 这会允许代码使用受支持运行时可能缺少的 API 编译通过。 diff --git a/.github/workflows/build-exe-for-python-sdk.yml b/.github/workflows/build-exe-for-python-sdk.yml index 35f5a33df1..218ae14f64 100644 --- a/.github/workflows/build-exe-for-python-sdk.yml +++ b/.github/workflows/build-exe-for-python-sdk.yml @@ -191,7 +191,7 @@ jobs: # the Linux architectures sharing runner.os stay on separate caches. - uses: actions/setup-node@v7.0.0 with: - node-version: 24 + node-version: '^24.22.3' cache: pnpm - uses: actions/setup-python@v6.3.0 diff --git a/.github/workflows/build-exe-for-ssh-helper.yml b/.github/workflows/build-exe-for-ssh-helper.yml index 15455ddda2..774486b4ac 100644 --- a/.github/workflows/build-exe-for-ssh-helper.yml +++ b/.github/workflows/build-exe-for-ssh-helper.yml @@ -72,7 +72,7 @@ jobs: dest: ${{ runner.temp }}/setup-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v6 with: - node-version: 24 + node-version: '^24.22.3' cache: pnpm - uses: actions/cache@v4 with: diff --git a/.github/workflows/build-preview-cloudflare.yml b/.github/workflows/build-preview-cloudflare.yml index 88359f70f0..d0d2009318 100644 --- a/.github/workflows/build-preview-cloudflare.yml +++ b/.github/workflows/build-preview-cloudflare.yml @@ -24,7 +24,7 @@ permissions: pull-requests: write env: - PRIMARY_NODE_VERSION: '24' + PRIMARY_NODE_VERSION: '^24.22.3' # Cloudflare Pages project receiving the upload. Its preview deployments are # the surface the Access application protects; the project's production branch # is deliberately a name no deployment uses, so no unprotected URL exists. diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index de2ac59ae9..3acf0a9ad8 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -26,7 +26,7 @@ permissions: contents: read env: - PRIMARY_NODE_VERSION: '24' + PRIMARY_NODE_VERSION: '^24.22.3' # CI runs must never report to the production telemetry endpoint baked # into apps/cli/cordis.yml (AppCLIEntry disables the row when set). DSH_TELEMETRY_DISABLED: '1' diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml index baabdd143c..91ffe5d6d5 100644 --- a/.github/workflows/ci-python.yml +++ b/.github/workflows/ci-python.yml @@ -12,7 +12,7 @@ permissions: contents: read env: - PRIMARY_NODE_VERSION: '24' + PRIMARY_NODE_VERSION: '^24.22.3' # CI runs must never report to the production telemetry endpoint baked # into apps/cli/cordis.yml (AppCLIEntry disables the row when set). DSH_TELEMETRY_DISABLED: '1' @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: 24 + node-version: '^24.22.3' - name: Test production blame scoring run: uv run --python 3.10 --with-requirements .github/review-ownership/requirements.txt python -m unittest discover -s .github/review-ownership -p 'test_*.py' diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index 6d7d84b795..999a856fb2 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -12,7 +12,7 @@ permissions: contents: read env: - PRIMARY_NODE_VERSION: '24' + PRIMARY_NODE_VERSION: '^24.22.3' # CI runs must never report to the production telemetry endpoint baked # into apps/cli/cordis.yml (AppCLIEntry disables the row when set). DSH_TELEMETRY_DISABLED: '1' @@ -41,7 +41,7 @@ jobs: path: publisher-isolated - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Check preflights before dependency installation working-directory: publisher-isolated run: node apps/desktop-publisher/tests/preinstall.mjs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3c7cc71e9..464ba1bfb1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ permissions: contents: read env: - PRIMARY_NODE_VERSION: '24' + PRIMARY_NODE_VERSION: '^24.22.3' # CI runs must never report to the production telemetry endpoint baked # into apps/cli/cordis.yml (AppCLIEntry disables the row when set). DSH_TELEMETRY_DISABLED: '1' @@ -40,7 +40,7 @@ jobs: path: publisher-isolated - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Check preflights before dependency installation working-directory: publisher-isolated run: node apps/desktop-publisher/tests/preinstall.mjs @@ -1015,6 +1015,7 @@ jobs: env: DSH_GATE_CONCURRENCY: ${{ matrix.gate_concurrency }} DSH_NODE_COMPAT_SKIP_TYPECHECK: '1' + DSH_NODE_COMPAT_BUILD: ${{ matrix.build }} # A failed smoke aborts the remaining compatibility gates instead of # letting the build-backed legs run against an already-red aggregate. DSH_GATE_FAIL_FAST: '1' @@ -1023,16 +1024,18 @@ jobs: max-parallel: 1 matrix: include: - # Pin the supported floor, whose internal loader is v1. Primary - # jobs track latest 24 and exercise v2, introduced in 24.12.0. - - node: '24.9' - name: node 24.9 + # Pin the supported floor. Primary jobs track latest 24, which can be + # this same release, so only this leg requests the build-backed gates. + - node: '24.22.3' + name: node 24.22.3 runner: ubuntu-latest gate_concurrency: '1' + build: '1' - node: 26 name: node 26 runner: ubuntu-latest gate_concurrency: '1' + build: '' steps: - uses: actions/checkout@v7.0.1 with: diff --git a/.github/workflows/cua-helper-package-macos.yml b/.github/workflows/cua-helper-package-macos.yml index 65eb8e3cfc..9d2eadbaa2 100644 --- a/.github/workflows/cua-helper-package-macos.yml +++ b/.github/workflows/cua-helper-package-macos.yml @@ -65,7 +65,7 @@ jobs: if(!["test","production"].includes(process.env.DSH_PACKAGING_PRESET)) throw Error("Invalid preset");' - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' package-manager-cache: false - name: Record CUA helper build inputs id: build-inputs diff --git a/.github/workflows/desktop-publish.yml b/.github/workflows/desktop-publish.yml index 91eaf2d20e..a13d7ed461 100644 --- a/.github/workflows/desktop-publish.yml +++ b/.github/workflows/desktop-publish.yml @@ -49,7 +49,7 @@ jobs: - uses: pnpm/action-setup@v5.0.0 - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - run: pnpm install --frozen-lockfile - name: Resolve original package and machine id: route @@ -87,7 +87,7 @@ jobs: dest: ${{ runner.temp }}/publish-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Check local publication configuration before dependency installation working-directory: desktop-publisher run: node apps/desktop-publisher/src/preflight-desktop-publish-local.mjs @@ -132,7 +132,7 @@ jobs: dest: ${{ runner.temp }}/publish-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Check local publication configuration before dependency installation working-directory: desktop-publisher run: node apps/desktop-publisher/src/preflight-desktop-publish-local.mjs @@ -199,7 +199,7 @@ jobs: dest: ${{ runner.temp }}/website-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Check local publication configuration working-directory: website-publisher run: node apps/desktop-publisher/src/preflight-desktop-publish-local.mjs @@ -243,7 +243,7 @@ jobs: dest: ${{ runner.temp }}/website-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Check local publication configuration working-directory: website-publisher run: node apps/desktop-publisher/src/preflight-desktop-publish-local.mjs diff --git a/.github/workflows/desktop-rollout.yml b/.github/workflows/desktop-rollout.yml index c0fcc08d47..6f0fb9e8ba 100644 --- a/.github/workflows/desktop-rollout.yml +++ b/.github/workflows/desktop-rollout.yml @@ -49,7 +49,7 @@ jobs: - uses: pnpm/action-setup@v5.0.0 - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - run: pnpm --filter @deepseek-ai/dsh-desktop-publisher --fail-if-no-match install --prod --frozen-lockfile --ignore-scripts - name: Resolve original package and machine id: route @@ -89,7 +89,7 @@ jobs: dest: ${{ runner.temp }}/publish-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Check local publication configuration before dependency installation working-directory: desktop-rollout run: node apps/desktop-publisher/src/preflight-desktop-publish-local.mjs @@ -136,7 +136,7 @@ jobs: dest: ${{ runner.temp }}/publish-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Check local publication configuration before dependency installation working-directory: desktop-rollout run: node apps/desktop-publisher/src/preflight-desktop-publish-local.mjs @@ -188,7 +188,7 @@ jobs: dest: ${{ runner.temp }}/website-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Check local publication configuration working-directory: website-rollout run: node apps/desktop-publisher/src/preflight-desktop-publish-local.mjs @@ -241,7 +241,7 @@ jobs: dest: ${{ runner.temp }}/website-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Check local publication configuration working-directory: website-rollout run: node apps/desktop-publisher/src/preflight-desktop-publish-local.mjs diff --git a/.github/workflows/docs-pages.yml b/.github/workflows/docs-pages.yml index 6c6cc155d4..4aef62f751 100644 --- a/.github/workflows/docs-pages.yml +++ b/.github/workflows/docs-pages.yml @@ -21,7 +21,7 @@ permissions: contents: read env: - PRIMARY_NODE_VERSION: '24' + PRIMARY_NODE_VERSION: '^24.22.3' # Projected source links target the public repository, whose history can # differ from this workflow's source repository. This stays on master rather # than following the dispatched tag: that repository advances only to each diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 474ec71c21..b85fba17d8 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -73,7 +73,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: 24 + node-version: '^24.22.3' cache: pnpm - name: Install (immutable) diff --git a/.github/workflows/macos-intel-package.yml b/.github/workflows/macos-intel-package.yml index 5ba3666c5c..9b0b12a31f 100644 --- a/.github/workflows/macos-intel-package.yml +++ b/.github/workflows/macos-intel-package.yml @@ -113,7 +113,7 @@ jobs: dest: ${{ runner.temp }}/setup-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Configure persistent package caches env: DSH_DESKTOP_PACKAGE_CACHE_DIR: ${{ runner.tool_cache }}/dsh-desktop-package-cache @@ -202,7 +202,7 @@ jobs: dest: ${{ runner.temp }}/archive-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Configure persistent package caches env: DSH_DESKTOP_PACKAGE_CACHE_DIR: ${{ runner.tool_cache }}/dsh-desktop-package-cache diff --git a/.github/workflows/macos-package.yml b/.github/workflows/macos-package.yml index f7f0afddb9..2bf64d6d3c 100644 --- a/.github/workflows/macos-package.yml +++ b/.github/workflows/macos-package.yml @@ -112,7 +112,7 @@ jobs: dest: ${{ runner.temp }}/setup-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Configure persistent package caches env: DSH_DESKTOP_PACKAGE_CACHE_DIR: ${{ runner.tool_cache }}/dsh-desktop-package-cache @@ -199,7 +199,7 @@ jobs: dest: ${{ runner.temp }}/archive-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Configure persistent package caches env: DSH_DESKTOP_PACKAGE_CACHE_DIR: ${{ runner.tool_cache }}/dsh-desktop-package-cache diff --git a/.github/workflows/node-addon-system-release.yml b/.github/workflows/node-addon-system-release.yml index fef93c885b..7411e2a724 100644 --- a/.github/workflows/node-addon-system-release.yml +++ b/.github/workflows/node-addon-system-release.yml @@ -53,7 +53,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: 24 + node-version: '^24.22.3' cache: pnpm cache-dependency-path: pnpm-lock.yaml @@ -100,7 +100,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: 24 + node-version: '^24.22.3' cache: pnpm cache-dependency-path: pnpm-lock.yaml @@ -163,7 +163,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: 24 + node-version: '^24.22.3' registry-url: https://registry.npmjs.org - name: Download npm tarballs diff --git a/.github/workflows/node-addon-system.yml b/.github/workflows/node-addon-system.yml index c50411aeba..6ee8703a25 100644 --- a/.github/workflows/node-addon-system.yml +++ b/.github/workflows/node-addon-system.yml @@ -71,7 +71,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: 24 + node-version: '^24.22.3' cache: pnpm cache-dependency-path: pnpm-lock.yaml diff --git a/.github/workflows/pi-ai-provider-e2e.yml b/.github/workflows/pi-ai-provider-e2e.yml index 5a4774e705..ff8cb28d44 100644 --- a/.github/workflows/pi-ai-provider-e2e.yml +++ b/.github/workflows/pi-ai-provider-e2e.yml @@ -36,7 +36,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: 24 + node-version: '^24.22.3' cache: pnpm - name: Install (immutable) diff --git a/.github/workflows/pr-check-after-approve.yml b/.github/workflows/pr-check-after-approve.yml index 85e84e5c89..d23768d640 100644 --- a/.github/workflows/pr-check-after-approve.yml +++ b/.github/workflows/pr-check-after-approve.yml @@ -36,7 +36,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' package-manager-cache: false # The check app's token makes the review check run its own row instead of joining this workflow's suite. diff --git a/.github/workflows/pr-check-on-base-branch.yml b/.github/workflows/pr-check-on-base-branch.yml index b4a9a474e6..d7d8721713 100644 --- a/.github/workflows/pr-check-on-base-branch.yml +++ b/.github/workflows/pr-check-on-base-branch.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' package-manager-cache: false - uses: deepseek-harness/deepseek-harness-check@master diff --git a/.github/workflows/pr-check-on-head-branch.yml b/.github/workflows/pr-check-on-head-branch.yml index f2d36b10af..0b2bfb3230 100644 --- a/.github/workflows/pr-check-on-head-branch.yml +++ b/.github/workflows/pr-check-on-head-branch.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' package-manager-cache: false - id: check @@ -115,7 +115,7 @@ jobs: - uses: actions/setup-node@v7.0.0 if: steps.merge.outputs.merged == 'true' with: - node-version: '24' + node-version: '^24.22.3' package-manager-cache: false - name: Run the tree's pre-merge check diff --git a/.github/workflows/publish-ssh-helper.yml b/.github/workflows/publish-ssh-helper.yml index f6740f210c..6971be3335 100644 --- a/.github/workflows/publish-ssh-helper.yml +++ b/.github/workflows/publish-ssh-helper.yml @@ -57,7 +57,7 @@ jobs: dest: ${{ runner.temp }}/setup-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v6 with: - node-version: 24 + node-version: '^24.22.3' cache: pnpm - run: pnpm install --frozen-lockfile - uses: actions/download-artifact@v8 diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index ee9f04f2ac..5fe47786b0 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -24,7 +24,7 @@ permissions: actions: read env: - PRIMARY_NODE_VERSION: '24' + PRIMARY_NODE_VERSION: '^24.22.3' DSH_TELEMETRY_DISABLED: '1' jobs: diff --git a/.github/workflows/release-vendor-publish.yml b/.github/workflows/release-vendor-publish.yml index 25ec400b27..7823d74f6d 100644 --- a/.github/workflows/release-vendor-publish.yml +++ b/.github/workflows/release-vendor-publish.yml @@ -18,7 +18,7 @@ permissions: contents: read env: - PRIMARY_NODE_VERSION: '24' + PRIMARY_NODE_VERSION: '^24.22.3' DSH_TELEMETRY_DISABLED: '1' jobs: diff --git a/.github/workflows/release-vendor.yml b/.github/workflows/release-vendor.yml index f8bf170c1c..f5c75a354f 100644 --- a/.github/workflows/release-vendor.yml +++ b/.github/workflows/release-vendor.yml @@ -23,7 +23,7 @@ concurrency: cancel-in-progress: true env: - PRIMARY_NODE_VERSION: '24' + PRIMARY_NODE_VERSION: '^24.22.3' DSH_TELEMETRY_DISABLED: '1' jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c88dec8687..ab78a08ba6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ concurrency: cancel-in-progress: true env: - PRIMARY_NODE_VERSION: '24' + PRIMARY_NODE_VERSION: '^24.22.3' DSH_TELEMETRY_DISABLED: '1' jobs: diff --git a/.github/workflows/sandbox.yml b/.github/workflows/sandbox.yml index 1494b8d1db..fd56c5e5c1 100644 --- a/.github/workflows/sandbox.yml +++ b/.github/workflows/sandbox.yml @@ -72,7 +72,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: 24 + node-version: '^24.22.3' - name: Install (immutable) run: pnpm install --frozen-lockfile @@ -152,7 +152,7 @@ jobs: - uses: actions/setup-node@v7.0.0 with: - node-version: 24 + node-version: '^24.22.3' - name: Install (immutable) run: pnpm install --frozen-lockfile diff --git a/.github/workflows/windows-package.yml b/.github/workflows/windows-package.yml index c54f013a59..f4b66ea8ad 100644 --- a/.github/workflows/windows-package.yml +++ b/.github/workflows/windows-package.yml @@ -143,7 +143,7 @@ jobs: dest: ${{ runner.temp }}/setup-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Configure persistent pnpm store # PNPM_HOME belongs to this run; keep downloaded packages outside its temporary directory. env: @@ -244,7 +244,7 @@ jobs: dest: ${{ runner.temp }}/archive-pnpm-${{ github.run_id }}-${{ github.run_attempt }} - uses: actions/setup-node@v7.0.0 with: - node-version: '24' + node-version: '^24.22.3' - name: Configure persistent pnpm store # PNPM_HOME belongs to this run; keep downloaded packages outside its temporary directory. env: diff --git a/AGENTS.md b/AGENTS.md index beb634cc61..ab4d7ac6d9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -83,7 +83,7 @@ Package groups: [packages/README.md](packages/README.md). [Experimental status]( ## Commands ```sh -pnpm install # pnpm workspaces, node >=24.9 +pnpm install # node ^24.22.3 || >=26.13.1 pnpm run clean # remove build outputs and safe residue from deleted packages pnpm run test # unit tests pnpm run test:coverage # CI coverage gate: per-file 100% on packages/*/*/src diff --git a/apps/cli/package.json b/apps/cli/package.json index 2c4430d397..1cc98a9087 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -99,7 +99,7 @@ "@deepseek-ai/schemastery": "workspace:~", "commander": "^15.0.0", "js-yaml": "^4.3.2", - "node-addon-require-builtin": "^0.1.9", + "node-addon-require-builtin": "^0.1.10", "@deepseek-ai/dsh-http-proxy": "workspace:*", "@deepseek-ai/dsh-mcp-resources": "workspace:*", "@deepseek-ai/dsh-plugin-manager": "workspace:*", @@ -188,6 +188,6 @@ "./package.json": "./package.json" }, "engines": { - "node": ">=24.9.0" + "node": "^24.22.3 || >=26.13.1" } } diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 505625c57f..c1a75dbde1 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -73,7 +73,7 @@ "@types/semver": "^7.8.0", "app-builder-lib": "26.17.0", "cos-nodejs-sdk-v5": "3.0.0", - "electron": "^44.7.0", + "electron": "^44.11.5", "electron-builder": "^26.17.0", "extract-zip": "^2.0.1", "js-yaml": "^4.3.2", diff --git a/apps/desktop/tests/updates/electron-updater/verified-versions.json b/apps/desktop/tests/updates/electron-updater/verified-versions.json index dfe3835ffd..454535ea62 100644 --- a/apps/desktop/tests/updates/electron-updater/verified-versions.json +++ b/apps/desktop/tests/updates/electron-updater/verified-versions.json @@ -1,11 +1,11 @@ { "windows": { - "electron": "44.7.0", + "electron": "44.11.5", "electron-updater": "6.8.9", "builder-util-runtime": "9.7.0" }, "macos": { - "electron": "44.7.0", + "electron": "44.11.5", "electron-updater": "6.8.9", "builder-util-runtime": "9.7.0" } diff --git a/docs/development.i18n.yaml b/docs/development.i18n.yaml index e41755beb4..446c80bb56 100644 --- a/docs/development.i18n.yaml +++ b/docs/development.i18n.yaml @@ -9,8 +9,8 @@ en: 5207d17725c07a27 zh: 258884c4300ac63a /development-guide/setup-tutorial/prerequisites: - en: 89e7008a741a290a - zh: 78012740025203b0 + en: 0bf77d9e2203102d + zh: 67516252ca96151e /development-guide/setup-tutorial/windows-and-wsl-2: en: e86be579be6f1813 zh: 14f6a220337d0861 @@ -27,8 +27,8 @@ en: 9a0b2f1a520cfc68 zh: 62c9ec565909f605 /development-guide/contributor-reference/git-integrations: - en: 075658ecfc10da20 - zh: 69e664417bbde87e + en: 1e1514e49dfbb938 + zh: fe2312200a5b7118 /development-guide/contributor-reference/ci-gates: en: dfa3a24d9070478f zh: fa889b3536ab58e2 diff --git a/docs/development.md b/docs/development.md index cf20cac1a4..be3e7ba033 100644 --- a/docs/development.md +++ b/docs/development.md @@ -8,7 +8,7 @@ The setup tutorial takes a new contributor from prerequisites to a checked check ### Prerequisites -- Node.js 24.9 or newer. CI covers 24.9, the latest 24, and 26; see the [Node engine floor Agent Note](../.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.md). +- Node.js 24.22.3 or a newer 24.x release, or Node.js 26.13.1 or newer. CI covers 24.22.3, the latest 24, and 26; see the [Node engine floor Agent Note](../.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.md). - Node.js TypeScript type stripping enabled. The repository build scripts load `tsdown.config.ts` with tsdown's native config loader, so they fail when `--no-experimental-strip-types` is in `NODE_OPTIONS` or the Node.js build lacks TypeScript support; `pnpm run build` checks this first and names the cause. - Corepack-enabled pnpm. The repo pins `pnpm@11.28.5` in `package.json`; run `corepack enable` if `pnpm --version` does not resolve through Corepack. - Git 2.26 or newer; hook setup enables Git's worktree-specific configuration extension. @@ -149,7 +149,7 @@ The vendor manifest guard checks that changes under `vendor/*/src` are staged wi The pi-ai check regenerates expected metadata in memory. It rejects stale data without rewriting or staging files. After a pi-ai dependency or generator change, follow the package's [provider metadata update steps](../packages/llm/llm-pi-ai/README.md#generated-provider-metadata). -Apart from the scoped pairing and provider metadata checks, the hooks intentionally do not run tests, snapshots, documentation checks, builds, or hygiene. Contributors run the [checks relevant to the changed behavior](../AGENTS.md#run-relevant-checks-locally) once; CI owns exhaustive coverage, built-artifact smokes, and the Node 24.9, latest 24, and 26 compatibility matrix. +Apart from the scoped pairing and provider metadata checks, the hooks intentionally do not run tests, snapshots, documentation checks, builds, or hygiene. Contributors run the [checks relevant to the changed behavior](../AGENTS.md#run-relevant-checks-locally) once; CI owns exhaustive coverage, built-artifact smokes, and the Node 24.22.3, latest 24, and 26 compatibility matrix. Contributors can opt into the comprehensive local gate set with `pnpm run check:all`. The command is independent of the Git hooks and is not an agent instruction. diff --git a/docs/development.zh.md b/docs/development.zh.md index 6b7c552165..255c7c8f0e 100644 --- a/docs/development.zh.md +++ b/docs/development.zh.md @@ -10,7 +10,7 @@ ### 前置条件 -- Node.js 要求 24.9 或更高版本。CI 覆盖 24.9、最新的 24 和 26;见 [Node 引擎下限 Agent Note](../.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.zh.md)。 +- Node.js 要求 24.22.3 或更高的 24.x 版本,或 26.13.1 或更高版本。CI 覆盖 24.22.3、最新的 24 和 26;见 [Node 引擎下限 Agent Note](../.agents/notes/implemented/process/2026-10-15-node-24-runtime-floor.zh.md)。 - 启用 Node.js TypeScript 类型剥离。仓库构建脚本用 tsdown 的 native 配置加载器加载 `tsdown.config.ts`,因此当 `NODE_OPTIONS` 含 `--no-experimental-strip-types` 或 Node.js 构建缺少 TypeScript 支持时会失败;`pnpm run build` 会先检查这一条件并指出原因。 - 启用了 Corepack 的 pnpm。仓库在 `package.json` 中固定使用 `pnpm@11.28.5`;如果 `pnpm --version` 无法通过 Corepack 解析,请先运行 `corepack enable`。 - Git 2.26 或更高版本;钩子设置会启用 Git 的 worktree 专属配置扩展。 @@ -154,7 +154,7 @@ vendor manifest 守卫检查 `vendor/*/src` 下的改动是否连同对应的 `v pi-ai 检查会在内存中重新生成预期元数据。数据过期时,检查拒绝提交,不改写或暂存文件。修改 pi-ai 依赖或生成器后,请按包内的[提供方元数据更新步骤](../packages/llm/llm-pi-ai/README.zh.md#generated-provider-metadata)操作。 -除限定范围的配对和提供方元数据检查外,这些钩子有意不运行测试、快照、文档检查、构建或 `hygiene`。贡献者只运行一次[与改动行为相关的检查](../AGENTS.md#run-relevant-checks-locally);CI 负责全量覆盖率门禁、构建产物冒烟测试,以及 Node 24.9、最新的 24 和 26 兼容性矩阵。 +除限定范围的配对和提供方元数据检查外,这些钩子有意不运行测试、快照、文档检查、构建或 `hygiene`。贡献者只运行一次[与改动行为相关的检查](../AGENTS.md#run-relevant-checks-locally);CI 负责全量覆盖率门禁、构建产物冒烟测试,以及 Node 24.22.3、最新的 24 和 26 兼容性矩阵。 贡献者可以选择运行 `pnpm run check:all`,执行全面的本地门禁集。该命令独立于 Git 钩子,也不是对 agent 的指令。 diff --git a/docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.i18n.yaml b/docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.i18n.yaml new file mode 100644 index 0000000000..156bc3e53b --- /dev/null +++ b/docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.i18n.yaml @@ -0,0 +1,16 @@ +# Bilingual-pair consistency record for guide.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 docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.md +/: + en: c37a122c447816e4 + zh: fa4966282d31d51e +/node-js-24-22-3-or-26-13-1-is-required: + en: 426912ecafca795e + zh: a3f067a13ebf102c +/node-js-24-22-3-or-26-13-1-is-required/change: + en: 492fa2b6b900b514 + zh: 2e14f29d7e1a684e +/node-js-24-22-3-or-26-13-1-is-required/migration: + en: caa478a02e246170 + zh: 753e9ea6a2e42599 diff --git a/docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.md b/docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.md new file mode 100644 index 0000000000..57ef7fe144 --- /dev/null +++ b/docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.md @@ -0,0 +1,17 @@ +--- +kind: upgrade-guide +description: "DSH requires Node.js 24.22.3 or newer in the 24.x line, or Node.js 26.13.1 or newer; earlier Node.js 24 and 26 releases are no longer supported." +--- +# Node.js 24.22.3 or 26.13.1 is required + +English | [中文](guide.zh.md) + +## Change + +DSH requires Node.js 24.22.3 or a newer 24.x release, or Node.js 26.13.1 or newer (`engines.node` is `^24.22.3 || >=26.13.1`). These are the first releases whose bundled undici includes the November 2026 security fixes. The previous release supported Node.js 24.9 and newer, including every Node.js 26 release. This change affects npm installations, source checkouts, and the Python SDK's explicit `DSH_RUNTIME_MODE=node` development carrier. Packaged desktop applications and the Python SDK's bundled executable provide their own Node.js 24.22.3 runtime. + +## Migration + +1. Upgrade the Node.js installation used to start DSH to version 24.22.3 or a newer 24.x release, or to 26.13.1 or newer. Update Node version pins in development environments, containers, and CI jobs. +2. Run `node --version` in the same environment and confirm that it reports 24.22.3 or a newer 24.x release, or 26.13.1 or newer. +3. For a source checkout, run `pnpm install`. Start DSH with the profile you normally use and confirm that it starts successfully. diff --git a/docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.zh.md b/docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.zh.md new file mode 100644 index 0000000000..f9634a225b --- /dev/null +++ b/docs/upgrade-guide/v0.2.3-alpha.1/node-24-22-3/guide.zh.md @@ -0,0 +1,17 @@ +--- +kind: upgrade-guide +description: "DSH 要求 24.x 系列中的 Node.js 24.22.3 或更高版本,或 Node.js 26.13.1 或更高版本,不再支持更早的 Node.js 24 与 26 版本。" +--- +# 必须使用 Node.js 24.22.3 或 26.13.1 + +[English](guide.md) | 中文 + +## 变更 + +DSH 要求 Node.js 24.22.3 或更高的 24.x 版本,或 Node.js 26.13.1 或更高版本(`engines.node` 为 `^24.22.3 || >=26.13.1`)。这些是内置 undici 首次包含 2026 年 11 月安全修复的版本。上一版本支持 Node.js 24.9 及更高版本,包括所有 Node.js 26 版本。此变更影响 npm 安装、源码检出,以及 Python SDK 显式指定 `DSH_RUNTIME_MODE=node` 的开发载体。打包的桌面应用和 Python SDK 的内置可执行文件自带 Node.js 24.22.3 运行时。 + +## 迁移 + +1. 将用于启动 DSH 的 Node.js 安装升级至 24.22.3 或更高的 24.x 版本,或 26.13.1 或更高版本。更新开发环境、容器和 CI 任务中固定的 Node 版本。 +2. 在同一环境中运行 `node --version`,确认版本为 24.22.3 或更高的 24.x 版本,或 26.13.1 或更高版本。 +3. 对于源码检出,运行 `pnpm install`。使用平常的 profile 启动 DSH,确认它能成功启动。 diff --git a/package.json b/package.json index 8f6c83a768..fd7051eaab 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "packageManager": "pnpm@11.28.5", "engines": { - "node": ">=24.9.0" + "node": "^24.22.3 || >=26.13.1" }, "workspaces": [ "vendor/*", diff --git a/packages/boot/app-boot/package.json b/packages/boot/app-boot/package.json index 29fe666be9..952cc1b0c9 100644 --- a/packages/boot/app-boot/package.json +++ b/packages/boot/app-boot/package.json @@ -40,7 +40,7 @@ "@deepseek-ai/dsh-package-manifest": "workspace:*", "@eslint-community/regexpp": "^4.12.2", "ajv": "^8.20.0", - "node-addon-require-builtin": "^0.1.9", + "node-addon-require-builtin": "^0.1.10", "resolve.exports": "^2.0.3", "semver": "^7.8.5", "@deepseek-ai/dsh-native-command": "workspace:*" diff --git a/packages/boot/app-boot/src/profile-resolution/resolver.ts b/packages/boot/app-boot/src/profile-resolution/resolver.ts index 468ec82e24..427cc0717a 100644 --- a/packages/boot/app-boot/src/profile-resolution/resolver.ts +++ b/packages/boot/app-boot/src/profile-resolution/resolver.ts @@ -903,7 +903,7 @@ export function installRuntimeInterception( } let restoreEsm: () => void - /* v8 ignore else -- CI coverage runs Node 24 v2; the Node 24.0 matrix exercises the v1 adapter */ + /* v8 ignore else -- supported Node releases use v2; the v1 adapter serves Node before 24.12, below the supported floor */ if (modern) { const loader = esm as ModuleLoaderV2 const original = Reflect.get(loader, 'resolveSync') diff --git a/packages/boot/hmr/package.json b/packages/boot/hmr/package.json index 47012e6d83..178f527095 100644 --- a/packages/boot/hmr/package.json +++ b/packages/boot/hmr/package.json @@ -43,7 +43,7 @@ "dependencies": { "@babel/code-frame": "^7.29.0", "chokidar": "5.0.0", - "node-addon-require-builtin": "^0.1.9", + "node-addon-require-builtin": "^0.1.10", "picomatch": "^4.0.7", "@deepseek-ai/schemastery": "workspace:~" }, diff --git a/packages/boot/hmr/src/package-manifest.ts b/packages/boot/hmr/src/package-manifest.ts index 8bf58746a7..c2414767cd 100644 --- a/packages/boot/hmr/src/package-manifest.ts +++ b/packages/boot/hmr/src/package-manifest.ts @@ -111,7 +111,7 @@ function captureEsmResolveCache(native: NativeAccess, parentURL: string): Map=24.9 supplies explicit graph linking; the installed Node declarations omit these methods. +// Supported Node releases supply explicit graph linking; the installed Node declarations omit these methods. interface SourceModule extends vm.SourceTextModule { instantiate(): void linkRequests(modules: vm.Module[]): void diff --git a/packages/util/http-proxy/package.json b/packages/util/http-proxy/package.json index 3a65346f88..6cd0b42041 100644 --- a/packages/util/http-proxy/package.json +++ b/packages/util/http-proxy/package.json @@ -33,7 +33,7 @@ "@deepseek-ai/cordis": "workspace:~" }, "dependencies": { - "undici": "8.11.2" + "undici": "8.12.4" }, "devDependencies": { "@deepseek-ai/cordis": "workspace:~" diff --git a/packages/web/web-fetch-http/package.json b/packages/web/web-fetch-http/package.json index bf53c823ea..98d682c946 100644 --- a/packages/web/web-fetch-http/package.json +++ b/packages/web/web-fetch-http/package.json @@ -38,7 +38,7 @@ }, "dependencies": { "@deepseek-ai/schemastery": "workspace:~", - "undici": "8.11.2" + "undici": "8.12.4" }, "devDependencies": { "@deepseek-ai/cordis": "workspace:~", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 20bce3a8c5..774164ab6d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,6 +6,9 @@ settings: overrides: extract-zip>yauzl: 3.4.0 + undici@^6: 6.29.1 + undici@^7: 7.30.2 + undici@^8: 8.12.4 '@deepseek-ai/cosmokit': link:vendor/cosmokit '@deepseek-ai/schemastery': link:vendor/schemastery @@ -595,8 +598,8 @@ importers: specifier: ^4.3.2 version: 4.3.2 node-addon-require-builtin: - specifier: ^0.1.9 - version: 0.1.9 + specifier: ^0.1.10 + version: 0.1.10 devDependencies: '@agentclientprotocol/sdk': specifier: 1.4.0 @@ -870,8 +873,8 @@ importers: specifier: 3.0.0 version: 3.0.0 electron: - specifier: ^44.7.0 - version: 44.7.0(supports-color@9.4.0) + specifier: ^44.11.5 + version: 44.11.5(supports-color@9.4.0) electron-builder: specifier: ^26.17.0 version: 26.17.0(electron-builder-squirrel-windows@26.17.0)(supports-color@9.4.0) @@ -2213,8 +2216,8 @@ importers: specifier: ^8.20.0 version: 8.20.0 node-addon-require-builtin: - specifier: ^0.1.9 - version: 0.1.9 + specifier: ^0.1.10 + version: 0.1.10 resolve.exports: specifier: ^2.0.3 version: 2.0.3 @@ -2305,8 +2308,8 @@ importers: specifier: 5.0.0 version: 5.0.0 node-addon-require-builtin: - specifier: ^0.1.9 - version: 0.1.9 + specifier: ^0.1.10 + version: 0.1.10 picomatch: specifier: ^4.0.7 version: 4.0.7 @@ -11985,8 +11988,8 @@ importers: specifier: workspace:* version: link:../../util/values undici: - specifier: 8.11.2 - version: 8.11.2 + specifier: 8.12.4 + version: 8.12.4 ws: specifier: ^8.18.3 version: 8.21.3 @@ -12454,7 +12457,7 @@ importers: version: link:../../../vendor/schemastery '@earendil-works/pi-ai': specifier: ^1.3.0 - version: 1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.10.2)(ws@8.21.3)(zod@4.6.6) + version: 1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.12.4)(ws@8.21.3)(zod@4.6.6) '@earendil-works/pi-coding-agent': specifier: ^1.3.0 version: 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(ws@8.21.3)(zod@4.6.6) @@ -12462,8 +12465,8 @@ importers: specifier: ^7.0.6 version: 7.0.6 undici: - specifier: 8.10.2 - version: 8.10.2 + specifier: 8.12.4 + version: 8.12.4 which: specifier: ^2.0.2 version: 2.0.2 @@ -15238,7 +15241,7 @@ importers: version: link:../../../vendor/schemastery '@earendil-works/pi-ai': specifier: ^1.3.0 - version: 1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.11.2)(ws@8.21.3)(zod@4.6.6) + version: 1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@6.29.1)(ws@8.21.3)(zod@4.6.6) devDependencies: '@deepseek-ai/cordis': specifier: workspace:~ @@ -20011,8 +20014,8 @@ importers: packages/util/http-proxy: dependencies: undici: - specifier: 8.11.2 - version: 8.11.2 + specifier: 8.12.4 + version: 8.12.4 devDependencies: '@deepseek-ai/cordis': specifier: workspace:~ @@ -20299,8 +20302,8 @@ importers: specifier: link:../../../vendor/schemastery version: link:../../../vendor/schemastery undici: - specifier: 8.11.2 - version: 8.11.2 + specifier: 8.12.4 + version: 8.12.4 devDependencies: '@deepseek-ai/cordis': specifier: workspace:~ @@ -21123,8 +21126,8 @@ importers: specifier: link:../schemastery version: link:../schemastery node-addon-require-builtin: - specifier: ^0.1.9 - version: 0.1.9 + specifier: ^0.1.10 + version: 0.1.10 vendor/logger-console: dependencies: @@ -25605,8 +25608,8 @@ packages: resolution: {integrity: sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==} engines: {node: '>=8.0.0'} - electron@44.7.0: - resolution: {integrity: sha512-aUq9/zLAAFYc+a9gy6cd0C3Y/N/RmovLCD8TV8LhIzNhuND6HEgsu96jJz9cbAxvckSPv+Trf2PKEjktoZgFkw==} + electron@44.11.5: + resolution: {integrity: sha512-FgtBBAgWRyT/k2LbXDvlnHQRtc35sfp4UaWjYvktsh2HWWYSnfA/DnYGEOxQUZXpcp4EELj37x5zSSrh585nwg==} engines: {node: '>= 22.12.0'} hasBin: true @@ -27165,70 +27168,70 @@ packages: node-addon-api@7.1.1: resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==} - node-addon-native-custom-loader@0.1.9: - resolution: {integrity: sha512-Zh87aubSc1UF8CzZsRws1KtSwXiPDH0tbcg8V/2OA8Tcq9yGJRESFcEOC5NGLFama5IGfC3aJhubZbrj9Un2qA==} + node-addon-native-custom-loader@0.1.10: + resolution: {integrity: sha512-azSNOM5duU5c1ZiwHRr18a5i9dPMUaRbTiYnQB/kUn19uz6JjyLoKHG2gIcbzoHcE+X7gM9W+/V4bzH4jYzTMA==} engines: {node: '>=20'} - node-addon-require-builtin-darwin-arm64@0.1.9: - resolution: {integrity: sha512-n45xEILQVOLZ2hVhzRXesTMYS4odHquyI/B/IkPMPUCONa8PjNfBag6lYBH4wDrhgpLNNBwMsUD8d8O/13QPPA==} + node-addon-require-builtin-darwin-arm64@0.1.10: + resolution: {integrity: sha512-ioP4PJOTwdDwnank1VYXhjb+DGMbiCz2aEw3TSKOA93gZP4x9aJtnj53qLG459hIfMj2tBUX2cXjbc99/hjHeQ==} engines: {node: '>=20'} cpu: [arm64] os: [darwin] - node-addon-require-builtin-darwin-x64@0.1.9: - resolution: {integrity: sha512-Sm4Liqh1uo9zgJB2F/pACPPZdHu+fj9Qniyr1Q99dDQB0v71VgZgkAgv3K0/E1iPQBlZq9rakFkY7MGUIfWc0A==} + node-addon-require-builtin-darwin-x64@0.1.10: + resolution: {integrity: sha512-0NmFhGQW4ooqZ5PUwufFAeAI8wCs+P5DVwdQS5m7nWdwvxzh5kQlAbxN3i3JEh1rOCAgmIhayoAJS4tHnNKVbA==} engines: {node: '>=20'} cpu: [x64] os: [darwin] - node-addon-require-builtin-linux-arm64-gnu@0.1.9: - resolution: {integrity: sha512-ToU4wGtOD/069i2y4fJ3cjDJiiWtcjSQTZMf0YKlotb5BmTM7FjhR3X1aub8J/YjlOwl6665J/XAYuvCaDO5sA==} + node-addon-require-builtin-linux-arm64-gnu@0.1.10: + resolution: {integrity: sha512-1p4/Rmsy3Ry8zfMnpw6SIxmlbMXO8syFhxiPKgODb28Obb7OpsRNJnrOCRIn/r+WUBgX4dvXVp2A6CeeevxDgA==} engines: {node: '>=20'} cpu: [arm64] os: [linux] libc: [glibc] - node-addon-require-builtin-linux-arm64-musl@0.1.9: - resolution: {integrity: sha512-85Z5Avp++wfa9iiTIH8LC/r6qvlC/CiwpifiwIz0gYQ9PzajTSkz06gX7YDqf1oUqWYxU9uwNEOmo7mktHOOfA==} + node-addon-require-builtin-linux-arm64-musl@0.1.10: + resolution: {integrity: sha512-wGNyRGhIptURcL51eMtwdm3c5qHkahD/gLiPd9iJzcR5BP0krmZz19ayNqKjSAWz0pqvtURItV1fGytsxLiIhg==} engines: {node: '>=20'} cpu: [arm64] os: [linux] libc: [musl] - node-addon-require-builtin-linux-x64-gnu@0.1.9: - resolution: {integrity: sha512-fh3K3/JvBfSYwU8vEOpp4Wdp4N/jX0EnZYq5GsaftlQin1FVqgve/yDNoh+asxBMOQyHOG8F4dXlV1WCierrfg==} + node-addon-require-builtin-linux-x64-gnu@0.1.10: + resolution: {integrity: sha512-56djgaTd3gHJAbt0Cs26EZJdE3Op+ZOAO0yRQodU3ncld9GwCdjTE9TWeIjPYNXQY2pVl8K+sVdzbSUaOGxVDg==} engines: {node: '>=20'} cpu: [x64] os: [linux] libc: [glibc] - node-addon-require-builtin-linux-x64-musl@0.1.9: - resolution: {integrity: sha512-B6fu/5xmbRxnifM7nWz0IESkYnUl8dwFZmRDMsxdhzv2nb+EtBRFAXg4lf73qhX3yoZD4SnWJILBQMlIAwBCzw==} + node-addon-require-builtin-linux-x64-musl@0.1.10: + resolution: {integrity: sha512-I9JAS0zhtX7Ch5GGrj5lzAS6eHda8tHyOv9h+TBQcOl65j/qzjD4mIhQcny9zSpjZehU3bDEPP1gT+cOWv+g+g==} engines: {node: '>=20'} cpu: [x64] os: [linux] libc: [musl] - node-addon-require-builtin-win32-arm64-msvc@0.1.9: - resolution: {integrity: sha512-FOQuzNe8B1BANu886rJgdbQuRxPGUQmewkykw87wSr32U0ibQ3AWGuUM/Gh7LG4RekjFaifj7gEI/tq2+6GU6g==} + node-addon-require-builtin-win32-arm64-msvc@0.1.10: + resolution: {integrity: sha512-KbAyauCiw1Sdbc3Y/yUcNrjfbc08cQ7dizWqUdcfrko6EhX5fS5Yk1g/2DXc4U/DvCfL8ShFBwk9mkGpZ3ZDfg==} engines: {node: '>=20'} cpu: [arm64] os: [win32] - node-addon-require-builtin-win32-ia32-msvc@0.1.9: - resolution: {integrity: sha512-N29P0kmIBT6hnkNNFYzxn+o9ydT6OYZe9RFAi8dSxV1rNSul1FlxtuKWYe8w2sQpbQGYuGDEtpOwdeFtq2iFTg==} + node-addon-require-builtin-win32-ia32-msvc@0.1.10: + resolution: {integrity: sha512-ChwIG0HLO7HHmr9NwTYvP9j8qlOpC+kpHmH+qguxdBu+0OMK1DUeneJMIZbBFvSebt1Jk3udkaC2RNzVEt4RVg==} engines: {node: '>=20 <23'} cpu: [ia32] os: [win32] - node-addon-require-builtin-win32-x64-msvc@0.1.9: - resolution: {integrity: sha512-+i6N4A7m7txjbw8pDYESdWXiKO9EEVq0SzTzwPS0WZuV4F1MzQnaDJwJJnO7T6zAc0BvqHXBOkpharCrUjFhbQ==} + node-addon-require-builtin-win32-x64-msvc@0.1.10: + resolution: {integrity: sha512-c1LTohiRnMpra5fT+1ulrvfnYW9OjypVuydPDHGZ+sShUkF2WllRr32FvyqVBp8iUr3oxge8rhqKmHm8XcqItA==} engines: {node: '>=20'} cpu: [x64] os: [win32] - node-addon-require-builtin@0.1.9: - resolution: {integrity: sha512-BCxXCMZDs/VLLh64SwKNw/me7Qx1I7Be4qxWwYVRRm8tJoOB8fL7qg6CmXhSXeUqsKt72t8RaKCX4EN+5nocVg==} + node-addon-require-builtin@0.1.10: + resolution: {integrity: sha512-oSie9nna4k7/4GVGaLdHeHjZZ16KB5OQa0VnQ8vfIl83c0x6swZrmAqMih6RWq/9/7AdYnuuMXriQndymDEyyA==} engines: {node: '>=20'} node-api-version@0.2.1: @@ -27348,7 +27351,7 @@ packages: '@aws-sdk/credential-provider-node': '>=3.972.0 <4' '@smithy/hash-node': '>=4.3.0 <5' '@smithy/signature-v4': '>=5.4.0 <6' - undici: '>=5 <9' + undici: 6.29.1 ws: ^8.21.0 zod: ^3.25 || ^4.0 peerDependenciesMeta: @@ -28451,20 +28454,16 @@ packages: undici-types@8.3.0: resolution: {integrity: sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==} - undici@6.28.1: - resolution: {integrity: sha512-zWpdTVD54H48CIybL0rWQ3ukpb9d23wM7eH5RtfdmeP70cWHNjtfo7P4vZX+5CoDcO53J4Pu5uXp7lNfjc6DRA==} + undici@6.29.1: + resolution: {integrity: sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==} engines: {node: '>=18.17'} - undici@7.29.1: - resolution: {integrity: sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==} + undici@7.30.2: + resolution: {integrity: sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==} engines: {node: '>=20.18.1'} - undici@8.10.2: - resolution: {integrity: sha512-/y4/bH9YNU5hi9NIrpOuvGXFcxrj3CMrV+/AYpowAYTpHn8gX/XPFjNy766FPoYY0miQhdW977JFWKGNhBdwyQ==} - engines: {node: '>=22.19.0'} - - undici@8.11.2: - resolution: {integrity: sha512-u4UB2/IrKdU6lFxumHmmo1a3fCQO5tzQllRorfoRS63txhrB7xTpSn1PftwC4qEHkOaqP95fCWW4lJzwErwzhQ==} + undici@8.12.4: + resolution: {integrity: sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==} engines: {node: '>=22.19.0'} unicode-properties@1.4.1: @@ -29526,10 +29525,10 @@ snapshots: '@botiverse/oar@0.67.0(patch_hash=65de2ca1966421e30893d8d4fed6a3d88e4247e131e7575fe791246e594538d6)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(ws@8.21.3)(zod@4.6.6)': dependencies: '@agentclientprotocol/sdk': 1.4.0(zod@4.6.6) - '@earendil-works/pi-ai': 1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.10.2)(ws@8.21.3)(zod@4.6.6) + '@earendil-works/pi-ai': 1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.12.4)(ws@8.21.3)(zod@4.6.6) '@earendil-works/pi-coding-agent': 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(ws@8.21.3)(zod@4.6.6) cross-spawn: 7.0.6 - undici: 8.10.2 + undici: 8.12.4 which: 2.0.2 transitivePeerDependencies: - '@aws-sdk/credential-provider-node' @@ -29668,9 +29667,9 @@ snapshots: transitivePeerDependencies: - '@algolia/client-search' - '@earendil-works/pi-agent-core@1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.10.2)(ws@8.21.3)(zod@4.6.6)': + '@earendil-works/pi-agent-core@1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.12.4)(ws@8.21.3)(zod@4.6.6)': dependencies: - '@earendil-works/pi-ai': 1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.10.2)(ws@8.21.3)(zod@4.6.6) + '@earendil-works/pi-ai': 1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.12.4)(ws@8.21.3)(zod@4.6.6) typebox: 1.3.27 transitivePeerDependencies: - '@aws-sdk/credential-provider-node' @@ -29685,7 +29684,7 @@ snapshots: - ws - zod - '@earendil-works/pi-ai@1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.10.2)(ws@8.21.3)(zod@4.6.6)': + '@earendil-works/pi-ai@1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@6.29.1)(ws@8.21.3)(zod@4.6.6)': dependencies: '@anthropic-ai/sdk': 0.129.0(zod@4.6.6) '@aws-sdk/client-bedrock-runtime': 3.1127.0 @@ -29694,7 +29693,7 @@ snapshots: '@smithy/node-http-handler': 4.12.1 http-proxy-agent: 9.1.0(supports-color@9.4.0) https-proxy-agent: 9.1.0(supports-color@9.4.0) - openai: 7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@8.10.2)(ws@8.21.3)(zod@4.6.6) + openai: 7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.21.3)(zod@4.6.6) partial-json: 0.1.7 typebox: 1.3.27 transitivePeerDependencies: @@ -29710,7 +29709,7 @@ snapshots: - ws - zod - '@earendil-works/pi-ai@1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.11.2)(ws@8.21.3)(zod@4.6.6)': + '@earendil-works/pi-ai@1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.12.4)(ws@8.21.3)(zod@4.6.6)': dependencies: '@anthropic-ai/sdk': 0.129.0(zod@4.6.6) '@aws-sdk/client-bedrock-runtime': 3.1127.0 @@ -29719,7 +29718,7 @@ snapshots: '@smithy/node-http-handler': 4.12.1 http-proxy-agent: 9.1.0(supports-color@9.4.0) https-proxy-agent: 9.1.0(supports-color@9.4.0) - openai: 7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@8.11.2)(ws@8.21.3)(zod@4.6.6) + openai: 7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@8.12.4)(ws@8.21.3)(zod@4.6.6) partial-json: 0.1.7 typebox: 1.3.27 transitivePeerDependencies: @@ -29741,8 +29740,8 @@ snapshots: '@earendil-works/pi-coding-agent@1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(ws@8.21.3)(zod@4.6.6)': dependencies: - '@earendil-works/pi-agent-core': 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.10.2)(ws@8.21.3)(zod@4.6.6) - '@earendil-works/pi-ai': 1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.10.2)(ws@8.21.3)(zod@4.6.6) + '@earendil-works/pi-agent-core': 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.12.4)(ws@8.21.3)(zod@4.6.6) + '@earendil-works/pi-ai': 1.3.0(patch_hash=4e1c90fd00aea42989664504668633033c1962e53c07860901edb4f72d843765)(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.31.0(supports-color@9.4.0)(zod@4.6.6))(@smithy/signature-v4@5.7.4)(supports-color@9.4.0)(undici@8.12.4)(ws@8.21.3)(zod@4.6.6) '@earendil-works/pi-codemode': 1.3.0 '@earendil-works/pi-mcp': 1.3.0 '@earendil-works/pi-tui': 1.3.0 @@ -29761,7 +29760,7 @@ snapshots: quickjs-wasi: 3.6.2 semver: 7.8.5 typebox: 1.3.27 - undici: 8.10.2 + undici: 8.12.4 yaml: 2.9.0 transitivePeerDependencies: - '@aws-sdk/credential-provider-node' @@ -29823,7 +29822,7 @@ snapshots: semver: 7.8.5 sumchecker: 3.0.1(supports-color@9.4.0) optionalDependencies: - undici: 7.29.1 + undici: 7.30.2 transitivePeerDependencies: - supports-color @@ -32168,7 +32167,7 @@ snapshots: progress: 2.0.3 semver: 7.8.5 tar-fs: 3.1.3 - undici: 7.29.1 + undici: 7.30.2 yargs: 16.2.2 transitivePeerDependencies: - bare-abort-controller @@ -33281,7 +33280,7 @@ snapshots: transitivePeerDependencies: - supports-color - electron@44.7.0(supports-color@9.4.0): + electron@44.11.5(supports-color@9.4.0): dependencies: '@electron-internal/extract-zip': 1.0.5 '@electron/get': 5.1.0(supports-color@9.4.0) @@ -34403,7 +34402,7 @@ snapshots: saxes: 6.0.0 symbol-tree: 3.2.4 tough-cookie: 6.0.1 - undici: 7.29.1 + undici: 7.30.2 w3c-xmlserializer: 5.0.0 webidl-conversions: 8.0.1 whatwg-mimetype: 5.0.0 @@ -35177,66 +35176,66 @@ snapshots: node-addon-api@7.1.1: {} - node-addon-native-custom-loader@0.1.9: {} + node-addon-native-custom-loader@0.1.10: {} - node-addon-require-builtin-darwin-arm64@0.1.9: + node-addon-require-builtin-darwin-arm64@0.1.10: dependencies: - node-addon-native-custom-loader: 0.1.9 + node-addon-native-custom-loader: 0.1.10 optional: true - node-addon-require-builtin-darwin-x64@0.1.9: + node-addon-require-builtin-darwin-x64@0.1.10: dependencies: - node-addon-native-custom-loader: 0.1.9 + node-addon-native-custom-loader: 0.1.10 optional: true - node-addon-require-builtin-linux-arm64-gnu@0.1.9: + node-addon-require-builtin-linux-arm64-gnu@0.1.10: dependencies: - node-addon-native-custom-loader: 0.1.9 + node-addon-native-custom-loader: 0.1.10 optional: true - node-addon-require-builtin-linux-arm64-musl@0.1.9: + node-addon-require-builtin-linux-arm64-musl@0.1.10: dependencies: - node-addon-native-custom-loader: 0.1.9 + node-addon-native-custom-loader: 0.1.10 optional: true - node-addon-require-builtin-linux-x64-gnu@0.1.9: + node-addon-require-builtin-linux-x64-gnu@0.1.10: dependencies: - node-addon-native-custom-loader: 0.1.9 + node-addon-native-custom-loader: 0.1.10 optional: true - node-addon-require-builtin-linux-x64-musl@0.1.9: + node-addon-require-builtin-linux-x64-musl@0.1.10: dependencies: - node-addon-native-custom-loader: 0.1.9 + node-addon-native-custom-loader: 0.1.10 optional: true - node-addon-require-builtin-win32-arm64-msvc@0.1.9: + node-addon-require-builtin-win32-arm64-msvc@0.1.10: dependencies: - node-addon-native-custom-loader: 0.1.9 + node-addon-native-custom-loader: 0.1.10 optional: true - node-addon-require-builtin-win32-ia32-msvc@0.1.9: + node-addon-require-builtin-win32-ia32-msvc@0.1.10: dependencies: - node-addon-native-custom-loader: 0.1.9 + node-addon-native-custom-loader: 0.1.10 optional: true - node-addon-require-builtin-win32-x64-msvc@0.1.9: + node-addon-require-builtin-win32-x64-msvc@0.1.10: dependencies: - node-addon-native-custom-loader: 0.1.9 + node-addon-native-custom-loader: 0.1.10 optional: true - node-addon-require-builtin@0.1.9: + node-addon-require-builtin@0.1.10: dependencies: - node-addon-native-custom-loader: 0.1.9 + node-addon-native-custom-loader: 0.1.10 optionalDependencies: - node-addon-require-builtin-darwin-arm64: 0.1.9 - node-addon-require-builtin-darwin-x64: 0.1.9 - node-addon-require-builtin-linux-arm64-gnu: 0.1.9 - node-addon-require-builtin-linux-arm64-musl: 0.1.9 - node-addon-require-builtin-linux-x64-gnu: 0.1.9 - node-addon-require-builtin-linux-x64-musl: 0.1.9 - node-addon-require-builtin-win32-arm64-msvc: 0.1.9 - node-addon-require-builtin-win32-ia32-msvc: 0.1.9 - node-addon-require-builtin-win32-x64-msvc: 0.1.9 + node-addon-require-builtin-darwin-arm64: 0.1.10 + node-addon-require-builtin-darwin-x64: 0.1.10 + node-addon-require-builtin-linux-arm64-gnu: 0.1.10 + node-addon-require-builtin-linux-arm64-musl: 0.1.10 + node-addon-require-builtin-linux-x64-gnu: 0.1.10 + node-addon-require-builtin-linux-x64-musl: 0.1.10 + node-addon-require-builtin-win32-arm64-msvc: 0.1.10 + node-addon-require-builtin-win32-ia32-msvc: 0.1.10 + node-addon-require-builtin-win32-x64-msvc: 0.1.10 node-api-version@0.2.1: dependencies: @@ -35266,7 +35265,7 @@ snapshots: semver: 7.8.5 tar: 7.5.22 tinyglobby: 0.2.17 - undici: 6.28.1 + undici: 6.29.1 which: 6.0.1 node-int64@0.4.0: {} @@ -35341,19 +35340,19 @@ snapshots: powershell-utils: 0.2.1 wsl-utils: 1.0.0 - openai@7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@8.10.2)(ws@8.21.3)(zod@4.6.6): + openai@7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.21.3)(zod@4.6.6): optionalDependencies: '@aws-sdk/credential-provider-node': 3.972.84 '@smithy/signature-v4': 5.7.4 - undici: 8.10.2 + undici: 6.29.1 ws: 8.21.3 zod: 4.6.6 - openai@7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@8.11.2)(ws@8.21.3)(zod@4.6.6): + openai@7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@8.12.4)(ws@8.21.3)(zod@4.6.6): optionalDependencies: '@aws-sdk/credential-provider-node': 3.972.84 '@smithy/signature-v4': 5.7.4 - undici: 8.11.2 + undici: 8.12.4 ws: 8.21.3 zod: 4.6.6 @@ -36562,13 +36561,11 @@ snapshots: undici-types@8.3.0: {} - undici@6.28.1: {} + undici@6.29.1: {} - undici@7.29.1: {} + undici@7.30.2: {} - undici@8.10.2: {} - - undici@8.11.2: {} + undici@8.12.4: {} unicode-properties@1.4.1: dependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 597407472a..630c1e6ca7 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -16,6 +16,11 @@ packages: overrides: 'extract-zip>yauzl': '3.4.0' + # Keep every installed undici major on its newest security release: 8.12.4 and 7.30.2 match + # the undici bundled in Node 26.13.1 and 24.22.3; 6.29.1 is the newest 6.x release. + 'undici@^6': '6.29.1' + 'undici@^7': '7.30.2' + 'undici@^8': '8.12.4' '@deepseek-ai/cosmokit': 'link:vendor/cosmokit' '@deepseek-ai/schemastery': 'link:vendor/schemastery' @@ -75,18 +80,18 @@ minimumReleaseAgeExclude: # point of bumping it; waiting out the release age would defeat that. - '@earendil-works/pi-ai@1.3.0' - '@earendil-works/pi-telemetry@1.3.0' - # This addon release recognizes the Electron 44.7.0 Node/V8 fingerprint used by Desktop. - - node-addon-native-custom-loader@0.1.9 - - node-addon-require-builtin-darwin-arm64@0.1.9 - - node-addon-require-builtin-darwin-x64@0.1.9 - - node-addon-require-builtin-linux-arm64-gnu@0.1.9 - - node-addon-require-builtin-linux-x64-gnu@0.1.9 - - node-addon-require-builtin-linux-arm64-musl@0.1.9 - - node-addon-require-builtin-linux-x64-musl@0.1.9 - - node-addon-require-builtin-win32-arm64-msvc@0.1.9 - - node-addon-require-builtin-win32-ia32-msvc@0.1.9 - - node-addon-require-builtin-win32-x64-msvc@0.1.9 - - node-addon-require-builtin@0.1.9 + # This addon release recognizes the Electron 44.11.5 Node/V8 fingerprint used by Desktop. + - node-addon-native-custom-loader@0.1.10 + - node-addon-require-builtin-darwin-arm64@0.1.10 + - node-addon-require-builtin-darwin-x64@0.1.10 + - node-addon-require-builtin-linux-arm64-gnu@0.1.10 + - node-addon-require-builtin-linux-x64-gnu@0.1.10 + - node-addon-require-builtin-linux-arm64-musl@0.1.10 + - node-addon-require-builtin-linux-x64-musl@0.1.10 + - node-addon-require-builtin-win32-arm64-msvc@0.1.10 + - node-addon-require-builtin-win32-ia32-msvc@0.1.10 + - node-addon-require-builtin-win32-x64-msvc@0.1.10 + - node-addon-require-builtin@0.1.10 # The active pnpm supply-chain policy blocks this reviewed runtime closure # until its release-age window expires unless every exact package is exempt. - '@anthropic-ai/claude-agent-sdk-darwin-arm64@0.3.263' @@ -112,8 +117,8 @@ minimumReleaseAgeExclude: # The package manager is a workspace devDependency, so its own exact pin # must be exempt from the release-age window that guards other packages. - pnpm@11.28.5 - # Desktop packaging requires this Electron fingerprint with node-addon-require-builtin 0.1.9. - - electron@44.7.0 + # Desktop packaging requires this Electron fingerprint with node-addon-require-builtin 0.1.10. + - electron@44.11.5 # Stagehand 4.4.0 carries the reviewed zod 4.6.6 pin; install it without the release-age wait. - '@browserbasehq/stagehand@4.4.0' patchedDependencies: diff --git a/python/development.i18n.yaml b/python/development.i18n.yaml index bbdafd9074..a110c05f5d 100644 --- a/python/development.i18n.yaml +++ b/python/development.i18n.yaml @@ -12,8 +12,8 @@ en: ad4d61dccf2756a4 zh: 9365affc91287738 /python-contributor-workflows/run-against-node-source: - en: 940c941d189a8248 - zh: 321f5183383d4a12 + en: 7eecbc4856b3ee2f + zh: 3acb88b5b7be80cb /python-contributor-workflows/build-distributions: en: 4aa941562dba5482 zh: 50543a92b3d0cf04 diff --git a/python/development.md b/python/development.md index b8760e5bfb..d390da19bd 100644 --- a/python/development.md +++ b/python/development.md @@ -61,7 +61,7 @@ Alternatively export a non-empty `DSH_HOME`. The SDK rejects a launch that would Repository contributors can select either development route; both execute the normal `dsh --profile sdk` launcher: -- Set `DSH_RUNTIME_MODE=node` to use the built Node carrier on system Node `>=24.9`. The build script refreshes this carrier, but distributions never include or auto-select it. +- Set `DSH_RUNTIME_MODE=node` to use the built Node carrier on system Node `^24.22.3 || >=26.13.1`. The build script refreshes this carrier, but distributions never include or auto-select it. - Set `dsh_bin` to the absolute built `apps/cli/lib/bin.js` path to exercise the checkout's CLI directly. Supply an explicit `dsh_home`, plus `profile` and ordered `patches` as needed. `python/sdk/tests/manual_sdk_agent_smoke.py` uses the internal `_launch_args` test adapter to exercise the unbuilt TypeScript CLI under tsx. Arbitrary argv replacement is intentionally absent from the public SDK. diff --git a/python/development.zh.md b/python/development.zh.md index 5646529274..937952706c 100644 --- a/python/development.zh.md +++ b/python/development.zh.md @@ -61,7 +61,7 @@ with DeepSeekHarness(dsh_home="/absolute/path/to/test-dsh-home") as harness: 仓库贡献者可以选择以下任一开发路径;两者都执行普通的 `dsh --profile sdk` 启动器: -- 设置 `DSH_RUNTIME_MODE=node`,在系统 Node `>=24.9` 上使用已构建的 Node 载体。构建脚本会刷新该载体,但分发物绝不会包含或自动选择它。 +- 设置 `DSH_RUNTIME_MODE=node`,在系统 Node `^24.22.3 || >=26.13.1` 上使用已构建的 Node 载体。构建脚本会刷新该载体,但分发物绝不会包含或自动选择它。 - 将 `dsh_bin` 设置为已构建 `apps/cli/lib/bin.js` 的绝对路径,直接验证当前 checkout 的 CLI。请显式提供 `dsh_home`,并按需提供 `profile` 与有序 `patches`。 `python/sdk/tests/manual_sdk_agent_smoke.py` 使用内部 `_launch_args` 测试适配器,通过 tsx 验证未构建的 TypeScript CLI。公开 SDK 刻意不提供任意 argv 替换。 diff --git a/python/sdk-runtime/README.i18n.yaml b/python/sdk-runtime/README.i18n.yaml index 46211188e6..71f98affa8 100644 --- a/python/sdk-runtime/README.i18n.yaml +++ b/python/sdk-runtime/README.i18n.yaml @@ -6,8 +6,8 @@ en: 1ea1d8e6d2c14b02 zh: 8e0b9903158667a1 /deepseek-harness-runtime-bin/installed-commands-and-artifacts: - en: b1314b95771612fa - zh: f06b96e1feba3757 + en: 0cb99098488b2287 + zh: 0ad6e418502a1e2d /deepseek-harness-runtime-bin/python-module-api: en: 78a200e328d96637 zh: f3b7a0b69b7a39e0 diff --git a/python/sdk-runtime/README.md b/python/sdk-runtime/README.md index 5066d98b2b..b793749761 100644 --- a/python/sdk-runtime/README.md +++ b/python/sdk-runtime/README.md @@ -36,7 +36,7 @@ Skill selection is independent of delivery: project, custom-directory, and user Office skills direct rendering, conversion, and recalculation to the [Office tools](../../packages/document/tool-office/README.md), which load the sidecar's Kit inside the SDK process. See the [Office provider](../../packages/skill/skill-office/README.md#use-this-package) for replacing the skill collection. Configuration patches apply at process startup; changing skills does not require rebuilding the runtime wheel or Python environment. -Repository builds also materialize a dev-only `runtime/node/` carrier. It runs `node runtime/node/runtime-bootstrap.mjs` on system Node 24.9 or newer. It is never selected automatically and is excluded from wheels and sdists. +Repository builds also materialize a dev-only `runtime/node/` carrier. It runs `node runtime/node/runtime-bootstrap.mjs` on system Node 24.22.3 or a newer 24.x release, or Node 26.13.1 or newer. It is never selected automatically and is excluded from wheels and sdists. Both carriers execute the same `dsh` grammar and shipped profiles, including the standalone `sdk-minimal` tree and the full `web` profile with its frontend assets. The private `dsh-python-runtime-closure` manifest defines the packaged dependency closure; there is no Python-specific Node application or checked-in default `cordis.yml`. diff --git a/python/sdk-runtime/README.zh.md b/python/sdk-runtime/README.zh.md index 7316210d2c..5f78455238 100644 --- a/python/sdk-runtime/README.zh.md +++ b/python/sdk-runtime/README.zh.md @@ -36,7 +36,7 @@ primary_runtime = download_primary_runtime() Office 技能把渲染、转换和重算交给 [Office 工具](../../packages/document/tool-office/README.zh.md),它们在 SDK 进程内加载 sidecar 中的 Kit。替换技能集合的方式见 [Office 提供方](../../packages/skill/skill-office/README.zh.md#use-this-package)。配置 patch 在进程启动时生效;切换技能无需重建 runtime wheel 或 Python 环境。 -仓库构建还会物化仅限开发的 `runtime/node/` 载体。它在系统 Node 24.9 或更高版本上运行 `node runtime/node/runtime-bootstrap.mjs`。系统不会自动选择它,而且 wheel 包与 sdist 均不包含它。 +仓库构建还会物化仅限开发的 `runtime/node/` 载体。它在系统 Node 24.22.3 或更高的 24.x 版本,或 Node 26.13.1 或更高版本上运行 `node runtime/node/runtime-bootstrap.mjs`。系统不会自动选择它,而且 wheel 包与 sdist 均不包含它。 两种载体执行相同的 `dsh` 语法与随附 profile,包括独立的 `sdk-minimal` 配置树,以及包含前端产物的完整 `web` profile。私有 `dsh-python-runtime-closure` manifest(元数据清单)定义打包依赖闭包;不存在 Python 专用 Node 应用或检入的默认 `cordis.yml`。 diff --git a/python/sdk-runtime/src/deepseek_harness_runtime/__init__.py b/python/sdk-runtime/src/deepseek_harness_runtime/__init__.py index 6c79da839a..45a9f9ba67 100644 --- a/python/sdk-runtime/src/deepseek_harness_runtime/__init__.py +++ b/python/sdk-runtime/src/deepseek_harness_runtime/__init__.py @@ -11,7 +11,7 @@ Two runtime carriers coexist under ``runtime/``, both injected by the repo's - **node (dev-only)**: the full deploy closure under ``runtime/node/`` (``package.json`` + ``node_modules/``), executed as ``node runtime/node/runtime-bootstrap.mjs`` on a - system Node >= 24.9. It is the current checkout's source build, never + system Node ^24.22.3 || >=26.13.1. It is the current checkout's source build, never selected automatically, and excluded from wheel/sdist distributions. Both carriers execute the same dsh command grammar. The Python SDK selects the @@ -147,7 +147,7 @@ def _node_launch_args() -> tuple[str, str]: node = shutil.which("node") if node is None: raise FileNotFoundError( - "the node runtime mode needs a system `node` (>=24.9) on PATH; " + "the node runtime mode needs a system `node` (^24.22.3 || >=26.13.1) on PATH; " "install Node.js or use the exe mode" ) return (node, str(bin_js)) diff --git a/scripts/build-exe-for-python-sdk.spec.ts b/scripts/build-exe-for-python-sdk.spec.ts index f147b6f5df..bcf739e11a 100644 --- a/scripts/build-exe-for-python-sdk.spec.ts +++ b/scripts/build-exe-for-python-sdk.spec.ts @@ -177,13 +177,26 @@ describe('Python runtime executable builder CLI', () => { expect(result.status).toBe(0) expect(result.stdout).toContain('exec pkg') - expect(result.stdout).toContain('--sea --compress Brotli --targets node24-macos-x64') + expect(result.stdout).toContain('--sea --compress Brotli --targets node24.22.3-macos-x64') expect(result.stdout).toContain('keep only node-pty prebuilds darwin-x64') expect(result.stdout).toContain(`lock optional resource downloads in ${join(root, 'dist-exe', 'macos-x64')}`) expect(result.stdout).not.toContain('office-skills') expect(result.stdout).toContain(join(root, 'dist-exe', 'macos-x64')) }) + it('rejects a Node range other than node24 before any build step', () => { + const result = run( + { npm_execpath: 'C:\\tools\\pnpm.cjs' }, + '--skip-build', + '--dry-run', + '--targets=node24.20.0-linux-x64', + ) + + expect(result.status).not.toBe(0) + expect(result.stderr).toContain('node range must be node24, got "node24.20.0"') + expect(result.stdout).toBe('') + }) + it('rejects a Windows arm64 product before any build step', () => { const result = run( { npm_execpath: 'C:\\tools\\pnpm.cjs' }, diff --git a/scripts/build-exe-for-python-sdk.ts b/scripts/build-exe-for-python-sdk.ts index 56bbbb349f..87fe43a2e9 100644 --- a/scripts/build-exe-for-python-sdk.ts +++ b/scripts/build-exe-for-python-sdk.ts @@ -29,8 +29,10 @@ const DEPLOY_ROOT_PACKAGE = 'dsh-python-runtime-closure' const ENTRY_BIN = 'runtime-bootstrap.mjs' /** Python-visible executable basename. */ const OUTPUT_BASENAME = 'deepseek-harness-sdk-runtime' -/** Default Node major; SEA mode requires at least Node 22. */ -const DEFAULT_NODE_RANGE = 'node24' +/** Node major accepted in `--targets`; SEA mode requires at least Node 22. */ +const NODE_RANGE = 'node24' +/** Exact Node release embedded in every executable, shared with the desktop primary runtime. */ +const NODE_VERSION = primaryLock.nodeVersion const OUT_DIR = 'dist-exe' /** Python package destination; created when absent. */ const PYTHON_RUNTIME_DIR = 'python/sdk-runtime/src/deepseek_harness_runtime/runtime' @@ -95,17 +97,20 @@ function isArch(value: string): value is Arch { */ class Target { private constructor( - /** pkg Node range (`node`). */ - readonly nodeRange: string, /** pkg platform tag. */ readonly platform: Platform, /** pkg CPU tag. */ readonly arch: Arch, ) {} - /** The pkg `--targets` spec string `--`. */ + /** The command-line target `node24--`. */ get spec(): string { - return `${this.nodeRange}-${this.platform}-${this.arch}` + return `${NODE_RANGE}-${this.platform}-${this.arch}` + } + + /** The pkg `--targets` value, which pins the embedded Node release. */ + get pkgSpec(): string { + return `node${NODE_VERSION}-${this.platform}-${this.arch}` } /** @@ -119,8 +124,8 @@ class Target { if (parts.length !== 3 || nodeRange === undefined || platform === undefined || arch === undefined) { throw new Error(`build-exe-for-python-sdk: target ${JSON.stringify(spec)} must be --, e.g. node24-linux-x64.`) } - if (!/^node\d+$/.test(nodeRange)) { - throw new Error(`build-exe-for-python-sdk: target ${JSON.stringify(spec)}: node range must look like node24, got ${JSON.stringify(nodeRange)}.`) + if (nodeRange !== NODE_RANGE) { + throw new Error(`build-exe-for-python-sdk: target ${JSON.stringify(spec)}: node range must be ${NODE_RANGE}, got ${JSON.stringify(nodeRange)}.`) } if (!isPlatform(platform)) { throw new Error(`build-exe-for-python-sdk: target ${JSON.stringify(spec)}: platform must be one of ${PLATFORMS.join(', ')}, got ${JSON.stringify(platform)}.`) @@ -131,7 +136,7 @@ class Target { if (platform === 'win' && arch !== 'x64') { throw new Error(`build-exe-for-python-sdk: target ${JSON.stringify(spec)}: Windows supports x64 only.`) } - return new Target(nodeRange, platform, arch) + return new Target(platform, arch) } /** @@ -156,7 +161,7 @@ class Target { if (platform === 'win' && arch !== 'x64') { throw new Error('build-exe-for-python-sdk: Windows supports x64 only; use an x64 Node process.') } - return new Target(DEFAULT_NODE_RANGE, platform, arch) + return new Target(platform, arch) } } @@ -250,7 +255,7 @@ class BuildCli { 'Usage: pnpm exec tsx scripts/build-exe-for-python-sdk.ts [flags]', '', ' --targets= pkg targets, e.g. node24-linux-x64,node24-linux-arm64,node24-macos-arm64,node24-macos-x64,node24-win-x64.', - ' Default: the host platform only (on node24).', + ` Default: the host platform only. Every executable embeds Node ${NODE_VERSION}.`, ' --skip-build skip `pnpm run build` (lib/ artifacts must already exist).', ' --build-artifacts run `pnpm run build:artifacts` instead, omitting the aggregate test and script typechecks.', ' --compress= pkg archive compression: None | GZip | Brotli | Zstd. Default: Brotli (smallest, slowest).', @@ -401,7 +406,7 @@ class SingleExeBuild { await this.prepareNativePty(target) const platform = target.platform === 'macos' ? 'darwin' : target.platform === 'win' ? 'win32' : target.platform if (!this.cli.dryRun) await mkdir(this.outDir, { recursive: true }) - await this.runPnpm(`pkg ${target.spec}`, [ + await this.runPnpm(`pkg ${target.pkgSpec}`, [ 'exec', 'pkg', this.staging, @@ -409,7 +414,7 @@ class SingleExeBuild { '--compress', this.cli.compress, '--targets', - target.spec, + target.pkgSpec, '--output', product, ]) diff --git a/scripts/ci-compatible-selfhosted.spec.ts b/scripts/ci-compatible-selfhosted.spec.ts index 5d12db93d3..ec6e754720 100644 --- a/scripts/ci-compatible-selfhosted.spec.ts +++ b/scripts/ci-compatible-selfhosted.spec.ts @@ -20,7 +20,7 @@ interface CompatibilityJob { 'runs-on': string if: string env: Record - strategy: { 'fail-fast': boolean; matrix: { include: Array<{ node: string | number; name: string; runner: string; gate_concurrency: string }> } } + strategy: { 'fail-fast': boolean; matrix: { include: Array<{ node: string | number; name: string; runner: string; gate_concurrency: string; build: string }> } } steps: Step[] } @@ -59,11 +59,13 @@ function route(options: { mode?: string; author?: string; repository?: string; f } describe('Node compatibility self-hosted routing', () => { - it('runs the build-backed compatibility minor and declares it for installed CLI users', () => { + it('runs the build-backed compatibility floor release and declares it for installed CLI users', () => { expect(job.strategy.matrix.include.filter(entry => String(entry.node) === BUILD_BACKED_NODE_COMPAT_VERSION)).toHaveLength(1) + expect(job.strategy.matrix.include.filter(entry => entry.build === '1').map(entry => String(entry.node))).toEqual([BUILD_BACKED_NODE_COMPAT_VERSION]) + expect(job.env.DSH_NODE_COMPAT_BUILD).toBe('${{ matrix.build }}') for (const manifest of ['package.json', 'apps/cli/package.json']) { const pkg = JSON.parse(readFileSync(resolve(import.meta.dirname, '..', manifest), 'utf8')) as { engines: { node: string } } - expect(pkg.engines.node).toBe(`>=${BUILD_BACKED_NODE_COMPAT_VERSION}.0`) + expect(pkg.engines.node).toBe(`^${BUILD_BACKED_NODE_COMPAT_VERSION} || >=26.13.1`) } }) @@ -84,8 +86,8 @@ describe('Node compatibility self-hosted routing', () => { expect(job.if).toBe("github.event_name == 'pull_request'") expect(job.strategy['fail-fast']).toBe(false) expect(job.strategy.matrix.include).toEqual([ - { node: '24.9', name: 'node 24.9', runner: 'ubuntu-latest', gate_concurrency: '1' }, - { node: 26, name: 'node 26', runner: 'ubuntu-latest', gate_concurrency: '1' }, + { node: '24.22.3', name: 'node 24.22.3', runner: 'ubuntu-latest', gate_concurrency: '1', build: '1' }, + { node: 26, name: 'node 26', runner: 'ubuntu-latest', gate_concurrency: '1', build: '' }, ]) expect(job.env.DSH_GATE_CONCURRENCY).toBe('${{ matrix.gate_concurrency }}') expect(job.steps.map(step => step.run)).toContain('pnpm run check:node-compat') @@ -149,8 +151,8 @@ describe('Node compatibility self-hosted routing', () => { const step = job.steps.find(candidate => candidate.name === 'Verify isolated Node installation')! expect(step.if).toBe("runner.environment == 'self-hosted'") for (const [executable, status] of [ - ['/runner temp/node-compat-toolcache/node/24.9.0/x64/bin/node', 0], - ['/shared/toolcache/node/24.9.0/x64/bin/node', 1], + ['/runner temp/node-compat-toolcache/node/24.22.3/x64/bin/node', 0], + ['/shared/toolcache/node/24.22.3/x64/bin/node', 1], ['/runner temp/node-compat-toolcache-other/node', 1], ] as const) { const child = spawnSync('bash', ['-e', '-u', '-o', 'pipefail', '-c', 'node() { printf "%s" "$TEST_EXECUTABLE"; }; ' + step.run!], { diff --git a/scripts/ci-workflow.spec.ts b/scripts/ci-workflow.spec.ts index 2af2c236be..a38b9fda0e 100644 --- a/scripts/ci-workflow.spec.ts +++ b/scripts/ci-workflow.spec.ts @@ -37,7 +37,7 @@ describe('CI workflow', () => { expect(compatibilityLimit).toBeGreaterThan(0) expect(compatibility.strategy).toMatchObject({ 'fail-fast': false, - matrix: { include: [{ node: '24.9' }, { node: 26 }] }, + matrix: { include: [{ node: '24.22.3' }, { node: 26 }] }, }) expect(workflowJob(ci, 'all-checks-passed').needs).toContain('node-compat') // The web snapshot shards are the only other matrix: one job, one runner per shard. diff --git a/scripts/preview-workflow.spec.ts b/scripts/preview-workflow.spec.ts index 8df68dd11d..c07b7c57d2 100644 --- a/scripts/preview-workflow.spec.ts +++ b/scripts/preview-workflow.spec.ts @@ -43,7 +43,7 @@ describe('PR preview workflow', () => { }) it('keeps the immutable complete artifact build and restore-only dependency cache', () => { - expect(workflow.env.PRIMARY_NODE_VERSION).toBe('24') + expect(workflow.env.PRIMARY_NODE_VERSION).toBe('^24.22.3') expect(workflow.env.DSH_TELEMETRY_DISABLED).toBe('1') const commands = preview.steps.map(step => step.run) expect(commands).toContain('pnpm install --frozen-lockfile') diff --git a/scripts/primary-runtime/lock.json b/scripts/primary-runtime/lock.json index 92ed9600fb..ea14f817f8 100644 --- a/scripts/primary-runtime/lock.json +++ b/scripts/primary-runtime/lock.json @@ -1,11 +1,11 @@ { - "nodeVersion": "24.21.0", + "nodeVersion": "24.22.3", "pythonVersion": "3.12.14", "pythonRelease": "20260901", "targets": { "win-x64": { "nodeArchive": "win-x64.zip", - "nodeSha256": "158f7685b44de51f6c0df1d153526cbcd3e1bc739a8dfc607721cef75de9e541", + "nodeSha256": "e612af99f626ab415ea225af6bce5c971feb448cb5cae250bb1c3fa50c5f7d9f", "pythonTarget": "x86_64-pc-windows-msvc", "pythonSha256": "7c45c9622400d578709a9b2cddbe8124cc21d382409d9f13406d706d28e31b14", "wheels": [ @@ -29,7 +29,7 @@ }, "mac-arm64": { "nodeArchive": "darwin-arm64.tar.gz", - "nodeSha256": "bed7eea5325e1108f32ce5228ddd6a5f0f08a499ee42aa7442aea583702f6057", + "nodeSha256": "ff6e17d4874b76d272212b908cc020d6e815fba5a6c7eaaa06add725840307fd", "pythonTarget": "aarch64-apple-darwin", "pythonSha256": "81a359f1cfadd4da11766534c5913791cea55f26e1bb902cacd2a531bb1e4b2b", "wheels": [ @@ -53,7 +53,7 @@ }, "mac-x64": { "nodeArchive": "darwin-x64.tar.gz", - "nodeSha256": "1462cb3b3046b815cf8ea436d3da450ec1a9f11dac7e5a46b0ada5305d7e8097", + "nodeSha256": "977614af0504c81045e7fd85596dbca0e5f951b96681516dadafedcca8c447f7", "pythonTarget": "x86_64-apple-darwin", "pythonSha256": "65b195c9cedc1fef6767f044f9822069adbd1bd9204d424ece4628776fdc04bb", "wheels": [ @@ -77,7 +77,7 @@ }, "linux-x64": { "nodeArchive": "linux-x64.tar.gz", - "nodeSha256": "6e1db87ef58b8819e5d5402eff1536491b18edd8eb7bee5ef7897876e88dc5ff", + "nodeSha256": "061ec3e3062115705b56b51fa9cc330ab50d34b6969387d4e4b1a50c6809acc2", "pythonTarget": "x86_64-unknown-linux-gnu", "pythonSha256": "72748da13197c1fb161e3afeef20a6a385ff24f2165e6e2758e47008e7faba4c", "wheels": [ @@ -101,7 +101,7 @@ }, "linux-arm64": { "nodeArchive": "linux-arm64.tar.gz", - "nodeSha256": "724282c3b43aec998aa9527380465b45d229e021b58035f5f4f63095eabfe5d5", + "nodeSha256": "261af2af250dfd7e9f25cf151d1b2713a0adf8f10a9ad116c4947f68627affe8", "pythonTarget": "aarch64-unknown-linux-gnu", "pythonSha256": "577b4bec0793ad1ff0cbff9adbd0df078eddde38a4c41bf5d83ad381a85ee39d", "wheels": [ diff --git a/scripts/publint-all.spec.ts b/scripts/publint-all.spec.ts index 9c6fa05926..cf220e3f82 100644 --- a/scripts/publint-all.spec.ts +++ b/scripts/publint-all.spec.ts @@ -37,7 +37,7 @@ function fixture(options: { version: '0.0.1', type: 'module', license: 'MIT', - engines: { node: '>=24.9.0' }, + engines: { node: '^24.22.3 || >=26.13.1' }, sideEffects: false, files: ['lib'], exports: { '.': { default: options.exportPath ?? './lib/index.js' } }, diff --git a/scripts/run-gates.spec.ts b/scripts/run-gates.spec.ts index c5f6bdc5e2..3e30f9213d 100644 --- a/scripts/run-gates.spec.ts +++ b/scripts/run-gates.spec.ts @@ -1022,7 +1022,7 @@ describe('Typert contract preparation', () => { }) describe('Node compatibility graph', () => { - it.each(['24.9.0', '24.19.0', '26.0.0'])('runs all source compatibility smokes serially on Node %s', (version) => { + it.each(['24.22.3', '24.23.0', '26.0.0'])('runs all source compatibility smokes serially on Node %s', (version) => { const subject = withNodeVersion(version, () => withPnpmEntrypoint(() => gatesForMode('node-compat'))) @@ -1055,18 +1055,28 @@ describe('Node compatibility graph', () => { expect(subject.find(item => item.id === 'source-compat-smokes')?.env).toEqual({ VITEST_MAX_WORKERS: '1' }) }) - it.each(['24.19.0', '26.0.0'])('keeps Node %s compatibility source-only', (version) => { + // The primary lanes nest this mode on latest 24, which can be the floor release itself. + it.each(['24.22.3', '24.23.0', '26.0.0'])('keeps Node %s compatibility source-only without a build request', (version) => { const subject = withNodeVersion(version, () => - withPnpmEntrypoint(() => gatesForMode('node-compat'))) + withEnv('DSH_NODE_COMPAT_BUILD', undefined, () => + withPnpmEntrypoint(() => gatesForMode('node-compat')))) expect(subject.map(item => item.id)).not.toContain('build') expect(subject.map(item => item.id)).not.toContain('cli-lazy-search-startup-smoke') }) - it.each([undefined, '1'])('builds the complete Node 24.9 artifacts once with skip-typecheck=%s', (skipTypecheck) => { - const subject = withNodeVersion('24.9.0', () => - withEnv('DSH_NODE_COMPAT_SKIP_TYPECHECK', skipTypecheck, () => - withPnpmEntrypoint(() => gatesForMode('node-compat')))) + it.each(['24.23.0', '26.0.0'])('rejects a build request on Node %s', (version) => { + expect(() => withNodeVersion(version, () => + withEnv('DSH_NODE_COMPAT_BUILD', '1', () => + withPnpmEntrypoint(() => gatesForMode('node-compat'))))) + .toThrow(`DSH_NODE_COMPAT_BUILD requires Node 24.22.3, got ${version}.`) + }) + + it.each([undefined, '1'])('builds the complete Node 24.22.3 artifacts once on request with skip-typecheck=%s', (skipTypecheck) => { + const subject = withNodeVersion('24.22.3', () => + withEnv('DSH_NODE_COMPAT_BUILD', '1', () => + withEnv('DSH_NODE_COMPAT_SKIP_TYPECHECK', skipTypecheck, () => + withPnpmEntrypoint(() => gatesForMode('node-compat'))))) expect(subject.filter(item => item.displayCommand === 'pnpm run build:artifacts')).toHaveLength(1) expect(subject.find(item => item.id === 'build')?.args).toEqual([ @@ -1079,10 +1089,11 @@ describe('Node compatibility graph', () => { }) }) - it.each(['passed', 'failed'] as const)('runs the Node 24.9 lazy-search smoke only after a passed build (%s)', async (buildStatus) => { - const subject = withNodeVersion('24.9.0', () => - withEnv('DSH_NODE_COMPAT_SKIP_TYPECHECK', '1', () => - withPnpmEntrypoint(() => gatesForMode('node-compat')))) + it.each(['passed', 'failed'] as const)('runs the Node 24.22.3 lazy-search smoke only after a passed build (%s)', async (buildStatus) => { + const subject = withNodeVersion('24.22.3', () => + withEnv('DSH_NODE_COMPAT_BUILD', '1', () => + withEnv('DSH_NODE_COMPAT_SKIP_TYPECHECK', '1', () => + withPnpmEntrypoint(() => gatesForMode('node-compat'))))) let buildCompleted = false let smokeStarted = false const results = await runGates(subject, 2, async (item) => { diff --git a/scripts/run-gates.ts b/scripts/run-gates.ts index 8ac550832c..6998ef97b7 100644 --- a/scripts/run-gates.ts +++ b/scripts/run-gates.ts @@ -106,8 +106,11 @@ type ResultObserver = (result: GateResult) => void /** Worker cap of the documentation and hygiene aggregates, locally and in CI, whose leaves each build a full ts.Program. */ const PROGRAM_MODE_CAP = 8 -/** CI pins this minor in .github/workflows/ci.yml; its compatibility leg owns the built CLI smoke. */ -export const BUILD_BACKED_NODE_COMPAT_VERSION = '24.9' +/** + * CI pins this supported-floor release in .github/workflows/ci.yml. Its compatibility leg owns the built CLI smoke and + * requests it with `DSH_NODE_COMPAT_BUILD=1`; the primary lanes can run this same release and stay source-only. + */ +export const BUILD_BACKED_NODE_COMPAT_VERSION = '24.22.3' const root = resolve(import.meta.dirname, '..') if (import.meta.main) { @@ -490,9 +493,12 @@ function nodeCompatGates(): Gate[] { const typecheck = flagEnabled('DSH_NODE_COMPAT_SKIP_TYPECHECK') ? [] : [pnpmScript('typecheck', 'typecheck')] - if (!process.versions.node.startsWith(`${BUILD_BACKED_NODE_COMPAT_VERSION}.`)) { + if (!flagEnabled('DSH_NODE_COMPAT_BUILD')) { return [...typecheck, ...nodeCompatSmokeGates()] } + if (process.versions.node !== BUILD_BACKED_NODE_COMPAT_VERSION) { + throw new Error(`run-gates: DSH_NODE_COMPAT_BUILD requires Node ${BUILD_BACKED_NODE_COMPAT_VERSION}, got ${process.versions.node}.`) + } return [ ...typecheck, pnpmScript('build', 'build:artifacts', { diff --git a/scripts/wine-windows-gates.sh b/scripts/wine-windows-gates.sh index 5a8181928f..d4932f787c 100755 --- a/scripts/wine-windows-gates.sh +++ b/scripts/wine-windows-gates.sh @@ -12,7 +12,7 @@ # pnpm store. The Wine prefix and the checksum-verified Windows Node zip # persist in .cache/wine-windows/ so reruns skip provisioning. # -# Environment: DSH_WINE_NODE_MAJOR (default $PRIMARY_NODE_VERSION, then 24) +# Environment: DSH_WINE_NODE_MAJOR (default: the major of $PRIMARY_NODE_VERSION, then 24) # picks the Windows Node line; DSH_WINE_GATE_CACHE_DIR relocates the cache; # DSH_WINE_GATE_KEEP=1 preserves the scratch tree for inspection. @@ -22,7 +22,10 @@ repo_root="$(git rev-parse --show-toplevel)" # The scratch tree has no Git metadata or Windows Git executable. DSH_CLIENT_COMMIT_HASH="$(git -C "$repo_root" rev-parse HEAD)" export DSH_CLIENT_COMMIT_HASH -node_major="${DSH_WINE_NODE_MAJOR:-${PRIMARY_NODE_VERSION:-24}}" +# PRIMARY_NODE_VERSION is a setup-node range such as ^24.22.3; keep only its major. +primary_node_version="${PRIMARY_NODE_VERSION:-24}" +primary_node_version="${primary_node_version#^}" +node_major="${DSH_WINE_NODE_MAJOR:-${primary_node_version%%.*}}" cache_dir="${DSH_WINE_GATE_CACHE_DIR:-$repo_root/.cache/wine-windows}" export WINEDEBUG='-all' diff --git a/vendor/loader/package.json b/vendor/loader/package.json index 18befd6baf..f9b7f0716a 100644 --- a/vendor/loader/package.json +++ b/vendor/loader/package.json @@ -31,7 +31,7 @@ "license": "MIT", "peerDependencies": { "@deepseek-ai/cordis": "workspace:~", - "node-addon-require-builtin": "^0.1.9" + "node-addon-require-builtin": "^0.1.10" }, "peerDependenciesMeta": { "node-addon-require-builtin": {