diff --git a/packages/code-runtime/code-runtime-python/README.i18n.yaml b/packages/code-runtime/code-runtime-python/README.i18n.yaml index 901ddd90d5..34651facd9 100644 --- a/packages/code-runtime/code-runtime-python/README.i18n.yaml +++ b/packages/code-runtime/code-runtime-python/README.i18n.yaml @@ -2,5 +2,5 @@ # side as of the last confirmed-consistent state. Both languages carry equal authority; # after editing either side, bring the other along and re-record with: # pnpm run verify-translation-pairing --write packages/code-runtime/code-runtime-python/README.md -README.md: 26c4db82f0caf8a1d4333480426621e75e7610b9 -README.zh.md: ee754d03e747b01fa11443d22e156d1b5ebde9fd +README.md: 7b116c4d51df44e0db519fdf0fd73a1776dfb4f1 +README.zh.md: 2f367d6bde6d79163be9e45e2bdea61ab0f62958 diff --git a/packages/code-runtime/code-runtime-python/README.md b/packages/code-runtime/code-runtime-python/README.md index 26c4db82f0..7b116c4d51 100644 --- a/packages/code-runtime/code-runtime-python/README.md +++ b/packages/code-runtime/code-runtime-python/README.md @@ -1,6 +1,6 @@ --- description: "CPython-subprocess code runtime: the dsh-code-runtime seam implementation for Python model code, with the fd-3 wire protocol it speaks." -kind: "package-library" +kind: "package-reference" --- # @deepseek-ai/dsh-code-runtime-python diff --git a/packages/code-runtime/code-runtime-python/README.zh.md b/packages/code-runtime/code-runtime-python/README.zh.md index ee754d03e7..2f367d6bde 100644 --- a/packages/code-runtime/code-runtime-python/README.zh.md +++ b/packages/code-runtime/code-runtime-python/README.zh.md @@ -1,13 +1,13 @@ --- description: "CPython 子进程代码 runtime:为 Python 模型代码实现 dsh-code-runtime seam,及其使用的 fd-3 wire 协议。" -kind: "package-library" +kind: "package-reference" --- # @deepseek-ai/dsh-code-runtime-python [English](README.md) | 中文 -## 摘要 +## 概述 `dsh-code-runtime-python` 交付 `PythonCodeRuntime`——[`dsh-code-runtime`](../code-runtime/README.zh.md) seam 的 CPython 子进程实现:它以 `language: 'python'`、`isolation: 'process'` 注册为 `codeRuntime`,每次 `run()` 启动一个全新的 `python3 -I` 子进程,把程序作为 async 函数体执行,通过子进程 fd 3 上的无版本 JSON-lines 协议通信(stdout/stderr 留给程序自己的输出)。宿主侧(`src/protocol.ts`)把每条入站帧都视为敌意并逐字段重建后才读取;Python 侧(`py/protocol.py`)镜像消息词汇。隔离(不是安全边界——模型代码与 bash 同等的信任)来自空环境、`RLIMIT_CPU`/`RLIMIT_AS`、墙钟上限与 `SIGTERM`→宽限→`SIGKILL` 进程组拆卸,所有上限都在插件加载期校验。 diff --git a/scripts/doc-standard.spec.ts b/scripts/doc-standard.spec.ts index 07462bd105..aa2987fec0 100644 --- a/scripts/doc-standard.spec.ts +++ b/scripts/doc-standard.spec.ts @@ -55,7 +55,6 @@ const PACKAGE_LIBRARIES: Readonly> = { 'packages/client/ui-primitives': 'Browser-side UI component library; plain component exports.', 'packages/client/ui-slots': 'Browser-side slot-map declarations; plain type exports.', 'packages/client/web': 'Browser application boot library; exports the app entry and static module table.', - 'packages/code-runtime/code-runtime-python': 'Host-side protocol library for the CPython subprocess runtime.', 'packages/core/scope': 'Scoped-context primitives; exports functions and types without a plugin entry.', 'packages/experimental/webworker-packer': 'Build-time VFS image packer and command library.', 'packages/experimental/webworker-runtime': 'Browser worker runtime library with explicit host entry points.',