@supacloud/cli 0.75.0 → 0.76.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.
Files changed (3) hide show
  1. package/README.md +14 -3
  2. package/dist/index.js +602 -9276
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -231,6 +231,7 @@ actions and also exposes the immutable prebuilt release workflow:
231
231
 
232
232
  ```bash
233
233
  supacloud-cli frontend list_releases --ref abc123 --id web
234
+ supacloud-cli frontend get_active_release --ref abc123 --id web
234
235
  supacloud-cli frontend get_release --ref abc123 --id web --release_id <sha256>
235
236
  supacloud-cli frontend upload_release --ref abc123 --id web --zip_path ./dist.zip
236
237
  supacloud-cli frontend activate_release --ref abc123 --id web \
@@ -238,6 +239,7 @@ supacloud-cli frontend activate_release --ref abc123 --id web \
238
239
  --expected_active_release_id absent \
239
240
  --expected_activation_id absent \
240
241
  --mutation_id <retry-stable-uuid-v4>
242
+ supacloud-cli frontend rollback --ref abc123 --id web --release_id <retained-sha256>
241
243
  ```
242
244
 
243
245
  `upload_release` hashes and streams an existing regular ZIP file without
@@ -245,10 +247,19 @@ buffering the full archive. The Management API binds the upload to that SHA-256,
245
247
  and the CLI reads the immutable release back before reporting success.
246
248
  `activate_release` uses both the observed active release and activation IDs as
247
249
  optimistic concurrency tokens, then verifies the authoritative active release.
248
- Use the values returned by `list_releases`; `absent` is valid only when no
249
- release has been activated. Production uploads and activations require the
250
+ Use the values returned by `get_active_release`; `absent` is valid only when no
251
+ release has been activated. Production uploads, activations and rollback require the
250
252
  normal exact `--confirm-production <ref>` value, and
251
- `SUPACLOUD_READ_ONLY=true` blocks both mutations.
253
+ `SUPACLOUD_READ_ONLY=true` blocks all mutations.
254
+
255
+ `get_active_release` automatically handles older servers returning HTTP 404
256
+ with a one-record history page and exact active artifact readback. It never
257
+ falls back for authentication, integrity or server failures.
258
+ `rollback` reads the current CAS identity and generates the mutation ID itself;
259
+ the retained target release must be explicit. It does not infer the previous
260
+ version from content-hash-sorted history, reupload assets or restore a database.
261
+ An uncertain result includes the mutation ID for read-only reconciliation and
262
+ must not be blindly retried.
252
263
 
253
264
  ### Immutable application releases
254
265