devflare 1.0.0-next.24 → 1.0.0-next.27

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 (1042) hide show
  1. package/LLM.md +1 -1
  2. package/dist/{account-5nm1xn0v.js → account-xdecqqyq.js} +2 -2
  3. package/dist/cli/help-pages/pages/misc.d.ts.map +1 -1
  4. package/dist/cli/index.js +1 -1
  5. package/dist/cloudflare/index.js +2 -2
  6. package/dist/cloudflare/tokens.d.ts +4 -1
  7. package/dist/cloudflare/tokens.d.ts.map +1 -1
  8. package/dist/{index-k7m5f1dg.js → index-11p28kxx.js} +68 -12
  9. package/dist/{index-0m6e4mxz.js → index-qmmqww7h.js} +1 -1
  10. package/dist/{index-rnz879kf.js → index-v1mxy6be.js} +8 -7
  11. package/dist/index.js +1 -1
  12. package/dist/{login-g9rb7dj3.js → login-hktzadbg.js} +2 -2
  13. package/dist/{previews-ykamw25e.js → previews-cn10r4zc.js} +2 -2
  14. package/dist/{productions-4m1pd6ts.js → productions-8p2y4hb4.js} +2 -2
  15. package/dist/{token-sct51r47.js → token-35jcdqq8.js} +5 -5
  16. package/dist/{worker-4fd49jm0.js → worker-xh4njxfh.js} +2 -2
  17. package/package.json +3 -2
  18. package/dist/account-05zgta47.js +0 -475
  19. package/dist/account-0evqkmnc.js +0 -475
  20. package/dist/account-0v11zbzk.js +0 -475
  21. package/dist/account-2w85efas.js +0 -475
  22. package/dist/account-61gw9s7t.js +0 -475
  23. package/dist/account-65sk9q34.js +0 -475
  24. package/dist/account-77vx7q2f.js +0 -475
  25. package/dist/account-7z38mgqf.js +0 -475
  26. package/dist/account-8wgprpbt.js +0 -475
  27. package/dist/account-9gt3tej1.js +0 -475
  28. package/dist/account-b2ag1esh.js +0 -475
  29. package/dist/account-bxtcz61a.js +0 -475
  30. package/dist/account-d43d1eqs.js +0 -475
  31. package/dist/account-dtndtbad.js +0 -475
  32. package/dist/account-e95v7f4s.js +0 -475
  33. package/dist/account-fbyyptg7.js +0 -475
  34. package/dist/account-gnzhz1c9.js +0 -475
  35. package/dist/account-gyfqg964.js +0 -475
  36. package/dist/account-j8nfggg4.js +0 -475
  37. package/dist/account-m6jq6fnp.js +0 -475
  38. package/dist/account-mvnfagh9.js +0 -475
  39. package/dist/account-p0crq2gh.js +0 -475
  40. package/dist/account-q6pvs9d9.js +0 -475
  41. package/dist/account-qhe8vtds.js +0 -475
  42. package/dist/account-qkcevx7a.js +0 -475
  43. package/dist/account-rp4zbvw1.js +0 -475
  44. package/dist/account-txwqg1rx.js +0 -475
  45. package/dist/account-w5n5bjh2.js +0 -475
  46. package/dist/account-zd61t0ey.js +0 -475
  47. package/dist/api-11gkk043.js +0 -33
  48. package/dist/api-dbxvch9h.js +0 -33
  49. package/dist/api-p9hf69kr.js +0 -33
  50. package/dist/api-r10j00ev.js +0 -33
  51. package/dist/api-senf2569.js +0 -33
  52. package/dist/api-swcgnp72.js +0 -33
  53. package/dist/api-th82mps4.js +0 -27
  54. package/dist/bridge/protocol.d.ts +0 -146
  55. package/dist/bridge/protocol.d.ts.map +0 -1
  56. package/dist/bridge/serialization.d.ts +0 -103
  57. package/dist/bridge/serialization.d.ts.map +0 -1
  58. package/dist/bridge/v2/legacy-protocol.d.ts +0 -146
  59. package/dist/bridge/v2/legacy-protocol.d.ts.map +0 -1
  60. package/dist/bridge/v2/legacy-serialization.d.ts +0 -103
  61. package/dist/bridge/v2/legacy-serialization.d.ts.map +0 -1
  62. package/dist/build-07mjrvsn.js +0 -53
  63. package/dist/build-0rfr8k1s.js +0 -53
  64. package/dist/build-1313sg73.js +0 -52
  65. package/dist/build-1hnntbks.js +0 -53
  66. package/dist/build-1r3myv0k.js +0 -53
  67. package/dist/build-28561w5v.js +0 -54
  68. package/dist/build-2s5paw5p.js +0 -54
  69. package/dist/build-4c350cp7.js +0 -54
  70. package/dist/build-50yqpwb3.js +0 -54
  71. package/dist/build-55z8psd6.js +0 -53
  72. package/dist/build-5b9wj2p0.js +0 -53
  73. package/dist/build-5frhzh1m.js +0 -53
  74. package/dist/build-6ye9vnab.js +0 -52
  75. package/dist/build-8gv18jrq.js +0 -52
  76. package/dist/build-9bgqypy6.js +0 -53
  77. package/dist/build-9em4ymqn.js +0 -52
  78. package/dist/build-b1z6wqet.js +0 -54
  79. package/dist/build-e7wym63t.js +0 -54
  80. package/dist/build-eh3x12qc.js +0 -52
  81. package/dist/build-emhyycp7.js +0 -53
  82. package/dist/build-f1m9jn7b.js +0 -53
  83. package/dist/build-ffe72jjv.js +0 -54
  84. package/dist/build-fx90y6za.js +0 -53
  85. package/dist/build-ge6qp3t4.js +0 -54
  86. package/dist/build-h31egsze.js +0 -53
  87. package/dist/build-hpczwagb.js +0 -53
  88. package/dist/build-hpkbanpw.js +0 -54
  89. package/dist/build-j2re91xe.js +0 -54
  90. package/dist/build-j78389rg.js +0 -52
  91. package/dist/build-m3kckn5g.js +0 -53
  92. package/dist/build-mf3thcjm.js +0 -53
  93. package/dist/build-n3n5bv37.js +0 -52
  94. package/dist/build-ngfy4v5x.js +0 -53
  95. package/dist/build-pr843h0d.js +0 -52
  96. package/dist/build-qsgnme4z.js +0 -54
  97. package/dist/build-qyg2b45p.js +0 -52
  98. package/dist/build-r6884kyt.js +0 -53
  99. package/dist/build-re370wkf.js +0 -53
  100. package/dist/build-ta8c6t11.js +0 -54
  101. package/dist/build-vvndgwg0.js +0 -52
  102. package/dist/build-vy95gy3f.js +0 -54
  103. package/dist/build-wp559jkf.js +0 -54
  104. package/dist/build-wvjj8f28.js +0 -54
  105. package/dist/build-x4r67275.js +0 -52
  106. package/dist/build-x7maz3eb.js +0 -54
  107. package/dist/build-xp4pfhvv.js +0 -52
  108. package/dist/build-y489r2h9.js +0 -54
  109. package/dist/build-y6g4bvx5.js +0 -52
  110. package/dist/build-ypg6f2kw.js +0 -54
  111. package/dist/build-yts8wwgf.js +0 -54
  112. package/dist/build-yvn0yhwx.js +0 -52
  113. package/dist/build-yzkdqexs.js +0 -54
  114. package/dist/build-yzx0gsaj.js +0 -54
  115. package/dist/build-z4vmhs5c.js +0 -53
  116. package/dist/config-1japnjmx.js +0 -59
  117. package/dist/config-287wjn1m.js +0 -59
  118. package/dist/config-4x6vq82e.js +0 -59
  119. package/dist/config-5n0avhcx.js +0 -59
  120. package/dist/config-6m0n7d84.js +0 -59
  121. package/dist/config-70s2ap5j.js +0 -59
  122. package/dist/config-7cf004ag.js +0 -59
  123. package/dist/config-7hge8ze6.js +0 -59
  124. package/dist/config-7rbp7aek.js +0 -59
  125. package/dist/config-b8xbbmta.js +0 -59
  126. package/dist/config-b98dp58n.js +0 -59
  127. package/dist/config-baee5690.js +0 -59
  128. package/dist/config-bczpc1ey.js +0 -59
  129. package/dist/config-cf3djhqy.js +0 -59
  130. package/dist/config-fhmwzaw6.js +0 -59
  131. package/dist/config-g9vkfa4x.js +0 -59
  132. package/dist/config-gpexkzth.js +0 -59
  133. package/dist/config-gq5jh4cx.js +0 -105
  134. package/dist/config-nspw7sgv.js +0 -59
  135. package/dist/config-ntm4x9wt.js +0 -59
  136. package/dist/config-nv6hfpg6.js +0 -59
  137. package/dist/config-pjc33wew.js +0 -59
  138. package/dist/config-pnz2e8s3.js +0 -59
  139. package/dist/config-qj5jw8km.js +0 -93
  140. package/dist/config-qts6nh6g.js +0 -59
  141. package/dist/config-sg2xrdt4.js +0 -59
  142. package/dist/config-vec13050.js +0 -105
  143. package/dist/config-vzwckat3.js +0 -59
  144. package/dist/config-wa7hm0w9.js +0 -59
  145. package/dist/config-x90dkmm7.js +0 -59
  146. package/dist/deploy-01j0ep5n.js +0 -1055
  147. package/dist/deploy-1jfagtn9.js +0 -1055
  148. package/dist/deploy-1s6nv5rp.js +0 -921
  149. package/dist/deploy-2afw0jfg.js +0 -1055
  150. package/dist/deploy-2fzj68kq.js +0 -1055
  151. package/dist/deploy-30ph1rrd.js +0 -921
  152. package/dist/deploy-39dmfn9d.js +0 -921
  153. package/dist/deploy-44n2pshy.js +0 -1016
  154. package/dist/deploy-45qxpsfe.js +0 -921
  155. package/dist/deploy-57nzn9wj.js +0 -1045
  156. package/dist/deploy-64e57w1g.js +0 -1040
  157. package/dist/deploy-82j43vta.js +0 -1040
  158. package/dist/deploy-99m8qhpa.js +0 -1041
  159. package/dist/deploy-9twkd32f.js +0 -1040
  160. package/dist/deploy-a2eq2c1n.js +0 -1040
  161. package/dist/deploy-a3pb1qs5.js +0 -921
  162. package/dist/deploy-agbtfm04.js +0 -921
  163. package/dist/deploy-aswbtbf3.js +0 -921
  164. package/dist/deploy-asyryrvm.js +0 -1055
  165. package/dist/deploy-bqf3kxy5.js +0 -972
  166. package/dist/deploy-fv4z648h.js +0 -921
  167. package/dist/deploy-gsybda2f.js +0 -1038
  168. package/dist/deploy-h17nzysm.js +0 -921
  169. package/dist/deploy-hc89h4wg.js +0 -1045
  170. package/dist/deploy-hc927rw6.js +0 -1045
  171. package/dist/deploy-jey5pnqn.js +0 -1040
  172. package/dist/deploy-jf3yczsz.js +0 -1055
  173. package/dist/deploy-jv0yfqvk.js +0 -1040
  174. package/dist/deploy-kn3z6spd.js +0 -941
  175. package/dist/deploy-krj3k9zm.js +0 -1055
  176. package/dist/deploy-m22xmz9w.js +0 -921
  177. package/dist/deploy-nefp2njy.js +0 -1038
  178. package/dist/deploy-nh5tbv45.js +0 -1055
  179. package/dist/deploy-pnnf8tgy.js +0 -1045
  180. package/dist/deploy-ppp8pg6w.js +0 -1038
  181. package/dist/deploy-q33bw715.js +0 -1055
  182. package/dist/deploy-qah2eag6.js +0 -1041
  183. package/dist/deploy-qdq2gpad.js +0 -1045
  184. package/dist/deploy-r1yf8913.js +0 -1038
  185. package/dist/deploy-r8nam9rr.js +0 -1038
  186. package/dist/deploy-rrm4a0xw.js +0 -921
  187. package/dist/deploy-s0tfnc12.js +0 -1040
  188. package/dist/deploy-s636ks9k.js +0 -1041
  189. package/dist/deploy-sany8t54.js +0 -1045
  190. package/dist/deploy-skqn61j3.js +0 -1038
  191. package/dist/deploy-smv2870h.js +0 -921
  192. package/dist/deploy-sp16nxs5.js +0 -972
  193. package/dist/deploy-sr805bvq.js +0 -921
  194. package/dist/deploy-t9dehmn0.js +0 -1041
  195. package/dist/deploy-taxt7njz.js +0 -1041
  196. package/dist/deploy-tjypkhg7.js +0 -1055
  197. package/dist/deploy-tmdgecs3.js +0 -1055
  198. package/dist/deploy-tnfvfh9m.js +0 -1040
  199. package/dist/deploy-v0y8kczr.js +0 -1055
  200. package/dist/deploy-w5f8db4s.js +0 -1040
  201. package/dist/deploy-wsxcectr.js +0 -921
  202. package/dist/deploy-xhj6zbcx.js +0 -1055
  203. package/dist/deploy-xqm869nf.js +0 -1055
  204. package/dist/deploy-xyfbhj3v.js +0 -1038
  205. package/dist/deploy-yv1y5xaa.js +0 -921
  206. package/dist/deploy-z3ejw37k.js +0 -1040
  207. package/dist/dev-02tgdc4f.js +0 -2160
  208. package/dist/dev-0tqhveye.js +0 -2314
  209. package/dist/dev-1mvcts8w.js +0 -2515
  210. package/dist/dev-2a283xts.js +0 -2515
  211. package/dist/dev-3dj2gkfq.js +0 -2314
  212. package/dist/dev-3e0etsww.js +0 -2314
  213. package/dist/dev-47dk7c13.js +0 -2314
  214. package/dist/dev-4a2a31cm.js +0 -2314
  215. package/dist/dev-4w1stcn8.js +0 -2427
  216. package/dist/dev-5wkh1z4a.js +0 -2188
  217. package/dist/dev-62nhytf8.js +0 -2505
  218. package/dist/dev-6t22zmey.js +0 -2350
  219. package/dist/dev-75acm2xj.js +0 -2478
  220. package/dist/dev-802rg9dp.js +0 -2515
  221. package/dist/dev-89p1sdv7.js +0 -2395
  222. package/dist/dev-8d1gxjky.js +0 -2427
  223. package/dist/dev-8yawx3cv.js +0 -2314
  224. package/dist/dev-9h4p8a0c.js +0 -2393
  225. package/dist/dev-9xmttj4c.js +0 -2314
  226. package/dist/dev-at6gy2td.js +0 -2427
  227. package/dist/dev-bgpxrwms.js +0 -2551
  228. package/dist/dev-bh581ew3.js +0 -2597
  229. package/dist/dev-bkbz97z0.js +0 -2314
  230. package/dist/dev-cme5de75.js +0 -2551
  231. package/dist/dev-ct3344kv.js +0 -2160
  232. package/dist/dev-d1bb2t0f.js +0 -2515
  233. package/dist/dev-dg8dh5c1.js +0 -2234
  234. package/dist/dev-dr5jb965.js +0 -2427
  235. package/dist/dev-dwry8494.js +0 -2489
  236. package/dist/dev-e4sjqtbq.js +0 -2314
  237. package/dist/dev-ecq26mg4.js +0 -2350
  238. package/dist/dev-ef237vgp.js +0 -2324
  239. package/dist/dev-enbdg4st.js +0 -2314
  240. package/dist/dev-g6112y4w.js +0 -2515
  241. package/dist/dev-gn5y93z9.js +0 -2597
  242. package/dist/dev-h2kneh95.js +0 -2496
  243. package/dist/dev-jcrxg8hq.js +0 -2160
  244. package/dist/dev-jk0gqges.js +0 -2432
  245. package/dist/dev-k62936am.js +0 -2314
  246. package/dist/dev-k8ptbvrs.js +0 -2160
  247. package/dist/dev-kqm107h4.js +0 -2422
  248. package/dist/dev-kybq3mwr.js +0 -2489
  249. package/dist/dev-kzs65xcr.js +0 -2551
  250. package/dist/dev-n0gx7eya.js +0 -2350
  251. package/dist/dev-n23m6rtb.js +0 -2314
  252. package/dist/dev-n8qndkyg.js +0 -2512
  253. package/dist/dev-ny8fmkzg.js +0 -2432
  254. package/dist/dev-p1c65cga.js +0 -2386
  255. package/dist/dev-p32fkbwf.js +0 -2489
  256. package/dist/dev-p4fjbb4h.js +0 -2395
  257. package/dist/dev-pnfcv79z.js +0 -2160
  258. package/dist/dev-qm9d4mfh.js +0 -2478
  259. package/dist/dev-qnrrv5ey.js +0 -2393
  260. package/dist/dev-qqysg50t.js +0 -2427
  261. package/dist/dev-r9f3n11q.js +0 -2410
  262. package/dist/dev-rcthnse5.js +0 -2473
  263. package/dist/dev-s0815dw4.js +0 -2427
  264. package/dist/dev-s4tpkg60.js +0 -2314
  265. package/dist/dev-s82fcesg.js +0 -2314
  266. package/dist/dev-s9sz53me.js +0 -2401
  267. package/dist/dev-sdka7z0d.js +0 -2427
  268. package/dist/dev-t3tjscah.js +0 -2350
  269. package/dist/dev-t50kdb1j.js +0 -2338
  270. package/dist/dev-t5xf55pt.js +0 -2314
  271. package/dist/dev-t63c44bb.js +0 -2314
  272. package/dist/dev-tgwja5mz.js +0 -2496
  273. package/dist/dev-wg3d38sy.js +0 -2433
  274. package/dist/dev-wh4rfgsh.js +0 -2427
  275. package/dist/dev-wjh8gdd1.js +0 -2284
  276. package/dist/dev-xzxy9qvq.js +0 -2314
  277. package/dist/dev-yymaq4ph.js +0 -2392
  278. package/dist/dev-zg2w2ve3.js +0 -2422
  279. package/dist/dev-zgx7fhe9.js +0 -2553
  280. package/dist/dev-zsb2xk1x.js +0 -2427
  281. package/dist/dev-zty3yhzg.js +0 -2324
  282. package/dist/doctor-0a2brpyz.js +0 -259
  283. package/dist/doctor-2shhdak6.js +0 -245
  284. package/dist/doctor-3mqavqg3.js +0 -245
  285. package/dist/doctor-5g73w40j.js +0 -245
  286. package/dist/doctor-5nek32fz.js +0 -245
  287. package/dist/doctor-7ra1w0sk.js +0 -245
  288. package/dist/doctor-ak830a0k.js +0 -245
  289. package/dist/doctor-bye3cs8a.js +0 -245
  290. package/dist/doctor-c5m9pmwq.js +0 -245
  291. package/dist/doctor-cqfkgxvw.js +0 -245
  292. package/dist/doctor-e1h9mhzp.js +0 -245
  293. package/dist/doctor-fmqsrafk.js +0 -245
  294. package/dist/doctor-gamefzcs.js +0 -245
  295. package/dist/doctor-h5q28qt1.js +0 -259
  296. package/dist/doctor-hgs7wr5g.js +0 -245
  297. package/dist/doctor-j8ytsy94.js +0 -245
  298. package/dist/doctor-khk550tw.js +0 -259
  299. package/dist/doctor-mcmkgp6e.js +0 -245
  300. package/dist/doctor-qb6m2exc.js +0 -245
  301. package/dist/doctor-qq4tsh8q.js +0 -245
  302. package/dist/doctor-rn53ctfs.js +0 -245
  303. package/dist/doctor-tecv869a.js +0 -245
  304. package/dist/doctor-wg0245pe.js +0 -245
  305. package/dist/doctor-z3jfqxtz.js +0 -245
  306. package/dist/durable-object-4hey8fgy.js +0 -13
  307. package/dist/durable-object-yt8v1dyn.js +0 -13
  308. package/dist/index-01kehw41.js +0 -348
  309. package/dist/index-05pbj4hy.js +0 -1193
  310. package/dist/index-06bg0z9y.js +0 -185
  311. package/dist/index-0bv2qjs1.js +0 -1555
  312. package/dist/index-0d7tw5r4.js +0 -136
  313. package/dist/index-0krb65s3.js +0 -215
  314. package/dist/index-0mantew0.js +0 -513
  315. package/dist/index-0mezg6ar.js +0 -1372
  316. package/dist/index-0tk2rs0q.js +0 -185
  317. package/dist/index-0vah20er.js +0 -1410
  318. package/dist/index-0wa0ebm1.js +0 -68
  319. package/dist/index-124e9t4t.js +0 -232
  320. package/dist/index-1546yrn0.js +0 -74
  321. package/dist/index-1714y3cz.js +0 -1410
  322. package/dist/index-18mp5v50.js +0 -538
  323. package/dist/index-195tc6qh.js +0 -1372
  324. package/dist/index-1bg8w2gf.js +0 -52
  325. package/dist/index-1e2qtrmj.js +0 -188
  326. package/dist/index-1ghhgb9d.js +0 -74
  327. package/dist/index-1nhd9nkd.js +0 -232
  328. package/dist/index-1p814k7s.js +0 -227
  329. package/dist/index-1qs5gcm7.js +0 -895
  330. package/dist/index-1wn8mjep.js +0 -808
  331. package/dist/index-1xhd5czz.js +0 -185
  332. package/dist/index-29k04v43.js +0 -574
  333. package/dist/index-2a2g4fwp.js +0 -993
  334. package/dist/index-2bmtj21z.js +0 -192
  335. package/dist/index-2dpmd14d.js +0 -52
  336. package/dist/index-2fa0afdp.js +0 -1372
  337. package/dist/index-2jywf4pz.js +0 -1372
  338. package/dist/index-2qhk9nbx.js +0 -1372
  339. package/dist/index-2rcrefqd.js +0 -1372
  340. package/dist/index-2t2m5148.js +0 -1372
  341. package/dist/index-2vbzamev.js +0 -437
  342. package/dist/index-2vdep9h0.js +0 -993
  343. package/dist/index-2vq6bveq.js +0 -574
  344. package/dist/index-2y90j9cz.js +0 -74
  345. package/dist/index-33ep0z9x.js +0 -385
  346. package/dist/index-36h8gkhb.js +0 -1088
  347. package/dist/index-37jgbaw6.js +0 -1372
  348. package/dist/index-380ncsqc.js +0 -977
  349. package/dist/index-38fq7pww.js +0 -560
  350. package/dist/index-3bxqn033.js +0 -1410
  351. package/dist/index-3e1x39fc.js +0 -365
  352. package/dist/index-3e7by9sy.js +0 -223
  353. package/dist/index-3egad6wm.js +0 -538
  354. package/dist/index-3f8rzmjw.js +0 -232
  355. package/dist/index-3p7s9mk9.js +0 -360
  356. package/dist/index-3vd4r37r.js +0 -1372
  357. package/dist/index-3vgn5e89.js +0 -1682
  358. package/dist/index-3x7k3t0f.js +0 -513
  359. package/dist/index-3xfe2dst.js +0 -399
  360. package/dist/index-464j1zb4.js +0 -513
  361. package/dist/index-47w35sft.js +0 -244
  362. package/dist/index-48rxsj95.js +0 -365
  363. package/dist/index-4bezcdd1.js +0 -385
  364. package/dist/index-4by4c7rm.js +0 -52
  365. package/dist/index-4fp11z9e.js +0 -973
  366. package/dist/index-4knecthc.js +0 -70
  367. package/dist/index-4phjwd6h.js +0 -412
  368. package/dist/index-4se6krdj.js +0 -574
  369. package/dist/index-4z5jrw0j.js +0 -594
  370. package/dist/index-502y7w13.js +0 -538
  371. package/dist/index-50em8s6c.js +0 -898
  372. package/dist/index-50mxxb4q.js +0 -185
  373. package/dist/index-51mzqy0d.js +0 -895
  374. package/dist/index-53pqqpq9.js +0 -74
  375. package/dist/index-5achzspr.js +0 -185
  376. package/dist/index-5ef3jmv7.js +0 -1372
  377. package/dist/index-5enq8ntr.js +0 -1766
  378. package/dist/index-5eswe8yv.js +0 -844
  379. package/dist/index-5fnq9r9m.js +0 -1410
  380. package/dist/index-5gevxfgs.js +0 -513
  381. package/dist/index-5gmf048z.js +0 -817
  382. package/dist/index-5jtkxpjf.js +0 -971
  383. package/dist/index-5m85bd9x.js +0 -168
  384. package/dist/index-5n5nn0a8.js +0 -264
  385. package/dist/index-5p3bgjwr.js +0 -808
  386. package/dist/index-5vzcszr2.js +0 -1230
  387. package/dist/index-5w77r4w9.js +0 -513
  388. package/dist/index-5w9f2b17.js +0 -695
  389. package/dist/index-62srkqcm.js +0 -168
  390. package/dist/index-63cgqe43.js +0 -1372
  391. package/dist/index-65e7xx1a.js +0 -19
  392. package/dist/index-65qrje14.js +0 -185
  393. package/dist/index-666tdx14.js +0 -895
  394. package/dist/index-66sx3b3v.js +0 -385
  395. package/dist/index-678j0n13.js +0 -74
  396. package/dist/index-6bqgf5x8.js +0 -227
  397. package/dist/index-6ftrth7n.js +0 -1218
  398. package/dist/index-6g90pvxa.js +0 -215
  399. package/dist/index-6h8xbs75.js +0 -44
  400. package/dist/index-6j4m5x2d.js +0 -1372
  401. package/dist/index-6jwpke14.js +0 -385
  402. package/dist/index-6knsjvxh.js +0 -1372
  403. package/dist/index-6kwq6yf8.js +0 -979
  404. package/dist/index-6mg4yvc6.js +0 -74
  405. package/dist/index-6phry941.js +0 -133
  406. package/dist/index-6r59wbek.js +0 -232
  407. package/dist/index-6sf815ps.js +0 -74
  408. package/dist/index-6xknvbyk.js +0 -1088
  409. package/dist/index-6zd89k6y.js +0 -1230
  410. package/dist/index-71rwg0cn.js +0 -264
  411. package/dist/index-75ex2m0x.js +0 -695
  412. package/dist/index-79exzs3q.js +0 -1218
  413. package/dist/index-7bxj118m.js +0 -264
  414. package/dist/index-7c6np4mq.js +0 -397
  415. package/dist/index-7cm339qz.js +0 -133
  416. package/dist/index-7e359eb5.js +0 -895
  417. package/dist/index-7ef3ktz5.js +0 -1372
  418. package/dist/index-7eqyr4j8.js +0 -70
  419. package/dist/index-7hpjfdzh.js +0 -185
  420. package/dist/index-7k278fgz.js +0 -273
  421. package/dist/index-7kazxkjt.js +0 -1372
  422. package/dist/index-7m0x8m9r.js +0 -844
  423. package/dist/index-7p74smg8.js +0 -1372
  424. package/dist/index-7q8fke3k.js +0 -188
  425. package/dist/index-7qk6eafn.js +0 -1682
  426. package/dist/index-7r7dfpcm.js +0 -133
  427. package/dist/index-7vbjt6ba.js +0 -805
  428. package/dist/index-7z4b0vgd.js +0 -470
  429. package/dist/index-8052df4m.js +0 -627
  430. package/dist/index-82epjzrr.js +0 -1410
  431. package/dist/index-82f1z98k.js +0 -41
  432. package/dist/index-82xn4azv.js +0 -74
  433. package/dist/index-82z7rvz6.js +0 -1238
  434. package/dist/index-83wns7cz.js +0 -70
  435. package/dist/index-852945d4.js +0 -413
  436. package/dist/index-86rvj79f.js +0 -133
  437. package/dist/index-88tcq0t4.js +0 -542
  438. package/dist/index-8atc1yb9.js +0 -68
  439. package/dist/index-8evn52g1.js +0 -1218
  440. package/dist/index-8fyz6gcm.js +0 -699
  441. package/dist/index-8jkf4nsd.js +0 -695
  442. package/dist/index-8nx4ce3e.js +0 -133
  443. package/dist/index-8p7rxkbs.js +0 -1426
  444. package/dist/index-8q1bcnrh.js +0 -1372
  445. package/dist/index-8t5gynct.js +0 -971
  446. package/dist/index-8tj0awnv.js +0 -476
  447. package/dist/index-8x745h59.js +0 -1069
  448. package/dist/index-905svbb6.js +0 -470
  449. package/dist/index-94cb0sac.js +0 -1372
  450. package/dist/index-95mmvbw7.js +0 -538
  451. package/dist/index-97x94h0m.js +0 -438
  452. package/dist/index-97z629zr.js +0 -109
  453. package/dist/index-9an9qqr1.js +0 -728
  454. package/dist/index-9bawzcny.js +0 -574
  455. package/dist/index-9bjjqdfc.js +0 -236
  456. package/dist/index-9d125myk.js +0 -1372
  457. package/dist/index-9d7x3vfr.js +0 -236
  458. package/dist/index-9fbtk7gv.js +0 -817
  459. package/dist/index-9gg0kqw0.js +0 -470
  460. package/dist/index-9nf8zs4p.js +0 -1069
  461. package/dist/index-9ryw7mcw.js +0 -971
  462. package/dist/index-9wt9x09k.js +0 -287
  463. package/dist/index-a3e13a7m.js +0 -478
  464. package/dist/index-a6j44jmr.js +0 -1372
  465. package/dist/index-a75ejnvt.js +0 -1711
  466. package/dist/index-ab2nck1h.js +0 -1372
  467. package/dist/index-abrqnq3e.js +0 -488
  468. package/dist/index-acwbmagz.js +0 -412
  469. package/dist/index-afjbpgb1.js +0 -1218
  470. package/dist/index-aqjdaem7.js +0 -74
  471. package/dist/index-at89fpde.js +0 -470
  472. package/dist/index-awr0tp6p.js +0 -313
  473. package/dist/index-b1be9bdh.js +0 -1372
  474. package/dist/index-b1xs3wc4.js +0 -513
  475. package/dist/index-b28c4yr4.js +0 -1205
  476. package/dist/index-b50x7seh.js +0 -513
  477. package/dist/index-b5ra8w3q.js +0 -52
  478. package/dist/index-b6448fd0.js +0 -133
  479. package/dist/index-b64sbzgv.js +0 -884
  480. package/dist/index-b7r8ntpm.js +0 -1372
  481. package/dist/index-b9j55r7q.js +0 -240
  482. package/dist/index-ba9gyy13.js +0 -513
  483. package/dist/index-bb66mn7p.js +0 -52
  484. package/dist/index-bc5pvbbd.js +0 -1193
  485. package/dist/index-bdatd1za.js +0 -1372
  486. package/dist/index-bj0mk3dw.js +0 -74
  487. package/dist/index-bj3a8dr0.js +0 -1372
  488. package/dist/index-bj5avaba.js +0 -109
  489. package/dist/index-bk3eez1g.js +0 -513
  490. package/dist/index-btjx137w.js +0 -774
  491. package/dist/index-btrfqp9h.js +0 -133
  492. package/dist/index-bx6gangy.js +0 -402
  493. package/dist/index-c0tc0yts.js +0 -471
  494. package/dist/index-c0whkev9.js +0 -200
  495. package/dist/index-c3nxftnp.js +0 -699
  496. package/dist/index-c643s0gv.js +0 -488
  497. package/dist/index-ca96qkva.js +0 -1372
  498. package/dist/index-cdtzkedk.js +0 -993
  499. package/dist/index-cejgenma.js +0 -1372
  500. package/dist/index-cp8jt5pr.js +0 -52
  501. package/dist/index-cpz69pek.js +0 -1372
  502. package/dist/index-cr06zrgw.js +0 -1033
  503. package/dist/index-crrdegk5.js +0 -456
  504. package/dist/index-cskszwkx.js +0 -1372
  505. package/dist/index-cwjjdtgn.js +0 -74
  506. package/dist/index-cxf22a0s.js +0 -74
  507. package/dist/index-cy3c3w81.js +0 -270
  508. package/dist/index-d2md1j3d.js +0 -185
  509. package/dist/index-d5dgb1j6.js +0 -74
  510. package/dist/index-da397xcx.js +0 -1372
  511. package/dist/index-damyy8bw.js +0 -1372
  512. package/dist/index-dbr6bfz6.js +0 -528
  513. package/dist/index-dd1g0g7e.js +0 -360
  514. package/dist/index-dd6fwwmq.js +0 -456
  515. package/dist/index-dgeamyfk.js +0 -1426
  516. package/dist/index-dgww0ewn.js +0 -574
  517. package/dist/index-dh1954bp.js +0 -52
  518. package/dist/index-djp2wd1f.js +0 -1372
  519. package/dist/index-dktb9az5.js +0 -1372
  520. package/dist/index-dmbdj6va.js +0 -805
  521. package/dist/index-dmf76tac.js +0 -1372
  522. package/dist/index-dphr32gc.js +0 -420
  523. package/dist/index-dref9ecb.js +0 -476
  524. package/dist/index-dxh2qyyw.js +0 -52
  525. package/dist/index-dzayfxjy.js +0 -492
  526. package/dist/index-e05q77kt.js +0 -397
  527. package/dist/index-e11b1fb2.js +0 -495
  528. package/dist/index-e151t4ge.js +0 -895
  529. package/dist/index-e3zvspqj.js +0 -968
  530. package/dist/index-e4tzzbn9.js +0 -1372
  531. package/dist/index-e5ct1gwb.js +0 -1372
  532. package/dist/index-e7kakw0j.js +0 -1033
  533. package/dist/index-e7ptcz1a.js +0 -1372
  534. package/dist/index-e7wt0203.js +0 -513
  535. package/dist/index-ebwsvf9t.js +0 -365
  536. package/dist/index-ed73jn3d.js +0 -185
  537. package/dist/index-ed7n5d07.js +0 -185
  538. package/dist/index-ejs2a4kd.js +0 -513
  539. package/dist/index-esjrgt3y.js +0 -467
  540. package/dist/index-ev03khsd.js +0 -513
  541. package/dist/index-f1g5jdm8.js +0 -1426
  542. package/dist/index-f1gsqm54.js +0 -168
  543. package/dist/index-f1yshy4s.js +0 -412
  544. package/dist/index-f46984zs.js +0 -1554
  545. package/dist/index-f51mkh13.js +0 -1088
  546. package/dist/index-f86n1fpd.js +0 -55
  547. package/dist/index-f90314kt.js +0 -52
  548. package/dist/index-f9mhsept.js +0 -185
  549. package/dist/index-fa6zwffw.js +0 -70
  550. package/dist/index-fama7kpt.js +0 -52
  551. package/dist/index-fgk87mk2.js +0 -1067
  552. package/dist/index-fkyvxe4b.js +0 -968
  553. package/dist/index-fnk0tkw7.js +0 -412
  554. package/dist/index-g0h40xke.js +0 -513
  555. package/dist/index-g0rqh52c.js +0 -385
  556. package/dist/index-g170d619.js +0 -385
  557. package/dist/index-g3qtxkms.js +0 -881
  558. package/dist/index-g5aq66bj.js +0 -1534
  559. package/dist/index-gactvqcs.js +0 -467
  560. package/dist/index-gaew61v4.js +0 -470
  561. package/dist/index-gba371j7.js +0 -542
  562. package/dist/index-gegyyfnw.js +0 -1372
  563. package/dist/index-get7he2s.js +0 -133
  564. package/dist/index-gj5qh491.js +0 -54
  565. package/dist/index-gq39t0rx.js +0 -895
  566. package/dist/index-grk8pzhr.js +0 -185
  567. package/dist/index-gtbgzwfs.js +0 -264
  568. package/dist/index-gtpz0gkz.js +0 -185
  569. package/dist/index-h1s66pmp.js +0 -52
  570. package/dist/index-h5dqna7q.js +0 -1410
  571. package/dist/index-h8r2d8y5.js +0 -366
  572. package/dist/index-hbxkmb1q.js +0 -1426
  573. package/dist/index-heeqwrfd.js +0 -385
  574. package/dist/index-hheb5dyt.js +0 -192
  575. package/dist/index-hjs9j2g9.js +0 -895
  576. package/dist/index-hjz2x9nq.js +0 -441
  577. package/dist/index-hkex7ns5.js +0 -513
  578. package/dist/index-hmbctwv6.js +0 -517
  579. package/dist/index-hn5nbxbt.js +0 -147
  580. package/dist/index-hpjh0qjx.js +0 -1723
  581. package/dist/index-hpzasdhw.js +0 -513
  582. package/dist/index-hqdr9wdm.js +0 -74
  583. package/dist/index-hrvz8d26.js +0 -1372
  584. package/dist/index-hs6ekcfs.js +0 -412
  585. package/dist/index-hyvhnf6r.js +0 -971
  586. package/dist/index-hzmpecq9.js +0 -52
  587. package/dist/index-j1csb7gb.js +0 -581
  588. package/dist/index-j2kc5rbv.js +0 -895
  589. package/dist/index-j2xdxwsz.js +0 -133
  590. package/dist/index-j47hhb3r.js +0 -694
  591. package/dist/index-j5aphr5x.js +0 -185
  592. package/dist/index-j68v36q1.js +0 -188
  593. package/dist/index-j7cf22x7.js +0 -968
  594. package/dist/index-j7x7f72h.js +0 -185
  595. package/dist/index-j7xxrbnr.js +0 -694
  596. package/dist/index-jdzrvnfj.js +0 -52
  597. package/dist/index-jg720mq7.js +0 -476
  598. package/dist/index-jkqbjwt2.js +0 -476
  599. package/dist/index-jptqxkew.js +0 -470
  600. package/dist/index-jrzddxvt.js +0 -2167
  601. package/dist/index-jsymy3mb.js +0 -781
  602. package/dist/index-jwd3fanx.js +0 -412
  603. package/dist/index-jwvy32xk.js +0 -188
  604. package/dist/index-jxe1b19v.js +0 -133
  605. package/dist/index-jz96ry5g.js +0 -513
  606. package/dist/index-k6wtsgs1.js +0 -971
  607. package/dist/index-kawa49m8.js +0 -371
  608. package/dist/index-key4e5c9.js +0 -168
  609. package/dist/index-kgstnk6g.js +0 -239
  610. package/dist/index-khbmdrn2.js +0 -884
  611. package/dist/index-khnw972v.js +0 -117
  612. package/dist/index-kpzfwex6.js +0 -264
  613. package/dist/index-kse4gn99.js +0 -74
  614. package/dist/index-ktscz0r2.js +0 -264
  615. package/dist/index-kwqff3ba.js +0 -1410
  616. package/dist/index-kxc4gtyt.js +0 -574
  617. package/dist/index-kybmjvad.js +0 -1212
  618. package/dist/index-kzm9cea8.js +0 -185
  619. package/dist/index-m2d74gqg.js +0 -808
  620. package/dist/index-m2v0fj08.js +0 -74
  621. package/dist/index-m56w7mjt.js +0 -513
  622. package/dist/index-m95ha3n4.js +0 -264
  623. package/dist/index-ma151p8g.js +0 -264
  624. package/dist/index-mh5renra.js +0 -895
  625. package/dist/index-mhdsywhs.js +0 -264
  626. package/dist/index-mjgx910r.js +0 -895
  627. package/dist/index-mjve6tqn.js +0 -447
  628. package/dist/index-mkrmaea3.js +0 -185
  629. package/dist/index-mkxnyyjn.js +0 -264
  630. package/dist/index-mkxzgn0q.js +0 -1372
  631. package/dist/index-mp5mrst6.js +0 -1372
  632. package/dist/index-ms15cr86.js +0 -513
  633. package/dist/index-mt99xkc6.js +0 -133
  634. package/dist/index-mttv6k25.js +0 -881
  635. package/dist/index-myxfx52v.js +0 -385
  636. package/dist/index-mzmq3v0d.js +0 -1088
  637. package/dist/index-mzw7732t.js +0 -74
  638. package/dist/index-n3mjwz22.js +0 -188
  639. package/dist/index-n3yksgz0.js +0 -1372
  640. package/dist/index-n4jr3dmk.js +0 -484
  641. package/dist/index-n5drt64b.js +0 -74
  642. package/dist/index-n8frmffg.js +0 -264
  643. package/dist/index-n8k8chde.js +0 -694
  644. package/dist/index-na796ka6.js +0 -994
  645. package/dist/index-nbs4q0qg.js +0 -1218
  646. package/dist/index-newpq2zf.js +0 -968
  647. package/dist/index-nexg9p7j.js +0 -1271
  648. package/dist/index-nfm8tb5n.js +0 -74
  649. package/dist/index-ng9n3znd.js +0 -1372
  650. package/dist/index-nga2tg9z.js +0 -1372
  651. package/dist/index-ngbzr9gz.js +0 -805
  652. package/dist/index-nh90nk7j.js +0 -380
  653. package/dist/index-nhbkm2ba.js +0 -467
  654. package/dist/index-njnmfxm5.js +0 -1372
  655. package/dist/index-nqma24j3.js +0 -385
  656. package/dist/index-nrfhk0k5.js +0 -1088
  657. package/dist/index-ntddf5d9.js +0 -993
  658. package/dist/index-nte9n8w9.js +0 -538
  659. package/dist/index-ntxp7ke1.js +0 -264
  660. package/dist/index-nwxnmw41.js +0 -264
  661. package/dist/index-nxkesg55.js +0 -68
  662. package/dist/index-p0zppqxm.js +0 -467
  663. package/dist/index-p1xe5eem.js +0 -513
  664. package/dist/index-p296ban8.js +0 -191
  665. package/dist/index-p477xm52.js +0 -385
  666. package/dist/index-p7q23nce.js +0 -1031
  667. package/dist/index-p8nmkrgw.js +0 -470
  668. package/dist/index-p97s12vf.js +0 -904
  669. package/dist/index-p9hvv0yd.js +0 -401
  670. package/dist/index-p9xq83p7.js +0 -147
  671. package/dist/index-pac7wv88.js +0 -307
  672. package/dist/index-pkxf6h87.js +0 -895
  673. package/dist/index-pqp4312v.js +0 -52
  674. package/dist/index-pt49cgjv.js +0 -1426
  675. package/dist/index-ptp2pfq1.js +0 -52
  676. package/dist/index-pw9jn6kz.js +0 -574
  677. package/dist/index-pyeycp3f.js +0 -74
  678. package/dist/index-q15nj71j.js +0 -52
  679. package/dist/index-q23xf3vr.js +0 -479
  680. package/dist/index-q31ne0xa.js +0 -412
  681. package/dist/index-q34rvh5a.js +0 -247
  682. package/dist/index-q5errwrj.js +0 -904
  683. package/dist/index-q5nhzc9m.js +0 -1217
  684. package/dist/index-qer8zv2r.js +0 -997
  685. package/dist/index-qf2dkqxh.js +0 -249
  686. package/dist/index-qhyy018y.js +0 -467
  687. package/dist/index-qmhdydwy.js +0 -70
  688. package/dist/index-qmtdf7k5.js +0 -639
  689. package/dist/index-qpmvca5j.js +0 -470
  690. package/dist/index-qqp65pyv.js +0 -699
  691. package/dist/index-qr96vaj1.js +0 -52
  692. package/dist/index-qtyhg3dn.js +0 -904
  693. package/dist/index-qye17gq5.js +0 -264
  694. package/dist/index-r0839f5k.js +0 -133
  695. package/dist/index-r1rqg72v.js +0 -1372
  696. package/dist/index-rab2dfh3.js +0 -494
  697. package/dist/index-rbckga8p.js +0 -971
  698. package/dist/index-rbht7m9r.js +0 -36
  699. package/dist/index-rbxb5x2w.js +0 -1372
  700. package/dist/index-rck779bj.js +0 -739
  701. package/dist/index-rfn2gt5f.js +0 -1658
  702. package/dist/index-rg21w26a.js +0 -470
  703. package/dist/index-rgcz45t0.js +0 -1372
  704. package/dist/index-rhnd376q.js +0 -133
  705. package/dist/index-rjc5z3w6.js +0 -971
  706. package/dist/index-rkhtayd6.js +0 -385
  707. package/dist/index-rm8srzmv.js +0 -371
  708. package/dist/index-rmhk5j03.js +0 -968
  709. package/dist/index-rp0aye39.js +0 -1426
  710. package/dist/index-rp4t86bt.js +0 -993
  711. package/dist/index-rpq5ktdy.js +0 -264
  712. package/dist/index-rpsmhdd4.js +0 -1218
  713. package/dist/index-rqpakjyr.js +0 -470
  714. package/dist/index-rttk33x6.js +0 -232
  715. package/dist/index-rwa82e89.js +0 -385
  716. package/dist/index-rz185crv.js +0 -695
  717. package/dist/index-rz7rx80s.js +0 -1410
  718. package/dist/index-s0fmwxbk.js +0 -74
  719. package/dist/index-s22verzj.js +0 -1218
  720. package/dist/index-s2s3g1nt.js +0 -133
  721. package/dist/index-s37h3jgk.js +0 -572
  722. package/dist/index-s7ytytth.js +0 -781
  723. package/dist/index-s9q605sq.js +0 -1033
  724. package/dist/index-sb705m7d.js +0 -52
  725. package/dist/index-sefnpzwa.js +0 -185
  726. package/dist/index-sgxw0xzd.js +0 -513
  727. package/dist/index-stc0caq6.js +0 -1009
  728. package/dist/index-svz82w9h.js +0 -513
  729. package/dist/index-sx49e8x9.js +0 -884
  730. package/dist/index-sxadwvw9.js +0 -185
  731. package/dist/index-sxn223fz.js +0 -1372
  732. package/dist/index-sy0c2mh0.js +0 -1372
  733. package/dist/index-syeh1hca.js +0 -264
  734. package/dist/index-syscwrjp.js +0 -1576
  735. package/dist/index-t14zr0ys.js +0 -1063
  736. package/dist/index-t18wyhgf.js +0 -418
  737. package/dist/index-t4fhcx1n.js +0 -71
  738. package/dist/index-td4hbgj5.js +0 -1372
  739. package/dist/index-th4vrnbk.js +0 -1205
  740. package/dist/index-tjc99447.js +0 -68
  741. package/dist/index-tknbyxzn.js +0 -2202
  742. package/dist/index-tkvt9mmq.js +0 -484
  743. package/dist/index-tmmcf4m6.js +0 -808
  744. package/dist/index-tpgs5v64.js +0 -366
  745. package/dist/index-tt4fsv91.js +0 -412
  746. package/dist/index-tte89s31.js +0 -169
  747. package/dist/index-tvjg7swe.js +0 -1372
  748. package/dist/index-txndxr4w.js +0 -513
  749. package/dist/index-tyh5jc55.js +0 -990
  750. package/dist/index-tyt0wa52.js +0 -470
  751. package/dist/index-tyt3wcfr.js +0 -1372
  752. package/dist/index-v35460hf.js +0 -574
  753. package/dist/index-v3znz08m.js +0 -968
  754. package/dist/index-v78xbj6n.js +0 -808
  755. package/dist/index-v7q00d1e.js +0 -1410
  756. package/dist/index-v915brjk.js +0 -1372
  757. package/dist/index-v922fmsx.js +0 -52
  758. package/dist/index-v9w1bbfe.js +0 -842
  759. package/dist/index-vbbgtm8p.js +0 -513
  760. package/dist/index-vcjgrmzj.js +0 -456
  761. package/dist/index-vdewcg1r.js +0 -1271
  762. package/dist/index-vkkmx4xe.js +0 -1372
  763. package/dist/index-vrps1gky.js +0 -2202
  764. package/dist/index-vse8620z.js +0 -1372
  765. package/dist/index-vt803j3b.js +0 -1372
  766. package/dist/index-vtcmsgaf.js +0 -581
  767. package/dist/index-vtjp46c3.js +0 -52
  768. package/dist/index-vxhxk8mf.js +0 -904
  769. package/dist/index-w36q6819.js +0 -895
  770. package/dist/index-w3azfsa0.js +0 -695
  771. package/dist/index-w4c9vmvg.js +0 -1517
  772. package/dist/index-w4tq35dn.js +0 -52
  773. package/dist/index-w5qxvxzq.js +0 -991
  774. package/dist/index-w5sedpqn.js +0 -986
  775. package/dist/index-waha3chv.js +0 -1230
  776. package/dist/index-wdxww0kj.js +0 -1006
  777. package/dist/index-wdy5y07x.js +0 -1372
  778. package/dist/index-wf9pnh6j.js +0 -385
  779. package/dist/index-wfbfz02q.js +0 -225
  780. package/dist/index-wnnbbbkt.js +0 -1192
  781. package/dist/index-wqd8n2qk.js +0 -574
  782. package/dist/index-wvcmvtjf.js +0 -1372
  783. package/dist/index-x0jbntp0.js +0 -470
  784. package/dist/index-x12e6fzy.js +0 -476
  785. package/dist/index-x2k3awjs.js +0 -147
  786. package/dist/index-x6scc3nx.js +0 -70
  787. package/dist/index-x8e2wsbv.js +0 -971
  788. package/dist/index-x8x547tz.js +0 -1426
  789. package/dist/index-xagpz645.js +0 -2199
  790. package/dist/index-xbth1r6e.js +0 -572
  791. package/dist/index-xec4p3v5.js +0 -560
  792. package/dist/index-xgfyxpfs.js +0 -1218
  793. package/dist/index-xm9fqhcb.js +0 -447
  794. package/dist/index-xm9hp9xc.js +0 -1372
  795. package/dist/index-xp0qkkxf.js +0 -68
  796. package/dist/index-xp7zkxcx.js +0 -1372
  797. package/dist/index-xrbj0ebk.js +0 -185
  798. package/dist/index-xskax7r3.js +0 -50
  799. package/dist/index-xvk5n96q.js +0 -694
  800. package/dist/index-xxxd0mvw.js +0 -109
  801. package/dist/index-xy1jvt4w.js +0 -1229
  802. package/dist/index-xzg9hhf3.js +0 -470
  803. package/dist/index-xzpg0kaz.js +0 -70
  804. package/dist/index-y1d8za14.js +0 -196
  805. package/dist/index-y3q6qvv3.js +0 -316
  806. package/dist/index-y44ts1dk.js +0 -52
  807. package/dist/index-y5nt1wjb.js +0 -971
  808. package/dist/index-y7mkb00x.js +0 -133
  809. package/dist/index-y82b8w14.js +0 -1372
  810. package/dist/index-yb07t3c5.js +0 -1372
  811. package/dist/index-yc3xz3vm.js +0 -431
  812. package/dist/index-yeaqrevg.js +0 -1372
  813. package/dist/index-ygwsd1nn.js +0 -438
  814. package/dist/index-yhdavjk7.js +0 -371
  815. package/dist/index-yjhns95b.js +0 -188
  816. package/dist/index-yk23p7he.js +0 -1372
  817. package/dist/index-ykfgpsmm.js +0 -190
  818. package/dist/index-ymz3cfab.js +0 -968
  819. package/dist/index-yq9g1sq7.js +0 -264
  820. package/dist/index-ys5q9ch9.js +0 -366
  821. package/dist/index-yt0n4p46.js +0 -973
  822. package/dist/index-ytq1t9jx.js +0 -232
  823. package/dist/index-ywmtmf3b.js +0 -513
  824. package/dist/index-yzb44q6d.js +0 -1372
  825. package/dist/index-z043xk61.js +0 -133
  826. package/dist/index-z0gsf674.js +0 -431
  827. package/dist/index-z32n0ndp.js +0 -1372
  828. package/dist/index-z40mjts9.js +0 -212
  829. package/dist/index-z4qgk76w.js +0 -1372
  830. package/dist/index-z5k5bjc7.js +0 -1218
  831. package/dist/index-z73sytma.js +0 -895
  832. package/dist/index-z8njfj2g.js +0 -385
  833. package/dist/index-z9fjnwa8.js +0 -397
  834. package/dist/index-zapkc14c.js +0 -264
  835. package/dist/index-zawn5tte.js +0 -109
  836. package/dist/index-zes6w8yr.js +0 -185
  837. package/dist/index-zgrqest7.js +0 -695
  838. package/dist/index-zjv6apef.js +0 -1410
  839. package/dist/index-zpy9caxn.js +0 -1193
  840. package/dist/index-zsngz131.js +0 -1372
  841. package/dist/index-zt22fe2j.js +0 -54
  842. package/dist/index-zxhc6sb0.js +0 -192
  843. package/dist/init-wfh63bfz.js +0 -180
  844. package/dist/login-1amyp1jy.js +0 -77
  845. package/dist/login-1cdwn1dj.js +0 -77
  846. package/dist/login-280p2cm9.js +0 -77
  847. package/dist/login-456h8jk3.js +0 -77
  848. package/dist/login-4n266whq.js +0 -77
  849. package/dist/login-4n470c4j.js +0 -77
  850. package/dist/login-4sh7s849.js +0 -77
  851. package/dist/login-5dmkf0pz.js +0 -77
  852. package/dist/login-7yex6ppq.js +0 -77
  853. package/dist/login-83bjfhvz.js +0 -77
  854. package/dist/login-88tp4gbb.js +0 -77
  855. package/dist/login-b51faqpc.js +0 -77
  856. package/dist/login-bxyjqmbj.js +0 -77
  857. package/dist/login-c4649qss.js +0 -77
  858. package/dist/login-d80a2qxd.js +0 -77
  859. package/dist/login-ddw888xb.js +0 -77
  860. package/dist/login-dp0napaz.js +0 -77
  861. package/dist/login-e7pytkdc.js +0 -77
  862. package/dist/login-fe0brfcr.js +0 -77
  863. package/dist/login-h7sm5trm.js +0 -77
  864. package/dist/login-j3r6z2t4.js +0 -77
  865. package/dist/login-jkfkdjg4.js +0 -77
  866. package/dist/login-kch6f2yj.js +0 -77
  867. package/dist/login-pmqh94ws.js +0 -77
  868. package/dist/login-rc82x5j8.js +0 -77
  869. package/dist/login-tvppwyx2.js +0 -77
  870. package/dist/login-vd0m3xr4.js +0 -77
  871. package/dist/login-w76jx22q.js +0 -77
  872. package/dist/login-ze7y36rc.js +0 -77
  873. package/dist/previews-02jmcwft.js +0 -1214
  874. package/dist/previews-2wfvsjfy.js +0 -1337
  875. package/dist/previews-31bq82km.js +0 -1225
  876. package/dist/previews-31feb8r3.js +0 -1337
  877. package/dist/previews-3m3ffpaw.js +0 -1337
  878. package/dist/previews-3w4pxqby.js +0 -1337
  879. package/dist/previews-62pcvvpe.js +0 -1214
  880. package/dist/previews-6fepv94a.js +0 -1225
  881. package/dist/previews-76fxkp59.js +0 -1214
  882. package/dist/previews-844bp6kf.js +0 -1214
  883. package/dist/previews-8amn46qv.js +0 -1214
  884. package/dist/previews-93ttrf5f.js +0 -1337
  885. package/dist/previews-a5xbkksy.js +0 -1214
  886. package/dist/previews-bdrefjzx.js +0 -1337
  887. package/dist/previews-bgnryzav.js +0 -1214
  888. package/dist/previews-bkhv9dnr.js +0 -1214
  889. package/dist/previews-c2c64z5m.js +0 -1214
  890. package/dist/previews-cfcn56b4.js +0 -1337
  891. package/dist/previews-e4wgscsb.js +0 -1214
  892. package/dist/previews-ew4reetn.js +0 -1214
  893. package/dist/previews-hzqke1fg.js +0 -1214
  894. package/dist/previews-j8wa3sge.js +0 -1214
  895. package/dist/previews-k5n6vhpm.js +0 -1214
  896. package/dist/previews-mssq1hrm.js +0 -1337
  897. package/dist/previews-n4sdyxa5.js +0 -1214
  898. package/dist/previews-npwrwb0b.js +0 -1214
  899. package/dist/previews-q8ph9wbe.js +0 -1214
  900. package/dist/previews-rfswrh7q.js +0 -1214
  901. package/dist/previews-s0y5yp8s.js +0 -1214
  902. package/dist/previews-s5b6mnz5.js +0 -1214
  903. package/dist/previews-sdte4984.js +0 -1200
  904. package/dist/previews-t5tdm6t0.js +0 -1225
  905. package/dist/previews-tcaz1gt8.js +0 -1337
  906. package/dist/previews-tk7vpzj9.js +0 -1214
  907. package/dist/previews-tqt4pk27.js +0 -1214
  908. package/dist/previews-tr8sm03d.js +0 -1337
  909. package/dist/previews-vqg4psk2.js +0 -1225
  910. package/dist/productions-2t9q8f57.js +0 -505
  911. package/dist/productions-4abj58kx.js +0 -505
  912. package/dist/productions-4dpec71r.js +0 -505
  913. package/dist/productions-4h80j2c7.js +0 -505
  914. package/dist/productions-4nedsanh.js +0 -505
  915. package/dist/productions-5c58yafp.js +0 -505
  916. package/dist/productions-5xq5cjhx.js +0 -505
  917. package/dist/productions-62y489ff.js +0 -505
  918. package/dist/productions-6dr0bmd7.js +0 -505
  919. package/dist/productions-86jaqt7m.js +0 -505
  920. package/dist/productions-8f6s8dqr.js +0 -505
  921. package/dist/productions-a2hcwwzf.js +0 -505
  922. package/dist/productions-b7svyjp7.js +0 -505
  923. package/dist/productions-bf2cnr05.js +0 -505
  924. package/dist/productions-bn2q31my.js +0 -505
  925. package/dist/productions-cgn3fz7d.js +0 -505
  926. package/dist/productions-dkgry3gv.js +0 -505
  927. package/dist/productions-dv8g7f6g.js +0 -505
  928. package/dist/productions-e2m9s4tr.js +0 -505
  929. package/dist/productions-eqh105tk.js +0 -505
  930. package/dist/productions-etvcm7yf.js +0 -505
  931. package/dist/productions-f1zpbmjz.js +0 -505
  932. package/dist/productions-fgshs1m7.js +0 -505
  933. package/dist/productions-hphmt68n.js +0 -505
  934. package/dist/productions-j14pvx93.js +0 -505
  935. package/dist/productions-j7s1ywvg.js +0 -505
  936. package/dist/productions-jp3v3q3p.js +0 -505
  937. package/dist/productions-m9p42amj.js +0 -505
  938. package/dist/productions-mxbneawa.js +0 -505
  939. package/dist/productions-np4exh9p.js +0 -505
  940. package/dist/productions-rr1hqgda.js +0 -505
  941. package/dist/productions-rtf9ksgg.js +0 -505
  942. package/dist/productions-vhq7yx86.js +0 -505
  943. package/dist/productions-w2nzftcz.js +0 -505
  944. package/dist/productions-wbks5h7e.js +0 -505
  945. package/dist/productions-y99ayk6h.js +0 -505
  946. package/dist/productions-zpqyw5gm.js +0 -505
  947. package/dist/router/types.d.ts +0 -24
  948. package/dist/router/types.d.ts.map +0 -1
  949. package/dist/runtime/router.d.ts +0 -7
  950. package/dist/runtime/router.d.ts.map +0 -1
  951. package/dist/secrets-4050kqf5.js +0 -91
  952. package/dist/secrets-8wcj47nh.js +0 -91
  953. package/dist/secrets-b2ww34ta.js +0 -91
  954. package/dist/secrets-b7g4z621.js +0 -91
  955. package/dist/secrets-p112cajt.js +0 -91
  956. package/dist/test/bridge-context.d.ts +0 -83
  957. package/dist/test/bridge-context.d.ts.map +0 -1
  958. package/dist/test/local-worker-loader.d.ts +0 -3
  959. package/dist/test/local-worker-loader.d.ts.map +0 -1
  960. package/dist/token-3b9wws58.js +0 -419
  961. package/dist/token-47kcz18j.js +0 -419
  962. package/dist/token-a2b38w0z.js +0 -419
  963. package/dist/token-exz78pth.js +0 -419
  964. package/dist/token-fcthx92c.js +0 -419
  965. package/dist/token-grwp8z4q.js +0 -419
  966. package/dist/token-jkmm44z2.js +0 -419
  967. package/dist/token-qxtvzm3b.js +0 -419
  968. package/dist/token-rq8mvtz9.js +0 -419
  969. package/dist/token-sfgxcgen.js +0 -419
  970. package/dist/types-0qv4xces.js +0 -572
  971. package/dist/types-2ejrbba1.js +0 -695
  972. package/dist/types-2nvrs9jg.js +0 -572
  973. package/dist/types-2pbe8kzw.js +0 -572
  974. package/dist/types-2zyt0m43.js +0 -572
  975. package/dist/types-4xxer9ep.js +0 -572
  976. package/dist/types-5t5y7a5n.js +0 -572
  977. package/dist/types-5wd2rygw.js +0 -572
  978. package/dist/types-7j3ykgx7.js +0 -572
  979. package/dist/types-7jkbm95a.js +0 -695
  980. package/dist/types-8g78x34n.js +0 -572
  981. package/dist/types-a2fk9yns.js +0 -695
  982. package/dist/types-apmt10yj.js +0 -705
  983. package/dist/types-dyb3c6zw.js +0 -695
  984. package/dist/types-e2n9f3pd.js +0 -695
  985. package/dist/types-e6d336q3.js +0 -572
  986. package/dist/types-hqh2fx0x.js +0 -572
  987. package/dist/types-j12xmdnd.js +0 -572
  988. package/dist/types-j4s6qcrc.js +0 -695
  989. package/dist/types-jqn26et3.js +0 -572
  990. package/dist/types-n0mxbq26.js +0 -572
  991. package/dist/types-naz9hvw5.js +0 -572
  992. package/dist/types-qjcd1jks.js +0 -572
  993. package/dist/types-r9zb8sw1.js +0 -572
  994. package/dist/types-rv5xwgsn.js +0 -572
  995. package/dist/types-t39njdqx.js +0 -572
  996. package/dist/types-tkgch3xv.js +0 -572
  997. package/dist/types-ttrrgdfj.js +0 -705
  998. package/dist/types-vhvt4hvm.js +0 -693
  999. package/dist/types-vvtb7rrh.js +0 -572
  1000. package/dist/types-w1grncdj.js +0 -572
  1001. package/dist/types-wmw49exb.js +0 -572
  1002. package/dist/types-ymxz9jga.js +0 -572
  1003. package/dist/worker-18ceqscc.js +0 -513
  1004. package/dist/worker-1yqpwte2.js +0 -513
  1005. package/dist/worker-2aw27zxy.js +0 -513
  1006. package/dist/worker-2k1jyr6p.js +0 -513
  1007. package/dist/worker-45tp4a8f.js +0 -513
  1008. package/dist/worker-663em30d.js +0 -513
  1009. package/dist/worker-68zttchg.js +0 -513
  1010. package/dist/worker-729cf3fh.js +0 -513
  1011. package/dist/worker-99tew196.js +0 -513
  1012. package/dist/worker-argxc7fb.js +0 -513
  1013. package/dist/worker-aydzxt4f.js +0 -513
  1014. package/dist/worker-ejdxma7k.js +0 -513
  1015. package/dist/worker-entrypoint-4xp7msd7.js +0 -16
  1016. package/dist/worker-entrypoint-c259fmfs.js +0 -13
  1017. package/dist/worker-entrypoint-f1v9y4s8.js +0 -15
  1018. package/dist/worker-f6xqjg65.js +0 -513
  1019. package/dist/worker-fcdsnj14.js +0 -513
  1020. package/dist/worker-fdnn62de.js +0 -513
  1021. package/dist/worker-fk42rzse.js +0 -513
  1022. package/dist/worker-frnh95rg.js +0 -513
  1023. package/dist/worker-jkemk8d2.js +0 -513
  1024. package/dist/worker-jqgn6jyj.js +0 -513
  1025. package/dist/worker-k55nfrmp.js +0 -513
  1026. package/dist/worker-kqc6w7ry.js +0 -513
  1027. package/dist/worker-ksvcq8be.js +0 -513
  1028. package/dist/worker-m4ze8djx.js +0 -513
  1029. package/dist/worker-mjzfstv5.js +0 -513
  1030. package/dist/worker-p4rtsndj.js +0 -513
  1031. package/dist/worker-p6d53qan.js +0 -513
  1032. package/dist/worker-qh2qbv97.js +0 -513
  1033. package/dist/worker-r234vnv9.js +0 -513
  1034. package/dist/worker-r47bv7gt.js +0 -513
  1035. package/dist/worker-s4nvbqsm.js +0 -513
  1036. package/dist/worker-ttj7vwce.js +0 -513
  1037. package/dist/worker-wnan5dca.js +0 -513
  1038. package/dist/worker-wv4jdneg.js +0 -513
  1039. package/dist/worker-xcbscr75.js +0 -513
  1040. package/dist/worker-yw3atfb1.js +0 -513
  1041. package/dist/worker-ywwkf3cp.js +0 -513
  1042. package/dist/worker-z8wtk0sh.js +0 -513
@@ -1,1055 +0,0 @@
1
- import {
2
- applyDeploymentStrategy,
3
- compareManifests,
4
- createBuildManifest,
5
- describeDeploymentStrategy,
6
- formatDriftWarning,
7
- prepareBuildArtifacts,
8
- readBuildManifest
9
- } from "./index-dgww0ewn.js";
10
- import"./index-aabgympv.js";
11
- import {
12
- preparePreviewScopedResourcesForDeploy
13
- } from "./index-x12e6fzy.js";
14
- import {
15
- asOptionalString
16
- } from "./index-53pqqpq9.js";
17
- import {
18
- formatWorkersDevUrl,
19
- reconcilePreviewRegistry
20
- } from "./index-3jme4hgw.js";
21
- import {
22
- getDependencies
23
- } from "./index-z9gy8w6b.js";
24
- import"./index-gn5wy09x.js";
25
- import {
26
- getPackageVersion
27
- } from "./index-627srx16.js";
28
- import {
29
- createCliTheme,
30
- dim,
31
- green,
32
- logLine,
33
- yellow,
34
- yellowBold
35
- } from "./index-stgn34cr.js";
36
- import"./index-3t6rypgc.js";
37
- import"./index-666tdx14.js";
38
- import"./index-05pbj4hy.js";
39
- import"./index-p7q23nce.js";
40
- import {
41
- resolvePackageSpecifier
42
- } from "./index-3edvz3hs.js";
43
- import"./index-qwgr4q7s.js";
44
- import"./index-aqrwyy57.js";
45
- import"./index-vhqww6tt.js";
46
- import {
47
- ServiceBindingValidationError,
48
- compileBuildConfig,
49
- compileConfig,
50
- readWranglerConfig,
51
- rebaseWranglerConfigPaths,
52
- stringifyConfig,
53
- validateServiceBindings,
54
- writeWranglerConfig
55
- } from "./index-c3nxftnp.js";
56
- import {
57
- loadConfig,
58
- prepareConfigResourcesForDeploy,
59
- resolveConfigForEnvironment
60
- } from "./index-syscwrjp.js";
61
- import {
62
- getEffectiveAccountId,
63
- getPrimaryAccount,
64
- getWorkerVersionDetail,
65
- getWorkersSubdomain,
66
- listWorkerDeployments,
67
- listWorkerVersions,
68
- listWorkers
69
- } from "./index-1d4jg11n.js";
70
- import"./index-mg8vwqxf.js";
71
- import {
72
- resolvePreviewIdentifier
73
- } from "./index-z40mjts9.js";
74
- import"./index-q8f4kawk.js";
75
- import {
76
- __require
77
- } from "./index-37x76zdn.js";
78
-
79
- // src/cli/commands/deploy.ts
80
- import { join } from "pathe";
81
-
82
- // src/cli/deploy-target.ts
83
- function resolveDeployTarget(parsed, options = {}) {
84
- const wantsProduction = parsed.options.prod === true || parsed.options.production === true;
85
- const previewOption = parsed.options.preview;
86
- const previewScopeRaw = asOptionalString(previewOption);
87
- const wantsPreview = previewOption === true || Boolean(previewScopeRaw);
88
- if (!wantsProduction && !wantsPreview) {
89
- if (options.requireExplicitTarget === true) {
90
- throw new Error("Deploy needs an explicit target. Use --prod / --production for live traffic, or --preview <name> (or bare --preview) for preview deploys.");
91
- }
92
- return {
93
- mode: "implicit",
94
- envOverrides: {}
95
- };
96
- }
97
- if (wantsProduction && wantsPreview) {
98
- throw new Error("Choose either --prod / --production or --preview <name>, not both.");
99
- }
100
- const explicitEnvironment = asOptionalString(parsed.options.env);
101
- if (wantsProduction) {
102
- if (explicitEnvironment && explicitEnvironment !== "production") {
103
- throw new Error("Production deploys always target the production environment. Remove --env or use --env production.");
104
- }
105
- if (parsed.options["branch-name"] !== undefined) {
106
- throw new Error("Production deploys do not accept --branch-name.");
107
- }
108
- return {
109
- mode: "production",
110
- environment: "production",
111
- targetFlag: parsed.options.production === true ? "--production" : "--prod",
112
- envOverrides: {
113
- DEVFLARE_PREVIEW_BRANCH: undefined,
114
- DEVFLARE_PREVIEW_IDENTIFIER: undefined,
115
- DEVFLARE_PREVIEW_PR: undefined
116
- }
117
- };
118
- }
119
- if (explicitEnvironment && explicitEnvironment !== "preview") {
120
- throw new Error("Preview deploys always target the preview environment. Remove --env or use --env preview.");
121
- }
122
- if (previewScopeRaw) {
123
- const branchName = asOptionalString(parsed.options["branch-name"]);
124
- if (branchName && branchName !== previewScopeRaw) {
125
- throw new Error("Named preview deploys use the --preview value as the preview scope. Omit --branch-name or pass the same value to both flags.");
126
- }
127
- const previewScope = resolvePreviewIdentifier({
128
- identifier: previewScopeRaw
129
- }).identifier ?? "preview";
130
- return {
131
- mode: "preview-scope",
132
- environment: "preview",
133
- targetFlag: "--preview",
134
- previewScope,
135
- previewScopeRaw,
136
- envOverrides: {
137
- DEVFLARE_PREVIEW_BRANCH: previewScopeRaw,
138
- DEVFLARE_PREVIEW_IDENTIFIER: previewScope,
139
- DEVFLARE_PREVIEW_PR: undefined
140
- }
141
- };
142
- }
143
- return {
144
- mode: "preview-upload",
145
- environment: "preview",
146
- targetFlag: "--preview",
147
- envOverrides: {
148
- DEVFLARE_PREVIEW_BRANCH: undefined,
149
- DEVFLARE_PREVIEW_IDENTIFIER: undefined,
150
- DEVFLARE_PREVIEW_PR: undefined
151
- }
152
- };
153
- }
154
- function applyResolvedDeployTarget(parsed, target) {
155
- if (!target.environment) {
156
- return parsed;
157
- }
158
- return {
159
- ...parsed,
160
- options: {
161
- ...parsed.options,
162
- env: target.environment
163
- }
164
- };
165
- }
166
- async function withTemporaryEnvironment(overrides, operation) {
167
- const previousValues = new Map;
168
- for (const [key, value] of Object.entries(overrides)) {
169
- previousValues.set(key, process.env[key]);
170
- if (typeof value === "string") {
171
- process.env[key] = value;
172
- continue;
173
- }
174
- delete process.env[key];
175
- }
176
- try {
177
- return await operation();
178
- } finally {
179
- for (const [key, value] of previousValues) {
180
- if (typeof value === "string") {
181
- process.env[key] = value;
182
- continue;
183
- }
184
- delete process.env[key];
185
- }
186
- }
187
- }
188
-
189
- // src/cli/preview.ts
190
- function matchNamedValue(output, patterns) {
191
- for (const pattern of patterns) {
192
- const match = output.match(pattern);
193
- if (match?.[1]) {
194
- return match[1];
195
- }
196
- }
197
- return;
198
- }
199
- function appendUniqueUrls(target, value) {
200
- if (typeof value === "string") {
201
- if (value.startsWith("http://") || value.startsWith("https://")) {
202
- target.push(value);
203
- }
204
- return;
205
- }
206
- if (!Array.isArray(value)) {
207
- return;
208
- }
209
- for (const item of value) {
210
- appendUniqueUrls(target, item);
211
- }
212
- }
213
- function parseWranglerStructuredOutput(output) {
214
- const records = output.replace(/\r/g, "").split(`
215
- `).map((line) => line.trim()).filter(Boolean).map((line) => {
216
- try {
217
- return JSON.parse(line);
218
- } catch {
219
- return null;
220
- }
221
- }).filter((record) => record !== null);
222
- const urls = [];
223
- let versionId;
224
- let previewUrl;
225
- for (const record of records) {
226
- if (!versionId && typeof record.version_id === "string" && record.version_id.trim()) {
227
- versionId = record.version_id.trim();
228
- }
229
- appendUniqueUrls(urls, record.targets);
230
- appendUniqueUrls(urls, record.preview_urls);
231
- appendUniqueUrls(urls, record.urls);
232
- appendUniqueUrls(urls, record.url);
233
- if (!previewUrl && typeof record.preview_url === "string" && record.preview_url.trim()) {
234
- previewUrl = record.preview_url.trim();
235
- }
236
- }
237
- const uniqueUrls = [...new Set(urls)];
238
- if (!previewUrl) {
239
- previewUrl = uniqueUrls.find((url) => url.includes("workers.dev"));
240
- }
241
- return {
242
- versionId,
243
- previewUrl,
244
- urls: uniqueUrls
245
- };
246
- }
247
- function mergeParsedWranglerDeployOutputs(...outputs) {
248
- const urls = [...new Set(outputs.flatMap((output) => output.urls))];
249
- return {
250
- versionId: outputs.map((output) => output.versionId).find((value) => Boolean(value)),
251
- previewUrl: outputs.map((output) => output.previewUrl).find((value) => Boolean(value)) ?? urls.find((url) => url.includes("workers.dev")),
252
- urls
253
- };
254
- }
255
- function parseWranglerDeployOutput(output) {
256
- const normalizedOutput = output.replace(/\r/g, "");
257
- const urls = [...new Set(normalizedOutput.match(/https?:\/\/[^\s'"`]+/g) ?? [])];
258
- const previewUrl = matchNamedValue(normalizedOutput, [
259
- /Preview URL:\s*(https?:\/\/\S+)/i,
260
- /Version Preview URL:\s*(https?:\/\/\S+)/i
261
- ]) ?? urls.find((url) => url.includes("workers.dev"));
262
- const versionId = matchNamedValue(normalizedOutput, [
263
- /Worker Version ID:\s*([A-Za-z0-9_-]+)/i,
264
- /Version ID:\s*([A-Za-z0-9_-]+)/i,
265
- /version(?:_id| id)?\s*[:=]\s*([A-Za-z0-9_-]+)/i,
266
- /"id"\s*:\s*"([A-Za-z0-9_-]+)"/i
267
- ]);
268
- return {
269
- versionId,
270
- previewUrl,
271
- urls
272
- };
273
- }
274
-
275
- // src/cli/commands/deploy/metadata.ts
276
- import { mkdir, writeFile } from "node:fs/promises";
277
- import { dirname } from "pathe";
278
- function inferRecordSource() {
279
- return process.env.GITHUB_ACTIONS === "true" ? "github-action" : "cli";
280
- }
281
- async function writeDeployResultMetadata(metadata) {
282
- const metadataPath = process.env.DEVFLARE_DEPLOY_METADATA_PATH?.trim();
283
- if (!metadataPath) {
284
- return;
285
- }
286
- await mkdir(dirname(metadataPath), { recursive: true });
287
- await writeFile(metadataPath, JSON.stringify(metadata, null, "\t"), "utf8");
288
- }
289
-
290
- // src/cli/commands/deploy/prepare.ts
291
- import { mkdir as mkdir2, open, readFile, rm } from "node:fs/promises";
292
- import { basename, dirname as dirname2, isAbsolute, resolve } from "pathe";
293
- function summarizeDeployResourceNames(resources) {
294
- const segments = [
295
- resources.kv.length > 0 ? `KV ${resources.kv.length}` : null,
296
- resources.d1.length > 0 ? `D1 ${resources.d1.length}` : null,
297
- resources.r2.length > 0 ? `R2 ${resources.r2.length}` : null,
298
- resources.queues.length > 0 ? `Queues ${resources.queues.length}` : null,
299
- resources.vectorize.length > 0 ? `Vectorize ${resources.vectorize.length}` : null,
300
- resources.hyperdrive.length > 0 ? `Hyperdrive ${resources.hyperdrive.length}` : null
301
- ].filter((segment) => segment !== null);
302
- return segments.length > 0 ? segments.join(" · ") : null;
303
- }
304
- async function readDeployRedirectPath(filePath) {
305
- const fs = await import("node:fs/promises");
306
- try {
307
- const rawConfig = await fs.readFile(filePath, "utf-8");
308
- const parsed = JSON.parse(rawConfig);
309
- if (typeof parsed.configPath !== "string" || parsed.configPath.length === 0) {
310
- return null;
311
- }
312
- return resolve(dirname2(filePath), parsed.configPath);
313
- } catch {
314
- return null;
315
- }
316
- }
317
- async function resolveBuildArtifactConfigPath(buildPath, cwd) {
318
- const fs = await import("node:fs/promises");
319
- const absoluteBuildPath = isAbsolute(buildPath) ? buildPath : resolve(cwd, buildPath);
320
- let stat;
321
- try {
322
- stat = await fs.stat(absoluteBuildPath);
323
- } catch {
324
- throw new Error(`Could not find build artifact path: ${absoluteBuildPath}`);
325
- }
326
- if (stat.isFile()) {
327
- if (basename(absoluteBuildPath) === "config.json") {
328
- const redirectedConfigPath = await readDeployRedirectPath(absoluteBuildPath);
329
- if (!redirectedConfigPath) {
330
- throw new Error(`Build redirect ${absoluteBuildPath} did not contain a valid configPath.`);
331
- }
332
- return redirectedConfigPath;
333
- }
334
- return absoluteBuildPath;
335
- }
336
- const candidates = [
337
- resolve(absoluteBuildPath, "wrangler.jsonc"),
338
- resolve(absoluteBuildPath, ".wrangler", "deploy", "config.json"),
339
- resolve(absoluteBuildPath, "config.json"),
340
- resolve(absoluteBuildPath, ".devflare", "build", "wrangler.jsonc")
341
- ];
342
- for (const candidatePath of candidates) {
343
- try {
344
- const candidateStat = await fs.stat(candidatePath);
345
- if (!candidateStat.isFile()) {
346
- continue;
347
- }
348
- if (basename(candidatePath) === "config.json") {
349
- const redirectedConfigPath = await readDeployRedirectPath(candidatePath);
350
- if (redirectedConfigPath) {
351
- return redirectedConfigPath;
352
- }
353
- continue;
354
- }
355
- return candidatePath;
356
- } catch {}
357
- }
358
- throw new Error(`Could not resolve a Wrangler build config from ${absoluteBuildPath}. Pass a .devflare/build directory, a generated wrangler.jsonc, or a .wrangler/deploy/config.json redirect.`);
359
- }
360
- function withBuildArtifactPaths(compiledConfig, buildConfig) {
361
- return {
362
- ...compiledConfig,
363
- ...buildConfig.main ? { main: buildConfig.main } : {},
364
- ...buildConfig.assets ? { assets: buildConfig.assets } : {}
365
- };
366
- }
367
- async function prepareDeployConfig(options) {
368
- const rawConfig = await loadConfig({
369
- cwd: options.cwd,
370
- configFile: options.configPath
371
- });
372
- const manifestDir = dirname2(options.buildConfigPath);
373
- const manifest = await readBuildManifest(manifestDir);
374
- if (manifest) {
375
- const currentManifest = createBuildManifest(rawConfig, {
376
- devflareVersion: await getPackageVersion(),
377
- intendedTarget: {
378
- environment: options.environment,
379
- preview: options.preview,
380
- branchName: options.branchName
381
- }
382
- });
383
- const drift = compareManifests(manifest, currentManifest);
384
- const warning = formatDriftWarning(drift);
385
- if (warning && options.logger) {
386
- if (options.force) {
387
- logLine(options.logger, warning);
388
- logLine(options.logger, "Continuing because --force was passed.");
389
- } else {
390
- logLine(options.logger, warning);
391
- }
392
- }
393
- }
394
- const previewScopedResources = options.environment === "preview" ? await preparePreviewScopedResourcesForDeploy(rawConfig, {
395
- environment: options.environment
396
- }) : null;
397
- const deployResources = await prepareConfigResourcesForDeploy(previewScopedResources?.config ?? rawConfig, {
398
- environment: options.environment,
399
- accountId: previewScopedResources?.accountId,
400
- cloudflare: previewScopedResources?.resourceResolutionCloudflare
401
- });
402
- const deploymentStrategy = applyDeploymentStrategy(deployResources.config, {
403
- environment: options.environment,
404
- preview: options.preview,
405
- branchName: options.branchName,
406
- previewBranch: process.env.DEVFLARE_PREVIEW_BRANCH
407
- });
408
- const validationAccountId = previewScopedResources?.accountId ?? deploymentStrategy.config.accountId ?? process.env.CLOUDFLARE_ACCOUNT_ID;
409
- if (validationAccountId) {
410
- try {
411
- await validateServiceBindings(deploymentStrategy.config, validationAccountId, {
412
- listWorkers: (accountId) => listWorkers(accountId),
413
- selfWorkerName: deploymentStrategy.config.name
414
- });
415
- } catch (error) {
416
- if (error instanceof ServiceBindingValidationError) {
417
- throw error;
418
- }
419
- }
420
- }
421
- const buildWranglerConfig = await readWranglerConfig(options.buildConfigPath);
422
- const compiledWranglerConfig = compileConfig(deploymentStrategy.config);
423
- const buildDir = dirname2(options.buildConfigPath);
424
- const deployArtefactDir = resolve(buildDir, "..", "deploy");
425
- await mkdir2(deployArtefactDir, { recursive: true });
426
- const deployArtefactPath = resolve(deployArtefactDir, "wrangler.jsonc");
427
- const compiledRebased = rebaseWranglerConfigPaths(options.cwd, deployArtefactDir, compiledWranglerConfig);
428
- const buildRebased = rebaseWranglerConfigPaths(buildDir, deployArtefactDir, buildWranglerConfig);
429
- const wranglerConfig = withBuildArtifactPaths(compiledRebased, buildRebased);
430
- const lockPath = resolve(deployArtefactDir, ".lock");
431
- const lockHandle = await acquireDeployArtefactLock(lockPath);
432
- try {
433
- await writeWranglerConfig(deployArtefactDir, wranglerConfig, "wrangler.jsonc");
434
- } finally {
435
- await releaseDeployArtefactLock(lockHandle, lockPath);
436
- }
437
- return {
438
- config: deploymentStrategy.config,
439
- deployConfigPath: deployArtefactPath,
440
- previewScopedResources,
441
- deployResources,
442
- wranglerConfig
443
- };
444
- }
445
- async function acquireDeployArtefactLock(lockPath, options = {}) {
446
- const maxWaitMs = options.maxWaitMs ?? 30000;
447
- const staleAfterMs = options.staleAfterMs ?? 60000;
448
- const pollMs = 100;
449
- const start = Date.now();
450
- while (true) {
451
- try {
452
- const handle = await open(lockPath, "wx");
453
- await handle.writeFile(`${process.pid}
454
- ${Date.now()}`);
455
- return handle;
456
- } catch (err) {
457
- if (err.code !== "EEXIST")
458
- throw err;
459
- try {
460
- const existing = await readFile(lockPath, "utf-8");
461
- const ts = Number.parseInt(existing.split(`
462
- `)[1] ?? "0", 10);
463
- if (Number.isFinite(ts) && Date.now() - ts > staleAfterMs) {
464
- await rm(lockPath, { force: true });
465
- continue;
466
- }
467
- } catch {
468
- continue;
469
- }
470
- if (Date.now() - start > maxWaitMs) {
471
- throw new Error(`Timed out waiting for deploy artefact lock at ${lockPath}. Another \`devflare deploy\` may be running against the same artefact directory.`);
472
- }
473
- await new Promise((r) => setTimeout(r, pollMs));
474
- }
475
- }
476
- }
477
- async function releaseDeployArtefactLock(handle, lockPath) {
478
- try {
479
- await handle.close();
480
- } catch {}
481
- await rm(lockPath, { force: true });
482
- }
483
-
484
- // src/cli/commands/deploy/runtime.ts
485
- async function resolveLocalWranglerExecutable(cwd, fs) {
486
- const wranglerExecutablePath = resolvePackageSpecifier("wrangler/bin/wrangler.js", cwd);
487
- try {
488
- await fs.access(wranglerExecutablePath);
489
- return wranglerExecutablePath;
490
- } catch {
491
- return null;
492
- }
493
- }
494
-
495
- // src/cli/commands/deploy/verification.ts
496
- function shouldVerifyDeployControlPlane() {
497
- const configured = process.env.DEVFLARE_VERIFY_DEPLOYMENT?.trim().toLowerCase();
498
- if (!configured) {
499
- return false;
500
- }
501
- return !["0", "false", "no", "off"].includes(configured);
502
- }
503
- function shouldRequireFreshProductionDeployment() {
504
- const configured = process.env.DEVFLARE_REQUIRE_FRESH_PRODUCTION_DEPLOYMENT?.trim().toLowerCase();
505
- if (!configured) {
506
- return false;
507
- }
508
- return !["0", "false", "no", "off"].includes(configured);
509
- }
510
- function getDeployVerificationSettings() {
511
- const attempts = Number.parseInt(process.env.DEVFLARE_VERIFY_DEPLOYMENT_ATTEMPTS ?? "", 10);
512
- const delayMs = Number.parseInt(process.env.DEVFLARE_VERIFY_DEPLOYMENT_DELAY_MS ?? "", 10);
513
- return {
514
- attempts: Number.isFinite(attempts) && attempts > 0 ? attempts : 5,
515
- delayMs: Number.isFinite(delayMs) && delayMs >= 0 ? delayMs : 1500
516
- };
517
- }
518
- var DEPLOYMENT_LOOKBACK_TOLERANCE_MS = 2 * 60 * 1000;
519
- function normalizeCloudflareAccountId(value) {
520
- const trimmed = value?.trim();
521
- if (!trimmed) {
522
- return;
523
- }
524
- return /^[a-f0-9]{32}$/i.test(trimmed) ? trimmed : undefined;
525
- }
526
- async function waitForDeployVerification(delayMs) {
527
- if (delayMs <= 0) {
528
- return;
529
- }
530
- await new Promise((resolve2) => setTimeout(resolve2, delayMs));
531
- }
532
- async function retryDeployVerification(description, operation) {
533
- const { attempts, delayMs } = getDeployVerificationSettings();
534
- let lastError;
535
- for (let attempt = 1;attempt <= attempts; attempt++) {
536
- try {
537
- return await operation();
538
- } catch (error) {
539
- lastError = error;
540
- if (attempt < attempts) {
541
- await waitForDeployVerification(delayMs);
542
- }
543
- }
544
- }
545
- const message = lastError instanceof Error ? lastError.message : String(lastError);
546
- throw new Error(`Cloudflare could not verify ${description} after ${attempts} attempt${attempts === 1 ? "" : "s"}: ${message}`);
547
- }
548
- async function resolveDeployAccountId(preferredAccountId) {
549
- if (preferredAccountId !== undefined) {
550
- return normalizeCloudflareAccountId(preferredAccountId);
551
- }
552
- const apiToken = process.env.CLOUDFLARE_API_TOKEN?.trim();
553
- const apiKey = process.env.CLOUDFLARE_API_KEY?.trim();
554
- const apiEmail = process.env.CLOUDFLARE_EMAIL?.trim();
555
- if (!apiToken && !(apiKey && apiEmail)) {
556
- return;
557
- }
558
- try {
559
- const primaryAccount = await getPrimaryAccount();
560
- if (!primaryAccount) {
561
- return;
562
- }
563
- const effective = await getEffectiveAccountId(primaryAccount.id);
564
- return normalizeCloudflareAccountId(effective.accountId);
565
- } catch {
566
- return;
567
- }
568
- }
569
- function selectDeploymentVersionId(deployment) {
570
- return deployment.versions.find((version) => version.percentage === 100)?.versionId ?? deployment.versions[0]?.versionId;
571
- }
572
- function getWorkerVersionTimestamp(version) {
573
- return version.metadata.modifiedOn ?? version.metadata.createdOn;
574
- }
575
- async function resolveVersionIdFromLatestDeployment(options) {
576
- return retryDeployVerification(options.verificationDescription, async () => {
577
- const deployments = await listWorkerDeployments(options.accountId, options.workerName);
578
- const latestDeployment = [...deployments].sort((a, b) => b.createdOn.getTime() - a.createdOn.getTime())[0];
579
- if (!latestDeployment) {
580
- throw new Error(`No deployments were found for Worker "${options.workerName}".`);
581
- }
582
- if (options.deployedAfter && latestDeployment.createdOn.getTime() < options.deployedAfter.getTime() - DEPLOYMENT_LOOKBACK_TOLERANCE_MS) {
583
- throw new Error(`${options.deploymentLabel} ${latestDeployment.id} was created before this deploy started.`);
584
- }
585
- const versionId = selectDeploymentVersionId(latestDeployment);
586
- if (!versionId) {
587
- throw new Error(`${options.deploymentLabel} ${latestDeployment.id} does not reference any version ids.`);
588
- }
589
- return {
590
- deploymentId: latestDeployment.id,
591
- versionId
592
- };
593
- });
594
- }
595
- async function resolveVersionIdFromLatestWorkerVersion(options) {
596
- return retryDeployVerification(`the latest ${options.preview ? "preview " : ""}version for Worker "${options.workerName}"`, async () => {
597
- const versions = await listWorkerVersions(options.accountId, options.workerName);
598
- const latestVersion = [...versions].filter((version) => version.id).filter((version) => version.metadata.hasPreview === options.preview).sort((a, b) => {
599
- const left = getWorkerVersionTimestamp(a)?.getTime() ?? 0;
600
- const right = getWorkerVersionTimestamp(b)?.getTime() ?? 0;
601
- return right - left;
602
- })[0];
603
- if (!latestVersion) {
604
- throw new Error(`No ${options.preview ? "preview " : ""}versions were found for Worker "${options.workerName}".`);
605
- }
606
- const latestVersionTimestamp = getWorkerVersionTimestamp(latestVersion);
607
- if (!latestVersionTimestamp) {
608
- throw new Error(`Latest version ${latestVersion.id} did not include a creation timestamp.`);
609
- }
610
- if (latestVersionTimestamp.getTime() < options.deployedAfter.getTime() - DEPLOYMENT_LOOKBACK_TOLERANCE_MS) {
611
- throw new Error(`Latest version ${latestVersion.id} was created before this deploy started.`);
612
- }
613
- return latestVersion.id;
614
- });
615
- }
616
- async function resolveVersionIdFromLatestProductionDeployment(options) {
617
- return resolveVersionIdFromLatestDeployment({
618
- accountId: options.accountId,
619
- workerName: options.workerName,
620
- verificationDescription: `the latest deployment for Worker "${options.workerName}"`,
621
- deploymentLabel: "Latest deployment",
622
- deployedAfter: options.deployedAfter
623
- });
624
- }
625
- async function resolveVersionIdFromCurrentProductionDeployment(options) {
626
- return resolveVersionIdFromLatestDeployment({
627
- accountId: options.accountId,
628
- workerName: options.workerName,
629
- verificationDescription: `the current active deployment for Worker "${options.workerName}"`,
630
- deploymentLabel: "Current deployment"
631
- });
632
- }
633
- async function verifyDeployControlPlane(options) {
634
- logLine(options.logger, dim("Verifying Cloudflare control-plane state…", options.theme));
635
- await retryDeployVerification(`Worker version ${options.versionId}`, async () => {
636
- const version = await getWorkerVersionDetail(options.accountId, options.workerName, options.versionId);
637
- if (!version.id) {
638
- throw new Error(`Cloudflare returned an empty version record for ${options.versionId}.`);
639
- }
640
- return version;
641
- });
642
- if (options.preview) {
643
- options.logger.success(`Verified preview upload in Cloudflare control plane for version ${options.versionId}`);
644
- return;
645
- }
646
- const deployment = await retryDeployVerification(`a deployment that references version ${options.versionId}`, async () => {
647
- const deployments = await listWorkerDeployments(options.accountId, options.workerName);
648
- const match = deployments.find((item) => item.versions.some((version) => version.versionId === options.versionId));
649
- if (!match) {
650
- throw new Error(`No deployment for Worker "${options.workerName}" references version ${options.versionId} yet.`);
651
- }
652
- return match;
653
- });
654
- options.logger.success(`Verified Cloudflare deployment ${deployment.id} for version ${options.versionId}`);
655
- }
656
-
657
- // src/cli/commands/deploy.ts
658
- async function runDeployCommand(parsed, logger, options) {
659
- let deployTarget = {
660
- mode: "implicit",
661
- envOverrides: {}
662
- };
663
- let resolvedParsed = parsed;
664
- const cwd = options.cwd || process.cwd();
665
- let configPath;
666
- let environment;
667
- let dryRun = false;
668
- let preview = false;
669
- let branchName;
670
- let deployMessage;
671
- let deployTag;
672
- let previewScopeName;
673
- let requireFreshProductionDeployment = false;
674
- let resolvedPreviewScopeName = process.env.DEVFLARE_PREVIEW_BRANCH?.trim() || undefined;
675
- const theme = createCliTheme(parsed.options);
676
- logLine(logger);
677
- logLine(logger, `${yellowBold("deploy", theme)} ${dim("Shipping to Cloudflare", theme)}`);
678
- try {
679
- deployTarget = resolveDeployTarget(parsed, {
680
- requireExplicitTarget: options.requireExplicitDeployTarget === true
681
- });
682
- resolvedParsed = applyResolvedDeployTarget(parsed, deployTarget);
683
- configPath = resolvedParsed.options.config;
684
- environment = resolvedParsed.options.env;
685
- dryRun = resolvedParsed.options["dry-run"] === true;
686
- preview = deployTarget.mode === "preview-upload";
687
- branchName = resolvedParsed.options["branch-name"];
688
- deployMessage = resolvedParsed.options.message;
689
- deployTag = resolvedParsed.options.tag;
690
- previewScopeName = branchName?.trim() || deployTarget.previewScopeRaw || undefined;
691
- resolvedPreviewScopeName = previewScopeName || process.env.DEVFLARE_PREVIEW_BRANCH?.trim() || undefined;
692
- requireFreshProductionDeployment = !preview && shouldRequireFreshProductionDeployment();
693
- return await withTemporaryEnvironment(deployTarget.envOverrides, async () => {
694
- resolvedPreviewScopeName = previewScopeName || process.env.DEVFLARE_PREVIEW_BRANCH?.trim() || undefined;
695
- if (dryRun) {
696
- const config = await loadConfig({ cwd, configFile: configPath });
697
- const deploymentStrategy = applyDeploymentStrategy(resolveConfigForEnvironment(config, environment), {
698
- environment,
699
- preview,
700
- branchName,
701
- previewBranch: process.env.DEVFLARE_PREVIEW_BRANCH
702
- });
703
- const wranglerConfig = compileBuildConfig(deploymentStrategy.config, undefined, {
704
- alreadyResolved: true
705
- });
706
- logLine(logger, `${yellow("dry run", theme)} ${dim("Skipping actual deployment", theme)}`);
707
- const deploymentStrategyMessage = describeDeploymentStrategy(deploymentStrategy);
708
- if (deploymentStrategyMessage) {
709
- logLine(logger, dim(deploymentStrategyMessage, theme));
710
- }
711
- logLine(logger, dim("Would deploy with wrangler config:", theme));
712
- logLine(logger, stringifyConfig(wranglerConfig));
713
- try {
714
- const describeResult = await prepareConfigResourcesForDeploy(deploymentStrategy.config, {
715
- environment,
716
- describeOnly: true
717
- });
718
- const resolvedWranglerConfig = compileConfig(describeResult.config);
719
- logLine(logger, dim("Resolved view (would-create placeholders for missing resources):", theme));
720
- logLine(logger, stringifyConfig(resolvedWranglerConfig));
721
- const wouldCreate = [
722
- ...describeResult.created.kv.map((n) => `KV: ${n}`),
723
- ...describeResult.created.d1.map((n) => `D1: ${n}`),
724
- ...describeResult.created.r2.map((n) => `R2: ${n}`),
725
- ...describeResult.created.queues.map((n) => `Queue: ${n}`)
726
- ];
727
- if (wouldCreate.length > 0) {
728
- logLine(logger, dim(`Would create:
729
- - ${wouldCreate.join(`
730
- - `)}`, theme));
731
- }
732
- } catch (describeErr) {
733
- logLine(logger, dim(`(resolved view unavailable: ${describeErr.message})`, theme));
734
- }
735
- return { exitCode: 0 };
736
- }
737
- const deps = await getDependencies();
738
- const requestedBuildPath = resolvedParsed.options.build;
739
- const buildConfigPath = requestedBuildPath ? await resolveBuildArtifactConfigPath(requestedBuildPath, cwd) : (await prepareBuildArtifacts(resolvedParsed, logger, options)).deployConfigPath;
740
- const prepared = await prepareDeployConfig({
741
- cwd,
742
- configPath,
743
- environment,
744
- buildConfigPath,
745
- preview,
746
- branchName,
747
- logger,
748
- force: resolvedParsed.options.force === true
749
- });
750
- const createdPreviewResourcesSummary = prepared.previewScopedResources ? summarizeDeployResourceNames(prepared.previewScopedResources.created) : null;
751
- if (createdPreviewResourcesSummary) {
752
- logLine(logger, `Provisioned preview-scoped resources: ${createdPreviewResourcesSummary}`);
753
- }
754
- const existingPreviewResourcesSummary = prepared.previewScopedResources ? summarizeDeployResourceNames(prepared.previewScopedResources.existing) : null;
755
- if (existingPreviewResourcesSummary) {
756
- logLine(logger, `Reused preview-scoped resources: ${existingPreviewResourcesSummary}`);
757
- }
758
- const createdDeployResourcesSummary = summarizeDeployResourceNames(prepared.deployResources.created);
759
- if (createdDeployResourcesSummary) {
760
- logLine(logger, `Provisioned deploy resources: ${createdDeployResourcesSummary}`);
761
- }
762
- const existingDeployResourcesSummary = summarizeDeployResourceNames(prepared.deployResources.existing);
763
- if (existingDeployResourcesSummary) {
764
- logLine(logger, `Reused deploy resources: ${existingDeployResourcesSummary}`);
765
- }
766
- for (const warning of prepared.previewScopedResources?.warnings ?? []) {
767
- logger.warn(warning);
768
- }
769
- for (const warning of prepared.deployResources.warnings) {
770
- logger.warn(warning);
771
- }
772
- if (requestedBuildPath) {
773
- logLine(logger, `${dim("build", theme)} ${green(buildConfigPath, theme)}`);
774
- }
775
- logLine(logger, `${dim("worker", theme)} ${green(prepared.config.name, theme)}`);
776
- const localWranglerExecutable = await resolveLocalWranglerExecutable(cwd, deps.fs);
777
- const isBranchScopedPreviewDeployment = !preview && environment === "preview" && typeof resolvedPreviewScopeName === "string" && resolvedPreviewScopeName.length > 0;
778
- if (preview) {
779
- logger.warn("Cloudflare preview uploads cannot be the first upload for a brand-new Worker.");
780
- if (prepared.config.bindings?.durableObjects && Object.keys(prepared.config.bindings.durableObjects).length > 0) {
781
- logger.warn("Cloudflare does not currently generate preview URLs for Workers that implement Durable Objects.");
782
- }
783
- if (prepared.config.migrations && prepared.config.migrations.length > 0) {
784
- logger.warn("Cloudflare versions upload does not currently support Durable Object migrations.");
785
- }
786
- }
787
- logLine(logger, dim(preview ? "Uploading preview version with Wrangler…" : "Deploying with Wrangler…", theme));
788
- const deployStartedAt = new Date;
789
- const wranglerOutputDirectory = join(cwd, ".devflare");
790
- const wranglerOutputFilePath = join(wranglerOutputDirectory, `wrangler-output-${Date.now()}-${process.pid}.ndjson`);
791
- await deps.fs.mkdir(wranglerOutputDirectory, { recursive: true });
792
- const wranglerCommand = localWranglerExecutable ? "node" : "bunx";
793
- const wranglerArgs = preview ? localWranglerExecutable ? [localWranglerExecutable, "versions", "upload"] : ["wrangler", "versions", "upload"] : localWranglerExecutable ? [localWranglerExecutable, "deploy"] : ["wrangler", "deploy"];
794
- wranglerArgs.push("--config", prepared.deployConfigPath);
795
- if (deployMessage?.trim()) {
796
- wranglerArgs.push("--message", deployMessage.trim());
797
- }
798
- if (deployTag?.trim()) {
799
- wranglerArgs.push("--tag", deployTag.trim());
800
- }
801
- const deployProc = await deps.exec.exec(wranglerCommand, wranglerArgs, {
802
- cwd,
803
- stdio: "inherit",
804
- env: {
805
- ...process.env,
806
- WRANGLER_OUTPUT_FILE_PATH: wranglerOutputFilePath,
807
- FORCE_COLOR: process.env.FORCE_COLOR ?? "0"
808
- }
809
- });
810
- let structuredOutput = "";
811
- try {
812
- structuredOutput = await deps.fs.readFile(wranglerOutputFilePath, "utf8");
813
- } catch {
814
- structuredOutput = "";
815
- } finally {
816
- try {
817
- await deps.fs.unlink(wranglerOutputFilePath);
818
- } catch {}
819
- }
820
- const parsedConsoleOutput = parseWranglerDeployOutput([deployProc.stdout, deployProc.stderr].filter((value) => typeof value === "string" && value.length > 0).join(`
821
- `));
822
- const parsedStructuredOutput = structuredOutput ? parseWranglerStructuredOutput(structuredOutput) : { urls: [], versionId: undefined, previewUrl: undefined };
823
- const parsedOutput = mergeParsedWranglerDeployOutputs(parsedConsoleOutput, parsedStructuredOutput);
824
- const workersDevUrl = parsedOutput.urls.find((url) => url.includes("workers.dev"));
825
- const configuredAccountId = normalizeCloudflareAccountId(prepared.config.accountId) ?? normalizeCloudflareAccountId(process.env.CLOUDFLARE_ACCOUNT_ID);
826
- let resolvedAccountId = configuredAccountId;
827
- let didAttemptAccountResolution = false;
828
- const versionRecoveryDiagnostics = [];
829
- const ensureResolvedAccountId = async () => {
830
- if (resolvedAccountId || didAttemptAccountResolution) {
831
- return resolvedAccountId;
832
- }
833
- didAttemptAccountResolution = true;
834
- resolvedAccountId = await resolveDeployAccountId(undefined);
835
- return resolvedAccountId;
836
- };
837
- let resolvedVersionId = parsedOutput.versionId;
838
- let resolvedPreviewUrl = parsedOutput.previewUrl;
839
- let loggedVersionId = false;
840
- let verificationNote;
841
- const persistDeployMetadata = async (input) => {
842
- await writeDeployResultMetadata({
843
- status: input.status,
844
- exitCode: input.exitCode,
845
- workerName: prepared.config.name,
846
- preview,
847
- branchScopedPreview: isBranchScopedPreviewDeployment,
848
- previewScope: resolvedPreviewScopeName,
849
- versionId: resolvedVersionId,
850
- previewUrl: resolvedPreviewUrl,
851
- workersDevUrl,
852
- verificationNote,
853
- outputUrls: parsedOutput.urls,
854
- structuredOutput,
855
- ...input.error ? { error: input.error } : {}
856
- });
857
- };
858
- if (deployProc.exitCode !== 0) {
859
- await persistDeployMetadata({
860
- status: "failure",
861
- exitCode: 1,
862
- error: deployProc.stderr || deployProc.stdout || "Wrangler deploy failed"
863
- });
864
- logger.error("Deployment failed");
865
- return { exitCode: 1, output: structuredOutput };
866
- }
867
- if (!preview && !resolvedVersionId && !isBranchScopedPreviewDeployment) {
868
- resolvedAccountId = await ensureResolvedAccountId();
869
- }
870
- if (isBranchScopedPreviewDeployment && !resolvedPreviewUrl) {
871
- resolvedAccountId = await ensureResolvedAccountId();
872
- }
873
- if (isBranchScopedPreviewDeployment && !resolvedPreviewUrl && resolvedAccountId) {
874
- const workersSubdomain = await getWorkersSubdomain(resolvedAccountId);
875
- if (workersSubdomain) {
876
- resolvedPreviewUrl = formatWorkersDevUrl(prepared.config.name, workersSubdomain);
877
- }
878
- }
879
- if (!resolvedVersionId && resolvedAccountId) {
880
- try {
881
- resolvedVersionId = await resolveVersionIdFromLatestWorkerVersion({
882
- accountId: resolvedAccountId,
883
- workerName: prepared.config.name,
884
- preview: preview || isBranchScopedPreviewDeployment,
885
- deployedAfter: deployStartedAt
886
- });
887
- logger.success(`Version ID: ${resolvedVersionId}`);
888
- loggedVersionId = true;
889
- logLine(logger, dim("Resolved version id from Cloudflare version metadata", theme));
890
- } catch (error) {
891
- const message = error instanceof Error ? error.message : String(error);
892
- versionRecoveryDiagnostics.push(`version lookup: ${message}`);
893
- }
894
- }
895
- if (isBranchScopedPreviewDeployment && !resolvedVersionId && resolvedAccountId) {
896
- try {
897
- const fallbackDeployment = await resolveVersionIdFromLatestProductionDeployment({
898
- accountId: resolvedAccountId,
899
- workerName: prepared.config.name,
900
- deployedAfter: deployStartedAt
901
- });
902
- resolvedVersionId = fallbackDeployment.versionId;
903
- logger.success(`Version ID: ${resolvedVersionId}`);
904
- loggedVersionId = true;
905
- logLine(logger, dim(`Resolved version id from Cloudflare deployment ${fallbackDeployment.deploymentId}`, theme));
906
- } catch (error) {
907
- const message = error instanceof Error ? error.message : String(error);
908
- versionRecoveryDiagnostics.push(`deployment lookup: ${message}`);
909
- }
910
- }
911
- if (!preview && !isBranchScopedPreviewDeployment && !resolvedVersionId && resolvedAccountId) {
912
- try {
913
- const fallbackDeployment = await resolveVersionIdFromLatestProductionDeployment({
914
- accountId: resolvedAccountId,
915
- workerName: prepared.config.name,
916
- deployedAfter: deployStartedAt
917
- });
918
- resolvedVersionId = fallbackDeployment.versionId;
919
- logger.success(`Version ID: ${resolvedVersionId}`);
920
- loggedVersionId = true;
921
- logLine(logger, dim(`Resolved version id from Cloudflare deployment ${fallbackDeployment.deploymentId}`, theme));
922
- } catch (error) {
923
- const message = error instanceof Error ? error.message : String(error);
924
- versionRecoveryDiagnostics.push(`deployment lookup: ${message}`);
925
- }
926
- }
927
- if (!preview && !isBranchScopedPreviewDeployment && !resolvedVersionId && resolvedAccountId) {
928
- try {
929
- const currentDeployment = await resolveVersionIdFromCurrentProductionDeployment({
930
- accountId: resolvedAccountId,
931
- workerName: prepared.config.name
932
- });
933
- resolvedVersionId = currentDeployment.versionId;
934
- logger.success(`Version ID: ${resolvedVersionId}`);
935
- loggedVersionId = true;
936
- const reuseMessage = `Cloudflare did not expose a fresh deployment or version after verification retries, and the current active deployment ${currentDeployment.deploymentId} still points at version ${resolvedVersionId}. This usually means the built Worker code and configuration were unchanged, so Cloudflare kept the existing live version.`;
937
- verificationNote = reuseMessage;
938
- if (requireFreshProductionDeployment) {
939
- await persistDeployMetadata({
940
- status: "failure",
941
- exitCode: 1,
942
- error: reuseMessage
943
- });
944
- logger.error(`Deployment verification failed: ${reuseMessage} This run requires a fresh production deployment, so Devflare is treating the reused live version as a failure.`);
945
- return { exitCode: 1, output: structuredOutput };
946
- }
947
- logger.warn(`Deployment verification note: ${reuseMessage}`);
948
- } catch (error) {
949
- const message = error instanceof Error ? error.message : String(error);
950
- versionRecoveryDiagnostics.push(`current production deployment: ${message}`);
951
- }
952
- }
953
- if (resolvedVersionId && !loggedVersionId) {
954
- logger.success(`Version ID: ${resolvedVersionId}`);
955
- }
956
- if (isBranchScopedPreviewDeployment && !resolvedPreviewUrl && resolvedAccountId) {
957
- const workersSubdomain = await getWorkersSubdomain(resolvedAccountId);
958
- if (workersSubdomain) {
959
- resolvedPreviewUrl = formatWorkersDevUrl(prepared.config.name, workersSubdomain);
960
- }
961
- }
962
- if ((preview || isBranchScopedPreviewDeployment) && resolvedPreviewUrl) {
963
- logLine(logger, `Preview URL: ${resolvedPreviewUrl}`);
964
- }
965
- if (shouldVerifyDeployControlPlane()) {
966
- if (!resolvedVersionId) {
967
- const recoveryDetails = versionRecoveryDiagnostics.length > 0 ? ` Cloudflare fallback checks also failed: ${versionRecoveryDiagnostics.join(" | ")}` : "";
968
- await persistDeployMetadata({
969
- status: "failure",
970
- exitCode: 1,
971
- error: `Wrangler did not return a Worker version id, so Devflare could not prove which version Cloudflare accepted.${recoveryDetails}`
972
- });
973
- logger.error(`Deployment verification failed: Wrangler did not return a Worker version id, so Devflare could not prove which version Cloudflare accepted.${recoveryDetails}`);
974
- return { exitCode: 1, output: structuredOutput };
975
- }
976
- resolvedAccountId = await ensureResolvedAccountId();
977
- if (!resolvedAccountId) {
978
- await persistDeployMetadata({
979
- status: "failure",
980
- exitCode: 1,
981
- error: "Devflare could not resolve a Cloudflare account id."
982
- });
983
- logger.error("Deployment verification failed: Devflare could not resolve a Cloudflare account id. Pass cloudflare-account-id to the action or set accountId in devflare.config.ts.");
984
- return { exitCode: 1, output: structuredOutput };
985
- }
986
- try {
987
- await verifyDeployControlPlane({
988
- accountId: resolvedAccountId,
989
- workerName: prepared.config.name,
990
- versionId: resolvedVersionId,
991
- preview,
992
- logger,
993
- theme
994
- });
995
- } catch (error) {
996
- const message = error instanceof Error ? error.message : String(error);
997
- await persistDeployMetadata({
998
- status: "failure",
999
- exitCode: 1,
1000
- error: message
1001
- });
1002
- logger.error(`Deployment verification failed: ${message}`);
1003
- return { exitCode: 1, output: structuredOutput };
1004
- }
1005
- }
1006
- if (resolvedAccountId) {
1007
- const previewRegistryScope = isBranchScopedPreviewDeployment ? deployTarget.previewScope : undefined;
1008
- const previewRegistryUrl = preview || isBranchScopedPreviewDeployment ? resolvedPreviewUrl : undefined;
1009
- try {
1010
- await reconcilePreviewRegistry({
1011
- accountId: resolvedAccountId,
1012
- workerName: prepared.config.name,
1013
- versionId: resolvedVersionId,
1014
- previewScope: previewRegistryScope,
1015
- previewUrl: previewRegistryUrl,
1016
- branchName: resolvedPreviewScopeName,
1017
- commitSha: process.env.GITHUB_SHA,
1018
- source: inferRecordSource(),
1019
- deploymentMessage: process.env.GITHUB_EVENT_NAME,
1020
- logger
1021
- });
1022
- } catch (error) {
1023
- const message = error instanceof Error ? error.message : String(error);
1024
- logger.warn(`Devflare preview registry sync failed: ${message}`);
1025
- }
1026
- }
1027
- await persistDeployMetadata({
1028
- status: "success",
1029
- exitCode: 0
1030
- });
1031
- logger.success("Deployed successfully!");
1032
- return { exitCode: 0, output: structuredOutput };
1033
- });
1034
- } catch (error) {
1035
- await writeDeployResultMetadata({
1036
- status: "failure",
1037
- exitCode: 1,
1038
- preview,
1039
- branchScopedPreview: !preview && environment === "preview" && Boolean(resolvedPreviewScopeName),
1040
- previewScope: resolvedPreviewScopeName,
1041
- outputUrls: [],
1042
- ...error instanceof Error ? { error: error.message } : { error: String(error) }
1043
- });
1044
- if (error instanceof Error) {
1045
- logger.error("Deployment failed:", error.message);
1046
- if (resolvedParsed.options.debug) {
1047
- logger.error(error.stack);
1048
- }
1049
- }
1050
- return { exitCode: 1 };
1051
- }
1052
- }
1053
- export {
1054
- runDeployCommand
1055
- };