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,1372 +0,0 @@
1
- import {
2
- getPackageVersion
3
- } from "./index-6h8xbs75.js";
4
- import {
5
- accent,
6
- createCliTheme,
7
- cyan,
8
- cyanBold,
9
- dim,
10
- formatBullet,
11
- formatCommand,
12
- logLine
13
- } from "./index-stgn34cr.js";
14
- import {
15
- __require
16
- } from "./index-37x76zdn.js";
17
-
18
- // src/cli/index.ts
19
- import { createConsola } from "consola";
20
-
21
- // src/cli/help-pages/shared.ts
22
- var COMMANDS = ["init", "dev", "build", "deploy", "types", "doctor", "config", "account", "login", "previews", "productions", "worker", "tokens", "ai", "remote", "help", "version"];
23
- var COMMAND_ALIASES = {};
24
- var COMMON_OPTIONS = [
25
- { command: "--config <path>", description: "Select a specific devflare config file when the command supports it" },
26
- { command: "--env <name>", description: "Resolve config.env[name] when the command supports environments" },
27
- { command: "--debug", description: "Print extra stack traces and debug output for supported commands" },
28
- { command: "--no-color", description: "Disable ANSI color output" },
29
- { command: "-h, --help", description: "Show detailed help for the current command" },
30
- { command: "-v, --version", description: "Show the installed devflare version" }
31
- ];
32
- var ACCOUNT_OPTION = {
33
- command: "--account <id>",
34
- description: "Use a specific Cloudflare account instead of the workspace/global/default account"
35
- };
36
- var PREVIEWS_COMMON_OPTIONS = [
37
- { command: "--account <id>", description: "Use a specific Cloudflare account for preview Worker and preview-resource operations" }
38
- ];
39
- function entry(command, description) {
40
- return { command, description };
41
- }
42
- function createSubcommandHelpPage(options) {
43
- return {
44
- path: [options.parentPath, options.subcommand],
45
- summary: options.summary,
46
- usage: options.usage,
47
- description: options.description,
48
- ...options.options !== undefined ? { options: options.options } : {},
49
- ...options.examples !== undefined ? { examples: options.examples } : {},
50
- ...options.notes !== undefined ? { notes: options.notes } : {}
51
- };
52
- }
53
- function createOptionedSubcommandHelpPageFactory(parentPath) {
54
- return (subcommand, summary, usage, description, options, examples, notes = []) => {
55
- return createSubcommandHelpPage({
56
- parentPath,
57
- subcommand,
58
- summary,
59
- usage,
60
- description,
61
- options,
62
- examples,
63
- notes
64
- });
65
- };
66
- }
67
- function createAccountInventoryPage(subcommand, summary, description, exampleDescription) {
68
- return createSubcommandHelpPage({
69
- parentPath: "account",
70
- subcommand,
71
- summary,
72
- usage: [
73
- `devflare account ${subcommand} [--account <id>]`
74
- ],
75
- description: [description],
76
- options: [ACCOUNT_OPTION],
77
- examples: [
78
- entry(`devflare account ${subcommand}`, exampleDescription)
79
- ],
80
- notes: [
81
- "Omit --account to resolve the account from workspace preferences, CLOUDFLARE_ACCOUNT_ID, devflare.config.*, or the primary authenticated account."
82
- ]
83
- });
84
- }
85
- function createRemoteSubcommandPage(subcommand, summary, usage, description, examples, notes) {
86
- return createSubcommandHelpPage({
87
- parentPath: "remote",
88
- subcommand,
89
- summary,
90
- usage,
91
- description,
92
- examples,
93
- notes
94
- });
95
- }
96
- var createPreviewSubcommandPage = createOptionedSubcommandHelpPageFactory("previews");
97
- var createProductionsSubcommandPage = createOptionedSubcommandHelpPageFactory("productions");
98
-
99
- // src/cli/help-pages/render.ts
100
- function createHelpPageMap(pages) {
101
- return new Map(pages.map((page) => [page.path.join(" "), page]));
102
- }
103
- function canonicalizeHelpPath(path) {
104
- const trimmedPath = path.map((segment) => segment.trim()).filter((segment) => segment.length > 0);
105
- if (trimmedPath.length === 0) {
106
- return [];
107
- }
108
- const [first, ...rest] = trimmedPath;
109
- return [COMMAND_ALIASES[first] ?? first, ...rest];
110
- }
111
- function resolveHelpPage(path, helpPageMap) {
112
- const canonicalPath = canonicalizeHelpPath(path);
113
- if (canonicalPath.length === 0) {
114
- return helpPageMap.get("");
115
- }
116
- if (!COMMANDS.includes(canonicalPath[0]) && !(canonicalPath[0] in COMMAND_ALIASES)) {
117
- return;
118
- }
119
- for (let length = canonicalPath.length;length > 0; length--) {
120
- const key = canonicalPath.slice(0, length).join(" ");
121
- const page = helpPageMap.get(key);
122
- if (page) {
123
- return page;
124
- }
125
- }
126
- return;
127
- }
128
- function appendSection(lines, title, sectionLines) {
129
- if (sectionLines.length === 0) {
130
- return;
131
- }
132
- if (lines.length > 0 && lines[lines.length - 1] !== "") {
133
- lines.push("");
134
- }
135
- lines.push(title);
136
- lines.push(...sectionLines);
137
- }
138
- function renderEntryList(entries, theme) {
139
- return entries.map((item) => formatCommand(item.command, item.description, theme));
140
- }
141
- function renderBulletList(items, theme) {
142
- return items.map((item) => formatBullet(item, theme));
143
- }
144
- function renderHelpPage(page, theme) {
145
- const commandLabel = page.path.length === 0 ? "devflare" : `devflare ${page.path.join(" ")}`;
146
- const lines = [
147
- "",
148
- `${cyanBold(commandLabel, theme)} ${dim(page.summary, theme)}`,
149
- ""
150
- ];
151
- appendSection(lines, dim("usage", theme), page.usage.map((usageLine) => ` ${cyan(usageLine, theme)}`));
152
- appendSection(lines, dim("overview", theme), renderBulletList(page.description ?? [], theme));
153
- appendSection(lines, dim("arguments", theme), renderEntryList(page.arguments ?? [], theme));
154
- appendSection(lines, dim("subcommands", theme), renderEntryList(page.subcommands ?? [], theme));
155
- appendSection(lines, dim(page.optionSectionTitle ?? "options", theme), renderEntryList(page.options ?? [], theme));
156
- if (page.aliases && page.aliases.length > 0) {
157
- appendSection(lines, dim("aliases", theme), page.aliases.map((alias) => ` ${accent(alias, theme, "green")}`));
158
- }
159
- appendSection(lines, dim("examples", theme), renderEntryList(page.examples ?? [], theme));
160
- appendSection(lines, dim("notes", theme), renderBulletList(page.notes ?? [], theme));
161
- lines.push("");
162
- return lines.join(`
163
- `);
164
- }
165
- function createThemes(options = {}) {
166
- return {
167
- styled: createCliTheme(options),
168
- plain: { useColor: false }
169
- };
170
- }
171
-
172
- // src/cli/help-pages/pages/account.ts
173
- var ACCOUNT_HELP_PAGES = [
174
- {
175
- path: ["account"],
176
- summary: "Inspect Cloudflare accounts, resources, and usage data",
177
- usage: [
178
- "devflare account [info] [--account <id>]",
179
- "devflare account <workers|kv|d1|r2|vectorize|usage> [--account <id>]",
180
- "devflare account limits [set <limit-name> <value> | enable | disable] [--account <id>]",
181
- "devflare account <global|workspace>"
182
- ],
183
- description: [
184
- "The default view shows the selected account and the commands you can run against it.",
185
- "Inventory subcommands list Cloudflare resources in the resolved account, while `limits` and `usage` focus on Devflare-managed usage controls."
186
- ],
187
- subcommands: [
188
- entry("info", "Show account overview and available account commands (default)"),
189
- entry("workers", "List Workers for the selected account"),
190
- entry("kv", "List KV namespaces"),
191
- entry("d1", "List D1 databases"),
192
- entry("r2", "List R2 buckets"),
193
- entry("vectorize", "List Vectorize indexes"),
194
- entry("usage", "Show Devflare usage summaries"),
195
- entry("limits", "Show or change Devflare usage limits"),
196
- entry("global", "Choose the global default account interactively"),
197
- entry("workspace", "Choose the workspace account interactively")
198
- ],
199
- options: [ACCOUNT_OPTION],
200
- examples: [
201
- entry("devflare account", "Show the account overview"),
202
- entry("devflare account workers", "List Workers for the resolved account"),
203
- entry("devflare account limits set ai-requests 50", "Set a daily AI request limit"),
204
- entry("devflare account workspace", "Choose the account stored in the current workspace")
205
- ],
206
- notes: [
207
- "Account resolution prefers `--account`, then workspace settings, then `CLOUDFLARE_ACCOUNT_ID`, then the loaded config, then the primary authenticated account.",
208
- "The `global` and `workspace` subcommands are interactive selectors; they do not take `--account`."
209
- ]
210
- },
211
- createAccountInventoryPage("info", "Show the selected account overview", "Displays the selected account plus shortcuts for other `account` subcommands.", "Show the account overview and suggested follow-up commands"),
212
- createAccountInventoryPage("workers", "List Workers in the selected account", "Prints Worker names and last-modified timestamps for the resolved account.", "List Worker scripts in the selected account"),
213
- createAccountInventoryPage("kv", "List KV namespaces in the selected account", "Prints namespace names and ids for the resolved account.", "List KV namespaces for the selected account"),
214
- createAccountInventoryPage("d1", "List D1 databases in the selected account", "Prints database names, ids, and table counts for the resolved account.", "List D1 databases for the selected account"),
215
- createAccountInventoryPage("r2", "List R2 buckets in the selected account", "Prints bucket names, creation dates, and locations for the resolved account.", "List R2 buckets for the selected account"),
216
- createAccountInventoryPage("vectorize", "List Vectorize indexes in the selected account", "Prints Vectorize index names, dimensions, and metrics for the resolved account.", "List Vectorize indexes for the selected account"),
217
- createAccountInventoryPage("usage", "Show Devflare usage summaries", "Prints Devflare-tracked usage totals and the currently configured usage limits.", "Show usage summaries for the selected account"),
218
- {
219
- path: ["account", "limits"],
220
- summary: "Show or update Devflare usage limits",
221
- usage: [
222
- "devflare account limits [--account <id>]",
223
- "devflare account limits set <ai-requests|ai-tokens|vectorize-ops> <value> [--account <id>]",
224
- "devflare account limits <enable|disable> [--account <id>]"
225
- ],
226
- description: [
227
- "Views the current Devflare usage limits for the selected account and optionally updates them.",
228
- "Use `enable` or `disable` to toggle enforcement without changing the configured numeric thresholds."
229
- ],
230
- subcommands: [
231
- entry("set <limit-name> <value>", "Set one numeric usage limit"),
232
- entry("enable", "Enable limit enforcement without changing stored values"),
233
- entry("disable", "Disable limit enforcement without changing stored values")
234
- ],
235
- options: [ACCOUNT_OPTION],
236
- examples: [
237
- entry("devflare account limits", "Show the current usage limits"),
238
- entry("devflare account limits set ai-requests 50", "Set the daily AI request limit"),
239
- entry("devflare account limits enable", "Enable limit enforcement"),
240
- entry("devflare account limits disable", "Disable limit enforcement")
241
- ],
242
- notes: [
243
- "Valid limit names are `ai-requests`, `ai-tokens`, and `vectorize-ops`.",
244
- "Numeric values must be non-negative integers."
245
- ]
246
- },
247
- {
248
- path: ["account", "limits", "set"],
249
- summary: "Set one Devflare usage limit",
250
- usage: [
251
- "devflare account limits set <ai-requests|ai-tokens|vectorize-ops> <value> [--account <id>]"
252
- ],
253
- description: [
254
- "Updates one stored Devflare usage limit for the selected account.",
255
- "Use `enable` separately when you want enforcement turned on after changing the threshold."
256
- ],
257
- arguments: [
258
- entry("<ai-requests|ai-tokens|vectorize-ops>", "Which usage limit to update"),
259
- entry("<value>", "Non-negative integer threshold for the selected limit")
260
- ],
261
- options: [ACCOUNT_OPTION],
262
- examples: [
263
- entry("devflare account limits set ai-requests 50", "Set the daily AI request limit to 50"),
264
- entry("devflare account limits set ai-tokens 5000 --account <id>", "Set the daily AI token limit for a specific account")
265
- ],
266
- notes: [
267
- "Changing a value does not automatically enable enforcement if limits are currently disabled."
268
- ]
269
- },
270
- {
271
- path: ["account", "limits", "enable"],
272
- summary: "Enable Devflare usage-limit enforcement",
273
- usage: [
274
- "devflare account limits enable [--account <id>]"
275
- ],
276
- description: [
277
- "Turns on Devflare usage-limit enforcement for the selected account without changing the stored numeric thresholds."
278
- ],
279
- options: [ACCOUNT_OPTION],
280
- examples: [
281
- entry("devflare account limits enable", "Enable usage-limit enforcement for the resolved account")
282
- ],
283
- notes: [
284
- "Use `devflare account limits set ...` first when you need to change the stored thresholds."
285
- ]
286
- },
287
- {
288
- path: ["account", "limits", "disable"],
289
- summary: "Disable Devflare usage-limit enforcement",
290
- usage: [
291
- "devflare account limits disable [--account <id>]"
292
- ],
293
- description: [
294
- "Disables Devflare usage-limit enforcement for the selected account without deleting the stored thresholds."
295
- ],
296
- options: [ACCOUNT_OPTION],
297
- examples: [
298
- entry("devflare account limits disable", "Disable usage-limit enforcement for the resolved account")
299
- ],
300
- notes: [
301
- "Re-enable later with `devflare account limits enable` to reuse the same stored values."
302
- ]
303
- },
304
- {
305
- path: ["account", "global"],
306
- summary: "Choose the global default Cloudflare account",
307
- usage: [
308
- "devflare account global"
309
- ],
310
- description: [
311
- "Opens an interactive selector and stores the chosen default account in Devflare preferences."
312
- ],
313
- examples: [
314
- entry("devflare account global", "Choose the global default account interactively")
315
- ],
316
- notes: [
317
- "The selected account is written to Devflare preferences and mirrored to cloud KV when available."
318
- ]
319
- },
320
- {
321
- path: ["account", "workspace"],
322
- summary: "Choose the workspace Cloudflare account",
323
- usage: [
324
- "devflare account workspace"
325
- ],
326
- description: [
327
- "Opens an interactive selector and stores the chosen account in the current workspace package metadata."
328
- ],
329
- examples: [
330
- entry("devflare account workspace", "Choose the account pinned to the current workspace")
331
- ],
332
- notes: [
333
- "The workspace account overrides the global default when Devflare resolves account context inside that workspace."
334
- ]
335
- }
336
- ];
337
-
338
- // src/cli/help-pages/pages/core.ts
339
- var CORE_HELP_PAGES = [
340
- {
341
- path: [],
342
- summary: "Config compiler + CLI orchestrator for Cloudflare Workers",
343
- usage: [
344
- "devflare <command> [options]"
345
- ],
346
- description: [
347
- "Use `devflare <command> --help` or `devflare help <command>` to see a detailed command guide.",
348
- "Devflare commands resolve local config first, then bridge that config to Wrangler-compatible Cloudflare workflows."
349
- ],
350
- subcommands: [
351
- entry("init [name]", "Create a new devflare project"),
352
- entry("dev", "Start the development server"),
353
- entry("build", "Build for production"),
354
- entry("deploy", "Deploy explicitly to production or preview"),
355
- entry("types", "Generate TypeScript types"),
356
- entry("doctor", "Check project configuration"),
357
- entry("config", "Print resolved Devflare/Wrangler config"),
358
- entry("account", "View Cloudflare account info and resource inventories"),
359
- entry("login", "Authenticate with Cloudflare via Wrangler"),
360
- entry("previews", "Inspect and clean dedicated preview Workers and scopes"),
361
- entry("productions", "Inspect and manage live production Workers and deployments"),
362
- entry("worker", "Rename and manage Worker control-plane operations"),
363
- entry("tokens", "Manage Devflare-managed Cloudflare API tokens"),
364
- entry("ai", "View Workers AI pricing information"),
365
- entry("remote", "Manage remote test mode for paid Cloudflare features"),
366
- entry("help", "Show command overview or a command-specific help page"),
367
- entry("version", "Show the installed devflare version")
368
- ],
369
- options: COMMON_OPTIONS,
370
- optionSectionTitle: "common options",
371
- examples: [
372
- entry("devflare dev", "Start worker-only or unified local development"),
373
- entry("devflare deploy --prod", "Deploy explicitly to production"),
374
- entry("devflare deploy --preview next", "Deploy a named preview scope directly"),
375
- entry("devflare previews cleanup --scope next --apply", "Delete one dedicated preview scope and its preview-owned resources"),
376
- entry("devflare productions", "Inspect live production Workers and active deployments"),
377
- entry("devflare help deploy", "Show the detailed deploy help page")
378
- ],
379
- notes: [
380
- "Commands that support `--config` and `--env` document that explicitly in their own help pages."
381
- ]
382
- },
383
- {
384
- path: ["init"],
385
- summary: "Create a new devflare project",
386
- usage: [
387
- "devflare init [name] [--template <minimal|api>]"
388
- ],
389
- description: [
390
- "Scaffolds a new project directory with a starter `devflare.config.ts`, TypeScript config, and package.json scripts.",
391
- "Use the `api` template when you want middleware and API routing structure out of the box."
392
- ],
393
- arguments: [
394
- entry("[name]", "Project directory name (defaults to `my-devflare-app`)")
395
- ],
396
- options: [
397
- entry("--template <minimal|api>", "Pick the starter template to scaffold")
398
- ],
399
- examples: [
400
- entry("devflare init my-app", "Create a minimal starter called `my-app`"),
401
- entry("devflare init edge-api --template api", "Create the API starter with middleware structure")
402
- ],
403
- notes: [
404
- "The command writes files only; install dependencies afterward with `bun install`.",
405
- "Generated starter scripts expect `devflare dev`, `devflare build`, `devflare deploy`, and `devflare types`."
406
- ]
407
- },
408
- {
409
- path: ["dev"],
410
- summary: "Start the development server",
411
- usage: [
412
- "devflare dev [--config <path>] [--port <port>] [--persist] [--verbose] [--debug] [--log | --log-temp]"
413
- ],
414
- description: [
415
- "Starts a worker-only Miniflare server by default, and automatically enables Vite when the current package has an effective local Vite setup.",
416
- "Also watches Worker and Durable Object source files, rebuilding and hot-reloading them as they change."
417
- ],
418
- options: [
419
- entry("--config <path>", "Use a specific devflare config file"),
420
- entry("--port <port>", "Preferred Vite dev server port (defaults to 5173 when Vite is enabled)"),
421
- entry("--persist", "Persist Miniflare storage between restarts"),
422
- entry("--verbose", "Increase logging verbosity"),
423
- entry("--debug", "Enable extra debug logging and stack traces"),
424
- entry("--log", "Mirror dev output into a timestamped `.log-*` file"),
425
- entry("--log-temp", "Mirror dev output into `.log`, overwriting the file each run")
426
- ],
427
- examples: [
428
- entry("devflare dev", "Start local development with automatic Vite detection"),
429
- entry("devflare dev --port 3000", "Use a custom Vite port when Vite is enabled"),
430
- entry("devflare dev --persist --log-temp", "Keep Miniflare state and overwrite `.log` on each run")
431
- ],
432
- notes: [
433
- "Worker-only mode is the default when no effective local `vite.config.*` is present.",
434
- "`--log` and `--log-temp` still print to the terminal; they add a file mirror instead of redirecting output away."
435
- ]
436
- },
437
- {
438
- path: ["build"],
439
- summary: "Build production deployment artifacts",
440
- usage: [
441
- "devflare build [--config <path>] [--env <name>] [--debug]"
442
- ],
443
- description: [
444
- "Resolves your Devflare config locally, applies environment overrides, and generates the build artifacts used by deploy flows.",
445
- "Build preserves named bindings instead of provisioning Cloudflare resources, so it is the safest way to inspect what Devflare will hand to deploy before you actually ship."
446
- ],
447
- options: [
448
- entry("--config <path>", "Use a specific devflare config file"),
449
- entry("--env <name>", "Resolve `config.env[name]` before building artifacts"),
450
- entry("--debug", "Print stack traces when build preparation fails")
451
- ],
452
- examples: [
453
- entry("devflare build", "Build the default environment"),
454
- entry("devflare build --env production", "Build using `config.env.production`")
455
- ],
456
- notes: [
457
- "Build currently writes `.devflare/wrangler.jsonc`, `.devflare/build/wrangler.jsonc`, and `.wrangler/deploy/config.json`.",
458
- "Build does not query or provision Cloudflare account resources on its own; name-based bindings stay as names in the generated artifacts until deploy time.",
459
- "`devflare deploy` runs the same artifact preparation step automatically before invoking Wrangler, unless you provide `--build <path>` to reuse an existing build artifact."
460
- ]
461
- },
462
- {
463
- path: ["deploy"],
464
- summary: "Deploy explicitly to Cloudflare production or preview targets",
465
- usage: [
466
- "devflare deploy --prod [--config <path>] [--build <path>] [--message <text>] [--tag <text>] [--debug]",
467
- "devflare deploy --production [--config <path>] [--build <path>] [--message <text>] [--tag <text>] [--debug]",
468
- "devflare deploy --preview <name> [--config <path>] [--build <path>] [--message <text>] [--tag <text>]",
469
- "devflare deploy --preview [--config <path>] [--build <path>] [--branch-name <branch>] [--message <text>] [--tag <text>]",
470
- "devflare deploy --prod --dry-run [--config <path>]",
471
- "devflare deploy --preview <name> --dry-run [--config <path>]",
472
- "devflare deploy --preview --dry-run [--config <path>]"
473
- ],
474
- description: [
475
- "Deploy requires an explicit target: production via `--prod` / `--production`, or preview via `--preview`.",
476
- "Named preview deploys such as `--preview next` or `--preview pr-1` target `config.env.preview`, provision preview-scoped resources automatically, and deploy dedicated preview-scope Workers when your config is wired for them. Bare `--preview` keeps the same-worker preview upload flow and can still use `--branch-name` or CI/git metadata for preview-aware naming.",
477
- "Production and named preview deploys also provision missing deploy-time resources such as KV namespaces, D1 databases, R2 buckets, and Queues when Devflare has enough information to create them."
478
- ],
479
- options: [
480
- entry("--prod", "Deploy to the production environment explicitly"),
481
- entry("--production", "Long-form alias for --prod"),
482
- entry("--preview", "Deploy a same-worker preview upload"),
483
- entry("--preview <name>", "Deploy a named preview scope such as `next` or `pr-1`"),
484
- entry("--config <path>", "Use a specific devflare config file"),
485
- entry("--build <path>", "Reuse an existing build artifact such as `.devflare/build` or `.wrangler/deploy/config.json` instead of rebuilding"),
486
- entry("--env <name>", "Usually unnecessary because the explicit target already pins production vs preview. If you pass it, it must match that target"),
487
- entry("--dry-run", "Print the synthesized Wrangler config and skip the actual deployment"),
488
- entry("--branch-name <branch>", "Provide explicit branch metadata for preview-aware naming when your workflow needs it"),
489
- entry("--message <text>", "Attach an explicit Wrangler deployment/version message"),
490
- entry("--tag <text>", "Attach an explicit Wrangler version tag"),
491
- entry("--debug", "Print stack traces when deployment orchestration fails")
492
- ],
493
- examples: [
494
- entry("devflare deploy --prod", "Deploy explicitly to production"),
495
- entry("devflare deploy --prod --build .devflare/build", "Deploy a previously built artifact without rebuilding the package"),
496
- entry('devflare deploy --production --message "Release"', "Deploy to production with an explicit deployment message"),
497
- entry("devflare deploy --preview next", "Deploy the named `next` preview scope and provision preview-scoped resources automatically"),
498
- entry("devflare deploy --preview pr-1", "Deploy the named `pr-1` preview scope directly"),
499
- entry("devflare deploy --preview --branch-name feature-branch", "Upload a same-worker preview version with explicit branch metadata"),
500
- entry("devflare deploy --preview next --dry-run", "Inspect the generated named-preview Wrangler config without deploying")
501
- ],
502
- notes: [
503
- "`devflare deploy` without an explicit target is rejected from the CLI so production and preview destinations stay unmistakable.",
504
- "`--prod` / `--production` clear preview-scope environment overrides such as `DEVFLARE_PREVIEW_BRANCH` so production deploys stay pointed at stable Worker names.",
505
- "Named preview deploys automatically provision preview-scoped resources before building and deploying.",
506
- "When a build artifact still contains name-based bindings, deploy resolves or provisions the concrete Cloudflare resources and rewrites the generated Wrangler config with the IDs Wrangler requires.",
507
- "Plain `--preview` still uses Cloudflare preview uploads, so it cannot be the first-ever upload for a brand-new Worker, preview URLs remain limited for Workers that implement Durable Objects, and preview uploads do not apply Durable Object migrations."
508
- ]
509
- },
510
- {
511
- path: ["types"],
512
- summary: "Generate TypeScript bindings from your config",
513
- usage: [
514
- "devflare types [--config <path>] [--output <path>] [--debug]"
515
- ],
516
- description: [
517
- "Generates `env.d.ts`-style bindings for KV, D1, R2, Durable Objects, Queues, service bindings, vars, and secrets.",
518
- "Devflare also discovers entrypoints and cross-worker Durable Objects so service RPC bindings can stay strongly typed."
519
- ],
520
- options: [
521
- entry("--config <path>", "Use a specific devflare config file"),
522
- entry("--output <path>", "Write generated types to a custom path (defaults to `env.d.ts`)"),
523
- entry("--debug", "Print stack traces when type generation fails")
524
- ],
525
- examples: [
526
- entry("devflare types", "Generate `env.d.ts` next to the current project"),
527
- entry("devflare types --output src/generated/env.d.ts", "Write generated bindings to a custom file")
528
- ],
529
- notes: [
530
- "Type discovery respects configured file patterns and falls back to the default Durable Object and entrypoint glob patterns.",
531
- "Re-run this command after adding or renaming bindings, Durable Objects, or cross-worker service references."
532
- ]
533
- },
534
- {
535
- path: ["doctor"],
536
- summary: "Check project configuration",
537
- usage: [
538
- "devflare doctor [--config <path>]"
539
- ],
540
- description: [
541
- "Checks for a loadable devflare config, package.json, TypeScript config, Vite integration, and generated Wrangler artifacts.",
542
- "Useful when a project feels cursed but not cursed enough to throw a clear error yet."
543
- ],
544
- options: [
545
- entry("--config <path>", "Check a specific config path instead of the default resolution path")
546
- ],
547
- examples: [
548
- entry("devflare doctor", "Run diagnostics for the current package"),
549
- entry("devflare doctor --config apps/docs/devflare.config.ts", "Check a specific config file")
550
- ],
551
- notes: [
552
- "Warnings still return exit code 0; hard failures return exit code 1.",
553
- "The command reports whether generated `.devflare` and `.wrangler/deploy` artifacts already exist."
554
- ]
555
- },
556
- {
557
- path: ["config"],
558
- summary: "Print resolved Devflare or Wrangler config",
559
- usage: [
560
- "devflare config [print] [--config <path>] [--env <name>] [--format <devflare|wrangler>]"
561
- ],
562
- description: [
563
- "Loads the effective config and prints it as JSON.",
564
- "Use `--format wrangler` when you want to inspect the exact Wrangler-compatible config Devflare will emit."
565
- ],
566
- subcommands: [
567
- entry("print", "Print the resolved config (default subcommand)")
568
- ],
569
- options: [
570
- entry("--config <path>", "Use a specific devflare config file"),
571
- entry("--env <name>", "Resolve `config.env[name]` before printing"),
572
- entry("--format <devflare|wrangler>", "Choose whether to print raw Devflare config or compiled Wrangler JSON")
573
- ],
574
- examples: [
575
- entry("devflare config", "Print the resolved Devflare config as JSON"),
576
- entry("devflare config --env preview", "Print the preview environment config"),
577
- entry("devflare config print --format wrangler", "Print the compiled Wrangler config JSON")
578
- ],
579
- notes: [
580
- "`print` is the default subcommand, so `devflare config` and `devflare config print` behave the same."
581
- ]
582
- },
583
- {
584
- path: ["config", "print"],
585
- summary: "Print the resolved config",
586
- usage: [
587
- "devflare config print [--config <path>] [--env <name>] [--format <devflare|wrangler>]"
588
- ],
589
- description: [
590
- "Equivalent to `devflare config`, but spelled out explicitly when you want the subcommand in scripts or docs."
591
- ],
592
- options: [
593
- entry("--config <path>", "Use a specific devflare config file"),
594
- entry("--env <name>", "Resolve `config.env[name]` before printing"),
595
- entry("--format <devflare|wrangler>", "Choose Devflare JSON or compiled Wrangler JSON output")
596
- ],
597
- examples: [
598
- entry("devflare config print --format wrangler", "Print the compiled Wrangler config")
599
- ]
600
- },
601
- {
602
- path: ["login"],
603
- summary: "Authenticate with Cloudflare via Wrangler",
604
- usage: [
605
- "devflare login [--force]"
606
- ],
607
- description: [
608
- "Uses Wrangler login under the hood, then reports the resolved primary or configured account context."
609
- ],
610
- options: [
611
- entry("--force", "Open Wrangler login even when Devflare already sees an authenticated session")
612
- ],
613
- examples: [
614
- entry("devflare login", "Authenticate only when needed"),
615
- entry("devflare login --force", "Re-open Wrangler login even if already authenticated")
616
- ],
617
- notes: [
618
- "If you are already authenticated and omit `--force`, Devflare will reuse the current credentials instead of reopening login."
619
- ]
620
- },
621
- {
622
- path: ["help"],
623
- summary: "Show command overview or command-specific help",
624
- usage: [
625
- "devflare help",
626
- "devflare help <command> [subcommand]"
627
- ],
628
- description: [
629
- "Prints the root command overview or the detailed help page for a specific command path."
630
- ],
631
- examples: [
632
- entry("devflare help", "Show the root command overview"),
633
- entry("devflare help previews", "Show the detailed previews help page"),
634
- entry("devflare help previews cleanup", "Show nested help for a preview subcommand when available")
635
- ],
636
- notes: [
637
- "`devflare <command> --help` resolves to the same detailed help page as `devflare help <command>`."
638
- ]
639
- },
640
- {
641
- path: ["version"],
642
- summary: "Show the installed devflare version",
643
- usage: [
644
- "devflare version",
645
- "devflare --version"
646
- ],
647
- description: [
648
- "Prints the installed package version and exits."
649
- ],
650
- examples: [
651
- entry("devflare version", "Show the installed version"),
652
- entry("devflare --version", "Show the installed version using the global flag")
653
- ]
654
- }
655
- ];
656
-
657
- // src/cli/help-pages/pages/misc.ts
658
- var MISC_HELP_PAGES = [
659
- {
660
- path: ["worker"],
661
- summary: "Rename and manage Worker control-plane operations",
662
- usage: [
663
- "devflare worker rename <old-name> --to <new-name> [--config <path>] [--account <id>]"
664
- ],
665
- description: [
666
- "Currently, `rename` is the supported worker control-plane operation.",
667
- "Devflare renames the remote Worker when needed and updates the matching local config name when it can resolve it safely."
668
- ],
669
- subcommands: [
670
- entry("rename", "Rename a Worker and sync the matching devflare config name")
671
- ],
672
- options: [
673
- entry("--to <new-name>", "New Worker name for the `rename` subcommand"),
674
- entry("--config <path>", "Choose the config file to update when multiple configs might match"),
675
- entry("--account <id>", "Use a specific Cloudflare account when renaming the remote Worker")
676
- ],
677
- examples: [
678
- entry("devflare worker rename documentation --to devflare-documentation", "Rename a Worker and sync the matching config")
679
- ],
680
- notes: [
681
- "Devflare warns about local service binding and Durable Object references that still point at the old Worker name so you can update them manually if needed."
682
- ]
683
- },
684
- {
685
- path: ["worker", "rename"],
686
- summary: "Rename a Worker and sync the matching config",
687
- usage: [
688
- "devflare worker rename <old-name> --to <new-name> [--config <path>] [--account <id>]"
689
- ],
690
- description: [
691
- "Renames the remote Worker when necessary, updates the top-level `name` field in the selected config, and then warns about any remaining local references to the old Worker name."
692
- ],
693
- arguments: [
694
- entry("<old-name>", "Current Worker name"),
695
- entry("--to <new-name>", "Required new Worker name")
696
- ],
697
- options: [
698
- entry("--config <path>", "Choose the config file to update when multiple configs may match"),
699
- entry("--account <id>", "Use a specific Cloudflare account for the remote rename")
700
- ],
701
- examples: [
702
- entry("devflare worker rename docs --to devflare-docs", "Rename the Worker and sync the selected config")
703
- ]
704
- },
705
- {
706
- path: ["tokens"],
707
- summary: "Manage Devflare-managed Cloudflare API tokens",
708
- usage: [
709
- "devflare tokens <bootstrap-token> --list [--account <id>]",
710
- "devflare tokens <bootstrap-token> --new [name] [--account <id>] [--all-flags]",
711
- "devflare tokens <bootstrap-token> --roll [name] [--account <id>]",
712
- "devflare tokens <bootstrap-token> --delete [name] [--account <id>]",
713
- "devflare tokens <bootstrap-token> --delete-all [--account <id>]"
714
- ],
715
- description: [
716
- "Creates, lists, rolls, and deletes Devflare-managed account-owned API tokens using a bootstrap token that already has token-management permissions.",
717
- "Token names are normalized to the `devflare-` prefix automatically."
718
- ],
719
- arguments: [
720
- entry("<bootstrap-token>", "Account-owned bootstrap token with Cloudflare API token-management permissions")
721
- ],
722
- options: [
723
- entry("--list", "List Devflare-managed account-owned tokens"),
724
- entry("--new [name]", "Create a Devflare-managed account-owned token"),
725
- entry("--roll [name]", "Roll a Devflare-managed token secret"),
726
- entry("--delete [name]", "Delete a Devflare-managed token by name"),
727
- entry("--delete-all", "Delete every Devflare-managed token in the selected account"),
728
- entry("--account <id>", "Use a specific Cloudflare account"),
729
- entry("--all-flags", "With `--new`, include every reusable account-scoped permission group")
730
- ],
731
- examples: [
732
- entry("devflare tokens $BOOTSTRAP --list", "List managed tokens"),
733
- entry("devflare tokens $BOOTSTRAP --new preview", "Create a managed token named `devflare-preview`"),
734
- entry("devflare tokens $BOOTSTRAP --roll preview", "Roll the secret for `devflare-preview`"),
735
- entry("devflare tokens $BOOTSTRAP --delete-all", "Delete every Devflare-managed token for the selected account")
736
- ],
737
- notes: [
738
- "Cloudflare only returns token secrets once for create and roll operations, so store them immediately."
739
- ]
740
- },
741
- {
742
- path: ["ai"],
743
- summary: "Show Workers AI pricing information",
744
- usage: [
745
- "devflare ai"
746
- ],
747
- description: [
748
- "Prints the built-in Workers AI pricing reference bundled with Devflare."
749
- ],
750
- examples: [
751
- entry("devflare ai", "Print the bundled Workers AI pricing reference")
752
- ],
753
- notes: [
754
- "This command does not currently query live account state; it prints the pricing table bundled with the current Devflare build."
755
- ]
756
- },
757
- {
758
- path: ["remote"],
759
- summary: "Manage remote test mode for paid Cloudflare features",
760
- usage: [
761
- "devflare remote [status]",
762
- "devflare remote enable [minutes]",
763
- "devflare remote disable"
764
- ],
765
- description: [
766
- "Remote mode enables tests that hit real Cloudflare infrastructure for services such as AI and Vectorize.",
767
- "The default action is `status`."
768
- ],
769
- subcommands: [
770
- entry("status", "Show the current effective remote-mode status"),
771
- entry("enable [minutes]", "Enable remote mode for a bounded duration (defaults to 30 minutes)"),
772
- entry("disable", "Disable remote mode immediately")
773
- ],
774
- examples: [
775
- entry("devflare remote", "Show the current remote-mode status"),
776
- entry("devflare remote enable 30", "Enable remote mode for 30 minutes"),
777
- entry("devflare remote disable", "Disable remote mode")
778
- ],
779
- notes: [
780
- "Remote tests use real Cloudflare services and may incur costs.",
781
- "`DEVFLARE_REMOTE` can keep remote mode active even after you run `disable`."
782
- ]
783
- },
784
- createRemoteSubcommandPage("status", "Show the current effective remote-mode status", [
785
- "devflare remote status"
786
- ], [
787
- "Shows whether remote mode is active, where that state came from, and when it expires if it is time-limited."
788
- ], [
789
- entry("devflare remote status", "Inspect the current remote-mode status")
790
- ], [
791
- "`devflare remote` without a subcommand behaves the same way."
792
- ]),
793
- createRemoteSubcommandPage("enable", "Enable remote test mode", [
794
- "devflare remote enable [minutes]"
795
- ], [
796
- "Enables remote test mode for the given duration, defaulting to 30 minutes when the duration is omitted or invalid."
797
- ], [
798
- entry("devflare remote enable", "Enable remote mode for the default 30 minutes"),
799
- entry("devflare remote enable 90", "Enable remote mode for 90 minutes")
800
- ], [
801
- "Remote tests can incur real Cloudflare costs, so prefer the shortest useful duration."
802
- ]),
803
- createRemoteSubcommandPage("disable", "Disable remote test mode", [
804
- "devflare remote disable"
805
- ], [
806
- "Disables the stored remote-mode window immediately."
807
- ], [
808
- entry("devflare remote disable", "Disable remote mode immediately")
809
- ], [
810
- "If `DEVFLARE_REMOTE` is still set in the environment, effective remote mode may remain active until you unset it."
811
- ])
812
- ];
813
-
814
- // src/cli/help-pages/pages/previews.ts
815
- var PREVIEW_HELP_PAGES = [
816
- {
817
- path: ["previews"],
818
- summary: "Inspect and clean dedicated preview Worker scopes",
819
- usage: [
820
- "devflare previews [--config <path>] [--env <name>] [--account <id>]",
821
- "devflare previews list [--config <path>] [--env <name>] [--account <id>]",
822
- "devflare previews bindings [--config <path>] [--env <name>] [--scope <name>] [--account <id>] [--worker <name>]",
823
- "devflare previews cleanup [--config <path>] [--env <name>] [--scope <name> | --all] [--account <id>] [--apply]"
824
- ],
825
- description: [
826
- "The default view resolves the current worker family from local config, or scans child `devflare.config.*` files when you run it from a monorepo root, then inspects live Cloudflare Workers and groups dedicated preview Worker names into preview scopes such as `next` or `pr-42`.",
827
- "Use `bindings` to inspect preview-scoped resource associations for one scope, or `cleanup` to delete dedicated preview Workers plus preview-only Cloudflare resources for one scope or every live scope Devflare can discover from Worker names."
828
- ],
829
- subcommands: [
830
- entry("list", "List stable workers plus dedicated preview scopes for the current worker family (default)"),
831
- entry("bindings", "Inspect resolved bindings/resources and how many deployed workers currently reference them"),
832
- entry("cleanup", "Delete preview-only Worker scripts and preview-scoped Cloudflare resources")
833
- ],
834
- options: [
835
- ...PREVIEWS_COMMON_OPTIONS,
836
- entry("--config <path>", "Use a specific devflare config file for config-aware preview commands"),
837
- entry("--env <name>", "Resolve a non-default `config.env[name]` before config-aware preview commands when your preview bindings live outside `env.preview`"),
838
- entry("--scope <name>", "Resolve preview-scoped names for a specific identifier on config-aware preview commands"),
839
- entry("--all", "Clean every live preview scope Devflare can discover for the current worker family when used with `cleanup`"),
840
- entry("--apply", "Execute cleanup instead of doing a dry run"),
841
- entry("--worker <name>", "Override the primary worker name shown in the `bindings` report header")
842
- ],
843
- examples: [
844
- entry("devflare previews", "List preview scopes for the current package"),
845
- entry("devflare previews --account <id>", "List preview scopes for every configured package when run from a monorepo root"),
846
- entry("devflare previews bindings --scope next", "Inspect the `next` preview scope and its live worker associations"),
847
- entry("devflare previews cleanup --scope next --apply", "Delete preview-only resources and dedicated Workers for the `next` scope"),
848
- entry("devflare previews cleanup --all --apply", "Delete preview-only resources and dedicated Workers for every live discovered preview scope")
849
- ],
850
- notes: [
851
- "The default `list` view can aggregate every configured package from a monorepo root. `bindings` and `cleanup` still need one configured package, so run them inside that package or pass `--config <path>`.",
852
- "`bindings` and `cleanup` default to preview-oriented config resolution already, so `--env preview` is usually redundant unless your project stores preview bindings under a different env key.",
853
- "`cleanup` removes preview-only Cloudflare resources for the targeted scope and also deletes dedicated preview-scope Worker scripts when that scope is deployed as its own Worker family. Service bindings, Durable Object bindings, and routes attached only to those dedicated preview Workers disappear with them.",
854
- "`cleanup --all` only targets live preview scopes Devflare can discover from Worker names. Use `--scope <name>` when you need to clean one scope explicitly, even if its dedicated preview Workers are already gone.",
855
- "Stable shared Workers are never deleted by `cleanup`."
856
- ]
857
- },
858
- createPreviewSubcommandPage("list", "List stable workers and dedicated preview scopes", [
859
- "devflare previews [--config <path>] [--env <name>] [--account <id>]",
860
- "devflare previews list [--config <path>] [--env <name>] [--account <id>]"
861
- ], [
862
- "Resolves the current worker family from local config, or scans child `devflare.config.*` files when invoked from a monorepo root, then queries live Cloudflare Workers and groups dedicated preview Worker names into preview scopes."
863
- ], [
864
- entry("--config <path>", "Use a specific devflare config file"),
865
- entry("--env <name>", "Resolve `config.env[name]` before discovering the worker family"),
866
- entry("--account <id>", "Use a specific Cloudflare account")
867
- ], [
868
- entry("devflare previews", "List stable workers and active preview scopes for the current package"),
869
- entry("devflare previews --account <id>", "Aggregate stable workers and preview scopes across every configured package in the current workspace root"),
870
- entry("devflare previews list --env preview", "List preview scopes using a non-default config environment when needed")
871
- ], [
872
- "`list` is the default subcommand, so `devflare previews` and `devflare previews list` show the same view.",
873
- "When more than one config is discovered, Devflare prints one worker-family block per configured package."
874
- ]),
875
- createPreviewSubcommandPage("bindings", "Inspect resolved bindings/resources and live worker associations", [
876
- "devflare previews bindings [--config <path>] [--env <name>] [--scope <name>] [--account <id>] [--worker <name>]"
877
- ], [
878
- "Resolves the current config for one preview scope, inspects live worker deployments, and reports how many deployed workers reference each resource or binding target."
879
- ], [
880
- entry("--config <path>", "Use a specific devflare config file"),
881
- entry("--env <name>", "Resolve `config.env[name]` before inspecting bindings"),
882
- entry("--scope <name>", "Resolve preview-scoped names for a specific identifier instead of the default `preview` scope"),
883
- entry("--account <id>", "Use a specific Cloudflare account"),
884
- entry("--worker <name>", "Override the primary worker name shown in the report header")
885
- ], [
886
- entry("devflare previews bindings --scope next", "Inspect preview-scoped bindings for the `next` scope"),
887
- entry("devflare previews bindings", "Inspect preview-scoped bindings for the default `preview` scope")
888
- ], [
889
- "This command is read-only; it does not delete Workers or resources.",
890
- "Omit `--env preview` unless your project stores preview bindings under a different env key."
891
- ]),
892
- createPreviewSubcommandPage("cleanup", "Delete preview-only Worker scripts and preview-scoped Cloudflare resources", [
893
- "devflare previews cleanup [--config <path>] [--env <name>] [--scope <name> | --all] [--account <id>] [--apply]"
894
- ], [
895
- "Resolves preview-scoped resource names from the current config, deletes dedicated preview Worker scripts for the targeted scope when they exist, and removes matching preview-only Cloudflare resources from the selected account. Preview-only service bindings, Durable Object bindings, and routes attached exclusively to those dedicated Workers disappear with them.",
896
- "Use `--scope <name>` for one preview scope or `--all` to iterate every live preview scope Devflare can discover for the current worker family."
897
- ], [
898
- entry("--config <path>", "Use a specific devflare config file"),
899
- entry("--env <name>", "Resolve a non-default `config.env[name]` before cleanup when your preview bindings live outside `env.preview`"),
900
- entry("--scope <name>", "Clean one preview scope instead of the default `preview` scope"),
901
- entry("--all", "Clean every live preview scope Devflare can discover for the current worker family"),
902
- entry("--account <id>", "Use a specific Cloudflare account"),
903
- entry("--apply", "Apply the cleanup instead of doing a dry run")
904
- ], [
905
- entry("devflare previews cleanup --scope next", "Show which dedicated Workers and preview-only resources belong to the `next` scope"),
906
- entry("devflare previews cleanup --all", "Show the cleanup plan for every live discovered preview scope"),
907
- entry("devflare previews cleanup --all --apply", "Delete dedicated preview Workers and preview-only resources for every live discovered preview scope")
908
- ], [
909
- "Dedicated preview Worker scripts are candidates only when their names resolve to the targeted preview scope. Stable shared Workers are never deleted.",
910
- "Without `--scope`, the command defaults to the `preview` scope. Use `--all` when you want every live preview scope Devflare can discover instead of just that default.",
911
- "Deleting dedicated preview Worker scripts removes preview-only service bindings, Durable Object bindings, and routes owned solely by those Workers.",
912
- "Omit `--env preview` unless your config stores preview bindings under a different env key.",
913
- "Analytics Engine datasets and Browser Rendering bindings are intentionally reported as warnings instead of deleted resources."
914
- ])
915
- ];
916
-
917
- // src/cli/help-pages/pages/productions.ts
918
- var PRODUCTION_HELP_PAGES = [
919
- {
920
- path: ["productions"],
921
- summary: "Inspect and manage live production Workers and deployments",
922
- usage: [
923
- "devflare productions [--config <path>] [--env <name>] [--account <id>] [--worker <name>]",
924
- "devflare productions versions [--config <path>] [--env <name>] [--account <id>] [--worker <name>]",
925
- "devflare productions rollback [--config <path>] [--account <id>] [--worker <name>] [--version-id <id>] [--message <text>] [--apply]",
926
- "devflare productions delete [--config <path>] [--account <id>] [--worker <name>] [--apply]"
927
- ],
928
- description: [
929
- "The default view inspects live Cloudflare production deployment state for locally configured Workers, or for one explicitly selected Worker.",
930
- "Other subcommands list recent production versions or mutate a single Worker by rolling back or deleting its live production script."
931
- ],
932
- subcommands: [
933
- entry("list", "List live production Workers and their active deployments (default)"),
934
- entry("versions", "Show recent stored production versions and which one is currently active"),
935
- entry("rollback", "Roll a Worker back to the previous or specified production version"),
936
- entry("delete", "Delete a live production Worker script")
937
- ],
938
- options: [
939
- entry("--config <path>", "Use a specific devflare config file or scan the current tree when omitted"),
940
- entry("--env <name>", "Resolve `config.env[name]` while discovering related production Workers (defaults to `production`)"),
941
- entry("--account <id>", "Use a specific Cloudflare account"),
942
- entry("--worker <name>", "Target a specific Worker instead of the locally configured set"),
943
- entry("--version <id>", "Version selector shortcut for `rollback` (same as --version-id)"),
944
- entry("--version-id <id>", "Target a specific production version when rolling back"),
945
- entry("--message <text>", "Attach a rollback message when using `rollback`"),
946
- entry("--apply", "Execute rollback or delete instead of doing a dry run")
947
- ],
948
- examples: [
949
- entry("devflare productions", "Inspect active production deployments for the current package or monorepo tree"),
950
- entry("devflare productions versions", "Show recent production versions for the resolved Workers"),
951
- entry("devflare productions rollback --worker my-worker --apply", "Roll `my-worker` back to the previous production version"),
952
- entry("devflare productions rollback --worker my-worker --version-id 1234abcd-... --apply", "Roll `my-worker` back to a specific production version"),
953
- entry("devflare productions delete --worker my-worker --apply", "Delete the live production Worker script for `my-worker`")
954
- ],
955
- notes: [
956
- "`productions` reads live Cloudflare control-plane state. It does not depend on the Devflare preview registry database.",
957
- "`rollback` uses Wrangler under the hood because Cloudflare exposes production rollback through the Wrangler deployment flow.",
958
- "`delete` removes the Worker script only. Review KV, D1, R2, queues, and other account resources separately before cleaning them up."
959
- ]
960
- },
961
- createProductionsSubcommandPage("list", "List live production Workers and their active deployments", [
962
- "devflare productions [--config <path>] [--env <name>] [--account <id>] [--worker <name>]"
963
- ], [
964
- "Inspects live Cloudflare production deployment state for locally configured Workers, or for one explicitly selected Worker when `--worker` is provided."
965
- ], [
966
- entry("--config <path>", "Use a specific devflare config file"),
967
- entry("--env <name>", "Resolve `config.env[name]` while discovering related production Workers (defaults to `production`)"),
968
- entry("--account <id>", "Use a specific Cloudflare account"),
969
- entry("--worker <name>", "Target a specific Worker instead of the locally configured set")
970
- ], [
971
- entry("devflare productions", "Inspect the current package or monorepo production Workers"),
972
- entry("devflare productions --worker my-worker", "Inspect one live production Worker directly")
973
- ], [
974
- "This view is read-only and is backed by live Cloudflare production deployment data."
975
- ]),
976
- createProductionsSubcommandPage("versions", "Show recent stored production versions and the current active version", [
977
- "devflare productions versions [--config <path>] [--env <name>] [--account <id>] [--worker <name>]"
978
- ], [
979
- "Lists recent stored production versions for the selected Worker set and marks the version currently active in the latest production deployment."
980
- ], [
981
- entry("--config <path>", "Use a specific devflare config file"),
982
- entry("--env <name>", "Resolve `config.env[name]` while discovering related production Workers (defaults to `production`)"),
983
- entry("--account <id>", "Use a specific Cloudflare account"),
984
- entry("--worker <name>", "Target a specific Worker instead of the locally configured set")
985
- ], [
986
- entry("devflare productions versions", "Show recent stored production versions for the resolved Workers"),
987
- entry("devflare productions versions --worker my-worker", "Show recent stored production versions for `my-worker`")
988
- ]),
989
- createProductionsSubcommandPage("rollback", "Roll a Worker back to the previous or specified production version", [
990
- "devflare productions rollback [--config <path>] [--account <id>] [--worker <name>] [--version-id <id>] [--message <text>] [--apply]"
991
- ], [
992
- "Uses Wrangler rollback to create a fresh production deployment that points at the previous or explicitly selected version."
993
- ], [
994
- entry("--config <path>", "Use a specific devflare config file"),
995
- entry("--account <id>", "Use a specific Cloudflare account"),
996
- entry("--worker <name>", "Worker to roll back (required unless the current package resolves to exactly one primary Worker)"),
997
- entry("--version <id>", "Version selector shortcut for `rollback` (same as --version-id)"),
998
- entry("--version-id <id>", "Roll back to a specific production version instead of the previous one"),
999
- entry("--message <text>", "Attach an explicit rollback message"),
1000
- entry("--apply", "Apply the rollback instead of doing a dry run")
1001
- ], [
1002
- entry("devflare productions rollback --worker my-worker", "Preview a rollback for `my-worker`"),
1003
- entry("devflare productions rollback --worker my-worker --apply", "Roll `my-worker` back to the previous production version"),
1004
- entry("devflare productions rollback --worker my-worker --version-id 1234abcd-... --apply", "Roll `my-worker` back to a specific production version")
1005
- ], [
1006
- "Without `--apply`, this command is a dry run."
1007
- ]),
1008
- createProductionsSubcommandPage("delete", "Delete a live production Worker script", [
1009
- "devflare productions delete [--config <path>] [--account <id>] [--worker <name>] [--apply]"
1010
- ], [
1011
- "Deletes the selected live production Worker script from Cloudflare. This does not automatically remove independent account resources such as KV namespaces or D1 databases."
1012
- ], [
1013
- entry("--config <path>", "Use a specific devflare config file"),
1014
- entry("--account <id>", "Use a specific Cloudflare account"),
1015
- entry("--worker <name>", "Worker to delete (required unless the current package resolves to exactly one primary Worker)"),
1016
- entry("--apply", "Apply the deletion instead of doing a dry run")
1017
- ], [
1018
- entry("devflare productions delete --worker my-worker", "Preview deletion of `my-worker`"),
1019
- entry("devflare productions delete --worker my-worker --apply", "Delete the live production Worker script for `my-worker`")
1020
- ], [
1021
- "Without `--apply`, this command is a dry run.",
1022
- "Deleting the Worker script does not clean up shared Cloudflare account resources automatically."
1023
- ])
1024
- ];
1025
-
1026
- // src/cli/help-pages/pages/index.ts
1027
- var HELP_PAGES = [
1028
- ...CORE_HELP_PAGES,
1029
- ...ACCOUNT_HELP_PAGES,
1030
- ...PREVIEW_HELP_PAGES,
1031
- ...PRODUCTION_HELP_PAGES,
1032
- ...MISC_HELP_PAGES
1033
- ];
1034
-
1035
- // src/cli/help.ts
1036
- var HELP_PAGE_MAP = createHelpPageMap(HELP_PAGES);
1037
- function renderHelp(path, options = {}) {
1038
- const page = resolveHelpPage(path, HELP_PAGE_MAP);
1039
- if (!page) {
1040
- return;
1041
- }
1042
- const themes = createThemes(options);
1043
- return {
1044
- styled: renderHelpPage(page, themes.styled),
1045
- plain: renderHelpPage(page, themes.plain),
1046
- path: page.path
1047
- };
1048
- }
1049
-
1050
- // src/cli/workspace-build-guard.ts
1051
- import { readdir, readFile, stat } from "node:fs/promises";
1052
- import { dirname, join } from "pathe";
1053
- import { fileURLToPath } from "node:url";
1054
- function isTruthyEnvFlag(value) {
1055
- const normalized = value?.trim().toLowerCase();
1056
- return normalized !== undefined && ["1", "true", "yes", "on"].includes(normalized);
1057
- }
1058
- function isCiEnvironment(env) {
1059
- return isTruthyEnvFlag(env.CI) || isTruthyEnvFlag(env.GITHUB_ACTIONS);
1060
- }
1061
- async function pathExists(path) {
1062
- try {
1063
- await stat(path);
1064
- return true;
1065
- } catch {
1066
- return false;
1067
- }
1068
- }
1069
- async function readPackageName(packageRoot) {
1070
- try {
1071
- const packageJson = JSON.parse(await readFile(join(packageRoot, "package.json"), "utf8"));
1072
- return typeof packageJson.name === "string" ? packageJson.name : undefined;
1073
- } catch {
1074
- return;
1075
- }
1076
- }
1077
- async function findLocalDevflarePackageRoot(startDirectory) {
1078
- let currentDirectory = startDirectory;
1079
- while (true) {
1080
- if (await pathExists(join(currentDirectory, "package.json"))) {
1081
- const packageName = await readPackageName(currentDirectory);
1082
- if (packageName === "devflare") {
1083
- return currentDirectory;
1084
- }
1085
- }
1086
- const parentDirectory = dirname(currentDirectory);
1087
- if (parentDirectory === currentDirectory) {
1088
- return;
1089
- }
1090
- currentDirectory = parentDirectory;
1091
- }
1092
- }
1093
- async function getLatestModifiedTime(path) {
1094
- if (!await pathExists(path)) {
1095
- return;
1096
- }
1097
- const entry2 = await stat(path);
1098
- if (entry2.isFile()) {
1099
- return entry2.mtimeMs;
1100
- }
1101
- if (!entry2.isDirectory()) {
1102
- return;
1103
- }
1104
- let newestModifiedTime = 0;
1105
- const children = await readdir(path, { withFileTypes: true });
1106
- for (const child of children) {
1107
- if (child.name === "node_modules" || child.name === ".turbo") {
1108
- continue;
1109
- }
1110
- const childModifiedTime = await getLatestModifiedTime(join(path, child.name));
1111
- if (typeof childModifiedTime === "number" && childModifiedTime > newestModifiedTime) {
1112
- newestModifiedTime = childModifiedTime;
1113
- }
1114
- }
1115
- return newestModifiedTime > 0 ? newestModifiedTime : entry2.mtimeMs;
1116
- }
1117
- async function getLocalWorkspaceBuildStatus(options = {}) {
1118
- const packageRoot = options.packageRoot ?? await findLocalDevflarePackageRoot(dirname(fileURLToPath(import.meta.url)));
1119
- if (!packageRoot) {
1120
- return {
1121
- state: "not-applicable"
1122
- };
1123
- }
1124
- const sourceDirectory = join(packageRoot, "src");
1125
- if (!await pathExists(sourceDirectory)) {
1126
- return {
1127
- state: "not-applicable",
1128
- packageRoot
1129
- };
1130
- }
1131
- const distDirectory = join(packageRoot, "dist");
1132
- if (!await pathExists(distDirectory)) {
1133
- const sourceNewestAt2 = await getLatestModifiedTime(sourceDirectory);
1134
- return {
1135
- state: "missing-dist",
1136
- packageRoot,
1137
- ...typeof sourceNewestAt2 === "number" ? { sourceNewestAt: new Date(sourceNewestAt2) } : {}
1138
- };
1139
- }
1140
- const [sourceNewestAt, distNewestAt] = await Promise.all([
1141
- getLatestModifiedTime(sourceDirectory),
1142
- getLatestModifiedTime(distDirectory)
1143
- ]);
1144
- if (typeof sourceNewestAt !== "number" || typeof distNewestAt !== "number") {
1145
- return {
1146
- state: "not-applicable",
1147
- packageRoot
1148
- };
1149
- }
1150
- return {
1151
- state: sourceNewestAt > distNewestAt ? "stale" : "fresh",
1152
- packageRoot,
1153
- sourceNewestAt: new Date(sourceNewestAt),
1154
- distNewestAt: new Date(distNewestAt)
1155
- };
1156
- }
1157
- async function getLocalWorkspaceBuildGuardMessage(command, options = {}) {
1158
- if (!["build", "deploy", "types"].includes(command)) {
1159
- return;
1160
- }
1161
- const env = options.env ?? process.env;
1162
- if (isTruthyEnvFlag(env.DEVFLARE_SKIP_WORKSPACE_BUILD_GUARD)) {
1163
- return;
1164
- }
1165
- if (isCiEnvironment(env)) {
1166
- return;
1167
- }
1168
- const status = await getLocalWorkspaceBuildStatus({
1169
- packageRoot: options.packageRoot
1170
- });
1171
- if (status.state === "fresh" || status.state === "not-applicable") {
1172
- return;
1173
- }
1174
- const timestampSummary = status.sourceNewestAt ? ` Latest source change: ${status.sourceNewestAt.toISOString()}.` : "";
1175
- const distTimestampSummary = status.distNewestAt ? ` Latest dist build: ${status.distNewestAt.toISOString()}.` : "";
1176
- if (status.state === "missing-dist") {
1177
- return `Local Devflare workspace exports are missing. Running \`devflare ${command}\` from this repository can mix the live CLI source with missing runtime exports. Run \`bun run --cwd packages/devflare build\` first, or set DEVFLARE_SKIP_WORKSPACE_BUILD_GUARD=true to bypass this guard.${timestampSummary}`;
1178
- }
1179
- return `Local Devflare workspace exports are stale. Running \`devflare ${command}\` from this repository can mix newer CLI source with older \`devflare/runtime\` exports.${timestampSummary}${distTimestampSummary} Run \`bun run --cwd packages/devflare build\` first, or set DEVFLARE_SKIP_WORKSPACE_BUILD_GUARD=true to bypass this guard.`;
1180
- }
1181
-
1182
- // src/cli/index.ts
1183
- function parseArgs(argv) {
1184
- const args = [];
1185
- const options = {};
1186
- let command;
1187
- let unknownCommand;
1188
- let i = 0;
1189
- const shortOptionAliases = {
1190
- h: "help",
1191
- v: "version"
1192
- };
1193
- while (i < argv.length) {
1194
- const arg = argv[i];
1195
- if (arg.startsWith("-") && !/^-\d/.test(arg)) {
1196
- const isLongFlag = arg.startsWith("--");
1197
- const rawKey = isLongFlag ? arg.slice(2) : arg.slice(1);
1198
- const key = isLongFlag ? rawKey : shortOptionAliases[rawKey] ?? rawKey;
1199
- const nextArg = argv[i + 1];
1200
- if (nextArg && !nextArg.startsWith("-")) {
1201
- options[key] = nextArg;
1202
- i += 2;
1203
- } else {
1204
- options[key] = true;
1205
- i++;
1206
- }
1207
- } else if (!command) {
1208
- if (COMMANDS.includes(arg)) {
1209
- command = arg;
1210
- } else {
1211
- unknownCommand = arg;
1212
- break;
1213
- }
1214
- i++;
1215
- } else {
1216
- args.push(arg);
1217
- i++;
1218
- }
1219
- }
1220
- if (unknownCommand) {
1221
- return {
1222
- command: "help",
1223
- args: [],
1224
- options,
1225
- unknownCommand
1226
- };
1227
- }
1228
- if (!command) {
1229
- if (options.version === true) {
1230
- return { command: "version", args: [], options };
1231
- }
1232
- return { command: "help", args: [], options };
1233
- }
1234
- return { command, args, options, unknownCommand };
1235
- }
1236
- async function runCli(argv, options = {}) {
1237
- const logger = createConsola({
1238
- level: options.silent ? -999 : 3,
1239
- formatOptions: {
1240
- date: false
1241
- }
1242
- });
1243
- const parsed = parseArgs(argv);
1244
- const theme = createCliTheme(parsed.options);
1245
- if (parsed.unknownCommand) {
1246
- logger.error(`Unknown command: ${parsed.unknownCommand}`);
1247
- logLine(logger, dim("Run `devflare --help` for available commands", theme));
1248
- return { exitCode: 1 };
1249
- }
1250
- const wantsHelp = parsed.options.help === true;
1251
- const helpPath = parsed.command === "help" ? parsed.args : wantsHelp ? [parsed.command, ...parsed.args] : undefined;
1252
- if (helpPath) {
1253
- const renderedHelp = renderHelp(helpPath, parsed.options);
1254
- if (!renderedHelp) {
1255
- const requestedTopic = helpPath.join(" ");
1256
- logger.error(`Unknown help topic: ${requestedTopic}`);
1257
- logLine(logger, dim("Run `devflare --help` for available commands", theme));
1258
- return { exitCode: 1 };
1259
- }
1260
- logLine(logger, renderedHelp.styled);
1261
- return { exitCode: 0, output: renderedHelp.plain };
1262
- }
1263
- const workspaceBuildGuardMessage = await getLocalWorkspaceBuildGuardMessage(parsed.command);
1264
- if (workspaceBuildGuardMessage) {
1265
- logger.error(workspaceBuildGuardMessage);
1266
- return { exitCode: 1 };
1267
- }
1268
- switch (parsed.command) {
1269
- case "version":
1270
- const version = await getPackageVersion();
1271
- logLine(logger, `${cyanBold("devflare", theme)} ${dim(`v${version}`, theme)}`);
1272
- return { exitCode: 0, output: version };
1273
- case "init":
1274
- return runInit(parsed, logger, options);
1275
- case "dev":
1276
- return runDev(parsed, logger, options);
1277
- case "build":
1278
- return runBuild(parsed, logger, options);
1279
- case "deploy":
1280
- return runDeploy(parsed, logger, options);
1281
- case "types":
1282
- return runTypes(parsed, logger, options);
1283
- case "doctor":
1284
- return runDoctor(parsed, logger, options);
1285
- case "config":
1286
- return runConfig(parsed, logger, options);
1287
- case "account":
1288
- return runAccount(parsed, logger, options);
1289
- case "login":
1290
- return runLogin(parsed, logger, options);
1291
- case "previews":
1292
- return runPreviews(parsed, logger, options);
1293
- case "productions":
1294
- return runProductions(parsed, logger, options);
1295
- case "worker":
1296
- return runWorker(parsed, logger, options);
1297
- case "tokens":
1298
- return runToken(parsed, logger, options);
1299
- case "ai":
1300
- return runAI();
1301
- case "remote":
1302
- return runRemote(parsed, logger, options);
1303
- default:
1304
- logger.error(`Unknown command: ${parsed.command}`);
1305
- return { exitCode: 1 };
1306
- }
1307
- }
1308
- async function runInit(parsed, logger, options) {
1309
- const { runInitCommand } = await import("./init-wfh63bfz.js");
1310
- return runInitCommand(parsed, logger, options);
1311
- }
1312
- async function runDev(parsed, logger, options) {
1313
- const { runDevCommand } = await import("./dev-k8ptbvrs.js");
1314
- return runDevCommand(parsed, logger, options);
1315
- }
1316
- async function runBuild(parsed, logger, options) {
1317
- const { runBuildCommand } = await import("./build-pr843h0d.js");
1318
- return runBuildCommand(parsed, logger, options);
1319
- }
1320
- async function runDeploy(parsed, logger, options) {
1321
- const { runDeployCommand } = await import("./deploy-agbtfm04.js");
1322
- return runDeployCommand(parsed, logger, {
1323
- ...options,
1324
- requireExplicitDeployTarget: true
1325
- });
1326
- }
1327
- async function runTypes(parsed, logger, options) {
1328
- const { runTypesCommand } = await import("./types-e6d336q3.js");
1329
- return runTypesCommand(parsed, logger, options);
1330
- }
1331
- async function runDoctor(parsed, logger, options) {
1332
- const { runDoctorCommand } = await import("./doctor-7ra1w0sk.js");
1333
- return runDoctorCommand(parsed, logger, options);
1334
- }
1335
- async function runConfig(parsed, logger, options) {
1336
- const { runConfigCommand } = await import("./config-baee5690.js");
1337
- return runConfigCommand(parsed, logger, options);
1338
- }
1339
- async function runAccount(parsed, logger, options) {
1340
- const { runAccountCommand } = await import("./account-fbyyptg7.js");
1341
- return runAccountCommand(parsed, logger, options);
1342
- }
1343
- async function runLogin(parsed, logger, options) {
1344
- const { runLoginCommand } = await import("./login-d80a2qxd.js");
1345
- return runLoginCommand(parsed, logger, options);
1346
- }
1347
- async function runPreviews(parsed, logger, options) {
1348
- const { runPreviewsCommand } = await import("./previews-k5n6vhpm.js");
1349
- return runPreviewsCommand(parsed, logger, options);
1350
- }
1351
- async function runProductions(parsed, logger, options) {
1352
- const { runProductionsCommand } = await import("./productions-dkgry3gv.js");
1353
- return runProductionsCommand(parsed, logger, options);
1354
- }
1355
- async function runWorker(parsed, logger, options) {
1356
- const { runWorkerCommand } = await import("./worker-aydzxt4f.js");
1357
- return runWorkerCommand(parsed, logger, options);
1358
- }
1359
- async function runToken(parsed, logger, options) {
1360
- const { runTokenCommand } = await import("./token-qxtvzm3b.js");
1361
- return runTokenCommand(parsed, logger, options);
1362
- }
1363
- async function runAI() {
1364
- const { runAICommand } = await import("./ai-dx4fr9jh.js");
1365
- return runAICommand();
1366
- }
1367
- async function runRemote(parsed, logger, options) {
1368
- const { runRemoteCommand } = await import("./remote-q59qk463.js");
1369
- return runRemoteCommand(parsed, logger, options);
1370
- }
1371
-
1372
- export { parseArgs, runCli };