devflare 1.0.0-next.70 → 1.0.0-next.72

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 (88) hide show
  1. package/LLM.md +1 -0
  2. package/dist/_chunks/{account-BHY3fvrA.js → account-BDO0iV1g.js} +6 -6
  3. package/dist/_chunks/{account-resources-BdKj8q1h.js → account-resources-lDGtm1a-.js} +3 -3
  4. package/dist/_chunks/{ai-CN_SREim.js → ai-DXi8oG0j.js} +1 -1
  5. package/dist/_chunks/{build-DplSo6Gc.js → build-BvmYTZbh.js} +2 -2
  6. package/dist/_chunks/{build-artifacts-CkwCap5N.js → build-artifacts-DgeADGmN.js} +12 -11
  7. package/dist/_chunks/{cli-ZJYtm-lW.js → cli-0vBCBbJk.js} +20 -20
  8. package/dist/_chunks/{cloudflare-Ic5ubQza.js → cloudflare-D5HiBi_J.js} +6 -6
  9. package/dist/_chunks/{command-utils-DjaaMQX7.js → command-utils-C18AG-BZ.js} +2 -2
  10. package/dist/_chunks/{compiler-UxXQgEPq.js → compiler-DrqK6YDg.js} +3 -2
  11. package/dist/_chunks/{config-zQd4jmXU.js → config-BFS8MLAR.js} +2 -2
  12. package/dist/_chunks/{config-path-CYGlwKDs.js → config-path-C6vHY5IS.js} +2 -2
  13. package/dist/_chunks/{deploy-z1_wbNn2.js → deploy-DCvPxHho.js} +13 -12
  14. package/dist/_chunks/{dev-BagtFegV.js → dev-1uoY22Wb.js} +10 -9
  15. package/dist/_chunks/{doctor-CAsJ-rSZ.js → doctor-DgqL1r9L.js} +7 -7
  16. package/dist/_chunks/{env-D4uJqqgu.js → env-CYxzNi04.js} +1 -1
  17. package/dist/_chunks/{family-BTTpTwUk.js → family-DZWB5M12.js} +1 -1
  18. package/dist/_chunks/{generated-artifacts-Bb13pGUG.js → generated-artifacts-CXlcEVQD.js} +3 -4
  19. package/dist/_chunks/generated-dir-D_PDbut4.js +33 -0
  20. package/dist/_chunks/{init-DJ5y3mu5.js → init-BdAoVbke.js} +3 -3
  21. package/dist/_chunks/{loader-BC0skbnH.js → loader-qxiU7lyz.js} +2 -2
  22. package/dist/_chunks/{login-CgNcbpEq.js → login-Biz6pIoO.js} +4 -4
  23. package/dist/_chunks/{preferences-CbYERA_m.js → preferences-DIYsXPQr.js} +1 -1
  24. package/dist/_chunks/{preview-registry-CTXU4mBc.js → preview-registry-BvjLLa3M.js} +2 -2
  25. package/dist/_chunks/{preview-resources-CQIu2-NY.js → preview-resources-BZJIFmKr.js} +3 -3
  26. package/dist/_chunks/{previews-BIaw6NVC.js → previews-BvBEY9Bc.js} +9 -9
  27. package/dist/_chunks/{productions-CF8oQcX7.js → productions-BIAVWXtc.js} +7 -7
  28. package/dist/_chunks/{r2-presign-runtime-C75FkLMd.js → r2-presign-runtime-BztPOxQI.js} +5 -4
  29. package/dist/_chunks/{remote-8jEHLVGg.js → remote-C14QCfVt.js} +2 -2
  30. package/dist/_chunks/{resolve-package-DeJUGxoE.js → resolve-package-PjcyjoTH.js} +1 -1
  31. package/dist/_chunks/{routes-CRXB3-iw.js → routes-B3TM3Rgu.js} +5 -5
  32. package/dist/_chunks/{runtime-BlKTWIgD.js → runtime-B0Pn8QmS.js} +1 -1
  33. package/dist/_chunks/{secrets-BJuEa9Jz.js → secrets-C7FYuA_a.js} +1 -1
  34. package/dist/_chunks/{tail-DjGRt8gw.js → tail-CrsSEc_b.js} +4 -4
  35. package/dist/_chunks/{token-wmeF8-IQ.js → token-Bta9WIhM.js} +4 -4
  36. package/dist/_chunks/{tokens-KaEr4B8e.js → tokens-BfXPnZMg.js} +1 -1
  37. package/dist/_chunks/{types-BLGfxIq-.js → types-D9rjIMXo.js} +7 -7
  38. package/dist/_chunks/{ui-BhCdDC2N.js → ui-Dze2DlVA.js} +1 -1
  39. package/dist/_chunks/{usage-rRusKejc.js → usage-ClDTnCXv.js} +2 -2
  40. package/dist/_chunks/{vite-Bml-Whp8.js → vite-SAm8Lrk4.js} +15 -17
  41. package/dist/_chunks/{vite-process-CDa3yQui.js → vite-process-DbK7Bxj6.js} +13 -13
  42. package/dist/_chunks/{worker-bundler-Isj5jiW6.js → worker-bundler-BEQgr0we.js} +1 -2
  43. package/dist/_chunks/{worker-DgczaXVW.js → worker-qjQ6KwfE.js} +5 -5
  44. package/dist/_chunks/{workspace-CrvqPLTX.js → workspace-SbZraVfB.js} +11 -10
  45. package/dist/bridge/miniflare.d.ts.map +1 -1
  46. package/dist/browser.js +4 -4
  47. package/dist/bundler/do-bundler.d.ts.map +1 -1
  48. package/dist/bundler/rolldown-shared.d.ts +0 -1
  49. package/dist/bundler/rolldown-shared.d.ts.map +1 -1
  50. package/dist/cli/commands/build-artifacts.d.ts.map +1 -1
  51. package/dist/cli/commands/deploy.d.ts.map +1 -1
  52. package/dist/cli/generated-artifacts.d.ts.map +1 -1
  53. package/dist/cli/index.js +1 -1
  54. package/dist/cloudflare/index.js +3 -3
  55. package/dist/config/compiler/paths.d.ts.map +1 -1
  56. package/dist/decorators/index.js +1 -1
  57. package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -1
  58. package/dist/dev-server/server-startup-helpers.d.ts.map +1 -1
  59. package/dist/dev-server/server.d.ts.map +1 -1
  60. package/dist/dev-server/workspace/prepare-app.d.ts.map +1 -1
  61. package/dist/dev-server/workspace/server.d.ts.map +1 -1
  62. package/dist/index.js +6 -6
  63. package/dist/runtime/index.js +3 -3
  64. package/dist/sveltekit/index.js +5 -5
  65. package/dist/test/index.js +14 -14
  66. package/dist/utils/generated-dir.d.ts +25 -0
  67. package/dist/utils/generated-dir.d.ts.map +1 -0
  68. package/dist/vite/index.js +1 -1
  69. package/dist/vite/plugin-context.d.ts.map +1 -1
  70. package/dist/vite/plugin.d.ts.map +1 -1
  71. package/dist/worker-entry/composed-worker.d.ts.map +1 -1
  72. package/dist/workflows/local-workflow-entrypoints.d.ts.map +1 -1
  73. package/package.json +1 -1
  74. /package/dist/_chunks/{api-BKClUlUf.js → api-CnbxqDGv.js} +0 -0
  75. /package/dist/_chunks/{colors-D0NVzAFN.js → colors-B4j4tpoY.js} +0 -0
  76. /package/dist/_chunks/{context-DGMev2AF.js → context-DyDqdKZg.js} +0 -0
  77. /package/dist/_chunks/{decorators-eXNZ1S0N.js → decorators-B5q1aEuS.js} +0 -0
  78. /package/dist/_chunks/{dependencies-wKqrxKV_.js → dependencies-HLIhxbIe.js} +0 -0
  79. /package/dist/_chunks/{durable-object-DuMPM8re.js → durable-object-gUEh9PeX.js} +0 -0
  80. /package/dist/_chunks/{glob-DRw9sbfF.js → glob-B5IUR-je.js} +0 -0
  81. /package/dist/_chunks/{local-hyperdrive-CcORzo76.js → local-hyperdrive-HiKIIWiL.js} +0 -0
  82. /package/dist/_chunks/{local-media-bindings-ZQe-epuw.js → local-media-bindings-nDoFyvYK.js} +0 -0
  83. /package/dist/_chunks/{local-secrets-C0n5oRgI.js → local-secrets-BiNPg4Jj.js} +0 -0
  84. /package/dist/_chunks/{package-metadata-CLI488gB.js → package-metadata-DXnpoRoy.js} +0 -0
  85. /package/dist/_chunks/{remote-config-Bw6qIVM4.js → remote-config-BidXMh4p.js} +0 -0
  86. /package/dist/_chunks/{vite-utils-D8kPPxUy.js → vite-utils-D_VR07Ks.js} +0 -0
  87. /package/dist/_chunks/{worker-entrypoint-C8j23t6d.js → worker-entrypoint-DmtFT4YJ.js} +0 -0
  88. /package/dist/_chunks/{workerName-kEXwmV2m.js → workerName-DArKKFNW.js} +0 -0
package/LLM.md CHANGED
@@ -1382,6 +1382,7 @@ When the job changes from building to operating, switch command families instead
1382
1382
 
1383
1383
  - Run `types` after binding or entrypoint changes so `env.d.ts` stays honest.
1384
1384
  - Use `dev --runtime-port <port>` or `DEVFLARE_RUNTIME_PORT` when another local project already owns the default 8787 runtime port.
1385
+ - Set `DEVFLARE_DIR` to give an instance its own generated-state root when TWO instances run against the same app directory — a Playwright suite beside a dev server, say. They otherwise share `.devflare/vite.config.mjs`, and Vite restarts whichever server is watching it onto the other one's config; separate ports do not help, because the collision is a file path. Defaults to `.devflare`, and applies to build and deploy artifacts too, so keep it set for an instance's whole life.
1385
1386
  - Use `config --phase local --format wrangler` when you want local config inspection without Cloudflare account lookups.
1386
1387
  - Use `ref()` service bindings for local full-stack packages; Devflare starts those referenced workers in CLI dev and exposes them as Vite auxiliary workers for framework dev.
1387
1388
  - Run `build` or `config print --format wrangler` when the compiled shape matters more than the dev server feeling healthy.
@@ -1,9 +1,9 @@
1
- import { n as CloudflareAPIError, t as AuthenticationError } from "./api-BKClUlUf.js";
2
- import { a as setGlobalDefaultAccountId, i as getWorkspaceAccountId, o as setWorkspaceAccountId, r as getGlobalDefaultAccountId } from "./preferences-CbYERA_m.js";
3
- import { t as account } from "./cloudflare-Ic5ubQza.js";
4
- import { a as DIM, c as RESET, i as CYAN_BOLD, r as CYAN } from "./colors-D0NVzAFN.js";
5
- import { c as formatCommand, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-BhCdDC2N.js";
6
- import { n as getConfiguredAccountId } from "./command-utils-DjaaMQX7.js";
1
+ import { n as CloudflareAPIError, t as AuthenticationError } from "./api-CnbxqDGv.js";
2
+ import { a as setGlobalDefaultAccountId, i as getWorkspaceAccountId, o as setWorkspaceAccountId, r as getGlobalDefaultAccountId } from "./preferences-DIYsXPQr.js";
3
+ import { t as account } from "./cloudflare-D5HiBi_J.js";
4
+ import { a as DIM, c as RESET, i as CYAN_BOLD, r as CYAN } from "./colors-B4j4tpoY.js";
5
+ import { c as formatCommand, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-Dze2DlVA.js";
6
+ import { n as getConfiguredAccountId } from "./command-utils-C18AG-BZ.js";
7
7
  //#region src/cli/commands/account.ts
8
8
  const ACCOUNT_SUBCOMMANDS = [
9
9
  "info",
@@ -1,4 +1,4 @@
1
- import { a as apiGetAll, n as CloudflareAPIError, r as apiDelete, s as apiPost } from "./api-BKClUlUf.js";
1
+ import { a as apiGetAll, n as CloudflareAPIError, r as apiDelete, s as apiPost } from "./api-CnbxqDGv.js";
2
2
  //#region src/cloudflare/account-resources.ts
3
3
  async function listKVNamespaces(accountId, options) {
4
4
  return (await apiGetAll(`/accounts/${accountId}/storage/kv/namespaces`, options)).map((namespace) => ({
@@ -43,11 +43,11 @@ async function deleteD1Database(accountId, databaseId, options) {
43
43
  await apiDelete(`/accounts/${accountId}/d1/database/${encodeURIComponent(databaseId)}`, options);
44
44
  }
45
45
  async function queryD1Database(accountId, databaseId, query, options) {
46
- const { apiPost } = await import("./api-BKClUlUf.js").then((n) => n.l);
46
+ const { apiPost } = await import("./api-CnbxqDGv.js").then((n) => n.l);
47
47
  return apiPost(`/accounts/${accountId}/d1/database/${databaseId}/query`, query, options);
48
48
  }
49
49
  async function rawD1DatabaseQuery(accountId, databaseId, query, options) {
50
- const { apiPost } = await import("./api-BKClUlUf.js").then((n) => n.l);
50
+ const { apiPost } = await import("./api-CnbxqDGv.js").then((n) => n.l);
51
51
  return apiPost(`/accounts/${accountId}/d1/database/${databaseId}/raw`, query, options);
52
52
  }
53
53
  async function listQueues(accountId, options) {
@@ -1,4 +1,4 @@
1
- import { a as DIM, c as RESET, l as WHITE, n as BOLD, t as BG_BLUE } from "./colors-D0NVzAFN.js";
1
+ import { a as DIM, c as RESET, l as WHITE, n as BOLD, t as BG_BLUE } from "./colors-B4j4tpoY.js";
2
2
  //#region src/cloudflare/pricing.ts
3
3
  /** Cloudflare Workers AI pricing documentation URL */
4
4
  const PRICING_DOCS_URL = "https://developers.cloudflare.com/workers-ai/platform/pricing/";
@@ -1,5 +1,5 @@
1
- import { a as cyanBold, f as logLine, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
2
- import { t as prepareBuildArtifacts } from "./build-artifacts-CkwCap5N.js";
1
+ import { a as cyanBold, f as logLine, o as dim, r as createCliTheme } from "./ui-Dze2DlVA.js";
2
+ import { t as prepareBuildArtifacts } from "./build-artifacts-DgeADGmN.js";
3
3
  //#region src/cli/commands/build.ts
4
4
  async function runBuildCommand(parsed, logger, options) {
5
5
  const theme = createCliTheme(parsed.options);
@@ -1,14 +1,15 @@
1
1
  import { d as resolveConfigEnvVars } from "./preview-j9Kbx4-G.js";
2
- import { r as loadConfig, u as resolveConfigForEnvironment } from "./loader-BC0skbnH.js";
3
- import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths$1, o as rebaseWranglerConfigPaths, t as compileBuildConfig } from "./compiler-UxXQgEPq.js";
4
- import { f as logLine } from "./ui-BhCdDC2N.js";
5
- import { n as getPackageVersion } from "./package-metadata-CLI488gB.js";
6
- import { t as resolvePackageSpecifier } from "./resolve-package-DeJUGxoE.js";
7
- import { i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, n as resolveEffectiveViteProject } from "./vite-Bml-Whp8.js";
8
- import { t as bundleWorkerEntry } from "./worker-bundler-Isj5jiW6.js";
9
- import { t as detectViteProject } from "./vite-utils-D8kPPxUy.js";
10
- import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
11
- import { n as getGeneratedArtifactPaths, t as ensureGeneratedDirectory } from "./generated-artifacts-Bb13pGUG.js";
2
+ import { r as loadConfig, u as resolveConfigForEnvironment } from "./loader-qxiU7lyz.js";
3
+ import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths$1, o as rebaseWranglerConfigPaths, t as compileBuildConfig } from "./compiler-DrqK6YDg.js";
4
+ import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
5
+ import { f as logLine } from "./ui-Dze2DlVA.js";
6
+ import { n as getPackageVersion } from "./package-metadata-DXnpoRoy.js";
7
+ import { t as resolvePackageSpecifier } from "./resolve-package-PjcyjoTH.js";
8
+ import { i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, n as resolveEffectiveViteProject } from "./vite-SAm8Lrk4.js";
9
+ import { t as bundleWorkerEntry } from "./worker-bundler-BEQgr0we.js";
10
+ import { t as detectViteProject } from "./vite-utils-D_VR07Ks.js";
11
+ import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
12
+ import { n as getGeneratedArtifactPaths, t as ensureGeneratedDirectory } from "./generated-artifacts-CXlcEVQD.js";
12
13
  import { dirname, relative, resolve } from "pathe";
13
14
  import { readFile, writeFile } from "node:fs/promises";
14
15
  import { createHash } from "node:crypto";
@@ -405,7 +406,7 @@ async function prepareBuildArtifacts(parsed, logger, options) {
405
406
  const bundledMainPath = relative(cwd, await bundleWorkerEntry({
406
407
  cwd,
407
408
  inputFile: composedMainEntry,
408
- outFile: resolve(cwd, ".devflare", "worker-entrypoints", "main.js"),
409
+ outFile: generatedDir(cwd, "worker-entrypoints", "main.js"),
409
410
  rolldownOptions: config.rolldown?.options,
410
411
  sourcemap: config.rolldown?.sourcemap,
411
412
  minify: config.rolldown?.minify,
@@ -1,5 +1,5 @@
1
- import { a as cyanBold, c as formatCommand, f as logLine, i as cyan, o as dim, r as createCliTheme, s as formatBullet, t as accent } from "./ui-BhCdDC2N.js";
2
- import { n as getPackageVersion } from "./package-metadata-CLI488gB.js";
1
+ import { a as cyanBold, c as formatCommand, f as logLine, i as cyan, o as dim, r as createCliTheme, s as formatBullet, t as accent } from "./ui-Dze2DlVA.js";
2
+ import { n as getPackageVersion } from "./package-metadata-DXnpoRoy.js";
3
3
  import { dirname, join } from "pathe";
4
4
  import { readFile, readdir, stat } from "node:fs/promises";
5
5
  import { createConsola } from "consola";
@@ -1136,78 +1136,78 @@ async function runCli(argv, options = {}) {
1136
1136
  }
1137
1137
  }
1138
1138
  async function runInit(parsed, logger, options) {
1139
- const { runInitCommand } = await import("./init-DJ5y3mu5.js");
1139
+ const { runInitCommand } = await import("./init-BdAoVbke.js");
1140
1140
  return runInitCommand(parsed, logger, options);
1141
1141
  }
1142
1142
  async function runDev(parsed, logger, options) {
1143
- const { runDevCommand } = await import("./dev-BagtFegV.js");
1143
+ const { runDevCommand } = await import("./dev-1uoY22Wb.js");
1144
1144
  return runDevCommand(parsed, logger, options);
1145
1145
  }
1146
1146
  async function runWorkspace(parsed, logger, options) {
1147
- const { runWorkspaceCommand } = await import("./workspace-CrvqPLTX.js");
1147
+ const { runWorkspaceCommand } = await import("./workspace-SbZraVfB.js");
1148
1148
  return runWorkspaceCommand(parsed, logger, options);
1149
1149
  }
1150
1150
  async function runBuild(parsed, logger, options) {
1151
- const { runBuildCommand } = await import("./build-DplSo6Gc.js");
1151
+ const { runBuildCommand } = await import("./build-BvmYTZbh.js");
1152
1152
  return runBuildCommand(parsed, logger, options);
1153
1153
  }
1154
1154
  async function runDeploy(parsed, logger, options) {
1155
- const { runDeployCommand } = await import("./deploy-z1_wbNn2.js");
1155
+ const { runDeployCommand } = await import("./deploy-DCvPxHho.js");
1156
1156
  return runDeployCommand(parsed, logger, {
1157
1157
  ...options,
1158
1158
  requireExplicitDeployTarget: true
1159
1159
  });
1160
1160
  }
1161
1161
  async function runTypes(parsed, logger, options) {
1162
- const { runTypesCommand } = await import("./types-BLGfxIq-.js");
1162
+ const { runTypesCommand } = await import("./types-D9rjIMXo.js");
1163
1163
  return runTypesCommand(parsed, logger, options);
1164
1164
  }
1165
1165
  async function runDoctor(parsed, logger, options) {
1166
- const { runDoctorCommand } = await import("./doctor-CAsJ-rSZ.js");
1166
+ const { runDoctorCommand } = await import("./doctor-DgqL1r9L.js");
1167
1167
  return runDoctorCommand(parsed, logger, options);
1168
1168
  }
1169
1169
  async function runConfig(parsed, logger, options) {
1170
- const { runConfigCommand } = await import("./config-zQd4jmXU.js");
1170
+ const { runConfigCommand } = await import("./config-BFS8MLAR.js");
1171
1171
  return runConfigCommand(parsed, logger, options);
1172
1172
  }
1173
1173
  async function runAccount(parsed, logger, options) {
1174
- const { runAccountCommand } = await import("./account-BHY3fvrA.js");
1174
+ const { runAccountCommand } = await import("./account-BDO0iV1g.js");
1175
1175
  return runAccountCommand(parsed, logger, options);
1176
1176
  }
1177
1177
  async function runLogin(parsed, logger, options) {
1178
- const { runLoginCommand } = await import("./login-CgNcbpEq.js");
1178
+ const { runLoginCommand } = await import("./login-Biz6pIoO.js");
1179
1179
  return runLoginCommand(parsed, logger, options);
1180
1180
  }
1181
1181
  async function runPreviews(parsed, logger, options) {
1182
- const { runPreviewsCommand } = await import("./previews-BIaw6NVC.js");
1182
+ const { runPreviewsCommand } = await import("./previews-BvBEY9Bc.js");
1183
1183
  return runPreviewsCommand(parsed, logger, options);
1184
1184
  }
1185
1185
  async function runProductions(parsed, logger, options) {
1186
- const { runProductionsCommand } = await import("./productions-CF8oQcX7.js");
1186
+ const { runProductionsCommand } = await import("./productions-BIAVWXtc.js");
1187
1187
  return runProductionsCommand(parsed, logger, options);
1188
1188
  }
1189
1189
  async function runWorker(parsed, logger, options) {
1190
- const { runWorkerCommand } = await import("./worker-DgczaXVW.js");
1190
+ const { runWorkerCommand } = await import("./worker-qjQ6KwfE.js");
1191
1191
  return runWorkerCommand(parsed, logger, options);
1192
1192
  }
1193
1193
  async function runToken(parsed, logger, options) {
1194
- const { runTokenCommand } = await import("./token-wmeF8-IQ.js");
1194
+ const { runTokenCommand } = await import("./token-Bta9WIhM.js");
1195
1195
  return runTokenCommand(parsed, logger, options);
1196
1196
  }
1197
1197
  async function runSecrets(parsed, logger, options) {
1198
- const { runSecretsCommand } = await import("./secrets-BJuEa9Jz.js");
1198
+ const { runSecretsCommand } = await import("./secrets-C7FYuA_a.js");
1199
1199
  return runSecretsCommand(parsed, logger, options);
1200
1200
  }
1201
1201
  async function runTail(parsed, logger, options) {
1202
- const { runTailCommand } = await import("./tail-DjGRt8gw.js");
1202
+ const { runTailCommand } = await import("./tail-CrsSEc_b.js");
1203
1203
  return runTailCommand(parsed, logger, options);
1204
1204
  }
1205
1205
  async function runAI() {
1206
- const { runAICommand } = await import("./ai-CN_SREim.js");
1206
+ const { runAICommand } = await import("./ai-DXi8oG0j.js");
1207
1207
  return runAICommand();
1208
1208
  }
1209
1209
  async function runRemote(parsed, logger, options) {
1210
- const { runRemoteCommand } = await import("./remote-8jEHLVGg.js");
1210
+ const { runRemoteCommand } = await import("./remote-C14QCfVt.js");
1211
1211
  return runRemoteCommand(parsed, logger, options);
1212
1212
  }
1213
1213
  //#endregion
@@ -1,9 +1,9 @@
1
- import { g as isAuthenticated, h as hasWranglerConfig, m as getWranglerAuth, p as getApiToken } from "./api-BKClUlUf.js";
2
- import { a as setGlobalDefaultAccountId, d as getPrimaryAccount, i as getWorkspaceAccountId, l as getAccountById, n as getEffectiveAccountId, o as setWorkspaceAccountId, r as getGlobalDefaultAccountId, t as clearGlobalDefaultAccountId, u as getAccounts } from "./preferences-CbYERA_m.js";
3
- import { C as deleteWorker, D as listWorkerVersions, E as listWorkerDeployments, O as listWorkers, S as DEVFLARE_PREVIEW_REGISTRY_DATABASE, T as getWorkersSubdomain, a as listTrackedPreviewRecords, c as reconcilePreviewRegistry, i as listTrackedDeploymentRecords, k as renameWorker, l as retirePreviewRegistry, n as ensurePreviewRegistry, o as listTrackedPreviewScopeRecords, r as getPreviewRegistryContext, s as listTrackedRegistryState, t as cleanupPreviewRegistry, w as getWorkerVersionDetail } from "./preview-registry-CTXU4mBc.js";
4
- import { _ as listR2Buckets, b as rawD1DatabaseQuery, f as listAIModels, h as listKVNamespaces, m as listHyperdrives, p as listD1Databases, t as createD1Database, v as listVectorizeIndexes, y as queryD1Database } from "./account-resources-BdKj8q1h.js";
5
- import { a as getUsageSummary, c as recordUsage, d as setLimitsEnabled, f as shouldSkip, i as getUsage, l as resetUsage, n as getAllUsageSummaries, o as isWithinLimits, r as getLimits, s as recordTestUsage, t as canProceedWithTest, u as setLimits } from "./usage-rRusKejc.js";
6
- import { a as listAccountTokenPermissionGroups, i as listAccountOwnedAPITokens, n as deleteAccountOwnedAPIToken, o as normalizeDevflareTokenName, t as createAccountOwnedAPIToken } from "./tokens-KaEr4B8e.js";
1
+ import { g as isAuthenticated, h as hasWranglerConfig, m as getWranglerAuth, p as getApiToken } from "./api-CnbxqDGv.js";
2
+ import { a as setGlobalDefaultAccountId, d as getPrimaryAccount, i as getWorkspaceAccountId, l as getAccountById, n as getEffectiveAccountId, o as setWorkspaceAccountId, r as getGlobalDefaultAccountId, t as clearGlobalDefaultAccountId, u as getAccounts } from "./preferences-DIYsXPQr.js";
3
+ import { C as deleteWorker, D as listWorkerVersions, E as listWorkerDeployments, O as listWorkers, S as DEVFLARE_PREVIEW_REGISTRY_DATABASE, T as getWorkersSubdomain, a as listTrackedPreviewRecords, c as reconcilePreviewRegistry, i as listTrackedDeploymentRecords, k as renameWorker, l as retirePreviewRegistry, n as ensurePreviewRegistry, o as listTrackedPreviewScopeRecords, r as getPreviewRegistryContext, s as listTrackedRegistryState, t as cleanupPreviewRegistry, w as getWorkerVersionDetail } from "./preview-registry-BvjLLa3M.js";
4
+ import { _ as listR2Buckets, b as rawD1DatabaseQuery, f as listAIModels, h as listKVNamespaces, m as listHyperdrives, p as listD1Databases, t as createD1Database, v as listVectorizeIndexes, y as queryD1Database } from "./account-resources-lDGtm1a-.js";
5
+ import { a as getUsageSummary, c as recordUsage, d as setLimitsEnabled, f as shouldSkip, i as getUsage, l as resetUsage, n as getAllUsageSummaries, o as isWithinLimits, r as getLimits, s as recordTestUsage, t as canProceedWithTest, u as setLimits } from "./usage-ClDTnCXv.js";
6
+ import { a as listAccountTokenPermissionGroups, i as listAccountOwnedAPITokens, n as deleteAccountOwnedAPIToken, o as normalizeDevflareTokenName, t as createAccountOwnedAPIToken } from "./tokens-BfXPnZMg.js";
7
7
  //#region src/cloudflare/account-status.ts
8
8
  const SERVICE_STATUS_TIMEOUT_MS = 1e4;
9
9
  const serviceInventoryFetchers = {
@@ -1,5 +1,5 @@
1
- import { i as resolveConfigPath, r as loadConfig } from "./loader-BC0skbnH.js";
2
- import { d as getPrimaryAccount, i as getWorkspaceAccountId, n as getEffectiveAccountId } from "./preferences-CbYERA_m.js";
1
+ import { i as resolveConfigPath, r as loadConfig } from "./loader-qxiU7lyz.js";
2
+ import { d as getPrimaryAccount, i as getWorkspaceAccountId, n as getEffectiveAccountId } from "./preferences-DIYsXPQr.js";
3
3
  //#region src/cli/command-utils.ts
4
4
  function asOptionalString(value) {
5
5
  return typeof value === "string" && value.trim() ? value.trim() : void 0;
@@ -1,6 +1,7 @@
1
- import { p as normalizeCompatibilityFlags, u as resolveConfigForEnvironment } from "./loader-BC0skbnH.js";
1
+ import { p as normalizeCompatibilityFlags, u as resolveConfigForEnvironment } from "./loader-qxiU7lyz.js";
2
2
  import { C as browserBindingSchema, _ as normalizeSecretsStoreBinding, a as normalizeD1Binding, b as normalizeVpcServiceBinding, c as normalizeFlagshipBinding, d as normalizeKVBinding, f as normalizeMediaBinding, g as normalizeR2Binding, h as normalizeQueueProducer, i as normalizeArtifactsBinding, l as normalizeHyperdriveBinding, m as normalizePipelineBinding, o as normalizeDOBinding, p as normalizeMtlsCertificateBinding, r as getSingleBrowserBindingName, s as normalizeDispatchNamespaceBinding, u as normalizeImagesBinding, v as normalizeStreamBinding, x as normalizeWorkflowBinding, y as normalizeVpcNetworkBinding } from "./schema-normalization-CTdiY17P.js";
3
3
  import { n as toWranglerSecretsConfig } from "./local-dev-vars-BFLS-HoI.js";
4
+ import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
4
5
  import { basename, isAbsolute, relative, resolve } from "pathe";
5
6
  //#region src/config/compiler/bindings.ts
6
7
  function getWranglerD1DatabaseBinding(bindingName, bindingConfig, options = {}) {
@@ -350,7 +351,7 @@ function pathIsInsideDirectory(directoryPath, candidatePath) {
350
351
  function isolateViteBuildOutputPaths(projectRoot, config) {
351
352
  const assetsDirectory = config.assets?.directory;
352
353
  if (!assetsDirectory) return config;
353
- const isolatedAssetsDirectoryPath = resolve(projectRoot, ".devflare", "vite-build-output", basename(assetsDirectory));
354
+ const isolatedAssetsDirectoryPath = generatedDir(projectRoot, "vite-build-output", basename(assetsDirectory));
354
355
  const isolatedAssetsDirectory = relative(projectRoot, isolatedAssetsDirectoryPath).replace(/\\/g, "/");
355
356
  const isolatedConfig = {
356
357
  ...config,
@@ -1,6 +1,6 @@
1
1
  import { d as resolveConfigEnvVars } from "./preview-j9Kbx4-G.js";
2
- import { a as ConfigResourceResolutionError, o as loadResolvedConfig, r as loadConfig, s as resolveResources } from "./loader-BC0skbnH.js";
3
- import { n as compileConfig, t as compileBuildConfig } from "./compiler-UxXQgEPq.js";
2
+ import { a as ConfigResourceResolutionError, o as loadResolvedConfig, r as loadConfig, s as resolveResources } from "./loader-qxiU7lyz.js";
3
+ import { n as compileConfig, t as compileBuildConfig } from "./compiler-DrqK6YDg.js";
4
4
  //#region src/cli/commands/config.ts
5
5
  function isSupportedFormat(value) {
6
6
  return value === "devflare" || value === "wrangler";
@@ -1,5 +1,5 @@
1
- import { i as resolveConfigPath } from "./loader-BC0skbnH.js";
2
- import { i as findFiles } from "./glob-DRw9sbfF.js";
1
+ import { i as resolveConfigPath } from "./loader-qxiU7lyz.js";
2
+ import { i as findFiles } from "./glob-B5IUR-je.js";
3
3
  import { stat } from "node:fs/promises";
4
4
  //#region src/cli/config-path.ts
5
5
  const CONFIG_FILE_EXTENSIONS = [
@@ -1,15 +1,16 @@
1
1
  import { a as resolvePreviewIdentifier, d as resolveConfigEnvVars } from "./preview-j9Kbx4-G.js";
2
- import { c as prepareConfigResourcesForDeploy, r as loadConfig, u as resolveConfigForEnvironment } from "./loader-BC0skbnH.js";
3
- import { a as readWranglerConfig, c as writeWranglerConfig, n as compileConfig, o as rebaseWranglerConfigPaths, s as stringifyConfig, t as compileBuildConfig } from "./compiler-UxXQgEPq.js";
4
- import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-CbYERA_m.js";
5
- import { D as listWorkerVersions, E as listWorkerDeployments, O as listWorkers, T as getWorkersSubdomain, c as reconcilePreviewRegistry, w as getWorkerVersionDetail, x as formatWorkersDevUrl } from "./preview-registry-CTXU4mBc.js";
6
- import { _ as yellowBold, d as green, f as logLine, g as yellow, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
7
- import { n as getPackageVersion } from "./package-metadata-CLI488gB.js";
8
- import { t as resolvePackageSpecifier } from "./resolve-package-DeJUGxoE.js";
9
- import { t as asOptionalString } from "./command-utils-DjaaMQX7.js";
10
- import { a as createBuildManifest, i as compareManifests, n as applyDeploymentStrategy, o as formatDriftWarning, r as describeDeploymentStrategy, s as readBuildManifest, t as prepareBuildArtifacts } from "./build-artifacts-CkwCap5N.js";
11
- import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
12
- import { n as preparePreviewScopedResourcesForDeploy } from "./preview-resources-CQIu2-NY.js";
2
+ import { c as prepareConfigResourcesForDeploy, r as loadConfig, u as resolveConfigForEnvironment } from "./loader-qxiU7lyz.js";
3
+ import { a as readWranglerConfig, c as writeWranglerConfig, n as compileConfig, o as rebaseWranglerConfigPaths, s as stringifyConfig, t as compileBuildConfig } from "./compiler-DrqK6YDg.js";
4
+ import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
5
+ import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-DIYsXPQr.js";
6
+ import { D as listWorkerVersions, E as listWorkerDeployments, O as listWorkers, T as getWorkersSubdomain, c as reconcilePreviewRegistry, w as getWorkerVersionDetail, x as formatWorkersDevUrl } from "./preview-registry-BvjLLa3M.js";
7
+ import { _ as yellowBold, d as green, f as logLine, g as yellow, o as dim, r as createCliTheme } from "./ui-Dze2DlVA.js";
8
+ import { n as getPackageVersion } from "./package-metadata-DXnpoRoy.js";
9
+ import { t as resolvePackageSpecifier } from "./resolve-package-PjcyjoTH.js";
10
+ import { t as asOptionalString } from "./command-utils-C18AG-BZ.js";
11
+ import { a as createBuildManifest, i as compareManifests, n as applyDeploymentStrategy, o as formatDriftWarning, r as describeDeploymentStrategy, s as readBuildManifest, t as prepareBuildArtifacts } from "./build-artifacts-DgeADGmN.js";
12
+ import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
13
+ import { n as preparePreviewScopedResourcesForDeploy } from "./preview-resources-BZJIFmKr.js";
13
14
  import { basename, dirname, isAbsolute, join, resolve } from "pathe";
14
15
  import { mkdir, open, readFile, rm, writeFile } from "node:fs/promises";
15
16
  //#region src/config/service-bindings-validation.ts
@@ -719,7 +720,7 @@ async function runDeployCommand(parsed, logger, options) {
719
720
  const uploadVersionOnly = preview || usePercentageRollout;
720
721
  logLine(logger, dim(preview ? "Uploading preview version with Wrangler…" : usePercentageRollout ? "Uploading new Worker version with Wrangler…" : "Deploying with Wrangler…", theme));
721
722
  const deployStartedAt = /* @__PURE__ */ new Date();
722
- const wranglerOutputDirectory = join(cwd, ".devflare");
723
+ const wranglerOutputDirectory = generatedDir(cwd);
723
724
  const wranglerOutputFilePath = join(wranglerOutputDirectory, `wrangler-output-${Date.now()}-${process.pid}.ndjson`);
724
725
  await deps.fs.mkdir(wranglerOutputDirectory, { recursive: true });
725
726
  const wranglerCommand = localWranglerExecutable ? "node" : "bunx";
@@ -1,14 +1,15 @@
1
1
  import { c as getDevflareDotenvPaths, d as resolveConfigEnvVars, o as EnvVarResolutionError } from "./preview-j9Kbx4-G.js";
2
- import { r as loadConfig } from "./loader-BC0skbnH.js";
2
+ import { r as loadConfig } from "./loader-qxiU7lyz.js";
3
3
  import { t as applyLocalDevVarsToConfig } from "./local-dev-vars-BFLS-HoI.js";
4
- import { a as cyanBold, f as logLine, g as yellow, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
4
+ import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
5
+ import { a as cyanBold, f as logLine, g as yellow, o as dim, r as createCliTheme } from "./ui-Dze2DlVA.js";
5
6
  import { clearLocalSendEmailBindings, setLocalSendEmailBindings } from "../utils/send-email.js";
6
- import { s as resolveServiceBindings, t as discoverRoutes } from "./routes-CRXB3-iw.js";
7
- import { l as prepareComposedWorkerEntrypoint, m as hasWorkerSurfacePaths, n as resolveEffectiveViteProject } from "./vite-Bml-Whp8.js";
8
- import { t as bundleWorkerEntry } from "./worker-bundler-Isj5jiW6.js";
9
- import { _ as createMiniflareLog, a as logWorkerHandlerDetection, c as resolveViteIntegration, d as createRuntimeStdioForwarder, f as buildMiniflareDevConfig, g as runD1Migrations, h as resolveMainWorkerSurfacePaths, i as logRemoteBindingRequirements, l as resolveWorkerConfigWatchPath, m as collectWorkerWatchRoots, n as logMiniflareBindingDiagnostics, o as maybeStartBrowserShim, p as resolveR2PresignOrigin, r as logMiniflareConfigDiagnostics, s as maybeStartDOBundler, t as startViteProcess } from "./vite-process-CDa3yQui.js";
10
- import { n as bundleWorkflowEntrypointScript } from "./r2-presign-runtime-C75FkLMd.js";
11
- import { r as stopSpawnedProcessTree, t as detectViteProject } from "./vite-utils-D8kPPxUy.js";
7
+ import { s as resolveServiceBindings, t as discoverRoutes } from "./routes-B3TM3Rgu.js";
8
+ import { l as prepareComposedWorkerEntrypoint, m as hasWorkerSurfacePaths, n as resolveEffectiveViteProject } from "./vite-SAm8Lrk4.js";
9
+ import { t as bundleWorkerEntry } from "./worker-bundler-BEQgr0we.js";
10
+ import { _ as createMiniflareLog, a as logWorkerHandlerDetection, c as resolveViteIntegration, d as createRuntimeStdioForwarder, f as buildMiniflareDevConfig, g as runD1Migrations, h as resolveMainWorkerSurfacePaths, i as logRemoteBindingRequirements, l as resolveWorkerConfigWatchPath, m as collectWorkerWatchRoots, n as logMiniflareBindingDiagnostics, o as maybeStartBrowserShim, p as resolveR2PresignOrigin, r as logMiniflareConfigDiagnostics, s as maybeStartDOBundler, t as startViteProcess } from "./vite-process-DbK7Bxj6.js";
11
+ import { n as bundleWorkflowEntrypointScript } from "./r2-presign-runtime-BztPOxQI.js";
12
+ import { r as stopSpawnedProcessTree, t as detectViteProject } from "./vite-utils-D_VR07Ks.js";
12
13
  import { dirname, relative, resolve } from "pathe";
13
14
  import { exec } from "node:child_process";
14
15
  import { createConsola } from "consola";
@@ -523,7 +524,7 @@ function createDevServer(options) {
523
524
  state.bundledMainWorkerScriptPath = await bundleWorkerEntry({
524
525
  cwd,
525
526
  inputFile: state.mainWorkerScriptPath,
526
- outFile: resolve(cwd, ".devflare", "worker-entrypoints", "main.js"),
527
+ outFile: generatedDir(cwd, "worker-entrypoints", "main.js"),
527
528
  rolldownOptions: state.config.rolldown?.options,
528
529
  sourcemap: state.config.rolldown?.sourcemap,
529
530
  minify: state.config.rolldown?.minify,
@@ -1,10 +1,10 @@
1
- import { r as loadConfig } from "./loader-BC0skbnH.js";
2
- import { d as green, f as logLine, g as yellow, m as red, n as bold, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
3
- import { n as getPackageVersion } from "./package-metadata-CLI488gB.js";
4
- import { t as detectViteProject } from "./vite-utils-D8kPPxUy.js";
5
- import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
6
- import { n as getGeneratedArtifactPaths } from "./generated-artifacts-Bb13pGUG.js";
7
- import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath } from "./config-path-CYGlwKDs.js";
1
+ import { r as loadConfig } from "./loader-qxiU7lyz.js";
2
+ import { d as green, f as logLine, g as yellow, m as red, n as bold, o as dim, r as createCliTheme } from "./ui-Dze2DlVA.js";
3
+ import { n as getPackageVersion } from "./package-metadata-DXnpoRoy.js";
4
+ import { t as detectViteProject } from "./vite-utils-D_VR07Ks.js";
5
+ import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
6
+ import { n as getGeneratedArtifactPaths } from "./generated-artifacts-CXlcEVQD.js";
7
+ import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath } from "./config-path-C6vHY5IS.js";
8
8
  import { basename, dirname, relative, resolve } from "pathe";
9
9
  //#region src/cli/commands/doctor.ts
10
10
  async function runDoctorCommand(parsed, logger, options) {
@@ -1,4 +1,4 @@
1
- import { j as bridgeEnv, n as getContextOrNull } from "./context-DGMev2AF.js";
1
+ import { j as bridgeEnv, n as getContextOrNull } from "./context-DyDqdKZg.js";
2
2
  //#region src/env.ts
3
3
  let testContextEnv = null;
4
4
  let testContextDispose = null;
@@ -1,4 +1,4 @@
1
- import { u as resolveConfigForEnvironment } from "./loader-BC0skbnH.js";
1
+ import { u as resolveConfigForEnvironment } from "./loader-qxiU7lyz.js";
2
2
  //#region src/cli/commands/previews-support/family.ts
3
3
  function compareConfiguredWorkerFamilies(left, right) {
4
4
  if (left.role === "primary" && right.role !== "primary") return -1;
@@ -1,11 +1,10 @@
1
+ import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
1
2
  import { resolve } from "pathe";
2
3
  //#region src/cli/generated-artifacts.ts
3
- const DEVFLARE_DIR = [".devflare"];
4
- const DEVFLARE_BUILD_DIR = [".devflare", "build"];
5
4
  const WRANGLER_DEPLOY_DIR = [".wrangler", "deploy"];
6
5
  function getGeneratedArtifactPaths(cwd) {
7
- const devflareDir = resolve(cwd, ...DEVFLARE_DIR);
8
- const buildDir = resolve(cwd, ...DEVFLARE_BUILD_DIR);
6
+ const devflareDir = generatedDir(cwd);
7
+ const buildDir = generatedDir(cwd, "build");
9
8
  const deployDir = resolve(cwd, ...WRANGLER_DEPLOY_DIR);
10
9
  return {
11
10
  devflareDir,
@@ -0,0 +1,33 @@
1
+ import { resolve } from "pathe";
2
+ //#region src/utils/generated-dir.ts
3
+ /** The generated-state directory used when nothing overrides it. */
4
+ const DEFAULT_GENERATED_DIR = ".devflare";
5
+ /** The environment variable that overrides {@link DEFAULT_GENERATED_DIR}. */
6
+ const GENERATED_DIR_ENV = "DEVFLARE_DIR";
7
+ /**
8
+ * The generated-state directory NAME for this process.
9
+ *
10
+ * @param env - The environment to read; injected so callers can test the
11
+ * resolution without mutating `process.env`.
12
+ * @returns The override when set to a non-blank value, else `.devflare`. A path
13
+ * is accepted as given — relative names resolve against the app's cwd, and an
14
+ * absolute path is honoured, which is how an instance can put its state
15
+ * outside the project entirely.
16
+ */
17
+ function generatedDirName(env = process.env) {
18
+ const override = env[GENERATED_DIR_ENV]?.trim();
19
+ return override ? override : DEFAULT_GENERATED_DIR;
20
+ }
21
+ /**
22
+ * Resolve a path inside this process's generated-state directory.
23
+ *
24
+ * @param cwd - The app directory the state belongs to.
25
+ * @param segments - Path segments below the generated root, e.g.
26
+ * `'worker-entrypoints', 'main.js'`.
27
+ * @returns The absolute path.
28
+ */
29
+ function generatedDir(cwd, ...segments) {
30
+ return resolve(cwd, generatedDirName(), ...segments);
31
+ }
32
+ //#endregion
33
+ export { generatedDirName as n, generatedDir as t };
@@ -1,6 +1,6 @@
1
- import { a as cyanBold, d as green, f as logLine, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
2
- import { t as getInitDependencyVersions } from "./package-metadata-CLI488gB.js";
3
- import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
1
+ import { a as cyanBold, d as green, f as logLine, o as dim, r as createCliTheme } from "./ui-Dze2DlVA.js";
2
+ import { t as getInitDependencyVersions } from "./package-metadata-DXnpoRoy.js";
3
+ import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
4
4
  import { join, resolve } from "pathe";
5
5
  //#region src/cli/commands/init.ts
6
6
  const MINIMAL_TEMPLATE = {
@@ -1,7 +1,7 @@
1
1
  import { l as isEnvVarDescriptor, n as materializePreviewScopedConfig, u as loadDevflareDotenvIntoProcess } from "./preview-j9Kbx4-G.js";
2
2
  import { S as bindingsSchema, a as normalizeD1Binding, d as normalizeKVBinding, g as normalizeR2Binding, h as normalizeQueueProducer, l as normalizeHyperdriveBinding, n as getLocalKVNamespaceIdentifier, t as getLocalD1DatabaseIdentifier } from "./schema-normalization-CTdiY17P.js";
3
- import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-CbYERA_m.js";
4
- import { _ as listR2Buckets, g as listQueues, h as listKVNamespaces, i as createR2Bucket, m as listHyperdrives, n as createKVNamespace, p as listD1Databases, r as createQueue, t as createD1Database, v as listVectorizeIndexes } from "./account-resources-BdKj8q1h.js";
3
+ import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-DIYsXPQr.js";
4
+ import { _ as listR2Buckets, g as listQueues, h as listKVNamespaces, i as createR2Bucket, m as listHyperdrives, n as createKVNamespace, p as listD1Databases, r as createQueue, t as createD1Database, v as listVectorizeIndexes } from "./account-resources-lDGtm1a-.js";
5
5
  import { createRequire } from "node:module";
6
6
  import { existsSync } from "node:fs";
7
7
  import { dirname, join, resolve } from "pathe";
@@ -1,7 +1,7 @@
1
- import { t as account } from "./cloudflare-Ic5ubQza.js";
2
- import { d as green, f as logLine, g as yellow, h as whiteDim, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
3
- import { n as getConfiguredAccountId } from "./command-utils-DjaaMQX7.js";
4
- import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
1
+ import { t as account } from "./cloudflare-D5HiBi_J.js";
2
+ import { d as green, f as logLine, g as yellow, h as whiteDim, o as dim, r as createCliTheme } from "./ui-Dze2DlVA.js";
3
+ import { n as getConfiguredAccountId } from "./command-utils-C18AG-BZ.js";
4
+ import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
5
5
  //#region src/cli/commands/login.ts
6
6
  async function logResolvedAccount(cwd, logger, theme) {
7
7
  try {
@@ -1,4 +1,4 @@
1
- import { a as apiGetAll, d as kvGet, f as kvPut, i as apiGet, s as apiPost, u as kvDelete } from "./api-BKClUlUf.js";
1
+ import { a as apiGetAll, d as kvGet, f as kvPut, i as apiGet, s as apiPost, u as kvDelete } from "./api-CnbxqDGv.js";
2
2
  import { existsSync, mkdirSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
3
3
  import { homedir } from "node:os";
4
4
  import { join } from "node:path";
@@ -1,5 +1,5 @@
1
- import { a as apiGetAll, i as apiGet, n as CloudflareAPIError, o as apiPatch, r as apiDelete } from "./api-BKClUlUf.js";
2
- import { p as listD1Databases, t as createD1Database, y as queryD1Database } from "./account-resources-BdKj8q1h.js";
1
+ import { a as apiGetAll, i as apiGet, n as CloudflareAPIError, o as apiPatch, r as apiDelete } from "./api-CnbxqDGv.js";
2
+ import { p as listD1Databases, t as createD1Database, y as queryD1Database } from "./account-resources-lDGtm1a-.js";
3
3
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
4
4
  import { homedir } from "node:os";
5
5
  import { join } from "node:path";
@@ -1,8 +1,8 @@
1
1
  import { n as materializePreviewScopedConfig, r as materializePreviewScopedString, t as isPreviewScopedName } from "./preview-j9Kbx4-G.js";
2
- import { l as mergeConfigForEnvironment } from "./loader-BC0skbnH.js";
2
+ import { l as mergeConfigForEnvironment } from "./loader-qxiU7lyz.js";
3
3
  import { g as normalizeR2Binding, h as normalizeQueueProducer } from "./schema-normalization-CTdiY17P.js";
4
- import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-CbYERA_m.js";
5
- import { _ as listR2Buckets, a as createVectorizeIndex, c as deleteKVNamespace, d as deleteVectorizeIndex, g as listQueues, h as listKVNamespaces, i as createR2Bucket, l as deleteQueue, m as listHyperdrives, n as createKVNamespace, o as deleteD1Database, p as listD1Databases, r as createQueue, s as deleteHyperdrive, t as createD1Database, u as deleteR2Bucket, v as listVectorizeIndexes } from "./account-resources-BdKj8q1h.js";
4
+ import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-DIYsXPQr.js";
5
+ import { _ as listR2Buckets, a as createVectorizeIndex, c as deleteKVNamespace, d as deleteVectorizeIndex, g as listQueues, h as listKVNamespaces, i as createR2Bucket, l as deleteQueue, m as listHyperdrives, n as createKVNamespace, o as deleteD1Database, p as listD1Databases, r as createQueue, s as deleteHyperdrive, t as createD1Database, u as deleteR2Bucket, v as listVectorizeIndexes } from "./account-resources-lDGtm1a-.js";
6
6
  //#region src/config/preview-resources.ts
7
7
  const defaultPreviewScopedResourceLifecycleApi = {
8
8
  getPrimaryAccount,
@@ -1,13 +1,13 @@
1
1
  import { a as resolvePreviewIdentifier } from "./preview-j9Kbx4-G.js";
2
- import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./loader-BC0skbnH.js";
3
- import { t as compileBuildConfig } from "./compiler-UxXQgEPq.js";
4
- import { t as account } from "./cloudflare-Ic5ubQza.js";
5
- import { _ as yellowBold, a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, m as red, n as bold, o as dim, r as createCliTheme, u as formatTableLine } from "./ui-BhCdDC2N.js";
6
- import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-DjaaMQX7.js";
7
- import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
8
- import { t as cleanupPreviewScopedResources } from "./preview-resources-CQIu2-NY.js";
9
- import { t as findConfigPathsUnderDirectory } from "./config-path-CYGlwKDs.js";
10
- import { a as orderPreviewWorkerNamesForDeletion, i as collectConfiguredWorkerFamilies, n as buildPreviewWorkerCandidatesByScope, r as buildStableWorkerRowsFromLiveWorkers, t as buildPreviewScopeRowsFromLiveWorkers } from "./family-BTTpTwUk.js";
2
+ import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./loader-qxiU7lyz.js";
3
+ import { t as compileBuildConfig } from "./compiler-DrqK6YDg.js";
4
+ import { t as account } from "./cloudflare-D5HiBi_J.js";
5
+ import { _ as yellowBold, a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, m as red, n as bold, o as dim, r as createCliTheme, u as formatTableLine } from "./ui-Dze2DlVA.js";
6
+ import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-C18AG-BZ.js";
7
+ import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
8
+ import { t as cleanupPreviewScopedResources } from "./preview-resources-BZJIFmKr.js";
9
+ import { t as findConfigPathsUnderDirectory } from "./config-path-C6vHY5IS.js";
10
+ import { a as orderPreviewWorkerNamesForDeletion, i as collectConfiguredWorkerFamilies, n as buildPreviewWorkerCandidatesByScope, r as buildStableWorkerRowsFromLiveWorkers, t as buildPreviewScopeRowsFromLiveWorkers } from "./family-DZWB5M12.js";
11
11
  //#region src/cli/preview-bindings.ts
12
12
  function normalizeCell(value) {
13
13
  return (value ?? "").trim().replace(/\s+/g, " ");
@@ -1,10 +1,10 @@
1
- import { r as loadConfig, t as ConfigNotFoundError } from "./loader-BC0skbnH.js";
2
- import { t as account } from "./cloudflare-Ic5ubQza.js";
3
- import { a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, m as red, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-BhCdDC2N.js";
4
- import { i as findFiles } from "./glob-DRw9sbfF.js";
5
- import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-DjaaMQX7.js";
6
- import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
7
- import { i as collectConfiguredWorkerFamilies } from "./family-BTTpTwUk.js";
1
+ import { r as loadConfig, t as ConfigNotFoundError } from "./loader-qxiU7lyz.js";
2
+ import { t as account } from "./cloudflare-D5HiBi_J.js";
3
+ import { a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, m as red, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-Dze2DlVA.js";
4
+ import { i as findFiles } from "./glob-B5IUR-je.js";
5
+ import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-C18AG-BZ.js";
6
+ import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
7
+ import { i as collectConfiguredWorkerFamilies } from "./family-DZWB5M12.js";
8
8
  //#region src/cli/commands/productions.ts
9
9
  const CLI_API_OPTIONS = { timeout: 1e4 };
10
10
  const PRODUCTION_SUBCOMMANDS = [
@@ -1,7 +1,8 @@
1
1
  import { x as normalizeWorkflowBinding } from "./schema-normalization-CTdiY17P.js";
2
- import { i as findFiles, r as DEFAULT_WORKFLOW_PATTERN } from "./glob-DRw9sbfF.js";
3
- import { t as bundleWorkerEntry } from "./worker-bundler-Isj5jiW6.js";
4
- import { join, relative, resolve } from "pathe";
2
+ import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
3
+ import { i as findFiles, r as DEFAULT_WORKFLOW_PATTERN } from "./glob-B5IUR-je.js";
4
+ import { t as bundleWorkerEntry } from "./worker-bundler-BEQgr0we.js";
5
+ import { join, relative } from "pathe";
5
6
  import { mkdir, readFile, writeFile } from "node:fs/promises";
6
7
  //#region src/workflows/local-workflow-entrypoints.ts
7
8
  function findExportedClasses(code) {
@@ -70,7 +71,7 @@ function buildWorkflowVirtualEntry(entrypoints, entryDir) {
70
71
  async function bundleWorkflowEntrypointScript(config, configDir, options = {}) {
71
72
  const entrypoints = await resolveLocalWorkflowEntrypoints(config, configDir);
72
73
  if (entrypoints.length === 0) return "";
73
- const entryDir = resolve(configDir, ".devflare", "workflow-entrypoints");
74
+ const entryDir = generatedDir(configDir, "workflow-entrypoints");
74
75
  const entryPath = join(entryDir, "__entry.ts");
75
76
  const outFile = join(entryDir, "index.js");
76
77
  await mkdir(entryDir, { recursive: true });
@@ -1,5 +1,5 @@
1
- import { a as DIM, c as RESET, n as BOLD, o as GREEN, s as RED, u as YELLOW } from "./colors-D0NVzAFN.js";
2
- import { n as enableRemoteMode, r as getEffectiveRemoteModeStatus, t as disableRemoteMode } from "./remote-config-Bw6qIVM4.js";
1
+ import { a as DIM, c as RESET, n as BOLD, o as GREEN, s as RED, u as YELLOW } from "./colors-B4j4tpoY.js";
2
+ import { n as enableRemoteMode, r as getEffectiveRemoteModeStatus, t as disableRemoteMode } from "./remote-config-BidXMh4p.js";
3
3
  //#region src/cli/commands/remote.ts
4
4
  function log(message = "") {
5
5
  console.log(message);
@@ -1,4 +1,4 @@
1
- import { a as findFilesSync, i as findFiles, n as DEFAULT_ENTRYPOINT_PATTERN } from "./glob-DRw9sbfF.js";
1
+ import { a as findFilesSync, i as findFiles, n as DEFAULT_ENTRYPOINT_PATTERN } from "./glob-B5IUR-je.js";
2
2
  import { createRequire } from "node:module";
3
3
  import { existsSync, readFileSync, realpathSync } from "node:fs";
4
4
  import { dirname, resolve } from "pathe";