@hype-stack/cli 1.4.2 → 1.4.3

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.
@@ -19,7 +19,7 @@ import { McpServer as ue } from "@modelcontextprotocol/sdk/server/mcp.js";
19
19
  import { StdioServerTransport as de } from "@modelcontextprotocol/sdk/server/stdio.js";
20
20
  import { Writable as fe } from "node:stream";
21
21
  //#region src/constants/constants.ts
22
- var pe = "1.4.2", me = "BetterTyped/hype-stack", he = "main", ge = `gh:${me}`, _e = "HYPE_STACK_TEMPLATE_REF", ve = "/cli/template-channel", ye = "stack.json", be = "/schema/stack.json", xe = "https://api.hype-stack.dev", Se = "HYPE_STACK_API_URL", Ce = "https://www.hype-stack.dev", we = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/, Te = [
22
+ var pe = "1.4.3", me = "BetterTyped/hype-stack", he = "main", ge = `gh:${me}`, _e = "HYPE_STACK_TEMPLATE_REF", ve = "/cli/template-channel", ye = "stack.json", be = "/schema/stack.json", xe = "https://api.hype-stack.dev", Se = "HYPE_STACK_API_URL", Ce = "https://www.hype-stack.dev", we = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/, Te = [
23
23
  {
24
24
  value: "cursor",
25
25
  label: "Cursor",
@@ -5398,7 +5398,7 @@ async function Gl() {
5398
5398
  ref: e,
5399
5399
  source: "env"
5400
5400
  };
5401
- if (Rl === "1.4.2") return {
5401
+ if (Rl === "1.4.3") return {
5402
5402
  ref: he,
5403
5403
  source: "dev"
5404
5404
  };
@@ -9272,7 +9272,7 @@ function xh(e) {
9272
9272
  }
9273
9273
  function Sh(e) {
9274
9274
  return {
9275
- ...Object.fromEntries(e.blank.map((e) => [e, ""])),
9275
+ ...Object.fromEntries(e.blank.map((e) => [e, " "])),
9276
9276
  ...e.seeded,
9277
9277
  ...e.forwarded,
9278
9278
  ...e.managed
@@ -9756,7 +9756,7 @@ function qh(e) {
9756
9756
  let t = [];
9757
9757
  for (let n of e.envPlans) {
9758
9758
  let e = n.missing.filter((e) => !n.blank.includes(e));
9759
- e.length > 0 && t.push(`${Z(n.target)} is missing ${e.join(", ")}. The app will boot only once those are set.`), n.blank.length > 0 && t.push(`${Z(n.target)} got ${n.blank.join(", ")} as empty values, the same as a fresh .env. The app boots without them; set real values to turn those features on.`);
9759
+ e.length > 0 && t.push(`${Z(n.target)} is missing ${e.join(", ")}. The app will boot only once those are set.`), n.blank.length > 0 && t.push(`${Z(n.target)} got ${n.blank.join(", ")} as blank stand-ins, the same as a fresh .env. The app boots without them; set real values to turn those features on.`);
9760
9760
  let r = Object.keys(n.seeded);
9761
9761
  r.length > 0 && t.push(`${Z(n.target)} got ${r.join(", ")} from .env.example, so the app boots but those features will not work until you set real values.`);
9762
9762
  }
@@ -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-CljCLwL0.js";
2
+ import { d as e, n as t, t as n, u as r } from "../cli-D6elnmhB.js";
3
3
  import { z as i } from "zod";
4
4
  import * as a from "@sentry/node";
5
5
  //#region src/core/sentry.ts
@@ -29,6 +29,17 @@ export interface BuildEnvPlanInput {
29
29
  externallyProvided?: Partial<Record<DeployTarget, string[]>>;
30
30
  }
31
31
  export declare function buildEnvPlan(input: BuildEnvPlanInput): TargetEnvPlan[];
32
+ /**
33
+ * Value written for optional keys the pack ships empty (`GOOGLE_CLIENT_ID=`).
34
+ *
35
+ * Locally dotenv turns that into `""`, and `z.string()` accepts it. Remotely
36
+ * the key must still be a defined string or the same schema rejects the boot
37
+ * with `received undefined`. A true empty string cannot be used: Railway's
38
+ * `variable set --stdin` prints "Empty value provided via stdin", exits 0,
39
+ * and writes nothing. A single space is a real value the CLI will store, still
40
+ * falsy after `.trim()` for feature gates, and still a string for Zod.
41
+ */
42
+ export declare const BLANK_ENV_VALUE = " ";
32
43
  export interface PreviewEnvPlanInput {
33
44
  plan: DeployPlan;
34
45
  localEnv?: Partial<Record<DeployTarget, Record<string, string>>>;
@@ -66,7 +77,7 @@ export declare function managedEnvFor(input: ManagedEnvInput): Record<string, st
66
77
  /**
67
78
  * Every env var to apply to a target. What the deploy wired beats what the
68
79
  * developer's `.env` had, which in turn beats a placeholder from `.env.example`,
69
- * which beats the empty value that only exists so the key is defined at all.
80
+ * which beats the blank stand-in that only exists so the key is defined at all.
70
81
  */
71
82
  export declare function mergedEnv(plan: TargetEnvPlan): Record<string, string>;
72
83
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"env-plan.d.ts","sourceRoot":"","sources":["../../src/deploy/env-plan.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,cAAc,EAEd,cAAc,EACd,aAAa,EACb,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,CAsBvD,CAAC;AAmBF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,UAAU,CAAC;IACjB,uDAAuD;IACvD,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC;IAChE,qEAAqE;IACrE,IAAI,EAAE,UAAU,CAAC;IACjB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IACjE,oGAAoG;IACpG,YAAY,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACvD;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IACnE;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAA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CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IACjE,YAAY,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CACpE;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,aAAa,EAAE,CAa1E;AAED,UAAU,eAAe;IACvB,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC;IAChE;;;OAGG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkB5E;AAuED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGrE;AAYD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkBvE;AAcD,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,CAEhE"}
@@ -45,9 +45,9 @@ export interface DeployTargetInput {
45
45
  /** Values to mask in any echoed command. */
46
46
  secrets: string[];
47
47
  /**
48
- * Keys in {@link env} that are empty only because nothing could fill them.
49
- * They are a convenience, so a provider that refuses to store an empty value
50
- * should skip or tolerate the failure rather than fail the deploy over one.
48
+ * Keys in {@link env} holding only the blank stand-in because nothing could
49
+ * fill them. They are a convenience, so a provider that refuses the value
50
+ * should tolerate the failure rather than fail the deploy over one.
51
51
  */
52
52
  blankKeys?: string[];
53
53
  /**
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-CljCLwL0.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-D6elnmhB.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.2",
3
+ "version": "1.4.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",