@withandeo/cli 0.19.15 → 0.19.17

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.15",
3
+ "version": "0.19.17",
4
4
  "description": "Developer CLI for Andeo applications",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -40,7 +40,7 @@
40
40
  "jsonc-parser": "3.3.1",
41
41
  "miniflare": "5.20260918.0-alpha",
42
42
  "semver": "^7.8.5",
43
- "smol-toml": "1.8.0"
43
+ "smol-toml": "1.9.0"
44
44
  },
45
45
  "exports": {
46
46
  "./cli": "./dist/main.js",
@@ -1,3 +1,3 @@
1
1
  {
2
- "minimumCliVersion": "0.19.15"
2
+ "minimumCliVersion": "0.19.17"
3
3
  }
@@ -98,6 +98,17 @@ artifact or bypass the isolation gate. Reopen with the returned `sbl_` ID while
98
98
  the run and derived preview remain authorized. Expiry requires a fresh task and
99
99
  its own assigned branch/preview, not reuse of the old bearer.
100
100
 
101
+ With explicitly enrolled `preview.share`, the same preview command automatically
102
+ resolves the published gateway and returns a separately revocable handoff lasting
103
+ up to seven days, capped by ancestor authority. It survives normal run completion
104
+ and issuing-token expiry. The gateway uses normal customer authentication and
105
+ production APIs; sharing does not log in a customer or authorize additional
106
+ provider mutations. Inspect the returned entry, selection, exact source and
107
+ expiry before handing it over. Use `preview entries` and optional `--through`
108
+ only when entry selection is ambiguous. Existing grants do not gain sharing
109
+ from a task scope override. The stateless preview Worker receives no provider
110
+ credentials, customer cookies, resources or outbound network access.
111
+
101
112
  `source.merge` delegates approval for the run's validated source. Keep
102
113
  `review.prepare` when requesting an implicit source review through merge.
103
114
  Use the existing merge command for the assigned branch or exact permitted
@@ -108,6 +119,16 @@ separately. Existing grants must be explicitly replaced to add these capabilitie
108
119
  editing `ANDEO_AGENT_SCOPE` cannot expand a grant. Persistent preview logs remain
109
120
  unavailable.
110
121
 
122
+ Cloud setup needs the `ANDEO_CLOUD_BOOTSTRAP` network secret, restricted to
123
+ `agent-auth.withandeo.com`. Scope and installation identity default server-side
124
+ from the grant; run duration defaults to 30 minutes capped by tenant policy and
125
+ parent expiry. `ANDEO_AGENT_SCOPE`, `ANDEO_AGENT_RUN_SECONDS`,
126
+ `ANDEO_AGENT_ENVIRONMENT_ID` and the standard URL settings are optional.
127
+ Invalid explicit overrides fail rather than silently selecting defaults.
128
+ Task startup still supplies a unique `ANDEO_AGENT_TASK_ID` and a private
129
+ `ANDEO_AGENT_STATE_DIR` outside all checkouts, reused only within that task.
130
+ Proxy routing, when required by the host, belongs in the setup script.
131
+
111
132
  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.
112
133
 
113
134
  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
@@ -133,6 +133,13 @@ npx @withandeo/cli preview open --from sbl_EXAMPLE --return-path /account --json
133
133
 
134
134
  Preview entry selection follows published app connections automatically. When the response requires a choice, select an eligible app using `--through prj_ENTRY`. Only the previewed app's developer grant is needed. Private apps cannot open directly; a connection administrator must enable an eligible entry. Preserve the exact `from` ID when recovering from a session error and use `preview open` instead of rebuilding. Opening replaces the browser's previous preview selection and preserves sign-in.
135
135
 
136
+ Persistent Cloud agents need separately consented `preview.share` for this gateway
137
+ handoff. With it, the same `preview` and `preview open` commands resolve the entry
138
+ server-side and return a link lasting at most seven days independently of normal
139
+ run completion/token expiry. Parent deadlines, revocation, cancellation, current
140
+ connection policy and exact preview retirement remain enforced on public and
141
+ bound requests. Without it, the direct stateless preview remains run-bound.
142
+
136
143
  `<delivery-id>` is the `dly_` value returned by `preview`. A `dwf_` value is a production workflow ID and must not be passed to developer-delivery commands. If a merchant administrator sees a `dwf_` publish waiting with zero attempts, the supported recovery is **Activity → Resume exact publish**; it resumes the stored exact composition without rebuilding. Use the error code, request ID, and suggested command from the CLI. Do not retry with altered IDs, another project, or raw HTTP requests.
137
144
 
138
145
  When runtime evidence is needed, stream only the linked project and exact target: