@corvio/cli 0.1.0-beta.3 → 0.1.0-beta.5
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 +9 -2
- package/dist/cli.js +982 -35
- package/dist/core.js +475 -61
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,9 +4,16 @@ Official CLI for a user's Corvio Workspace. It supports an existing `CORVIO_API_
|
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm install --global @corvio/cli@beta
|
|
7
|
-
export CORVIO_API_KEY='
|
|
7
|
+
export CORVIO_API_KEY='cvu_...'
|
|
8
8
|
corvio auth status
|
|
9
|
+
corvio workspaces list
|
|
10
|
+
corvio workspaces use <workspace_id>
|
|
9
11
|
corvio ask --prompt 'Summarize recurring launch risks' --json
|
|
12
|
+
corvio files upload --file ./research.pdf --json
|
|
13
|
+
corvio sync init --dir ./knowledge --root-node-id <node_id> --json
|
|
14
|
+
corvio update check --json
|
|
10
15
|
```
|
|
11
16
|
|
|
12
|
-
When no environment key is configured, run `corvio auth login`. The environment key always takes precedence. See [the Corvio CLI guide](https://corvio.ai/developers/cli) for the
|
|
17
|
+
When no environment key is configured, run `corvio auth login`. Login creates one user-level `cvu_` credential; it does not freeze the browser's current Workspace. Select each operation's Workspace with `corvio workspaces use`, `--workspace`, or `CORVIO_WORKSPACE_ID`. Legacy Workspace-bound `cvk_` keys remain supported and cannot be widened to another Workspace. The environment key always takes precedence. Local sync stores only credential-free handles and revision/hash baselines in `.corvio/state.json`; Markdown lives below `corvio_docs/`, and conflicts require explicit resolution. Update checks compare npm's published `beta` tag with the API compatibility policy but never self-install. See [the Corvio CLI guide](https://corvio.ai/developers/cli) for the full command and receipt contract.
|
|
18
|
+
|
|
19
|
+
The CLI rejects unknown/duplicate options and malformed integer bounds before network access. Normal API calls have a bounded timeout (`CORVIO_REQUEST_TIMEOUT_MS`, maximum ten minutes); only reads, explicit idempotency contracts, revision guards, and other owner-declared safe operations retry automatically. Document updates preflight the current revision when `--expected-revision` is omitted. Downloads, uploads, and Markdown pulls verify SHA-256 receipts before replacing local files; local writes are atomic, remote default filenames cannot escape the current directory, and Sync refuses symbolic-link traversal while checkpointing each successful push.
|