@withandeo/cli 0.19.14 → 0.19.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withandeo/cli",
3
- "version": "0.19.14",
3
+ "version": "0.19.16",
4
4
  "description": "Developer CLI for Andeo applications",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -1,3 +1,3 @@
1
1
  {
2
- "minimumCliVersion": "0.19.12"
2
+ "minimumCliVersion": "0.19.16"
3
3
  }
@@ -89,6 +89,35 @@ agent merge grant, verify the exact branch preview, read the managed-source refe
89
89
  to request hosted landing and follow the saved publication policy. Inspect required
90
90
  human review, deployment and cleanup outcomes separately; do not push main to bypass them.
91
91
 
92
+ For persistent Cloud runs, inspect the current project's capabilities. Preview
93
+ requires explicit `preview.build`/`preview.open`, repository scope and the
94
+ `preview` environment. Commit and push the assigned branch, then run
95
+ `andeo preview --json`: Andeo builds that exact managed source in its isolated
96
+ builder. Unsupported bindings/test graphs must fail; do not upload a local
97
+ artifact or bypass the isolation gate. Reopen with the returned `sbl_` ID while
98
+ the run and derived preview remain authorized. Expiry requires a fresh task and
99
+ its own assigned branch/preview, not reuse of the old bearer.
100
+
101
+ `source.merge` delegates approval for the run's validated source. Keep
102
+ `review.prepare` when requesting an implicit source review through merge.
103
+ Use the existing merge command for the assigned branch or exact permitted
104
+ `--change`; no new human receipt is required. Follow the user's release
105
+ instructions before requesting landing. Saved publication policy determines
106
+ whether landing also deploys. Report exact main readback and verified production
107
+ separately. Existing grants must be explicitly replaced to add these capabilities;
108
+ editing `ANDEO_AGENT_SCOPE` cannot expand a grant. Persistent preview logs remain
109
+ unavailable.
110
+
111
+ Cloud setup needs the `ANDEO_CLOUD_BOOTSTRAP` network secret, restricted to
112
+ `agent-auth.withandeo.com`. Scope and installation identity default server-side
113
+ from the grant; run duration defaults to 30 minutes capped by tenant policy and
114
+ parent expiry. `ANDEO_AGENT_SCOPE`, `ANDEO_AGENT_RUN_SECONDS`,
115
+ `ANDEO_AGENT_ENVIRONMENT_ID` and the standard URL settings are optional.
116
+ Invalid explicit overrides fail rather than silently selecting defaults.
117
+ Task startup still supplies a unique `ANDEO_AGENT_TASK_ID` and a private
118
+ `ANDEO_AGENT_STATE_DIR` outside all checkouts, reused only within that task.
119
+ Proxy routing, when required by the host, belongs in the setup script.
120
+
92
121
  Read the delivery reference for commands and recovery. Run app checks and artifact dry-run before delivery. Preserve exact source, digest, release, delivery and composition identities.
93
122
 
94
123
  Distinguish local check, retained upload, ready preview, administrator approval, production activation and live acceptance. None substitutes for the next. Prove the intended combined composition for connected changes, not two unrelated releases.
@@ -1,5 +1,7 @@
1
1
  # Authentication and project scope
2
2
 
3
+ For Cloud installations using CLI 0.19.16 or newer, configure the secret `ANDEO_CLOUD_BOOTSTRAP`. Standard Andeo origins, the installation identity, and the effective grant scope are resolved automatically. `ANDEO_AGENT_SCOPE` optionally narrows that scope; `ANDEO_AGENT_RUN_SECONDS` optionally requests a different bounded lifetime. Omitted lifetime defaults to 30 minutes, capped by tenant policy and credential expiry. At task startup set a unique `ANDEO_AGENT_TASK_ID` and private `ANDEO_AGENT_STATE_DIR` outside the checkout. Set `NODE_USE_ENV_PROXY=1` only when the runtime requires its network proxy. Explicit invalid overrides fail rather than falling back to defaults.
4
+
3
5
  If authentication is missing, start the agent-safe device flow:
4
6
 
5
7
  ```sh
@@ -41,6 +41,25 @@ evidence. Continue to honor explicit production approval from the user.
41
41
 
42
42
  ## Create an exact preview
43
43
 
44
+ Persistent Codex Cloud agents use a managed-source broker instead of the local
45
+ artifact upload path. Check current `preview.build` and `preview.open`, explicit
46
+ repository scope, and `environments: ["preview"]`. Commit, validate locally and
47
+ push the assigned `agent/<runId>` branch, then use `andeo preview --json`.
48
+ Andeo checks the exact pushed SHA and executes checkout/build in separate
49
+ credentialed and isolated phases. The first supported profile uses stateless
50
+ fixtures; D1/KV/R2, services, secrets, workflows, database bootstrap and Flagship
51
+ bindings are unsupported. Production secrets/data/service fallbacks are denied. A connected
52
+ customer journey requires a supported isolated test graph and separate proof.
53
+
54
+ The result returns the exact source-build `sbl_` ID, release, composition and
55
+ preview link. `--no-wait` returns the accepted operation for later inspection;
56
+ `andeo preview open --from sbl_... --json` opens that same result. Preview/run
57
+ lifetimes remain finite; reopening cannot extend the parent authority.
58
+ `source.merge` delegates validated source approval and, with `review.prepare`,
59
+ uses the existing source merge command. It follows the saved publication policy;
60
+ it does not enable publication or grant direct production writes. An accepted
61
+ merge and verified production are separate results.
62
+
44
63
  After local validation succeeds, preview each changed application. For a portal-only change, run:
45
64
 
46
65
  ```sh
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## Request merge and deployment
4
4
 
5
+ Persistent Cloud runs use explicitly granted `source.merge` on their assigned
6
+ repository/branch. Include `review.prepare` to create the implicit exact review.
7
+ After pushing and verifying the isolated preview, request merge with the same
8
+ command below using `agent/<runId>` as the head. The capability delegates source
9
+ approval without a per-change human receipt or legacy principal allowlist.
10
+ Protected transport and successful exact preview/checks remain required.
11
+ Inspect `capabilities`, `source status` and `source merge-policy show`;
12
+ persistent actors cannot edit merge/publication policy to expand permission. Existing saved
13
+ publication policy controls deployment after landing. Do not push main directly.
14
+ An old run's source or preview cannot be transferred by changing local scope;
15
+ a fresh task receives its own branch and bounded authority.
16
+
5
17
  On a managed repository, push the committed feature branch and verify its exact
6
18
  native preview, then request one hosted merge. Read `capabilities`,
7
19
  `source merge-policy show` and `source policy show` first. Exercise the changed
@@ -22,7 +34,7 @@ and review a new snapshot. The command does not integrate Git in the local check
22
34
  Use `--change scr_...` instead of `--head` and `--title` to attach to an existing
23
35
  review; `--expected-snapshot N` pins the inspected snapshot.
24
36
 
25
- Human review remains the default. A merchant administrator may explicitly grant
37
+ For human-owned legacy credentials, human review remains the default. A merchant administrator may explicitly grant
26
38
  stable principal IDs with `source merge-policy set --mode agent --principals IDS
27
39
  --expected-revision N --idempotency-key KEY [--execution-seconds 300..86400]`.
28
40
  This native-preview grant works with source protection enabled or disabled;