devflare 1.0.0-next.3 → 1.0.0-next.31

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 (537) hide show
  1. package/LLM.md +15964 -1751
  2. package/README.md +392 -605
  3. package/bin/devflare.js +24 -14
  4. package/dist/account-g99mzrqp.js +475 -0
  5. package/dist/api-2n6dd2ws.js +33 -0
  6. package/dist/bridge/client.d.ts +48 -6
  7. package/dist/bridge/client.d.ts.map +1 -1
  8. package/dist/bridge/gateway-runtime.d.ts +8 -0
  9. package/dist/bridge/gateway-runtime.d.ts.map +1 -0
  10. package/dist/bridge/index.d.ts +3 -3
  11. package/dist/bridge/index.d.ts.map +1 -1
  12. package/dist/bridge/log.d.ts +5 -0
  13. package/dist/bridge/log.d.ts.map +1 -0
  14. package/dist/bridge/miniflare.d.ts +74 -1
  15. package/dist/bridge/miniflare.d.ts.map +1 -1
  16. package/dist/bridge/proxy.d.ts +11 -10
  17. package/dist/bridge/proxy.d.ts.map +1 -1
  18. package/dist/bridge/server.d.ts +2 -1
  19. package/dist/bridge/server.d.ts.map +1 -1
  20. package/dist/bridge/v2/body-streams.d.ts +53 -0
  21. package/dist/bridge/v2/body-streams.d.ts.map +1 -0
  22. package/dist/bridge/v2/codec.d.ts +106 -0
  23. package/dist/bridge/v2/codec.d.ts.map +1 -0
  24. package/dist/bridge/v2/control-messages.d.ts +51 -0
  25. package/dist/bridge/v2/control-messages.d.ts.map +1 -0
  26. package/dist/bridge/v2/frames.d.ts +109 -0
  27. package/dist/bridge/v2/frames.d.ts.map +1 -0
  28. package/dist/bridge/v2/index.d.ts +11 -0
  29. package/dist/bridge/v2/index.d.ts.map +1 -0
  30. package/dist/bridge/v2/serialization.d.ts +48 -0
  31. package/dist/bridge/v2/serialization.d.ts.map +1 -0
  32. package/dist/bridge/v2/transport.d.ts +31 -0
  33. package/dist/bridge/v2/transport.d.ts.map +1 -0
  34. package/dist/bridge/v2/value-codec.d.ts +61 -0
  35. package/dist/bridge/v2/value-codec.d.ts.map +1 -0
  36. package/dist/bridge/{serialization.d.ts → v2/value-serialization.d.ts} +40 -18
  37. package/dist/bridge/v2/value-serialization.d.ts.map +1 -0
  38. package/dist/bridge/{protocol.d.ts → v2/wire.d.ts} +28 -4
  39. package/dist/bridge/v2/wire.d.ts.map +1 -0
  40. package/dist/bridge/v2/ws-relay.d.ts +53 -0
  41. package/dist/bridge/v2/ws-relay.d.ts.map +1 -0
  42. package/dist/browser-shim/handler.d.ts +1 -1
  43. package/dist/browser-shim/handler.d.ts.map +1 -1
  44. package/dist/browser-shim/server.d.ts +63 -0
  45. package/dist/browser-shim/server.d.ts.map +1 -1
  46. package/dist/browser.d.ts +4621 -0
  47. package/dist/browser.d.ts.map +1 -0
  48. package/dist/browser.js +147 -0
  49. package/dist/build-4tyjywn9.js +54 -0
  50. package/dist/bundler/defaults.d.ts +23 -0
  51. package/dist/bundler/defaults.d.ts.map +1 -0
  52. package/dist/bundler/do-bundler.d.ts +7 -0
  53. package/dist/bundler/do-bundler.d.ts.map +1 -1
  54. package/dist/bundler/index.d.ts +2 -0
  55. package/dist/bundler/index.d.ts.map +1 -1
  56. package/dist/bundler/rolldown-shared.d.ts +53 -0
  57. package/dist/bundler/rolldown-shared.d.ts.map +1 -0
  58. package/dist/bundler/worker-bundler.d.ts +13 -0
  59. package/dist/bundler/worker-bundler.d.ts.map +1 -0
  60. package/dist/bundler/worker-compat.d.ts +4 -0
  61. package/dist/bundler/worker-compat.d.ts.map +1 -0
  62. package/dist/cli/build-manifest.d.ts +66 -0
  63. package/dist/cli/build-manifest.d.ts.map +1 -0
  64. package/dist/cli/command-utils.d.ts +18 -0
  65. package/dist/cli/command-utils.d.ts.map +1 -0
  66. package/dist/cli/commands/account.d.ts +1 -1
  67. package/dist/cli/commands/account.d.ts.map +1 -1
  68. package/dist/cli/commands/build-artifacts.d.ts +40 -0
  69. package/dist/cli/commands/build-artifacts.d.ts.map +1 -0
  70. package/dist/cli/commands/build.d.ts.map +1 -1
  71. package/dist/cli/commands/config.d.ts +4 -0
  72. package/dist/cli/commands/config.d.ts.map +1 -0
  73. package/dist/cli/commands/deploy/metadata.d.ts +18 -0
  74. package/dist/cli/commands/deploy/metadata.d.ts.map +1 -0
  75. package/dist/cli/commands/deploy/prepare.d.ts +23 -0
  76. package/dist/cli/commands/deploy/prepare.d.ts.map +1 -0
  77. package/dist/cli/commands/deploy/runtime.d.ts +4 -0
  78. package/dist/cli/commands/deploy/runtime.d.ts.map +1 -0
  79. package/dist/cli/commands/deploy/verification.d.ts +36 -0
  80. package/dist/cli/commands/deploy/verification.d.ts.map +1 -0
  81. package/dist/cli/commands/deploy.d.ts +2 -2
  82. package/dist/cli/commands/deploy.d.ts.map +1 -1
  83. package/dist/cli/commands/dev.d.ts +8 -0
  84. package/dist/cli/commands/dev.d.ts.map +1 -1
  85. package/dist/cli/commands/doctor.d.ts.map +1 -1
  86. package/dist/cli/commands/init.d.ts.map +1 -1
  87. package/dist/cli/commands/login.d.ts +4 -0
  88. package/dist/cli/commands/login.d.ts.map +1 -0
  89. package/dist/cli/commands/previews-support/cleanup.d.ts +9 -0
  90. package/dist/cli/commands/previews-support/cleanup.d.ts.map +1 -0
  91. package/dist/cli/commands/previews-support/family.d.ts +10 -0
  92. package/dist/cli/commands/previews-support/family.d.ts.map +1 -0
  93. package/dist/cli/commands/previews-support/render.d.ts +8 -0
  94. package/dist/cli/commands/previews-support/render.d.ts.map +1 -0
  95. package/dist/cli/commands/previews-support/theme.d.ts +10 -0
  96. package/dist/cli/commands/previews-support/theme.d.ts.map +1 -0
  97. package/dist/cli/commands/previews-support/types.d.ts +70 -0
  98. package/dist/cli/commands/previews-support/types.d.ts.map +1 -0
  99. package/dist/cli/commands/previews.d.ts +4 -0
  100. package/dist/cli/commands/previews.d.ts.map +1 -0
  101. package/dist/cli/commands/productions.d.ts +4 -0
  102. package/dist/cli/commands/productions.d.ts.map +1 -0
  103. package/dist/cli/commands/secrets.d.ts +4 -0
  104. package/dist/cli/commands/secrets.d.ts.map +1 -0
  105. package/dist/cli/commands/token.d.ts +4 -0
  106. package/dist/cli/commands/token.d.ts.map +1 -0
  107. package/dist/cli/commands/type-generation/discovery.d.ts +7 -0
  108. package/dist/cli/commands/type-generation/discovery.d.ts.map +1 -0
  109. package/dist/cli/commands/type-generation/generator.d.ts +112 -0
  110. package/dist/cli/commands/type-generation/generator.d.ts.map +1 -0
  111. package/dist/cli/commands/type-generation/models.d.ts +27 -0
  112. package/dist/cli/commands/type-generation/models.d.ts.map +1 -0
  113. package/dist/cli/commands/types.d.ts.map +1 -1
  114. package/dist/cli/commands/worker.d.ts +4 -0
  115. package/dist/cli/commands/worker.d.ts.map +1 -0
  116. package/dist/cli/config-path.d.ts +6 -0
  117. package/dist/cli/config-path.d.ts.map +1 -0
  118. package/dist/cli/dependencies.d.ts +1 -0
  119. package/dist/cli/dependencies.d.ts.map +1 -1
  120. package/dist/cli/deploy-strategy.d.ts +17 -0
  121. package/dist/cli/deploy-strategy.d.ts.map +1 -0
  122. package/dist/cli/deploy-target.d.ts +17 -0
  123. package/dist/cli/deploy-target.d.ts.map +1 -0
  124. package/dist/cli/generated-artifacts.d.ts +12 -0
  125. package/dist/cli/generated-artifacts.d.ts.map +1 -0
  126. package/dist/cli/help-pages/pages/account.d.ts +3 -0
  127. package/dist/cli/help-pages/pages/account.d.ts.map +1 -0
  128. package/dist/cli/help-pages/pages/core.d.ts +4 -0
  129. package/dist/cli/help-pages/pages/core.d.ts.map +1 -0
  130. package/dist/cli/help-pages/pages/index.d.ts +3 -0
  131. package/dist/cli/help-pages/pages/index.d.ts.map +1 -0
  132. package/dist/cli/help-pages/pages/misc.d.ts +3 -0
  133. package/dist/cli/help-pages/pages/misc.d.ts.map +1 -0
  134. package/dist/cli/help-pages/pages/previews.d.ts +3 -0
  135. package/dist/cli/help-pages/pages/previews.d.ts.map +1 -0
  136. package/dist/cli/help-pages/pages/productions.d.ts +3 -0
  137. package/dist/cli/help-pages/pages/productions.d.ts.map +1 -0
  138. package/dist/cli/help-pages/render.d.ts +12 -0
  139. package/dist/cli/help-pages/render.d.ts.map +1 -0
  140. package/dist/cli/help-pages/shared.d.ts +15 -0
  141. package/dist/cli/help-pages/shared.d.ts.map +1 -0
  142. package/dist/cli/help-pages/types.d.ts +23 -0
  143. package/dist/cli/help-pages/types.d.ts.map +1 -0
  144. package/dist/cli/help.d.ts +6 -0
  145. package/dist/cli/help.d.ts.map +1 -0
  146. package/dist/cli/index.d.ts +1 -0
  147. package/dist/cli/index.d.ts.map +1 -1
  148. package/dist/cli/index.js +12 -0
  149. package/dist/cli/package-metadata.d.ts +16 -0
  150. package/dist/cli/package-metadata.d.ts.map +1 -0
  151. package/dist/cli/preview-bindings.d.ts +49 -0
  152. package/dist/cli/preview-bindings.d.ts.map +1 -0
  153. package/dist/cli/preview.d.ts +10 -0
  154. package/dist/cli/preview.d.ts.map +1 -0
  155. package/dist/cli/ui.d.ts +37 -0
  156. package/dist/cli/ui.d.ts.map +1 -0
  157. package/dist/cli/workspace-build-guard.d.ts +14 -0
  158. package/dist/cli/workspace-build-guard.d.ts.map +1 -0
  159. package/dist/cloudflare/account-core.d.ts +6 -0
  160. package/dist/cloudflare/account-core.d.ts.map +1 -0
  161. package/dist/cloudflare/account-resources.d.ts +40 -0
  162. package/dist/cloudflare/account-resources.d.ts.map +1 -0
  163. package/dist/cloudflare/account-status.d.ts +11 -0
  164. package/dist/cloudflare/account-status.d.ts.map +1 -0
  165. package/dist/cloudflare/account-workers.d.ts +14 -0
  166. package/dist/cloudflare/account-workers.d.ts.map +1 -0
  167. package/dist/cloudflare/account.d.ts +7 -64
  168. package/dist/cloudflare/account.d.ts.map +1 -1
  169. package/dist/cloudflare/api.d.ts +71 -3
  170. package/dist/cloudflare/api.d.ts.map +1 -1
  171. package/dist/cloudflare/auth.d.ts.map +1 -1
  172. package/dist/cloudflare/index.d.ts +57 -2
  173. package/dist/cloudflare/index.d.ts.map +1 -1
  174. package/dist/cloudflare/index.js +49 -2
  175. package/dist/cloudflare/known-permission-group-ids.generated.d.ts +10 -0
  176. package/dist/cloudflare/known-permission-group-ids.generated.d.ts.map +1 -0
  177. package/dist/cloudflare/kv-namespace.d.ts +4 -0
  178. package/dist/cloudflare/kv-namespace.d.ts.map +1 -0
  179. package/dist/cloudflare/preferences.d.ts +7 -0
  180. package/dist/cloudflare/preferences.d.ts.map +1 -1
  181. package/dist/cloudflare/preview-registry-cache.d.ts +6 -0
  182. package/dist/cloudflare/preview-registry-cache.d.ts.map +1 -0
  183. package/dist/cloudflare/preview-registry-inference.d.ts +14 -0
  184. package/dist/cloudflare/preview-registry-inference.d.ts.map +1 -0
  185. package/dist/cloudflare/preview-registry-records.d.ts +4 -0
  186. package/dist/cloudflare/preview-registry-records.d.ts.map +1 -0
  187. package/dist/cloudflare/preview-registry-shape.d.ts +47 -0
  188. package/dist/cloudflare/preview-registry-shape.d.ts.map +1 -0
  189. package/dist/cloudflare/preview-registry-store.d.ts +14 -0
  190. package/dist/cloudflare/preview-registry-store.d.ts.map +1 -0
  191. package/dist/cloudflare/preview-registry-transport.d.ts +4 -0
  192. package/dist/cloudflare/preview-registry-transport.d.ts.map +1 -0
  193. package/dist/cloudflare/preview-registry-types.d.ts +103 -0
  194. package/dist/cloudflare/preview-registry-types.d.ts.map +1 -0
  195. package/dist/cloudflare/preview-registry.d.ts +42 -0
  196. package/dist/cloudflare/preview-registry.d.ts.map +1 -0
  197. package/dist/cloudflare/preview-urls.d.ts +3 -0
  198. package/dist/cloudflare/preview-urls.d.ts.map +1 -0
  199. package/dist/cloudflare/registry-schema.d.ts +253 -0
  200. package/dist/cloudflare/registry-schema.d.ts.map +1 -0
  201. package/dist/cloudflare/tokens.d.ts +44 -0
  202. package/dist/cloudflare/tokens.d.ts.map +1 -0
  203. package/dist/cloudflare/types.d.ts +124 -7
  204. package/dist/cloudflare/types.d.ts.map +1 -1
  205. package/dist/cloudflare/usage.d.ts +30 -2
  206. package/dist/cloudflare/usage.d.ts.map +1 -1
  207. package/dist/config/binding-resolution-helpers.d.ts +41 -0
  208. package/dist/config/binding-resolution-helpers.d.ts.map +1 -0
  209. package/dist/config/compatibility.d.ts +3 -0
  210. package/dist/config/compatibility.d.ts.map +1 -0
  211. package/dist/config/compiler/bindings.d.ts +14 -0
  212. package/dist/config/compiler/bindings.d.ts.map +1 -0
  213. package/dist/config/compiler/core-helpers.d.ts +6 -0
  214. package/dist/config/compiler/core-helpers.d.ts.map +1 -0
  215. package/dist/config/compiler/do-workers.d.ts +34 -0
  216. package/dist/config/compiler/do-workers.d.ts.map +1 -0
  217. package/dist/config/compiler/paths.d.ts +18 -0
  218. package/dist/config/compiler/paths.d.ts.map +1 -0
  219. package/dist/config/compiler/types.d.ts +270 -0
  220. package/dist/config/compiler/types.d.ts.map +1 -0
  221. package/dist/config/compiler.d.ts +22 -134
  222. package/dist/config/compiler.d.ts.map +1 -1
  223. package/dist/config/define.d.ts +7 -4
  224. package/dist/config/define.d.ts.map +1 -1
  225. package/dist/config/deploy-resources.d.ts +58 -0
  226. package/dist/config/deploy-resources.d.ts.map +1 -0
  227. package/dist/config/env-vars.d.ts +309 -0
  228. package/dist/config/env-vars.d.ts.map +1 -0
  229. package/dist/config/framework-providers.d.ts +9 -0
  230. package/dist/config/framework-providers.d.ts.map +1 -0
  231. package/dist/config/index.d.ts +12 -5
  232. package/dist/config/index.d.ts.map +1 -1
  233. package/dist/config/loader.d.ts +1 -0
  234. package/dist/config/loader.d.ts.map +1 -1
  235. package/dist/config/local-dev-vars.d.ts +15 -0
  236. package/dist/config/local-dev-vars.d.ts.map +1 -0
  237. package/dist/config/preview-resources.d.ts +83 -0
  238. package/dist/config/preview-resources.d.ts.map +1 -0
  239. package/dist/config/preview.d.ts +31 -0
  240. package/dist/config/preview.d.ts.map +1 -0
  241. package/dist/config/ref.d.ts +14 -23
  242. package/dist/config/ref.d.ts.map +1 -1
  243. package/dist/config/resolve-phased.d.ts +72 -0
  244. package/dist/config/resolve-phased.d.ts.map +1 -0
  245. package/dist/config/resolve.d.ts +11 -0
  246. package/dist/config/resolve.d.ts.map +1 -0
  247. package/dist/config/resource-resolution.d.ts +80 -0
  248. package/dist/config/resource-resolution.d.ts.map +1 -0
  249. package/dist/config/schema-bindings.d.ts +1495 -0
  250. package/dist/config/schema-bindings.d.ts.map +1 -0
  251. package/dist/config/schema-build.d.ts +67 -0
  252. package/dist/config/schema-build.d.ts.map +1 -0
  253. package/dist/config/schema-env.d.ts +3023 -0
  254. package/dist/config/schema-env.d.ts.map +1 -0
  255. package/dist/config/schema-normalization.d.ts +184 -0
  256. package/dist/config/schema-normalization.d.ts.map +1 -0
  257. package/dist/config/schema-runtime.d.ts +500 -0
  258. package/dist/config/schema-runtime.d.ts.map +1 -0
  259. package/dist/config/schema-types-bindings-platform.d.ts +378 -0
  260. package/dist/config/schema-types-bindings-platform.d.ts.map +1 -0
  261. package/dist/config/schema-types-bindings-resources.d.ts +551 -0
  262. package/dist/config/schema-types-bindings-resources.d.ts.map +1 -0
  263. package/dist/config/schema-types-bindings.d.ts +254 -0
  264. package/dist/config/schema-types-bindings.d.ts.map +1 -0
  265. package/dist/config/schema-types-build.d.ts +86 -0
  266. package/dist/config/schema-types-build.d.ts.map +1 -0
  267. package/dist/config/schema-types-runtime.d.ts +917 -0
  268. package/dist/config/schema-types-runtime.d.ts.map +1 -0
  269. package/dist/config/schema-types.d.ts +424 -0
  270. package/dist/config/schema-types.d.ts.map +1 -0
  271. package/dist/config/schema.d.ts +4537 -2214
  272. package/dist/config/schema.d.ts.map +1 -1
  273. package/dist/config/service-bindings-validation.d.ts +36 -0
  274. package/dist/config/service-bindings-validation.d.ts.map +1 -0
  275. package/dist/config-88sdhx3w.js +105 -0
  276. package/dist/config-entry.d.ts +7 -0
  277. package/dist/config-entry.d.ts.map +1 -0
  278. package/dist/config-entry.js +16 -0
  279. package/dist/decorators/durable-object.d.ts.map +1 -1
  280. package/dist/deploy-8fpav2cw.js +1066 -0
  281. package/dist/dev-nxevkfdv.js +2609 -0
  282. package/dist/dev-server/d1-migrations.d.ts +36 -0
  283. package/dist/dev-server/d1-migrations.d.ts.map +1 -0
  284. package/dist/dev-server/dev-server-state.d.ts +59 -0
  285. package/dist/dev-server/dev-server-state.d.ts.map +1 -0
  286. package/dist/dev-server/gateway-script.d.ts +21 -0
  287. package/dist/dev-server/gateway-script.d.ts.map +1 -0
  288. package/dist/dev-server/miniflare-bindings.d.ts +59 -0
  289. package/dist/dev-server/miniflare-bindings.d.ts.map +1 -0
  290. package/dist/dev-server/miniflare-dev-config.d.ts +36 -0
  291. package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -0
  292. package/dist/dev-server/miniflare-log.d.ts +20 -0
  293. package/dist/dev-server/miniflare-log.d.ts.map +1 -0
  294. package/dist/dev-server/miniflare-worker-config.d.ts +74 -0
  295. package/dist/dev-server/miniflare-worker-config.d.ts.map +1 -0
  296. package/dist/dev-server/reload-queue.d.ts +13 -0
  297. package/dist/dev-server/reload-queue.d.ts.map +1 -0
  298. package/dist/dev-server/runtime-stdio.d.ts +8 -0
  299. package/dist/dev-server/runtime-stdio.d.ts.map +1 -0
  300. package/dist/dev-server/server-startup-helpers.d.ts +84 -0
  301. package/dist/dev-server/server-startup-helpers.d.ts.map +1 -0
  302. package/dist/dev-server/server.d.ts +2 -0
  303. package/dist/dev-server/server.d.ts.map +1 -1
  304. package/dist/dev-server/vite-process.d.ts +15 -0
  305. package/dist/dev-server/vite-process.d.ts.map +1 -0
  306. package/dist/dev-server/vite-utils.d.ts +19 -1
  307. package/dist/dev-server/vite-utils.d.ts.map +1 -1
  308. package/dist/dev-server/worker-source-watcher.d.ts +17 -0
  309. package/dist/dev-server/worker-source-watcher.d.ts.map +1 -0
  310. package/dist/dev-server/worker-surface-paths.d.ts +6 -0
  311. package/dist/dev-server/worker-surface-paths.d.ts.map +1 -0
  312. package/dist/{doctor-fmgb3d28.js → doctor-ztwx1y95.js} +104 -35
  313. package/dist/{durable-object-t4kbb0yt.js → durable-object-v3gsnybk.js} +1 -1
  314. package/dist/env.d.ts +10 -0
  315. package/dist/env.d.ts.map +1 -1
  316. package/dist/index-11p28kxx.js +256 -0
  317. package/dist/index-15fpa5tx.js +232 -0
  318. package/dist/index-1d4jg11n.js +542 -0
  319. package/dist/index-3edvz3hs.js +124 -0
  320. package/dist/index-3jme4hgw.js +1234 -0
  321. package/dist/index-627srx16.js +45 -0
  322. package/dist/index-62b3gt2g.js +12 -0
  323. package/dist/index-67gr49zr.js +109 -0
  324. package/dist/index-69c0ed4a.js +895 -0
  325. package/dist/index-6sj0v0dk.js +2284 -0
  326. package/dist/index-7qd7nmdd.js +74 -0
  327. package/dist/index-85yjb686.js +413 -0
  328. package/dist/index-aabgympv.js +39 -0
  329. package/dist/{index-z14anrqp.js → index-aqrwyy57.js} +93 -31
  330. package/dist/index-c8p4njqy.js +479 -0
  331. package/dist/index-dfcp9hsd.js +1581 -0
  332. package/dist/index-dm9q84c7.js +360 -0
  333. package/dist/index-fcmj6641.js +147 -0
  334. package/dist/index-ft3trvra.js +476 -0
  335. package/dist/{index-18hvb6gb.js → index-gn5wy09x.js} +13 -2
  336. package/dist/index-hjjfxv02.js +708 -0
  337. package/dist/index-hpwa6vsw.js +239 -0
  338. package/dist/index-k9x5v335.js +1033 -0
  339. package/dist/index-mg8vwqxf.js +514 -0
  340. package/dist/index-ptwem1nt.js +1428 -0
  341. package/dist/{index-07q6yxyc.js → index-q8f4kawk.js} +68 -32
  342. package/dist/index-qmmqww7h.js +133 -0
  343. package/dist/{index-rbht7m9r.js → index-qwgr4q7s.js} +2 -1
  344. package/dist/index-qz6nbwpw.js +111 -0
  345. package/dist/index-rzp9ejrh.js +185 -0
  346. package/dist/index-s3km3y34.js +1205 -0
  347. package/dist/index-stgn34cr.js +148 -0
  348. package/dist/index-t9y0sve5.js +155 -0
  349. package/dist/index-vez803pp.js +52 -0
  350. package/dist/index-vhqww6tt.js +307 -0
  351. package/dist/index-xz18tstn.js +581 -0
  352. package/dist/{index-1xpj0m4r.js → index-z9gy8w6b.js} +1 -1
  353. package/dist/index-za0r01bx.js +588 -0
  354. package/dist/index.d.ts +3 -7
  355. package/dist/index.d.ts.map +1 -1
  356. package/dist/index.js +34 -269
  357. package/dist/{init-f9mgmew3.js → init-cwpergap.js} +63 -69
  358. package/dist/login-r5ve73kf.js +77 -0
  359. package/dist/previews-qjj98rpp.js +1337 -0
  360. package/dist/productions-gzdtge0e.js +505 -0
  361. package/dist/runtime/context-events.d.ts +13 -0
  362. package/dist/runtime/context-events.d.ts.map +1 -0
  363. package/dist/runtime/context-types.d.ts +82 -0
  364. package/dist/runtime/context-types.d.ts.map +1 -0
  365. package/dist/runtime/context.d.ts +20 -44
  366. package/dist/runtime/context.d.ts.map +1 -1
  367. package/dist/runtime/exports.d.ts +70 -55
  368. package/dist/runtime/exports.d.ts.map +1 -1
  369. package/dist/runtime/index.d.ts +8 -1
  370. package/dist/runtime/index.d.ts.map +1 -1
  371. package/dist/runtime/index.js +108 -99
  372. package/dist/runtime/middleware.d.ts +102 -60
  373. package/dist/runtime/middleware.d.ts.map +1 -1
  374. package/dist/runtime/router/index.d.ts +7 -0
  375. package/dist/runtime/router/index.d.ts.map +1 -0
  376. package/dist/runtime/router/types.d.ts +24 -0
  377. package/dist/runtime/router/types.d.ts.map +1 -0
  378. package/dist/runtime/validation.d.ts +17 -3
  379. package/dist/runtime/validation.d.ts.map +1 -1
  380. package/dist/secrets/local-secrets.d.ts +46 -0
  381. package/dist/secrets/local-secrets.d.ts.map +1 -0
  382. package/dist/secrets-4w5166km.js +91 -0
  383. package/dist/shims/local-hyperdrive.d.ts +12 -0
  384. package/dist/shims/local-hyperdrive.d.ts.map +1 -0
  385. package/dist/shims/local-media-bindings.d.ts +19 -0
  386. package/dist/shims/local-media-bindings.d.ts.map +1 -0
  387. package/dist/shims/local-worker-loader.d.ts +3 -0
  388. package/dist/shims/local-worker-loader.d.ts.map +1 -0
  389. package/dist/sveltekit/index.js +169 -75
  390. package/dist/sveltekit/local-bindings.d.ts +4 -0
  391. package/dist/sveltekit/local-bindings.d.ts.map +1 -0
  392. package/dist/sveltekit/platform.d.ts +19 -1
  393. package/dist/sveltekit/platform.d.ts.map +1 -1
  394. package/dist/test/ai-search.d.ts +39 -0
  395. package/dist/test/ai-search.d.ts.map +1 -0
  396. package/dist/test/binding-hints.d.ts +11 -0
  397. package/dist/test/binding-hints.d.ts.map +1 -0
  398. package/dist/test/cf.d.ts +35 -21
  399. package/dist/test/cf.d.ts.map +1 -1
  400. package/dist/test/containers.d.ts +87 -0
  401. package/dist/test/containers.d.ts.map +1 -0
  402. package/dist/test/email.d.ts +16 -7
  403. package/dist/test/email.d.ts.map +1 -1
  404. package/dist/test/index.d.ts +5 -8
  405. package/dist/test/index.d.ts.map +1 -1
  406. package/dist/test/index.js +4641 -43
  407. package/dist/test/offline-bindings.d.ts +65 -0
  408. package/dist/test/offline-bindings.d.ts.map +1 -0
  409. package/dist/test/queue.d.ts.map +1 -1
  410. package/dist/test/remote-ai.d.ts.map +1 -1
  411. package/dist/test/remote-cloudflare.d.ts +13 -0
  412. package/dist/test/remote-cloudflare.d.ts.map +1 -0
  413. package/dist/test/remote-vectorize.d.ts.map +1 -1
  414. package/dist/test/resolve-service-bindings.d.ts +63 -3
  415. package/dist/test/resolve-service-bindings.d.ts.map +1 -1
  416. package/dist/test/scheduled.d.ts.map +1 -1
  417. package/dist/test/should-skip.d.ts +14 -18
  418. package/dist/test/should-skip.d.ts.map +1 -1
  419. package/dist/test/simple-context-bindings.d.ts +13 -0
  420. package/dist/test/simple-context-bindings.d.ts.map +1 -0
  421. package/dist/test/simple-context-durable-objects.d.ts +6 -0
  422. package/dist/test/simple-context-durable-objects.d.ts.map +1 -0
  423. package/dist/test/simple-context-env.d.ts +35 -0
  424. package/dist/test/simple-context-env.d.ts.map +1 -0
  425. package/dist/test/simple-context-gateway-script.d.ts +2 -0
  426. package/dist/test/simple-context-gateway-script.d.ts.map +1 -0
  427. package/dist/test/simple-context-handlers.d.ts +12 -0
  428. package/dist/test/simple-context-handlers.d.ts.map +1 -0
  429. package/dist/test/simple-context-lifecycle.d.ts +32 -0
  430. package/dist/test/simple-context-lifecycle.d.ts.map +1 -0
  431. package/dist/test/simple-context-mfconfig.d.ts +10 -0
  432. package/dist/test/simple-context-mfconfig.d.ts.map +1 -0
  433. package/dist/test/simple-context-multi-worker.d.ts +16 -0
  434. package/dist/test/simple-context-multi-worker.d.ts.map +1 -0
  435. package/dist/test/simple-context-paths.d.ts +40 -0
  436. package/dist/test/simple-context-paths.d.ts.map +1 -0
  437. package/dist/test/simple-context-runtime.d.ts +19 -0
  438. package/dist/test/simple-context-runtime.d.ts.map +1 -0
  439. package/dist/test/simple-context-startup.d.ts +11 -0
  440. package/dist/test/simple-context-startup.d.ts.map +1 -0
  441. package/dist/test/simple-context-transport.d.ts +14 -0
  442. package/dist/test/simple-context-transport.d.ts.map +1 -0
  443. package/dist/test/simple-context.d.ts +7 -26
  444. package/dist/test/simple-context.d.ts.map +1 -1
  445. package/dist/test/tail.d.ts +2 -1
  446. package/dist/test/tail.d.ts.map +1 -1
  447. package/dist/test/utilities/artifacts.d.ts +11 -0
  448. package/dist/test/utilities/artifacts.d.ts.map +1 -0
  449. package/dist/test/utilities/context.d.ts +39 -0
  450. package/dist/test/utilities/context.d.ts.map +1 -0
  451. package/dist/test/utilities/d1.d.ts +21 -0
  452. package/dist/test/utilities/d1.d.ts.map +1 -0
  453. package/dist/test/utilities/env.d.ts +40 -0
  454. package/dist/test/utilities/env.d.ts.map +1 -0
  455. package/dist/test/utilities/kv.d.ts +11 -0
  456. package/dist/test/utilities/kv.d.ts.map +1 -0
  457. package/dist/test/utilities/media.d.ts +16 -0
  458. package/dist/test/utilities/media.d.ts.map +1 -0
  459. package/dist/test/utilities/platform.d.ts +41 -0
  460. package/dist/test/utilities/platform.d.ts.map +1 -0
  461. package/dist/test/utilities/queue.d.ts +5 -0
  462. package/dist/test/utilities/queue.d.ts.map +1 -0
  463. package/dist/test/utilities/r2.d.ts +2 -0
  464. package/dist/test/utilities/r2.d.ts.map +1 -0
  465. package/dist/test/utilities/workflows.d.ts +26 -0
  466. package/dist/test/utilities/workflows.d.ts.map +1 -0
  467. package/dist/test/utilities.d.ts +10 -98
  468. package/dist/test/utilities.d.ts.map +1 -1
  469. package/dist/test/worker.d.ts +6 -0
  470. package/dist/test/worker.d.ts.map +1 -1
  471. package/dist/token-35jcdqq8.js +419 -0
  472. package/dist/transform/durable-object.d.ts.map +1 -1
  473. package/dist/transform/worker-entrypoint.d.ts +5 -0
  474. package/dist/transform/worker-entrypoint.d.ts.map +1 -1
  475. package/dist/types-6vc02evc.js +705 -0
  476. package/dist/utils/entrypoint-discovery.d.ts +6 -3
  477. package/dist/utils/entrypoint-discovery.d.ts.map +1 -1
  478. package/dist/utils/resolve-package.d.ts.map +1 -1
  479. package/dist/utils/send-email.d.ts +15 -0
  480. package/dist/utils/send-email.d.ts.map +1 -0
  481. package/dist/utils/send-email.js +19 -0
  482. package/dist/vite/config-file.d.ts +25 -0
  483. package/dist/vite/config-file.d.ts.map +1 -0
  484. package/dist/vite/index.d.ts +1 -0
  485. package/dist/vite/index.d.ts.map +1 -1
  486. package/dist/vite/index.js +25 -331
  487. package/dist/vite/plugin-config-hook.d.ts +28 -0
  488. package/dist/vite/plugin-config-hook.d.ts.map +1 -0
  489. package/dist/vite/plugin-context.d.ts +27 -0
  490. package/dist/vite/plugin-context.d.ts.map +1 -0
  491. package/dist/vite/plugin-durable-objects.d.ts +18 -0
  492. package/dist/vite/plugin-durable-objects.d.ts.map +1 -0
  493. package/dist/vite/plugin-programmatic.d.ts +44 -0
  494. package/dist/vite/plugin-programmatic.d.ts.map +1 -0
  495. package/dist/vite/plugin-service-bindings.d.ts +13 -0
  496. package/dist/vite/plugin-service-bindings.d.ts.map +1 -0
  497. package/dist/vite/plugin-transform.d.ts +41 -0
  498. package/dist/vite/plugin-transform.d.ts.map +1 -0
  499. package/dist/vite/plugin.d.ts +10 -41
  500. package/dist/vite/plugin.d.ts.map +1 -1
  501. package/dist/worker-entry/composed-worker.d.ts +7 -0
  502. package/dist/worker-entry/composed-worker.d.ts.map +1 -0
  503. package/dist/worker-entry/durable-object-discovery.d.ts +20 -0
  504. package/dist/worker-entry/durable-object-discovery.d.ts.map +1 -0
  505. package/dist/worker-entry/extensions.d.ts +5 -0
  506. package/dist/worker-entry/extensions.d.ts.map +1 -0
  507. package/dist/worker-entry/routes.d.ts +22 -0
  508. package/dist/worker-entry/routes.d.ts.map +1 -0
  509. package/dist/worker-entry/surface-paths.d.ts +26 -0
  510. package/dist/worker-entry/surface-paths.d.ts.map +1 -0
  511. package/dist/{worker-entrypoint-m9th0rg0.js → worker-entrypoint-3rmzd4c1.js} +3 -1
  512. package/dist/worker-f2v85f7d.js +513 -0
  513. package/dist/workflows/local-workflow-entrypoints.d.ts +7 -0
  514. package/dist/workflows/local-workflow-entrypoints.d.ts.map +1 -0
  515. package/package.json +154 -115
  516. package/dist/account-rvrj687w.js +0 -397
  517. package/dist/bridge/protocol.d.ts.map +0 -1
  518. package/dist/bridge/serialization.d.ts.map +0 -1
  519. package/dist/browser-shim/worker.d.ts +0 -14
  520. package/dist/browser-shim/worker.d.ts.map +0 -1
  521. package/dist/build-mnf6v8gd.js +0 -53
  522. package/dist/deploy-nhceck39.js +0 -70
  523. package/dist/dev-pa8dhm20.js +0 -2162
  524. package/dist/index-67qcae0f.js +0 -183
  525. package/dist/index-ep3445yc.js +0 -2225
  526. package/dist/index-gz1gndna.js +0 -307
  527. package/dist/index-hcex3rgh.js +0 -266
  528. package/dist/index-m2q41jwa.js +0 -462
  529. package/dist/index-n7rs26ft.js +0 -77
  530. package/dist/index-pf5s73n9.js +0 -1413
  531. package/dist/index-tfyxa77h.js +0 -850
  532. package/dist/index-tk6ej9dj.js +0 -94
  533. package/dist/test/bridge-context.d.ts +0 -76
  534. package/dist/test/bridge-context.d.ts.map +0 -1
  535. package/dist/test/multi-worker-context.d.ts +0 -114
  536. package/dist/test/multi-worker-context.d.ts.map +0 -1
  537. package/dist/types-5nyrz1sz.js +0 -454
@@ -0,0 +1,500 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Cloudflare Workers compatibility date schema.
4
+ * Must be in YYYY-MM-DD format (e.g., '2025-01-07').
5
+ */
6
+ export declare const compatibilityDateSchema: z.ZodString;
7
+ /**
8
+ * Built-in file router configuration used for `src/routes/**` discovery.
9
+ */
10
+ export declare const routesConfigSchema: z.ZodObject<{
11
+ /** Directory containing route files (e.g., 'src/routes') */
12
+ dir: z.ZodString;
13
+ /** Optional route prefix (e.g., '/api'). */
14
+ prefix: z.ZodOptional<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ dir: string;
17
+ prefix?: string | undefined;
18
+ }, {
19
+ dir: string;
20
+ prefix?: string | undefined;
21
+ }>;
22
+ /**
23
+ * File handler configuration.
24
+ * Maps handler types to their source file paths.
25
+ */
26
+ export declare const filesSchema: z.ZodOptional<z.ZodObject<{
27
+ fetch: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
28
+ queue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
29
+ scheduled: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
30
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
31
+ tail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
32
+ durableObjects: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
33
+ entrypoints: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
34
+ workflows: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
35
+ routes: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
36
+ /** Directory containing route files (e.g., 'src/routes') */
37
+ dir: z.ZodString;
38
+ /** Optional route prefix (e.g., '/api'). */
39
+ prefix: z.ZodOptional<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ dir: string;
42
+ prefix?: string | undefined;
43
+ }, {
44
+ dir: string;
45
+ prefix?: string | undefined;
46
+ }>, z.ZodLiteral<false>]>>;
47
+ transport: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ fetch?: string | false | undefined;
50
+ queue?: string | false | undefined;
51
+ scheduled?: string | false | undefined;
52
+ email?: string | false | undefined;
53
+ tail?: string | false | undefined;
54
+ durableObjects?: string | false | undefined;
55
+ entrypoints?: string | false | undefined;
56
+ workflows?: string | false | undefined;
57
+ routes?: false | {
58
+ dir: string;
59
+ prefix?: string | undefined;
60
+ } | undefined;
61
+ transport?: string | null | undefined;
62
+ }, {
63
+ fetch?: string | false | undefined;
64
+ queue?: string | false | undefined;
65
+ scheduled?: string | false | undefined;
66
+ email?: string | false | undefined;
67
+ tail?: string | false | undefined;
68
+ durableObjects?: string | false | undefined;
69
+ entrypoints?: string | false | undefined;
70
+ workflows?: string | false | undefined;
71
+ routes?: false | {
72
+ dir: string;
73
+ prefix?: string | undefined;
74
+ } | undefined;
75
+ transport?: string | null | undefined;
76
+ }>>;
77
+ /**
78
+ * Tail Consumer configuration.
79
+ */
80
+ export declare const tailConsumerSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
81
+ service: z.ZodString;
82
+ environment: z.ZodOptional<z.ZodString>;
83
+ }, "strict", z.ZodTypeAny, {
84
+ service: string;
85
+ environment?: string | undefined;
86
+ }, {
87
+ service: string;
88
+ environment?: string | undefined;
89
+ }>]>;
90
+ /**
91
+ * Trigger configuration for scheduled (cron) events.
92
+ */
93
+ export declare const triggersSchema: z.ZodOptional<z.ZodObject<{
94
+ crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ crons?: string[] | undefined;
97
+ }, {
98
+ crons?: string[] | undefined;
99
+ }>>;
100
+ /**
101
+ * Preview-specific Devflare behavior.
102
+ */
103
+ export declare const previewsConfigSchema: z.ZodOptional<z.ZodObject<{
104
+ includeCrons: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ includeCrons: boolean;
107
+ }, {
108
+ includeCrons?: boolean | undefined;
109
+ }>>;
110
+ /**
111
+ * Dev server configuration for `devflare dev`.
112
+ *
113
+ * Controls the host and port the local Miniflare runtime instance binds to.
114
+ * This is a development-only setting and is never emitted to compiled Wrangler
115
+ * output. CLI flags (`--runtime-port`, `--runtime-host`) and environment
116
+ * variables (`DEVFLARE_RUNTIME_PORT`, `DEVFLARE_RUNTIME_HOST`) take precedence
117
+ * over these values.
118
+ */
119
+ export declare const serverConfigSchema: z.ZodOptional<z.ZodObject<{
120
+ /** Host the dev runtime binds to. @default '127.0.0.1' */
121
+ host: z.ZodOptional<z.ZodString>;
122
+ /** Port the dev runtime binds to. @default 8787 */
123
+ port: z.ZodOptional<z.ZodNumber>;
124
+ }, "strict", z.ZodTypeAny, {
125
+ host?: string | undefined;
126
+ port?: number | undefined;
127
+ }, {
128
+ host?: string | undefined;
129
+ port?: number | undefined;
130
+ }>>;
131
+ /**
132
+ * Secret declaration options.
133
+ */
134
+ export declare const secretConfigSchema: z.ZodObject<{
135
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ required: boolean;
138
+ }, {
139
+ required?: boolean | undefined;
140
+ }>;
141
+ /**
142
+ * Route configuration for worker deployment.
143
+ */
144
+ export declare const routeConfigSchema: z.ZodEffects<z.ZodObject<{
145
+ pattern: z.ZodString;
146
+ zone_name: z.ZodOptional<z.ZodString>;
147
+ zone_id: z.ZodOptional<z.ZodString>;
148
+ custom_domain: z.ZodOptional<z.ZodBoolean>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ pattern: string;
151
+ zone_name?: string | undefined;
152
+ zone_id?: string | undefined;
153
+ custom_domain?: boolean | undefined;
154
+ }, {
155
+ pattern: string;
156
+ zone_name?: string | undefined;
157
+ zone_id?: string | undefined;
158
+ custom_domain?: boolean | undefined;
159
+ }>, {
160
+ pattern: string;
161
+ zone_name?: string | undefined;
162
+ zone_id?: string | undefined;
163
+ custom_domain?: boolean | undefined;
164
+ }, {
165
+ pattern: string;
166
+ zone_name?: string | undefined;
167
+ zone_id?: string | undefined;
168
+ custom_domain?: boolean | undefined;
169
+ }>;
170
+ /**
171
+ * WebSocket route configuration for dev mode Durable Object proxying.
172
+ */
173
+ export declare const wsRouteConfigSchema: z.ZodObject<{
174
+ pattern: z.ZodString;
175
+ doNamespace: z.ZodString;
176
+ idParam: z.ZodDefault<z.ZodString>;
177
+ forwardPath: z.ZodDefault<z.ZodString>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ pattern: string;
180
+ doNamespace: string;
181
+ idParam: string;
182
+ forwardPath: string;
183
+ }, {
184
+ pattern: string;
185
+ doNamespace: string;
186
+ idParam?: string | undefined;
187
+ forwardPath?: string | undefined;
188
+ }>;
189
+ /**
190
+ * Static assets configuration.
191
+ */
192
+ export declare const assetsConfigSchema: z.ZodOptional<z.ZodObject<{
193
+ directory: z.ZodString;
194
+ binding: z.ZodOptional<z.ZodString>;
195
+ html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
196
+ not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
197
+ run_worker_first: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
198
+ }, "strict", z.ZodTypeAny, {
199
+ directory: string;
200
+ binding?: string | undefined;
201
+ html_handling?: "auto-trailing-slash" | "drop-trailing-slash" | "force-trailing-slash" | "none" | undefined;
202
+ not_found_handling?: "404-page" | "none" | "single-page-application" | undefined;
203
+ run_worker_first?: boolean | string[] | undefined;
204
+ }, {
205
+ directory: string;
206
+ binding?: string | undefined;
207
+ html_handling?: "auto-trailing-slash" | "drop-trailing-slash" | "force-trailing-slash" | "none" | undefined;
208
+ not_found_handling?: "404-page" | "none" | "single-page-application" | undefined;
209
+ run_worker_first?: boolean | string[] | undefined;
210
+ }>>;
211
+ /**
212
+ * Worker placement configuration.
213
+ */
214
+ export declare const placementSchema: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
215
+ mode: z.ZodEnum<["off", "smart"]>;
216
+ hint: z.ZodOptional<z.ZodString>;
217
+ }, "strict", z.ZodTypeAny, {
218
+ mode: "off" | "smart";
219
+ hint?: string | undefined;
220
+ }, {
221
+ mode: "off" | "smart";
222
+ hint?: string | undefined;
223
+ }>, {
224
+ mode: "off" | "smart";
225
+ hint?: string | undefined;
226
+ }, {
227
+ mode: "off" | "smart";
228
+ hint?: string | undefined;
229
+ }>, z.ZodObject<{
230
+ mode: z.ZodOptional<z.ZodLiteral<"targeted">>;
231
+ region: z.ZodString;
232
+ }, "strict", z.ZodTypeAny, {
233
+ mode?: "targeted" | undefined;
234
+ region: string;
235
+ }, {
236
+ mode?: "targeted" | undefined;
237
+ region: string;
238
+ }>, z.ZodObject<{
239
+ mode: z.ZodOptional<z.ZodLiteral<"targeted">>;
240
+ host: z.ZodString;
241
+ }, "strict", z.ZodTypeAny, {
242
+ mode?: "targeted" | undefined;
243
+ host: string;
244
+ }, {
245
+ mode?: "targeted" | undefined;
246
+ host: string;
247
+ }>, z.ZodObject<{
248
+ mode: z.ZodOptional<z.ZodLiteral<"targeted">>;
249
+ hostname: z.ZodString;
250
+ }, "strict", z.ZodTypeAny, {
251
+ mode?: "targeted" | undefined;
252
+ hostname: string;
253
+ }, {
254
+ mode?: "targeted" | undefined;
255
+ hostname: string;
256
+ }>]>>;
257
+ /**
258
+ * Observability configuration for logs and traces.
259
+ */
260
+ export declare const observabilitySchema: z.ZodOptional<z.ZodObject<{
261
+ enabled: z.ZodOptional<z.ZodBoolean>;
262
+ head_sampling_rate: z.ZodOptional<z.ZodNumber>;
263
+ logs: z.ZodOptional<z.ZodObject<{
264
+ enabled: z.ZodOptional<z.ZodBoolean>;
265
+ head_sampling_rate: z.ZodOptional<z.ZodNumber>;
266
+ invocation_logs: z.ZodOptional<z.ZodBoolean>;
267
+ persist: z.ZodOptional<z.ZodBoolean>;
268
+ destinations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
269
+ }, "strict", z.ZodTypeAny, {
270
+ enabled?: boolean | undefined;
271
+ head_sampling_rate?: number | undefined;
272
+ invocation_logs?: boolean | undefined;
273
+ persist?: boolean | undefined;
274
+ destinations?: string[] | undefined;
275
+ }, {
276
+ enabled?: boolean | undefined;
277
+ head_sampling_rate?: number | undefined;
278
+ invocation_logs?: boolean | undefined;
279
+ persist?: boolean | undefined;
280
+ destinations?: string[] | undefined;
281
+ }>>;
282
+ traces: z.ZodOptional<z.ZodObject<{
283
+ enabled: z.ZodOptional<z.ZodBoolean>;
284
+ head_sampling_rate: z.ZodOptional<z.ZodNumber>;
285
+ persist: z.ZodOptional<z.ZodBoolean>;
286
+ destinations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
287
+ }, "strict", z.ZodTypeAny, {
288
+ enabled?: boolean | undefined;
289
+ head_sampling_rate?: number | undefined;
290
+ persist?: boolean | undefined;
291
+ destinations?: string[] | undefined;
292
+ }, {
293
+ enabled?: boolean | undefined;
294
+ head_sampling_rate?: number | undefined;
295
+ persist?: boolean | undefined;
296
+ destinations?: string[] | undefined;
297
+ }>>;
298
+ }, "strict", z.ZodTypeAny, {
299
+ enabled?: boolean | undefined;
300
+ head_sampling_rate?: number | undefined;
301
+ logs?: {
302
+ enabled?: boolean | undefined;
303
+ head_sampling_rate?: number | undefined;
304
+ invocation_logs?: boolean | undefined;
305
+ persist?: boolean | undefined;
306
+ destinations?: string[] | undefined;
307
+ } | undefined;
308
+ traces?: {
309
+ enabled?: boolean | undefined;
310
+ head_sampling_rate?: number | undefined;
311
+ persist?: boolean | undefined;
312
+ destinations?: string[] | undefined;
313
+ } | undefined;
314
+ }, {
315
+ enabled?: boolean | undefined;
316
+ head_sampling_rate?: number | undefined;
317
+ logs?: {
318
+ enabled?: boolean | undefined;
319
+ head_sampling_rate?: number | undefined;
320
+ invocation_logs?: boolean | undefined;
321
+ persist?: boolean | undefined;
322
+ destinations?: string[] | undefined;
323
+ } | undefined;
324
+ traces?: {
325
+ enabled?: boolean | undefined;
326
+ head_sampling_rate?: number | undefined;
327
+ persist?: boolean | undefined;
328
+ destinations?: string[] | undefined;
329
+ } | undefined;
330
+ }>>;
331
+ /**
332
+ * Resource limits configuration.
333
+ */
334
+ export declare const limitsSchema: z.ZodOptional<z.ZodObject<{
335
+ cpu_ms: z.ZodOptional<z.ZodNumber>;
336
+ subrequests: z.ZodOptional<z.ZodNumber>;
337
+ }, "strict", z.ZodTypeAny, {
338
+ cpu_ms?: number | undefined;
339
+ subrequests?: number | undefined;
340
+ }, {
341
+ cpu_ms?: number | undefined;
342
+ subrequests?: number | undefined;
343
+ }>>;
344
+ /**
345
+ * Cloudflare Containers configuration.
346
+ *
347
+ * Devflare authors this in camelCase and compiles to Wrangler's top-level
348
+ * `containers` array. Runtime launch/testing is handled by the local
349
+ * container test shim, not by Miniflare itself.
350
+ */
351
+ export declare const containerConfigSchema: z.ZodObject<{
352
+ className: z.ZodString;
353
+ image: z.ZodString;
354
+ maxInstances: z.ZodOptional<z.ZodNumber>;
355
+ instanceType: z.ZodOptional<z.ZodString>;
356
+ name: z.ZodOptional<z.ZodString>;
357
+ imageBuildContext: z.ZodOptional<z.ZodString>;
358
+ imageVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
359
+ rolloutActiveGracePeriod: z.ZodOptional<z.ZodNumber>;
360
+ rolloutStepPercentage: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
361
+ }, "strict", z.ZodTypeAny, {
362
+ className: string;
363
+ image: string;
364
+ maxInstances?: number | undefined;
365
+ instanceType?: string | undefined;
366
+ name?: string | undefined;
367
+ imageBuildContext?: string | undefined;
368
+ imageVars?: Record<string, string> | undefined;
369
+ rolloutActiveGracePeriod?: number | undefined;
370
+ rolloutStepPercentage?: number | number[] | undefined;
371
+ }, {
372
+ className: string;
373
+ image: string;
374
+ maxInstances?: number | undefined;
375
+ instanceType?: string | undefined;
376
+ name?: string | undefined;
377
+ imageBuildContext?: string | undefined;
378
+ imageVars?: Record<string, string> | undefined;
379
+ rolloutActiveGracePeriod?: number | undefined;
380
+ rolloutStepPercentage?: number | number[] | undefined;
381
+ }>;
382
+ export declare const containersConfigSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
383
+ className: z.ZodString;
384
+ image: z.ZodString;
385
+ maxInstances: z.ZodOptional<z.ZodNumber>;
386
+ instanceType: z.ZodOptional<z.ZodString>;
387
+ name: z.ZodOptional<z.ZodString>;
388
+ imageBuildContext: z.ZodOptional<z.ZodString>;
389
+ imageVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
390
+ rolloutActiveGracePeriod: z.ZodOptional<z.ZodNumber>;
391
+ rolloutStepPercentage: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
392
+ }, "strict", z.ZodTypeAny, {
393
+ className: string;
394
+ image: string;
395
+ maxInstances?: number | undefined;
396
+ instanceType?: string | undefined;
397
+ name?: string | undefined;
398
+ imageBuildContext?: string | undefined;
399
+ imageVars?: Record<string, string> | undefined;
400
+ rolloutActiveGracePeriod?: number | undefined;
401
+ rolloutStepPercentage?: number | number[] | undefined;
402
+ }, {
403
+ className: string;
404
+ image: string;
405
+ maxInstances?: number | undefined;
406
+ instanceType?: string | undefined;
407
+ name?: string | undefined;
408
+ imageBuildContext?: string | undefined;
409
+ imageVars?: Record<string, string> | undefined;
410
+ rolloutActiveGracePeriod?: number | undefined;
411
+ rolloutStepPercentage?: number | number[] | undefined;
412
+ }>, "many">>;
413
+ /**
414
+ * Module rules for non-JavaScript Worker modules and imported assets.
415
+ *
416
+ * Wrangler also exposes Python-specific rule types while Python Workers are in
417
+ * beta. Devflare keeps those behind `wrangler.passthrough` until the local
418
+ * Python Worker toolchain has a stable Devflare integration point.
419
+ */
420
+ export declare const moduleRuleSchema: z.ZodObject<{
421
+ type: z.ZodEnum<["ESModule", "CommonJS", "CompiledWasm", "Text", "Data"]>;
422
+ globs: z.ZodArray<z.ZodString, "many">;
423
+ fallthrough: z.ZodOptional<z.ZodBoolean>;
424
+ }, "strict", z.ZodTypeAny, {
425
+ type: "CommonJS" | "CompiledWasm" | "Data" | "ESModule" | "Text";
426
+ globs: string[];
427
+ fallthrough?: boolean | undefined;
428
+ }, {
429
+ type: "CommonJS" | "CompiledWasm" | "Data" | "ESModule" | "Text";
430
+ globs: string[];
431
+ fallthrough?: boolean | undefined;
432
+ }>;
433
+ export declare const moduleRulesSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
434
+ type: z.ZodEnum<["ESModule", "CommonJS", "CompiledWasm", "Text", "Data"]>;
435
+ globs: z.ZodArray<z.ZodString, "many">;
436
+ fallthrough: z.ZodOptional<z.ZodBoolean>;
437
+ }, "strict", z.ZodTypeAny, {
438
+ type: "CommonJS" | "CompiledWasm" | "Data" | "ESModule" | "Text";
439
+ globs: string[];
440
+ fallthrough?: boolean | undefined;
441
+ }, {
442
+ type: "CommonJS" | "CompiledWasm" | "Data" | "ESModule" | "Text";
443
+ globs: string[];
444
+ fallthrough?: boolean | undefined;
445
+ }>, "many">>;
446
+ export declare const migrationSchema: z.ZodObject<{
447
+ tag: z.ZodString;
448
+ new_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
449
+ renamed_classes: z.ZodOptional<z.ZodArray<z.ZodObject<{
450
+ from: z.ZodString;
451
+ to: z.ZodString;
452
+ }, "strict", z.ZodTypeAny, {
453
+ from: string;
454
+ to: string;
455
+ }, {
456
+ from: string;
457
+ to: string;
458
+ }>, "many">>;
459
+ deleted_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
460
+ new_sqlite_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
461
+ }, "strict", z.ZodTypeAny, {
462
+ tag: string;
463
+ new_classes?: string[] | undefined;
464
+ renamed_classes?: {
465
+ from: string;
466
+ to: string;
467
+ }[] | undefined;
468
+ deleted_classes?: string[] | undefined;
469
+ new_sqlite_classes?: string[] | undefined;
470
+ }, {
471
+ tag: string;
472
+ new_classes?: string[] | undefined;
473
+ renamed_classes?: {
474
+ from: string;
475
+ to: string;
476
+ }[] | undefined;
477
+ deleted_classes?: string[] | undefined;
478
+ new_sqlite_classes?: string[] | undefined;
479
+ }>;
480
+ /**
481
+ * Wrangler configuration passthrough.
482
+ */
483
+ export declare const wranglerConfigSchema: z.ZodOptional<z.ZodObject<{
484
+ passthrough: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ passthrough?: Record<string, unknown> | undefined;
487
+ }, {
488
+ passthrough?: Record<string, unknown> | undefined;
489
+ }>>;
490
+ export type AssetsConfig = z.infer<typeof assetsConfigSchema>;
491
+ export type ContainerConfig = z.infer<typeof containerConfigSchema>;
492
+ export type MigrationConfig = z.infer<typeof migrationSchema>;
493
+ export type ModuleRuleConfig = z.infer<typeof moduleRuleSchema>;
494
+ export type PlacementConfig = z.infer<typeof placementSchema>;
495
+ export type PreviewConfig = z.output<typeof previewsConfigSchema>;
496
+ export type RouteConfig = z.infer<typeof routeConfigSchema>;
497
+ export type ServerConfig = z.infer<typeof serverConfigSchema>;
498
+ export type TailConsumerConfig = z.infer<typeof tailConsumerSchema>;
499
+ export type WsRouteConfig = z.infer<typeof wsRouteConfigSchema>;
500
+ //# sourceMappingURL=schema-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-runtime.d.ts","sourceRoot":"","sources":["../../src/config/schema-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB;;;GAGG;AACH,eAAO,MAAM,uBAAuB,aAElC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC9B,4DAA4D;;IAE5D,4CAA4C;;;;;;;;EAE3C,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;QAVvB,4DAA4D;;QAE5D,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmBhC,CAAA;AAEb;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;IAM7B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;GAEd,CAAA;AAEb;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;GAEpB,CAAA;AAEb;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;IAC9B,0DAA0D;;IAE1D,mDAAmD;;;;;;;;GAE9B,CAAA;AAEtB;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;EAyB5B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;GAkBT,CAAA;AA8BtB;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKf,CAAA;AAmBb;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKV,CAAA;AAEtB;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;GAGH,CAAA;AAOtB;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUvB,CAAA;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA4C,CAAA;AAE/E;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAIlB,CAAA;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;YAAuC,CAAA;AAUrE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMjB,CAAA;AAEX;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;GAEpB,CAAA;AAEb,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC7D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AACnE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAC7D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAC/D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAC7D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACjE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC3D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC7D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACnE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA"}