@m-kopa/launchpad-cli 0.34.0 → 0.34.1
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 +21 -0
- package/dist/cli.js +24 -6
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/watch/model.d.ts +10 -0
- package/dist/watch/model.d.ts.map +1 -1
- package/dist/watch/phases.d.ts +14 -0
- package/dist/watch/phases.d.ts.map +1 -1
- package/dist/watch/render.d.ts.map +1 -1
- package/package.json +1 -1
- package/skills/launchpad-content-pr/SKILL.md +1 -1
- package/skills/launchpad-deploy/SKILL.md +1 -1
- package/skills/launchpad-deploy-status/SKILL.md +1 -1
- package/skills/launchpad-destroy/SKILL.md +1 -1
- package/skills/launchpad-identity/SKILL.md +1 -1
- package/skills/launchpad-onboard/SKILL.md +1 -1
- package/skills/launchpad-status/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
6
6
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html);
|
|
7
7
|
pre-1.0 minor bumps may carry breaking changes per ADR 0005.
|
|
8
8
|
|
|
9
|
+
## 0.34.1 — 2026-06-18
|
|
10
|
+
|
|
11
|
+
Fix (sp-pvf8r2, Bundle A): `launchpad watch` now shows the **real** provisioning
|
|
12
|
+
failure reason, and both `watch` and `status` advise `recover` when a failed app
|
|
13
|
+
is probably live.
|
|
14
|
+
|
|
15
|
+
- **`watch` no longer renders `✗ —: unknown`.** When a failure is recorded on the
|
|
16
|
+
registry but the `AppStatus` Durable Object never got a structured `failedAt`
|
|
17
|
+
(exactly what happens when the DO write itself is the casualty — e.g. a
|
|
18
|
+
transient Cloudflare Durable Object reset, the test-app-02 class), the watcher
|
|
19
|
+
now falls back to the registry's `lifecycleReason`, mirroring what
|
|
20
|
+
`launchpad status` already showed. The lifecycle endpoint already carried the
|
|
21
|
+
reason; only the CLI wasn't reading it — no bot change.
|
|
22
|
+
- **Recover-vs-resume advice is now stage-based.** A failure at or after
|
|
23
|
+
`ready_for_content` (infra/cert/access all completed → the app may already be
|
|
24
|
+
serving) advises `launchpad recover <slug>` instead of `deploy --resume` /
|
|
25
|
+
re-running `deploy`. Earlier-stage failures still advise fix-and-redeploy.
|
|
26
|
+
|
|
27
|
+
(Bundle B — making the provisioning Workflow treat a transient DO reset as
|
|
28
|
+
retryable instead of a terminal failure — ships separately.)
|
|
29
|
+
|
|
9
30
|
## 0.34.0 — 2026-06-18
|
|
10
31
|
|
|
11
32
|
New verb: **`launchpad redeploy [<slug>]`** (sp-rdpl41) — trigger a fresh
|
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.34.
|
|
22
|
+
var CLI_VERSION = "0.34.1";
|
|
23
23
|
|
|
24
24
|
// src/config.ts
|
|
25
25
|
import * as os from "node:os";
|
|
@@ -3897,6 +3897,13 @@ function ordinalOfStage(stage) {
|
|
|
3897
3897
|
const i = STAGE_ORDER.indexOf(stage);
|
|
3898
3898
|
return i < 0 ? null : i + 1;
|
|
3899
3899
|
}
|
|
3900
|
+
function isLikelyLiveFailureStage(stage) {
|
|
3901
|
+
if (!stage)
|
|
3902
|
+
return false;
|
|
3903
|
+
const ord = ordinalOfStage(stage);
|
|
3904
|
+
const threshold = ordinalOfStage("ready_for_content");
|
|
3905
|
+
return ord !== null && threshold !== null && ord >= threshold;
|
|
3906
|
+
}
|
|
3900
3907
|
function phaseOfStage(stage) {
|
|
3901
3908
|
return STAGE_TO_PHASE[stage] ?? FAILURE_STAGE_TO_PHASE[stage] ?? null;
|
|
3902
3909
|
}
|
|
@@ -3932,9 +3939,15 @@ class WatchModel {
|
|
|
3932
3939
|
this.terminal = "live";
|
|
3933
3940
|
} else if (view.state === "failed") {
|
|
3934
3941
|
this.terminal = "failed";
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3942
|
+
const synthesized = view.failedAt ?? (view.lifecycleReason !== undefined ? {
|
|
3943
|
+
stage: view.stage ?? this.currentStage ?? "unknown",
|
|
3944
|
+
message: view.lifecycleReason,
|
|
3945
|
+
retryable: false
|
|
3946
|
+
} : undefined);
|
|
3947
|
+
this.failure = synthesized ?? this.failure;
|
|
3948
|
+
const failStage = view.failedAt?.stage ?? view.stage;
|
|
3949
|
+
if (failStage)
|
|
3950
|
+
this.currentStage = failStage;
|
|
3938
3951
|
}
|
|
3939
3952
|
}
|
|
3940
3953
|
isTerminal() {
|
|
@@ -4211,7 +4224,7 @@ function renderFailedFrame(s, opts) {
|
|
|
4211
4224
|
const row = s.phases.map((p) => `${p.name} ${p.status === "failed" ? g.fail : p.status === "done" ? g.done : g.pending}`).join(" ");
|
|
4212
4225
|
const stage = s.failure ? sanitizeField(s.failure.stage, 40) : "—";
|
|
4213
4226
|
const reason = s.failure ? sanitizeField(s.failure.message, 200) : "unknown";
|
|
4214
|
-
const recovery = s.failure?.
|
|
4227
|
+
const recovery = isLikelyLiveFailureStage(s.failure?.stage) ? "recover" : "deploy --resume";
|
|
4215
4228
|
return [
|
|
4216
4229
|
` launchpad ${g.sep} ${slug} ${g.dash} provisioning failed`,
|
|
4217
4230
|
"",
|
|
@@ -4647,7 +4660,12 @@ function emit3(out, asJson, io) {
|
|
|
4647
4660
|
return;
|
|
4648
4661
|
case "provisioning_failed":
|
|
4649
4662
|
io.out(`${out.slug}: provisioning FAILED at stage ${out.stage ?? "unknown"}` + (out.failedReason ? `: ${out.failedReason}` : ""));
|
|
4650
|
-
|
|
4663
|
+
if (isLikelyLiveFailureStage(out.stage)) {
|
|
4664
|
+
io.out(` the app may already be live — run \`launchpad recover ${out.slug}\` to reconcile the record;`);
|
|
4665
|
+
io.out(" if it isn't, fix the cause and re-run `launchpad deploy`.");
|
|
4666
|
+
} else {
|
|
4667
|
+
io.out(" fix the cause and re-run `launchpad deploy`.");
|
|
4668
|
+
}
|
|
4651
4669
|
return;
|
|
4652
4670
|
case "destroying":
|
|
4653
4671
|
io.out(`${out.slug}: destroying…`);
|
|
@@ -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,EAAqC,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;
|
|
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,EAAqC,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAG5F,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,OAI3B,CAAC;AAEF,UAAU,UAAU;IAClB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAID;;+EAE+E;AAC/E,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EACV,c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E,MAAM,GAAG,IAAI,CAAC;IACrC,oFAAoF;IACpF,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,4EAA4E;IAC5E,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC;QACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;KAC5B,CAAC,CAAC;IACH;;;wCAGoC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAClD;;sDAEkD;IAClD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;CAChE;AAED;;;8EAG8E;AAC9E,wBAAsB,cAAc,CAClC,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAO/B;AAgSD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,QAAQ,GACjB,aAAa,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,CA2DpE;AAkSD;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.34.
|
|
1
|
+
export declare const CLI_VERSION = "0.34.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/watch/model.d.ts
CHANGED
|
@@ -8,6 +8,16 @@ export interface LifecycleSnapshot {
|
|
|
8
8
|
readonly message: string;
|
|
9
9
|
readonly retryable: boolean;
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Registry-level failure reason. Set when the failure was recorded on the
|
|
13
|
+
* registry but the AppStatus DO never got a `failedAt` — which is exactly
|
|
14
|
+
* what happens when the DO write itself is the casualty (e.g. a transient
|
|
15
|
+
* Cloudflare Durable Object reset, the test-app-02 class). Without this
|
|
16
|
+
* fallback the watcher renders "✗ —: unknown" while `launchpad status`
|
|
17
|
+
* shows the real reason. Mirrors status.ts's `failedAt?.message ??
|
|
18
|
+
* lifecycleReason` resolution.
|
|
19
|
+
*/
|
|
20
|
+
readonly lifecycleReason?: string;
|
|
11
21
|
readonly liveUrl?: string;
|
|
12
22
|
}
|
|
13
23
|
export type PhaseStatus = "pending" | "active" | "done" | "failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/watch/model.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,aAAa,CAAC;AAErB,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,KAAK,EACV,cAAc,GACd,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,gBAAgB,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;KAC7B,CAAC;IACF,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnE,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,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["pending", "repo_created", "bootstra
|
|
|
10
10
|
export declare const TOTAL_STAGES: 15;
|
|
11
11
|
/** 1-based ordinal of a working stage, or null if not a working stage. */
|
|
12
12
|
export declare function ordinalOfStage(stage: string): number | null;
|
|
13
|
+
/**
|
|
14
|
+
* Did this failure stage occur AFTER the infra/cert/access stages completed —
|
|
15
|
+
* i.e. the app's resources are likely up and it may actually be serving despite
|
|
16
|
+
* a recorded `provisioning_failed`? True for `ready_for_content` and later
|
|
17
|
+
* (the Verify phase). When true, the right next step is `launchpad recover`
|
|
18
|
+
* (reconcile the record against live CF state), not `deploy --resume` /
|
|
19
|
+
* re-running `deploy` (which re-provisions an app that is probably already live).
|
|
20
|
+
*
|
|
21
|
+
* This is the test-app-02 class: a transient failure (e.g. a Cloudflare Durable
|
|
22
|
+
* Object reset) at `ready_for_content` after Repo/Build/Infra/Cert/Access all
|
|
23
|
+
* passed. Failure pseudo-stages (`tf_apply_failed`, `validator_rejected`, …) and
|
|
24
|
+
* unknown stages return false → fix-and-redeploy remains the advice.
|
|
25
|
+
*/
|
|
26
|
+
export declare function isLikelyLiveFailureStage(stage: string | null | undefined): boolean;
|
|
13
27
|
/**
|
|
14
28
|
* The phase a stage belongs to. Returns null for an unrecognised stage
|
|
15
29
|
* (the model then keeps the last-known active phase rather than guessing).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phases.d.ts","sourceRoot":"","sources":["../../src/watch/phases.ts"],"names":[],"mappings":"AAWA,wCAAwC;AACxC,eAAO,MAAM,WAAW,wEAOd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,WAAW,4RAgBd,CAAC;AAEX,eAAO,MAAM,YAAY,IAAqB,CAAC;AAmC/C,0EAA0E;AAC1E,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG3D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAE5D;AAED,iEAAiE;AACjE,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAEnD"}
|
|
1
|
+
{"version":3,"file":"phases.d.ts","sourceRoot":"","sources":["../../src/watch/phases.ts"],"names":[],"mappings":"AAWA,wCAAwC;AACxC,eAAO,MAAM,WAAW,wEAOd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,WAAW,4RAgBd,CAAC;AAEX,eAAO,MAAM,YAAY,IAAqB,CAAC;AAmC/C,0EAA0E;AAC1E,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG3D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAKlF;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAE5D;AAED,iEAAiE;AACjE,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAEnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/watch/render.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/watch/render.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,KAAK,EAAe,aAAa,EAAE,MAAM,YAAY,CAAC;AAE7D,KAAK,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;AAoCt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B,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,EAC1B,IAAI,EAAE,UAAU;IAKnC,yEAAyE;IACzE,IAAI,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAc5B,0EAA0E;IAC1E,QAAQ,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAchC,gFAAgF;IAChF,aAAa,IAAI,IAAI;IAOrB,OAAO,CAAC,MAAM;CAKf"}
|
package/package.json
CHANGED
|
@@ -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.34.
|
|
4
|
+
version: 0.34.1
|
|
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.34.
|
|
4
|
+
version: 0.34.1
|
|
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.34.
|
|
4
|
+
version: 0.34.1
|
|
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.34.
|
|
4
|
+
version: 0.34.1
|
|
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.34.
|
|
4
|
+
version: 0.34.1
|
|
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.34.
|
|
4
|
+
version: 0.34.1
|
|
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.34.
|
|
4
|
+
version: 0.34.1
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|