@tangle-network/sandbox-cli 0.21.65 → 0.21.67
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 +1 -1
- package/SKILL.md +8 -4
- package/dist/index.mjs +24 -24
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -133,7 +133,7 @@ Credential lookup precedence:
|
|
|
133
133
|
1. `--api-key` flag
|
|
134
134
|
2. `TANGLE_API_KEY_FILE` managed credential file
|
|
135
135
|
3. `TANGLE_API_KEY` environment variable
|
|
136
|
-
4. `~/.tangle/credentials` (populated by `tangle auth login`)
|
|
136
|
+
4. `~/.tangle/credentials.json` (populated by `tangle auth login`)
|
|
137
137
|
|
|
138
138
|
The sidecar publishes refreshed delegated credentials through `TANGLE_API_KEY_FILE`.
|
|
139
139
|
The CLI reads this file for each request, including requests from an existing client.
|
package/SKILL.md
CHANGED
|
@@ -257,17 +257,22 @@ tangle hub github-app mint-installation-token --repo-url https://github.com/owne
|
|
|
257
257
|
|
|
258
258
|
## Secrets
|
|
259
259
|
|
|
260
|
-
Secrets are scoped to your account (or team).
|
|
260
|
+
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`.
|
|
261
261
|
|
|
262
262
|
```bash
|
|
263
263
|
tangle secret create DATABASE_URL "postgres://..."
|
|
264
264
|
tangle secret create API_KEY # prompts interactively
|
|
265
265
|
tangle secret list
|
|
266
|
-
tangle secret show DATABASE_URL --reveal
|
|
267
|
-
tangle secret update DATABASE_URL "new-value"
|
|
268
266
|
tangle secret delete DATABASE_URL
|
|
269
267
|
```
|
|
270
268
|
|
|
269
|
+
Canonical proxy custody at create time — the value never enters the box:
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
tangle sandbox create --proxy-secret '{"envName":"PROVIDER_KEY","secretRef":{"kind":"secret-ref","key":"PROVIDER_KEY"},"presentation":{"type":"bearer"},"hosts":["api.example.org"]}'
|
|
273
|
+
tangle sandbox create --proxy-secret @bindings.json # repeatable; array or single binding
|
|
274
|
+
```
|
|
275
|
+
|
|
271
276
|
## Snapshots
|
|
272
277
|
|
|
273
278
|
```bash
|
|
@@ -431,7 +436,6 @@ tangle preview rm <id> <preview-id>
|
|
|
431
436
|
|
|
432
437
|
## Common Mistakes
|
|
433
438
|
|
|
434
|
-
- **Forgetting `--reveal` on `secret show`:** values are hidden by default for safety.
|
|
435
439
|
- **Using API-key env and `TANGLE_HUB_CAPABILITY_TOKEN` together for hub:** set exactly one env auth source, or use `--api-key` to override both.
|
|
436
440
|
- **Calling hub tools without `--approve` on first use:** use `--approve` or set policy to `allow` first.
|
|
437
441
|
- **Missing `--json` when piping output:** many commands need explicit `--json` for machine-readable output.
|