void 1.6.0 → 1.6.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.
Files changed (105) hide show
  1. package/dist/{account-cmd-DRhmCWcm.mjs → account-cmd-D903EEWQ.mjs} +2 -2
  2. package/dist/{application-analysis-HRFsZOv3.mjs → application-analysis-DlUG-XNT.mjs} +5 -17
  3. package/dist/{application-routing-P4TggvWp.mjs → application-routing-GCBSwXA9.mjs} +1 -1
  4. package/dist/{auth-link-CVXP1G6G.mjs → auth-link-g9J7MSmP.mjs} +2 -2
  5. package/dist/{auth-router-D1pGdbvB.mjs → auth-router-DMZbG9Qn.mjs} +2 -2
  6. package/dist/cli/cli.mjs +23 -23
  7. package/dist/cli/env-schema-probe.mjs +3 -3
  8. package/dist/{cloudflare-auth-CEu-1Ps_.mjs → cloudflare-auth-CuS42-9A.mjs} +1 -1
  9. package/dist/{cloudflare-cmd-fZ6AMSWk.mjs → cloudflare-cmd-DTF19-j-.mjs} +3 -3
  10. package/dist/{cloudflare-config-eQunqX6A.mjs → cloudflare-config-Ce8j5S7V.mjs} +2 -2
  11. package/dist/{cloudflare-connect-9OZe4XVQ.mjs → cloudflare-connect-BN4dHp8i.mjs} +2 -2
  12. package/dist/{cloudflare-operations-CrskD4_O.mjs → cloudflare-operations-DrZGzQap.mjs} +5 -5
  13. package/dist/{cloudflare-operations-oLvAd9Nd.mjs → cloudflare-operations-laxRA8HN.mjs} +1 -1
  14. package/dist/{cloudflare-process-DjJ638A-.mjs → cloudflare-process-D9aC-jXr.mjs} +2 -2
  15. package/dist/{config-BBlVXZCU.mjs → config-CNDjO-15.mjs} +3 -3
  16. package/dist/{config-BgysUhnm.mjs → config-DMR0i3Z2.mjs} +1 -1
  17. package/dist/{config-BITKQ3O6.mjs → config-hL-S-Y9D.mjs} +5 -5
  18. package/dist/{config-WlvEcL82.mjs → config-s6TkpSat.mjs} +2 -2
  19. package/dist/{connect-CKvmkl2R.mjs → connect-DHepM7Xs.mjs} +3 -3
  20. package/dist/{db-cq5RW4Vy.mjs → db-CqfT6lhV.mjs} +18 -18
  21. package/dist/{db-types-C_8amnB0.mjs → db-types-DRmxBJ2K.mjs} +1 -1
  22. package/dist/deploy-DMhOyebt.mjs +2 -0
  23. package/dist/{deploy-D_gEojD2.mjs → deploy-La_Ly8g_.mjs} +38 -35
  24. package/dist/{deploy-managed-static-BHVbB_-A.mjs → deploy-managed-static-CESLfKHN.mjs} +13 -13
  25. package/dist/{deploy-transport-DEyOUfac.mjs → deploy-transport-DcI6LXhY.mjs} +2 -2
  26. package/dist/deploy.mjs +6 -6
  27. package/dist/discover-1DJD4YXD.mjs +1 -0
  28. package/dist/{discover-Dhkzxgdt.mjs → discover-CVFCWU7W.mjs} +1 -1
  29. package/dist/{dispatch-BNLB5_Gm.mjs → dispatch-DM4Xdd2l.mjs} +5 -5
  30. package/dist/{domain-BlH90Ods.mjs → domain-BD1KOQL3.mjs} +1 -1
  31. package/dist/{email-Bkq8ZL1p.mjs → email-XAspopcj.mjs} +6 -6
  32. package/dist/{email-cloudflare-MvJIxrwx.mjs → email-cloudflare-RxIQoPc9.mjs} +3 -3
  33. package/dist/{entry-CBZsCy3O.mjs → entry-DFBca6aS.mjs} +1 -1
  34. package/dist/{env-AvuCSeCH.mjs → env-DrYUh55t.mjs} +3 -3
  35. package/dist/{env-types-DqzVBKnS.mjs → env-types-Bd8DkQhl.mjs} +1 -1
  36. package/dist/{env-validation-C8Cmvas0.mjs → env-validation-Bosj7EVg.mjs} +1 -1
  37. package/dist/{env-validation-GV1oD4EV.mjs → env-validation-Del3C8AY.mjs} +2 -2
  38. package/dist/gen-BbT1Ku1P.mjs +1 -0
  39. package/dist/{gen-BD-dfjxY.mjs → gen-DSkScMIz.mjs} +4 -4
  40. package/dist/{handler-CKeTtYID.mjs → handler-DnI_au0K.mjs} +1 -1
  41. package/dist/{headers-CuTEdP9C.mjs → headers--cbz6iZ8.mjs} +1 -1
  42. package/dist/index.mjs +21 -21
  43. package/dist/{info-CJxua_db.mjs → info-BpxpsX0B.mjs} +4 -4
  44. package/dist/{init-B-4CluYx.mjs → init-DpVXO5S-.mjs} +12 -12
  45. package/dist/{list-BYSOo9fm.mjs → list-BFQ0gcML.mjs} +1 -1
  46. package/dist/{local-d1-BLgsNUj9.mjs → local-d1-CLVPP6v7.mjs} +1 -1
  47. package/dist/login-BX2gzHUt.mjs +1 -0
  48. package/dist/{login-CJopTWX4.mjs → login-RIw7ffPe.mjs} +1 -1
  49. package/dist/{logs-DE0weBsR.mjs → logs-B2OeLS4X.mjs} +1 -1
  50. package/dist/migrate-CUGMGaIM.mjs +1 -0
  51. package/dist/{migrate-ChHHZBTi.mjs → migrate-DiI50Chz.mjs} +4 -4
  52. package/dist/nitro.mjs +3 -3
  53. package/dist/{node-CZ6lGNLn.mjs → node-Bc-dBAGL.mjs} +2 -2
  54. package/dist/{operator-cmd-BUqsdk2K.mjs → operator-cmd-CEI5Aaza.mjs} +2 -2
  55. package/dist/operator-cmd-oTT2MA9G.mjs +1 -0
  56. package/dist/pages/client.d.mts +2 -0
  57. package/dist/pages/client.mjs +6 -3
  58. package/dist/pages/index.mjs +9 -5
  59. package/dist/pages/islands-plugin.mjs +1 -1
  60. package/dist/{platform-auth-config-K4m_LE8b.mjs → platform-auth-config-ZrYm8KVs.mjs} +3 -3
  61. package/dist/{platform-auth-protection-KF5Vo-1I.mjs → platform-auth-protection-t6mdY4nn.mjs} +2 -2
  62. package/dist/{platform-auth-recovery-BOdFrl7R.mjs → platform-auth-recovery-XeBmPTXx.mjs} +2 -2
  63. package/dist/{platform-cmd-DpCHawGF.mjs → platform-cmd-C7BevP9b.mjs} +1 -1
  64. package/dist/{platform-cmd-Ds3EAV5t.mjs → platform-cmd-EXehmSYA.mjs} +3 -3
  65. package/dist/{platform-domain-rWJshybd.mjs → platform-domain-DR263ObA.mjs} +2 -2
  66. package/dist/{platform-lifecycle-D9RdGub1.mjs → platform-lifecycle-BvU_TNji.mjs} +9 -9
  67. package/dist/{platform-lifecycle-BH34I0rh.mjs → platform-lifecycle-CN4aXldN.mjs} +1 -1
  68. package/dist/{platform-management-BRefdHGD.mjs → platform-management-_UE1_GM8.mjs} +1 -1
  69. package/dist/{platform-management-BfLW0Zlo.mjs → platform-management-yS2sve3V.mjs} +1 -1
  70. package/dist/{platform-recovery-DZuZGJtt.mjs → platform-recovery-CPVk9-Q4.mjs} +2 -2
  71. package/dist/{plugin-inference-CdLbxZL_.mjs → plugin-inference-bQ1Be840.mjs} +4 -7
  72. package/dist/{prepare-BMGeKL16.mjs → prepare-BkRhDnxw.mjs} +1 -1
  73. package/dist/prepare-CZRVGNld.mjs +1 -0
  74. package/dist/{prepare-BJW-f1f1.mjs → prepare-D8L9AQbw.mjs} +9 -9
  75. package/dist/{project-cmd-B_bUyZ3J.mjs → project-cmd-DH3CuFC6.mjs} +4 -4
  76. package/dist/{project-paths-CdGv9Tmi.mjs → project-paths-G0yut6Zz.mjs} +12 -8
  77. package/dist/{project-tsconfig-Cf2NFjlM.mjs → project-tsconfig-BMveFb4b.mjs} +1 -1
  78. package/dist/{provision-BbCzpbXs.mjs → provision-B0HqoRuI.mjs} +2 -2
  79. package/dist/{provision-DQF6Kw-6.mjs → provision-CYhZR_Mn.mjs} +1 -1
  80. package/dist/{rollback-BgL0wY1J.mjs → rollback-AVwiMAkk.mjs} +1 -1
  81. package/dist/{route-types-CZc1YXjF.mjs → route-types-e69EqY88.mjs} +1 -1
  82. package/dist/runtime/handler.mjs +1 -1
  83. package/dist/runtime/routing.mjs +2 -2
  84. package/dist/{scan-X2rDDRNa.mjs → scan-F0psanp7.mjs} +60 -14
  85. package/dist/{secret-CPq-B_vp.mjs → secret-szNdoeKa.mjs} +2 -2
  86. package/dist/{version-metadata-C8hLzQkv.mjs → version-metadata-BC3LK7Y-.mjs} +1 -1
  87. package/dist/wrangler-CQ5c-MtJ.mjs +1 -0
  88. package/dist/{wrangler-DESSbN8L.mjs → wrangler-Gn4EoY4-.mjs} +3 -3
  89. package/dist/{wrapper-C9SUxoj7.mjs → wrapper-B9W9RE8z.mjs} +3 -3
  90. package/docs/guide/edge/headers.md +3 -1
  91. package/docs/guide/edge/redirects.md +1 -0
  92. package/docs/guide/edge/static-assets.md +1 -1
  93. package/docs/guide/pages-routing/actions-and-forms.md +14 -0
  94. package/docs/guide/server-routing.md +14 -0
  95. package/docs/reference/api/pages.md +8 -0
  96. package/docs/reference/api/rewrites.md +3 -1
  97. package/package.json +7 -7
  98. package/dist/deploy-B029oHlE.mjs +0 -2
  99. package/dist/discover-D4mQthao.mjs +0 -1
  100. package/dist/gen-CIHXh9I8.mjs +0 -1
  101. package/dist/login-BpbYeu-n.mjs +0 -1
  102. package/dist/migrate-HdA6Kh2p.mjs +0 -1
  103. package/dist/operator-cmd-wBYyp8iQ.mjs +0 -1
  104. package/dist/prepare-BdxJJCMv.mjs +0 -1
  105. package/dist/wrangler-DUB3MGHV.mjs +0 -1
@@ -2,13 +2,13 @@ import { c as getToken, f as removeToken } from "./auth-Dy8svcqQ.mjs";
2
2
  import { L as log } from "./dist-D23AAMxT.mjs";
3
3
  import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
4
4
  import { m as printSuccess } from "./output-BCdLioKP.mjs";
5
- import { n as runLoginCommand } from "./login-CJopTWX4.mjs";
5
+ import { n as runLoginCommand } from "./login-RIw7ffPe.mjs";
6
6
  import { execSync } from "node:child_process";
7
7
  // src/cli/account-cmd.ts
8
8
  async function runAccountCommand(root, args) {
9
9
  switch (args.subcommand) {
10
10
  case "login": return runLoginCommand(root);
11
- case "link": return import("./auth-link-CVXP1G6G.mjs").then(({ runAuthLink }) => runAuthLink(root, args.connectionId));
11
+ case "link": return import("./auth-link-g9J7MSmP.mjs").then(({ runAuthLink }) => runAuthLink(root, args.connectionId));
12
12
  case "logout":
13
13
  if (removeToken(root)) printSuccess("Logged out.");
14
14
  else log.info("Not logged in.");
@@ -1,10 +1,10 @@
1
1
  import { a as join, i as isAbsolute, t as basename } from "./dist-DMYe8CZJ.mjs";
2
- import { c as scanWebSocketRoutesSync, d as readResourceDefinition, f as listConventionFiles, h as needsApplicationDatabase, i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, p as listRouteFiles, r as detectFramework, s as isWebSocketPatternFile } from "./plugin-inference-CdLbxZL_.mjs";
3
- import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
4
- import { r as findVoidAuthConfig } from "./config-WlvEcL82.mjs";
5
- import { l as getDatabaseDialect, m as resolveBindingNames } from "./config-BITKQ3O6.mjs";
2
+ import { c as scanWebSocketRoutesSync, d as readResourceDefinition, f as listConventionFiles, h as needsApplicationDatabase, i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, p as listRouteFiles, r as detectFramework, s as isWebSocketPatternFile } from "./plugin-inference-bQ1Be840.mjs";
3
+ import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
4
+ import { r as findVoidAuthConfig } from "./config-s6TkpSat.mjs";
5
+ import { l as getDatabaseDialect, m as resolveBindingNames } from "./config-hL-S-Y9D.mjs";
6
6
  import { n as globSync } from "./dist-BWNkVq50.mjs";
7
- import { m as parseRouteFilename, n as scanPages, p as isRouteEnabledForEnvironment } from "./scan-X2rDDRNa.mjs";
7
+ import { h as parseRouteFilename, m as isRouteEnabledForEnvironment, n as scanPages, p as compareRouteSpecificity } from "./scan-F0psanp7.mjs";
8
8
  import { n as isIdentifier, o as moduleExportName } from "./ast-Cv0JwXqb.mjs";
9
9
  import { a as staticLiteral, i as staticExportInitializers, o as unwrapStaticExpression, t as bindingNames } from "./ast-bindings-BkivMJIo.mjs";
10
10
  import { n as resourceNameWords } from "./resource-name-DlJ9QXzg.mjs";
@@ -181,18 +181,6 @@ function parseMiddlewareDefinitions(files) {
181
181
  };
182
182
  }).sort((a, b) => a.order - b.order);
183
183
  }
184
- function compareRouteSpecificity(a, b) {
185
- if (a.catchAll !== b.catchAll) return a.catchAll ? 1 : -1;
186
- const aSegments = a.pattern.split("/");
187
- const bSegments = b.pattern.split("/");
188
- const shared = Math.min(aSegments.length, bSegments.length);
189
- for (let i = 0; i < shared; i++) {
190
- const aDynamic = aSegments[i].startsWith(":") || aSegments[i] === "*";
191
- if (aDynamic !== (bSegments[i].startsWith(":") || bSegments[i] === "*")) return aDynamic ? 1 : -1;
192
- if (aSegments[i] !== bSegments[i]) return aSegments[i].localeCompare(bSegments[i]);
193
- }
194
- return aSegments.length - bSegments.length;
195
- }
196
184
  /** Add pages and HTTP methods to the inventories already resolved for this application phase. */
197
185
  async function scanRoutes(root, options) {
198
186
  const { paths, inventory } = options;
@@ -1,4 +1,4 @@
1
- import { l as scanRoutes, t as analyzeApplicationSync } from "./application-analysis-HRFsZOv3.mjs";
1
+ import { l as scanRoutes, t as analyzeApplicationSync } from "./application-analysis-DlUG-XNT.mjs";
2
2
  // src/application-routing.ts
3
3
  /** Complete route/page analysis using the same resource and handler inventories. */
4
4
  async function completeApplicationAnalysis(analysis) {
@@ -2,8 +2,8 @@ import { a as getApiUrl, c as getToken, m as savePlatformToken, p as runPlatform
2
2
  import { L as log } from "./dist-D23AAMxT.mjs";
3
3
  import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
4
4
  import { l as formatUrl } from "./output-BCdLioKP.mjs";
5
- import { r as selectPlatformLoginMethod } from "./login-CJopTWX4.mjs";
6
- import { t as discoverPlatform } from "./platform-cmd-Ds3EAV5t.mjs";
5
+ import { r as selectPlatformLoginMethod } from "./login-RIw7ffPe.mjs";
6
+ import { t as discoverPlatform } from "./platform-cmd-EXehmSYA.mjs";
7
7
  // src/cli/auth-link.ts
8
8
  async function runAuthLink(root, connectionId) {
9
9
  const token = getToken(root);
@@ -39,11 +39,11 @@ async function chooseDestination(root, args, interactive) {
39
39
  async function runAuthRouter(root, args, interactive = Boolean(process.stdin.isTTY)) {
40
40
  const destination = await chooseDestination(root, args, interactive);
41
41
  if (destination.platform === "cloudflare") {
42
- const { runCloudflareCommand } = await import("./cloudflare-cmd-fZ6AMSWk.mjs");
42
+ const { runCloudflareCommand } = await import("./cloudflare-cmd-DTF19-j-.mjs");
43
43
  await runCloudflareCommand(root, { subcommand: args.subcommand });
44
44
  return;
45
45
  }
46
- const { runAccountCommand } = await import("./account-cmd-DRhmCWcm.mjs");
46
+ const { runAccountCommand } = await import("./account-cmd-D903EEWQ.mjs");
47
47
  const subcommand = args.subcommand === "status" ? "whoami" : args.subcommand;
48
48
  if (!destination.apiUrl) {
49
49
  await runAccountCommand(root, { subcommand });
package/dist/cli/cli.mjs CHANGED
@@ -1632,17 +1632,17 @@ const args = process.argv.slice(2);
1632
1632
  const command = args[0];
1633
1633
  const helpPath = getHelpPath(args);
1634
1634
  const subcommandGroups = {
1635
- auth: () => runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("../auth-router-D1pGdbvB.mjs").then(({ runAuthRouter }) => runAuthRouter(root, parsed))),
1636
- account: () => runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (root, parsed) => import("../account-cmd-DRhmCWcm.mjs").then(({ runAccountCommand }) => runAccountCommand(root, parsed))),
1637
- platform: () => runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (root, parsed) => import("../platform-cmd-DpCHawGF.mjs").then(({ runPlatformCommand }) => runPlatformCommand(root, parsed))),
1638
- cloudflare: () => runSubcommandGroup("cloudflare", cloudflareSubcommands, parseCloudflareArgs, (root, parsed) => import("../cloudflare-cmd-fZ6AMSWk.mjs").then(({ runCloudflareCommand }) => runCloudflareCommand(root, parsed))),
1639
- project: () => runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("../project-cmd-B_bUyZ3J.mjs").then(({ runProjectCommand }) => runProjectCommand(root, parsed))),
1640
- secret: () => runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("../secret-CPq-B_vp.mjs").then(({ runSecretCommand }) => runSecretCommand(root, parsed))),
1641
- domain: () => runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("../domain-BlH90Ods.mjs").then(({ runDomainCommand }) => runDomainCommand(root, parsed))),
1642
- email: () => runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("../email-Bkq8ZL1p.mjs").then(({ runEmailCommand }) => runEmailCommand(root, parsed))),
1643
- db: () => runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("../db-cq5RW4Vy.mjs").then(({ runDbCommand }) => runDbCommand(root, parsed))),
1644
- env: () => runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("../env-AvuCSeCH.mjs").then(({ runEnvCommand }) => runEnvCommand(root, parsed))),
1645
- gen: () => runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("../gen-CIHXh9I8.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed))),
1635
+ auth: () => runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("../auth-router-DMZbG9Qn.mjs").then(({ runAuthRouter }) => runAuthRouter(root, parsed))),
1636
+ account: () => runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (root, parsed) => import("../account-cmd-D903EEWQ.mjs").then(({ runAccountCommand }) => runAccountCommand(root, parsed))),
1637
+ platform: () => runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (root, parsed) => import("../platform-cmd-C7BevP9b.mjs").then(({ runPlatformCommand }) => runPlatformCommand(root, parsed))),
1638
+ cloudflare: () => runSubcommandGroup("cloudflare", cloudflareSubcommands, parseCloudflareArgs, (root, parsed) => import("../cloudflare-cmd-DTF19-j-.mjs").then(({ runCloudflareCommand }) => runCloudflareCommand(root, parsed))),
1639
+ project: () => runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("../project-cmd-DH3CuFC6.mjs").then(({ runProjectCommand }) => runProjectCommand(root, parsed))),
1640
+ secret: () => runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("../secret-szNdoeKa.mjs").then(({ runSecretCommand }) => runSecretCommand(root, parsed))),
1641
+ domain: () => runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("../domain-BD1KOQL3.mjs").then(({ runDomainCommand }) => runDomainCommand(root, parsed))),
1642
+ email: () => runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("../email-XAspopcj.mjs").then(({ runEmailCommand }) => runEmailCommand(root, parsed))),
1643
+ db: () => runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("../db-CqfT6lhV.mjs").then(({ runDbCommand }) => runDbCommand(root, parsed))),
1644
+ env: () => runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("../env-DrYUh55t.mjs").then(({ runEnvCommand }) => runEnvCommand(root, parsed))),
1645
+ gen: () => runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("../gen-BbT1Ku1P.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed))),
1646
1646
  github: () => runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (root, parsed) => import("../github-cmd-CA-lBdkn.mjs").then(({ runGithubCommand }) => runGithubCommand(root, parsed))),
1647
1647
  build: () => runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (root, parsed) => import("../build-cmd-DmjbuT6d.mjs").then(({ runBuildCommand }) => runBuildCommand(root, parsed)))
1648
1648
  };
@@ -1663,7 +1663,7 @@ if (helpPath) {
1663
1663
  log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
1664
1664
  process.exit(1);
1665
1665
  }
1666
- import("../deploy-B029oHlE.mjs").then(({ runDeploy }) => {
1666
+ import("../deploy-DMhOyebt.mjs").then(({ runDeploy }) => {
1667
1667
  runDeploy(root, deployArgs).catch((err) => {
1668
1668
  log.error(formatCloudflareUserMessage(err.message ?? String(err)));
1669
1669
  process.exit(1);
@@ -1671,14 +1671,14 @@ if (helpPath) {
1671
1671
  });
1672
1672
  } else if (command === "connect") (async () => {
1673
1673
  const parsed = parseConnectArgs(args.slice(1));
1674
- const { runConnectCommand } = await import("../connect-CKvmkl2R.mjs");
1674
+ const { runConnectCommand } = await import("../connect-DHepM7Xs.mjs");
1675
1675
  await runConnectCommand(process.cwd(), parsed);
1676
1676
  })().catch((err) => {
1677
1677
  log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
1678
1678
  process.exit(1);
1679
1679
  });
1680
1680
  else if (command && Object.hasOwn(subcommandGroups, command)) subcommandGroups[command]();
1681
- else if (command === "info") import("../info-CJxua_db.mjs").then(async ({ runInfoCommand }) => {
1681
+ else if (command === "info") import("../info-BpxpsX0B.mjs").then(async ({ runInfoCommand }) => {
1682
1682
  try {
1683
1683
  await runInfoCommand(process.cwd(), parseInfoArgs(args.slice(1)));
1684
1684
  } catch (err) {
@@ -1699,7 +1699,7 @@ else if (command === "prepare") {
1699
1699
  log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
1700
1700
  process.exit(1);
1701
1701
  }
1702
- import("../prepare-BMGeKL16.mjs").then(({ runPrepareCommand }) => {
1702
+ import("../prepare-BkRhDnxw.mjs").then(({ runPrepareCommand }) => {
1703
1703
  runPrepareCommand(root).catch((err) => {
1704
1704
  log.error(formatCloudflareUserMessage(err.message ?? String(err)));
1705
1705
  process.exit(1);
@@ -1707,7 +1707,7 @@ else if (command === "prepare") {
1707
1707
  });
1708
1708
  } else if (command === "init") {
1709
1709
  const root = process.cwd();
1710
- import("../init-B-4CluYx.mjs").then(({ runInitCommand, parseInitArgs }) => {
1710
+ import("../init-DpVXO5S-.mjs").then(({ runInitCommand, parseInitArgs }) => {
1711
1711
  let initArgs;
1712
1712
  try {
1713
1713
  initArgs = parseInitArgs(args.slice(1));
@@ -1725,7 +1725,7 @@ else if (command === "prepare") {
1725
1725
  log.error("migrate: This command takes no arguments.");
1726
1726
  process.exit(1);
1727
1727
  }
1728
- import("../migrate-HdA6Kh2p.mjs").then(({ runMigrateCommand }) => {
1728
+ import("../migrate-CUGMGaIM.mjs").then(({ runMigrateCommand }) => {
1729
1729
  runMigrateCommand(process.cwd()).catch((err) => {
1730
1730
  log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
1731
1731
  process.exit(1);
@@ -1847,32 +1847,32 @@ else if (command) {
1847
1847
  if (Object.hasOwn(subcommandGroups, cmd)) return subcommandGroups[cmd]();
1848
1848
  switch (cmd) {
1849
1849
  case "connect": {
1850
- const { runConnectCommand } = await import("../connect-CKvmkl2R.mjs");
1850
+ const { runConnectCommand } = await import("../connect-DHepM7Xs.mjs");
1851
1851
  await runConnectCommand(root, parseConnectArgs([]));
1852
1852
  return;
1853
1853
  }
1854
1854
  case "init": {
1855
- const { runInitCommand, parseInitArgs } = await import("../init-B-4CluYx.mjs");
1855
+ const { runInitCommand, parseInitArgs } = await import("../init-DpVXO5S-.mjs");
1856
1856
  await runInitCommand(root, parseInitArgs([]));
1857
1857
  return;
1858
1858
  }
1859
1859
  case "migrate": {
1860
- const { runMigrateCommand } = await import("../migrate-HdA6Kh2p.mjs");
1860
+ const { runMigrateCommand } = await import("../migrate-CUGMGaIM.mjs");
1861
1861
  await runMigrateCommand(root);
1862
1862
  return;
1863
1863
  }
1864
1864
  case "deploy": {
1865
- const { runDeploy } = await import("../deploy-B029oHlE.mjs");
1865
+ const { runDeploy } = await import("../deploy-DMhOyebt.mjs");
1866
1866
  await runDeploy(root);
1867
1867
  return;
1868
1868
  }
1869
1869
  case "info": {
1870
- const { runInfoCommand } = await import("../info-CJxua_db.mjs");
1870
+ const { runInfoCommand } = await import("../info-BpxpsX0B.mjs");
1871
1871
  await runInfoCommand(root, parseInfoArgs([]));
1872
1872
  return;
1873
1873
  }
1874
1874
  case "prepare": {
1875
- const { runPrepareCommand } = await import("../prepare-BMGeKL16.mjs");
1875
+ const { runPrepareCommand } = await import("../prepare-BkRhDnxw.mjs");
1876
1876
  await runPrepareCommand(root);
1877
1877
  return;
1878
1878
  }
@@ -1,4 +1,4 @@
1
- import { t as findEnvFile } from "../env-types-DqzVBKnS.mjs";
1
+ import { t as findEnvFile } from "../env-types-Bd8DkQhl.mjs";
2
2
  import { writeSync } from "node:fs";
3
3
  import { fileURLToPath } from "node:url";
4
4
  import { spawnSync } from "node:child_process";
@@ -109,7 +109,7 @@ function emitResult(result) {
109
109
  writeSync(RESULT_FD, JSON.stringify(result));
110
110
  }
111
111
  async function runFactsChild(root) {
112
- const { deriveSelfHostSchemaFacts, SelfHostSchemaError } = await import("../env-validation-C8Cmvas0.mjs");
112
+ const { deriveSelfHostSchemaFacts, SelfHostSchemaError } = await import("../env-validation-Bosj7EVg.mjs");
113
113
  try {
114
114
  emitResult({
115
115
  kind: "ok",
@@ -128,7 +128,7 @@ async function runFactsChild(root) {
128
128
  }
129
129
  /** The parent already found the emitted config, so a read failure here fails closed. */
130
130
  async function runValidateEmittedChild(root) {
131
- const { computeInvalidEmittedKeys, readEmittedWorkerVars, SelfHostSchemaError } = await import("../env-validation-C8Cmvas0.mjs");
131
+ const { computeInvalidEmittedKeys, readEmittedWorkerVars, SelfHostSchemaError } = await import("../env-validation-Bosj7EVg.mjs");
132
132
  const emitted = readEmittedWorkerVars(root);
133
133
  if (!emitted.ok) {
134
134
  emitResult({
@@ -1,4 +1,4 @@
1
- import { i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation, t as createCloudflareProcessRunner } from "./cloudflare-process-DjJ638A-.mjs";
1
+ import { i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation, t as createCloudflareProcessRunner } from "./cloudflare-process-D9aC-jXr.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  // src/cli/cloudflare-auth.ts
4
4
  var CloudflareAuthenticationError = class extends Error {
@@ -1,9 +1,9 @@
1
1
  import { t as basename } from "./dist-DMYe8CZJ.mjs";
2
- import { b as readRootWranglerConfig } from "./wrangler-DESSbN8L.mjs";
2
+ import { b as readRootWranglerConfig } from "./wrangler-Gn4EoY4-.mjs";
3
3
  import { L as log } from "./dist-D23AAMxT.mjs";
4
4
  import { m as printSuccess } from "./output-BCdLioKP.mjs";
5
- import { i as isCleanCloudflareExit } from "./cloudflare-process-DjJ638A-.mjs";
6
- import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-CEu-1Ps_.mjs";
5
+ import { i as isCleanCloudflareExit } from "./cloudflare-process-D9aC-jXr.mjs";
6
+ import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-CuS42-9A.mjs";
7
7
  // src/cli/cloudflare-cmd.ts
8
8
  async function runCloudflareCommand(root, args) {
9
9
  const runWrangler = createBundledCloudflareAuthRunner(root);
@@ -1,6 +1,6 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import "./project-paths-CdGv9Tmi.mjs";
3
- import { p as readConfig } from "./config-BITKQ3O6.mjs";
2
+ import "./project-paths-G0yut6Zz.mjs";
3
+ import { p as readConfig } from "./config-hL-S-Y9D.mjs";
4
4
  import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
5
5
  import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, rmSync } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import { a as join, t as basename } from "./dist-DMYe8CZJ.mjs";
2
- import { M as writeProvisionedWranglerConfig, b as readRootWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-DESSbN8L.mjs";
2
+ import { M as writeProvisionedWranglerConfig, b as readRootWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-Gn4EoY4-.mjs";
3
3
  import { K as select, L as log, tt as isCancel } from "./dist-D23AAMxT.mjs";
4
- import { i as ensureCloudflareAuthentication, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-CEu-1Ps_.mjs";
4
+ import { i as ensureCloudflareAuthentication, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-CuS42-9A.mjs";
5
5
  import { existsSync } from "node:fs";
6
6
  // src/cli/cloudflare-connect.ts
7
7
  async function connectCloudflare(root, interactive = Boolean(process.stdin.isTTY)) {
@@ -1,10 +1,10 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import { a as persistCloudflareConfig, i as materializeCloudflareConfig } from "./cloudflare-config-eQunqX6A.mjs";
3
- import { N as writeWranglerPublishedTrafficSnapshot, S as readWranglerCustomDomains, j as updateWranglerCustomDomain, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-DESSbN8L.mjs";
2
+ import { a as persistCloudflareConfig, i as materializeCloudflareConfig } from "./cloudflare-config-Ce8j5S7V.mjs";
3
+ import { N as writeWranglerPublishedTrafficSnapshot, S as readWranglerCustomDomains, j as updateWranglerCustomDomain, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-Gn4EoY4-.mjs";
4
4
  import { u as getErrorMessage } from "./output-BCdLioKP.mjs";
5
- import { t as createCloudflareProcessRunner } from "./cloudflare-process-DjJ638A-.mjs";
6
- import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-BbCzpbXs.mjs";
7
- import { a as findWranglerCiOverrideDotenvFile, i as findAmbientConfigOverride } from "./deploy-transport-DEyOUfac.mjs";
5
+ import { t as createCloudflareProcessRunner } from "./cloudflare-process-D9aC-jXr.mjs";
6
+ import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-B0HqoRuI.mjs";
7
+ import { a as findWranglerCiOverrideDotenvFile, i as findAmbientConfigOverride } from "./deploy-transport-DcI6LXhY.mjs";
8
8
  import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
9
9
  import { tmpdir } from "node:os";
10
10
  import { deployCloudflareVersionTraffic, encodeCloudflareVersionMessage, parseCloudflareVersionMessage, parseRootWranglerConfig, readBindingFieldPresence, readCloudflareTriggerConfig, readWranglerTopLevelString, resolveD1MigrateTarget, stabilizeCloudflareVersionTriggers } from "@void/deploy-cloudflare";
@@ -1 +1 @@
1
- export { t as activateCloudflareExistingVersion, n as applyCloudflareD1Migrations, r as changeCloudflareDomain, o as deleteCloudflareSecret, s as executeCloudflareD1Sql, c as listCloudflareDomains, l as listCloudflareSecrets, m as putCloudflareSecret, h as readCloudflareD1Migrations, g as readCloudflareWorkerStatus, _ as resolveCloudflareD1Context, v as resolveCloudflareOperationContext, y as restoreCloudflareD1Database, b as syncCloudflareSecrets, x as tailCloudflareWorker } from "./cloudflare-operations-CrskD4_O.mjs";
1
+ export { t as activateCloudflareExistingVersion, n as applyCloudflareD1Migrations, r as changeCloudflareDomain, o as deleteCloudflareSecret, s as executeCloudflareD1Sql, c as listCloudflareDomains, l as listCloudflareSecrets, m as putCloudflareSecret, h as readCloudflareD1Migrations, g as readCloudflareWorkerStatus, _ as resolveCloudflareD1Context, v as resolveCloudflareOperationContext, y as restoreCloudflareD1Database, b as syncCloudflareSecrets, x as tailCloudflareWorker } from "./cloudflare-operations-DrZGzQap.mjs";
@@ -1,6 +1,6 @@
1
1
  import { a as join, c as resolve, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { n as readProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
3
- import { i as hasSsrEntry, r as getSsrServerEntryPath } from "./entry-CBZsCy3O.mjs";
2
+ import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
3
+ import { i as hasSsrEntry, r as getSsrServerEntryPath } from "./entry-DFBca6aS.mjs";
4
4
  import { i as readPackageJson, n as hasPackageDependency, t as getPackageDependencies } from "./package-json-DvS6IFRv.mjs";
5
5
  import { t as CF_VERSION_SOURCE_MAX_OUTPUT_BYTES } from "./cf-command-values-Ccl-zRhl.mjs";
6
6
  import { existsSync } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { i as resolveProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
3
- import { n as schemaSpecifier, t as discoverSchema } from "./discover-Dhkzxgdt.mjs";
4
- import { c as getDatabaseCasing, p as readConfig } from "./config-BITKQ3O6.mjs";
2
+ import { i as resolveProjectPaths } from "./project-paths-G0yut6Zz.mjs";
3
+ import { n as schemaSpecifier, t as discoverSchema } from "./discover-CVFCWU7W.mjs";
4
+ import { c as getDatabaseCasing, p as readConfig } from "./config-hL-S-Y9D.mjs";
5
5
  import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
6
6
  import { tmpdir } from "node:os";
7
7
  // src/drizzle/config.ts
@@ -1 +1 @@
1
- export { t as PLACEHOLDER_DB_URL, n as withPrivateDrizzleConfig, r as writeDrizzleConfig } from "./config-BBlVXZCU.mjs";
1
+ export { t as PLACEHOLDER_DB_URL, n as withPrivateDrizzleConfig, r as writeDrizzleConfig } from "./config-CNDjO-15.mjs";
@@ -1,4 +1,4 @@
1
- import { a as validateSourceDir, c as loadVoidConfig } from "./project-paths-CdGv9Tmi.mjs";
1
+ import { a as validateSourceDir, c as loadVoidConfig } from "./project-paths-G0yut6Zz.mjs";
2
2
  import { a as isVoidAuthProvider, t as VOID_AUTH_PROVIDERS } from "./providers-ZARwX2cL.mjs";
3
3
  import { n as MimeError, o as parseAddress } from "./mime-CtP6-qAF.mjs";
4
4
  import { isRecord } from "@void/deploy-core";
@@ -181,7 +181,7 @@ function validateConfig(config, source = CONFIG_FILE) {
181
181
  try {
182
182
  return validateConfigObject(config);
183
183
  } catch (error) {
184
- if (source !== CONFIG_FILE && error instanceof Error) throw new Error(error.message.replaceAll(CONFIG_FILE, source), { cause: error });
184
+ if (source !== CONFIG_FILE && error instanceof Error) throw new Error(error.message.replaceAll(CONFIG_FILE, source));
185
185
  throw error;
186
186
  }
187
187
  }
@@ -190,7 +190,7 @@ function validateConfigObject(obj) {
190
190
  for (const [key, message] of Object.entries(MIGRATION_ERRORS)) if (obj[key] !== void 0) throw new Error(`config: ${message} in ${CONFIG_FILE}.`);
191
191
  if (obj.sourceDir !== void 0) {
192
192
  if (typeof obj.sourceDir !== "string") throw new Error(`config: "sourceDir" in ${CONFIG_FILE} must be a string.`);
193
- validateSourceDir(obj.sourceDir);
193
+ validateSourceDir(obj.sourceDir, CONFIG_FILE);
194
194
  }
195
195
  if (obj.target !== void 0) {
196
196
  if (typeof obj.target !== "string" || !VALID_TARGETS.has(obj.target)) throw new Error(`config: "target" in ${CONFIG_FILE} must be one of: cloudflare, node, bun, deno.`);
@@ -505,7 +505,7 @@ function convertHeadersConfig(headers) {
505
505
  */
506
506
  function convertRedirectsConfig(redirects) {
507
507
  if (!redirects) return;
508
- const origin = "void.json#routing.redirects";
508
+ const origin = "void.config.ts#routing.redirects";
509
509
  const rules = [];
510
510
  for (const [rawSource, dest] of Object.entries(redirects)) {
511
511
  const parsed = parseHostPrefixedSource(rawSource);
@@ -555,7 +555,7 @@ function convertFallbacksConfig(fallbacks) {
555
555
  }
556
556
  function convertRewriteRules(caller, entries, field, force) {
557
557
  if (!entries) return;
558
- const origin = `void.json#routing.${field}`;
558
+ const origin = `void.config.ts#routing.${field}`;
559
559
  const rules = [];
560
560
  for (const [rawSource, destination] of Object.entries(entries)) {
561
561
  const parsed = parseHostPrefixedSource(rawSource);
@@ -1,5 +1,5 @@
1
- import { n as readProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
2
- import { t as discoverSchema } from "./discover-Dhkzxgdt.mjs";
1
+ import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
2
+ import { t as discoverSchema } from "./discover-CVFCWU7W.mjs";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import { isRunnableDevEnvironment, parseSync, runnerImport } from "vite";
5
5
  // src/auth/config.ts
@@ -4,9 +4,9 @@ import { d as readPlatformToken } from "./auth-Dy8svcqQ.mjs";
4
4
  import { K as select, L as log, tt as isCancel } from "./dist-D23AAMxT.mjs";
5
5
  import { a as isExpiredTokenError, r as PlatformClient } from "./client-CoxPEhJq.mjs";
6
6
  import { m as printSuccess } from "./output-BCdLioKP.mjs";
7
- import { t as promptForLoginToken } from "./login-CJopTWX4.mjs";
8
- import { i as saveDiscoveredPlatform, n as promptPlatformUrl, t as discoverPlatform } from "./platform-cmd-Ds3EAV5t.mjs";
9
- import { t as connectCloudflare } from "./cloudflare-connect-9OZe4XVQ.mjs";
7
+ import { t as promptForLoginToken } from "./login-RIw7ffPe.mjs";
8
+ import { i as saveDiscoveredPlatform, n as promptPlatformUrl, t as discoverPlatform } from "./platform-cmd-EXehmSYA.mjs";
9
+ import { t as connectCloudflare } from "./cloudflare-connect-BN4dHp8i.mjs";
10
10
  // src/cli/connect.ts
11
11
  async function selectVoidPlatform(interactive) {
12
12
  if (!interactive) throw new Error("connect: Supply a Void platform URL in non-interactive mode.");
@@ -1,10 +1,10 @@
1
1
  import { a as join, c as resolve, n as dirname, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
2
- import { r as detectFramework } from "./plugin-inference-CdLbxZL_.mjs";
3
- import { n as readProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
4
- import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-BITKQ3O6.mjs";
2
+ import { r as detectFramework } from "./plugin-inference-bQ1Be840.mjs";
3
+ import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
4
+ import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-hL-S-Y9D.mjs";
5
5
  import { i as writeJournal, n as readJournal, r as stripSqlExt, t as collectMigrations } from "./collect-C6Blu9yw.mjs";
6
6
  import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
7
- import { t as resolveLocalD1Target } from "./local-d1-BLgsNUj9.mjs";
7
+ import { t as resolveLocalD1Target } from "./local-d1-CLVPP6v7.mjs";
8
8
  import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
9
9
  import { n as ensurePlatformProxyAccess, r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-BmBT2h8_.mjs";
10
10
  import { c as getToken, o as getProxyUrl } from "./auth-Dy8svcqQ.mjs";
@@ -14,7 +14,7 @@ import { A as confirm, H as outro, L as log, X as text, tt as isCancel } from ".
14
14
  import { n as PlatformApiError, r as PlatformClient } from "./client-CoxPEhJq.mjs";
15
15
  import { f as import_picocolors, i as dim, l as formatUrl, m as printSuccess, o as formatCount, u as getErrorMessage } from "./output-BCdLioKP.mjs";
16
16
  import { n as drizzleKitBin } from "./yarn-pnp-DgWbE7z5.mjs";
17
- import { n as formatTimestamp } from "./gen-BD-dfjxY.mjs";
17
+ import { n as formatTimestamp } from "./gen-DSkScMIz.mjs";
18
18
  import { createRequire } from "node:module";
19
19
  import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
20
20
  import { pathToFileURL } from "node:url";
@@ -155,7 +155,7 @@ function runDrizzleKit(root, args) {
155
155
  * already printed its own error.
156
156
  */
157
157
  async function runDrizzleKitWithDatabaseUrl(root, url, dialect, command) {
158
- const { withPrivateDrizzleConfig } = await import("./config-BgysUhnm.mjs");
158
+ const { withPrivateDrizzleConfig } = await import("./config-DMR0i3Z2.mjs");
159
159
  if (!withPrivateDrizzleConfig(root, url, dialect, (configPath) => {
160
160
  try {
161
161
  runDrizzleKit(root, [
@@ -311,7 +311,7 @@ async function runPush(root, dialect) {
311
311
  printSuccess("Database schema pushed.");
312
312
  return;
313
313
  }
314
- const { writeDrizzleConfig } = await import("./config-BgysUhnm.mjs");
314
+ const { writeDrizzleConfig } = await import("./config-DMR0i3Z2.mjs");
315
315
  const { databasePath: dbPath } = getLocalD1Target(root);
316
316
  mkdirSync(dirname(dbPath), { recursive: true });
317
317
  const configPath = writeDrizzleConfig(root, dbPath);
@@ -327,8 +327,8 @@ async function runPush(root, dialect) {
327
327
  printSuccess("Database schema pushed.");
328
328
  }
329
329
  async function runGenerate(root, dialect) {
330
- const { prepareProject } = await import("./prepare-BdxJJCMv.mjs");
331
- const { PLACEHOLDER_DB_URL, writeDrizzleConfig } = await import("./config-BgysUhnm.mjs");
330
+ const { prepareProject } = await import("./prepare-CZRVGNld.mjs");
331
+ const { PLACEHOLDER_DB_URL, writeDrizzleConfig } = await import("./config-DMR0i3Z2.mjs");
332
332
  await prepareProject(root);
333
333
  const authSchemaPath = join(root, ".void", "better-auth-schema.ts");
334
334
  const additionalSchemas = existsSync(authSchemaPath) ? [authSchemaPath] : void 0;
@@ -398,7 +398,7 @@ async function runStatus(root, dialect) {
398
398
  applied_at: ""
399
399
  }));
400
400
  } else {
401
- const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-oLvAd9Nd.mjs");
401
+ const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-laxRA8HN.mjs");
402
402
  remoteApplied = (await readCloudflareD1Migrations(resolveCloudflareD1Context(root, configuredD1Binding(root)))).map((name) => ({
403
403
  name,
404
404
  applied_at: ""
@@ -710,7 +710,7 @@ async function runExecute(root, command, file, dialect, remote) {
710
710
  process.exit(0);
711
711
  }
712
712
  if (dialect === "sqlite") {
713
- const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-oLvAd9Nd.mjs");
713
+ const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-laxRA8HN.mjs");
714
714
  const rows = await executeCloudflareD1Sql(resolveCloudflareD1Context(root, configuredD1Binding(root)), sql);
715
715
  if (rows.length > 0) printTable(rows);
716
716
  } else {
@@ -904,7 +904,7 @@ async function runMigrate(root, dialect, remote) {
904
904
  log.info(`No migration files found in ${paths.sourceRelative("db/migrations")}/`);
905
905
  return;
906
906
  }
907
- const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-oLvAd9Nd.mjs");
907
+ const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-laxRA8HN.mjs");
908
908
  const binding = configuredD1Binding(root);
909
909
  const context = resolveCloudflareD1Context(root, binding);
910
910
  const remoteBefore = new Set(await readCloudflareD1Migrations(context));
@@ -924,7 +924,7 @@ async function runMigrate(root, dialect, remote) {
924
924
  log.error(`db: D1 binding ${binding} has no "migrations_dir", so Cloudflare would apply ./migrations instead of ${dir}/. Add "migrations_dir": "./${dir}" to that D1 binding in your Cloudflare config, then run the command again.`);
925
925
  process.exit(1);
926
926
  }
927
- const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-B029oHlE.mjs");
927
+ const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-DMhOyebt.mjs");
928
928
  const applySet = await checkWranglerMigrationApplySet(context.operation.configPath, parseRootWranglerConfig(context.operation.configPath), binding, context.migrationsDir, rawMigrations, paths.sourceRelative("db/migrations"));
929
929
  if (!applySet.ok) {
930
930
  log.error(applySet.reason);
@@ -1051,7 +1051,7 @@ async function runRestore(root, dialect, { target, platform: explicitPlatform, y
1051
1051
  log.error("db: `void db restore` restores the D1 database of a direct Cloudflare deploy. After a one-off `void deploy --platform cloudflare`, run it with `--platform cloudflare`.");
1052
1052
  process.exit(1);
1053
1053
  }
1054
- const { readCloudflareD1Migrations, resolveCloudflareD1Context, restoreCloudflareD1Database } = await import("./cloudflare-operations-oLvAd9Nd.mjs");
1054
+ const { readCloudflareD1Migrations, resolveCloudflareD1Context, restoreCloudflareD1Database } = await import("./cloudflare-operations-laxRA8HN.mjs");
1055
1055
  const binding = configuredD1Binding(root);
1056
1056
  const context = resolveCloudflareD1Context(root, binding);
1057
1057
  const database = `D1 database ${context.migrateToken} (${binding})`;
@@ -1125,7 +1125,7 @@ async function runStudio(root, dialect, remote) {
1125
1125
  await runDrizzleKitWithDatabaseUrl(root, url, dialect, "studio");
1126
1126
  return;
1127
1127
  }
1128
- const { writeDrizzleConfig } = await import("./config-BgysUhnm.mjs");
1128
+ const { writeDrizzleConfig } = await import("./config-DMR0i3Z2.mjs");
1129
1129
  const { databasePath: dbPath } = getLocalD1Target(root);
1130
1130
  if (!existsSync(dbPath)) {
1131
1131
  log.error("No local database found. Start the dev server first.");
@@ -1145,8 +1145,8 @@ async function runStudio(root, dialect, remote) {
1145
1145
  }
1146
1146
  /** A direct Cloudflare deploy records its D1 or Hyperdrive id in the checked-in Cloudflare config. */
1147
1147
  async function hasDeployedCloudflareDatabase(root) {
1148
- const { readRootWranglerConfig } = await import("./wrangler-DUB3MGHV.mjs");
1149
- const { isRealD1Id, isRealHyperdriveId } = await import("./provision-DQF6Kw-6.mjs");
1148
+ const { readRootWranglerConfig } = await import("./wrangler-CQ5c-MtJ.mjs");
1149
+ const { isRealD1Id, isRealHyperdriveId } = await import("./provision-CYhZR_Mn.mjs");
1150
1150
  const config = readRootWranglerConfig(root)?.config;
1151
1151
  const entries = (key) => {
1152
1152
  const value = config?.[key];
@@ -1697,7 +1697,7 @@ async function loadSeedFunction(seedPath) {
1697
1697
  return seed;
1698
1698
  }
1699
1699
  async function loadSeedSchema(root) {
1700
- const { discoverSchema } = await import("./discover-D4mQthao.mjs");
1700
+ const { discoverSchema } = await import("./discover-1DJD4YXD.mjs");
1701
1701
  const location = discoverSchema(root, readProjectPaths(root));
1702
1702
  if (!location) return {};
1703
1703
  if (location.type === "file") {
@@ -1,5 +1,5 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import { i as writeFileIfChanged } from "./project-tsconfig-Cf2NFjlM.mjs";
2
+ import { i as writeFileIfChanged } from "./project-tsconfig-BMveFb4b.mjs";
3
3
  // src/codegen/db-types.ts
4
4
  const DRIZZLE_OPERATORS = "sql, eq, ne, gt, gte, lt, lte, and, or, not, desc, asc, like, ilike, notLike, inArray, notInArray, isNull, isNotNull, between, notBetween, exists, notExists, count, sum, avg, min, max";
5
5
  const DIALECT_DB_TYPES = {
@@ -0,0 +1,2 @@
1
+ import "./deploy-transport-DcI6LXhY.mjs";
2
+ export { i as checkWranglerMigrationApplySet, t as parseRootWranglerConfig, r as runDeploy } from "./deploy-La_Ly8g_.mjs";