@m-kopa/launchpad-cli 0.74.1 → 0.75.1

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,22 @@ 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.75.1 - 2026-10-07
10
+
11
+ ### Fixed
12
+
13
+ - A `secret_text` secret on a **static app on the dispatch origin** no longer reads PRESENT and then silently goes MISSING after the next deploy (AIO-763). A static app's dispatch script is assets-only: it has no code that can read a secret, and Cloudflare drops secrets from it on the next delivery. `launchpad secrets push` now writes such secrets to the app's cron target(s) only. With no cron target, or with `targets: [primary]`, the push stops with `static_app_no_secrets` and writes nothing. `launchpad secrets status` leaves the assets-only script out of the audit and says so. With no cron target it exits `1` with the reason instead of a false green. `secrets status --set` reports such a member as an audit error.
14
+
15
+ ## 0.75.0 - 2026-10-07
16
+
17
+ ### Added
18
+
19
+ - A dispatch app can now run a scheduled cron Worker (AIO-763). Declare it in a v2 manifest as `spec.targets`: one `kind: worker` entry with a `script` that starts with `<slug>-` and a `schedule`. `launchpad deploy` bundles the Worker on your machine and the platform deploys it as a sibling Worker, because Cloudflare gives a dispatch script no cron trigger. `d1_binding` is refused there; use `spec.bindings.d1`.
20
+ - `launchpad deploy` prints the cron Worker result on both success paths: `deployed` with the schedule, `retired` when you remove the `targets` block, or `skipped` with a reason. A first deploy of a new app does not deploy the cron Worker. The CLI tells you to run `launchpad deploy` again, then `launchpad secrets push`.
21
+ - The platform refuses a dispatch deploy before it commits anything when the manifest and the shipped Worker disagree: `worker_bundle_missing`, `worker_target_mismatch`, `worker_target_not_declared` or `worker_target_reserved`. An old CLI that ships no bundle is told to run `launchpad update`.
22
+ - A plain `launchpad deploy` of a v2 manifest with no file change now runs the cron step, so a failed step is healed by deploying again. Removing `targets`, or renaming the cron script, disarms the old schedule and keeps the old script and its secrets target until destroy. Re-uploading a cron Worker keeps its secrets.
23
+ - Cloudflare can take one to two hours to apply a new or changed schedule. Deploy a new cron at least three hours before its first run.
24
+
9
25
  ## 0.74.1 - 2026-10-06
10
26
 
11
27
  - The `launchpad-ingest` skill's handler is split into `integrationConfig`, `verifiedIntegration` and a short route, so the scaffolded code passes complexity gates such as fallow. Behaviour is unchanged.
@@ -49,6 +49,10 @@ export declare function parseWranglerTopLevel(tomlText: string): WranglerTopLeve
49
49
  * existing fan-out target) and is NOT built. Keying the CLI build gate on the
50
50
  * same `schedule` the bot keys its deploy gate on avoids a build-but-skip
51
51
  * mismatch.
52
+ *
53
+ * Where the targets live depends on the manifest generation: a v1 manifest
54
+ * carries them at the top level; a v2 (dispatch) manifest carries them under
55
+ * `spec.targets` (AIO-763). A v2 manifest without `spec.targets` has none.
52
56
  */
53
57
  export declare function scheduledWorkerScripts(manifestYaml: string): string[];
54
58
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"cron-bundle.d.ts","sourceRoot":"","sources":["../../src/bundle/cron-bundle.ts"],"names":[],"mappings":"AA4BA;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,sEAAsE;IACtE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,4DAA4D;IAC5D,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,kFAAkF;IAClF,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;CAChD;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAA;CAAE,GACxC;IAAE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,CAAC;CAChD;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC,2EAA2E;AAC3E,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClD;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,CA0CxE;AAuBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CA4BrE;AAkCD;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,CAiBjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,SAAS,MAAM,EAAE,GAC3B,OAAO,CAAC,iBAAiB,CAAC,CAgD5B"}
@@ -64,6 +64,8 @@ export interface DeployBundleAccepted {
64
64
  readonly notices?: unknown;
65
65
  /** Per-integration approval status (ADR 0060); untrusted until rendered. */
66
66
  readonly integrations?: unknown;
67
+ /** Cron Worker outcome (AIO-763); untrusted until `scheduledTierLines` renders it. */
68
+ readonly scheduled_tier?: unknown;
67
69
  }
68
70
  /**
69
71
  * Response shape when managed main already matches the upload
@@ -79,6 +81,8 @@ export interface DeployBundleNothingToDeploy {
79
81
  readonly standing_exceptions?: StandingExceptionsSummary;
80
82
  readonly staleness?: StalenessVerdict;
81
83
  readonly statusPageUrl?: string | null;
84
+ /** Cron Worker outcome (AIO-763); untrusted until `scheduledTierLines` renders it. */
85
+ readonly scheduled_tier?: unknown;
82
86
  }
83
87
  /**
84
88
  * Response shape when the slug was never registered before and the
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../src/bundle/upload.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,6BAA6B,kCACT,CAAC;AAClC,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAE3D,MAAM,MAAM,oBAAoB,GAC5B,UAAU,GACV,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,kEAAkE;AAClE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,oBAAoB,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC;CAC/B;AAgBD;;;oCAGoC;AACpC,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,C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Q,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAEnE;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,UAAU,EACvB,cAAc,CAAC,EAAE,cAAc;AAC/B;gEACgE;AAChE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;AACvB;0EAC0E;AAC1E,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;AAC7B,+EAA+E;AAC/E,cAAc,GAAE,OAAe,GAC9B,OAAO,CAAC,kBAAkB,CAAC,CA+H7B"}
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.74.1";
22
+ var CLI_VERSION = "0.75.1";
23
23
 
24
24
  // src/config.ts
25
25
  import { readFileSync } from "node:fs";
@@ -2497,7 +2497,8 @@ function scheduledWorkerScripts(manifestYaml) {
2497
2497
  } catch {
2498
2498
  return [];
2499
2499
  }
2500
- const targets = doc?.targets;
2500
+ const isV2 = doc?.apiVersion === "launchpad.m-kopa.us/v2";
2501
+ const targets = isV2 ? doc?.spec?.targets : doc?.targets;
2501
2502
  if (!Array.isArray(targets))
2502
2503
  return [];
2503
2504
  const scripts = [];
@@ -3458,7 +3459,8 @@ var SpecSchema = z4.object({
3458
3459
  migration: z4.object({ stage: z4.enum(MIGRATION_STAGES) }).strict().optional(),
3459
3460
  bindings: z4.object({
3460
3461
  d1: z4.string().min(1).max(64).regex(ENV_NAME_REGEX, "bindings.d1 must be an UPPER_SNAKE_CASE binding name").optional()
3461
- }).strict().optional()
3462
+ }).strict().optional(),
3463
+ targets: z4.array(TargetSchema).min(1).max(1).optional()
3462
3464
  }).strict().superRefine((s, ctx) => {
3463
3465
  if (s.access.identity_types !== undefined && (s.auth ?? "access") !== "gateway") {
3464
3466
  ctx.addIssue({
@@ -3566,6 +3568,53 @@ var SpecSchema = z4.object({
3566
3568
  });
3567
3569
  }
3568
3570
  }
3571
+ if (s.targets !== undefined) {
3572
+ if (s.origin !== "dispatch") {
3573
+ ctx.addIssue({
3574
+ code: z4.ZodIssueCode.custom,
3575
+ path: ["targets"],
3576
+ message: "targets requires origin: dispatch. A pages-origin app declares its cron Worker in a v1 manifest."
3577
+ });
3578
+ }
3579
+ for (let i = 0;i < s.targets.length; i++) {
3580
+ const t = s.targets[i];
3581
+ if (t.kind !== "worker") {
3582
+ ctx.addIssue({
3583
+ code: z4.ZodIssueCode.custom,
3584
+ path: ["targets", i, "kind"],
3585
+ message: "a dispatch app has no Pages project, so the only valid target kind is 'worker' (the cron sibling Worker)"
3586
+ });
3587
+ continue;
3588
+ }
3589
+ if (t.script === undefined) {
3590
+ ctx.addIssue({
3591
+ code: z4.ZodIssueCode.custom,
3592
+ path: ["targets", i, "script"],
3593
+ message: "a worker target must declare a script (the sibling Workers script name)"
3594
+ });
3595
+ } else if (t.script === PRIMARY_TARGET || t.script === "pages") {
3596
+ ctx.addIssue({
3597
+ code: z4.ZodIssueCode.custom,
3598
+ path: ["targets", i, "script"],
3599
+ message: `worker target script '${t.script}' is a reserved selector token — use a different script name`
3600
+ });
3601
+ }
3602
+ if (t.schedule === undefined) {
3603
+ ctx.addIssue({
3604
+ code: z4.ZodIssueCode.custom,
3605
+ path: ["targets", i, "schedule"],
3606
+ message: "a dispatch worker target must declare a non-empty schedule; the cron sibling is the only thing spec.targets carries on dispatch"
3607
+ });
3608
+ }
3609
+ if (t.d1_binding !== undefined) {
3610
+ ctx.addIssue({
3611
+ code: z4.ZodIssueCode.custom,
3612
+ path: ["targets", i, "d1_binding"],
3613
+ message: "d1_binding is not supported on a dispatch worker target. Declare the app's database with bindings.d1."
3614
+ });
3615
+ }
3616
+ }
3617
+ }
3569
3618
  if (!isContainer && s.containers !== undefined) {
3570
3619
  ctx.addIssue({
3571
3620
  code: z4.ZodIssueCode.custom,
@@ -3651,7 +3700,18 @@ var ManifestV2Schema = z4.object({
3651
3700
  }).strict(),
3652
3701
  spec: SpecSchema,
3653
3702
  status: StatusSchema.optional()
3654
- }).strict();
3703
+ }).strict().superRefine((m, ctx) => {
3704
+ const prefix = `${m.metadata.slug}-`;
3705
+ (m.spec.targets ?? []).forEach((t, i) => {
3706
+ if (t.kind === "worker" && t.script !== undefined && !t.script.startsWith(prefix)) {
3707
+ ctx.addIssue({
3708
+ code: z4.ZodIssueCode.custom,
3709
+ path: ["spec", "targets", i, "script"],
3710
+ message: `worker target script '${t.script}' must start with '${prefix}' (the app slug plus a dash)`
3711
+ });
3712
+ }
3713
+ });
3714
+ });
3655
3715
  function parseManifestV2(input) {
3656
3716
  const result = ManifestV2Schema.safeParse(input);
3657
3717
  if (result.success) {
@@ -5077,7 +5137,8 @@ function assertConvertibleV1(manifest) {
5077
5137
  manifest.deployment.runtime !== undefined && "deployment.runtime"
5078
5138
  ].filter(Boolean);
5079
5139
  if (unsupported2.length > 0) {
5080
- throw new Error(`Cannot preserve ${unsupported2.join(", ")} on dispatch. Review these settings with the platform team before migrating.`);
5140
+ const targets = manifest.targets?.some((target) => target.kind === "worker") === true ? " A v1 worker target is not carried over: a dispatch app declares its cron Worker as spec.targets in a v2 manifest with origin: dispatch." : "";
5141
+ throw new Error(`Cannot preserve ${unsupported2.join(", ")} on dispatch.${targets} Review these settings with the platform team before migrating.`);
5081
5142
  }
5082
5143
  }
5083
5144
  function d1Binding(declared, wranglerD1) {
@@ -5130,7 +5191,7 @@ function secretRefusal(binding, env) {
5130
5191
  const targets = binding.targets === undefined || binding.targets === "all" ? [] : binding.targets;
5131
5192
  const checks = [
5132
5193
  [binding.source !== "env-file", "is platform-managed and cannot be converted automatically. Ask the platform team to migrate it."],
5133
- [targets.some((target) => target !== "primary"), "targets another surface, which dispatch does not have."],
5194
+ [targets.some((target) => target !== "primary"), "selects a surface other than primary, and that selector is not carried over. On dispatch a secret reaches every surface, including a cron Worker declared as spec.targets with origin: dispatch."],
5134
5195
  [PLATFORM_ENV_NAMES.has(binding.name), "is set by the platform on dispatch apps. Rename it before converting."],
5135
5196
  [env?.[binding.name] !== undefined, "is also declared as an environment variable. Keep one."]
5136
5197
  ];
@@ -9034,6 +9095,62 @@ async function handleAccessDrift(params) {
9034
9095
  return exit === 0 ? 1 : exit;
9035
9096
  }
9036
9097
 
9098
+ // src/deploy/scheduled-tier-lines.ts
9099
+ var CONTROL_CHARS = /[\u0000-\u001f\u007f-\u009f]/g;
9100
+ function text(v) {
9101
+ if (typeof v !== "string")
9102
+ return null;
9103
+ const cleaned = v.replace(CONTROL_CHARS, " ").trim();
9104
+ return cleaned === "" ? null : cleaned;
9105
+ }
9106
+ function textList(v) {
9107
+ if (!Array.isArray(v) || v.length === 0)
9108
+ return null;
9109
+ const out = [];
9110
+ for (const item of v) {
9111
+ const t = text(item);
9112
+ if (t === null)
9113
+ return null;
9114
+ out.push(t);
9115
+ }
9116
+ return out;
9117
+ }
9118
+ function scheduledTierLines(value) {
9119
+ if (value === null || typeof value !== "object")
9120
+ return [];
9121
+ const v = value;
9122
+ switch (v.status) {
9123
+ case "deployed": {
9124
+ const script = text(v.script);
9125
+ const schedules = textList(v.schedules);
9126
+ if (script === null || schedules === null)
9127
+ return [];
9128
+ const retired = textList(v.retired);
9129
+ return [
9130
+ ` cron Worker '${script}' deployed — schedule: ${schedules.join(", ")} (UTC)`,
9131
+ ...retired === null ? [] : [` cron schedule retired for '${retired.join("', '")}' — the trigger is disarmed`],
9132
+ " Secrets reach the cron Worker only after `launchpad secrets push`."
9133
+ ];
9134
+ }
9135
+ case "retired": {
9136
+ const scripts = textList(v.scripts);
9137
+ if (scripts === null)
9138
+ return [];
9139
+ return [
9140
+ ` cron schedule retired for '${scripts.join("', '")}' — the trigger is disarmed`
9141
+ ];
9142
+ }
9143
+ case "skipped": {
9144
+ const reason = text(v.reason);
9145
+ if (reason === null)
9146
+ return [];
9147
+ return [` cron Worker skipped: ${reason}`];
9148
+ }
9149
+ default:
9150
+ return [];
9151
+ }
9152
+ }
9153
+
9037
9154
  // src/deploy/dry-run.ts
9038
9155
  import { execFileSync } from "node:child_process";
9039
9156
  import { resolve as resolve8 } from "node:path";
@@ -9192,11 +9309,11 @@ import { stdin as input, stdout as output } from "node:process";
9192
9309
  // src/secrets/env-parse.ts
9193
9310
  var ENV_NAME2 = /^[A-Z][A-Z0-9_]*$/;
9194
9311
  var LINE = /^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*)$/;
9195
- function parseEnv(text) {
9312
+ function parseEnv(text2) {
9196
9313
  const entries = new Map;
9197
9314
  const invalidNames = [];
9198
9315
  const malformedLines = [];
9199
- const lines = text.split(`
9316
+ const lines = text2.split(`
9200
9317
  `);
9201
9318
  for (let i = 0;i < lines.length; i++) {
9202
9319
  const raw = lines[i] ?? "";
@@ -9239,6 +9356,8 @@ function declaredSecrets(loaded) {
9239
9356
  bindings: [...m.spec.secrets?.bindings ?? [], ...fromEnvVars]
9240
9357
  };
9241
9358
  }
9359
+ var ASSETS_ONLY_NO_SURFACE = "this static app's dispatch script is assets-only, so it holds no secrets, and the app has no " + "cron target to hold them. Remove the secret_text entries from spec.env_vars, or change " + "spec.appType to react+api if server code needs them.";
9360
+ var ASSETS_ONLY_NOTE = "primary is not audited: this static app's dispatch script is assets-only and holds no " + "secrets. Secrets are checked on its cron target(s) only.";
9242
9361
 
9243
9362
  // src/commands/redeploy.ts
9244
9363
  import { existsSync as existsSync7, readFileSync as readFileSync11 } from "node:fs";
@@ -9703,8 +9822,8 @@ async function runSecretsPush(opts, io, deps = {}) {
9703
9822
  io.err(`✗ secrets push ${b.name}: invalid bot response (results must be an array)`);
9704
9823
  return 2;
9705
9824
  }
9706
- if (resp.error === "dispatch_script_not_delivered" || resp.error === "no_staged_migration") {
9707
- io.err(`✗ secrets push ${b.name}: ${resp.message ?? "the dispatch script is not delivered yet"}`);
9825
+ if (resp.error === "dispatch_script_not_delivered" || resp.error === "no_staged_migration" || resp.error === "static_app_no_secrets") {
9826
+ io.err(`✗ secrets push ${b.name}: ${resp.message ?? resp.error}`);
9708
9827
  io.err(`${pushed} of ${envFileBindings.length} pushed before failure.`);
9709
9828
  return 1;
9710
9829
  }
@@ -10349,9 +10468,9 @@ var PLATFORM_FLAGS = new Set(["nodejs_compat"]);
10349
10468
 
10350
10469
  class UnsupportedWranglerConfigError extends Error {
10351
10470
  }
10352
- function wranglerRuntime(file, text) {
10471
+ function wranglerRuntime(file, text2) {
10353
10472
  const toml = file.endsWith(".toml");
10354
- const config = toml ? readToml(file, text) : readJsonc(file, text);
10473
+ const config = toml ? readToml(file, text2) : readJsonc(file, text2);
10355
10474
  for (const key of Object.keys(config)) {
10356
10475
  if (!ALLOWED_KEYS.has(key) && (toml || key !== "$schema"))
10357
10476
  throw unsupportedKey(file, key);
@@ -10398,14 +10517,14 @@ function asArray(file, key, value) {
10398
10517
  throw new UnsupportedWranglerConfigError(`${file} sets \`${key}\` to something other than a list`);
10399
10518
  return value;
10400
10519
  }
10401
- function readJsonc(file, text) {
10402
- const stripped = stripOutsideStrings(text, '"', (at) => {
10403
- if (text.startsWith("//", at))
10404
- return lineEnd(text, at) - at;
10405
- if (!text.startsWith("/*", at))
10520
+ function readJsonc(file, text2) {
10521
+ const stripped = stripOutsideStrings(text2, '"', (at) => {
10522
+ if (text2.startsWith("//", at))
10523
+ return lineEnd(text2, at) - at;
10524
+ if (!text2.startsWith("/*", at))
10406
10525
  return 0;
10407
- const end = text.indexOf("*/", at + 2);
10408
- return (end === -1 ? text.length : end + 2) - at;
10526
+ const end = text2.indexOf("*/", at + 2);
10527
+ return (end === -1 ? text2.length : end + 2) - at;
10409
10528
  }).replace(/,(\s*[}\]])/g, "$1");
10410
10529
  let parsed;
10411
10530
  try {
@@ -10418,11 +10537,11 @@ function readJsonc(file, text) {
10418
10537
  }
10419
10538
  return parsed;
10420
10539
  }
10421
- function readToml(file, text) {
10540
+ function readToml(file, text2) {
10422
10541
  const config = {};
10423
10542
  const databases = [];
10424
10543
  let table = config;
10425
- for (const line of logicalTomlLines(text)) {
10544
+ for (const line of logicalTomlLines(text2)) {
10426
10545
  if (line.startsWith("[")) {
10427
10546
  table = openTable(file, line, config, databases);
10428
10547
  } else if (table === config.vars) {
@@ -10466,8 +10585,8 @@ function assign(file, table, line, topLevel) {
10466
10585
  function assignVar(file, vars, line) {
10467
10586
  const [, key, value] = tomlAssignment(file, line);
10468
10587
  const quoted = /^"((?:[^"\\]|\\.)*)"$|^'([^']*)'$/.exec(value.trim());
10469
- const text = quoted === null ? null : quoted[1] === undefined ? quoted[2] : basicString(file, key, quoted[1]);
10470
- vars[key.replace(/"/g, "").trim()] = text;
10588
+ const text2 = quoted === null ? null : quoted[1] === undefined ? quoted[2] : basicString(file, key, quoted[1]);
10589
+ vars[key.replace(/"/g, "").trim()] = text2;
10471
10590
  }
10472
10591
  var TOML_ESCAPES = { b: "\b", t: "\t", n: `
10473
10592
  `, f: "\f", r: "\r", '"': '"', "\\": "\\" };
@@ -10504,8 +10623,8 @@ function tomlValue(raw) {
10504
10623
  }
10505
10624
  return [...inner.matchAll(/"((?:[^"\\]|\\.)*)"|'([^']*)'/g)].map((item) => item[1] ?? item[2]);
10506
10625
  }
10507
- function logicalTomlLines(text) {
10508
- const stripped = stripOutsideStrings(text, `"'`, (at) => text[at] === "#" ? lineEnd(text, at) - at : 0);
10626
+ function logicalTomlLines(text2) {
10627
+ const stripped = stripOutsideStrings(text2, `"'`, (at) => text2[at] === "#" ? lineEnd(text2, at) - at : 0);
10509
10628
  const lines = [];
10510
10629
  let pending = "";
10511
10630
  for (const raw of stripped.split(/\r?\n/)) {
@@ -10519,10 +10638,10 @@ function logicalTomlLines(text) {
10519
10638
  lines.push(pending);
10520
10639
  return lines;
10521
10640
  }
10522
- function lineEnd(text, at) {
10523
- const end = text.indexOf(`
10641
+ function lineEnd(text2, at) {
10642
+ const end = text2.indexOf(`
10524
10643
  `, at);
10525
- return end === -1 ? text.length : end;
10644
+ return end === -1 ? text2.length : end;
10526
10645
  }
10527
10646
  function openBrackets(line) {
10528
10647
  if (/^\[\[?[^\]=]*\]\]?$/.test(line))
@@ -10537,31 +10656,31 @@ function openBrackets(line) {
10537
10656
  });
10538
10657
  return open;
10539
10658
  }
10540
- function stripOutsideStrings(text, quotes, skip) {
10659
+ function stripOutsideStrings(text2, quotes, skip) {
10541
10660
  let out = "";
10542
- for (let i = 0;i < text.length; ) {
10543
- if (quotes.includes(text[i])) {
10544
- const end = stringEnd(text, i);
10545
- out += text.slice(i, end);
10661
+ for (let i = 0;i < text2.length; ) {
10662
+ if (quotes.includes(text2[i])) {
10663
+ const end = stringEnd(text2, i);
10664
+ out += text2.slice(i, end);
10546
10665
  i = end;
10547
10666
  continue;
10548
10667
  }
10549
10668
  const skipped = skip(i);
10550
10669
  if (skipped === 0)
10551
- out += text[i];
10670
+ out += text2[i];
10552
10671
  i += Math.max(skipped, 1);
10553
10672
  }
10554
10673
  return out;
10555
10674
  }
10556
- function stringEnd(text, start) {
10557
- const quote = text[start];
10558
- for (let i = start + 1;i < text.length; i++) {
10559
- if (text[i] === "\\" && quote === '"')
10675
+ function stringEnd(text2, start) {
10676
+ const quote = text2[start];
10677
+ for (let i = start + 1;i < text2.length; i++) {
10678
+ if (text2[i] === "\\" && quote === '"')
10560
10679
  i++;
10561
- else if (text[i] === quote)
10680
+ else if (text2[i] === quote)
10562
10681
  return i + 1;
10563
10682
  }
10564
- return text.length;
10683
+ return text2.length;
10565
10684
  }
10566
10685
 
10567
10686
  // src/commands/migrate-live.ts
@@ -11381,6 +11500,7 @@ async function runModelADeploy(args) {
11381
11500
  let slug;
11382
11501
  let appType = "static";
11383
11502
  let declaredOrigin;
11503
+ let manifestIsV2 = false;
11384
11504
  try {
11385
11505
  await defaultToDispatch(cwd, manifestPath, io);
11386
11506
  } catch (e) {
@@ -11409,6 +11529,7 @@ async function runModelADeploy(args) {
11409
11529
  slug = metaSlug;
11410
11530
  const raw = manifestObj;
11411
11531
  const isV22 = raw?.apiVersion === "launchpad.m-kopa.us/v2";
11532
+ manifestIsV2 = isV22;
11412
11533
  declaredOrigin = declaredOriginOf(isV22, raw?.spec?.origin);
11413
11534
  const deploymentType = isV22 ? raw?.spec?.appType : raw?.deployment?.type;
11414
11535
  if (deploymentType === "static" || deploymentType === "react" || deploymentType === "react+api" || deploymentType === "container") {
@@ -11683,6 +11804,8 @@ ${w}`, ""), message);
11683
11804
  io.out(` (managed main @ ${success.head_sha.slice(0, 8)} matches the bundle)`);
11684
11805
  }
11685
11806
  surfaceDeployExtras(success, io, slug, args.allowStale);
11807
+ for (const line of scheduledTierLines(success.scheduled_tier))
11808
+ io.out(line);
11686
11809
  await advanceBaseShaMarker(cwd, success.head_sha, io);
11687
11810
  return 0;
11688
11811
  }
@@ -11707,7 +11830,12 @@ ${w}`, ""), message);
11707
11830
  io.out(message);
11708
11831
  io.out("");
11709
11832
  io.out(`Your bundle ships with this provisioning run — when lifecycle reaches "live",`);
11710
- io.out("this deploy's content is what's serving. No second deploy needed.");
11833
+ if (result.workerScript !== null) {
11834
+ io.out("this deploy's content is what's serving. The cron Worker is not deployed on a first deploy:");
11835
+ io.out(manifestIsV2 ? `run \`launchpad deploy\` again once the app is live, then \`launchpad secrets push\`.` : `it ships with your next \`launchpad deploy\` that changes content once the app is live; then run \`launchpad secrets push\`.`);
11836
+ } else {
11837
+ io.out("this deploy's content is what's serving. No second deploy needed.");
11838
+ }
11711
11839
  renderIntegrationStatus(success.integrations, io);
11712
11840
  if (appType === "container") {
11713
11841
  const pushed = await pushSecretsWhenCommitted({ slug, manifestPath, timeoutMs: provisionTimeoutMs }, io, realFirstDeploySecretsDeps(cfg));
@@ -11755,6 +11883,8 @@ ${w}`, ""), message);
11755
11883
  io.out(` ${botMessage(success.message)}`);
11756
11884
  }
11757
11885
  surfaceDeployExtras(success, io, slug, args.allowStale);
11886
+ for (const line of scheduledTierLines(success.scheduled_tier))
11887
+ io.out(line);
11758
11888
  renderIntegrationStatus(success.integrations, io);
11759
11889
  io.out("");
11760
11890
  const dispatchOrigin = handoffIsDispatch({
@@ -13089,16 +13219,16 @@ function installCommandFor(pm) {
13089
13219
  }
13090
13220
  var OUT_DIR_REGEX = /\bbuild\s*:\s*\{[^{}]*?\boutDir\s*:\s*['"]([^'"]+)['"]/s;
13091
13221
  function detectDestinationDir(cwd, vite) {
13092
- let text;
13222
+ let text2;
13093
13223
  try {
13094
- text = readFileSync16(vite.path, "utf8");
13224
+ text2 = readFileSync16(vite.path, "utf8");
13095
13225
  } catch (e) {
13096
13226
  return {
13097
13227
  kind: "ambiguous",
13098
13228
  reason: `vite.config failed to read: ${e.message}`
13099
13229
  };
13100
13230
  }
13101
- const m = OUT_DIR_REGEX.exec(text);
13231
+ const m = OUT_DIR_REGEX.exec(text2);
13102
13232
  if (m && m[1] !== undefined && m[1].length > 0) {
13103
13233
  return { kind: "ok", value: m[1] };
13104
13234
  }
@@ -15859,6 +15989,14 @@ async function runSecretsStatus(opts, io, deps = {}) {
15859
15989
  return 2;
15860
15990
  }
15861
15991
  const surfaces = resp.surfaces;
15992
+ if (resp.assetsOnlyPrimary === true) {
15993
+ if (surfaces.length === 0) {
15994
+ io.err(`launchpad secrets status: ${ASSETS_ONLY_NO_SURFACE}`);
15995
+ return 1;
15996
+ }
15997
+ io.out(`Note: ${ASSETS_ONLY_NOTE}`);
15998
+ io.out("");
15999
+ }
15862
16000
  const { rows, notPresent } = auditSecretPresence(bindings.map((b) => b.targets !== undefined ? { name: b.name, targets: b.targets } : { name: b.name }), surfaces.map((s) => ({
15863
16001
  id: s.id,
15864
16002
  deployed: s.deployed,
@@ -15986,6 +16124,10 @@ async function auditSet(cfg, set, fetcher) {
15986
16124
  continue;
15987
16125
  }
15988
16126
  const surfaces = resp.surfaces;
16127
+ if (resp.assetsOnlyPrimary === true && surfaces.length === 0) {
16128
+ out.push({ member, rows: [], notPresent: secrets.length, notDeployed: 0, error: ASSETS_ONLY_NO_SURFACE });
16129
+ continue;
16130
+ }
15989
16131
  const { rows, notPresent } = auditSecretPresence(secrets.map((name) => ({ name })), surfaces.map((s) => ({ id: s.id, deployed: s.deployed, secrets: (s.secrets ?? []).map((x) => x.name) })));
15990
16132
  const notDeployed = rows.filter((r) => r.cell === "not_deployed").length;
15991
16133
  out.push({ member, rows, notPresent, notDeployed });
@@ -16535,10 +16677,10 @@ function readInstalledSkills() {
16535
16677
  }
16536
16678
  function readSkillVersion(path15) {
16537
16679
  try {
16538
- const text = readFileSync20(path15, "utf8");
16539
- const fenceEnd = text.indexOf(`
16680
+ const text2 = readFileSync20(path15, "utf8");
16681
+ const fenceEnd = text2.indexOf(`
16540
16682
  ---`, 4);
16541
- const front = fenceEnd === -1 ? text.slice(0, 1024) : text.slice(0, fenceEnd);
16683
+ const front = fenceEnd === -1 ? text2.slice(0, 1024) : text2.slice(0, fenceEnd);
16542
16684
  const m = /^version:\s*(.+?)\s*$/m.exec(front);
16543
16685
  return m === null ? null : m[1] ?? null;
16544
16686
  } catch {
@@ -16700,15 +16842,15 @@ async function doList(io) {
16700
16842
  return 0;
16701
16843
  }
16702
16844
  async function readVersion(path15) {
16703
- let text;
16845
+ let text2;
16704
16846
  try {
16705
- text = await fs7.readFile(path15, "utf8");
16847
+ text2 = await fs7.readFile(path15, "utf8");
16706
16848
  } catch {
16707
16849
  return null;
16708
16850
  }
16709
- const fenceEnd = text.indexOf(`
16851
+ const fenceEnd = text2.indexOf(`
16710
16852
  ---`, 4);
16711
- const front = fenceEnd === -1 ? text.slice(0, 1024) : text.slice(0, fenceEnd);
16853
+ const front = fenceEnd === -1 ? text2.slice(0, 1024) : text2.slice(0, fenceEnd);
16712
16854
  const m = /^version:\s*(.+?)\s*$/m.exec(front);
16713
16855
  return m === null ? null : m[1] ?? null;
16714
16856
  }
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AA0EA,OAAO,EAGL,4BAA4B,EAC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EAA2E;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"}
@@ -0,0 +1,3 @@
1
+ /** Terminal lines for a `scheduled_tier` result; `[]` when absent or malformed. */
2
+ export declare function scheduledTierLines(value: unknown): string[];
3
+ //# sourceMappingURL=scheduled-tier-lines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-tier-lines.d.ts","sourceRoot":"","sources":["../../src/deploy/scheduled-tier-lines.ts"],"names":[],"mappings":"AAiCA,mFAAmF;AACnF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAgC3D"}
@@ -9,4 +9,8 @@ export interface DeclaredSecrets {
9
9
  export declare function declaredSecrets(loaded: Extract<AnyVersionLoadResult, {
10
10
  kind: "ok";
11
11
  }>): DeclaredSecrets;
12
+ /** Shown when an assets-only app has no secret surface left to audit. */
13
+ export declare const ASSETS_ONLY_NO_SURFACE: string;
14
+ /** Shown above the audit when the primary was left out. */
15
+ export declare const ASSETS_ONLY_NOTE: string;
12
16
  //# sourceMappingURL=declared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"declared.d.ts","sourceRoot":"","sources":["../../src/secrets/declared.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAc,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;CAC7C;AAED,+EAA+E;AAC/E,wBAAgB,eAAe,CAC7B,MAAM,EAAE,OAAO,CAAC,oBAAoB,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,GACpD,eAAe,CAiBjB"}
1
+ {"version":3,"file":"declared.d.ts","sourceRoot":"","sources":["../../src/secrets/declared.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAc,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;CAC7C;AAED,+EAA+E;AAC/E,wBAAgB,eAAe,CAC7B,MAAM,EAAE,OAAO,CAAC,oBAAoB,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,GACpD,eAAe,CAiBjB;AAMD,yEAAyE;AACzE,eAAO,MAAM,sBAAsB,QAGqB,CAAC;AAEzD,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,QAE+B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../src/secrets/push.ts"],"names":[],"mappings":"AAoDA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAa1D,OAAO,EAA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.d.ts","sourceRoot":"","sources":["../../src/secrets/status.ts"],"names":[],"mappings":"AAaA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAY1D,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,CAAC;CACjC;AAmBD,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,aAAa,EACnB,EAAE,EAAE,KAAK,EACT,IAAI,GAAE,UAAe,GACpB,OAAO,CAAC,QAAQ,CAAC,CA4EnB"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const CLI_VERSION = "0.74.1";
1
+ export declare const CLI_VERSION = "0.75.1";
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.74.1",
3
+ "version": "0.75.1",
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.74.1
4
+ version: 0.75.1
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.74.1
4
+ version: 0.75.1
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
@@ -560,6 +560,38 @@ push` says so and offers to activate: on a TTY it prompts `Redeploy … now? [y/
560
560
  `launchpad redeploy <slug>` to run when ready. The cron Worker tier needs no
561
561
  redeploy (it binds on next invocation). See `/commands/redeploy`.
562
562
 
563
+ **Dispatch apps (`origin: dispatch`, v2 manifest).** A dispatch app has no Pages
564
+ project and no top-level `targets`. Cloudflare gives a dispatch script no cron
565
+ trigger, so the cron Worker is still a sibling Worker. Declare it as
566
+ `spec.targets`, with exactly one entry:
567
+
568
+ ```yaml
569
+ spec:
570
+ origin: dispatch
571
+ targets:
572
+ - kind: worker
573
+ script: <slug>-send-cron # MUST start with "<slug>-" and equal `name` in cron/wrangler.toml
574
+ schedule:
575
+ - "0 6 * * *" # UTC
576
+ ```
577
+
578
+ Rules: `kind: worker` only; `schedule` required; `d1_binding` refused (use
579
+ `spec.bindings.d1`); the script cannot equal the slug or be a platform-owned
580
+ name; list the cron directory in `app.include`.
581
+
582
+ The deploy sequence differs from a Pages app. A first deploy does **not** ship
583
+ the cron Worker. Tell the user: (1) `launchpad deploy`, wait for `live`; (2)
584
+ `launchpad deploy` again, which ships the cron Worker even with no file change;
585
+ (3) `launchpad secrets push`. The sibling goes live inside the deploy request,
586
+ before the app script is delivered, so schema and API changes must be backward
587
+ compatible across that window. Removing the `targets` block disarms the
588
+ schedule and keeps the script until destroy. If a deploy is refused with
589
+ `worker_bundle_missing`, `worker_target_mismatch`, `worker_target_not_declared`
590
+ or `worker_target_reserved`, fix the cause the message names (for
591
+ `worker_bundle_missing`: `launchpad update`, then deploy again). The cron code's
592
+ `scheduled()` must throw after it logs when a job fails, and must log no
593
+ personal data.
594
+
563
595
  ## Pages-tier D1 (`d1_binding` on a `pages` target)
564
596
 
565
597
  A pure `react+api` app (no cron Worker) that needs a database declares the
@@ -574,7 +606,7 @@ targets:
574
606
  On `launchpad deploy` the bot auto-provisions the shared D1 named after the slug (**create-or-adopt by slug during deploy** - a successful destroy exports and deletes the recorded UUID before repository archive, so platform recovery creates a fresh destination database) and binds it to the Pages app, so `env.DB` works with no manual `wrangler d1 create`.
575
607
  The bot also pins the matching `[[d1_databases]]` block into the **committed** `wrangler.toml` - Pages git-source builds read bindings from that file, and a build without the block silently resets the binding to empty.
576
608
 
577
- **Dispatch form.** A v2 `react+api` app on `origin: dispatch` has no `targets`; it declares the same database as `spec.bindings.d1`:
609
+ **Dispatch form.** A v2 `react+api` app on `origin: dispatch` has no `pages` target and no `d1_binding` on its cron target (`spec.targets` carries only the cron Worker); it declares the same database as `spec.bindings.d1`:
578
610
 
579
611
  ```yaml
580
612
  spec:
@@ -677,6 +709,8 @@ the in-flight case.
677
709
  - Do **not** add a cron trigger to a Pages `react+api` app directly —
678
710
  Pages has no `scheduled` handler. Scheduled work needs a sibling cron
679
711
  **Worker** declared in `targets[]` (see "Two-tier apps").
712
+ On a dispatch app the same Worker is declared as `spec.targets`, and its
713
+ script must start with `<slug>-`.
680
714
  - Do **not** set verifier env (`CF_ACCESS_TEAM_DOMAIN`, `CF_ACCESS_AUD`,
681
715
  `JWKS_URL`) as `plain_text` — it is wiped on the next deploy. The per-app
682
716
  TF emits them as `secret_text`; trust it.
@@ -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.74.1
4
+ version: 0.75.1
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.74.1
4
+ version: 0.75.1
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.74.1
4
+ version: 0.75.1
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-ingest
3
3
  description: Scaffold a verified ingest endpoint so an approved backend (an approved integration, ADR 0060) can write into a Launchpad react+api app - declare the integration in launchpad.yaml, add a Hono route registered ahead of the user-auth middleware that verifies the gateway's X-Launchpad-Integration-Assertion with @m-kopa/platform-auth, validates the body with zod, and does an idempotent D1 insert keyed on a caller-supplied idempotency key. Use when someone says "let another system push data into my app", "add an ingest endpoint", "receive data from the Sales backend", "approved integration", "machine-to-machine write", "/launchpad-ingest", or asks what a calling team must send.
4
- version: 0.74.1
4
+ version: 0.75.1
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.74.1
4
+ version: 0.75.1
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.74.1
4
+ version: 0.75.1
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.74.1
4
+ version: 0.75.1
5
5
  ---
6
6
 
7
7
  <!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->