@jordond/kit 0.1.0 → 0.2.1

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 (274) hide show
  1. package/README.md +147 -0
  2. package/dist/{_verb-espppzez.js → _verb-e37jzjj4.js} +16 -15
  3. package/dist/android-z67qp1hh.js +60 -0
  4. package/dist/{build-88hxf0kc.js → build-ecy4px96.js} +4 -4
  5. package/dist/builtins-gvmrdxdv.js +10 -0
  6. package/dist/bump-nyefmpxs.js +169 -0
  7. package/dist/certs-fqz6xsb6.js +76 -0
  8. package/dist/{check-ngc4kzmj.js → check-4k3y5jmf.js} +4 -4
  9. package/dist/check-z9ps5ves.js +67 -0
  10. package/dist/cli/command.d.ts +22 -2
  11. package/dist/{toml-zbhtxjh1.js → cli-19me2qqg.js} +2 -8
  12. package/dist/cli-51ha0t4k.js +70 -0
  13. package/dist/{cli-07t28k94.js → cli-540nme4e.js} +17 -1
  14. package/dist/{cli-6dxp4v3m.js → cli-5xasa3gy.js} +31 -7
  15. package/dist/{cli-rds33bnp.js → cli-699g070n.js} +6 -3
  16. package/dist/cli-8197y4dp.js +132 -0
  17. package/dist/{cli-h974q2wr.js → cli-cc13vv98.js} +7 -3
  18. package/dist/cli-dht27t4r.js +41 -0
  19. package/dist/{cli-m53122z6.js → cli-f7y7gmvf.js} +14 -8
  20. package/dist/{prompt-v510j04z.js → cli-g519ev8e.js} +2 -6
  21. package/dist/cli-np6a4hbd.js +191 -0
  22. package/dist/cli-qakdt5nm.js +115 -0
  23. package/dist/{push-4z70h3d8.js → cli-s3x1bb78.js} +7 -15
  24. package/dist/cli-vt6582gp.js +122 -0
  25. package/dist/{git-52v5rk51.js → cli-xjpjdc2c.js} +2 -12
  26. package/dist/cli-y3mjprpv.js +31 -0
  27. package/dist/cli.js +1 -1
  28. package/dist/{cloudflare-n5c46k6x.js → cloudflare-0yz3f9tx.js} +3 -3
  29. package/dist/{command-gazq4bmt.js → command-0x47mfj2.js} +6 -4
  30. package/dist/commands/completion.d.ts +15 -0
  31. package/dist/commands/db/create.d.ts +1 -1
  32. package/dist/commands/db/exec.d.ts +1 -1
  33. package/dist/commands/db/list.d.ts +1 -1
  34. package/dist/commands/db/migrate.d.ts +1 -1
  35. package/dist/commands/deploy.d.ts +6 -1
  36. package/dist/commands/dev.d.ts +1 -1
  37. package/dist/commands/doctor.d.ts +26 -0
  38. package/dist/commands/env/check.d.ts +1 -1
  39. package/dist/commands/env/push.d.ts +4 -0
  40. package/dist/commands/fastlane.d.ts +2 -0
  41. package/dist/commands/init.d.ts +19 -2
  42. package/dist/commands/release/android.d.ts +20 -3
  43. package/dist/commands/release/certs.d.ts +7 -0
  44. package/dist/commands/release/ios.d.ts +11 -2
  45. package/dist/commands/release/service.d.ts +6 -0
  46. package/dist/commands/version/bump.d.ts +17 -0
  47. package/dist/commands/version/show.d.ts +2 -0
  48. package/dist/commands/wrangler.d.ts +0 -2
  49. package/dist/commands/xcode.d.ts +2 -0
  50. package/dist/completion-bcwejygc.js +38 -0
  51. package/dist/concurrent-zdz69ye5.js +96 -0
  52. package/dist/config/schema.d.ts +5 -0
  53. package/dist/{config-ey5yrrfn.js → config-wbczmt18.js} +3 -3
  54. package/dist/{create-7s8h3dja.js → create-xvy4a8r3.js} +8 -8
  55. package/dist/creds-bhdyb0js.js +34 -0
  56. package/dist/deploy-187e49kx.js +152 -0
  57. package/dist/{deps-97dq4mg8.js → deps-adbpkp0w.js} +7 -7
  58. package/dist/dev-echj7d7q.js +114 -0
  59. package/dist/{doctor-0wzmfyyh.js → doctor-g6rdwqff.js} +108 -6
  60. package/dist/{exec-1k3sqwxz.js → exec-cj5bsewf.js} +8 -8
  61. package/dist/fastlane-2kjyfqjg.js +26 -0
  62. package/dist/fastlane-e3gsr42q.js +38 -0
  63. package/dist/{format-mnqfak22.js → format-zmc1d1v1.js} +5 -5
  64. package/dist/git-3gyyfk0x.js +24 -0
  65. package/dist/github-xhhk1bpk.js +95 -0
  66. package/dist/{gradle-gtkf3geq.js → gradle-8pvtwwk9.js} +5 -5
  67. package/dist/index.d.ts +2 -1
  68. package/dist/index.js +14 -9
  69. package/dist/{init-0402av4m.js → init-1mxh98j8.js} +9 -9
  70. package/dist/{init-dk5sym9w.js → init-gtkmx54a.js} +1 -1
  71. package/dist/{init-qr7y55ea.js → init-ptkwtm58.js} +75 -10
  72. package/dist/ios-tty9dmnj.js +50 -0
  73. package/dist/lib/cloudflare.d.ts +4 -3
  74. package/dist/lib/concurrent.d.ts +21 -0
  75. package/dist/lib/env/github.d.ts +32 -0
  76. package/dist/lib/env/render.d.ts +5 -2
  77. package/dist/lib/fastlane.d.ts +36 -0
  78. package/dist/lib/log.d.ts +7 -1
  79. package/dist/lib/release/creds.d.ts +50 -0
  80. package/dist/lib/release/mobile.d.ts +41 -0
  81. package/dist/lib/release/notes.d.ts +15 -0
  82. package/dist/lib/release/preflight.d.ts +30 -0
  83. package/dist/lib/release/version.d.ts +41 -0
  84. package/dist/{lint-280dpn4y.js → lint-s767b0f2.js} +5 -5
  85. package/dist/{list-jdc3dqk0.js → list-v4xvb7g3.js} +8 -8
  86. package/dist/{load-5qzs1c6b.js → load-dxhacsn4.js} +3 -3
  87. package/dist/{log-hhspqwjw.js → log-g1ebh60s.js} +6 -2
  88. package/dist/{main-ywtsjxev.js → main-6nkvk3xr.js} +94 -180
  89. package/dist/{migrate-emk758k1.js → migrate-bw99wp7v.js} +14 -11
  90. package/dist/mobile-wjqzvzje.js +391 -0
  91. package/dist/notes-1zsa7qac.js +21 -0
  92. package/dist/prompt-3wwegvqc.js +15 -0
  93. package/dist/push-1gq40vjj.js +22 -0
  94. package/dist/{push-xzqw218t.js → push-4hw2sbed.js} +20 -13
  95. package/dist/{render-488tjnsq.js → render-vn40fp54.js} +1 -1
  96. package/dist/service-b282yyn5.js +102 -0
  97. package/dist/show-k7bt5142.js +50 -0
  98. package/dist/steps-9knqpszw.js +16 -0
  99. package/dist/{sync-wc4jpmkj.js → sync-xmjd4804.js} +7 -7
  100. package/dist/{targets-hbwxv97d.js → targets-bywmzbtj.js} +2 -2
  101. package/dist/{test-198w46m4.js → test-9c5r8bgr.js} +4 -4
  102. package/dist/toml-3fxsdkhr.js +14 -0
  103. package/dist/{typecheck-e86e6yg1.js → typecheck-8snw4yza.js} +4 -4
  104. package/dist/version-0gsr8qbz.js +34 -0
  105. package/dist/{wrangler-0ctx1p3w.js → wrangler-5fchmhwc.js} +9 -29
  106. package/dist/{xcode-g44qh2rc.js → xcode-4ede7p2b.js} +24 -9
  107. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.1/io.github.jordond.kit.android.application.gradle.plugin-0.2.1.pom +15 -0
  108. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.1/io.github.jordond.kit.android.application.gradle.plugin-0.2.1.pom.md5 +1 -0
  109. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.1/io.github.jordond.kit.android.application.gradle.plugin-0.2.1.pom.sha1 +1 -0
  110. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.1/io.github.jordond.kit.android.application.gradle.plugin-0.2.1.pom.sha256 +1 -0
  111. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.1/io.github.jordond.kit.android.application.gradle.plugin-0.2.1.pom.sha512 +1 -0
  112. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml +13 -0
  113. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.md5 +1 -0
  114. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  115. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  116. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  117. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.1.pom +15 -0
  118. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.1.pom.md5 +1 -0
  119. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.1.pom.sha1 +1 -0
  120. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.1.pom.sha256 +1 -0
  121. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.1.pom.sha512 +1 -0
  122. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml +13 -0
  123. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.md5 +1 -0
  124. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  125. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  126. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  127. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.1/io.github.jordond.kit.compose.gradle.plugin-0.2.1.pom +15 -0
  128. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.1/io.github.jordond.kit.compose.gradle.plugin-0.2.1.pom.md5 +1 -0
  129. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.1/io.github.jordond.kit.compose.gradle.plugin-0.2.1.pom.sha1 +1 -0
  130. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.1/io.github.jordond.kit.compose.gradle.plugin-0.2.1.pom.sha256 +1 -0
  131. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.1/io.github.jordond.kit.compose.gradle.plugin-0.2.1.pom.sha512 +1 -0
  132. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml +13 -0
  133. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.md5 +1 -0
  134. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  135. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  136. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  137. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.1.pom +15 -0
  138. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.1.pom.md5 +1 -0
  139. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.1.pom.sha1 +1 -0
  140. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.1.pom.sha256 +1 -0
  141. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.1.pom.sha512 +1 -0
  142. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml +13 -0
  143. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.md5 +1 -0
  144. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  145. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  146. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  147. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.jar +0 -0
  148. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.jar.md5 +1 -0
  149. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.jar.sha1 +1 -0
  150. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.jar.sha256 +1 -0
  151. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.jar.sha512 +1 -0
  152. package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.1.0/kit-plugins-0.1.0.module → 0.2.1/kit-plugins-0.2.1.module} +15 -15
  153. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.module.md5 +1 -0
  154. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.module.sha1 +1 -0
  155. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.module.sha256 +1 -0
  156. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.module.sha512 +1 -0
  157. package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.1.0/kit-plugins-0.1.0.pom → 0.2.1/kit-plugins-0.2.1.pom} +1 -1
  158. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.pom.md5 +1 -0
  159. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.pom.sha1 +1 -0
  160. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.pom.sha256 +1 -0
  161. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.pom.sha512 +1 -0
  162. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml +4 -4
  163. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.md5 +1 -1
  164. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha1 +1 -1
  165. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha256 +1 -1
  166. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha512 +1 -1
  167. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.jar +0 -0
  168. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.jar.md5 +1 -0
  169. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.jar.sha1 +1 -0
  170. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.jar.sha256 +1 -0
  171. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.jar.sha512 +1 -0
  172. package/gradle/maven/io/github/jordond/kit/kit-settings/{0.1.0/kit-settings-0.1.0.module → 0.2.1/kit-settings-0.2.1.module} +15 -15
  173. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.module.md5 +1 -0
  174. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.module.sha1 +1 -0
  175. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.module.sha256 +1 -0
  176. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.module.sha512 +1 -0
  177. package/gradle/maven/io/github/jordond/kit/kit-settings/{0.1.0/kit-settings-0.1.0.pom → 0.2.1/kit-settings-0.2.1.pom} +1 -1
  178. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.pom.md5 +1 -0
  179. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.pom.sha1 +1 -0
  180. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.pom.sha256 +1 -0
  181. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.pom.sha512 +1 -0
  182. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml +4 -4
  183. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.md5 +1 -1
  184. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha1 +1 -1
  185. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha256 +1 -1
  186. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha512 +1 -1
  187. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.1.pom +15 -0
  188. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.1.pom.md5 +1 -0
  189. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.1.pom.sha1 +1 -0
  190. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.1.pom.sha256 +1 -0
  191. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.1.pom.sha512 +1 -0
  192. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml +13 -0
  193. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.md5 +1 -0
  194. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  195. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  196. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  197. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.1/io.github.jordond.kit.lint.gradle.plugin-0.2.1.pom +15 -0
  198. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.1/io.github.jordond.kit.lint.gradle.plugin-0.2.1.pom.md5 +1 -0
  199. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.1/io.github.jordond.kit.lint.gradle.plugin-0.2.1.pom.sha1 +1 -0
  200. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.1/io.github.jordond.kit.lint.gradle.plugin-0.2.1.pom.sha256 +1 -0
  201. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.1/io.github.jordond.kit.lint.gradle.plugin-0.2.1.pom.sha512 +1 -0
  202. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml +13 -0
  203. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.md5 +1 -0
  204. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  205. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  206. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  207. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/{0.1.0/io.github.jordond.kit.release.gradle.plugin-0.1.0.pom → 0.2.1/io.github.jordond.kit.release.gradle.plugin-0.2.1.pom} +2 -2
  208. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.1/io.github.jordond.kit.release.gradle.plugin-0.2.1.pom.md5 +1 -0
  209. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.1/io.github.jordond.kit.release.gradle.plugin-0.2.1.pom.sha1 +1 -0
  210. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.1/io.github.jordond.kit.release.gradle.plugin-0.2.1.pom.sha256 +1 -0
  211. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.1/io.github.jordond.kit.release.gradle.plugin-0.2.1.pom.sha512 +1 -0
  212. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml +4 -4
  213. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.md5 +1 -1
  214. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  215. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  216. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  217. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/{0.1.0/io.github.jordond.kit.settings.gradle.plugin-0.1.0.pom → 0.2.1/io.github.jordond.kit.settings.gradle.plugin-0.2.1.pom} +2 -2
  218. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.1/io.github.jordond.kit.settings.gradle.plugin-0.2.1.pom.md5 +1 -0
  219. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.1/io.github.jordond.kit.settings.gradle.plugin-0.2.1.pom.sha1 +1 -0
  220. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.1/io.github.jordond.kit.settings.gradle.plugin-0.2.1.pom.sha256 +1 -0
  221. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.1/io.github.jordond.kit.settings.gradle.plugin-0.2.1.pom.sha512 +1 -0
  222. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml +4 -4
  223. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.md5 +1 -1
  224. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  225. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  226. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  227. package/package.json +1 -1
  228. package/templates/new/.env.example +20 -0
  229. package/templates/new/.github/workflows/ci.yml +45 -0
  230. package/templates/new/apps/client/fastlane/Fastfile +1 -0
  231. package/templates/new/apps/client/gradle/libs.versions.toml +25 -0
  232. package/templates/new/apps/client/settings.gradle.kts +25 -0
  233. package/templates/new/kit.config.ts +15 -0
  234. package/dist/android-g73naxgg.js +0 -31
  235. package/dist/check-7mndz8g8.js +0 -54
  236. package/dist/cli-bam7dqfd.js +0 -33
  237. package/dist/deploy-8mg1zhpb.js +0 -102
  238. package/dist/dev-yc9xmntj.js +0 -62
  239. package/dist/ios-msg4bk15.js +0 -31
  240. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.jar +0 -0
  241. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.jar.md5 +0 -1
  242. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.jar.sha1 +0 -1
  243. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.jar.sha256 +0 -1
  244. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.jar.sha512 +0 -1
  245. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.module.md5 +0 -1
  246. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.module.sha1 +0 -1
  247. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.module.sha256 +0 -1
  248. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.module.sha512 +0 -1
  249. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.pom.md5 +0 -1
  250. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.pom.sha1 +0 -1
  251. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.pom.sha256 +0 -1
  252. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.1.0/kit-plugins-0.1.0.pom.sha512 +0 -1
  253. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.jar +0 -0
  254. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.jar.md5 +0 -1
  255. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.jar.sha1 +0 -1
  256. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.jar.sha256 +0 -1
  257. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.jar.sha512 +0 -1
  258. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.module.md5 +0 -1
  259. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.module.sha1 +0 -1
  260. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.module.sha256 +0 -1
  261. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.module.sha512 +0 -1
  262. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.pom.md5 +0 -1
  263. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.pom.sha1 +0 -1
  264. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.pom.sha256 +0 -1
  265. package/gradle/maven/io/github/jordond/kit/kit-settings/0.1.0/kit-settings-0.1.0.pom.sha512 +0 -1
  266. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.1.0/io.github.jordond.kit.release.gradle.plugin-0.1.0.pom.md5 +0 -1
  267. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.1.0/io.github.jordond.kit.release.gradle.plugin-0.1.0.pom.sha1 +0 -1
  268. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.1.0/io.github.jordond.kit.release.gradle.plugin-0.1.0.pom.sha256 +0 -1
  269. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.1.0/io.github.jordond.kit.release.gradle.plugin-0.1.0.pom.sha512 +0 -1
  270. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.1.0/io.github.jordond.kit.settings.gradle.plugin-0.1.0.pom.md5 +0 -1
  271. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.1.0/io.github.jordond.kit.settings.gradle.plugin-0.1.0.pom.sha1 +0 -1
  272. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.1.0/io.github.jordond.kit.settings.gradle.plugin-0.1.0.pom.sha256 +0 -1
  273. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.1.0/io.github.jordond.kit.settings.gradle.plugin-0.1.0.pom.sha512 +0 -1
  274. package/dist/{cli-12dww95e.js → cli-r6g14qrk.js} +3 -3
@@ -1,23 +1,30 @@
1
1
  // @bun
2
+ import {
3
+ builtins,
4
+ groupDescriptions
5
+ } from "./cli-np6a4hbd.js";
6
+ import {
7
+ computeFlags,
8
+ toGunshi,
9
+ withBuiltin
10
+ } from "./cli-5xasa3gy.js";
11
+ import {
12
+ ExitCode,
13
+ KitError
14
+ } from "./cli-7wvrehng.js";
2
15
  import {
3
16
  installSignalHandlers,
4
17
  interrupted,
5
18
  runCleanup
6
19
  } from "./cli-fqxtcj42.js";
7
20
  import {
8
- computeFlags,
9
- toGunshi
10
- } from "./cli-6dxp4v3m.js";
11
- import {
21
+ emitJson,
22
+ jsonEmitted,
12
23
  log
13
- } from "./cli-07t28k94.js";
24
+ } from "./cli-540nme4e.js";
14
25
  import {
15
26
  require_picocolors
16
27
  } from "./cli-5wasc5mr.js";
17
- import {
18
- ExitCode,
19
- KitError
20
- } from "./cli-7wvrehng.js";
21
28
  import {
22
29
  __require,
23
30
  __toESM
@@ -1364,7 +1371,7 @@ var import_picocolors2 = __toESM(require_picocolors(), 1);
1364
1371
  // package.json
1365
1372
  var package_default = {
1366
1373
  name: "@jordond/kit",
1367
- version: "0.1.0",
1374
+ version: "0.2.1",
1368
1375
  description: "One dev toolkit for every app: CLI, shared fastlane, Gradle conventions",
1369
1376
  license: "MIT",
1370
1377
  type: "module",
@@ -1455,7 +1462,10 @@ var workspace = z.object({
1455
1462
  }).strict();
1456
1463
  var configSchema = z.object({
1457
1464
  name: z.string().min(1),
1458
- gradle: z.object({ root: z.string() }).strict().optional(),
1465
+ gradle: z.object({
1466
+ root: z.string(),
1467
+ init: z.union([z.string(), z.array(z.string())]).optional()
1468
+ }).strict().optional(),
1459
1469
  versions: z.object({
1460
1470
  file: z.string(),
1461
1471
  keys: z.record(z.string(), z.string())
@@ -1464,7 +1474,8 @@ var configSchema = z.object({
1464
1474
  schema: z.string().optional(),
1465
1475
  outputs: z.record(z.string(), z.object({
1466
1476
  pick: z.array(z.string()).optional(),
1467
- rename: z.record(z.string(), z.string()).optional()
1477
+ rename: z.record(z.string(), z.string()).optional(),
1478
+ vars: z.record(z.string(), z.string()).optional()
1468
1479
  }).strict()).optional(),
1469
1480
  workerSecrets: z.record(z.string(), z.array(z.string())).optional(),
1470
1481
  githubSecrets: z.array(z.string()).optional()
@@ -1473,10 +1484,15 @@ var configSchema = z.object({
1473
1484
  targets: z.record(z.string(), target).default({}),
1474
1485
  cloudflare: z.object({
1475
1486
  accountId: z.string().optional(),
1476
- d1: z.record(z.string(), z.object({ name: z.string(), target: z.string() }).strict()).optional()
1487
+ d1: z.record(z.string(), z.object({
1488
+ name: z.string(),
1489
+ target: z.string(),
1490
+ default: z.boolean().optional()
1491
+ }).strict()).optional()
1477
1492
  }).strict().optional(),
1478
1493
  release: z.object({
1479
1494
  branches: z.array(z.string()).optional(),
1495
+ fastlaneDir: z.string().optional(),
1480
1496
  notes: z.object({ maxLength: z.number().int().positive().optional() }).strict().optional(),
1481
1497
  preflight: z.array(z.string()).optional(),
1482
1498
  ios: z.object({
@@ -1485,6 +1501,7 @@ var configSchema = z.object({
1485
1501
  scheme: z.string(),
1486
1502
  output: z.string(),
1487
1503
  teamId: z.string().optional(),
1504
+ xcconfig: z.string().optional(),
1488
1505
  testflightGroups: z.object({ alpha: z.string(), beta: z.string() }).partial().optional(),
1489
1506
  sentry: z.object({ org: z.string(), project: z.string() }).strict().optional()
1490
1507
  }).strict().optional(),
@@ -1509,6 +1526,14 @@ var configSchema = z.object({
1509
1526
  });
1510
1527
  }
1511
1528
  }
1529
+ const defaults = Object.entries(c.cloudflare?.d1 ?? {}).filter(([, d]) => d.default);
1530
+ if (defaults.length > 1) {
1531
+ ctx.addIssue({
1532
+ code: "custom",
1533
+ path: ["cloudflare", "d1"],
1534
+ message: `Only one database can be the default (${defaults.map(([k]) => k).join(", ")})`
1535
+ });
1536
+ }
1512
1537
  if (c.targets.workspace) {
1513
1538
  ctx.addIssue({ code: "custom", path: ["targets", "workspace"], message: '"workspace" is reserved' });
1514
1539
  }
@@ -1556,160 +1581,6 @@ ${issues}`, "Fix the fields above", ExitCode.config);
1556
1581
  return result.data;
1557
1582
  }
1558
1583
 
1559
- // src/cli/builtins.ts
1560
- var builtins = [
1561
- { path: ["dev"], description: "Run a dev server", group: "Develop", load: () => import("./dev-yc9xmntj.js") },
1562
- {
1563
- path: ["build"],
1564
- description: "Build every target",
1565
- group: "Develop",
1566
- load: () => import("./build-88hxf0kc.js")
1567
- },
1568
- {
1569
- path: ["deploy"],
1570
- description: "Deploy a target",
1571
- group: "Develop",
1572
- load: () => import("./deploy-8mg1zhpb.js")
1573
- },
1574
- {
1575
- path: ["lint"],
1576
- description: "Lint every target",
1577
- group: "Quality",
1578
- load: () => import("./lint-280dpn4y.js")
1579
- },
1580
- {
1581
- path: ["format"],
1582
- description: "Format every target",
1583
- group: "Quality",
1584
- load: () => import("./format-mnqfak22.js")
1585
- },
1586
- {
1587
- path: ["typecheck"],
1588
- description: "Typecheck every target",
1589
- group: "Quality",
1590
- load: () => import("./typecheck-e86e6yg1.js")
1591
- },
1592
- {
1593
- path: ["check"],
1594
- description: "Lint and typecheck every target",
1595
- group: "Quality",
1596
- load: () => import("./check-ngc4kzmj.js")
1597
- },
1598
- {
1599
- path: ["test"],
1600
- description: "Run the test suites",
1601
- group: "Quality",
1602
- load: () => import("./test-198w46m4.js")
1603
- },
1604
- {
1605
- path: ["release", "ios"],
1606
- description: "Build and upload iOS to a track",
1607
- group: "Release",
1608
- load: () => import("./ios-msg4bk15.js")
1609
- },
1610
- {
1611
- path: ["release", "android"],
1612
- description: "Build and upload Android to a track",
1613
- group: "Release",
1614
- load: () => import("./android-g73naxgg.js")
1615
- },
1616
- {
1617
- path: ["env", "sync"],
1618
- description: "Render env outputs (.dev.vars) from .env",
1619
- group: "Infra",
1620
- load: () => import("./sync-wc4jpmkj.js")
1621
- },
1622
- {
1623
- path: ["env", "check"],
1624
- description: "Validate .env and check outputs for drift",
1625
- group: "Infra",
1626
- load: () => import("./check-7mndz8g8.js")
1627
- },
1628
- {
1629
- path: ["env", "push"],
1630
- description: "Push secrets with wrangler and gh",
1631
- group: "Infra",
1632
- load: () => import("./push-xzqw218t.js")
1633
- },
1634
- {
1635
- path: ["env", "init"],
1636
- description: "Create .env and ask for missing keys",
1637
- group: "Infra",
1638
- load: () => import("./init-0402av4m.js")
1639
- },
1640
- {
1641
- path: ["db", "migrate"],
1642
- description: "Apply pending D1 migrations",
1643
- group: "Infra",
1644
- load: () => import("./migrate-emk758k1.js")
1645
- },
1646
- {
1647
- path: ["db", "list"],
1648
- description: "List D1 migrations",
1649
- group: "Infra",
1650
- load: () => import("./list-jdc3dqk0.js")
1651
- },
1652
- {
1653
- path: ["db", "create"],
1654
- description: "Create a D1 migration",
1655
- group: "Infra",
1656
- load: () => import("./create-7s8h3dja.js")
1657
- },
1658
- {
1659
- path: ["db", "exec"],
1660
- description: "Run SQL against D1",
1661
- group: "Infra",
1662
- load: () => import("./exec-1k3sqwxz.js")
1663
- },
1664
- {
1665
- path: ["gradle"],
1666
- description: "Run ./gradlew in the Gradle root",
1667
- group: "Develop",
1668
- load: () => import("./gradle-gtkf3geq.js")
1669
- },
1670
- {
1671
- path: ["wrangler"],
1672
- description: "Run wrangler in a worker target's directory",
1673
- group: "Develop",
1674
- load: () => import("./wrangler-0ctx1p3w.js")
1675
- },
1676
- {
1677
- path: ["xcode"],
1678
- description: "Open the iOS project in Xcode",
1679
- group: "Develop",
1680
- load: () => import("./xcode-g44qh2rc.js")
1681
- },
1682
- {
1683
- path: ["doctor"],
1684
- description: "Check tools, versions and .env",
1685
- group: "Setup",
1686
- load: () => import("./doctor-0wzmfyyh.js")
1687
- },
1688
- {
1689
- path: ["init"],
1690
- description: "Set up a fresh clone",
1691
- group: "Setup",
1692
- load: () => import("./init-qr7y55ea.js")
1693
- },
1694
- {
1695
- path: ["deps"],
1696
- description: "List or update npm dependencies (catalog-aware)",
1697
- group: "Setup",
1698
- load: () => import("./deps-97dq4mg8.js")
1699
- },
1700
- {
1701
- path: ["config"],
1702
- description: "Print the resolved kit.config.ts",
1703
- group: "Setup",
1704
- load: () => import("./config-ey5yrrfn.js")
1705
- }
1706
- ];
1707
- var groupDescriptions = {
1708
- release: "Ship to the stores",
1709
- env: "Render, check and push env from .env",
1710
- db: "Cloudflare D1 migrations and queries"
1711
- };
1712
-
1713
1584
  // src/cli/discover.ts
1714
1585
  import { join as join2 } from "path";
1715
1586
  import { pathToFileURL as pathToFileURL2 } from "url";
@@ -1818,22 +1689,37 @@ function kitGlobals(version, renderUsage) {
1818
1689
  // src/cli/usage.ts
1819
1690
  var import_picocolors = __toESM(require_picocolors(), 1);
1820
1691
  var GROUP_ORDER = ["Develop", "Quality", "Release", "Infra", "Setup"];
1821
- function childrenOf(ctx) {
1692
+ function lookup(ctx) {
1822
1693
  let level = ctx.env.subCommands;
1694
+ let cmd;
1823
1695
  for (const seg of ctx.commandPath ?? []) {
1824
- const next = level?.get(seg)?.subCommands;
1696
+ cmd = level?.get(seg);
1697
+ const next = cmd?.subCommands;
1825
1698
  level = next ? new Map(Object.entries(next)) : undefined;
1826
1699
  }
1827
- return level ?? new Map;
1700
+ return { cmd, children: level ?? new Map };
1828
1701
  }
1829
1702
  async function renderUsage(ctx) {
1830
1703
  const path = ["kit", ...ctx.commandPath ?? []].join(" ");
1831
1704
  const lines = [];
1832
1705
  if (ctx.description)
1833
1706
  lines.push(ctx.description, "");
1834
- const children = childrenOf(ctx);
1707
+ const { cmd: self, children } = lookup(ctx);
1835
1708
  const hasRun = typeof ctx === "object" && ctx.commandPath.length > 0;
1836
- lines.push(import_picocolors.default.bold("Usage"), ` ${import_picocolors.default.cyan(path)}${children.size ? " <command>" : ""} [options]`, "");
1709
+ const positionals = Object.entries(ctx.args ?? {}).filter(([, a]) => a.type === "positional").map(([name]) => ` <${name}>`).join("");
1710
+ const tail = self?.passthrough ? " [args\u2026]" : `${children.size ? " <command>" : ""}${positionals} [options]`;
1711
+ lines.push(import_picocolors.default.bold("Usage"), ` ${import_picocolors.default.cyan(path)}${tail}`, "");
1712
+ if (self?.passthrough) {
1713
+ lines.push("Every argument passes through untouched; kit parses no flags here (no --json).", `Only a leading -h/--help shows this; \`${path} <args> --help\` reaches the tool.`, "");
1714
+ }
1715
+ const examples = typeof self?.examples === "string" ? self.examples : "";
1716
+ if (examples) {
1717
+ lines.push(import_picocolors.default.bold("Examples"));
1718
+ for (const e of examples.split(`
1719
+ `))
1720
+ lines.push(` ${e.startsWith("#") ? import_picocolors.default.dim(e) : e}`);
1721
+ lines.push("");
1722
+ }
1837
1723
  if (children.size) {
1838
1724
  const groups = new Map;
1839
1725
  for (const [name, cmd] of children) {
@@ -1858,7 +1744,7 @@ async function renderUsage(ctx) {
1858
1744
  }
1859
1745
  }
1860
1746
  const args = Object.entries(ctx.args ?? {});
1861
- if (args.length && (hasRun || !children.size)) {
1747
+ if (args.length && (hasRun || !children.size) && !self?.passthrough) {
1862
1748
  lines.push(import_picocolors.default.bold("Options"));
1863
1749
  const rows = args.map(([name, a]) => {
1864
1750
  const flag = a.type === "positional" ? `<${name}>` : `${a.short ? `-${a.short}, ` : " "}--${name}`;
@@ -1875,6 +1761,7 @@ async function renderUsage(ctx) {
1875
1761
  }
1876
1762
 
1877
1763
  // src/cli/main.ts
1764
+ var SHELLS = ["zsh", "bash", "fish"];
1878
1765
  function commandTokens(argv) {
1879
1766
  const out = [];
1880
1767
  for (const a of argv) {
@@ -1886,7 +1773,8 @@ function commandTokens(argv) {
1886
1773
  }
1887
1774
  var same = (a, b) => a.length === b.length && a.every((s, i) => s === b[i]);
1888
1775
  var startsWith = (a, prefix) => prefix.every((s, i) => a[i] === s);
1889
- async function collectLeaves(root, appName) {
1776
+ async function collectLeaves(root, config) {
1777
+ const appName = config?.name;
1890
1778
  const leaves = builtins.map((b) => ({
1891
1779
  path: b.path,
1892
1780
  description: b.description,
@@ -1896,6 +1784,17 @@ async function collectLeaves(root, appName) {
1896
1784
  }));
1897
1785
  if (!root)
1898
1786
  return leaves;
1787
+ for (const name of Object.keys(config?.release?.services ?? {})) {
1788
+ if (leaves.some((l) => l.path[0] === "release" && l.path[1] === name))
1789
+ continue;
1790
+ leaves.push({
1791
+ path: ["release", name],
1792
+ description: `Release the ${name} service`,
1793
+ group: "Release",
1794
+ source: "builtin",
1795
+ load: async () => (await import("./service-b282yyn5.js")).serviceCommand(name)
1796
+ });
1797
+ }
1899
1798
  for (const f of listRepoCommands(root)) {
1900
1799
  leaves.push({
1901
1800
  path: f.path,
@@ -1951,13 +1850,17 @@ async function main(argv) {
1951
1850
  config = await loadConfig(root);
1952
1851
  }
1953
1852
  const rt = { root, config };
1954
- const leaves = await collectLeaves(root, config?.name);
1853
+ const leaves = await collectLeaves(root, config);
1955
1854
  const tokens = commandTokens(argv);
1956
- if (tokens[0] === "complete") {
1855
+ const wantsHelp = argv.includes("--help") || argv.includes("-h");
1856
+ const script = tokens[0] === "completion" && SHELLS.includes(tokens[1] ?? "") && !wantsHelp;
1857
+ if (tokens[0] === "complete" || script) {
1957
1858
  const { default: completion } = await import("./index-erv82p4z.js");
1958
1859
  const all = new Map;
1959
1860
  await Promise.all(leaves.map(async (l) => all.set(l, await l.load())));
1960
- await cli(argv, { name: "kit", run: () => {} }, {
1861
+ if (script)
1862
+ Object.defineProperty(process, "execPath", { value: "kit", configurable: true });
1863
+ await cli(script ? ["complete", tokens[1]] : argv, { name: "kit", run: () => {} }, {
1961
1864
  name: "kit",
1962
1865
  version: package_default.version,
1963
1866
  subCommands: buildTree(leaves, all, rt),
@@ -1986,10 +1889,11 @@ async function main(argv) {
1986
1889
  const picked = target2 && loaded.get(target2);
1987
1890
  if (target2 && picked?.passthrough) {
1988
1891
  const rest = argv.slice(target2.path.length);
1989
- await picked.run({ root, config, args: {}, positionals: [], rest, flags: computeFlags({}), log });
1990
- return process.exitCode === undefined ? 0 : Number(process.exitCode);
1892
+ if (rest[0] !== "-h" && rest[0] !== "--help") {
1893
+ await picked.run(withBuiltin({ root, config, args: {}, positionals: [], rest, flags: computeFlags({}), log }));
1894
+ return process.exitCode === undefined ? 0 : Number(process.exitCode);
1895
+ }
1991
1896
  }
1992
- const wantsHelp = argv.includes("--help") || argv.includes("-h");
1993
1897
  if (!target2 || wantsHelp) {
1994
1898
  const level = leaves.filter((l) => l.source === "repo" && startsWith(l.path, tokens.slice(0, l.path.length - 1)));
1995
1899
  await Promise.all(level.map(async (l) => loaded.set(l, await l.load())));
@@ -2035,6 +1939,16 @@ installSignalHandlers();
2035
1939
  try {
2036
1940
  process.exitCode = await main(process.argv.slice(2));
2037
1941
  } catch (e) {
1942
+ const argv = process.argv.slice(2);
1943
+ const dashdash = argv.indexOf("--");
1944
+ if ((dashdash < 0 ? argv : argv.slice(0, dashdash)).includes("--json") && !jsonEmitted()) {
1945
+ emitJson({
1946
+ ok: false,
1947
+ error: e instanceof Error ? e.message : String(e),
1948
+ ...e instanceof KitError && e.hint ? { hint: e.hint } : {},
1949
+ exitCode: e instanceof KitError ? e.exitCode : ExitCode.failed
1950
+ });
1951
+ }
2038
1952
  if (e instanceof KitError) {
2039
1953
  log.error(e.message, e.hint);
2040
1954
  process.exitCode = e.exitCode;
@@ -2,17 +2,17 @@
2
2
  import {
3
3
  dbArgs,
4
4
  remoteArg
5
- } from "./cli-m53122z6.js";
6
- import"./cli-bam7dqfd.js";
5
+ } from "./cli-f7y7gmvf.js";
6
+ import"./cli-51ha0t4k.js";
7
+ import {
8
+ defineCommand
9
+ } from "./cli-5xasa3gy.js";
7
10
  import"./cli-qhs8ww91.js";
11
+ import"./cli-7wvrehng.js";
8
12
  import"./cli-fqfan92n.js";
9
13
  import"./cli-fqxtcj42.js";
10
- import {
11
- defineCommand
12
- } from "./cli-6dxp4v3m.js";
13
- import"./cli-07t28k94.js";
14
+ import"./cli-540nme4e.js";
14
15
  import"./cli-5wasc5mr.js";
15
- import"./cli-7wvrehng.js";
16
16
  import {
17
17
  __require
18
18
  } from "./cli-re3ntm60.js";
@@ -22,11 +22,14 @@ var migrate_default = defineCommand({
22
22
  description: "Apply pending D1 migrations (local by default)",
23
23
  group: "Infra",
24
24
  args: { ...dbArgs, ...remoteArg },
25
- examples: `kit db migrate
26
- kit db migrate --remote
27
- kit db migrate --db analytics --dry-run`,
25
+ examples: [
26
+ "kit db migrate # the only database, or the default: true one",
27
+ "kit db migrate --remote",
28
+ "kit db migrate --db analytics --dry-run"
29
+ ].join(`
30
+ `),
28
31
  async run(ctx) {
29
- const { runD1 } = await import("./cloudflare-n5c46k6x.js");
32
+ const { runD1 } = await import("./cloudflare-0yz3f9tx.js");
30
33
  await runD1(ctx, { kind: "migrate", remote: !!ctx.args.remote }, { mutates: true });
31
34
  }
32
35
  });