@deepseek-ai/dsh-ptc-runtime-node 0.2.3-alpha.2 → 0.2.3-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.i18n.yaml CHANGED
@@ -15,8 +15,8 @@
15
15
  en: d152484eb41ac6b4
16
16
  zh: 725b47765ee8f30b
17
17
  /deepseek-ai-dsh-ptc-runtime-node/use-this-package:
18
- en: 70e83ccdf8159a10
19
- zh: 8282f1da5e844426
18
+ en: bcf2259d73b03b1c
19
+ zh: a91f2350dbe6bee9
20
20
  /deepseek-ai-dsh-ptc-runtime-node/use-this-package/configuration:
21
21
  en: b49a23785fd80315
22
22
  zh: 1167b2face1e1028
@@ -27,8 +27,8 @@
27
27
  en: 6751521701e314dd
28
28
  zh: 9e6c2b179f728414
29
29
  /deepseek-ai-dsh-ptc-runtime-node/use-this-package/deadlines-and-cancellation:
30
- en: d383ec7aeab8afec
31
- zh: 7c9c49e205fbbcd8
30
+ en: 511918ad8310596f
31
+ zh: 783ed5fa9165a4b8
32
32
  /deepseek-ai-dsh-ptc-runtime-node/use-this-package/failures:
33
33
  en: e1bd21b71247a198
34
34
  zh: f479995b244c6715
@@ -51,8 +51,8 @@
51
51
  en: ac2e2ae13d3f1394
52
52
  zh: 5d08b9c658fcf83a
53
53
  /deepseek-ai-dsh-ptc-runtime-node/model-experience:
54
- en: 4e89db2b3ccd585a
55
- zh: 461b5e1e9caaf959
54
+ en: 73034e8e6251b896
55
+ zh: 6fef6fb21ef0efc9
56
56
  /deepseek-ai-dsh-ptc-runtime-node/model-experience/kv-cache-effect:
57
57
  en: 40294c1c31b74824
58
58
  zh: d91e7b78c0619c7e
package/README.md CHANGED
@@ -25,7 +25,7 @@ Execute model-written TypeScript with host-provided async functions. The default
25
25
  <a id="use-this-package"></a>
26
26
  ## Use this package
27
27
 
28
- Mount this provider in a composition that supplies `fs`, `subprocess`, `sandbox` and `sandboxPolicy`. `dsh-tool-executor-ptc` supplies the calling Session's directory and standing policy; direct runtime consumers resolve those options before execution.
28
+ Mount this provider in a composition that supplies `fs`, `subprocess`, `sandbox` and `sandboxPolicy`. `dsh-tool-registry-ptc` supplies the calling Session's directory and standing policy; direct runtime consumers resolve those options before execution.
29
29
 
30
30
  Programs display text, objects, and `Image` values through top-level `inspect(...values)`. One call can mix multiple texts and images, including images nested in arrays and objects. `Image.attachmentId` matches the attachment ID in the model's image description. `Image.path` names a stored attachment file readable in the execution environment; `width` and `height` describe that file’s pixels. Image descriptors share the `maxOutputBytes` budget with text.
31
31
 
@@ -128,7 +128,7 @@ Service consumers pass an object as `stateOwner` to reuse its environment and aw
128
128
 
129
129
  For calls carrying a Session policy, a mode change cancels admission even while waiting for cleanup or process startup. Restoring the previous mode does not revive a canceled call.
130
130
 
131
- The PTC consumer exposes per-call timeout and approved sandbox choices as described in [dsh-tool-executor-ptc](../../core/tool-executor-ptc/README.md). The runtime's readonly `timeout` descriptor reports its effective default and maximum to that consumer. The provider owns execution syntax, output syntax and state-retention guidance in `executionInstructions`. The tool consumer appends those mode-specific rules to its model-visible schema without inferring persistence from `programFormat`.
131
+ The PTC consumer exposes per-call timeout and approved sandbox choices as described in [dsh-tool-registry-ptc](../../core/tool-registry-ptc/README.md). The runtime's readonly `timeout` descriptor reports its effective default and maximum to that consumer. The provider owns execution syntax, output syntax and state-retention guidance in `executionInstructions`. The tool consumer appends those mode-specific rules to its model-visible schema without inferring persistence from `programFormat`.
132
132
 
133
133
  Omitting `timeoutMs` uses the configured elapsed default; numeric requests are validated and capped. Service callers can explicitly pass `timeoutMs: null` to omit the elapsed timer, as the workflow adapter does; `run_code` continues to accept only positive numeric overrides. An enabled deadline covers runtime setup and execution, including time awaiting nested tools or approval. It is not a CPU meter. Timeout results retain captured output and report `execution timed out before code started` until the program is submitted to the ready process, or `execution timed out during execution` afterward. Timeout or cancellation during retained execution requests cooperative revocation. Captured output produced after the stop request is discarded, including output from `catch` and `finally` handlers. Acknowledgment preserves the VM and variables, including earlier mutations. If the execution thread cannot acknowledge within `stopGraceMs`, or the acknowledgment fails, the host terminates the managed process range and waits for cleanup. The result remains `timeout` or `abort` and reports whether variables were preserved or cleared; timeout messages also report the elapsed budget. After confirmed termination, the next call creates an empty environment. Cleanup failure returns `worker-exit` and blocks reuse until host release succeeds. Startup timeouts, temporary execution stops and successful per-call completion terminate the managed process range immediately. The timer stops when an outcome is selected, before cleanup, so the returned call can take longer than its execution deadline while cleanup settles.
134
134
 
@@ -231,7 +231,7 @@ Read the service contract before using the provider directly; the decisions expl
231
231
  <a id="model-experience"></a>
232
232
  ## Model Experience
233
233
 
234
- Indirectly, through `dsh-tool-executor-ptc` and `dsh-workflow-ptc`, which present program outcomes through their own tool results. Intermediate binding traffic stays outside model history; the outer result follows the ordinary tool spill policy.
234
+ Indirectly, through `dsh-tool-registry-ptc` and `dsh-workflow-ptc`, which present program outcomes through their own tool results. Intermediate binding traffic stays outside model history; the outer result follows the ordinary tool spill policy.
235
235
 
236
236
  #### KV Cache effect
237
237
 
package/README.zh.md CHANGED
@@ -25,7 +25,7 @@ kind: "package-reference"
25
25
  <a id="use-this-package"></a>
26
26
  ## 使用本包
27
27
 
28
- 在提供 `fs`、`subprocess`、`sandbox` 和 `sandboxPolicy` 的组合中挂载本提供方。`dsh-tool-executor-ptc`传入调用 Session 的目录和常设策略;直接运行时消费方在执行前解析这些选项。
28
+ 在提供 `fs`、`subprocess`、`sandbox` 和 `sandboxPolicy` 的组合中挂载本提供方。`dsh-tool-registry-ptc`传入调用 Session 的目录和常设策略;直接运行时消费方在执行前解析这些选项。
29
29
 
30
30
  程序通过顶层 `inspect(...values)` 展示文本、对象与 `Image`;同一次调用可混合多段文本和多张图片,图片也可嵌入数组或对象。`Image.attachmentId` 与模型收到的图片说明中的附件 ID 一致。`Image.path` 是执行环境可读取的已存储附件文件,`width` 与 `height` 为该文件的像素尺寸。图片元数据与文本共用 `maxOutputBytes` 预算。
31
31
 
@@ -128,7 +128,7 @@ profile 编辑器可从 `@deepseek-ai/dsh-ptc-runtime-node/configuration` 导入
128
128
 
129
129
  对于携带 Session 策略的调用,模式变化会取消其准入,即使调用仍在等待清理或进程启动。恢复先前的模式不会重新启用已取消的调用。
130
130
 
131
- PTC 消费方按 [dsh-tool-executor-ptc](../../core/tool-executor-ptc/README.zh.md) 的说明公开逐次超时与经审批的沙箱选择。运行时只读 `timeout` 描述符向该消费方报告有效默认值与上限。提供方通过 `executionInstructions` 负责求值语法、输出方式和状态保留指引。工具消费者将对应模式的规则附加到面向模型的 schema,不根据 `programFormat` 推断是否保留状态。
131
+ PTC 消费方按 [dsh-tool-registry-ptc](../../core/tool-registry-ptc/README.zh.md) 的说明公开逐次超时与经审批的沙箱选择。运行时只读 `timeout` 描述符向该消费方报告有效默认值与上限。提供方通过 `executionInstructions` 负责求值语法、输出方式和状态保留指引。工具消费者将对应模式的规则附加到面向模型的 schema,不根据 `programFormat` 推断是否保留状态。
132
132
 
133
133
  省略 `timeoutMs` 使用配置的经过时间默认值;数值请求经过验证并封顶。服务调用方可以显式传入 `timeoutMs: null` 来省略经过时间定时器,工作流适配器即如此;`run_code` 仍只接受正数覆盖值。启用的截止覆盖运行时准备和执行,包括等待嵌套工具或审批的时间。它不是 CPU 计量器。超时结果保留已捕获的输出;在程序提交给就绪进程之前报告 `execution timed out before code started`,提交后报告 `execution timed out during execution`。保留环境中的执行超时或取消会请求协作式撤销。发出停止请求后产生的捕获输出会被丢弃,包括 `catch` 和 `finally` 处理器的捕获输出。收到确认后保留 VM 和变量,包括此前发生的修改。如果执行线程未在 `stopGraceMs` 内确认,或确认失败,宿主终止受管进程范围并等待清理。结果仍为 `timeout` 或 `abort`,并说明变量被保留还是清空;超时消息还会报告经过时间预算。确认终止后,下一次调用创建空环境。清理失败返回 `worker-exit`,并阻止复用,直到宿主释放成功。启动前超时、临时执行停止以及逐次执行成功完成均立即终止受管进程范围。选择结果后、清理前停止计时器,因此调用可能要在执行截止之后等待清理结算才返回。
134
134
 
@@ -231,7 +231,7 @@ AsyncFunction 和 Node REPL 共用同步 `registerHooks` 和以 symbol 为键的
231
231
  <a id="model-experience"></a>
232
232
  ## 模型体验
233
233
 
234
- 通过 `dsh-tool-executor-ptc`与 `dsh-workflow-ptc` 间接提供;它们通过各自的工具结果呈现程序结果。中间绑定通信不进入模型历史;外层结果遵循普通工具溢出策略。
234
+ 通过 `dsh-tool-registry-ptc`与 `dsh-workflow-ptc` 间接提供;它们通过各自的工具结果呈现程序结果。中间绑定通信不进入模型历史;外层结果遵循普通工具溢出策略。
235
235
 
236
236
  #### KV Cache effect
237
237
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-ptc-runtime-node",
3
3
  "description": "Node PTC execution with async function, REPL, scoped REPL and VM Script evaluators and optional retained state",
4
- "version": "0.2.3-alpha.2",
4
+ "version": "0.2.3-alpha.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -42,36 +42,36 @@
42
42
  ],
43
43
  "license": "MIT",
44
44
  "peerDependencies": {
45
- "@deepseek-ai/cordis": "~4.2.0-alpha.1",
46
- "@deepseek-ai/dsh-ptc-runtime": "0.2.3-alpha.2",
47
- "@deepseek-ai/dsh-session": "0.2.3-alpha.2",
48
- "@deepseek-ai/dsh-timeout": "0.2.3-alpha.2",
49
- "@deepseek-ai/dsh-fs": "0.2.3-alpha.2",
50
- "@deepseek-ai/dsh-subprocess": "0.2.3-alpha.2",
51
- "@deepseek-ai/dsh-sandbox": "0.2.3-alpha.2",
52
- "@deepseek-ai/dsh-sandbox-policy": "0.2.3-alpha.2"
45
+ "@deepseek-ai/cordis": "~4.2.0-alpha.2",
46
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.3-alpha.3",
47
+ "@deepseek-ai/dsh-session": "0.2.3-alpha.3",
48
+ "@deepseek-ai/dsh-timeout": "0.2.3-alpha.3",
49
+ "@deepseek-ai/dsh-fs": "0.2.3-alpha.3",
50
+ "@deepseek-ai/dsh-subprocess": "0.2.3-alpha.3",
51
+ "@deepseek-ai/dsh-sandbox": "0.2.3-alpha.3",
52
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.3-alpha.3"
53
53
  },
54
54
  "dependencies": {
55
- "@deepseek-ai/dsh-util-values": "0.2.3-alpha.2",
56
- "@deepseek-ai/schemastery": "~3.20.0-alpha.1",
55
+ "@deepseek-ai/dsh-util-values": "0.2.3-alpha.3",
56
+ "@deepseek-ai/schemastery": "~3.20.0-alpha.2",
57
57
  "acorn": "^8.18.0",
58
58
  "acorn-walk": "^8.3.5",
59
59
  "birpc": "4.2.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@deepseek-ai/dsh-brand": "0.2.3-alpha.2",
63
- "@deepseek-ai/cordis": "~4.2.0-alpha.1",
64
- "@deepseek-ai/dsh-ptc-runtime": "0.2.3-alpha.2",
65
- "@deepseek-ai/dsh-session": "0.2.3-alpha.2",
66
- "@deepseek-ai/dsh-timeout": "0.2.3-alpha.2",
67
- "@deepseek-ai/dsh-fs": "0.2.3-alpha.2",
68
- "@deepseek-ai/dsh-subprocess": "0.2.3-alpha.2",
69
- "@deepseek-ai/dsh-sandbox": "0.2.3-alpha.2",
70
- "@deepseek-ai/dsh-sandbox-policy": "0.2.3-alpha.2",
71
- "@deepseek-ai/dsh-fs-local": "0.2.3-alpha.2",
72
- "@deepseek-ai/dsh-subprocess-local": "0.2.3-alpha.2",
73
- "@deepseek-ai/dsh-session-projection": "0.2.3-alpha.2",
74
- "@deepseek-ai/dsh-sandbox-local": "0.2.3-alpha.2",
75
- "@deepseek-ai/dsh-attachment": "0.2.3-alpha.2"
62
+ "@deepseek-ai/dsh-brand": "0.2.3-alpha.3",
63
+ "@deepseek-ai/cordis": "~4.2.0-alpha.2",
64
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.3-alpha.3",
65
+ "@deepseek-ai/dsh-session": "0.2.3-alpha.3",
66
+ "@deepseek-ai/dsh-timeout": "0.2.3-alpha.3",
67
+ "@deepseek-ai/dsh-fs": "0.2.3-alpha.3",
68
+ "@deepseek-ai/dsh-subprocess": "0.2.3-alpha.3",
69
+ "@deepseek-ai/dsh-sandbox": "0.2.3-alpha.3",
70
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.3-alpha.3",
71
+ "@deepseek-ai/dsh-fs-local": "0.2.3-alpha.3",
72
+ "@deepseek-ai/dsh-subprocess-local": "0.2.3-alpha.3",
73
+ "@deepseek-ai/dsh-session-projection": "0.2.3-alpha.3",
74
+ "@deepseek-ai/dsh-sandbox-local": "0.2.3-alpha.3",
75
+ "@deepseek-ai/dsh-attachment": "0.2.3-alpha.3"
76
76
  }
77
77
  }