@m-kopa/launchpad-cli 0.68.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 +12 -0
- package/dist/bundle/orchestrate.d.ts +2 -0
- package/dist/bundle/orchestrate.d.ts.map +1 -1
- package/dist/cli.js +106 -30
- package/dist/commands/deploy.d.ts +3 -0
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/logs.d.ts.map +1 -1
- package/dist/commands/pull.d.ts.map +1 -1
- package/dist/deploy/deployment-status.d.ts +4 -0
- package/dist/deploy/deployment-status.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/skills/launchpad-content-pr/SKILL.md +4 -4
- 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 +3 -2
- 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,18 @@ 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
|
+
|
|
9
21
|
## 0.68.0 - 2026-10-05
|
|
10
22
|
|
|
11
23
|
### Fixed
|
|
@@ -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;
|
|
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;AAOtE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;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AC,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.
|
|
22
|
+
var CLI_VERSION = "0.69.0";
|
|
23
23
|
|
|
24
24
|
// src/config.ts
|
|
25
25
|
import { readFileSync } from "node:fs";
|
|
@@ -4894,6 +4894,17 @@ function newAppOrigin(appType, requested) {
|
|
|
4894
4894
|
return;
|
|
4895
4895
|
return requested ?? "dispatch";
|
|
4896
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
|
+
}
|
|
4897
4908
|
// src/bundle/boundary.ts
|
|
4898
4909
|
var MAX_CONTENT_PROBE_BYTES = 1024 * 1024;
|
|
4899
4910
|
function applyBoundaryToFiles(args) {
|
|
@@ -4974,6 +4985,7 @@ ${lines}`
|
|
|
4974
4985
|
}
|
|
4975
4986
|
|
|
4976
4987
|
// src/bundle/orchestrate.ts
|
|
4988
|
+
import { parse as parseYaml3 } from "yaml";
|
|
4977
4989
|
async function bundleAndDeploy(args) {
|
|
4978
4990
|
const { cfg, cwd, slug, overrideStale, allowUnguarded = false } = args;
|
|
4979
4991
|
const manifestPath = join7(cwd, "launchpad.yaml");
|
|
@@ -5003,6 +5015,9 @@ async function bundleAndDeploy(args) {
|
|
|
5003
5015
|
return { kind: "boundary-error", message: boundary.message };
|
|
5004
5016
|
}
|
|
5005
5017
|
const bundleFiles = boundary.files;
|
|
5018
|
+
const functionsWarning = dispatchFunctionsWarning(manifestYaml, bundleFiles);
|
|
5019
|
+
if (functionsWarning !== null)
|
|
5020
|
+
args.onWarning?.(functionsWarning);
|
|
5006
5021
|
let packResult;
|
|
5007
5022
|
try {
|
|
5008
5023
|
packResult = await packTarGz(cwd, bundleFiles);
|
|
@@ -5039,6 +5054,17 @@ async function bundleAndDeploy(args) {
|
|
|
5039
5054
|
boundaryWarnings: boundary.warnings
|
|
5040
5055
|
};
|
|
5041
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
|
+
}
|
|
5042
5068
|
|
|
5043
5069
|
// src/deploy/verify-deploy.ts
|
|
5044
5070
|
import { readFileSync as readFileSync10, existsSync as existsSync4 } from "node:fs";
|
|
@@ -5073,6 +5099,13 @@ async function fetchStandingExceptions(cfg, slug, fetcher = fetch) {
|
|
|
5073
5099
|
return null;
|
|
5074
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");
|
|
5075
5101
|
}
|
|
5102
|
+
async function fetchDeploymentStatusBestEffort(cfg, slug) {
|
|
5103
|
+
try {
|
|
5104
|
+
return await fetchDeploymentStatus(cfg, slug);
|
|
5105
|
+
} catch {
|
|
5106
|
+
return null;
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5076
5109
|
async function fetchDeploymentStatus(cfg, slug, fetcher = fetch) {
|
|
5077
5110
|
let raw;
|
|
5078
5111
|
try {
|
|
@@ -5403,7 +5436,7 @@ async function fetchManifestState(cfg, slug, opts = {}, fetcher = fetch) {
|
|
|
5403
5436
|
// src/commands/infer-slug.ts
|
|
5404
5437
|
import * as path7 from "node:path";
|
|
5405
5438
|
import { existsSync as existsSync3, readFileSync as readFileSync6 } from "node:fs";
|
|
5406
|
-
import { parse as
|
|
5439
|
+
import { parse as parseYaml4 } from "yaml";
|
|
5407
5440
|
var DIRNAME_RE = /^launchpad-app-([a-z0-9][a-z0-9-]*[a-z0-9])$/;
|
|
5408
5441
|
function inferSlugFromCwd(cwd) {
|
|
5409
5442
|
const base = path7.basename(cwd);
|
|
@@ -5425,7 +5458,7 @@ function inferSlugFromManifestFile(manifestPath) {
|
|
|
5425
5458
|
if (!existsSync3(manifestPath))
|
|
5426
5459
|
return null;
|
|
5427
5460
|
try {
|
|
5428
|
-
return resolveManifestSlug(
|
|
5461
|
+
return resolveManifestSlug(parseYaml4(readFileSync6(manifestPath, "utf8")));
|
|
5429
5462
|
} catch {
|
|
5430
5463
|
return null;
|
|
5431
5464
|
}
|
|
@@ -6193,7 +6226,7 @@ still provisioning after the watch window — re-run \`launchpad watch ${slug}\`
|
|
|
6193
6226
|
|
|
6194
6227
|
// src/manifest/load.ts
|
|
6195
6228
|
import { readFileSync as readFileSync8 } from "node:fs";
|
|
6196
|
-
import { parse as
|
|
6229
|
+
import { parse as parseYaml5, YAMLParseError } from "yaml";
|
|
6197
6230
|
function loadManifest(path8) {
|
|
6198
6231
|
let raw;
|
|
6199
6232
|
try {
|
|
@@ -6222,7 +6255,7 @@ function loadManifestAnyVersion(path8) {
|
|
|
6222
6255
|
function parseManifestAnyVersion(yamlText, path8) {
|
|
6223
6256
|
let parsed;
|
|
6224
6257
|
try {
|
|
6225
|
-
parsed =
|
|
6258
|
+
parsed = parseYaml5(yamlText);
|
|
6226
6259
|
} catch (err) {
|
|
6227
6260
|
const message = err instanceof YAMLParseError ? err.message : err.message ?? String(err);
|
|
6228
6261
|
return { kind: "yaml-parse-error", path: path8, message };
|
|
@@ -6251,7 +6284,7 @@ function parseManifestAnyVersion(yamlText, path8) {
|
|
|
6251
6284
|
function parseManifest2(yamlText, path8) {
|
|
6252
6285
|
let parsed;
|
|
6253
6286
|
try {
|
|
6254
|
-
parsed =
|
|
6287
|
+
parsed = parseYaml5(yamlText);
|
|
6255
6288
|
} catch (err) {
|
|
6256
6289
|
const message = err instanceof YAMLParseError ? err.message : err.message ?? String(err);
|
|
6257
6290
|
return { kind: "yaml-parse-error", path: path8, message };
|
|
@@ -7462,7 +7495,7 @@ async function verifyFirstDeployServed(args, liveUrl, io, deps) {
|
|
|
7462
7495
|
}
|
|
7463
7496
|
|
|
7464
7497
|
// src/commands/deploy.ts
|
|
7465
|
-
import { parse as
|
|
7498
|
+
import { parse as parseYaml7 } from "yaml";
|
|
7466
7499
|
import { readFileSync as readFileSync12 } from "node:fs";
|
|
7467
7500
|
|
|
7468
7501
|
// src/deploy/git-files.ts
|
|
@@ -7523,7 +7556,7 @@ function runGit2(sp, cwd, args) {
|
|
|
7523
7556
|
}
|
|
7524
7557
|
|
|
7525
7558
|
// src/deploy/manifest-diff.ts
|
|
7526
|
-
import { parse as
|
|
7559
|
+
import { parse as parseYaml6 } from "yaml";
|
|
7527
7560
|
var MASK = "«redacted»";
|
|
7528
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;
|
|
7529
7562
|
function isSecretPath(path8) {
|
|
@@ -7614,7 +7647,7 @@ function diffManifests(localYaml, deployedYaml) {
|
|
|
7614
7647
|
let local;
|
|
7615
7648
|
let deployed;
|
|
7616
7649
|
try {
|
|
7617
|
-
local =
|
|
7650
|
+
local = parseYaml6(localYaml);
|
|
7618
7651
|
} catch (e) {
|
|
7619
7652
|
return {
|
|
7620
7653
|
inSync: false,
|
|
@@ -7623,7 +7656,7 @@ function diffManifests(localYaml, deployedYaml) {
|
|
|
7623
7656
|
};
|
|
7624
7657
|
}
|
|
7625
7658
|
try {
|
|
7626
|
-
deployed =
|
|
7659
|
+
deployed = parseYaml6(deployedYaml);
|
|
7627
7660
|
} catch (e) {
|
|
7628
7661
|
return {
|
|
7629
7662
|
inSync: false,
|
|
@@ -10105,7 +10138,7 @@ async function runModelADeploy(args) {
|
|
|
10105
10138
|
return 1;
|
|
10106
10139
|
}
|
|
10107
10140
|
try {
|
|
10108
|
-
const manifestObj =
|
|
10141
|
+
const manifestObj = parseYaml7(readFileSync12(manifestPath, "utf8"));
|
|
10109
10142
|
const metaSlug = resolveManifestSlug(manifestObj);
|
|
10110
10143
|
if (metaSlug === null) {
|
|
10111
10144
|
io.err(`launchpad deploy: launchpad.yaml is missing metadata.slug (v2) / metadata.name (v1). ` + `Run \`launchpad init\` again to regenerate the manifest.`);
|
|
@@ -10185,6 +10218,14 @@ async function runModelADeploy(args) {
|
|
|
10185
10218
|
} catch {}
|
|
10186
10219
|
const deployContext = await readDeploymentContext(realCommitWaitDeps(cfg), slug);
|
|
10187
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);
|
|
10188
10229
|
let result;
|
|
10189
10230
|
try {
|
|
10190
10231
|
if (args.allowUnguarded) {
|
|
@@ -10195,7 +10236,8 @@ async function runModelADeploy(args) {
|
|
|
10195
10236
|
cfg,
|
|
10196
10237
|
slug,
|
|
10197
10238
|
overrideStale: args.overrideStale,
|
|
10198
|
-
allowUnguarded: args.allowUnguarded
|
|
10239
|
+
allowUnguarded: args.allowUnguarded,
|
|
10240
|
+
onWarning
|
|
10199
10241
|
});
|
|
10200
10242
|
if (result.kind === "upload-error" && result.status === 409 && result.body.error === "main_advanced") {
|
|
10201
10243
|
io.out("Managed main advanced during validation; recomputing and retrying once ...");
|
|
@@ -10204,7 +10246,8 @@ async function runModelADeploy(args) {
|
|
|
10204
10246
|
cfg,
|
|
10205
10247
|
slug,
|
|
10206
10248
|
overrideStale: args.overrideStale,
|
|
10207
|
-
allowUnguarded: args.allowUnguarded
|
|
10249
|
+
allowUnguarded: args.allowUnguarded,
|
|
10250
|
+
onWarning
|
|
10208
10251
|
});
|
|
10209
10252
|
}
|
|
10210
10253
|
if (args.rebaseOntoHead && result.kind === "upload-error" && result.status === 409 && isStaleBlock(result.body)) {
|
|
@@ -10212,7 +10255,7 @@ async function runModelADeploy(args) {
|
|
|
10212
10255
|
if (typeof head === "string" && isValidBaseSha(head)) {
|
|
10213
10256
|
await writeBaseShaMarker(cwd, head);
|
|
10214
10257
|
io.out(`Re-stamped base revision to current head ${head.slice(0, 12)}; retrying deploy …`);
|
|
10215
|
-
result = await bundleAndDeploy({ cwd, cfg, slug });
|
|
10258
|
+
result = await bundleAndDeploy({ cwd, cfg, slug, onWarning });
|
|
10216
10259
|
} else {
|
|
10217
10260
|
io.err("launchpad deploy: --rebase-onto-head could not read a head SHA from the block; run `launchpad pull` and retry.");
|
|
10218
10261
|
return 1;
|
|
@@ -10379,7 +10422,7 @@ async function runModelADeploy(args) {
|
|
|
10379
10422
|
if (success.status === "provisioning_started") {
|
|
10380
10423
|
const submissionId = typeof success.submissionId === "string" ? success.submissionId : "(missing)";
|
|
10381
10424
|
const echoedAppType = typeof success.appType === "string" ? success.appType : "(missing)";
|
|
10382
|
-
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.";
|
|
10383
10426
|
if (success.mode === "container_redeploy") {
|
|
10384
10427
|
io.out(`✓ Container redeploy started for ${slug}`);
|
|
10385
10428
|
io.out(` submission: ${submissionId}`);
|
|
@@ -10436,7 +10479,7 @@ async function runModelADeploy(args) {
|
|
|
10436
10479
|
io.out(` ${result.walk.skipped.length} entries skipped (.gitignore / default-ignore / symlink)`);
|
|
10437
10480
|
}
|
|
10438
10481
|
if (typeof success.message === "string") {
|
|
10439
|
-
io.out(` ${success.message}`);
|
|
10482
|
+
io.out(` ${botMessage(success.message)}`);
|
|
10440
10483
|
}
|
|
10441
10484
|
surfaceDeployExtras(success, io, slug, args.allowStale);
|
|
10442
10485
|
io.out("");
|
|
@@ -10478,7 +10521,7 @@ async function defaultToDispatch(cwd, manifestPath, io) {
|
|
|
10478
10521
|
if (!impliesPagesForGateway(fields))
|
|
10479
10522
|
return;
|
|
10480
10523
|
try {
|
|
10481
|
-
const result = await
|
|
10524
|
+
const result = await convertWithRegistryRetry(cwd);
|
|
10482
10525
|
if (result.kind === "converted")
|
|
10483
10526
|
reportConversion(io, result.secrets, result.plainSecretLike);
|
|
10484
10527
|
} catch (e) {
|
|
@@ -10493,6 +10536,32 @@ async function defaultToDispatch(cwd, manifestPath, io) {
|
|
|
10493
10536
|
throw new DispatchIneligibleError(describe17(e), fields.v2 === true);
|
|
10494
10537
|
}
|
|
10495
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
|
+
}
|
|
10496
10565
|
|
|
10497
10566
|
class DispatchIneligibleError extends Error {
|
|
10498
10567
|
constructor(reason, v2) {
|
|
@@ -10512,7 +10581,7 @@ function impliesPagesForGateway(fields) {
|
|
|
10512
10581
|
function originFields(manifestPath) {
|
|
10513
10582
|
let raw;
|
|
10514
10583
|
try {
|
|
10515
|
-
raw =
|
|
10584
|
+
raw = parseYaml7(readFileSync12(manifestPath, "utf8")) ?? {};
|
|
10516
10585
|
} catch {
|
|
10517
10586
|
return {};
|
|
10518
10587
|
}
|
|
@@ -10567,7 +10636,7 @@ function pendingReconcileOutcome(body) {
|
|
|
10567
10636
|
// src/commands/redeploy.ts
|
|
10568
10637
|
import { existsSync as existsSync9, readFileSync as readFileSync13 } from "node:fs";
|
|
10569
10638
|
import { resolve as resolvePath2 } from "node:path";
|
|
10570
|
-
import { parse as
|
|
10639
|
+
import { parse as parseYaml8 } from "yaml";
|
|
10571
10640
|
var SLUG_RE6 = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
10572
10641
|
var DEFAULT_VERIFY_TIMEOUT_MS = 180000;
|
|
10573
10642
|
var redeployCommand = {
|
|
@@ -10646,7 +10715,7 @@ function readLocalAppType(cwd, file) {
|
|
|
10646
10715
|
if (!existsSync9(manifestPath))
|
|
10647
10716
|
return null;
|
|
10648
10717
|
try {
|
|
10649
|
-
const obj =
|
|
10718
|
+
const obj = parseYaml8(readFileSync13(manifestPath, "utf8"));
|
|
10650
10719
|
return coerceAppType(obj?.deployment?.type);
|
|
10651
10720
|
} catch {
|
|
10652
10721
|
return null;
|
|
@@ -12688,6 +12757,11 @@ async function runLogs(args, io) {
|
|
|
12688
12757
|
}
|
|
12689
12758
|
try {
|
|
12690
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
|
+
}
|
|
12691
12765
|
const r = await apiJson(cfg, {
|
|
12692
12766
|
path: `/apps/${slug}/deployments`
|
|
12693
12767
|
});
|
|
@@ -12723,6 +12797,15 @@ async function runLogs(args, io) {
|
|
|
12723
12797
|
return 1;
|
|
12724
12798
|
}
|
|
12725
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
|
+
}
|
|
12726
12809
|
function parseArgs7(args) {
|
|
12727
12810
|
let slug = null;
|
|
12728
12811
|
let lines = DEFAULT_LINES;
|
|
@@ -14010,7 +14093,7 @@ async function runPull(args, io) {
|
|
|
14010
14093
|
includeManifest: true
|
|
14011
14094
|
});
|
|
14012
14095
|
if (state.manifestYaml === null || state.manifestYaml === undefined) {
|
|
14013
|
-
const live = await
|
|
14096
|
+
const live = await fetchDeploymentStatusBestEffort(cfg, parsed.slug);
|
|
14014
14097
|
if (live?.liveDeployment != null && (live.liveDeployment.buildStatus === "success" || live.lastSuccessfulDeployment != null)) {
|
|
14015
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}).`);
|
|
14016
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.`);
|
|
@@ -14052,13 +14135,6 @@ async function runPull(args, io) {
|
|
|
14052
14135
|
return 1;
|
|
14053
14136
|
}
|
|
14054
14137
|
}
|
|
14055
|
-
async function fetchLiveDeploymentBestEffort(cfg, slug) {
|
|
14056
|
-
try {
|
|
14057
|
-
return await fetchDeploymentStatus(cfg, slug);
|
|
14058
|
-
} catch {
|
|
14059
|
-
return null;
|
|
14060
|
-
}
|
|
14061
|
-
}
|
|
14062
14138
|
function parseArgs10(args, cwd = process.cwd(), warn) {
|
|
14063
14139
|
let slug = null;
|
|
14064
14140
|
let out = null;
|
|
@@ -15274,7 +15350,7 @@ function renderManifestError5(result, io) {
|
|
|
15274
15350
|
// src/secrets/set.ts
|
|
15275
15351
|
import { existsSync as existsSync14, readFileSync as readFileSync19 } from "node:fs";
|
|
15276
15352
|
import { resolve as resolvePath6 } from "node:path";
|
|
15277
|
-
import { parse as
|
|
15353
|
+
import { parse as parseYaml9 } from "yaml";
|
|
15278
15354
|
var CELL_LABEL2 = {
|
|
15279
15355
|
present: "PRESENT",
|
|
15280
15356
|
missing: "MISSING",
|
|
@@ -15289,7 +15365,7 @@ function loadSet(fleetFile, setName, io) {
|
|
|
15289
15365
|
}
|
|
15290
15366
|
let obj;
|
|
15291
15367
|
try {
|
|
15292
|
-
obj =
|
|
15368
|
+
obj = parseYaml9(readFileSync19(path15, "utf8"));
|
|
15293
15369
|
} catch (e) {
|
|
15294
15370
|
io.err(`✗ ${path15}`);
|
|
15295
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,CAAC;AAEjD,eAAO,MAAM,aAAa,EAAE,OAI3B,CAAC;AAEF,UAAU,UAAU;IAClB,6BAA6B;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,O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AE,MAAM,EAAE,EAAE,EAAE,OAAO;CAQxC;AAwCD,2EAA2E;AAC3E;+EAC+E;AAC/E,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAE9D,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,cAAc,CAG/E;AAED;;;4EAG4E;AAC5E,wBAAgB,iBAAiB,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":"
|
|
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":"
|
|
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,UAAU,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAClE,MAAM,MAAM,eAAe,GACvB,WAAW,GACX,UAAU,GACV,UAAU,GACV,WAAW,GACX,MAAM,GACN,QAAQ,CAAC;AACb,MAAM,MAAM,aAAa,GACrB,OAAO,GACP,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,UAAU,GACV,MAAM,GACN,QAAQ,CAAC;AAEb,qEAAqE;AACrE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAC;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,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ACnD,yEAAyE;IACzE,QAAQ,CAAC,wBAAwB,EAAE;QACjC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B,GAAG,IAAI,CAAC;IACT;;;qDAGiD;IACjD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED;;;wEAGwE;AACxE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,OAAO,KAAa,GAC5B,OAAO,CAAC,SAAS,qBAAqB,EAAE,GAAG,IAAI,CAAC,CAsBlD;AAED;;wEAEwE;AACxE,wBAAsB,+BAA+B,CACnD,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAMtC;AAED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,OAAO,KAAa,GAC5B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CA8BtC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.
|
|
1
|
+
export declare const CLI_VERSION = "0.69.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, 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.
|
|
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`
|
|
368
|
-
`launchpad status`, which shows the
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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).
|
|
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.
|
|
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.
|
|
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.
|
|
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) -->
|