@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 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. On Linux, `/usr/sbin/tc` (iproute2) can shadow this
12
- CLI; call it as `"$(npm prefix --global)/bin/tc"` when in doubt.
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`. See [skill installation](skills/tc-cli/INSTALL.md) for a
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`; saved prefixes are reapplied on
145
- later logins and rotation. Only an unrestricted covering `get` can receive added
146
- `sync` authority. `--replication-allow-secrets` is required for a `secrets`
147
- space or `vault` prefix and stores ciphertext only.
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
@@ -0,0 +1,3 @@
1
+ declare function runCourier(argv: string[]): Promise<number>;
2
+
3
+ export { runCourier };