devflare 1.0.0-next.24 → 1.0.0-next.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1085) hide show
  1. package/LLM.md +5 -1
  2. package/README.md +1 -0
  3. package/bin/devflare.js +24 -24
  4. package/dist/{account-j8nfggg4.js → account-fvf5gxc9.js} +4 -4
  5. package/dist/browser.d.ts +60 -0
  6. package/dist/browser.d.ts.map +1 -1
  7. package/dist/{build-vctfnmsf.js → build-x1fhfsgs.js} +6 -6
  8. package/dist/cli/commands/dev.d.ts +8 -1
  9. package/dist/cli/commands/dev.d.ts.map +1 -1
  10. package/dist/cli/help-pages/pages/core.d.ts.map +1 -1
  11. package/dist/cli/help-pages/pages/misc.d.ts.map +1 -1
  12. package/dist/cli/index.js +1 -1
  13. package/dist/cloudflare/index.js +2 -2
  14. package/dist/cloudflare/tokens.d.ts +4 -1
  15. package/dist/cloudflare/tokens.d.ts.map +1 -1
  16. package/dist/config/schema-env.d.ts +36 -0
  17. package/dist/config/schema-env.d.ts.map +1 -1
  18. package/dist/config/schema-runtime.d.ts +22 -0
  19. package/dist/config/schema-runtime.d.ts.map +1 -1
  20. package/dist/config/schema-types-runtime.d.ts +32 -0
  21. package/dist/config/schema-types-runtime.d.ts.map +1 -1
  22. package/dist/config/schema-types.d.ts +14 -1
  23. package/dist/config/schema-types.d.ts.map +1 -1
  24. package/dist/config/schema.d.ts +73 -2
  25. package/dist/config/schema.d.ts.map +1 -1
  26. package/dist/{config-gq5jh4cx.js → config-2d6x21jn.js} +2 -2
  27. package/dist/{deploy-mem96qyn.js → deploy-g85w9drn.js} +8 -8
  28. package/dist/{dev-apkr7cfv.js → dev-f2zhzajr.js} +26 -14
  29. package/dist/dev-server/miniflare-dev-config.d.ts +1 -0
  30. package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -1
  31. package/dist/dev-server/server.d.ts +2 -0
  32. package/dist/dev-server/server.d.ts.map +1 -1
  33. package/dist/{doctor-9asw8x18.js → doctor-sjrcz7x9.js} +2 -2
  34. package/dist/{index-e151t4ge.js → index-0gtmnw0m.js} +1 -1
  35. package/dist/{index-k7m5f1dg.js → index-11p28kxx.js} +68 -12
  36. package/dist/{index-cna43592.js → index-2sc756r1.js} +5 -0
  37. package/dist/{index-s9q605sq.js → index-467tm7r4.js} +1 -1
  38. package/dist/{index-qqp65pyv.js → index-5yvpk954.js} +1 -1
  39. package/dist/{index-hzmpecq9.js → index-706k4606.js} +1 -1
  40. package/dist/{index-x2k3awjs.js → index-7zfv1g9m.js} +1 -1
  41. package/dist/{index-bj5avaba.js → index-c4jmfzz7.js} +2 -2
  42. package/dist/{index-vtcmsgaf.js → index-fjmdb57t.js} +4 -4
  43. package/dist/{index-h332fg62.js → index-g4fcnwhc.js} +3 -3
  44. package/dist/{index-8p7rxkbs.js → index-g7142jcz.js} +19 -17
  45. package/dist/{index-dref9ecb.js → index-pmeashfz.js} +1 -1
  46. package/dist/{index-0m6e4mxz.js → index-qmmqww7h.js} +1 -1
  47. package/dist/{index-678j0n13.js → index-thwacc28.js} +1 -1
  48. package/dist/{index-50mxxb4q.js → index-zwmphmc5.js} +1 -1
  49. package/dist/index.js +3 -3
  50. package/dist/{login-4n266whq.js → login-fthspvbx.js} +4 -4
  51. package/dist/{previews-tr8sm03d.js → previews-aa16z2hj.js} +8 -8
  52. package/dist/{productions-4m1pd6ts.js → productions-vemjgfz0.js} +6 -6
  53. package/dist/{secrets-gywxctdh.js → secrets-b0x50dd1.js} +3 -3
  54. package/dist/sveltekit/index.js +3 -3
  55. package/dist/test/index.js +6 -6
  56. package/dist/{token-sct51r47.js → token-35jcdqq8.js} +5 -5
  57. package/dist/{types-apmt10yj.js → types-03w8zkg6.js} +3 -3
  58. package/dist/vite/index.js +4 -4
  59. package/dist/{worker-4fd49jm0.js → worker-55q6b8nc.js} +6 -6
  60. package/package.json +17 -3
  61. package/dist/account-05zgta47.js +0 -475
  62. package/dist/account-0evqkmnc.js +0 -475
  63. package/dist/account-0v11zbzk.js +0 -475
  64. package/dist/account-2w85efas.js +0 -475
  65. package/dist/account-5nm1xn0v.js +0 -475
  66. package/dist/account-61gw9s7t.js +0 -475
  67. package/dist/account-65sk9q34.js +0 -475
  68. package/dist/account-77vx7q2f.js +0 -475
  69. package/dist/account-7z38mgqf.js +0 -475
  70. package/dist/account-8wgprpbt.js +0 -475
  71. package/dist/account-9gt3tej1.js +0 -475
  72. package/dist/account-b2ag1esh.js +0 -475
  73. package/dist/account-bxtcz61a.js +0 -475
  74. package/dist/account-d43d1eqs.js +0 -475
  75. package/dist/account-dtndtbad.js +0 -475
  76. package/dist/account-e95v7f4s.js +0 -475
  77. package/dist/account-fbyyptg7.js +0 -475
  78. package/dist/account-gnzhz1c9.js +0 -475
  79. package/dist/account-gyfqg964.js +0 -475
  80. package/dist/account-m6jq6fnp.js +0 -475
  81. package/dist/account-mvnfagh9.js +0 -475
  82. package/dist/account-p0crq2gh.js +0 -475
  83. package/dist/account-q6pvs9d9.js +0 -475
  84. package/dist/account-qhe8vtds.js +0 -475
  85. package/dist/account-qkcevx7a.js +0 -475
  86. package/dist/account-rp4zbvw1.js +0 -475
  87. package/dist/account-txwqg1rx.js +0 -475
  88. package/dist/account-w5n5bjh2.js +0 -475
  89. package/dist/account-zd61t0ey.js +0 -475
  90. package/dist/api-11gkk043.js +0 -33
  91. package/dist/api-dbxvch9h.js +0 -33
  92. package/dist/api-p9hf69kr.js +0 -33
  93. package/dist/api-r10j00ev.js +0 -33
  94. package/dist/api-senf2569.js +0 -33
  95. package/dist/api-swcgnp72.js +0 -33
  96. package/dist/api-th82mps4.js +0 -27
  97. package/dist/bridge/protocol.d.ts +0 -146
  98. package/dist/bridge/protocol.d.ts.map +0 -1
  99. package/dist/bridge/serialization.d.ts +0 -103
  100. package/dist/bridge/serialization.d.ts.map +0 -1
  101. package/dist/bridge/v2/legacy-protocol.d.ts +0 -146
  102. package/dist/bridge/v2/legacy-protocol.d.ts.map +0 -1
  103. package/dist/bridge/v2/legacy-serialization.d.ts +0 -103
  104. package/dist/bridge/v2/legacy-serialization.d.ts.map +0 -1
  105. package/dist/build-07mjrvsn.js +0 -53
  106. package/dist/build-0rfr8k1s.js +0 -53
  107. package/dist/build-1313sg73.js +0 -52
  108. package/dist/build-1hnntbks.js +0 -53
  109. package/dist/build-1r3myv0k.js +0 -53
  110. package/dist/build-28561w5v.js +0 -54
  111. package/dist/build-2s5paw5p.js +0 -54
  112. package/dist/build-4c350cp7.js +0 -54
  113. package/dist/build-50yqpwb3.js +0 -54
  114. package/dist/build-55z8psd6.js +0 -53
  115. package/dist/build-5b9wj2p0.js +0 -53
  116. package/dist/build-5frhzh1m.js +0 -53
  117. package/dist/build-6ye9vnab.js +0 -52
  118. package/dist/build-8gv18jrq.js +0 -52
  119. package/dist/build-9bgqypy6.js +0 -53
  120. package/dist/build-9em4ymqn.js +0 -52
  121. package/dist/build-b1z6wqet.js +0 -54
  122. package/dist/build-e7wym63t.js +0 -54
  123. package/dist/build-eh3x12qc.js +0 -52
  124. package/dist/build-emhyycp7.js +0 -53
  125. package/dist/build-f1m9jn7b.js +0 -53
  126. package/dist/build-ffe72jjv.js +0 -54
  127. package/dist/build-fx90y6za.js +0 -53
  128. package/dist/build-ge6qp3t4.js +0 -54
  129. package/dist/build-h31egsze.js +0 -53
  130. package/dist/build-hpczwagb.js +0 -53
  131. package/dist/build-hpkbanpw.js +0 -54
  132. package/dist/build-j2re91xe.js +0 -54
  133. package/dist/build-j78389rg.js +0 -52
  134. package/dist/build-m3kckn5g.js +0 -53
  135. package/dist/build-mf3thcjm.js +0 -53
  136. package/dist/build-n3n5bv37.js +0 -52
  137. package/dist/build-ngfy4v5x.js +0 -53
  138. package/dist/build-pr843h0d.js +0 -52
  139. package/dist/build-qsgnme4z.js +0 -54
  140. package/dist/build-qyg2b45p.js +0 -52
  141. package/dist/build-r6884kyt.js +0 -53
  142. package/dist/build-re370wkf.js +0 -53
  143. package/dist/build-ta8c6t11.js +0 -54
  144. package/dist/build-vvndgwg0.js +0 -52
  145. package/dist/build-vy95gy3f.js +0 -54
  146. package/dist/build-wp559jkf.js +0 -54
  147. package/dist/build-wvjj8f28.js +0 -54
  148. package/dist/build-x4r67275.js +0 -52
  149. package/dist/build-x7maz3eb.js +0 -54
  150. package/dist/build-xp4pfhvv.js +0 -52
  151. package/dist/build-y489r2h9.js +0 -54
  152. package/dist/build-y6g4bvx5.js +0 -52
  153. package/dist/build-ypg6f2kw.js +0 -54
  154. package/dist/build-yts8wwgf.js +0 -54
  155. package/dist/build-yvn0yhwx.js +0 -52
  156. package/dist/build-yzkdqexs.js +0 -54
  157. package/dist/build-yzx0gsaj.js +0 -54
  158. package/dist/build-z4vmhs5c.js +0 -53
  159. package/dist/config-1japnjmx.js +0 -59
  160. package/dist/config-287wjn1m.js +0 -59
  161. package/dist/config-4x6vq82e.js +0 -59
  162. package/dist/config-5n0avhcx.js +0 -59
  163. package/dist/config-6m0n7d84.js +0 -59
  164. package/dist/config-70s2ap5j.js +0 -59
  165. package/dist/config-7cf004ag.js +0 -59
  166. package/dist/config-7hge8ze6.js +0 -59
  167. package/dist/config-7rbp7aek.js +0 -59
  168. package/dist/config-b8xbbmta.js +0 -59
  169. package/dist/config-b98dp58n.js +0 -59
  170. package/dist/config-baee5690.js +0 -59
  171. package/dist/config-bczpc1ey.js +0 -59
  172. package/dist/config-cf3djhqy.js +0 -59
  173. package/dist/config-fhmwzaw6.js +0 -59
  174. package/dist/config-g9vkfa4x.js +0 -59
  175. package/dist/config-gpexkzth.js +0 -59
  176. package/dist/config-nspw7sgv.js +0 -59
  177. package/dist/config-ntm4x9wt.js +0 -59
  178. package/dist/config-nv6hfpg6.js +0 -59
  179. package/dist/config-pjc33wew.js +0 -59
  180. package/dist/config-pnz2e8s3.js +0 -59
  181. package/dist/config-qj5jw8km.js +0 -93
  182. package/dist/config-qts6nh6g.js +0 -59
  183. package/dist/config-rq32csms.js +0 -105
  184. package/dist/config-sg2xrdt4.js +0 -59
  185. package/dist/config-vec13050.js +0 -105
  186. package/dist/config-vzwckat3.js +0 -59
  187. package/dist/config-wa7hm0w9.js +0 -59
  188. package/dist/config-x90dkmm7.js +0 -59
  189. package/dist/deploy-01j0ep5n.js +0 -1055
  190. package/dist/deploy-1jfagtn9.js +0 -1055
  191. package/dist/deploy-1s6nv5rp.js +0 -921
  192. package/dist/deploy-2afw0jfg.js +0 -1055
  193. package/dist/deploy-2fzj68kq.js +0 -1055
  194. package/dist/deploy-30ph1rrd.js +0 -921
  195. package/dist/deploy-39dmfn9d.js +0 -921
  196. package/dist/deploy-44n2pshy.js +0 -1016
  197. package/dist/deploy-45qxpsfe.js +0 -921
  198. package/dist/deploy-57nzn9wj.js +0 -1045
  199. package/dist/deploy-64e57w1g.js +0 -1040
  200. package/dist/deploy-82j43vta.js +0 -1040
  201. package/dist/deploy-99m8qhpa.js +0 -1041
  202. package/dist/deploy-9twkd32f.js +0 -1040
  203. package/dist/deploy-a2eq2c1n.js +0 -1040
  204. package/dist/deploy-a3pb1qs5.js +0 -921
  205. package/dist/deploy-agbtfm04.js +0 -921
  206. package/dist/deploy-aswbtbf3.js +0 -921
  207. package/dist/deploy-asyryrvm.js +0 -1055
  208. package/dist/deploy-bqf3kxy5.js +0 -972
  209. package/dist/deploy-fv4z648h.js +0 -921
  210. package/dist/deploy-gsybda2f.js +0 -1038
  211. package/dist/deploy-h17nzysm.js +0 -921
  212. package/dist/deploy-hc89h4wg.js +0 -1045
  213. package/dist/deploy-hc927rw6.js +0 -1045
  214. package/dist/deploy-jey5pnqn.js +0 -1040
  215. package/dist/deploy-jf3yczsz.js +0 -1055
  216. package/dist/deploy-jv0yfqvk.js +0 -1040
  217. package/dist/deploy-kn3z6spd.js +0 -941
  218. package/dist/deploy-krj3k9zm.js +0 -1055
  219. package/dist/deploy-m22xmz9w.js +0 -921
  220. package/dist/deploy-nefp2njy.js +0 -1038
  221. package/dist/deploy-nh5tbv45.js +0 -1055
  222. package/dist/deploy-pnnf8tgy.js +0 -1045
  223. package/dist/deploy-ppp8pg6w.js +0 -1038
  224. package/dist/deploy-q33bw715.js +0 -1055
  225. package/dist/deploy-qah2eag6.js +0 -1041
  226. package/dist/deploy-qdq2gpad.js +0 -1045
  227. package/dist/deploy-r1yf8913.js +0 -1038
  228. package/dist/deploy-r8nam9rr.js +0 -1038
  229. package/dist/deploy-rrm4a0xw.js +0 -921
  230. package/dist/deploy-s0tfnc12.js +0 -1040
  231. package/dist/deploy-s636ks9k.js +0 -1041
  232. package/dist/deploy-sany8t54.js +0 -1045
  233. package/dist/deploy-skqn61j3.js +0 -1038
  234. package/dist/deploy-smv2870h.js +0 -921
  235. package/dist/deploy-sp16nxs5.js +0 -972
  236. package/dist/deploy-sr805bvq.js +0 -921
  237. package/dist/deploy-t9dehmn0.js +0 -1041
  238. package/dist/deploy-taxt7njz.js +0 -1041
  239. package/dist/deploy-tjypkhg7.js +0 -1055
  240. package/dist/deploy-tmdgecs3.js +0 -1055
  241. package/dist/deploy-tnfvfh9m.js +0 -1040
  242. package/dist/deploy-v0y8kczr.js +0 -1055
  243. package/dist/deploy-w5f8db4s.js +0 -1040
  244. package/dist/deploy-wsxcectr.js +0 -921
  245. package/dist/deploy-xhj6zbcx.js +0 -1055
  246. package/dist/deploy-xqm869nf.js +0 -1055
  247. package/dist/deploy-xyfbhj3v.js +0 -1038
  248. package/dist/deploy-yv1y5xaa.js +0 -921
  249. package/dist/deploy-z3ejw37k.js +0 -1040
  250. package/dist/dev-02tgdc4f.js +0 -2160
  251. package/dist/dev-0tqhveye.js +0 -2314
  252. package/dist/dev-1mvcts8w.js +0 -2515
  253. package/dist/dev-2a283xts.js +0 -2515
  254. package/dist/dev-3dj2gkfq.js +0 -2314
  255. package/dist/dev-3e0etsww.js +0 -2314
  256. package/dist/dev-47dk7c13.js +0 -2314
  257. package/dist/dev-4a2a31cm.js +0 -2314
  258. package/dist/dev-4w1stcn8.js +0 -2427
  259. package/dist/dev-5wkh1z4a.js +0 -2188
  260. package/dist/dev-62nhytf8.js +0 -2505
  261. package/dist/dev-6t22zmey.js +0 -2350
  262. package/dist/dev-75acm2xj.js +0 -2478
  263. package/dist/dev-802rg9dp.js +0 -2515
  264. package/dist/dev-89p1sdv7.js +0 -2395
  265. package/dist/dev-8d1gxjky.js +0 -2427
  266. package/dist/dev-8yawx3cv.js +0 -2314
  267. package/dist/dev-9h4p8a0c.js +0 -2393
  268. package/dist/dev-9xmttj4c.js +0 -2314
  269. package/dist/dev-at6gy2td.js +0 -2427
  270. package/dist/dev-bgpxrwms.js +0 -2551
  271. package/dist/dev-bh581ew3.js +0 -2597
  272. package/dist/dev-bkbz97z0.js +0 -2314
  273. package/dist/dev-cme5de75.js +0 -2551
  274. package/dist/dev-ct3344kv.js +0 -2160
  275. package/dist/dev-d1bb2t0f.js +0 -2515
  276. package/dist/dev-dg8dh5c1.js +0 -2234
  277. package/dist/dev-dr5jb965.js +0 -2427
  278. package/dist/dev-dwry8494.js +0 -2489
  279. package/dist/dev-e4sjqtbq.js +0 -2314
  280. package/dist/dev-ecq26mg4.js +0 -2350
  281. package/dist/dev-ef237vgp.js +0 -2324
  282. package/dist/dev-enbdg4st.js +0 -2314
  283. package/dist/dev-g6112y4w.js +0 -2515
  284. package/dist/dev-gn5y93z9.js +0 -2597
  285. package/dist/dev-h2kneh95.js +0 -2496
  286. package/dist/dev-jcrxg8hq.js +0 -2160
  287. package/dist/dev-jk0gqges.js +0 -2432
  288. package/dist/dev-k62936am.js +0 -2314
  289. package/dist/dev-k8ptbvrs.js +0 -2160
  290. package/dist/dev-kqm107h4.js +0 -2422
  291. package/dist/dev-kybq3mwr.js +0 -2489
  292. package/dist/dev-kzs65xcr.js +0 -2551
  293. package/dist/dev-n0gx7eya.js +0 -2350
  294. package/dist/dev-n23m6rtb.js +0 -2314
  295. package/dist/dev-n8qndkyg.js +0 -2512
  296. package/dist/dev-ny8fmkzg.js +0 -2432
  297. package/dist/dev-p1c65cga.js +0 -2386
  298. package/dist/dev-p32fkbwf.js +0 -2489
  299. package/dist/dev-p4fjbb4h.js +0 -2395
  300. package/dist/dev-pnfcv79z.js +0 -2160
  301. package/dist/dev-qm9d4mfh.js +0 -2478
  302. package/dist/dev-qnrrv5ey.js +0 -2393
  303. package/dist/dev-qqysg50t.js +0 -2427
  304. package/dist/dev-r9f3n11q.js +0 -2410
  305. package/dist/dev-rcthnse5.js +0 -2473
  306. package/dist/dev-s0815dw4.js +0 -2427
  307. package/dist/dev-s4tpkg60.js +0 -2314
  308. package/dist/dev-s82fcesg.js +0 -2314
  309. package/dist/dev-s9sz53me.js +0 -2401
  310. package/dist/dev-sdka7z0d.js +0 -2427
  311. package/dist/dev-t3tjscah.js +0 -2350
  312. package/dist/dev-t50kdb1j.js +0 -2338
  313. package/dist/dev-t5xf55pt.js +0 -2314
  314. package/dist/dev-t63c44bb.js +0 -2314
  315. package/dist/dev-tgwja5mz.js +0 -2496
  316. package/dist/dev-wg3d38sy.js +0 -2433
  317. package/dist/dev-wh4rfgsh.js +0 -2427
  318. package/dist/dev-wjh8gdd1.js +0 -2284
  319. package/dist/dev-xzxy9qvq.js +0 -2314
  320. package/dist/dev-yymaq4ph.js +0 -2392
  321. package/dist/dev-zg2w2ve3.js +0 -2422
  322. package/dist/dev-zgx7fhe9.js +0 -2553
  323. package/dist/dev-zsb2xk1x.js +0 -2427
  324. package/dist/dev-zty3yhzg.js +0 -2324
  325. package/dist/doctor-0a2brpyz.js +0 -259
  326. package/dist/doctor-2shhdak6.js +0 -245
  327. package/dist/doctor-3mqavqg3.js +0 -245
  328. package/dist/doctor-5g73w40j.js +0 -245
  329. package/dist/doctor-5nek32fz.js +0 -245
  330. package/dist/doctor-7ra1w0sk.js +0 -245
  331. package/dist/doctor-ak830a0k.js +0 -245
  332. package/dist/doctor-bye3cs8a.js +0 -245
  333. package/dist/doctor-c5m9pmwq.js +0 -245
  334. package/dist/doctor-cqfkgxvw.js +0 -245
  335. package/dist/doctor-e1h9mhzp.js +0 -245
  336. package/dist/doctor-fmqsrafk.js +0 -245
  337. package/dist/doctor-gamefzcs.js +0 -245
  338. package/dist/doctor-h5q28qt1.js +0 -259
  339. package/dist/doctor-hgs7wr5g.js +0 -245
  340. package/dist/doctor-j8ytsy94.js +0 -245
  341. package/dist/doctor-khk550tw.js +0 -259
  342. package/dist/doctor-mcmkgp6e.js +0 -245
  343. package/dist/doctor-qb6m2exc.js +0 -245
  344. package/dist/doctor-qq4tsh8q.js +0 -245
  345. package/dist/doctor-rn53ctfs.js +0 -245
  346. package/dist/doctor-tecv869a.js +0 -245
  347. package/dist/doctor-wg0245pe.js +0 -245
  348. package/dist/doctor-z3jfqxtz.js +0 -245
  349. package/dist/durable-object-4hey8fgy.js +0 -13
  350. package/dist/durable-object-yt8v1dyn.js +0 -13
  351. package/dist/index-01kehw41.js +0 -348
  352. package/dist/index-05pbj4hy.js +0 -1193
  353. package/dist/index-06bg0z9y.js +0 -185
  354. package/dist/index-0bv2qjs1.js +0 -1555
  355. package/dist/index-0d7tw5r4.js +0 -136
  356. package/dist/index-0krb65s3.js +0 -215
  357. package/dist/index-0mantew0.js +0 -513
  358. package/dist/index-0mezg6ar.js +0 -1372
  359. package/dist/index-0tk2rs0q.js +0 -185
  360. package/dist/index-0vah20er.js +0 -1410
  361. package/dist/index-0wa0ebm1.js +0 -68
  362. package/dist/index-124e9t4t.js +0 -232
  363. package/dist/index-1546yrn0.js +0 -74
  364. package/dist/index-1714y3cz.js +0 -1410
  365. package/dist/index-18mp5v50.js +0 -538
  366. package/dist/index-195tc6qh.js +0 -1372
  367. package/dist/index-1bg8w2gf.js +0 -52
  368. package/dist/index-1e2qtrmj.js +0 -188
  369. package/dist/index-1ghhgb9d.js +0 -74
  370. package/dist/index-1nhd9nkd.js +0 -232
  371. package/dist/index-1p814k7s.js +0 -227
  372. package/dist/index-1qs5gcm7.js +0 -895
  373. package/dist/index-1wn8mjep.js +0 -808
  374. package/dist/index-1xhd5czz.js +0 -185
  375. package/dist/index-29k04v43.js +0 -574
  376. package/dist/index-2a2g4fwp.js +0 -993
  377. package/dist/index-2bmtj21z.js +0 -192
  378. package/dist/index-2dpmd14d.js +0 -52
  379. package/dist/index-2fa0afdp.js +0 -1372
  380. package/dist/index-2jywf4pz.js +0 -1372
  381. package/dist/index-2qhk9nbx.js +0 -1372
  382. package/dist/index-2rcrefqd.js +0 -1372
  383. package/dist/index-2t2m5148.js +0 -1372
  384. package/dist/index-2vbzamev.js +0 -437
  385. package/dist/index-2vdep9h0.js +0 -993
  386. package/dist/index-2vq6bveq.js +0 -574
  387. package/dist/index-2y90j9cz.js +0 -74
  388. package/dist/index-33ep0z9x.js +0 -385
  389. package/dist/index-36h8gkhb.js +0 -1088
  390. package/dist/index-37jgbaw6.js +0 -1372
  391. package/dist/index-380ncsqc.js +0 -977
  392. package/dist/index-38fq7pww.js +0 -560
  393. package/dist/index-3bxqn033.js +0 -1410
  394. package/dist/index-3e1x39fc.js +0 -365
  395. package/dist/index-3e7by9sy.js +0 -223
  396. package/dist/index-3egad6wm.js +0 -538
  397. package/dist/index-3f8rzmjw.js +0 -232
  398. package/dist/index-3p7s9mk9.js +0 -360
  399. package/dist/index-3vd4r37r.js +0 -1372
  400. package/dist/index-3vgn5e89.js +0 -1682
  401. package/dist/index-3x7k3t0f.js +0 -513
  402. package/dist/index-3xfe2dst.js +0 -399
  403. package/dist/index-464j1zb4.js +0 -513
  404. package/dist/index-47w35sft.js +0 -244
  405. package/dist/index-48rxsj95.js +0 -365
  406. package/dist/index-4bezcdd1.js +0 -385
  407. package/dist/index-4by4c7rm.js +0 -52
  408. package/dist/index-4fp11z9e.js +0 -973
  409. package/dist/index-4j9ah79n.js +0 -1033
  410. package/dist/index-4knecthc.js +0 -70
  411. package/dist/index-4phjwd6h.js +0 -412
  412. package/dist/index-4se6krdj.js +0 -574
  413. package/dist/index-4z5jrw0j.js +0 -594
  414. package/dist/index-502y7w13.js +0 -538
  415. package/dist/index-50em8s6c.js +0 -898
  416. package/dist/index-51mzqy0d.js +0 -895
  417. package/dist/index-53pqqpq9.js +0 -74
  418. package/dist/index-5achzspr.js +0 -185
  419. package/dist/index-5ef3jmv7.js +0 -1372
  420. package/dist/index-5enq8ntr.js +0 -1766
  421. package/dist/index-5eswe8yv.js +0 -844
  422. package/dist/index-5fnq9r9m.js +0 -1410
  423. package/dist/index-5gevxfgs.js +0 -513
  424. package/dist/index-5gmf048z.js +0 -817
  425. package/dist/index-5jtkxpjf.js +0 -971
  426. package/dist/index-5m85bd9x.js +0 -168
  427. package/dist/index-5n5nn0a8.js +0 -264
  428. package/dist/index-5p3bgjwr.js +0 -808
  429. package/dist/index-5vzcszr2.js +0 -1230
  430. package/dist/index-5w77r4w9.js +0 -513
  431. package/dist/index-5w9f2b17.js +0 -695
  432. package/dist/index-62srkqcm.js +0 -168
  433. package/dist/index-63cgqe43.js +0 -1372
  434. package/dist/index-65e7xx1a.js +0 -19
  435. package/dist/index-65qrje14.js +0 -185
  436. package/dist/index-666tdx14.js +0 -895
  437. package/dist/index-66sx3b3v.js +0 -385
  438. package/dist/index-6bqgf5x8.js +0 -227
  439. package/dist/index-6ftrth7n.js +0 -1218
  440. package/dist/index-6g90pvxa.js +0 -215
  441. package/dist/index-6h8xbs75.js +0 -44
  442. package/dist/index-6j4m5x2d.js +0 -1372
  443. package/dist/index-6jwpke14.js +0 -385
  444. package/dist/index-6knsjvxh.js +0 -1372
  445. package/dist/index-6kwq6yf8.js +0 -979
  446. package/dist/index-6mg4yvc6.js +0 -74
  447. package/dist/index-6phry941.js +0 -133
  448. package/dist/index-6r59wbek.js +0 -232
  449. package/dist/index-6sf815ps.js +0 -74
  450. package/dist/index-6xknvbyk.js +0 -1088
  451. package/dist/index-6zd89k6y.js +0 -1230
  452. package/dist/index-71rwg0cn.js +0 -264
  453. package/dist/index-75ex2m0x.js +0 -695
  454. package/dist/index-79exzs3q.js +0 -1218
  455. package/dist/index-7bxj118m.js +0 -264
  456. package/dist/index-7c6np4mq.js +0 -397
  457. package/dist/index-7cm339qz.js +0 -133
  458. package/dist/index-7e359eb5.js +0 -895
  459. package/dist/index-7ef3ktz5.js +0 -1372
  460. package/dist/index-7eqyr4j8.js +0 -70
  461. package/dist/index-7hpjfdzh.js +0 -185
  462. package/dist/index-7k278fgz.js +0 -273
  463. package/dist/index-7kazxkjt.js +0 -1372
  464. package/dist/index-7m0x8m9r.js +0 -844
  465. package/dist/index-7p74smg8.js +0 -1372
  466. package/dist/index-7q8fke3k.js +0 -188
  467. package/dist/index-7qk6eafn.js +0 -1682
  468. package/dist/index-7r7dfpcm.js +0 -133
  469. package/dist/index-7vbjt6ba.js +0 -805
  470. package/dist/index-7z4b0vgd.js +0 -470
  471. package/dist/index-8052df4m.js +0 -627
  472. package/dist/index-82epjzrr.js +0 -1410
  473. package/dist/index-82f1z98k.js +0 -41
  474. package/dist/index-82xn4azv.js +0 -74
  475. package/dist/index-82z7rvz6.js +0 -1238
  476. package/dist/index-83wns7cz.js +0 -70
  477. package/dist/index-852945d4.js +0 -413
  478. package/dist/index-86rvj79f.js +0 -133
  479. package/dist/index-88tcq0t4.js +0 -542
  480. package/dist/index-8atc1yb9.js +0 -68
  481. package/dist/index-8evn52g1.js +0 -1218
  482. package/dist/index-8fyz6gcm.js +0 -699
  483. package/dist/index-8jkf4nsd.js +0 -695
  484. package/dist/index-8nx4ce3e.js +0 -133
  485. package/dist/index-8q1bcnrh.js +0 -1372
  486. package/dist/index-8t5gynct.js +0 -971
  487. package/dist/index-8tj0awnv.js +0 -476
  488. package/dist/index-8x745h59.js +0 -1069
  489. package/dist/index-905svbb6.js +0 -470
  490. package/dist/index-94cb0sac.js +0 -1372
  491. package/dist/index-95mmvbw7.js +0 -538
  492. package/dist/index-97x94h0m.js +0 -438
  493. package/dist/index-97z629zr.js +0 -109
  494. package/dist/index-9an9qqr1.js +0 -728
  495. package/dist/index-9bawzcny.js +0 -574
  496. package/dist/index-9bjjqdfc.js +0 -236
  497. package/dist/index-9d125myk.js +0 -1372
  498. package/dist/index-9d7x3vfr.js +0 -236
  499. package/dist/index-9fbtk7gv.js +0 -817
  500. package/dist/index-9gg0kqw0.js +0 -470
  501. package/dist/index-9nf8zs4p.js +0 -1069
  502. package/dist/index-9ryw7mcw.js +0 -971
  503. package/dist/index-9wt9x09k.js +0 -287
  504. package/dist/index-a3e13a7m.js +0 -478
  505. package/dist/index-a6j44jmr.js +0 -1372
  506. package/dist/index-a75ejnvt.js +0 -1711
  507. package/dist/index-ab2nck1h.js +0 -1372
  508. package/dist/index-abrqnq3e.js +0 -488
  509. package/dist/index-acwbmagz.js +0 -412
  510. package/dist/index-afjbpgb1.js +0 -1218
  511. package/dist/index-aqjdaem7.js +0 -74
  512. package/dist/index-at89fpde.js +0 -470
  513. package/dist/index-awr0tp6p.js +0 -313
  514. package/dist/index-b1be9bdh.js +0 -1372
  515. package/dist/index-b1xs3wc4.js +0 -513
  516. package/dist/index-b28c4yr4.js +0 -1205
  517. package/dist/index-b50x7seh.js +0 -513
  518. package/dist/index-b5ra8w3q.js +0 -52
  519. package/dist/index-b6448fd0.js +0 -133
  520. package/dist/index-b64sbzgv.js +0 -884
  521. package/dist/index-b7r8ntpm.js +0 -1372
  522. package/dist/index-b9j55r7q.js +0 -240
  523. package/dist/index-ba9gyy13.js +0 -513
  524. package/dist/index-bb66mn7p.js +0 -52
  525. package/dist/index-bc5pvbbd.js +0 -1193
  526. package/dist/index-bdatd1za.js +0 -1372
  527. package/dist/index-bfjpjs07.js +0 -581
  528. package/dist/index-bj0mk3dw.js +0 -74
  529. package/dist/index-bj3a8dr0.js +0 -1372
  530. package/dist/index-bk3eez1g.js +0 -513
  531. package/dist/index-btjx137w.js +0 -774
  532. package/dist/index-btrfqp9h.js +0 -133
  533. package/dist/index-bx6gangy.js +0 -402
  534. package/dist/index-c0tc0yts.js +0 -471
  535. package/dist/index-c0whkev9.js +0 -200
  536. package/dist/index-c3nxftnp.js +0 -699
  537. package/dist/index-c643s0gv.js +0 -488
  538. package/dist/index-ca96qkva.js +0 -1372
  539. package/dist/index-cdtzkedk.js +0 -993
  540. package/dist/index-cejgenma.js +0 -1372
  541. package/dist/index-cp8jt5pr.js +0 -52
  542. package/dist/index-cpz69pek.js +0 -1372
  543. package/dist/index-cr06zrgw.js +0 -1033
  544. package/dist/index-crrdegk5.js +0 -456
  545. package/dist/index-cskszwkx.js +0 -1372
  546. package/dist/index-cwjjdtgn.js +0 -74
  547. package/dist/index-cxf22a0s.js +0 -74
  548. package/dist/index-cy3c3w81.js +0 -270
  549. package/dist/index-d00njc1f.js +0 -147
  550. package/dist/index-d2md1j3d.js +0 -185
  551. package/dist/index-d5dgb1j6.js +0 -74
  552. package/dist/index-da397xcx.js +0 -1372
  553. package/dist/index-damyy8bw.js +0 -1372
  554. package/dist/index-dbr6bfz6.js +0 -528
  555. package/dist/index-dd1g0g7e.js +0 -360
  556. package/dist/index-dd6fwwmq.js +0 -456
  557. package/dist/index-dgeamyfk.js +0 -1426
  558. package/dist/index-dgww0ewn.js +0 -574
  559. package/dist/index-dh1954bp.js +0 -52
  560. package/dist/index-djp2wd1f.js +0 -1372
  561. package/dist/index-dktb9az5.js +0 -1372
  562. package/dist/index-dmbdj6va.js +0 -805
  563. package/dist/index-dmf76tac.js +0 -1372
  564. package/dist/index-dphr32gc.js +0 -420
  565. package/dist/index-dxh2qyyw.js +0 -52
  566. package/dist/index-dzayfxjy.js +0 -492
  567. package/dist/index-e05q77kt.js +0 -397
  568. package/dist/index-e11b1fb2.js +0 -495
  569. package/dist/index-e3zvspqj.js +0 -968
  570. package/dist/index-e4tzzbn9.js +0 -1372
  571. package/dist/index-e5ct1gwb.js +0 -1372
  572. package/dist/index-e7kakw0j.js +0 -1033
  573. package/dist/index-e7ptcz1a.js +0 -1372
  574. package/dist/index-e7wt0203.js +0 -513
  575. package/dist/index-ebwsvf9t.js +0 -365
  576. package/dist/index-ed73jn3d.js +0 -185
  577. package/dist/index-ed7n5d07.js +0 -185
  578. package/dist/index-ejs2a4kd.js +0 -513
  579. package/dist/index-esjrgt3y.js +0 -467
  580. package/dist/index-ev03khsd.js +0 -513
  581. package/dist/index-f1g5jdm8.js +0 -1426
  582. package/dist/index-f1gsqm54.js +0 -168
  583. package/dist/index-f1yshy4s.js +0 -412
  584. package/dist/index-f46984zs.js +0 -1554
  585. package/dist/index-f51mkh13.js +0 -1088
  586. package/dist/index-f86n1fpd.js +0 -55
  587. package/dist/index-f90314kt.js +0 -52
  588. package/dist/index-f9mhsept.js +0 -185
  589. package/dist/index-fa6zwffw.js +0 -70
  590. package/dist/index-fama7kpt.js +0 -52
  591. package/dist/index-fgk87mk2.js +0 -1067
  592. package/dist/index-fkyvxe4b.js +0 -968
  593. package/dist/index-fnk0tkw7.js +0 -412
  594. package/dist/index-ftf7yqhs.js +0 -74
  595. package/dist/index-g0h40xke.js +0 -513
  596. package/dist/index-g0rqh52c.js +0 -385
  597. package/dist/index-g170d619.js +0 -385
  598. package/dist/index-g3qtxkms.js +0 -881
  599. package/dist/index-g5aq66bj.js +0 -1534
  600. package/dist/index-gactvqcs.js +0 -467
  601. package/dist/index-gaew61v4.js +0 -470
  602. package/dist/index-gba371j7.js +0 -542
  603. package/dist/index-gegyyfnw.js +0 -1372
  604. package/dist/index-get7he2s.js +0 -133
  605. package/dist/index-gj5qh491.js +0 -54
  606. package/dist/index-gq39t0rx.js +0 -895
  607. package/dist/index-grk8pzhr.js +0 -185
  608. package/dist/index-gtbgzwfs.js +0 -264
  609. package/dist/index-gtpz0gkz.js +0 -185
  610. package/dist/index-h1s66pmp.js +0 -52
  611. package/dist/index-h5dqna7q.js +0 -1410
  612. package/dist/index-h8r2d8y5.js +0 -366
  613. package/dist/index-hbxkmb1q.js +0 -1426
  614. package/dist/index-heeqwrfd.js +0 -385
  615. package/dist/index-hheb5dyt.js +0 -192
  616. package/dist/index-hjs9j2g9.js +0 -895
  617. package/dist/index-hjz2x9nq.js +0 -441
  618. package/dist/index-hkex7ns5.js +0 -513
  619. package/dist/index-hmbctwv6.js +0 -517
  620. package/dist/index-hn5nbxbt.js +0 -147
  621. package/dist/index-hpjh0qjx.js +0 -1723
  622. package/dist/index-hpzasdhw.js +0 -513
  623. package/dist/index-hqdr9wdm.js +0 -74
  624. package/dist/index-hrvz8d26.js +0 -1372
  625. package/dist/index-hs6ekcfs.js +0 -412
  626. package/dist/index-hyvhnf6r.js +0 -971
  627. package/dist/index-j1csb7gb.js +0 -581
  628. package/dist/index-j2kc5rbv.js +0 -895
  629. package/dist/index-j2xdxwsz.js +0 -133
  630. package/dist/index-j47hhb3r.js +0 -694
  631. package/dist/index-j5aphr5x.js +0 -185
  632. package/dist/index-j68v36q1.js +0 -188
  633. package/dist/index-j7cf22x7.js +0 -968
  634. package/dist/index-j7x7f72h.js +0 -185
  635. package/dist/index-j7xxrbnr.js +0 -694
  636. package/dist/index-ja2rdbt0.js +0 -476
  637. package/dist/index-jdzrvnfj.js +0 -52
  638. package/dist/index-jg720mq7.js +0 -476
  639. package/dist/index-jkqbjwt2.js +0 -476
  640. package/dist/index-jptqxkew.js +0 -470
  641. package/dist/index-jrzddxvt.js +0 -2167
  642. package/dist/index-jsymy3mb.js +0 -781
  643. package/dist/index-jwd3fanx.js +0 -412
  644. package/dist/index-jwvy32xk.js +0 -188
  645. package/dist/index-jxe1b19v.js +0 -133
  646. package/dist/index-jz96ry5g.js +0 -513
  647. package/dist/index-k6wtsgs1.js +0 -971
  648. package/dist/index-kawa49m8.js +0 -371
  649. package/dist/index-kc207nyr.js +0 -52
  650. package/dist/index-key4e5c9.js +0 -168
  651. package/dist/index-kgstnk6g.js +0 -239
  652. package/dist/index-khbmdrn2.js +0 -884
  653. package/dist/index-khnw972v.js +0 -117
  654. package/dist/index-kpzfwex6.js +0 -264
  655. package/dist/index-kse4gn99.js +0 -74
  656. package/dist/index-ktscz0r2.js +0 -264
  657. package/dist/index-kwqff3ba.js +0 -1410
  658. package/dist/index-kxc4gtyt.js +0 -574
  659. package/dist/index-kybmjvad.js +0 -1212
  660. package/dist/index-kzm9cea8.js +0 -185
  661. package/dist/index-m2d74gqg.js +0 -808
  662. package/dist/index-m2v0fj08.js +0 -74
  663. package/dist/index-m56w7mjt.js +0 -513
  664. package/dist/index-m95ha3n4.js +0 -264
  665. package/dist/index-ma151p8g.js +0 -264
  666. package/dist/index-meq8ydc0.js +0 -895
  667. package/dist/index-mh5renra.js +0 -895
  668. package/dist/index-mhdsywhs.js +0 -264
  669. package/dist/index-mjgx910r.js +0 -895
  670. package/dist/index-mjve6tqn.js +0 -447
  671. package/dist/index-mkrmaea3.js +0 -185
  672. package/dist/index-mkxnyyjn.js +0 -264
  673. package/dist/index-mkxzgn0q.js +0 -1372
  674. package/dist/index-mp5mrst6.js +0 -1372
  675. package/dist/index-ms15cr86.js +0 -513
  676. package/dist/index-mt99xkc6.js +0 -133
  677. package/dist/index-mttv6k25.js +0 -881
  678. package/dist/index-myfjejs0.js +0 -185
  679. package/dist/index-myxfx52v.js +0 -385
  680. package/dist/index-mzmq3v0d.js +0 -1088
  681. package/dist/index-mzw7732t.js +0 -74
  682. package/dist/index-n3mjwz22.js +0 -188
  683. package/dist/index-n3yksgz0.js +0 -1372
  684. package/dist/index-n4jr3dmk.js +0 -484
  685. package/dist/index-n5drt64b.js +0 -74
  686. package/dist/index-n8frmffg.js +0 -264
  687. package/dist/index-n8k8chde.js +0 -694
  688. package/dist/index-na796ka6.js +0 -994
  689. package/dist/index-nbs4q0qg.js +0 -1218
  690. package/dist/index-newpq2zf.js +0 -968
  691. package/dist/index-nexg9p7j.js +0 -1271
  692. package/dist/index-nfm8tb5n.js +0 -74
  693. package/dist/index-ng9n3znd.js +0 -1372
  694. package/dist/index-nga2tg9z.js +0 -1372
  695. package/dist/index-ngbzr9gz.js +0 -805
  696. package/dist/index-nh90nk7j.js +0 -380
  697. package/dist/index-nhbkm2ba.js +0 -467
  698. package/dist/index-njnmfxm5.js +0 -1372
  699. package/dist/index-nqma24j3.js +0 -385
  700. package/dist/index-nrfhk0k5.js +0 -1088
  701. package/dist/index-ntddf5d9.js +0 -993
  702. package/dist/index-nte9n8w9.js +0 -538
  703. package/dist/index-ntxp7ke1.js +0 -264
  704. package/dist/index-nwxnmw41.js +0 -264
  705. package/dist/index-nxkesg55.js +0 -68
  706. package/dist/index-p0zppqxm.js +0 -467
  707. package/dist/index-p1xe5eem.js +0 -513
  708. package/dist/index-p296ban8.js +0 -191
  709. package/dist/index-p477xm52.js +0 -385
  710. package/dist/index-p7q23nce.js +0 -1031
  711. package/dist/index-p8nmkrgw.js +0 -470
  712. package/dist/index-p97s12vf.js +0 -904
  713. package/dist/index-p9hvv0yd.js +0 -401
  714. package/dist/index-p9xq83p7.js +0 -147
  715. package/dist/index-pac7wv88.js +0 -307
  716. package/dist/index-pkxf6h87.js +0 -895
  717. package/dist/index-pqp4312v.js +0 -52
  718. package/dist/index-pt49cgjv.js +0 -1426
  719. package/dist/index-ptp2pfq1.js +0 -52
  720. package/dist/index-pw9jn6kz.js +0 -574
  721. package/dist/index-pyeycp3f.js +0 -74
  722. package/dist/index-q15nj71j.js +0 -52
  723. package/dist/index-q23xf3vr.js +0 -479
  724. package/dist/index-q31ne0xa.js +0 -412
  725. package/dist/index-q34rvh5a.js +0 -247
  726. package/dist/index-q5errwrj.js +0 -904
  727. package/dist/index-q5nhzc9m.js +0 -1217
  728. package/dist/index-qer8zv2r.js +0 -997
  729. package/dist/index-qf2dkqxh.js +0 -249
  730. package/dist/index-qhyy018y.js +0 -467
  731. package/dist/index-qkfvd3cs.js +0 -109
  732. package/dist/index-qmhdydwy.js +0 -70
  733. package/dist/index-qmtdf7k5.js +0 -639
  734. package/dist/index-qpmvca5j.js +0 -470
  735. package/dist/index-qr96vaj1.js +0 -52
  736. package/dist/index-qtyhg3dn.js +0 -904
  737. package/dist/index-qye17gq5.js +0 -264
  738. package/dist/index-r0839f5k.js +0 -133
  739. package/dist/index-r1rqg72v.js +0 -1372
  740. package/dist/index-rab2dfh3.js +0 -494
  741. package/dist/index-rbckga8p.js +0 -971
  742. package/dist/index-rbht7m9r.js +0 -36
  743. package/dist/index-rbxb5x2w.js +0 -1372
  744. package/dist/index-rck779bj.js +0 -739
  745. package/dist/index-rfn2gt5f.js +0 -1658
  746. package/dist/index-rg21w26a.js +0 -470
  747. package/dist/index-rgcz45t0.js +0 -1372
  748. package/dist/index-rhnd376q.js +0 -133
  749. package/dist/index-rjc5z3w6.js +0 -971
  750. package/dist/index-rkhtayd6.js +0 -385
  751. package/dist/index-rm8srzmv.js +0 -371
  752. package/dist/index-rmhk5j03.js +0 -968
  753. package/dist/index-rnz879kf.js +0 -1426
  754. package/dist/index-rp0aye39.js +0 -1426
  755. package/dist/index-rp4t86bt.js +0 -993
  756. package/dist/index-rpq5ktdy.js +0 -264
  757. package/dist/index-rpsmhdd4.js +0 -1218
  758. package/dist/index-rqpakjyr.js +0 -470
  759. package/dist/index-rttk33x6.js +0 -232
  760. package/dist/index-rwa82e89.js +0 -385
  761. package/dist/index-rz185crv.js +0 -695
  762. package/dist/index-rz7rx80s.js +0 -1410
  763. package/dist/index-s0fmwxbk.js +0 -74
  764. package/dist/index-s22verzj.js +0 -1218
  765. package/dist/index-s2s3g1nt.js +0 -133
  766. package/dist/index-s37h3jgk.js +0 -572
  767. package/dist/index-s7ytytth.js +0 -781
  768. package/dist/index-s96e5dd9.js +0 -699
  769. package/dist/index-sb705m7d.js +0 -52
  770. package/dist/index-sefnpzwa.js +0 -185
  771. package/dist/index-sgxw0xzd.js +0 -513
  772. package/dist/index-stc0caq6.js +0 -1009
  773. package/dist/index-svz82w9h.js +0 -513
  774. package/dist/index-sx49e8x9.js +0 -884
  775. package/dist/index-sxadwvw9.js +0 -185
  776. package/dist/index-sxn223fz.js +0 -1372
  777. package/dist/index-sy0c2mh0.js +0 -1372
  778. package/dist/index-syeh1hca.js +0 -264
  779. package/dist/index-syscwrjp.js +0 -1576
  780. package/dist/index-t14zr0ys.js +0 -1063
  781. package/dist/index-t18wyhgf.js +0 -418
  782. package/dist/index-t4fhcx1n.js +0 -71
  783. package/dist/index-td4hbgj5.js +0 -1372
  784. package/dist/index-th4vrnbk.js +0 -1205
  785. package/dist/index-tjc99447.js +0 -68
  786. package/dist/index-tknbyxzn.js +0 -2202
  787. package/dist/index-tkvt9mmq.js +0 -484
  788. package/dist/index-tmmcf4m6.js +0 -808
  789. package/dist/index-tpgs5v64.js +0 -366
  790. package/dist/index-tt4fsv91.js +0 -412
  791. package/dist/index-tte89s31.js +0 -169
  792. package/dist/index-tvjg7swe.js +0 -1372
  793. package/dist/index-txndxr4w.js +0 -513
  794. package/dist/index-tyh5jc55.js +0 -990
  795. package/dist/index-tyt0wa52.js +0 -470
  796. package/dist/index-tyt3wcfr.js +0 -1372
  797. package/dist/index-v35460hf.js +0 -574
  798. package/dist/index-v3znz08m.js +0 -968
  799. package/dist/index-v78xbj6n.js +0 -808
  800. package/dist/index-v7q00d1e.js +0 -1410
  801. package/dist/index-v915brjk.js +0 -1372
  802. package/dist/index-v922fmsx.js +0 -52
  803. package/dist/index-v9w1bbfe.js +0 -842
  804. package/dist/index-vbbgtm8p.js +0 -513
  805. package/dist/index-vcjgrmzj.js +0 -456
  806. package/dist/index-vdewcg1r.js +0 -1271
  807. package/dist/index-vkkmx4xe.js +0 -1372
  808. package/dist/index-vrps1gky.js +0 -2202
  809. package/dist/index-vse8620z.js +0 -1372
  810. package/dist/index-vt803j3b.js +0 -1372
  811. package/dist/index-vtjp46c3.js +0 -52
  812. package/dist/index-vxhxk8mf.js +0 -904
  813. package/dist/index-w36q6819.js +0 -895
  814. package/dist/index-w3azfsa0.js +0 -695
  815. package/dist/index-w4c9vmvg.js +0 -1517
  816. package/dist/index-w4tq35dn.js +0 -52
  817. package/dist/index-w5qxvxzq.js +0 -991
  818. package/dist/index-w5sedpqn.js +0 -986
  819. package/dist/index-waha3chv.js +0 -1230
  820. package/dist/index-wdxww0kj.js +0 -1006
  821. package/dist/index-wdy5y07x.js +0 -1372
  822. package/dist/index-wf9pnh6j.js +0 -385
  823. package/dist/index-wfbfz02q.js +0 -225
  824. package/dist/index-wnnbbbkt.js +0 -1192
  825. package/dist/index-wqd8n2qk.js +0 -574
  826. package/dist/index-wvcmvtjf.js +0 -1372
  827. package/dist/index-x0jbntp0.js +0 -470
  828. package/dist/index-x12e6fzy.js +0 -476
  829. package/dist/index-x6scc3nx.js +0 -70
  830. package/dist/index-x8e2wsbv.js +0 -971
  831. package/dist/index-x8x547tz.js +0 -1426
  832. package/dist/index-xagpz645.js +0 -2199
  833. package/dist/index-xbth1r6e.js +0 -572
  834. package/dist/index-xec4p3v5.js +0 -560
  835. package/dist/index-xgfyxpfs.js +0 -1218
  836. package/dist/index-xm9fqhcb.js +0 -447
  837. package/dist/index-xm9hp9xc.js +0 -1372
  838. package/dist/index-xp0qkkxf.js +0 -68
  839. package/dist/index-xp7zkxcx.js +0 -1372
  840. package/dist/index-xrbj0ebk.js +0 -185
  841. package/dist/index-xskax7r3.js +0 -50
  842. package/dist/index-xvk5n96q.js +0 -694
  843. package/dist/index-xxxd0mvw.js +0 -109
  844. package/dist/index-xy1jvt4w.js +0 -1229
  845. package/dist/index-xzg9hhf3.js +0 -470
  846. package/dist/index-xzpg0kaz.js +0 -70
  847. package/dist/index-y1d8za14.js +0 -196
  848. package/dist/index-y3q6qvv3.js +0 -316
  849. package/dist/index-y44ts1dk.js +0 -52
  850. package/dist/index-y5nt1wjb.js +0 -971
  851. package/dist/index-y7mkb00x.js +0 -133
  852. package/dist/index-y82b8w14.js +0 -1372
  853. package/dist/index-yb07t3c5.js +0 -1372
  854. package/dist/index-yc3xz3vm.js +0 -431
  855. package/dist/index-yeaqrevg.js +0 -1372
  856. package/dist/index-ygwsd1nn.js +0 -438
  857. package/dist/index-yhdavjk7.js +0 -371
  858. package/dist/index-yjhns95b.js +0 -188
  859. package/dist/index-yk23p7he.js +0 -1372
  860. package/dist/index-ykfgpsmm.js +0 -190
  861. package/dist/index-ymz3cfab.js +0 -968
  862. package/dist/index-yq9g1sq7.js +0 -264
  863. package/dist/index-ys5q9ch9.js +0 -366
  864. package/dist/index-yt0n4p46.js +0 -973
  865. package/dist/index-ytq1t9jx.js +0 -232
  866. package/dist/index-ywmtmf3b.js +0 -513
  867. package/dist/index-yzb44q6d.js +0 -1372
  868. package/dist/index-z043xk61.js +0 -133
  869. package/dist/index-z0gsf674.js +0 -431
  870. package/dist/index-z32n0ndp.js +0 -1372
  871. package/dist/index-z40mjts9.js +0 -212
  872. package/dist/index-z4qgk76w.js +0 -1372
  873. package/dist/index-z5k5bjc7.js +0 -1218
  874. package/dist/index-z73sytma.js +0 -895
  875. package/dist/index-z8njfj2g.js +0 -385
  876. package/dist/index-z9fjnwa8.js +0 -397
  877. package/dist/index-zapkc14c.js +0 -264
  878. package/dist/index-zawn5tte.js +0 -109
  879. package/dist/index-zes6w8yr.js +0 -185
  880. package/dist/index-zgrqest7.js +0 -695
  881. package/dist/index-zjv6apef.js +0 -1410
  882. package/dist/index-zpy9caxn.js +0 -1193
  883. package/dist/index-zsngz131.js +0 -1372
  884. package/dist/index-zt22fe2j.js +0 -54
  885. package/dist/index-zxhc6sb0.js +0 -192
  886. package/dist/init-wfh63bfz.js +0 -180
  887. package/dist/login-1amyp1jy.js +0 -77
  888. package/dist/login-1cdwn1dj.js +0 -77
  889. package/dist/login-280p2cm9.js +0 -77
  890. package/dist/login-456h8jk3.js +0 -77
  891. package/dist/login-4n470c4j.js +0 -77
  892. package/dist/login-4sh7s849.js +0 -77
  893. package/dist/login-5dmkf0pz.js +0 -77
  894. package/dist/login-7yex6ppq.js +0 -77
  895. package/dist/login-83bjfhvz.js +0 -77
  896. package/dist/login-88tp4gbb.js +0 -77
  897. package/dist/login-b51faqpc.js +0 -77
  898. package/dist/login-bxyjqmbj.js +0 -77
  899. package/dist/login-c4649qss.js +0 -77
  900. package/dist/login-d80a2qxd.js +0 -77
  901. package/dist/login-ddw888xb.js +0 -77
  902. package/dist/login-dp0napaz.js +0 -77
  903. package/dist/login-e7pytkdc.js +0 -77
  904. package/dist/login-fe0brfcr.js +0 -77
  905. package/dist/login-g9rb7dj3.js +0 -77
  906. package/dist/login-h7sm5trm.js +0 -77
  907. package/dist/login-j3r6z2t4.js +0 -77
  908. package/dist/login-jkfkdjg4.js +0 -77
  909. package/dist/login-kch6f2yj.js +0 -77
  910. package/dist/login-pmqh94ws.js +0 -77
  911. package/dist/login-rc82x5j8.js +0 -77
  912. package/dist/login-tvppwyx2.js +0 -77
  913. package/dist/login-vd0m3xr4.js +0 -77
  914. package/dist/login-w76jx22q.js +0 -77
  915. package/dist/login-ze7y36rc.js +0 -77
  916. package/dist/previews-02jmcwft.js +0 -1214
  917. package/dist/previews-2wfvsjfy.js +0 -1337
  918. package/dist/previews-31bq82km.js +0 -1225
  919. package/dist/previews-31feb8r3.js +0 -1337
  920. package/dist/previews-3m3ffpaw.js +0 -1337
  921. package/dist/previews-3w4pxqby.js +0 -1337
  922. package/dist/previews-62pcvvpe.js +0 -1214
  923. package/dist/previews-6fepv94a.js +0 -1225
  924. package/dist/previews-76fxkp59.js +0 -1214
  925. package/dist/previews-844bp6kf.js +0 -1214
  926. package/dist/previews-8amn46qv.js +0 -1214
  927. package/dist/previews-93ttrf5f.js +0 -1337
  928. package/dist/previews-a5xbkksy.js +0 -1214
  929. package/dist/previews-bdrefjzx.js +0 -1337
  930. package/dist/previews-bgnryzav.js +0 -1214
  931. package/dist/previews-bkhv9dnr.js +0 -1214
  932. package/dist/previews-c2c64z5m.js +0 -1214
  933. package/dist/previews-cfcn56b4.js +0 -1337
  934. package/dist/previews-e4wgscsb.js +0 -1214
  935. package/dist/previews-ew4reetn.js +0 -1214
  936. package/dist/previews-hzqke1fg.js +0 -1214
  937. package/dist/previews-j8wa3sge.js +0 -1214
  938. package/dist/previews-k5n6vhpm.js +0 -1214
  939. package/dist/previews-mssq1hrm.js +0 -1337
  940. package/dist/previews-n4sdyxa5.js +0 -1214
  941. package/dist/previews-npwrwb0b.js +0 -1214
  942. package/dist/previews-q8ph9wbe.js +0 -1214
  943. package/dist/previews-rfswrh7q.js +0 -1214
  944. package/dist/previews-s0y5yp8s.js +0 -1214
  945. package/dist/previews-s5b6mnz5.js +0 -1214
  946. package/dist/previews-sdte4984.js +0 -1200
  947. package/dist/previews-t5tdm6t0.js +0 -1225
  948. package/dist/previews-tcaz1gt8.js +0 -1337
  949. package/dist/previews-tk7vpzj9.js +0 -1214
  950. package/dist/previews-tqt4pk27.js +0 -1214
  951. package/dist/previews-vqg4psk2.js +0 -1225
  952. package/dist/previews-ykamw25e.js +0 -1337
  953. package/dist/productions-2t9q8f57.js +0 -505
  954. package/dist/productions-4abj58kx.js +0 -505
  955. package/dist/productions-4dpec71r.js +0 -505
  956. package/dist/productions-4h80j2c7.js +0 -505
  957. package/dist/productions-4nedsanh.js +0 -505
  958. package/dist/productions-5c58yafp.js +0 -505
  959. package/dist/productions-5xq5cjhx.js +0 -505
  960. package/dist/productions-62y489ff.js +0 -505
  961. package/dist/productions-6dr0bmd7.js +0 -505
  962. package/dist/productions-86jaqt7m.js +0 -505
  963. package/dist/productions-8f6s8dqr.js +0 -505
  964. package/dist/productions-a2hcwwzf.js +0 -505
  965. package/dist/productions-b7svyjp7.js +0 -505
  966. package/dist/productions-bf2cnr05.js +0 -505
  967. package/dist/productions-bn2q31my.js +0 -505
  968. package/dist/productions-cgn3fz7d.js +0 -505
  969. package/dist/productions-dkgry3gv.js +0 -505
  970. package/dist/productions-dv8g7f6g.js +0 -505
  971. package/dist/productions-e2m9s4tr.js +0 -505
  972. package/dist/productions-eqh105tk.js +0 -505
  973. package/dist/productions-etvcm7yf.js +0 -505
  974. package/dist/productions-f1zpbmjz.js +0 -505
  975. package/dist/productions-fgshs1m7.js +0 -505
  976. package/dist/productions-hphmt68n.js +0 -505
  977. package/dist/productions-j14pvx93.js +0 -505
  978. package/dist/productions-j7s1ywvg.js +0 -505
  979. package/dist/productions-jp3v3q3p.js +0 -505
  980. package/dist/productions-m9p42amj.js +0 -505
  981. package/dist/productions-mxbneawa.js +0 -505
  982. package/dist/productions-np4exh9p.js +0 -505
  983. package/dist/productions-rr1hqgda.js +0 -505
  984. package/dist/productions-rtf9ksgg.js +0 -505
  985. package/dist/productions-vhq7yx86.js +0 -505
  986. package/dist/productions-w2nzftcz.js +0 -505
  987. package/dist/productions-wbks5h7e.js +0 -505
  988. package/dist/productions-y99ayk6h.js +0 -505
  989. package/dist/productions-zpqyw5gm.js +0 -505
  990. package/dist/router/types.d.ts +0 -24
  991. package/dist/router/types.d.ts.map +0 -1
  992. package/dist/runtime/router.d.ts +0 -7
  993. package/dist/runtime/router.d.ts.map +0 -1
  994. package/dist/secrets-4050kqf5.js +0 -91
  995. package/dist/secrets-8wcj47nh.js +0 -91
  996. package/dist/secrets-b2ww34ta.js +0 -91
  997. package/dist/secrets-b7g4z621.js +0 -91
  998. package/dist/secrets-p112cajt.js +0 -91
  999. package/dist/test/bridge-context.d.ts +0 -83
  1000. package/dist/test/bridge-context.d.ts.map +0 -1
  1001. package/dist/test/local-worker-loader.d.ts +0 -3
  1002. package/dist/test/local-worker-loader.d.ts.map +0 -1
  1003. package/dist/token-3b9wws58.js +0 -419
  1004. package/dist/token-47kcz18j.js +0 -419
  1005. package/dist/token-a2b38w0z.js +0 -419
  1006. package/dist/token-exz78pth.js +0 -419
  1007. package/dist/token-fcthx92c.js +0 -419
  1008. package/dist/token-grwp8z4q.js +0 -419
  1009. package/dist/token-jkmm44z2.js +0 -419
  1010. package/dist/token-qxtvzm3b.js +0 -419
  1011. package/dist/token-rq8mvtz9.js +0 -419
  1012. package/dist/token-sfgxcgen.js +0 -419
  1013. package/dist/types-0qv4xces.js +0 -572
  1014. package/dist/types-17kkqw37.js +0 -705
  1015. package/dist/types-2ejrbba1.js +0 -695
  1016. package/dist/types-2nvrs9jg.js +0 -572
  1017. package/dist/types-2pbe8kzw.js +0 -572
  1018. package/dist/types-2zyt0m43.js +0 -572
  1019. package/dist/types-4xxer9ep.js +0 -572
  1020. package/dist/types-5t5y7a5n.js +0 -572
  1021. package/dist/types-5wd2rygw.js +0 -572
  1022. package/dist/types-7j3ykgx7.js +0 -572
  1023. package/dist/types-7jkbm95a.js +0 -695
  1024. package/dist/types-8g78x34n.js +0 -572
  1025. package/dist/types-a2fk9yns.js +0 -695
  1026. package/dist/types-dyb3c6zw.js +0 -695
  1027. package/dist/types-e2n9f3pd.js +0 -695
  1028. package/dist/types-e6d336q3.js +0 -572
  1029. package/dist/types-hqh2fx0x.js +0 -572
  1030. package/dist/types-j12xmdnd.js +0 -572
  1031. package/dist/types-j4s6qcrc.js +0 -695
  1032. package/dist/types-jqn26et3.js +0 -572
  1033. package/dist/types-n0mxbq26.js +0 -572
  1034. package/dist/types-naz9hvw5.js +0 -572
  1035. package/dist/types-qjcd1jks.js +0 -572
  1036. package/dist/types-r9zb8sw1.js +0 -572
  1037. package/dist/types-rv5xwgsn.js +0 -572
  1038. package/dist/types-t39njdqx.js +0 -572
  1039. package/dist/types-tkgch3xv.js +0 -572
  1040. package/dist/types-ttrrgdfj.js +0 -705
  1041. package/dist/types-vhvt4hvm.js +0 -693
  1042. package/dist/types-vvtb7rrh.js +0 -572
  1043. package/dist/types-w1grncdj.js +0 -572
  1044. package/dist/types-wmw49exb.js +0 -572
  1045. package/dist/types-ymxz9jga.js +0 -572
  1046. package/dist/worker-18ceqscc.js +0 -513
  1047. package/dist/worker-1yqpwte2.js +0 -513
  1048. package/dist/worker-2aw27zxy.js +0 -513
  1049. package/dist/worker-2k1jyr6p.js +0 -513
  1050. package/dist/worker-45tp4a8f.js +0 -513
  1051. package/dist/worker-663em30d.js +0 -513
  1052. package/dist/worker-68zttchg.js +0 -513
  1053. package/dist/worker-729cf3fh.js +0 -513
  1054. package/dist/worker-99tew196.js +0 -513
  1055. package/dist/worker-argxc7fb.js +0 -513
  1056. package/dist/worker-aydzxt4f.js +0 -513
  1057. package/dist/worker-ejdxma7k.js +0 -513
  1058. package/dist/worker-entrypoint-4xp7msd7.js +0 -16
  1059. package/dist/worker-entrypoint-c259fmfs.js +0 -13
  1060. package/dist/worker-entrypoint-f1v9y4s8.js +0 -15
  1061. package/dist/worker-f6xqjg65.js +0 -513
  1062. package/dist/worker-fcdsnj14.js +0 -513
  1063. package/dist/worker-fdnn62de.js +0 -513
  1064. package/dist/worker-fk42rzse.js +0 -513
  1065. package/dist/worker-frnh95rg.js +0 -513
  1066. package/dist/worker-jkemk8d2.js +0 -513
  1067. package/dist/worker-jqgn6jyj.js +0 -513
  1068. package/dist/worker-k55nfrmp.js +0 -513
  1069. package/dist/worker-kqc6w7ry.js +0 -513
  1070. package/dist/worker-ksvcq8be.js +0 -513
  1071. package/dist/worker-m4ze8djx.js +0 -513
  1072. package/dist/worker-mjzfstv5.js +0 -513
  1073. package/dist/worker-p4rtsndj.js +0 -513
  1074. package/dist/worker-p6d53qan.js +0 -513
  1075. package/dist/worker-qh2qbv97.js +0 -513
  1076. package/dist/worker-r234vnv9.js +0 -513
  1077. package/dist/worker-r47bv7gt.js +0 -513
  1078. package/dist/worker-s4nvbqsm.js +0 -513
  1079. package/dist/worker-ttj7vwce.js +0 -513
  1080. package/dist/worker-wnan5dca.js +0 -513
  1081. package/dist/worker-wv4jdneg.js +0 -513
  1082. package/dist/worker-xcbscr75.js +0 -513
  1083. package/dist/worker-yw3atfb1.js +0 -513
  1084. package/dist/worker-ywwkf3cp.js +0 -513
  1085. package/dist/worker-z8wtk0sh.js +0 -513
@@ -1,1426 +0,0 @@
1
- import {
2
- getPackageVersion
3
- } from "./index-627srx16.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", "secrets", "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("secrets", "Manage local Secrets Store values"),
365
- entry("ai", "View Workers AI pricing information"),
366
- entry("remote", "Manage remote test mode for paid Cloudflare features"),
367
- entry("help", "Show command overview or a command-specific help page"),
368
- entry("version", "Show the installed devflare version")
369
- ],
370
- options: COMMON_OPTIONS,
371
- optionSectionTitle: "common options",
372
- examples: [
373
- entry("devflare dev", "Start worker-only or unified local development"),
374
- entry("devflare deploy --prod", "Deploy explicitly to production"),
375
- entry("devflare deploy --preview next", "Deploy a named preview scope directly"),
376
- entry("devflare previews cleanup --scope next --apply", "Delete one dedicated preview scope and its preview-owned resources"),
377
- entry("devflare productions", "Inspect live production Workers and active deployments"),
378
- entry("devflare secrets --local --store store-123 --name api-token --value local-token", "Set a local Secrets Store value"),
379
- entry("devflare help deploy", "Show the detailed deploy help page")
380
- ],
381
- notes: [
382
- "Commands that support `--config` and `--env` document that explicitly in their own help pages."
383
- ]
384
- },
385
- {
386
- path: ["init"],
387
- summary: "Create a new devflare project",
388
- usage: [
389
- "devflare init [name] [--template <minimal|api>]"
390
- ],
391
- description: [
392
- "Scaffolds a new project directory with a starter `devflare.config.ts`, TypeScript config, and package.json scripts.",
393
- "Use the `api` template when you want middleware and API routing structure out of the box."
394
- ],
395
- arguments: [
396
- entry("[name]", "Project directory name (defaults to `my-devflare-app`)")
397
- ],
398
- options: [
399
- entry("--template <minimal|api>", "Pick the starter template to scaffold")
400
- ],
401
- examples: [
402
- entry("devflare init my-app", "Create a minimal starter called `my-app`"),
403
- entry("devflare init edge-api --template api", "Create the API starter with middleware structure")
404
- ],
405
- notes: [
406
- "The command writes files only; install dependencies afterward with `bun install`.",
407
- "Generated starter scripts expect `devflare dev`, `devflare build`, `devflare deploy`, and `devflare types`."
408
- ]
409
- },
410
- {
411
- path: ["dev"],
412
- summary: "Start the development server",
413
- usage: [
414
- "devflare dev [--config <path>] [--port <port>] [--runtime-port <port>] [--bridge-port <port>] [--persist] [--verbose] [--debug] [--log | --log-temp]"
415
- ],
416
- description: [
417
- "Starts a worker-only Miniflare server by default, and automatically enables Vite when the current package has an effective local Vite setup.",
418
- "Also watches Worker and Durable Object source files, rebuilding and hot-reloading them as they change.",
419
- "Referenced service bindings declared with `ref()` are started in the same local Miniflare runtime so full-stack packages can call their local API workers."
420
- ],
421
- options: [
422
- entry("--config <path>", "Use a specific devflare config file"),
423
- entry("--port <port>", "Preferred Vite dev server port (defaults to 5173 when Vite is enabled)"),
424
- entry("--runtime-port <port>", "Preferred local Miniflare runtime/bridge port (defaults to 8787)"),
425
- entry("--bridge-port <port>", "Alias for --runtime-port; also honored via DEVFLARE_BRIDGE_PORT"),
426
- entry("--persist", "Persist Miniflare storage between restarts"),
427
- entry("--verbose", "Increase logging verbosity"),
428
- entry("--debug", "Enable extra debug logging and stack traces"),
429
- entry("--log", "Mirror dev output into a timestamped `.log-*` file"),
430
- entry("--log-temp", "Mirror dev output into `.log`, overwriting the file each run")
431
- ],
432
- examples: [
433
- entry("devflare dev", "Start local development with automatic Vite detection"),
434
- entry("devflare dev --port 3000", "Use a custom Vite port when Vite is enabled"),
435
- entry("devflare dev --runtime-port 8788", "Use a custom local runtime port when another project owns 8787"),
436
- entry("devflare dev --persist --log-temp", "Keep Miniflare state and overwrite `.log` on each run")
437
- ],
438
- notes: [
439
- "Worker-only mode is the default when no effective local `vite.config.*` is present.",
440
- "When no CLI port option is provided, Devflare reads DEVFLARE_RUNTIME_PORT and then DEVFLARE_BRIDGE_PORT before falling back to 8787.",
441
- "`--log` and `--log-temp` still print to the terminal; they add a file mirror instead of redirecting output away."
442
- ]
443
- },
444
- {
445
- path: ["build"],
446
- summary: "Build production deployment artifacts",
447
- usage: [
448
- "devflare build [--config <path>] [--env <name>] [--debug]"
449
- ],
450
- description: [
451
- "Resolves your Devflare config locally, applies environment overrides, and generates the build artifacts used by deploy flows.",
452
- "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."
453
- ],
454
- options: [
455
- entry("--config <path>", "Use a specific devflare config file"),
456
- entry("--env <name>", "Resolve `config.env[name]` before building artifacts"),
457
- entry("--debug", "Print stack traces when build preparation fails")
458
- ],
459
- examples: [
460
- entry("devflare build", "Build the default environment"),
461
- entry("devflare build --env production", "Build using `config.env.production`")
462
- ],
463
- notes: [
464
- "Build currently writes `.devflare/wrangler.jsonc`, `.devflare/build/wrangler.jsonc`, and `.wrangler/deploy/config.json`.",
465
- "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.",
466
- "`devflare deploy` runs the same artifact preparation step automatically before invoking Wrangler, unless you provide `--build <path>` to reuse an existing build artifact."
467
- ]
468
- },
469
- {
470
- path: ["deploy"],
471
- summary: "Deploy explicitly to Cloudflare production or preview targets",
472
- usage: [
473
- "devflare deploy --prod [--config <path>] [--build <path>] [--message <text>] [--tag <text>] [--debug]",
474
- "devflare deploy --production [--config <path>] [--build <path>] [--message <text>] [--tag <text>] [--debug]",
475
- "devflare deploy --preview <name> [--config <path>] [--build <path>] [--message <text>] [--tag <text>]",
476
- "devflare deploy --preview [--config <path>] [--build <path>] [--branch-name <branch>] [--message <text>] [--tag <text>]",
477
- "devflare deploy --prod --dry-run [--config <path>]",
478
- "devflare deploy --preview <name> --dry-run [--config <path>]",
479
- "devflare deploy --preview --dry-run [--config <path>]"
480
- ],
481
- description: [
482
- "Deploy requires an explicit target: production via `--prod` / `--production`, or preview via `--preview`.",
483
- "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.",
484
- "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."
485
- ],
486
- options: [
487
- entry("--prod", "Deploy to the production environment explicitly"),
488
- entry("--production", "Long-form alias for --prod"),
489
- entry("--preview", "Deploy a same-worker preview upload"),
490
- entry("--preview <name>", "Deploy a named preview scope such as `next` or `pr-1`"),
491
- entry("--config <path>", "Use a specific devflare config file"),
492
- entry("--build <path>", "Reuse an existing build artifact such as `.devflare/build` or `.wrangler/deploy/config.json` instead of rebuilding"),
493
- entry("--env <name>", "Usually unnecessary because the explicit target already pins production vs preview. If you pass it, it must match that target"),
494
- entry("--dry-run", "Print the synthesized Wrangler config and skip the actual deployment"),
495
- entry("--branch-name <branch>", "Provide explicit branch metadata for preview-aware naming when your workflow needs it"),
496
- entry("--message <text>", "Attach an explicit Wrangler deployment/version message"),
497
- entry("--tag <text>", "Attach an explicit Wrangler version tag"),
498
- entry("--debug", "Print stack traces when deployment orchestration fails")
499
- ],
500
- examples: [
501
- entry("devflare deploy --prod", "Deploy explicitly to production"),
502
- entry("devflare deploy --prod --build .devflare/build", "Deploy a previously built artifact without rebuilding the package"),
503
- entry('devflare deploy --production --message "Release"', "Deploy to production with an explicit deployment message"),
504
- entry("devflare deploy --preview next", "Deploy the named `next` preview scope and provision preview-scoped resources automatically"),
505
- entry("devflare deploy --preview pr-1", "Deploy the named `pr-1` preview scope directly"),
506
- entry("devflare deploy --preview --branch-name feature-branch", "Upload a same-worker preview version with explicit branch metadata"),
507
- entry("devflare deploy --preview next --dry-run", "Inspect the generated named-preview Wrangler config without deploying")
508
- ],
509
- notes: [
510
- "`devflare deploy` without an explicit target is rejected from the CLI so production and preview destinations stay unmistakable.",
511
- "`--prod` / `--production` clear preview-scope environment overrides such as `DEVFLARE_PREVIEW_BRANCH` so production deploys stay pointed at stable Worker names.",
512
- "Named preview deploys automatically provision preview-scoped resources before building and deploying.",
513
- "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.",
514
- "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."
515
- ]
516
- },
517
- {
518
- path: ["secrets"],
519
- summary: "Manage local Secrets Store values",
520
- usage: [
521
- "devflare secrets --local --store <id> --name <name> --value <value>",
522
- "devflare secrets --local --store <id> --list",
523
- "devflare secrets --local --store <id> --name <name> --delete"
524
- ],
525
- description: [
526
- "Writes, lists, and deletes local values for Secrets Store bindings used by dev, createTestContext(), and createOfflineEnv({ cwd }).",
527
- "The runtime side is read-only: Workers can read configured local values through the Secrets Store binding, but application code cannot mutate this file."
528
- ],
529
- options: [
530
- entry("--local", "Use the project-local secret file instead of Cloudflare"),
531
- entry("--store <id>", "Secrets Store ID, matching the Cloudflare account store ID when you have one"),
532
- entry("--name <name>", "Secret name inside the store"),
533
- entry("--value <value>", "Secret value to write locally"),
534
- entry("--list", "List local secret names without printing values"),
535
- entry("--delete", "Delete one local secret value")
536
- ],
537
- examples: [
538
- entry("devflare secrets --local --store store-123 --name api-token --value local-token", "Create or replace one local secret value"),
539
- entry("devflare secrets --local --store store-123 --list", "List names in one local store"),
540
- entry("devflare secrets --local --store store-123 --name api-token --delete", "Delete one local secret value")
541
- ],
542
- notes: [
543
- "Local values are stored in `.devflare/secrets.local.json`, which is ignored by the repository template.",
544
- "Command output prints store/name references only; it does not echo secret values."
545
- ]
546
- },
547
- {
548
- path: ["types"],
549
- summary: "Generate TypeScript bindings from your config",
550
- usage: [
551
- "devflare types [--config <path>] [--output <path>] [--debug]"
552
- ],
553
- description: [
554
- "Generates `env.d.ts`-style bindings for KV, D1, R2, Durable Objects, Queues, service bindings, vars, and secrets.",
555
- "Devflare also discovers entrypoints and cross-worker Durable Objects so service RPC bindings can stay strongly typed."
556
- ],
557
- options: [
558
- entry("--config <path>", "Use a specific devflare config file"),
559
- entry("--output <path>", "Write generated types to a custom path (defaults to `env.d.ts`)"),
560
- entry("--debug", "Print stack traces when type generation fails")
561
- ],
562
- examples: [
563
- entry("devflare types", "Generate `env.d.ts` next to the current project"),
564
- entry("devflare types --output src/generated/env.d.ts", "Write generated bindings to a custom file")
565
- ],
566
- notes: [
567
- "Type discovery respects configured file patterns and falls back to the default Durable Object and entrypoint glob patterns.",
568
- "Re-run this command after adding or renaming bindings, Durable Objects, or cross-worker service references."
569
- ]
570
- },
571
- {
572
- path: ["doctor"],
573
- summary: "Check project configuration",
574
- usage: [
575
- "devflare doctor [--config <path>] [--scope <all|local|deploy>]"
576
- ],
577
- description: [
578
- "Checks for a loadable devflare config, package.json, TypeScript config, Vite integration, and generated Wrangler artifacts.",
579
- "Useful when a project feels cursed but not cursed enough to throw a clear error yet."
580
- ],
581
- options: [
582
- entry("--config <path>", "Check a specific config path instead of the default resolution path"),
583
- entry("--scope <all|local|deploy>", "Choose local-only checks, deploy-readiness checks, or both (defaults to all)")
584
- ],
585
- examples: [
586
- entry("devflare doctor", "Run diagnostics for the current package"),
587
- entry("devflare doctor --scope local", "Skip deploy artifact readiness checks during local-only development"),
588
- entry("devflare doctor --config apps/docs/devflare.config.ts", "Check a specific config file")
589
- ],
590
- notes: [
591
- "Warnings still return exit code 0; hard failures return exit code 1.",
592
- "The command reports whether generated `.devflare` and `.wrangler/deploy` artifacts already exist.",
593
- "`@cloudflare/vite-plugin` is optional for Devflare Vite/SvelteKit projects unless your own Vite config calls that plugin directly."
594
- ]
595
- },
596
- {
597
- path: ["config"],
598
- summary: "Print resolved Devflare or Wrangler config",
599
- usage: [
600
- "devflare config [print] [--config <path>] [--env <name>] [--phase <build|local|deploy>] [--local] [--format <devflare|wrangler>]"
601
- ],
602
- description: [
603
- "Loads the effective config and prints it as JSON.",
604
- "Use `--format wrangler` when you want to inspect the exact Wrangler-compatible config Devflare will emit.",
605
- "Use `--phase local` or `--local` for offline local-runtime inspection without resolving Cloudflare account resource names."
606
- ],
607
- subcommands: [
608
- entry("print", "Print the resolved config (default subcommand)")
609
- ],
610
- options: [
611
- entry("--config <path>", "Use a specific devflare config file"),
612
- entry("--env <name>", "Resolve `config.env[name]` before printing"),
613
- entry("--phase <build|local|deploy>", "Choose build/offline, local-runtime, or deploy resource resolution (defaults to deploy)"),
614
- entry("--local", "Shortcut for --phase local"),
615
- entry("--format <devflare|wrangler>", "Choose whether to print raw Devflare config or compiled Wrangler JSON")
616
- ],
617
- examples: [
618
- entry("devflare config", "Print the resolved Devflare config as JSON"),
619
- entry("devflare config --phase local --format wrangler", "Print local-runtime Wrangler JSON without Cloudflare account lookups"),
620
- entry("devflare config --env preview", "Print the preview environment config"),
621
- entry("devflare config print --format wrangler", "Print the compiled Wrangler config JSON")
622
- ],
623
- notes: [
624
- "`print` is the default subcommand, so `devflare config` and `devflare config print` behave the same.",
625
- "Deploy phase remains the default for backwards compatibility; local and build phases are offline-friendly inspection modes."
626
- ]
627
- },
628
- {
629
- path: ["config", "print"],
630
- summary: "Print the resolved config",
631
- usage: [
632
- "devflare config print [--config <path>] [--env <name>] [--phase <build|local|deploy>] [--local] [--format <devflare|wrangler>]"
633
- ],
634
- description: [
635
- "Equivalent to `devflare config`, but spelled out explicitly when you want the subcommand in scripts or docs."
636
- ],
637
- options: [
638
- entry("--config <path>", "Use a specific devflare config file"),
639
- entry("--env <name>", "Resolve `config.env[name]` before printing"),
640
- entry("--phase <build|local|deploy>", "Choose build/offline, local-runtime, or deploy resource resolution (defaults to deploy)"),
641
- entry("--local", "Shortcut for --phase local"),
642
- entry("--format <devflare|wrangler>", "Choose Devflare JSON or compiled Wrangler JSON output")
643
- ],
644
- examples: [
645
- entry("devflare config print --format wrangler", "Print the compiled Wrangler config"),
646
- entry("devflare config print --local --format wrangler", "Print the local-runtime Wrangler config without account lookups")
647
- ]
648
- },
649
- {
650
- path: ["login"],
651
- summary: "Authenticate with Cloudflare via Wrangler",
652
- usage: [
653
- "devflare login [--force]"
654
- ],
655
- description: [
656
- "Uses Wrangler login under the hood, then reports the resolved primary or configured account context."
657
- ],
658
- options: [
659
- entry("--force", "Open Wrangler login even when Devflare already sees an authenticated session")
660
- ],
661
- examples: [
662
- entry("devflare login", "Authenticate only when needed"),
663
- entry("devflare login --force", "Re-open Wrangler login even if already authenticated")
664
- ],
665
- notes: [
666
- "If you are already authenticated and omit `--force`, Devflare will reuse the current credentials instead of reopening login."
667
- ]
668
- },
669
- {
670
- path: ["help"],
671
- summary: "Show command overview or command-specific help",
672
- usage: [
673
- "devflare help",
674
- "devflare help <command> [subcommand]"
675
- ],
676
- description: [
677
- "Prints the root command overview or the detailed help page for a specific command path."
678
- ],
679
- examples: [
680
- entry("devflare help", "Show the root command overview"),
681
- entry("devflare help previews", "Show the detailed previews help page"),
682
- entry("devflare help previews cleanup", "Show nested help for a preview subcommand when available")
683
- ],
684
- notes: [
685
- "`devflare <command> --help` resolves to the same detailed help page as `devflare help <command>`."
686
- ]
687
- },
688
- {
689
- path: ["version"],
690
- summary: "Show the installed devflare version",
691
- usage: [
692
- "devflare version",
693
- "devflare --version"
694
- ],
695
- description: [
696
- "Prints the installed package version and exits."
697
- ],
698
- examples: [
699
- entry("devflare version", "Show the installed version"),
700
- entry("devflare --version", "Show the installed version using the global flag")
701
- ]
702
- }
703
- ];
704
-
705
- // src/cli/help-pages/pages/misc.ts
706
- var MISC_HELP_PAGES = [
707
- {
708
- path: ["worker"],
709
- summary: "Rename and manage Worker control-plane operations",
710
- usage: [
711
- "devflare worker rename <old-name> --to <new-name> [--config <path>] [--account <id>]"
712
- ],
713
- description: [
714
- "Currently, `rename` is the supported worker control-plane operation.",
715
- "Devflare renames the remote Worker when needed and updates the matching local config name when it can resolve it safely."
716
- ],
717
- subcommands: [
718
- entry("rename", "Rename a Worker and sync the matching devflare config name")
719
- ],
720
- options: [
721
- entry("--to <new-name>", "New Worker name for the `rename` subcommand"),
722
- entry("--config <path>", "Choose the config file to update when multiple configs might match"),
723
- entry("--account <id>", "Use a specific Cloudflare account when renaming the remote Worker")
724
- ],
725
- examples: [
726
- entry("devflare worker rename documentation --to devflare-documentation", "Rename a Worker and sync the matching config")
727
- ],
728
- notes: [
729
- "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."
730
- ]
731
- },
732
- {
733
- path: ["worker", "rename"],
734
- summary: "Rename a Worker and sync the matching config",
735
- usage: [
736
- "devflare worker rename <old-name> --to <new-name> [--config <path>] [--account <id>]"
737
- ],
738
- description: [
739
- "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."
740
- ],
741
- arguments: [
742
- entry("<old-name>", "Current Worker name"),
743
- entry("--to <new-name>", "Required new Worker name")
744
- ],
745
- options: [
746
- entry("--config <path>", "Choose the config file to update when multiple configs may match"),
747
- entry("--account <id>", "Use a specific Cloudflare account for the remote rename")
748
- ],
749
- examples: [
750
- entry("devflare worker rename docs --to devflare-docs", "Rename the Worker and sync the selected config")
751
- ]
752
- },
753
- {
754
- path: ["tokens"],
755
- summary: "Manage Devflare-managed Cloudflare API tokens",
756
- usage: [
757
- "devflare tokens <bootstrap-token> --list [--account <id>]",
758
- "devflare tokens <bootstrap-token> --new [name] [--account <id>] [--all-flags]",
759
- "devflare tokens <bootstrap-token> --roll [name] [--account <id>]",
760
- "devflare tokens <bootstrap-token> --delete [name] [--account <id>]",
761
- "devflare tokens <bootstrap-token> --delete-all [--account <id>]"
762
- ],
763
- description: [
764
- "Creates, lists, rolls, and deletes Devflare-managed account-owned API tokens using a bootstrap token that already has token-management permissions.",
765
- "Token names are normalized to the `devflare-` prefix automatically."
766
- ],
767
- arguments: [
768
- entry("<bootstrap-token>", "Account-owned bootstrap token with Cloudflare API token-management permissions")
769
- ],
770
- options: [
771
- entry("--list", "List Devflare-managed account-owned tokens"),
772
- entry("--new [name]", "Create a Devflare-managed account-owned token"),
773
- entry("--roll [name]", "Roll a Devflare-managed token secret"),
774
- entry("--delete [name]", "Delete a Devflare-managed token by name"),
775
- entry("--delete-all", "Delete every Devflare-managed token in the selected account"),
776
- entry("--account <id>", "Use a specific Cloudflare account"),
777
- entry("--all-flags", "With `--new`, include every reusable account-scoped permission group")
778
- ],
779
- examples: [
780
- entry("devflare tokens $BOOTSTRAP --list", "List managed tokens"),
781
- entry("devflare tokens $BOOTSTRAP --new preview", "Create a managed token named `devflare-preview`"),
782
- entry("devflare tokens $BOOTSTRAP --roll preview", "Roll the secret for `devflare-preview`"),
783
- entry("devflare tokens $BOOTSTRAP --delete-all", "Delete every Devflare-managed token for the selected account")
784
- ],
785
- notes: [
786
- "Cloudflare only returns token secrets once for create and roll operations, so store them immediately."
787
- ]
788
- },
789
- {
790
- path: ["ai"],
791
- summary: "Show Workers AI pricing information",
792
- usage: [
793
- "devflare ai"
794
- ],
795
- description: [
796
- "Prints the built-in Workers AI pricing reference bundled with Devflare."
797
- ],
798
- examples: [
799
- entry("devflare ai", "Print the bundled Workers AI pricing reference")
800
- ],
801
- notes: [
802
- "This command does not currently query live account state; it prints the pricing table bundled with the current Devflare build."
803
- ]
804
- },
805
- {
806
- path: ["remote"],
807
- summary: "Manage remote test mode for paid Cloudflare features",
808
- usage: [
809
- "devflare remote [status]",
810
- "devflare remote enable [minutes]",
811
- "devflare remote disable"
812
- ],
813
- description: [
814
- "Remote mode enables tests that hit real Cloudflare infrastructure for services such as AI and Vectorize.",
815
- "The default action is `status`."
816
- ],
817
- subcommands: [
818
- entry("status", "Show the current effective remote-mode status"),
819
- entry("enable [minutes]", "Enable remote mode for a bounded duration (defaults to 30 minutes)"),
820
- entry("disable", "Disable remote mode immediately")
821
- ],
822
- examples: [
823
- entry("devflare remote", "Show the current remote-mode status"),
824
- entry("devflare remote enable 30", "Enable remote mode for 30 minutes"),
825
- entry("devflare remote disable", "Disable remote mode")
826
- ],
827
- notes: [
828
- "Remote tests use real Cloudflare services and may incur costs.",
829
- "`DEVFLARE_REMOTE` can keep remote mode active even after you run `disable`."
830
- ]
831
- },
832
- createRemoteSubcommandPage("status", "Show the current effective remote-mode status", [
833
- "devflare remote status"
834
- ], [
835
- "Shows whether remote mode is active, where that state came from, and when it expires if it is time-limited."
836
- ], [
837
- entry("devflare remote status", "Inspect the current remote-mode status")
838
- ], [
839
- "`devflare remote` without a subcommand behaves the same way."
840
- ]),
841
- createRemoteSubcommandPage("enable", "Enable remote test mode", [
842
- "devflare remote enable [minutes]"
843
- ], [
844
- "Enables remote test mode for the given duration, defaulting to 30 minutes when the duration is omitted or invalid."
845
- ], [
846
- entry("devflare remote enable", "Enable remote mode for the default 30 minutes"),
847
- entry("devflare remote enable 90", "Enable remote mode for 90 minutes")
848
- ], [
849
- "Remote tests can incur real Cloudflare costs, so prefer the shortest useful duration."
850
- ]),
851
- createRemoteSubcommandPage("disable", "Disable remote test mode", [
852
- "devflare remote disable"
853
- ], [
854
- "Disables the stored remote-mode window immediately."
855
- ], [
856
- entry("devflare remote disable", "Disable remote mode immediately")
857
- ], [
858
- "If `DEVFLARE_REMOTE` is still set in the environment, effective remote mode may remain active until you unset it."
859
- ])
860
- ];
861
-
862
- // src/cli/help-pages/pages/previews.ts
863
- var PREVIEW_HELP_PAGES = [
864
- {
865
- path: ["previews"],
866
- summary: "Inspect and clean dedicated preview Worker scopes",
867
- usage: [
868
- "devflare previews [--config <path>] [--env <name>] [--account <id>]",
869
- "devflare previews list [--config <path>] [--env <name>] [--account <id>]",
870
- "devflare previews bindings [--config <path>] [--env <name>] [--scope <name>] [--account <id>] [--worker <name>]",
871
- "devflare previews cleanup [--config <path>] [--env <name>] [--scope <name> | --all] [--account <id>] [--apply]"
872
- ],
873
- description: [
874
- "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`.",
875
- "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."
876
- ],
877
- subcommands: [
878
- entry("list", "List stable workers plus dedicated preview scopes for the current worker family (default)"),
879
- entry("bindings", "Inspect resolved bindings/resources and how many deployed workers currently reference them"),
880
- entry("cleanup", "Delete preview-only Worker scripts and preview-scoped Cloudflare resources")
881
- ],
882
- options: [
883
- ...PREVIEWS_COMMON_OPTIONS,
884
- entry("--config <path>", "Use a specific devflare config file for config-aware preview commands"),
885
- entry("--env <name>", "Resolve a non-default `config.env[name]` before config-aware preview commands when your preview bindings live outside `env.preview`"),
886
- entry("--scope <name>", "Resolve preview-scoped names for a specific identifier on config-aware preview commands"),
887
- entry("--all", "Clean every live preview scope Devflare can discover for the current worker family when used with `cleanup`"),
888
- entry("--apply", "Execute cleanup instead of doing a dry run"),
889
- entry("--worker <name>", "Override the primary worker name shown in the `bindings` report header")
890
- ],
891
- examples: [
892
- entry("devflare previews", "List preview scopes for the current package"),
893
- entry("devflare previews --account <id>", "List preview scopes for every configured package when run from a monorepo root"),
894
- entry("devflare previews bindings --scope next", "Inspect the `next` preview scope and its live worker associations"),
895
- entry("devflare previews cleanup --scope next --apply", "Delete preview-only resources and dedicated Workers for the `next` scope"),
896
- entry("devflare previews cleanup --all --apply", "Delete preview-only resources and dedicated Workers for every live discovered preview scope")
897
- ],
898
- notes: [
899
- "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>`.",
900
- "`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.",
901
- "`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.",
902
- "`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.",
903
- "Stable shared Workers are never deleted by `cleanup`."
904
- ]
905
- },
906
- createPreviewSubcommandPage("list", "List stable workers and dedicated preview scopes", [
907
- "devflare previews [--config <path>] [--env <name>] [--account <id>]",
908
- "devflare previews list [--config <path>] [--env <name>] [--account <id>]"
909
- ], [
910
- "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."
911
- ], [
912
- entry("--config <path>", "Use a specific devflare config file"),
913
- entry("--env <name>", "Resolve `config.env[name]` before discovering the worker family"),
914
- entry("--account <id>", "Use a specific Cloudflare account")
915
- ], [
916
- entry("devflare previews", "List stable workers and active preview scopes for the current package"),
917
- entry("devflare previews --account <id>", "Aggregate stable workers and preview scopes across every configured package in the current workspace root"),
918
- entry("devflare previews list --env preview", "List preview scopes using a non-default config environment when needed")
919
- ], [
920
- "`list` is the default subcommand, so `devflare previews` and `devflare previews list` show the same view.",
921
- "When more than one config is discovered, Devflare prints one worker-family block per configured package."
922
- ]),
923
- createPreviewSubcommandPage("bindings", "Inspect resolved bindings/resources and live worker associations", [
924
- "devflare previews bindings [--config <path>] [--env <name>] [--scope <name>] [--account <id>] [--worker <name>]"
925
- ], [
926
- "Resolves the current config for one preview scope, inspects live worker deployments, and reports how many deployed workers reference each resource or binding target."
927
- ], [
928
- entry("--config <path>", "Use a specific devflare config file"),
929
- entry("--env <name>", "Resolve `config.env[name]` before inspecting bindings"),
930
- entry("--scope <name>", "Resolve preview-scoped names for a specific identifier instead of the default `preview` scope"),
931
- entry("--account <id>", "Use a specific Cloudflare account"),
932
- entry("--worker <name>", "Override the primary worker name shown in the report header")
933
- ], [
934
- entry("devflare previews bindings --scope next", "Inspect preview-scoped bindings for the `next` scope"),
935
- entry("devflare previews bindings", "Inspect preview-scoped bindings for the default `preview` scope")
936
- ], [
937
- "This command is read-only; it does not delete Workers or resources.",
938
- "Omit `--env preview` unless your project stores preview bindings under a different env key."
939
- ]),
940
- createPreviewSubcommandPage("cleanup", "Delete preview-only Worker scripts and preview-scoped Cloudflare resources", [
941
- "devflare previews cleanup [--config <path>] [--env <name>] [--scope <name> | --all] [--account <id>] [--apply]"
942
- ], [
943
- "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.",
944
- "Use `--scope <name>` for one preview scope or `--all` to iterate every live preview scope Devflare can discover for the current worker family."
945
- ], [
946
- entry("--config <path>", "Use a specific devflare config file"),
947
- entry("--env <name>", "Resolve a non-default `config.env[name]` before cleanup when your preview bindings live outside `env.preview`"),
948
- entry("--scope <name>", "Clean one preview scope instead of the default `preview` scope"),
949
- entry("--all", "Clean every live preview scope Devflare can discover for the current worker family"),
950
- entry("--account <id>", "Use a specific Cloudflare account"),
951
- entry("--apply", "Apply the cleanup instead of doing a dry run")
952
- ], [
953
- entry("devflare previews cleanup --scope next", "Show which dedicated Workers and preview-only resources belong to the `next` scope"),
954
- entry("devflare previews cleanup --all", "Show the cleanup plan for every live discovered preview scope"),
955
- entry("devflare previews cleanup --all --apply", "Delete dedicated preview Workers and preview-only resources for every live discovered preview scope")
956
- ], [
957
- "Dedicated preview Worker scripts are candidates only when their names resolve to the targeted preview scope. Stable shared Workers are never deleted.",
958
- "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.",
959
- "Deleting dedicated preview Worker scripts removes preview-only service bindings, Durable Object bindings, and routes owned solely by those Workers.",
960
- "Omit `--env preview` unless your config stores preview bindings under a different env key.",
961
- "Analytics Engine datasets and Browser Rendering bindings are intentionally reported as warnings instead of deleted resources."
962
- ])
963
- ];
964
-
965
- // src/cli/help-pages/pages/productions.ts
966
- var PRODUCTION_HELP_PAGES = [
967
- {
968
- path: ["productions"],
969
- summary: "Inspect and manage live production Workers and deployments",
970
- usage: [
971
- "devflare productions [--config <path>] [--env <name>] [--account <id>] [--worker <name>]",
972
- "devflare productions versions [--config <path>] [--env <name>] [--account <id>] [--worker <name>]",
973
- "devflare productions rollback [--config <path>] [--account <id>] [--worker <name>] [--version-id <id>] [--message <text>] [--apply]",
974
- "devflare productions delete [--config <path>] [--account <id>] [--worker <name>] [--apply]"
975
- ],
976
- description: [
977
- "The default view inspects live Cloudflare production deployment state for locally configured Workers, or for one explicitly selected Worker.",
978
- "Other subcommands list recent production versions or mutate a single Worker by rolling back or deleting its live production script."
979
- ],
980
- subcommands: [
981
- entry("list", "List live production Workers and their active deployments (default)"),
982
- entry("versions", "Show recent stored production versions and which one is currently active"),
983
- entry("rollback", "Roll a Worker back to the previous or specified production version"),
984
- entry("delete", "Delete a live production Worker script")
985
- ],
986
- options: [
987
- entry("--config <path>", "Use a specific devflare config file or scan the current tree when omitted"),
988
- entry("--env <name>", "Resolve `config.env[name]` while discovering related production Workers (defaults to `production`)"),
989
- entry("--account <id>", "Use a specific Cloudflare account"),
990
- entry("--worker <name>", "Target a specific Worker instead of the locally configured set"),
991
- entry("--version <id>", "Version selector shortcut for `rollback` (same as --version-id)"),
992
- entry("--version-id <id>", "Target a specific production version when rolling back"),
993
- entry("--message <text>", "Attach a rollback message when using `rollback`"),
994
- entry("--apply", "Execute rollback or delete instead of doing a dry run")
995
- ],
996
- examples: [
997
- entry("devflare productions", "Inspect active production deployments for the current package or monorepo tree"),
998
- entry("devflare productions versions", "Show recent production versions for the resolved Workers"),
999
- entry("devflare productions rollback --worker my-worker --apply", "Roll `my-worker` back to the previous production version"),
1000
- entry("devflare productions rollback --worker my-worker --version-id 1234abcd-... --apply", "Roll `my-worker` back to a specific production version"),
1001
- entry("devflare productions delete --worker my-worker --apply", "Delete the live production Worker script for `my-worker`")
1002
- ],
1003
- notes: [
1004
- "`productions` reads live Cloudflare control-plane state. It does not depend on the Devflare preview registry database.",
1005
- "`rollback` uses Wrangler under the hood because Cloudflare exposes production rollback through the Wrangler deployment flow.",
1006
- "`delete` removes the Worker script only. Review KV, D1, R2, queues, and other account resources separately before cleaning them up."
1007
- ]
1008
- },
1009
- createProductionsSubcommandPage("list", "List live production Workers and their active deployments", [
1010
- "devflare productions [--config <path>] [--env <name>] [--account <id>] [--worker <name>]"
1011
- ], [
1012
- "Inspects live Cloudflare production deployment state for locally configured Workers, or for one explicitly selected Worker when `--worker` is provided."
1013
- ], [
1014
- entry("--config <path>", "Use a specific devflare config file"),
1015
- entry("--env <name>", "Resolve `config.env[name]` while discovering related production Workers (defaults to `production`)"),
1016
- entry("--account <id>", "Use a specific Cloudflare account"),
1017
- entry("--worker <name>", "Target a specific Worker instead of the locally configured set")
1018
- ], [
1019
- entry("devflare productions", "Inspect the current package or monorepo production Workers"),
1020
- entry("devflare productions --worker my-worker", "Inspect one live production Worker directly")
1021
- ], [
1022
- "This view is read-only and is backed by live Cloudflare production deployment data."
1023
- ]),
1024
- createProductionsSubcommandPage("versions", "Show recent stored production versions and the current active version", [
1025
- "devflare productions versions [--config <path>] [--env <name>] [--account <id>] [--worker <name>]"
1026
- ], [
1027
- "Lists recent stored production versions for the selected Worker set and marks the version currently active in the latest production deployment."
1028
- ], [
1029
- entry("--config <path>", "Use a specific devflare config file"),
1030
- entry("--env <name>", "Resolve `config.env[name]` while discovering related production Workers (defaults to `production`)"),
1031
- entry("--account <id>", "Use a specific Cloudflare account"),
1032
- entry("--worker <name>", "Target a specific Worker instead of the locally configured set")
1033
- ], [
1034
- entry("devflare productions versions", "Show recent stored production versions for the resolved Workers"),
1035
- entry("devflare productions versions --worker my-worker", "Show recent stored production versions for `my-worker`")
1036
- ]),
1037
- createProductionsSubcommandPage("rollback", "Roll a Worker back to the previous or specified production version", [
1038
- "devflare productions rollback [--config <path>] [--account <id>] [--worker <name>] [--version-id <id>] [--message <text>] [--apply]"
1039
- ], [
1040
- "Uses Wrangler rollback to create a fresh production deployment that points at the previous or explicitly selected version."
1041
- ], [
1042
- entry("--config <path>", "Use a specific devflare config file"),
1043
- entry("--account <id>", "Use a specific Cloudflare account"),
1044
- entry("--worker <name>", "Worker to roll back (required unless the current package resolves to exactly one primary Worker)"),
1045
- entry("--version <id>", "Version selector shortcut for `rollback` (same as --version-id)"),
1046
- entry("--version-id <id>", "Roll back to a specific production version instead of the previous one"),
1047
- entry("--message <text>", "Attach an explicit rollback message"),
1048
- entry("--apply", "Apply the rollback instead of doing a dry run")
1049
- ], [
1050
- entry("devflare productions rollback --worker my-worker", "Preview a rollback for `my-worker`"),
1051
- entry("devflare productions rollback --worker my-worker --apply", "Roll `my-worker` back to the previous production version"),
1052
- entry("devflare productions rollback --worker my-worker --version-id 1234abcd-... --apply", "Roll `my-worker` back to a specific production version")
1053
- ], [
1054
- "Without `--apply`, this command is a dry run."
1055
- ]),
1056
- createProductionsSubcommandPage("delete", "Delete a live production Worker script", [
1057
- "devflare productions delete [--config <path>] [--account <id>] [--worker <name>] [--apply]"
1058
- ], [
1059
- "Deletes the selected live production Worker script from Cloudflare. This does not automatically remove independent account resources such as KV namespaces or D1 databases."
1060
- ], [
1061
- entry("--config <path>", "Use a specific devflare config file"),
1062
- entry("--account <id>", "Use a specific Cloudflare account"),
1063
- entry("--worker <name>", "Worker to delete (required unless the current package resolves to exactly one primary Worker)"),
1064
- entry("--apply", "Apply the deletion instead of doing a dry run")
1065
- ], [
1066
- entry("devflare productions delete --worker my-worker", "Preview deletion of `my-worker`"),
1067
- entry("devflare productions delete --worker my-worker --apply", "Delete the live production Worker script for `my-worker`")
1068
- ], [
1069
- "Without `--apply`, this command is a dry run.",
1070
- "Deleting the Worker script does not clean up shared Cloudflare account resources automatically."
1071
- ])
1072
- ];
1073
-
1074
- // src/cli/help-pages/pages/index.ts
1075
- var HELP_PAGES = [
1076
- ...CORE_HELP_PAGES,
1077
- ...ACCOUNT_HELP_PAGES,
1078
- ...PREVIEW_HELP_PAGES,
1079
- ...PRODUCTION_HELP_PAGES,
1080
- ...MISC_HELP_PAGES
1081
- ];
1082
-
1083
- // src/cli/help.ts
1084
- var HELP_PAGE_MAP = createHelpPageMap(HELP_PAGES);
1085
- function renderHelp(path, options = {}) {
1086
- const page = resolveHelpPage(path, HELP_PAGE_MAP);
1087
- if (!page) {
1088
- return;
1089
- }
1090
- const themes = createThemes(options);
1091
- return {
1092
- styled: renderHelpPage(page, themes.styled),
1093
- plain: renderHelpPage(page, themes.plain),
1094
- path: page.path
1095
- };
1096
- }
1097
-
1098
- // src/cli/workspace-build-guard.ts
1099
- import { readdir, readFile, stat } from "node:fs/promises";
1100
- import { dirname, join } from "pathe";
1101
- import { fileURLToPath } from "node:url";
1102
- function isTruthyEnvFlag(value) {
1103
- const normalized = value?.trim().toLowerCase();
1104
- return normalized !== undefined && ["1", "true", "yes", "on"].includes(normalized);
1105
- }
1106
- function isCiEnvironment(env) {
1107
- return isTruthyEnvFlag(env.CI) || isTruthyEnvFlag(env.GITHUB_ACTIONS);
1108
- }
1109
- async function pathExists(path) {
1110
- try {
1111
- await stat(path);
1112
- return true;
1113
- } catch {
1114
- return false;
1115
- }
1116
- }
1117
- async function readPackageName(packageRoot) {
1118
- try {
1119
- const packageJson = JSON.parse(await readFile(join(packageRoot, "package.json"), "utf8"));
1120
- return typeof packageJson.name === "string" ? packageJson.name : undefined;
1121
- } catch {
1122
- return;
1123
- }
1124
- }
1125
- async function findLocalDevflarePackageRoot(startDirectory) {
1126
- let currentDirectory = startDirectory;
1127
- while (true) {
1128
- if (await pathExists(join(currentDirectory, "package.json"))) {
1129
- const packageName = await readPackageName(currentDirectory);
1130
- if (packageName === "devflare") {
1131
- return currentDirectory;
1132
- }
1133
- }
1134
- const parentDirectory = dirname(currentDirectory);
1135
- if (parentDirectory === currentDirectory) {
1136
- return;
1137
- }
1138
- currentDirectory = parentDirectory;
1139
- }
1140
- }
1141
- async function getLatestModifiedTime(path) {
1142
- if (!await pathExists(path)) {
1143
- return;
1144
- }
1145
- const entry2 = await stat(path);
1146
- if (entry2.isFile()) {
1147
- return entry2.mtimeMs;
1148
- }
1149
- if (!entry2.isDirectory()) {
1150
- return;
1151
- }
1152
- let newestModifiedTime = 0;
1153
- const children = await readdir(path, { withFileTypes: true });
1154
- for (const child of children) {
1155
- if (child.name === "node_modules" || child.name === ".turbo") {
1156
- continue;
1157
- }
1158
- const childModifiedTime = await getLatestModifiedTime(join(path, child.name));
1159
- if (typeof childModifiedTime === "number" && childModifiedTime > newestModifiedTime) {
1160
- newestModifiedTime = childModifiedTime;
1161
- }
1162
- }
1163
- return newestModifiedTime > 0 ? newestModifiedTime : entry2.mtimeMs;
1164
- }
1165
- async function getLocalWorkspaceBuildStatus(options = {}) {
1166
- const packageRoot = options.packageRoot ?? await findLocalDevflarePackageRoot(dirname(fileURLToPath(import.meta.url)));
1167
- if (!packageRoot) {
1168
- return {
1169
- state: "not-applicable"
1170
- };
1171
- }
1172
- const sourceDirectory = join(packageRoot, "src");
1173
- if (!await pathExists(sourceDirectory)) {
1174
- return {
1175
- state: "not-applicable",
1176
- packageRoot
1177
- };
1178
- }
1179
- const distDirectory = join(packageRoot, "dist");
1180
- if (!await pathExists(distDirectory)) {
1181
- const sourceNewestAt2 = await getLatestModifiedTime(sourceDirectory);
1182
- return {
1183
- state: "missing-dist",
1184
- packageRoot,
1185
- ...typeof sourceNewestAt2 === "number" ? { sourceNewestAt: new Date(sourceNewestAt2) } : {}
1186
- };
1187
- }
1188
- const [sourceNewestAt, distNewestAt] = await Promise.all([
1189
- getLatestModifiedTime(sourceDirectory),
1190
- getLatestModifiedTime(distDirectory)
1191
- ]);
1192
- if (typeof sourceNewestAt !== "number" || typeof distNewestAt !== "number") {
1193
- return {
1194
- state: "not-applicable",
1195
- packageRoot
1196
- };
1197
- }
1198
- return {
1199
- state: sourceNewestAt > distNewestAt ? "stale" : "fresh",
1200
- packageRoot,
1201
- sourceNewestAt: new Date(sourceNewestAt),
1202
- distNewestAt: new Date(distNewestAt)
1203
- };
1204
- }
1205
- async function getLocalWorkspaceBuildGuardMessage(command, options = {}) {
1206
- if (!["build", "deploy", "types"].includes(command)) {
1207
- return;
1208
- }
1209
- const env = options.env ?? process.env;
1210
- if (isTruthyEnvFlag(env.DEVFLARE_SKIP_WORKSPACE_BUILD_GUARD)) {
1211
- return;
1212
- }
1213
- if (isCiEnvironment(env)) {
1214
- return;
1215
- }
1216
- const status = await getLocalWorkspaceBuildStatus({
1217
- packageRoot: options.packageRoot
1218
- });
1219
- if (status.state === "fresh" || status.state === "not-applicable") {
1220
- return;
1221
- }
1222
- const timestampSummary = status.sourceNewestAt ? ` Latest source change: ${status.sourceNewestAt.toISOString()}.` : "";
1223
- const distTimestampSummary = status.distNewestAt ? ` Latest dist build: ${status.distNewestAt.toISOString()}.` : "";
1224
- if (status.state === "missing-dist") {
1225
- 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}`;
1226
- }
1227
- 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.`;
1228
- }
1229
-
1230
- // src/cli/index.ts
1231
- function parseArgs(argv) {
1232
- const args = [];
1233
- const options = {};
1234
- let command;
1235
- let unknownCommand;
1236
- let i = 0;
1237
- const shortOptionAliases = {
1238
- h: "help",
1239
- v: "version"
1240
- };
1241
- while (i < argv.length) {
1242
- const arg = argv[i];
1243
- if (arg.startsWith("-") && !/^-\d/.test(arg)) {
1244
- const isLongFlag = arg.startsWith("--");
1245
- const rawKey = isLongFlag ? arg.slice(2) : arg.slice(1);
1246
- const key = isLongFlag ? rawKey : shortOptionAliases[rawKey] ?? rawKey;
1247
- const nextArg = argv[i + 1];
1248
- if (nextArg && !nextArg.startsWith("-")) {
1249
- options[key] = nextArg;
1250
- i += 2;
1251
- } else {
1252
- options[key] = true;
1253
- i++;
1254
- }
1255
- } else if (!command) {
1256
- if (COMMANDS.includes(arg)) {
1257
- command = arg;
1258
- } else {
1259
- unknownCommand = arg;
1260
- break;
1261
- }
1262
- i++;
1263
- } else {
1264
- args.push(arg);
1265
- i++;
1266
- }
1267
- }
1268
- if (unknownCommand) {
1269
- return {
1270
- command: "help",
1271
- args: [],
1272
- options,
1273
- unknownCommand
1274
- };
1275
- }
1276
- if (!command) {
1277
- if (options.version === true) {
1278
- return { command: "version", args: [], options };
1279
- }
1280
- return { command: "help", args: [], options };
1281
- }
1282
- return { command, args, options, unknownCommand };
1283
- }
1284
- async function runCli(argv, options = {}) {
1285
- const logger = createConsola({
1286
- level: options.silent ? -999 : 3,
1287
- formatOptions: {
1288
- date: false
1289
- }
1290
- });
1291
- const parsed = parseArgs(argv);
1292
- const theme = createCliTheme(parsed.options);
1293
- if (parsed.unknownCommand) {
1294
- logger.error(`Unknown command: ${parsed.unknownCommand}`);
1295
- logLine(logger, dim("Run `devflare --help` for available commands", theme));
1296
- return { exitCode: 1 };
1297
- }
1298
- const wantsHelp = parsed.options.help === true;
1299
- const helpPath = parsed.command === "help" ? parsed.args : wantsHelp ? [parsed.command, ...parsed.args] : undefined;
1300
- if (helpPath) {
1301
- const renderedHelp = renderHelp(helpPath, parsed.options);
1302
- if (!renderedHelp) {
1303
- const requestedTopic = helpPath.join(" ");
1304
- logger.error(`Unknown help topic: ${requestedTopic}`);
1305
- logLine(logger, dim("Run `devflare --help` for available commands", theme));
1306
- return { exitCode: 1 };
1307
- }
1308
- logLine(logger, renderedHelp.styled);
1309
- return { exitCode: 0, output: renderedHelp.plain };
1310
- }
1311
- const workspaceBuildGuardMessage = await getLocalWorkspaceBuildGuardMessage(parsed.command);
1312
- if (workspaceBuildGuardMessage) {
1313
- logger.error(workspaceBuildGuardMessage);
1314
- return { exitCode: 1 };
1315
- }
1316
- switch (parsed.command) {
1317
- case "version":
1318
- const version = await getPackageVersion();
1319
- logLine(logger, `${cyanBold("devflare", theme)} ${dim(`v${version}`, theme)}`);
1320
- return { exitCode: 0, output: version };
1321
- case "init":
1322
- return runInit(parsed, logger, options);
1323
- case "dev":
1324
- return runDev(parsed, logger, options);
1325
- case "build":
1326
- return runBuild(parsed, logger, options);
1327
- case "deploy":
1328
- return runDeploy(parsed, logger, options);
1329
- case "types":
1330
- return runTypes(parsed, logger, options);
1331
- case "doctor":
1332
- return runDoctor(parsed, logger, options);
1333
- case "config":
1334
- return runConfig(parsed, logger, options);
1335
- case "account":
1336
- return runAccount(parsed, logger, options);
1337
- case "login":
1338
- return runLogin(parsed, logger, options);
1339
- case "previews":
1340
- return runPreviews(parsed, logger, options);
1341
- case "productions":
1342
- return runProductions(parsed, logger, options);
1343
- case "worker":
1344
- return runWorker(parsed, logger, options);
1345
- case "tokens":
1346
- return runToken(parsed, logger, options);
1347
- case "secrets":
1348
- return runSecrets(parsed, logger, options);
1349
- case "ai":
1350
- return runAI();
1351
- case "remote":
1352
- return runRemote(parsed, logger, options);
1353
- default:
1354
- logger.error(`Unknown command: ${parsed.command}`);
1355
- return { exitCode: 1 };
1356
- }
1357
- }
1358
- async function runInit(parsed, logger, options) {
1359
- const { runInitCommand } = await import("./init-cwpergap.js");
1360
- return runInitCommand(parsed, logger, options);
1361
- }
1362
- async function runDev(parsed, logger, options) {
1363
- const { runDevCommand } = await import("./dev-gn5y93z9.js");
1364
- return runDevCommand(parsed, logger, options);
1365
- }
1366
- async function runBuild(parsed, logger, options) {
1367
- const { runBuildCommand } = await import("./build-vy95gy3f.js");
1368
- return runBuildCommand(parsed, logger, options);
1369
- }
1370
- async function runDeploy(parsed, logger, options) {
1371
- const { runDeployCommand } = await import("./deploy-tjypkhg7.js");
1372
- return runDeployCommand(parsed, logger, {
1373
- ...options,
1374
- requireExplicitDeployTarget: true
1375
- });
1376
- }
1377
- async function runTypes(parsed, logger, options) {
1378
- const { runTypesCommand } = await import("./types-ttrrgdfj.js");
1379
- return runTypesCommand(parsed, logger, options);
1380
- }
1381
- async function runDoctor(parsed, logger, options) {
1382
- const { runDoctorCommand } = await import("./doctor-khk550tw.js");
1383
- return runDoctorCommand(parsed, logger, options);
1384
- }
1385
- async function runConfig(parsed, logger, options) {
1386
- const { runConfigCommand } = await import("./config-vec13050.js");
1387
- return runConfigCommand(parsed, logger, options);
1388
- }
1389
- async function runAccount(parsed, logger, options) {
1390
- const { runAccountCommand } = await import("./account-qhe8vtds.js");
1391
- return runAccountCommand(parsed, logger, options);
1392
- }
1393
- async function runLogin(parsed, logger, options) {
1394
- const { runLoginCommand } = await import("./login-4n266whq.js");
1395
- return runLoginCommand(parsed, logger, options);
1396
- }
1397
- async function runPreviews(parsed, logger, options) {
1398
- const { runPreviewsCommand } = await import("./previews-3m3ffpaw.js");
1399
- return runPreviewsCommand(parsed, logger, options);
1400
- }
1401
- async function runProductions(parsed, logger, options) {
1402
- const { runProductionsCommand } = await import("./productions-cgn3fz7d.js");
1403
- return runProductionsCommand(parsed, logger, options);
1404
- }
1405
- async function runWorker(parsed, logger, options) {
1406
- const { runWorkerCommand } = await import("./worker-jqgn6jyj.js");
1407
- return runWorkerCommand(parsed, logger, options);
1408
- }
1409
- async function runToken(parsed, logger, options) {
1410
- const { runTokenCommand } = await import("./token-a2b38w0z.js");
1411
- return runTokenCommand(parsed, logger, options);
1412
- }
1413
- async function runSecrets(parsed, logger, options) {
1414
- const { runSecretsCommand } = await import("./secrets-4050kqf5.js");
1415
- return runSecretsCommand(parsed, logger, options);
1416
- }
1417
- async function runAI() {
1418
- const { runAICommand } = await import("./ai-dx4fr9jh.js");
1419
- return runAICommand();
1420
- }
1421
- async function runRemote(parsed, logger, options) {
1422
- const { runRemoteCommand } = await import("./remote-q59qk463.js");
1423
- return runRemoteCommand(parsed, logger, options);
1424
- }
1425
-
1426
- export { parseArgs, runCli };