@hype-stack/cli 1.5.1 → 1.5.2

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.
@@ -20,7 +20,7 @@ import { McpServer as ue } from "@modelcontextprotocol/sdk/server/mcp.js";
20
20
  import { StdioServerTransport as de } from "@modelcontextprotocol/sdk/server/stdio.js";
21
21
  import { Writable as fe } from "node:stream";
22
22
  //#region src/constants/constants.ts
23
- var pe = "1.5.1", 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
+ var pe = "1.5.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 = [
24
24
  {
25
25
  value: "cursor",
26
26
  label: "Cursor",
@@ -5754,7 +5754,7 @@ async function Ru() {
5754
5754
  commit: null,
5755
5755
  source: "env"
5756
5756
  };
5757
- if (ku === "1.5.1") return {
5757
+ if (ku === "1.5.2") return {
5758
5758
  ref: he,
5759
5759
  commit: null,
5760
5760
  source: "dev"
@@ -7411,7 +7411,7 @@ function rp(e) {
7411
7411
  if (typeof e != "object" || !e) return [];
7412
7412
  let t = e, n = t.slug ?? t.Slug;
7413
7413
  return typeof n == "string" ? [n] : [];
7414
- }) : typeof t == "object" && t ? Object.values(t).filter((e) => typeof e == "string") : [];
7414
+ }) : typeof t == "object" && t ? Object.keys(t) : [];
7415
7415
  }
7416
7416
  async function ip(e) {
7417
7417
  let t = await e.runner.run({
@@ -9370,10 +9370,7 @@ function eg(e, t) {
9370
9370
  var tg = "dryrun00cluster", ng = "dryrun00service", rg = [
9371
9371
  {
9372
9372
  match: "fly orgs list",
9373
- stdout: JSON.stringify([{
9374
- slug: "personal",
9375
- name: "Personal"
9376
- }])
9373
+ stdout: JSON.stringify({ personal: "Personal" })
9377
9374
  },
9378
9375
  {
9379
9376
  match: "fly secrets list",
@@ -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-wfm7cYan.js";
2
+ import { d as e, n as t, t as n, u as r } from "../cli-CqGkwggA.js";
3
3
  import { z as i } from "zod";
4
4
  import * as a from "@sentry/node";
5
5
  //#region src/core/sentry.ts
@@ -1 +1 @@
1
- {"version":3,"file":"dry-run.d.ts","sourceRoot":"","sources":["../../src/deploy/dry-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAE/D;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAgBzD,eAAO,MAAM,iBAAiB,EAAE,cAAc,EA+H7C,CAAC"}
1
+ {"version":3,"file":"dry-run.d.ts","sourceRoot":"","sources":["../../src/deploy/dry-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAE/D;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAgBzD,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAgI7C,CAAC"}
@@ -10,8 +10,11 @@ export declare const DEFAULT_FLY_REGION = "iad";
10
10
  export declare const DEFAULT_POSTGRES_PLAN = "basic";
11
11
  export declare function flyAppUrl(app: string): string;
12
12
  /**
13
- * Read the organization slugs out of `fly orgs list --json`. Newer flyctl
14
- * prints an array of objects; older versions print a `{ "Name": "slug" }` map.
13
+ * Read the organization slugs out of `fly orgs list --json`. Current flyctl
14
+ * prints a `{ "slug": "Display Name" }` map (it builds `bySlug[org.Slug] =
15
+ * org.Name`), so the slugs are the KEYS. Reading the values hands back display
16
+ * names like "Maciej Pyrc", which every later `--org` flag chokes on. Some
17
+ * builds print an array of org objects instead, so that shape is read too.
15
18
  */
16
19
  export declare function parseOrgSlugs(output: string): string[];
17
20
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"fly.d.ts","sourceRoot":"","sources":["../../../src/deploy/providers/fly.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAEV,qBAAqB,EAMtB,MAAM,YAAY,CAAC;AAKpB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AAExC,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAmBtD;AAgDD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxE;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG3D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG3D;AAED,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG9D;AAED,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI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AgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG9D;AAED,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAajF;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAcjE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAY5D;AAED,eAAO,MAAM,WAAW,EAAE,qBA+LzB,CAAC;AAqOF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAUzD;AAiBD,uFAAuF;AACvF,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAWvG"}
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-wfm7cYan.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-CqGkwggA.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.5.1",
3
+ "version": "1.5.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",