@m-kopa/launchpad-cli 0.62.0 → 0.64.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 +50 -0
- package/dist/bundle/upload.d.ts +2 -0
- package/dist/bundle/upload.d.ts.map +1 -1
- package/dist/cli.js +684 -299
- package/dist/commands/deploy.d.ts +10 -1
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/migrate.d.ts +30 -0
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/commands/secrets-template.d.ts.map +1 -1
- package/dist/manifest/migrate-dispatch.d.ts +13 -3
- package/dist/manifest/migrate-dispatch.d.ts.map +1 -1
- package/dist/manifest/wrangler-config.d.ts +3 -0
- package/dist/manifest/wrangler-config.d.ts.map +1 -0
- package/dist/secrets/declared.d.ts +12 -0
- package/dist/secrets/declared.d.ts.map +1 -0
- package/dist/secrets/push.d.ts +0 -8
- package/dist/secrets/push.d.ts.map +1 -1
- package/dist/secrets/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 +6 -5
- package/skills/launchpad-deploy/SKILL.md +41 -17
- 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 +5 -4
- package/skills/launchpad-report/SKILL.md +1 -1
- package/skills/launchpad-status/SKILL.md +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MAX_COMPRESSED_TARBALL_BYTES } from "../deploy/tar-pack.js";
|
|
2
2
|
import { inferSlugFromCwd, resolveManifestSlug } from "./infer-slug.js";
|
|
3
|
-
import type { Command } from "../dispatcher.js";
|
|
3
|
+
import type { CliIo, Command } from "../dispatcher.js";
|
|
4
4
|
export { inferSlugFromCwd, resolveManifestSlug };
|
|
5
5
|
export declare const deployCommand: Command;
|
|
6
6
|
interface DeployArgs {
|
|
@@ -23,6 +23,15 @@ export declare function deployUsage(): string;
|
|
|
23
23
|
export declare function parseArgs(args: readonly string[]): DeployArgs | null;
|
|
24
24
|
/** Re-export for tests. */
|
|
25
25
|
export { MAX_COMPRESSED_TARBALL_BYTES };
|
|
26
|
+
/**
|
|
27
|
+
* Workers dispatch is the default for new static, React and React API apps. Before a
|
|
28
|
+
* first deploy, convert a gateway manifest that only implies Pages (no
|
|
29
|
+
* `origin` in v1 or v2) to v2 dispatch. An explicit origin is an opt-out and
|
|
30
|
+
* registered apps keep their origin. Returns a note explaining why the deploy
|
|
31
|
+
* stays on Pages, or null when there is nothing to say. Throws when
|
|
32
|
+
* registration cannot be confirmed or the converted manifest cannot be saved.
|
|
33
|
+
*/
|
|
34
|
+
export declare function defaultToDispatch(cwd: string, manifestPath: string, io: CliIo): Promise<string | null>;
|
|
26
35
|
/** Pure wording branch kept exported for the v1 byte-identity contract. */
|
|
27
36
|
/** What the local manifest says the origin is: v1 manifests are always pages;
|
|
28
37
|
* a v2 manifest defaults to pages; `undefined` means it could not be read. */
|
|
@@ -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,
|
|
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,OAA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,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;CAC9B;AAED,iEAAiE;AACjE,MAAM,MAAM,QAAQ,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAEhF,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAC;AAEF,4FAA4F;AAC5F,wBAAsB,OAAO,CAC3B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,EAAE,KAAK,EACT,MAAM,EAAE,QAAQ,EAChB,QAAQ,GAAE,MAAM,OAAO,CAAC,YAAY,CAAuE,GAC1G,OAAO,CAAC,QAAQ,CAAC,CA0LnB"}
|
|
@@ -1,3 +1,33 @@
|
|
|
1
1
|
import type { Command } from "../dispatcher.js";
|
|
2
2
|
export declare const migrateCommand: Command;
|
|
3
|
+
export declare const BACKUP_PATH = ".launchpad/manifest-before-dispatch.yaml";
|
|
4
|
+
/** Dispatch secrets land on the Worker script, which exists only after the first delivery. */
|
|
5
|
+
export declare function secretsNextStep(secrets: readonly string[]): string | null;
|
|
6
|
+
export type DispatchConversion = {
|
|
7
|
+
readonly kind: "already";
|
|
8
|
+
} | {
|
|
9
|
+
readonly kind: "eligible" | "converted";
|
|
10
|
+
readonly slug: string;
|
|
11
|
+
/** Secret names the converted manifest declares; set with `secrets push` after first delivery. */
|
|
12
|
+
readonly secrets: readonly string[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Convert `<cwd>/launchpad.yaml` to a v2 dispatch manifest, or report that it
|
|
16
|
+
* would convert (`dryRun`). Throws with a user-facing reason when the app is
|
|
17
|
+
* registered, the registry cannot be read, or the app has a runtime dispatch
|
|
18
|
+
* cannot preserve. Shared by `migrate` and first-deploy auto-conversion.
|
|
19
|
+
*/
|
|
20
|
+
export declare function convertToDispatch(cwd: string, dryRun: boolean): Promise<DispatchConversion>;
|
|
21
|
+
/** The app is eligible but the converted manifest or its backup could not be written. */
|
|
22
|
+
export declare class MigrationSaveError extends Error {
|
|
23
|
+
constructor(cause: unknown);
|
|
24
|
+
}
|
|
25
|
+
/** The registry could not confirm the slug is unregistered, so nothing was converted. */
|
|
26
|
+
export declare class RegistryUnavailableError extends Error {
|
|
27
|
+
constructor(cause: unknown);
|
|
28
|
+
}
|
|
29
|
+
/** The slug already has an app record; its origin changes only via a planned infrastructure migration. */
|
|
30
|
+
export declare class RegisteredAppError extends Error {
|
|
31
|
+
constructor();
|
|
32
|
+
}
|
|
3
33
|
//# sourceMappingURL=migrate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../src/commands/migrate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../src/commands/migrate.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAS,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIvD,eAAO,MAAM,cAAc,EAAE,OAI5B,CAAC;AAiCF,eAAO,MAAM,WAAW,6CAA6C,CAAC;AAEtE,8FAA8F;AAC9F,wBAAgB,eAAe,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAGzE;AAED,MAAM,MAAM,kBAAkB,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IACE,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,CAAC;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kGAAkG;IAClG,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC,CAAC;AAEN;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA0BjG;AAkCD,yFAAyF;AACzF,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,KAAK,EAAE,OAAO;CAG3B;AAED,yFAAyF;AACzF,qBAAa,wBAAyB,SAAQ,KAAK;gBACrC,KAAK,EAAE,OAAO;CAG3B;AAED,0GAA0G;AAC1G,qBAAa,kBAAmB,SAAQ,KAAK;;CAI5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets-template.d.ts","sourceRoot":"","sources":["../../src/commands/secrets-template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"secrets-template.d.ts","sourceRoot":"","sources":["../../src/commands/secrets-template.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAgBxD,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,EAAE,KAAK,GACR,OAAO,CAAC,QAAQ,CAAC,CAiDnB"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import { type DeploymentManifest, type ManifestV2 } from "@m-kopa/launchpad-engine";
|
|
2
|
-
/**
|
|
3
|
-
|
|
1
|
+
import { type DeploymentManifest, type Manifest, type ManifestV2 } from "@m-kopa/launchpad-engine";
|
|
2
|
+
/**
|
|
3
|
+
* Convert a Pages-implied manifest to v2 dispatch, keeping only what the
|
|
4
|
+
* dispatch runtime preserves. `wranglerD1` is the D1 binding the app's
|
|
5
|
+
* wrangler config declares, already checked by the caller.
|
|
6
|
+
*/
|
|
7
|
+
export declare function dispatchManifest(manifest: DeploymentManifest, wranglerD1?: string): ManifestV2;
|
|
8
|
+
/**
|
|
9
|
+
* The D1 binding name when `targets` is exactly one pages target carrying
|
|
10
|
+
* `d1_binding`. Dispatch declares that database as `spec.bindings.d1`; every
|
|
11
|
+
* other target shape (cron Workers, secrets surfaces) has no dispatch form.
|
|
12
|
+
*/
|
|
13
|
+
export declare function pagesTargetD1(manifest: Pick<Manifest, "targets">): string | undefined;
|
|
4
14
|
//# sourceMappingURL=migrate-dispatch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-dispatch.d.ts","sourceRoot":"","sources":["../../src/manifest/migrate-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EAEvB,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"migrate-dispatch.d.ts","sourceRoot":"","sources":["../../src/manifest/migrate-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EAEvB,KAAK,QAAQ,EACb,KAAK,UAAU,EAGhB,MAAM,0BAA0B,CAAC;AAOlC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,kBAAkB,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAgD9F;AAuDD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAIrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrangler-config.d.ts","sourceRoot":"","sources":["../../src/manifest/wrangler-config.ts"],"names":[],"mappings":"AAoBA,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAuBhF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SecretBinding } from "@m-kopa/launchpad-engine";
|
|
2
|
+
import type { AnyVersionLoadResult } from "../manifest/load.js";
|
|
3
|
+
export interface DeclaredSecrets {
|
|
4
|
+
readonly slug: string;
|
|
5
|
+
readonly apiVersion: string;
|
|
6
|
+
readonly bindings: readonly SecretBinding[];
|
|
7
|
+
}
|
|
8
|
+
/** Normalise a loaded manifest's secret declarations to v1-shaped bindings. */
|
|
9
|
+
export declare function declaredSecrets(loaded: Extract<AnyVersionLoadResult, {
|
|
10
|
+
kind: "ok";
|
|
11
|
+
}>): DeclaredSecrets;
|
|
12
|
+
//# sourceMappingURL=declared.d.ts.map
|
|
@@ -0,0 +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"}
|
package/dist/secrets/push.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type CliConfig } from "../config.js";
|
|
2
|
-
import { type AnyVersionLoadResult } from "../manifest/load.js";
|
|
3
2
|
import { type RedeployOptions, type RedeployDeps } from "../commands/redeploy.js";
|
|
4
3
|
import type { CliIo, ExitCode } from "../dispatcher.js";
|
|
5
4
|
export interface PushOptions {
|
|
@@ -26,11 +25,4 @@ export interface PushDeps {
|
|
|
26
25
|
readonly runRedeploy?: (opts: RedeployOptions, io: CliIo, deps?: RedeployDeps) => Promise<ExitCode>;
|
|
27
26
|
}
|
|
28
27
|
export declare function runSecretsPush(opts: PushOptions, io: CliIo, deps?: PushDeps): Promise<ExitCode>;
|
|
29
|
-
/** v2 manifests carry no `secrets.bindings`. On `origin: dispatch` the bot
|
|
30
|
-
* refuses too (PS-2740), so say so here before any .env is read; on a v2
|
|
31
|
-
* pages app say what this command reads today instead of reporting
|
|
32
|
-
* "no bindings declared", which would be false. Returns null for v1alpha1. */
|
|
33
|
-
export declare function refuseV2Manifest(loaded: Extract<AnyVersionLoadResult, {
|
|
34
|
-
kind: "ok";
|
|
35
|
-
}>, command: string, io: CliIo): ExitCode | null;
|
|
36
28
|
//# sourceMappingURL=push.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../src/secrets/push.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../src/secrets/push.ts"],"names":[],"mappings":"AAoDA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAY1D,OAAO,EAAe,KAAK,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC/F,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,CAAC;IAChC,sEAAsE;IACtE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC;IAC/B,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACxD,6CAA6C;IAC7C,QAAQ,CAAC,WAAW,CAAC,EAAE,CACrB,IAAI,EAAE,eAAe,EACrB,EAAE,EAAE,KAAK,EACT,IAAI,CAAC,EAAE,YAAY,KAChB,OAAO,CAAC,QAAQ,CAAC,CAAC;CACxB;AAiBD,wBAAsB,cAAc,CAClC,IAAI,EAAE,WAAW,EACjB,EAAE,EAAE,KAAK,EACT,IAAI,GAAE,QAAa,GAClB,OAAO,CAAC,QAAQ,CAAC,CAoNnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/secrets/status.ts"],"names":[],"mappings":"AAaA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"status.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;AAkBD,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,aAAa,EACnB,EAAE,EAAE,KAAK,EACT,IAAI,GAAE,UAAe,GACpB,OAAO,CAAC,QAAQ,CAAC,CAoEnB"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.
|
|
1
|
+
export declare const CLI_VERSION = "0.64.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 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.64.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|
|
@@ -56,10 +56,11 @@ change — and how do you know it's actually serving.
|
|
|
56
56
|
Keep the existing audience for ordinary content updates.
|
|
57
57
|
Do not broaden groups to bypass a validation or deployment failure.
|
|
58
58
|
If this update newly grants a company-wide audience, ask: **"Are you sure you want every employee to be able to open this app?"**
|
|
59
|
-
Name the app and groups, explain that any selected group grants access, and
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
Sensitive apps
|
|
59
|
+
Name the app and groups, explain that any selected group grants access, and wait for their explicit answer in this conversation.
|
|
60
|
+
If they decline, stop the grant and keep the existing audience.
|
|
61
|
+
For ordinary apps, continue after they agree; no browser confirmation, decision ID or extra acknowledgement flag is required.
|
|
62
|
+
Sensitive apps retain builder confirmation and platform-admin approval through the server's confirmation URL.
|
|
63
|
+
Never submit that browser decision on their behalf; retry only after the required people complete it.
|
|
63
64
|
Do not review or recertify unchanged existing audiences as part of a routine update.
|
|
64
65
|
Catalogue visibility controls discovery, not access; platform administrators retain entry independently of app groups.
|
|
65
66
|
|
|
@@ -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.64.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|
|
@@ -48,12 +48,16 @@ Never select `S_ALL_Employees`, `S_ALL`, or another broad group to fix a missing
|
|
|
48
48
|
|
|
49
49
|
Before requesting a new company-wide grant, ask the human exactly: **"Are you sure you want every employee to be able to open this app?"**
|
|
50
50
|
Name the app and the selected groups, and explain that membership in any selected group grants access.
|
|
51
|
-
A general instruction to deploy, a generic yes flag, and a previous approval for another app or
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
A general instruction to deploy, a generic yes flag, and a previous approval for another app or audience do not answer this question.
|
|
52
|
+
Wait for the human's explicit answer in this conversation before deploying the company-wide grant.
|
|
53
|
+
If they decline, stop the grant and keep the existing audience.
|
|
54
|
+
For ordinary apps, their answer is the confirmation: continue the deployment without a browser, confirmation ID, token or extra acknowledgement flag.
|
|
55
|
+
The server does not attest to this conversation; do not claim that it enforces the human decision.
|
|
56
|
+
Sensitive apps retain the separate builder-confirmation and platform-admin approval requirement.
|
|
57
|
+
If the server returns `audience_confirmation_required` with `requires_admin_approval: true`, give the human its URL and retry only after the required people complete approval.
|
|
58
|
+
Never submit that browser decision on their behalf.
|
|
59
|
+
If the error does not require admin approval, report that the server needs updating rather than telling the user a browser visit is part of the ordinary flow.
|
|
60
|
+
A changed audience needs an explicit answer for that audience; unchanged existing audiences do not require recertification.
|
|
57
61
|
|
|
58
62
|
Catalogue listing controls discovery only.
|
|
59
63
|
It neither grants access nor makes an app private.
|
|
@@ -145,25 +149,29 @@ resolve it by passing `--type` explicitly or skipping detection with
|
|
|
145
149
|
launchpad init
|
|
146
150
|
```
|
|
147
151
|
|
|
148
|
-
New `static` and `react` apps default to Workers dispatch with gateway authentication.
|
|
152
|
+
New `static`, `react` and `react+api` apps default to Workers dispatch with gateway authentication.
|
|
149
153
|
The CLI writes a v2 manifest and keeps the detected build settings and access groups.
|
|
150
|
-
Gateway placement is automatic for new gateway-fronted apps, including
|
|
154
|
+
Gateway placement is automatic for new gateway-fronted apps, including API apps.
|
|
151
155
|
The platform selects the configured gateway with the most free hostname slots, counting pending deployments as reservations.
|
|
152
156
|
Do not ask the author to choose a gateway or add gateway project names to the manifest.
|
|
153
157
|
Existing apps and retries retain their assigned gateway and public URL.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
An older manifest that only implies Pages (v1, or v2 without `spec.origin`) is converted to dispatch automatically on the first `launchpad deploy` of an unregistered static, React or React API app.
|
|
159
|
+
Tell the author when deploy reports the conversion, and point them at the backup in `.launchpad/manifest-before-dispatch.yaml`.
|
|
160
|
+
`launchpad migrate --origin dispatch --dry-run` runs the same check without deploying, if the author wants to see it first.
|
|
161
|
+
If deploy prints `Not converted to Workers dispatch`, the deploy continues on Pages; tell the author the reason, and do not delete files or change `appType` to force the conversion.
|
|
158
162
|
Do not regenerate the manifest with `init`, broaden its groups, or change private ownership to work around the quota.
|
|
159
|
-
If
|
|
160
|
-
|
|
163
|
+
If `launchpad migrate` refuses functions, custom runtime configuration or bindings, explain the named limitation; a normal `launchpad deploy` still works on Pages.
|
|
164
|
+
For a React API app, `functions/` converts as-is and the dispatch build compiles it; its D1 becomes `spec.bindings.d1` and declared secrets become `secret_text` env vars.
|
|
165
|
+
When deploy says secrets carried over, tell the author to run `launchpad secrets push` once `launchpad status` shows the first delivery; pushing earlier fails with `dispatch_script_not_delivered`.
|
|
166
|
+
Still refused on dispatch, with the reason printed: wrangler settings beyond name, compatibility date/flags, `pages_build_output_dir` and one D1 (so KV, R2, services, vars, Durable Objects, queues), a root `functions/_middleware` or root-level catch-all that would claim `/*`, a hand-written `_worker.js`, and functions that compile to more than one module.
|
|
167
|
+
A function that calls `next()` to fall through to a static asset does not work on dispatch, because the Worker has no asset fallback.
|
|
168
|
+
Changing `appType` to `react` would not convert the API; do not suggest it.
|
|
161
169
|
Do not use this command to migrate a registered app or delete its Pages resources.
|
|
162
170
|
If the pool is full or inventory cannot be read, report the capacity error; do not fall back to Pages or change authentication to bypass it.
|
|
163
171
|
Do not replace that manifest with a v1 example or add `--origin pages` just because an older app uses Pages.
|
|
164
172
|
Use `--origin pages` only when Pages is deliberately required.
|
|
165
|
-
|
|
166
|
-
Dispatch supports plain-text environment variables,
|
|
173
|
+
Containers keep their existing deployment path.
|
|
174
|
+
Dispatch supports plain-text environment variables and `secret_text` env vars; after the first deploy is delivered, `launchpad secrets push` sets the secret values, live immediately with no redeploy.
|
|
167
175
|
|
|
168
176
|
This is interactive by default. It will ask for:
|
|
169
177
|
|
|
@@ -496,6 +504,22 @@ targets:
|
|
|
496
504
|
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`.
|
|
497
505
|
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.
|
|
498
506
|
|
|
507
|
+
**Dispatch form.** A v2 `react+api` app on `origin: dispatch` has no `targets`; it declares the same database as `spec.bindings.d1`:
|
|
508
|
+
|
|
509
|
+
```yaml
|
|
510
|
+
spec:
|
|
511
|
+
appType: react+api
|
|
512
|
+
auth: gateway
|
|
513
|
+
origin: dispatch
|
|
514
|
+
bindings:
|
|
515
|
+
d1: DB # env binding name your Worker code reads
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
The bot create-or-adopts the slug-named D1, records its UUID, and binds it on every Worker upload (no `wrangler.toml` needed).
|
|
519
|
+
If the database cannot be resolved the delivery refuses with `d1-unresolved` and nothing uploads.
|
|
520
|
+
`bindings.d1` is refused on a v2 pages app and on any appType other than `react+api`.
|
|
521
|
+
`launchpad migrate --origin dispatch` and a first `launchpad deploy` write this field from a v1 pages target `d1_binding` or a single wrangler `d1_databases` entry.
|
|
522
|
+
|
|
499
523
|
**Empty-DB gotcha:** the platform provisions an **empty** database — schema
|
|
500
524
|
and migrations are the app's job. The usual pattern is idempotent
|
|
501
525
|
`CREATE TABLE IF NOT EXISTS …` at runtime (startup / first request); there
|
|
@@ -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.64.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.64.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.64.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.64.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|
|
@@ -215,11 +215,12 @@ Otherwise finish with:
|
|
|
215
215
|
|
|
216
216
|
## New app defaults
|
|
217
217
|
|
|
218
|
-
`launchpad init` creates new static and React apps on Workers dispatch with gateway authentication.
|
|
218
|
+
`launchpad init` creates new static, React and React API apps on Workers dispatch with gateway authentication.
|
|
219
219
|
The generated v2 manifest preserves the detected build settings and the chosen access groups.
|
|
220
220
|
Use the normal `launchpad deploy` flow; authors do not create Cloudflare projects or choose a gateway.
|
|
221
221
|
The platform assigns new gateway-fronted apps to the configured gateway with the most free hostname slots, including pending reservations.
|
|
222
222
|
Existing apps keep their assigned gateway, URL and access groups.
|
|
223
|
-
|
|
223
|
+
Registered apps keep their current origin.
|
|
224
|
+
An older manifest for an unregistered static, React or React API app is converted to dispatch on its first `launchpad deploy`; a React API app with KV, R2 or other unsupported wrangler bindings stays on Pages with the reason printed.
|
|
224
225
|
An explicit `--origin pages` is available when required.
|
|
225
|
-
Dispatch
|
|
226
|
+
Dispatch apps declare secrets as `secret_text` env vars and set them with `launchpad secrets push` once the first deploy has been delivered.
|
|
@@ -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.64.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.64.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!-- BEGIN shell-contract (managed by scripts/sync-skill-contract.sh — edit skills/_partials/shell-contract.md) -->
|