@hype-stack/cli 1.4.7 → 1.5.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.
@@ -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-DkPX-eLF.js";
3
3
  import { z as i } from "zod";
4
4
  import * as a from "@sentry/node";
5
5
  //#region src/core/sentry.ts
@@ -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"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
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-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-DkPX-eLF.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 };
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.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",