alchemy 0.56.0 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/bin/alchemy.js +14201 -14162
  2. package/bin/commands/create.ts +7 -7
  3. package/bin/commands/deploy.ts +2 -2
  4. package/bin/commands/destroy.ts +2 -2
  5. package/bin/commands/dev.ts +2 -2
  6. package/bin/commands/init.ts +6 -6
  7. package/bin/commands/login.ts +3 -3
  8. package/bin/commands/run.ts +2 -2
  9. package/bin/services/execute-alchemy.ts +3 -3
  10. package/bin/trpc.ts +49 -0
  11. package/lib/apply.d.ts.map +1 -1
  12. package/lib/apply.js +3 -4
  13. package/lib/apply.js.map +1 -1
  14. package/lib/cloudflare/{astro.d.ts → astro/astro.d.ts} +6 -5
  15. package/lib/cloudflare/astro/astro.d.ts.map +1 -0
  16. package/lib/cloudflare/astro/astro.js +91 -0
  17. package/lib/cloudflare/astro/astro.js.map +1 -0
  18. package/lib/cloudflare/astro/plugin.d.ts +4 -0
  19. package/lib/cloudflare/astro/plugin.d.ts.map +1 -0
  20. package/lib/cloudflare/astro/plugin.js +10 -0
  21. package/lib/cloudflare/astro/plugin.js.map +1 -0
  22. package/lib/cloudflare/cloudflare-env-proxy.d.ts +4 -0
  23. package/lib/cloudflare/cloudflare-env-proxy.d.ts.map +1 -0
  24. package/lib/cloudflare/cloudflare-env-proxy.js +34 -0
  25. package/lib/cloudflare/cloudflare-env-proxy.js.map +1 -0
  26. package/lib/cloudflare/compatibility-date.gen.d.ts +1 -1
  27. package/lib/cloudflare/compatibility-date.gen.js +1 -1
  28. package/lib/cloudflare/d1-local-migrations.js +1 -1
  29. package/lib/cloudflare/d1-local-migrations.js.map +1 -1
  30. package/lib/cloudflare/index.d.ts +8 -8
  31. package/lib/cloudflare/index.d.ts.map +1 -1
  32. package/lib/cloudflare/index.js +8 -8
  33. package/lib/cloudflare/index.js.map +1 -1
  34. package/lib/cloudflare/miniflare/miniflare-controller.d.ts.map +1 -1
  35. package/lib/cloudflare/miniflare/miniflare-controller.js +2 -1
  36. package/lib/cloudflare/miniflare/miniflare-controller.js.map +1 -1
  37. package/lib/cloudflare/miniflare/paths.d.ts +5 -0
  38. package/lib/cloudflare/miniflare/paths.d.ts.map +1 -0
  39. package/lib/cloudflare/miniflare/paths.js +35 -0
  40. package/lib/cloudflare/miniflare/paths.js.map +1 -0
  41. package/lib/cloudflare/{nuxt.d.ts → nuxt/nuxt.d.ts} +4 -4
  42. package/lib/cloudflare/nuxt/nuxt.d.ts.map +1 -0
  43. package/lib/cloudflare/{nuxt.js → nuxt/nuxt.js} +8 -13
  44. package/lib/cloudflare/nuxt/nuxt.js.map +1 -0
  45. package/lib/cloudflare/nuxt/plugin.d.ts +4 -0
  46. package/lib/cloudflare/nuxt/plugin.d.ts.map +1 -0
  47. package/lib/cloudflare/nuxt/plugin.js +14 -0
  48. package/lib/cloudflare/nuxt/plugin.js.map +1 -0
  49. package/lib/cloudflare/oauth.js +2 -2
  50. package/lib/cloudflare/oauth.js.map +1 -1
  51. package/lib/cloudflare/orange.d.ts +3 -3
  52. package/lib/cloudflare/orange.d.ts.map +1 -1
  53. package/lib/cloudflare/orange.js +11 -21
  54. package/lib/cloudflare/orange.js.map +1 -1
  55. package/lib/cloudflare/react-router/plugin.d.ts +4 -0
  56. package/lib/cloudflare/react-router/plugin.d.ts.map +1 -0
  57. package/lib/cloudflare/react-router/plugin.js +11 -0
  58. package/lib/cloudflare/react-router/plugin.js.map +1 -0
  59. package/lib/cloudflare/react-router/react-router.d.ts +17 -0
  60. package/lib/cloudflare/react-router/react-router.d.ts.map +1 -0
  61. package/lib/cloudflare/react-router/react-router.js +21 -0
  62. package/lib/cloudflare/react-router/react-router.js.map +1 -0
  63. package/lib/cloudflare/redwood/plugin.d.ts +4 -0
  64. package/lib/cloudflare/redwood/plugin.d.ts.map +1 -0
  65. package/lib/cloudflare/redwood/plugin.js +19 -0
  66. package/lib/cloudflare/redwood/plugin.js.map +1 -0
  67. package/lib/cloudflare/{redwood.d.ts → redwood/redwood.d.ts} +5 -5
  68. package/lib/cloudflare/redwood/redwood.d.ts.map +1 -0
  69. package/lib/cloudflare/{redwood.js → redwood/redwood.js} +12 -13
  70. package/lib/cloudflare/redwood/redwood.js.map +1 -0
  71. package/lib/cloudflare/sveltekit/plugin.d.ts +4 -0
  72. package/lib/cloudflare/sveltekit/plugin.d.ts.map +1 -0
  73. package/lib/cloudflare/sveltekit/plugin.js +11 -0
  74. package/lib/cloudflare/sveltekit/plugin.js.map +1 -0
  75. package/lib/cloudflare/{sveltekit.d.ts → sveltekit/sveltekit.d.ts} +5 -5
  76. package/lib/cloudflare/sveltekit/sveltekit.d.ts.map +1 -0
  77. package/lib/cloudflare/{sveltekit.js → sveltekit/sveltekit.js} +4 -4
  78. package/lib/cloudflare/sveltekit/sveltekit.js.map +1 -0
  79. package/lib/cloudflare/{local-dev-cloudflare-shim.d.ts → tanstack-start/plugin.d.ts} +3 -2
  80. package/lib/cloudflare/tanstack-start/plugin.d.ts.map +1 -0
  81. package/lib/cloudflare/{local-dev-cloudflare-shim.js → tanstack-start/plugin.js} +6 -9
  82. package/lib/cloudflare/tanstack-start/plugin.js.map +1 -0
  83. package/lib/cloudflare/{tanstack-start.d.ts → tanstack-start/tanstack-start.d.ts} +5 -5
  84. package/lib/cloudflare/tanstack-start/tanstack-start.d.ts.map +1 -0
  85. package/lib/cloudflare/tanstack-start/tanstack-start.js +11 -0
  86. package/lib/cloudflare/tanstack-start/tanstack-start.js.map +1 -0
  87. package/lib/cloudflare/vite/plugin.d.ts +4 -0
  88. package/lib/cloudflare/vite/plugin.d.ts.map +1 -0
  89. package/lib/cloudflare/vite/plugin.js +23 -0
  90. package/lib/cloudflare/vite/plugin.js.map +1 -0
  91. package/lib/cloudflare/{vite.d.ts → vite/vite.d.ts} +4 -4
  92. package/lib/cloudflare/vite/vite.d.ts.map +1 -0
  93. package/lib/cloudflare/vite/vite.js +19 -0
  94. package/lib/cloudflare/vite/vite.js.map +1 -0
  95. package/lib/cloudflare/website.d.ts +92 -70
  96. package/lib/cloudflare/website.d.ts.map +1 -1
  97. package/lib/cloudflare/website.js +225 -94
  98. package/lib/cloudflare/website.js.map +1 -1
  99. package/lib/cloudflare/worker-bundle.d.ts +1 -1
  100. package/lib/cloudflare/worker-bundle.d.ts.map +1 -1
  101. package/lib/cloudflare/worker-bundle.js +23 -13
  102. package/lib/cloudflare/worker-bundle.js.map +1 -1
  103. package/lib/cloudflare/worker-stub.d.ts.map +1 -1
  104. package/lib/cloudflare/worker-stub.js +3 -6
  105. package/lib/cloudflare/worker-stub.js.map +1 -1
  106. package/lib/cloudflare/worker.d.ts +2 -7
  107. package/lib/cloudflare/worker.d.ts.map +1 -1
  108. package/lib/cloudflare/worker.js +5 -124
  109. package/lib/cloudflare/worker.js.map +1 -1
  110. package/lib/cloudflare/wrangler.json.d.ts +6 -0
  111. package/lib/cloudflare/wrangler.json.d.ts.map +1 -1
  112. package/lib/cloudflare/wrangler.json.js +23 -6
  113. package/lib/cloudflare/wrangler.json.js.map +1 -1
  114. package/lib/env.d.ts +2 -2
  115. package/lib/env.d.ts.map +1 -1
  116. package/lib/env.js +5 -6
  117. package/lib/env.js.map +1 -1
  118. package/lib/random/index.d.ts +2 -0
  119. package/lib/random/index.d.ts.map +1 -0
  120. package/lib/random/index.js +2 -0
  121. package/lib/random/index.js.map +1 -0
  122. package/lib/random/random-string.d.ts +87 -0
  123. package/lib/random/random-string.d.ts.map +1 -0
  124. package/lib/random/random-string.js +72 -0
  125. package/lib/random/random-string.js.map +1 -0
  126. package/lib/runtime/bind.d.ts +1 -1
  127. package/lib/runtime/bind.d.ts.map +1 -1
  128. package/lib/runtime/bind.js.map +1 -1
  129. package/lib/scope.d.ts +0 -1
  130. package/lib/scope.d.ts.map +1 -1
  131. package/lib/scope.js +1 -2
  132. package/lib/scope.js.map +1 -1
  133. package/lib/secret.d.ts +2 -2
  134. package/lib/secret.d.ts.map +1 -1
  135. package/lib/secret.js +2 -2
  136. package/lib/secret.js.map +1 -1
  137. package/lib/state/cloudflare-state-store.js +1 -1
  138. package/lib/state/cloudflare-state-store.js.map +1 -1
  139. package/lib/state/dofs-state-store/index.js +1 -1
  140. package/lib/state/dofs-state-store/index.js.map +1 -1
  141. package/lib/util/detect-package-manager.d.ts +1 -0
  142. package/lib/util/detect-package-manager.d.ts.map +1 -1
  143. package/lib/util/detect-package-manager.js +10 -0
  144. package/lib/util/detect-package-manager.js.map +1 -1
  145. package/lib/util/telemetry/client.d.ts +1 -1
  146. package/lib/util/telemetry/client.d.ts.map +1 -1
  147. package/lib/util/telemetry/client.js +22 -1
  148. package/lib/util/telemetry/client.js.map +1 -1
  149. package/lib/util/telemetry/constants.d.ts.map +1 -1
  150. package/lib/util/telemetry/constants.js +2 -3
  151. package/lib/util/telemetry/constants.js.map +1 -1
  152. package/lib/util/telemetry/context.d.ts +1 -1
  153. package/lib/util/telemetry/context.d.ts.map +1 -1
  154. package/lib/util/telemetry/types.d.ts +7 -3
  155. package/lib/util/telemetry/types.d.ts.map +1 -1
  156. package/lib/vercel/api.d.ts.map +1 -1
  157. package/lib/vercel/api.js +1 -1
  158. package/lib/vercel/api.js.map +1 -1
  159. package/package.json +41 -3
  160. package/src/apply.ts +3 -7
  161. package/src/cloudflare/{astro.ts → astro/astro.ts} +46 -29
  162. package/src/cloudflare/astro/plugin.ts +11 -0
  163. package/src/cloudflare/cloudflare-env-proxy.ts +50 -0
  164. package/src/cloudflare/compatibility-date.gen.ts +1 -1
  165. package/src/cloudflare/d1-local-migrations.ts +1 -1
  166. package/src/cloudflare/index.ts +8 -8
  167. package/src/cloudflare/miniflare/miniflare-controller.ts +2 -1
  168. package/src/cloudflare/miniflare/paths.ts +52 -0
  169. package/src/cloudflare/{nuxt.ts → nuxt/nuxt.ts} +11 -16
  170. package/src/cloudflare/nuxt/plugin.ts +18 -0
  171. package/src/cloudflare/oauth.ts +2 -2
  172. package/src/cloudflare/orange.ts +13 -23
  173. package/src/cloudflare/react-router/plugin.ts +13 -0
  174. package/src/cloudflare/react-router/react-router.ts +41 -0
  175. package/src/cloudflare/redwood/plugin.ts +20 -0
  176. package/src/cloudflare/{redwood.ts → redwood/redwood.ts} +16 -19
  177. package/src/cloudflare/sveltekit/plugin.ts +12 -0
  178. package/src/cloudflare/{sveltekit.ts → sveltekit/sveltekit.ts} +9 -8
  179. package/src/cloudflare/{local-dev-cloudflare-shim.ts → tanstack-start/plugin.ts} +8 -9
  180. package/src/cloudflare/tanstack-start/tanstack-start.ts +24 -0
  181. package/src/cloudflare/vite/plugin.ts +30 -0
  182. package/src/cloudflare/vite/vite.ts +34 -0
  183. package/src/cloudflare/website.ts +379 -204
  184. package/src/cloudflare/worker-bundle.ts +27 -13
  185. package/src/cloudflare/worker-stub.ts +11 -14
  186. package/src/cloudflare/worker.ts +8 -155
  187. package/src/cloudflare/wrangler.json.ts +32 -4
  188. package/src/env.ts +8 -9
  189. package/src/random/index.ts +1 -0
  190. package/src/random/random-string.ts +126 -0
  191. package/src/runtime/bind.ts +2 -2
  192. package/src/scope.ts +1 -3
  193. package/src/secret.ts +4 -8
  194. package/src/state/cloudflare-state-store.ts +2 -2
  195. package/src/state/dofs-state-store/index.ts +1 -1
  196. package/src/util/detect-package-manager.ts +11 -0
  197. package/src/util/telemetry/client.ts +25 -2
  198. package/src/util/telemetry/constants.ts +2 -4
  199. package/src/util/telemetry/context.ts +1 -1
  200. package/src/util/telemetry/types.ts +8 -2
  201. package/src/vercel/api.ts +2 -4
  202. package/templates/astro/alchemy.run.ts +1 -3
  203. package/templates/astro/astro.config.mjs +2 -2
  204. package/templates/nuxt/alchemy.run.ts +1 -3
  205. package/templates/nuxt/nuxt.config.ts +4 -5
  206. package/templates/nuxt/package.json +0 -1
  207. package/templates/react-router/alchemy.run.ts +1 -4
  208. package/templates/react-router/vite.config.ts +2 -2
  209. package/templates/rwsdk/alchemy.run.ts +0 -1
  210. package/templates/rwsdk/package.json +0 -2
  211. package/templates/rwsdk/vite.config.mts +2 -2
  212. package/templates/sveltekit/alchemy.run.ts +1 -3
  213. package/templates/sveltekit/svelte.config.js +2 -2
  214. package/templates/tanstack-start/vite.config.ts +2 -2
  215. package/templates/vite/alchemy.run.ts +1 -1
  216. package/templates/vite/vite.config.ts +4 -5
  217. package/workers/cloudflare-state-store.js +12 -14
  218. package/lib/cloudflare/astro.d.ts.map +0 -1
  219. package/lib/cloudflare/astro.js +0 -69
  220. package/lib/cloudflare/astro.js.map +0 -1
  221. package/lib/cloudflare/local-dev-cloudflare-shim.d.ts.map +0 -1
  222. package/lib/cloudflare/local-dev-cloudflare-shim.js.map +0 -1
  223. package/lib/cloudflare/nuxt.d.ts.map +0 -1
  224. package/lib/cloudflare/nuxt.js.map +0 -1
  225. package/lib/cloudflare/react-router.d.ts +0 -17
  226. package/lib/cloudflare/react-router.d.ts.map +0 -1
  227. package/lib/cloudflare/react-router.js +0 -35
  228. package/lib/cloudflare/react-router.js.map +0 -1
  229. package/lib/cloudflare/redwood.d.ts.map +0 -1
  230. package/lib/cloudflare/redwood.js.map +0 -1
  231. package/lib/cloudflare/sveltekit.d.ts.map +0 -1
  232. package/lib/cloudflare/sveltekit.js.map +0 -1
  233. package/lib/cloudflare/tanstack-start.d.ts.map +0 -1
  234. package/lib/cloudflare/tanstack-start.js +0 -21
  235. package/lib/cloudflare/tanstack-start.js.map +0 -1
  236. package/lib/cloudflare/vite.d.ts.map +0 -1
  237. package/lib/cloudflare/vite.js +0 -20
  238. package/lib/cloudflare/vite.js.map +0 -1
  239. package/src/cloudflare/react-router.ts +0 -56
  240. package/src/cloudflare/tanstack-start.ts +0 -35
  241. package/src/cloudflare/vite.ts +0 -35
  242. package/templates/react-router/wrangler.jsonc +0 -6
  243. package/templates/rwsdk/wrangler.jsonc +0 -31
  244. package/templates/sveltekit/wrangler.jsonc +0 -7
  245. package/templates/tanstack-start/wrangler.jsonc +0 -7
  246. package/templates/typescript/index.ts +0 -1
  247. package/templates/vite/wrangler.jsonc +0 -6
@@ -1,8 +1,8 @@
1
- import type { Assets } from "./assets.ts";
2
- import type { Bindings } from "./bindings.ts";
3
- import { type WebsiteProps } from "./website.ts";
4
- import type { Worker } from "./worker.ts";
5
- export interface SvelteKitProps<B extends Bindings> extends WebsiteProps<B> {
1
+ import type { Assets } from "../assets.ts";
2
+ import type { Bindings } from "../bindings.ts";
3
+ import { type ViteProps } from "../vite/vite.ts";
4
+ import type { Worker } from "../worker.ts";
5
+ export interface SvelteKitProps<B extends Bindings> extends ViteProps<B> {
6
6
  }
7
7
  export type SvelteKit<B extends Bindings> = B extends {
8
8
  ASSETS: any;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sveltekit.d.ts","sourceRoot":"","sources":["../../../src/cloudflare/sveltekit/sveltekit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;CAAG;AAG3E,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GACjE,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,SAAS,CAAC,CAAC,SAAS,QAAQ,EAChD,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,GACjC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAoBvB"}
@@ -1,5 +1,5 @@
1
1
  import { join } from "node:path";
2
- import { Website } from "./website.js";
2
+ import { Vite } from "../vite/vite.js";
3
3
  /**
4
4
  * Deploy a SvelteKit application to Cloudflare Workers with automatically configured defaults.
5
5
  *
@@ -44,13 +44,13 @@ export async function SvelteKit(id, props) {
44
44
  throw new Error(`SvelteKit compatibility date must be >= 2024-09-23 for nodejs_compat support, got ${props.compatibilityDate}`);
45
45
  }
46
46
  }
47
- return Website(id, {
47
+ return await Vite(id, {
48
48
  ...props,
49
- command: props?.command ?? "bun run build",
50
- main: props?.main ?? join(".svelte-kit", "cloudflare", "_worker.js"),
49
+ entrypoint: props?.entrypoint ?? join(".svelte-kit", "cloudflare", "_worker.js"),
51
50
  assets: props?.assets ?? join(".svelte-kit", "cloudflare"),
52
51
  compatibilityFlags: ["nodejs_compat", ...(props?.compatibilityFlags ?? [])],
53
52
  compatibilityDate: props?.compatibilityDate,
53
+ wrangler: { secrets: true },
54
54
  });
55
55
  }
56
56
  //# sourceMappingURL=sveltekit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sveltekit.js","sourceRoot":"","sources":["../../../src/cloudflare/sveltekit/sveltekit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,IAAI,EAAkB,MAAM,iBAAiB,CAAC;AAUvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,EAAU,EACV,KAAkC;IAElC,IAAI,KAAK,EAAE,iBAAiB,EAAE,CAAC;QAC7B,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC;QACvC,IAAI,YAAY,GAAG,OAAO,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CACb,qFAAqF,KAAK,CAAC,iBAAiB,EAAE,CAC/G,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,MAAM,IAAI,CAAC,EAAE,EAAE;QACpB,GAAG,KAAK;QACR,UAAU,EACR,KAAK,EAAE,UAAU,IAAI,IAAI,CAAC,aAAa,EAAE,YAAY,EAAE,YAAY,CAAC;QACtE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC;QAC1D,kBAAkB,EAAE,CAAC,eAAe,EAAE,GAAG,CAAC,KAAK,EAAE,kBAAkB,IAAI,EAAE,CAAC,CAAC;QAC3E,iBAAiB,EAAE,KAAK,EAAE,iBAAiB;QAC3C,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B,CAAC,CAAC;AACL,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { GetPlatformProxyOptions } from "wrangler";
1
2
  /**
2
3
  * TanStackStart server functions and middleware run in Node.js intead of Miniflare when using `vite dev`.
3
4
  *
@@ -5,11 +6,11 @@
5
6
  *
6
7
  * @see https://developers.cloudflare.com/workers/framework-guides/web-apps/tanstack/#using-cloudflare-bindings
7
8
  */
8
- export declare function cloudflareWorkersDevEnvironmentShim(): {
9
+ export default function alchemy(options?: GetPlatformProxyOptions): {
9
10
  readonly name: "cloudflare-workers-dev-shim";
10
11
  readonly apply: "serve";
11
12
  readonly enforce: "pre";
12
13
  readonly resolveId: (id: string) => "cloudflare:workers" | undefined;
13
14
  readonly load: (id: string) => string | undefined;
14
15
  };
15
- //# sourceMappingURL=local-dev-cloudflare-shim.d.ts.map
16
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/cloudflare/tanstack-start/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAGxD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,OAAO,GAAE,uBAA4B;;;;6BAKnD,MAAM;wBAGX,MAAM;EAWlB"}
@@ -1,4 +1,4 @@
1
- import { dedent } from "../util/dedent.js";
1
+ import { dedent } from "../../util/dedent.js";
2
2
  /**
3
3
  * TanStackStart server functions and middleware run in Node.js intead of Miniflare when using `vite dev`.
4
4
  *
@@ -6,7 +6,7 @@ import { dedent } from "../util/dedent.js";
6
6
  *
7
7
  * @see https://developers.cloudflare.com/workers/framework-guides/web-apps/tanstack/#using-cloudflare-bindings
8
8
  */
9
- export function cloudflareWorkersDevEnvironmentShim() {
9
+ export default function alchemy(options = {}) {
10
10
  return {
11
11
  name: "cloudflare-workers-dev-shim",
12
12
  apply: "serve", // dev‑only
@@ -17,15 +17,12 @@ export function cloudflareWorkersDevEnvironmentShim() {
17
17
  },
18
18
  load(id) {
19
19
  if (id === "cloudflare:workers") {
20
- const processEnv = JSON.stringify(process.env);
21
- // @see https://developers.cloudflare.com/workers/wrangler/api/#getplatformproxy
22
20
  return dedent `
23
- import { getPlatformProxy } from "wrangler";
24
- const cloudflare = await getPlatformProxy({ experimental: { remoteBindings: true } });
25
- export const env = Object.assign(${processEnv}, cloudflare.env);
26
- `.trim();
21
+ import { getCloudflareEnvProxy } from "alchemy/cloudflare";
22
+ export const env = await getCloudflareEnvProxy(${JSON.stringify(options)});
23
+ `;
27
24
  }
28
25
  },
29
26
  };
30
27
  }
31
- //# sourceMappingURL=local-dev-cloudflare-shim.js.map
28
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/cloudflare/tanstack-start/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,UAAmC,EAAE;IACnE,OAAO;QACL,IAAI,EAAE,6BAA6B;QACnC,KAAK,EAAE,OAAO,EAAE,WAAW;QAC3B,OAAO,EAAE,KAAK;QACd,SAAS,CAAC,EAAU;YAClB,IAAI,EAAE,KAAK,oBAAoB;gBAAE,OAAO,EAAE,CAAC,CAAC,0BAA0B;QACxE,CAAC;QACD,IAAI,CAAC,EAAU;YACb,IAAI,EAAE,KAAK,oBAAoB,EAAE,CAAC;gBAChC,OAAO,MAAM,CAAA;;2DAEsC,IAAI,CAAC,SAAS,CAC7D,OAAO,CACR;SACF,CAAC;YACJ,CAAC;QACH,CAAC;KACO,CAAC;AACb,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { Assets } from "./assets.ts";
2
- import type { Bindings } from "./bindings.ts";
3
- import { type WebsiteProps } from "./website.ts";
4
- import type { Worker } from "./worker.ts";
5
- export interface TanStackStartProps<B extends Bindings> extends WebsiteProps<B> {
1
+ import type { Assets } from "../assets.ts";
2
+ import type { Bindings } from "../bindings.ts";
3
+ import { type ViteProps } from "../vite/vite.ts";
4
+ import type { Worker } from "../worker.ts";
5
+ export interface TanStackStartProps<B extends Bindings> extends ViteProps<B> {
6
6
  }
7
7
  export type TanStackStart<B extends Bindings> = B extends {
8
8
  ASSETS: any;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tanstack-start.d.ts","sourceRoot":"","sources":["../../../src/cloudflare/tanstack-start/tanstack-start.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;CAAG;AAG/E,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GACrE,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC,wBAAsB,aAAa,CAAC,CAAC,SAAS,QAAQ,EACpD,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GACrC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAQ3B"}
@@ -0,0 +1,11 @@
1
+ import { Vite } from "../vite/vite.js";
2
+ export async function TanStackStart(id, props) {
3
+ return await Vite(id, {
4
+ ...props,
5
+ noBundle: true,
6
+ entrypoint: props?.entrypoint ?? ".output/server/index.mjs",
7
+ compatibilityFlags: ["nodejs_compat", ...(props?.compatibilityFlags ?? [])],
8
+ assets: props?.assets ?? ".output/public",
9
+ });
10
+ }
11
+ //# sourceMappingURL=tanstack-start.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tanstack-start.js","sourceRoot":"","sources":["../../../src/cloudflare/tanstack-start/tanstack-start.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAkB,MAAM,iBAAiB,CAAC;AAUvD,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,EAAU,EACV,KAAsC;IAEtC,OAAO,MAAM,IAAI,CAAC,EAAE,EAAE;QACpB,GAAG,KAAK;QACR,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,KAAK,EAAE,UAAU,IAAI,0BAA0B;QAC3D,kBAAkB,EAAE,CAAC,eAAe,EAAE,GAAG,CAAC,KAAK,EAAE,kBAAkB,IAAI,EAAE,CAAC,CAAC;QAC3E,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,gBAAgB;KAC1C,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type PluginConfig } from "@cloudflare/vite-plugin";
2
+ declare const alchemy: (config?: PluginConfig) => import("vite").Plugin<any>[];
3
+ export default alchemy;
4
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/cloudflare/vite/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAQxE,QAAA,MAAM,OAAO,GAAI,SAAS,YAAY,iCAmBrC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { cloudflare } from "@cloudflare/vite-plugin";
2
+ import path from "node:path";
3
+ import { DEFAULT_PERSIST_PATH, validateConfigPath, validatePersistPath, } from "../miniflare/paths.js";
4
+ const alchemy = (config) => {
5
+ const persistState = config?.persistState ?? {
6
+ path: validatePersistPath(typeof config?.persistState === "object"
7
+ ? config.persistState.path
8
+ : DEFAULT_PERSIST_PATH),
9
+ };
10
+ if (typeof persistState === "object" && persistState.path.endsWith("v3")) {
11
+ persistState.path = path.dirname(persistState.path);
12
+ }
13
+ return cloudflare({
14
+ ...config,
15
+ configPath: validateConfigPath(config?.configPath),
16
+ persistState,
17
+ experimental: config?.experimental ?? {
18
+ remoteBindings: true,
19
+ },
20
+ });
21
+ };
22
+ export default alchemy;
23
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/cloudflare/vite/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,yBAAyB,CAAC;AACxE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,OAAO,GAAG,CAAC,MAAqB,EAAE,EAAE;IACxC,MAAM,YAAY,GAAG,MAAM,EAAE,YAAY,IAAI;QAC3C,IAAI,EAAE,mBAAmB,CACvB,OAAO,MAAM,EAAE,YAAY,KAAK,QAAQ;YACtC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI;YAC1B,CAAC,CAAC,oBAAoB,CACzB;KACF,CAAC;IACF,IAAI,OAAO,YAAY,KAAK,QAAQ,IAAI,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACzE,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,UAAU,CAAC;QAChB,GAAG,MAAM;QACT,UAAU,EAAE,kBAAkB,CAAC,MAAM,EAAE,UAAU,CAAC;QAClD,YAAY;QACZ,YAAY,EAAE,MAAM,EAAE,YAAY,IAAI;YACpC,cAAc,EAAE,IAAI;SACrB;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,7 +1,7 @@
1
- import type { Assets } from "./assets.ts";
2
- import type { Bindings } from "./bindings.ts";
3
- import { type WebsiteProps } from "./website.ts";
4
- import type { Worker } from "./worker.ts";
1
+ import type { Assets } from "../assets.ts";
2
+ import type { Bindings } from "../bindings.ts";
3
+ import { type WebsiteProps } from "../website.ts";
4
+ import type { Worker } from "../worker.ts";
5
5
  export interface ViteProps<B extends Bindings> extends Omit<WebsiteProps<B>, "spa"> {
6
6
  }
7
7
  export type Vite<B extends Bindings> = B extends {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../src/cloudflare/vite/vite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,QAAQ,CAC3C,SAAQ,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;CAAG;AAEzC,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GAC5D,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC,wBAAsB,IAAI,CAAC,CAAC,SAAS,QAAQ,EAC3C,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAClB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAiBlB"}
@@ -0,0 +1,19 @@
1
+ import { getPackageManagerRunner } from "../../util/detect-package-manager.js";
2
+ import { Website } from "../website.js";
3
+ export async function Vite(id, props) {
4
+ const runner = await getPackageManagerRunner();
5
+ return await Website(id, {
6
+ ...props,
7
+ spa: true,
8
+ assets: typeof props.assets === "string"
9
+ ? { directory: props.assets }
10
+ : {
11
+ ...(props.assets ?? {}),
12
+ directory: props.assets?.directory ??
13
+ (props.entrypoint || props.script ? "dist/client" : "dist"),
14
+ },
15
+ build: props.build ?? `${runner} vite build`,
16
+ dev: props.dev ?? `${runner} vite dev`,
17
+ });
18
+ }
19
+ //# sourceMappingURL=vite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.js","sourceRoot":"","sources":["../../../src/cloudflare/vite/vite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,OAAO,EAAE,OAAO,EAAqB,MAAM,eAAe,CAAC;AAU3D,MAAM,CAAC,KAAK,UAAU,IAAI,CACxB,EAAU,EACV,KAAmB;IAEnB,MAAM,MAAM,GAAG,MAAM,uBAAuB,EAAE,CAAC;IAC/C,OAAO,MAAM,OAAO,CAAC,EAAE,EAAE;QACvB,GAAG,KAAK;QACR,GAAG,EAAE,IAAI;QACT,MAAM,EACJ,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ;YAC9B,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE;YAC7B,CAAC,CAAC;gBACE,GAAG,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;gBACvB,SAAS,EACP,KAAK,CAAC,MAAM,EAAE,SAAS;oBACvB,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;aAC9D;QACP,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,GAAG,MAAM,aAAa;QAC5C,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,GAAG,MAAM,WAAW;KACvC,CAAC,CAAC;AACL,CAAC"}
@@ -1,78 +1,71 @@
1
1
  import { Assets } from "./assets.ts";
2
2
  import type { Bindings } from "./bindings.ts";
3
- import { Worker, type AssetsConfig, type WorkerProps } from "./worker.ts";
3
+ import { type AssetsConfig, Worker, type WorkerProps } from "./worker.ts";
4
4
  import { type WranglerJsonSpec } from "./wrangler.json.ts";
5
- export interface WebsiteProps<B extends Bindings> extends Omit<WorkerProps<B>, "name" | "assets" | "entrypoint"> {
5
+ export interface WebsiteProps<B extends Bindings> extends Omit<WorkerProps<B>, "assets" | "dev"> {
6
6
  /**
7
- * The command to run to build the site
7
+ * Configuration for the build command
8
8
  *
9
- * If one is not provided, the build is assumed to have already happened.
9
+ * If not provided, the build is assumed to have already happened.
10
10
  */
11
- command?: string;
12
- /**
13
- * Additional environment variables to set when running the command
14
- */
15
- commandEnv?: Record<string, string>;
16
- /**
17
- * Whether to memoize the command (only re-run if the command changes)
18
- *
19
- * When set to `true`, the command will only be re-executed if the command string changes.
20
- *
21
- * When set to an object with `patterns`, the command will be re-executed if either:
22
- * 1. The command string changes, or
23
- * 2. The contents of any files matching the glob patterns change
24
- *
25
- * ⚠️ **Important Note**: When using memoization with build commands, the build outputs
26
- * will not be produced if the command is memoized. This is because the command is not
27
- * actually executed when memoized. Consider disabling memoization in CI environments:
28
- *
29
- * @example
30
- * // Disable memoization in CI to ensure build outputs are always produced
31
- * await Website("my-website", {
32
- * command: "vite build",
33
- * memoize: process.env.CI ? false : {
34
- * patterns: ["./src/**"]
35
- * }
36
- * });
37
- *
38
- * @default false
39
- */
40
- memoize?: boolean | {
41
- patterns: string[];
11
+ build?: string | {
12
+ /**
13
+ * The command to run to build the site
14
+ */
15
+ command: string;
16
+ /**
17
+ * Additional environment variables to set when running the build command
18
+ */
19
+ env?: Record<string, string>;
20
+ /**
21
+ * Whether to memoize the command (only re-run if the command changes)
22
+ *
23
+ * When set to `true`, the command will only be re-executed if the command string changes.
24
+ *
25
+ * When set to an object with `patterns`, the command will be re-executed if either:
26
+ * 1. The command string changes, or
27
+ * 2. The contents of any files matching the glob patterns change
28
+ *
29
+ * ⚠️ **Important Note**: When using memoization with build commands, the build outputs
30
+ * will not be produced if the command is memoized. This is because the command is not
31
+ * actually executed when memoized. Consider disabling memoization in CI environments:
32
+ *
33
+ * @example
34
+ * // Disable memoization in CI to ensure build outputs are always produced
35
+ * await Website("my-website", {
36
+ * command: "vite build",
37
+ * memoize: process.env.CI ? false : {
38
+ * patterns: ["./src/**"]
39
+ * }
40
+ * });
41
+ *
42
+ * @default false
43
+ */
44
+ memoize?: boolean | {
45
+ patterns: string[];
46
+ };
42
47
  };
43
48
  /**
44
- * The name of the worker
45
- *
46
- * @default id
49
+ * Configuration for the dev command
47
50
  */
48
- name?: string;
49
- /**
50
- * The entrypoint to your server
51
- *
52
- * @default - a simple server that serves static assets is generated
53
- */
54
- main?: string;
51
+ dev?: string | {
52
+ /**
53
+ * The command to run to start the dev server
54
+ */
55
+ command: string;
56
+ /**
57
+ * Additional environment variables to set when running the dev command
58
+ */
59
+ env?: Record<string, string>;
60
+ };
55
61
  /**
56
- * The directory containing your static assets
62
+ * The directory containing static assets
57
63
  *
58
- * @default "./dist"
64
+ * @default dist
59
65
  */
60
66
  assets?: string | ({
61
- dist?: string;
67
+ directory?: string;
62
68
  } & AssetsConfig);
63
- /**
64
- * @default process.cwd()
65
- */
66
- cwd?: string;
67
- /**
68
- * Write a wrangler.jsonc file
69
- *
70
- * @default - no wrangler.jsonc file is written
71
- */
72
- wrangler?: boolean | string | {
73
- path?: string;
74
- main?: string;
75
- };
76
69
  /**
77
70
  * Configures default routing to support client-side routing for Single Page Applications (SPA)
78
71
  *
@@ -80,15 +73,21 @@ export interface WebsiteProps<B extends Bindings> extends Omit<WorkerProps<B>, "
80
73
  */
81
74
  spa?: boolean;
82
75
  /**
83
- * Configure the command to use in development mode
76
+ * Configuration for the wrangler.json file
84
77
  */
85
- dev?: {
86
- command: string;
87
- };
88
- /**
89
- * Transform hooks to modify generated configuration files
90
- */
91
- transform?: {
78
+ wrangler?: {
79
+ /**
80
+ * Path to the wrangler.json file
81
+ *
82
+ * @default .alchemy/local/wrangler.jsonc
83
+ */
84
+ path?: string;
85
+ /**
86
+ * The main entry point for the worker
87
+ *
88
+ * @default worker.entrypoint
89
+ */
90
+ main?: string;
92
91
  /**
93
92
  * Hook to modify the wrangler.json object before it's written
94
93
  *
@@ -99,7 +98,30 @@ export interface WebsiteProps<B extends Bindings> extends Omit<WorkerProps<B>, "
99
98
  * @param spec - The generated wrangler.json specification
100
99
  * @returns The modified wrangler.json specification
101
100
  */
102
- wrangler?: (spec: WranglerJsonSpec) => WranglerJsonSpec | Promise<WranglerJsonSpec>;
101
+ transform?: (spec: WranglerJsonSpec) => WranglerJsonSpec | Promise<WranglerJsonSpec>;
102
+ /**
103
+ * Whether to include secrets in the wrangler.json file
104
+ *
105
+ * @default true if no path is specified, false otherwise
106
+ */
107
+ secrets?: boolean;
108
+ };
109
+ /**
110
+ * The command to run to build the site.
111
+ * @deprecated Use `build` or `build.command` instead
112
+ */
113
+ command?: string;
114
+ /**
115
+ * Additional environment variables to set when running the build command.
116
+ * @deprecated Use `build.env` instead
117
+ */
118
+ commandEnv?: Record<string, string>;
119
+ /**
120
+ * Whether to memoize the command (only re-run if the command changes)
121
+ * @deprecated Use `build.memoize` instead
122
+ */
123
+ memoize?: boolean | {
124
+ patterns: string[];
103
125
  };
104
126
  }
105
127
  export type Website<B extends Bindings> = B extends {
@@ -1 +1 @@
1
- {"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../src/cloudflare/website.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,QAAQ,CAC9C,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAC;IAC9D;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEpC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAE3C;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EACH,MAAM,GACN,CAAC;QACC,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,YAAY,CAAC,CAAC;IACtB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,QAAQ,CAAC,EACL,OAAO,GACP,MAAM,GACN;QACE,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IAEN;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF;;OAEG;IACH,SAAS,CAAC,EAAE;QACV;;;;;;;;;WASG;QACH,QAAQ,CAAC,EAAE,CACT,IAAI,EAAE,gBAAgB,KACnB,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;KACnD,CAAC;CACH;AAWD,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GAC/D,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC,wBAAsB,OAAO,CAAC,CAAC,SAAS,QAAQ,EAC9C,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,GACrB,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CA4HrB"}
1
+ {"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../src/cloudflare/website.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,QAAQ,CAC9C,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC9C;;;;OAIG;IACH,KAAK,CAAC,EACF,MAAM,GACN;QACE;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B;;;;;;;;;;;;;;;;;;;;;;;WAuBG;QACH,OAAO,CAAC,EAAE,OAAO,GAAG;YAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;SAAE,CAAC;KAC5C,CAAC;IACN;;OAEG;IACH,GAAG,CAAC,EACA,MAAM,GACN;QACE;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC9B,CAAC;IACN;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,YAAY,CAAC,CAAC;IAC1D;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT;;;;WAIG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;;;WAIG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;;;;;;;;WASG;QACH,SAAS,CAAC,EAAE,CACV,IAAI,EAAE,gBAAgB,KACnB,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAClD;;;;WAIG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IAEF;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CAC5C;AAED,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GAC/D,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC,wBAAsB,OAAO,CAAC,CAAC,SAAS,QAAQ,EAC9C,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,uBAgLvB"}