devflare 1.0.0-next.27 → 1.0.0-next.28

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 (53) hide show
  1. package/LLM.md +4 -0
  2. package/README.md +1 -0
  3. package/bin/devflare.js +24 -24
  4. package/dist/{account-xdecqqyq.js → account-fvf5gxc9.js} +2 -2
  5. package/dist/browser.d.ts +60 -0
  6. package/dist/browser.d.ts.map +1 -1
  7. package/dist/{build-vctfnmsf.js → build-x1fhfsgs.js} +6 -6
  8. package/dist/cli/commands/dev.d.ts +8 -1
  9. package/dist/cli/commands/dev.d.ts.map +1 -1
  10. package/dist/cli/help-pages/pages/core.d.ts.map +1 -1
  11. package/dist/cli/index.js +1 -1
  12. package/dist/config/schema-env.d.ts +36 -0
  13. package/dist/config/schema-env.d.ts.map +1 -1
  14. package/dist/config/schema-runtime.d.ts +22 -0
  15. package/dist/config/schema-runtime.d.ts.map +1 -1
  16. package/dist/config/schema-types-runtime.d.ts +32 -0
  17. package/dist/config/schema-types-runtime.d.ts.map +1 -1
  18. package/dist/config/schema-types.d.ts +14 -1
  19. package/dist/config/schema-types.d.ts.map +1 -1
  20. package/dist/config/schema.d.ts +73 -2
  21. package/dist/config/schema.d.ts.map +1 -1
  22. package/dist/{config-rq32csms.js → config-2d6x21jn.js} +2 -2
  23. package/dist/{deploy-mem96qyn.js → deploy-g85w9drn.js} +8 -8
  24. package/dist/{dev-apkr7cfv.js → dev-f2zhzajr.js} +26 -14
  25. package/dist/dev-server/miniflare-dev-config.d.ts +1 -0
  26. package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -1
  27. package/dist/dev-server/server.d.ts +2 -0
  28. package/dist/dev-server/server.d.ts.map +1 -1
  29. package/dist/{doctor-9asw8x18.js → doctor-sjrcz7x9.js} +2 -2
  30. package/dist/{index-meq8ydc0.js → index-0gtmnw0m.js} +1 -1
  31. package/dist/{index-cna43592.js → index-2sc756r1.js} +5 -0
  32. package/dist/{index-4j9ah79n.js → index-467tm7r4.js} +1 -1
  33. package/dist/{index-s96e5dd9.js → index-5yvpk954.js} +1 -1
  34. package/dist/{index-kc207nyr.js → index-706k4606.js} +1 -1
  35. package/dist/{index-d00njc1f.js → index-7zfv1g9m.js} +1 -1
  36. package/dist/{index-qkfvd3cs.js → index-c4jmfzz7.js} +2 -2
  37. package/dist/{index-bfjpjs07.js → index-fjmdb57t.js} +4 -4
  38. package/dist/{index-h332fg62.js → index-g4fcnwhc.js} +3 -3
  39. package/dist/{index-v1mxy6be.js → index-g7142jcz.js} +16 -15
  40. package/dist/{index-ja2rdbt0.js → index-pmeashfz.js} +1 -1
  41. package/dist/{index-ftf7yqhs.js → index-thwacc28.js} +1 -1
  42. package/dist/{index-myfjejs0.js → index-zwmphmc5.js} +1 -1
  43. package/dist/index.js +3 -3
  44. package/dist/{login-hktzadbg.js → login-fthspvbx.js} +2 -2
  45. package/dist/{previews-cn10r4zc.js → previews-aa16z2hj.js} +6 -6
  46. package/dist/{productions-8p2y4hb4.js → productions-vemjgfz0.js} +4 -4
  47. package/dist/{secrets-gywxctdh.js → secrets-b0x50dd1.js} +3 -3
  48. package/dist/sveltekit/index.js +3 -3
  49. package/dist/test/index.js +6 -6
  50. package/dist/{types-17kkqw37.js → types-03w8zkg6.js} +3 -3
  51. package/dist/vite/index.js +4 -4
  52. package/dist/{worker-xh4njxfh.js → worker-55q6b8nc.js} +4 -4
  53. package/package.json +15 -2
@@ -411,7 +411,7 @@ var CORE_HELP_PAGES = [
411
411
  path: ["dev"],
412
412
  summary: "Start the development server",
413
413
  usage: [
414
- "devflare dev [--config <path>] [--port <port>] [--runtime-port <port>] [--bridge-port <port>] [--persist] [--verbose] [--debug] [--log | --log-temp]"
414
+ "devflare dev [--config <path>] [--port <port>] [--runtime-port <port>] [--runtime-host <host>] [--bridge-port <port>] [--persist] [--verbose] [--debug] [--log | --log-temp]"
415
415
  ],
416
416
  description: [
417
417
  "Starts a worker-only Miniflare server by default, and automatically enables Vite when the current package has an effective local Vite setup.",
@@ -421,7 +421,8 @@ var CORE_HELP_PAGES = [
421
421
  options: [
422
422
  entry("--config <path>", "Use a specific devflare config file"),
423
423
  entry("--port <port>", "Preferred Vite dev server port (defaults to 5173 when Vite is enabled)"),
424
- entry("--runtime-port <port>", "Preferred local Miniflare runtime/bridge port (defaults to 8787)"),
424
+ entry("--runtime-port <port>", "Preferred local Miniflare runtime/bridge port (defaults to server.port, then 8787)"),
425
+ entry("--runtime-host <host>", "Host the local Miniflare runtime binds to (defaults to server.host, then 127.0.0.1)"),
425
426
  entry("--bridge-port <port>", "Alias for --runtime-port; also honored via DEVFLARE_BRIDGE_PORT"),
426
427
  entry("--persist", "Persist Miniflare storage between restarts"),
427
428
  entry("--verbose", "Increase logging verbosity"),
@@ -437,7 +438,7 @@ var CORE_HELP_PAGES = [
437
438
  ],
438
439
  notes: [
439
440
  "Worker-only mode is the default when no effective local `vite.config.*` is present.",
440
- "When no CLI port option is provided, Devflare reads DEVFLARE_RUNTIME_PORT and then DEVFLARE_BRIDGE_PORT before falling back to 8787.",
441
+ "Runtime host/port resolve as CLI flag, then DEVFLARE_RUNTIME_HOST/DEVFLARE_RUNTIME_PORT (and DEVFLARE_BRIDGE_PORT), then `server` config, then 127.0.0.1:8787.",
441
442
  "`--log` and `--log-temp` still print to the terminal; they add a file mirror instead of redirecting output away."
442
443
  ]
443
444
  },
@@ -1361,50 +1362,50 @@ async function runInit(parsed, logger, options) {
1361
1362
  return runInitCommand(parsed, logger, options);
1362
1363
  }
1363
1364
  async function runDev(parsed, logger, options) {
1364
- const { runDevCommand } = await import("./dev-apkr7cfv.js");
1365
+ const { runDevCommand } = await import("./dev-f2zhzajr.js");
1365
1366
  return runDevCommand(parsed, logger, options);
1366
1367
  }
1367
1368
  async function runBuild(parsed, logger, options) {
1368
- const { runBuildCommand } = await import("./build-vctfnmsf.js");
1369
+ const { runBuildCommand } = await import("./build-x1fhfsgs.js");
1369
1370
  return runBuildCommand(parsed, logger, options);
1370
1371
  }
1371
1372
  async function runDeploy(parsed, logger, options) {
1372
- const { runDeployCommand } = await import("./deploy-mem96qyn.js");
1373
+ const { runDeployCommand } = await import("./deploy-g85w9drn.js");
1373
1374
  return runDeployCommand(parsed, logger, {
1374
1375
  ...options,
1375
1376
  requireExplicitDeployTarget: true
1376
1377
  });
1377
1378
  }
1378
1379
  async function runTypes(parsed, logger, options) {
1379
- const { runTypesCommand } = await import("./types-17kkqw37.js");
1380
+ const { runTypesCommand } = await import("./types-03w8zkg6.js");
1380
1381
  return runTypesCommand(parsed, logger, options);
1381
1382
  }
1382
1383
  async function runDoctor(parsed, logger, options) {
1383
- const { runDoctorCommand } = await import("./doctor-9asw8x18.js");
1384
+ const { runDoctorCommand } = await import("./doctor-sjrcz7x9.js");
1384
1385
  return runDoctorCommand(parsed, logger, options);
1385
1386
  }
1386
1387
  async function runConfig(parsed, logger, options) {
1387
- const { runConfigCommand } = await import("./config-rq32csms.js");
1388
+ const { runConfigCommand } = await import("./config-2d6x21jn.js");
1388
1389
  return runConfigCommand(parsed, logger, options);
1389
1390
  }
1390
1391
  async function runAccount(parsed, logger, options) {
1391
- const { runAccountCommand } = await import("./account-xdecqqyq.js");
1392
+ const { runAccountCommand } = await import("./account-fvf5gxc9.js");
1392
1393
  return runAccountCommand(parsed, logger, options);
1393
1394
  }
1394
1395
  async function runLogin(parsed, logger, options) {
1395
- const { runLoginCommand } = await import("./login-hktzadbg.js");
1396
+ const { runLoginCommand } = await import("./login-fthspvbx.js");
1396
1397
  return runLoginCommand(parsed, logger, options);
1397
1398
  }
1398
1399
  async function runPreviews(parsed, logger, options) {
1399
- const { runPreviewsCommand } = await import("./previews-cn10r4zc.js");
1400
+ const { runPreviewsCommand } = await import("./previews-aa16z2hj.js");
1400
1401
  return runPreviewsCommand(parsed, logger, options);
1401
1402
  }
1402
1403
  async function runProductions(parsed, logger, options) {
1403
- const { runProductionsCommand } = await import("./productions-8p2y4hb4.js");
1404
+ const { runProductionsCommand } = await import("./productions-vemjgfz0.js");
1404
1405
  return runProductionsCommand(parsed, logger, options);
1405
1406
  }
1406
1407
  async function runWorker(parsed, logger, options) {
1407
- const { runWorkerCommand } = await import("./worker-xh4njxfh.js");
1408
+ const { runWorkerCommand } = await import("./worker-55q6b8nc.js");
1408
1409
  return runWorkerCommand(parsed, logger, options);
1409
1410
  }
1410
1411
  async function runToken(parsed, logger, options) {
@@ -1412,7 +1413,7 @@ async function runToken(parsed, logger, options) {
1412
1413
  return runTokenCommand(parsed, logger, options);
1413
1414
  }
1414
1415
  async function runSecrets(parsed, logger, options) {
1415
- const { runSecretsCommand } = await import("./secrets-gywxctdh.js");
1416
+ const { runSecretsCommand } = await import("./secrets-b0x50dd1.js");
1416
1417
  return runSecretsCommand(parsed, logger, options);
1417
1418
  }
1418
1419
  async function runAI() {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mergeConfigForEnvironment
3
- } from "./index-cna43592.js";
3
+ } from "./index-2sc756r1.js";
4
4
  import {
5
5
  createD1Database,
6
6
  createKVNamespace,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadConfig,
3
3
  resolveConfigPath
4
- } from "./index-cna43592.js";
4
+ } from "./index-2sc756r1.js";
5
5
  import {
6
6
  getEffectiveAccountId,
7
7
  getPrimaryAccount,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveConfigForEnvironment
3
- } from "./index-cna43592.js";
3
+ } from "./index-2sc756r1.js";
4
4
 
5
5
  // src/cli/commands/previews-support/family.ts
6
6
  function compareConfiguredWorkerFamilies(left, right) {
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  parseArgs,
6
6
  runCli
7
- } from "./index-v1mxy6be.js";
7
+ } from "./index-g7142jcz.js";
8
8
  import"./index-627srx16.js";
9
9
  import"./index-stgn34cr.js";
10
10
  import"./index-3t6rypgc.js";
@@ -21,7 +21,7 @@ import"./index-hpwa6vsw.js";
21
21
  import {
22
22
  compileConfig,
23
23
  stringifyConfig
24
- } from "./index-s96e5dd9.js";
24
+ } from "./index-5yvpk954.js";
25
25
  import {
26
26
  ConfigNotFoundError,
27
27
  ConfigResourceResolutionError,
@@ -29,7 +29,7 @@ import {
29
29
  configSchema,
30
30
  loadConfig,
31
31
  loadResolvedConfig
32
- } from "./index-cna43592.js";
32
+ } from "./index-2sc756r1.js";
33
33
  import"./index-1d4jg11n.js";
34
34
  import"./index-mg8vwqxf.js";
35
35
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getConfiguredAccountId
3
- } from "./index-ftf7yqhs.js";
3
+ } from "./index-thwacc28.js";
4
4
  import {
5
5
  account
6
6
  } from "./index-qmmqww7h.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./index-stgn34cr.js";
20
20
  import"./index-3t6rypgc.js";
21
21
  import"./index-15fpa5tx.js";
22
- import"./index-cna43592.js";
22
+ import"./index-2sc756r1.js";
23
23
  import"./index-1d4jg11n.js";
24
24
  import"./index-mg8vwqxf.js";
25
25
  import"./index-c8p4njqy.js";
@@ -4,18 +4,18 @@ import {
4
4
  buildStableWorkerRowsFromLiveWorkers,
5
5
  collectConfiguredWorkerFamilies,
6
6
  orderPreviewWorkerNamesForDeletion
7
- } from "./index-myfjejs0.js";
7
+ } from "./index-zwmphmc5.js";
8
8
  import {
9
9
  cleanupPreviewScopedResources
10
- } from "./index-ja2rdbt0.js";
10
+ } from "./index-pmeashfz.js";
11
11
  import {
12
12
  findConfigPathsUnderDirectory
13
- } from "./index-kc207nyr.js";
13
+ } from "./index-706k4606.js";
14
14
  import {
15
15
  asOptionalString,
16
16
  resolveCloudflareAccountId,
17
17
  resolveNamedSelection
18
- } from "./index-ftf7yqhs.js";
18
+ } from "./index-thwacc28.js";
19
19
  import {
20
20
  account
21
21
  } from "./index-qmmqww7h.js";
@@ -42,13 +42,13 @@ import"./index-15fpa5tx.js";
42
42
  import"./index-qwgr4q7s.js";
43
43
  import {
44
44
  compileBuildConfig
45
- } from "./index-s96e5dd9.js";
45
+ } from "./index-5yvpk954.js";
46
46
  import {
47
47
  ConfigNotFoundError,
48
48
  loadConfig,
49
49
  loadResolvedConfig,
50
50
  resolveConfigPath
51
- } from "./index-cna43592.js";
51
+ } from "./index-2sc756r1.js";
52
52
  import"./index-1d4jg11n.js";
53
53
  import"./index-mg8vwqxf.js";
54
54
  import {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  collectConfiguredWorkerFamilies
3
- } from "./index-myfjejs0.js";
3
+ } from "./index-zwmphmc5.js";
4
4
  import {
5
5
  asOptionalString,
6
6
  resolveCloudflareAccountId,
7
7
  resolveNamedSelection
8
- } from "./index-ftf7yqhs.js";
8
+ } from "./index-thwacc28.js";
9
9
  import {
10
10
  account
11
11
  } from "./index-qmmqww7h.js";
@@ -32,11 +32,11 @@ import"./index-15fpa5tx.js";
32
32
  import {
33
33
  findFiles
34
34
  } from "./index-qwgr4q7s.js";
35
- import"./index-s96e5dd9.js";
35
+ import"./index-5yvpk954.js";
36
36
  import {
37
37
  ConfigNotFoundError,
38
38
  loadConfig
39
- } from "./index-cna43592.js";
39
+ } from "./index-2sc756r1.js";
40
40
  import"./index-1d4jg11n.js";
41
41
  import"./index-mg8vwqxf.js";
42
42
  import"./index-c8p4njqy.js";
@@ -2,9 +2,9 @@ import {
2
2
  deleteLocalSecret,
3
3
  listLocalSecrets,
4
4
  writeLocalSecret
5
- } from "./index-d00njc1f.js";
6
- import"./index-s96e5dd9.js";
7
- import"./index-cna43592.js";
5
+ } from "./index-7zfv1g9m.js";
6
+ import"./index-5yvpk954.js";
7
+ import"./index-2sc756r1.js";
8
8
  import"./index-1d4jg11n.js";
9
9
  import"./index-mg8vwqxf.js";
10
10
  import"./index-c8p4njqy.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "../index-dm9q84c7.js";
10
10
  import {
11
11
  buildLocalSecretNodeBindings
12
- } from "../index-d00njc1f.js";
12
+ } from "../index-7zfv1g9m.js";
13
13
  import {
14
14
  createEnvProxy,
15
15
  createFetchEvent,
@@ -20,11 +20,11 @@ import {
20
20
  import {
21
21
  createLocalSendEmailBinding
22
22
  } from "../index-hpwa6vsw.js";
23
- import"../index-s96e5dd9.js";
23
+ import"../index-5yvpk954.js";
24
24
  import {
25
25
  loadConfig,
26
26
  normalizeHyperdriveBinding
27
- } from "../index-cna43592.js";
27
+ } from "../index-2sc756r1.js";
28
28
  import"../index-1d4jg11n.js";
29
29
  import"../index-mg8vwqxf.js";
30
30
  import"../index-c8p4njqy.js";
@@ -7,8 +7,8 @@ import {
7
7
  } from "../index-15fpa5tx.js";
8
8
  import {
9
9
  bundleWorkflowEntrypointScript
10
- } from "../index-qkfvd3cs.js";
11
- import"../index-meq8ydc0.js";
10
+ } from "../index-c4jmfzz7.js";
11
+ import"../index-0gtmnw0m.js";
12
12
  import {
13
13
  createRouteResolve,
14
14
  invokeFetchModule,
@@ -29,7 +29,7 @@ import {
29
29
  hasServiceBindings,
30
30
  resolveDOBindings,
31
31
  resolveServiceBindings
32
- } from "../index-4j9ah79n.js";
32
+ } from "../index-467tm7r4.js";
33
33
  import"../index-3edvz3hs.js";
34
34
  import {
35
35
  DEFAULT_DO_PATTERN,
@@ -48,7 +48,7 @@ import {
48
48
  import {
49
49
  buildLocalSecretWrappedBindingConfig,
50
50
  resolveLocalSecretValuesForBindings
51
- } from "../index-d00njc1f.js";
51
+ } from "../index-7zfv1g9m.js";
52
52
  import {
53
53
  BridgeClient,
54
54
  createEmailEvent,
@@ -67,7 +67,7 @@ import {
67
67
  } from "../index-hpwa6vsw.js";
68
68
  import {
69
69
  applyLocalDevVarsToConfig
70
- } from "../index-s96e5dd9.js";
70
+ } from "../index-5yvpk954.js";
71
71
  import {
72
72
  getLocalD1DatabaseIdentifier,
73
73
  loadConfig,
@@ -82,7 +82,7 @@ import {
82
82
  normalizeSecretsStoreBinding,
83
83
  normalizeWorkflowBinding,
84
84
  resolveConfigPath
85
- } from "../index-cna43592.js";
85
+ } from "../index-2sc756r1.js";
86
86
  import {
87
87
  getEffectiveAccountId,
88
88
  getPrimaryAccount
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveConfigCandidatePath
3
- } from "./index-kc207nyr.js";
3
+ } from "./index-706k4606.js";
4
4
  import {
5
5
  getDependencies
6
6
  } from "./index-z9gy8w6b.js";
@@ -22,11 +22,11 @@ import {
22
22
  import {
23
23
  findDurableObjectClasses
24
24
  } from "./index-vhqww6tt.js";
25
- import"./index-s96e5dd9.js";
25
+ import"./index-5yvpk954.js";
26
26
  import {
27
27
  loadConfig,
28
28
  normalizeDOBinding
29
- } from "./index-cna43592.js";
29
+ } from "./index-2sc756r1.js";
30
30
  import"./index-1d4jg11n.js";
31
31
  import"./index-mg8vwqxf.js";
32
32
  import"./index-c8p4njqy.js";
@@ -7,14 +7,14 @@ import {
7
7
  resolveEffectiveViteProject,
8
8
  resolveViteUserConfig,
9
9
  writeGeneratedViteConfig
10
- } from "../index-h332fg62.js";
11
- import"../index-4j9ah79n.js";
10
+ } from "../index-g4fcnwhc.js";
11
+ import"../index-467tm7r4.js";
12
12
  import"../index-3edvz3hs.js";
13
13
  import"../index-qwgr4q7s.js";
14
14
  import"../index-aqrwyy57.js";
15
15
  import"../index-vhqww6tt.js";
16
- import"../index-s96e5dd9.js";
17
- import"../index-cna43592.js";
16
+ import"../index-5yvpk954.js";
17
+ import"../index-2sc756r1.js";
18
18
  import"../index-1d4jg11n.js";
19
19
  import"../index-mg8vwqxf.js";
20
20
  import"../index-c8p4njqy.js";
@@ -2,11 +2,11 @@ import {
2
2
  findConfigPathsUnderDirectory,
3
3
  formatSupportedConfigFilenames,
4
4
  resolveConfigCandidatePath
5
- } from "./index-kc207nyr.js";
5
+ } from "./index-706k4606.js";
6
6
  import {
7
7
  asOptionalString,
8
8
  resolveCloudflareAccountId
9
- } from "./index-ftf7yqhs.js";
9
+ } from "./index-thwacc28.js";
10
10
  import {
11
11
  account
12
12
  } from "./index-qmmqww7h.js";
@@ -24,11 +24,11 @@ import {
24
24
  import"./index-3t6rypgc.js";
25
25
  import"./index-15fpa5tx.js";
26
26
  import"./index-qwgr4q7s.js";
27
- import"./index-s96e5dd9.js";
27
+ import"./index-5yvpk954.js";
28
28
  import {
29
29
  loadConfig,
30
30
  normalizeDOBinding
31
- } from "./index-cna43592.js";
31
+ } from "./index-2sc756r1.js";
32
32
  import"./index-1d4jg11n.js";
33
33
  import"./index-mg8vwqxf.js";
34
34
  import"./index-c8p4njqy.js";
package/package.json CHANGED
@@ -1,7 +1,16 @@
1
1
  {
2
2
  "name": "devflare",
3
- "version": "1.0.0-next.27",
3
+ "version": "1.0.0-next.28",
4
4
  "description": "Devflare is a developer-first toolkit for Cloudflare Workers that sits on top of Miniflare and Wrangler-compatible config",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/Refzlund/devflare.git",
8
+ "directory": "packages/devflare"
9
+ },
10
+ "homepage": "https://github.com/Refzlund/devflare#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/Refzlund/devflare/issues"
13
+ },
5
14
  "type": "module",
6
15
  "main": "./dist/index.js",
7
16
  "types": "./dist/index.d.ts",
@@ -56,7 +65,11 @@
56
65
  "bin": {
57
66
  "devflare": "./bin/devflare.js"
58
67
  },
59
- "files": ["dist", "bin", "LLM.md"],
68
+ "files": [
69
+ "dist",
70
+ "bin",
71
+ "LLM.md"
72
+ ],
60
73
  "scripts": {
61
74
  "llm:generate": "bun ./scripts/generate-llm.ts",
62
75
  "refresh-permission-groups": "bun ./scripts/refresh-permission-groups.ts",