@tangle-network/sandbox-cli 0.23.361 → 0.23.362
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/SKILL.md +1 -9
- package/hub-reference.md +76 -40
- package/package.json +3 -3
package/SKILL.md
CHANGED
|
@@ -126,7 +126,6 @@ stays unavailable.
|
|
|
126
126
|
```bash
|
|
127
127
|
# Create sandboxes
|
|
128
128
|
tangle sandbox create --name my-project
|
|
129
|
-
tangle sandbox create --name demo --template node-ts
|
|
130
129
|
tangle sandbox list
|
|
131
130
|
tangle sandbox get <id>
|
|
132
131
|
tangle sandbox stop <id>
|
|
@@ -297,13 +296,6 @@ tangle hub resume <approval-id> --decline # deny
|
|
|
297
296
|
#Then rerun original exec with --approve
|
|
298
297
|
```
|
|
299
298
|
|
|
300
|
-
### GitHub App (repo-scoped token mint)
|
|
301
|
-
|
|
302
|
-
```bash
|
|
303
|
-
# Mint a short-lived repo-scoped installation token (via hub)
|
|
304
|
-
tangle hub github-app mint-installation-token --repo-url https://github.com/owner/repo
|
|
305
|
-
```
|
|
306
|
-
|
|
307
299
|
## Secrets
|
|
308
300
|
|
|
309
301
|
Secrets are scoped to your account (or team). Values never round-trip: `create`, `list`, `delete` only. At create time a bare `--secret NAME` is box delivery; proxy custody is `--proxy-secret`.
|
|
@@ -356,7 +348,7 @@ tangle team switch my-team
|
|
|
356
348
|
tangle team current
|
|
357
349
|
tangle team clear
|
|
358
350
|
tangle team members
|
|
359
|
-
tangle team update-member <member-id>
|
|
351
|
+
tangle team update-member <member-id> --role <role>
|
|
360
352
|
tangle team invite user@example.com
|
|
361
353
|
tangle team leave [team]
|
|
362
354
|
tangle team transfer <new-owner-customer-id> [team]
|
package/hub-reference.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
The CLI `--json` flag prints raw response data. The SDK internally uses envelopes (`{ success: true, data: ... }` / `{ success: false, error: ... }`), but the CLI unwraps the envelope and prints only the `data` or formats the `error`.
|
|
6
6
|
|
|
7
7
|
**Success output:** raw data object directly (no envelope wrapper).
|
|
8
|
-
**Error output:** `{ error: { code,
|
|
8
|
+
**Error output:** `{ ok: false, error: { code, what, cause, fix: { command }, retryable, status? } }`.
|
|
9
9
|
|
|
10
10
|
### Status
|
|
11
11
|
|
|
@@ -66,7 +66,7 @@ Connection `health`: `unknown`, `healthy`, `unhealthy`, `rate_limited`.
|
|
|
66
66
|
#### Connection references
|
|
67
67
|
|
|
68
68
|
Anywhere a command takes a connection (`--connection`, `connections revoke`,
|
|
69
|
-
`agent --connection`), you may pass a raw connection id (`hubconn_...`) or a
|
|
69
|
+
`agent prompt --connection`), you may pass a raw connection id (`hubconn_...`) or a
|
|
70
70
|
human reference instead:
|
|
71
71
|
|
|
72
72
|
- `<provider>`, for example `github`, resolves when you hold exactly one connection
|
|
@@ -78,7 +78,7 @@ human reference instead:
|
|
|
78
78
|
A reference resolves against `tangle hub connections`; revoked connections are
|
|
79
79
|
skipped. If it matches no connection, or more than one, the CLI fails loud and
|
|
80
80
|
lists the candidates so you can pass an id or `provider:account`. Raw ids never
|
|
81
|
-
contact the hub for resolution. The `agent --connection` head is followed by
|
|
81
|
+
contact the hub for resolution. The `agent prompt --connection` head is followed by
|
|
82
82
|
`:capabilities`, so it accepts a provider or an id but not `provider:account`;
|
|
83
83
|
use an id when a provider is ambiguous there.
|
|
84
84
|
|
|
@@ -380,34 +380,51 @@ tangle hub permissions revert-writes --connection github
|
|
|
380
380
|
|
|
381
381
|
## Error Format
|
|
382
382
|
|
|
383
|
+
A failing command exits non-zero. With `--json` it prints one object:
|
|
384
|
+
|
|
383
385
|
```bash
|
|
384
|
-
#
|
|
385
|
-
tangle hub tools sources --json # when not authenticated
|
|
386
|
+
tangle hub connect phony --json # an API-key provider connected without --key-env
|
|
386
387
|
```
|
|
387
388
|
|
|
388
389
|
```json
|
|
389
390
|
{
|
|
391
|
+
"ok": false,
|
|
390
392
|
"error": {
|
|
391
|
-
"code": "
|
|
392
|
-
"
|
|
393
|
-
"
|
|
393
|
+
"code": "USAGE_INVALID",
|
|
394
|
+
"subject": {},
|
|
395
|
+
"what": "phony connects with an API key, not OAuth",
|
|
396
|
+
"cause": "Put the key in an environment variable and pass the variable's name",
|
|
397
|
+
"fix": {
|
|
398
|
+
"command": "tangle hub connect phony --key-env <ENV_NAME>"
|
|
399
|
+
},
|
|
400
|
+
"retryable": false
|
|
394
401
|
}
|
|
395
402
|
}
|
|
396
403
|
```
|
|
397
404
|
|
|
398
405
|
Error fields:
|
|
399
|
-
- `code`: Hub error code
|
|
400
|
-
- `
|
|
406
|
+
- `code`: a Hub error code from the tables below, or one of the CLI's own codes
|
|
407
|
+
- `what`: what failed
|
|
408
|
+
- `cause`: why, when the Hub or the CLI can say
|
|
409
|
+
- `fix.command`: the command to run next
|
|
410
|
+
- `retryable`: `true`, `false`, or `null` when unknown
|
|
401
411
|
- `status`: HTTP status code (optional)
|
|
402
|
-
- `details`: Additional context (optional)
|
|
403
412
|
|
|
404
413
|
## Error Codes
|
|
405
414
|
|
|
415
|
+
The Hub answers with the codes below. The CLI prints three of them under its own
|
|
416
|
+
name: `HUB_UNAUTHENTICATED` (and any HTTP 401) as `AUTH_EXPIRED`,
|
|
417
|
+
`HUB_CONNECTION_MISSING` as `HUB_NOT_CONNECTED` and `HUB_CONNECTION_REVOKED` as
|
|
418
|
+
`HUB_RECONNECT`.
|
|
419
|
+
|
|
420
|
+
### Connections, tools and approvals
|
|
421
|
+
|
|
406
422
|
| Code | When it occurs | Recovery |
|
|
407
423
|
|------|----------------|----------|
|
|
408
424
|
| `HUB_UNAUTHENTICATED` | Missing or invalid API key | Check `TANGLE_API_KEY` |
|
|
409
425
|
| `HUB_FORBIDDEN` | Valid auth but no permission | Check connection or team membership |
|
|
410
426
|
| `HUB_INVALID_INPUT` | JSON schema violation | Check `inputSchema` with `tools describe` |
|
|
427
|
+
| `HUB_INVALID_STATE` | The OAuth session of a connect flow is missing or expired, or event delivery was requested without a positive Hub balance | Start `tangle hub connect <provider>` again |
|
|
411
428
|
| `HUB_PROVIDER_MISSING` | Provider not configured | `tangle hub connect <provider>` |
|
|
412
429
|
| `HUB_CONNECTION_MISSING` | No connection for this provider | `tangle hub connect <provider>` |
|
|
413
430
|
| `HUB_CONNECTION_REVOKED` | Connection was revoked | Reconnect via `tangle hub connect` |
|
|
@@ -417,10 +434,58 @@ Error fields:
|
|
|
417
434
|
| `HUB_TOKEN_ACTION_MISMATCH` | Token for different action | Use `--approve` with correct action |
|
|
418
435
|
| `HUB_POLICY_DENIED` | Permission set to `deny` | Change policy via `permissions set` |
|
|
419
436
|
| `HUB_APPROVAL_REQUIRED` | Policy is `ask` and first use | Use `--approve` or `approvals approve` |
|
|
437
|
+
| `HUB_APPROVAL_BACKLOG` | The owner has too many open approval requests; this one was not stored (429) | Resolve the pending ones (`tangle hub approvals list`), then retry |
|
|
438
|
+
| `HUB_HUMAN_PROOF_REQUIRED` | The approval takes a person: a passkey on the approval page or a reply from the owner's enrolled phone | Open the URL in the message; the CLI cannot approve it |
|
|
420
439
|
| `HUB_EXECUTOR_FAILURE` | Hub executor error | Retry; check tool health |
|
|
421
440
|
| `HUB_PROVIDER_FAILURE` | Provider API error | Check provider status |
|
|
441
|
+
| `HUB_PROVIDER_REJECTED` | The provider refused the request (422) | Change the request; retry unchanged only when `details.providerRetryable` is true |
|
|
442
|
+
| `HUB_CONFIG_MISSING` | The Hub lacks configuration this request needs, such as a provider or feature not set up on this deployment | Not fixable from the CLI; use another provider or ask the Hub's operator |
|
|
443
|
+
| `HUB_CONFIG_INVALID` | Raised before any request: `TANGLE_HUB_URL` is not a URL, or `TANGLE_API_KEY` and `TANGLE_HUB_CAPABILITY_TOKEN` are both set | Fix the variable; set exactly one credential |
|
|
422
444
|
| `HUB_NOT_FOUND` | Tool or resource not found | Check path spelling |
|
|
423
445
|
| `HUB_NOT_IMPLEMENTED` | Route not yet implemented | Use a different endpoint |
|
|
446
|
+
| `HUB_CONFLICT` | The request conflicts with the resource's current state (409) | Read the resource again, then retry |
|
|
447
|
+
| `HUB_IDEMPOTENCY_CONFLICT` | The idempotency key already belongs to a different request, or the provider outcome of its first request is unknown (409) | Use a new key for a different request; reconcile before sending again |
|
|
448
|
+
| `HUB_IDEMPOTENCY_IN_FLIGHT` | The first request with this idempotency key is still running (409) | Retry after the `Retry-After` seconds |
|
|
449
|
+
| `HUB_HTTP_<status>` | The answer was not a Hub envelope (HTML, a redirect, plain text); `status` carries the HTTP status | Check `--base-url` and `TANGLE_HUB_URL`; retry |
|
|
450
|
+
|
|
451
|
+
### Lines
|
|
452
|
+
|
|
453
|
+
Refusals of the `tangle lines` routes.
|
|
454
|
+
|
|
455
|
+
| Code | When it occurs | Recovery |
|
|
456
|
+
|------|----------------|----------|
|
|
457
|
+
| `HUB_LINE_INACTIVE` | The line is not active (409) | Use an active line |
|
|
458
|
+
| `HUB_MEMBER_INACTIVE` | The member is not active, stopped messages, or changed consent (409) | The member must rejoin the line |
|
|
459
|
+
| `HUB_NO_CONVERSATION` | The recipient has no retained, proven conversation on this line | The recipient messages the line first |
|
|
460
|
+
| `HUB_OUTBOX_LIMIT` | A recipient, member or line send limit is reached (429) | Send later |
|
|
461
|
+
| `HUB_OUTBOX_MISSING` | The record of a proactive send is missing (503) | Retry; report it if it repeats |
|
|
462
|
+
| `HUB_PROACTIVE_GATE_UNSUPPORTED` | The line's reply gate does not allow a proactive message (409) | Send as a reply inside a conversation |
|
|
463
|
+
| `HUB_SENDER_VERIFICATION_UNSUPPORTED` | The line's channel cannot verify senders (422) | Use a line on a channel that verifies senders |
|
|
464
|
+
| `HUB_REMINDER_CONSENT_REQUIRED` | The recipient has not enabled reminders (409) | The recipient replies `REMINDERS ON` and a timezone |
|
|
465
|
+
| `HUB_RELAY_DENIED` | This member may not relay, or the relay names no verified sender (403) | Relay as a member whose role allows it |
|
|
466
|
+
| `HUB_RELAY_RECIPIENT` | The relay recipient is not active on the line, stopped messages, or the name is ambiguous (409) | Name one active recipient |
|
|
467
|
+
| `HUB_REPLY_CODE_IN_USE` | The reply code is already open for this member | Use another code |
|
|
468
|
+
| `HUB_IMAGE_UNSUPPORTED` | The line's transport cannot send this image | Send text, or use a line that sends images |
|
|
469
|
+
|
|
470
|
+
### Workflows
|
|
471
|
+
|
|
472
|
+
The `tangle workflows` routes answer with platform codes, without the `HUB_` prefix.
|
|
473
|
+
|
|
474
|
+
| Code | When it occurs | Recovery |
|
|
475
|
+
|------|----------------|----------|
|
|
476
|
+
| `VALIDATION_ERROR` | The request body or a parameter is invalid | Fix the input named in the message |
|
|
477
|
+
| `WORKFLOW_INVALID` | The workflow definition is not valid; nothing was created, updated or rolled back | `tangle workflows validate <file>` |
|
|
478
|
+
| `NOT_FOUND` | No such workflow, run or revision for this account | Check the id (`tangle workflows list`) |
|
|
479
|
+
| `UNAUTHORIZED` | Missing or invalid `sk-tan-*` key | Check `TANGLE_API_KEY` |
|
|
480
|
+
| `CONFLICT` | The request conflicts with the workflow's current state | Read it again (`tangle workflows get <id>`), then retry |
|
|
481
|
+
| `MISSING_RUN_INPUTS` | The run was not started: trigger inputs are missing (`details.missing`) | Pass each with `--input <key>=<value>` |
|
|
482
|
+
| `WORKFLOW_DISABLED` | The run was not started: the workflow is off | `tangle workflows enable <id>` |
|
|
483
|
+
| `WORKFLOW_RUN_REQUEST_NOT_FOUND` | No run has been admitted for this request key | Start the run again |
|
|
484
|
+
| `WORKFLOW_RUN_REQUEST_CONFLICT` | The request key already admitted a run with a different source, revision, mode or inputs | Use a new key |
|
|
485
|
+
| `PAYLOAD_TOO_LARGE` | The request body is over the size limit (413) | Send a smaller body |
|
|
486
|
+
| `SERVICE_DRAINING` | The Platform process serving a run's event stream is stopping (503) | Open the stream again |
|
|
487
|
+
| `WORKFLOW_RUN_TIMEOUT` | Raised by the client: the wait for a run passed its timeout; `details.status` is the last status seen | The run continues; read it with `tangle workflows run-detail <id> <runId>` |
|
|
488
|
+
| `WORKFLOW_STREAM_INTERRUPTED` | Raised by the client: the run's event stream ended 30 times in a row without an event | Read the run with `tangle workflows run-detail <id> <runId>` |
|
|
424
489
|
|
|
425
490
|
## Workflow Examples
|
|
426
491
|
|
|
@@ -468,32 +533,3 @@ tangle hub permissions list --connection hubconn_github_a1 --json
|
|
|
468
533
|
tangle hub permissions set --connection hubconn_github_a1 --action github.issues.search --decision allow
|
|
469
534
|
tangle hub permissions set --connection hubconn_github_a1 --action github.issues.create --decision ask
|
|
470
535
|
```
|
|
471
|
-
|
|
472
|
-
## GitHub App Primitives
|
|
473
|
-
|
|
474
|
-
```bash
|
|
475
|
-
# Mint a repo-scoped token (requires GitHub App installation)
|
|
476
|
-
tangle hub github-app mint-installation-token --repo-url https://github.com/owner/repo
|
|
477
|
-
|
|
478
|
-
# Check if repo is installed
|
|
479
|
-
tangle hub github-app is-repo-installed --owner owner --repo repo
|
|
480
|
-
|
|
481
|
-
# List installations
|
|
482
|
-
tangle hub github-app installations
|
|
483
|
-
|
|
484
|
-
# List repos for an installation
|
|
485
|
-
tangle hub github-app repos --installation-id 123456
|
|
486
|
-
```
|
|
487
|
-
|
|
488
|
-
## Token Management
|
|
489
|
-
|
|
490
|
-
```bash
|
|
491
|
-
# List minted capability tokens
|
|
492
|
-
tangle hub tokens list --json
|
|
493
|
-
|
|
494
|
-
# List including expired
|
|
495
|
-
tangle hub tokens list --include-expired --json
|
|
496
|
-
|
|
497
|
-
# Revoke a token
|
|
498
|
-
tangle hub tokens revoke tok_xxx --json
|
|
499
|
-
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox-cli",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.362",
|
|
4
4
|
"description": "CLI for Tangle Sandbox operations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"author": "Tangle Network",
|
|
88
88
|
"license": "MIT",
|
|
89
89
|
"tangleRelease": {
|
|
90
|
-
"sourceSha": "
|
|
91
|
-
"mergedAt": "2026-12-03T20:
|
|
90
|
+
"sourceSha": "99cc5c5dce1f873fde71f76103c01f87253181c7",
|
|
91
|
+
"mergedAt": "2026-12-03T20:54:14-08:00"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
94
|
"build": "tsdown",
|