@tinycloud/cli 1.2.0-beta.4 → 1.2.0-beta.6
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 +32 -7
- package/dist/courier-entry.d.ts +3 -0
- package/dist/courier-entry.js +2096 -0
- package/dist/courier-entry.js.map +1 -0
- package/dist/index.js +2211 -2011
- package/dist/index.js.map +1 -1
- package/dist/legacy-entry.js +3796 -3594
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +8 -6
- package/skills/courier/SKILL.md +164 -0
- package/skills/courier/release.json +16 -0
- package/skills/tc-cli/INSTALL.md +8 -6
- package/skills/tc-cli/REFERENCE.md +4 -0
- package/skills/tc-cli/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -8,17 +8,39 @@ Self-sovereign storage from the terminal. `tc` is the command-line interface for
|
|
|
8
8
|
npm install -g @tinycloud/cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Requires Node.js >= 20.
|
|
12
|
-
|
|
11
|
+
Requires Node.js >= 20.
|
|
12
|
+
|
|
13
|
+
On Linux, iproute2 installs `/usr/sbin/tc` (traffic control), which can shadow
|
|
14
|
+
this CLI on PATH. If the npm global prefix is root-owned, run
|
|
15
|
+
`npm config set prefix ~/.local` before installing: Ubuntu's default PATH puts
|
|
16
|
+
`~/.local/bin` before `/usr/sbin`, but `~/.profile` adds it only if the
|
|
17
|
+
directory existed at login, so start a new login shell after the first
|
|
18
|
+
install. Run `hash -r` if `tc` already ran in the same shell. Verify with
|
|
19
|
+
`command -v tc`, or call `"$(npm prefix --global)/bin/tc"` when in doubt.
|
|
13
20
|
|
|
14
21
|
## Agent skills
|
|
15
22
|
|
|
16
23
|
The package ships the general `tc-cli` skill and its references in
|
|
17
|
-
`skills/tc-cli
|
|
24
|
+
`skills/tc-cli`, and the `courier` skill for `tc courier` in `skills/courier`.
|
|
25
|
+
See [skill installation](skills/tc-cli/INSTALL.md) for a
|
|
18
26
|
pinned, cross-agent installation with OpenCode, Codex and Claude Code, and
|
|
19
27
|
[authentication](skills/tc-cli/AUTH.md) for device login and relaying the
|
|
20
28
|
approval code to the owner.
|
|
21
29
|
|
|
30
|
+
## Courier
|
|
31
|
+
|
|
32
|
+
`tc courier …` runs [Courier](https://github.com/TinyCloudLabs/js-sdk/tree/master/packages/courier#readme), agent-to-agent threads
|
|
33
|
+
over TinyCloud, bundled from `@tinycloud/courier` (beta). It takes the same
|
|
34
|
+
arguments as the standalone `courier` bin and keeps its own agent identity in
|
|
35
|
+
`$COURIER_HOME` (default `~/.courier`), not in a tc profile, so put every flag
|
|
36
|
+
after `courier`:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
tc courier init --paste --handle alice # the owner approves in OpenKey; paste the XXXX-XXXX code
|
|
40
|
+
tc courier inbox
|
|
41
|
+
tc courier --help
|
|
42
|
+
```
|
|
43
|
+
|
|
22
44
|
## Operations coverage
|
|
23
45
|
|
|
24
46
|
The migrated `tc secrets get` path is owned by `@tinycloud/operations` and
|
|
@@ -117,6 +139,7 @@ tc delegation create --to did:pkh:eip155:1:0x...
|
|
|
117
139
|
| `tc vars` | Manage environment variables |
|
|
118
140
|
| `tc doctor` | Run diagnostic checks |
|
|
119
141
|
| `tc completion` | Generate shell completions |
|
|
142
|
+
| `tc courier` | Agent-to-agent threads over TinyCloud (beta; see [Courier](#courier)) |
|
|
120
143
|
|
|
121
144
|
Secret names are env-style uppercase identifiers such as `FIREFLIES_API_KEY`.
|
|
122
145
|
`tc secrets network show` accepts either a short network name or a full
|
|
@@ -141,10 +164,12 @@ network grant` takes the short name, resolves the network, and grants
|
|
|
141
164
|
Replication is off by default. `--replication` enables it for one invocation;
|
|
142
165
|
`--no-replication` overrides `TC_REPLICATION=1`, and `--replication-debug`
|
|
143
166
|
writes diagnostics to stderr. Save explicit login prefixes with
|
|
144
|
-
`tc auth login --replication-prefix notes
|
|
145
|
-
later logins and rotation.
|
|
146
|
-
|
|
147
|
-
|
|
167
|
+
`tc auth login --replication-prefix notes/`; saved prefixes are reapplied on
|
|
168
|
+
later logins and rotation. Prefixes are folders (`notes/`) or `/` for the
|
|
169
|
+
whole space. Whole-space replication requires `kv-sync-root` support and
|
|
170
|
+
`--replication-allow-secrets`, because it includes `vault/`. Replication needs
|
|
171
|
+
unrestricted `get` and explicit `sync` on that folder or broader; an exact-key
|
|
172
|
+
grant never qualifies. Bare replica prefixes are rejected; use `notes/`.
|
|
148
173
|
Use `tc replica report` for event aggregates and pinned keys; `--clear-pending`
|
|
149
174
|
prints a warning because later commits can be read as stale until a subsequent
|
|
150
175
|
sync. `auth logout` removes both legacy replicas and the flag-owned
|