@tangle-network/sandbox-cli 0.9.4-develop.20260701061438.a81baba → 0.9.4-develop.20260702071701.d493d16
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 +48 -0
- package/SKILL.md +13 -0
- package/dist/index.mjs +19 -19
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -86,6 +86,7 @@ Top-level command groups:
|
|
|
86
86
|
- `exec`
|
|
87
87
|
- `ssh`
|
|
88
88
|
- `agent`
|
|
89
|
+
- `fleet`
|
|
89
90
|
- `snapshot`
|
|
90
91
|
- `usage`
|
|
91
92
|
- `permissions`
|
|
@@ -112,6 +113,7 @@ tangle exec sbx_123 "npm test"
|
|
|
112
113
|
tangle ssh sbx_123
|
|
113
114
|
tangle agent prompt sbx_123 "Summarize this repo"
|
|
114
115
|
tangle agent task sbx_123 "Fix the failing tests"
|
|
116
|
+
tangle fleet create --count 4 --coordinator
|
|
115
117
|
|
|
116
118
|
# grant hub connections to the agent (see hub-reference.md for the 3 modes).
|
|
117
119
|
# the connection is an id or a provider name (resolved via `tangle hub connections`).
|
|
@@ -140,6 +142,52 @@ short-lived platform Hub key from your `tangle auth login` session — no separa
|
|
|
140
142
|
key needed. See [`hub-reference.md`](./hub-reference.md) for the `--connection`
|
|
141
143
|
grant modes, `--allow-writes`, and `permissions revert-writes`.
|
|
142
144
|
|
|
145
|
+
## Temporary GPUs
|
|
146
|
+
|
|
147
|
+
Keep the base sandbox cheap and attach a GPU only while the accelerated command runs.
|
|
148
|
+
Omit `--provider` to let Tangle choose the cheapest configured GPU cloud.
|
|
149
|
+
Always set a spend cap and lifetime.
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
# Attach, run one command, and destroy the lease.
|
|
153
|
+
tangle sandbox gpu run sbx_123 \
|
|
154
|
+
--accelerator-kind nvidia-3090 \
|
|
155
|
+
--accelerator-memory 24000 \
|
|
156
|
+
--max-spend-usd 1 \
|
|
157
|
+
--max-lifetime 900 \
|
|
158
|
+
--idle-timeout 120 \
|
|
159
|
+
-- python eval.py
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
For multiple GPU commands, use the manual lifecycle:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
tangle sandbox gpu attach sbx_123 \
|
|
166
|
+
--accelerator-kind nvidia-3090 \
|
|
167
|
+
--accelerator-memory 24000 \
|
|
168
|
+
--max-spend-usd 1 \
|
|
169
|
+
--max-lifetime 900 \
|
|
170
|
+
--idle-timeout 120
|
|
171
|
+
|
|
172
|
+
tangle sandbox gpu list sbx_123
|
|
173
|
+
tangle sandbox gpu exec sbx_123 gpu_abc -- python eval.py
|
|
174
|
+
tangle sandbox gpu detach sbx_123 gpu_abc
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Create-time GPU flags are a shortcut over the same lease lifecycle:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
tangle sandbox create --name gpu-eval \
|
|
181
|
+
--accelerator-kind nvidia-3090 \
|
|
182
|
+
--accelerator-memory 24000 \
|
|
183
|
+
--gpu-max-spend-usd 1 \
|
|
184
|
+
--gpu-max-lifetime 900 \
|
|
185
|
+
--gpu-idle-timeout 120
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
The final detach output includes billed seconds and customer cost.
|
|
189
|
+
Use `tangle usage` to inspect account-level GPU seconds and GPU spend.
|
|
190
|
+
|
|
143
191
|
## Provisioning Coverage
|
|
144
192
|
|
|
145
193
|
`tangle sandbox create` exposes the full SDK provisioning surface, including image/environment, resources (CPU, memory, disk), temporary GPU leases, lifetime and idle timeout, driver and backend selection (`opencode`, `claude-code`, `codex`, `cursor`, `amp`, and other registry backends), SSH and web terminal, env and secret injection, metadata, initial permissions, git clone, tool pre-install, BYOS3 storage, snapshot restore, and outbound network controls. Run `tangle sandbox create --help` for the canonical flag list.
|
package/SKILL.md
CHANGED
|
@@ -259,6 +259,9 @@ tangle team invitations [team] # List pending/historical invitations
|
|
|
259
259
|
|
|
260
260
|
## Workflows
|
|
261
261
|
|
|
262
|
+
Authenticate with the `sk-tan-*` API key (`TANGLE_API_KEY`), same as the other
|
|
263
|
+
platform commands — not a hub capability token.
|
|
264
|
+
|
|
262
265
|
```bash
|
|
263
266
|
tangle workflows validate workflow.yml
|
|
264
267
|
tangle workflows schema # print JSON Schema
|
|
@@ -266,7 +269,17 @@ tangle workflows create workflow.yml
|
|
|
266
269
|
tangle workflows list
|
|
267
270
|
tangle workflows get <id>
|
|
268
271
|
tangle workflows update <id> workflow.yml
|
|
272
|
+
tangle workflows enable <id>
|
|
273
|
+
tangle workflows disable <id>
|
|
269
274
|
tangle workflows delete <id>
|
|
275
|
+
|
|
276
|
+
# Runs
|
|
277
|
+
tangle workflows run <id> # trigger a run
|
|
278
|
+
tangle workflows run <id> --input pull_request.number=123 # with trigger inputs
|
|
279
|
+
tangle workflows run <id> --wait # wait + print result
|
|
280
|
+
tangle workflows runs <id> # run history
|
|
281
|
+
tangle workflows run-detail <id> <runId> # single-run detail
|
|
282
|
+
tangle workflows events <id> <runId> # tail live progress
|
|
270
283
|
```
|
|
271
284
|
|
|
272
285
|
## Other Commands
|