void 0.8.4 → 0.8.6
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/{auth-cmd-B1-7r6ng.mjs → auth-cmd-C-fMtekZ.mjs} +2 -2
- package/dist/{cache-CGYC-2LW.mjs → cache-CstDt4gH.mjs} +1 -1
- package/dist/{cancel-deploy-B4j31z7d.mjs → cancel-deploy-CGL_UJwR.mjs} +1 -1
- package/dist/cli/cli.mjs +18 -18
- package/dist/{client-C-nH6yz3.mjs → client-CCOKwNUz.mjs} +4 -2
- package/dist/{create-project-BGnQMy5N.mjs → create-project-DmGoYMqF.mjs} +1 -1
- package/dist/{db-BvKxda3n.mjs → db-CpHRUvOY.mjs} +3 -3
- package/dist/{delete-eMGTHHB9.mjs → delete-BPVqSrkA.mjs} +1 -1
- package/dist/{deploy-Ceecksgw.mjs → deploy-D-sNgH78.mjs} +3 -3
- package/dist/{domain-UfLrp2vc.mjs → domain-BrCzfzL6.mjs} +1 -1
- package/dist/{env-Cvdbbm_N.mjs → env-I4RIGp1N.mjs} +1 -1
- package/dist/index.mjs +42 -6
- package/dist/{init-CbNCFFWx.mjs → init-DVqPUMVz.mjs} +3 -3
- package/dist/{link-C5x1E-XZ.mjs → link-GWTu3YvD.mjs} +2 -2
- package/dist/{list-ezL7hqDV.mjs → list-IPEcrLnM.mjs} +1 -1
- package/dist/{login-CkLr-AaI.mjs → login-BZ1Yk9Xw.mjs} +1 -1
- package/dist/{logs-MnGILmLz.mjs → logs-CNF59Q_p.mjs} +1 -1
- package/dist/{mcp-B84MmVAW.mjs → mcp-Blxy-04t.mjs} +1 -1
- package/dist/{project-cmd-JQUzv3qF.mjs → project-cmd-BUuTuUOR.mjs} +8 -8
- package/dist/{rollback-CoAAvC18.mjs → rollback-vUeM-X4o.mjs} +1 -1
- package/dist/{secret-mz8t_CML.mjs → secret-BQ_MxdCB.mjs} +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as getToken, d as removeToken, n as PlatformClient } from "./client-
|
|
1
|
+
import { c as getToken, d as removeToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
2
2
|
import { c as R } from "./dist-abzUneor.mjs";
|
|
3
|
-
import { n as runLoginCommand } from "./login-
|
|
3
|
+
import { n as runLoginCommand } from "./login-BZ1Yk9Xw.mjs";
|
|
4
4
|
import { execSync } from "node:child_process";
|
|
5
5
|
//#region src/cli/auth-cmd.ts
|
|
6
6
|
async function runAuthCommand(root, args) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as dim, n as cliTitle, r as createSpinner } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-CNpUbUHd.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as cliTitle } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { c as R, g as ge, v as ue, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
//#region src/cli/cancel-deploy.ts
|
package/dist/cli/cli.mjs
CHANGED
|
@@ -1516,7 +1516,7 @@ else if (command === "deploy") {
|
|
|
1516
1516
|
R.error(err instanceof Error ? err.message : String(err));
|
|
1517
1517
|
process.exit(1);
|
|
1518
1518
|
}
|
|
1519
|
-
import("../deploy-
|
|
1519
|
+
import("../deploy-D-sNgH78.mjs").then((n) => n.t).then(({ runDeploy }) => {
|
|
1520
1520
|
runDeploy(root, {
|
|
1521
1521
|
projectSlug: deployArgs.projectSlug,
|
|
1522
1522
|
dir: deployArgs.dir,
|
|
@@ -1528,12 +1528,12 @@ else if (command === "deploy") {
|
|
|
1528
1528
|
process.exit(1);
|
|
1529
1529
|
});
|
|
1530
1530
|
});
|
|
1531
|
-
} else if (command === "auth") runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("../auth-cmd-
|
|
1532
|
-
else if (command === "project") runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("../project-cmd-
|
|
1533
|
-
else if (command === "secret") runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("../secret-
|
|
1534
|
-
else if (command === "domain") runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("../domain-
|
|
1535
|
-
else if (command === "db") runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("../db-
|
|
1536
|
-
else if (command === "env") runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("../env-
|
|
1531
|
+
} else if (command === "auth") runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("../auth-cmd-C-fMtekZ.mjs").then(({ runAuthCommand }) => runAuthCommand(root, parsed)));
|
|
1532
|
+
else if (command === "project") runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("../project-cmd-BUuTuUOR.mjs").then(({ runProjectCommand }) => runProjectCommand(root, parsed)));
|
|
1533
|
+
else if (command === "secret") runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("../secret-BQ_MxdCB.mjs").then(({ runSecretCommand }) => runSecretCommand(root, parsed)));
|
|
1534
|
+
else if (command === "domain") runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("../domain-BrCzfzL6.mjs").then(({ runDomainCommand }) => runDomainCommand(root, parsed)));
|
|
1535
|
+
else if (command === "db") runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("../db-CpHRUvOY.mjs").then(({ runDbCommand }) => runDbCommand(root, parsed)));
|
|
1536
|
+
else if (command === "env") runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("../env-I4RIGp1N.mjs").then(({ runEnvCommand }) => runEnvCommand(root, parsed)));
|
|
1537
1537
|
else if (command === "gen") runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("../gen-Cn2hZ8RR.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed)));
|
|
1538
1538
|
else if (command === "prepare") {
|
|
1539
1539
|
const root = process.cwd();
|
|
@@ -1552,7 +1552,7 @@ else if (command === "prepare") {
|
|
|
1552
1552
|
});
|
|
1553
1553
|
} else if (command === "init") {
|
|
1554
1554
|
const root = process.cwd();
|
|
1555
|
-
import("../init-
|
|
1555
|
+
import("../init-DVqPUMVz.mjs").then(({ runInitCommand, parseInitArgs }) => {
|
|
1556
1556
|
let initArgs;
|
|
1557
1557
|
try {
|
|
1558
1558
|
initArgs = parseInitArgs(args.slice(1));
|
|
@@ -1565,7 +1565,7 @@ else if (command === "prepare") {
|
|
|
1565
1565
|
process.exit(1);
|
|
1566
1566
|
});
|
|
1567
1567
|
});
|
|
1568
|
-
} else if (command === "mcp") import("../mcp-
|
|
1568
|
+
} else if (command === "mcp") import("../mcp-Blxy-04t.mjs").then(({ runMcp }) => {
|
|
1569
1569
|
runMcp();
|
|
1570
1570
|
});
|
|
1571
1571
|
else if (command === "-v" || command === "--version") {
|
|
@@ -1641,26 +1641,26 @@ else if (command === "-v" || command === "--version") {
|
|
|
1641
1641
|
const root = process.cwd();
|
|
1642
1642
|
switch (cmd) {
|
|
1643
1643
|
case "init": {
|
|
1644
|
-
const { runInitCommand, parseInitArgs } = await import("../init-
|
|
1644
|
+
const { runInitCommand, parseInitArgs } = await import("../init-DVqPUMVz.mjs");
|
|
1645
1645
|
await runInitCommand(root, parseInitArgs([]));
|
|
1646
1646
|
return;
|
|
1647
1647
|
}
|
|
1648
1648
|
case "deploy": {
|
|
1649
|
-
const { runDeploy } = await import("../deploy-
|
|
1649
|
+
const { runDeploy } = await import("../deploy-D-sNgH78.mjs").then((n) => n.t);
|
|
1650
1650
|
await runDeploy(root);
|
|
1651
1651
|
return;
|
|
1652
1652
|
}
|
|
1653
1653
|
case "mcp": {
|
|
1654
|
-
const { runMcp } = await import("../mcp-
|
|
1654
|
+
const { runMcp } = await import("../mcp-Blxy-04t.mjs");
|
|
1655
1655
|
runMcp();
|
|
1656
1656
|
return;
|
|
1657
1657
|
}
|
|
1658
|
-
case "auth": return runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (r, p) => import("../auth-cmd-
|
|
1659
|
-
case "project": return runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (r, p) => import("../project-cmd-
|
|
1660
|
-
case "secret": return runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (r, p) => import("../secret-
|
|
1661
|
-
case "domain": return runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (r, p) => import("../domain-
|
|
1662
|
-
case "db": return runSubcommandGroup("db", dbSubcommands, parseDbArgs, (r, p) => import("../db-
|
|
1663
|
-
case "env": return runSubcommandGroup("env", envSubcommands, parseEnvArgs, (r, p) => import("../env-
|
|
1658
|
+
case "auth": return runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (r, p) => import("../auth-cmd-C-fMtekZ.mjs").then(({ runAuthCommand }) => runAuthCommand(r, p)));
|
|
1659
|
+
case "project": return runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (r, p) => import("../project-cmd-BUuTuUOR.mjs").then(({ runProjectCommand }) => runProjectCommand(r, p)));
|
|
1660
|
+
case "secret": return runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (r, p) => import("../secret-BQ_MxdCB.mjs").then(({ runSecretCommand }) => runSecretCommand(r, p)));
|
|
1661
|
+
case "domain": return runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (r, p) => import("../domain-BrCzfzL6.mjs").then(({ runDomainCommand }) => runDomainCommand(r, p)));
|
|
1662
|
+
case "db": return runSubcommandGroup("db", dbSubcommands, parseDbArgs, (r, p) => import("../db-CpHRUvOY.mjs").then(({ runDbCommand }) => runDbCommand(r, p)));
|
|
1663
|
+
case "env": return runSubcommandGroup("env", envSubcommands, parseEnvArgs, (r, p) => import("../env-I4RIGp1N.mjs").then(({ runEnvCommand }) => runEnvCommand(r, p)));
|
|
1664
1664
|
case "gen": return runSubcommandGroup("gen", genSubcommands, parseGenArgs, (r, p) => import("../gen-Cn2hZ8RR.mjs").then(({ runGenCommand }) => runGenCommand(r, p)));
|
|
1665
1665
|
case "prepare": {
|
|
1666
1666
|
const { runPrepareCommand } = await import("../prepare-BrAISonG.mjs");
|
|
@@ -656,8 +656,10 @@ var PlatformClient = class {
|
|
|
656
656
|
if (!res.ok) await throwPlatformApiError("Failed to delete project", res);
|
|
657
657
|
return res.json();
|
|
658
658
|
}
|
|
659
|
-
async getMigrationStatus(projectId) {
|
|
660
|
-
const
|
|
659
|
+
async getMigrationStatus(projectId, dialect) {
|
|
660
|
+
const url = new URL(`${this.baseUrl}/projects/${projectId}/migrations`);
|
|
661
|
+
if (dialect) url.searchParams.set("dialect", dialect);
|
|
662
|
+
const res = await fetch(url, { headers: { ...this.authHeaders } });
|
|
661
663
|
if (!res.ok) await throwPlatformApiError("Failed to get migration status", res);
|
|
662
664
|
return res.json();
|
|
663
665
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-DJd-R1mw.mjs";
|
|
2
2
|
import { s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
3
|
-
import { s as getSiteDomain, t as PlatformApiError } from "./client-
|
|
3
|
+
import { s as getSiteDomain, t as PlatformApiError } from "./client-CCOKwNUz.mjs";
|
|
4
4
|
import { _ as me, c as R, i as Ee, l as Re, x as q } from "./dist-abzUneor.mjs";
|
|
5
5
|
import { a as writeProjectConfig } from "./project-CH9pdo16.mjs";
|
|
6
6
|
import { n as validateProjectSlug } from "./project-slug-De4UjtD9.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, c as resolve, r as extname, s as relative } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { i as dim, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
3
3
|
import { n as readProjectPaths } from "./project-paths-CCMrHYQm.mjs";
|
|
4
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
4
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
5
5
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
6
6
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
7
7
|
import { c as getDatabaseDialect, f as readConfig } from "./config-BVEC0lti.mjs";
|
|
@@ -167,7 +167,7 @@ async function runStatus(root, dialect) {
|
|
|
167
167
|
const token = getToken(root);
|
|
168
168
|
const config = readProjectConfig(root);
|
|
169
169
|
if (token && config) try {
|
|
170
|
-
remoteApplied = (await new PlatformClient(token, { root }).getMigrationStatus(config.projectId)).applied;
|
|
170
|
+
remoteApplied = (await new PlatformClient(token, { root }).getMigrationStatus(config.projectId, dialect)).applied;
|
|
171
171
|
} catch {}
|
|
172
172
|
const remoteSet = remoteApplied ? new Set(remoteApplied.map((m) => m.name)) : null;
|
|
173
173
|
const lines = [];
|
|
@@ -337,7 +337,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
337
337
|
const client = new PlatformClient(token, { root });
|
|
338
338
|
let remoteApplied;
|
|
339
339
|
try {
|
|
340
|
-
const status = await client.getMigrationStatus(config.projectId);
|
|
340
|
+
const status = await client.getMigrationStatus(config.projectId, dialect);
|
|
341
341
|
remoteApplied = new Set(status.applied.map((m) => m.name));
|
|
342
342
|
} catch (err) {
|
|
343
343
|
R.error(`db: Failed to fetch remote migration status: '${err instanceof Error ? err.message : String(err)}'.`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as cliTitle, r as createSpinner } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, l as Re, u as Se, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { i as removeProjectConfig, r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
import { r as resolveProjectBySlug } from "./resolve-project-CNpUbUHd.mjs";
|
|
@@ -3,7 +3,7 @@ import { a as join, c as resolve, i as isAbsolute, n as dirname, r as extname, s
|
|
|
3
3
|
import { n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
4
4
|
import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-CCMrHYQm.mjs";
|
|
5
5
|
import { t as findVoidAuthConfig } from "./config-hhMYPVRT.mjs";
|
|
6
|
-
import { a as isExpiredTokenError, c as getToken, i as isCliOutdatedError, l as getTokenSource, n as PlatformClient, o as parsePlatformErrorBody, t as PlatformApiError, u as isStagingMode } from "./client-
|
|
6
|
+
import { a as isExpiredTokenError, c as getToken, i as isCliOutdatedError, l as getTokenSource, n as PlatformClient, o as parsePlatformErrorBody, t as PlatformApiError, u as isStagingMode } from "./client-CCOKwNUz.mjs";
|
|
7
7
|
import { c as R, g as ge, u as Se, v as ue, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
8
8
|
import { a as writeProjectConfig, r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
9
9
|
import { c as getDatabaseDialect, f as readConfig, l as isNodeTarget, p as resolveBindingNames } from "./config-BVEC0lti.mjs";
|
|
@@ -18,10 +18,10 @@ import { t as collectMigrations } from "./collect-9rO3JFNM.mjs";
|
|
|
18
18
|
import { n as buildMigrationPlanBundle } from "./plan-aD3wRDqF.mjs";
|
|
19
19
|
import { r as validateMigrations, t as assertJournalCoherence } from "./validate-CNWm-PsL.mjs";
|
|
20
20
|
import { t as scanPages } from "./scan-2YmJkYAf.mjs";
|
|
21
|
-
import { i as promptProjectSetupAction, n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-
|
|
21
|
+
import { i as promptProjectSetupAction, n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-DmGoYMqF.mjs";
|
|
22
22
|
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-CNpUbUHd.mjs";
|
|
23
23
|
import { n as lintDuplicateSources, r as mergeRoutingRules, t as lintDestinationSplats } from "./headers-wAPJigtE.mjs";
|
|
24
|
-
import { t as promptForLoginToken } from "./login-
|
|
24
|
+
import { t as promptForLoginToken } from "./login-BZ1Yk9Xw.mjs";
|
|
25
25
|
import { i as resolveProjectCommand, n as detectPreset, r as formatProjectCommand, t as FRAMEWORK_PRESETS } from "./preset-BRsCi8ZB.mjs";
|
|
26
26
|
import { createRequire } from "node:module";
|
|
27
27
|
import { copyFileSync, cpSync, createWriteStream, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { c as R, u as Se } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
//#region src/cli/domain.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as join } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { n as cliTitle } from "./output-DeiS4oEX.mjs";
|
|
3
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
3
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
4
4
|
import { c as R, g as ge, u as Se, y as ye } from "./dist-abzUneor.mjs";
|
|
5
5
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
6
6
|
import { r as generateEnvTypes, t as findEnvFile } from "./env-types-D6qI1ThV.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as __toESM } from "./chunk-DJd-R1mw.mjs";
|
|
2
2
|
import { a as join, n as dirname, s as relative } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
3
3
|
import { u as require_picocolors } from "./output-DeiS4oEX.mjs";
|
|
4
|
-
import { C as isSandboxEnabled, D as resolveAssetRoutingPolicy, E as hasDocumentRoutes, S as SANDBOX_MIGRATION_TAG, T as hasApiRoutes, _ as normalizeWranglerCompatibilityFlags, a as prerenderPagesNode, b as resolveLiveBindingConfig, c as filterLoadedEnv, d as LIVE_MIGRATION_TAG, f as ensureWranglerCompat, g as nextDurableObjectMigrationTag, h as hasDurableObjectSqliteMigration, i as prerenderPages, l as resolveRemoteMode, m as ensureWranglerNodejsAlsFlag, n as resolveDistDir, o as DEFAULT_PROXY_URL, p as ensureWranglerCompatibilityDate, r as resolveWorkerDirName, s as STAGING_PROXY_URL, u as stripInternalEnvKeys, v as readExistingLiveBindingConfig, w as resolveSandboxConfig, x as syncWranglerBindings, y as readWranglerCompat } from "./deploy-
|
|
4
|
+
import { C as isSandboxEnabled, D as resolveAssetRoutingPolicy, E as hasDocumentRoutes, S as SANDBOX_MIGRATION_TAG, T as hasApiRoutes, _ as normalizeWranglerCompatibilityFlags, a as prerenderPagesNode, b as resolveLiveBindingConfig, c as filterLoadedEnv, d as LIVE_MIGRATION_TAG, f as ensureWranglerCompat, g as nextDurableObjectMigrationTag, h as hasDurableObjectSqliteMigration, i as prerenderPages, l as resolveRemoteMode, m as ensureWranglerNodejsAlsFlag, n as resolveDistDir, o as DEFAULT_PROXY_URL, p as ensureWranglerCompatibilityDate, r as resolveWorkerDirName, s as STAGING_PROXY_URL, u as stripInternalEnvKeys, v as readExistingLiveBindingConfig, w as resolveSandboxConfig, x as syncWranglerBindings, y as readWranglerCompat } from "./deploy-D-sNgH78.mjs";
|
|
5
5
|
import { i as resolveProjectPaths, n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-CCMrHYQm.mjs";
|
|
6
6
|
import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-hhMYPVRT.mjs";
|
|
7
|
-
import { c as getToken, u as isStagingMode } from "./client-
|
|
7
|
+
import { c as getToken, u as isStagingMode } from "./client-CCOKwNUz.mjs";
|
|
8
8
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
9
9
|
import { c as getDatabaseDialect, f as readConfig, l as isNodeTarget, p as resolveBindingNames } from "./config-BVEC0lti.mjs";
|
|
10
10
|
import { a as scanQueuesSync, i as scanWebSocketRoutesSync, n as scanRoutePatternsSync, o as scanJobsSync, r as scanRoutes, t as scanMiddlewareSync } from "./scan-DzzHqtiT.mjs";
|
|
@@ -2944,6 +2944,37 @@ window.__vite_plugin_react_preamble_installed__ = true;
|
|
|
2944
2944
|
lines.push(`const __migrations = ${JSON.stringify(options.migrations)};`);
|
|
2945
2945
|
lines.push(`const __migrationPlanBundle = ${JSON.stringify(options.migrationPlanBundle)};`);
|
|
2946
2946
|
lines.push(`const __migrationDialect = ${JSON.stringify(options.migrationDialect ?? "sqlite")};`);
|
|
2947
|
+
lines.push("function __voidCreateMigrationRequestHandler(request, includeAuthMigrations, includePlanBundle) {");
|
|
2948
|
+
lines.push(" return __createMigrationHandler(");
|
|
2949
|
+
lines.push(" __getRawEnv(),");
|
|
2950
|
+
lines.push(" __migrations,");
|
|
2951
|
+
lines.push(" __migrationDialect,");
|
|
2952
|
+
if (auth) lines.push(` includeAuthMigrations ? () => runVoidAuthMigrations(new Request(request.url), __getRawEnv(), __voidAuthOptions${auth.authSchemaPath ? ", __voidAuthMigrationSchema" : ""}) : undefined,`);
|
|
2953
|
+
else lines.push(" undefined,");
|
|
2954
|
+
lines.push(" includePlanBundle ? __migrationPlanBundle : undefined,");
|
|
2955
|
+
lines.push(" );");
|
|
2956
|
+
lines.push("}");
|
|
2957
|
+
lines.push("export async function __voidHandleInternalRoute(request) {");
|
|
2958
|
+
lines.push(" const url = new URL(request.url);");
|
|
2959
|
+
lines.push(" if (request.method === \"POST\" && url.pathname === \"/__void/migrate\") {");
|
|
2960
|
+
lines.push(` return __voidCreateMigrationRequestHandler(request, ${auth ? "true" : "false"}, false)(request);`);
|
|
2961
|
+
lines.push(" }");
|
|
2962
|
+
lines.push(" if (request.method === \"GET\" && url.pathname === \"/__void/migrate/capabilities\") {");
|
|
2963
|
+
lines.push(` return __voidCreateMigrationRequestHandler(request, ${auth ? "true" : "false"}, true)(request);`);
|
|
2964
|
+
lines.push(" }");
|
|
2965
|
+
lines.push(" if (request.method === \"POST\" && url.pathname === \"/__void/migrate/app\") {");
|
|
2966
|
+
lines.push(" return __voidCreateMigrationRequestHandler(request, false, true)(request);");
|
|
2967
|
+
lines.push(" }");
|
|
2968
|
+
lines.push(" if (request.method === \"GET\" && url.pathname.startsWith(\"/__void/migrate/app/attempt/\")) {");
|
|
2969
|
+
lines.push(" return __voidCreateMigrationRequestHandler(request, false, true)(request);");
|
|
2970
|
+
lines.push(" }");
|
|
2971
|
+
if (auth) {
|
|
2972
|
+
lines.push(" if (request.method === \"POST\" && url.pathname === \"/__void/migrate/auth\") {");
|
|
2973
|
+
lines.push(" return __voidCreateMigrationRequestHandler(request, true, true)(request);");
|
|
2974
|
+
lines.push(" }");
|
|
2975
|
+
}
|
|
2976
|
+
lines.push(" return null;");
|
|
2977
|
+
lines.push("}");
|
|
2947
2978
|
lines.push("app.post(\"/__void/migrate\", async (c) => {");
|
|
2948
2979
|
lines.push(" const __voidMigrationHandler = __createMigrationHandler(");
|
|
2949
2980
|
lines.push(" __getRawEnv(),");
|
|
@@ -2998,6 +3029,9 @@ window.__vite_plugin_react_preamble_installed__ = true;
|
|
|
2998
3029
|
lines.push("});");
|
|
2999
3030
|
}
|
|
3000
3031
|
lines.push("");
|
|
3032
|
+
} else {
|
|
3033
|
+
lines.push("export async function __voidHandleInternalRoute() { return null; }");
|
|
3034
|
+
lines.push("");
|
|
3001
3035
|
}
|
|
3002
3036
|
if (options.bindingHandlerPath) {
|
|
3003
3037
|
lines.push(`import { createBindingHandler as __createBindingHandler } from ${JSON.stringify(options.bindingHandlerPath)};`);
|
|
@@ -3554,6 +3588,8 @@ ${envValidateCall} const ws = await __voidHandleWebSocket(request, env);
|
|
|
3554
3588
|
if (request.method === "GET" && url.pathname === "/__void/ready") {
|
|
3555
3589
|
return Response.json({ ready: true });
|
|
3556
3590
|
}
|
|
3591
|
+
const routeInternal = await __voidHandleInternalRoute(request, env, ctx);
|
|
3592
|
+
if (routeInternal) return routeInternal;
|
|
3557
3593
|
if (request.method !== "POST" || url.pathname !== "/__void/prerender-paths") return null;
|
|
3558
3594
|
const __expected = env.__VOID_PROXY_TOKEN;
|
|
3559
3595
|
if (__expected) {
|
|
@@ -3573,7 +3609,7 @@ ${envValidateCall} if (env.__VOID_REMOTE === "1") env = createRemoteEnv(env);
|
|
|
3573
3609
|
${envValidateCall} const userEnv = __filterInternalBindings(env);
|
|
3574
3610
|
return withRuntimeEnv(env, () => scheduled(controller, userEnv, ctx));
|
|
3575
3611
|
}`;
|
|
3576
|
-
if (hasQueues) return `${sandboxImport}${liveRuntimeImport}import app, { scheduled, __voidCollectPrerenderPaths, __voidHandleWebSocket, __withRawEnv, __processQueue${webSocketClasses.length > 0 ? `, ${webSocketClasses.join(", ")}` : ""}${liveRouteImport} } from 'virtual:void-routes';
|
|
3612
|
+
if (hasQueues) return `${sandboxImport}${liveRuntimeImport}import app, { scheduled, __voidCollectPrerenderPaths, __voidHandleInternalRoute, __voidHandleWebSocket, __withRawEnv, __processQueue${webSocketClasses.length > 0 ? `, ${webSocketClasses.join(", ")}` : ""}${liveRouteImport} } from 'virtual:void-routes';
|
|
3577
3613
|
${runtimeEnvImport}${envSchemaImport}${remoteImport}${filterBindingsHelper}${assetHelper}
|
|
3578
3614
|
${internalRouteHelper}
|
|
3579
3615
|
${scheduledHandler}
|
|
@@ -3602,7 +3638,7 @@ ${webSocketClasses.map((name) => `export { ${name} };`).join("\n")}
|
|
|
3602
3638
|
${liveExport}
|
|
3603
3639
|
${sandboxExport}
|
|
3604
3640
|
export default { fetch: ${fetchHandler}, scheduled: handleScheduled, queue };`;
|
|
3605
|
-
return `${sandboxImport}${liveRuntimeImport}import app, { scheduled, __voidCollectPrerenderPaths, __voidHandleWebSocket, __withRawEnv${webSocketClasses.length > 0 ? `, ${webSocketClasses.join(", ")}` : ""}${liveRouteImport} } from 'virtual:void-routes';
|
|
3641
|
+
return `${sandboxImport}${liveRuntimeImport}import app, { scheduled, __voidCollectPrerenderPaths, __voidHandleInternalRoute, __voidHandleWebSocket, __withRawEnv${webSocketClasses.length > 0 ? `, ${webSocketClasses.join(", ")}` : ""}${liveRouteImport} } from 'virtual:void-routes';
|
|
3606
3642
|
${runtimeEnvImport}${envSchemaImport}${remoteImport}${filterBindingsHelper}${assetHelper}
|
|
3607
3643
|
${internalRouteHelper}
|
|
3608
3644
|
${scheduledHandler}
|
|
@@ -4758,7 +4794,7 @@ const STAGING_API_URL = "https://api.staging.void.cloud";
|
|
|
4758
4794
|
*/
|
|
4759
4795
|
async function runAiSetupPrompt(root, token, staging, server) {
|
|
4760
4796
|
const { select, text, isCancel, log } = await import("./dist-abzUneor.mjs").then((n) => n.p);
|
|
4761
|
-
const { PlatformClient } = await import("./client-
|
|
4797
|
+
const { PlatformClient } = await import("./client-CCOKwNUz.mjs").then((n) => n.r);
|
|
4762
4798
|
const { writeProjectConfig } = await import("./project-CH9pdo16.mjs").then((n) => n.n);
|
|
4763
4799
|
const { inferDefaultSlug } = await import("./resolve-project-CNpUbUHd.mjs").then((n) => n.i);
|
|
4764
4800
|
const client = new PlatformClient(token, staging ? STAGING_API_URL : DEFAULT_API_URL);
|
|
@@ -4787,7 +4823,7 @@ async function runAiSetupPrompt(root, token, staging, server) {
|
|
|
4787
4823
|
let slug;
|
|
4788
4824
|
if (result === "__create__") {
|
|
4789
4825
|
const { validateProjectSlug } = await import("./project-slug-De4UjtD9.mjs").then((n) => n.t);
|
|
4790
|
-
const { createProjectWithSlugRetry } = await import("./create-project-
|
|
4826
|
+
const { createProjectWithSlugRetry } = await import("./create-project-DmGoYMqF.mjs").then((n) => n.t);
|
|
4791
4827
|
let created;
|
|
4792
4828
|
try {
|
|
4793
4829
|
created = await createProjectWithSlugRetry(client, inferDefaultSlug(root), async (defaultSlug) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, c as resolve, i as isAbsolute, n as dirname, s as relative, t as basename } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { n as cliTitle } from "./output-DeiS4oEX.mjs";
|
|
3
3
|
import { n as readProjectPaths } from "./project-paths-CCMrHYQm.mjs";
|
|
4
|
-
import { c as getToken, n as PlatformClient, u as isStagingMode } from "./client-
|
|
4
|
+
import { c as getToken, n as PlatformClient, u as isStagingMode } from "./client-CCOKwNUz.mjs";
|
|
5
5
|
import { _ as me, c as R, g as ge, i as Ee, l as Re, u as Se, v as ue, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
6
6
|
import { a as writeProjectConfig, r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
7
7
|
import { c as getDatabaseDialect, f as readConfig } from "./config-BVEC0lti.mjs";
|
|
@@ -11,8 +11,8 @@ import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./projec
|
|
|
11
11
|
import { t as MagicString } from "./magic-string.es-C1Fb0uxq.mjs";
|
|
12
12
|
import { n as writeDrizzleConfig } from "./config--wXmVOoe.mjs";
|
|
13
13
|
import { n as getAgentById, r as getPackageDir, t as detectAgents } from "./agents-Dkgafwfr.mjs";
|
|
14
|
-
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-
|
|
15
|
-
import { t as promptForLoginToken } from "./login-
|
|
14
|
+
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-DmGoYMqF.mjs";
|
|
15
|
+
import { t as promptForLoginToken } from "./login-BZ1Yk9Xw.mjs";
|
|
16
16
|
import { r as formatProjectCommand } from "./preset-BRsCi8ZB.mjs";
|
|
17
17
|
import { n as findInstalledYarnPnpRuntime, r as hasLocalLockfile, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-QgEYVC3V.mjs";
|
|
18
18
|
import { createRequire } from "node:module";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient, s as getSiteDomain } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient, s as getSiteDomain } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { a as writeProjectConfig, r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
|
-
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-
|
|
5
|
+
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-DmGoYMqF.mjs";
|
|
6
6
|
//#region src/cli/link.ts
|
|
7
7
|
async function runLink(root, slug) {
|
|
8
8
|
console.log();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ensureUtc, i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
import { r as resolveProjectBySlug } from "./resolve-project-CNpUbUHd.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { a as isExpiredTokenError, c as getToken, d as removeToken, f as runLogin, l as getTokenSource, n as PlatformClient, p as saveToken, u as isStagingMode } from "./client-
|
|
2
|
+
import { a as isExpiredTokenError, c as getToken, d as removeToken, f as runLogin, l as getTokenSource, n as PlatformClient, p as saveToken, u as isStagingMode } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, i as Ee, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
//#region src/cli/login.ts
|
|
5
5
|
async function promptForLoginToken(root = process.cwd()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as dim, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
//#region src/cli/logs.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, n as dirname } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { a as writeProjectConfig } from "./project-CH9pdo16.mjs";
|
|
4
4
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient, s as getSiteDomain } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient, s as getSiteDomain } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
//#region src/cli/projects.ts
|
|
5
5
|
async function runProjectsCommand(root) {
|
|
@@ -34,32 +34,32 @@ async function runProjectsCommand(root) {
|
|
|
34
34
|
//#region src/cli/project-cmd.ts
|
|
35
35
|
async function runProjectCommand(root, args) {
|
|
36
36
|
if (args.subcommand === "status") {
|
|
37
|
-
const { runListCommand } = await import("./list-
|
|
37
|
+
const { runListCommand } = await import("./list-IPEcrLnM.mjs");
|
|
38
38
|
return runListCommand(root, args.name || void 0);
|
|
39
39
|
}
|
|
40
40
|
if (args.subcommand === "link") {
|
|
41
|
-
const { runLink } = await import("./link-
|
|
41
|
+
const { runLink } = await import("./link-GWTu3YvD.mjs");
|
|
42
42
|
return runLink(root, args.name || void 0);
|
|
43
43
|
}
|
|
44
44
|
if (args.subcommand === "list") return runProjectsCommand(root);
|
|
45
45
|
if (args.subcommand === "logs") {
|
|
46
|
-
const { runLogsCommand } = await import("./logs-
|
|
46
|
+
const { runLogsCommand } = await import("./logs-CNF59Q_p.mjs");
|
|
47
47
|
return runLogsCommand(root, args.filter, args.range, args.deployment || void 0, args.level || void 0);
|
|
48
48
|
}
|
|
49
49
|
if (args.subcommand === "rollback") {
|
|
50
|
-
const { runRollbackCommand } = await import("./rollback-
|
|
50
|
+
const { runRollbackCommand } = await import("./rollback-vUeM-X4o.mjs");
|
|
51
51
|
return runRollbackCommand(root, args.deployId || void 0);
|
|
52
52
|
}
|
|
53
53
|
if (args.subcommand === "cancel") {
|
|
54
|
-
const { runCancelDeployCommand } = await import("./cancel-deploy-
|
|
54
|
+
const { runCancelDeployCommand } = await import("./cancel-deploy-CGL_UJwR.mjs");
|
|
55
55
|
return runCancelDeployCommand(root, args.deployId || void 0);
|
|
56
56
|
}
|
|
57
57
|
if (args.subcommand === "delete") {
|
|
58
|
-
const { runDeleteCommand } = await import("./delete-
|
|
58
|
+
const { runDeleteCommand } = await import("./delete-BPVqSrkA.mjs");
|
|
59
59
|
return runDeleteCommand(root, args.name || void 0, { force: args.force });
|
|
60
60
|
}
|
|
61
61
|
if (args.subcommand === "purge-cache") {
|
|
62
|
-
const { runPurgeCacheCommand } = await import("./cache-
|
|
62
|
+
const { runPurgeCacheCommand } = await import("./cache-CstDt4gH.mjs");
|
|
63
63
|
return runPurgeCacheCommand(root, args.projectSlug || void 0);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ensureUtc, i as dim, n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, i as Ee, v as ue, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
//#region src/cli/rollback.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as cliTitle } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-CCOKwNUz.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, n as Ce, u as Se, v as ue, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-CNpUbUHd.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "void",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/voidzero-dev/void.git",
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
"valibot": ">=1.0.0-beta.7",
|
|
334
334
|
"vite": "^8.0.0",
|
|
335
335
|
"zod": "^3.25.0 || ^4.0.0",
|
|
336
|
-
"@void/md": "0.8.
|
|
336
|
+
"@void/md": "0.8.6"
|
|
337
337
|
},
|
|
338
338
|
"peerDependenciesMeta": {
|
|
339
339
|
"@void/md": {
|