@hype-stack/cli 1.7.0 → 1.8.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 +1 @@
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,CA4ShF;AAuJD;;;;;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
+ {"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../../src/commands/compose.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAqB3B,wBAAsB,cAAc,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4ShF;AAgLD;;;;;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":"AAuBA,OAAO,KAAK,EAIV,sBAAsB,EAGvB,MAAM,mBAAmB,CAAC;AAoB3B;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAyYzF"}
1
+ {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/commands/template.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAIV,sBAAsB,EAGvB,MAAM,mBAAmB,CAAC;AAoB3B;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAyYzF"}
@@ -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-Bud76Eow.js";
2
+ import { d as e, n as t, t as n, u as r } from "../cli-Dn3MMgkO.js";
3
3
  import { z as i } from "zod";
4
4
  import * as a from "@sentry/node";
5
5
  //#region src/core/sentry.ts
@@ -66,6 +66,25 @@ export interface FamilyVariantConflict {
66
66
  /** The conflicting pack names, in selection order. */
67
67
  packs: string[];
68
68
  }
69
+ /** A candidate pack that clashes with an already-present variant of the same family. */
70
+ export interface FamilyReplacement {
71
+ family: string;
72
+ /** The already-present same-family pack the candidate would replace. */
73
+ replaces: string;
74
+ }
75
+ /**
76
+ * Map each candidate that is a same-family sibling of an already-present pack to
77
+ * the pack it would clash with. "Present" covers whatever the caller already
78
+ * committed to: chosen template slot variants, fixed template packs, installed
79
+ * packs. Since same-family variants ship the same files behind different
80
+ * engines, a family with a representative must not gain a second one, so
81
+ * callers hide these candidates (interactive) or fail fast (`--packs`). Layout
82
+ * packs are exempt for the same reason as in
83
+ * {@link findFamilyVariantConflicts}: the layout family installs per app shell.
84
+ * Any family, present or future, gets this for free because membership comes
85
+ * from the backend's `family` field.
86
+ */
87
+ export declare function findFamilyReplacements(candidates: string[], present: string[], packs: PackListItem[]): Map<string, FamilyReplacement>;
69
88
  /**
70
89
  * Same-family variants ship the same files behind different engines, so
71
90
  * installing two of them stacks conflicting copies of every shared path. This
@@ -1 +1 @@
1
- {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../src/core/variants.ts"],"names":[],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C;CAClB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,EAAE,MAAM,EAAE,EACjB,KAAK,EAAE,YAAY,EAAE,GACpB,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAoBhC;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,aAAa,EAAE,MAAM,EAAE,EACvB,KAAK,EAAE,YAAY,EAAE,GACpB,qBAAqB,EAAE,CAezB"}
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-Bud76Eow.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-Dn3MMgkO.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.7.0",
3
+ "version": "1.8.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",