@tinycloud/cli 1.3.0-beta.22 → 1.3.0-beta.24
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/dist/legacy-entry.js +169 -121
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +5 -5
- package/skills/tc-cli/SDK.md +8 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/cli",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.24",
|
|
4
4
|
"description": "TinyCloud CLI - manage data, delegations, and nodes from the terminal",
|
|
5
5
|
"author": "TinyCloud, Inc.",
|
|
6
6
|
"license": "EGPL",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@tinycloud/share-sdk": "1.2.0-beta.6",
|
|
37
37
|
"@tinycloud/share-envelope": "1.2.0-beta.0",
|
|
38
|
-
"@tinycloud/node-sdk": "3.3.0-beta.
|
|
38
|
+
"@tinycloud/node-sdk": "3.3.0-beta.23",
|
|
39
39
|
"@tinycloud/node-sdk-wasm": "1.7.7",
|
|
40
|
-
"@tinycloud/sdk-core": "3.3.0-beta.
|
|
40
|
+
"@tinycloud/sdk-core": "3.3.0-beta.23",
|
|
41
41
|
"@tinycloud/sdk-services": "3.3.0-beta.11",
|
|
42
|
-
"@tinycloud/operations": "0.6.1-beta.
|
|
42
|
+
"@tinycloud/operations": "0.6.1-beta.21",
|
|
43
43
|
"chalk": "^5.3.0",
|
|
44
44
|
"commander": "^14.0.0",
|
|
45
45
|
"open": "^11.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"siwe": "^3.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@tinycloud/courier": "0.1.6-beta.
|
|
50
|
+
"@tinycloud/courier": "0.1.6-beta.21",
|
|
51
51
|
"@tinycloud/replica": "0.3.0-beta.5",
|
|
52
52
|
"@types/node": "^20",
|
|
53
53
|
"tsup": "^8.0.0",
|
package/skills/tc-cli/SDK.md
CHANGED
|
@@ -38,15 +38,14 @@ await tc.sharing.revoke(token);
|
|
|
38
38
|
## Delegations
|
|
39
39
|
|
|
40
40
|
```typescript
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
path: "kv/shared",
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
await tc.
|
|
49
|
-
await tc.delegationManager.get(cid);
|
|
41
|
+
// Mint and activate a delegation (signs with the session, POST /delegate)
|
|
42
|
+
const { delegation } = await tc.delegateTo("did:pkh:eip155:1:0x...", [
|
|
43
|
+
{ service: "tinycloud.kv", space: "default", path: "kv/shared", actions: ["tinycloud.kv/get"] },
|
|
44
|
+
], { expiry: "1h" });
|
|
45
|
+
|
|
46
|
+
// Account delegation query, POST /delegation/query (what `tc delegation list` uses). It includes
|
|
47
|
+
// delegations signed by the session key; account.delegations.list() reads the SQL index and does not.
|
|
48
|
+
await tc.account.delegations.query({ direction: "all" });
|
|
50
49
|
await tc.delegationManager.revoke(cid);
|
|
51
50
|
```
|
|
52
51
|
|