@delta-infra/cli 1.0.24 → 1.0.26

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.md CHANGED
@@ -171,7 +171,7 @@ delta-cli sandbox kill <sandbox_id>
171
171
  | `delta-cli sandbox finish <id>` | 保存结果并销毁 |
172
172
  | `delta-cli sandbox kill <id>` | 销毁 sandbox |
173
173
  | `delta-cli sandbox run <id> --command "..."` | 同步运行命令 |
174
- | `delta-cli sandbox run-bg <id> --command "..."` | 后台运行命令 |
174
+ | `delta-cli sandbox run-bg <id> --command "..." [--wait]` | 后台运行命令(`--wait` 返回 `execution_id`,命令结束后仍可查日志) |
175
175
  | `delta-cli sandbox logs <id> --execution-id <eid>` | 查看后台日志 |
176
176
  | `delta-cli sandbox status bg <id> --execution-id <eid>` | 查询后台命令状态 |
177
177
  | `delta-cli sandbox cancel <id> --execution-id <eid>` | 中断后台命令 |
package/checksums.txt CHANGED
@@ -1,5 +1,5 @@
1
- db8e4d2955ff5d22133a7495ba08ae8f9896a50bdc4d132786624089a6bea938 delta-cli-darwin-amd64.tar.gz
2
- 2ffaebe5745e8cf48f507e19915d0f61eb543838193c5f477f400ad2cb6ec5bf delta-cli-darwin-arm64.tar.gz
3
- 364ce5828b20468d5a23d5a6b63df8362c04f953de0a746037c9c0bbad521d90 delta-cli-linux-amd64.tar.gz
4
- abea89f2770c8c2fb454df9202d86c41821654ecd28899a10c77d4b567917359 delta-cli-linux-arm64.tar.gz
5
- 459455e4e0e310a29133618b995abb7231ac7f18027183a7cfbe4c00b820c4eb delta-cli-windows-amd64.zip
1
+ 110cb296b55737119c1a0338af0c659e7c4707fe5de634697fa7ef0bcf098a25 delta-cli-darwin-amd64.tar.gz
2
+ 50ed88ad864a6c1e6775c79d08977c8682e122f109e5aed3fe6abfa0452a0c26 delta-cli-darwin-arm64.tar.gz
3
+ 11a43205c93dfa12e57543171c810dac20f08bdb4bf91a38c510a8989f65f806 delta-cli-linux-amd64.tar.gz
4
+ 90e8f18aec87969d1b9a48ff4e74ea2eef25ef0681ee7fbb50f085a4fd2d92e1 delta-cli-linux-arm64.tar.gz
5
+ b2a18ddff838feea1c3325a8c287c5e0c209f221085883c12b0f0ede75276e70 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.24",
3
+ "version": "1.0.26",
4
4
  "description": "Delta Sandbox CLI",
5
5
  "bin": {
6
6
  "delta-cli": "scripts/run.js"
@@ -41,7 +41,7 @@ metadata:
41
41
  ```bash
42
42
  delta-cli sandbox run-bg <id> --command "<命令>" --timeout <秒> --wait
43
43
  ```
44
- CLI 在内部每 5 秒轮询一次 `logs`,直到 `finished=true` 或超时,然后一次性返回 `{running, finished, exit_code, content}`。适合只关心最终结果、不需要查看中间进度的场景。
44
+ CLI 在内部每 5 秒轮询一次 `logs`,直到 `finished=true` 或超时,然后一次性返回 `{execution_id, running, finished, exit_code, content}`。返回的 `execution_id` 可在后续用于 `sandbox logs` / `status bg` / `cancel`。适合只关心最终结果、不需要查看中间进度的场景。
45
45
 
46
46
  **手动轮询(需要查看中间进度时)**:
47
47
  如果不加 `--wait` 或需要查看实时输出,用 `sandbox logs <id> --execution-id <exec_id>` 手动轮询:
@@ -25,7 +25,7 @@
25
25
  ```bash
26
26
  delta-cli sandbox run-bg <id> --command "<命令>" --timeout 7200 --wait
27
27
  ```
28
- CLI 内部每 5 秒轮询一次,`finished=true` 时返回。只消耗 **1 次 tool call**,适合不关心中间进度的场景。
28
+ CLI 内部每 5 秒轮询一次,`finished=true` 时返回,结果中包含 `execution_id`。只消耗 **1 次 tool call**,适合不关心中间进度的场景。
29
29
 
30
30
  ### 方式二:手动轮询(需要看实时输出时)
31
31