@seacloudai/seacloud-cli 0.0.16 → 0.0.17
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 +87 -2
- package/README.zh.md +87 -2
- package/npm-bundles/SHA256SUMS +5 -5
- package/npm-bundles/seacloud_0.0.17_darwin_amd64.tar.gz +0 -0
- package/npm-bundles/seacloud_0.0.17_darwin_arm64.tar.gz +0 -0
- package/npm-bundles/seacloud_0.0.17_linux_amd64.tar.gz +0 -0
- package/npm-bundles/seacloud_0.0.17_linux_arm64.tar.gz +0 -0
- package/npm-bundles/seacloud_0.0.17_windows_amd64.zip +0 -0
- package/package.json +1 -1
- package/npm-bundles/seacloud_0.0.16_darwin_amd64.tar.gz +0 -0
- package/npm-bundles/seacloud_0.0.16_darwin_arm64.tar.gz +0 -0
- package/npm-bundles/seacloud_0.0.16_linux_amd64.tar.gz +0 -0
- package/npm-bundles/seacloud_0.0.16_linux_arm64.tar.gz +0 -0
- package/npm-bundles/seacloud_0.0.16_windows_amd64.zip +0 -0
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
- **Proxy-based image generation**: Call sync image-generation models through a compatible proxy service, with optional asset URL output.
|
|
32
32
|
- **Task tracking**: Poll task status and print result URLs or full JSON responses.
|
|
33
33
|
- **SkillHub integration**: Search, install, and configure agent skills from SeaCloud SkillHub.
|
|
34
|
-
- **Agent-friendly UX**: Supports `--dry-run`, JSON output, stable command shapes, and copy-pasteable examples.
|
|
34
|
+
- **Agent-friendly UX**: Supports `--dry-run`, JSON output, output limits, actionable errors, stable command shapes, and copy-pasteable examples.
|
|
35
35
|
|
|
36
36
|
## Install
|
|
37
37
|
|
|
@@ -139,6 +139,17 @@ seacloud skills add some-skill
|
|
|
139
139
|
seacloud skills config --show
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
+
### Manage sandboxes
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
seacloud sandbox create base
|
|
146
|
+
seacloud sandbox create base --no-connect --wait
|
|
147
|
+
seacloud sandbox list --state running,paused --format json
|
|
148
|
+
seacloud sandbox exec <sandbox_id> ls -la
|
|
149
|
+
seacloud sandbox connect <sandbox_id>
|
|
150
|
+
seacloud sandbox kill <sandbox_id>
|
|
151
|
+
```
|
|
152
|
+
|
|
142
153
|
## Commands
|
|
143
154
|
|
|
144
155
|
### `seacloud auth`
|
|
@@ -200,6 +211,73 @@ seacloud images generate --prompt="a blue cat" --output json
|
|
|
200
211
|
seacloud images generate --prompt="a blue cat" --output url
|
|
201
212
|
```
|
|
202
213
|
|
|
214
|
+
### `seacloud sandbox`
|
|
215
|
+
|
|
216
|
+
Core sandbox commands follow the E2B CLI shape:
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
seacloud sandbox create [template]
|
|
220
|
+
seacloud sandbox create base --no-connect --wait
|
|
221
|
+
seacloud sandbox list --state running,paused --metadata app=agent --limit 10 --next-token <token>
|
|
222
|
+
seacloud sandbox exec <sandbox_id> "python --version"
|
|
223
|
+
seacloud sandbox exec --background <sandbox_id> "sleep 60 && echo done"
|
|
224
|
+
seacloud sandbox exec --cwd /workspace --user root --env NODE_ENV=production <sandbox_id> node app.js
|
|
225
|
+
seacloud sandbox connect <sandbox_id> --shell bash
|
|
226
|
+
seacloud sandbox kill <sandbox_id>
|
|
227
|
+
seacloud sandbox kill --all --state running,paused
|
|
228
|
+
seacloud sandbox metrics <sandbox_id>
|
|
229
|
+
seacloud sandbox metrics <sandbox_id_1> <sandbox_id_2> --output json
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
SeaCloud sandbox API features exposed by the SDKs are also available:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
seacloud sandbox create base --auto-resume --allow-internet-access=false --allow-out 1.1.1.1 --volume-mount cache:/cache
|
|
236
|
+
seacloud sandbox network update <sandbox_id> --allow-public-traffic=true --deny-out 10.0.0.0/8
|
|
237
|
+
seacloud sandbox logs <sandbox_id> --limit 100 --direction backward
|
|
238
|
+
seacloud sandbox pause <sandbox_id>
|
|
239
|
+
seacloud sandbox timeout <sandbox_id> --seconds 3600
|
|
240
|
+
seacloud sandbox refresh <sandbox_id> --duration 300
|
|
241
|
+
|
|
242
|
+
seacloud sandbox volume create cache
|
|
243
|
+
seacloud sandbox volume list
|
|
244
|
+
seacloud sandbox volume get <volume_id>
|
|
245
|
+
seacloud sandbox volume delete <volume_id>
|
|
246
|
+
|
|
247
|
+
seacloud sandbox events --type sandbox.lifecycle.created
|
|
248
|
+
seacloud sandbox webhook create --name lifecycle --url https://example.com/webhook --secret whsec_... --event sandbox.lifecycle.created --max-attempts 5 --delay-seconds 1,5,30
|
|
249
|
+
seacloud sandbox webhook update <webhook_id> --enabled=false
|
|
250
|
+
seacloud sandbox webhook deliveries --status failed
|
|
251
|
+
seacloud sandbox webhook replay <delivery_id>
|
|
252
|
+
|
|
253
|
+
seacloud sandbox team list
|
|
254
|
+
seacloud sandbox team metrics <team_id> --start 1710000000 --end 1710003600
|
|
255
|
+
seacloud sandbox observability
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
`seacloud sandbox create <template>` follows E2B's interactive behavior when run in a terminal: it creates the sandbox, connects a shell, and kills the sandbox when the shell exits. Use `--no-connect` or `--output json` for automation.
|
|
259
|
+
|
|
260
|
+
### `seacloud template`
|
|
261
|
+
|
|
262
|
+
Template commands provide the E2B migration surface for local template projects and build operations:
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
seacloud template init --language typescript --name my-template
|
|
266
|
+
seacloud template migrate --language python --name my-template
|
|
267
|
+
seacloud template build my-template --dockerfile Dockerfile
|
|
268
|
+
seacloud template build my-template --image python:3.13 --cpu-count 2 --memory-mb 2048 --tag v1
|
|
269
|
+
seacloud template build my-template --from-template base --no-wait
|
|
270
|
+
seacloud template list --format json
|
|
271
|
+
seacloud template get my-template
|
|
272
|
+
seacloud template builds my-template
|
|
273
|
+
seacloud template status <template_id> <build_id>
|
|
274
|
+
seacloud template logs <template_id> <build_id> --limit 100
|
|
275
|
+
seacloud template tags assign my-template:v1 production stable
|
|
276
|
+
seacloud template tags list my-template
|
|
277
|
+
seacloud template tags remove my-template staging
|
|
278
|
+
seacloud template delete my-template
|
|
279
|
+
```
|
|
280
|
+
|
|
203
281
|
### `seacloud version`
|
|
204
282
|
|
|
205
283
|
```bash
|
|
@@ -209,14 +287,21 @@ seacloud version
|
|
|
209
287
|
## Output and Automation
|
|
210
288
|
|
|
211
289
|
- Use `--output json` where supported for machine-readable responses.
|
|
290
|
+
- Use `--format json` on sandbox/template commands for E2B-compatible output flag naming.
|
|
212
291
|
- Use `--output url` on task commands to print only result URLs.
|
|
213
292
|
- Set `SEACLOUD_FOLKOS_PROXY_URL` to the root of your proxy service when using `seacloud images generate` or sync image models through `seacloud run`.
|
|
214
|
-
-
|
|
293
|
+
- Set `SEACLOUD_SANDBOX_URL` or `SEACLOUD_BASE_URL` to the sandbox gateway API root. A gateway root such as `https://sandbox-gateway.cloud.seaart.ai` is normalized to `/api/v1`.
|
|
294
|
+
- Sandbox and template commands read API keys from the normal SeaCloud config, `SEACLOUD_API_KEY`, or E2B-compatible aliases `E2B_API_KEY` / `E2B_ACCESS_TOKEN`.
|
|
295
|
+
- Set `SEACLOUD_NAMESPACE_ID`, `SEACLOUD_USER_ID`, and `SEACLOUD_PROJECT_ID` when calling scoped sandbox APIs such as events, webhooks, volumes, teams, or metrics.
|
|
296
|
+
- Use global `--dry-run` before write/delete/replay operations. Dry-run output shows the method, path, body/query, destructive status, and the next step.
|
|
297
|
+
- Use `--limit`, `--next-token`, `--cursor`, or `--offset` on list/log/event commands to keep responses small.
|
|
298
|
+
- Parameter errors include the invalid field, what is wrong, and a suggested command or flag to fix it.
|
|
215
299
|
|
|
216
300
|
Example:
|
|
217
301
|
|
|
218
302
|
```bash
|
|
219
303
|
seacloud --dry-run run seedance_2_0 --param prompt=test
|
|
304
|
+
seacloud --dry-run sandbox webhook create --name lifecycle --url https://example.com/webhook --secret whsec_...
|
|
220
305
|
```
|
|
221
306
|
|
|
222
307
|
## Release
|
package/README.zh.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
- **代理生图**:通过兼容的代理服务调用同步生图模型,并可选择输出资产 URL。
|
|
32
32
|
- **任务追踪**:轮询任务状态,输出结果 URL 或完整 JSON。
|
|
33
33
|
- **SkillHub 集成**:搜索、安装和配置 SeaCloud SkillHub 技能。
|
|
34
|
-
- **Agent 友好**:支持 `--dry-run`、JSON
|
|
34
|
+
- **Agent 友好**:支持 `--dry-run`、JSON 输出、输出限量、可操作错误、稳定命令结构和可直接复制的示例。
|
|
35
35
|
|
|
36
36
|
## 安装
|
|
37
37
|
|
|
@@ -139,6 +139,17 @@ seacloud skills add some-skill
|
|
|
139
139
|
seacloud skills config --show
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
+
### 管理沙箱
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
seacloud sandbox create base
|
|
146
|
+
seacloud sandbox create base --no-connect --wait
|
|
147
|
+
seacloud sandbox list --state running,paused --format json
|
|
148
|
+
seacloud sandbox exec <sandbox_id> ls -la
|
|
149
|
+
seacloud sandbox connect <sandbox_id>
|
|
150
|
+
seacloud sandbox kill <sandbox_id>
|
|
151
|
+
```
|
|
152
|
+
|
|
142
153
|
## 命令概览
|
|
143
154
|
|
|
144
155
|
### `seacloud auth`
|
|
@@ -200,6 +211,73 @@ seacloud images generate --prompt="一只蓝色猫" --output json
|
|
|
200
211
|
seacloud images generate --prompt="一只蓝色猫" --output url
|
|
201
212
|
```
|
|
202
213
|
|
|
214
|
+
### `seacloud sandbox`
|
|
215
|
+
|
|
216
|
+
核心沙箱命令对齐 E2B CLI 的命令形态:
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
seacloud sandbox create [template]
|
|
220
|
+
seacloud sandbox create base --no-connect --wait
|
|
221
|
+
seacloud sandbox list --state running,paused --metadata app=agent --limit 10 --next-token <token>
|
|
222
|
+
seacloud sandbox exec <sandbox_id> "python --version"
|
|
223
|
+
seacloud sandbox exec --background <sandbox_id> "sleep 60 && echo done"
|
|
224
|
+
seacloud sandbox exec --cwd /workspace --user root --env NODE_ENV=production <sandbox_id> node app.js
|
|
225
|
+
seacloud sandbox connect <sandbox_id> --shell bash
|
|
226
|
+
seacloud sandbox kill <sandbox_id>
|
|
227
|
+
seacloud sandbox kill --all --state running,paused
|
|
228
|
+
seacloud sandbox metrics <sandbox_id>
|
|
229
|
+
seacloud sandbox metrics <sandbox_id_1> <sandbox_id_2> --output json
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
三端 SDK 已支持的 SeaCloud 沙箱能力也已暴露到 CLI:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
seacloud sandbox create base --auto-resume --allow-internet-access=false --allow-out 1.1.1.1 --volume-mount cache:/cache
|
|
236
|
+
seacloud sandbox network update <sandbox_id> --allow-public-traffic=true --deny-out 10.0.0.0/8
|
|
237
|
+
seacloud sandbox logs <sandbox_id> --limit 100 --direction backward
|
|
238
|
+
seacloud sandbox pause <sandbox_id>
|
|
239
|
+
seacloud sandbox timeout <sandbox_id> --seconds 3600
|
|
240
|
+
seacloud sandbox refresh <sandbox_id> --duration 300
|
|
241
|
+
|
|
242
|
+
seacloud sandbox volume create cache
|
|
243
|
+
seacloud sandbox volume list
|
|
244
|
+
seacloud sandbox volume get <volume_id>
|
|
245
|
+
seacloud sandbox volume delete <volume_id>
|
|
246
|
+
|
|
247
|
+
seacloud sandbox events --type sandbox.lifecycle.created
|
|
248
|
+
seacloud sandbox webhook create --name lifecycle --url https://example.com/webhook --secret whsec_... --event sandbox.lifecycle.created --max-attempts 5 --delay-seconds 1,5,30
|
|
249
|
+
seacloud sandbox webhook update <webhook_id> --enabled=false
|
|
250
|
+
seacloud sandbox webhook deliveries --status failed
|
|
251
|
+
seacloud sandbox webhook replay <delivery_id>
|
|
252
|
+
|
|
253
|
+
seacloud sandbox team list
|
|
254
|
+
seacloud sandbox team metrics <team_id> --start 1710000000 --end 1710003600
|
|
255
|
+
seacloud sandbox observability
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
`seacloud sandbox create <template>` 在交互终端中会按 E2B 习惯工作:创建沙箱、连接 shell、退出 shell 后删除沙箱。脚本化创建请使用 `--no-connect` 或 `--output json`。
|
|
259
|
+
|
|
260
|
+
### `seacloud template`
|
|
261
|
+
|
|
262
|
+
模板命令提供 E2B 迁移所需的本地模板项目和构建操作:
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
seacloud template init --language typescript --name my-template
|
|
266
|
+
seacloud template migrate --language python --name my-template
|
|
267
|
+
seacloud template build my-template --dockerfile Dockerfile
|
|
268
|
+
seacloud template build my-template --image python:3.13 --cpu-count 2 --memory-mb 2048 --tag v1
|
|
269
|
+
seacloud template build my-template --from-template base --no-wait
|
|
270
|
+
seacloud template list --format json
|
|
271
|
+
seacloud template get my-template
|
|
272
|
+
seacloud template builds my-template
|
|
273
|
+
seacloud template status <template_id> <build_id>
|
|
274
|
+
seacloud template logs <template_id> <build_id> --limit 100
|
|
275
|
+
seacloud template tags assign my-template:v1 production stable
|
|
276
|
+
seacloud template tags list my-template
|
|
277
|
+
seacloud template tags remove my-template staging
|
|
278
|
+
seacloud template delete my-template
|
|
279
|
+
```
|
|
280
|
+
|
|
203
281
|
### `seacloud version`
|
|
204
282
|
|
|
205
283
|
```bash
|
|
@@ -209,14 +287,21 @@ seacloud version
|
|
|
209
287
|
## 自动化与输出
|
|
210
288
|
|
|
211
289
|
- 在支持的命令上使用 `--output json` 获取机器可读输出。
|
|
290
|
+
- sandbox/template 命令也支持 `--format json`,用于兼容 E2B 的输出参数命名。
|
|
212
291
|
- 在任务命令上使用 `--output url` 只打印结果 URL。
|
|
213
292
|
- 使用 `seacloud images generate` 或通过 `seacloud run` 调用同步生图模型时,请把 `SEACLOUD_FOLKOS_PROXY_URL` 设置为你的代理服务根地址。
|
|
214
|
-
-
|
|
293
|
+
- 使用 `SEACLOUD_SANDBOX_URL` 或 `SEACLOUD_BASE_URL` 配置沙箱网关 API 根地址;如果填的是 `https://sandbox-gateway.cloud.seaart.ai` 这种网关根地址,CLI 会自动补 `/api/v1`。
|
|
294
|
+
- sandbox/template 命令会从 SeaCloud 本地配置、`SEACLOUD_API_KEY`,或 E2B 兼容别名 `E2B_API_KEY` / `E2B_ACCESS_TOKEN` 读取 API key。
|
|
295
|
+
- 调用 events、webhooks、volumes、teams、metrics 等带作用域的沙箱 API 时,可设置 `SEACLOUD_NAMESPACE_ID`、`SEACLOUD_USER_ID`、`SEACLOUD_PROJECT_ID`。
|
|
296
|
+
- 写入、删除、重放这类操作前先使用全局 `--dry-run`。dry-run 输出会展示 method、path、body/query、是否破坏性操作和下一步提示。
|
|
297
|
+
- list/log/event 类命令使用 `--limit`、`--next-token`、`--cursor` 或 `--offset` 控制输出量。
|
|
298
|
+
- 参数错误会包含哪个字段出错、错在哪里,以及建议执行的修复命令或参数。
|
|
215
299
|
|
|
216
300
|
示例:
|
|
217
301
|
|
|
218
302
|
```bash
|
|
219
303
|
seacloud --dry-run run seedance_2_0 --param prompt=test
|
|
304
|
+
seacloud --dry-run sandbox webhook create --name lifecycle --url https://example.com/webhook --secret whsec_...
|
|
220
305
|
```
|
|
221
306
|
|
|
222
307
|
## 发布说明
|
package/npm-bundles/SHA256SUMS
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
fb833dbbd5b0c91f54c1b5a794e98868a4756188f08637a09b772dca5745169f seacloud_0.0.17_darwin_amd64.tar.gz
|
|
2
|
+
e703913f834c7ab5921b3cd6fe71db6270b4bef65b8f8001f0e5795fa032379f seacloud_0.0.17_darwin_arm64.tar.gz
|
|
3
|
+
79d4be934d7fcbd174e91f5e4664924dc62de99db8b84ffaebf5295d6297a20b seacloud_0.0.17_linux_amd64.tar.gz
|
|
4
|
+
7b4d2b986a60d31961a5ced0fb535f74ec0ca64af42d10a29ad35c26d202ad7d seacloud_0.0.17_linux_arm64.tar.gz
|
|
5
|
+
50b2c2296e70510680d8a74cbe0916ddde2e9fedafd2bea4c0a042c9cb823eed seacloud_0.0.17_windows_amd64.zip
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|