@hype-stack/cli 1.8.0 → 1.8.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.8.
|
|
23
|
+
var pe = "1.8.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",
|
|
@@ -5545,12 +5545,12 @@ async function vu(e) {
|
|
|
5545
5545
|
" 2. Apply this project's migrations to the clean database",
|
|
5546
5546
|
"",
|
|
5547
5547
|
"Only test fixtures ever live in the test database, so there's nothing to lose."
|
|
5548
|
-
].join("\n"), "
|
|
5548
|
+
].join("\n"), "Database reset needed"), e) return c.log.info(P.muted("Wiping it automatically, this run answers its own prompts.")), !0;
|
|
5549
5549
|
let t = await c.confirm({
|
|
5550
5550
|
message: "Wipe the test database and apply the migrations?",
|
|
5551
5551
|
initialValue: !0
|
|
5552
5552
|
});
|
|
5553
|
-
return
|
|
5553
|
+
return c.isCancel(t) ? (c.log.warn(P.muted("No answer given, leaving the test database as it is.")), !1) : (t || c.log.info(P.muted("Leaving the test database as it is.")), t);
|
|
5554
5554
|
}
|
|
5555
5555
|
async function yu(e, t, n) {
|
|
5556
5556
|
return await vu(t) ? bu(e, n) : !1;
|
|
@@ -5579,7 +5579,7 @@ async function xu(e) {
|
|
|
5579
5579
|
let t = c.spinner();
|
|
5580
5580
|
t.start("Applying migrations to the test database...");
|
|
5581
5581
|
let n = await W("pnpm", ["run", "test:migrate"], { cwd: e });
|
|
5582
|
-
return n.exitCode === 0 ? t.stop(P.success("Test database migrations applied")) : t.error("
|
|
5582
|
+
return n.exitCode === 0 ? t.stop(P.success("Test database migrations applied")) : pu(mu(n)) ? t.error("The database doesn't match this project's migrations") : t.error("Could not apply the migrations to the test database"), n;
|
|
5583
5583
|
}
|
|
5584
5584
|
async function Su(e, t, n = {}) {
|
|
5585
5585
|
if (!await tu(e)) return !1;
|
|
@@ -6149,7 +6149,7 @@ async function Sd() {
|
|
|
6149
6149
|
commit: null,
|
|
6150
6150
|
source: "env"
|
|
6151
6151
|
};
|
|
6152
|
-
if (pd === "1.8.
|
|
6152
|
+
if (pd === "1.8.2") return {
|
|
6153
6153
|
ref: he,
|
|
6154
6154
|
commit: null,
|
|
6155
6155
|
source: "dev"
|
package/dist/config/bin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-setup.d.ts","sourceRoot":"","sources":["../../src/core/post-setup.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,qIAIvB,CAAC;AASX,wBAAsB,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,CAGxD;AAyCD,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,EACpB,aAAa,EAAE,OAAO,GACrB,OAAO,CAAC,OAAO,CAAC,CA+BlB;AAOD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI,CAOlF;AA2DD,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wE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B,yBAAyB,CAC7C,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,EACpB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAaf;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,EACpB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,OAAO,CAAC,CAalB"}
|
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-CJGouLrE.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 };
|