void 0.7.12 → 0.8.0

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 (142) hide show
  1. package/AGENT_PROMPT.md +1 -1
  2. package/README.md +2 -2
  3. package/dist/{agents-DqkFfc2c.mjs → agents-Dkgafwfr.mjs} +1 -1
  4. package/dist/{auth-cmd-bS88H4Lb.mjs → auth-cmd-B1-7r6ng.mjs} +3 -3
  5. package/dist/{better-auth-shared-D2JaoCs4.mjs → better-auth-shared-CbAF6sOM.mjs} +1 -1
  6. package/dist/{better-auth-shared-HXlHRw02.d.mts → better-auth-shared-Fzyk5yS1.d.mts} +2 -7
  7. package/dist/{cache-DUDCNty6.mjs → cache-CGYC-2LW.mjs} +5 -5
  8. package/dist/{cancel-deploy-DOuSbPwX.mjs → cancel-deploy-B4j31z7d.mjs} +4 -4
  9. package/dist/canonical-json-CEyQaVDa.mjs +13 -0
  10. package/dist/cli/cli.mjs +44 -31
  11. package/dist/{client-C_DYiXeu.mjs → client-C-nH6yz3.mjs} +5 -5
  12. package/dist/{collect-HqAuilH6.mjs → collect-9rO3JFNM.mjs} +1 -1
  13. package/dist/{config-DyUSwbeX.mjs → config--wXmVOoe.mjs} +10 -8
  14. package/dist/{config-CeRQg3Lz.mjs → config-BVEC0lti.mjs} +11 -2
  15. package/dist/{config-CvHtTM0q.mjs → config-hhMYPVRT.mjs} +3 -12
  16. package/dist/{create-project-hvFe6rbI.mjs → create-project-BGnQMy5N.mjs} +44 -18
  17. package/dist/{db-YEYSTfGw.mjs → db-CT5Xg6ds.mjs} +42 -37
  18. package/dist/{delete-XyM_VD9o.mjs → delete-eMGTHHB9.mjs} +5 -5
  19. package/dist/{deploy-CPAEgVQm.mjs → deploy-7EA_lKq9.mjs} +169 -99
  20. package/dist/{discover-CKGQpis8.mjs → discover-C8N1I4tK.mjs} +9 -6
  21. package/dist/{domain-Dvj7u8tr.mjs → domain-UfLrp2vc.mjs} +64 -22
  22. package/dist/{drizzle-Cx7cVwrE.mjs → drizzle-DmaANP4-.mjs} +1 -1
  23. package/dist/{env-Bjl0rzuf.mjs → env-Cvdbbm_N.mjs} +7 -7
  24. package/dist/{env-helpers-Dw95CU8e.d.mts → env-helpers-Bt9yYg5I.d.mts} +1 -1
  25. package/dist/{env-types-BSQghXbx.mjs → env-types-D6qI1ThV.mjs} +8 -19
  26. package/dist/{env-validation-Buy5pe3u.mjs → env-validation-DBJsxZLz.mjs} +4 -4
  27. package/dist/{gen-DU8NIdrH.mjs → gen-Cn2hZ8RR.mjs} +37 -31
  28. package/dist/{handler-DJTuxB10.d.mts → handler-BPhL8AmU.d.mts} +3 -3
  29. package/dist/{headers-CuVHn6Kl.mjs → headers-wAPJigtE.mjs} +3 -3
  30. package/dist/index.d.mts +3 -3
  31. package/dist/index.mjs +273 -104
  32. package/dist/{init-iIiQWzyB.mjs → init-DL6syXuF.mjs} +124 -38
  33. package/dist/{link-DdXqlUiJ.mjs → link-C5x1E-XZ.mjs} +5 -5
  34. package/dist/{list-9Bxa5Odn.mjs → list-ezL7hqDV.mjs} +5 -5
  35. package/dist/{login-C_MfDjhu.mjs → login-CkLr-AaI.mjs} +3 -3
  36. package/dist/{logs-DjqCpEER.mjs → logs-MnGILmLz.mjs} +4 -4
  37. package/dist/{mcp-vA0880_K.mjs → mcp-B84MmVAW.mjs} +3 -3
  38. package/dist/{node-gxRQXIRT.mjs → node-fpywdcbN.mjs} +6 -6
  39. package/dist/{output-D3g5otMC.mjs → output-DeiS4oEX.mjs} +1 -1
  40. package/dist/pages/client.d.mts +1 -1
  41. package/dist/pages/head-client.d.mts +1 -1
  42. package/dist/pages/head.d.mts +1 -1
  43. package/dist/pages/index.d.mts +28 -3
  44. package/dist/pages/index.mjs +6 -5
  45. package/dist/pages/islands-plugin.d.mts +1 -1
  46. package/dist/pages/islands-plugin.mjs +15 -14
  47. package/dist/pages/protocol.d.mts +2 -2
  48. package/dist/pages/protocol.mjs +1 -1
  49. package/dist/{pathe.M-eThtNZ-D-kmWkCS.mjs → pathe.M-eThtNZ-BrPhGF_K.mjs} +1 -1
  50. package/dist/plan-aD3wRDqF.mjs +271 -0
  51. package/dist/{plugin-inference-BexV6LL3.mjs → plugin-inference-Ba1uGdIy.mjs} +26 -20
  52. package/dist/{prepare-BEkH89oX.mjs → prepare-BrAISonG.mjs} +29 -19
  53. package/dist/{preset-CYQh93UF.mjs → preset-BRsCi8ZB.mjs} +10 -8
  54. package/dist/{project-DhB4A8_g.mjs → project-CH9pdo16.mjs} +1 -1
  55. package/dist/{project-cmd-CeXO06hG.mjs → project-cmd-JQUzv3qF.mjs} +10 -10
  56. package/dist/project-paths-CCMrHYQm.mjs +100 -0
  57. package/dist/{project-slug-KRvHQEQI.mjs → project-slug-De4UjtD9.mjs} +0 -1
  58. package/dist/{project-tsconfig-Bfy55qvs.mjs → project-tsconfig-HAGjfY6w.mjs} +10 -5
  59. package/dist/{protocol-D7r_deVZ.d.mts → protocol-mcSsdMij.d.mts} +3 -3
  60. package/dist/providers--_pvxpNN.d.mts +7 -0
  61. package/dist/{resolve-project-DdjLQ2tB.mjs → resolve-project-CNpUbUHd.mjs} +1 -1
  62. package/dist/{rollback-C8OSMxmq.mjs → rollback-CoAAvC18.mjs} +4 -4
  63. package/dist/{route-types-qVL-v-CB.mjs → route-types-jxRfWuCb.mjs} +1 -1
  64. package/dist/{runner-C0d3lJo1.mjs → runner-BkGBfr4e.mjs} +4 -2
  65. package/dist/{runner-pg-Bd_172vF.mjs → runner-pg-BXP0JpHW.mjs} +1 -1
  66. package/dist/runtime/ai.mjs +2 -2
  67. package/dist/runtime/auth.d.mts +1 -1
  68. package/dist/runtime/better-auth-pg.d.mts +1 -1
  69. package/dist/runtime/better-auth-pg.mjs +2 -2
  70. package/dist/runtime/better-auth.d.mts +1 -1
  71. package/dist/runtime/better-auth.mjs +2 -2
  72. package/dist/runtime/client.d.mts +2 -2
  73. package/dist/runtime/client.mjs +1 -1
  74. package/dist/runtime/env-helpers.d.mts +1 -1
  75. package/dist/runtime/env-public-client.d.mts +1 -1
  76. package/dist/runtime/env-public.d.mts +2 -2
  77. package/dist/runtime/env-public.mjs +1 -1
  78. package/dist/runtime/env.mjs +1 -1
  79. package/dist/runtime/fetch-stream.d.mts +1 -1
  80. package/dist/runtime/fetch-stream.mjs +1 -1
  81. package/dist/runtime/fetch.d.mts +1 -1
  82. package/dist/runtime/fetch.mjs +1 -1
  83. package/dist/runtime/handler.d.mts +1 -1
  84. package/dist/runtime/handler.mjs +1 -1
  85. package/dist/runtime/isr.mjs +1 -1
  86. package/dist/runtime/live.d.mts +2 -2
  87. package/dist/runtime/live.mjs +1 -1
  88. package/dist/runtime/migration-handler.d.mts +33 -1
  89. package/dist/runtime/migration-handler.mjs +398 -23
  90. package/dist/runtime/remote/index.mjs +1 -1
  91. package/dist/runtime/sandbox.d.mts +73 -3
  92. package/dist/runtime/sandbox.mjs +239 -3
  93. package/dist/runtime/validator.d.mts +1 -1
  94. package/dist/runtime/ws-server.d.mts +2 -2
  95. package/dist/runtime/ws.d.mts +3 -3
  96. package/dist/{scan-CKpylFj9.mjs → scan-2YmJkYAf.mjs} +4 -3
  97. package/dist/{scan-CkK1Hzpa.mjs → scan-DzzHqtiT.mjs} +82 -43
  98. package/dist/{secret-NDvlqAN2.mjs → secret-mz8t_CML.mjs} +5 -5
  99. package/dist/{skills-SAG0WyVn.mjs → skills-B_ynF4lA.mjs} +3 -3
  100. package/dist/{subcommand-prompt-q9T06dpg.mjs → subcommand-prompt-CPuV7tPW.mjs} +2 -2
  101. package/dist/sveltekit.mjs +1 -1
  102. package/dist/{validate-DW3ViKTA.mjs → validate-CNWm-PsL.mjs} +49 -9
  103. package/dist/{yarn-pnp-6LD6_3Ej.mjs → yarn-pnp-QgEYVC3V.mjs} +1 -1
  104. package/getting-started-prompt.txt +2 -2
  105. package/package.json +3 -2
  106. package/schema.json +5 -0
  107. package/skills/void/SKILL.md +1 -1
  108. package/skills/void/docs/guide/ai.md +1 -1
  109. package/skills/void/docs/guide/app-types.md +1 -1
  110. package/skills/void/docs/guide/database/postgresql.md +1 -1
  111. package/skills/void/docs/guide/edge/headers.md +1 -1
  112. package/skills/void/docs/guide/edge/static-assets.md +34 -0
  113. package/skills/void/docs/guide/pages-routing/overview.md +1 -1
  114. package/skills/void/docs/guide/quickstart.md +2 -2
  115. package/skills/void/docs/guide/sandboxes.md +3 -2
  116. package/skills/void/docs/guide/ssr.md +25 -2
  117. package/skills/void/docs/integrations/cloudflare.md +5 -3
  118. package/skills/void/docs/integrations/frameworks/overview.md +1 -1
  119. package/skills/void/docs/integrations/nodejs-bun-deno.md +10 -9
  120. package/skills/void/docs/node_modules/void/AGENT_PROMPT.md +1 -1
  121. package/skills/void/docs/node_modules/void/README.md +2 -2
  122. package/skills/void/docs/node_modules/void/skills/void/SKILL.md +1 -1
  123. package/skills/void/docs/reference/api.md +204 -13
  124. package/skills/void/docs/reference/cli.md +55 -7
  125. package/skills/void/docs/reference/config.md +27 -4
  126. package/skills/void/docs/reference/resource-inference.md +1 -1
  127. /package/dist/{auth-DmuALf16.d.mts → auth-SfRBhXan.d.mts} +0 -0
  128. /package/dist/{auth-migrations-BwLPwRgH.mjs → auth-migrations-BqJoGqGQ.mjs} +0 -0
  129. /package/dist/{cf-access-BW8K93Fm.mjs → cf-access-DKDsgwOU.mjs} +0 -0
  130. /package/dist/{defer-2ARBu8Et.mjs → defer-DkoEwda-.mjs} +0 -0
  131. /package/dist/{dist-q8b2Mjgb.mjs → dist-DR9sIMbM.mjs} +0 -0
  132. /package/dist/{dist-D2L3_KTK.mjs → dist-abzUneor.mjs} +0 -0
  133. /package/dist/{dotenv-HQNhRalS.mjs → dotenv-Bkoqyq9r.mjs} +0 -0
  134. /package/dist/{env-raw-DtfQ9E31.mjs → env-raw-zk5JQKZe.mjs} +0 -0
  135. /package/dist/{fetch-error-DZ868Xq4.d.mts → fetch-error-BbixZ9vW.d.mts} +0 -0
  136. /package/dist/{fetch-error-CEr0ACTl.mjs → fetch-error-rXermVU3.mjs} +0 -0
  137. /package/dist/{head-C7QW7UY1.d.mts → head-CZs8dMxG.d.mts} +0 -0
  138. /package/dist/{log-7ChR5Fbc.mjs → log-CWWZV4V1.mjs} +0 -0
  139. /package/dist/{magic-string.es-DS_lmuBe.mjs → magic-string.es-C1Fb0uxq.mjs} +0 -0
  140. /package/dist/{providers-BlFNPYen.mjs → providers-uC0PJg1c.mjs} +0 -0
  141. /package/dist/{standard-schema-D2qvCEYV.d.mts → standard-schema-WhHcCaqJ.d.mts} +0 -0
  142. /package/dist/{types-DG_Ynnyd.d.mts → types-C8wsi1hv.d.mts} +0 -0
@@ -1,13 +1,14 @@
1
- import { a as join, o as relative, r as extname, s as resolve } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
2
- import { i as dim, n as cliTitle, s as import_picocolors } from "./output-D3g5otMC.mjs";
3
- import { c as getToken, n as PlatformClient } from "./client-C_DYiXeu.mjs";
4
- import { c as R, g as ge, y as ye } from "./dist-D2L3_KTK.mjs";
5
- import { r as readProjectConfig } from "./project-DhB4A8_g.mjs";
6
- import { c as getDatabaseDialect, f as readConfig } from "./config-CeRQg3Lz.mjs";
7
- import { r as detectFramework } from "./plugin-inference-BexV6LL3.mjs";
8
- import { a as writeJournal, i as stripSqlExt, r as readJournal, t as collectMigrations } from "./collect-HqAuilH6.mjs";
9
- import { n as listDrizzleArtifacts, r as validateMigrations, t as assertJournalCoherence } from "./validate-DW3ViKTA.mjs";
10
- import { formatTimestamp } from "./gen-DU8NIdrH.mjs";
1
+ import { a as join, c as resolve, r as extname, s as relative } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
2
+ import { i as dim, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
3
+ import { n as readProjectPaths } from "./project-paths-CCMrHYQm.mjs";
4
+ import { c as getToken, n as PlatformClient } from "./client-C-nH6yz3.mjs";
5
+ import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
6
+ import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
7
+ import { c as getDatabaseDialect, f as readConfig } from "./config-BVEC0lti.mjs";
8
+ import { r as detectFramework } from "./plugin-inference-Ba1uGdIy.mjs";
9
+ import { a as writeJournal, i as stripSqlExt, r as readJournal, t as collectMigrations } from "./collect-9rO3JFNM.mjs";
10
+ import { n as listDrizzleArtifacts, r as validateMigrations, t as assertJournalCoherence } from "./validate-CNWm-PsL.mjs";
11
+ import { formatTimestamp } from "./gen-Cn2hZ8RR.mjs";
11
12
  import { existsSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
12
13
  import { fileURLToPath, pathToFileURL } from "node:url";
13
14
  import { execFileSync } from "node:child_process";
@@ -94,13 +95,13 @@ async function runDbCommand(root, args) {
94
95
  else await runExport(root, args, dialect);
95
96
  }
96
97
  async function runPush(root, dialect) {
97
- const { writeDrizzleConfig } = await import("./config-DyUSwbeX.mjs").then((n) => n.t);
98
+ const { writeDrizzleConfig } = await import("./config--wXmVOoe.mjs").then((n) => n.t);
98
99
  let configPath;
99
100
  if (dialect === "postgresql") configPath = writeDrizzleConfig(root, getPgUrl(root), "postgresql");
100
101
  else {
101
102
  const { mkdirSync } = await import("node:fs");
102
103
  const { dirname } = await import("node:path");
103
- const { getMiniflareDatabasePath } = await import("./runner-C0d3lJo1.mjs");
104
+ const { getMiniflareDatabasePath } = await import("./runner-BkGBfr4e.mjs");
104
105
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
105
106
  mkdirSync(dirname(dbPath), { recursive: true });
106
107
  configPath = writeDrizzleConfig(root, dbPath);
@@ -117,7 +118,7 @@ async function runPush(root, dialect) {
117
118
  ye("Done.");
118
119
  }
119
120
  async function runGenerate(root, dialect) {
120
- const { writeDrizzleConfig } = await import("./config-DyUSwbeX.mjs").then((n) => n.t);
121
+ const { writeDrizzleConfig } = await import("./config--wXmVOoe.mjs").then((n) => n.t);
121
122
  const configPath = dialect === "postgresql" ? writeDrizzleConfig(root, "postgresql://dummy", "postgresql") : writeDrizzleConfig(root, ":memory:");
122
123
  try {
123
124
  runDrizzleKit(root, [
@@ -131,7 +132,8 @@ async function runGenerate(root, dialect) {
131
132
  ye("Done.");
132
133
  }
133
134
  async function runStatus(root, dialect) {
134
- const migrationsDir = join(root, "db", "migrations");
135
+ const paths = readProjectPaths(root);
136
+ const migrationsDir = paths.migrationsDir;
135
137
  const allMigrations = collectMigrations(migrationsDir);
136
138
  try {
137
139
  assertJournalCoherence(migrationsDir, allMigrations);
@@ -140,7 +142,7 @@ async function runStatus(root, dialect) {
140
142
  process.exit(1);
141
143
  }
142
144
  if (allMigrations.length === 0) {
143
- R.info("No migration files found in db/migrations/");
145
+ R.info(`No migration files found in ${paths.sourceRelative("db/migrations")}/`);
144
146
  ye("Done.");
145
147
  return;
146
148
  }
@@ -157,7 +159,7 @@ async function runStatus(root, dialect) {
157
159
  localApplied = [];
158
160
  }
159
161
  else {
160
- const { getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-C0d3lJo1.mjs");
162
+ const { getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-BkGBfr4e.mjs");
161
163
  localApplied = await getAppliedMigrations(getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local"));
162
164
  }
163
165
  const localSet = new Set(localApplied.map((m) => m.name));
@@ -186,7 +188,7 @@ async function runStatus(root, dialect) {
186
188
  ye(parts.join(", "));
187
189
  }
188
190
  async function resetDatabase(root, dialect) {
189
- const migrationsDir = join(root, "db", "migrations");
191
+ const migrationsDir = readProjectPaths(root).migrationsDir;
190
192
  const migrations = collectMigrations(migrationsDir);
191
193
  try {
192
194
  assertJournalCoherence(migrationsDir, migrations);
@@ -215,7 +217,7 @@ async function resetDatabase(root, dialect) {
215
217
  });
216
218
  return migrations.length;
217
219
  }
218
- const { getMiniflareDatabasePath, runMigrations } = await import("./runner-C0d3lJo1.mjs");
220
+ const { getMiniflareDatabasePath, runMigrations } = await import("./runner-BkGBfr4e.mjs");
219
221
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
220
222
  rmSync(dbPath, { force: true });
221
223
  rmSync(dbPath + "-wal", { force: true });
@@ -242,7 +244,7 @@ async function runSeed(root, file, dialect) {
242
244
  ye("Done.");
243
245
  return;
244
246
  }
245
- const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-C0d3lJo1.mjs");
247
+ const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BkGBfr4e.mjs");
246
248
  const db = await openSqliteDatabase(getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local"));
247
249
  try {
248
250
  db.exec(sql);
@@ -265,7 +267,7 @@ async function runExecute(root, command, file, dialect) {
265
267
  ye("Done.");
266
268
  return;
267
269
  }
268
- const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-C0d3lJo1.mjs");
270
+ const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BkGBfr4e.mjs");
269
271
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
270
272
  if (!existsSync(dbPath)) {
271
273
  R.error("No local database found. Run `void dev` first.");
@@ -303,7 +305,8 @@ function printTable(rows) {
303
305
  console.log(lines.join("\n"));
304
306
  }
305
307
  async function runMigrate(root, dialect, remote) {
306
- const migrationsDir = join(root, "db", "migrations");
308
+ const paths = readProjectPaths(root);
309
+ const migrationsDir = paths.migrationsDir;
307
310
  const rawMigrations = collectMigrations(migrationsDir);
308
311
  try {
309
312
  assertJournalCoherence(migrationsDir, rawMigrations);
@@ -323,7 +326,7 @@ async function runMigrate(root, dialect, remote) {
323
326
  process.exit(1);
324
327
  }
325
328
  if (rawMigrations.length === 0) {
326
- R.info("No migration files found in db/migrations/");
329
+ R.info(`No migration files found in ${paths.sourceRelative("db/migrations")}/`);
327
330
  ye("Done.");
328
331
  return;
329
332
  }
@@ -358,11 +361,12 @@ async function runMigrate(root, dialect, remote) {
358
361
  for (const name of result.applied) R.step(name);
359
362
  R.success(`Applied ${result.applied.length} migration(s) to remote database.`);
360
363
  }
364
+ for (const warning of result.warnings ?? []) R.warn(warning);
361
365
  ye("Done.");
362
366
  return;
363
367
  }
364
368
  if (dialect === "postgresql") {
365
- const { applyPgMigrations } = await import("./runner-pg-Bd_172vF.mjs");
369
+ const { applyPgMigrations } = await import("./runner-pg-BXP0JpHW.mjs");
366
370
  const applied = await withPgClient(root, async (client) => {
367
371
  let existingRows = [];
368
372
  try {
@@ -386,7 +390,7 @@ async function runMigrate(root, dialect, remote) {
386
390
  ye("Done.");
387
391
  return;
388
392
  }
389
- const { getMiniflareDatabasePath, getAppliedMigrations, runMigrations } = await import("./runner-C0d3lJo1.mjs");
393
+ const { getMiniflareDatabasePath, getAppliedMigrations, runMigrations } = await import("./runner-BkGBfr4e.mjs");
390
394
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
391
395
  try {
392
396
  const existingRows = await getAppliedMigrations(dbPath);
@@ -406,7 +410,7 @@ async function runMigrate(root, dialect, remote) {
406
410
  }
407
411
  async function runStudio(root, dialect) {
408
412
  if (dialect === "postgresql") {
409
- const { writeDrizzleConfig } = await import("./config-DyUSwbeX.mjs").then((n) => n.t);
413
+ const { writeDrizzleConfig } = await import("./config--wXmVOoe.mjs").then((n) => n.t);
410
414
  const configPath = writeDrizzleConfig(root, getPgUrl(root), "postgresql");
411
415
  R.info("Opening Drizzle Studio...");
412
416
  try {
@@ -420,8 +424,8 @@ async function runStudio(root, dialect) {
420
424
  }
421
425
  return;
422
426
  }
423
- const { writeDrizzleConfig } = await import("./config-DyUSwbeX.mjs").then((n) => n.t);
424
- const { getMiniflareDatabasePath } = await import("./runner-C0d3lJo1.mjs");
427
+ const { writeDrizzleConfig } = await import("./config--wXmVOoe.mjs").then((n) => n.t);
428
+ const { getMiniflareDatabasePath } = await import("./runner-BkGBfr4e.mjs");
425
429
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
426
430
  if (!existsSync(dbPath)) {
427
431
  R.error("No local database found. Run `void dev` first.");
@@ -440,7 +444,7 @@ async function runStudio(root, dialect) {
440
444
  }
441
445
  }
442
446
  async function runRenameMigrations(root, dialect) {
443
- const migrationsDir = join(root, "db", "migrations");
447
+ const migrationsDir = readProjectPaths(root).migrationsDir;
444
448
  if (!existsSync(migrationsDir)) {
445
449
  R.info("No migrations directory found.");
446
450
  ye("Done.");
@@ -641,7 +645,7 @@ async function runRenameMigrations(root, dialect) {
641
645
  process.exit(1);
642
646
  }
643
647
  else {
644
- const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-C0d3lJo1.mjs");
648
+ const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BkGBfr4e.mjs");
645
649
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
646
650
  if (existsSync(dbPath)) try {
647
651
  const db = await openSqliteDatabase(dbPath);
@@ -719,7 +723,7 @@ async function runExport(root, args, dialect) {
719
723
  } else process.stdout.write(output);
720
724
  return;
721
725
  }
722
- const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-C0d3lJo1.mjs");
726
+ const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BkGBfr4e.mjs");
723
727
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
724
728
  if (!existsSync(dbPath)) {
725
729
  R.error("No local database found. Run `void dev` first.");
@@ -767,7 +771,7 @@ async function runExport(root, args, dialect) {
767
771
  }
768
772
  }
769
773
  async function runSetUrl(root) {
770
- const { readConfig: readVoidConfig, getDatabaseDialect: getDialect } = await import("./config-CeRQg3Lz.mjs").then((n) => n.n);
774
+ const { readConfig: readVoidConfig, getDatabaseDialect: getDialect } = await import("./config-BVEC0lti.mjs").then((n) => n.n);
771
775
  if (getDialect(readVoidConfig(root)) !== "postgresql") {
772
776
  R.error("db: This command is only for PostgreSQL projects. Set \"database\": \"pg\" in void.json.");
773
777
  process.exit(1);
@@ -782,7 +786,7 @@ async function runSetUrl(root) {
782
786
  R.error("No project linked. Run `void deploy` first or link a project.");
783
787
  process.exit(1);
784
788
  }
785
- const { text: promptText, isCancel: isCancelCheck } = await import("./dist-D2L3_KTK.mjs").then((n) => n.p);
789
+ const { text: promptText, isCancel: isCancelCheck } = await import("./dist-abzUneor.mjs").then((n) => n.p);
786
790
  const connectionString = await promptText({
787
791
  message: "Enter your PostgreSQL connection string:",
788
792
  placeholder: "postgresql://user:pass@host:5432/dbname",
@@ -797,9 +801,10 @@ async function runSetUrl(root) {
797
801
  }
798
802
  function resolveSeedTarget(root, file) {
799
803
  if (file) return toSeedTarget(root, resolve(root, file), file);
800
- const defaults = DEFAULT_SEED_FILES.filter((candidate) => existsSync(join(root, candidate)));
804
+ const paths = readProjectPaths(root);
805
+ const defaults = DEFAULT_SEED_FILES.map((candidate) => paths.sourceRelative(candidate)).filter((candidate) => existsSync(join(root, candidate)));
801
806
  if (defaults.length === 0) {
802
- R.error(`db: No seed file found. Create one of: ${DEFAULT_SEED_FILES.join(", ")} or pass --file <path>.`);
807
+ R.error(`db: No seed file found. Create one of: ${DEFAULT_SEED_FILES.map((candidate) => paths.sourceRelative(candidate)).join(", ")} or pass --file <path>.`);
803
808
  process.exit(1);
804
809
  }
805
810
  if (defaults.length > 1) {
@@ -846,7 +851,7 @@ async function runSeedModule(root, seedPath, dialect) {
846
851
  return;
847
852
  }
848
853
  const { drizzle } = await import("drizzle-orm/better-sqlite3");
849
- const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-C0d3lJo1.mjs");
854
+ const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BkGBfr4e.mjs");
850
855
  const sqlite = await openSqliteDatabase(getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local"));
851
856
  try {
852
857
  const options = getDrizzleSchemaOptions(schema);
@@ -866,8 +871,8 @@ async function loadSeedFunction(seedPath) {
866
871
  return seed;
867
872
  }
868
873
  async function loadSeedSchema(root) {
869
- const { discoverSchema } = await import("./discover-CKGQpis8.mjs").then((n) => n.n);
870
- const location = discoverSchema(root);
874
+ const { discoverSchema } = await import("./discover-C8N1I4tK.mjs").then((n) => n.n);
875
+ const location = discoverSchema(root, readProjectPaths(root));
871
876
  if (!location) return {};
872
877
  if (location.type === "file") {
873
878
  const mod = await importLocalModule(location.path);
@@ -1,8 +1,8 @@
1
- import { n as cliTitle, r as createSpinner } from "./output-D3g5otMC.mjs";
2
- import { c as getToken, n as PlatformClient } from "./client-C_DYiXeu.mjs";
3
- import { _ as me, c as R, g as ge, l as Re, u as Se, x as q, y as ye } from "./dist-D2L3_KTK.mjs";
4
- import { i as removeProjectConfig, r as readProjectConfig } from "./project-DhB4A8_g.mjs";
5
- import { r as resolveProjectBySlug } from "./resolve-project-DdjLQ2tB.mjs";
1
+ import { n as cliTitle, r as createSpinner } from "./output-DeiS4oEX.mjs";
2
+ import { c as getToken, n as PlatformClient } from "./client-C-nH6yz3.mjs";
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
+ import { i as removeProjectConfig, r as readProjectConfig } from "./project-CH9pdo16.mjs";
5
+ import { r as resolveProjectBySlug } from "./resolve-project-CNpUbUHd.mjs";
6
6
  //#region src/cli/delete.ts
7
7
  async function runDeleteCommand(root, slug, options) {
8
8
  console.log();