@m-kopa/launchpad-cli 0.34.1 → 0.36.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 +20 -0
- package/dist/cli.js +182 -2
- package/dist/commands/report.d.ts +17 -0
- package/dist/commands/report.d.ts.map +1 -0
- package/dist/commands/skills.d.ts +1 -1
- package/dist/commands/skills.d.ts.map +1 -1
- package/dist/dispatcher.d.ts.map +1 -1
- package/dist/report/breadcrumb.d.ts +9 -0
- package/dist/report/breadcrumb.d.ts.map +1 -0
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
- 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-report/SKILL.md +71 -0
- package/skills/launchpad-status/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,26 @@ 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.36.0 — 2026-06-18
|
|
10
|
+
|
|
11
|
+
Feature (sp-rpt9kd, ADR 0029): **`launchpad bug` / `launchpad feature`** — file a
|
|
12
|
+
bug report or feature request straight from the CLI.
|
|
13
|
+
|
|
14
|
+
- Lands as a Linear issue in the team's dedicated inbox (the AIOps
|
|
15
|
+
"Launchpad - Bugs/Features" project), tagged `kind:bug`/`kind:feature`,
|
|
16
|
+
attributed to you. Bot-brokered — the CLI never holds a Linear credential.
|
|
17
|
+
- Non-interactive (`--title`/`--message` or a positional message) so the AI can
|
|
18
|
+
drive it; a TTY prompts for what's missing. `--json` returns `{ identifier, url }`.
|
|
19
|
+
- **Seat-independent acknowledgement** (you get a reference even without a Linear
|
|
20
|
+
seat), **duplicate collapsing**, and **fail-soft** (prints your report back if
|
|
21
|
+
the tracker is unreachable).
|
|
22
|
+
- A small, fixed, non-sensitive context is attached (CLI version, OS, last command
|
|
23
|
+
**name + exit code — never its arguments**, app slug). Server-side rate-limiting
|
|
24
|
+
+ cross-reporter dedupe guard against floods.
|
|
25
|
+
|
|
26
|
+
> Requires the portal-bot deploy that ships `POST /reports` + the `ReportRateLimit`
|
|
27
|
+
> DO migration; until then the verbs fail soft.
|
|
28
|
+
|
|
9
29
|
## 0.34.1 — 2026-06-18
|
|
10
30
|
|
|
11
31
|
Fix (sp-pvf8r2, Bundle A): `launchpad watch` now shows the **real** provisioning
|
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.36.0";
|
|
23
23
|
|
|
24
24
|
// src/config.ts
|
|
25
25
|
import * as os from "node:os";
|
|
@@ -11304,6 +11304,7 @@ var BUNDLED_SKILLS = [
|
|
|
11304
11304
|
"launchpad-status",
|
|
11305
11305
|
"launchpad-destroy",
|
|
11306
11306
|
"launchpad-identity",
|
|
11307
|
+
"launchpad-report",
|
|
11307
11308
|
"marquee-share"
|
|
11308
11309
|
];
|
|
11309
11310
|
function isBundleManaged(name) {
|
|
@@ -12924,6 +12925,179 @@ var emitTelemetryCommand = {
|
|
|
12924
12925
|
}
|
|
12925
12926
|
};
|
|
12926
12927
|
|
|
12928
|
+
// src/commands/report.ts
|
|
12929
|
+
import { createInterface as createInterface6 } from "node:readline/promises";
|
|
12930
|
+
import { platform } from "node:os";
|
|
12931
|
+
|
|
12932
|
+
// src/report/breadcrumb.ts
|
|
12933
|
+
import { writeFileSync as writeFileSync10, readFileSync as readFileSync22, mkdirSync as mkdirSync6 } from "node:fs";
|
|
12934
|
+
import { homedir as homedir6 } from "node:os";
|
|
12935
|
+
import { join as join17, dirname as dirname11 } from "node:path";
|
|
12936
|
+
function breadcrumbPath() {
|
|
12937
|
+
return join17(homedir6(), ".launchpad", "last-run.json");
|
|
12938
|
+
}
|
|
12939
|
+
function writeBreadcrumb(verb, exit) {
|
|
12940
|
+
try {
|
|
12941
|
+
const p = breadcrumbPath();
|
|
12942
|
+
mkdirSync6(dirname11(p), { recursive: true });
|
|
12943
|
+
writeFileSync10(p, JSON.stringify({ verb, exit, ts: Date.now() }), "utf8");
|
|
12944
|
+
} catch {}
|
|
12945
|
+
}
|
|
12946
|
+
function readBreadcrumb() {
|
|
12947
|
+
try {
|
|
12948
|
+
const raw = JSON.parse(readFileSync22(breadcrumbPath(), "utf8"));
|
|
12949
|
+
if (typeof raw !== "object" || raw === null)
|
|
12950
|
+
return null;
|
|
12951
|
+
const r = raw;
|
|
12952
|
+
if (typeof r.verb !== "string")
|
|
12953
|
+
return null;
|
|
12954
|
+
const exit = typeof r.exit === "number" && Number.isFinite(r.exit) ? Math.trunc(r.exit) : 0;
|
|
12955
|
+
return { verb: r.verb, exit };
|
|
12956
|
+
} catch {
|
|
12957
|
+
return null;
|
|
12958
|
+
}
|
|
12959
|
+
}
|
|
12960
|
+
|
|
12961
|
+
// src/commands/report.ts
|
|
12962
|
+
function realDeps2() {
|
|
12963
|
+
return {
|
|
12964
|
+
loadConfig,
|
|
12965
|
+
apiJson,
|
|
12966
|
+
isTty: () => process.stdout.isTTY === true && process.stdin.isTTY === true,
|
|
12967
|
+
prompt: async (question) => {
|
|
12968
|
+
const rl = createInterface6({ input: process.stdin, output: process.stdout });
|
|
12969
|
+
try {
|
|
12970
|
+
return (await rl.question(question)).trim();
|
|
12971
|
+
} finally {
|
|
12972
|
+
rl.close();
|
|
12973
|
+
}
|
|
12974
|
+
},
|
|
12975
|
+
cliVersion: CLI_VERSION,
|
|
12976
|
+
os: platform(),
|
|
12977
|
+
cwd: () => process.cwd(),
|
|
12978
|
+
readBreadcrumb
|
|
12979
|
+
};
|
|
12980
|
+
}
|
|
12981
|
+
function parseArgs15(args) {
|
|
12982
|
+
let title;
|
|
12983
|
+
let message;
|
|
12984
|
+
let positional;
|
|
12985
|
+
let json = false;
|
|
12986
|
+
for (let i = 0;i < args.length; i++) {
|
|
12987
|
+
const a = args[i];
|
|
12988
|
+
if (a === "--json")
|
|
12989
|
+
json = true;
|
|
12990
|
+
else if (a === "--title") {
|
|
12991
|
+
const v = args[i + 1];
|
|
12992
|
+
if (v !== undefined && !v.startsWith("-")) {
|
|
12993
|
+
title = v;
|
|
12994
|
+
i++;
|
|
12995
|
+
}
|
|
12996
|
+
} else if (a === "--message" || a === "-m") {
|
|
12997
|
+
const v = args[i + 1];
|
|
12998
|
+
if (v !== undefined && !v.startsWith("-")) {
|
|
12999
|
+
message = v;
|
|
13000
|
+
i++;
|
|
13001
|
+
}
|
|
13002
|
+
} else if (a !== undefined && !a.startsWith("-") && positional === undefined) {
|
|
13003
|
+
positional = a;
|
|
13004
|
+
}
|
|
13005
|
+
}
|
|
13006
|
+
return { title, message, positional, json };
|
|
13007
|
+
}
|
|
13008
|
+
var NOUN = { bug: "bug report", feature: "feature request" };
|
|
13009
|
+
async function runReport(kind, args, io, deps) {
|
|
13010
|
+
const verb = kind;
|
|
13011
|
+
const parsed = parseArgs15(args);
|
|
13012
|
+
let message = parsed.message ?? parsed.positional ?? "";
|
|
13013
|
+
let title = parsed.title ?? "";
|
|
13014
|
+
if (message === "" && deps.isTty()) {
|
|
13015
|
+
title = title || await deps.prompt(`${NOUN[kind]} — title: `);
|
|
13016
|
+
message = await deps.prompt("description: ");
|
|
13017
|
+
}
|
|
13018
|
+
if (title === "")
|
|
13019
|
+
title = deriveTitle(message);
|
|
13020
|
+
if (title === "" && message === "") {
|
|
13021
|
+
io.err(`usage: launchpad ${verb} "<description>" [--title <t>] [--json]`);
|
|
13022
|
+
return 64;
|
|
13023
|
+
}
|
|
13024
|
+
const ctx = buildContext(deps);
|
|
13025
|
+
try {
|
|
13026
|
+
const cfg = deps.loadConfig();
|
|
13027
|
+
const resp = await deps.apiJson(cfg, {
|
|
13028
|
+
method: "POST",
|
|
13029
|
+
path: "/reports",
|
|
13030
|
+
jsonBody: { kind, title, message, context: ctx },
|
|
13031
|
+
nonThrowingStatuses: [400, 429, 502, 503]
|
|
13032
|
+
});
|
|
13033
|
+
if (parsed.json) {
|
|
13034
|
+
io.out(JSON.stringify(resp));
|
|
13035
|
+
return resp.identifier !== undefined ? 0 : 1;
|
|
13036
|
+
}
|
|
13037
|
+
if (resp.identifier !== undefined) {
|
|
13038
|
+
if (resp.duplicate === true) {
|
|
13039
|
+
io.out(`✓ Already reported as ${resp.identifier} — thanks, no need to file again.`);
|
|
13040
|
+
} else {
|
|
13041
|
+
io.out(`✓ Filed your ${NOUN[kind]} as ${resp.identifier}.`);
|
|
13042
|
+
io.out(" The team is notified — no further action needed.");
|
|
13043
|
+
if (resp.url)
|
|
13044
|
+
io.out(` ${resp.url}`);
|
|
13045
|
+
}
|
|
13046
|
+
return 0;
|
|
13047
|
+
}
|
|
13048
|
+
if (resp.error === "rate_limited") {
|
|
13049
|
+
io.err(`launchpad ${verb}: ${resp.message ?? "rate limited"} (retry in ~${resp.retryAfterSec ?? 60}s).`);
|
|
13050
|
+
return 1;
|
|
13051
|
+
}
|
|
13052
|
+
if (resp.error === "bad_request") {
|
|
13053
|
+
io.err(`launchpad ${verb}: ${resp.message ?? "invalid report"}.`);
|
|
13054
|
+
return 64;
|
|
13055
|
+
}
|
|
13056
|
+
return failSoft(verb, kind, title, message, io);
|
|
13057
|
+
} catch (e) {
|
|
13058
|
+
if (e instanceof UnauthenticatedError) {
|
|
13059
|
+
io.err(`${e.message}`);
|
|
13060
|
+
return 1;
|
|
13061
|
+
}
|
|
13062
|
+
return failSoft(verb, kind, title, message, io);
|
|
13063
|
+
}
|
|
13064
|
+
}
|
|
13065
|
+
function failSoft(verb, kind, title, message, io) {
|
|
13066
|
+
io.err(`launchpad ${verb}: couldn't reach the tracker — your ${NOUN[kind]} was NOT filed.`);
|
|
13067
|
+
io.err("Here it is to paste manually:");
|
|
13068
|
+
io.err(` Title: ${title}`);
|
|
13069
|
+
if (message)
|
|
13070
|
+
io.err(` ${message}`);
|
|
13071
|
+
return 1;
|
|
13072
|
+
}
|
|
13073
|
+
function deriveTitle(message) {
|
|
13074
|
+
const firstLine = message.split(`
|
|
13075
|
+
`)[0]?.trim() ?? "";
|
|
13076
|
+
return firstLine.length > 80 ? `${firstLine.slice(0, 77)}…` : firstLine;
|
|
13077
|
+
}
|
|
13078
|
+
function buildContext(deps) {
|
|
13079
|
+
const ctx = {
|
|
13080
|
+
cliVersion: deps.cliVersion,
|
|
13081
|
+
os: deps.os
|
|
13082
|
+
};
|
|
13083
|
+
const crumb = deps.readBreadcrumb();
|
|
13084
|
+
if (crumb) {
|
|
13085
|
+
ctx.lastVerb = crumb.verb;
|
|
13086
|
+
ctx.lastExit = String(crumb.exit);
|
|
13087
|
+
}
|
|
13088
|
+
const slug = inferSlugFromCwd(deps.cwd());
|
|
13089
|
+
if (slug)
|
|
13090
|
+
ctx.appSlug = slug;
|
|
13091
|
+
return ctx;
|
|
13092
|
+
}
|
|
13093
|
+
function makeReportCommand(kind, deps = realDeps2()) {
|
|
13094
|
+
return {
|
|
13095
|
+
name: kind,
|
|
13096
|
+
summary: kind === "bug" ? "file a bug report (lands in the team's Linear inbox)" : "file a feature request (lands in the team's Linear inbox)",
|
|
13097
|
+
run: (args, io) => runReport(kind, args, io, deps)
|
|
13098
|
+
};
|
|
13099
|
+
}
|
|
13100
|
+
|
|
12927
13101
|
// src/dispatcher.ts
|
|
12928
13102
|
var COMMANDS = [
|
|
12929
13103
|
loginCommand,
|
|
@@ -12954,6 +13128,8 @@ var COMMANDS = [
|
|
|
12954
13128
|
secretsCommand,
|
|
12955
13129
|
grantEditorCommand,
|
|
12956
13130
|
revokeEditorCommand,
|
|
13131
|
+
makeReportCommand("bug"),
|
|
13132
|
+
makeReportCommand("feature"),
|
|
12957
13133
|
refreshUpdateCacheCommand,
|
|
12958
13134
|
emitTelemetryCommand
|
|
12959
13135
|
];
|
|
@@ -12975,7 +13151,11 @@ async function dispatch(argv, io, commands = COMMANDS) {
|
|
|
12975
13151
|
io.err("Run `launchpad --help` for the list of available commands.");
|
|
12976
13152
|
return 64;
|
|
12977
13153
|
}
|
|
12978
|
-
|
|
13154
|
+
const code = await cmd.run(rest, io);
|
|
13155
|
+
if (!cmd.hidden && verb !== "bug" && verb !== "feature") {
|
|
13156
|
+
writeBreadcrumb(verb, code);
|
|
13157
|
+
}
|
|
13158
|
+
return code;
|
|
12979
13159
|
}
|
|
12980
13160
|
function printHelp6(io, commands) {
|
|
12981
13161
|
io.out("launchpad — manage Launchpad-deployed apps from the command line.");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { readBreadcrumb } from "../report/breadcrumb.js";
|
|
2
|
+
import type { CliConfig } from "../config.js";
|
|
3
|
+
import type { ApiRequestOptions } from "../http/api-client.js";
|
|
4
|
+
import type { Command } from "../dispatcher.js";
|
|
5
|
+
export type ReportKind = "bug" | "feature";
|
|
6
|
+
export interface ReportDeps {
|
|
7
|
+
readonly loadConfig: () => CliConfig;
|
|
8
|
+
readonly apiJson: <T>(cfg: CliConfig, opts: ApiRequestOptions) => Promise<T>;
|
|
9
|
+
readonly isTty: () => boolean;
|
|
10
|
+
readonly prompt: (question: string) => Promise<string>;
|
|
11
|
+
readonly cliVersion: string;
|
|
12
|
+
readonly os: string;
|
|
13
|
+
readonly cwd: () => string;
|
|
14
|
+
readonly readBreadcrumb: typeof readBreadcrumb;
|
|
15
|
+
}
|
|
16
|
+
export declare function makeReportCommand(kind: ReportKind, deps?: ReportDeps): Command;
|
|
17
|
+
//# sourceMappingURL=report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/commands/report.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,SAAS,CAAC;AAE3C,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,SAAS,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC7E,QAAQ,CAAC,KAAK,EAAE,MAAM,OAAO,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,GAAG,EAAE,MAAM,MAAM,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,OAAO,cAAc,CAAC;CAChD;AA0KD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,GAAE,UAAuB,GAAG,OAAO,CAS1F"}
|
|
@@ -5,7 +5,7 @@ import type { Command } from "../dispatcher.js";
|
|
|
5
5
|
* "bundled list matches the skills dir" test in `tests/skills-command.test.ts`
|
|
6
6
|
* enforces this so a newly-added skill dir can't silently go un-installed.
|
|
7
7
|
*/
|
|
8
|
-
export declare const BUNDLED_SKILLS: readonly ["launchpad-onboard", "launchpad-deploy", "launchpad-deploy-status", "launchpad-content-pr", "launchpad-status", "launchpad-destroy", "launchpad-identity", "marquee-share"];
|
|
8
|
+
export declare const BUNDLED_SKILLS: readonly ["launchpad-onboard", "launchpad-deploy", "launchpad-deploy-status", "launchpad-content-pr", "launchpad-status", "launchpad-destroy", "launchpad-identity", "launchpad-report", "marquee-share"];
|
|
9
9
|
export declare const skillsCommand: Command;
|
|
10
10
|
interface InstallEnv {
|
|
11
11
|
readonly bundleDir: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/commands/skills.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AASjE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/commands/skills.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AASjE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,2MAcjB,CAAC;AAcX,eAAO,MAAM,aAAa,EAAE,OAK3B,CAAC;AA2CF,UAAU,UAAU;IAClB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,UAAU,CAQ9C"}
|
package/dist/dispatcher.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["../src/dispatcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["../src/dispatcher.ts"],"names":[],"mappings":"AAuDA,MAAM,WAAW,KAAK;IACpB,sDAAsD;IACtD,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,wCAAwC;IACxC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,EAAE,KAAK,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IACxE;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EAqCtC,CAAC;AAEF;;;GAGG;AACH,wBAAsB,QAAQ,CAC5B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,EAAE,KAAK,EACT,QAAQ,GAAE,SAAS,OAAO,EAAa,GACtC,OAAO,CAAC,QAAQ,CAAC,CA0BnB;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAyBvE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface Breadcrumb {
|
|
2
|
+
readonly verb: string;
|
|
3
|
+
readonly exit: number;
|
|
4
|
+
}
|
|
5
|
+
/** Record the verb + exit code. Best-effort; never throws. */
|
|
6
|
+
export declare function writeBreadcrumb(verb: string, exit: number): void;
|
|
7
|
+
/** Read the last breadcrumb, or null. Best-effort; never throws. */
|
|
8
|
+
export declare function readBreadcrumb(): Breadcrumb | null;
|
|
9
|
+
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../src/report/breadcrumb.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAMD,8DAA8D;AAC9D,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAQhE;AAED,oEAAoE;AACpE,wBAAgB,cAAc,IAAI,UAAU,GAAG,IAAI,CAYlD"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.
|
|
1
|
+
export declare const CLI_VERSION = "0.36.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m-kopa/launchpad-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Launchpad CLI
|
|
3
|
+
"version": "0.36.0",
|
|
4
|
+
"description": "Launchpad CLI \u2014 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": {
|
|
7
7
|
"launchpad": "./dist/cli.js"
|
|
@@ -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.36.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.36.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.
|
|
4
|
+
version: 0.36.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.
|
|
4
|
+
version: 0.36.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.36.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.36.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: launchpad-report
|
|
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.36.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|
|
8
|
+
## Shell contract — read this first
|
|
9
|
+
|
|
10
|
+
Every fenced `bash` block below MUST be sent to the `Bash` tool **verbatim**.
|
|
11
|
+
Do not rewrite into PowerShell, cmd, zsh-isms, or "equivalent" forms.
|
|
12
|
+
|
|
13
|
+
- macOS / Linux: the `Bash` tool runs system bash.
|
|
14
|
+
- Windows: the `Bash` tool runs Git for Windows (MSYS) bash. `$HOME`,
|
|
15
|
+
forward slashes, `test -f`, `command -v`, heredocs, and `[[ … ]]` all
|
|
16
|
+
work. There is no reason to translate to `Test-Path`, `$env:USERPROFILE`,
|
|
17
|
+
`Get-Content`, `Where-Object`, `Get-ChildItem`, or backslash paths —
|
|
18
|
+
doing so will fail with `/usr/bin/bash: syntax error`.
|
|
19
|
+
|
|
20
|
+
If a step genuinely needs OS branching, branch *inside* bash:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
case "$(uname -s)" in
|
|
24
|
+
Darwin) : ;;
|
|
25
|
+
Linux) : ;;
|
|
26
|
+
MINGW*|MSYS*|CYGWIN*) : ;;
|
|
27
|
+
esac
|
|
28
|
+
```
|
|
29
|
+
<!-- END shell-contract -->
|
|
30
|
+
|
|
31
|
+
## What this does
|
|
32
|
+
|
|
33
|
+
`launchpad bug` and `launchpad feature` file a report straight into the team's
|
|
34
|
+
Linear inbox (bot-brokered — no credentials needed locally). Use them when the
|
|
35
|
+
user reports a problem or wishes for a feature.
|
|
36
|
+
|
|
37
|
+
## Rules (read first)
|
|
38
|
+
|
|
39
|
+
1. **Never file silently.** Before running the command, show the user the exact
|
|
40
|
+
title + description you're about to send and ask them to confirm. The CLI
|
|
41
|
+
attaches a little non-sensitive context automatically (CLI version, OS, last
|
|
42
|
+
command name + exit code, app slug) — you don't add it.
|
|
43
|
+
2. **Don't paste secrets.** Put only the user's description in `--message`. Never
|
|
44
|
+
include tokens, secret values, or full command lines with arguments.
|
|
45
|
+
3. **Don't double-file.** One report per issue per conversation. If you already
|
|
46
|
+
filed it (or the CLI says it's a duplicate), tell the user the reference rather
|
|
47
|
+
than filing again.
|
|
48
|
+
|
|
49
|
+
## How to file
|
|
50
|
+
|
|
51
|
+
Pick the verb by intent — a defect is a `bug`, a wish is a `feature`:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
launchpad bug --title "watch hangs after a failed deploy" \
|
|
55
|
+
--message "After a failed deploy, launchpad watch never exits." --json
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
launchpad feature --title "pin a default region" \
|
|
60
|
+
--message "Allow a default region in launchpad.yaml so I don't pass --region." --json
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
`--json` returns `{ "identifier": "AIO-…", "url": "…" }`. Report the `identifier`
|
|
64
|
+
back to the user as confirmation (they may not have a Linear seat to open the URL).
|
|
65
|
+
|
|
66
|
+
## Handling the result
|
|
67
|
+
|
|
68
|
+
- **Success** → tell the user: "Filed as `AIO-…` — the team's notified."
|
|
69
|
+
- **Duplicate** (`"duplicate": true`) → "That's already tracked as `AIO-…`."
|
|
70
|
+
- **Failure / non-zero exit** → the CLI prints the report back; offer it to the
|
|
71
|
+
user to file manually. Do not retry in a loop.
|
|
@@ -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.36.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|