@m-kopa/launchpad-cli 0.38.1 → 0.39.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 +25 -0
- package/dist/cli.js +187 -13
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/redeploy.d.ts +3 -3
- package/dist/commands/redeploy.d.ts.map +1 -1
- package/dist/deploy/commit-match-settle.d.ts +77 -0
- package/dist/deploy/commit-match-settle.d.ts.map +1 -0
- package/dist/deploy/redact-diagnostic.d.ts +6 -0
- package/dist/deploy/redact-diagnostic.d.ts.map +1 -0
- package/dist/deploy/verify-deploy.d.ts +30 -2
- package/dist/deploy/verify-deploy.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/skills/launchpad-content-pr/SKILL.md +1 -1
- package/skills/launchpad-deploy/SKILL.md +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 +1 -1
- package/skills/launchpad-status/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,31 @@ 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.39.0 — 2026-06-20
|
|
10
|
+
|
|
11
|
+
Feature (sp-bld9kq, PS-1590): `launchpad deploy` now confirms a Cloudflare
|
|
12
|
+
deployment built from the **exact commit you just pushed** actually went live —
|
|
13
|
+
not merely that *some* build succeeded. This closes a silent-failure class where
|
|
14
|
+
a commit landed but triggered **no build at all** (e.g. the app's
|
|
15
|
+
Cloudflare↔GitHub connection was broken) and the deploy reported a false green
|
|
16
|
+
against the stale, still-serving old build (the ai-audit incident).
|
|
17
|
+
|
|
18
|
+
- Snapshots the live deployment **before** committing, then requires the live
|
|
19
|
+
deployment to advance to your commit's SHA before reporting success.
|
|
20
|
+
- New outcome **`✗ NO NEW DEPLOYMENT WAS CREATED for your commit.`** (exit `69`)
|
|
21
|
+
when no deployment registers for your commit within the registration window —
|
|
22
|
+
it can't be self-fixed from the CLI (needs a platform admin); the message
|
|
23
|
+
routes you to `launchpad status` + `launchpad bug`.
|
|
24
|
+
- Two new soft (exit `0`) outcomes: *no deployment registered yet* (slow queue /
|
|
25
|
+
short timeout) and *superseded* (a concurrent deploy of a different commit
|
|
26
|
+
went live).
|
|
27
|
+
- New `--registration-bound=<seconds>` flag (default `120`) to extend the wait
|
|
28
|
+
for slow-to-register builds.
|
|
29
|
+
- Build-failure diagnostics (`logExcerpt`) are now **bounded and redacted** —
|
|
30
|
+
Cloudflare build logs can echo secret values.
|
|
31
|
+
- `launchpad redeploy` keeps its existing verification (it rebuilds the current
|
|
32
|
+
commit, so commit-SHA matching doesn't apply) — unchanged.
|
|
33
|
+
|
|
9
34
|
## 0.38.1 — 2026-06-19
|
|
10
35
|
|
|
11
36
|
Fix (sp-rpt9kd): `launchpad bug` / `launchpad feature` no longer truncate an
|
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.39.0";
|
|
23
23
|
|
|
24
24
|
// src/config.ts
|
|
25
25
|
import * as os from "node:os";
|
|
@@ -3657,8 +3657,83 @@ async function fetchDeploymentStatus(cfg, slug, fetcher = fetch) {
|
|
|
3657
3657
|
};
|
|
3658
3658
|
}
|
|
3659
3659
|
|
|
3660
|
-
// src/deploy/
|
|
3660
|
+
// src/deploy/commit-match-settle.ts
|
|
3661
|
+
var DEFAULT_REGISTRATION_BOUND_MS = 120000;
|
|
3661
3662
|
var DEFAULT_POLL_INTERVAL_MS = 5000;
|
|
3663
|
+
function realCommitWaitDeps(cfg) {
|
|
3664
|
+
return {
|
|
3665
|
+
fetchStatus: (slug) => fetchDeploymentStatus(cfg, slug),
|
|
3666
|
+
sleep: (ms) => new Promise((r) => setTimeout(r, ms)),
|
|
3667
|
+
now: () => Date.now()
|
|
3668
|
+
};
|
|
3669
|
+
}
|
|
3670
|
+
function shaMatches(a, b) {
|
|
3671
|
+
if (!a || !b)
|
|
3672
|
+
return false;
|
|
3673
|
+
const x = a.toLowerCase();
|
|
3674
|
+
const y = b.toLowerCase();
|
|
3675
|
+
const n = Math.min(x.length, y.length);
|
|
3676
|
+
if (n < 7)
|
|
3677
|
+
return x === y;
|
|
3678
|
+
return x.slice(0, n) === y.slice(0, n);
|
|
3679
|
+
}
|
|
3680
|
+
async function readDeploymentBaseline(deps, slug) {
|
|
3681
|
+
let status;
|
|
3682
|
+
try {
|
|
3683
|
+
status = await deps.fetchStatus(slug);
|
|
3684
|
+
} catch {
|
|
3685
|
+
return null;
|
|
3686
|
+
}
|
|
3687
|
+
if (status === null || !status.supported || status.liveDeployment === null)
|
|
3688
|
+
return null;
|
|
3689
|
+
const live = status.liveDeployment;
|
|
3690
|
+
return {
|
|
3691
|
+
id: live.id,
|
|
3692
|
+
commitHash: live.commit?.hash ?? null,
|
|
3693
|
+
createdOn: live.createdOn
|
|
3694
|
+
};
|
|
3695
|
+
}
|
|
3696
|
+
async function waitForCommitDeployment(args, deps) {
|
|
3697
|
+
const pollIntervalMs = args.pollIntervalMs ?? DEFAULT_POLL_INTERVAL_MS;
|
|
3698
|
+
const start = deps.now();
|
|
3699
|
+
const baselineId = args.baseline?.id ?? null;
|
|
3700
|
+
let matchedInProgress = false;
|
|
3701
|
+
for (;; ) {
|
|
3702
|
+
let status;
|
|
3703
|
+
try {
|
|
3704
|
+
status = await deps.fetchStatus(args.slug);
|
|
3705
|
+
} catch {
|
|
3706
|
+
return { kind: "unknown" };
|
|
3707
|
+
}
|
|
3708
|
+
if (status === null)
|
|
3709
|
+
return { kind: "unknown" };
|
|
3710
|
+
if (!status.supported)
|
|
3711
|
+
return { kind: "unsupported" };
|
|
3712
|
+
const live = status.liveDeployment;
|
|
3713
|
+
const elapsed = deps.now() - start;
|
|
3714
|
+
if (live !== null && shaMatches(live.commit?.hash, args.shippedSha)) {
|
|
3715
|
+
if (live.buildStatus === "success") {
|
|
3716
|
+
return { kind: "success", deploymentUrl: live.url };
|
|
3717
|
+
}
|
|
3718
|
+
if (live.buildStatus === "failure") {
|
|
3719
|
+
return { kind: "failure", logExcerpt: live.logExcerpt, failedStage: live.failedStage };
|
|
3720
|
+
}
|
|
3721
|
+
matchedInProgress = true;
|
|
3722
|
+
} else if (args.baseline !== null && live !== null && live.id !== baselineId) {
|
|
3723
|
+
return { kind: "superseded" };
|
|
3724
|
+
} else {
|
|
3725
|
+
if (elapsed >= args.registrationBoundMs)
|
|
3726
|
+
return { kind: "no-new-deployment" };
|
|
3727
|
+
}
|
|
3728
|
+
if (elapsed >= args.settleTimeoutMs) {
|
|
3729
|
+
return matchedInProgress ? { kind: "pending" } : { kind: "not-registered-yet" };
|
|
3730
|
+
}
|
|
3731
|
+
await deps.sleep(pollIntervalMs);
|
|
3732
|
+
}
|
|
3733
|
+
}
|
|
3734
|
+
|
|
3735
|
+
// src/deploy/wait-for-deployment.ts
|
|
3736
|
+
var DEFAULT_POLL_INTERVAL_MS2 = 5000;
|
|
3662
3737
|
function realWaitDeps(cfg) {
|
|
3663
3738
|
return {
|
|
3664
3739
|
fetchStatus: (slug) => fetchDeploymentStatus(cfg, slug),
|
|
@@ -3667,7 +3742,7 @@ function realWaitDeps(cfg) {
|
|
|
3667
3742
|
};
|
|
3668
3743
|
}
|
|
3669
3744
|
async function waitForDeployment(args, deps) {
|
|
3670
|
-
const pollIntervalMs = args.pollIntervalMs ??
|
|
3745
|
+
const pollIntervalMs = args.pollIntervalMs ?? DEFAULT_POLL_INTERVAL_MS2;
|
|
3671
3746
|
const start = deps.now();
|
|
3672
3747
|
for (;; ) {
|
|
3673
3748
|
let status;
|
|
@@ -3746,6 +3821,21 @@ async function verifyServed(args, deps = { fetch }) {
|
|
|
3746
3821
|
};
|
|
3747
3822
|
}
|
|
3748
3823
|
|
|
3824
|
+
// src/deploy/redact-diagnostic.ts
|
|
3825
|
+
var MAX_DIAGNOSTIC_LEN = 600;
|
|
3826
|
+
var SECRET_KV = /\b(secret|secrets?|token|api[_-]?key|access[_-]?key|secret[_-]?key|private[_-]?key|password|passwd|pwd|authorization|auth[_-]?token|bearer|client[_-]?secret|session)\b(\s*[=:]\s*|\s+)(\S+)/gi;
|
|
3827
|
+
var LONG_TOKEN = /[A-Za-z0-9_\-+/.]{28,}={0,2}/g;
|
|
3828
|
+
function redactDiagnostic(text, maxLen = MAX_DIAGNOSTIC_LEN) {
|
|
3829
|
+
if (text === undefined || text === null)
|
|
3830
|
+
return "";
|
|
3831
|
+
let t = text.replace(SECRET_KV, (_m, key, sep2) => `${key}${sep2}***`);
|
|
3832
|
+
t = t.replace(LONG_TOKEN, "***");
|
|
3833
|
+
t = t.trim();
|
|
3834
|
+
if (t.length > maxLen)
|
|
3835
|
+
t = `${t.slice(0, maxLen - 1)}…`;
|
|
3836
|
+
return t;
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3749
3839
|
// src/commands/status.ts
|
|
3750
3840
|
import { readFileSync as readFileSync6 } from "node:fs";
|
|
3751
3841
|
|
|
@@ -4924,6 +5014,7 @@ function isEnoent(e) {
|
|
|
4924
5014
|
|
|
4925
5015
|
// src/deploy/verify-deploy.ts
|
|
4926
5016
|
var VERIFY_MISMATCH_EXIT = 65;
|
|
5017
|
+
var NO_DEPLOYMENT_EXIT = 69;
|
|
4927
5018
|
function readLocalEntrypoint(cwd) {
|
|
4928
5019
|
for (const rel of ["index.html", join8("static", "index.html")]) {
|
|
4929
5020
|
const p = join8(cwd, rel);
|
|
@@ -4933,6 +5024,70 @@ function readLocalEntrypoint(cwd) {
|
|
|
4933
5024
|
return null;
|
|
4934
5025
|
}
|
|
4935
5026
|
function realVerifyDeployDeps(cfg) {
|
|
5027
|
+
return {
|
|
5028
|
+
wait: waitForCommitDeployment,
|
|
5029
|
+
verify: verifyServed,
|
|
5030
|
+
readLocalEntrypoint,
|
|
5031
|
+
waitDeps: realCommitWaitDeps(cfg),
|
|
5032
|
+
verifyDeps: { fetch }
|
|
5033
|
+
};
|
|
5034
|
+
}
|
|
5035
|
+
async function runDeployVerification(args, io, deps) {
|
|
5036
|
+
io.out("");
|
|
5037
|
+
io.out("Verifying a build of your commit went live …");
|
|
5038
|
+
const settle = await deps.wait({
|
|
5039
|
+
slug: args.slug,
|
|
5040
|
+
shippedSha: args.shippedSha,
|
|
5041
|
+
baseline: args.baseline,
|
|
5042
|
+
registrationBoundMs: args.registrationBoundMs,
|
|
5043
|
+
settleTimeoutMs: args.timeoutMs
|
|
5044
|
+
}, deps.waitDeps);
|
|
5045
|
+
switch (settle.kind) {
|
|
5046
|
+
case "unsupported":
|
|
5047
|
+
io.out(" (skipped — this app has no Pages deployment surface)");
|
|
5048
|
+
return 0;
|
|
5049
|
+
case "unknown":
|
|
5050
|
+
io.out(` (couldn't read deployment status — verify manually with \`launchpad status ${args.slug}\`)`);
|
|
5051
|
+
return 0;
|
|
5052
|
+
case "no-new-deployment":
|
|
5053
|
+
io.err("");
|
|
5054
|
+
io.err("✗ NO NEW DEPLOYMENT WAS CREATED for your commit.");
|
|
5055
|
+
io.err(" Your content committed, but no new deployment was created for it");
|
|
5056
|
+
io.err(` within ${Math.round(args.registrationBoundMs / 1000)}s — the Pages build may not have run at all.`);
|
|
5057
|
+
io.err(" This usually means the app's build integration needs attention from a");
|
|
5058
|
+
io.err(" platform admin — it can't be fixed from the CLI.");
|
|
5059
|
+
io.err(` Confirm the live state with \`launchpad status ${args.slug}\`, and report it`);
|
|
5060
|
+
io.err(" with `launchpad bug` if it persists.");
|
|
5061
|
+
return NO_DEPLOYMENT_EXIT;
|
|
5062
|
+
case "superseded":
|
|
5063
|
+
io.out("⚠ Couldn't confirm your commit went live — a newer deployment for a different");
|
|
5064
|
+
io.out(` commit is now the latest. If ${args.slug} was deployed by someone else too, that's`);
|
|
5065
|
+
io.out(` expected. Re-check: \`launchpad status ${args.slug}\``);
|
|
5066
|
+
return 0;
|
|
5067
|
+
case "not-registered-yet":
|
|
5068
|
+
io.out("⏳ No deployment for your commit has registered yet — couldn't verify in time.");
|
|
5069
|
+
io.out(` It may still be queued. Re-check the outcome: \`launchpad status ${args.slug}\``);
|
|
5070
|
+
return 0;
|
|
5071
|
+
case "pending":
|
|
5072
|
+
io.out(`⏳ Your commit's build is still in progress after ${Math.round(args.timeoutMs / 1000)}s — couldn't verify yet.`);
|
|
5073
|
+
io.out(` Re-check the outcome: \`launchpad status ${args.slug}\``);
|
|
5074
|
+
return 0;
|
|
5075
|
+
case "failure":
|
|
5076
|
+
io.err("✗ The Cloudflare Pages build for your commit FAILED — your content is NOT live.");
|
|
5077
|
+
if (settle.failedStage)
|
|
5078
|
+
io.err(` failed stage: ${redactDiagnostic(settle.failedStage)}`);
|
|
5079
|
+
if (settle.logExcerpt) {
|
|
5080
|
+
const safe = redactDiagnostic(settle.logExcerpt);
|
|
5081
|
+
if (safe)
|
|
5082
|
+
io.err(` ${safe}`);
|
|
5083
|
+
}
|
|
5084
|
+
io.err(` Full logs: \`launchpad status ${args.slug}\``);
|
|
5085
|
+
return 1;
|
|
5086
|
+
case "success":
|
|
5087
|
+
return verifySuccess(args, settle.deploymentUrl, io, deps);
|
|
5088
|
+
}
|
|
5089
|
+
}
|
|
5090
|
+
function realRedeployVerifyDeps(cfg) {
|
|
4936
5091
|
return {
|
|
4937
5092
|
wait: waitForDeployment,
|
|
4938
5093
|
verify: verifyServed,
|
|
@@ -4941,7 +5096,7 @@ function realVerifyDeployDeps(cfg) {
|
|
|
4941
5096
|
verifyDeps: { fetch }
|
|
4942
5097
|
};
|
|
4943
5098
|
}
|
|
4944
|
-
async function
|
|
5099
|
+
async function runRedeployVerification(args, io, deps) {
|
|
4945
5100
|
io.out("");
|
|
4946
5101
|
io.out("Verifying the live deployment serves what you shipped …");
|
|
4947
5102
|
const settle = await deps.wait({ slug: args.slug, timeoutMs: args.timeoutMs }, deps.waitDeps);
|
|
@@ -4959,9 +5114,12 @@ async function runDeployVerification(args, io, deps) {
|
|
|
4959
5114
|
case "failure":
|
|
4960
5115
|
io.err("✗ The Cloudflare Pages build FAILED — your content is NOT live.");
|
|
4961
5116
|
if (settle.failedStage)
|
|
4962
|
-
io.err(` failed stage: ${settle.failedStage}`);
|
|
4963
|
-
if (settle.logExcerpt)
|
|
4964
|
-
|
|
5117
|
+
io.err(` failed stage: ${redactDiagnostic(settle.failedStage)}`);
|
|
5118
|
+
if (settle.logExcerpt) {
|
|
5119
|
+
const safe = redactDiagnostic(settle.logExcerpt);
|
|
5120
|
+
if (safe)
|
|
5121
|
+
io.err(` ${safe}`);
|
|
5122
|
+
}
|
|
4965
5123
|
io.err(` Full logs: \`launchpad status ${args.slug}\``);
|
|
4966
5124
|
return 1;
|
|
4967
5125
|
case "success":
|
|
@@ -5718,13 +5876,13 @@ async function pollUntilApplied(args) {
|
|
|
5718
5876
|
continue;
|
|
5719
5877
|
}
|
|
5720
5878
|
const prGone = state.openPr === null || state.openPr.number !== args.prNumber;
|
|
5721
|
-
const
|
|
5722
|
-
if (prGone &&
|
|
5879
|
+
const shaMatches2 = args.manifestSha === null ? state.hasAppFile && state.lastAppliedManifestSha !== null : state.lastAppliedManifestSha === args.manifestSha;
|
|
5880
|
+
if (prGone && shaMatches2) {
|
|
5723
5881
|
if (dotsThisLine > 0)
|
|
5724
5882
|
args.io.out("");
|
|
5725
5883
|
return { kind: "applied" };
|
|
5726
5884
|
}
|
|
5727
|
-
if (prGone && !
|
|
5885
|
+
if (prGone && !shaMatches2 && lastPrSeen) {
|
|
5728
5886
|
if (dotsThisLine > 0)
|
|
5729
5887
|
args.io.out("");
|
|
5730
5888
|
return {
|
|
@@ -6533,6 +6691,13 @@ async function runModelADeploy(args) {
|
|
|
6533
6691
|
provisionTimeoutMs = secs * 1000;
|
|
6534
6692
|
}
|
|
6535
6693
|
}
|
|
6694
|
+
let registrationBoundMs = DEFAULT_REGISTRATION_BOUND_MS;
|
|
6695
|
+
const rbFlag = args.argv.find((a) => a.startsWith("--registration-bound="));
|
|
6696
|
+
if (rbFlag !== undefined) {
|
|
6697
|
+
const secs = Number.parseInt(rbFlag.slice("--registration-bound=".length), 10);
|
|
6698
|
+
if (Number.isFinite(secs) && secs > 0)
|
|
6699
|
+
registrationBoundMs = secs * 1000;
|
|
6700
|
+
}
|
|
6536
6701
|
if (!SLUG_RE5.test(slug)) {
|
|
6537
6702
|
io.err(`launchpad deploy: invalid slug "${slug}" in manifest — expected ${SLUG_RE5.source}`);
|
|
6538
6703
|
return 64;
|
|
@@ -6545,6 +6710,7 @@ async function runModelADeploy(args) {
|
|
|
6545
6710
|
io.err(`launchpad deploy: ${describe14(e)}`);
|
|
6546
6711
|
return 1;
|
|
6547
6712
|
}
|
|
6713
|
+
const deployBaseline = noVerify ? null : await readDeploymentBaseline(realCommitWaitDeps(cfg), slug);
|
|
6548
6714
|
let result;
|
|
6549
6715
|
try {
|
|
6550
6716
|
result = await bundleAndDeploy({
|
|
@@ -6684,7 +6850,15 @@ async function runModelADeploy(args) {
|
|
|
6684
6850
|
io.out(`Run \`launchpad status ${slug}\` to confirm the build outcome (success / failure + log excerpt).`);
|
|
6685
6851
|
return 0;
|
|
6686
6852
|
}
|
|
6687
|
-
return runDeployVerification({
|
|
6853
|
+
return runDeployVerification({
|
|
6854
|
+
slug,
|
|
6855
|
+
cwd,
|
|
6856
|
+
appType,
|
|
6857
|
+
shippedSha: success.commit_sha,
|
|
6858
|
+
baseline: deployBaseline,
|
|
6859
|
+
registrationBoundMs,
|
|
6860
|
+
timeoutMs: verifyTimeoutMs
|
|
6861
|
+
}, io, realVerifyDeployDeps(cfg));
|
|
6688
6862
|
}
|
|
6689
6863
|
}
|
|
6690
6864
|
}
|
|
@@ -6762,8 +6936,8 @@ async function runRedeploy(opts, io, deps = {}) {
|
|
|
6762
6936
|
io.out("re-runs the build. The check below is reachability-only (it can't byte-compare a");
|
|
6763
6937
|
io.out("transformed bundle) — confirm the app still behaves as expected after it completes.");
|
|
6764
6938
|
}
|
|
6765
|
-
const verify = deps.runVerification ??
|
|
6766
|
-
const verifyDeps = deps.verifyDeps ??
|
|
6939
|
+
const verify = deps.runVerification ?? runRedeployVerification;
|
|
6940
|
+
const verifyDeps = deps.verifyDeps ?? realRedeployVerifyDeps(cfg);
|
|
6767
6941
|
return verify({ slug, cwd, appType, timeoutMs: opts.verifyTimeoutMs }, io, verifyDeps);
|
|
6768
6942
|
}
|
|
6769
6943
|
function readLocalAppType(cwd, file) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AAmEA,OAAO,EAGL,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAAa,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,KAAK,EAAS,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAKjE,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,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAmQD;;;;;;GAMG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAoBpC;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,GAAG,IAAI,CAwBpE;AA+KD,2BAA2B;AAC3B,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CliConfig } from "../config.js";
|
|
2
2
|
import type { CliIo, Command, ExitCode } from "../dispatcher.js";
|
|
3
|
-
import { type
|
|
3
|
+
import { type RedeployVerifyArgs, type RedeployVerifyDeps } from "../deploy/verify-deploy.js";
|
|
4
4
|
/** Bot response from `POST /apps/<slug>/redeploy`. */
|
|
5
5
|
export interface RedeployResponse {
|
|
6
6
|
readonly slug: string;
|
|
@@ -26,8 +26,8 @@ export interface RedeployDeps {
|
|
|
26
26
|
readonly fetcher?: typeof fetch;
|
|
27
27
|
readonly cwd?: string;
|
|
28
28
|
/** Override the served-verify step (tests inject a stub). */
|
|
29
|
-
readonly runVerification?: (args:
|
|
30
|
-
readonly verifyDeps?:
|
|
29
|
+
readonly runVerification?: (args: RedeployVerifyArgs, io: CliIo, deps: RedeployVerifyDeps) => Promise<ExitCode>;
|
|
30
|
+
readonly verifyDeps?: RedeployVerifyDeps;
|
|
31
31
|
}
|
|
32
32
|
export declare const redeployCommand: Command;
|
|
33
33
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redeploy.d.ts","sourceRoot":"","sources":["../../src/commands/redeploy.ts"],"names":[],"mappings":"AAsCA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAS1D,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAGL,KAAK,
|
|
1
|
+
{"version":3,"file":"redeploy.d.ts","sourceRoot":"","sources":["../../src/commands/redeploy.ts"],"names":[],"mappings":"AAsCA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAS1D,OAAO,KAA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AAC;IACvB,QAAQ,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAC;CAC1C;AAID,eAAO,MAAM,eAAe,EAAE,OAI7B,CAAC;AAiBF;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,eAAe,EACrB,EAAE,EAAE,KAAK,EACT,IAAI,GAAE,YAAiB,GACtB,OAAO,CAAC,QAAQ,CAAC,CAoFnB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { CliConfig } from "../config.js";
|
|
2
|
+
import { type DeploymentStatusView } from "./deployment-status.js";
|
|
3
|
+
/** Snapshot of the live deployment taken BEFORE deploying, so the waiter can
|
|
4
|
+
* tell "the live deployment advanced to my commit" from "nothing changed". */
|
|
5
|
+
export interface DeploymentBaseline {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly commitHash: string | null;
|
|
8
|
+
readonly createdOn: string;
|
|
9
|
+
}
|
|
10
|
+
export type CommitSettleOutcome = {
|
|
11
|
+
readonly kind: "success";
|
|
12
|
+
readonly deploymentUrl: string | null;
|
|
13
|
+
} | {
|
|
14
|
+
readonly kind: "failure";
|
|
15
|
+
readonly logExcerpt?: string | undefined;
|
|
16
|
+
readonly failedStage?: string | undefined;
|
|
17
|
+
} | {
|
|
18
|
+
readonly kind: "pending";
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: "no-new-deployment";
|
|
21
|
+
} | {
|
|
22
|
+
readonly kind: "superseded";
|
|
23
|
+
} | {
|
|
24
|
+
readonly kind: "not-registered-yet";
|
|
25
|
+
} | {
|
|
26
|
+
readonly kind: "unsupported";
|
|
27
|
+
} | {
|
|
28
|
+
readonly kind: "unknown";
|
|
29
|
+
};
|
|
30
|
+
export interface CommitWaitDeps {
|
|
31
|
+
/** Read the live deployment status (defaults to the real bot call). */
|
|
32
|
+
readonly fetchStatus: (slug: string) => Promise<DeploymentStatusView | null>;
|
|
33
|
+
/** Sleep between polls (injected so tests don't actually wait). */
|
|
34
|
+
readonly sleep: (ms: number) => Promise<void>;
|
|
35
|
+
/** Monotonic clock in ms (injected so tests control elapsed time). */
|
|
36
|
+
readonly now: () => number;
|
|
37
|
+
}
|
|
38
|
+
export interface CommitWaitArgs {
|
|
39
|
+
readonly slug: string;
|
|
40
|
+
/** The git SHA the deploy just pushed (the bot's `commit_sha`). */
|
|
41
|
+
readonly shippedSha: string;
|
|
42
|
+
/** The live deployment as it was BEFORE this deploy (null = first deploy). */
|
|
43
|
+
readonly baseline: DeploymentBaseline | null;
|
|
44
|
+
/** How long to wait for a build of MY commit to first REGISTER before
|
|
45
|
+
* concluding nothing fired. Must be ≤ settleTimeoutMs for the hard
|
|
46
|
+
* "no-new-deployment" verdict to be reachable. */
|
|
47
|
+
readonly registrationBoundMs: number;
|
|
48
|
+
/** Total budget; once a build of my commit registers, how long to let it
|
|
49
|
+
* settle. */
|
|
50
|
+
readonly settleTimeoutMs: number;
|
|
51
|
+
readonly pollIntervalMs?: number;
|
|
52
|
+
}
|
|
53
|
+
/** CF normally registers a github:push build within seconds; 120s is a
|
|
54
|
+
* conservative ceiling before we conclude no build fired. Overridable (a
|
|
55
|
+
* contended CF queue can be extended via the deploy flag). */
|
|
56
|
+
export declare const DEFAULT_REGISTRATION_BOUND_MS = 120000;
|
|
57
|
+
export declare function realCommitWaitDeps(cfg: CliConfig): CommitWaitDeps;
|
|
58
|
+
/**
|
|
59
|
+
* Normalised commit-SHA equality. CF's `commit_hash` and the deploy's
|
|
60
|
+
* `commit_sha` are both the full git SHA of the same commit, but be lenient to
|
|
61
|
+
* short/long forms by matching on the shorter prefix (min 7 chars, else exact).
|
|
62
|
+
*/
|
|
63
|
+
export declare function shaMatches(a: string | null | undefined, b: string | null | undefined): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Read the pre-deploy baseline: the current live deployment, if any. Returns
|
|
66
|
+
* null for first-ever deploy / container / old bot / a read hiccup — any later
|
|
67
|
+
* deployment of my commit then counts as an advance (and a transient null here
|
|
68
|
+
* never blocks the deploy).
|
|
69
|
+
*/
|
|
70
|
+
export declare function readDeploymentBaseline(deps: Pick<CommitWaitDeps, "fetchStatus">, slug: string): Promise<DeploymentBaseline | null>;
|
|
71
|
+
/**
|
|
72
|
+
* Poll until a build of `shippedSha` settles, or the live deployment proves
|
|
73
|
+
* nothing built. Never throws on a transient status read; an old bot (null)
|
|
74
|
+
* degrades to `unknown`, a non-Pages app to `unsupported`.
|
|
75
|
+
*/
|
|
76
|
+
export declare function waitForCommitDeployment(args: CommitWaitArgs, deps: CommitWaitDeps): Promise<CommitSettleOutcome>;
|
|
77
|
+
//# sourceMappingURL=commit-match-settle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-match-settle.d.ts","sourceRoot":"","sources":["../../src/deploy/commit-match-settle.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE1F;+EAC+E;AAC/E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,mBAAmB,GAC3B;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACnE;IACE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3C,GACD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,mBAAmB,C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wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,EACzC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAcpC;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,cAAc,EACpB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,mBAAmB,CAAC,CAmD9B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bound + redact a free-text diagnostic before display. Masks secret-shaped
|
|
3
|
+
* values and truncates to a safe length. Returns "" for empty/whitespace.
|
|
4
|
+
*/
|
|
5
|
+
export declare function redactDiagnostic(text: string | undefined | null, maxLen?: number): string;
|
|
6
|
+
//# sourceMappingURL=redact-diagnostic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redact-diagnostic.d.ts","sourceRoot":"","sources":["../../src/deploy/redact-diagnostic.ts"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EAAE,MAAM,SAAqB,GAAG,MAAM,CAOrG"}
|
|
@@ -1,28 +1,56 @@
|
|
|
1
1
|
import type { CliIo, ExitCode } from "../dispatcher.js";
|
|
2
|
+
import { type CommitSettleOutcome, type CommitWaitArgs, type CommitWaitDeps, type DeploymentBaseline } from "./commit-match-settle.js";
|
|
2
3
|
import { type SettleOutcome, type WaitArgs, type WaitDeps } from "./wait-for-deployment.js";
|
|
3
4
|
import { type VerifyVerdict, type VerifyArgs, type VerifyDeps, type VerifyAppType } from "./served-verify.js";
|
|
4
5
|
import type { CliConfig } from "../config.js";
|
|
5
6
|
import { type LifecycleView } from "../commands/status.js";
|
|
6
7
|
/** EX_DATAERR — the live deployment serves content that doesn't match what shipped. */
|
|
7
8
|
export declare const VERIFY_MISMATCH_EXIT = 65;
|
|
9
|
+
/** EX_UNAVAILABLE — the commit committed, but no Cloudflare deployment was ever
|
|
10
|
+
* created for it (the Pages build never ran — the ai-audit class). Distinct
|
|
11
|
+
* from a build that ran and failed (exit 1) or served-mismatch (65). */
|
|
12
|
+
export declare const NO_DEPLOYMENT_EXIT = 69;
|
|
8
13
|
export interface VerifyDeployArgs {
|
|
9
14
|
readonly slug: string;
|
|
10
15
|
readonly cwd: string;
|
|
11
16
|
readonly appType: VerifyAppType;
|
|
17
|
+
/** The git SHA this deploy just pushed (the bot's `commit_sha`). */
|
|
18
|
+
readonly shippedSha: string;
|
|
19
|
+
/** The live deployment as it was BEFORE this deploy (null = first/none). */
|
|
20
|
+
readonly baseline: DeploymentBaseline | null;
|
|
21
|
+
/** How long to wait for a build of this commit to register before
|
|
22
|
+
* concluding nothing fired. */
|
|
23
|
+
readonly registrationBoundMs: number;
|
|
24
|
+
/** Total settle budget once a build of this commit registers. */
|
|
12
25
|
readonly timeoutMs: number;
|
|
13
26
|
}
|
|
14
27
|
export interface VerifyDeployDeps {
|
|
15
|
-
readonly wait: (args:
|
|
28
|
+
readonly wait: (args: CommitWaitArgs, deps: CommitWaitDeps) => Promise<CommitSettleOutcome>;
|
|
16
29
|
readonly verify: (args: VerifyArgs, deps: VerifyDeps) => Promise<VerifyVerdict>;
|
|
17
30
|
/** Read the local shipped entrypoint (root `index.html`, else `static/index.html`). */
|
|
18
31
|
readonly readLocalEntrypoint: (cwd: string) => Uint8Array | null;
|
|
19
|
-
readonly waitDeps:
|
|
32
|
+
readonly waitDeps: CommitWaitDeps;
|
|
20
33
|
readonly verifyDeps: VerifyDeps;
|
|
21
34
|
}
|
|
22
35
|
/** Real entrypoint reader: prefer root `index.html`, fall back to `static/index.html`. */
|
|
23
36
|
export declare function readLocalEntrypoint(cwd: string): Uint8Array | null;
|
|
24
37
|
export declare function realVerifyDeployDeps(cfg: CliConfig): VerifyDeployDeps;
|
|
25
38
|
export declare function runDeployVerification(args: VerifyDeployArgs, io: CliIo, deps: VerifyDeployDeps): Promise<ExitCode>;
|
|
39
|
+
export interface RedeployVerifyArgs {
|
|
40
|
+
readonly slug: string;
|
|
41
|
+
readonly cwd: string;
|
|
42
|
+
readonly appType: VerifyAppType;
|
|
43
|
+
readonly timeoutMs: number;
|
|
44
|
+
}
|
|
45
|
+
export interface RedeployVerifyDeps {
|
|
46
|
+
readonly wait: (args: WaitArgs, deps: WaitDeps) => Promise<SettleOutcome>;
|
|
47
|
+
readonly verify: (args: VerifyArgs, deps: VerifyDeps) => Promise<VerifyVerdict>;
|
|
48
|
+
readonly readLocalEntrypoint: (cwd: string) => Uint8Array | null;
|
|
49
|
+
readonly waitDeps: WaitDeps;
|
|
50
|
+
readonly verifyDeps: VerifyDeps;
|
|
51
|
+
}
|
|
52
|
+
export declare function realRedeployVerifyDeps(cfg: CliConfig): RedeployVerifyDeps;
|
|
53
|
+
export declare function runRedeployVerification(args: RedeployVerifyArgs, io: CliIo, deps: RedeployVerifyDeps): Promise<ExitCode>;
|
|
26
54
|
export interface FirstDeployVerifyArgs {
|
|
27
55
|
readonly slug: string;
|
|
28
56
|
readonly cwd: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-deploy.d.ts","sourceRoot":"","sources":["../../src/deploy/verify-deploy.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACd,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"verify-deploy.d.ts","sourceRoot":"","sources":["../../src/deploy/verify-deploy.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CA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ourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: launchpad-content-pr
|
|
3
3
|
description: Push a content change to a Launchpad app via `launchpad deploy` and verify it shipped via `launchpad status`. Covers the post-first-deploy iteration loop (edit → deploy → verify) — subsequent deploys commit directly to the app repo's main and the Pages build runs asynchronously, so verification is its own step. Use when someone says "push a content change", "ship an update", "/launchpad-content-pr", "verify my deploy", or after `/launchpad-deploy` reports `done` and they want to follow up with an edit.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.39.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.39.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.39.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.39.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.39.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.39.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.39.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: launchpad-status
|
|
3
3
|
description: Show whether a Launchpad app's local launchpad.yaml matches what's deployed, and read the deployed manifest. Wraps `launchpad pull` (fetch deployed YAML) and `launchpad status` (drift report). Use when someone says "is my app in sync", "what's deployed", "show drift", "/launchpad-status", "/launchpad-pull", or after `launchpad deploy` to verify the change landed.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.39.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|