@m-kopa/launchpad-cli 0.49.0 → 0.51.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/CHANGELOG.md CHANGED
@@ -8,6 +8,35 @@ pre-1.0 minor bumps may carry breaking changes per ADR 0005.
8
8
 
9
9
  ## Unreleased
10
10
 
11
+ ## 0.51.0 - 2026-07-17
12
+
13
+ **Self-serve recovery rendering + honest guidance.**
14
+
15
+ `launchpad recover` now renders a synchronous pre-Terraform teardown response (HTTP 200, `lifecycle: released`, slug reusable) as a success and prints the server's `launchpad create` next step, instead of failing with "bot returned an unexpected HTTP 200 response". (Found by the live recovery canary.)
16
+ Failed `status` and recoverable `destroy_failed` output now name the exact self-serve command (`launchpad recover` / `launchpad destroy`) instead of directing owners to platform-team or the misleading "re-run `launchpad deploy`".
17
+
18
+ Bot-side (delivered under the recovery bundle, published with this bump):
19
+ recovery observability and convergence - every mutating `cli_recover` audit record now includes the recovery class, wedge stage, and persisted cause; the quarter-hour stuck-apply sweep now lists terminal-failed registry records and files one deduplicated aggregate platform-team issue; interrupted pre-Terraform teardown resumes from an already-archived record, Terraform-PR re-drive reuses its open unarmed replacement, and post-Terraform retry starts a fresh deployment.
20
+
21
+ Bot-side provisioning recovery safety spine: `launchpad recover` now classifies non-serving failed apps by their recorded provisioning stage.
22
+ Mutating dispatch is guarded by the original submission's single-flight lease, an original-Workflow terminal-state check, owner/co-owner/break-glass authorization for destructive or access-granting recovery, and the runtime `ROUTING_KV.__recovery_disabled` kill-switch.
23
+ Reconcile-only recovery remains available to editors.
24
+ No CLI version bump is required for this bot-side change.
25
+
26
+ Bot-side pre-Terraform recovery: an owner-run `launchpad recover` now abandons a wedged pre-TF workflow, archive-renames its app repo through the existing destroy finalizer, releases the destroyed registry record, and names `launchpad create` with the original manifest as the single next step.
27
+ `launchpad destroy` applies the same no-TF teardown when the persisted stage proves the wedge happened before Terraform, while post-TF failures continue through the existing Terraform destroy workflow so all credential and edge surfaces are revoked.
28
+ No CLI version bump is required for this bot-side change.
29
+
30
+ Bot-side post-Terraform recovery: `launchpad recover` now triggers a fresh Cloudflare Pages production deployment when infrastructure exists but content is not serving, then returns an async handoff to `launchpad status` and a final `launchpad recover` reconciliation once the deployment serves.
31
+ The driver reuses the established Pages deployment trigger, stays behind the recovery kill-switch, single-flight lease, and original-Workflow terminal check, and remains available to owner, co-owner, editor, and break-glass identities like `deploy` and `redeploy`.
32
+ No CLI version bump is required for this bot-side change.
33
+
34
+ Bot-side Terraform-PR recovery: owner, co-owner, and break-glass callers can now use `launchpad recover` to regenerate a wedged provisioning PR from the managed app repo's current `main` manifest.
35
+ The driver reuses the exact-SHA manifest reconcile engine, including fresh group resolution, ADR 0035 proof and attestation, shape validation, and gated auto-merge.
36
+ It then comments and closes only the stale `portal-bot/add-*` PR tied to the original submission, by exact PR number, and refuses retirement while an apply run for that PR head is active.
37
+ Failed `tf_pr_merged` resumes no longer skip forward to `tf_applied`; they direct the owner to the fresh-PR recovery path.
38
+ No CLI version bump is required for this bot-side change.
39
+
11
40
  Platform-side delivery hardening (PS-2419): portal-bot production releases now deploy a verified, content-addressed CI artifact without rebuilding in the deploy job.
12
41
  The authenticated `/version` endpoint and standing drift detector expose and monitor the served source and artifact identity.
13
42
  No CLI version bump is required for this platform-side change.
@@ -22,6 +51,13 @@ No CLI version bump is required for this bot-side fix.
22
51
  Bot-side reliability fix (PS-2418): all documented manifest status routes are now reachable, and read-only GitHub API calls retry bounded transient failures before failing closed.
23
52
  No CLI version bump is required for this bot-side fix.
24
53
 
54
+ ## 0.50.0 - 2026-07-17
55
+
56
+ **Async recovery initiation rendering.**
57
+
58
+ - `launchpad recover` now treats HTTP 202 as a successful async initiation, prints the server-provided watch and finalize message, and includes the deployment or Terraform PR identifiers returned by the bot.
59
+ - JSON output preserves the complete 202 response and exits successfully, so initiated post-Terraform and Terraform-PR recovery no longer appears to fail in scripts.
60
+
25
61
  ## 0.49.0 - 2026-07-15
26
62
 
27
63
  **Exact-commit access reconcile and group-reference parity.**
package/dist/cli.js CHANGED
@@ -19,7 +19,7 @@ var __toESM = (mod, isNodeMode, target) => {
19
19
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
20
20
 
21
21
  // src/version.ts
22
- var CLI_VERSION = "0.49.0";
22
+ var CLI_VERSION = "0.51.0";
23
23
 
24
24
  // src/config.ts
25
25
  import * as os from "node:os";
@@ -5535,9 +5535,9 @@ function emit3(out, asJson, io) {
5535
5535
  io.out(`${out.slug}: provisioning FAILED at stage ${out.stage ?? "unknown"}` + (out.failedReason ? `: ${out.failedReason}` : ""));
5536
5536
  if (isLikelyLiveFailureStage(out.stage)) {
5537
5537
  io.out(` the app may already be live — run \`launchpad recover ${out.slug}\` to reconcile the record;`);
5538
- io.out(" if it isn't, fix the cause and re-run `launchpad deploy`.");
5538
+ io.out(` if it is not serving, the same command starts the stage-dependent recovery.`);
5539
5539
  } else {
5540
- io.out(" fix the cause and re-run `launchpad deploy`.");
5540
+ io.out(` run \`launchpad recover ${out.slug}\` to start the stage-dependent recovery.`);
5541
5541
  }
5542
5542
  return;
5543
5543
  case "destroying":
@@ -10911,8 +10911,7 @@ function renderBotError2(status, env, slug, io) {
10911
10911
  return;
10912
10912
  case "destroy_failed":
10913
10913
  io.err(`launchpad destroy: ${message}`);
10914
- io.err(" Re-run `launchpad destroy` to retry once the platform-team has unstuck the apply,");
10915
- io.err(" or contact platform-team if the destroy PR needs manual intervention.");
10914
+ io.err(` Re-run \`launchpad destroy ${slug}\` to retry the idempotent teardown.`);
10916
10915
  return;
10917
10916
  case "conflict":
10918
10917
  io.err(`launchpad destroy: ${message}`);
@@ -11154,19 +11153,27 @@ async function runRecover(args, io) {
11154
11153
  });
11155
11154
  const body = await res.json().catch(() => null);
11156
11155
  if (parsed.json) {
11157
- io.out(JSON.stringify({ httpStatus: res.status, ...body ?? {} }, null, 2));
11158
- return res.status === 200 ? 0 : 1;
11156
+ io.out(JSON.stringify({ httpStatus: res.status, ...isRecord3(body) ? body : {} }, null, 2));
11157
+ return res.status === 200 || res.status === 202 ? 0 : 1;
11159
11158
  }
11160
- if (res.status === 200 && body !== null && "outcome" in body) {
11159
+ if (res.status === 200 && hasRecoverOutcome(body)) {
11161
11160
  renderSuccess2(body, io);
11162
11161
  return 0;
11163
11162
  }
11163
+ if (res.status === 200 && isRecord3(body) && typeof body.message === "string") {
11164
+ io.out(body.message);
11165
+ return 0;
11166
+ }
11167
+ if (res.status === 202 && isRecoverInitiatedBody(body)) {
11168
+ renderInitiated(body, io);
11169
+ return 0;
11170
+ }
11164
11171
  if (res.status === 503) {
11165
- const msg = body !== null && "message" in body && typeof body.message === "string" ? body.message : "live state unavailable — nothing was changed; retry shortly.";
11172
+ const msg = isRecord3(body) && typeof body.message === "string" ? body.message : "live state unavailable — nothing was changed; retry shortly.";
11166
11173
  io.err(`launchpad recover: ${msg}`);
11167
11174
  return 1;
11168
11175
  }
11169
- if (res.status === 409 && body !== null && "error" in body) {
11176
+ if (res.status === 409 && hasRecoverRefusal(body)) {
11170
11177
  renderRefusal(parsed.slug, body, io);
11171
11178
  return 1;
11172
11179
  }
@@ -11176,6 +11183,28 @@ async function runRecover(args, io) {
11176
11183
  return mapError(e, parsed.slug, io);
11177
11184
  }
11178
11185
  }
11186
+ function isRecord3(value) {
11187
+ return typeof value === "object" && value !== null;
11188
+ }
11189
+ function hasRecoverOutcome(value) {
11190
+ return isRecord3(value) && "outcome" in value;
11191
+ }
11192
+ function isRecoverInitiatedBody(value) {
11193
+ if (!isRecord3(value))
11194
+ return false;
11195
+ return [
11196
+ typeof value.slug === "string",
11197
+ typeof value.outcome === "string",
11198
+ typeof value.message === "string",
11199
+ value.deploymentId === undefined || typeof value.deploymentId === "string",
11200
+ value.freshPrNumber === undefined || typeof value.freshPrNumber === "number",
11201
+ value.stalePrNumber === undefined || typeof value.stalePrNumber === "number",
11202
+ value.recoveryClass === undefined || value.recoveryClass === "post_tf" || value.recoveryClass === "tf_pr"
11203
+ ].every(Boolean);
11204
+ }
11205
+ function hasRecoverRefusal(value) {
11206
+ return isRecord3(value) && "error" in value;
11207
+ }
11179
11208
  function renderSuccess2(body, io) {
11180
11209
  if (body.outcome === "noop_already_healthy") {
11181
11210
  io.out(`${body.slug}: already healthy — nothing to recover.`);
@@ -11199,6 +11228,19 @@ function renderSuccess2(body, io) {
11199
11228
  io.out("");
11200
11229
  io.out(`Run \`launchpad status ${body.slug}\` — it now reports the live deployment truth.`);
11201
11230
  }
11231
+ function renderInitiated(body, io) {
11232
+ io.out(`${body.slug}: recovery initiated (${body.outcome}).`);
11233
+ if (body.deploymentId !== undefined) {
11234
+ io.out(` deployment: ${body.deploymentId}`);
11235
+ }
11236
+ if (body.freshPrNumber !== undefined) {
11237
+ io.out(` fresh PR: #${body.freshPrNumber}`);
11238
+ }
11239
+ if (body.stalePrNumber !== undefined) {
11240
+ io.out(` stale PR: #${body.stalePrNumber}`);
11241
+ }
11242
+ io.out(` ${body.message}`);
11243
+ }
11202
11244
  function renderRefusal(slug, body, io) {
11203
11245
  io.err(`launchpad recover: refused — "${slug}" was NOT repaired.`);
11204
11246
  if (typeof body.message === "string") {
@@ -1 +1 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAGjE,eAAO,MAAM,eAAe,EAAE,OAI7B,CAAC"}
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAGjE,eAAO,MAAM,eAAe,EAAE,OAI7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"recover.d.ts","sourceRoot":"","sources":["../../src/commands/recover.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAEjE,eAAO,MAAM,cAAc,EAAE,OAI5B,CAAC;AAIF,UAAU,WAAW;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB;AAiLD;;kEAEkE;AAClE,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,GAAE,MAAsB,EAC3B,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC5B,WAAW,GAAG,MAAM,CAgDtB"}
1
+ {"version":3,"file":"recover.d.ts","sourceRoot":"","sources":["../../src/commands/recover.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAEjE,eAAO,MAAM,cAAc,EAAE,OAI5B,CAAC;AAIF,UAAU,WAAW;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB;AAuPD;;kEAEkE;AAClE,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,GAAE,MAAsB,EAC3B,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC5B,WAAW,GAAG,MAAM,CAgDtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/commands/status.ts"],"names":[],"mappings":"AA0CA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1D,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAC;AASxC,OAAO,EAKL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAC;AAUlC,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,OAI3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C,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3F;AAED;;;8EAG8E;AAC9E,wBAAsB,cAAc,CAClC,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAO/B;AA8mBD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,QAAQ,EAClB,eAAe,CAAC,EAAE;IAChB,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC5C,QAAQ,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAChD,GACA,aAAa,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,CA2DpE;AA+VD;0BAC0B;AAC1B,wBAAgB,SAAS,CACvB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,GAAE,MAAsB,EAC3B,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC5B,UAAU,GAAG,MAAM,CA2ErB"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const CLI_VERSION = "0.49.0";
1
+ export declare const CLI_VERSION = "0.51.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m-kopa/launchpad-cli",
3
- "version": "0.49.0",
3
+ "version": "0.51.0",
4
4
  "description": "Launchpad CLI — clone / deploy / review / merge against Launchpad-managed apps. Talks to the portal-bot endpoints (SCOPE-M-760 / T4).",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: launchpad-content-pr
3
3
  description: Push a content change to a Launchpad app via `launchpad deploy` and verify it shipped via `launchpad status`. Covers the post-first-deploy iteration loop (edit → deploy → verify) — subsequent deploys commit directly to the app repo's main and the Pages build runs asynchronously, so verification is its own step. Use when someone says "push a content change", "ship an update", "/launchpad-content-pr", "verify my deploy", or after `/launchpad-deploy` reports `done` and they want to follow up with an edit.
4
- version: 0.49.0
4
+ version: 0.51.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: launchpad-deploy
3
3
  description: Walk a Launchpad user through deploying an app from their local working directory (Model A — `launchpad init` + `launchpad deploy`). Wraps the CLI verbs end-to-end: detects the app shape, scaffolds `launchpad.yaml`, resolves the allowed Entra group via `launchpad groups`, bundles the CWD via `launchpad deploy`, and watches the rollout via `launchpad status`. Use when someone says "deploy a new app", "ship my app to Launchpad", "/launchpad-deploy", "I have an app locally — get it on Launchpad", or any variant. Resume/abandon for legacy in-flight provisioning is at the bottom.
4
- version: 0.49.0
4
+ version: 0.51.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: launchpad-deploy-status
3
3
  description: Show the current provisioning stage + failure reason for a Launchpad app via `launchpad status` (Model A drift + deployment_verified) and `launchpad apps` (lifecycle bucket), or watch provisioning live with `launchpad watch`. Renders the M-892 stage trace for in-flight provisioning, and is the canonical home for `launchpad recover` (repair a terminal-failed app record that is actually live). Use when someone says "what's the status of demo-X", "/launchpad-deploy-status", "is my deploy stuck", "watch my deploy go live", "watch provisioning", "my app says failed but it's serving", or after `/launchpad-deploy` reports a non-`done` terminal stage.
4
- version: 0.49.0
4
+ version: 0.51.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: launchpad-destroy
3
3
  description: Tear down a Launchpad app end-to-end via `launchpad destroy` — Cloudflare Pages project, edge-auth wiring (gateway KV/audience entries, or the Access app for `auth: access` apps), custom hostname, platform-repo TF, and the app repo (archive-renamed). Owner-only verb with a two-step destructive confirmation. Use when someone says "destroy this app", "/launchpad-destroy", "tear down `<slug>`", "delete the app", or asks to clean up a smoke-test / orphan / retired app.
4
- version: 0.49.0
4
+ version: 0.51.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: launchpad-identity
3
3
  description: Teach an app author how to use the signed-in user's identity inside a Launchpad app — read the gateway-forwarded X-Launchpad-User-Assertion in a Pages Function, VERIFY it with @m-kopa/platform-auth (fail-closed), and show who's logged in (sub/email/name). Use when someone says "who is logged in", "show the current user", "get the user's email in my app", "auth in my launchpad app", "read the user identity", "/launchpad-identity", or is wiring up an /api/me for a gateway-fronted app.
4
- version: 0.49.0
4
+ version: 0.51.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: launchpad-onboard
3
3
  description: One-time setup for the Launchpad CLI + Claude Code skill bundle. Verifies the `launchpad` CLI is installed and current, runs `launchpad whoami` to confirm the session is fresh, and checks the bundled skills are installed and in lock-step with the CLI. Idempotent — safe to re-run any time. Use when someone says "set me up for Launchpad", "I just got a new machine and want to use Launchpad", "/launchpad-onboard", or any of the other launchpad-* skills fails on a prereq check.
4
- version: 0.49.0
4
+ version: 0.51.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: launchpad-report
3
3
  description: File a bug report or feature request to the Launchpad team's tracker from the CLI. Use when someone reports something broken, hits an error in a launchpad command, or wishes a feature existed — e.g. "this is broken", "report a bug", "can you file that", "I wish launchpad could…", "/launchpad-bug", "/launchpad-feature". Always confirm and show exactly what you'll send before filing; never file silently.
4
- version: 0.49.0
4
+ version: 0.51.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: launchpad-status
3
3
  description: Show whether a Launchpad app's local launchpad.yaml matches what's deployed, and read the deployed manifest. Wraps `launchpad pull` (fetch deployed YAML) and `launchpad status` (drift report). Use when someone says "is my app in sync", "what's deployed", "show drift", "/launchpad-status", "/launchpad-pull", or after `launchpad deploy` to verify the change landed.
4
- version: 0.49.0
4
+ version: 0.51.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->