@tinycloud/cli 1.2.0-beta.1 → 1.2.0-beta.3
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 +33 -2
- package/dist/index.js +400 -57
- package/dist/index.js.map +1 -1
- package/dist/legacy-entry.js +2459 -695
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +5 -5
- package/skills/tc-cli/AUTH.md +19 -0
- package/skills/tc-cli/REFERENCE.md +80 -5
package/README.md
CHANGED
|
@@ -62,9 +62,15 @@ tc kv list
|
|
|
62
62
|
|
|
63
63
|
# Manage network-encrypted secrets on the default network
|
|
64
64
|
tc secrets network init
|
|
65
|
-
tc secrets put ANTHROPIC_API_KEY
|
|
65
|
+
printf '%s' "$ANTHROPIC_API_KEY" | tc secrets put ANTHROPIC_API_KEY --stdin
|
|
66
66
|
tc secrets get ANTHROPIC_API_KEY
|
|
67
67
|
|
|
68
|
+
# Ask the owner for a secret an agent needs, then wait for it
|
|
69
|
+
# (call TinyCloud's CLI by absolute path: a bare `tc` can be iproute2's /usr/sbin/tc)
|
|
70
|
+
TC_BIN="$(npm prefix --global)/bin/tc"
|
|
71
|
+
"$TC_BIN" --profile agent secrets request OPENAI_API_KEY --json # offline; prints the owner's link
|
|
72
|
+
"$TC_BIN" --profile agent secrets wait OPENAI_API_KEY --timeout 9m --json # 0 ready, 8 pending
|
|
73
|
+
|
|
68
74
|
# Manage spaces
|
|
69
75
|
tc space list
|
|
70
76
|
tc space create
|
|
@@ -105,6 +111,9 @@ tc delegation create --to did:pkh:eip155:1:0x...
|
|
|
105
111
|
| `tc secrets network show` | Show a secrets decryption network |
|
|
106
112
|
| `tc secrets network init` | Create or fetch the default secrets network |
|
|
107
113
|
| `tc secrets network grant` | Grant `tinycloud.encryption/decrypt` on a secrets network |
|
|
114
|
+
| `tc secrets request` | Print a Secret Manager link asking the owner to add secrets (offline) |
|
|
115
|
+
| `tc secrets wait` | Wait until secrets exist and are readable (never signs in; needs a stored session; exit 8 pending, 130 interrupted) |
|
|
116
|
+
| `tc secrets manage` | Print or open the Secret Manager page, `{url, opened}` |
|
|
108
117
|
| `tc vars` | Manage environment variables |
|
|
109
118
|
| `tc doctor` | Run diagnostic checks |
|
|
110
119
|
| `tc completion` | Generate shell completions |
|
|
@@ -124,8 +133,29 @@ network grant` takes the short name, resolves the network, and grants
|
|
|
124
133
|
-q, --quiet Suppress non-essential output
|
|
125
134
|
--json Force JSON output
|
|
126
135
|
--no-cache Disable caching
|
|
136
|
+
--replication Enable read-through replication (or TC_REPLICATION=1)
|
|
137
|
+
--no-replication Disable replication for this invocation
|
|
138
|
+
--replication-debug Write replication diagnostics to stderr
|
|
127
139
|
```
|
|
128
140
|
|
|
141
|
+
Replication is off by default. `--replication` enables it for one invocation;
|
|
142
|
+
`--no-replication` overrides `TC_REPLICATION=1`, and `--replication-debug`
|
|
143
|
+
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.
|
|
148
|
+
Use `tc replica report` for event aggregates and pinned keys; `--clear-pending`
|
|
149
|
+
prints a warning because later commits can be read as stale until a subsequent
|
|
150
|
+
sync. `auth logout` removes both legacy replicas and the flag-owned
|
|
151
|
+
`replication/` root; `auth logout --keep-replicas` keeps both. B-int release
|
|
152
|
+
acceptance must verify the OpenKey `tc auth request --grant` fallback against
|
|
153
|
+
a real OpenKey using a test account and no production writes: approve the
|
|
154
|
+
request, confirm the grant is stored, start a fresh process, and verify the
|
|
155
|
+
saved prefixes are replayed and the covered read is served locally. If OpenKey
|
|
156
|
+
rejects explicit `kv/get` plus `sync`, stop before release and resolve the
|
|
157
|
+
protocol contract.
|
|
158
|
+
|
|
129
159
|
## Output Modes
|
|
130
160
|
|
|
131
161
|
`tc` auto-detects your terminal:
|
|
@@ -185,7 +215,8 @@ file.
|
|
|
185
215
|
| Variable | Description |
|
|
186
216
|
|----------|-------------|
|
|
187
217
|
| `TC_HIDE_BANNER` | Set to `1` to suppress the startup banner |
|
|
188
|
-
| `
|
|
218
|
+
| `TC_REPLICATION` | Set to `1` to enable replication by default; `--no-replication` overrides it. |
|
|
219
|
+
| `TC_REPLICATION_DEBUG` | Set to `1` to enable replication diagnostics on stderr. |
|
|
189
220
|
|
|
190
221
|
## Development
|
|
191
222
|
|