@tinycloud/cli 1.2.0-beta.2 → 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 +23 -1
- package/dist/index.js +319 -48
- package/dist/index.js.map +1 -1
- package/dist/legacy-entry.js +1700 -638
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +5 -5
- package/skills/tc-cli/REFERENCE.md +28 -1
package/README.md
CHANGED
|
@@ -133,8 +133,29 @@ network grant` takes the short name, resolves the network, and grants
|
|
|
133
133
|
-q, --quiet Suppress non-essential output
|
|
134
134
|
--json Force JSON output
|
|
135
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
|
|
136
139
|
```
|
|
137
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
|
+
|
|
138
159
|
## Output Modes
|
|
139
160
|
|
|
140
161
|
`tc` auto-detects your terminal:
|
|
@@ -194,7 +215,8 @@ file.
|
|
|
194
215
|
| Variable | Description |
|
|
195
216
|
|----------|-------------|
|
|
196
217
|
| `TC_HIDE_BANNER` | Set to `1` to suppress the startup banner |
|
|
197
|
-
| `
|
|
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. |
|
|
198
220
|
|
|
199
221
|
## Development
|
|
200
222
|
|