@tinycloud/cli 1.3.0-beta.9 → 1.3.0
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 +22 -0
- package/dist/courier-entry.js +9971 -946
- package/dist/courier-entry.js.map +1 -1
- package/dist/index.js +11655 -4114
- package/dist/index.js.map +1 -1
- package/dist/legacy-entry.js +25188 -16344
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +13 -10
- package/skills/courier/SKILL.md +176 -5
- package/skills/tc-cli/AUTH.md +7 -1
- package/skills/tc-cli/REFERENCE.md +70 -6
- package/skills/tc-cli/SDK.md +14 -8
- package/skills/tc-cli/SKILL.md +51 -0
package/README.md
CHANGED
|
@@ -114,6 +114,10 @@ tc delegation create --to did:pkh:eip155:1:0x...
|
|
|
114
114
|
| `tc context` | Show the selected profile, owner, host, space and session state |
|
|
115
115
|
| `tc auth status` | Show authentication status |
|
|
116
116
|
| `tc auth whoami` | Show current identity |
|
|
117
|
+
| `tc auth request --preset apps-agent [--app <id>]... [--write]` | Request access for an agent to the user's installed apps: read-only by default, for one app, several, or all. `--write --app <id>` also lets the agent change that app's data: write its `knowledge/` and `prefs/` files and add, change or delete its table rows. For the Health Log app's catalog database, it can also create, change and drop tables (nodes before 1.21.6 do not enforce that split). It cannot change the app's code, manifest or install record |
|
|
118
|
+
| `tc knowledge list` | List the installed apps that have a knowledge bundle |
|
|
119
|
+
| `tc knowledge read <app_id> [concept]` | Read an app's knowledge index, or one concept with its frontmatter parsed |
|
|
120
|
+
| `tc apps install <app_id>` | Install a pinned catalog app into the applications space of the profile it runs under (the owner's, for a delegate profile, through its grant): each file is verified against its pinned digest, the pinned DDL runs only if every statement is allowed, and knowledge notes are created create-only. Notes you have edited are left as they are and reported (exit 0) |
|
|
117
121
|
| `tc kv get <key>` | Retrieve a value |
|
|
118
122
|
| `tc kv put <key> <value>` | Store a value |
|
|
119
123
|
| `tc kv list` | List all keys |
|
|
@@ -148,6 +152,13 @@ Secret names are env-style uppercase identifiers such as `FIREFLIES_API_KEY`.
|
|
|
148
152
|
network grant` takes the short name, resolves the network, and grants
|
|
149
153
|
`tinycloud.encryption/decrypt`.
|
|
150
154
|
|
|
155
|
+
`tc apps install` re-creates the pinned views on every run (reported as
|
|
156
|
+
`viewsRecreated`). Knowledge notes whose bytes differ from the pinned version
|
|
157
|
+
are left as you edited them and listed under `conflicts` (JSON); the command
|
|
158
|
+
still exits 0 and installs the rest. If the schema fails after notes were
|
|
159
|
+
written, it says "notes saved; tables not set up: run again"; running it again
|
|
160
|
+
is safe.
|
|
161
|
+
|
|
151
162
|
## Global Options
|
|
152
163
|
|
|
153
164
|
```
|
|
@@ -239,6 +250,17 @@ record (for example, restored from an older copy) refuses logout; switch the
|
|
|
239
250
|
default profile if needed, then run `tc profile delete <name>` and sign in
|
|
240
251
|
again.
|
|
241
252
|
|
|
253
|
+
`auth logout`, `auth rotate`, and replica-enabled `auth login` that replaces the
|
|
254
|
+
profile's share-history key check the sender share history first. If it records
|
|
255
|
+
unexpired shares, or cannot be read, the command refuses with exit 5
|
|
256
|
+
(`SHARE_HISTORY_UNEXPIRED` or `SHARE_HISTORY_UNAVAILABLE`) and changes nothing.
|
|
257
|
+
Pass `--force` to proceed anyway; `auth logout --revoke` also skips the check. A
|
|
258
|
+
plain re-login that keeps the key is not checked, and local-owner profiles are not
|
|
259
|
+
checked. `tc share history recover` moves an unreadable history file aside to
|
|
260
|
+
`share-history-v2.json.unreadable-<UTC timestamp>` and reports the new path. It
|
|
261
|
+
never deletes or overwrites a file. If the file exists but cannot be read,
|
|
262
|
+
recover exits 1 with `SHARE_HISTORY_RECOVER_FAILED` and moves nothing.
|
|
263
|
+
|
|
242
264
|
`tc auth grants list` labels the signed-in delegation CID `(current session)`.
|
|
243
265
|
`tc delegation revoke <cid>` still accepts any eligible exact CID, but when
|
|
244
266
|
`<cid>` is the current session it requires `--yes` or an interactive confirmation
|