@tangle-network/sandbox-cli 0.4.1 → 0.5.1
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 +43 -15
- package/SKILL.md +24 -25
- package/dist/index.mjs +19 -19
- package/hub-reference.md +12 -11
- package/package.json +5 -5
package/hub-reference.md
CHANGED
|
@@ -65,9 +65,9 @@ Anywhere a command takes a connection (`--connection`, `connections revoke`,
|
|
|
65
65
|
`agent --connection`), you may pass a raw connection id (`hubconn_...`) or a
|
|
66
66
|
human reference instead:
|
|
67
67
|
|
|
68
|
-
- `<provider
|
|
68
|
+
- `<provider>`, for example `github`, resolves when you hold exactly one connection
|
|
69
69
|
for that provider.
|
|
70
|
-
- `<provider>:<account
|
|
70
|
+
- `<provider>:<account>`, for example `gmail:alice@example.com`, disambiguates when
|
|
71
71
|
you hold several connections for one provider (matches `accountDisplay` or
|
|
72
72
|
`displayName`).
|
|
73
73
|
|
|
@@ -75,7 +75,7 @@ A reference resolves against `tangle hub connections`; revoked connections are
|
|
|
75
75
|
skipped. If it matches no connection, or more than one, the CLI fails loud and
|
|
76
76
|
lists the candidates so you can pass an id or `provider:account`. Raw ids never
|
|
77
77
|
contact the hub for resolution. The `agent --connection` head is followed by
|
|
78
|
-
`:capabilities`, so it accepts a provider or an id but not `provider:account
|
|
78
|
+
`:capabilities`, so it accepts a provider or an id but not `provider:account`;
|
|
79
79
|
use an id when a provider is ambiguous there.
|
|
80
80
|
|
|
81
81
|
### OAuth Connect
|
|
@@ -306,23 +306,23 @@ tangle hub permissions set --connection hubconn_github_a1 --action github.issues
|
|
|
306
306
|
|
|
307
307
|
### Granting connections to an agent
|
|
308
308
|
|
|
309
|
-
`tangle agent prompt
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
`tangle agent prompt` exposes granted hub connections to the agent as MCP tools
|
|
310
|
+
with `--connection <spec>` (repeatable). Three modes, from least to most
|
|
311
|
+
privilege:
|
|
312
312
|
|
|
313
313
|
The spec head is a connection id or a provider name (see
|
|
314
314
|
[Connection references](#connection-references)).
|
|
315
315
|
|
|
316
316
|
```bash
|
|
317
317
|
# Least privilege (recommended): the agent sees exactly these tool paths.
|
|
318
|
-
tangle agent
|
|
318
|
+
tangle agent prompt sbx_123 "triage issues" \
|
|
319
319
|
--connection github:github.issues.search,github.issues.create
|
|
320
320
|
|
|
321
321
|
# All capabilities of one connection (by id when a provider is ambiguous).
|
|
322
|
-
tangle agent
|
|
322
|
+
tangle agent prompt sbx_123 "triage issues" --connection hubconn_github_a1:*
|
|
323
323
|
|
|
324
324
|
# All capabilities of every connected provider (broadest).
|
|
325
|
-
tangle agent
|
|
325
|
+
tangle agent prompt sbx_123 "do the thing" --connection '*:*'
|
|
326
326
|
```
|
|
327
327
|
|
|
328
328
|
A grant controls what the agent can **see**. Each call is still policy-gated
|
|
@@ -337,11 +337,12 @@ actions still prompt. The grant is persistent and scoped to the named
|
|
|
337
337
|
connections only.
|
|
338
338
|
|
|
339
339
|
```bash
|
|
340
|
-
tangle agent
|
|
340
|
+
tangle agent prompt sbx_123 "file the weekly report" \
|
|
341
341
|
--connection github:* --allow-writes
|
|
342
342
|
```
|
|
343
343
|
|
|
344
|
-
Revert the bulk grant at any time
|
|
344
|
+
Revert the bulk grant at any time.
|
|
345
|
+
It deletes only the rows `--allow-writes`
|
|
345
346
|
created, leaving manual `permissions set` decisions intact:
|
|
346
347
|
|
|
347
348
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "CLI for Tangle Sandbox operations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"hub-reference.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@tangle-network/agent-core": "0.4.
|
|
18
|
+
"@tangle-network/agent-core": "0.4.22",
|
|
19
19
|
"@tangle-network/agent-eval": "0.125.0",
|
|
20
|
-
"@tangle-network/agent-interface": "0.
|
|
20
|
+
"@tangle-network/agent-interface": "0.34.0",
|
|
21
21
|
"@tangle-network/agent-runtime": "0.103.1",
|
|
22
22
|
"chalk": "^5.4.1",
|
|
23
23
|
"commander": "12.1.0",
|
|
24
24
|
"dotenv": "17.2.3",
|
|
25
25
|
"ora": "^9.4.0",
|
|
26
26
|
"ws": "^8.20.0",
|
|
27
|
-
"@tangle-network/
|
|
28
|
-
"@tangle-network/
|
|
27
|
+
"@tangle-network/sandbox": "0.15.0",
|
|
28
|
+
"@tangle-network/hub-sdk": "0.3.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "25.6.0",
|