@delta-infra/cli 1.0.57 → 1.0.58

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/checksums.txt CHANGED
@@ -1,5 +1,5 @@
1
- 2d4e188225a81a40a880dfadb3da7da65ef7d1168759119f1e279042e9e6bb6e delta-cli-darwin-amd64.tar.gz
2
- d57bf63fe9bb127a0473b1c538f03e4741c2de8148fb24dc8fa6b8c619b58224 delta-cli-darwin-arm64.tar.gz
3
- e769e6482228f00f553424247fed6699c5de6aa724e502372e156718022d12f1 delta-cli-linux-amd64.tar.gz
4
- 23b4c988552d0b01878db15d588afd3a76f7cf31649d5b2e8c96e5f3ca58b0b2 delta-cli-linux-arm64.tar.gz
5
- 4aee9fef6cd5f15cfb25cc393dab18ef2b6a497dda5611eee2eb9a623dcca787 delta-cli-windows-amd64.zip
1
+ e9cc11880aa4583b0d10a4cd8277ba1f0966c3898f1b1d839dae54f798bdb7cf delta-cli-darwin-amd64.tar.gz
2
+ 8d597178dc8ee9888c059f68841c3f987738ee3b452b72a7d369583efda4df50 delta-cli-darwin-arm64.tar.gz
3
+ 065078cb310ee321bc2c07968a420ddb73e57253f1a9c38768ad097e45a115ca delta-cli-linux-amd64.tar.gz
4
+ cfbb8d11ac1eae0203c66832bf6af7cb8c9820bb3874cf33219a18e9669a6f6a delta-cli-linux-arm64.tar.gz
5
+ 885302f590a808d5c58459c215f316e77b63a09f84aab53a0e253bf9abd3ac31 delta-cli-windows-amd64.zip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delta-infra/cli",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "Delta Sandbox CLI",
5
5
  "bin": {
6
6
  "delta-cli": "scripts/run.js"
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: delta-sandbox
3
- version: 1.3.0
3
+ version: 1.3.1
4
4
  description: "在 Delta Sandbox Linux 容器中运行任意命令或脚本。适用于训练、推理、编译、数据处理等任意需要 sandbox 的计算任务,支持 Python / Node.js / Go / Java / Rust 等语言。所有任务通用同一套输出约定:命令在 stdout 末尾输出结构化 JSON,CLI 反向扫描 stdout 末尾 JSON 自动提取为 `data.result_summary` 字段。Planner 调用本 skill 时,请在 plan step 的 required_outputs 中声明 [{kind: 'file', extensions: ['.json']}]。请求中用中性动词(运行/执行)描述命令,只有真的会落盘文件时,才使用创建/写入/保存等动词并带上扩展名。认证/配置/权限错误转 delta-shared。"
5
5
  metadata:
6
6
  requires:
@@ -27,7 +27,7 @@ delta-cli sandbox run-bg <id> --command "<命令>" --timeout 7200 --wait
27
27
  ```
28
28
  CLI 内部每 5 秒轮询一次,`finished=true` 时返回,结果中包含 `execution_id`。只消耗 **1 次 tool call**,适合不关心中间进度的场景。
29
29
 
30
- > v1.0.55 起 `--wait` 默认带 `--summary`,返回的 JSON `data.result_summary` 字段已包含 stdout 末尾结构化 JSON 的提取结果。常用场景无需再调 `sandbox read` 二次解析 result_file。
30
+ > `--wait` 默认带 `--summary`,返回的 JSON `data.result_summary` 字段已包含 stdout 末尾结构化 JSON 的提取结果。常用场景无需再调 `sandbox read` 二次解析 result_file。
31
31
 
32
32
  ### 方式二:手动轮询(需要看实时输出时)
33
33
 
@@ -22,7 +22,7 @@ required_outputs:
22
22
  {"status":"ok","key_metric_1":"value_1","key_metric_2":123}
23
23
  ```
24
24
 
25
- > **v1.0.55 起**:`sandbox run` / `run-bg --wait` 默认带 `--summary`,CLI 会自动 reverse-scan stdout 末尾的 JSON 并填入响应 `data.result_summary` 字段。脚本作者只需保证 stdout 最后一行是合法 JSON,skill 端无需再做提取。
25
+ > `sandbox run` / `run-bg --wait` 默认带 `--summary`,CLI 会自动 reverse-scan stdout 末尾的 JSON 并填入响应 `data.result_summary` 字段。脚本作者只需保证 stdout 最后一行是合法 JSON,skill 端无需再做提取。
26
26
 
27
27
  SKILL 会把它提取为 `result.json` 的 `summary`,并生成 `result_summary` 与最终 `RESULT:` 行。
28
28
 
@@ -124,7 +124,7 @@ SKILL 会把它提取为 `result.json` 的 `summary`,并生成 `result_summary
124
124
 
125
125
  ## 本地 `result.json` 的内容约定
126
126
 
127
- - **v1.0.55+ 默认路径**:`run` / `run-bg --wait` 返回 JSON 的 `data.result_summary` 字段已含 CLI 提取结果。写本地 `result.json` 时直接复用 `data.result_summary` 即可,无需再走 `sandbox read` 解析 `result_file`。
127
+ - **默认路径**:`run` / `run-bg --wait` 返回 JSON 的 `data.result_summary` 字段已含 CLI 提取结果。写本地 `result.json` 时直接复用 `data.result_summary` 即可,无需再走 `sandbox read` 解析 `result_file`。
128
128
  - **fallback 路径**(用 `--no-summary` 时或 `summary` 为 null):保留 `delta-cli sandbox read <id> --path <result_file>` + Python 解析的旧路。
129
129
  - 本地 `result.json` 是一份**精简摘要**,用于 host deliverable 校验,不是完整日志存档。
130
130
  - 必须包含 `result_summary` 字段,内容与最终 `RESULT:` 行一致,方便 Runner 直接读取结论。