@hype-stack/cli 1.3.0 → 1.3.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.
- package/dist/{cli-CZanCLn9.js → cli-DaiPw0YU.js} +1608 -1532
- package/dist/commands/onboard.d.ts +2 -0
- package/dist/commands/onboard.d.ts.map +1 -1
- package/dist/config/bin.js +1 -1
- package/dist/core/env-secrets.d.ts.map +1 -1
- package/dist/core/env-setup.d.ts +23 -4
- package/dist/core/env-setup.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ import { OnboardOptions } from '../types/types.js';
|
|
|
8
8
|
* (declared per pack, see `core/env-setup.ts`) and only two kinds get asked
|
|
9
9
|
* about: `required`, which is prompted, and `optional`, which is offered once per
|
|
10
10
|
* feature. Defaults are copied and generated secrets are rolled, both silently.
|
|
11
|
+
* Values already filled in are still offered, one yes/no per feature defaulting
|
|
12
|
+
* to no, so re-running the command can rotate a key or revisit a skipped feature.
|
|
11
13
|
*
|
|
12
14
|
* Docker and database migrations are NOT part of onboarding: `create`,
|
|
13
15
|
* `compose`, and `template` all run them as part of their own install flow.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboard.d.ts","sourceRoot":"","sources":["../../src/commands/onboard.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAiB,cAAc,EAAe,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"onboard.d.ts","sourceRoot":"","sources":["../../src/commands/onboard.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAiB,cAAc,EAAe,MAAM,mBAAmB,CAAC;AAsBpF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,cAAc,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6DhF"}
|
package/dist/config/bin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-secrets.d.ts","sourceRoot":"","sources":["../../src/core/env-secrets.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,qEAAqE;IACrE,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,WAAW,GAAG,IAAI,GACzB,OAAO,CAAC,eAAe,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"env-secrets.d.ts","sourceRoot":"","sources":["../../src/core/env-secrets.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,qEAAqE;IACrE,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,WAAW,GAAG,IAAI,GACzB,OAAO,CAAC,eAAe,EAAE,CAAC,CAyC5B"}
|
package/dist/core/env-setup.d.ts
CHANGED
|
@@ -25,6 +25,24 @@ export declare const BASE_ENV_SETUP: Record<string, {
|
|
|
25
25
|
setup: EnvVarSetup;
|
|
26
26
|
group?: string;
|
|
27
27
|
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Fallback setup requirements for the vars the packs declare in their manifests.
|
|
30
|
+
*
|
|
31
|
+
* The manifest declarations recorded in `stack.json` are the source of truth,
|
|
32
|
+
* but a project installed with an older CLI has nothing recorded, and hiding
|
|
33
|
+
* WorkOS keys or Stripe secrets from onboarding because of a version gap would
|
|
34
|
+
* make the command lie by omission. This table is the safety net: it mirrors
|
|
35
|
+
* the manifests and only kicks in for keys `stack.json` says nothing about.
|
|
36
|
+
*
|
|
37
|
+
* Unlike {@link BASE_ENV_SETUP}, these vars belong to packs the project may not
|
|
38
|
+
* have, so each entry is gated on its section being declared by an installed
|
|
39
|
+
* pack. A leftover WorkOS block after switching to Better Auth stays silent.
|
|
40
|
+
*/
|
|
41
|
+
export declare const PACK_ENV_SETUP: Record<string, {
|
|
42
|
+
section: EnvSection;
|
|
43
|
+
setup: EnvVarSetup;
|
|
44
|
+
group?: string;
|
|
45
|
+
}>;
|
|
28
46
|
/**
|
|
29
47
|
* Flatten a pack's manifest env entries into the per-var records `stack.json`
|
|
30
48
|
* carries. Plain-string vars produce nothing, which is what keeps the recorded
|
|
@@ -43,11 +61,12 @@ export declare function collectPackEnvVars(env: {
|
|
|
43
61
|
*/
|
|
44
62
|
export declare function mergeEnvVars(previous: OnboardEnvVar[], next: OnboardEnvVar[]): OnboardEnvVar[];
|
|
45
63
|
/**
|
|
46
|
-
* Resolve one `.env.example` key to its setup requirement. Pack declarations
|
|
47
|
-
*
|
|
48
|
-
*
|
|
64
|
+
* Resolve one `.env.example` key to its setup requirement. Pack declarations
|
|
65
|
+
* recorded in `stack.json` win, then the base table, then the pack fallback
|
|
66
|
+
* table (only when its section belongs to an installed pack). Returns null for
|
|
67
|
+
* a plain default, which the caller copies without asking.
|
|
49
68
|
*/
|
|
50
|
-
export declare function resolveEnvVarSetup(key: string, recorded: OnboardEnvVar[]): OnboardEnvVar | null;
|
|
69
|
+
export declare function resolveEnvVarSetup(key: string, recorded: OnboardEnvVar[], installedEnvSections?: EnvSection[]): OnboardEnvVar | null;
|
|
51
70
|
/**
|
|
52
71
|
* A random value for a `generated` var. URL-safe base64 over 32 bytes: long
|
|
53
72
|
* enough for cookie and token signing, and free of the quoting problems that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-setup.d.ts","sourceRoot":"","sources":["../../src/core/env-setup.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CA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,EAAO,GACtC,aAAa,GAAG,IAAI,CAatB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAIlF"}
|
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-
|
|
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-DaiPw0YU.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 };
|