@hype-stack/cli 1.4.7 → 1.5.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.
@@ -1,4 +1,4 @@
1
- import { ComposeOptions, PackListItem, PackSelection, SlotsByPack } from '../types/types.js';
1
+ import { ComposeOptions, PackListItem, PackSelection } from '../types/types.js';
2
2
  export declare function composeCommand(options?: ComposeOptions): Promise<void>;
3
3
  /**
4
4
  * Names of layout packs pinned to the admin slot that the admin app can't render. A layout is
@@ -13,11 +13,4 @@ export declare function findIncompatibleAdminLayouts(selection: PackSelection[],
13
13
  * installs without a slot, which preserves the pre-slot behavior of installing every file.
14
14
  */
15
15
  export declare function parsePackSelectionArg(raw: string): PackSelection;
16
- /** Deduplicate selected pack names, preserving the first-seen order for the install plan. */
17
- export declare function uniqueNames(selection: PackSelection[]): string[];
18
- /**
19
- * Build the per-pack slot map from the selection. Packs without a slot are left out so the
20
- * installer treats them as install-everything. A layout pack picked for both slots gets both.
21
- */
22
- export declare function buildSlotsByPack(selection: PackSelection[]): SlotsByPack;
23
16
  //# sourceMappingURL=compose.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../../src/commands/compose.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EAEb,WAAW,EAEZ,MAAM,mBAAmB,CAAC;AAqB3B,wBAAsB,cAAc,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8QhF;AA0HD;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAUxG;AAID;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAIhE;AAED,6FAA6F;AAC7F,wBAAgB,WAAW,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,CAShE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,WAAW,CAYxE"}
1
+ {"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../../src/commands/compose.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAqB3B,wBAAsB,cAAc,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8RhF;AA0HD;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAUxG;AAID;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAIhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/commands/template.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAIV,sBAAsB,EAGvB,MAAM,mBAAmB,CAAC;AAoB3B;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CA0XzF"}
1
+ {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/commands/template.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAIV,sBAAsB,EAGvB,MAAM,mBAAmB,CAAC;AAoB3B;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAwYzF"}
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { d as e, n as t, t as n, u as r } from "../cli-DzI5NPTZ.js";
2
+ import { d as e, n as t, t as n, u as r } from "../cli-wfm7cYan.js";
3
3
  import { z as i } from "zod";
4
4
  import * as a from "@sentry/node";
5
5
  //#region src/core/sentry.ts
@@ -14,6 +14,14 @@ export type CodegenCommandRunner = (command: string, args: string[], options: {
14
14
  * that can't run (declined, no backend, no database) falls back to printed
15
15
  * instructions instead of failing the install.
16
16
  *
17
+ * Every Prisma command runs captured behind a spinner, never streamed. Prisma
18
+ * is loud (config banners, drift dumps, generator ads), and the user only needs
19
+ * the outcome: one line on success, the real error on failure, and a short
20
+ * plain-language explanation when drift demands a reset. Capturing is safe on
21
+ * Prisma 7 because `migrate dev` aborts on drift instead of prompting; its only
22
+ * remaining prompt (data-loss confirmation) is detected and handed to the user
23
+ * to run interactively.
24
+ *
17
25
  * Returns true only when `migrate dev` applied the schema, so callers know the
18
26
  * migrations exist on disk and can mirror them into the test database.
19
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/core/codegen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAKnD,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;AA2CtH;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,uGAAuG;IACvG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sGAAsG;IACtG,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,uGAAuG;IACvG,YAAY,CAAC,EAAE,oBAAoB,CAAC;CACrC,GAAG,OAAO,CAAC,OAAO,CAAC,CA0GnB"}
1
+ {"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/core/codegen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAKnD,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;AA2DtH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,uGAAuG;IACvG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sGAAsG;IACtG,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,uGAAuG;IACvG,YAAY,CAAC,EAAE,oBAAoB,CAAC;CACrC,GAAG,OAAO,CAAC,OAAO,CAAC,CAkHnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"codemods.d.ts","sourceRoot":"","sources":["../../src/core/codemods.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,QAAQ,EACR,UAAU,EACV,UAAU,EACX,MAAM,mBAAmB,CAAC;AAgC3B,iGAAiG;AACjG,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAA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AM,CAAC;IACpB,wEAAwE;IACxE,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEpF;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEtF;AA0GD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,iBAAiB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAsB7G;AAuED,UAAU,uBAAuB;IAC/B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBtF;AAgFD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIhG;AAyGD;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE;IACxC,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwBhB"}
@@ -20,6 +20,8 @@ export interface PackChoiceGroup {
20
20
  }
21
21
  /** Fixed order the picker walks the modules in: foundation first, then shell, then add-ons. */
22
22
  export declare const CATEGORY_ORDER: PackCategory[];
23
+ /** The layout that should be highlighted by default, and the admin app's fallback shell. */
24
+ export declare const DEFAULT_LAYOUT = "layout-basic";
23
25
  export interface BuildPackChoiceGroupsOptions {
24
26
  /**
25
27
  * Whether the project has an `apps/admin` to install a layout into. When true and
@@ -1 +1 @@
1
- {"version":3,"file":"pack-categories.d.ts","sourceRoot":"","sources":["../../src/core/pack-categories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE9E,sDAAsD;AACtD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,IAAI,EAAE,UAAU,CAAC;IACjB,qDAAqD;IACrD,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,2EAA2E;IAC3E,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,+FAA+F;AAC/F,eAAO,MAAM,cAAc,EAAE,YAAY,EAAqC,CAAC;AAiB/E,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,YAAY,EAAE,EAC1B,OAAO,GAAE,4BAAiC,GACzC,eAAe,EAAE,CAgCnB"}
1
+ {"version":3,"file":"pack-categories.d.ts","sourceRoot":"","sources":["../../src/core/pack-categories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE9E,sDAAsD;AACtD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,IAAI,EAAE,UAAU,CAAC;IACjB,qDAAqD;IACrD,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,2EAA2E;IAC3E,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,+FAA+F;AAC/F,eAAO,MAAM,cAAc,EAAE,YAAY,EAAqC,CAAC;AAc/E,4FAA4F;AAC5F,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAE7C,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,YAAY,EAAE,EAC1B,OAAO,GAAE,4BAAiC,GACzC,eAAe,EAAE,CAgCnB"}
@@ -0,0 +1,30 @@
1
+ import { PackListItem, PackSelection, SlotsByPack } from '../types/types.js';
2
+ /** Deduplicate selected pack names, preserving the first-seen order for the install plan. */
3
+ export declare function uniqueNames(selection: PackSelection[]): string[];
4
+ /**
5
+ * Build the per-pack slot map from the selection. Packs without a slot are left out so the
6
+ * installer treats them as install-everything. A layout pack picked for both slots gets both.
7
+ */
8
+ export declare function buildSlotsByPack(selection: PackSelection[]): SlotsByPack;
9
+ /**
10
+ * Resolve which app shells each selected layout installs into.
11
+ *
12
+ * Without a slot, a layout installs its admin-slotted files into any project that has an
13
+ * `apps/admin`. That's right for a layout the admin app can mount and wrong for one it
14
+ * can't: `compose --packs layout-native-app-shell` would write a frontend-only shell into
15
+ * the admin app, which then fails to compile against modules that only exist on the
16
+ * frontend. So an admin-incompatible layout gets pinned to the frontend, and the admin
17
+ * app picks up {@link DEFAULT_LAYOUT} instead.
18
+ *
19
+ * The substitution only fires when nothing else already covers the admin slot: an explicit
20
+ * `@admin` pick, another admin-compatible layout in the same selection, or one installed by
21
+ * an earlier run. Leaving the admin app with no layout at all is not an option, since the
22
+ * starter's admin features import their shells (`components/layouts/shells/*`) from it.
23
+ */
24
+ export declare function resolveLayoutSlots(args: {
25
+ selection: PackSelection[];
26
+ packs: PackListItem[];
27
+ hasAdminApp: boolean;
28
+ installed: string[];
29
+ }): PackSelection[];
30
+ //# sourceMappingURL=pack-slots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pack-slots.d.ts","sourceRoot":"","sources":["../../src/core/pack-slots.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAElF,6FAA6F;AAC7F,wBAAgB,WAAW,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,CAShE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,WAAW,CAYxE;AA0BD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,GAAG,aAAa,EAAE,CAoBlB"}
@@ -34,15 +34,44 @@ export interface PostSetupOptions {
34
34
  export declare function areMigrationsApplied(targetDir: string): Promise<boolean>;
35
35
  /** Apply pending migrations via the backend's `migration:latest` script. Returns success. */
36
36
  export declare function runMigrations(targetDir: string): Promise<boolean>;
37
+ /**
38
+ * Whether the output blames the test database's own contents rather than the
39
+ * migrations. Both sides of the same problem are covered, because the compose
40
+ * volumes have fixed names and a test database left behind by an earlier project
41
+ * on this machine is picked up as-is:
42
+ *
43
+ * - What `migrate status` reports up front: a migration recorded as failed, or
44
+ * migrations applied to the database that this project has no copy of on disk.
45
+ * - What `migrate deploy` reports after the fact: P3009 for that same failed
46
+ * migration, P3005 for a schema with no history, and "already exists" when a
47
+ * migration lands on a table the previous project left there.
48
+ *
49
+ * Pending migrations are deliberately not stale. That is what an empty database
50
+ * looks like, and `migrate status` exits non-zero for it just the same.
51
+ */
52
+ export declare function isStaleTestDatabase(output: string): boolean;
53
+ /**
54
+ * The database URL the backend's `test:migrate` script connects to. The template
55
+ * inlines it in the script itself (`DATABASE_URL=... prisma migrate deploy`)
56
+ * because `prisma.config.ts` only ever loads `.env`, never `.env.test`. Reading
57
+ * it back out of the script means a probe talks to exactly the database the
58
+ * migration will, and `ports.ts` already keeps the script in sync when the test
59
+ * port has to move.
60
+ *
61
+ * Null when the script is missing or shaped differently, which turns the probe
62
+ * off rather than guessing at a URL.
63
+ */
64
+ export declare function parseTestDatabaseUrl(scripts: Record<string, string> | undefined): string | null;
37
65
  /**
38
66
  * Bring up the template's isolated test stack and prepare its database, so
39
67
  * `pnpm test` passes right after the CLI finishes instead of failing until
40
68
  * someone discovers `test:setup`. Piggybacks on the Docker consent the user
41
- * already gave for the dev stack in the same run, so it never prompts on its
42
- * own. Skipped silently when the project ships no test compose file. Failures
43
- * warn and print the manual command; they never fail the install.
69
+ * already gave for the dev stack in the same run, so the only thing it asks on
70
+ * its own is whether to wipe a test database left over from another project.
71
+ * Skipped silently when the project ships no test compose file. Failures warn
72
+ * and print the manual command; they never fail the install.
44
73
  */
45
- export declare function setupTestDatabase(targetDir: string, options?: PostSetupOptions): Promise<boolean>;
74
+ export declare function setupTestDatabase(targetDir: string, skipPrompts: boolean, options?: PostSetupOptions): Promise<boolean>;
46
75
  /**
47
76
  * Start Docker services (if the user agrees) and wait for Postgres to accept
48
77
  * connections. Returns true when Postgres is ready, false when the user
@@ -1 +1 @@
1
- {"version":3,"file":"post-setup.d.ts","sourceRoot":"","sources":["../../src/core/post-setup.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,qIAIvB,CAAC;AASX,wBAAsB,eAAe,IAAI,OAAO,CAA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, i as n, l as r, o as i, r as a, s as o, t as s } from "./cli-DzI5NPTZ.js";
1
+ import { a as e, c as t, i as n, l as r, o as i, r as a, s as o, t as s } from "./cli-wfm7cYan.js";
2
2
  export { i as composeCommand, r as createCommand, s as createProgram, e as deployCommand, o as ensureInit, t as initCommand, n as loginCommand, a as logoutCommand };
@@ -21,10 +21,10 @@ export declare function exec(command: string, args: string[], options: {
21
21
  }): Promise<ExecResult>;
22
22
  /**
23
23
  * Run a command with stdio inherited from the parent terminal. Use this for
24
- * commands that need a real TTY on stdin, such as `prisma migrate dev`, which
25
- * aborts with "environment is non-interactive" the moment it finishes loading
26
- * the schema when stdin is piped/ignored. Output is not captured, it streams
27
- * straight to the user, so stdout/stderr in the result are empty.
24
+ * commands that must talk to the user directly, such as provider login flows
25
+ * (`wrangler login`, `railway login`) that open a browser and prompt. Output
26
+ * is not captured, it streams straight to the user, so stdout/stderr in the
27
+ * result are empty.
28
28
  *
29
29
  * Headless runs fall back to the captured `exec`: there is no TTY to inherit,
30
30
  * and inheriting would dump the child's stdout onto the MCP protocol channel.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hype-stack/cli",
3
- "version": "1.4.7",
3
+ "version": "1.5.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",