Merge pull request #8837 from deepseek-harness/chore/node-24-22-3-floor

chore(deps): raise the Node.js floor to 24.22.3
This commit is contained in:
imccyu authored and GitHub committed 2026-11-22 11:23:51 +08:00
1 parent d98f5d6851
commit 09d9609a28
85 files changed
+393 -294

No files matched your search

+2 -2
View File
@@ -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
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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 替换。
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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`.
+1 -1
View File
@@ -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`。
@@ -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))