@tinycloud/cli 1.3.0-beta.31 → 1.3.0-beta.32
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/package.json +5 -5
- package/skills/tc-cli/SDK.md +7 -0
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.32",
|
|
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.30",
|
|
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.30",
|
|
41
41
|
"@tinycloud/sdk-services": "3.3.0-beta.25",
|
|
42
|
-
"@tinycloud/operations": "0.6.1-beta.
|
|
42
|
+
"@tinycloud/operations": "0.6.1-beta.28",
|
|
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.28",
|
|
51
51
|
"@tinycloud/replica": "0.3.0-beta.8",
|
|
52
52
|
"@types/node": "^20",
|
|
53
53
|
"tsup": "^8.0.0",
|
package/skills/tc-cli/SDK.md
CHANGED
|
@@ -15,6 +15,13 @@ await tc.connectWallet(signer);
|
|
|
15
15
|
await tc.kv.put("key", "value");
|
|
16
16
|
const entry = await tc.kv.get("key"); // { key, data, metadata }
|
|
17
17
|
const keys = await tc.kv.list(); // string[]
|
|
18
|
+
// Names starting with a partial segment: list() only matches whole segments
|
|
19
|
+
// (node >= 1.19.0), so this standalone helper lists the folder and filters
|
|
20
|
+
// client-side. Reads the whole folder: use for type-ahead over small folders.
|
|
21
|
+
// import { listMatching } from "@tinycloud/sdk-core/kv-list-matching";
|
|
22
|
+
// (TypeScript needs moduleResolution node16/nodenext/bundler to see its types;
|
|
23
|
+
// "node" gives TS2307, though the runtime import works.)
|
|
24
|
+
const starting = await listMatching(tc.kv, "qa/b"); // Result: keys qa/b00, qa/b01, ...
|
|
18
25
|
const meta = await tc.kv.head("key"); // metadata only
|
|
19
26
|
await tc.kv.delete("key");
|
|
20
27
|
```
|