@jordond/kit 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (715) hide show
  1. package/README.md +181 -5
  2. package/dist/_affected-D8pI64_f.js +13 -0
  3. package/dist/_preview-B58geuUk.js +174 -0
  4. package/dist/_verb-DWXrtbyb.js +136 -0
  5. package/dist/android-C7N3LxRq.js +56 -0
  6. package/dist/apply-CphKtpYM.js +120 -0
  7. package/dist/args-DLndWKlr.js +25 -0
  8. package/dist/backup-9B4K9U_G.js +50 -0
  9. package/dist/bin-BPRG3tvc.js +1 -0
  10. package/dist/bin-t8E-qlss.js +31 -0
  11. package/dist/boot-D1w45n5N.js +50 -0
  12. package/dist/build-B2Ua7rOn.js +1 -0
  13. package/dist/build-DeykXskB.js +36 -0
  14. package/dist/build-DqITJpTP.js +52 -0
  15. package/dist/build-DtqYlgYC.js +123 -0
  16. package/dist/builtins-CPRE__kE.js +1 -0
  17. package/dist/builtins-ysIGaptY.js +426 -0
  18. package/dist/bump-hLNWDGnq.js +203 -0
  19. package/dist/certs-DRmBZA4b.js +65 -0
  20. package/dist/changelog-Bx2QM52O.js +131 -0
  21. package/dist/changelog-CeTpoe3d.js +128 -0
  22. package/dist/check-CH7X4usg.js +55 -0
  23. package/dist/check-vl7UBzW0.js +25 -0
  24. package/dist/checks-DxPGOAjd.js +751 -0
  25. package/dist/chrome-guy8J1Sd.js +54 -0
  26. package/dist/clean-Cnjk-U9b.js +78 -0
  27. package/dist/clean-uyfwoFAC.js +248 -0
  28. package/dist/cleanup-B3RY_WMv.js +64 -0
  29. package/dist/cleanup-B7tWYXh4.js +1 -0
  30. package/dist/clear-C-Pq3HaB.js +34 -0
  31. package/dist/cli.d.ts +1 -1
  32. package/dist/cli.js +23 -31
  33. package/dist/cloudflare-DANxWsOQ.js +297 -0
  34. package/dist/cloudflare-Fqiw0PwT.js +1 -0
  35. package/dist/command-B8J0KTC5.js +113 -0
  36. package/dist/command-B_tgmjMh.js +253 -0
  37. package/dist/command-DEjZdYUF.js +1 -0
  38. package/dist/command-DS2EuzYK.js +1 -0
  39. package/dist/command-mcR8k_HV.js +534 -0
  40. package/dist/completion-BiXJxPZ9.js +36 -0
  41. package/dist/completion-CbVmcFV9.js +39 -0
  42. package/dist/concurrent-DkDp6F4m.js +83 -0
  43. package/dist/config-4UrkUWxr.js +27 -0
  44. package/dist/config-B-iLUpjx.js +1 -0
  45. package/dist/config-B55_sHr5.js +14 -0
  46. package/dist/config-CWBXI-si.js +137 -0
  47. package/dist/create-Dy7hger6.js +20 -0
  48. package/dist/creds-DgLGg0OY.js +142 -0
  49. package/dist/creds-RiwicGw4.js +1 -0
  50. package/dist/d1-local-GmVnxPO4.js +47 -0
  51. package/dist/deploy-BBRBn_M4.js +190 -0
  52. package/dist/deploy-C_QOMOcM.js +1 -0
  53. package/dist/deps-CdBkTN7j.js +343 -0
  54. package/dist/dev-BZJD6OIV.js +109 -0
  55. package/dist/devices-DDv6rotc.js +1 -0
  56. package/dist/devices-Se92FvRm.js +530 -0
  57. package/dist/discover-C3nPq8O7.js +1 -0
  58. package/dist/discover-CAt8csSs.js +33 -0
  59. package/dist/doctor-BnNmJ3F0.js +63 -0
  60. package/dist/dotenv-C-L798Jx.js +1 -0
  61. package/dist/dotenv-DK7phuY3.js +80 -0
  62. package/dist/dump-CI3A09n5.js +53 -0
  63. package/dist/entries-B2AZnsYS.js +284 -0
  64. package/dist/errors-BO9WKUaF.js +20 -0
  65. package/dist/errors-q8HX0_8p.js +1 -0
  66. package/dist/exec-CGau45Vt.js +35 -0
  67. package/dist/export-Dou4TN6P.js +64 -0
  68. package/dist/fastlane-DOOIW8Bv.js +32 -0
  69. package/dist/fastlane-DY9nrA1Z.js +1 -0
  70. package/dist/fastlane-DjJlMdod.js +137 -0
  71. package/dist/fixes-BPJohmIs.js +115 -0
  72. package/dist/fixes-BRULlGZH.js +1 -0
  73. package/dist/fixtures-C_BKaJkW.js +3 -0
  74. package/dist/fixtures-kSnSse-E.js +568 -0
  75. package/dist/format-B9P7cwGa.js +30 -0
  76. package/dist/git-DS1oA148.js +213 -0
  77. package/dist/git-oL5tg3JB.js +1 -0
  78. package/dist/github-hbUxSgvC.js +91 -0
  79. package/dist/gradle-DCCSshhi.js +21 -0
  80. package/dist/index.d.ts +527 -9
  81. package/dist/index.js +9 -52
  82. package/dist/init-BWwVzmNd.js +62 -0
  83. package/dist/init-CM9_Vffq.js +522 -0
  84. package/dist/init-se_v7omf.js +72 -0
  85. package/dist/install-BYaBSSTu.js +1 -0
  86. package/dist/install-BwbPiWQ4.js +49 -0
  87. package/dist/install-CHWJxqqA.js +305 -0
  88. package/dist/ios-BEwVaO46.js +46 -0
  89. package/dist/kit-copy-BGFT7-eF.js +83 -0
  90. package/dist/kit-copy-BdBUHLSS.js +1 -0
  91. package/dist/kitref-D5EszLHl.js +1 -0
  92. package/dist/kitref-JXE2rWhj.js +100 -0
  93. package/dist/kotlin-D8HWnUzo.js +17 -0
  94. package/dist/lint-Cgq_H-NN.js +31 -0
  95. package/dist/list-1NXRSisF.js +20 -0
  96. package/dist/list-D0Qc5Qet.js +53 -0
  97. package/dist/load-BisdxdeI.js +45 -0
  98. package/dist/load-DKsm40If.js +169 -0
  99. package/dist/load-DtAHfNBQ.js +83 -0
  100. package/dist/load-DuQu-YA7.js +1 -0
  101. package/dist/log-CEcT9mjr.js +1 -0
  102. package/dist/log-jfLnWjfH.js +46 -0
  103. package/dist/logs-DG91Koht.js +51 -0
  104. package/dist/maestro-BSGMnT75.js +19 -0
  105. package/dist/maestro-Bd02kktp.js +160 -0
  106. package/dist/maestro-DKJ2SJeq.js +94 -0
  107. package/dist/main-Cnazq_l_.js +395 -0
  108. package/dist/metadata-CIIZa00_.js +657 -0
  109. package/dist/metadata-_t6U_Pi4.js +1 -0
  110. package/dist/migrate-BeBNQQ23.js +16 -0
  111. package/dist/migrate-command-PYN2AamL.js +295 -0
  112. package/dist/migrate-gonPH0WH.js +24 -0
  113. package/dist/mobile-DlJmxm4l.js +406 -0
  114. package/dist/mobile-dAnl58hp.js +1 -0
  115. package/dist/module-UMYvU8pS.js +117 -0
  116. package/dist/notes-Bdduo3ph.js +30 -0
  117. package/dist/notes-C7bDoJcD.js +1 -0
  118. package/dist/open-BHqqqGnv.js +72 -0
  119. package/dist/package-BVKRcQpC.js +5 -0
  120. package/dist/pages-CR7DZpWH.js +22 -0
  121. package/dist/pages-command-C4NlM9ry.js +350 -0
  122. package/dist/pick-Bm8e8uYD.js +160 -0
  123. package/dist/pick-Bu_cPUas.js +1 -0
  124. package/dist/plan-B_a5uNak.js +128 -0
  125. package/dist/plan-CcvMZsas.js +696 -0
  126. package/dist/plan-NaiIzubU.js +1 -0
  127. package/dist/pm-DKb81DKk.js +1 -0
  128. package/dist/pm-pcSPQYCu.js +79 -0
  129. package/dist/png-CYbxsNFm.js +270 -0
  130. package/dist/preflight-BQKjK3Mg.js +23 -0
  131. package/dist/proc-Bvvv4XbJ.js +1 -0
  132. package/dist/proc-WkAakwUC.js +218 -0
  133. package/dist/project-BO8s1Nwj.js +245 -0
  134. package/dist/promote-B1ZbzFS-.js +236 -0
  135. package/dist/promote-bk2Q8_L8.js +58 -0
  136. package/dist/prompt-BDNW2kJ2.js +1 -0
  137. package/dist/prompt-C0xPjGLR.js +80 -0
  138. package/dist/pull-Ch2Kz45B.js +28 -0
  139. package/dist/push-Cebz1M40.js +28 -0
  140. package/dist/push-Dph9Y38u.js +148 -0
  141. package/dist/push-EICF6s2a.js +62 -0
  142. package/dist/push-run-DXt7HOwQ.js +122 -0
  143. package/dist/qa-HDgx98qK.js +29 -0
  144. package/dist/render-BdsHMSvL.js +1 -0
  145. package/dist/render-Cp6zu41s.js +137 -0
  146. package/dist/render-roL1FmEH.js +302 -0
  147. package/dist/repair-CFNd7vN4.js +77 -0
  148. package/dist/reset-CwitJFp3.js +94 -0
  149. package/dist/restore-fT4mQq6w.js +109 -0
  150. package/dist/rollback-DQ9c6iV4.js +114 -0
  151. package/dist/rollout-gCQfGJW5.js +43 -0
  152. package/dist/rollout-hOEm0hZ9.js +144 -0
  153. package/dist/rotate-CWoDNN2_.js +65 -0
  154. package/dist/rotate-DnmY2rlY.js +172 -0
  155. package/dist/run-BSsdEdwU.js +50 -0
  156. package/dist/scaffold--FB-iFfy.js +1 -0
  157. package/dist/scaffold-B5OFkcou.js +311 -0
  158. package/dist/schema-D-5sWO5A.js +388 -0
  159. package/dist/secrets-BIStexgu.js +64 -0
  160. package/dist/secrets-CP1AnRbb.js +1 -0
  161. package/dist/seed-BJcU14Jr.js +24 -0
  162. package/dist/service-BHJDfoHf.js +114 -0
  163. package/dist/shots-DNcpoKfE.js +34 -0
  164. package/dist/shots-editor/assets/index-B9fyKikJ.css +2 -0
  165. package/dist/shots-editor/assets/index-BR5ZXxM4.js +244 -0
  166. package/dist/shots-editor/index.html +13 -0
  167. package/dist/shots-page.js +650 -564
  168. package/dist/show-e4oWpeIr.js +33 -0
  169. package/dist/sizes-CckOOSmE.js +1 -0
  170. package/dist/sizes-DQoBHANb.js +237 -0
  171. package/dist/status-BKF9wQDI.js +164 -0
  172. package/dist/status-CBfRGcak.js +1 -0
  173. package/dist/status-DgwgkAcK.js +15 -0
  174. package/dist/statusbar-BOLryuT7.js +56 -0
  175. package/dist/statusbar-C-5zclXZ.js +139 -0
  176. package/dist/statusbar-DmyLm4AT.js +1 -0
  177. package/dist/steps-BuNBR4xM.js +1 -0
  178. package/dist/steps-D7yIe5Ik.js +144 -0
  179. package/dist/studio-CjuQWgLj.js +393 -0
  180. package/dist/studio-SnhFnjKt.js +31 -0
  181. package/dist/suites-BHqxW32z.js +62 -0
  182. package/dist/suites-Ceg_mWy8.js +1 -0
  183. package/dist/sync-CzHA61P_.js +42 -0
  184. package/dist/target-tTLR9jzh.js +75 -0
  185. package/dist/targets-8X6fH7Mq.js +410 -0
  186. package/dist/targets-e5GoRwSs.js +1 -0
  187. package/dist/test-BlaVtdkO.js +17 -0
  188. package/dist/toml-BNhXFtqS.js +1 -0
  189. package/dist/toml-CdgZF4rj.js +73 -0
  190. package/dist/toolchain-DD2LqADU.js +1 -0
  191. package/dist/toolchain-Drbw2hx9.js +216 -0
  192. package/dist/typecheck-BqGdQvhM.js +17 -0
  193. package/dist/types-B33pT1hg.js +311 -0
  194. package/dist/uninstall-pc75zzh4.js +34 -0
  195. package/dist/upgrade-CuTsADCQ.js +112 -0
  196. package/dist/version-B5FFFYiV.js +1 -0
  197. package/dist/version-BP9DAmFX.js +133 -0
  198. package/dist/worker-BP2x5ONk.js +338 -0
  199. package/dist/worker-CbVQTdeT.js +1 -0
  200. package/dist/wrangler-DQIQQkT5.js +27 -0
  201. package/dist/xcode-DUgCKDwE.js +61 -0
  202. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/{0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom → 0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom} +2 -2
  203. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.md5 +1 -0
  204. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.sha1 +1 -0
  205. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.sha256 +1 -0
  206. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.sha512 +1 -0
  207. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml +4 -4
  208. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.md5 +1 -1
  209. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  210. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  211. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  212. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/{0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom → 0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom} +2 -2
  213. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.md5 +1 -0
  214. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.sha1 +1 -0
  215. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.sha256 +1 -0
  216. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.sha512 +1 -0
  217. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml +4 -4
  218. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.md5 +1 -1
  219. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  220. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  221. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  222. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/{0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom → 0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom} +2 -2
  223. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.md5 +1 -0
  224. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.sha1 +1 -0
  225. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.sha256 +1 -0
  226. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.sha512 +1 -0
  227. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml +4 -4
  228. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.md5 +1 -1
  229. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  230. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  231. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  232. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/{0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom → 0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom} +2 -2
  233. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.md5 +1 -0
  234. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.sha1 +1 -0
  235. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.sha256 +1 -0
  236. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.sha512 +1 -0
  237. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml +4 -4
  238. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.md5 +1 -1
  239. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  240. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  241. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  242. package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.0/kit-plugins-0.7.0.module → 0.8.0/kit-plugins-0.8.0.module} +5 -5
  243. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.md5 +1 -0
  244. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.sha1 +1 -0
  245. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.sha256 +1 -0
  246. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.sha512 +1 -0
  247. package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.0/kit-plugins-0.7.0.pom → 0.8.0/kit-plugins-0.8.0.pom} +1 -1
  248. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.md5 +1 -0
  249. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.sha1 +1 -0
  250. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.sha256 +1 -0
  251. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.sha512 +1 -0
  252. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml +4 -4
  253. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.md5 +1 -1
  254. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha1 +1 -1
  255. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha256 +1 -1
  256. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha512 +1 -1
  257. package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.0/kit-settings-0.7.0.module → 0.8.0/kit-settings-0.8.0.module} +5 -5
  258. package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.md5 +1 -0
  259. package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.sha1 +1 -0
  260. package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.sha256 +1 -0
  261. package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.sha512 +1 -0
  262. package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.0/kit-settings-0.7.0.pom → 0.8.0/kit-settings-0.8.0.pom} +1 -1
  263. package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.md5 +1 -0
  264. package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.sha1 +1 -0
  265. package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.sha256 +1 -0
  266. package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.sha512 +1 -0
  267. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml +4 -4
  268. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.md5 +1 -1
  269. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha1 +1 -1
  270. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha256 +1 -1
  271. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha512 +1 -1
  272. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/{0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom → 0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom} +2 -2
  273. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.md5 +1 -0
  274. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.sha1 +1 -0
  275. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.sha256 +1 -0
  276. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.sha512 +1 -0
  277. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml +4 -4
  278. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.md5 +1 -1
  279. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  280. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  281. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  282. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/{0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom → 0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom} +2 -2
  283. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.md5 +1 -0
  284. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.sha1 +1 -0
  285. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.sha256 +1 -0
  286. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.sha512 +1 -0
  287. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml +4 -4
  288. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.md5 +1 -1
  289. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  290. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  291. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  292. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/{0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom → 0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom} +2 -2
  293. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.md5 +1 -0
  294. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.sha1 +1 -0
  295. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.sha256 +1 -0
  296. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.sha512 +1 -0
  297. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml +4 -4
  298. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.md5 +1 -1
  299. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  300. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  301. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  302. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/{0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom → 0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom} +2 -2
  303. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.md5 +1 -0
  304. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.sha1 +1 -0
  305. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.sha256 +1 -0
  306. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.sha512 +1 -0
  307. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml +4 -4
  308. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.md5 +1 -1
  309. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  310. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  311. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  312. package/package.json +15 -6
  313. package/templates/add/maestro/README.md +142 -0
  314. package/templates/add/maestro/config.yaml +4 -0
  315. package/templates/add/maestro/flows/smoke.yaml +20 -0
  316. package/templates/add/maestro/subflows/settle.yaml +23 -0
  317. package/dist/_preview-g0s46wbd.js +0 -186
  318. package/dist/_verb-g6837n2y.js +0 -173
  319. package/dist/android-17z0stcg.js +0 -60
  320. package/dist/apply-5531ynqp.js +0 -118
  321. package/dist/backup-ev2amscz.js +0 -67
  322. package/dist/bin-q60acre8.js +0 -15
  323. package/dist/boot-6t7jn0jp.js +0 -52
  324. package/dist/build-6rp8qsab.js +0 -46
  325. package/dist/build-m9z9pfdh.js +0 -21
  326. package/dist/build-wdysb1g7.js +0 -53
  327. package/dist/builtins-vh45v6hz.js +0 -10
  328. package/dist/bump-rce7k3yk.js +0 -202
  329. package/dist/certs-x8ds6gcq.js +0 -76
  330. package/dist/changelog-70znsn6a.js +0 -130
  331. package/dist/changelog-ans0k88j.js +0 -120
  332. package/dist/check-5p1nvffh.js +0 -38
  333. package/dist/check-snsfxv4x.js +0 -72
  334. package/dist/clean-j1aan7n6.js +0 -93
  335. package/dist/clean-jdky4kys.js +0 -237
  336. package/dist/cleanup-hrcvxmh2.js +0 -18
  337. package/dist/clear-exmjhx8t.js +0 -43
  338. package/dist/cli/builtins.d.ts +0 -13
  339. package/dist/cli/command.d.ts +0 -106
  340. package/dist/cli/discover.d.ts +0 -10
  341. package/dist/cli/main.d.ts +0 -1
  342. package/dist/cli/plugin.d.ts +0 -7
  343. package/dist/cli/usage.d.ts +0 -3
  344. package/dist/cli-0f3m8qma.js +0 -127
  345. package/dist/cli-0gq9ayk0.js +0 -97
  346. package/dist/cli-0h5bs7he.js +0 -37
  347. package/dist/cli-0pgyxzex.js +0 -776
  348. package/dist/cli-17hmeca5.js +0 -394
  349. package/dist/cli-19me2qqg.js +0 -1056
  350. package/dist/cli-1j74pfjc.js +0 -466
  351. package/dist/cli-28nya88s.js +0 -73
  352. package/dist/cli-2ja6z124.js +0 -127
  353. package/dist/cli-2nw36t7w.js +0 -135
  354. package/dist/cli-2vx7vz1p.js +0 -64
  355. package/dist/cli-3f9s5j76.js +0 -150
  356. package/dist/cli-3nqkyv98.js +0 -517
  357. package/dist/cli-540nme4e.js +0 -46
  358. package/dist/cli-5d61x8vg.js +0 -675
  359. package/dist/cli-5mqj72g1.js +0 -54
  360. package/dist/cli-5wasc5mr.js +0 -76
  361. package/dist/cli-5ws4pqz1.js +0 -61
  362. package/dist/cli-78x6rdyd.js +0 -202
  363. package/dist/cli-7wvrehng.js +0 -23
  364. package/dist/cli-8qgqecpv.js +0 -35
  365. package/dist/cli-9jt7ffg6.js +0 -2043
  366. package/dist/cli-9jv0j32a.js +0 -167
  367. package/dist/cli-aca1bbxq.js +0 -77
  368. package/dist/cli-af51pbj8.js +0 -123
  369. package/dist/cli-b4qnnrsp.js +0 -35
  370. package/dist/cli-cj4hjqac.js +0 -326
  371. package/dist/cli-e7kt35ys.js +0 -218
  372. package/dist/cli-ey6trdpc.js +0 -11
  373. package/dist/cli-f68dq32t.js +0 -282
  374. package/dist/cli-fgxfjapz.js +0 -234
  375. package/dist/cli-fqxtcj42.js +0 -75
  376. package/dist/cli-g519ev8e.js +0 -89
  377. package/dist/cli-j47q7z51.js +0 -98
  378. package/dist/cli-k3q2s02f.js +0 -54
  379. package/dist/cli-m2zc03pj.js +0 -106
  380. package/dist/cli-nnj05pns.js +0 -41
  381. package/dist/cli-p7bb5zr2.js +0 -14
  382. package/dist/cli-pd4aspw0.js +0 -208
  383. package/dist/cli-py23qtsd.js +0 -132
  384. package/dist/cli-qq1ktr8q.js +0 -234
  385. package/dist/cli-qr7pzwpv.js +0 -67
  386. package/dist/cli-qsc39jca.js +0 -275
  387. package/dist/cli-r2zaznxh.js +0 -123
  388. package/dist/cli-re3ntm60.js +0 -48
  389. package/dist/cli-s4bb7m1c.js +0 -407
  390. package/dist/cli-thr9xsnm.js +0 -109
  391. package/dist/cli-v5ahh2k7.js +0 -462
  392. package/dist/cli-vrtkz6f0.js +0 -124
  393. package/dist/cli-w3yfxvfc.js +0 -85
  394. package/dist/cli-w7nrc7bk.js +0 -267
  395. package/dist/cli-wrzdcgnt.js +0 -82
  396. package/dist/cli-y3mjprpv.js +0 -31
  397. package/dist/cli-ynsy144r.js +0 -196
  398. package/dist/cloudflare-mkq6s4p7.js +0 -51
  399. package/dist/command-05jwq2ce.js +0 -1108
  400. package/dist/command-jqp93n3b.js +0 -269
  401. package/dist/command-nmgz9x53.js +0 -21
  402. package/dist/commands/_affected.d.ts +0 -11
  403. package/dist/commands/_preview.d.ts +0 -12
  404. package/dist/commands/_verb.d.ts +0 -15
  405. package/dist/commands/add/module.d.ts +0 -25
  406. package/dist/commands/add/target.d.ts +0 -17
  407. package/dist/commands/app/build.d.ts +0 -11
  408. package/dist/commands/app/clear.d.ts +0 -7
  409. package/dist/commands/app/install.d.ts +0 -15
  410. package/dist/commands/app/run.d.ts +0 -15
  411. package/dist/commands/app/uninstall.d.ts +0 -7
  412. package/dist/commands/build.d.ts +0 -19
  413. package/dist/commands/changelog.d.ts +0 -30
  414. package/dist/commands/check.d.ts +0 -16
  415. package/dist/commands/clean.d.ts +0 -7
  416. package/dist/commands/completion.d.ts +0 -15
  417. package/dist/commands/config.d.ts +0 -2
  418. package/dist/commands/db/backup.d.ts +0 -16
  419. package/dist/commands/db/create.d.ts +0 -7
  420. package/dist/commands/db/exec.d.ts +0 -16
  421. package/dist/commands/db/list.d.ts +0 -11
  422. package/dist/commands/db/migrate.d.ts +0 -11
  423. package/dist/commands/db/reset.d.ts +0 -11
  424. package/dist/commands/db/restore.d.ts +0 -11
  425. package/dist/commands/db/seed.d.ts +0 -11
  426. package/dist/commands/deploy.d.ts +0 -26
  427. package/dist/commands/deps.d.ts +0 -72
  428. package/dist/commands/dev.d.ts +0 -8
  429. package/dist/commands/device/boot.d.ts +0 -7
  430. package/dist/commands/device/list.d.ts +0 -7
  431. package/dist/commands/device/statusbar.d.ts +0 -11
  432. package/dist/commands/doctor.d.ts +0 -20
  433. package/dist/commands/env/check.d.ts +0 -7
  434. package/dist/commands/env/init.d.ts +0 -2
  435. package/dist/commands/env/push.d.ts +0 -20
  436. package/dist/commands/env/rotate.d.ts +0 -7
  437. package/dist/commands/env/sync.d.ts +0 -2
  438. package/dist/commands/fastlane.d.ts +0 -2
  439. package/dist/commands/fixture/dump.d.ts +0 -7
  440. package/dist/commands/fixture/load.d.ts +0 -7
  441. package/dist/commands/format.d.ts +0 -19
  442. package/dist/commands/gradle.d.ts +0 -2
  443. package/dist/commands/init.d.ts +0 -99
  444. package/dist/commands/kotlin.d.ts +0 -2
  445. package/dist/commands/lint.d.ts +0 -20
  446. package/dist/commands/logs.d.ts +0 -8
  447. package/dist/commands/maestro.d.ts +0 -2
  448. package/dist/commands/open.d.ts +0 -13
  449. package/dist/commands/qa.d.ts +0 -31
  450. package/dist/commands/release/android.d.ts +0 -30
  451. package/dist/commands/release/certs.d.ts +0 -7
  452. package/dist/commands/release/ios.d.ts +0 -22
  453. package/dist/commands/release/metadata/pull.d.ts +0 -11
  454. package/dist/commands/release/metadata/push.d.ts +0 -11
  455. package/dist/commands/release/promote.d.ts +0 -35
  456. package/dist/commands/release/rollback.d.ts +0 -7
  457. package/dist/commands/release/rollout.d.ts +0 -23
  458. package/dist/commands/release/service.d.ts +0 -6
  459. package/dist/commands/release/status.d.ts +0 -2
  460. package/dist/commands/shots/export.d.ts +0 -29
  461. package/dist/commands/shots.d.ts +0 -31
  462. package/dist/commands/test.d.ts +0 -11
  463. package/dist/commands/typecheck.d.ts +0 -11
  464. package/dist/commands/upgrade.d.ts +0 -9
  465. package/dist/commands/version/bump.d.ts +0 -17
  466. package/dist/commands/version/show.d.ts +0 -2
  467. package/dist/commands/wrangler.d.ts +0 -2
  468. package/dist/commands/xcode.d.ts +0 -10
  469. package/dist/completion-g8bjf46s.js +0 -36
  470. package/dist/completion-n9yqehnf.js +0 -38
  471. package/dist/concurrent-atba349a.js +0 -96
  472. package/dist/config/load.d.ts +0 -28
  473. package/dist/config/schema.d.ts +0 -231
  474. package/dist/config-45ts3ey1.js +0 -31
  475. package/dist/config-d7h13gsg.js +0 -22
  476. package/dist/create-pzjz0d84.js +0 -38
  477. package/dist/creds-kgbnkj91.js +0 -34
  478. package/dist/d1-local-mpc7ykq4.js +0 -62
  479. package/dist/deploy-napjwj8w.js +0 -18
  480. package/dist/deps-7xxc0a5z.js +0 -334
  481. package/dist/dev-z4s47pvj.js +0 -114
  482. package/dist/discover-9egde25c.js +0 -14
  483. package/dist/doctor-nhn8fsqn.js +0 -153
  484. package/dist/dotenv-bsk2m68j.js +0 -15
  485. package/dist/dump-4s2wbydq.js +0 -60
  486. package/dist/entries-358fsdbg.js +0 -311
  487. package/dist/errors-1fjbr7ee.js +0 -10
  488. package/dist/exec-f7s2cper.js +0 -53
  489. package/dist/export-1eszfz4q.js +0 -65
  490. package/dist/fastlane-8yepfr2p.js +0 -26
  491. package/dist/fastlane-faays7j0.js +0 -38
  492. package/dist/fixes-nyvcnb08.js +0 -27
  493. package/dist/format-tt14cck9.js +0 -43
  494. package/dist/git-qyqfbf8e.js +0 -36
  495. package/dist/github-em8sgwvy.js +0 -95
  496. package/dist/gradle-zgbmvvej.js +0 -39
  497. package/dist/index-cx34x4np.js +0 -874
  498. package/dist/index-erv82p4z.js +0 -1528
  499. package/dist/index-gqmhnjkq.js +0 -49
  500. package/dist/index-jqfz6hfy.js +0 -2659
  501. package/dist/index-mm4ht8yh.js +0 -9
  502. package/dist/index-s3ehw02w.js +0 -1610
  503. package/dist/index-tvegt8ab.js +0 -25
  504. package/dist/init-025v8xjs.js +0 -464
  505. package/dist/init-dyd1b74n.js +0 -80
  506. package/dist/init-ktq9qfgk.js +0 -78
  507. package/dist/install-c87y65cw.js +0 -50
  508. package/dist/install-wz1de5cv.js +0 -35
  509. package/dist/ios-yas39gap.js +0 -50
  510. package/dist/kitref-p727zpk7.js +0 -24
  511. package/dist/kotlin-66qna77x.js +0 -31
  512. package/dist/lib/add/apply.d.ts +0 -25
  513. package/dist/lib/add/edits.d.ts +0 -57
  514. package/dist/lib/add/plan.d.ts +0 -98
  515. package/dist/lib/add/settings.d.ts +0 -20
  516. package/dist/lib/app/build.d.ts +0 -35
  517. package/dist/lib/app/config.d.ts +0 -21
  518. package/dist/lib/app/install.d.ts +0 -53
  519. package/dist/lib/changelog.d.ts +0 -51
  520. package/dist/lib/chrome.d.ts +0 -19
  521. package/dist/lib/clean.d.ts +0 -85
  522. package/dist/lib/cleanup.d.ts +0 -21
  523. package/dist/lib/cloudflare.d.ts +0 -121
  524. package/dist/lib/completion.d.ts +0 -33
  525. package/dist/lib/concurrent.d.ts +0 -21
  526. package/dist/lib/d1-local.d.ts +0 -29
  527. package/dist/lib/devices/index.d.ts +0 -96
  528. package/dist/lib/devices/pick.d.ts +0 -52
  529. package/dist/lib/devices/statusbar.d.ts +0 -4
  530. package/dist/lib/doctor/checks.d.ts +0 -134
  531. package/dist/lib/doctor/entries.d.ts +0 -34
  532. package/dist/lib/doctor/fixes.d.ts +0 -64
  533. package/dist/lib/doctor/repair.d.ts +0 -18
  534. package/dist/lib/dotenv.d.ts +0 -52
  535. package/dist/lib/env/github.d.ts +0 -32
  536. package/dist/lib/env/init.d.ts +0 -22
  537. package/dist/lib/env/load.d.ts +0 -12
  538. package/dist/lib/env/push-run.d.ts +0 -62
  539. package/dist/lib/env/push.d.ts +0 -54
  540. package/dist/lib/env/render.d.ts +0 -53
  541. package/dist/lib/env/rotate.d.ts +0 -24
  542. package/dist/lib/env/schema.d.ts +0 -69
  543. package/dist/lib/errors.d.ts +0 -14
  544. package/dist/lib/fastlane.d.ts +0 -39
  545. package/dist/lib/fixtures/android.d.ts +0 -33
  546. package/dist/lib/fixtures/config.d.ts +0 -73
  547. package/dist/lib/fixtures/index.d.ts +0 -20
  548. package/dist/lib/fixtures/ios.d.ts +0 -13
  549. package/dist/lib/fixtures/stage.d.ts +0 -37
  550. package/dist/lib/git.d.ts +0 -78
  551. package/dist/lib/image/png.d.ts +0 -39
  552. package/dist/lib/kitref.d.ts +0 -35
  553. package/dist/lib/log.d.ts +0 -17
  554. package/dist/lib/maestro/args.d.ts +0 -23
  555. package/dist/lib/maestro/bin.d.ts +0 -10
  556. package/dist/lib/maestro/command.d.ts +0 -16
  557. package/dist/lib/maestro/lint.d.ts +0 -14
  558. package/dist/lib/maestro/run.d.ts +0 -79
  559. package/dist/lib/maestro/suites.d.ts +0 -24
  560. package/dist/lib/pm.d.ts +0 -13
  561. package/dist/lib/proc.d.ts +0 -78
  562. package/dist/lib/prompt.d.ts +0 -32
  563. package/dist/lib/release/creds.d.ts +0 -50
  564. package/dist/lib/release/listing-images.d.ts +0 -86
  565. package/dist/lib/release/metadata.d.ts +0 -81
  566. package/dist/lib/release/mobile.d.ts +0 -64
  567. package/dist/lib/release/notes.d.ts +0 -15
  568. package/dist/lib/release/preflight.d.ts +0 -30
  569. package/dist/lib/release/promote.d.ts +0 -58
  570. package/dist/lib/release/rollout.d.ts +0 -33
  571. package/dist/lib/release/status.d.ts +0 -52
  572. package/dist/lib/release/version.d.ts +0 -53
  573. package/dist/lib/scaffold.d.ts +0 -104
  574. package/dist/lib/secrets.d.ts +0 -32
  575. package/dist/lib/steps.d.ts +0 -48
  576. package/dist/lib/storeshots/command.d.ts +0 -3
  577. package/dist/lib/storeshots/fonts.d.ts +0 -14
  578. package/dist/lib/storeshots/page/background.d.ts +0 -6
  579. package/dist/lib/storeshots/page/device-frames.d.ts +0 -16
  580. package/dist/lib/storeshots/page/main.d.ts +0 -1
  581. package/dist/lib/storeshots/page/renderer.d.ts +0 -17
  582. package/dist/lib/storeshots/page-bundle.d.ts +0 -7
  583. package/dist/lib/storeshots/plan.d.ts +0 -25
  584. package/dist/lib/storeshots/project.d.ts +0 -169
  585. package/dist/lib/storeshots/render.d.ts +0 -20
  586. package/dist/lib/storeshots/server.d.ts +0 -29
  587. package/dist/lib/storeshots/sizes.d.ts +0 -121
  588. package/dist/lib/storeshots/types.d.ts +0 -397
  589. package/dist/lib/storeshots/write.d.ts +0 -11
  590. package/dist/lib/targets.d.ts +0 -69
  591. package/dist/lib/toml.d.ts +0 -15
  592. package/dist/lib/toolchain.d.ts +0 -59
  593. package/dist/lib/worker.d.ts +0 -128
  594. package/dist/lint-hx7b83kn.js +0 -43
  595. package/dist/list-ks9e93rx.js +0 -61
  596. package/dist/list-xxsdc51s.js +0 -34
  597. package/dist/load-1fxmvh9n.js +0 -51
  598. package/dist/load-8y6s655t.js +0 -170
  599. package/dist/load-ak66yg9j.js +0 -27
  600. package/dist/log-g1ebh60s.js +0 -15
  601. package/dist/logs-zjbmpm40.js +0 -62
  602. package/dist/maestro-zw9p32cc.js +0 -30
  603. package/dist/main-1v5dgfdb.js +0 -1747
  604. package/dist/metadata-4jn2zdsm.js +0 -44
  605. package/dist/migrate-2a66bm3x.js +0 -38
  606. package/dist/mobile-0m026dzx.js +0 -40
  607. package/dist/module-2bn1p66a.js +0 -119
  608. package/dist/notes-pyvrbdgg.js +0 -21
  609. package/dist/open-rn88e9c5.js +0 -73
  610. package/dist/pick-a90zx6sr.js +0 -26
  611. package/dist/picocolors-0dxagz5d.js +0 -6
  612. package/dist/plan-av9jwvvk.js +0 -651
  613. package/dist/pm-ay4nmeps.js +0 -16
  614. package/dist/proc-8ewt3hs4.js +0 -35
  615. package/dist/promote-8g49cxj1.js +0 -63
  616. package/dist/promote-eezgfcm6.js +0 -290
  617. package/dist/prompt-3wwegvqc.js +0 -15
  618. package/dist/pull-0cjcf2jg.js +0 -39
  619. package/dist/push-qndrsnvg.js +0 -63
  620. package/dist/push-run-y2gb3a0r.js +0 -148
  621. package/dist/push-ysd4zzad.js +0 -44
  622. package/dist/qa-ha84kjzm.js +0 -40
  623. package/dist/render-hkvej41k.js +0 -24
  624. package/dist/repair-6989jrqg.js +0 -104
  625. package/dist/reset-710zhbbj.js +0 -110
  626. package/dist/restore-b744ykwg.js +0 -122
  627. package/dist/rollback-3vkb819m.js +0 -134
  628. package/dist/rollout-kdfmvwwv.js +0 -56
  629. package/dist/rollout-z1r0r7h1.js +0 -188
  630. package/dist/rotate-762tg2z9.js +0 -80
  631. package/dist/rotate-q5psaddv.js +0 -168
  632. package/dist/run-k2w6qqms.js +0 -56
  633. package/dist/scaffold-5mzc135g.js +0 -37
  634. package/dist/secrets-5hej44bb.js +0 -24
  635. package/dist/seed-9xw8ppn9.js +0 -37
  636. package/dist/service-n6kgj7ba.js +0 -111
  637. package/dist/shots-byejd6g2.js +0 -46
  638. package/dist/show-47xz48ea.js +0 -50
  639. package/dist/sizes-3kpjxm9h.js +0 -51
  640. package/dist/status-fk3frgy1.js +0 -41
  641. package/dist/status-stvsvpn3.js +0 -29
  642. package/dist/statusbar-tkznwzqz.js +0 -15
  643. package/dist/statusbar-x2rjwbz5.js +0 -55
  644. package/dist/steps-t6q8yxbb.js +0 -22
  645. package/dist/sync-7d7v2f5r.js +0 -53
  646. package/dist/target-hpmjbrrh.js +0 -78
  647. package/dist/targets-vvzvaskd.js +0 -32
  648. package/dist/test-f07bcpby.js +0 -31
  649. package/dist/toml-3fxsdkhr.js +0 -14
  650. package/dist/toolchain-wd7hh812.js +0 -41
  651. package/dist/typecheck-ztfs5rb9.js +0 -28
  652. package/dist/uninstall-q8ewxkdr.js +0 -43
  653. package/dist/upgrade-g67qx155.js +0 -127
  654. package/dist/version-mnds3q7r.js +0 -39
  655. package/dist/worker-661hvwnb.js +0 -59
  656. package/dist/wrangler-mvnagswd.js +0 -46
  657. package/dist/xcode-h3nt62t8.js +0 -75
  658. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.md5 +0 -1
  659. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.sha1 +0 -1
  660. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.sha256 +0 -1
  661. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.sha512 +0 -1
  662. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.md5 +0 -1
  663. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.sha1 +0 -1
  664. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.sha256 +0 -1
  665. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.sha512 +0 -1
  666. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.md5 +0 -1
  667. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.sha1 +0 -1
  668. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.sha256 +0 -1
  669. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.sha512 +0 -1
  670. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.md5 +0 -1
  671. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.sha1 +0 -1
  672. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.sha256 +0 -1
  673. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.sha512 +0 -1
  674. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.md5 +0 -1
  675. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.sha1 +0 -1
  676. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.sha256 +0 -1
  677. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.sha512 +0 -1
  678. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.md5 +0 -1
  679. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.sha1 +0 -1
  680. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.sha256 +0 -1
  681. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.sha512 +0 -1
  682. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.md5 +0 -1
  683. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.sha1 +0 -1
  684. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.sha256 +0 -1
  685. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.sha512 +0 -1
  686. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.md5 +0 -1
  687. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.sha1 +0 -1
  688. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.sha256 +0 -1
  689. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.sha512 +0 -1
  690. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.md5 +0 -1
  691. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.sha1 +0 -1
  692. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.sha256 +0 -1
  693. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.sha512 +0 -1
  694. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.md5 +0 -1
  695. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.sha1 +0 -1
  696. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.sha256 +0 -1
  697. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.sha512 +0 -1
  698. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.md5 +0 -1
  699. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.sha1 +0 -1
  700. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.sha256 +0 -1
  701. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.sha512 +0 -1
  702. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.md5 +0 -1
  703. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.sha1 +0 -1
  704. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.sha256 +0 -1
  705. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.sha512 +0 -1
  706. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.0/kit-plugins-0.7.0.jar → 0.8.0/kit-plugins-0.8.0.jar} +0 -0
  707. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.0/kit-plugins-0.7.0.jar.md5 → 0.8.0/kit-plugins-0.8.0.jar.md5} +0 -0
  708. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.0/kit-plugins-0.7.0.jar.sha1 → 0.8.0/kit-plugins-0.8.0.jar.sha1} +0 -0
  709. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.0/kit-plugins-0.7.0.jar.sha256 → 0.8.0/kit-plugins-0.8.0.jar.sha256} +0 -0
  710. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.0/kit-plugins-0.7.0.jar.sha512 → 0.8.0/kit-plugins-0.8.0.jar.sha512} +0 -0
  711. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.0/kit-settings-0.7.0.jar → 0.8.0/kit-settings-0.8.0.jar} +0 -0
  712. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.0/kit-settings-0.7.0.jar.md5 → 0.8.0/kit-settings-0.8.0.jar.md5} +0 -0
  713. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.0/kit-settings-0.7.0.jar.sha1 → 0.8.0/kit-settings-0.8.0.jar.sha1} +0 -0
  714. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.0/kit-settings-0.7.0.jar.sha256 → 0.8.0/kit-settings-0.8.0.jar.sha256} +0 -0
  715. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.0/kit-settings-0.7.0.jar.sha512 → 0.8.0/kit-settings-0.8.0.jar.sha512} +0 -0
@@ -1,2659 +0,0 @@
1
- // @bun
2
- import"./cli-re3ntm60.js";
3
-
4
- // node_modules/@clack/core/dist/index.mjs
5
- import { styleText } from "util";
6
- import { stdout, stdin } from "process";
7
- import * as f$1 from "readline";
8
- import f__default from "readline";
9
-
10
- // node_modules/fast-string-truncated-width/dist/utils.js
11
- var getCodePointsLength = (() => {
12
- const SURROGATE_PAIR_RE = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
13
- return (input) => {
14
- let surrogatePairsNr = 0;
15
- SURROGATE_PAIR_RE.lastIndex = 0;
16
- while (SURROGATE_PAIR_RE.test(input)) {
17
- surrogatePairsNr += 1;
18
- }
19
- return input.length - surrogatePairsNr;
20
- };
21
- })();
22
- var isFullWidth = (x) => {
23
- return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
24
- };
25
- var isWideNotCJKTNotEmoji = (x) => {
26
- return x === 8987 || x === 9001 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
27
- };
28
-
29
- // node_modules/fast-string-truncated-width/dist/index.js
30
- var ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y;
31
- var CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
32
- var CJKT_WIDE_RE = /(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu;
33
- var TAB_RE = /\t{1,1000}/y;
34
- var EMOJI_RE = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu;
35
- var LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
36
- var MODIFIER_RE = /\p{M}+/gu;
37
- var NO_TRUNCATION = { limit: Infinity, ellipsis: "" };
38
- var getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
39
- const LIMIT = truncationOptions.limit ?? Infinity;
40
- const ELLIPSIS = truncationOptions.ellipsis ?? "";
41
- const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION, widthOptions).width : 0);
42
- const ANSI_WIDTH = 0;
43
- const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
44
- const TAB_WIDTH = widthOptions.tabWidth ?? 8;
45
- const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
46
- const FULL_WIDTH_WIDTH = 2;
47
- const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
48
- const WIDE_WIDTH = widthOptions.wideWidth ?? FULL_WIDTH_WIDTH;
49
- const PARSE_BLOCKS = [
50
- [LATIN_RE, REGULAR_WIDTH],
51
- [ANSI_RE, ANSI_WIDTH],
52
- [CONTROL_RE, CONTROL_WIDTH],
53
- [TAB_RE, TAB_WIDTH],
54
- [EMOJI_RE, EMOJI_WIDTH],
55
- [CJKT_WIDE_RE, WIDE_WIDTH]
56
- ];
57
- let indexPrev = 0;
58
- let index = 0;
59
- let length = input.length;
60
- let lengthExtra = 0;
61
- let truncationEnabled = false;
62
- let truncationIndex = length;
63
- let truncationLimit = Math.max(0, LIMIT - ELLIPSIS_WIDTH);
64
- let unmatchedStart = 0;
65
- let unmatchedEnd = 0;
66
- let width = 0;
67
- let widthExtra = 0;
68
- outer:
69
- while (true) {
70
- if (unmatchedEnd > unmatchedStart || index >= length && index > indexPrev) {
71
- const unmatched = input.slice(unmatchedStart, unmatchedEnd) || input.slice(indexPrev, index);
72
- lengthExtra = 0;
73
- for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
74
- const codePoint = char.codePointAt(0) || 0;
75
- if (isFullWidth(codePoint)) {
76
- widthExtra = FULL_WIDTH_WIDTH;
77
- } else if (isWideNotCJKTNotEmoji(codePoint)) {
78
- widthExtra = WIDE_WIDTH;
79
- } else {
80
- widthExtra = REGULAR_WIDTH;
81
- }
82
- if (width + widthExtra > truncationLimit) {
83
- truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
84
- }
85
- if (width + widthExtra > LIMIT) {
86
- truncationEnabled = true;
87
- break outer;
88
- }
89
- lengthExtra += char.length;
90
- width += widthExtra;
91
- }
92
- unmatchedStart = unmatchedEnd = 0;
93
- }
94
- if (index >= length) {
95
- break outer;
96
- }
97
- for (let i = 0, l = PARSE_BLOCKS.length;i < l; i++) {
98
- const [BLOCK_RE, BLOCK_WIDTH] = PARSE_BLOCKS[i];
99
- BLOCK_RE.lastIndex = index;
100
- if (BLOCK_RE.test(input)) {
101
- lengthExtra = BLOCK_RE === CJKT_WIDE_RE ? getCodePointsLength(input.slice(index, BLOCK_RE.lastIndex)) : BLOCK_RE === EMOJI_RE ? 1 : BLOCK_RE.lastIndex - index;
102
- widthExtra = lengthExtra * BLOCK_WIDTH;
103
- if (width + widthExtra > truncationLimit) {
104
- truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / BLOCK_WIDTH));
105
- }
106
- if (width + widthExtra > LIMIT) {
107
- truncationEnabled = true;
108
- break outer;
109
- }
110
- width += widthExtra;
111
- unmatchedStart = indexPrev;
112
- unmatchedEnd = index;
113
- index = indexPrev = BLOCK_RE.lastIndex;
114
- continue outer;
115
- }
116
- }
117
- index += 1;
118
- }
119
- return {
120
- width: truncationEnabled ? truncationLimit : width,
121
- index: truncationEnabled ? truncationIndex : length,
122
- truncated: truncationEnabled,
123
- ellipsed: truncationEnabled && LIMIT >= ELLIPSIS_WIDTH
124
- };
125
- };
126
- var dist_default = getStringTruncatedWidth;
127
-
128
- // node_modules/fast-string-width/dist/index.js
129
- var NO_TRUNCATION2 = {
130
- limit: Infinity,
131
- ellipsis: "",
132
- ellipsisWidth: 0
133
- };
134
- var fastStringWidth = (input, options = {}) => {
135
- return dist_default(input, NO_TRUNCATION2, options).width;
136
- };
137
- var dist_default2 = fastStringWidth;
138
-
139
- // node_modules/fast-wrap-ansi/lib/main.js
140
- var ESC = "\x1B";
141
- var CSI = "\x9B";
142
- var END_CODE = 39;
143
- var ANSI_ESCAPE_BELL = "\x07";
144
- var ANSI_CSI = "[";
145
- var ANSI_OSC = "]";
146
- var ANSI_SGR_TERMINATOR = "m";
147
- var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
148
- var GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
149
- var getClosingCode = (openingCode) => {
150
- if (openingCode >= 30 && openingCode <= 37)
151
- return 39;
152
- if (openingCode >= 90 && openingCode <= 97)
153
- return 39;
154
- if (openingCode >= 40 && openingCode <= 47)
155
- return 49;
156
- if (openingCode >= 100 && openingCode <= 107)
157
- return 49;
158
- if (openingCode === 1 || openingCode === 2)
159
- return 22;
160
- if (openingCode === 3)
161
- return 23;
162
- if (openingCode === 4)
163
- return 24;
164
- if (openingCode === 7)
165
- return 27;
166
- if (openingCode === 8)
167
- return 28;
168
- if (openingCode === 9)
169
- return 29;
170
- if (openingCode === 0)
171
- return 0;
172
- return;
173
- };
174
- var wrapAnsiCode = (code) => `${ESC}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
175
- var wrapAnsiHyperlink = (url) => `${ESC}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
176
- var wrapWord = (rows, word, columns) => {
177
- const characters = word[Symbol.iterator]();
178
- let isInsideEscape = false;
179
- let isInsideLinkEscape = false;
180
- let lastRow = rows.at(-1);
181
- let visible = lastRow === undefined ? 0 : dist_default2(lastRow);
182
- let currentCharacter = characters.next();
183
- let nextCharacter = characters.next();
184
- let rawCharacterIndex = 0;
185
- while (!currentCharacter.done) {
186
- const character = currentCharacter.value;
187
- const characterLength = dist_default2(character);
188
- if (visible + characterLength <= columns) {
189
- rows[rows.length - 1] += character;
190
- } else {
191
- rows.push(character);
192
- visible = 0;
193
- }
194
- if (character === ESC || character === CSI) {
195
- isInsideEscape = true;
196
- isInsideLinkEscape = word.startsWith(ANSI_ESCAPE_LINK, rawCharacterIndex + 1);
197
- }
198
- if (isInsideEscape) {
199
- if (isInsideLinkEscape) {
200
- if (character === ANSI_ESCAPE_BELL) {
201
- isInsideEscape = false;
202
- isInsideLinkEscape = false;
203
- }
204
- } else if (character === ANSI_SGR_TERMINATOR) {
205
- isInsideEscape = false;
206
- }
207
- } else {
208
- visible += characterLength;
209
- if (visible === columns && !nextCharacter.done) {
210
- rows.push("");
211
- visible = 0;
212
- }
213
- }
214
- currentCharacter = nextCharacter;
215
- nextCharacter = characters.next();
216
- rawCharacterIndex += character.length;
217
- }
218
- lastRow = rows.at(-1);
219
- if (!visible && lastRow !== undefined && lastRow.length && rows.length > 1) {
220
- rows[rows.length - 2] += rows.pop();
221
- }
222
- };
223
- var stringVisibleTrimSpacesRight = (string) => {
224
- const words = string.split(" ");
225
- let last = words.length;
226
- while (last) {
227
- if (dist_default2(words[last - 1])) {
228
- break;
229
- }
230
- last--;
231
- }
232
- if (last === words.length) {
233
- return string;
234
- }
235
- return words.slice(0, last).join(" ") + words.slice(last).join("");
236
- };
237
- var exec = (string, columns, options = {}) => {
238
- if (options.trim !== false && string.trim() === "") {
239
- return "";
240
- }
241
- let returnValue = "";
242
- let escapeCode;
243
- let escapeUrl;
244
- const words = string.split(" ");
245
- let rows = [""];
246
- let rowLength = 0;
247
- for (let index = 0;index < words.length; index++) {
248
- const word = words[index];
249
- if (options.trim !== false) {
250
- const row = rows.at(-1) ?? "";
251
- const trimmed = row.trimStart();
252
- if (row.length !== trimmed.length) {
253
- rows[rows.length - 1] = trimmed;
254
- rowLength = dist_default2(trimmed);
255
- }
256
- }
257
- if (index !== 0) {
258
- if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
259
- rows.push("");
260
- rowLength = 0;
261
- }
262
- if (rowLength || options.trim === false) {
263
- rows[rows.length - 1] += " ";
264
- rowLength++;
265
- }
266
- }
267
- const wordLength = dist_default2(word);
268
- if (options.hard && wordLength > columns) {
269
- const remainingColumns = columns - rowLength;
270
- const breaksStartingThisLine = 1 + Math.floor((wordLength - remainingColumns - 1) / columns);
271
- const breaksStartingNextLine = Math.floor((wordLength - 1) / columns);
272
- if (breaksStartingNextLine < breaksStartingThisLine) {
273
- rows.push("");
274
- }
275
- wrapWord(rows, word, columns);
276
- rowLength = dist_default2(rows.at(-1) ?? "");
277
- continue;
278
- }
279
- if (rowLength + wordLength > columns && rowLength && wordLength) {
280
- if (options.wordWrap === false && rowLength < columns) {
281
- wrapWord(rows, word, columns);
282
- rowLength = dist_default2(rows.at(-1) ?? "");
283
- continue;
284
- }
285
- rows.push("");
286
- rowLength = 0;
287
- }
288
- if (rowLength + wordLength > columns && options.wordWrap === false) {
289
- wrapWord(rows, word, columns);
290
- rowLength = dist_default2(rows.at(-1) ?? "");
291
- continue;
292
- }
293
- rows[rows.length - 1] += word;
294
- rowLength += wordLength;
295
- }
296
- if (options.trim !== false) {
297
- rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
298
- }
299
- const preString = rows.join(`
300
- `);
301
- let inSurrogate = false;
302
- for (let i = 0;i < preString.length; i++) {
303
- const character = preString[i];
304
- returnValue += character;
305
- if (!inSurrogate) {
306
- inSurrogate = character >= "\uD800" && character <= "\uDBFF";
307
- if (inSurrogate) {
308
- continue;
309
- }
310
- } else {
311
- inSurrogate = false;
312
- }
313
- if (character === ESC || character === CSI) {
314
- GROUP_REGEX.lastIndex = i + 1;
315
- const groupsResult = GROUP_REGEX.exec(preString);
316
- const groups = groupsResult?.groups;
317
- if (groups?.code !== undefined) {
318
- const code = Number.parseFloat(groups.code);
319
- escapeCode = code === END_CODE ? undefined : code;
320
- } else if (groups?.uri !== undefined) {
321
- escapeUrl = groups.uri.length === 0 ? undefined : groups.uri;
322
- }
323
- }
324
- if (preString[i + 1] === `
325
- `) {
326
- if (escapeUrl) {
327
- returnValue += wrapAnsiHyperlink("");
328
- }
329
- const closingCode = escapeCode ? getClosingCode(escapeCode) : undefined;
330
- if (escapeCode && closingCode) {
331
- returnValue += wrapAnsiCode(closingCode);
332
- }
333
- } else if (character === `
334
- `) {
335
- if (escapeCode && getClosingCode(escapeCode)) {
336
- returnValue += wrapAnsiCode(escapeCode);
337
- }
338
- if (escapeUrl) {
339
- returnValue += wrapAnsiHyperlink(escapeUrl);
340
- }
341
- }
342
- }
343
- return returnValue;
344
- };
345
- var CRLF_OR_LF = /\r?\n/;
346
- function wrapAnsi(string, columns, options) {
347
- return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join(`
348
- `);
349
- }
350
-
351
- // node_modules/sisteransi/dist/index.js
352
- var ESC2 = "\x1B";
353
- var CSI2 = `${ESC2}[`;
354
- var cursor = {
355
- to(x, y) {
356
- if (!y)
357
- return `${CSI2}${x + 1}G`;
358
- return `${CSI2}${y + 1};${x + 1}H`;
359
- },
360
- move(x, y) {
361
- let ret = "";
362
- if (x < 0)
363
- ret += `${CSI2}${-x}D`;
364
- else if (x > 0)
365
- ret += `${CSI2}${x}C`;
366
- if (y < 0)
367
- ret += `${CSI2}${-y}A`;
368
- else if (y > 0)
369
- ret += `${CSI2}${y}B`;
370
- return ret;
371
- },
372
- up: (count = 1) => `${CSI2}${count}A`,
373
- down: (count = 1) => `${CSI2}${count}B`,
374
- forward: (count = 1) => `${CSI2}${count}C`,
375
- backward: (count = 1) => `${CSI2}${count}D`,
376
- nextLine: (count = 1) => `${CSI2}E`.repeat(count),
377
- prevLine: (count = 1) => `${CSI2}F`.repeat(count),
378
- left: `${CSI2}G`,
379
- hide: `${CSI2}?25l`,
380
- show: `${CSI2}?25h`,
381
- save: `${ESC2}7`,
382
- restore: `${ESC2}8`
383
- };
384
- var erase = {
385
- screen: `${CSI2}2J`,
386
- up: (count = 1) => `${CSI2}1J`.repeat(count),
387
- down: (count = 1) => `${CSI2}J`.repeat(count),
388
- line: `${CSI2}2K`,
389
- lineEnd: `${CSI2}K`,
390
- lineStart: `${CSI2}1K`,
391
- lines(count) {
392
- let clear = "";
393
- for (let i = 0;i < count; i++)
394
- clear += this.line + (i < count - 1 ? cursor.up() : "");
395
- if (count)
396
- clear += cursor.left;
397
- return clear;
398
- }
399
- };
400
- var clear = {
401
- screen: `${ESC2}c`
402
- };
403
-
404
- // node_modules/@clack/core/dist/index.mjs
405
- import { ReadStream } from "tty";
406
- function findCursor(o, s, l) {
407
- if (!l.some((r) => !r.disabled))
408
- return o;
409
- const t = o + s, n = Math.max(l.length - 1, 0), e = t < 0 ? n : t > n ? 0 : t;
410
- return l[e]?.disabled ? findCursor(e, s < 0 ? -1 : 1, l) : e;
411
- }
412
- function findTextCursor(o, s, l, i) {
413
- const t = i.split(`
414
- `);
415
- let n = 0, e = o;
416
- for (const r of t) {
417
- if (e <= r.length)
418
- break;
419
- e -= r.length + 1, n++;
420
- }
421
- for (n = Math.max(0, Math.min(t.length - 1, n + l)), e = Math.min(e, t[n].length) + s;e < 0 && n > 0; )
422
- n--, e += t[n].length + 1;
423
- for (;e > t[n].length && n < t.length - 1; )
424
- e -= t[n].length + 1, n++;
425
- e = Math.max(0, Math.min(t[n].length, e));
426
- let h = 0;
427
- for (let r = 0;r < n; r++)
428
- h += t[r].length + 1;
429
- return h + e;
430
- }
431
- var a$1 = ["up", "down", "left", "right", "space", "enter", "cancel"];
432
- var t = [
433
- "January",
434
- "February",
435
- "March",
436
- "April",
437
- "May",
438
- "June",
439
- "July",
440
- "August",
441
- "September",
442
- "October",
443
- "November",
444
- "December"
445
- ];
446
- var settings = {
447
- actions: new Set(a$1),
448
- aliases: /* @__PURE__ */ new Map([
449
- ["k", "up"],
450
- ["j", "down"],
451
- ["h", "left"],
452
- ["l", "right"],
453
- ["\x03", "cancel"],
454
- ["escape", "cancel"]
455
- ]),
456
- messages: {
457
- cancel: "Canceled",
458
- error: "Something went wrong"
459
- },
460
- withGuide: true,
461
- accessible: undefined,
462
- date: {
463
- monthNames: [...t],
464
- messages: {
465
- required: "Please enter a valid date",
466
- invalidMonth: "There are only 12 months in a year",
467
- invalidDay: (n, e) => `There are only ${n} days in ${e}`,
468
- afterMin: (n) => `Date must be on or after ${n.toISOString().slice(0, 10)}`,
469
- beforeMax: (n) => `Date must be on or before ${n.toISOString().slice(0, 10)}`
470
- }
471
- }
472
- };
473
- function updateSettings(n) {
474
- if (n.aliases !== undefined) {
475
- const e = n.aliases;
476
- for (const s in e) {
477
- if (!Object.hasOwn(e, s))
478
- continue;
479
- const i = e[s];
480
- i === undefined || !settings.actions.has(i) || settings.aliases.has(s) || settings.aliases.set(s, i);
481
- }
482
- }
483
- if (n.messages !== undefined) {
484
- const e = n.messages;
485
- e.cancel !== undefined && (settings.messages.cancel = e.cancel), e.error !== undefined && (settings.messages.error = e.error);
486
- }
487
- if (n.withGuide !== undefined && (settings.withGuide = n.withGuide !== false), n.accessible !== undefined && (settings.accessible = n.accessible === true), n.date !== undefined) {
488
- const e = n.date;
489
- e.monthNames !== undefined && (settings.date.monthNames = [...e.monthNames]), e.messages !== undefined && (e.messages.required !== undefined && (settings.date.messages.required = e.messages.required), e.messages.invalidMonth !== undefined && (settings.date.messages.invalidMonth = e.messages.invalidMonth), e.messages.invalidDay !== undefined && (settings.date.messages.invalidDay = e.messages.invalidDay), e.messages.afterMin !== undefined && (settings.date.messages.afterMin = e.messages.afterMin), e.messages.beforeMax !== undefined && (settings.date.messages.beforeMax = e.messages.beforeMax));
490
- }
491
- }
492
- function isAccessible(n) {
493
- if (n !== undefined)
494
- return n;
495
- if (settings.accessible !== undefined)
496
- return settings.accessible;
497
- const e = process.env.ACCESSIBLE;
498
- return e !== undefined && e !== "" && e !== "0" && e !== "false";
499
- }
500
- function isActionKey(n, e) {
501
- if (typeof n == "string")
502
- return settings.aliases.get(n) === e;
503
- for (const s of n)
504
- if (s !== undefined && isActionKey(s, e))
505
- return true;
506
- return false;
507
- }
508
- function diffLines(i, s) {
509
- if (i === s)
510
- return;
511
- const e = i.split(`
512
- `), t2 = s.split(`
513
- `), r = Math.max(e.length, t2.length), f = [];
514
- for (let n = 0;n < r; n++)
515
- e[n] !== t2[n] && f.push(n);
516
- return {
517
- lines: f,
518
- numLinesBefore: e.length,
519
- numLinesAfter: t2.length,
520
- numLines: r
521
- };
522
- }
523
- var R = globalThis.process.platform.startsWith("win");
524
- var CANCEL_SYMBOL = Symbol("clack:cancel");
525
- function isCancel(e) {
526
- return e === CANCEL_SYMBOL;
527
- }
528
- function setRawMode(e, r) {
529
- const o = e;
530
- o.isTTY && o.setRawMode(r);
531
- }
532
- function block({
533
- input: e = stdin,
534
- output: r = stdout,
535
- overwrite: o = true,
536
- hideCursor: n = true
537
- } = {}) {
538
- const s = f$1.createInterface({
539
- input: e,
540
- output: r,
541
- prompt: "",
542
- tabSize: 1
543
- });
544
- f$1.emitKeypressEvents(e, s), e instanceof ReadStream && e.isTTY && e.setRawMode(true);
545
- const t2 = (l, { name: i, sequence: p }) => {
546
- const w = String(l);
547
- if (isActionKey([w, i, p], "cancel")) {
548
- n && r.write(cursor.show), process.exit(0);
549
- return;
550
- }
551
- if (!o)
552
- return;
553
- const c = i === "return" ? 0 : -1, a = i === "return" ? -1 : 0;
554
- f$1.moveCursor(r, c, a, () => {
555
- f$1.clearLine(r, 1, () => {
556
- e.once("keypress", t2);
557
- });
558
- });
559
- };
560
- return n && r.write(cursor.hide), e.once("keypress", t2), () => {
561
- e.off("keypress", t2), n && r.write(cursor.show), e instanceof ReadStream && e.isTTY && !R && e.setRawMode(false), s.terminal = false, s.close();
562
- };
563
- }
564
- var getColumns = (e) => ("columns" in e) && typeof e.columns == "number" ? e.columns : 80;
565
- var getRows = (e) => ("rows" in e) && typeof e.rows == "number" ? e.rows : 20;
566
- function wrapTextWithPrefix(e, r, o, n = o, s = o, t2) {
567
- const l = getColumns(e ?? stdout), i = dist_default2(o);
568
- return wrapAnsi(r, l - i, {
569
- hard: true,
570
- trim: false
571
- }).split(`
572
- `).map((c, a, g) => {
573
- const m = t2 ? t2(c, a) : c;
574
- return a === 0 ? `${n}${m}` : a === g.length - 1 ? `${s}${m}` : `${o}${m}`;
575
- }).join(`
576
- `);
577
- }
578
- function runValidation(e, a) {
579
- if ("~standard" in e) {
580
- const n = e["~standard"].validate(a);
581
- return n instanceof Promise ? n.then((r) => r.issues?.at(0)?.message) : n.issues?.at(0)?.message;
582
- }
583
- return e(a);
584
- }
585
- var C$1 = class C {
586
- input;
587
- output;
588
- _abortSignal;
589
- rl;
590
- opts;
591
- _render;
592
- _track = false;
593
- _prevFrame = "";
594
- _subscribers = /* @__PURE__ */ new Map;
595
- _cursor = 0;
596
- state = "initial";
597
- error = "";
598
- value;
599
- userInput = "";
600
- get accessible() {
601
- return isAccessible(this.opts.accessible);
602
- }
603
- constructor(t2, e = true) {
604
- const { input: i = stdin, output: s = stdout, render: r, signal: n, ...o } = t2;
605
- this.opts = o, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = r.bind(this), this._track = e, this._abortSignal = n, this.input = i, this.output = s;
606
- }
607
- unsubscribe() {
608
- this._subscribers.clear();
609
- }
610
- setSubscriber(t2, e) {
611
- const i = this._subscribers.get(t2) ?? [];
612
- i.push(e), this._subscribers.set(t2, i);
613
- }
614
- on(t2, e) {
615
- this.setSubscriber(t2, { cb: e });
616
- }
617
- once(t2, e) {
618
- this.setSubscriber(t2, { cb: e, once: true });
619
- }
620
- emit(t2, ...e) {
621
- const i = this._subscribers.get(t2) ?? [], s = [];
622
- for (const r of i)
623
- r.cb(...e), r.once && s.push(() => i.splice(i.indexOf(r), 1));
624
- for (const r of s)
625
- r();
626
- }
627
- prompt() {
628
- return new Promise((t2) => {
629
- if (this._abortSignal) {
630
- if (this._abortSignal.aborted)
631
- return this.state = "cancel", this.close(), t2(CANCEL_SYMBOL);
632
- this._abortSignal.addEventListener("abort", () => {
633
- this.state = "cancel", this.close();
634
- }, { once: true });
635
- }
636
- this.rl = f__default.createInterface({
637
- input: this.input,
638
- tabSize: 2,
639
- prompt: "",
640
- escapeCodeTimeout: 50,
641
- terminal: true
642
- }), this.rl.prompt(), this.opts.initialUserInput !== undefined && this._setUserInput(this.opts.initialUserInput, true), this.input.on("keypress", this.onKeypress), setRawMode(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
643
- this.output.write(cursor.show), this.output.off("resize", this.render), setRawMode(this.input, false), t2(this.value);
644
- }), this.once("cancel", () => {
645
- this.output.write(cursor.show), this.output.off("resize", this.render), setRawMode(this.input, false), t2(CANCEL_SYMBOL);
646
- });
647
- });
648
- }
649
- _isActionKey(t2, e) {
650
- return t2 === "\t";
651
- }
652
- _shouldSubmit(t2, e) {
653
- return true;
654
- }
655
- _setValue(t2) {
656
- this.value = t2, this.emit("value", this.value);
657
- }
658
- _setUserInput(t2, e) {
659
- this.userInput = t2 ?? "", this.emit("userInput", this.userInput), e && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
660
- }
661
- _clearUserInput() {
662
- this.rl?.write(null, { ctrl: true, name: "u" }), this._setUserInput("");
663
- }
664
- async onKeypress(t2, e) {
665
- if (this.state !== "validating") {
666
- if (this._track && e.name !== "return" && (e.name && this._isActionKey(t2, e) && this.rl?.write(null, { ctrl: true, name: "h" }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), e?.name && (!this._track && settings.aliases.has(e.name) && this.emit("cursor", settings.aliases.get(e.name)), settings.actions.has(e.name) && this.emit("cursor", e.name)), t2 && (t2.toLowerCase() === "y" || t2.toLowerCase() === "n") && this.emit("confirm", t2.toLowerCase() === "y"), this.emit("key", t2, e), e?.name === "return" && this._shouldSubmit(t2, e)) {
667
- if (this.opts.validate) {
668
- const i = runValidation(this.opts.validate, this.value);
669
- let s;
670
- i instanceof Promise ? (this.state = "validating", this.render(), s = await i) : s = i, s && (this.error = s instanceof Error ? s.message : s, this.state = "error", this.rl?.write(this.userInput));
671
- }
672
- this.state !== "error" && (this.state = "submit");
673
- }
674
- isActionKey([t2, e?.name, e?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
675
- }
676
- }
677
- close() {
678
- this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
679
- `), setRawMode(this.input, false), this.rl?.close(), this.rl = undefined, this.emit(`${this.state}`, this.value), this.unsubscribe();
680
- }
681
- restoreCursor() {
682
- const t2 = wrapAnsi(this._prevFrame, getColumns(this.output), { hard: true, trim: false }).split(`
683
- `).length - 1;
684
- this.output.write(cursor.move(-999, t2 * -1));
685
- }
686
- render() {
687
- const t2 = wrapAnsi(this._render(this) ?? "", getColumns(this.output), {
688
- hard: true,
689
- trim: false
690
- });
691
- if (t2 !== this._prevFrame) {
692
- if (this.state === "initial")
693
- this.output.write(cursor.hide);
694
- else {
695
- const e = diffLines(this._prevFrame, t2), i = getRows(this.output);
696
- if (this.restoreCursor(), e) {
697
- const s = Math.max(0, e.numLinesAfter - i), r = Math.max(0, e.numLinesBefore - i);
698
- let n = e.lines.find((o) => o >= s);
699
- if (n === undefined) {
700
- this._prevFrame = t2;
701
- return;
702
- }
703
- if (e.lines.length === 1) {
704
- this.output.write(cursor.move(0, n - r)), this.output.write(erase.lines(1));
705
- const o = t2.split(`
706
- `);
707
- this.output.write(o[n]), this._prevFrame = t2, this.output.write(cursor.move(0, o.length - n - 1));
708
- return;
709
- } else if (e.lines.length > 1) {
710
- if (s < r)
711
- n = s;
712
- else {
713
- const h = n - r;
714
- h > 0 && this.output.write(cursor.move(0, h));
715
- }
716
- this.output.write(erase.down());
717
- const m = t2.split(`
718
- `).slice(n);
719
- this.output.write(m.join(`
720
- `)), this._prevFrame = t2;
721
- return;
722
- }
723
- }
724
- this.output.write(erase.down());
725
- }
726
- this.output.write(t2), this.state === "initial" && (this.state = "active"), this._prevFrame = t2;
727
- }
728
- }
729
- };
730
- function p$1(l, e) {
731
- if (l === undefined || e.length === 0)
732
- return 0;
733
- const i = e.findIndex((s) => s.value === l);
734
- return i !== -1 ? i : 0;
735
- }
736
- function m(l, e) {
737
- return (e.label ?? String(e.value)).toLowerCase().includes(l.toLowerCase());
738
- }
739
- function g(l, e) {
740
- if (e)
741
- return l ? e : e[0];
742
- }
743
- var T$1 = class T extends C$1 {
744
- filteredOptions;
745
- multiple;
746
- isNavigating = false;
747
- selectedValues = [];
748
- focusedValue;
749
- #e = 0;
750
- #s = "";
751
- #t;
752
- #i;
753
- #n;
754
- #l;
755
- get cursor() {
756
- return this.#e;
757
- }
758
- get userInputWithCursor() {
759
- if (!this.userInput)
760
- return styleText(["inverse", "hidden"], "_");
761
- if (this._cursor >= this.userInput.length)
762
- return `${this.userInput}\u2588`;
763
- const e = this.userInput.slice(0, this.cursor), t2 = this.userInput.slice(this.cursor, this.cursor + 1), i = this.userInput.slice(this.cursor + 1);
764
- return `${e}${styleText("inverse", t2)}${i}`;
765
- }
766
- get options() {
767
- return typeof this.#i == "function" ? this.#i() : this.#i;
768
- }
769
- constructor(e) {
770
- super(e), this.#i = e.options, this.#n = e.placeholder, this.#l = e.completeOnTab === true;
771
- const t2 = this.options;
772
- this.filteredOptions = [...t2], this.multiple = e.multiple === true, this.#t = typeof e.options == "function" ? e.filter : e.filter ?? m;
773
- let i;
774
- if (e.initialValue && Array.isArray(e.initialValue) ? this.multiple ? i = e.initialValue : i = e.initialValue.slice(0, 1) : !this.multiple && this.options.length > 0 && (i = [this.options[0]?.value]), i)
775
- for (const s of i) {
776
- const n = t2.findIndex((r) => r.value === s);
777
- n !== -1 && (this.toggleSelected(s), this.#e = n);
778
- }
779
- this.focusedValue = this.options[this.#e]?.value, this.on("key", (s, n) => this.#u(s, n)), this.on("userInput", (s) => this.#o(s));
780
- }
781
- _isActionKey(e, t2) {
782
- return e === "\t" || this.multiple && this.isNavigating && t2.name === "space" && e !== undefined && e !== "";
783
- }
784
- #u(e, t2) {
785
- const i = t2.name === "up", s = t2.name === "down", n = t2.name === "return", r = this.userInput === "" || this.userInput === "\t", u = this.#n, d = this.options, c = u !== undefined && u !== "" && d.some((o) => !o.disabled && (this.#t ? this.#t(u, o) : true));
786
- if (t2.name === "tab" && r && c) {
787
- this.userInput === "\t" && this._clearUserInput(), this._setUserInput(u, true), this.isNavigating = false;
788
- return;
789
- }
790
- if (t2.name === "tab" && this.#l && !this.multiple && this.focusedValue !== undefined) {
791
- const o = String(this.focusedValue);
792
- this._clearUserInput(), this._setUserInput(o, true), this.isNavigating = false;
793
- return;
794
- }
795
- i || s ? (this.#e = findCursor(this.#e, i ? -1 : 1, this.filteredOptions), this.focusedValue = this.filteredOptions[this.#e]?.value, this.multiple || (this.selectedValues = [this.focusedValue]), this.isNavigating = true) : n ? this.value = g(this.multiple, this.selectedValues) : this.multiple ? this.focusedValue !== undefined && (t2.name === "tab" || this.isNavigating && t2.name === "space") ? this.toggleSelected(this.focusedValue) : this.isNavigating = false : (this.focusedValue && (this.selectedValues = [this.focusedValue]), this.isNavigating = false);
796
- }
797
- deselectAll() {
798
- this.selectedValues = [];
799
- }
800
- toggleSelected(e) {
801
- this.filteredOptions.length !== 0 && (this.multiple ? this.selectedValues.includes(e) ? this.selectedValues = this.selectedValues.filter((t2) => t2 !== e) : this.selectedValues = [...this.selectedValues, e] : this.selectedValues = [e]);
802
- }
803
- #o(e) {
804
- if (e !== this.#s) {
805
- this.#s = e;
806
- const t2 = this.options;
807
- e && this.#t ? this.filteredOptions = t2.filter((n) => this.#t?.(e, n)) : this.filteredOptions = [...t2];
808
- const i = p$1(this.focusedValue, this.filteredOptions);
809
- this.#e = findCursor(i, 0, this.filteredOptions);
810
- const s = this.filteredOptions[this.#e];
811
- s && !s.disabled ? this.focusedValue = s.value : this.focusedValue = undefined, this.multiple || (this.focusedValue !== undefined ? this.toggleSelected(this.focusedValue) : this.deselectAll());
812
- }
813
- }
814
- };
815
-
816
- class r extends C$1 {
817
- get cursor() {
818
- return this.value ? 0 : 1;
819
- }
820
- get _value() {
821
- return this.cursor === 0;
822
- }
823
- constructor(t2) {
824
- super(t2, false), this.value = !!t2.initialValue, this.on("userInput", () => {
825
- this.value = this._value;
826
- }), this.on("confirm", (i) => {
827
- this.output.write(cursor.move(0, -1)), this.value = i, this.state = "submit", this.close();
828
- }), this.on("cursor", () => {
829
- this.value = !this.value;
830
- });
831
- }
832
- }
833
- var _ = {
834
- Y: { type: "year", len: 4 },
835
- M: { type: "month", len: 2 },
836
- D: { type: "day", len: 2 }
837
- };
838
- function M(r2) {
839
- return [...r2].map((t2) => _[t2]);
840
- }
841
- function P(r2) {
842
- const i = new Intl.DateTimeFormat(r2, {
843
- year: "numeric",
844
- month: "2-digit",
845
- day: "2-digit"
846
- }).formatToParts(new Date(2000, 0, 15)), s = [];
847
- let n = "/";
848
- for (const e of i)
849
- e.type === "literal" ? n = e.value.trim() || e.value : (e.type === "year" || e.type === "month" || e.type === "day") && s.push({ type: e.type, len: e.type === "year" ? 4 : 2 });
850
- return { segments: s, separator: n };
851
- }
852
- function p(r2) {
853
- return Number.parseInt((r2 || "0").replace(/_/g, "0"), 10) || 0;
854
- }
855
- function f(r2) {
856
- return {
857
- year: p(r2.year),
858
- month: p(r2.month),
859
- day: p(r2.day)
860
- };
861
- }
862
- function c$1(r2, t2) {
863
- return new Date(r2 || 2001, t2 || 1, 0).getDate();
864
- }
865
- function b(r2) {
866
- const { year: t2, month: i, day: s } = f(r2);
867
- if (!t2 || t2 < 0 || t2 > 9999 || !i || i < 1 || i > 12 || !s || s < 1)
868
- return;
869
- const n = new Date(Date.UTC(t2, i - 1, s));
870
- if (!(n.getUTCFullYear() !== t2 || n.getUTCMonth() !== i - 1 || n.getUTCDate() !== s))
871
- return { year: t2, month: i, day: s };
872
- }
873
- function C2(r2) {
874
- const t2 = b(r2);
875
- return t2 ? new Date(Date.UTC(t2.year, t2.month - 1, t2.day)) : undefined;
876
- }
877
- function T2(r2, t2, i, s) {
878
- const n = i ? {
879
- year: i.getUTCFullYear(),
880
- month: i.getUTCMonth() + 1,
881
- day: i.getUTCDate()
882
- } : null, e = s ? {
883
- year: s.getUTCFullYear(),
884
- month: s.getUTCMonth() + 1,
885
- day: s.getUTCDate()
886
- } : null;
887
- return r2 === "year" ? { min: n?.year ?? 1, max: e?.year ?? 9999 } : r2 === "month" ? {
888
- min: n && t2.year === n.year ? n.month : 1,
889
- max: e && t2.year === e.year ? e.month : 12
890
- } : {
891
- min: n && t2.year === n.year && t2.month === n.month ? n.day : 1,
892
- max: e && t2.year === e.year && t2.month === e.month ? e.day : c$1(t2.year, t2.month)
893
- };
894
- }
895
-
896
- class U extends C$1 {
897
- #i;
898
- #o;
899
- #t;
900
- #h;
901
- #u;
902
- #e = { segmentIndex: 0, positionInSegment: 0 };
903
- #n = true;
904
- #s = null;
905
- inlineError = "";
906
- get segmentCursor() {
907
- return { ...this.#e };
908
- }
909
- get segmentValues() {
910
- return { ...this.#t };
911
- }
912
- get segments() {
913
- return this.#i;
914
- }
915
- get separator() {
916
- return this.#o;
917
- }
918
- get formattedValue() {
919
- return this.#l(this.#t);
920
- }
921
- #l(t2) {
922
- return this.#i.map((i) => t2[i.type]).join(this.#o);
923
- }
924
- #r() {
925
- this._setUserInput(this.#l(this.#t)), this._setValue(C2(this.#t) ?? undefined);
926
- }
927
- constructor(t2) {
928
- const i = t2.format ? { segments: M(t2.format), separator: t2.separator ?? "/" } : P(t2.locale), s = t2.separator ?? i.separator, n = t2.format ? M(t2.format) : i.segments, e = t2.initialValue ?? t2.defaultValue, m2 = e ? {
929
- year: String(e.getUTCFullYear()).padStart(4, "0"),
930
- month: String(e.getUTCMonth() + 1).padStart(2, "0"),
931
- day: String(e.getUTCDate()).padStart(2, "0")
932
- } : { year: "____", month: "__", day: "__" }, o = n.map((a) => m2[a.type]).join(s);
933
- super({ ...t2, initialUserInput: o }, false), this.#i = n, this.#o = s, this.#t = m2, this.#h = t2.minDate, this.#u = t2.maxDate, this.#r(), this.on("cursor", (a) => this.#f(a)), this.on("key", (a, u) => this.#y(a, u)), this.on("finalize", () => this.#p(t2));
934
- }
935
- #a() {
936
- const t2 = Math.max(0, Math.min(this.#e.segmentIndex, this.#i.length - 1)), i = this.#i[t2];
937
- if (i)
938
- return this.#e.positionInSegment = Math.max(0, Math.min(this.#e.positionInSegment, i.len - 1)), { segment: i, index: t2 };
939
- }
940
- #m(t2) {
941
- this.inlineError = "", this.#s = null;
942
- const i = this.#a();
943
- i && (this.#e.segmentIndex = Math.max(0, Math.min(this.#i.length - 1, i.index + t2)), this.#e.positionInSegment = 0, this.#n = true);
944
- }
945
- #d(t2) {
946
- const i = this.#a();
947
- if (!i)
948
- return;
949
- const { segment: s } = i, n = this.#t[s.type], e = !n || n.replace(/_/g, "") === "", m2 = Number.parseInt((n || "0").replace(/_/g, "0"), 10) || 0, o = T2(s.type, f(this.#t), this.#h, this.#u);
950
- let a;
951
- e ? a = t2 === 1 ? o.min : o.max : a = Math.max(Math.min(o.max, m2 + t2), o.min), this.#t = {
952
- ...this.#t,
953
- [s.type]: a.toString().padStart(s.len, "0")
954
- }, this.#n = true, this.#s = null, this.#r();
955
- }
956
- #f(t2) {
957
- if (t2)
958
- switch (t2) {
959
- case "right":
960
- return this.#m(1);
961
- case "left":
962
- return this.#m(-1);
963
- case "up":
964
- return this.#d(1);
965
- case "down":
966
- return this.#d(-1);
967
- }
968
- }
969
- #y(t2, i) {
970
- if (i?.name === "backspace" || i?.sequence === "\x7F" || i?.sequence === "\b" || t2 === "\x7F" || t2 === "\b") {
971
- this.inlineError = "";
972
- const n = this.#a();
973
- if (!n)
974
- return;
975
- if (!this.#t[n.segment.type].replace(/_/g, "")) {
976
- this.#m(-1);
977
- return;
978
- }
979
- this.#t[n.segment.type] = "_".repeat(n.segment.len), this.#n = true, this.#e.positionInSegment = 0, this.#r();
980
- return;
981
- }
982
- if (i?.name === "tab") {
983
- this.inlineError = "";
984
- const n = this.#a();
985
- if (!n)
986
- return;
987
- const e = i.shift ? -1 : 1, m2 = n.index + e;
988
- m2 >= 0 && m2 < this.#i.length && (this.#e.segmentIndex = m2, this.#e.positionInSegment = 0, this.#n = true);
989
- return;
990
- }
991
- if (t2 && /^[0-9]$/.test(t2)) {
992
- const n = this.#a();
993
- if (!n)
994
- return;
995
- const { segment: e } = n, m2 = !this.#t[e.type].replace(/_/g, "");
996
- if (this.#n && this.#s !== null && !m2) {
997
- const h = this.#s + t2, d = { ...this.#t, [e.type]: h }, g2 = this.#g(d, e);
998
- if (g2) {
999
- this.inlineError = g2, this.#s = null, this.#n = false;
1000
- return;
1001
- }
1002
- this.inlineError = "", this.#t[e.type] = h, this.#s = null, this.#n = false, this.#r(), n.index < this.#i.length - 1 && (this.#e.segmentIndex = n.index + 1, this.#e.positionInSegment = 0, this.#n = true);
1003
- return;
1004
- }
1005
- this.#n && !m2 && (this.#t[e.type] = "_".repeat(e.len), this.#e.positionInSegment = 0), this.#n = false, this.#s = null;
1006
- const o = this.#t[e.type], a = o.indexOf("_"), u = a >= 0 ? a : Math.min(this.#e.positionInSegment, e.len - 1);
1007
- if (u < 0 || u >= e.len)
1008
- return;
1009
- let l = o.slice(0, u) + t2 + o.slice(u + 1), D = false;
1010
- if (u === 0 && o === "__" && (e.type === "month" || e.type === "day")) {
1011
- const h = Number.parseInt(t2, 10);
1012
- l = `0${t2}`, D = h <= (e.type === "month" ? 1 : 2);
1013
- }
1014
- if (e.type === "year" && (l = (o.replace(/_/g, "") + t2).padStart(e.len, "_")), !l.includes("_")) {
1015
- const h = { ...this.#t, [e.type]: l }, d = this.#g(h, e);
1016
- if (d) {
1017
- this.inlineError = d;
1018
- return;
1019
- }
1020
- }
1021
- this.inlineError = "", this.#t[e.type] = l;
1022
- const y = l.includes("_") ? undefined : b(this.#t);
1023
- if (y) {
1024
- const { year: h, month: d } = y, g2 = c$1(h, d);
1025
- this.#t = {
1026
- year: String(Math.max(0, Math.min(9999, h))).padStart(4, "0"),
1027
- month: String(Math.max(1, Math.min(12, d))).padStart(2, "0"),
1028
- day: String(Math.max(1, Math.min(g2, y.day))).padStart(2, "0")
1029
- };
1030
- }
1031
- this.#r();
1032
- const S = l.indexOf("_");
1033
- D ? (this.#n = true, this.#s = t2) : S >= 0 ? this.#e.positionInSegment = S : a >= 0 && n.index < this.#i.length - 1 ? (this.#e.segmentIndex = n.index + 1, this.#e.positionInSegment = 0, this.#n = true) : this.#e.positionInSegment = Math.min(u + 1, e.len - 1);
1034
- }
1035
- }
1036
- #g(t2, i) {
1037
- const { month: s, day: n } = f(t2);
1038
- if (i.type === "month" && (s < 0 || s > 12))
1039
- return settings.date.messages.invalidMonth;
1040
- if (i.type === "day" && (n < 0 || n > 31))
1041
- return settings.date.messages.invalidDay(31, "any month");
1042
- }
1043
- #p(t2) {
1044
- const { year: i, month: s, day: n } = f(this.#t);
1045
- if (i && s && n) {
1046
- const e = c$1(i, s);
1047
- this.#t = {
1048
- ...this.#t,
1049
- day: String(Math.min(n, e)).padStart(2, "0")
1050
- };
1051
- }
1052
- this.value = C2(this.#t) ?? t2.defaultValue ?? undefined;
1053
- }
1054
- }
1055
- var u$1 = class u extends C$1 {
1056
- options;
1057
- cursor = 0;
1058
- #e;
1059
- getGroupItems(t2) {
1060
- return this.options.filter((i) => i.group === t2);
1061
- }
1062
- isGroupSelected(t2) {
1063
- const i = this.getGroupItems(t2), e = this.value;
1064
- return e === undefined ? false : i.every((s) => e.includes(s.value));
1065
- }
1066
- toggleValue() {
1067
- const t2 = this.options[this.cursor];
1068
- if (t2 !== undefined)
1069
- if (this.value === undefined && (this.value = []), t2.group === true) {
1070
- const i = t2.value, e = this.getGroupItems(i);
1071
- this.isGroupSelected(i) ? this.value = this.value.filter((s) => e.findIndex((r2) => r2.value === s) === -1) : this.value = [...this.value, ...e.map((s) => s.value)], this.value = Array.from(new Set(this.value));
1072
- } else {
1073
- const i = this.value.includes(t2.value);
1074
- this.value = i ? this.value.filter((e) => e !== t2.value) : [...this.value, t2.value];
1075
- }
1076
- }
1077
- constructor(t2) {
1078
- super(t2, false);
1079
- const { options: i } = t2;
1080
- this.#e = t2.selectableGroups !== false, this.options = Object.entries(i).flatMap(([e, s]) => [
1081
- { value: e, group: true, label: e },
1082
- ...s.map((r2) => ({ ...r2, group: e }))
1083
- ]), this.value = [...t2.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: e }) => e === t2.cursorAt), this.#e ? 0 : 1), this.on("key", (e, s) => {
1084
- s.name === undefined && e === "\u3000" && this.toggleValue();
1085
- }), this.on("cursor", (e) => {
1086
- switch (e) {
1087
- case "left":
1088
- case "up": {
1089
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
1090
- const s = this.options[this.cursor]?.group === true;
1091
- !this.#e && s && (this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1);
1092
- break;
1093
- }
1094
- case "down":
1095
- case "right": {
1096
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
1097
- const s = this.options[this.cursor]?.group === true;
1098
- !this.#e && s && (this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1);
1099
- break;
1100
- }
1101
- case "space":
1102
- this.toggleValue();
1103
- break;
1104
- }
1105
- });
1106
- }
1107
- };
1108
- var o = /* @__PURE__ */ new Set(["up", "down", "left", "right"]);
1109
-
1110
- class h extends C$1 {
1111
- #t = false;
1112
- #s;
1113
- focused = "editor";
1114
- get userInputWithCursor() {
1115
- if (this.state === "submit")
1116
- return this.userInput;
1117
- const t2 = this.userInput;
1118
- if (this.cursor >= t2.length)
1119
- return `${t2}\u2588`;
1120
- const s = t2.slice(0, this.cursor), r2 = t2.slice(this.cursor, this.cursor + 1), i = t2.slice(this.cursor + 1);
1121
- return r2 === `
1122
- ` ? `${s}\u2588
1123
- ${i}` : `${s}${styleText("inverse", r2)}${i}`;
1124
- }
1125
- get cursor() {
1126
- return this._cursor;
1127
- }
1128
- #r(t2) {
1129
- if (this.userInput.length === 0) {
1130
- this._setUserInput(t2);
1131
- return;
1132
- }
1133
- this._setUserInput(this.userInput.slice(0, this.cursor) + t2 + this.userInput.slice(this.cursor));
1134
- }
1135
- #i(t2) {
1136
- const s = this.value ?? "";
1137
- switch (t2) {
1138
- case "up":
1139
- this._cursor = findTextCursor(this._cursor, 0, -1, s);
1140
- return;
1141
- case "down":
1142
- this._cursor = findTextCursor(this._cursor, 0, 1, s);
1143
- return;
1144
- case "left":
1145
- this._cursor = findTextCursor(this._cursor, -1, 0, s);
1146
- return;
1147
- case "right":
1148
- this._cursor = findTextCursor(this._cursor, 1, 0, s);
1149
- return;
1150
- }
1151
- }
1152
- _shouldSubmit(t2, s) {
1153
- if (this.#s)
1154
- return this.focused === "submit" ? true : (this.#r(`
1155
- `), this._cursor++, false);
1156
- const r2 = this.#t;
1157
- return this.#t = true, r2 && this.cursor === this.userInput.length ? (this.userInput[this.cursor - 1] === `
1158
- ` && (this._setUserInput(this.userInput.slice(0, this.cursor - 1) + this.userInput.slice(this.cursor)), this._cursor--), true) : (this.#r(`
1159
- `), this._cursor++, false);
1160
- }
1161
- constructor(t2) {
1162
- const s = t2.initialUserInput ?? t2.initialValue;
1163
- super({
1164
- ...t2,
1165
- initialUserInput: s
1166
- }, false), s !== undefined && (this._cursor = s.length), this.#s = t2.showSubmit ?? false, this.on("key", (r2, i) => {
1167
- if (i?.name && o.has(i.name)) {
1168
- this.#t = false, this.#i(i.name);
1169
- return;
1170
- }
1171
- if (r2 === "\t" && this.#s) {
1172
- this.focused = this.focused === "editor" ? "submit" : "editor";
1173
- return;
1174
- }
1175
- if (i?.name !== "return") {
1176
- if (this.#t = false, i?.name === "backspace" && this.cursor > 0) {
1177
- this._setUserInput(this.userInput.slice(0, this.cursor - 1) + this.userInput.slice(this.cursor)), this._cursor--;
1178
- return;
1179
- }
1180
- if (i?.name === "delete" && this.cursor < this.userInput.length) {
1181
- this._setUserInput(this.userInput.slice(0, this.cursor) + this.userInput.slice(this.cursor + 1));
1182
- return;
1183
- }
1184
- r2 && (this.#s && this.focused === "submit" && (this.focused = "editor"), this.#r(r2 ?? ""), this._cursor++);
1185
- }
1186
- }), this.on("userInput", (r2) => {
1187
- this._setValue(r2);
1188
- }), this.on("finalize", () => {
1189
- this.value || (this.value = t2.defaultValue), this.value === undefined && (this.value = "");
1190
- });
1191
- }
1192
- }
1193
-
1194
- class a extends C$1 {
1195
- options;
1196
- cursor = 0;
1197
- get _value() {
1198
- return this.options[this.cursor]?.value;
1199
- }
1200
- get _enabledOptions() {
1201
- return this.options.filter((e) => e.disabled !== true);
1202
- }
1203
- toggleAll() {
1204
- const e = this._enabledOptions, i = this.value !== undefined && this.value.length === e.length;
1205
- this.value = i ? [] : e.map((t2) => t2.value);
1206
- }
1207
- toggleInvert() {
1208
- const e = this.value;
1209
- if (!e)
1210
- return;
1211
- const i = this._enabledOptions.filter((t2) => !e.includes(t2.value));
1212
- this.value = i.map((t2) => t2.value);
1213
- }
1214
- toggleValue() {
1215
- this.value === undefined && (this.value = []);
1216
- const e = this.value.includes(this._value);
1217
- this.value = e ? this.value.filter((i) => i !== this._value) : [...this.value, this._value];
1218
- }
1219
- constructor(e) {
1220
- super(e, false), this.options = e.options, this.value = [...e.initialValues ?? []];
1221
- const i = Math.max(this.options.findIndex(({ value: t2 }) => t2 === e.cursorAt), 0);
1222
- this.cursor = this.options[i]?.disabled ? findCursor(i, 1, this.options) : i, this.on("key", (t2, s) => {
1223
- s.name === "a" && this.toggleAll(), s.name === "i" && this.toggleInvert(), s.name === undefined && t2 === "\u3000" && this.toggleValue();
1224
- }), this.on("cursor", (t2) => {
1225
- switch (t2) {
1226
- case "left":
1227
- case "up":
1228
- this.cursor = findCursor(this.cursor, -1, this.options);
1229
- break;
1230
- case "down":
1231
- case "right":
1232
- this.cursor = findCursor(this.cursor, 1, this.options);
1233
- break;
1234
- case "space":
1235
- this.toggleValue();
1236
- break;
1237
- }
1238
- });
1239
- }
1240
- }
1241
-
1242
- class u2 extends C$1 {
1243
- _mask = "\u2022";
1244
- get cursor() {
1245
- return this._cursor;
1246
- }
1247
- get masked() {
1248
- return this.userInput.replaceAll(/./g, this._mask);
1249
- }
1250
- get userInputWithCursor() {
1251
- if (this.state === "submit" || this.state === "cancel")
1252
- return this.masked;
1253
- const t2 = this.userInput;
1254
- if (this.cursor >= t2.length)
1255
- return `${this.masked}${styleText(["inverse", "hidden"], "_")}`;
1256
- const s = this.masked, r2 = s.slice(0, this.cursor), i = s.slice(this.cursor, this.cursor + 1), o2 = s.slice(this.cursor + 1);
1257
- return `${r2}${styleText("inverse", i)}${o2}`;
1258
- }
1259
- clear() {
1260
- this._clearUserInput();
1261
- }
1262
- constructor({ mask: t2, ...s }) {
1263
- super(s), this._mask = t2 ?? "\u2022", this.on("userInput", (r2) => {
1264
- this._setValue(r2);
1265
- }), this.on("finalize", () => {
1266
- this.value === undefined && (this.value = "");
1267
- });
1268
- }
1269
- }
1270
- var n$1 = class n extends C$1 {
1271
- options;
1272
- cursor = 0;
1273
- get _selectedValue() {
1274
- return this.options[this.cursor];
1275
- }
1276
- changeValue() {
1277
- const e = this._selectedValue;
1278
- this.value = e === undefined ? undefined : e.value;
1279
- }
1280
- constructor(e) {
1281
- super(e, false), this.options = e.options;
1282
- const o2 = this.options.findIndex(({ value: s }) => s === e.initialValue), t2 = o2 === -1 ? 0 : o2;
1283
- this.cursor = this.options[t2]?.disabled ? findCursor(t2, 1, this.options) : t2, this.changeValue(), this.on("cursor", (s) => {
1284
- switch (s) {
1285
- case "left":
1286
- case "up":
1287
- this.cursor = findCursor(this.cursor, -1, this.options);
1288
- break;
1289
- case "down":
1290
- case "right":
1291
- this.cursor = findCursor(this.cursor, 1, this.options);
1292
- break;
1293
- }
1294
- this.changeValue();
1295
- });
1296
- }
1297
- };
1298
-
1299
- class c extends C$1 {
1300
- options;
1301
- cursor = 0;
1302
- constructor(t2) {
1303
- super(t2, false), this.options = t2.options;
1304
- const s = t2.caseSensitive === true, i = this.options.map(({ value: [e] }) => s ? e : e?.toLowerCase()), n2 = Math.max(i.indexOf(t2.initialValue), 0);
1305
- this.cursor = this.options[n2]?.disabled ? 0 : n2, this.on("key", (e) => {
1306
- if (!e)
1307
- return;
1308
- const o2 = s ? e : e.toLowerCase();
1309
- if (!i.includes(o2))
1310
- return;
1311
- const r2 = this.options.find(({ value: [a2], disabled: u3 }) => u3 ? false : s ? a2 === o2 : a2?.toLowerCase() === o2);
1312
- r2 && (this.value = r2.value, this.state = "submit", this.emit("submit"));
1313
- });
1314
- }
1315
- }
1316
-
1317
- class n2 extends C$1 {
1318
- get userInputWithCursor() {
1319
- if (this.state === "submit")
1320
- return this.userInput;
1321
- const t2 = this.userInput;
1322
- if (this.cursor >= t2.length)
1323
- return `${this.userInput}\u2588`;
1324
- const r2 = t2.slice(0, this.cursor), s = t2.slice(this.cursor, this.cursor + 1), e = t2.slice(this.cursor + 1);
1325
- return `${r2}${styleText("inverse", s)}${e}`;
1326
- }
1327
- get cursor() {
1328
- return this._cursor;
1329
- }
1330
- constructor(t2) {
1331
- super({
1332
- ...t2,
1333
- initialUserInput: t2.initialUserInput ?? t2.initialValue
1334
- }), this.on("userInput", (r2) => {
1335
- this._setValue(r2);
1336
- }), this.on("finalize", () => {
1337
- this.value || (this.value = t2.defaultValue), this.value === undefined && (this.value = "");
1338
- });
1339
- }
1340
- }
1341
-
1342
- // node_modules/@clack/prompts/dist/index.mjs
1343
- import { styleText as styleText2, stripVTControlCharacters } from "util";
1344
- import process$1 from "process";
1345
- import { existsSync, lstatSync, readdirSync } from "fs";
1346
- import { dirname, join } from "path";
1347
- function isUnicodeSupported() {
1348
- if (process$1.platform !== "win32") {
1349
- return process$1.env.TERM !== "linux";
1350
- }
1351
- return Boolean(process$1.env.CI) || Boolean(process$1.env.WT_SESSION) || Boolean(process$1.env.TERMINUS_SUBLIME) || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1352
- }
1353
- var unicode = isUnicodeSupported();
1354
- var isCI = () => process.env.CI === "true";
1355
- var isTTY = (e) => e.isTTY === true;
1356
- var unicodeOr = (e, o2) => unicode ? e : o2;
1357
- var S_STEP_ACTIVE = unicodeOr("\u25C6", "*");
1358
- var S_STEP_CANCEL = unicodeOr("\u25A0", "x");
1359
- var S_STEP_ERROR = unicodeOr("\u25B2", "x");
1360
- var S_STEP_SUBMIT = unicodeOr("\u25C7", "o");
1361
- var S_BAR_START = unicodeOr("\u250C", "T");
1362
- var S_BAR = unicodeOr("\u2502", "|");
1363
- var S_BAR_END = unicodeOr("\u2514", "\u2014");
1364
- var S_BAR_START_RIGHT = unicodeOr("\u2510", "T");
1365
- var S_BAR_END_RIGHT = unicodeOr("\u2518", "\u2014");
1366
- var S_RADIO_ACTIVE = unicodeOr("\u25CF", ">");
1367
- var S_RADIO_INACTIVE = unicodeOr("\u25CB", " ");
1368
- var S_CHECKBOX_ACTIVE = unicodeOr("\u25FB", "[\u2022]");
1369
- var S_CHECKBOX_SELECTED = unicodeOr("\u25FC", "[+]");
1370
- var S_CHECKBOX_INACTIVE = unicodeOr("\u25FB", "[ ]");
1371
- var S_PASSWORD_MASK = unicodeOr("\u25AA", "\u2022");
1372
- var S_BAR_H = unicodeOr("\u2500", "-");
1373
- var S_CORNER_TOP_RIGHT = unicodeOr("\u256E", "+");
1374
- var S_CONNECT_LEFT = unicodeOr("\u251C", "+");
1375
- var S_CORNER_BOTTOM_RIGHT = unicodeOr("\u256F", "+");
1376
- var S_CORNER_BOTTOM_LEFT = unicodeOr("\u2570", "+");
1377
- var S_CORNER_TOP_LEFT = unicodeOr("\u256D", "+");
1378
- var S_INFO = unicodeOr("\u25CF", "\u2022");
1379
- var S_SUCCESS = unicodeOr("\u25C6", "*");
1380
- var S_WARN = unicodeOr("\u25B2", "!");
1381
- var S_ERROR = unicodeOr("\u25A0", "x");
1382
- var symbol = (e) => {
1383
- switch (e) {
1384
- case "initial":
1385
- case "active":
1386
- return styleText2("cyan", S_STEP_ACTIVE);
1387
- case "cancel":
1388
- return styleText2("red", S_STEP_CANCEL);
1389
- case "error":
1390
- return styleText2("yellow", S_STEP_ERROR);
1391
- case "submit":
1392
- return styleText2("green", S_STEP_SUBMIT);
1393
- case "validating":
1394
- return styleText2("dim", S_STEP_ACTIVE);
1395
- }
1396
- };
1397
- var symbolBar = (e) => {
1398
- switch (e) {
1399
- case "initial":
1400
- case "active":
1401
- return styleText2("cyan", S_BAR);
1402
- case "cancel":
1403
- return styleText2("red", S_BAR);
1404
- case "error":
1405
- return styleText2("yellow", S_BAR);
1406
- case "submit":
1407
- return styleText2("green", S_BAR);
1408
- }
1409
- };
1410
- function formatInstructionFooter(e, o2, r2) {
1411
- const s = r2 ? `${styleText2("cyan", S_BAR)} ` : "", n3 = wrapTextWithPrefix(e, o2.join(" \u2022 "), s).split(`
1412
- `);
1413
- return r2 && n3.push(styleText2("cyan", S_BAR_END)), n3;
1414
- }
1415
- var E$1 = (l, e, w, p2, b2, C3 = false) => {
1416
- let r2 = e, O = 0;
1417
- if (C3)
1418
- for (let i = p2 - 1;i >= w; i--) {
1419
- const m2 = l[i];
1420
- if (m2 && (r2 -= m2.length), O++, r2 <= b2)
1421
- break;
1422
- }
1423
- else
1424
- for (let i = w;i < p2; i++) {
1425
- const m2 = l[i];
1426
- if (m2 && (r2 -= m2.length), O++, r2 <= b2)
1427
- break;
1428
- }
1429
- return { lineCount: r2, removals: O };
1430
- };
1431
- var limitOptions = ({
1432
- cursor: l,
1433
- options: e,
1434
- style: w,
1435
- output: p2 = process.stdout,
1436
- maxItems: b2 = Number.POSITIVE_INFINITY,
1437
- columnPadding: C3 = 0,
1438
- rowPadding: r2 = 4
1439
- }) => {
1440
- const i = getColumns(p2) - C3, m2 = getRows(p2), M2 = styleText2("dim", "..."), v = Math.max(m2 - r2, 0), a2 = Math.max(Math.min(b2, v), 5);
1441
- let f2 = 0;
1442
- l >= a2 - 3 && (f2 = Math.max(Math.min(l - a2 + 3, e.length - a2), 0));
1443
- let d = a2 < e.length && f2 > 0, c2 = a2 < e.length && f2 + a2 < e.length;
1444
- const I = Math.min(f2 + a2, e.length), s = [];
1445
- let g2 = 0;
1446
- d && g2++, c2 && g2++;
1447
- const T3 = f2 + (d ? 1 : 0), W = I - (c2 ? 1 : 0);
1448
- for (let t2 = T3;t2 < W; t2++) {
1449
- const n3 = e[t2], o2 = n3 !== undefined ? w(n3, t2 === l) : "", h2 = wrapAnsi(o2, i, {
1450
- hard: true,
1451
- trim: false
1452
- }).split(`
1453
- `);
1454
- s.push(h2), g2 += h2.length;
1455
- }
1456
- if (g2 > v) {
1457
- let t2 = 0, n3 = 0, o2 = g2;
1458
- const h2 = l - T3;
1459
- let u3 = v;
1460
- const L = () => E$1(s, o2, 0, h2, u3), y = () => E$1(s, o2, h2 + 1, s.length, u3, true);
1461
- d ? ({ lineCount: o2, removals: t2 } = L(), o2 > u3 && (c2 || (u3 -= 1), { lineCount: o2, removals: n3 } = y())) : (c2 || (u3 -= 1), { lineCount: o2, removals: n3 } = y(), o2 > u3 && (u3 -= 1, { lineCount: o2, removals: t2 } = L())), t2 > 0 && (d = true, s.splice(0, t2)), n3 > 0 && (c2 = true, s.splice(s.length - n3, n3));
1462
- }
1463
- const x = [];
1464
- d && x.push(M2);
1465
- for (const t2 of s)
1466
- for (const n3 of t2)
1467
- x.push(n3);
1468
- return c2 && x.push(M2), x;
1469
- };
1470
- function E(t2) {
1471
- return t2.label ?? String(t2.value ?? "");
1472
- }
1473
- function P2(t2, c2) {
1474
- if (!t2)
1475
- return true;
1476
- const n3 = (c2.label ?? String(c2.value ?? "")).toLowerCase(), i = (c2.hint ?? "").toLowerCase(), r2 = String(c2.value).toLowerCase(), o2 = t2.toLowerCase();
1477
- return n3.includes(o2) || i.includes(o2) || r2.includes(o2);
1478
- }
1479
- function j(t2, c2) {
1480
- const n3 = [];
1481
- for (const i of c2)
1482
- t2.includes(i.value) && n3.push(i);
1483
- return n3;
1484
- }
1485
- var autocomplete = (t2) => new T$1({
1486
- options: t2.options,
1487
- initialValue: t2.initialValue !== undefined ? [t2.initialValue] : undefined,
1488
- initialUserInput: t2.initialUserInput,
1489
- placeholder: t2.placeholder,
1490
- completeOnTab: t2.completeOnTab,
1491
- filter: t2.filter ?? ((n3, i) => P2(n3, i)),
1492
- signal: t2.signal,
1493
- input: t2.input,
1494
- output: t2.output,
1495
- validate: t2.validate,
1496
- render() {
1497
- const n3 = t2.withGuide ?? settings.withGuide, i = n3 ? [`${styleText2("gray", S_BAR)}`, `${symbol(this.state)} ${t2.message}`] : [`${symbol(this.state)} ${t2.message}`], r2 = this.userInput, o2 = this.options, m2 = t2.placeholder, p2 = r2 === "" && m2 !== undefined, $ = (l, s) => {
1498
- const a2 = E(l), u3 = l.hint && l.value === this.focusedValue ? styleText2("dim", ` (${l.hint})`) : "";
1499
- switch (s) {
1500
- case "active":
1501
- return `${styleText2("green", S_RADIO_ACTIVE)} ${a2}${u3}`;
1502
- case "inactive":
1503
- return `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", a2)}`;
1504
- case "disabled":
1505
- return `${styleText2("gray", S_RADIO_INACTIVE)} ${styleText2(["strikethrough", "gray"], a2)}`;
1506
- }
1507
- };
1508
- switch (this.state) {
1509
- case "submit": {
1510
- const l = j(this.selectedValues, o2), s = l.length > 0 ? ` ${styleText2("dim", l.map(E).join(", "))}` : "", a2 = n3 ? styleText2("gray", S_BAR) : "";
1511
- return `${i.join(`
1512
- `)}
1513
- ${a2}${s}`;
1514
- }
1515
- case "cancel": {
1516
- const l = r2 ? ` ${styleText2(["strikethrough", "dim"], r2)}` : "", s = n3 ? styleText2("gray", S_BAR) : "";
1517
- return `${i.join(`
1518
- `)}
1519
- ${s}${l}`;
1520
- }
1521
- default: {
1522
- const l = this.state === "error" ? "yellow" : "cyan", s = n3 ? `${styleText2(l, S_BAR)} ` : "", a2 = n3 ? styleText2(l, S_BAR_END) : "";
1523
- let u3 = "";
1524
- if (this.isNavigating || p2) {
1525
- const d = p2 ? m2 : r2;
1526
- u3 = d !== "" ? ` ${styleText2("dim", d)}` : "";
1527
- } else
1528
- u3 = ` ${this.userInputWithCursor}`;
1529
- const V = this.filteredOptions.length !== o2.length ? styleText2("dim", ` (${this.filteredOptions.length} match${this.filteredOptions.length === 1 ? "" : "es"})`) : "", b2 = this.filteredOptions.length === 0 && r2 ? [`${s}${styleText2("yellow", "No matches found")}`] : [], y = this.state === "error" ? [`${s}${styleText2("yellow", this.error)}`] : [];
1530
- n3 && i.push(`${s.trimEnd()}`), i.push(`${s}${styleText2("dim", "Search:")}${u3}${V}`, ...b2, ...y);
1531
- const S = [
1532
- `${styleText2("dim", "\u2191/\u2193")} to select`,
1533
- ...t2.completeOnTab ? [`${styleText2("dim", "Tab:")} complete`] : [],
1534
- `${styleText2("dim", "Enter:")} confirm`,
1535
- `${styleText2("dim", "Type:")} to search`
1536
- ], g2 = [`${s}${S.join(" \u2022 ")}`, a2], O = this.filteredOptions.length === 0 ? [] : limitOptions({
1537
- cursor: this.cursor,
1538
- options: this.filteredOptions,
1539
- columnPadding: n3 ? 3 : 0,
1540
- rowPadding: i.length + g2.length,
1541
- style: (d, f2) => $(d, d.disabled ? "disabled" : f2 ? "active" : "inactive"),
1542
- maxItems: t2.maxItems,
1543
- output: t2.output
1544
- });
1545
- return [
1546
- ...i,
1547
- ...O.map((d) => `${s}${d}`),
1548
- ...g2
1549
- ].join(`
1550
- `);
1551
- }
1552
- }
1553
- }
1554
- }).prompt();
1555
- var autocompleteMultiselect = (t2) => {
1556
- const c2 = (i, r2, o2, m2) => {
1557
- const p2 = o2.includes(i.value), $ = i.label ?? String(i.value ?? ""), l = i.hint && m2 !== undefined && i.value === m2 ? styleText2("dim", ` (${i.hint})`) : "", s = p2 ? styleText2("green", S_CHECKBOX_SELECTED) : styleText2("dim", S_CHECKBOX_INACTIVE);
1558
- return i.disabled ? `${styleText2("gray", S_CHECKBOX_INACTIVE)} ${styleText2(["strikethrough", "gray"], $)}` : r2 ? `${s} ${$}${l}` : `${s} ${styleText2("dim", $)}`;
1559
- }, n3 = new T$1({
1560
- options: t2.options,
1561
- multiple: true,
1562
- placeholder: t2.placeholder,
1563
- filter: t2.filter ?? ((i, r2) => P2(i, r2)),
1564
- validate: () => {
1565
- if (t2.required && n3.selectedValues.length === 0)
1566
- return "Please select at least one item";
1567
- },
1568
- initialValue: t2.initialValues,
1569
- signal: t2.signal,
1570
- input: t2.input,
1571
- output: t2.output,
1572
- render() {
1573
- const i = t2.withGuide ?? settings.withGuide, r2 = `${i ? `${styleText2("gray", S_BAR)}
1574
- ` : ""}${symbol(this.state)} ${t2.message}
1575
- `, o2 = this.userInput, m2 = t2.placeholder, p2 = o2 === "" && m2 !== undefined, $ = this.isNavigating || p2 ? styleText2("dim", p2 ? m2 : o2) : this.userInputWithCursor, l = this.options, s = this.filteredOptions.length !== l.length ? styleText2("dim", ` (${this.filteredOptions.length} match${this.filteredOptions.length === 1 ? "" : "es"})`) : "";
1576
- switch (this.state) {
1577
- case "submit":
1578
- return `${r2}${i ? `${styleText2("gray", S_BAR)} ` : ""}${styleText2("dim", `${this.selectedValues.length} items selected`)}`;
1579
- case "cancel":
1580
- return `${r2}${i ? `${styleText2("gray", S_BAR)} ` : ""}${styleText2(["strikethrough", "dim"], o2)}`;
1581
- default: {
1582
- const a2 = this.state === "error" ? "yellow" : "cyan", u3 = i ? `${styleText2(a2, S_BAR)} ` : "", V = i ? styleText2(a2, S_BAR_END) : "", b2 = [
1583
- `${styleText2("dim", "\u2191/\u2193")} to navigate`,
1584
- `${styleText2("dim", this.isNavigating ? "Space/Tab:" : "Tab:")} select`,
1585
- `${styleText2("dim", "Enter:")} confirm`,
1586
- `${styleText2("dim", "Type:")} to search`
1587
- ], y = this.filteredOptions.length === 0 && o2 ? [`${u3}${styleText2("yellow", "No matches found")}`] : [], S = this.state === "error" ? [`${u3}${styleText2("yellow", this.error)}`] : [], g2 = [
1588
- ...`${r2}${i ? styleText2(a2, S_BAR) : ""}`.split(`
1589
- `),
1590
- `${u3}${styleText2("dim", "Search:")} ${$}${s}`,
1591
- ...y,
1592
- ...S
1593
- ], O = [`${u3}${b2.join(" \u2022 ")}`, V], d = limitOptions({
1594
- cursor: this.cursor,
1595
- options: this.filteredOptions,
1596
- style: (f2, L) => c2(f2, L, this.selectedValues, this.focusedValue),
1597
- maxItems: t2.maxItems,
1598
- output: t2.output,
1599
- rowPadding: g2.length + O.length
1600
- });
1601
- return [
1602
- ...g2,
1603
- ...d.map((f2) => `${u3}${f2}`),
1604
- ...O
1605
- ].join(`
1606
- `);
1607
- }
1608
- }
1609
- }
1610
- });
1611
- return n3.prompt();
1612
- };
1613
- var K = [
1614
- S_CORNER_TOP_LEFT,
1615
- S_CORNER_TOP_RIGHT,
1616
- S_CORNER_BOTTOM_LEFT,
1617
- S_CORNER_BOTTOM_RIGHT
1618
- ];
1619
- var Q = [S_BAR_START, S_BAR_START_RIGHT, S_BAR_END, S_BAR_END_RIGHT];
1620
- function A$1(n3, e, t2, o2) {
1621
- let i = t2, f2 = t2;
1622
- return o2 === "center" ? i = Math.floor((e - n3) / 2) : o2 === "right" && (i = e - n3 - t2), f2 = e - i - n3, [i, f2];
1623
- }
1624
- var U2 = (n3) => n3;
1625
- var box = (n3 = "", e = "", t2) => {
1626
- const o2 = t2?.output ?? process.stdout, i = getColumns(o2), R2 = 1 * 2, u3 = t2?.titlePadding ?? 1, h2 = t2?.contentPadding ?? 2, w = t2?.width === undefined || t2.width === "auto" ? 1 : Math.min(1, t2.width), m2 = t2?.withGuide ?? settings.withGuide ? `${styleText2("gray", S_BAR)} ` : "", b2 = t2?.formatBorder ?? U2, a2 = ((t2?.rounded) ? K : Q).map(b2), _2 = b2(S_BAR_H), p2 = b2(S_BAR), x = dist_default2(m2), B = dist_default2(e), y = i - x;
1627
- let r2 = Math.floor(i * w) - x;
1628
- if (t2?.width === "auto") {
1629
- const c2 = n3.split(`
1630
- `);
1631
- let s = B + u3 * 2;
1632
- for (const G of c2) {
1633
- const P3 = dist_default2(G) + h2 * 2;
1634
- P3 > s && (s = P3);
1635
- }
1636
- const g2 = s + R2;
1637
- g2 < r2 && (r2 = g2);
1638
- }
1639
- r2 % 2 !== 0 && (r2 < y ? r2++ : r2--);
1640
- const d = r2 - R2, T3 = d - u3 * 2, S = B > T3 ? `${e.slice(0, T3 - 3)}...` : e, [O, W] = A$1(dist_default2(S), d, u3, t2?.titleAlign), L = wrapAnsi(n3, d - h2 * 2, {
1641
- hard: true,
1642
- trim: false
1643
- });
1644
- o2.write(`${m2}${a2[0]}${_2.repeat(O)}${S}${_2.repeat(W)}${a2[1]}
1645
- `);
1646
- const E2 = L.split(`
1647
- `);
1648
- for (const c2 of E2) {
1649
- const [s, g2] = A$1(dist_default2(c2), d, h2, t2?.contentAlign);
1650
- o2.write(`${m2}${p2}${" ".repeat(s)}${c2}${" ".repeat(g2)}${p2}
1651
- `);
1652
- }
1653
- o2.write(`${m2}${a2[2]}${_2.repeat(d)}${a2[3]}
1654
- `);
1655
- };
1656
- var confirm = (e) => {
1657
- const a2 = e.active ?? "Yes", o2 = e.inactive ?? "No";
1658
- return new r({
1659
- active: a2,
1660
- inactive: o2,
1661
- signal: e.signal,
1662
- input: e.input,
1663
- output: e.output,
1664
- initialValue: e.initialValue ?? true,
1665
- render() {
1666
- const i = e.withGuide ?? settings.withGuide, u3 = `${symbol(this.state)} `, l = i ? `${styleText2("gray", S_BAR)} ` : "", f2 = wrapTextWithPrefix(e.output, e.message, l, u3), s = `${i ? `${styleText2("gray", S_BAR)}
1667
- ` : ""}${f2}
1668
- `, c2 = this.value ? a2 : o2;
1669
- switch (this.state) {
1670
- case "submit": {
1671
- const r2 = i ? `${styleText2("gray", S_BAR)} ` : "";
1672
- return `${s}${r2}${styleText2("dim", c2)}`;
1673
- }
1674
- case "cancel": {
1675
- const r2 = i ? `${styleText2("gray", S_BAR)} ` : "";
1676
- return `${s}${r2}${styleText2(["strikethrough", "dim"], c2)}${i ? `
1677
- ${styleText2("gray", S_BAR)}` : ""}`;
1678
- }
1679
- default: {
1680
- const r2 = i ? `${styleText2("cyan", S_BAR)} ` : "", g2 = i ? styleText2("cyan", S_BAR_END) : "";
1681
- return `${s}${r2}${this.value ? `${styleText2("green", S_RADIO_ACTIVE)} ${a2}` : `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", a2)}`}${e.vertical ? i ? `
1682
- ${styleText2("cyan", S_BAR)} ` : `
1683
- ` : ` ${styleText2("dim", "/")} `}${this.value ? `${styleText2("dim", S_RADIO_INACTIVE)} ${styleText2("dim", o2)}` : `${styleText2("green", S_RADIO_ACTIVE)} ${o2}`}
1684
- ${g2}
1685
- `;
1686
- }
1687
- }
1688
- }
1689
- }).prompt();
1690
- };
1691
- var date = (e) => {
1692
- const r2 = e.validate;
1693
- return new U({
1694
- ...e,
1695
- validate(t2) {
1696
- if (t2 === undefined)
1697
- return e.defaultValue !== undefined ? undefined : r2 ? runValidation(r2, t2) : settings.date.messages.required;
1698
- const o2 = (i) => i.toISOString().slice(0, 10);
1699
- if (e.minDate && o2(t2) < o2(e.minDate))
1700
- return settings.date.messages.afterMin(e.minDate);
1701
- if (e.maxDate && o2(t2) > o2(e.maxDate))
1702
- return settings.date.messages.beforeMax(e.maxDate);
1703
- if (r2)
1704
- return runValidation(r2, t2);
1705
- },
1706
- render() {
1707
- const t2 = (e?.withGuide ?? settings.withGuide) !== false, i = `${`${t2 ? `${styleText2("gray", S_BAR)}
1708
- ` : ""}${symbol(this.state)} `}${e.message}
1709
- `, l = this.state !== "initial" ? this.state : "active", d = b2(this, l), c2 = this.value instanceof Date ? this.formattedValue : "";
1710
- switch (this.state) {
1711
- case "error": {
1712
- const a2 = this.error ? ` ${styleText2("yellow", this.error)}` : "", s = t2 ? `${styleText2("yellow", S_BAR)} ` : "", f2 = t2 ? styleText2("yellow", S_BAR_END) : "";
1713
- return `${i.trim()}
1714
- ${s}${d}
1715
- ${f2}${a2}
1716
- `;
1717
- }
1718
- case "submit": {
1719
- const a2 = c2 ? ` ${styleText2("dim", c2)}` : "", s = t2 ? styleText2("gray", S_BAR) : "";
1720
- return `${i}${s}${a2}`;
1721
- }
1722
- case "cancel": {
1723
- const a2 = c2 ? ` ${styleText2(["strikethrough", "dim"], c2)}` : "", s = t2 ? styleText2("gray", S_BAR) : "";
1724
- return `${i}${s}${a2}${c2.trim() ? `
1725
- ${s}` : ""}`;
1726
- }
1727
- default: {
1728
- const a2 = t2 ? `${styleText2("cyan", S_BAR)} ` : "", s = t2 ? styleText2("cyan", S_BAR_END) : "", f2 = t2 ? `${styleText2("cyan", S_BAR)} ` : "", g2 = this.inlineError ? `
1729
- ${f2}${styleText2("yellow", this.inlineError)}` : "";
1730
- return `${i}${a2}${d}${g2}
1731
- ${s}
1732
- `;
1733
- }
1734
- }
1735
- }
1736
- }).prompt();
1737
- };
1738
- function b2(e, r2) {
1739
- const { segmentValues: t2, segmentCursor: o2 } = e;
1740
- if (r2 === "submit" || r2 === "cancel")
1741
- return e.formattedValue;
1742
- const i = styleText2("gray", e.separator);
1743
- return e.segments.map((l, d) => {
1744
- const c2 = d === o2.segmentIndex && !["submit", "cancel"].includes(r2), a2 = p2[l.type];
1745
- return x(t2[l.type], { isActive: c2, label: a2 });
1746
- }).join(i);
1747
- }
1748
- function x(e, r2) {
1749
- const t2 = !e || e.replace(/_/g, "") === "";
1750
- return r2.isActive ? styleText2("inverse", t2 ? r2.label : e.replace(/_/g, " ")) : t2 ? styleText2("dim", r2.label) : e.replace(/_/g, styleText2("dim", " "));
1751
- }
1752
- var p2 = {
1753
- year: "yyyy",
1754
- month: "mm",
1755
- day: "dd"
1756
- };
1757
- var group = async (o2, r2) => {
1758
- const t2 = {}, p3 = Object.keys(o2);
1759
- for (const e of p3) {
1760
- const i = o2[e], n3 = await i({ results: t2 })?.catch((a2) => {
1761
- throw a2;
1762
- });
1763
- if (typeof r2?.onCancel == "function" && isCancel(n3)) {
1764
- t2[e] = "canceled", r2.onCancel({ results: t2 });
1765
- continue;
1766
- }
1767
- t2[e] = n3;
1768
- }
1769
- return t2;
1770
- };
1771
- var MULTISELECT_INSTRUCTIONS = [
1772
- `${styleText2("dim", "\u2191/\u2193")} to navigate`,
1773
- `${styleText2("dim", "Space:")} select`,
1774
- `${styleText2("dim", "Enter:")} confirm`
1775
- ];
1776
- var m2 = (n3, u3) => n3.split(`
1777
- `).map((d) => u3(d)).join(`
1778
- `);
1779
- var multiselect = (n3) => {
1780
- const u3 = (t2, a2) => {
1781
- const r2 = t2.label ?? String(t2.value);
1782
- return a2 === "disabled" ? `${styleText2("gray", S_CHECKBOX_INACTIVE)} ${m2(r2, (o2) => styleText2(["strikethrough", "gray"], o2))}${t2.hint ? ` ${styleText2("dim", `(${t2.hint ?? "disabled"})`)}` : ""}` : a2 === "active" ? `${styleText2("cyan", S_CHECKBOX_ACTIVE)} ${r2}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : a2 === "selected" ? `${styleText2("green", S_CHECKBOX_SELECTED)} ${m2(r2, (o2) => styleText2("dim", o2))}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : a2 === "cancelled" ? `${m2(r2, (o2) => styleText2(["strikethrough", "dim"], o2))}` : a2 === "active-selected" ? `${styleText2("green", S_CHECKBOX_SELECTED)} ${r2}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : a2 === "submitted" ? `${m2(r2, (o2) => styleText2("dim", o2))}` : `${styleText2("dim", S_CHECKBOX_INACTIVE)} ${m2(r2, (o2) => styleText2("dim", o2))}`;
1783
- }, d = n3.required ?? true, x2 = n3.showInstructions ?? true;
1784
- return new a({
1785
- options: n3.options,
1786
- signal: n3.signal,
1787
- input: n3.input,
1788
- output: n3.output,
1789
- initialValues: n3.initialValues,
1790
- required: d,
1791
- cursorAt: n3.cursorAt,
1792
- validate(t2) {
1793
- if (d && (t2 === undefined || t2.length === 0))
1794
- return `Please select at least one option.
1795
- ${styleText2("reset", styleText2("dim", `Press ${styleText2(["gray", "bgWhite", "inverse"], " space ")} to select, ${styleText2("gray", styleText2("bgWhite", styleText2("inverse", " enter ")))} to submit`))}`;
1796
- },
1797
- render() {
1798
- const t2 = n3.withGuide ?? settings.withGuide, a2 = wrapTextWithPrefix(n3.output, n3.message, t2 ? `${symbolBar(this.state)} ` : "", `${symbol(this.state)} `), r2 = `${t2 ? `${styleText2("gray", S_BAR)}
1799
- ` : ""}${a2}
1800
- `, o2 = this.value ?? [], g2 = (i, l) => {
1801
- if (i.disabled)
1802
- return u3(i, "disabled");
1803
- const s = o2.includes(i.value);
1804
- return l && s ? u3(i, "active-selected") : s ? u3(i, "selected") : u3(i, l ? "active" : "inactive");
1805
- };
1806
- switch (this.state) {
1807
- case "submit": {
1808
- const i = this.options.filter(({ value: s }) => o2.includes(s)).map((s) => u3(s, "submitted")).join(styleText2("dim", ", ")) || styleText2("dim", "none"), l = wrapTextWithPrefix(n3.output, i, t2 ? `${styleText2("gray", S_BAR)} ` : "");
1809
- return `${r2}${l}`;
1810
- }
1811
- case "cancel": {
1812
- const i = this.options.filter(({ value: s }) => o2.includes(s)).map((s) => u3(s, "cancelled")).join(styleText2("dim", ", "));
1813
- if (i.trim() === "")
1814
- return `${r2}${styleText2("gray", S_BAR)}`;
1815
- const l = wrapTextWithPrefix(n3.output, i, t2 ? `${styleText2("gray", S_BAR)} ` : "");
1816
- return `${r2}${l}${t2 ? `
1817
- ${styleText2("gray", S_BAR)}` : ""}`;
1818
- }
1819
- case "error": {
1820
- const i = t2 ? `${styleText2("yellow", S_BAR)} ` : "", l = this.error.split(`
1821
- `).map(($, v) => v === 0 ? `${t2 ? `${styleText2("yellow", S_BAR_END)} ` : ""}${styleText2("yellow", $)}` : ` ${$}`).join(`
1822
- `), s = r2.split(`
1823
- `).length, h2 = l.split(`
1824
- `).length + 1;
1825
- return `${r2}${i}${limitOptions({
1826
- output: n3.output,
1827
- options: this.options,
1828
- cursor: this.cursor,
1829
- maxItems: n3.maxItems,
1830
- columnPadding: i.length,
1831
- rowPadding: s + h2,
1832
- style: g2
1833
- }).join(`
1834
- ${i}`)}
1835
- ${l}
1836
- `;
1837
- }
1838
- default: {
1839
- const i = t2 ? `${styleText2("cyan", S_BAR)} ` : "", l = r2.split(`
1840
- `).length, s = x2 ? formatInstructionFooter(n3.output, MULTISELECT_INSTRUCTIONS, t2) : t2 ? [styleText2("cyan", S_BAR_END)] : [], h2 = s.join(`
1841
- `), $ = s.length + 1;
1842
- return `${r2}${i}${limitOptions({
1843
- output: n3.output,
1844
- options: this.options,
1845
- cursor: this.cursor,
1846
- maxItems: n3.maxItems,
1847
- columnPadding: i.length,
1848
- rowPadding: l + $,
1849
- style: g2
1850
- }).join(`
1851
- ${i}`)}
1852
- ${h2}
1853
- `;
1854
- }
1855
- }
1856
- }
1857
- }).prompt();
1858
- };
1859
- var groupMultiselect = (r2) => {
1860
- const { selectableGroups: f2 = true, groupSpacing: x2 = 0 } = r2, d = (n3, l, p3 = []) => {
1861
- const a2 = n3.label ?? String(n3.value), t2 = typeof n3.group == "string", u3 = t2 && (p3[p3.indexOf(n3) + 1] ?? { group: true }), s = t2 && u3 && u3.group === true;
1862
- let o2 = "", c2 = "";
1863
- t2 && (f2 ? (o2 = s ? `${S_BAR_END} ` : `${S_BAR} `, c2 = s ? " " : `${S_BAR} `) : o2 = " ");
1864
- let i = "";
1865
- if (x2 > 0 && !t2 && (i = `
1866
- `.repeat(x2)), l === "active")
1867
- return wrapTextWithPrefix(r2.output, `${a2}${n3.hint ? ` ${styleText2("dim", `(${n3.hint})`)}` : ""}`, `${i}${styleText2("dim", o2)} `, `${i}${styleText2("dim", o2)}${styleText2("cyan", S_CHECKBOX_ACTIVE)} `, `${i}${styleText2("dim", c2)} `);
1868
- if (l === "group-active")
1869
- return wrapTextWithPrefix(r2.output, a2, `${i}${o2} `, `${i}${o2}${styleText2("cyan", S_CHECKBOX_ACTIVE)} `, `${i}${c2} `, (m3) => styleText2("dim", m3));
1870
- if (l === "group-active-selected")
1871
- return wrapTextWithPrefix(r2.output, a2, `${i}${o2} `, `${i}${o2}${styleText2("green", S_CHECKBOX_SELECTED)} `, `${i}${c2} `, (m3) => styleText2("dim", m3));
1872
- if (l === "selected") {
1873
- const m3 = t2 || f2 ? styleText2("green", S_CHECKBOX_SELECTED) : "";
1874
- return wrapTextWithPrefix(r2.output, `${a2}${n3.hint ? ` (${n3.hint})` : ""}`, `${i}${styleText2("dim", o2)} `, `${i}${styleText2("dim", o2)}${m3} `, `${i}${styleText2("dim", c2)} `, (I) => styleText2("dim", I));
1875
- }
1876
- if (l === "cancelled")
1877
- return `${styleText2(["strikethrough", "dim"], a2)}`;
1878
- if (l === "active-selected")
1879
- return wrapTextWithPrefix(r2.output, `${a2}${n3.hint ? ` ${styleText2("dim", `(${n3.hint})`)}` : ""}`, `${i}${styleText2("dim", o2)} `, `${i}${styleText2("dim", o2)}${styleText2("green", S_CHECKBOX_SELECTED)} `, `${i}${styleText2("dim", c2)} `);
1880
- if (l === "submitted")
1881
- return `${styleText2("dim", a2)}`;
1882
- const h2 = t2 || f2 ? styleText2("dim", S_CHECKBOX_INACTIVE) : "";
1883
- return wrapTextWithPrefix(r2.output, a2, `${i}${styleText2("dim", o2)} `, `${i}${styleText2("dim", o2)}${h2} `, `${i}${styleText2("dim", c2)} `, (m3) => styleText2("dim", m3));
1884
- }, y = r2.required ?? true, S = r2.showInstructions ?? true;
1885
- return new u$1({
1886
- options: r2.options,
1887
- signal: r2.signal,
1888
- input: r2.input,
1889
- output: r2.output,
1890
- initialValues: r2.initialValues,
1891
- required: y,
1892
- cursorAt: r2.cursorAt,
1893
- selectableGroups: f2,
1894
- validate(n3) {
1895
- if (y && (n3 === undefined || n3.length === 0))
1896
- return `Please select at least one option.
1897
- ${styleText2("reset", styleText2("dim", `Press ${styleText2(["gray", "bgWhite", "inverse"], " space ")} to select, ${styleText2("gray", styleText2(["bgWhite", "inverse"], " enter "))} to submit`))}`;
1898
- },
1899
- render() {
1900
- const n3 = r2.withGuide ?? settings.withGuide, l = `${n3 ? `${styleText2("gray", S_BAR)}
1901
- ` : ""}${symbol(this.state)} ${r2.message}
1902
- `, p3 = this.value ?? [], a2 = (t2, u3) => {
1903
- const s = this.options, o2 = p3.includes(t2.value) || t2.group === true && this.isGroupSelected(`${t2.value}`);
1904
- return !u3 && typeof t2.group == "string" && this.options[this.cursor]?.value === t2.group ? d(t2, o2 ? "group-active-selected" : "group-active", s) : u3 && o2 ? d(t2, "active-selected", s) : o2 ? d(t2, "selected", s) : d(t2, u3 ? "active" : "inactive", s);
1905
- };
1906
- switch (this.state) {
1907
- case "submit": {
1908
- const t2 = this.options.filter(({ value: s }) => p3.includes(s)).map((s) => d(s, "submitted")), u3 = t2.length === 0 ? "" : ` ${t2.join(styleText2("dim", ", "))}`;
1909
- return `${l}${n3 ? styleText2("gray", S_BAR) : ""}${u3}`;
1910
- }
1911
- case "cancel": {
1912
- const t2 = this.options.filter(({ value: u3 }) => p3.includes(u3)).map((u3) => d(u3, "cancelled")).join(styleText2("dim", ", "));
1913
- return `${l}${n3 ? `${styleText2("gray", S_BAR)} ` : ""}${t2.trim() ? `${t2}${n3 ? `
1914
- ${styleText2("gray", S_BAR)}` : ""}` : ""}`;
1915
- }
1916
- case "error": {
1917
- const t2 = n3 ? `${styleText2("yellow", S_BAR)} ` : "", u3 = this.error.split(`
1918
- `).map((i, h2) => h2 === 0 ? `${n3 ? `${styleText2("yellow", S_BAR_END)} ` : ""}${styleText2("yellow", i)}` : ` ${i}`).join(`
1919
- `), s = l.split(`
1920
- `).length, o2 = u3.split(`
1921
- `).length + 1, c2 = limitOptions({
1922
- output: r2.output,
1923
- options: this.options,
1924
- cursor: this.cursor,
1925
- maxItems: r2.maxItems,
1926
- columnPadding: t2.length,
1927
- rowPadding: s + o2,
1928
- style: a2
1929
- }).join(`
1930
- ${t2}`);
1931
- return `${l}${t2}${c2}
1932
- ${u3}
1933
- `;
1934
- }
1935
- default: {
1936
- const t2 = n3 ? `${styleText2("cyan", S_BAR)} ` : "", u3 = l.split(`
1937
- `).length, s = S ? formatInstructionFooter(r2.output, MULTISELECT_INSTRUCTIONS, n3) : n3 ? [styleText2("cyan", S_BAR_END)] : [], o2 = s.join(`
1938
- `), c2 = s.length + 1, i = limitOptions({
1939
- output: r2.output,
1940
- options: this.options,
1941
- cursor: this.cursor,
1942
- maxItems: r2.maxItems,
1943
- columnPadding: t2.length,
1944
- rowPadding: u3 + c2,
1945
- style: a2
1946
- }).join(`
1947
- ${t2}`);
1948
- return `${l}${t2}${i}
1949
- ${o2}
1950
- `;
1951
- }
1952
- }
1953
- }
1954
- }).prompt();
1955
- };
1956
- var log = {
1957
- message: (s = [], {
1958
- symbol: e = styleText2("gray", S_BAR),
1959
- secondarySymbol: r2 = styleText2("gray", S_BAR),
1960
- output: m3 = process.stdout,
1961
- spacing: l = 1,
1962
- withGuide: c2
1963
- } = {}) => {
1964
- const t2 = [], o2 = c2 ?? settings.withGuide, f2 = o2 ? r2 : "", O = o2 ? `${e} ` : "", u3 = o2 ? `${r2} ` : "";
1965
- for (let i = 0;i < l; i++)
1966
- t2.push(f2);
1967
- const g2 = Array.isArray(s) ? s : s.split(`
1968
- `);
1969
- if (g2.length > 0) {
1970
- const [i, ...y] = g2;
1971
- i.length > 0 ? t2.push(`${O}${i}`) : t2.push(o2 ? e : "");
1972
- for (const p3 of y)
1973
- p3.length > 0 ? t2.push(`${u3}${p3}`) : t2.push(o2 ? r2 : "");
1974
- }
1975
- m3.write(`${t2.join(`
1976
- `)}
1977
- `);
1978
- },
1979
- info: (s, e) => {
1980
- log.message(s, { ...e, symbol: styleText2("blue", S_INFO) });
1981
- },
1982
- success: (s, e) => {
1983
- log.message(s, { ...e, symbol: styleText2("green", S_SUCCESS) });
1984
- },
1985
- step: (s, e) => {
1986
- log.message(s, { ...e, symbol: styleText2("green", S_STEP_SUBMIT) });
1987
- },
1988
- warn: (s, e) => {
1989
- log.message(s, { ...e, symbol: styleText2("yellow", S_WARN) });
1990
- },
1991
- warning: (s, e) => {
1992
- log.warn(s, e);
1993
- },
1994
- error: (s, e) => {
1995
- log.message(s, { ...e, symbol: styleText2("red", S_ERROR) });
1996
- }
1997
- };
1998
- var cancel = (o2 = "", t2) => {
1999
- const i = t2?.output ?? process.stdout, e = t2?.withGuide ?? settings.withGuide ? `${styleText2("gray", S_BAR_END)} ` : "";
2000
- i.write(`${e}${styleText2("red", o2)}
2001
-
2002
- `);
2003
- };
2004
- var intro = (o2 = "", t2) => {
2005
- const i = t2?.output ?? process.stdout, e = t2?.withGuide ?? settings.withGuide ? `${styleText2("gray", S_BAR_START)} ` : "";
2006
- i.write(`${e}${o2}
2007
- `);
2008
- };
2009
- var outro = (o2 = "", t2) => {
2010
- const i = t2?.output ?? process.stdout, e = t2?.withGuide ?? settings.withGuide ? `${styleText2("gray", S_BAR)}
2011
- ${styleText2("gray", S_BAR_END)} ` : "";
2012
- i.write(`${e}${o2}
2013
-
2014
- `);
2015
- };
2016
- var multiline = (e) => new h({
2017
- validate: e.validate,
2018
- placeholder: e.placeholder,
2019
- defaultValue: e.defaultValue,
2020
- initialValue: e.initialValue,
2021
- showSubmit: e.showSubmit,
2022
- output: e.output,
2023
- signal: e.signal,
2024
- input: e.input,
2025
- render() {
2026
- const i = e?.withGuide ?? settings.withGuide, o2 = `${`${i ? `${styleText2("gray", S_BAR)}
2027
- ` : ""}${symbol(this.state)} `}${e.message}
2028
- `, h2 = e.placeholder && e.placeholder.length > 0 ? styleText2("inverse", e.placeholder[0]) + styleText2("dim", e.placeholder.slice(1)) : styleText2(["inverse", "hidden"], "_"), a2 = this.userInput ? this.userInputWithCursor : h2, l = this.value ?? "", d = e.showSubmit ? `
2029
- ${styleText2(this.focused === "submit" ? "cyan" : "dim", "[ submit ]")}` : "";
2030
- switch (this.state) {
2031
- case "error": {
2032
- const n3 = `${styleText2("yellow", S_BAR)} `, r2 = i ? wrapTextWithPrefix(e.output, a2, n3, undefined) : a2, u3 = styleText2("yellow", S_BAR_END);
2033
- return `${o2}${r2}
2034
- ${u3} ${styleText2("yellow", this.error)}${d}
2035
- `;
2036
- }
2037
- case "submit": {
2038
- const n3 = `${styleText2("gray", S_BAR)} `, r2 = i ? wrapTextWithPrefix(e.output, l, n3, undefined, undefined, (u3) => styleText2("dim", u3)) : l ? styleText2("dim", l) : "";
2039
- return `${o2}${r2}`;
2040
- }
2041
- case "cancel": {
2042
- const n3 = `${styleText2("gray", S_BAR)} `, r2 = i ? wrapTextWithPrefix(e.output, l, n3, undefined, undefined, (u3) => styleText2(["strikethrough", "dim"], u3)) : l ? styleText2(["strikethrough", "dim"], l) : "";
2043
- return `${o2}${r2}`;
2044
- }
2045
- default: {
2046
- const n3 = i ? `${styleText2("cyan", S_BAR)} ` : "", r2 = i ? styleText2("cyan", S_BAR_END) : "", u3 = i ? wrapTextWithPrefix(e.output, a2, n3) : a2;
2047
- return `${o2}${u3}
2048
- ${r2}${d}
2049
- `;
2050
- }
2051
- }
2052
- }
2053
- }).prompt();
2054
- var W = (o2) => o2;
2055
- var C3 = (o2, e, s) => {
2056
- const a2 = {
2057
- hard: true,
2058
- trim: false
2059
- }, i = wrapAnsi(o2, e, a2).split(`
2060
- `), c2 = i.reduce((n3, t2) => Math.max(dist_default2(t2), n3), 0), u3 = i.map(s).reduce((n3, t2) => Math.max(dist_default2(t2), n3), 0), g2 = e - (u3 - c2);
2061
- return wrapAnsi(o2, g2, a2);
2062
- };
2063
- var note = (o2 = "", e = "", s) => {
2064
- const a2 = s?.output ?? process$1.stdout, i = s?.withGuide ?? settings.withGuide, c2 = s?.format ?? W, g2 = ["", ...C3(o2, getColumns(a2) - 6, c2).split(`
2065
- `).map(c2), ""], n3 = dist_default2(e), t2 = Math.max(g2.reduce((m3, F) => {
2066
- const O = dist_default2(F);
2067
- return O > m3 ? O : m3;
2068
- }, 0), n3) + 2, h2 = g2.map((m3) => `${styleText2("gray", S_BAR)} ${m3}${" ".repeat(t2 - dist_default2(m3))}${styleText2("gray", S_BAR)}`).join(`
2069
- `), T3 = i ? `${styleText2("gray", S_BAR)}
2070
- ` : "", l$1 = i ? S_CONNECT_LEFT : S_CORNER_BOTTOM_LEFT;
2071
- a2.write(`${T3}${styleText2("green", S_STEP_SUBMIT)} ${styleText2("reset", e)} ${styleText2("gray", S_BAR_H.repeat(Math.max(t2 - n3 - 1, 1)) + S_CORNER_TOP_RIGHT)}
2072
- ${h2}
2073
- ${styleText2("gray", l$1 + S_BAR_H.repeat(t2 + 2) + S_CORNER_BOTTOM_RIGHT)}
2074
- `);
2075
- };
2076
- var password = (e) => new u2({
2077
- validate: e.validate,
2078
- mask: e.mask ?? S_PASSWORD_MASK,
2079
- signal: e.signal,
2080
- input: e.input,
2081
- output: e.output,
2082
- render() {
2083
- const r2 = e.withGuide ?? settings.withGuide, o2 = `${r2 ? `${styleText2("gray", S_BAR)}
2084
- ` : ""}${symbol(this.state)} ${e.message}
2085
- `, m3 = this.userInputWithCursor, i = this.masked;
2086
- switch (this.state) {
2087
- case "error": {
2088
- const s = r2 ? `${styleText2("yellow", S_BAR)} ` : "", n3 = r2 ? `${styleText2("yellow", S_BAR_END)} ` : "", d = i ?? "";
2089
- return e.clearOnError && this.clear(), `${o2.trim()}
2090
- ${s}${d}
2091
- ${n3}${styleText2("yellow", this.error)}
2092
- `;
2093
- }
2094
- case "submit": {
2095
- const s = r2 ? `${styleText2("gray", S_BAR)} ` : "", n3 = i ? styleText2("dim", i) : "";
2096
- return `${o2}${s}${n3}`;
2097
- }
2098
- case "cancel": {
2099
- const s = r2 ? `${styleText2("gray", S_BAR)} ` : "", n3 = i ? styleText2(["strikethrough", "dim"], i) : "";
2100
- return `${o2}${s}${n3}${i && r2 ? `
2101
- ${styleText2("gray", S_BAR)}` : ""}`;
2102
- }
2103
- default: {
2104
- const s = r2 ? `${styleText2("cyan", S_BAR)} ` : "", n3 = r2 ? styleText2("cyan", S_BAR_END) : "";
2105
- return `${o2}${s}${m3}
2106
- ${n3}
2107
- `;
2108
- }
2109
- }
2110
- }
2111
- }).prompt();
2112
- var path = (e) => {
2113
- const a2 = e.validate;
2114
- return autocomplete({
2115
- ...e,
2116
- initialUserInput: e.initialValue ?? e.root ?? process.cwd(),
2117
- maxItems: 5,
2118
- completeOnTab: true,
2119
- validate(t2) {
2120
- if (!Array.isArray(t2)) {
2121
- if (!t2)
2122
- return "Please select a path";
2123
- if (a2)
2124
- return runValidation(a2, t2);
2125
- }
2126
- },
2127
- options() {
2128
- const t2 = this.userInput;
2129
- if (t2 === "")
2130
- return [];
2131
- try {
2132
- let i;
2133
- const o2 = t2.endsWith("/") || t2.endsWith("\\");
2134
- existsSync(t2) ? lstatSync(t2).isDirectory() && (!e.directory || o2) ? i = t2 : i = dirname(t2) : i = dirname(t2);
2135
- const m3 = t2.length > 1 && o2 ? t2.slice(0, -1) : t2;
2136
- return readdirSync(i).map((r2) => {
2137
- const n3 = join(i, r2), l = lstatSync(n3);
2138
- return {
2139
- name: r2,
2140
- path: n3,
2141
- isDirectory: l.isDirectory()
2142
- };
2143
- }).filter(({ path: r2, isDirectory: n3 }) => r2.startsWith(m3) && (n3 || !e.directory)).map((r2) => ({
2144
- value: r2.path
2145
- }));
2146
- } catch {
2147
- return [];
2148
- }
2149
- }
2150
- });
2151
- };
2152
- var Y = 30000;
2153
- var Z = (c2) => styleText2("magenta", c2);
2154
- var spinner = ({
2155
- indicator: c2 = "dots",
2156
- onCancel: b3,
2157
- output: n3 = process.stdout,
2158
- cancelMessage: _2,
2159
- errorMessage: C4,
2160
- frames: M2 = unicode ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"],
2161
- delay: O = unicode ? 80 : 120,
2162
- signal: g2,
2163
- ...E2
2164
- } = {}) => {
2165
- const u3 = isCI(), h2 = isAccessible(E2.accessible);
2166
- let x2, I, p3 = false, l = false, r2 = "", v, w = performance.now();
2167
- const y = getColumns(n3), F = E2?.styleFrame ?? Z, S = (e) => {
2168
- const s = e > 1 ? C4 ?? settings.messages.error : _2 ?? settings.messages.cancel;
2169
- l = e === 1, p3 && (m3(s, e), l && typeof b3 == "function" && b3());
2170
- }, $ = () => S(2), a2 = () => S(1), H = () => {
2171
- process.on("uncaughtExceptionMonitor", $), process.on("unhandledRejection", $), process.on("SIGINT", a2), process.on("SIGTERM", a2), process.on("exit", S), g2 && g2.addEventListener("abort", a2);
2172
- }, B = () => {
2173
- process.removeListener("uncaughtExceptionMonitor", $), process.removeListener("unhandledRejection", $), process.removeListener("SIGINT", a2), process.removeListener("SIGTERM", a2), process.removeListener("exit", S), g2 && g2.removeEventListener("abort", a2);
2174
- }, R2 = () => {
2175
- if (v === undefined)
2176
- return;
2177
- u3 && n3.write(`
2178
- `);
2179
- const s = wrapAnsi(v, y, {
2180
- hard: true,
2181
- trim: false
2182
- }).split(`
2183
- `);
2184
- s.length > 1 && n3.write(cursor.up(s.length - 1)), n3.write(cursor.to(0)), n3.write(erase.down());
2185
- }, L = (e) => e.replace(/\.+$/, ""), T3 = (e) => {
2186
- const s = (performance.now() - e) / 1000, i = Math.floor(s / 60), t2 = Math.floor(s % 60);
2187
- return i > 0 ? `[${i}m ${t2}s]` : `[${t2}s]`;
2188
- }, N = E2.withGuide ?? settings.withGuide, P3 = (e = "") => {
2189
- if (p3 = true, l = false, r2 = L(e), w = performance.now(), H(), h2) {
2190
- r2 !== "" && n3.write(`${r2}
2191
- `), I = setInterval(() => {
2192
- n3.write(r2 === "" ? `still working
2193
- ` : `still working: ${r2}
2194
- `);
2195
- }, Y);
2196
- return;
2197
- }
2198
- x2 = block({ output: n3 }), N && n3.write(`${styleText2("gray", S_BAR)}
2199
- `);
2200
- let s = 0, i = 0;
2201
- I = setInterval(() => {
2202
- if (u3 && r2 === v)
2203
- return;
2204
- R2(), v = r2;
2205
- const t2 = F(M2[s]);
2206
- let o2;
2207
- if (u3)
2208
- o2 = `${t2} ${r2}...`;
2209
- else if (c2 === "timer")
2210
- o2 = `${t2} ${r2} ${T3(w)}`;
2211
- else {
2212
- const j2 = ".".repeat(Math.floor(i)).slice(0, 3);
2213
- o2 = `${t2} ${r2}${j2}`;
2214
- }
2215
- const D = wrapAnsi(o2, y, {
2216
- hard: true,
2217
- trim: false
2218
- });
2219
- n3.write(D), s = s + 1 < M2.length ? s + 1 : 0, i = i < 4 ? i + 0.125 : 0;
2220
- }, O);
2221
- }, m3 = (e = "", s = 0, i = false) => {
2222
- if (p3) {
2223
- if (p3 = false, l = s === 1, clearInterval(I), h2 || R2(), r2 = e ?? r2, !i)
2224
- if (h2) {
2225
- const t2 = s === 1 ? _2 ?? settings.messages.cancel : s === 2 ? C4 ?? settings.messages.error : "Done", o2 = r2 || t2;
2226
- c2 === "timer" ? n3.write(`${o2} ${T3(w)}
2227
- `) : n3.write(`${o2}
2228
- `);
2229
- } else {
2230
- const t2 = s === 0 ? styleText2("green", S_STEP_SUBMIT) : s === 1 ? styleText2("red", S_STEP_CANCEL) : styleText2("red", S_STEP_ERROR);
2231
- c2 === "timer" ? n3.write(`${t2} ${r2} ${T3(w)}
2232
- `) : n3.write(`${t2} ${r2}
2233
- `);
2234
- }
2235
- B(), x2?.();
2236
- }
2237
- };
2238
- return {
2239
- start: P3,
2240
- stop: (e = "") => m3(e, 0),
2241
- message: (e = "") => {
2242
- r2 = L(e ?? r2);
2243
- },
2244
- cancel: (e = "") => m3(e, 1),
2245
- error: (e = "") => m3(e, 2),
2246
- clear: () => m3("", 0, true),
2247
- get isCancelled() {
2248
- return l;
2249
- }
2250
- };
2251
- };
2252
- var u3 = {
2253
- light: unicodeOr("\u2500", "-"),
2254
- heavy: unicodeOr("\u2501", "="),
2255
- block: unicodeOr("\u2588", "#")
2256
- };
2257
- function progress({
2258
- style: o2 = "heavy",
2259
- max: d = 100,
2260
- size: v = 40,
2261
- ...x2
2262
- } = {}) {
2263
- const r2 = spinner(x2);
2264
- let a2 = 0, n3 = "";
2265
- const c2 = Math.max(1, d), l = Math.max(1, v), S = (t2) => {
2266
- switch (t2) {
2267
- case "initial":
2268
- case "active":
2269
- return (e) => styleText2("magenta", e);
2270
- case "error":
2271
- case "cancel":
2272
- return (e) => styleText2("red", e);
2273
- case "submit":
2274
- return (e) => styleText2("green", e);
2275
- default:
2276
- return (e) => styleText2("magenta", e);
2277
- }
2278
- }, p3 = (t2, e) => {
2279
- const m3 = Math.floor(a2 / c2 * l);
2280
- return `${S(t2)(u3[o2].repeat(m3))}${styleText2("dim", u3[o2].repeat(l - m3))} ${e}`;
2281
- }, h2 = (t2 = "") => {
2282
- n3 = t2, r2.start(p3("initial", t2));
2283
- }, g2 = (t2 = 1, e) => {
2284
- a2 = Math.min(c2, t2 + a2), r2.message(p3("active", e ?? n3)), n3 = e ?? n3;
2285
- };
2286
- return {
2287
- start: h2,
2288
- stop: r2.stop,
2289
- cancel: r2.cancel,
2290
- error: r2.error,
2291
- clear: r2.clear,
2292
- advance: g2,
2293
- get isCancelled() {
2294
- return r2.isCancelled;
2295
- },
2296
- message: (t2) => g2(0, t2)
2297
- };
2298
- }
2299
- var SELECT_INSTRUCTIONS = [
2300
- `${styleText2("dim", "\u2191/\u2193")} to navigate`,
2301
- `${styleText2("dim", "Enter:")} confirm`
2302
- ];
2303
- var c2 = (t2, o2) => t2.includes(`
2304
- `) ? t2.split(`
2305
- `).map((d) => o2(d)).join(`
2306
- `) : o2(t2);
2307
- var select = (t2) => {
2308
- const o2 = (n3, m3) => {
2309
- if (n3 === undefined)
2310
- return "";
2311
- const s = n3.label ?? String(n3.value);
2312
- switch (m3) {
2313
- case "disabled":
2314
- return `${styleText2("gray", S_RADIO_INACTIVE)} ${c2(s, (i) => styleText2("gray", i))}${n3.hint ? ` ${styleText2("dim", `(${n3.hint ?? "disabled"})`)}` : ""}`;
2315
- case "selected":
2316
- return `${c2(s, (i) => styleText2("dim", i))}`;
2317
- case "active":
2318
- return `${styleText2("green", S_RADIO_ACTIVE)} ${s}${n3.hint ? ` ${styleText2("dim", `(${n3.hint})`)}` : ""}`;
2319
- case "cancelled":
2320
- return `${c2(s, (i) => styleText2(["strikethrough", "dim"], i))}`;
2321
- default:
2322
- return `${styleText2("dim", S_RADIO_INACTIVE)} ${c2(s, (i) => styleText2("dim", i))}`;
2323
- }
2324
- }, d = t2.showInstructions ?? true;
2325
- return new n$1({
2326
- options: t2.options,
2327
- signal: t2.signal,
2328
- input: t2.input,
2329
- output: t2.output,
2330
- initialValue: t2.initialValue,
2331
- render() {
2332
- const n3 = t2.withGuide ?? settings.withGuide, m3 = `${symbol(this.state)} `, s = `${symbolBar(this.state)} `, i = wrapTextWithPrefix(t2.output, t2.message, s, m3), u4 = `${n3 ? `${styleText2("gray", S_BAR)}
2333
- ` : ""}${i}
2334
- `;
2335
- switch (this.state) {
2336
- case "submit": {
2337
- const r2 = n3 ? `${styleText2("gray", S_BAR)} ` : "", a2 = wrapTextWithPrefix(t2.output, o2(this.options[this.cursor], "selected"), r2);
2338
- return `${u4}${a2}`;
2339
- }
2340
- case "cancel": {
2341
- const r2 = n3 ? `${styleText2("gray", S_BAR)} ` : "", a2 = wrapTextWithPrefix(t2.output, o2(this.options[this.cursor], "cancelled"), r2);
2342
- return `${u4}${a2}${n3 ? `
2343
- ${styleText2("gray", S_BAR)}` : ""}`;
2344
- }
2345
- default: {
2346
- const r2 = n3 ? `${styleText2("cyan", S_BAR)} ` : "", a2 = u4.split(`
2347
- `).length, p3 = d ? formatInstructionFooter(t2.output, SELECT_INSTRUCTIONS, n3) : n3 ? [styleText2("cyan", S_BAR_END)] : [], f2 = p3.join(`
2348
- `), b3 = p3.length + 1;
2349
- return `${u4}${r2}${limitOptions({
2350
- output: t2.output,
2351
- cursor: this.cursor,
2352
- options: this.options,
2353
- maxItems: t2.maxItems,
2354
- columnPadding: r2.length,
2355
- rowPadding: a2 + b3,
2356
- style: (g2, x2) => o2(g2, g2.disabled ? "disabled" : x2 ? "active" : "inactive")
2357
- }).join(`
2358
- ${r2}`)}
2359
- ${f2}
2360
- `;
2361
- }
2362
- }
2363
- }
2364
- }).prompt();
2365
- };
2366
- var selectKey = (i) => {
2367
- const c3 = (e, a2 = "inactive") => {
2368
- if (e === undefined)
2369
- return "";
2370
- const n3 = e.label ?? String(e.value);
2371
- return a2 === "disabled" ? `${styleText2("dim", ` ${e.value} `)} ${styleText2("gray", n3)}${e.hint ? ` ${styleText2("dim", `(${e.hint})`)}` : ""}` : a2 === "selected" ? `${styleText2("dim", n3)}` : a2 === "cancelled" ? `${styleText2(["strikethrough", "dim"], n3)}` : a2 === "active" ? `${styleText2(["bgCyan", "gray"], ` ${e.value} `)} ${n3}${e.hint ? ` ${styleText2("dim", `(${e.hint})`)}` : ""}` : `${styleText2(["gray", "bgWhite", "inverse"], ` ${e.value} `)} ${n3}${e.hint ? ` ${styleText2("dim", `(${e.hint})`)}` : ""}`;
2372
- };
2373
- return new c({
2374
- options: i.options,
2375
- signal: i.signal,
2376
- input: i.input,
2377
- output: i.output,
2378
- initialValue: i.initialValue,
2379
- caseSensitive: i.caseSensitive,
2380
- render() {
2381
- const e = i.withGuide ?? settings.withGuide, a2 = `${e ? `${styleText2("gray", S_BAR)}
2382
- ` : ""}${symbol(this.state)} ${i.message}
2383
- `;
2384
- switch (this.state) {
2385
- case "submit": {
2386
- const n3 = e ? `${styleText2("gray", S_BAR)} ` : "", r2 = this.options.find((l) => l.value === this.value) ?? i.options[0], u4 = wrapTextWithPrefix(i.output, c3(r2, "selected"), n3);
2387
- return `${a2}${u4}`;
2388
- }
2389
- case "cancel": {
2390
- const n3 = e ? `${styleText2("gray", S_BAR)} ` : "", r2 = wrapTextWithPrefix(i.output, c3(this.options[0], "cancelled"), n3);
2391
- return `${a2}${r2}${e ? `
2392
- ${styleText2("gray", S_BAR)}` : ""}`;
2393
- }
2394
- default: {
2395
- const n3 = e ? `${styleText2("cyan", S_BAR)} ` : "", r2 = e ? styleText2("cyan", S_BAR_END) : "", u4 = this.options.map((l, $) => wrapTextWithPrefix(i.output, c3(l, l.disabled ? "disabled" : $ === this.cursor ? "active" : "inactive"), n3)).join(`
2396
- `);
2397
- return `${a2}${u4}
2398
- ${r2}
2399
- `;
2400
- }
2401
- }
2402
- }
2403
- }).prompt();
2404
- };
2405
- var i = `${styleText2("gray", S_BAR)} `;
2406
- var stream = {
2407
- message: async (e, { symbol: l = styleText2("gray", S_BAR) } = {}) => {
2408
- process.stdout.write(`${styleText2("gray", S_BAR)}
2409
- ${l} `);
2410
- let s = 3;
2411
- for await (let r2 of e) {
2412
- r2 = r2.replace(/\n/g, `
2413
- ${i}`), r2.includes(`
2414
- `) && (s = 3 + stripVTControlCharacters(r2.slice(r2.lastIndexOf(`
2415
- `))).length);
2416
- const o2 = stripVTControlCharacters(r2).length;
2417
- s + o2 < process.stdout.columns ? (s += o2, process.stdout.write(r2)) : (process.stdout.write(`
2418
- ${i}${r2.trimStart()}`), s = 3 + stripVTControlCharacters(r2.trimStart()).length);
2419
- }
2420
- process.stdout.write(`
2421
- `);
2422
- },
2423
- info: (e) => stream.message(e, { symbol: styleText2("blue", S_INFO) }),
2424
- success: (e) => stream.message(e, { symbol: styleText2("green", S_SUCCESS) }),
2425
- step: (e) => stream.message(e, { symbol: styleText2("green", S_STEP_SUBMIT) }),
2426
- warn: (e) => stream.message(e, { symbol: styleText2("yellow", S_WARN) }),
2427
- warning: (e) => stream.warn(e),
2428
- error: (e) => stream.message(e, { symbol: styleText2("red", S_ERROR) })
2429
- };
2430
- var tasks = async (o2, e) => {
2431
- for (const t2 of o2) {
2432
- if (t2.enabled === false)
2433
- continue;
2434
- const s = spinner(e);
2435
- s.start(t2.title);
2436
- const n3 = await t2.task(s.message);
2437
- s.stop(n3 || t2.title);
2438
- }
2439
- };
2440
- var A = (l) => l.replace(/\x1b\[(?:\d+;)*\d*[ABCDEFGHfJKSTsu]|\x1b\[(s|u)/g, "");
2441
- var taskLog = (l) => {
2442
- const r2 = l.output ?? process.stdout, O = getColumns(r2), i2 = styleText2("gray", S_BAR), p3 = l.spacing ?? 1, k = 3, m3 = l.retainLog === true, d = !isCI() && isTTY(r2);
2443
- r2.write(`${i2}
2444
- `), r2.write(`${styleText2("green", S_STEP_SUBMIT)} ${l.title}
2445
- `);
2446
- for (let e = 0;e < p3; e++)
2447
- r2.write(`${i2}
2448
- `);
2449
- const n3 = [
2450
- {
2451
- value: "",
2452
- full: ""
2453
- }
2454
- ];
2455
- let v = false;
2456
- const f2 = (e) => {
2457
- if (n3.length === 0)
2458
- return;
2459
- let s = 0;
2460
- e && (s += p3 + 2);
2461
- for (const t2 of n3) {
2462
- const { value: o2, result: a2 } = t2;
2463
- let g2 = a2?.message ?? o2;
2464
- if (g2.length === 0)
2465
- continue;
2466
- a2 === undefined && t2.header !== undefined && t2.header !== "" && (g2 += `
2467
- ${t2.header}`);
2468
- const E2 = g2.split(`
2469
- `).reduce((b3, w) => w === "" ? b3 + 1 : b3 + Math.ceil((w.length + k) / O), 0);
2470
- s += E2;
2471
- }
2472
- s > 0 && (s += 1, r2.write(erase.lines(s)));
2473
- }, h2 = (e, s, t2) => {
2474
- const o2 = t2 ? `${e.full}
2475
- ${e.value}` : e.value;
2476
- e.header !== undefined && e.header !== "" && log.message(e.header.split(`
2477
- `).map((a2) => styleText2("bold", a2)), {
2478
- output: r2,
2479
- secondarySymbol: i2,
2480
- symbol: i2,
2481
- spacing: 0
2482
- }), log.message(o2.split(`
2483
- `).map((a2) => styleText2("dim", a2)), {
2484
- output: r2,
2485
- secondarySymbol: i2,
2486
- symbol: i2,
2487
- spacing: s ?? p3
2488
- });
2489
- }, T3 = () => {
2490
- for (const e of n3) {
2491
- const { header: s, value: t2, full: o2 } = e;
2492
- (s === undefined || s.length === 0) && t2.length === 0 || h2(e, undefined, m3 === true && o2.length > 0);
2493
- }
2494
- }, L = (e, s, t2) => {
2495
- if (f2(false), (t2?.raw !== true || !v) && e.value !== "" && (e.value += `
2496
- `), e.value += A(s), v = t2?.raw === true, l.limit !== undefined) {
2497
- const o2 = e.value.split(`
2498
- `), a2 = o2.length - l.limit;
2499
- if (a2 > 0) {
2500
- const g2 = o2.splice(0, a2);
2501
- m3 && (e.full += (e.full === "" ? "" : `
2502
- `) + g2.join(`
2503
- `));
2504
- }
2505
- e.value = o2.join(`
2506
- `);
2507
- }
2508
- d && y();
2509
- }, y = () => {
2510
- for (const e of n3)
2511
- e.result ? e.result.status === "error" ? log.error(e.result.message, { output: r2, secondarySymbol: i2, spacing: 0 }) : log.success(e.result.message, { output: r2, secondarySymbol: i2, spacing: 0 }) : e.value !== "" && h2(e, 0);
2512
- }, B = (e, s) => {
2513
- f2(false), e.result = s, d && y();
2514
- };
2515
- return {
2516
- message(e, s) {
2517
- L(n3[0], e, s);
2518
- },
2519
- group(e) {
2520
- const s = {
2521
- header: e,
2522
- value: "",
2523
- full: ""
2524
- };
2525
- return n3.push(s), {
2526
- message(t2, o2) {
2527
- L(s, t2, o2);
2528
- },
2529
- error(t2) {
2530
- B(s, {
2531
- status: "error",
2532
- message: t2
2533
- });
2534
- },
2535
- success(t2) {
2536
- B(s, {
2537
- status: "success",
2538
- message: t2
2539
- });
2540
- }
2541
- };
2542
- },
2543
- error(e, s) {
2544
- f2(true), log.error(e, { output: r2, secondarySymbol: i2, spacing: 1 }), s?.showLog !== false && T3(), n3.splice(1, n3.length - 1), n3[0].value = "", n3[0].full = "";
2545
- },
2546
- success(e, s) {
2547
- f2(true), log.success(e, { output: r2, secondarySymbol: i2, spacing: 1 }), s?.showLog === true && T3(), n3.splice(1, n3.length - 1), n3[0].value = "", n3[0].full = "";
2548
- }
2549
- };
2550
- };
2551
- var text = (t2) => new n2({
2552
- validate: t2.validate,
2553
- placeholder: t2.placeholder,
2554
- defaultValue: t2.defaultValue,
2555
- initialValue: t2.initialValue,
2556
- output: t2.output,
2557
- signal: t2.signal,
2558
- input: t2.input,
2559
- render() {
2560
- const r2 = t2?.withGuide ?? settings.withGuide, l = `${`${r2 ? `${styleText2("gray", S_BAR)}
2561
- ` : ""}${symbol(this.state)} `}${t2.message}
2562
- `, d = t2.placeholder && t2.placeholder.length > 0 ? styleText2("inverse", t2.placeholder[0]) + styleText2("dim", t2.placeholder.slice(1)) : styleText2(["inverse", "hidden"], "_"), o2 = this.userInput ? this.userInputWithCursor : d, s = this.value ?? "";
2563
- switch (this.state) {
2564
- case "validating": {
2565
- const n3 = r2 ? `${styleText2("cyan", S_BAR)} ` : "", i2 = r2 ? styleText2("cyan", S_BAR_END) : "", c3 = styleText2("dim", o2), $ = styleText2("dim", "Validating...");
2566
- return `${l}${n3}${c3}
2567
- ${i2} ${$}
2568
- `;
2569
- }
2570
- case "error": {
2571
- const n3 = this.error ? ` ${styleText2("yellow", this.error)}` : "", i2 = r2 ? `${styleText2("yellow", S_BAR)} ` : "", c3 = r2 ? styleText2("yellow", S_BAR_END) : "";
2572
- return `${l.trim()}
2573
- ${i2}${o2}
2574
- ${c3}${n3}
2575
- `;
2576
- }
2577
- case "submit": {
2578
- const n3 = s ? `${r2 ? " " : ""}${styleText2("dim", s)}` : "", i2 = r2 ? styleText2("gray", S_BAR) : "";
2579
- return `${l}${i2}${n3}`;
2580
- }
2581
- case "cancel": {
2582
- const n3 = s ? ` ${styleText2(["strikethrough", "dim"], s)}` : "", i2 = r2 ? styleText2("gray", S_BAR) : "";
2583
- return `${l}${i2}${n3}${s.trim() ? `
2584
- ${i2}` : ""}`;
2585
- }
2586
- default: {
2587
- const n3 = r2 ? `${styleText2("cyan", S_BAR)} ` : "", i2 = r2 ? styleText2("cyan", S_BAR_END) : "";
2588
- return `${l}${n3}${o2}
2589
- ${i2}
2590
- `;
2591
- }
2592
- }
2593
- }
2594
- }).prompt();
2595
- export {
2596
- updateSettings,
2597
- unicodeOr,
2598
- unicode,
2599
- text,
2600
- tasks,
2601
- taskLog,
2602
- symbolBar,
2603
- symbol,
2604
- stream,
2605
- spinner,
2606
- settings,
2607
- selectKey,
2608
- select,
2609
- progress,
2610
- path,
2611
- password,
2612
- outro,
2613
- note,
2614
- multiselect,
2615
- multiline,
2616
- log,
2617
- limitOptions,
2618
- isTTY,
2619
- isCancel,
2620
- isCI,
2621
- intro,
2622
- groupMultiselect,
2623
- group,
2624
- formatInstructionFooter,
2625
- date,
2626
- confirm,
2627
- cancel,
2628
- box,
2629
- autocompleteMultiselect,
2630
- autocomplete,
2631
- S_WARN,
2632
- S_SUCCESS,
2633
- S_STEP_SUBMIT,
2634
- S_STEP_ERROR,
2635
- S_STEP_CANCEL,
2636
- S_STEP_ACTIVE,
2637
- S_RADIO_INACTIVE,
2638
- S_RADIO_ACTIVE,
2639
- S_PASSWORD_MASK,
2640
- S_INFO,
2641
- S_ERROR,
2642
- S_CORNER_TOP_RIGHT,
2643
- S_CORNER_TOP_LEFT,
2644
- S_CORNER_BOTTOM_RIGHT,
2645
- S_CORNER_BOTTOM_LEFT,
2646
- S_CONNECT_LEFT,
2647
- S_CHECKBOX_SELECTED,
2648
- S_CHECKBOX_INACTIVE,
2649
- S_CHECKBOX_ACTIVE,
2650
- S_BAR_START_RIGHT,
2651
- S_BAR_START,
2652
- S_BAR_H,
2653
- S_BAR_END_RIGHT,
2654
- S_BAR_END,
2655
- S_BAR,
2656
- SELECT_INSTRUCTIONS,
2657
- MULTISELECT_INSTRUCTIONS,
2658
- CANCEL_SYMBOL
2659
- };