@jordond/kit 0.7.1 → 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 (716) hide show
  1. package/README.md +160 -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.1/io.github.jordond.kit.android.application.gradle.plugin-0.7.1.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.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.1.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.1/io.github.jordond.kit.compose.gradle.plugin-0.7.1.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.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.1.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.1/kit-plugins-0.7.1.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.1/kit-plugins-0.7.1.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.1/kit-settings-0.7.1.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.1/kit-settings-0.7.1.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.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.1.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.1/io.github.jordond.kit.lint.gradle.plugin-0.7.1.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.1/io.github.jordond.kit.release.gradle.plugin-0.7.1.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.1/io.github.jordond.kit.settings.gradle.plugin-0.7.1.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-8pctvjkj.js +0 -186
  318. package/dist/_verb-b1rwwq8f.js +0 -173
  319. package/dist/android-rxm5012p.js +0 -60
  320. package/dist/apply-37atsazn.js +0 -118
  321. package/dist/backup-mmf68rsk.js +0 -67
  322. package/dist/bin-q60acre8.js +0 -15
  323. package/dist/boot-z0xvjet2.js +0 -54
  324. package/dist/build-2neqt771.js +0 -46
  325. package/dist/build-7418nfdd.js +0 -21
  326. package/dist/build-c0y6pjgv.js +0 -53
  327. package/dist/builtins-p4pf9hbc.js +0 -10
  328. package/dist/bump-4rmt4q57.js +0 -202
  329. package/dist/certs-j56f2zv1.js +0 -76
  330. package/dist/changelog-70znsn6a.js +0 -130
  331. package/dist/changelog-9c2f7zcy.js +0 -120
  332. package/dist/check-qzf9ks2k.js +0 -38
  333. package/dist/check-yk8mzca8.js +0 -72
  334. package/dist/clean-8n2j982t.js +0 -93
  335. package/dist/clean-k40p14af.js +0 -237
  336. package/dist/cleanup-hrcvxmh2.js +0 -18
  337. package/dist/clear-xwhv7bxy.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-19me2qqg.js +0 -1056
  346. package/dist/cli-28nya88s.js +0 -73
  347. package/dist/cli-2ja6z124.js +0 -127
  348. package/dist/cli-2nw36t7w.js +0 -135
  349. package/dist/cli-3nqkyv98.js +0 -517
  350. package/dist/cli-4kqc5ywj.js +0 -123
  351. package/dist/cli-4vsj6a7w.js +0 -109
  352. package/dist/cli-507f5c8j.js +0 -97
  353. package/dist/cli-540nme4e.js +0 -46
  354. package/dist/cli-5d61x8vg.js +0 -675
  355. package/dist/cli-5wasc5mr.js +0 -76
  356. package/dist/cli-5ws4pqz1.js +0 -61
  357. package/dist/cli-78x6rdyd.js +0 -202
  358. package/dist/cli-7wvrehng.js +0 -23
  359. package/dist/cli-7wxg8m4q.js +0 -123
  360. package/dist/cli-83zaa5dz.js +0 -67
  361. package/dist/cli-8qgbqa52.js +0 -2043
  362. package/dist/cli-8qgqecpv.js +0 -35
  363. package/dist/cli-a0ghfqeb.js +0 -132
  364. package/dist/cli-b4qnnrsp.js +0 -35
  365. package/dist/cli-d6vjw06z.js +0 -223
  366. package/dist/cli-dbww3ss1.js +0 -479
  367. package/dist/cli-e3jdg5nx.js +0 -234
  368. package/dist/cli-ey6trdpc.js +0 -11
  369. package/dist/cli-f0epa954.js +0 -462
  370. package/dist/cli-f7hwhng0.js +0 -776
  371. package/dist/cli-fqxtcj42.js +0 -75
  372. package/dist/cli-g519ev8e.js +0 -89
  373. package/dist/cli-jkp4kvsr.js +0 -124
  374. package/dist/cli-k3q2s02f.js +0 -54
  375. package/dist/cli-m2zc03pj.js +0 -106
  376. package/dist/cli-p7bb5zr2.js +0 -14
  377. package/dist/cli-p98ch7s2.js +0 -167
  378. package/dist/cli-pd4aspw0.js +0 -208
  379. package/dist/cli-pxa69atq.js +0 -98
  380. package/dist/cli-qq1ktr8q.js +0 -234
  381. package/dist/cli-qsc39jca.js +0 -275
  382. package/dist/cli-re3ntm60.js +0 -48
  383. package/dist/cli-s4xqzg86.js +0 -41
  384. package/dist/cli-sjmx8cqb.js +0 -85
  385. package/dist/cli-vqw9ek9v.js +0 -474
  386. package/dist/cli-w7m2hct3.js +0 -326
  387. package/dist/cli-wrzdcgnt.js +0 -82
  388. package/dist/cli-wvzmjk4c.js +0 -196
  389. package/dist/cli-x7ja9ygh.js +0 -77
  390. package/dist/cli-xs9ge3t2.js +0 -64
  391. package/dist/cli-xtq08c75.js +0 -394
  392. package/dist/cli-y0yebvmg.js +0 -37
  393. package/dist/cli-y3mjprpv.js +0 -31
  394. package/dist/cli-ye4a1asw.js +0 -267
  395. package/dist/cli-z4gcjd7a.js +0 -54
  396. package/dist/cli-zfcp9hzk.js +0 -282
  397. package/dist/cli-zn8nsg3w.js +0 -157
  398. package/dist/cloudflare-vm474s23.js +0 -51
  399. package/dist/command-jwjvb9pb.js +0 -21
  400. package/dist/command-r3jw2m41.js +0 -269
  401. package/dist/command-wqrhr0w2.js +0 -1108
  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-db2be2ww.js +0 -38
  470. package/dist/completion-g8bjf46s.js +0 -36
  471. package/dist/concurrent-vvs84hhn.js +0 -96
  472. package/dist/config/load.d.ts +0 -28
  473. package/dist/config/schema.d.ts +0 -236
  474. package/dist/config-45ts3ey1.js +0 -31
  475. package/dist/config-ra2ybdkx.js +0 -22
  476. package/dist/create-232vc6b4.js +0 -38
  477. package/dist/creds-44ajrfzh.js +0 -34
  478. package/dist/d1-local-jheysy22.js +0 -62
  479. package/dist/deploy-sbdbk7xz.js +0 -18
  480. package/dist/deps-q404mzpf.js +0 -334
  481. package/dist/dev-hq0acmq1.js +0 -114
  482. package/dist/discover-gz594nzn.js +0 -14
  483. package/dist/doctor-xev4sqdt.js +0 -153
  484. package/dist/dotenv-bsk2m68j.js +0 -15
  485. package/dist/dump-bvg8ekkx.js +0 -60
  486. package/dist/entries-2yh20vd4.js +0 -311
  487. package/dist/errors-1fjbr7ee.js +0 -10
  488. package/dist/exec-tr777f9f.js +0 -53
  489. package/dist/export-fqr13qd7.js +0 -65
  490. package/dist/fastlane-5r62mn8v.js +0 -26
  491. package/dist/fastlane-85d4k568.js +0 -38
  492. package/dist/fixes-mqh7f9ds.js +0 -27
  493. package/dist/format-hrad04cj.js +0 -43
  494. package/dist/git-e4ys8tdc.js +0 -36
  495. package/dist/github-rxf67b21.js +0 -95
  496. package/dist/gradle-ac59hga1.js +0 -39
  497. package/dist/index-9mmb130f.js +0 -51
  498. package/dist/index-af01qr87.js +0 -27
  499. package/dist/index-cx34x4np.js +0 -874
  500. package/dist/index-erv82p4z.js +0 -1528
  501. package/dist/index-jqfz6hfy.js +0 -2659
  502. package/dist/index-mm4ht8yh.js +0 -9
  503. package/dist/index-s3ehw02w.js +0 -1610
  504. package/dist/init-bs57n1k0.js +0 -464
  505. package/dist/init-dyd1b74n.js +0 -80
  506. package/dist/init-en85gy2h.js +0 -78
  507. package/dist/install-7sm85xmk.js +0 -50
  508. package/dist/install-dhw82bzn.js +0 -35
  509. package/dist/ios-ftz9d17d.js +0 -50
  510. package/dist/kitref-p727zpk7.js +0 -24
  511. package/dist/kotlin-8ytjqp7e.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/emulator-args.d.ts +0 -16
  528. package/dist/lib/devices/index.d.ts +0 -101
  529. package/dist/lib/devices/pick.d.ts +0 -52
  530. package/dist/lib/devices/statusbar.d.ts +0 -4
  531. package/dist/lib/doctor/checks.d.ts +0 -134
  532. package/dist/lib/doctor/entries.d.ts +0 -34
  533. package/dist/lib/doctor/fixes.d.ts +0 -64
  534. package/dist/lib/doctor/repair.d.ts +0 -18
  535. package/dist/lib/dotenv.d.ts +0 -52
  536. package/dist/lib/env/github.d.ts +0 -32
  537. package/dist/lib/env/init.d.ts +0 -22
  538. package/dist/lib/env/load.d.ts +0 -12
  539. package/dist/lib/env/push-run.d.ts +0 -62
  540. package/dist/lib/env/push.d.ts +0 -54
  541. package/dist/lib/env/render.d.ts +0 -53
  542. package/dist/lib/env/rotate.d.ts +0 -24
  543. package/dist/lib/env/schema.d.ts +0 -69
  544. package/dist/lib/errors.d.ts +0 -14
  545. package/dist/lib/fastlane.d.ts +0 -39
  546. package/dist/lib/fixtures/android.d.ts +0 -33
  547. package/dist/lib/fixtures/config.d.ts +0 -73
  548. package/dist/lib/fixtures/index.d.ts +0 -29
  549. package/dist/lib/fixtures/ios.d.ts +0 -13
  550. package/dist/lib/fixtures/stage.d.ts +0 -37
  551. package/dist/lib/git.d.ts +0 -78
  552. package/dist/lib/image/png.d.ts +0 -39
  553. package/dist/lib/kitref.d.ts +0 -35
  554. package/dist/lib/log.d.ts +0 -17
  555. package/dist/lib/maestro/args.d.ts +0 -23
  556. package/dist/lib/maestro/bin.d.ts +0 -10
  557. package/dist/lib/maestro/command.d.ts +0 -16
  558. package/dist/lib/maestro/lint.d.ts +0 -14
  559. package/dist/lib/maestro/run.d.ts +0 -79
  560. package/dist/lib/maestro/suites.d.ts +0 -24
  561. package/dist/lib/pm.d.ts +0 -13
  562. package/dist/lib/proc.d.ts +0 -83
  563. package/dist/lib/prompt.d.ts +0 -32
  564. package/dist/lib/release/creds.d.ts +0 -50
  565. package/dist/lib/release/listing-images.d.ts +0 -86
  566. package/dist/lib/release/metadata.d.ts +0 -81
  567. package/dist/lib/release/mobile.d.ts +0 -64
  568. package/dist/lib/release/notes.d.ts +0 -15
  569. package/dist/lib/release/preflight.d.ts +0 -30
  570. package/dist/lib/release/promote.d.ts +0 -58
  571. package/dist/lib/release/rollout.d.ts +0 -33
  572. package/dist/lib/release/status.d.ts +0 -52
  573. package/dist/lib/release/version.d.ts +0 -53
  574. package/dist/lib/scaffold.d.ts +0 -104
  575. package/dist/lib/secrets.d.ts +0 -32
  576. package/dist/lib/steps.d.ts +0 -48
  577. package/dist/lib/storeshots/command.d.ts +0 -3
  578. package/dist/lib/storeshots/fonts.d.ts +0 -14
  579. package/dist/lib/storeshots/page/background.d.ts +0 -6
  580. package/dist/lib/storeshots/page/device-frames.d.ts +0 -16
  581. package/dist/lib/storeshots/page/main.d.ts +0 -1
  582. package/dist/lib/storeshots/page/renderer.d.ts +0 -17
  583. package/dist/lib/storeshots/page-bundle.d.ts +0 -7
  584. package/dist/lib/storeshots/plan.d.ts +0 -25
  585. package/dist/lib/storeshots/project.d.ts +0 -169
  586. package/dist/lib/storeshots/render.d.ts +0 -20
  587. package/dist/lib/storeshots/server.d.ts +0 -29
  588. package/dist/lib/storeshots/sizes.d.ts +0 -121
  589. package/dist/lib/storeshots/types.d.ts +0 -397
  590. package/dist/lib/storeshots/write.d.ts +0 -11
  591. package/dist/lib/targets.d.ts +0 -69
  592. package/dist/lib/toml.d.ts +0 -15
  593. package/dist/lib/toolchain.d.ts +0 -59
  594. package/dist/lib/worker.d.ts +0 -128
  595. package/dist/lint-xzb2jaxv.js +0 -43
  596. package/dist/list-3qms77kb.js +0 -61
  597. package/dist/list-c2805zb7.js +0 -34
  598. package/dist/load-1hnv925a.js +0 -27
  599. package/dist/load-jy3j26eg.js +0 -51
  600. package/dist/load-nvf2hj1m.js +0 -170
  601. package/dist/log-g1ebh60s.js +0 -15
  602. package/dist/logs-jvfk9fm9.js +0 -62
  603. package/dist/maestro-6tbytfs6.js +0 -30
  604. package/dist/main-s7a0h69g.js +0 -1747
  605. package/dist/metadata-hpvy9bcy.js +0 -44
  606. package/dist/migrate-t2pqt227.js +0 -38
  607. package/dist/mobile-jfhpfm26.js +0 -40
  608. package/dist/module-kg87yk0v.js +0 -119
  609. package/dist/notes-hscncx9v.js +0 -21
  610. package/dist/open-hdvts4mk.js +0 -73
  611. package/dist/pick-a90zx6sr.js +0 -26
  612. package/dist/picocolors-0dxagz5d.js +0 -6
  613. package/dist/plan-av9jwvvk.js +0 -651
  614. package/dist/pm-ay4nmeps.js +0 -16
  615. package/dist/proc-2km5mhwc.js +0 -37
  616. package/dist/promote-2f9jz0fb.js +0 -290
  617. package/dist/promote-8z6j6x1t.js +0 -63
  618. package/dist/prompt-3wwegvqc.js +0 -15
  619. package/dist/pull-rza3bwrc.js +0 -39
  620. package/dist/push-29fdysqa.js +0 -44
  621. package/dist/push-5k6rqfcs.js +0 -63
  622. package/dist/push-run-znkn6gxf.js +0 -148
  623. package/dist/qa-9xm0sj2w.js +0 -40
  624. package/dist/render-hkvej41k.js +0 -24
  625. package/dist/repair-9j76xj3d.js +0 -104
  626. package/dist/reset-wkgagcgz.js +0 -110
  627. package/dist/restore-b0msh1kh.js +0 -122
  628. package/dist/rollback-3zfvnwt4.js +0 -134
  629. package/dist/rollout-9kvwswvw.js +0 -188
  630. package/dist/rollout-b2xm5r5r.js +0 -56
  631. package/dist/rotate-b52s310n.js +0 -168
  632. package/dist/rotate-ba6anxzn.js +0 -80
  633. package/dist/run-jzqzb203.js +0 -56
  634. package/dist/scaffold-5mzc135g.js +0 -37
  635. package/dist/secrets-ed4qtmyb.js +0 -24
  636. package/dist/seed-awcycfbj.js +0 -37
  637. package/dist/service-edjckedw.js +0 -111
  638. package/dist/shots-c9w1qq2h.js +0 -46
  639. package/dist/show-4kc2sevf.js +0 -50
  640. package/dist/sizes-3kpjxm9h.js +0 -51
  641. package/dist/status-jtxkbc62.js +0 -41
  642. package/dist/status-w6wr9403.js +0 -29
  643. package/dist/statusbar-efr97b9e.js +0 -55
  644. package/dist/statusbar-m5h8rx00.js +0 -15
  645. package/dist/steps-1ptk2gnz.js +0 -22
  646. package/dist/sync-mza36nse.js +0 -53
  647. package/dist/target-zgg601fm.js +0 -78
  648. package/dist/targets-gprq0d5c.js +0 -32
  649. package/dist/test-gnmatth4.js +0 -31
  650. package/dist/toml-3fxsdkhr.js +0 -14
  651. package/dist/toolchain-wd7hh812.js +0 -41
  652. package/dist/typecheck-peqg5a5c.js +0 -28
  653. package/dist/uninstall-0p4qcvpn.js +0 -43
  654. package/dist/upgrade-56bzvms8.js +0 -127
  655. package/dist/version-mnds3q7r.js +0 -39
  656. package/dist/worker-thvksjg2.js +0 -59
  657. package/dist/wrangler-f2rf697q.js +0 -46
  658. package/dist/xcode-qqb04c3a.js +0 -75
  659. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.1/io.github.jordond.kit.android.application.gradle.plugin-0.7.1.pom.md5 +0 -1
  660. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.1/io.github.jordond.kit.android.application.gradle.plugin-0.7.1.pom.sha1 +0 -1
  661. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.1/io.github.jordond.kit.android.application.gradle.plugin-0.7.1.pom.sha256 +0 -1
  662. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.1/io.github.jordond.kit.android.application.gradle.plugin-0.7.1.pom.sha512 +0 -1
  663. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.1.pom.md5 +0 -1
  664. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.1.pom.sha1 +0 -1
  665. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.1.pom.sha256 +0 -1
  666. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.1.pom.sha512 +0 -1
  667. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.1/io.github.jordond.kit.compose.gradle.plugin-0.7.1.pom.md5 +0 -1
  668. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.1/io.github.jordond.kit.compose.gradle.plugin-0.7.1.pom.sha1 +0 -1
  669. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.1/io.github.jordond.kit.compose.gradle.plugin-0.7.1.pom.sha256 +0 -1
  670. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.1/io.github.jordond.kit.compose.gradle.plugin-0.7.1.pom.sha512 +0 -1
  671. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.1.pom.md5 +0 -1
  672. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.1.pom.sha1 +0 -1
  673. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.1.pom.sha256 +0 -1
  674. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.1.pom.sha512 +0 -1
  675. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.module.md5 +0 -1
  676. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.module.sha1 +0 -1
  677. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.module.sha256 +0 -1
  678. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.module.sha512 +0 -1
  679. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.pom.md5 +0 -1
  680. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.pom.sha1 +0 -1
  681. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.pom.sha256 +0 -1
  682. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.pom.sha512 +0 -1
  683. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.module.md5 +0 -1
  684. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.module.sha1 +0 -1
  685. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.module.sha256 +0 -1
  686. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.module.sha512 +0 -1
  687. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.pom.md5 +0 -1
  688. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.pom.sha1 +0 -1
  689. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.pom.sha256 +0 -1
  690. package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.pom.sha512 +0 -1
  691. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.1.pom.md5 +0 -1
  692. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.1.pom.sha1 +0 -1
  693. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.1.pom.sha256 +0 -1
  694. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.1.pom.sha512 +0 -1
  695. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.1/io.github.jordond.kit.lint.gradle.plugin-0.7.1.pom.md5 +0 -1
  696. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.1/io.github.jordond.kit.lint.gradle.plugin-0.7.1.pom.sha1 +0 -1
  697. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.1/io.github.jordond.kit.lint.gradle.plugin-0.7.1.pom.sha256 +0 -1
  698. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.1/io.github.jordond.kit.lint.gradle.plugin-0.7.1.pom.sha512 +0 -1
  699. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.1/io.github.jordond.kit.release.gradle.plugin-0.7.1.pom.md5 +0 -1
  700. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.1/io.github.jordond.kit.release.gradle.plugin-0.7.1.pom.sha1 +0 -1
  701. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.1/io.github.jordond.kit.release.gradle.plugin-0.7.1.pom.sha256 +0 -1
  702. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.1/io.github.jordond.kit.release.gradle.plugin-0.7.1.pom.sha512 +0 -1
  703. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.1/io.github.jordond.kit.settings.gradle.plugin-0.7.1.pom.md5 +0 -1
  704. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.1/io.github.jordond.kit.settings.gradle.plugin-0.7.1.pom.sha1 +0 -1
  705. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.1/io.github.jordond.kit.settings.gradle.plugin-0.7.1.pom.sha256 +0 -1
  706. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.1/io.github.jordond.kit.settings.gradle.plugin-0.7.1.pom.sha512 +0 -1
  707. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.jar → 0.8.0/kit-plugins-0.8.0.jar} +0 -0
  708. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.jar.md5 → 0.8.0/kit-plugins-0.8.0.jar.md5} +0 -0
  709. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.jar.sha1 → 0.8.0/kit-plugins-0.8.0.jar.sha1} +0 -0
  710. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.jar.sha256 → 0.8.0/kit-plugins-0.8.0.jar.sha256} +0 -0
  711. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.jar.sha512 → 0.8.0/kit-plugins-0.8.0.jar.sha512} +0 -0
  712. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.jar → 0.8.0/kit-settings-0.8.0.jar} +0 -0
  713. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.jar.md5 → 0.8.0/kit-settings-0.8.0.jar.md5} +0 -0
  714. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.jar.sha1 → 0.8.0/kit-settings-0.8.0.jar.sha1} +0 -0
  715. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.jar.sha256 → 0.8.0/kit-settings-0.8.0.jar.sha256} +0 -0
  716. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.jar.sha512 → 0.8.0/kit-settings-0.8.0.jar.sha512} +0 -0
@@ -1,1528 +0,0 @@
1
- // @bun
2
- import"./cli-re3ntm60.js";
3
-
4
- // node_modules/@bomb.sh/tab/dist/powershell-C1q3FW2e.mjs
5
- function t(t2, n) {
6
- return `#compdef ${t2}
7
- compdef _${t2} ${t2}
8
-
9
- # zsh completion for ${t2} -*- shell-script -*-
10
-
11
- __${t2}_debug() {
12
- local file="$BASH_COMP_DEBUG_FILE"
13
- if [[ -n \${file} ]]; then
14
- echo "$*" >> "\${file}"
15
- fi
16
- }
17
-
18
- _${t2}() {
19
- local shellCompDirectiveError=${a.ShellCompDirectiveError}
20
- local shellCompDirectiveNoSpace=${a.ShellCompDirectiveNoSpace}
21
- local shellCompDirectiveNoFileComp=${a.ShellCompDirectiveNoFileComp}
22
- local shellCompDirectiveFilterFileExt=${a.ShellCompDirectiveFilterFileExt}
23
- local shellCompDirectiveFilterDirs=${a.ShellCompDirectiveFilterDirs}
24
- local shellCompDirectiveKeepOrder=${a.ShellCompDirectiveKeepOrder}
25
-
26
- local lastParam lastChar flagPrefix requestComp out directive comp lastComp noSpace keepOrder
27
- local -a completions
28
-
29
- __${t2}_debug "\\n========= starting completion logic =========="
30
- __${t2}_debug "CURRENT: \${CURRENT}, words[*]: \${words[*]}"
31
-
32
- # The user could have moved the cursor backwards on the command-line.
33
- # We need to trigger completion from the $CURRENT location, so we need
34
- # to truncate the command-line ($words) up to the $CURRENT location.
35
- # (We cannot use $CURSOR as its value does not work when a command is an alias.)
36
- words=( "\${=words[1,CURRENT]}" )
37
- __${t2}_debug "Truncated words[*]: \${words[*]},"
38
-
39
- lastParam=\${words[-1]}
40
- lastChar=\${lastParam[-1]}
41
- __${t2}_debug "lastParam: \${lastParam}, lastChar: \${lastChar}"
42
-
43
- # For zsh, when completing a flag with an = (e.g., ${t2} -n=<TAB>)
44
- # completions must be prefixed with the flag
45
- setopt local_options BASH_REMATCH
46
- if [[ "\${lastParam}" =~ '-.*=' ]]; then
47
- # We are dealing with a flag with an =
48
- flagPrefix="-P \${BASH_REMATCH}"
49
- fi
50
-
51
- # Prepare the command to obtain completions, ensuring arguments are quoted for eval
52
- local -a args_to_quote=("\${(@)words[2,-1]}")
53
- if [ "\${lastChar}" = "" ] && [ "\${args_to_quote[-1]}" != "" ]; then
54
- # If the last parameter is complete (there is a space following it)
55
- # We add an extra empty parameter so we can indicate this to the go completion code.
56
- __${t2}_debug "Adding extra empty parameter"
57
- args_to_quote+=("")
58
- fi
59
-
60
- # Use Zsh's (q) flag to quote each argument safely for eval
61
- local quoted_args=("\${(@q)args_to_quote}")
62
-
63
- # Join the main command and the quoted arguments into a single string for eval
64
- requestComp="${n} complete -- \${quoted_args[*]}"
65
-
66
- __${t2}_debug "About to call: eval \${requestComp}"
67
-
68
- # Use eval to handle any environment variables and such
69
- out=$(eval \${requestComp} 2>/dev/null)
70
- __${t2}_debug "completion output: \${out}"
71
-
72
- # Extract the directive integer following a : from the last line
73
- local lastLine
74
- while IFS='
75
- ' read -r line; do
76
- lastLine=\${line}
77
- done < <(printf "%s
78
- " "\${out[@]}")
79
- __${t2}_debug "last line: \${lastLine}"
80
-
81
- if [ "\${lastLine[1]}" = : ]; then
82
- directive=\${lastLine[2,-1]}
83
- # Remove the directive including the : and the newline
84
- local suffix
85
- (( suffix=\${#lastLine}+2))
86
- out=\${out[1,-$suffix]}
87
- else
88
- # There is no directive specified. Leave $out as is.
89
- __${t2}_debug "No directive found. Setting to default"
90
- directive=0
91
- fi
92
-
93
- __${t2}_debug "directive: \${directive}"
94
- __${t2}_debug "completions: \${out}"
95
- __${t2}_debug "flagPrefix: \${flagPrefix}"
96
-
97
- if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then
98
- __${t2}_debug "Completion received error. Ignoring completions."
99
- return
100
- fi
101
-
102
- local activeHelpMarker="%"
103
- local endIndex=\${#activeHelpMarker}
104
- local startIndex=$((\${#activeHelpMarker}+1))
105
- local hasActiveHelp=0
106
- while IFS='
107
- ' read -r comp; do
108
- # Check if this is an activeHelp statement (i.e., prefixed with $activeHelpMarker)
109
- if [ "\${comp[1,$endIndex]}" = "$activeHelpMarker" ];then
110
- __${t2}_debug "ActiveHelp found: $comp"
111
- comp="\${comp[$startIndex,-1]}"
112
- if [ -n "$comp" ]; then
113
- compadd -x "\${comp}"
114
- __${t2}_debug "ActiveHelp will need delimiter"
115
- hasActiveHelp=1
116
- fi
117
- continue
118
- fi
119
-
120
- if [ -n "$comp" ]; then
121
- # If requested, completions are returned with a description.
122
- # The description is preceded by a TAB character.
123
- # For zsh's _describe, we need to use a : instead of a TAB.
124
- # We first need to escape any : as part of the completion itself.
125
- comp=\${comp//:/\\:}
126
-
127
- local tab="$(printf '\\t')"
128
- comp=\${comp//$tab/:}
129
-
130
- __${t2}_debug "Adding completion: \${comp}"
131
- completions+=\${comp}
132
- lastComp=$comp
133
- fi
134
- done < <(printf "%s
135
- " "\${out[@]}")
136
-
137
- # Add a delimiter after the activeHelp statements, but only if:
138
- # - there are completions following the activeHelp statements, or
139
- # - file completion will be performed (so there will be choices after the activeHelp)
140
- if [ $hasActiveHelp -eq 1 ]; then
141
- if [ \${#completions} -ne 0 ] || [ $((directive & shellCompDirectiveNoFileComp)) -eq 0 ]; then
142
- __${t2}_debug "Adding activeHelp delimiter"
143
- compadd -x "--"
144
- hasActiveHelp=0
145
- fi
146
- fi
147
-
148
- if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then
149
- __${t2}_debug "Activating nospace."
150
- noSpace="-S ''"
151
- fi
152
-
153
- if [ $((directive & shellCompDirectiveKeepOrder)) -ne 0 ]; then
154
- __${t2}_debug "Activating keep order."
155
- keepOrder="-V"
156
- fi
157
-
158
- if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then
159
- # File extension filtering
160
- local filteringCmd
161
- filteringCmd='_files'
162
- for filter in \${completions[@]}; do
163
- if [ \${filter[1]} != '*' ]; then
164
- # zsh requires a glob pattern to do file filtering
165
- filter="\\*.$filter"
166
- fi
167
- filteringCmd+=" -g $filter"
168
- done
169
- filteringCmd+=" \${flagPrefix}"
170
-
171
- __${t2}_debug "File filtering command: $filteringCmd"
172
- _arguments '*:filename:'"$filteringCmd"
173
- elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then
174
- # File completion for directories only
175
- local subdir
176
- subdir="\${completions[1]}"
177
- if [ -n "$subdir" ]; then
178
- __${t2}_debug "Listing directories in $subdir"
179
- pushd "\${subdir}" >/dev/null 2>&1
180
- else
181
- __${t2}_debug "Listing directories in ."
182
- fi
183
-
184
- local result
185
- _arguments '*:dirname:_files -/'" \${flagPrefix}"
186
- result=$?
187
- if [ -n "$subdir" ]; then
188
- popd >/dev/null 2>&1
189
- fi
190
- return $result
191
- else
192
- __${t2}_debug "Calling _describe"
193
- if eval _describe $keepOrder "completions" completions -Q \${flagPrefix} \${noSpace}; then
194
- __${t2}_debug "_describe found some completions"
195
-
196
- # Return the success of having called _describe
197
- return 0
198
- else
199
- __${t2}_debug "_describe did not find completions."
200
- __${t2}_debug "Checking if we should do file completion."
201
- if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then
202
- __${t2}_debug "deactivating file completion"
203
-
204
- # Return 0 to indicate completion is finished and prevent zsh from
205
- # trying other completion algorithms (which could cause hanging).
206
- # We use NoFileComp directive to explicitly disable file completion.
207
- return 0
208
- else
209
- # Perform file completion
210
- __${t2}_debug "Activating file completion"
211
-
212
- # We must return the result of this command, so it must be the
213
- # last command, or else we must store its result to return it.
214
- _arguments '*:filename:_files'" \${flagPrefix}"
215
- fi
216
- fi
217
- fi
218
- }
219
-
220
- # don't run the completion function when being sourced or eval-ed
221
- if [ "\${funcstack[1]}" = "_${t2}" ]; then
222
- _${t2}
223
- fi
224
- `;
225
- }
226
- function n(t2, n2) {
227
- let r = t2.replace(/[-:]/g, `_`);
228
- return `# bash completion for ${t2}
229
-
230
- # Define shell completion directives
231
- readonly ShellCompDirectiveError=${a.ShellCompDirectiveError}
232
- readonly ShellCompDirectiveNoSpace=${a.ShellCompDirectiveNoSpace}
233
- readonly ShellCompDirectiveNoFileComp=${a.ShellCompDirectiveNoFileComp}
234
- readonly ShellCompDirectiveFilterFileExt=${a.ShellCompDirectiveFilterFileExt}
235
- readonly ShellCompDirectiveFilterDirs=${a.ShellCompDirectiveFilterDirs}
236
- readonly ShellCompDirectiveKeepOrder=${a.ShellCompDirectiveKeepOrder}
237
-
238
- # Function to debug completion
239
- __${r}_debug() {
240
- if [[ -n \${BASH_COMP_DEBUG_FILE:-} ]]; then
241
- echo "$*" >> "\${BASH_COMP_DEBUG_FILE}"
242
- fi
243
- }
244
-
245
- # Function to handle completions
246
- __${r}_complete() {
247
- local cur prev words cword
248
- _get_comp_words_by_ref -n "=:" cur prev words cword
249
-
250
- local requestComp out directive
251
-
252
- # Build the command to get completions
253
- requestComp="${n2} complete -- \${words[@]:1}"
254
-
255
- # Add an empty parameter if the last parameter is complete
256
- if [[ -z "$cur" ]]; then
257
- requestComp="$requestComp ''"
258
- fi
259
-
260
- # Get completions from the program
261
- out=$(eval "$requestComp" 2>/dev/null)
262
-
263
- # Extract directive if present
264
- directive=0
265
- if [[ "$out" == *:* ]]; then
266
- directive=\${out##*:}
267
- out=\${out%:*}
268
- fi
269
-
270
- # Process completions based on directive
271
- if [[ $((directive & $ShellCompDirectiveError)) -ne 0 ]]; then
272
- # Error, no completion
273
- return
274
- fi
275
-
276
- # Apply directives
277
- if [[ $((directive & $ShellCompDirectiveNoSpace)) -ne 0 ]]; then
278
- compopt -o nospace
279
- fi
280
- if [[ $((directive & $ShellCompDirectiveKeepOrder)) -ne 0 ]]; then
281
- compopt -o nosort
282
- fi
283
- if [[ $((directive & $ShellCompDirectiveNoFileComp)) -ne 0 ]]; then
284
- compopt +o default
285
- fi
286
-
287
- # Handle file extension filtering
288
- if [[ $((directive & $ShellCompDirectiveFilterFileExt)) -ne 0 ]]; then
289
- local filter=""
290
- for ext in $out; do
291
- filter="$filter|$ext"
292
- done
293
- filter="\\.($filter)"
294
- compopt -o filenames
295
- COMPREPLY=( $(compgen -f -X "!$filter" -- "$cur") )
296
- return
297
- fi
298
-
299
- # Handle directory filtering
300
- if [[ $((directive & $ShellCompDirectiveFilterDirs)) -ne 0 ]]; then
301
- compopt -o dirnames
302
- COMPREPLY=( $(compgen -d -- "$cur") )
303
- return
304
- fi
305
-
306
- # Process completions
307
- local IFS=$'\\n'
308
- local tab=$(printf '\\t')
309
-
310
- # Parse completions with descriptions
311
- local completions=()
312
- while read -r comp; do
313
- if [[ "$comp" == *$tab* ]]; then
314
- # Split completion and description
315
- local value=\${comp%%$tab*}
316
- local desc=\${comp#*$tab}
317
- completions+=("$value")
318
- else
319
- completions+=("$comp")
320
- fi
321
- done <<< "$out"
322
-
323
- # Return completions
324
- COMPREPLY=( $(compgen -W "\${completions[*]}" -- "$cur") )
325
- }
326
-
327
- # Register completion function
328
- complete -F __${r}_complete ${t2}
329
- `;
330
- }
331
- function r(t2, n2) {
332
- let r2 = t2.replace(/[-:]/g, `_`), i = a.ShellCompDirectiveError, a2 = a.ShellCompDirectiveNoSpace, o = a.ShellCompDirectiveNoFileComp, s = a.ShellCompDirectiveFilterFileExt, c = a.ShellCompDirectiveFilterDirs;
333
- return `# fish completion for ${t2} -*- shell-script -*-
334
-
335
- function __${r2}_debug
336
- set -l file "$BASH_COMP_DEBUG_FILE"
337
- if test -n "$file"
338
- echo "$argv" >> $file
339
- end
340
- end
341
-
342
- function __${r2}_perform_completion
343
- __${r2}_debug "Starting __${r2}_perform_completion"
344
-
345
- # Extract all args except the last one
346
- set -l args (commandline -opc)
347
- # Extract the token currently being completed (may be empty on a trailing space)
348
- set -l lastArg (commandline -ct)
349
-
350
- __${r2}_debug "args: $args"
351
- __${r2}_debug "last arg: $lastArg"
352
-
353
- # Pass each arg as its own token (no string join/eval, which would collapse multi-segment paths); quote "$lastArg" so an empty trailing token is still sent.
354
- __${r2}_debug "Calling ${n2} complete -- $args[2..-1] $lastArg"
355
- set -l results (${n2} complete -- $args[2..-1] "$lastArg" 2> /dev/null)
356
-
357
- # Some programs may output extra empty lines after the directive.
358
- # Let's ignore them or else it will break completion.
359
- # Ref: https://github.com/spf13/cobra/issues/1279
360
- for line in $results[-1..1]
361
- if test (string trim -- $line) = ""
362
- # Found an empty line, remove it
363
- set results $results[1..-2]
364
- else
365
- # Found non-empty line, we have our proper output
366
- break
367
- end
368
- end
369
-
370
- set -l comps $results[1..-2]
371
- set -l directiveLine $results[-1]
372
-
373
- # For Fish, when completing a flag with an = (e.g., <program> -n=<TAB>)
374
- # completions must be prefixed with the flag
375
- set -l flagPrefix (string match -r -- '-.*=' "$lastArg")
376
-
377
- __${r2}_debug "Comps: $comps"
378
- __${r2}_debug "DirectiveLine: $directiveLine"
379
- __${r2}_debug "flagPrefix: $flagPrefix"
380
-
381
- for comp in $comps
382
- printf "%s%s\\n" "$flagPrefix" "$comp"
383
- end
384
-
385
- printf "%s\\n" "$directiveLine"
386
- end
387
-
388
- # This function limits calls to __${r2}_perform_completion, by caching the result
389
- function __${r2}_perform_completion_once
390
- __${r2}_debug "Starting __${r2}_perform_completion_once"
391
-
392
- if test -n "$__${r2}_perform_completion_once_result"
393
- __${r2}_debug "Seems like a valid result already exists, skipping __${r2}_perform_completion"
394
- return 0
395
- end
396
-
397
- set --global __${r2}_perform_completion_once_result (__${r2}_perform_completion)
398
- if test -z "$__${r2}_perform_completion_once_result"
399
- __${r2}_debug "No completions, probably due to a failure"
400
- return 1
401
- end
402
-
403
- __${r2}_debug "Performed completions and set __${r2}_perform_completion_once_result"
404
- return 0
405
- end
406
-
407
- # This function is used to clear the cached result after completions are run
408
- function __${r2}_clear_perform_completion_once_result
409
- __${r2}_debug ""
410
- __${r2}_debug "========= clearing previously set __${r2}_perform_completion_once_result variable =========="
411
- set --erase __${r2}_perform_completion_once_result
412
- __${r2}_debug "Successfully erased the variable __${r2}_perform_completion_once_result"
413
- end
414
-
415
- function __${r2}_requires_order_preservation
416
- __${r2}_debug ""
417
- __${r2}_debug "========= checking if order preservation is required =========="
418
-
419
- __${r2}_perform_completion_once
420
- if test -z "$__${r2}_perform_completion_once_result"
421
- __${r2}_debug "Error determining if order preservation is required"
422
- return 1
423
- end
424
-
425
- set -l directive (string sub --start 2 $__${r2}_perform_completion_once_result[-1])
426
- __${r2}_debug "Directive is: $directive"
427
-
428
- set -l shellCompDirectiveKeepOrder ${a.ShellCompDirectiveKeepOrder}
429
- set -l keeporder (math (math --scale 0 $directive / $shellCompDirectiveKeepOrder) % 2)
430
- __${r2}_debug "Keeporder is: $keeporder"
431
-
432
- if test $keeporder -ne 0
433
- __${r2}_debug "This does require order preservation"
434
- return 0
435
- end
436
-
437
- __${r2}_debug "This doesn't require order preservation"
438
- return 1
439
- end
440
-
441
- # This function does two things:
442
- # - Obtain the completions and store them in the global __${r2}_comp_results
443
- # - Return false if file completion should be performed
444
- function __${r2}_prepare_completions
445
- __${r2}_debug ""
446
- __${r2}_debug "========= starting completion logic =========="
447
-
448
- # Start fresh
449
- set --erase __${r2}_comp_results
450
-
451
- __${r2}_perform_completion_once
452
- __${r2}_debug "Completion results: $__${r2}_perform_completion_once_result"
453
-
454
- if test -z "$__${r2}_perform_completion_once_result"
455
- __${r2}_debug "No completion, probably due to a failure"
456
- # Might as well do file completion, in case it helps
457
- return 1
458
- end
459
-
460
- set -l directive (string sub --start 2 $__${r2}_perform_completion_once_result[-1])
461
- set --global __${r2}_comp_results $__${r2}_perform_completion_once_result[1..-2]
462
-
463
- __${r2}_debug "Completions are: $__${r2}_comp_results"
464
- __${r2}_debug "Directive is: $directive"
465
-
466
- set -l shellCompDirectiveError ${i}
467
- set -l shellCompDirectiveNoSpace ${a2}
468
- set -l shellCompDirectiveNoFileComp ${o}
469
- set -l shellCompDirectiveFilterFileExt ${s}
470
- set -l shellCompDirectiveFilterDirs ${c}
471
-
472
- if test -z "$directive"
473
- set directive 0
474
- end
475
-
476
- set -l compErr (math (math --scale 0 $directive / $shellCompDirectiveError) % 2)
477
- if test $compErr -eq 1
478
- __${r2}_debug "Received error directive: aborting."
479
- # Might as well do file completion, in case it helps
480
- return 1
481
- end
482
-
483
- set -l filefilter (math (math --scale 0 $directive / $shellCompDirectiveFilterFileExt) % 2)
484
- set -l dirfilter (math (math --scale 0 $directive / $shellCompDirectiveFilterDirs) % 2)
485
- if test $filefilter -eq 1; or test $dirfilter -eq 1
486
- __${r2}_debug "File extension filtering or directory filtering not supported"
487
- # Do full file completion instead
488
- return 1
489
- end
490
-
491
- set -l nospace (math (math --scale 0 $directive / $shellCompDirectiveNoSpace) % 2)
492
- set -l nofiles (math (math --scale 0 $directive / $shellCompDirectiveNoFileComp) % 2)
493
-
494
- __${r2}_debug "nospace: $nospace, nofiles: $nofiles"
495
-
496
- # If we want to prevent a space, or if file completion is NOT disabled,
497
- # we need to count the number of valid completions.
498
- # To do so, we will filter on prefix as the completions we have received
499
- # may not already be filtered so as to allow fish to match on different
500
- # criteria than the prefix.
501
- if test $nospace -ne 0; or test $nofiles -eq 0
502
- set -l prefix (commandline -t | string escape --style=regex)
503
- __${r2}_debug "prefix: $prefix"
504
-
505
- set -l completions (string match -r -- "^$prefix.*" $__${r2}_comp_results)
506
- set --global __${r2}_comp_results $completions
507
- __${r2}_debug "Filtered completions are: $__${r2}_comp_results"
508
-
509
- # Important not to quote the variable for count to work
510
- set -l numComps (count $__${r2}_comp_results)
511
- __${r2}_debug "numComps: $numComps"
512
-
513
- if test $numComps -eq 1; and test $nospace -ne 0
514
- # We must first split on \\t to get rid of the descriptions to be
515
- # able to check what the actual completion will be.
516
- # We don't need descriptions anyway since there is only a single
517
- # real completion which the shell will expand immediately.
518
- set -l split (string split --max 1 "\\t" $__${r2}_comp_results[1])
519
-
520
- # Fish won't add a space if the completion ends with any
521
- # of the following characters: @=/:.,
522
- set -l lastChar (string sub -s -1 -- $split)
523
- if not string match -r -q "[@=/:.,]" -- "$lastChar"
524
- # In other cases, to support the "nospace" directive we trick the shell
525
- # by outputting an extra, longer completion.
526
- __${r2}_debug "Adding second completion to perform nospace directive"
527
- set --global __${r2}_comp_results $split[1] $split[1].
528
- __${r2}_debug "Completions are now: $__${r2}_comp_results"
529
- end
530
- end
531
-
532
- if test $numComps -eq 0; and test $nofiles -eq 0
533
- # To be consistent with bash and zsh, we only trigger file
534
- # completion when there are no other completions
535
- __${r2}_debug "Requesting file completion"
536
- return 1
537
- end
538
- end
539
-
540
- return 0
541
- end
542
-
543
- # Since Fish completions are only loaded once the user triggers them, we trigger them ourselves
544
- # so we can properly delete any completions provided by another script.
545
- # Only do this if the program can be found, or else fish may print some errors; besides,
546
- # the existing completions will only be loaded if the program can be found.
547
- if type -q "${t2}"
548
- # The space after the program name is essential to trigger completion for the program
549
- # and not completion of the program name itself.
550
- # Also, we use '> /dev/null 2>&1' since '&>' is not supported in older versions of fish.
551
- complete --do-complete "${t2} " > /dev/null 2>&1
552
- end
553
-
554
- # Remove any pre-existing completions for the program since we will be handling all of them.
555
- complete -c ${t2} -e
556
-
557
- # This will get called after the two calls below and clear the cached result
558
- complete -c ${t2} -n '__${r2}_clear_perform_completion_once_result'
559
- # The call to __${r2}_prepare_completions will setup __${r2}_comp_results
560
- # which provides the program's completion choices.
561
- # If this doesn't require order preservation, we don't use the -k flag
562
- complete -c ${t2} -n 'not __${r2}_requires_order_preservation && __${r2}_prepare_completions' -f -a '$__${r2}_comp_results'
563
- # Otherwise we use the -k flag
564
- complete -k -c ${t2} -n '__${r2}_requires_order_preservation && __${r2}_prepare_completions' -f -a '$__${r2}_comp_results'
565
- `;
566
- }
567
- function i(t2, n2) {
568
- let r2 = t2.replace(/[-:]/g, `_`);
569
- return `# powershell completion for ${t2} -*- shell-script -*-
570
-
571
- [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
572
- function __${t2}_debug {
573
- if ($env:BASH_COMP_DEBUG_FILE) {
574
- "$args" | Out-File -Append -FilePath "$env:BASH_COMP_DEBUG_FILE"
575
- }
576
- }
577
-
578
- filter __${t2}_escapeStringWithSpecialChars {
579
- $_ -replace '\\s|#|@|\\$|;|,|''|\\{|\\}|\\(|\\)|"|\\||<|>|&','\`$&'
580
- }
581
-
582
- [scriptblock]$__${r2}CompleterBlock = {
583
- param(
584
- $WordToComplete,
585
- $CommandAst,
586
- $CursorPosition
587
- )
588
-
589
- # Get the current command line and convert into a string
590
- $Command = $CommandAst.CommandElements
591
- $Command = "$Command"
592
-
593
- __${t2}_debug ""
594
- __${t2}_debug "========= starting completion logic =========="
595
- __${t2}_debug "WordToComplete: $WordToComplete Command: $Command CursorPosition: $CursorPosition"
596
-
597
- # The user could have moved the cursor backwards on the command-line.
598
- # We need to trigger completion from the $CursorPosition location, so we need
599
- # to truncate the command-line ($Command) up to the $CursorPosition location.
600
- # Make sure the $Command is longer then the $CursorPosition before we truncate.
601
- # This happens because the $Command does not include the last space.
602
- if ($Command.Length -gt $CursorPosition) {
603
- $Command = $Command.Substring(0, $CursorPosition)
604
- }
605
- __${t2}_debug "Truncated command: $Command"
606
-
607
- $ShellCompDirectiveError=${a.ShellCompDirectiveError}
608
- $ShellCompDirectiveNoSpace=${a.ShellCompDirectiveNoSpace}
609
- $ShellCompDirectiveNoFileComp=${a.ShellCompDirectiveNoFileComp}
610
- $ShellCompDirectiveFilterFileExt=${a.ShellCompDirectiveFilterFileExt}
611
- $ShellCompDirectiveFilterDirs=${a.ShellCompDirectiveFilterDirs}
612
- $ShellCompDirectiveKeepOrder=${a.ShellCompDirectiveKeepOrder}
613
-
614
- # Prepare the command to request completions for the program.
615
- # Split the command at the first space to separate the program and arguments.
616
- $Program, $Arguments = $Command.Split(" ", 2)
617
-
618
- $QuotedArgs = ($Arguments -split ' ' | ForEach-Object { "'" + ($_ -replace "'", "''") + "'" }) -join ' '
619
- __${t2}_debug "QuotedArgs: $QuotedArgs"
620
-
621
- $RequestComp = "& ${n2} complete '--' $QuotedArgs"
622
- __${t2}_debug "RequestComp: $RequestComp"
623
-
624
- # we cannot use $WordToComplete because it
625
- # has the wrong values if the cursor was moved
626
- # so use the last argument
627
- if ($WordToComplete -ne "" ) {
628
- $WordToComplete = $Arguments.Split(" ")[-1]
629
- }
630
- __${t2}_debug "New WordToComplete: $WordToComplete"
631
-
632
-
633
- # Check for flag with equal sign
634
- $IsEqualFlag = ($WordToComplete -Like "--*=*" )
635
- if ( $IsEqualFlag ) {
636
- __${t2}_debug "Completing equal sign flag"
637
- # Remove the flag part
638
- $Flag, $WordToComplete = $WordToComplete.Split("=", 2)
639
- }
640
- $HasTrailingEmptyArg = $QuotedArgs -match "(^| )''$"
641
- __${t2}_debug "HasTrailingEmptyArg: $HasTrailingEmptyArg"
642
-
643
- if ( $WordToComplete -eq "" -And ( -Not $IsEqualFlag ) -And ( -Not $HasTrailingEmptyArg )) {
644
- # If the last parameter is complete (there is a space following it)
645
- # We add an extra empty parameter so we can indicate this to the go method.
646
- __${t2}_debug "Adding extra empty parameter"
647
- # PowerShell 7.2+ changed the way how the arguments are passed to executables,
648
- # so for pre-7.2 or when Legacy argument passing is enabled we need to use
649
- if ($PSVersionTable.PsVersion -lt [version]'7.2.0' -or
650
- ($PSVersionTable.PsVersion -lt [version]'7.3.0' -and -not [ExperimentalFeature]::IsEnabled("PSNativeCommandArgumentPassing")) -or
651
- (($PSVersionTable.PsVersion -ge [version]'7.3.0' -or [ExperimentalFeature]::IsEnabled("PSNativeCommandArgumentPassing")) -and
652
- $PSNativeCommandArgumentPassing -eq 'Legacy')) {
653
- $RequestComp="$RequestComp" + ' \`"\`"'
654
- } else {
655
- $RequestComp = "$RequestComp" + ' ""'
656
- }
657
- }
658
-
659
- __${t2}_debug "Calling $RequestComp"
660
- # First disable ActiveHelp which is not supported for Powershell
661
- $env:ActiveHelp = 0
662
-
663
- # call the command store the output in $out and redirect stderr and stdout to null
664
- # $Out is an array contains each line per element
665
- Invoke-Expression -OutVariable out "$RequestComp" 2>&1 | Out-Null
666
-
667
- # get directive from last line
668
- [int]$Directive = $Out[-1].TrimStart(':')
669
- if ($Directive -eq "") {
670
- # There is no directive specified
671
- $Directive = 0
672
- }
673
- __${t2}_debug "The completion directive is: $Directive"
674
-
675
- # remove directive (last element) from out
676
- $Out = $Out | Where-Object { $_ -ne $Out[-1] }
677
- __${t2}_debug "The completions are: $Out"
678
-
679
- if (($Directive -band $ShellCompDirectiveError) -ne 0 ) {
680
- # Error code. No completion.
681
- __${t2}_debug "Received error from custom completion go code"
682
- return
683
- }
684
-
685
- $Longest = 0
686
- [Array]$Values = $Out | ForEach-Object {
687
- # Split the output in name and description
688
- $Name, $Description = $_.Split("\`t", 2)
689
- __${t2}_debug "Name: $Name Description: $Description"
690
-
691
- # Look for the longest completion so that we can format things nicely
692
- if ($Longest -lt $Name.Length) {
693
- $Longest = $Name.Length
694
- }
695
-
696
- # Set the description to a one space string if there is none set.
697
- # This is needed because the CompletionResult does not accept an empty string as argument
698
- if (-Not $Description) {
699
- $Description = " "
700
- }
701
- @{ Name = "$Name"; Description = "$Description" }
702
- }
703
-
704
-
705
- $Space = " "
706
- if (($Directive -band $ShellCompDirectiveNoSpace) -ne 0 ) {
707
- # remove the space here
708
- __${t2}_debug "ShellCompDirectiveNoSpace is called"
709
- $Space = ""
710
- }
711
-
712
- if ((($Directive -band $ShellCompDirectiveFilterFileExt) -ne 0 ) -or
713
- (($Directive -band $ShellCompDirectiveFilterDirs) -ne 0 )) {
714
- __${t2}_debug "ShellCompDirectiveFilterFileExt ShellCompDirectiveFilterDirs are not supported"
715
-
716
- # return here to prevent the completion of the extensions
717
- return
718
- }
719
-
720
- $Values = $Values | Where-Object {
721
- # filter the result
722
- $_.Name -like "$WordToComplete*"
723
-
724
- # Join the flag back if we have an equal sign flag
725
- if ( $IsEqualFlag ) {
726
- __${t2}_debug "Join the equal sign flag back to the completion value"
727
- $_.Name = $Flag + "=" + $_.Name
728
- }
729
- }
730
-
731
- # we sort the values in ascending order by name if keep order isn't passed
732
- if (($Directive -band $ShellCompDirectiveKeepOrder) -eq 0 ) {
733
- $Values = $Values | Sort-Object -Property Name
734
- }
735
-
736
- if (($Directive -band $ShellCompDirectiveNoFileComp) -ne 0 ) {
737
- __${t2}_debug "ShellCompDirectiveNoFileComp is called"
738
-
739
- if ($Values.Length -eq 0) {
740
- # Just print an empty string here so the
741
- # shell does not start to complete paths.
742
- # We cannot use CompletionResult here because
743
- # it does not accept an empty string as argument.
744
- ""
745
- return
746
- }
747
- }
748
-
749
- # Get the current mode
750
- $Mode = (Get-PSReadLineKeyHandler | Where-Object { $_.Key -eq "Tab" }).Function
751
- __${t2}_debug "Mode: $Mode"
752
-
753
- $Values | ForEach-Object {
754
-
755
- # store temporary because switch will overwrite $_
756
- $comp = $_
757
-
758
- # PowerShell supports three different completion modes
759
- # - TabCompleteNext (default windows style - on each key press the next option is displayed)
760
- # - Complete (works like bash)
761
- # - MenuComplete (works like zsh)
762
- # You set the mode with Set-PSReadLineKeyHandler -Key Tab -Function <mode>
763
-
764
- # CompletionResult Arguments:
765
- # 1) CompletionText text to be used as the auto completion result
766
- # 2) ListItemText text to be displayed in the suggestion list
767
- # 3) ResultType type of completion result
768
- # 4) ToolTip text for the tooltip with details about the object
769
-
770
- switch ($Mode) {
771
-
772
- # bash like
773
- "Complete" {
774
-
775
- if ($Values.Length -eq 1) {
776
- __${t2}_debug "Only one completion left"
777
-
778
- # insert space after value
779
- [System.Management.Automation.CompletionResult]::new($($comp.Name | __${t2}_escapeStringWithSpecialChars) + $Space, "$($comp.Name)", 'ParameterValue', "$($comp.Description)")
780
-
781
- } else {
782
- # Add the proper number of spaces to align the descriptions
783
- while($comp.Name.Length -lt $Longest) {
784
- $comp.Name = $comp.Name + " "
785
- }
786
-
787
- # Check for empty description and only add parentheses if needed
788
- if ($($comp.Description) -eq " " ) {
789
- $Description = ""
790
- } else {
791
- $Description = " ($($comp.Description))"
792
- }
793
-
794
- [System.Management.Automation.CompletionResult]::new("$($comp.Name)$Description", "$($comp.Name)$Description", 'ParameterValue', "$($comp.Description)")
795
- }
796
- }
797
-
798
- # zsh like
799
- "MenuComplete" {
800
- # insert space after value
801
- # MenuComplete will automatically show the ToolTip of
802
- # the highlighted value at the bottom of the suggestions.
803
- [System.Management.Automation.CompletionResult]::new($($comp.Name | __${t2}_escapeStringWithSpecialChars) + $Space, "$($comp.Name)", 'ParameterValue', "$($comp.Description)")
804
- }
805
-
806
- # TabCompleteNext and in case we get something unknown
807
- Default {
808
- # Like MenuComplete but we don't want to add a space here because
809
- # the user need to press space anyway to get the completion.
810
- # Description will not be shown because that's not possible with TabCompleteNext
811
- [System.Management.Automation.CompletionResult]::new($($comp.Name | __${t2}_escapeStringWithSpecialChars), "$($comp.Name)", 'ParameterValue', "$($comp.Description)")
812
- }
813
- }
814
-
815
- }
816
- }
817
-
818
- Register-ArgumentCompleter -CommandName '${t2}' -ScriptBlock $__${r2}CompleterBlock
819
- `;
820
- }
821
-
822
- // node_modules/@bomb.sh/tab/dist/index.mjs
823
- import i2 from "assert";
824
- var a = { ShellCompDirectiveError: 1, ShellCompDirectiveNoSpace: 2, ShellCompDirectiveNoFileComp: 4, ShellCompDirectiveFilterFileExt: 8, ShellCompDirectiveFilterDirs: 16, ShellCompDirectiveKeepOrder: 32, shellCompDirectiveMaxValue: 64, ShellCompDirectiveDefault: 0 };
825
- var o = class {
826
- name;
827
- variadic;
828
- command;
829
- handler;
830
- constructor(e, t2, n2, r2 = false) {
831
- this.command = e, this.name = t2, this.handler = n2, this.variadic = r2;
832
- }
833
- };
834
- var s = class {
835
- value;
836
- description;
837
- command;
838
- handler;
839
- alias;
840
- isBoolean;
841
- constructor(e, t2, n2, r2, i3, a2) {
842
- this.command = e, this.value = t2, this.description = n2, this.handler = r2, this.alias = i3, this.isBoolean = a2;
843
- }
844
- };
845
- var c = class {
846
- value;
847
- description;
848
- options = new Map;
849
- arguments = new Map;
850
- parent;
851
- constructor(e, t2) {
852
- this.value = e, this.description = t2;
853
- }
854
- option(e, t2, n2, r2) {
855
- let i3, a2, o2;
856
- typeof n2 == `function` ? (i3 = n2, a2 = r2, o2 = false) : typeof n2 == `string` ? (i3 = undefined, a2 = n2, o2 = true) : (i3 = undefined, a2 = undefined, o2 = true);
857
- let c2 = new s(this, e, t2, i3, a2, o2);
858
- return this.options.set(e, c2), this;
859
- }
860
- argument(e, t2, n2 = false) {
861
- let r2 = new o(this, e, t2, n2);
862
- return this.arguments.set(e, r2), this;
863
- }
864
- };
865
- var l = class extends c {
866
- commands = new Map;
867
- completions = [];
868
- directive = a.ShellCompDirectiveDefault;
869
- constructor() {
870
- super(``, ``);
871
- }
872
- command(e, t2) {
873
- let n2 = new c(e, t2);
874
- return this.commands.set(e, n2), n2;
875
- }
876
- stripOptions(e) {
877
- let t2 = [], n2 = 0;
878
- for (;n2 < e.length; ) {
879
- let r2 = e[n2];
880
- if (r2.startsWith(`-`)) {
881
- n2++;
882
- let t3 = false, i3 = this.findOption(this, r2);
883
- if (i3)
884
- t3 = i3.isBoolean ?? false;
885
- else
886
- for (let [, e2] of this.commands) {
887
- let n3 = this.findOption(e2, r2);
888
- if (n3) {
889
- t3 = n3.isBoolean ?? false;
890
- break;
891
- }
892
- }
893
- !t3 && n2 < e.length && !e[n2].startsWith(`-`) && n2++;
894
- } else
895
- t2.push(r2), n2++;
896
- }
897
- return t2;
898
- }
899
- matchCommand(e) {
900
- e = this.stripOptions(e);
901
- let t2 = [], n2 = [], r2 = null;
902
- for (let i3 = 0;i3 < e.length; i3++) {
903
- let a2 = e[i3];
904
- t2.push(a2);
905
- let o2 = this.commands.get(t2.join(` `));
906
- if (o2)
907
- r2 = o2;
908
- else {
909
- n2 = e.slice(i3, e.length);
910
- break;
911
- }
912
- }
913
- return [r2 || this, n2];
914
- }
915
- shouldCompleteFlags(e, t2) {
916
- if (t2.startsWith(`-`))
917
- return true;
918
- if (e?.startsWith(`-`)) {
919
- let t3 = this.findOption(this, e);
920
- if (!t3) {
921
- for (let [, n2] of this.commands)
922
- if (t3 = this.findOption(n2, e), t3)
923
- break;
924
- }
925
- return !(t3 && t3.isBoolean);
926
- }
927
- return false;
928
- }
929
- shouldCompleteCommands(e) {
930
- return !e.startsWith(`-`);
931
- }
932
- handleFlagCompletion(e, t2, n2, r2) {
933
- let i3;
934
- if (n2.includes(`=`)) {
935
- let [e2] = n2.split(`=`);
936
- i3 = e2;
937
- } else if (r2?.startsWith(`-`)) {
938
- let t3 = this.findOption(e, r2);
939
- t3 && !t3.isBoolean && (i3 = r2);
940
- }
941
- if (i3) {
942
- let t3 = this.findOption(e, i3);
943
- if (t3?.handler) {
944
- let n3 = [];
945
- t3.handler.call(t3, (e2, t4) => n3.push({ value: e2, description: t4 }), e.options), this.completions = n3;
946
- }
947
- return;
948
- }
949
- if (n2.startsWith(`-`)) {
950
- let t3 = n2.startsWith(`-`) && !n2.startsWith(`--`), r3 = n2.replace(/^-+/, ``);
951
- for (let [i4, a2] of e.options)
952
- t3 && a2.alias && `-${a2.alias}`.startsWith(n2) ? this.completions.push({ value: `-${a2.alias}`, description: a2.description }) : !t3 && i4.startsWith(r3) && this.completions.push({ value: `--${i4}`, description: a2.description });
953
- }
954
- }
955
- findOption(e, t2) {
956
- let n2 = e.options.get(t2);
957
- if (n2 || (n2 = e.options.get(t2.replace(/^-+/, ``)), n2))
958
- return n2;
959
- for (let [n3, r2] of e.options)
960
- if (r2.alias && `-${r2.alias}` === t2)
961
- return r2;
962
- }
963
- handleCommandCompletion(e, t2) {
964
- let n2 = this.stripOptions(e);
965
- for (let [e2, r2] of this.commands) {
966
- if (e2 === ``)
967
- continue;
968
- let i3 = e2.split(` `);
969
- i3.slice(0, n2.length).every((e3, t3) => e3 === n2[t3]) && i3[n2.length]?.startsWith(t2) && this.completions.push({ value: i3[n2.length], description: r2.description });
970
- }
971
- }
972
- handlePositionalCompletion(e, t2) {
973
- let n2 = this.stripOptions(t2), r2 = e.value.split(` `).length, i3 = Math.max(0, n2.length - r2), a2 = Array.from(e.arguments.entries());
974
- if (a2.length > 0) {
975
- let t3;
976
- if (i3 < a2.length) {
977
- let [e2, n3] = a2[i3];
978
- t3 = n3;
979
- } else {
980
- let e2 = a2[a2.length - 1][1];
981
- e2.variadic && (t3 = e2);
982
- }
983
- if (t3 && t3.handler && typeof t3.handler == `function`) {
984
- let n3 = [];
985
- t3.handler.call(t3, (e2, t4) => n3.push({ value: e2, description: t4 }), e.options), this.completions.push(...n3);
986
- }
987
- }
988
- }
989
- complete(e) {
990
- this.directive = a.ShellCompDirectiveNoFileComp;
991
- let t2 = new Set;
992
- this.completions.filter((e2) => t2.has(e2.value) ? false : (t2.add(e2.value), true)).filter((t3) => {
993
- if (e.includes(`=`)) {
994
- let [, n2] = e.split(`=`);
995
- return t3.value.startsWith(n2);
996
- }
997
- return t3.value.startsWith(e);
998
- }).forEach((e2) => console.log(`${e2.value} ${e2.description ?? ``}`)), console.log(`:${this.directive}`);
999
- }
1000
- parse(e) {
1001
- this.completions = [];
1002
- let t2 = e[e.length - 1] === ``;
1003
- t2 && e.pop();
1004
- let n2 = e[e.length - 1] || ``, r2 = e.slice(0, -1);
1005
- t2 && (n2 !== `` && r2.push(n2), n2 = ``);
1006
- let [i3] = this.matchCommand(r2), a2 = r2[r2.length - 1];
1007
- this.shouldCompleteFlags(a2, n2) ? this.handleFlagCompletion(i3, r2, n2, a2) : (this.shouldCompleteCommands(n2) && this.handleCommandCompletion(r2, n2), i3 && i3.arguments.size > 0 && this.handlePositionalCompletion(i3, r2)), this.complete(n2);
1008
- }
1009
- setup(a2, o2, s2) {
1010
- switch (i2(s2 === `zsh` || s2 === `bash` || s2 === `fish` || s2 === `powershell`, `Unsupported shell`), s2) {
1011
- case `zsh`: {
1012
- let t2 = t(a2, o2);
1013
- console.log(t2);
1014
- break;
1015
- }
1016
- case `bash`: {
1017
- let e = n(a2, o2);
1018
- console.log(e);
1019
- break;
1020
- }
1021
- case `fish`: {
1022
- let e = r(a2, o2);
1023
- console.log(e);
1024
- break;
1025
- }
1026
- case `powershell`: {
1027
- let e = i(a2, o2);
1028
- console.log(e);
1029
- break;
1030
- }
1031
- }
1032
- }
1033
- };
1034
- var u = new l;
1035
-
1036
- // node_modules/@gunshi/plugin/lib/index.js
1037
- var ANONYMOUS_COMMAND_NAME = "(anonymous)";
1038
- var NOOP = () => {};
1039
- var CLI_OPTIONS_DEFAULT = {
1040
- name: undefined,
1041
- description: undefined,
1042
- version: undefined,
1043
- cwd: undefined,
1044
- usageSilent: false,
1045
- subCommands: undefined,
1046
- leftMargin: 2,
1047
- middleMargin: 10,
1048
- usageOptionType: false,
1049
- usageOptionValue: true,
1050
- strict: false,
1051
- renderHeader: undefined,
1052
- renderUsage: undefined,
1053
- renderValidationErrors: undefined,
1054
- plugins: undefined,
1055
- fallbackToEntry: false
1056
- };
1057
- function isLazyCommand(cmd) {
1058
- return typeof cmd === "function" && "commandName" in cmd && !!cmd.commandName;
1059
- }
1060
- function create(obj = null) {
1061
- return Object.create(obj);
1062
- }
1063
- function log(...args) {
1064
- console.log(...args);
1065
- }
1066
- function deepFreeze(obj, ignores = []) {
1067
- if (obj === null || typeof obj !== "object")
1068
- return obj;
1069
- for (const key of Object.keys(obj)) {
1070
- const value = obj[key];
1071
- if (ignores.includes(key))
1072
- continue;
1073
- if (typeof value === "object" && value !== null)
1074
- deepFreeze(value, ignores);
1075
- }
1076
- return Object.freeze(obj);
1077
- }
1078
- async function createCommandContext({ args = {}, explicit = {}, values = {}, positionals = [], rest = [], argv = [], tokens = [], command = {}, extensions = {}, cliOptions = {}, callMode = "entry", commandPath = [], omitted = false, validationError }) {
1079
- const _args = Object.entries(args).reduce((acc, [key, value]) => {
1080
- acc[key] = Object.assign(create(), value);
1081
- return acc;
1082
- }, create());
1083
- const env = Object.assign(create(), CLI_OPTIONS_DEFAULT, cliOptions);
1084
- if (command.rendering) {
1085
- const { header, usage, validationErrors } = command.rendering;
1086
- if (header !== undefined)
1087
- env.renderHeader = header;
1088
- if (usage !== undefined)
1089
- env.renderUsage = usage;
1090
- if (validationErrors !== undefined)
1091
- env.renderValidationErrors = validationErrors;
1092
- }
1093
- const core = Object.assign(create(), {
1094
- name: getCommandName(command),
1095
- description: command.description,
1096
- omitted,
1097
- callMode,
1098
- commandPath,
1099
- env,
1100
- args: _args,
1101
- explicit,
1102
- values,
1103
- positionals,
1104
- rest,
1105
- _: argv,
1106
- tokens,
1107
- toKebab: command.toKebab,
1108
- log: cliOptions.usageSilent ? NOOP : log,
1109
- validationError
1110
- });
1111
- if (Object.keys(extensions).length > 0) {
1112
- const ext = create(null);
1113
- Object.defineProperty(core, "extensions", {
1114
- value: ext,
1115
- writable: false,
1116
- enumerable: true,
1117
- configurable: true
1118
- });
1119
- for (const [key, extension] of Object.entries(extensions)) {
1120
- ext[key] = await extension.factory(core, command);
1121
- if (extension.onFactory)
1122
- await extension.onFactory(core, command);
1123
- }
1124
- }
1125
- return deepFreeze(core, ["extensions"]);
1126
- }
1127
- function getCommandName(cmd) {
1128
- if (isLazyCommand(cmd))
1129
- return cmd.commandName || cmd.name || "(anonymous)";
1130
- else if (typeof cmd === "object")
1131
- return cmd.name || "(anonymous)";
1132
- else
1133
- return ANONYMOUS_COMMAND_NAME;
1134
- }
1135
- "-".codePointAt(0);
1136
- "=".codePointAt(0);
1137
- var ARGS_VALIDATION_ERROR_BRAND = Symbol.for("args-tokens.ArgsValidationError");
1138
- var COMMAND_NOT_FOUND_ERROR_BRAND = Symbol.for("gunshi.CommandNotFoundError");
1139
- var NOOP_EXTENSION = () => {
1140
- return Object.create(null);
1141
- };
1142
- function plugin(options = {}) {
1143
- const { id, name, setup, onExtension, dependencies } = options;
1144
- const extension = options.extension || NOOP_EXTENSION;
1145
- const pluginFn = async (ctx) => {
1146
- if (setup)
1147
- await setup(ctx);
1148
- };
1149
- const props = {
1150
- writable: false,
1151
- enumerable: true,
1152
- configurable: true
1153
- };
1154
- return Object.defineProperties(pluginFn, {
1155
- id: {
1156
- value: id,
1157
- ...props
1158
- },
1159
- ...name && { name: {
1160
- value: name,
1161
- ...props
1162
- } },
1163
- ...dependencies && { dependencies: {
1164
- value: dependencies,
1165
- ...props
1166
- } },
1167
- ...extension && { extension: {
1168
- value: {
1169
- key: Symbol(id),
1170
- factory: extension,
1171
- onFactory: onExtension
1172
- },
1173
- ...props
1174
- } }
1175
- });
1176
- }
1177
-
1178
- // node_modules/@gunshi/plugin-completion/lib/index.js
1179
- /*! license ISC
1180
- * @author Bombshell team and Bombshell contributors
1181
- * Bombshell related codes are forked from @bombsh/tab
1182
- */
1183
- function kebabnize(str) {
1184
- return str.replace(/[A-Z]/g, (match, offset) => (offset > 0 ? "-" : "") + match.toLowerCase());
1185
- }
1186
- function isLazyCommand2(cmd) {
1187
- return typeof cmd === "function" && "commandName" in cmd && !!cmd.commandName;
1188
- }
1189
- async function resolveLazyCommand(cmd, name, needRunResolving = false) {
1190
- let command;
1191
- if (isLazyCommand2(cmd)) {
1192
- const baseCommand = {
1193
- name: cmd.commandName,
1194
- description: cmd.description,
1195
- args: cmd.args,
1196
- examples: cmd.examples,
1197
- internal: cmd.internal,
1198
- entry: cmd.entry,
1199
- subCommands: cmd.subCommands
1200
- };
1201
- if ("resource" in cmd && cmd.resource)
1202
- baseCommand.resource = cmd.resource;
1203
- command = Object.assign(create2(), baseCommand);
1204
- if (needRunResolving) {
1205
- const loaded = await cmd();
1206
- if (typeof loaded === "function")
1207
- command.run = loaded;
1208
- else if (typeof loaded === "object") {
1209
- if (loaded.run == null)
1210
- throw new TypeError(`'run' is required in command: ${cmd.name || name}`);
1211
- command.run = loaded.run;
1212
- command.name = loaded.name;
1213
- command.description = loaded.description;
1214
- command.args = loaded.args;
1215
- command.examples = loaded.examples;
1216
- command.internal = loaded.internal;
1217
- command.entry = loaded.entry;
1218
- command.subCommands = loaded.subCommands || cmd.subCommands;
1219
- if ("resource" in loaded && loaded.resource)
1220
- command.resource = loaded.resource;
1221
- } else
1222
- throw new TypeError(`Cannot resolve command: ${cmd.name || name}`);
1223
- }
1224
- } else
1225
- command = Object.assign(create2(), cmd);
1226
- if (command.name == null && name)
1227
- command.name = name;
1228
- return deepFreeze2(command);
1229
- }
1230
- function create2(obj = null) {
1231
- return Object.create(obj);
1232
- }
1233
- function deepFreeze2(obj, ignores = []) {
1234
- if (obj === null || typeof obj !== "object")
1235
- return obj;
1236
- for (const key of Object.keys(obj)) {
1237
- const value = obj[key];
1238
- if (ignores.includes(key))
1239
- continue;
1240
- if (typeof value === "object" && value !== null)
1241
- deepFreeze2(value, ignores);
1242
- }
1243
- return Object.freeze(obj);
1244
- }
1245
- var BUILD_IN_PREFIX_AND_KEY_SEPARATOR = `_:`;
1246
- var ARG_PREFIX_AND_KEY_SEPARATOR = `arg:`;
1247
- var ERROR_PREFIX_AND_KEY_SEPARATOR = `err:`;
1248
- var en_US_default = {
1249
- COMMAND: "COMMAND",
1250
- COMMANDS: "COMMANDS",
1251
- SUBCOMMAND: "SUBCOMMAND",
1252
- USAGE: "USAGE",
1253
- ARGUMENTS: "ARGUMENTS",
1254
- OPTIONS: "OPTIONS",
1255
- EXAMPLES: "EXAMPLES",
1256
- FORMORE: "For more info, run any command with the `--help` flag",
1257
- NEGATABLE: "Negatable of",
1258
- DEFAULT: "default",
1259
- CHOICES: "choices",
1260
- help: "Display this help message",
1261
- version: "Display this version",
1262
- "err:arg:required-option": "Optional argument {$displayName} is required",
1263
- "err:arg:required-positional": "Positional argument {$name} is required",
1264
- "err:arg:invalid-type": "Invalid value for {$displayName}: expected {$expected}",
1265
- "err:arg:invalid-choice": "Invalid value for {$displayName}: expected one of {$choices}",
1266
- "err:arg:custom-parse": "Invalid value for {$displayName}: {$reason}",
1267
- "err:arg:unknown-option": "Unknown option: {$rawName}",
1268
- "err:cmd:not-found": "Command not found: {$commandName}",
1269
- "err:suggestion:did-you-mean": "Did you mean {$name}?"
1270
- };
1271
- function resolveArgKey(key, name) {
1272
- return `${name ? `${name}:` : ""}arg:${key}`;
1273
- }
1274
- function resolveKey(key, name) {
1275
- return `${name ? `${name}:` : ""}${key}`;
1276
- }
1277
- async function resolveExamples(ctx, examples) {
1278
- return typeof examples === "string" ? examples : typeof examples === "function" ? await examples(ctx) : "";
1279
- }
1280
- function namespacedId(id) {
1281
- return `g:${id}`;
1282
- }
1283
- function makeShortLongOptionPair(schema, name, toKebab) {
1284
- let key = `--${toKebab || schema.toKebab ? kebabnize(name) : name}`;
1285
- if (schema.short)
1286
- key = `-${schema.short}, ${key}`;
1287
- return key;
1288
- }
1289
- function localizable(ctx, cmd, translate) {
1290
- async function localize(key, values) {
1291
- if (translate)
1292
- return translate(key, values);
1293
- if (key.startsWith(BUILD_IN_PREFIX_AND_KEY_SEPARATOR))
1294
- return resolveAndFormatResource(key.slice(BUILD_IN_PREFIX_AND_KEY_SEPARATOR.length), key, values);
1295
- if (key.startsWith(ERROR_PREFIX_AND_KEY_SEPARATOR))
1296
- return resolveAndFormatResource(key, key, values);
1297
- const namaspacedArgKey = resolveKey(ARG_PREFIX_AND_KEY_SEPARATOR, ctx.name);
1298
- if (key.startsWith(namaspacedArgKey)) {
1299
- let argKey = key.slice(namaspacedArgKey.length);
1300
- let negatable = false;
1301
- if (argKey.startsWith("no-")) {
1302
- argKey = argKey.slice(3);
1303
- negatable = true;
1304
- }
1305
- const schema = ctx.args[argKey];
1306
- if (!schema)
1307
- return argKey;
1308
- return negatable && schema.type === "boolean" && schema.negatable ? `${en_US_default["NEGATABLE"]} ${makeShortLongOptionPair(schema, argKey, ctx.toKebab)}` : schema.description || "";
1309
- }
1310
- if (key === resolveKey("description", ctx.name))
1311
- return "";
1312
- else if (key === resolveKey("examples", ctx.name))
1313
- return await resolveExamples(ctx, cmd.examples);
1314
- else
1315
- return key;
1316
- }
1317
- return localize;
1318
- }
1319
- function resolveAndFormatResource(resourceKey, fallbackKey, values) {
1320
- return formatResource(en_US_default[resourceKey], values) || fallbackKey;
1321
- }
1322
- function formatResource(resource, values = Object.create(null)) {
1323
- return resource?.replaceAll(/\{\$(\w+)\}/g, (_, name) => {
1324
- return values[name] == null ? "" : String(values[name]);
1325
- });
1326
- }
1327
- var pluginId = namespacedId("completion");
1328
- function getRuntimeGlobals() {
1329
- return globalThis;
1330
- }
1331
- function detectRuntime() {
1332
- return detectRuntimeFromGlobals(getRuntimeGlobals());
1333
- }
1334
- function detectRuntimeFromGlobals(globals) {
1335
- if (globals.Bun !== undefined)
1336
- return "bun";
1337
- if (globals.Deno !== undefined)
1338
- return "deno";
1339
- if (globals.process !== undefined && globals.process.release?.name === "node")
1340
- return "node";
1341
- return "unknown";
1342
- }
1343
- function shellQuote(value) {
1344
- if (value.length === 0)
1345
- return "''";
1346
- if (/^[\w%+,./:=@-]+$/.test(value))
1347
- return value;
1348
- return `'${value.replaceAll(`'`, `'\\''`)}'`;
1349
- }
1350
- function escapeDoubleQuotedShellString(value) {
1351
- return value.replaceAll(/[$`"\\]/g, "\\$&");
1352
- }
1353
- function basename(path) {
1354
- const slash = path.lastIndexOf("/");
1355
- const backslash = path.lastIndexOf("\\");
1356
- return path.slice(Math.max(slash, backslash) + 1);
1357
- }
1358
- function isBunVirtualEntry(entry) {
1359
- return entry?.startsWith("/$bunfs/") === true || entry?.startsWith("B:\\~BUN\\") === true || entry?.startsWith("B:/~BUN/") === true;
1360
- }
1361
- function isLikelyBunSingleBinary(execPath, entry) {
1362
- const name = basename(execPath).toLowerCase();
1363
- if (name !== "bun" && name !== "bun.exe")
1364
- return true;
1365
- return isBunVirtualEntry(entry);
1366
- }
1367
- function resolveNodeExecParts(process) {
1368
- const entry = process.argv[1];
1369
- return [
1370
- process.execPath,
1371
- ...process.execArgv ?? [],
1372
- ...entry ? [entry] : []
1373
- ];
1374
- }
1375
- function resolveBunExecParts(process) {
1376
- const entry = process.argv[1];
1377
- if (isLikelyBunSingleBinary(process.execPath, entry))
1378
- return [process.execPath];
1379
- return [
1380
- process.execPath,
1381
- ...process.execArgv ?? [],
1382
- ...entry ? [entry] : []
1383
- ];
1384
- }
1385
- function joinExecParts(parts) {
1386
- return escapeDoubleQuotedShellString(parts.map(shellQuote).join(" "));
1387
- }
1388
- function quoteExec() {
1389
- const globals = getRuntimeGlobals();
1390
- switch (detectRuntime()) {
1391
- case "node":
1392
- return joinExecParts(resolveNodeExecParts(globals.process));
1393
- case "deno":
1394
- throw new Error("Deno runtime is not supported for completion script generation yet.");
1395
- case "bun":
1396
- return joinExecParts(resolveBunExecParts(globals.process));
1397
- default:
1398
- throw new Error("Unsupported JavaScript runtime for completion script generation.");
1399
- }
1400
- }
1401
- var TERMINATOR = "--";
1402
- var NOOP_HANDLER = () => {
1403
- return [];
1404
- };
1405
- var i18nPluginId = namespacedId("i18n");
1406
- var dependencies = [{
1407
- id: i18nPluginId,
1408
- optional: true
1409
- }];
1410
- function completion(options = {}) {
1411
- const config = options.config || {};
1412
- const t2 = new l;
1413
- return plugin({
1414
- id: pluginId,
1415
- name: "completion",
1416
- dependencies,
1417
- setup(ctx) {
1418
- const completeName = "complete";
1419
- ctx.addCommand(completeName, {
1420
- name: completeName,
1421
- description: "Generate shell completion script",
1422
- rendering: { header: null },
1423
- run: (cmdCtx) => {
1424
- if (!cmdCtx.env.name)
1425
- throw new Error("your cli name is not defined.");
1426
- let shell = cmdCtx._[1];
1427
- if (shell === TERMINATOR)
1428
- shell = undefined;
1429
- if (shell === undefined)
1430
- t2.parse(cmdCtx._.slice(cmdCtx._.indexOf(TERMINATOR) + 1));
1431
- else if ([
1432
- "zsh",
1433
- "bash",
1434
- "fish",
1435
- "powershell"
1436
- ].includes(shell))
1437
- t2.setup(cmdCtx.env.name, quoteExec(), shell);
1438
- }
1439
- });
1440
- },
1441
- onExtension: async (ctx, cmd) => {
1442
- const i18n = ctx.extensions[i18nPluginId];
1443
- const subCommands = ctx.env.subCommands;
1444
- await registerCompletion({
1445
- name: "entry",
1446
- cmd: [...subCommands].map(([_, cmd2]) => cmd2).find((cmd2) => cmd2.entry) || cmd,
1447
- config,
1448
- i18nPluginId,
1449
- i18n,
1450
- t: t2,
1451
- isBombshellRoot: true
1452
- });
1453
- await handleSubCommands(t2, subCommands, i18nPluginId, config.subCommands, i18n);
1454
- }
1455
- });
1456
- }
1457
- async function registerCompletion({ name, cmd, config, i18nPluginId: i18nPluginId2, i18n, t: t2, isBombshellRoot = false }) {
1458
- const resolvedCmd = await resolveLazyCommand(cmd);
1459
- const extensions = Object.create(null);
1460
- if (i18n)
1461
- extensions[i18nPluginId2] = {
1462
- key: Symbol(i18nPluginId2),
1463
- factory: () => i18n
1464
- };
1465
- const ctx = await createCommandContext({
1466
- args: resolvedCmd.args || Object.create(null),
1467
- command: resolvedCmd,
1468
- callMode: resolvedCmd.entry ? "entry" : "subCommand",
1469
- extensions
1470
- });
1471
- if (i18n) {
1472
- if (!await i18n.loadResource(i18n.locale, ctx, resolvedCmd))
1473
- console.warn(`Failed to load i18n resources for command: ${name} (${i18n.locale.toString()})`);
1474
- }
1475
- const localizeDescription = localizable(ctx, resolvedCmd, i18n ? i18n.translate : undefined);
1476
- const commandTab = isBombshellRoot ? t2 : t2.command(name, await localizeDescription(resolveKey("description", ctx.name)) || resolvedCmd.description || "");
1477
- const args = resolvedCmd.args || Object.create(null);
1478
- for (const [key, schema] of Object.entries(args))
1479
- if (schema.type === "positional")
1480
- commandTab.argument(key, resolveCompletionHandler(name, key, config, i18n), schema.multiple);
1481
- else
1482
- commandTab.option(key, await localizeDescription(resolveArgKey(key, ctx.name)) || schema.description || "", resolveCompletionHandler(name, key, config, i18n), schema.short);
1483
- }
1484
- function resolveCompletionHandler(name, optionOrArgKey, config, i18n) {
1485
- return function(complete) {
1486
- const handler = config[name]?.args?.[optionOrArgKey]?.handler || NOOP_HANDLER;
1487
- for (const item of handler({ locale: i18n?.locale }))
1488
- complete(item.value, item.description || "");
1489
- };
1490
- }
1491
- async function handleSubCommands(t2, subCommands, i18nPluginId2, config = {}, i18n, parentPath = "") {
1492
- for (const [name, cmd] of subCommands) {
1493
- if (cmd.internal || cmd.entry || name === "complete")
1494
- continue;
1495
- const fullName = parentPath ? `${parentPath} ${name}` : name;
1496
- await registerCompletion({
1497
- name: fullName,
1498
- cmd,
1499
- config,
1500
- i18nPluginId: i18nPluginId2,
1501
- i18n,
1502
- t: t2
1503
- });
1504
- const nestedSubCommands = getNestedSubCommands(cmd);
1505
- if (nestedSubCommands && nestedSubCommands.size > 0)
1506
- await handleSubCommands(t2, nestedSubCommands, i18nPluginId2, config, i18n, fullName);
1507
- }
1508
- }
1509
- function getNestedSubCommands(cmd) {
1510
- const subCommands = typeof cmd === "function" ? cmd.subCommands : cmd.subCommands;
1511
- if (!subCommands)
1512
- return;
1513
- if (subCommands instanceof Map)
1514
- return subCommands.size > 0 ? subCommands : undefined;
1515
- if (typeof subCommands === "object") {
1516
- const entries = Object.entries(subCommands);
1517
- if (entries.length === 0)
1518
- return;
1519
- const map = /* @__PURE__ */ new Map;
1520
- for (const [name, c2] of entries)
1521
- map.set(name, c2);
1522
- return map;
1523
- }
1524
- }
1525
- export {
1526
- pluginId,
1527
- completion as default
1528
- };