@deepseek-ai/dsh-workflow-ptc 0.2.1-rc.3 → 0.2.2-alpha.2

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
@@ -24,8 +24,8 @@
24
24
  en: 0626f232df315a7d
25
25
  zh: 573e9a12bc69ac6d
26
26
  /deepseek-ai-dsh-workflow-ptc/use-this-package/file-policy-and-cancellation:
27
- en: 5a13be99e2c2ca39
28
- zh: ff16dbe6bc83a75d
27
+ en: 7c0287dbaef61267
28
+ zh: 874c6efa4b39ed60
29
29
  /deepseek-ai-dsh-workflow-ptc/understand-the-implementation:
30
30
  en: ff9de0f5f3423c12
31
31
  zh: 4c5ae9845d452cc1
package/README.md CHANGED
@@ -56,7 +56,7 @@ Invalid metadata, an unparseable body, an unavailable provider route or a per-ru
56
56
 
57
57
  ### File policy and cancellation
58
58
 
59
- The engine captures the calling Session's effective working directory and standing file policy separately. The PTC process and every child started by that workflow retain the captured directory when the parent later moves. A runtime without confinement is accepted only for `danger-full-access`; `read-only` and `workspace-write` fail before execution. Node in-memory mode executes an async wrapper in a temporary environment, so workflow-local variables never join the Agent's retained REPL. The VM retains the documented helper API, but it is not a security boundary: code that reaches Node follows the selected runtime's file policy. The program-visible environment is empty. Network access is not restricted by the file policy.
59
+ The engine captures the calling Session's effective working directory and standing file policy separately. The PTC process and every child started by that workflow retain the captured directory when the parent later moves. A runtime without confinement is accepted only for `danger-full-access`; `read-only` and `workspace-write` fail before execution. Node in-memory mode executes an async wrapper in a temporary environment, so workflow-local variables never join the Agent's retained REPL. Script mode uses an async function expression whose Promise completion carries the workflow result. The VM retains the documented helper API, but it is not a security boundary: code that reaches Node follows the selected runtime's file policy. The program-visible environment is empty. Network access is not restricted by the file policy.
60
60
 
61
61
  The workflow requests `timeoutMs: null` from PTC. Its initial VM slice still has `syncTimeoutMs`, and a caller's abort signal still applies, including an enclosing tool deadline. Cancellation immediately aborts the PTC process and pending or active subagents. The caller must dispose every run and await child cleanup; there is no separate workflow cleanup timer.
62
62
 
package/README.zh.md CHANGED
@@ -56,7 +56,7 @@ Node PTC 提供方的 `maxPendingCalls` 也限制工作流并发:子 agent 启
56
56
 
57
57
  ### 文件策略与取消
58
58
 
59
- 引擎分别捕获调用 Session 的有效工作目录与常设文件策略。父级之后切换目录时,PTC 进程及该工作流随后启动的每个子级都保留捕获的目录。不支持文件约束的运行时只允许用于 `danger-full-access`;`read-only` 和 `workspace-write` 在执行前失败。Node 内存保留模式在临时环境中执行异步包装函数,因此工作流局部变量不会进入 Agent 保留的 REPL。VM 保留文档说明的辅助 API,但它不是安全边界:触达 Node 的代码遵循所选运行时的文件策略。程序可见的环境为空。文件策略不限制网络访问。
59
+ 引擎分别捕获调用 Session 的有效工作目录与常设文件策略。父级之后切换目录时,PTC 进程及该工作流随后启动的每个子级都保留捕获的目录。不支持文件约束的运行时只允许用于 `danger-full-access`;`read-only` 和 `workspace-write` 在执行前失败。Node 内存保留模式在临时环境中执行异步包装函数,因此工作流局部变量不会进入 Agent 保留的 REPL。Script 模式使用 async 函数表达式,通过其 Promise 完成值返回工作流结果。VM 保留文档说明的辅助 API,但它不是安全边界:触达 Node 的代码遵循所选运行时的文件策略。程序可见的环境为空。文件策略不限制网络访问。
60
60
 
61
61
  工作流向 PTC 请求 `timeoutMs: null`。最初的 VM 片段仍受 `syncTimeoutMs` 限制,调用方的中止信号仍然生效,包括外层工具的截止。取消立即中止 PTC 进程及待启动或活跃的 subagent。调用方必须释放每次运行并等待子 agent 清理;不另设工作流清理定时器。
62
62
 
package/lib/index.js CHANGED
@@ -426,7 +426,11 @@ var PtcWorkflowRun = class {
426
426
  this.requireActive();
427
427
  if (this.runtime.sandboxMode === void 0 && this.policy.mode !== "danger-full-access") throw new Error(`workflow runtime cannot enforce the ${this.policy.mode} file policy`);
428
428
  const outcome = await this.runtime.run(this.runtime.resolve({
429
- program: this.runtime.programFormat === "repl" ? `await (async () => {\n${PROGRAM}\n})()` : PROGRAM,
429
+ program: {
430
+ "function-body": PROGRAM,
431
+ repl: `await (async () => {\n${PROGRAM}\n})()`,
432
+ script: `(async () => {\n${PROGRAM}\n})()`
433
+ }[this.runtime.programFormat],
430
434
  bindings: [{
431
435
  global: "workflowHost",
432
436
  functions: this.bindings()
package/locale/de.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Workflow-Ausführungs-Engine",
4
+ "description": "Führen Sie Workflow-Orchestrierungscode mit der gemeinsam genutzten PTC-Laufzeit aus."
5
+ }
6
+ }
package/locale/es.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Motor de ejecución de flujo de trabajo",
4
+ "description": "Ejecute el código de orquestación del flujo de trabajo utilizando el tiempo de ejecución compartido PTC."
5
+ }
6
+ }
package/locale/fr.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Moteur d'exécution de workflow",
4
+ "description": "Exécutez le code d'orchestration de workflow à l'aide du runtime PTC partagé."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "ワークフロー実行エンジン",
4
+ "description": "共有 PTC ランタイムを使用して、ワークフローのコードを実行します。"
5
+ }
6
+ }
package/locale/pt.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Mecanismo de execução de fluxo de trabalho",
4
+ "description": "Execute o código de orquestração de fluxo de trabalho usando o tempo de execução PTC compartilhado."
5
+ }
6
+ }
package/locale/ru.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Механизм выполнения рабочего процесса",
4
+ "description": "Выполните код оркестрации рабочего процесса, используя общую среду выполнения PTC."
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-workflow-ptc",
3
3
  "description": "Workflow orchestration in the shared sandboxed Node PTC runtime",
4
- "version": "0.2.1-rc.3",
4
+ "version": "0.2.2-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,48 +29,48 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "peerDependencies": {
32
- "@deepseek-ai/cordis": "~4.0.5",
33
- "@deepseek-ai/dsh-agent": "0.2.1-rc.3",
34
- "@deepseek-ai/dsh-llm": "0.2.1-rc.3",
35
- "@deepseek-ai/dsh-session": "0.2.1-rc.3",
36
- "@deepseek-ai/dsh-subagent": "0.2.1-rc.3",
37
- "@deepseek-ai/dsh-tools": "0.2.1-rc.3",
38
- "@deepseek-ai/dsh-workflow": "0.2.1-rc.3",
39
- "@deepseek-ai/dsh-ptc-runtime": "0.2.1-rc.3",
40
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.3",
41
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.3",
42
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.3"
32
+ "@deepseek-ai/cordis": "~4.0.6-alpha.1",
33
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
34
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
35
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.2",
36
+ "@deepseek-ai/dsh-subagent": "0.2.2-alpha.2",
37
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
38
+ "@deepseek-ai/dsh-workflow": "0.2.2-alpha.2",
39
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.2-alpha.2",
40
+ "@deepseek-ai/dsh-sandbox": "0.2.2-alpha.2",
41
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.2",
42
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.2"
43
43
  },
44
44
  "dependencies": {
45
- "@deepseek-ai/dsh-brand": "0.2.1-rc.3",
46
- "@deepseek-ai/dsh-util-values": "0.2.1-rc.3",
47
- "@deepseek-ai/schemastery": "~3.18.5"
45
+ "@deepseek-ai/dsh-brand": "0.2.2-alpha.2",
46
+ "@deepseek-ai/dsh-util-values": "0.2.2-alpha.2",
47
+ "@deepseek-ai/schemastery": "~3.18.6-alpha.1"
48
48
  },
49
49
  "devDependencies": {
50
- "@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.1-rc.3",
51
- "@deepseek-ai/cordis": "~4.0.5",
52
- "@deepseek-ai/dsh-agent": "0.2.1-rc.3",
53
- "@deepseek-ai/dsh-agent-loop": "0.2.1-rc.3",
54
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-rc.3",
55
- "@deepseek-ai/dsh-llm": "0.2.1-rc.3",
56
- "@deepseek-ai/dsh-session": "0.2.1-rc.3",
57
- "@deepseek-ai/dsh-session-projection": "0.2.1-rc.3",
58
- "@deepseek-ai/dsh-subagent": "0.2.1-rc.3",
59
- "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-rc.3",
60
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.3",
61
- "@deepseek-ai/dsh-tools": "0.2.1-rc.3",
62
- "@deepseek-ai/dsh-workflow": "0.2.1-rc.3",
63
- "@deepseek-ai/dsh-http-proxy": "0.2.1-rc.3",
64
- "@deepseek-ai/dsh-ptc-runtime": "0.2.1-rc.3",
65
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.3",
66
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.3",
67
- "@deepseek-ai/dsh-ptc-runtime-node": "0.2.1-rc.3",
68
- "@deepseek-ai/dsh-fs": "0.2.1-rc.3",
69
- "@deepseek-ai/dsh-fs-local": "0.2.1-rc.3",
70
- "@deepseek-ai/dsh-subprocess": "0.2.1-rc.3",
71
- "@deepseek-ai/dsh-subprocess-local": "0.2.1-rc.3",
72
- "@deepseek-ai/dsh-sandbox-local": "0.2.1-rc.3",
73
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.3",
74
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.3"
50
+ "@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.2-alpha.2",
51
+ "@deepseek-ai/cordis": "~4.0.6-alpha.1",
52
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
53
+ "@deepseek-ai/dsh-agent-loop": "0.2.2-alpha.2",
54
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-alpha.2",
55
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
56
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.2",
57
+ "@deepseek-ai/dsh-session-projection": "0.2.2-alpha.2",
58
+ "@deepseek-ai/dsh-subagent": "0.2.2-alpha.2",
59
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.2-alpha.2",
60
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.2",
61
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
62
+ "@deepseek-ai/dsh-workflow": "0.2.2-alpha.2",
63
+ "@deepseek-ai/dsh-http-proxy": "0.2.2-alpha.2",
64
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.2-alpha.2",
65
+ "@deepseek-ai/dsh-sandbox": "0.2.2-alpha.2",
66
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.2",
67
+ "@deepseek-ai/dsh-ptc-runtime-node": "0.2.2-alpha.2",
68
+ "@deepseek-ai/dsh-fs": "0.2.2-alpha.2",
69
+ "@deepseek-ai/dsh-fs-local": "0.2.2-alpha.2",
70
+ "@deepseek-ai/dsh-subprocess": "0.2.2-alpha.2",
71
+ "@deepseek-ai/dsh-subprocess-local": "0.2.2-alpha.2",
72
+ "@deepseek-ai/dsh-sandbox-local": "0.2.2-alpha.2",
73
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-alpha.2",
74
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.2"
75
75
  }
76
76
  }