@m-kopa/launchpad-cli 0.77.0 → 0.79.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cli.js +1444 -254
  3. package/dist/commands/deploy-flags.d.ts +2 -0
  4. package/dist/commands/deploy-flags.d.ts.map +1 -1
  5. package/dist/commands/deploy.d.ts.map +1 -1
  6. package/dist/commands/destroy.d.ts +36 -0
  7. package/dist/commands/destroy.d.ts.map +1 -1
  8. package/dist/commands/init.d.ts +2 -0
  9. package/dist/commands/init.d.ts.map +1 -1
  10. package/dist/commands/skills.d.ts +1 -1
  11. package/dist/commands/skills.d.ts.map +1 -1
  12. package/dist/commands/status.d.ts +13 -1
  13. package/dist/commands/status.d.ts.map +1 -1
  14. package/dist/deploy/preflight.d.ts +134 -0
  15. package/dist/deploy/preflight.d.ts.map +1 -0
  16. package/dist/deploy/verify-deploy.d.ts.map +1 -1
  17. package/dist/destroy-failure.d.ts +23 -0
  18. package/dist/destroy-failure.d.ts.map +1 -0
  19. package/dist/scaffold/react-api-starter-files.d.ts +7 -0
  20. package/dist/scaffold/react-api-starter-files.d.ts.map +1 -0
  21. package/dist/scaffold/react-api-starter.d.ts +26 -0
  22. package/dist/scaffold/react-api-starter.d.ts.map +1 -0
  23. package/dist/version.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/skills/README.md +1 -0
  26. package/skills/launchpad-content-pr/SKILL.md +1 -1
  27. package/skills/launchpad-deploy/SKILL.md +159 -73
  28. package/skills/launchpad-deploy-status/SKILL.md +39 -22
  29. package/skills/launchpad-destroy/SKILL.md +20 -13
  30. package/skills/launchpad-fix-findings/SKILL.md +218 -0
  31. package/skills/launchpad-identity/SKILL.md +82 -2
  32. package/skills/launchpad-ingest/SKILL.md +1 -1
  33. package/skills/launchpad-integration-contract/SKILL.md +1 -1
  34. package/skills/launchpad-onboard/SKILL.md +2 -2
  35. package/skills/launchpad-report/SKILL.md +1 -1
  36. package/skills/launchpad-status/SKILL.md +6 -5
package/CHANGELOG.md CHANGED
@@ -6,6 +6,27 @@ 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.79.0 - 2026-11-17
10
+
11
+ ### Added
12
+
13
+ - The Claude Code skills carry the "build it safe" guidance. `launchpad-deploy` now has a "Build it safe" section (rules to follow before an app handles real data) and a data-file check before the first deploy. `launchpad-identity` adds patterns for using the signed-in user's identity safely. A new skill, `launchpad-fix-findings`, walks an app author through fixing security and quality findings. `launchpad skills` installs and updates it with the others (one line added to the bundled skills list). No other CLI behaviour changes.
14
+
15
+ ## 0.78.0 - 2026-11-17
16
+
17
+ ### Fixed
18
+
19
+ - `launchpad deploy` checks the bundle before uploading anything for two shapes that fail the delivery build (rollout journeys 4 and 5). It refuses (exit `1`, nothing uploaded) only when the build is certain to fail, and warns otherwise. A `bun.lock` with `"lockfileVersion"` 2 or newer, which the build's bun 1.3.4 cannot read, is refused only for a dispatch app whose build runs `bun install --frozen-lockfile` on that file (a build command or a react+api `functions/` folder, bun as the package manager, the lockfile at `spec.build.root_dir`); on a Pages-origin app or where no bun install is certain it warns, and where no install runs it says nothing (fix: `npx --yes bun@1.3.4 install`). A dispatch react+api app that ships no API router of its own and whose `package.json` is missing, not valid JSON, or lacks `hono` or `@m-kopa/platform-auth` (imported by the seeded `functions/api/[[path]].ts`) is refused; a package missing for a router the app ships, or listed only in a workspace-root `package.json`, warns. Path aliases, `tsconfig` `paths` and `baseUrl`, `node:`/`cloudflare:`/`bun:` and Node built-ins, and type-only imports are not treated as packages. The new `--allow-preflight-failure` flag turns these refusals into warnings, and each refusal names it.
20
+ - When a first deploy stops waiting at `Still provisioning`, its last line now says the deploy did not finish and how to check it (`launchpad watch <slug>` / `launchpad status <slug>`). The exit code stays `0`, as documented.
21
+ - `launchpad status` no longer tells the owner of a failed Workers dispatch app to run `launchpad recover`, which always refuses on dispatch. It names the route that works instead.
22
+ - `launchpad destroy` no longer says "on merge of the destroy PR" when the platform took the per-app workspace path, which opens no PR. A pre-Terraform teardown reports that it is done.
23
+ - `launchpad status` on a `destroy_failed` app now shows which teardown step failed, the reason the platform recorded, and the next step. Before, it printed only "destroy FAILED" although the platform had the reason (16 Nov 2026: a destroy failed in its cleanup after Terraform destroy passed, and the owner could not see why). `--json` carries the reason as `failedReason` and `destroyFailure`.
24
+
25
+ ### Added
26
+
27
+ - `launchpad init --type react+api` now writes a starter app beside the manifest, so the first deploy builds without a failed attempt: `package.json` (with `hono`, `@m-kopa/platform-auth`, React, Vite and a `build` script), a `bun.lock` written by bun 1.3.4 (`lockfileVersion` 1, the format the delivery build reads), `tsconfig.json`, the Hono router `functions/api/[[path]].ts`, `index.html`, `src/main.jsx` and `vite.config.js`, plus `spec.build` in the manifest. The files are embedded in the CLI, so init needs no network. It writes nothing into a folder that already has a `package.json`, a lockfile or a `vite.config`, and never overwrites a file. `--no-starter` writes only the manifest. With `--secure-template`, the secure router replaces the starter router.
28
+ - The Claude Code skills match the CLI again. `launchpad-deploy` now gives the short `launchpad init --type react+api` path (the long manual recipe stays only as a fallback for an existing folder), describes the deploy pre-flight refusals and `--allow-preflight-failure`, and says that a first deploy that stops at `Still provisioning` ends with `Deploy NOT finished`. `launchpad-deploy-status` and `launchpad-destroy` say that an owner can destroy an app whose first deploy failed at `bot_pr_ci_failed`, that `launchpad status` no longer suggests `recover` for a dispatch app, and that a `destroy_failed` app shows the failed step. `launchpad-status` calls `recover` a Pages-app verb.
29
+
9
30
  ## 0.77.0 - 2026-11-17
10
31
 
11
32
  ### Fixed