@m-kopa/launchpad-cli 0.67.0 → 0.69.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
@@ -6,6 +6,25 @@ 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.69.0 - 2026-10-05
10
+
11
+ ### Changed
12
+
13
+ - Raise the production minimum CLI version to 0.67.0 through the governed policy workflow.
14
+
15
+ ### Fixed
16
+
17
+ - `launchpad deploy` warns before uploading when a dispatch `static` or `react` app bundles a `functions/` folder: only `react+api` apps get their functions compiled, so those routes return 404. The deploy still goes through. The bot repeats the warning in its response for older CLIs (#1006).
18
+ - `launchpad logs` on a Workers dispatch app no longer reports "project not found yet". It says logs only covers Pages apps today and points to `launchpad status` and the latest build run (#1005).
19
+ - `launchpad deploy` retries the registry check before a first-deploy conversion, so a registry blip no longer stops a registered app's deploy. If every try fails, the error says the app may already exist and a retry is safe (#1014).
20
+
21
+ ## 0.68.0 - 2026-10-05
22
+
23
+ ### Fixed
24
+
25
+ - `launchpad deploy --dry-run` now reads v2 manifests (`apiVersion: launchpad.m-kopa.us/v2`, `metadata.slug`) as well as v1alpha1, instead of validating every manifest against the v1alpha1 schema. A schema failure names the schema it was checked against, and the `--json` schema-error output gains a `schema` field (AIO-860).
26
+ - A 403 from an app route (`/apps/<slug>/...`) now explains the likely cause: no role on the app, or a role too low for the action. It names `launchpad add-owner`, `launchpad grant-editor` and `launchpad whoami`. A server-supplied message is still shown, and the hint is added only when the bot gave no message or reported `insufficient-role` (AIO-860).
27
+
9
28
  ## 0.67.0 - 2026-10-05
10
29
 
11
30
  ### Changed
@@ -10,6 +10,8 @@ export interface BundleAndDeployArgs {
10
10
  readonly overrideStale?: string | null;
11
11
  /** Explicitly deploy a non-clone tree without source provenance. */
12
12
  readonly allowUnguarded?: boolean;
13
+ /** Non-blocking notices about the bundle, shown before it is uploaded. */
14
+ readonly onWarning?: (message: string) => void;
13
15
  }
14
16
  export type BundleAndDeployResult = {
15
17
  kind: "walk-error";
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrate.d.ts","sourceRoot":"","sources":["../../src/bundle/orchestrate.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKtE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;0CACsC;IACtC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,oEAAoE;IACpE,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,iBAAiB,CAAA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AE,MAAM,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,iBAAiB,CAAA;CAAE,GACjE;IACE,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,OAAO,CAAC,kBAAkB,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC,UAAU,CAAC,CAAC;IAChE,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iFAAiF;IACjF,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC,CAAC;AAEN;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,qBAAqB,CAAC,CA0GhC"}
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.67.0";
22
+ var CLI_VERSION = "0.69.0";
23
23
 
24
24
  // src/config.ts
25
25
  import { readFileSync } from "node:fs";
@@ -73,7 +73,9 @@ function decodeErrorEnvelope(input, context) {
73
73
  const endpoint = boundedOptionalString(body.endpoint, "endpoint", omissions) ?? context.endpoint;
74
74
  const legacyError = boundedOptionalString(body.error, "error", omissions);
75
75
  const code = boundedOptionalString(body.code, "code", omissions) ?? legacyError ?? "api_error";
76
- const message = boundedOptionalString(body.message, "message", omissions) ?? `bot returned HTTP ${context.status}`;
76
+ const serverMessage = boundedOptionalString(body.message, "message", omissions);
77
+ const reason = boundedOptionalString(body.reason, "reason", omissions);
78
+ const message = serverMessage ?? `bot returned HTTP ${context.status}`;
77
79
  const source = boundedOptionalString(body.source, "source", omissions);
78
80
  const sourceSha = nullableBoundedString(body.source_sha ?? body.sourceSha, "source_sha", omissions);
79
81
  const manifestSha = boundedOptionalString(body.manifest_sha ?? body.manifestSha ?? body.commit_sha ?? body.commitSha, "manifest_sha", omissions);
@@ -82,6 +84,8 @@ function decodeErrorEnvelope(input, context) {
82
84
  endpoint,
83
85
  code,
84
86
  message,
87
+ ...serverMessage === undefined ? {} : { serverMessage },
88
+ ...reason === undefined ? {} : { reason },
85
89
  ...legacyError === undefined ? {} : { legacyError },
86
90
  ...source === undefined ? {} : { source },
87
91
  ...sourceSha === undefined ? {} : { sourceSha },
@@ -1149,8 +1153,10 @@ async function apiRaw(cfg, opts, fetcher = fetch) {
1149
1153
  throw recordedFault(new UnauthenticatedError(`bot returned 401 for ${opts.path}: ${detail} — run \`launchpad login\``));
1150
1154
  }
1151
1155
  if (res.status === 403) {
1152
- const detail = await errorDetail(res, opts.path);
1153
- throw recordedFault(new ForbiddenError(`bot returned 403 for ${opts.path}: ${detail}`));
1156
+ const envelope = await readErrorEnvelope(res, opts.path);
1157
+ const hint = forbiddenHint(envelope, opts.path);
1158
+ throw recordedFault(new ForbiddenError(`bot returned 403 for ${opts.path}: ${formatErrorEnvelope(envelope)}` + (hint === null ? "" : `
1159
+ ${hint}`)));
1154
1160
  }
1155
1161
  if (res.status === 404) {
1156
1162
  const envelope = await readErrorEnvelope(res, opts.path);
@@ -1225,6 +1231,17 @@ async function readErrorEnvelope(res, endpoint) {
1225
1231
  omissions: [omission]
1226
1232
  };
1227
1233
  }
1234
+ var APP_PATH_REGEX = /^\/apps\/([A-Za-z0-9._-]+)\//;
1235
+ function forbiddenHint(envelope, endpoint) {
1236
+ const slug = APP_PATH_REGEX.exec(endpoint)?.[1];
1237
+ if (slug === undefined)
1238
+ return null;
1239
+ const insufficientRole = envelope.reason === "insufficient-role" || envelope.code === "insufficient-role";
1240
+ const bare = envelope.serverMessage === undefined && (envelope.reason === undefined || envelope.reason === "forbidden");
1241
+ if (!insufficientRole && !bare)
1242
+ return null;
1243
+ return `hint: you have no role on app '${slug}' (or this action needs a higher role). ` + `Ask an owner of '${slug}' to run: launchpad add-owner ${slug} <your-email> ` + `(or launchpad grant-editor). Check your roles with: launchpad whoami`;
1244
+ }
1228
1245
  async function errorDetail(res, endpoint) {
1229
1246
  return formatErrorEnvelope(await readErrorEnvelope(res, endpoint));
1230
1247
  }
@@ -4877,6 +4894,17 @@ function newAppOrigin(appType, requested) {
4877
4894
  return;
4878
4895
  return requested ?? "dispatch";
4879
4896
  }
4897
+ // ../launchpad-engine/dist/dispatch-functions.js
4898
+ function uncompiledFunctionsWarning(spec, paths) {
4899
+ if (spec.origin !== "dispatch" || spec.appType === "react+api" || spec.appType === "container")
4900
+ return null;
4901
+ const rootDir = spec.build?.root_dir;
4902
+ const root = (typeof rootDir === "string" ? rootDir : "").split("/").filter((part) => part !== "" && part !== ".");
4903
+ const dir = [...root, "functions"].join("/");
4904
+ if (!paths.some((p) => p.startsWith(`${dir}/`)))
4905
+ return null;
4906
+ return `warning: ${dir}/ will NOT be served. This is a ${spec.appType} app on Workers dispatch, and only react+api apps ` + `get their functions compiled, so every route under ${dir}/ returns 404. Running them needs ` + "`appType: react+api` with a package.json and lockfile at the build root. For an app that is already live, " + "that is a runtime change: ask the platform team with `launchpad feature` rather than flipping appType yourself. " + 'See the launchpad-identity skill, "Dispatch rules".';
4907
+ }
4880
4908
  // src/bundle/boundary.ts
4881
4909
  var MAX_CONTENT_PROBE_BYTES = 1024 * 1024;
4882
4910
  function applyBoundaryToFiles(args) {
@@ -4957,6 +4985,7 @@ ${lines}`
4957
4985
  }
4958
4986
 
4959
4987
  // src/bundle/orchestrate.ts
4988
+ import { parse as parseYaml3 } from "yaml";
4960
4989
  async function bundleAndDeploy(args) {
4961
4990
  const { cfg, cwd, slug, overrideStale, allowUnguarded = false } = args;
4962
4991
  const manifestPath = join7(cwd, "launchpad.yaml");
@@ -4986,6 +5015,9 @@ async function bundleAndDeploy(args) {
4986
5015
  return { kind: "boundary-error", message: boundary.message };
4987
5016
  }
4988
5017
  const bundleFiles = boundary.files;
5018
+ const functionsWarning = dispatchFunctionsWarning(manifestYaml, bundleFiles);
5019
+ if (functionsWarning !== null)
5020
+ args.onWarning?.(functionsWarning);
4989
5021
  let packResult;
4990
5022
  try {
4991
5023
  packResult = await packTarGz(cwd, bundleFiles);
@@ -5022,6 +5054,17 @@ async function bundleAndDeploy(args) {
5022
5054
  boundaryWarnings: boundary.warnings
5023
5055
  };
5024
5056
  }
5057
+ function dispatchFunctionsWarning(manifestYaml, files) {
5058
+ let raw;
5059
+ try {
5060
+ raw = parseYaml3(manifestYaml);
5061
+ } catch {
5062
+ return null;
5063
+ }
5064
+ if (raw?.apiVersion !== "launchpad.m-kopa.us/v2" || raw.spec === undefined)
5065
+ return null;
5066
+ return uncompiledFunctionsWarning(raw.spec, files);
5067
+ }
5025
5068
 
5026
5069
  // src/deploy/verify-deploy.ts
5027
5070
  import { readFileSync as readFileSync10, existsSync as existsSync4 } from "node:fs";
@@ -5056,6 +5099,13 @@ async function fetchStandingExceptions(cfg, slug, fetcher = fetch) {
5056
5099
  return null;
5057
5100
  return raw.exceptions.filter((e) => typeof e === "object" && e !== null && typeof e.path === "string" && typeof e.rule === "string" && typeof e.detectedAt === "string" && typeof e.deployRef === "string");
5058
5101
  }
5102
+ async function fetchDeploymentStatusBestEffort(cfg, slug) {
5103
+ try {
5104
+ return await fetchDeploymentStatus(cfg, slug);
5105
+ } catch {
5106
+ return null;
5107
+ }
5108
+ }
5059
5109
  async function fetchDeploymentStatus(cfg, slug, fetcher = fetch) {
5060
5110
  let raw;
5061
5111
  try {
@@ -5386,7 +5436,7 @@ async function fetchManifestState(cfg, slug, opts = {}, fetcher = fetch) {
5386
5436
  // src/commands/infer-slug.ts
5387
5437
  import * as path7 from "node:path";
5388
5438
  import { existsSync as existsSync3, readFileSync as readFileSync6 } from "node:fs";
5389
- import { parse as parseYaml3 } from "yaml";
5439
+ import { parse as parseYaml4 } from "yaml";
5390
5440
  var DIRNAME_RE = /^launchpad-app-([a-z0-9][a-z0-9-]*[a-z0-9])$/;
5391
5441
  function inferSlugFromCwd(cwd) {
5392
5442
  const base = path7.basename(cwd);
@@ -5408,7 +5458,7 @@ function inferSlugFromManifestFile(manifestPath) {
5408
5458
  if (!existsSync3(manifestPath))
5409
5459
  return null;
5410
5460
  try {
5411
- return resolveManifestSlug(parseYaml3(readFileSync6(manifestPath, "utf8")));
5461
+ return resolveManifestSlug(parseYaml4(readFileSync6(manifestPath, "utf8")));
5412
5462
  } catch {
5413
5463
  return null;
5414
5464
  }
@@ -6176,7 +6226,7 @@ still provisioning after the watch window — re-run \`launchpad watch ${slug}\`
6176
6226
 
6177
6227
  // src/manifest/load.ts
6178
6228
  import { readFileSync as readFileSync8 } from "node:fs";
6179
- import { parse as parseYaml4, YAMLParseError } from "yaml";
6229
+ import { parse as parseYaml5, YAMLParseError } from "yaml";
6180
6230
  function loadManifest(path8) {
6181
6231
  let raw;
6182
6232
  try {
@@ -6205,7 +6255,7 @@ function loadManifestAnyVersion(path8) {
6205
6255
  function parseManifestAnyVersion(yamlText, path8) {
6206
6256
  let parsed;
6207
6257
  try {
6208
- parsed = parseYaml4(yamlText);
6258
+ parsed = parseYaml5(yamlText);
6209
6259
  } catch (err) {
6210
6260
  const message = err instanceof YAMLParseError ? err.message : err.message ?? String(err);
6211
6261
  return { kind: "yaml-parse-error", path: path8, message };
@@ -6234,7 +6284,7 @@ function parseManifestAnyVersion(yamlText, path8) {
6234
6284
  function parseManifest2(yamlText, path8) {
6235
6285
  let parsed;
6236
6286
  try {
6237
- parsed = parseYaml4(yamlText);
6287
+ parsed = parseYaml5(yamlText);
6238
6288
  } catch (err) {
6239
6289
  const message = err instanceof YAMLParseError ? err.message : err.message ?? String(err);
6240
6290
  return { kind: "yaml-parse-error", path: path8, message };
@@ -7445,7 +7495,7 @@ async function verifyFirstDeployServed(args, liveUrl, io, deps) {
7445
7495
  }
7446
7496
 
7447
7497
  // src/commands/deploy.ts
7448
- import { parse as parseYaml6 } from "yaml";
7498
+ import { parse as parseYaml7 } from "yaml";
7449
7499
  import { readFileSync as readFileSync12 } from "node:fs";
7450
7500
 
7451
7501
  // src/deploy/git-files.ts
@@ -7506,7 +7556,7 @@ function runGit2(sp, cwd, args) {
7506
7556
  }
7507
7557
 
7508
7558
  // src/deploy/manifest-diff.ts
7509
- import { parse as parseYaml5 } from "yaml";
7559
+ import { parse as parseYaml6 } from "yaml";
7510
7560
  var MASK = "«redacted»";
7511
7561
  var SECRET_KEY_SEGMENT = /(secret|token|api[_-]?key|access[_-]?key|private[_-]?key|secret[_-]?key|password|passwd|pwd|authorization|auth[_-]?token|bearer|client[_-]?secret|session|credential|value)/i;
7512
7562
  function isSecretPath(path8) {
@@ -7597,7 +7647,7 @@ function diffManifests(localYaml, deployedYaml) {
7597
7647
  let local;
7598
7648
  let deployed;
7599
7649
  try {
7600
- local = parseYaml5(localYaml);
7650
+ local = parseYaml6(localYaml);
7601
7651
  } catch (e) {
7602
7652
  return {
7603
7653
  inSync: false,
@@ -7606,7 +7656,7 @@ function diffManifests(localYaml, deployedYaml) {
7606
7656
  };
7607
7657
  }
7608
7658
  try {
7609
- deployed = parseYaml5(deployedYaml);
7659
+ deployed = parseYaml6(deployedYaml);
7610
7660
  } catch (e) {
7611
7661
  return {
7612
7662
  inSync: false,
@@ -8622,11 +8672,11 @@ async function runDeployDryRun(opts, io, deps = {}) {
8622
8672
  const cfg = deps.config ?? loadConfig();
8623
8673
  const fetcher = deps.fetcher ?? fetch;
8624
8674
  const manifestPath = resolve8(process.cwd(), opts.file ?? "launchpad.yaml");
8625
- const loaded = loadManifest(manifestPath);
8675
+ const loaded = loadManifestAnyVersion(manifestPath);
8626
8676
  if (loaded.kind !== "ok") {
8627
8677
  return renderManifestError2(loaded, opts.json, io);
8628
8678
  }
8629
- const slug = loaded.manifest.metadata.name;
8679
+ const slug = manifestSlug(loaded);
8630
8680
  let manifestSha;
8631
8681
  try {
8632
8682
  manifestSha = (deps.gitHeadSha ?? defaultGitHeadSha)(process.cwd());
@@ -8750,10 +8800,11 @@ function renderManifestError2(loaded, json, io) {
8750
8800
  ok: false,
8751
8801
  kind: "schema-error",
8752
8802
  path: loaded.path,
8803
+ schema: loaded.schema,
8753
8804
  issues: loaded.issues
8754
8805
  }));
8755
8806
  } else {
8756
- io.err(`launchpad deploy --dry-run: manifest schema validation failed (${loaded.path}):`);
8807
+ io.err(`launchpad deploy --dry-run: manifest failed ${loaded.schema} schema validation (${loaded.path}):`);
8757
8808
  for (const issue of loaded.issues) {
8758
8809
  io.err(` - ${issue.path}: ${issue.message}`);
8759
8810
  }
@@ -10087,7 +10138,7 @@ async function runModelADeploy(args) {
10087
10138
  return 1;
10088
10139
  }
10089
10140
  try {
10090
- const manifestObj = parseYaml6(readFileSync12(manifestPath, "utf8"));
10141
+ const manifestObj = parseYaml7(readFileSync12(manifestPath, "utf8"));
10091
10142
  const metaSlug = resolveManifestSlug(manifestObj);
10092
10143
  if (metaSlug === null) {
10093
10144
  io.err(`launchpad deploy: launchpad.yaml is missing metadata.slug (v2) / metadata.name (v1). ` + `Run \`launchpad init\` again to regenerate the manifest.`);
@@ -10167,6 +10218,14 @@ async function runModelADeploy(args) {
10167
10218
  } catch {}
10168
10219
  const deployContext = await readDeploymentContext(realCommitWaitDeps(cfg), slug);
10169
10220
  const deployBaseline = noVerify ? null : deployContext.baseline;
10221
+ const shownWarnings = new Set;
10222
+ const onWarning = (warning) => {
10223
+ if (!shownWarnings.has(warning))
10224
+ io.err(warning);
10225
+ shownWarnings.add(warning);
10226
+ };
10227
+ const botMessage = (message) => [...shownWarnings].reduce((m, w) => m.replace(`
10228
+ ${w}`, ""), message);
10170
10229
  let result;
10171
10230
  try {
10172
10231
  if (args.allowUnguarded) {
@@ -10177,7 +10236,8 @@ async function runModelADeploy(args) {
10177
10236
  cfg,
10178
10237
  slug,
10179
10238
  overrideStale: args.overrideStale,
10180
- allowUnguarded: args.allowUnguarded
10239
+ allowUnguarded: args.allowUnguarded,
10240
+ onWarning
10181
10241
  });
10182
10242
  if (result.kind === "upload-error" && result.status === 409 && result.body.error === "main_advanced") {
10183
10243
  io.out("Managed main advanced during validation; recomputing and retrying once ...");
@@ -10186,7 +10246,8 @@ async function runModelADeploy(args) {
10186
10246
  cfg,
10187
10247
  slug,
10188
10248
  overrideStale: args.overrideStale,
10189
- allowUnguarded: args.allowUnguarded
10249
+ allowUnguarded: args.allowUnguarded,
10250
+ onWarning
10190
10251
  });
10191
10252
  }
10192
10253
  if (args.rebaseOntoHead && result.kind === "upload-error" && result.status === 409 && isStaleBlock(result.body)) {
@@ -10194,7 +10255,7 @@ async function runModelADeploy(args) {
10194
10255
  if (typeof head === "string" && isValidBaseSha(head)) {
10195
10256
  await writeBaseShaMarker(cwd, head);
10196
10257
  io.out(`Re-stamped base revision to current head ${head.slice(0, 12)}; retrying deploy …`);
10197
- result = await bundleAndDeploy({ cwd, cfg, slug });
10258
+ result = await bundleAndDeploy({ cwd, cfg, slug, onWarning });
10198
10259
  } else {
10199
10260
  io.err("launchpad deploy: --rebase-onto-head could not read a head SHA from the block; run `launchpad pull` and retry.");
10200
10261
  return 1;
@@ -10361,7 +10422,7 @@ async function runModelADeploy(args) {
10361
10422
  if (success.status === "provisioning_started") {
10362
10423
  const submissionId = typeof success.submissionId === "string" ? success.submissionId : "(missing)";
10363
10424
  const echoedAppType = typeof success.appType === "string" ? success.appType : "(missing)";
10364
- const message = typeof success.message === "string" ? success.message : "Bot accepted the upload and started provisioning.";
10425
+ const message = typeof success.message === "string" ? botMessage(success.message) : "Bot accepted the upload and started provisioning.";
10365
10426
  if (success.mode === "container_redeploy") {
10366
10427
  io.out(`✓ Container redeploy started for ${slug}`);
10367
10428
  io.out(` submission: ${submissionId}`);
@@ -10418,7 +10479,7 @@ async function runModelADeploy(args) {
10418
10479
  io.out(` ${result.walk.skipped.length} entries skipped (.gitignore / default-ignore / symlink)`);
10419
10480
  }
10420
10481
  if (typeof success.message === "string") {
10421
- io.out(` ${success.message}`);
10482
+ io.out(` ${botMessage(success.message)}`);
10422
10483
  }
10423
10484
  surfaceDeployExtras(success, io, slug, args.allowStale);
10424
10485
  io.out("");
@@ -10460,7 +10521,7 @@ async function defaultToDispatch(cwd, manifestPath, io) {
10460
10521
  if (!impliesPagesForGateway(fields))
10461
10522
  return;
10462
10523
  try {
10463
- const result = await convertToDispatch(cwd, false);
10524
+ const result = await convertWithRegistryRetry(cwd);
10464
10525
  if (result.kind === "converted")
10465
10526
  reportConversion(io, result.secrets, result.plainSecretLike);
10466
10527
  } catch (e) {
@@ -10475,6 +10536,32 @@ async function defaultToDispatch(cwd, manifestPath, io) {
10475
10536
  throw new DispatchIneligibleError(describe17(e), fields.v2 === true);
10476
10537
  }
10477
10538
  }
10539
+ var REGISTRY_RETRY_DELAYS_MS = [250, 750];
10540
+ async function convertWithRegistryRetry(cwd) {
10541
+ for (const delay of REGISTRY_RETRY_DELAYS_MS) {
10542
+ try {
10543
+ return await convertToDispatch(cwd, false);
10544
+ } catch (e) {
10545
+ if (!(e instanceof RegistryUnavailableError))
10546
+ throw e;
10547
+ await new Promise((resolve10) => setTimeout(resolve10, delay));
10548
+ }
10549
+ }
10550
+ try {
10551
+ return await convertToDispatch(cwd, false);
10552
+ } catch (e) {
10553
+ if (e instanceof RegistryUnavailableError)
10554
+ throw new RegistryRetriesExhaustedError(e);
10555
+ throw e;
10556
+ }
10557
+ }
10558
+
10559
+ class RegistryRetriesExhaustedError extends RegistryUnavailableError {
10560
+ constructor(last2) {
10561
+ super(last2);
10562
+ this.message = `${last2.message} (tried ${REGISTRY_RETRY_DELAYS_MS.length + 1} times). ` + "This app may already exist; nothing was changed, so running `launchpad deploy` again is safe";
10563
+ }
10564
+ }
10478
10565
 
10479
10566
  class DispatchIneligibleError extends Error {
10480
10567
  constructor(reason, v2) {
@@ -10494,7 +10581,7 @@ function impliesPagesForGateway(fields) {
10494
10581
  function originFields(manifestPath) {
10495
10582
  let raw;
10496
10583
  try {
10497
- raw = parseYaml6(readFileSync12(manifestPath, "utf8")) ?? {};
10584
+ raw = parseYaml7(readFileSync12(manifestPath, "utf8")) ?? {};
10498
10585
  } catch {
10499
10586
  return {};
10500
10587
  }
@@ -10549,7 +10636,7 @@ function pendingReconcileOutcome(body) {
10549
10636
  // src/commands/redeploy.ts
10550
10637
  import { existsSync as existsSync9, readFileSync as readFileSync13 } from "node:fs";
10551
10638
  import { resolve as resolvePath2 } from "node:path";
10552
- import { parse as parseYaml7 } from "yaml";
10639
+ import { parse as parseYaml8 } from "yaml";
10553
10640
  var SLUG_RE6 = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
10554
10641
  var DEFAULT_VERIFY_TIMEOUT_MS = 180000;
10555
10642
  var redeployCommand = {
@@ -10628,7 +10715,7 @@ function readLocalAppType(cwd, file) {
10628
10715
  if (!existsSync9(manifestPath))
10629
10716
  return null;
10630
10717
  try {
10631
- const obj = parseYaml7(readFileSync13(manifestPath, "utf8"));
10718
+ const obj = parseYaml8(readFileSync13(manifestPath, "utf8"));
10632
10719
  return coerceAppType(obj?.deployment?.type);
10633
10720
  } catch {
10634
10721
  return null;
@@ -12670,6 +12757,11 @@ async function runLogs(args, io) {
12670
12757
  }
12671
12758
  try {
12672
12759
  const cfg = loadConfig();
12760
+ const status = await fetchDeploymentStatusBestEffort(cfg, slug);
12761
+ if (status?.origin === "dispatch") {
12762
+ renderDispatchNotice(slug, status, io);
12763
+ return 0;
12764
+ }
12673
12765
  const r = await apiJson(cfg, {
12674
12766
  path: `/apps/${slug}/deployments`
12675
12767
  });
@@ -12705,6 +12797,15 @@ async function runLogs(args, io) {
12705
12797
  return 1;
12706
12798
  }
12707
12799
  }
12800
+ function renderDispatchNotice(slug, status, io) {
12801
+ io.out(`launchpad logs: ${slug} runs on Workers dispatch, and logs only covers Cloudflare Pages apps today.`);
12802
+ io.out(` Run \`launchpad status ${slug}\` for the delivery stage and outcome.`);
12803
+ const runUrl = status.v2?.runUrl;
12804
+ if (runUrl !== undefined)
12805
+ io.out(` Latest build run: ${runUrl}`);
12806
+ else
12807
+ io.out(" The build runs as GitHub Actions in the app repo; `launchpad status` links the run when there is one.");
12808
+ }
12708
12809
  function parseArgs7(args) {
12709
12810
  let slug = null;
12710
12811
  let lines = DEFAULT_LINES;
@@ -13992,7 +14093,7 @@ async function runPull(args, io) {
13992
14093
  includeManifest: true
13993
14094
  });
13994
14095
  if (state.manifestYaml === null || state.manifestYaml === undefined) {
13995
- const live = await fetchLiveDeploymentBestEffort(cfg, parsed.slug);
14096
+ const live = await fetchDeploymentStatusBestEffort(cfg, parsed.slug);
13996
14097
  if (live?.liveDeployment != null && (live.liveDeployment.buildStatus === "success" || live.lastSuccessfulDeployment != null)) {
13997
14098
  io.err(`launchpad pull: no platform-tracked manifest for "${parsed.slug}", ` + `but the app HAS live content (last deployment ${live.liveDeployment.createdOn} ` + `via ${live.liveDeployment.trigger === "git-push" ? "git push" : live.liveDeployment.trigger}, ` + `build ${live.liveDeployment.buildStatus}).`);
13998
14099
  io.err(` This app deploys outside \`launchpad deploy\`, so there is no manifest to pull. ` + `Run \`launchpad status ${parsed.slug}\` for the live deployment detail.`);
@@ -14034,13 +14135,6 @@ async function runPull(args, io) {
14034
14135
  return 1;
14035
14136
  }
14036
14137
  }
14037
- async function fetchLiveDeploymentBestEffort(cfg, slug) {
14038
- try {
14039
- return await fetchDeploymentStatus(cfg, slug);
14040
- } catch {
14041
- return null;
14042
- }
14043
- }
14044
14138
  function parseArgs10(args, cwd = process.cwd(), warn) {
14045
14139
  let slug = null;
14046
14140
  let out = null;
@@ -15256,7 +15350,7 @@ function renderManifestError5(result, io) {
15256
15350
  // src/secrets/set.ts
15257
15351
  import { existsSync as existsSync14, readFileSync as readFileSync19 } from "node:fs";
15258
15352
  import { resolve as resolvePath6 } from "node:path";
15259
- import { parse as parseYaml8 } from "yaml";
15353
+ import { parse as parseYaml9 } from "yaml";
15260
15354
  var CELL_LABEL2 = {
15261
15355
  present: "PRESENT",
15262
15356
  missing: "MISSING",
@@ -15271,7 +15365,7 @@ function loadSet(fleetFile, setName, io) {
15271
15365
  }
15272
15366
  let obj;
15273
15367
  try {
15274
- obj = parseYaml8(readFileSync19(path15, "utf8"));
15368
+ obj = parseYaml9(readFileSync19(path15, "utf8"));
15275
15369
  } catch (e) {
15276
15370
  io.err(`✗ ${path15}`);
15277
15371
  io.err(` YAML parse error: ${e instanceof Error ? e.message : String(e)}`);
@@ -37,6 +37,9 @@ export { MAX_COMPRESSED_TARBALL_BYTES };
37
37
  * with a warning: blocking would stop a registered app's deploy on a registry
38
38
  * blip, and a new app that slips through still meets the bot's Pages capacity
39
39
  * refusal. Also throws when the converted manifest cannot be saved.
40
+ *
41
+ * A registry blip would otherwise stop a registered app's normal deploy, so the
42
+ * read is retried with a short backoff before failing closed (Lead #1014).
40
43
  */
41
44
  export declare function defaultToDispatch(cwd: string, manifestPath: string, io: CliIo): Promise<void>;
42
45
  /** A new app that only implies Pages and cannot convert to dispatch. Nothing was deployed. */
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AA0EA,OAAO,EAGL,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAY/B,OAAO,EAAa,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAY,MAAM,kBAAkB,CAAC;AASjE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE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B,CAAC,KAAK,EAAE;IACvC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;CACrD,GAAG,OAAO,CAIV;AAED,wBAAgB,uBAAuB,CACrC,cAAc,EAAE,OAAO,EACvB,UAAU,GAAE,OAAO,GAAG,SAAqB,GAC1C,MAAM,CAOR"}
@@ -1 +1 @@
1
- {"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/commands/logs.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAY,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAa,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAI9D,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAC;AAEF,UAAU,QAAQ;IAChB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AA+ED,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,QAAQ,GAAG,IAAI,CA0BlE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,SAAS,iBAAiB,EAAE,EACzC,EAAE,EAAE,KAAK,GACR,IAAI,CA+BN"}
1
+ {"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/commands/logs.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAa,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAI9D,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAC;AAEF,UAAU,QAAQ;IAChB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AA8FD,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,QAAQ,GAAG,IAAI,CA0BlE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,SAAS,iBAAiB,EAAE,EACzC,EAAE,EAAE,KAAK,GACR,IAAI,CA+BN"}
@@ -1 +1 @@
1
- {"version":3,"file":"pull.d.ts","sourceRoot":"","sources":["../../src/commands/pull.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAGjE,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAC;AAEF,UAAU,QAAQ;IAChB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,oFAAoF;IACpF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B;AAmJD,4EAA4E;AAC5E,wBAAgB,SAAS,CACvB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,GAAE,MAAsB,EAC3B,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC5B,QAAQ,GAAG,MAAM,CA6EnB"}
1
+ {"version":3,"file":"pull.d.ts","sourceRoot":"","sources":["../../src/commands/pull.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAGjE,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAC;AAEF,UAAU,QAAQ;IAChB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,oFAAoF;IACpF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B;AAoID,4EAA4E;AAC5E,wBAAgB,SAAS,CACvB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,GAAE,MAAsB,EAC3B,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC5B,QAAQ,GAAG,MAAM,CA6EnB"}
@@ -69,6 +69,10 @@ export interface StandingExceptionView {
69
69
  * propagate.
70
70
  */
71
71
  export declare function fetchStandingExceptions(cfg: CliConfig, slug: string, fetcher?: typeof fetch): Promise<readonly StandingExceptionView[] | null>;
72
+ /** Read the live deployment state, best-effort: any failure (old bot,
73
+ * transient error, auth) returns null. For callers that only use it to
74
+ * sharpen a message and must never fail because of it (pull, logs). */
75
+ export declare function fetchDeploymentStatusBestEffort(cfg: CliConfig, slug: string): Promise<DeploymentStatusView | null>;
72
76
  /**
73
77
  * Fetch the live deployment status. Returns `null` when the bot
74
78
  * pre-dates the endpoint (404) or the response doesn't carry the
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-status.d.ts","sourceRoot":"","sources":["../../src/deploy/deployment-status.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,KAAK,GAAG,SAAS,CAAC;AAC/D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,U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
+ {"version":3,"file":"dry-run.d.ts","sourceRoot":"","sources":["../../src/deploy/dry-run.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,CAAC;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AAgBD,wBAAsB,eAAe,CACnC,IAAI,EAAE,aAAa,EACnB,EAAE,EAAE,KAAK,EACT,IAAI,GAAE,UAAe,GACpB,OAAO,CAAC,QAAQ,CAAC,CAmEnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/http/api-client.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAgB9C,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,E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AQ,CAAC,CAkGnB"}
@@ -18,6 +18,10 @@ export interface StructuredErrorEnvelope {
18
18
  readonly endpoint: string;
19
19
  readonly code: string;
20
20
  readonly message: string;
21
+ /** The server's own `message`, when it sent one (absent for bare `{error}` bodies). */
22
+ readonly serverMessage?: string;
23
+ /** Machine-readable sub-code (e.g. `insufficient-role` on a 403), when sent. */
24
+ readonly reason?: string;
21
25
  readonly legacyError?: string;
22
26
  readonly source?: string;
23
27
  readonly sourceSha?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"error-envelope.d.ts","sourceRoot":"","sources":["../../src/http/error-envelope.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,QAAQ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0";
1
+ export declare const CLI_VERSION = "0.69.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.67.0",
3
+ "version": "0.69.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, then the dispatch delivery (or, for a legacy Pages app, 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.67.0
4
+ version: 0.69.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -364,9 +364,9 @@ Once you've shipped first content, the daily-use verbs are:
364
364
  - **`launchpad logs --slug <slug>`** - Pages apps only: recent
365
365
  Cloudflare Pages deployment history (default 10 entries, max 25 via
366
366
  `--lines`). Note: the slug is flag-only, not positional. A dispatch
367
- app has no Pages deployment history, so `logs` errors there; use
368
- `launchpad status`, which shows the refusal reason and, when there
369
- is one, the GitHub Actions run URL.
367
+ app has no Pages deployment history, so `logs` just says so and
368
+ points at `launchpad status`, which shows the delivery stage, any
369
+ refusal reason and, when there is one, the GitHub Actions run URL.
370
370
  - **`launchpad rollback`** — revert manifest to a prior git SHA +
371
371
  re-apply.
372
372
 
@@ -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.67.0
4
+ version: 0.69.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.67.0
4
+ version: 0.69.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.67.0
4
+ version: 0.69.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 the app's server code (functions/ on a react+api app, compiled into its Worker on dispatch, or a Pages Function on a legacy Pages app), 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.67.0
4
+ version: 0.69.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -71,7 +71,8 @@ A dispatch `static` or `react` app **cannot ship functions**.
71
71
  `launchpad migrate` and the first-deploy conversion refuse a `functions/`
72
72
  directory on those types, and on an app that is already on dispatch the
73
73
  build only compiles `functions/` for `react+api`, so a `functions/` tree
74
- added to a static or React app ships but never runs (`/api/me` 404s). If a
74
+ added to a static or React app ships but never runs (`/api/me` 404s).
75
+ `launchpad deploy` warns when it sees one, but does not stop the deploy. If a
75
76
  static or React app needs the signed-in user:
76
77
 
77
78
  - **New app:** scaffold it as `react+api` (`launchpad init --type
@@ -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.67.0
4
+ version: 0.69.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.67.0
4
+ version: 0.69.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: Safely refresh a Launchpad clone, show manifest drift, or read the deployed manifest. Wraps bare `launchpad pull` for source sync, `launchpad pull --manifest` for deployed YAML, and `launchpad status` for drift. Use for "sync my clone", "what's deployed", "show drift", "/launchpad-status", "/launchpad-pull", or post-deploy verification.
4
- version: 0.67.0
4
+ version: 0.69.0
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->