@m-kopa/launchpad-cli 0.39.0 → 0.40.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 +22 -0
- package/dist/cli.js +88 -7
- package/dist/http/api-client.d.ts.map +1 -1
- package/dist/report/classify-fault.d.ts +28 -0
- package/dist/report/classify-fault.d.ts.map +1 -0
- package/dist/report/fault-signal.d.ts +23 -0
- package/dist/report/fault-signal.d.ts.map +1 -0
- package/dist/report/report-nudge.d.ts +33 -0
- package/dist/report/report-nudge.d.ts.map +1 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/skills/launchpad-content-pr/SKILL.md +1 -1
- package/skills/launchpad-deploy/SKILL.md +16 -1
- package/skills/launchpad-deploy-status/SKILL.md +14 -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-report/SKILL.md +1 -1
- package/skills/launchpad-status/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,28 @@ 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.40.0 — 2026-06-21
|
|
10
|
+
|
|
11
|
+
Feature (sp-rptndg, PS-1601): `launchpad` now nudges you toward `launchpad bug`
|
|
12
|
+
when a command fails because the **platform** misbehaved — so the reporting verbs
|
|
13
|
+
are discoverable at the moment they're needed, not only to people who already
|
|
14
|
+
know they exist.
|
|
15
|
+
|
|
16
|
+
- A single one-line, **non-actionable** reminder prints (stderr) on platform
|
|
17
|
+
faults only: a bot 5xx, a network error, `✗ NO NEW DEPLOYMENT WAS CREATED`
|
|
18
|
+
(exit 69), or an unexpected crash. Classified by the typed HTTP error, **not**
|
|
19
|
+
an exit-code allowlist — the common platform faults (5xx / network) are caught
|
|
20
|
+
and returned as exit 1 inside commands, so an exit-code check would miss them.
|
|
21
|
+
- Stays **quiet** for your-side failures (auth/401, forbidden/403,
|
|
22
|
+
not-found/404, `ApiError` 4xx, bad input, usage errors) and on non-interactive
|
|
23
|
+
output (CI, pipes, `--json`).
|
|
24
|
+
- It **never files anything** — filing still shows you the report and asks you to
|
|
25
|
+
confirm first; the report carries only the last command name, never its args.
|
|
26
|
+
- The `launchpad-deploy` and `launchpad-deploy-status` skills now point an agent
|
|
27
|
+
at `/launchpad-report` on a platform fault, preserving "never file silently".
|
|
28
|
+
|
|
29
|
+
No portal-bot change.
|
|
30
|
+
|
|
9
31
|
## 0.39.0 — 2026-06-20
|
|
10
32
|
|
|
11
33
|
Feature (sp-bld9kq, PS-1590): `launchpad deploy` now confirms a Cloudflare
|
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.
|
|
22
|
+
var CLI_VERSION = "0.40.0";
|
|
23
23
|
|
|
24
24
|
// src/config.ts
|
|
25
25
|
import * as os from "node:os";
|
|
@@ -75,6 +75,28 @@ class TransportError extends Error {
|
|
|
75
75
|
code = "transport_error";
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
// src/report/fault-signal.ts
|
|
79
|
+
var last = null;
|
|
80
|
+
function recordFault(err) {
|
|
81
|
+
if (err === null || typeof err !== "object")
|
|
82
|
+
return;
|
|
83
|
+
const code = err.code;
|
|
84
|
+
if (typeof code !== "string")
|
|
85
|
+
return;
|
|
86
|
+
const status = err.status;
|
|
87
|
+
last = typeof status === "number" ? { code, status } : { code };
|
|
88
|
+
}
|
|
89
|
+
function recordedFault(err) {
|
|
90
|
+
recordFault(err);
|
|
91
|
+
return err;
|
|
92
|
+
}
|
|
93
|
+
function clearFault() {
|
|
94
|
+
last = null;
|
|
95
|
+
}
|
|
96
|
+
function peekFault() {
|
|
97
|
+
return last;
|
|
98
|
+
}
|
|
99
|
+
|
|
78
100
|
// src/auth/flow.ts
|
|
79
101
|
import { randomBytes as randomBytes4 } from "node:crypto";
|
|
80
102
|
|
|
@@ -838,7 +860,7 @@ async function apiJson(cfg, opts, fetcher = fetch) {
|
|
|
838
860
|
try {
|
|
839
861
|
parsed = await res.json();
|
|
840
862
|
} catch (e) {
|
|
841
|
-
throw new TransportError(`bot returned non-JSON body for ${opts.path}: ${describe7(e)}`);
|
|
863
|
+
throw recordedFault(new TransportError(`bot returned non-JSON body for ${opts.path}: ${describe7(e)}`));
|
|
842
864
|
}
|
|
843
865
|
return parsed;
|
|
844
866
|
}
|
|
@@ -880,27 +902,28 @@ async function apiRaw(cfg, opts, fetcher = fetch) {
|
|
|
880
902
|
try {
|
|
881
903
|
res = await fetcher(url, init);
|
|
882
904
|
} catch (e) {
|
|
883
|
-
throw new TransportError(`network error calling ${url}: ${describe7(e)}`);
|
|
905
|
+
throw recordedFault(new TransportError(`network error calling ${url}: ${describe7(e)}`));
|
|
884
906
|
}
|
|
885
907
|
if (res.status === 401) {
|
|
886
908
|
const detail = await peek(res);
|
|
887
|
-
throw new UnauthenticatedError(`bot returned 401 for ${opts.path}: ${detail} — run \`launchpad login\``);
|
|
909
|
+
throw recordedFault(new UnauthenticatedError(`bot returned 401 for ${opts.path}: ${detail} — run \`launchpad login\``));
|
|
888
910
|
}
|
|
889
911
|
if (res.status === 403) {
|
|
890
912
|
const detail = await peek(res);
|
|
891
|
-
throw new ForbiddenError(`bot returned 403 for ${opts.path}: ${detail}`);
|
|
913
|
+
throw recordedFault(new ForbiddenError(`bot returned 403 for ${opts.path}: ${detail}`));
|
|
892
914
|
}
|
|
893
915
|
if (res.status === 404) {
|
|
894
916
|
const detail = await peek(res);
|
|
895
|
-
throw new NotFoundError(`bot returned 404 for ${opts.path}: ${detail}`);
|
|
917
|
+
throw recordedFault(new NotFoundError(`bot returned 404 for ${opts.path}: ${detail}`));
|
|
896
918
|
}
|
|
897
919
|
if (!res.ok) {
|
|
898
920
|
if (opts.nonThrowingStatuses?.includes(res.status) === true) {
|
|
899
921
|
return res;
|
|
900
922
|
}
|
|
901
923
|
const detail = await peek(res);
|
|
902
|
-
throw new ApiError(`bot returned HTTP ${res.status} for ${opts.path}: ${detail}`, res.status);
|
|
924
|
+
throw recordedFault(new ApiError(`bot returned HTTP ${res.status} for ${opts.path}: ${detail}`, res.status));
|
|
903
925
|
}
|
|
926
|
+
clearFault();
|
|
904
927
|
return res;
|
|
905
928
|
}
|
|
906
929
|
async function peek(res) {
|
|
@@ -13720,6 +13743,52 @@ function printHelp6(io, commands) {
|
|
|
13720
13743
|
io.out("silent until the grant session expires.");
|
|
13721
13744
|
}
|
|
13722
13745
|
|
|
13746
|
+
// src/report/classify-fault.ts
|
|
13747
|
+
var PLATFORM_FAULT_EXIT_CODES = [69];
|
|
13748
|
+
function classifyFault(input3) {
|
|
13749
|
+
if (input3.exitCode === 0)
|
|
13750
|
+
return false;
|
|
13751
|
+
if (PLATFORM_FAULT_EXIT_CODES.includes(input3.exitCode))
|
|
13752
|
+
return true;
|
|
13753
|
+
const f = input3.lastFault;
|
|
13754
|
+
if (f === null)
|
|
13755
|
+
return false;
|
|
13756
|
+
if (f.code === "transport_error")
|
|
13757
|
+
return true;
|
|
13758
|
+
if (f.code === "api_error")
|
|
13759
|
+
return (f.status ?? 0) >= 500;
|
|
13760
|
+
return false;
|
|
13761
|
+
}
|
|
13762
|
+
|
|
13763
|
+
// src/report/report-nudge.ts
|
|
13764
|
+
function nudgeSuppressed(ctx) {
|
|
13765
|
+
if (ctx.env.CI)
|
|
13766
|
+
return true;
|
|
13767
|
+
if (!ctx.stderrIsTTY)
|
|
13768
|
+
return true;
|
|
13769
|
+
if (ctx.argv.includes("--json"))
|
|
13770
|
+
return true;
|
|
13771
|
+
const verb = ctx.argv[0];
|
|
13772
|
+
if (verb === "bug" || verb === "feature")
|
|
13773
|
+
return true;
|
|
13774
|
+
return false;
|
|
13775
|
+
}
|
|
13776
|
+
function printNudge(io) {
|
|
13777
|
+
io.err('This looks like a platform issue, not something you did — you can report it with `launchpad bug "<what you were trying to do>"` (the last command is attached automatically; don\'t paste secrets).');
|
|
13778
|
+
}
|
|
13779
|
+
function maybeReportNudge(io, ctx) {
|
|
13780
|
+
if (nudgeSuppressed(ctx))
|
|
13781
|
+
return;
|
|
13782
|
+
if (!classifyFault({ exitCode: ctx.exitCode, lastFault: ctx.lastFault }))
|
|
13783
|
+
return;
|
|
13784
|
+
printNudge(io);
|
|
13785
|
+
}
|
|
13786
|
+
function maybeCrashReportNudge(io, ctx) {
|
|
13787
|
+
if (nudgeSuppressed(ctx))
|
|
13788
|
+
return;
|
|
13789
|
+
printNudge(io);
|
|
13790
|
+
}
|
|
13791
|
+
|
|
13723
13792
|
// src/cli.ts
|
|
13724
13793
|
var io = {
|
|
13725
13794
|
out: (line) => {
|
|
@@ -13737,6 +13806,13 @@ dispatch(args, io).then((code) => {
|
|
|
13737
13806
|
const elapsedMs = Date.now() - startedAt;
|
|
13738
13807
|
process.exitCode = code;
|
|
13739
13808
|
notifyAfterCommand(io, args);
|
|
13809
|
+
maybeReportNudge(io, {
|
|
13810
|
+
argv: args,
|
|
13811
|
+
env: process.env,
|
|
13812
|
+
stderrIsTTY: Boolean(process.stderr.isTTY),
|
|
13813
|
+
exitCode: code,
|
|
13814
|
+
lastFault: peekFault()
|
|
13815
|
+
});
|
|
13740
13816
|
maybeFirstRunNoticeReal(io, args);
|
|
13741
13817
|
recordAfterCommandReal(args, code, elapsedMs);
|
|
13742
13818
|
}).catch((err) => {
|
|
@@ -13745,6 +13821,11 @@ dispatch(args, io).then((code) => {
|
|
|
13745
13821
|
process.stderr.write(`launchpad: unexpected error: ${msg}
|
|
13746
13822
|
`);
|
|
13747
13823
|
process.exitCode = 70;
|
|
13824
|
+
maybeCrashReportNudge(io, {
|
|
13825
|
+
argv: args,
|
|
13826
|
+
env: process.env,
|
|
13827
|
+
stderrIsTTY: Boolean(process.stderr.isTTY)
|
|
13828
|
+
});
|
|
13748
13829
|
maybeFirstRunNoticeReal(io, args);
|
|
13749
13830
|
recordAfterCommandReal(args, 70, elapsedMs);
|
|
13750
13831
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/http/api-client.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/http/api-client.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;IAC9D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qEAAqE;IACrE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpD;;;;;;;OAOG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClD;AAED;;;GAGG;AACH,wBAAsB,OAAO,CAAC,CAAC,EAC7B,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,iBAAiB,EACvB,OAAO,GAAE,OAAO,KAAa,GAC5B,OAAO,CAAC,CAAC,CAAC,CAWZ;AAED;;;;;;;GAOG;AACH,wBAAsB,MAAM,CAC1B,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,iBAAiB,EACvB,OAAO,GAAE,OAAO,KAAa,GAC5B,OAAO,CAAC,QAAQ,CAAC,CA8FnB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { RecordedFault } from "./fault-signal.js";
|
|
2
|
+
/**
|
|
3
|
+
* Exit codes that are themselves platform-fault signals, independent of any
|
|
4
|
+
* recorded HTTP fault. Today only 69 = no-new-deployment (sp-bld9kq): the
|
|
5
|
+
* commit committed but Cloudflare never built it.
|
|
6
|
+
*
|
|
7
|
+
* NB the unhandled-crash exit (70, EX_SOFTWARE) is NOT here — it is emitted
|
|
8
|
+
* only from `cli.ts`'s top-level `.catch`, which nudges directly; a returned
|
|
9
|
+
* code never carries it.
|
|
10
|
+
*/
|
|
11
|
+
export declare const PLATFORM_FAULT_EXIT_CODES: readonly number[];
|
|
12
|
+
export interface FaultClassifierInput {
|
|
13
|
+
readonly exitCode: number;
|
|
14
|
+
readonly lastFault: RecordedFault | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* True iff the failure warrants a "file a bug" nudge.
|
|
18
|
+
*
|
|
19
|
+
* - exit 0 (incl. the soft pending/superseded/not-registered-yet outcomes)
|
|
20
|
+
* is never a fault.
|
|
21
|
+
* - A platform-fault exit code (69) is a direct signal.
|
|
22
|
+
* - Otherwise classify by the last typed HTTP fault: `TransportError`
|
|
23
|
+
* (network) and `ApiError` with status >= 500 (bot/server 5xx) are platform
|
|
24
|
+
* faults; `ApiError` 4xx, 401/403/404, and any non-HTTP failure (local input,
|
|
25
|
+
* usage) are NOT.
|
|
26
|
+
*/
|
|
27
|
+
export declare function classifyFault(input: FaultClassifierInput): boolean;
|
|
28
|
+
//# sourceMappingURL=classify-fault.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classify-fault.d.ts","sourceRoot":"","sources":["../../src/report/classify-fault.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAAS,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI,CAAC;CAC1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAUlE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** The discriminant + (for `ApiError`) status of the last typed HTTP error. */
|
|
2
|
+
export interface RecordedFault {
|
|
3
|
+
readonly code: string;
|
|
4
|
+
readonly status?: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Record the last typed error. Accepts any of the `http/errors.ts` classes
|
|
8
|
+
* (all carry a string `.code`; `ApiError` also carries `.status`). A non-error
|
|
9
|
+
* or code-less value is ignored, so a stray throw can never poison the signal.
|
|
10
|
+
*/
|
|
11
|
+
export declare function recordFault(err: unknown): void;
|
|
12
|
+
/**
|
|
13
|
+
* Record then return the error — sugar for `throw recordedFault(new ApiError(…))`
|
|
14
|
+
* at the HTTP client throw sites, so recording can't be forgotten next to a throw.
|
|
15
|
+
*/
|
|
16
|
+
export declare function recordedFault<T>(err: T): T;
|
|
17
|
+
/** Clear the recorded fault — called by the HTTP client on a 2xx success. */
|
|
18
|
+
export declare function clearFault(): void;
|
|
19
|
+
/** Read the last recorded fault (null if none / cleared). */
|
|
20
|
+
export declare function peekFault(): RecordedFault | null;
|
|
21
|
+
/** Test-only: reset module state between cases. */
|
|
22
|
+
export declare function _resetFaultForTesting(): void;
|
|
23
|
+
//# sourceMappingURL=fault-signal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fault-signal.d.ts","sourceRoot":"","sources":["../../src/report/fault-signal.ts"],"names":[],"mappings":"AAgBA,+EAA+E;AAC/E,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAID;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAM9C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAG1C;AAED,6EAA6E;AAC7E,wBAAgB,UAAU,IAAI,IAAI,CAEjC;AAED,6DAA6D;AAC7D,wBAAgB,SAAS,IAAI,aAAa,GAAG,IAAI,CAEhD;AAED,mDAAmD;AACnD,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { CliIo } from "../dispatcher.js";
|
|
2
|
+
import type { RecordedFault } from "./fault-signal.js";
|
|
3
|
+
export interface NudgeContext {
|
|
4
|
+
/** The raw command args; only argv[0] (the verb) is ever read. */
|
|
5
|
+
readonly argv: readonly string[];
|
|
6
|
+
readonly env: Record<string, string | undefined>;
|
|
7
|
+
readonly stderrIsTTY: boolean;
|
|
8
|
+
readonly exitCode: number;
|
|
9
|
+
readonly lastFault: RecordedFault | null;
|
|
10
|
+
}
|
|
11
|
+
/** Quiet in non-interactive / machine contexts, and never nudge the report
|
|
12
|
+
* verbs themselves. Mirrors update-notifier's isSuppressed. */
|
|
13
|
+
export declare function nudgeSuppressed(ctx: {
|
|
14
|
+
readonly argv: readonly string[];
|
|
15
|
+
readonly env: Record<string, string | undefined>;
|
|
16
|
+
readonly stderrIsTTY: boolean;
|
|
17
|
+
}): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Print the nudge for a finished command iff its failure classifies as a
|
|
20
|
+
* platform fault and we're on an interactive terminal. No-op otherwise.
|
|
21
|
+
*/
|
|
22
|
+
export declare function maybeReportNudge(io: CliIo, ctx: NudgeContext): void;
|
|
23
|
+
/**
|
|
24
|
+
* Print the nudge for the unhandled-crash path (cli.ts top-level `.catch`,
|
|
25
|
+
* exit 70). A crash is a platform fault by definition, so no classifier call —
|
|
26
|
+
* but still TTY/CI-gated and report-verb-skipped.
|
|
27
|
+
*/
|
|
28
|
+
export declare function maybeCrashReportNudge(io: CliIo, ctx: {
|
|
29
|
+
readonly argv: readonly string[];
|
|
30
|
+
readonly env: Record<string, string | undefined>;
|
|
31
|
+
readonly stderrIsTTY: boolean;
|
|
32
|
+
}): void;
|
|
33
|
+
//# sourceMappingURL=report-nudge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-nudge.d.ts","sourceRoot":"","sources":["../../src/report/report-nudge.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI,CAAC;CAC1C;AAED;gEACgE;AAChE,wBAAgB,eAAe,CAAC,GAAG,EAAE;IACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B,GAAG,OAAO,CAOV;AAYD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,GAAG,IAAI,CAInE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;IACpD,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B,GAAG,IAAI,CAGP"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.
|
|
1
|
+
export declare const CLI_VERSION = "0.40.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
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.
|
|
4
|
+
version: 0.40.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.
|
|
4
|
+
version: 0.40.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|
|
@@ -511,3 +511,18 @@ the in-flight case.
|
|
|
511
511
|
strips the user JWT and 401s every user (see "Gateway auth").
|
|
512
512
|
- Do **not** `wrangler secret put` for a two-tier app — `launchpad secrets
|
|
513
513
|
push` with `targets: all` seeds both tiers via the bot.
|
|
514
|
+
|
|
515
|
+
## When a deploy fails because the platform misbehaved
|
|
516
|
+
|
|
517
|
+
If `launchpad deploy` (or `status`) fails for a reason that is **not** the
|
|
518
|
+
user's — a bot 5xx, a network error, `✗ NO NEW DEPLOYMENT WAS CREATED` /
|
|
519
|
+
exit 69, or an unexpected crash — i.e. it looks like **our** fault, not a typo
|
|
520
|
+
or a missing permission — offer to file it via the **`/launchpad-report`** skill
|
|
521
|
+
(`launchpad bug "<what they were trying to do>"`). The CLI prints a one-line
|
|
522
|
+
nudge on these; offer proactively.
|
|
523
|
+
|
|
524
|
+
Follow `/launchpad-report`'s rules: **never file silently** — show the user the
|
|
525
|
+
exact title + body you'll send and get their confirmation first, and never paste
|
|
526
|
+
secret-bearing commands/values into the report body. Do **not** offer to file
|
|
527
|
+
for a user-side failure (auth/401, not-found/404, a bad manifest, a dirty tree) —
|
|
528
|
+
fix those instead.
|
|
@@ -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.
|
|
4
|
+
version: 0.40.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|
|
@@ -360,3 +360,16 @@ such a link anyway.
|
|
|
360
360
|
`launchpad apps`. Use `launchpad status <slug> --json` for any
|
|
361
361
|
downstream automation (`launchpad apps` has no `--json`; for
|
|
362
362
|
per-app automation go through `status --json` instead).
|
|
363
|
+
|
|
364
|
+
## When a status check fails because the platform misbehaved
|
|
365
|
+
|
|
366
|
+
If `launchpad status` / `watch` / `recover` fails for a reason that is **not**
|
|
367
|
+
the user's — a bot 5xx, a network error, `✗ NO NEW DEPLOYMENT WAS CREATED` /
|
|
368
|
+
exit 69, or an unexpected crash — offer to file it via the
|
|
369
|
+
**`/launchpad-report`** skill (`launchpad bug "<what they were trying to do>"`).
|
|
370
|
+
The CLI prints a one-line nudge on these; offer proactively.
|
|
371
|
+
|
|
372
|
+
Follow `/launchpad-report`'s rules: **never file silently** — show the exact
|
|
373
|
+
title + body and confirm first, and never paste secret-bearing commands/values
|
|
374
|
+
into the body. Do **not** offer to file for a user-side failure (auth/401,
|
|
375
|
+
not-found/404) — resolve those instead.
|
|
@@ -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.
|
|
4
|
+
version: 0.40.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.
|
|
4
|
+
version: 0.40.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.
|
|
4
|
+
version: 0.40.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.
|
|
4
|
+
version: 0.40.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.
|
|
4
|
+
version: 0.40.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|