@odla-ai/cli 0.14.1 → 0.16.0

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
@@ -29,8 +29,8 @@ For a project you keep working in, install it as a dev dependency so the
29
29
  shorter `npx odla-ai` form works and the version is pinned by your lockfile:
30
30
 
31
31
  ```bash
32
- npm view @odla-ai/cli@0.13.0 version
33
- npm i -D --save-exact @odla-ai/cli@0.13.0
32
+ npm view @odla-ai/cli@0.16.0 version
33
+ npm i -D --save-exact @odla-ai/cli@0.16.0
34
34
  ```
35
35
 
36
36
  ## Prerequisites
@@ -63,7 +63,7 @@ npx odla-ai calendar connect --env dev
63
63
  npx odla-ai calendar resync --env dev
64
64
  npx odla-ai calendar disconnect --env dev --yes
65
65
  npx odla-ai capabilities --json
66
- npx odla-ai code connect --env dev --email owner@example.com
66
+ npx odla-ai code connect --platform https://odla.ai --app-id my-app --env dev --email owner@example.com
67
67
  npx odla-ai code connect --env prod --once # bounded enrollment + heartbeat proof
68
68
  # install SDKs, write the Worker, and create wrangler.jsonc before secret push
69
69
  npx odla-ai provision --dry-run
@@ -90,20 +90,27 @@ npx odla-ai skill install
90
90
  npx odla-ai version
91
91
  ```
92
92
 
93
- `code connect` is the first-party Code host runtime. Run it from a GitHub
94
- checkout already connected to an app in Studio; it resolves the origin to that
95
- project without requiring local config. If `odla.config.mjs` exists, its app is
96
- used explicitly. The CLI chooses the safe installed container
97
- engine (Apple container or Podman by default), requests one exact
98
- `platform:code:host:connect` approval, atomically enrolls/offers/binds the host,
99
- then runs the credentialless Pi container adapter in the foreground. The Pi and
100
- clean-build images are digest-pinned, and build execution goes through a fixed
101
- CaMeL-registered recipe. Use `--engine docker` only after reviewing that daemon
102
- boundary. `--once` performs enrollment and one heartbeat without accepting a
103
- queued session.
93
+ `code connect` is the first-party personal Code terminal runtime. Run the exact
94
+ command copied from **Studio Code Terminal** while your shell is in the
95
+ local Git checkout. `--platform`, `--app-id`, and `--env` make the requested
96
+ scope unambiguous; without an explicit app, the CLI can infer it from
97
+ `odla.config.mjs` or the Git remote. The terminal proves its isolation engine,
98
+ prepares the pinned Pi and build images, and sends an outbound
99
+ `app:code:host:connect` request to odla. The app owner approves that real
100
+ request in Studio. The browser never mints or displays a host bearer.
101
+
102
+ After approval, the foreground process secret-filters tracked and non-ignored
103
+ source into a bounded staged snapshot. Harness operates on that frozen copy;
104
+ the original checkout is never mounted into Pi. Pi receives no network,
105
+ provider credential, or container-engine socket and accesses source only
106
+ through the typed CaMeL broker. The session records the trusted Git base,
107
+ developer-patch digest, snapshot digest, and the combined checkpoint patch.
108
+ Later local edits do not silently alter an active session. Use `--engine
109
+ docker` only after reviewing that daemon boundary. `--once` proves enrollment
110
+ and one heartbeat without accepting queued work.
104
111
 
105
112
  The approval and host credential records live in odla-ai/db and store hashes,
106
- not plaintext. The shown-once host bearer is kept only in the running CLI
113
+ not plaintext. The collected host bearer exists only in the running CLI
107
114
  process: no Code credential file is created under `.odla/`. A subsequent
108
115
  approved `code connect` rotates the database-backed credential and invalidates
109
116
  the previous bearer.