@m-kopa/launchpad-cli 0.32.2 → 0.34.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 (40) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/cli.js +5612 -4534
  3. package/dist/commands/deploy.d.ts.map +1 -1
  4. package/dist/commands/init.d.ts.map +1 -1
  5. package/dist/commands/redeploy.d.ts +39 -0
  6. package/dist/commands/redeploy.d.ts.map +1 -0
  7. package/dist/commands/status.d.ts +31 -3
  8. package/dist/commands/status.d.ts.map +1 -1
  9. package/dist/commands/watch.d.ts +9 -0
  10. package/dist/commands/watch.d.ts.map +1 -0
  11. package/dist/deploy/served-verify.d.ts +12 -0
  12. package/dist/deploy/served-verify.d.ts.map +1 -1
  13. package/dist/deploy/verify-deploy.d.ts +18 -0
  14. package/dist/deploy/verify-deploy.d.ts.map +1 -1
  15. package/dist/dispatcher.d.ts.map +1 -1
  16. package/dist/secrets/push.d.ts +15 -0
  17. package/dist/secrets/push.d.ts.map +1 -1
  18. package/dist/version.d.ts +1 -1
  19. package/dist/watch/capabilities.d.ts +23 -0
  20. package/dist/watch/capabilities.d.ts.map +1 -0
  21. package/dist/watch/engine.d.ts +35 -0
  22. package/dist/watch/engine.d.ts.map +1 -0
  23. package/dist/watch/index.d.ts +19 -0
  24. package/dist/watch/index.d.ts.map +1 -0
  25. package/dist/watch/model.d.ts +69 -0
  26. package/dist/watch/model.d.ts.map +1 -0
  27. package/dist/watch/phases.d.ts +20 -0
  28. package/dist/watch/phases.d.ts.map +1 -0
  29. package/dist/watch/render.d.ts +55 -0
  30. package/dist/watch/render.d.ts.map +1 -0
  31. package/dist/watch/sanitize.d.ts +14 -0
  32. package/dist/watch/sanitize.d.ts.map +1 -0
  33. package/package.json +2 -1
  34. package/skills/launchpad-content-pr/SKILL.md +1 -1
  35. package/skills/launchpad-deploy/SKILL.md +17 -5
  36. package/skills/launchpad-deploy-status/SKILL.md +33 -4
  37. package/skills/launchpad-destroy/SKILL.md +1 -1
  38. package/skills/launchpad-identity/SKILL.md +1 -1
  39. package/skills/launchpad-onboard/SKILL.md +1 -1
  40. package/skills/launchpad-status/SKILL.md +1 -1
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: launchpad-deploy-status
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). 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", "my app says failed but it's serving", or after `/launchpad-deploy` reports a non-`done` terminal stage.
4
- version: 0.32.2
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.34.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -56,6 +56,7 @@ inference source resolves.
56
56
 
57
57
  | Question | Verb |
58
58
  |---|---|
59
+ | Watch a first deploy provision to live in real time | `launchpad watch <slug>` — see § Watch below |
59
60
  | Is my local manifest in sync with what's deployed? | `launchpad status <slug>` |
60
61
  | What lifecycle bucket is the app in? | `launchpad apps` |
61
62
  | What was actually deployed? | `launchpad pull <slug>` |
@@ -63,8 +64,34 @@ inference source resolves.
63
64
  | What broke the most recent deploy? | `launchpad status <slug> --json` + the bot's PR check trail |
64
65
  | It says `failed` but the app is live in a browser | `launchpad recover <slug>` — see § Recover below |
65
66
 
66
- The Model A default is `launchpad status <slug>`. The other verbs
67
- are specialisations.
67
+ The Model A default is `launchpad status <slug>` (a one-shot read).
68
+ For an in-flight first deploy, `launchpad watch <slug>` is the live
69
+ view. The other verbs are specialisations.
70
+
71
+ ## Watch — live provisioning (`launchpad watch`)
72
+
73
+ For a first deploy still provisioning, `launchpad watch <slug>` (alias:
74
+ `launchpad status <slug> --watch`) renders the pipeline live and updates
75
+ in place until the app is **live** or **failed** — no manual re-running:
76
+
77
+ ```bash
78
+ launchpad watch <slug>
79
+ ```
80
+
81
+ - The 15 workflow stages are grouped into six phases (Repo · Build ·
82
+ Infra · Certificate · Access · Verify) with a spinner on the active
83
+ phase and a `stage N/15` counter. Slug inference matches
84
+ `launchpad status` (manifest slug, then the `launchpad-app-<slug>/`
85
+ dirname).
86
+ - On **live** it settles to a final frame with the app URL; on
87
+ **failed** it shows the failing stage, the reason, and the exact
88
+ recovery command (`launchpad deploy --resume <slug>`, or
89
+ `launchpad recover <slug>` for a terminal-failed-but-live record —
90
+ see § Recover). Exit `0` live, `1` failed, `130` on `Ctrl-C`.
91
+ - `Ctrl-C` stops **watching** only — it never affects provisioning.
92
+ - It adapts to the terminal (full glyphs → ASCII → plain when piped/CI),
93
+ so it is safe to run anywhere. It is **read-only** — it polls the same
94
+ lifecycle `launchpad status` reads, and makes no change.
68
95
 
69
96
  ## Standard (Model A) status
70
97
 
@@ -77,6 +104,8 @@ the canonical reference). Lifecycle-shaped states:
77
104
 
78
105
  - **`provisioning`** — first deploy still in flight. The live
79
106
  workflow stage is shown inline (`stage: …`); see § Stage taxonomy.
107
+ To watch it advance to its terminal state live, use
108
+ `launchpad watch <slug>` (§ Watch).
80
109
  - **`provisioning_failed`** — provisioning failed; the failing stage
81
110
  and reason are shown inline. If the app is actually live, see
82
111
  § Recover.
@@ -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.32.2
4
+ version: 0.34.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.32.2
4
+ version: 0.34.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.32.2
4
+ version: 0.34.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.32.2
4
+ version: 0.34.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->