@tinycloud/cli 1.1.0-beta.8 → 1.1.0-beta.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/cli",
3
- "version": "1.1.0-beta.8",
3
+ "version": "1.1.0-beta.9",
4
4
  "description": "TinyCloud CLI - manage data, delegations, and nodes from the terminal",
5
5
  "author": "TinyCloud, Inc.",
6
6
  "license": "EGPL",
@@ -29,12 +29,12 @@
29
29
  "check:skill-pack": "node scripts/check-skill-pack.mjs"
30
30
  },
31
31
  "dependencies": {
32
- "@tinycloud/share-sdk": "1.1.0-beta.1",
32
+ "@tinycloud/share-sdk": "1.1.0-beta.2",
33
33
  "@tinycloud/share-envelope": "1.1.0-beta.0",
34
- "@tinycloud/node-sdk": "3.1.0-beta.5",
34
+ "@tinycloud/node-sdk": "3.1.0-beta.6",
35
35
  "@tinycloud/node-sdk-wasm": "1.7.6",
36
- "@tinycloud/sdk-core": "3.1.0-beta.4",
37
- "@tinycloud/operations": "0.4.0-beta.8",
36
+ "@tinycloud/sdk-core": "3.1.0-beta.6",
37
+ "@tinycloud/operations": "0.4.0-beta.9",
38
38
  "chalk": "^5.3.0",
39
39
  "commander": "^14.0.0",
40
40
  "open": "^11.0.0",
@@ -258,6 +258,8 @@ On either recovery path, an orphaned `.recover-*` claim can hold a replacement o
258
258
  - **Session key**: `did:key:z6Mk...#z6Mk...` — generated at init
259
259
  - **Owner DID**: `did:pkh:eip155:{chainId}:{address}` — after auth
260
260
 
261
- Use `--json` for machine-readable output; interactive commands can render human output. General command errors go to stderr as `{error: {code, message, hint?}}`. Inspect the structured code, not only the exit status.
261
+ Use `--json` for machine-readable output; interactive commands can render human output. General command errors go to stderr as `{error: {code, message, hint?, meta?}}`. `meta` contains a typed HTTP `status` and, only when validated as a TinyCloud capability (and against the KV request when available), a `resource` and `requiredAction`. Inspect the structured code, not only the exit status.
262
262
 
263
263
  General storage/auth exit codes: 0 success, 1 operation error, 2 invalid input, 3 authentication required, 4 not found, 5 permission denied, 6 network error, 7 node error. `tc share` uses its own: 1 profile lock timeout or sender-history retry (`PROFILE_LOCK_TIMEOUT`, `SHARE_HISTORY_RETRY`), 3 upload authority required, 4 unavailable, expired, storage quota exceeded or upload failed, 5 permission denied (`PERMISSION_DENIED`) or verification failed, 6 recipient authorization required or network error, 7 byte limit, 8 output conflict or unsafe filename, 9 partial success.
264
+
265
+ For `tc kv get|put|head|list|delete`, `tc space list|host`, `tc sql`, `tc vault`, `tc vars`, `tc duckdb`, `tc secrets list|put|delete`, `tc delegation`, and `tc account`, service-result errors use typed authorization: a plain HTTP 401 is `AUTH_REQUIRED` (exit 3); a 403 is `PERMISSION_DENIED` (exit 5). A 401 with a validated missing capability, or `AUTH_UNAUTHORIZED` without an HTTP status, is `PERMISSION_DENIED` (exit 5); a validated capability also produces a `tc auth request --cap` hint. This changes the former exit 1 for status-less `AUTH_UNAUTHORIZED` in the listed commands. Other HTTP failures retain their service-specific codes. `tc share` has separate exit mappings below.