@jordond/kit 0.0.0-stage → 0.2.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 (288) hide show
  1. package/README.md +139 -2
  2. package/bin/kit +39 -0
  3. package/dist/_verb-28xmg3d3.js +116 -0
  4. package/dist/android-fs3sesnn.js +60 -0
  5. package/dist/build-ak20h5cd.js +42 -0
  6. package/dist/builtins-bj2yypm6.js +10 -0
  7. package/dist/bump-hsfmz2rn.js +124 -0
  8. package/dist/certs-w5v0877b.js +76 -0
  9. package/dist/check-771pracn.js +33 -0
  10. package/dist/check-jf1apke7.js +54 -0
  11. package/dist/cleanup-hrcvxmh2.js +18 -0
  12. package/dist/cli/builtins.d.ts +13 -0
  13. package/dist/cli/command.d.ts +106 -0
  14. package/dist/cli/discover.d.ts +10 -0
  15. package/dist/cli/main.d.ts +1 -0
  16. package/dist/cli/plugin.d.ts +7 -0
  17. package/dist/cli/usage.d.ts +3 -0
  18. package/dist/cli-19me2qqg.js +1056 -0
  19. package/dist/cli-1htjx51v.js +80 -0
  20. package/dist/cli-51ha0t4k.js +70 -0
  21. package/dist/cli-540nme4e.js +46 -0
  22. package/dist/cli-5d61x8vg.js +675 -0
  23. package/dist/cli-5wasc5mr.js +76 -0
  24. package/dist/cli-699g070n.js +104 -0
  25. package/dist/cli-7wvrehng.js +23 -0
  26. package/dist/cli-cc13vv98.js +2023 -0
  27. package/dist/cli-dht27t4r.js +41 -0
  28. package/dist/cli-fqfan92n.js +135 -0
  29. package/dist/cli-fqxtcj42.js +75 -0
  30. package/dist/cli-g519ev8e.js +89 -0
  31. package/dist/cli-gqy1xp9t.js +97 -0
  32. package/dist/cli-qhs8ww91.js +51 -0
  33. package/dist/cli-qq1ktr8q.js +234 -0
  34. package/dist/cli-r6g14qrk.js +195 -0
  35. package/dist/cli-re3ntm60.js +48 -0
  36. package/dist/cli-sx073w8p.js +191 -0
  37. package/dist/cli-vt6582gp.js +122 -0
  38. package/dist/cli-xax5grx1.js +108 -0
  39. package/dist/cli-xjpjdc2c.js +70 -0
  40. package/dist/cli-y3mjprpv.js +31 -0
  41. package/dist/cli-zf47bkgh.js +227 -0
  42. package/dist/cli.d.ts +1 -0
  43. package/dist/cli.js +35 -0
  44. package/dist/cloudflare-xf7e2dn3.js +43 -0
  45. package/dist/command-j1etpmj6.js +21 -0
  46. package/dist/commands/_verb.d.ts +15 -0
  47. package/dist/commands/build.d.ts +11 -0
  48. package/dist/commands/check.d.ts +8 -0
  49. package/dist/commands/completion.d.ts +15 -0
  50. package/dist/commands/config.d.ts +2 -0
  51. package/dist/commands/db/create.d.ts +7 -0
  52. package/dist/commands/db/exec.d.ts +16 -0
  53. package/dist/commands/db/list.d.ts +11 -0
  54. package/dist/commands/db/migrate.d.ts +11 -0
  55. package/dist/commands/deploy.d.ts +18 -0
  56. package/dist/commands/deps.d.ts +72 -0
  57. package/dist/commands/dev.d.ts +8 -0
  58. package/dist/commands/doctor.d.ts +63 -0
  59. package/dist/commands/env/check.d.ts +7 -0
  60. package/dist/commands/env/init.d.ts +2 -0
  61. package/dist/commands/env/push.d.ts +16 -0
  62. package/dist/commands/env/sync.d.ts +2 -0
  63. package/dist/commands/fastlane.d.ts +2 -0
  64. package/dist/commands/format.d.ts +11 -0
  65. package/dist/commands/gradle.d.ts +2 -0
  66. package/dist/commands/init.d.ts +70 -0
  67. package/dist/commands/lint.d.ts +12 -0
  68. package/dist/commands/release/android.d.ts +30 -0
  69. package/dist/commands/release/certs.d.ts +7 -0
  70. package/dist/commands/release/ios.d.ts +22 -0
  71. package/dist/commands/release/service.d.ts +6 -0
  72. package/dist/commands/test.d.ts +2 -0
  73. package/dist/commands/typecheck.d.ts +2 -0
  74. package/dist/commands/version/bump.d.ts +17 -0
  75. package/dist/commands/version/show.d.ts +2 -0
  76. package/dist/commands/wrangler.d.ts +2 -0
  77. package/dist/commands/xcode.d.ts +10 -0
  78. package/dist/completion-m051yvzk.js +38 -0
  79. package/dist/concurrent-zdz69ye5.js +96 -0
  80. package/dist/config/load.d.ts +6 -0
  81. package/dist/config/schema.d.ts +139 -0
  82. package/dist/config-c8yh5m9j.js +22 -0
  83. package/dist/create-j7ve677k.js +38 -0
  84. package/dist/creds-rhxhmpe6.js +22 -0
  85. package/dist/deploy-af2v2jhj.js +152 -0
  86. package/dist/deps-1apnsrre.js +334 -0
  87. package/dist/dev-6dv5xbv2.js +114 -0
  88. package/dist/doctor-cr3hcfvt.js +377 -0
  89. package/dist/errors-1fjbr7ee.js +10 -0
  90. package/dist/exec-wa94sqwn.js +53 -0
  91. package/dist/fastlane-2kjyfqjg.js +26 -0
  92. package/dist/fastlane-qsjmbxtj.js +38 -0
  93. package/dist/format-rehf6c8g.js +39 -0
  94. package/dist/git-3gyyfk0x.js +24 -0
  95. package/dist/gradle-wv77a2f1.js +39 -0
  96. package/dist/index-cx34x4np.js +874 -0
  97. package/dist/index-erv82p4z.js +1528 -0
  98. package/dist/index-jqfz6hfy.js +2659 -0
  99. package/dist/index-mm4ht8yh.js +9 -0
  100. package/dist/index-s3ehw02w.js +1610 -0
  101. package/dist/index.d.ts +11 -0
  102. package/dist/index.js +55 -0
  103. package/dist/init-gtkmx54a.js +76 -0
  104. package/dist/init-kck1p6gj.js +250 -0
  105. package/dist/init-n38980zv.js +78 -0
  106. package/dist/ios-f6pwcqqt.js +50 -0
  107. package/dist/lib/cleanup.d.ts +21 -0
  108. package/dist/lib/cloudflare.d.ts +97 -0
  109. package/dist/lib/concurrent.d.ts +21 -0
  110. package/dist/lib/env/init.d.ts +22 -0
  111. package/dist/lib/env/load.d.ts +12 -0
  112. package/dist/lib/env/push.d.ts +54 -0
  113. package/dist/lib/env/render.d.ts +52 -0
  114. package/dist/lib/env/schema.d.ts +49 -0
  115. package/dist/lib/errors.d.ts +14 -0
  116. package/dist/lib/fastlane.d.ts +36 -0
  117. package/dist/lib/git.d.ts +36 -0
  118. package/dist/lib/log.d.ts +17 -0
  119. package/dist/lib/pm.d.ts +8 -0
  120. package/dist/lib/proc.d.ts +73 -0
  121. package/dist/lib/prompt.d.ts +32 -0
  122. package/dist/lib/release/creds.d.ts +26 -0
  123. package/dist/lib/release/mobile.d.ts +41 -0
  124. package/dist/lib/release/notes.d.ts +15 -0
  125. package/dist/lib/release/preflight.d.ts +30 -0
  126. package/dist/lib/release/version.d.ts +25 -0
  127. package/dist/lib/secrets.d.ts +32 -0
  128. package/dist/lib/steps.d.ts +38 -0
  129. package/dist/lib/targets.d.ts +46 -0
  130. package/dist/lib/toml.d.ts +15 -0
  131. package/dist/lint-e0j22mab.js +39 -0
  132. package/dist/list-fzwqsfsk.js +34 -0
  133. package/dist/load-dxhacsn4.js +137 -0
  134. package/dist/log-g1ebh60s.js +15 -0
  135. package/dist/main-jrcgdccz.js +1965 -0
  136. package/dist/migrate-4ncx9tqj.js +38 -0
  137. package/dist/mobile-9n86ytzx.js +384 -0
  138. package/dist/notes-1zsa7qac.js +21 -0
  139. package/dist/picocolors-0dxagz5d.js +6 -0
  140. package/dist/pm-5q5vz6w3.js +14 -0
  141. package/dist/proc-jv4bcyyx.js +33 -0
  142. package/dist/prompt-3wwegvqc.js +15 -0
  143. package/dist/push-acejr9gj.js +124 -0
  144. package/dist/push-fq5syn8c.js +117 -0
  145. package/dist/render-vn40fp54.js +22 -0
  146. package/dist/service-xekpd27p.js +102 -0
  147. package/dist/show-jw5bx55h.js +50 -0
  148. package/dist/steps-9knqpszw.js +16 -0
  149. package/dist/sync-9z8n875s.js +53 -0
  150. package/dist/targets-bywmzbtj.js +22 -0
  151. package/dist/test-8jws3x98.js +26 -0
  152. package/dist/toml-3fxsdkhr.js +14 -0
  153. package/dist/typecheck-1hn3hgz9.js +24 -0
  154. package/dist/version-4tz72w42.js +26 -0
  155. package/dist/wrangler-412fadcz.js +46 -0
  156. package/dist/xcode-qzyee632.js +75 -0
  157. package/fastlane/Fastfile +413 -0
  158. package/fastlane/Gemfile +21 -0
  159. package/fastlane/Gemfile.lock +275 -0
  160. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.0/io.github.jordond.kit.android.application.gradle.plugin-0.2.0.pom +15 -0
  161. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.0/io.github.jordond.kit.android.application.gradle.plugin-0.2.0.pom.md5 +1 -0
  162. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.0/io.github.jordond.kit.android.application.gradle.plugin-0.2.0.pom.sha1 +1 -0
  163. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.0/io.github.jordond.kit.android.application.gradle.plugin-0.2.0.pom.sha256 +1 -0
  164. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.0/io.github.jordond.kit.android.application.gradle.plugin-0.2.0.pom.sha512 +1 -0
  165. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml +13 -0
  166. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.md5 +1 -0
  167. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  168. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  169. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  170. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.0.pom +15 -0
  171. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.0.pom.md5 +1 -0
  172. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.0.pom.sha1 +1 -0
  173. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.0.pom.sha256 +1 -0
  174. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.0.pom.sha512 +1 -0
  175. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml +13 -0
  176. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.md5 +1 -0
  177. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  178. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  179. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  180. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.0/io.github.jordond.kit.compose.gradle.plugin-0.2.0.pom +15 -0
  181. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.0/io.github.jordond.kit.compose.gradle.plugin-0.2.0.pom.md5 +1 -0
  182. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.0/io.github.jordond.kit.compose.gradle.plugin-0.2.0.pom.sha1 +1 -0
  183. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.0/io.github.jordond.kit.compose.gradle.plugin-0.2.0.pom.sha256 +1 -0
  184. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.0/io.github.jordond.kit.compose.gradle.plugin-0.2.0.pom.sha512 +1 -0
  185. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml +13 -0
  186. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.md5 +1 -0
  187. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  188. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  189. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  190. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.0.pom +15 -0
  191. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.0.pom.md5 +1 -0
  192. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.0.pom.sha1 +1 -0
  193. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.0.pom.sha256 +1 -0
  194. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.0.pom.sha512 +1 -0
  195. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml +13 -0
  196. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.md5 +1 -0
  197. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  198. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  199. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  200. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.jar +0 -0
  201. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.jar.md5 +1 -0
  202. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.jar.sha1 +1 -0
  203. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.jar.sha256 +1 -0
  204. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.jar.sha512 +1 -0
  205. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.module +64 -0
  206. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.module.md5 +1 -0
  207. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.module.sha1 +1 -0
  208. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.module.sha256 +1 -0
  209. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.module.sha512 +1 -0
  210. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.pom +12 -0
  211. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.pom.md5 +1 -0
  212. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.pom.sha1 +1 -0
  213. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.pom.sha256 +1 -0
  214. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.pom.sha512 +1 -0
  215. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml +13 -0
  216. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.md5 +1 -0
  217. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha1 +1 -0
  218. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha256 +1 -0
  219. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha512 +1 -0
  220. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.jar +0 -0
  221. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.jar.md5 +1 -0
  222. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.jar.sha1 +1 -0
  223. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.jar.sha256 +1 -0
  224. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.jar.sha512 +1 -0
  225. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.module +64 -0
  226. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.module.md5 +1 -0
  227. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.module.sha1 +1 -0
  228. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.module.sha256 +1 -0
  229. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.module.sha512 +1 -0
  230. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.pom +12 -0
  231. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.pom.md5 +1 -0
  232. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.pom.sha1 +1 -0
  233. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.pom.sha256 +1 -0
  234. package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.pom.sha512 +1 -0
  235. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml +13 -0
  236. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.md5 +1 -0
  237. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha1 +1 -0
  238. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha256 +1 -0
  239. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha512 +1 -0
  240. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.0.pom +15 -0
  241. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.0.pom.md5 +1 -0
  242. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.0.pom.sha1 +1 -0
  243. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.0.pom.sha256 +1 -0
  244. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.0.pom.sha512 +1 -0
  245. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml +13 -0
  246. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.md5 +1 -0
  247. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  248. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  249. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  250. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.0/io.github.jordond.kit.lint.gradle.plugin-0.2.0.pom +15 -0
  251. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.0/io.github.jordond.kit.lint.gradle.plugin-0.2.0.pom.md5 +1 -0
  252. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.0/io.github.jordond.kit.lint.gradle.plugin-0.2.0.pom.sha1 +1 -0
  253. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.0/io.github.jordond.kit.lint.gradle.plugin-0.2.0.pom.sha256 +1 -0
  254. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.0/io.github.jordond.kit.lint.gradle.plugin-0.2.0.pom.sha512 +1 -0
  255. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml +13 -0
  256. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.md5 +1 -0
  257. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  258. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  259. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  260. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.0/io.github.jordond.kit.release.gradle.plugin-0.2.0.pom +15 -0
  261. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.0/io.github.jordond.kit.release.gradle.plugin-0.2.0.pom.md5 +1 -0
  262. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.0/io.github.jordond.kit.release.gradle.plugin-0.2.0.pom.sha1 +1 -0
  263. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.0/io.github.jordond.kit.release.gradle.plugin-0.2.0.pom.sha256 +1 -0
  264. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.0/io.github.jordond.kit.release.gradle.plugin-0.2.0.pom.sha512 +1 -0
  265. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml +13 -0
  266. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.md5 +1 -0
  267. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  268. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  269. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  270. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.0/io.github.jordond.kit.settings.gradle.plugin-0.2.0.pom +15 -0
  271. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.0/io.github.jordond.kit.settings.gradle.plugin-0.2.0.pom.md5 +1 -0
  272. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.0/io.github.jordond.kit.settings.gradle.plugin-0.2.0.pom.sha1 +1 -0
  273. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.0/io.github.jordond.kit.settings.gradle.plugin-0.2.0.pom.sha256 +1 -0
  274. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.0/io.github.jordond.kit.settings.gradle.plugin-0.2.0.pom.sha512 +1 -0
  275. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml +13 -0
  276. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.md5 +1 -0
  277. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha1 +1 -0
  278. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha256 +1 -0
  279. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha512 +1 -0
  280. package/package.json +58 -4
  281. package/templates/lefthook.yml +6 -0
  282. package/templates/mise.toml +6 -0
  283. package/templates/new/.env.example +20 -0
  284. package/templates/new/.github/workflows/ci.yml +45 -0
  285. package/templates/new/apps/client/fastlane/Fastfile +1 -0
  286. package/templates/new/apps/client/gradle/libs.versions.toml +25 -0
  287. package/templates/new/apps/client/settings.gradle.kts +25 -0
  288. package/templates/new/kit.config.ts +15 -0
@@ -0,0 +1,22 @@
1
+ import type { EnvKey, EnvSchema } from './schema';
2
+ /**
3
+ * `kit env init` (ported from WhaleSay `env/init.ts`): create `.env` from `.env.example`, backfill
4
+ * keys the example gained since, then ask for required keys that are empty or still a
5
+ * `replace-me…` placeholder. Optional keys are never asked. Values are only ever written to `.env`.
6
+ */
7
+ export declare const PLACEHOLDER_RE: RegExp;
8
+ /** Replace `KEY=…` in place, or append it. Comments and other lines are kept. */
9
+ export declare function setKey(text: string, key: string, value: string): string;
10
+ export interface InitPlan {
11
+ /** `.env` did not exist; it starts as a copy of `.env.example` (or empty). */
12
+ created: boolean;
13
+ /** Keys copied from `.env.example` that `.env` lacked. */
14
+ backfilled: string[];
15
+ /** Required keys that are empty or placeholders. */
16
+ ask: EnvKey[];
17
+ /** `.env` text after copy and backfill, before answers. */
18
+ text: string;
19
+ }
20
+ export declare function planInit(root: string, schema: EnvSchema): InitPlan;
21
+ /** Apply answers and write `.env` (0600). Returns the parsed result. */
22
+ export declare function applyInit(root: string, plan: InitPlan, answers: Record<string, string>): Record<string, string>;
@@ -0,0 +1,12 @@
1
+ import type { KitConfig } from '../../config/schema';
2
+ import { type EnvIssue, type EnvSchema, type EnvValues } from './schema';
3
+ /** What every `kit env` command starts from: the schema and `.env` validated against it. */
4
+ export interface EnvState {
5
+ schema: EnvSchema;
6
+ /** `.env` values (kit loaded it into the process env) with schema defaults applied. */
7
+ values: Record<string, string>;
8
+ issues: EnvIssue[];
9
+ }
10
+ export declare function loadEnv(root: string, config: KitConfig, raw?: EnvValues): Promise<EnvState>;
11
+ /** Throw exit 3 listing invalid keys (names and redacted messages only). */
12
+ export declare function assertValid(state: EnvState): void;
@@ -0,0 +1,54 @@
1
+ import type { KitConfig } from '../../config/schema';
2
+ import { type PipeResult } from '../secrets';
3
+ import type { EnvValues } from './schema';
4
+ /**
5
+ * Push secrets to their remotes (ported from brewd `lib/env.ts` pushSecrets/pushGithubSecrets and
6
+ * WhaleSay `_lib/wrangler-push.ts`): `wrangler secret put` per `env.workerSecrets[target]`, and
7
+ * `gh secret set` for `env.githubSecrets`. Values go on stdin, never argv.
8
+ *
9
+ * Split in two so the command can show a summary and confirm once between them:
10
+ * - `planPush` lists what is already set remotely (read-only) and classifies each key.
11
+ * - `executePush` pushes the planned keys and stops at the first failure, so a bad credential
12
+ * doesn't fan out into N identical errors.
13
+ * A remote whose list fails is skipped unless `proceedOnListFailure` (`--yes`): kit can't tell
14
+ * what it would overwrite.
15
+ */
16
+ export declare const GITHUB = "github";
17
+ export interface ListResult {
18
+ ok: boolean;
19
+ names: string[];
20
+ /** First line of the failure, redacted. */
21
+ error?: string;
22
+ }
23
+ export interface Destination {
24
+ /** Target name, or `github`. */
25
+ name: string;
26
+ keys: string[];
27
+ list(): Promise<ListResult>;
28
+ put(key: string, value: string): Promise<PipeResult>;
29
+ }
30
+ export type PlanStatus = 'new' | 'overwrite' | 'unknown' | 'skipped-empty' | 'list-failed';
31
+ export interface PlannedDestination {
32
+ destination: Destination;
33
+ listError?: string;
34
+ items: {
35
+ key: string;
36
+ status: PlanStatus;
37
+ }[];
38
+ }
39
+ export type PushStatus = 'pushed' | 'skipped-empty' | 'list-failed' | 'failed' | 'not-run';
40
+ export interface PushOutcome {
41
+ destination: string;
42
+ key: string;
43
+ status: PushStatus;
44
+ /** Redacted child output on failure. */
45
+ output?: string;
46
+ }
47
+ export declare function planPush(dest: Destination, values: EnvValues, opts?: {
48
+ proceedOnListFailure?: boolean;
49
+ }): Promise<PlannedDestination>;
50
+ export declare function executePush(plans: PlannedDestination[], values: EnvValues, onPush?: (dest: string, key: string) => void): Promise<PushOutcome[]>;
51
+ /** A worker target's secrets via wrangler, run from the target's dir. */
52
+ export declare function workerDestination(root: string, config: KitConfig, target: string): Destination;
53
+ /** GitHub Actions secrets via `gh`, run from the repo root (gh infers the repo from its remote). */
54
+ export declare function githubDestination(root: string, keys: string[]): Destination;
@@ -0,0 +1,52 @@
1
+ import type { KitConfig } from '../../config/schema';
2
+ import type { EnvSchema, EnvValues } from './schema';
3
+ /**
4
+ * Outputs rendered from `.env` (ported from WhaleSay `_lib/env-master.ts` and brewd `lib/env.ts`).
5
+ *
6
+ * `env.outputs[path] = { pick?, rename? }`:
7
+ * - `pick`: source keys written under their own name.
8
+ * - `rename`: `{ OUTPUT_NAME: 'SOURCE_KEY' }`, e.g. admin binds INTERNAL_ADMIN_SECRET as X_INTERNAL_SECRET.
9
+ * - `vars`: static `{ NAME: 'value' }` lines for local dev only (never pushed), e.g. `ENVIRONMENT=dev`.
10
+ * - neither pick nor rename: every schema key.
11
+ * Lines follow vars order, then pick order, then rename order. Files are `.dev.vars` format, written atomically at 0600.
12
+ * A blank value renders as a commented `# KEY=` so the file documents the key and dev servers still boot.
13
+ */
14
+ export declare const GENERATED_BANNER = "# Generated by `kit env sync` from .env. Edit .env and re-run; do not edit by hand.\n";
15
+ export interface OutputLine {
16
+ /** Name in the output file. */
17
+ name: string;
18
+ /** Key in `.env`. */
19
+ source: string;
20
+ /** Static value from `vars`; written as-is, even when empty. */
21
+ value?: string;
22
+ }
23
+ export interface Output {
24
+ /** Repo-relative path from config. */
25
+ path: string;
26
+ lines: OutputLine[];
27
+ }
28
+ export declare function outputs(config: KitConfig, schema: EnvSchema): Output[];
29
+ /** Render an output. Pure. */
30
+ export declare function render(output: Output, values: EnvValues): string;
31
+ /** Parse a rendered (or any dotenv) file into name → value; `# KEY=` placeholders read as ''. */
32
+ export declare function parseDotenv(text: string): Record<string, string>;
33
+ export interface KeyDiff {
34
+ added: string[];
35
+ updated: string[];
36
+ removed: string[];
37
+ }
38
+ /** Which names differ between two files. Names only; values never leave this function. */
39
+ export declare function diffKeys(prev: string | null, next: string): KeyDiff;
40
+ export interface WriteResult extends KeyDiff {
41
+ path: string;
42
+ changed: boolean;
43
+ }
44
+ /** Write via a temp file and rename, so a reader never sees half a file. */
45
+ export declare function writeAtomic(file: string, contents: string): void;
46
+ /** Render and write every output; unchanged files are left alone (mode healed to 0600). */
47
+ export declare function writeOutputs(root: string, list: Output[], values: EnvValues, dryRun?: boolean): WriteResult[];
48
+ export interface Drift extends KeyDiff {
49
+ path: string;
50
+ reason: 'missing' | 'stale';
51
+ }
52
+ export declare function checkOutputs(root: string, list: Output[], values: EnvValues): Drift[];
@@ -0,0 +1,49 @@
1
+ import type { KitConfig } from '../../config/schema';
2
+ /**
3
+ * The env schema (PLAN §11): `env.schema` in kit.config.ts points at a module whose default export
4
+ * (or `schema` export) is a zod object, one key per `.env` variable.
5
+ *
6
+ * Per-key metadata is read from zod `.meta()`:
7
+ *
8
+ * export default z.object({
9
+ * INTERNAL_API_SECRET: z.string().min(32).meta({ description: 'CLI → edge auth' }),
10
+ * PUBLIC_BASE_URL: z.url().meta({ secret: false, description: 'Public edge URL' }),
11
+ * CORS_ALLOWED_ORIGINS: z.string().default('').meta({ secret: false }),
12
+ * })
13
+ *
14
+ * - `secret` defaults to true: unmarked keys are treated as secret (masked prompts, redacted).
15
+ * Mark plain values with `secret: false`.
16
+ * - `description` (or zod `.describe()`) is shown in `kit env init` prompts.
17
+ * - Required = the schema rejects `undefined` (no `.optional()` or `.default()`).
18
+ *
19
+ * The schema module imports the repo's own zod, so it is inspected structurally, never with
20
+ * `instanceof`. Values are never printed; validation messages are redacted.
21
+ */
22
+ export interface EnvKey {
23
+ name: string;
24
+ secret: boolean;
25
+ required: boolean;
26
+ description?: string;
27
+ }
28
+ export interface EnvIssue {
29
+ key: string;
30
+ message: string;
31
+ }
32
+ export type EnvValues = Readonly<Record<string, string | undefined>>;
33
+ export interface EnvSchema {
34
+ /** Keys in declaration order. */
35
+ keys: EnvKey[];
36
+ validate(values: EnvValues): {
37
+ values: Record<string, string>;
38
+ issues: EnvIssue[];
39
+ };
40
+ }
41
+ export declare function describeSchema(schema: unknown): EnvSchema;
42
+ /** A schema with no rules: every key referenced by env config, optional and secret. */
43
+ export declare function implicitSchema(config: KitConfig): EnvSchema;
44
+ /** Source keys named anywhere in `env`: output picks and renames, worker and GitHub secrets. */
45
+ export declare function referencedKeys(config: KitConfig): string[];
46
+ /** Load `env.schema`, or the implicit schema when none is set. */
47
+ export declare function loadEnvSchema(root: string, config: KitConfig): Promise<EnvSchema>;
48
+ /** `Invalid .env` with one line per key; messages are already redacted. */
49
+ export declare function formatIssues(issues: EnvIssue[]): string;
@@ -0,0 +1,14 @@
1
+ export declare const ExitCode: {
2
+ readonly ok: 0;
3
+ readonly failed: 1;
4
+ readonly usage: 2;
5
+ readonly config: 3;
6
+ readonly precondition: 4;
7
+ readonly interrupted: 130;
8
+ };
9
+ export type ExitCode = (typeof ExitCode)[keyof typeof ExitCode];
10
+ export declare class KitError extends Error {
11
+ readonly hint?: string | undefined;
12
+ readonly exitCode: ExitCode;
13
+ constructor(message: string, hint?: string | undefined, exitCode?: ExitCode);
14
+ }
@@ -0,0 +1,36 @@
1
+ import type { KitConfig } from '../config/schema';
2
+ import { type Env } from './proc';
3
+ /**
4
+ * Runs fastlane against kit's shared Fastfile and Gemfile (PLAN D7, S4).
5
+ *
6
+ * The app keeps a one-line `fastlane/Fastfile` that imports `KIT_FASTFILE`; kit runs
7
+ * `bundle exec fastlane` from the app dir with BUNDLE_GEMFILE pointing at kit's Gemfile, the bundle
8
+ * installed outside node_modules, and fastlane's report/docs writes sent to a temp dir.
9
+ */
10
+ /** kit's package dir (holds `fastlane/` and `package.json`), from src/ or dist/. */
11
+ export declare function kitDir(): string;
12
+ /** The dir holding the app's `fastlane/Fastfile`: `release.fastlaneDir`, else gradle.root, else the root. */
13
+ export declare function appFastlaneDir(root: string, config: KitConfig): string;
14
+ /** Bundler env for kit's Gemfile: frozen, installed outside node_modules (D7). */
15
+ export declare function bundleEnv(): Record<string, string>;
16
+ /** The environment every fastlane run gets (D7 + S4). `appRoot` is the dir holding `fastlane/`. */
17
+ export declare function fastlaneEnv(appRoot: string): Record<string, string>;
18
+ /** `bundle check`, and `bundle install` only when it fails (first run, or the lock changed). */
19
+ export declare function ensureBundle(appRoot: string, onLine?: (line: string) => void): Promise<void>;
20
+ /** Test seam. */
21
+ export declare function resetBundle(): void;
22
+ /** `KIT_<KEY>=<value>` lines from lane output (an optional `[hh:mm:ss]: ` prefix allowed). Last wins. */
23
+ export declare function parseOutputs(output: string): Record<string, string>;
24
+ export interface LaneResult {
25
+ code: number;
26
+ output: string;
27
+ outputs: Record<string, string>;
28
+ }
29
+ /**
30
+ * Run `fastlane <platform> <lane>` from `appRoot`, lines redacted, `KIT_*` outputs parsed.
31
+ * stdin is closed so a lane can never stop on a prompt.
32
+ */
33
+ export declare function runLane(appRoot: string, platform: 'ios' | 'android', lane: string, opts?: {
34
+ env?: Env;
35
+ onLine?: (line: string) => void;
36
+ }): Promise<LaneResult>;
@@ -0,0 +1,36 @@
1
+ /** Files staged for commit (added, copied, modified, renamed), repo-relative. */
2
+ export declare function stagedFiles(cwd?: string): Promise<string[]>;
3
+ /** Uncommitted changes (tracked or untracked), as `git status --porcelain` lines. */
4
+ export declare function dirtyFiles(cwd?: string): Promise<string[]>;
5
+ export declare function isClean(cwd?: string): Promise<boolean>;
6
+ /** Branch name, or 'HEAD' when detached. */
7
+ export declare function currentBranch(cwd?: string): Promise<string>;
8
+ /**
9
+ * Nearest tag reachable from `ref` matching the glob `match` (`ios/v*`), or undefined when none
10
+ * does. `exact` asks for the tag name only (`--abbrev=0`), without the `-N-gSHA` suffix.
11
+ */
12
+ export declare function describe(match: string, opts?: {
13
+ cwd?: string;
14
+ ref?: string;
15
+ exact?: boolean;
16
+ }): Promise<string | undefined>;
17
+ export interface Commit {
18
+ sha: string;
19
+ subject: string;
20
+ }
21
+ /** Commits after `since` up to HEAD (all of history when undefined), newest first, optionally limited to paths. */
22
+ export declare function logSince(since: string | undefined, opts?: {
23
+ cwd?: string;
24
+ paths?: string[];
25
+ }): Promise<Commit[]>;
26
+ /** Create a tag at HEAD (or `ref`); annotated when `message` is given. */
27
+ export declare function tag(name: string, opts?: {
28
+ cwd?: string;
29
+ message?: string;
30
+ ref?: string;
31
+ }): Promise<void>;
32
+ /** Push refs (branches or tags) to `remote`. */
33
+ export declare function push(refs: string[], opts?: {
34
+ cwd?: string;
35
+ remote?: string;
36
+ }): Promise<void>;
@@ -0,0 +1,17 @@
1
+ export declare const log: {
2
+ info: (msg: string) => boolean;
3
+ step: (msg: string) => boolean;
4
+ success: (msg: string) => boolean;
5
+ warn: (msg: string) => boolean;
6
+ error: (msg: string, hint?: string) => void;
7
+ dim: (msg: string) => boolean;
8
+ };
9
+ export type Logger = typeof log;
10
+ /** Whether a JSON document was already written this run. */
11
+ export declare const jsonEmitted: () => boolean;
12
+ export declare function emitJson(value: unknown): void;
13
+ /**
14
+ * Run `fn` with stdout pointed at stderr: repo code (preflight modules) may `console.log`, and under
15
+ * --json stdout must hold only the one document.
16
+ */
17
+ export declare function withStdoutOnStderr<T>(fn: () => Promise<T>): Promise<T>;
@@ -0,0 +1,8 @@
1
+ export type PackageManager = 'bun' | 'pnpm' | 'yarn' | 'npm';
2
+ /** Package manager for `dir`: the nearest lockfile walking up to `root`. Defaults to bun. */
3
+ export declare function detectPackageManager(dir: string, root: string): PackageManager;
4
+ export declare const runScript: (pm: PackageManager, script: string) => string[];
5
+ /** Run a binary from node_modules (`bun x`, `pnpm exec`, …). */
6
+ export declare function pmExec(pm: PackageManager, bin: string, ...args: string[]): string[];
7
+ /** Scripts in `<dir>/package.json`, or undefined when there is none. */
8
+ export declare function packageScripts(dir: string): Record<string, string> | undefined;
@@ -0,0 +1,73 @@
1
+ /**
2
+ * The one spawn wrapper (ported from brewd `lib/proc.ts`).
3
+ *
4
+ * Children always get an explicit env: `process.env` (which already holds the root `.env`) plus
5
+ * anything registered with `addChildEnv`, e.g. the pinned CLOUDFLARE_ACCOUNT_ID. Bun.spawn would
6
+ * otherwise snapshot the env kit started with.
7
+ */
8
+ export type Env = Readonly<Record<string, string | undefined>>;
9
+ export interface RunOptions {
10
+ cwd?: string;
11
+ env?: Env;
12
+ }
13
+ /** Add variables every later child gets. */
14
+ export declare function addChildEnv(vars: Env): void;
15
+ export declare function childEnv(env?: Env): Record<string, string | undefined>;
16
+ /** Inherit all stdio, as if run directly. For passthroughs (`kit gradle …`). */
17
+ export declare function run(cmd: readonly string[], opts?: RunOptions): Promise<number>;
18
+ /**
19
+ * Like `run`, but the child's stdout goes to kit's stderr. For `--json` runs that still stream a
20
+ * child's progress: stdout stays free for the one document.
21
+ */
22
+ export declare function runToStderr(cmd: readonly string[], opts?: RunOptions): Promise<number>;
23
+ /** Like `run`, but throws on a non-zero exit. */
24
+ export declare function runOrThrow(cmd: readonly string[], opts?: RunOptions): Promise<void>;
25
+ /** Capture stdout and stderr into one string; print nothing. For steps whose output is noise until they fail. */
26
+ export declare function runQuiet(cmd: readonly string[], opts?: RunOptions): Promise<{
27
+ code: number;
28
+ output: string;
29
+ }>;
30
+ /** Capture stdout and stderr separately; optional `input` goes to stdin (e.g. a secret value). */
31
+ export declare function runPiped(cmd: readonly string[], opts?: RunOptions & {
32
+ input?: string;
33
+ }): Promise<{
34
+ code: number;
35
+ stdout: string;
36
+ stderr: string;
37
+ }>;
38
+ /** Capture stdout for post-processing; stderr passes through. */
39
+ export declare function runCapture(cmd: readonly string[], opts?: RunOptions & {
40
+ stdin?: 'inherit' | 'ignore';
41
+ }): Promise<{
42
+ code: number;
43
+ stdout: string;
44
+ }>;
45
+ /**
46
+ * Stream stdout and stderr line by line to `onLine`, and keep the whole output.
47
+ * Used by steps: the tree shows the tail, failures print everything.
48
+ */
49
+ export declare function runLines(cmd: readonly string[], opts?: RunOptions & {
50
+ onLine?: (line: string) => void;
51
+ mute?: RegExp;
52
+ }): Promise<{
53
+ code: number;
54
+ output: string;
55
+ }>;
56
+ /**
57
+ * For dev servers the user stops with Ctrl-C. The terminal already signalled the child; a Ctrl-C
58
+ * here is the user asking to stop, not a failure, so it returns 0. Restores the tty after.
59
+ */
60
+ export declare function runInteractive(cmd: readonly string[], opts?: RunOptions): Promise<number>;
61
+ /**
62
+ * A child killed mid-flight can leave the terminal in raw mode with the cursor hidden and kitty
63
+ * key encoding pushed; the next prompt then echoes escape replies.
64
+ */
65
+ export declare function restoreTty(): void;
66
+ export declare class ProcError extends Error {
67
+ readonly cmd: readonly string[];
68
+ readonly code: number;
69
+ readonly output?: string | undefined;
70
+ constructor(cmd: readonly string[], code: number, output?: string | undefined);
71
+ }
72
+ /** `sh -c` for a config command string, with extra args passed as "$@". */
73
+ export declare function shell(command: string, extra?: readonly string[]): string[];
@@ -0,0 +1,32 @@
1
+ import type { Flags } from '../cli/command';
2
+ /**
3
+ * clack prompts on stderr, TTY and CI aware (brewd `lib/prompt.ts`, ported).
4
+ * Without a terminal kit never prompts: confirmations error with a `--yes` hint, input prompts
5
+ * error naming what to set instead. Collect answers before starting a steps tree, never during.
6
+ */
7
+ type PromptFlags = Pick<Flags, 'interactive' | 'yes'>;
8
+ /** Yes/no. `--yes` answers yes (unless `force` is set, for prod). */
9
+ export declare function confirm(flags: PromptFlags, message: string, opts?: {
10
+ initial?: boolean;
11
+ force?: boolean;
12
+ }): Promise<boolean>;
13
+ export declare function text(flags: PromptFlags, message: string, opts?: {
14
+ initial?: string;
15
+ placeholder?: string;
16
+ hint?: string;
17
+ validate?: (v: string) => string | undefined;
18
+ }): Promise<string>;
19
+ /** Masked input for secrets. The value is never echoed. */
20
+ export declare function password(flags: PromptFlags, message: string, opts?: {
21
+ hint?: string;
22
+ validate?: (v: string) => string | undefined;
23
+ }): Promise<string>;
24
+ export declare function select<T extends string>(flags: PromptFlags, message: string, options: {
25
+ value: T;
26
+ label?: string;
27
+ hint?: string;
28
+ }[], opts?: {
29
+ initial?: T;
30
+ hint?: string;
31
+ }): Promise<T>;
32
+ export {};
@@ -0,0 +1,26 @@
1
+ export interface AppleCreds {
2
+ /** Env for lanes: ASC_*, MATCH_*, KIT_ASC_KEY_PATH. */
3
+ env: Record<string, string>;
4
+ ascKeyPath: string;
5
+ }
6
+ /** ASC API key (+ match when `match` is set). `MATCH_GIT_BASIC_AUTHORIZATION` is required in CI only. */
7
+ /** True only on GitHub Actions: `CI=true` alone (a shell or .env) proves nothing about the runner. */
8
+ export declare const onGitHubActions: () => boolean;
9
+ /** Values that reach lanes through the inherited env; registered so output never shows them. */
10
+ export declare function registerAmbientSecrets(): void;
11
+ export declare function appleCreds(opts: {
12
+ match: boolean;
13
+ ci: boolean;
14
+ }): AppleCreds;
15
+ /** Play service account JSON → KIT_PLAY_JSON_KEY. */
16
+ export declare function playCreds(): Record<string, string>;
17
+ /**
18
+ * Upload keystore → KIT_ANDROID_KEYSTORE_FILE. Alias and password stay in the inherited env as
19
+ * ANDROID_KEYSTORE_ALIAS / _PASSWORD, where kit.release reads them (PLAN §13.4); never on argv.
20
+ */
21
+ export declare function keystoreCreds(): Record<string, string>;
22
+ /**
23
+ * For `kit fastlane …` by hand: materialise whatever secret files the env allows, silently skipping
24
+ * what isn't set. Lanes that need a missing one fail with fastlane's own message.
25
+ */
26
+ export declare function optionalLaneCreds(): Record<string, string>;
@@ -0,0 +1,41 @@
1
+ import type { KitContext } from '../../cli/command';
2
+ import type { KitConfig, Track } from '../../config/schema';
3
+ /**
4
+ * `kit release ios|android --track …` (PLAN §9.3):
5
+ * preconditions → preflight + resolve (tree) → confirm → build + upload + post (tree) → tag → summary.
6
+ * The working tree is never modified: version and build reach the build as lane inputs.
7
+ */
8
+ export type Platform = 'ios' | 'android';
9
+ export interface MobileOptions {
10
+ platform: Platform;
11
+ track: Track;
12
+ build?: number;
13
+ notes?: string;
14
+ /** Android prod staged-rollout fraction. */
15
+ rollout?: number;
16
+ /** Android: upload as a draft release. */
17
+ draft?: boolean;
18
+ /** `--skip` values: preflight skipFlags. */
19
+ skip: string[];
20
+ }
21
+ export interface MobileResult {
22
+ platform: Platform;
23
+ track: Track;
24
+ version: string;
25
+ build: number;
26
+ notes: string;
27
+ dryRun: boolean;
28
+ artifacts: Record<string, string>;
29
+ uploaded: boolean;
30
+ tag?: string;
31
+ tagPushed?: boolean;
32
+ }
33
+ export declare const DEFAULT_BRANCHES: string[];
34
+ /** Branch allowed by `release.branches` (globs). In CI a detached HEAD falls back to GITHUB_REF_NAME. */
35
+ export declare function checkBranch(root: string, config: KitConfig): Promise<string>;
36
+ export declare function checkClean(root: string): Promise<void>;
37
+ /** §9.3 step 1 (doctor --release): fail before secrets are decoded or the store is queried. */
38
+ export declare function checkTools(platform: Platform, which?: (bin: string) => string | null): void;
39
+ /** Config-derived lane inputs (bundle ids, team, package, Gradle root): shared with `kit fastlane`. */
40
+ export declare function laneConfigEnv(root: string, config: KitConfig): Record<string, string>;
41
+ export declare function releaseMobile(ctx: Pick<KitContext, 'root' | 'config' | 'flags' | 'log'>, opts: MobileOptions): Promise<void>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Release notes and tags (PLAN §9.2).
3
+ * - mobile tags: `ios/v{version}+{build}`, `android/v{version}+{code}`; services: `{name}/v{version}`.
4
+ * - notes: commit subjects since the newest `<prefix>/v*` tag; without one, the last 20 commits.
5
+ */
6
+ export declare const FALLBACK_COMMITS = 20;
7
+ export declare const PLAY_NOTES_MAX = 500;
8
+ export declare function mobileTag(platform: 'ios' | 'android', version: string, build: string | number): string;
9
+ export declare function serviceTag(name: string, version: string): string;
10
+ export declare function releaseNotes(prefix: string, cwd: string): Promise<{
11
+ since: string | undefined;
12
+ notes: string;
13
+ }>;
14
+ /** Keep whole lines that fit in `max` chars; hard-truncate with an ellipsis if even the first doesn't. */
15
+ export declare function clampNotes(notes: string, max: number): string;
@@ -0,0 +1,30 @@
1
+ import type { Flags } from '../../cli/command';
2
+ import type { KitConfig, Track } from '../../config/schema';
3
+ import type { Logger } from '../log';
4
+ /**
5
+ * `release.preflight` modules (PLAN §10.2): repo checks run before every mobile release, e.g. brewd's
6
+ * punchcard seed and what's-new checks. A check throws (ideally a KitError with a hint) to stop the
7
+ * release. `skipFlag` names the `--skip <name>` value that bypasses it.
8
+ */
9
+ export interface PreflightInfo {
10
+ platform: 'ios' | 'android';
11
+ track: Track;
12
+ /** The version name being released. */
13
+ version: string;
14
+ }
15
+ export interface PreflightContext {
16
+ root: string;
17
+ config: KitConfig;
18
+ flags: Flags;
19
+ log: Logger;
20
+ }
21
+ export interface Preflight {
22
+ title: string;
23
+ /** `kit release ios --skip <skipFlag>` bypasses this check. */
24
+ skipFlag?: string;
25
+ /** Platforms this applies to; default both. */
26
+ platforms?: ('ios' | 'android')[];
27
+ check(ctx: PreflightContext, info: PreflightInfo): void | Promise<void>;
28
+ }
29
+ export declare function definePreflight(p: Preflight): Preflight;
30
+ export declare function loadPreflights(root: string, config: KitConfig): Promise<Preflight[]>;
@@ -0,0 +1,25 @@
1
+ import type { KitConfig } from '../../config/schema';
2
+ /**
3
+ * Version names live in the catalog TOML (`[versions]`), keyed by `versions.keys` (PLAN §9.2):
4
+ * `{ ios: 'app-ios-version', android: 'app-android-version', api: 'api-server-version' }`.
5
+ * Build numbers never do (policy B).
6
+ */
7
+ export declare const bumpLevels: readonly ['patch', 'minor', 'major'];
8
+ export type BumpLevel = (typeof bumpLevels)[number];
9
+ export declare function nextVersion(current: string, level: BumpLevel): string;
10
+ export declare function compareVersions(a: string, b: string): number;
11
+ export interface VersionFile {
12
+ /** Repo-relative path. */
13
+ file: string;
14
+ keys: Record<string, string>;
15
+ }
16
+ export declare function versionFile(config: KitConfig): VersionFile;
17
+ /** The catalog key for a platform or service name, or a usage error listing the names. */
18
+ export declare function versionKey(config: KitConfig, name: string): string;
19
+ /** Every configured name → its current version. */
20
+ export declare function readVersions(root: string, config: KitConfig): Record<string, string>;
21
+ export declare function readVersion(root: string, config: KitConfig, name: string): string;
22
+ /** Rewrite `name`'s value in the TOML text, touching only that value. */
23
+ export declare function setVersion(text: string, config: KitConfig, name: string, to: string): string;
24
+ /** `all` = the mobile platforms that have keys; anything else must be a key name. */
25
+ export declare function expandPlatforms(config: KitConfig, platform: string): string[];
@@ -0,0 +1,32 @@
1
+ import { type Env } from './proc';
2
+ /**
3
+ * Secret material for one kit run.
4
+ *
5
+ * - `secretFile` / `decodeSecretFile` write 0600 files under a per-run 0700 temp dir. The dir is
6
+ * removed by `onCleanup` (normal exit and Ctrl-C) with a sync `exit` backstop.
7
+ * - `registerSecret` adds a value to the redaction registry; `redact(s)` replaces every registered
8
+ * value in `s` with `***`. Run any text that may echo values (child stderr, validation messages)
9
+ * through it before printing.
10
+ * - `pipeSecret` feeds a value to a child on stdin, so it never lands in argv or shell history.
11
+ */
12
+ export declare const MASK = "***";
13
+ export declare function registerSecret(value: string | undefined): void;
14
+ export declare function redact(s: string): string;
15
+ /** Write `contents` to a 0600 file in the run's temp dir and return its path. */
16
+ export declare function secretFile(name: string, contents: string | Uint8Array): string;
17
+ /** Decode base64 (`APPLE_ASC_KEY_P8_BASE64`, a keystore) into a 0600 temp file. */
18
+ export declare function decodeSecretFile(name: string, base64: string): string;
19
+ /** The run's temp dir if one was created. Test seam. */
20
+ export declare const secretDir: () => string | undefined;
21
+ /** Remove the temp dir and forget registered values. Test seam. */
22
+ export declare function resetSecrets(): void;
23
+ export interface PipeResult {
24
+ code: number;
25
+ /** stderr, plus stdout on failure (wrangler reports auth errors there). Redacted. */
26
+ output: string;
27
+ }
28
+ /** Run `cmd` with `input` on stdin. Output is captured and redacted, never streamed. */
29
+ export declare function pipeSecret(cmd: readonly string[], input: string, opts?: {
30
+ cwd?: string;
31
+ env?: Env;
32
+ }): Promise<PipeResult>;
@@ -0,0 +1,38 @@
1
+ import type { Flags } from '../cli/command';
2
+ import { type RunOptions } from './proc';
3
+ /**
4
+ * Steps render as a listr2 tree on stderr (brewd `runSteps`, ported). Every step runs even after
5
+ * a failure, so one pass surfaces every problem; `bail` stops at the first.
6
+ *
7
+ * Output modes:
8
+ * - TTY: the running step shows a rolling tail; a failed step's full output prints after the tree.
9
+ * - not a TTY (CI) or --verbose: child output streams as it comes.
10
+ * - --quiet: only failures' output and the summary. --json: nothing on stderr.
11
+ */
12
+ export interface Step {
13
+ title: string;
14
+ task: (update: (line: string) => void) => Promise<void> | void;
15
+ }
16
+ export interface StepGroup {
17
+ title: string;
18
+ steps: Step[];
19
+ }
20
+ export interface StepResult {
21
+ group?: string;
22
+ title: string;
23
+ ok: boolean;
24
+ ms: number;
25
+ error?: string;
26
+ output?: string;
27
+ }
28
+ export type StepFlags = Pick<Flags, 'json' | 'quiet' | 'verbose' | 'ci'>;
29
+ /** A step that runs one command. Its output feeds the tree and, on failure, the report. */
30
+ export declare function commandStep(title: string, cmd: readonly string[], opts?: RunOptions & {
31
+ mute?: RegExp;
32
+ }): Step;
33
+ /** Run steps (or groups of steps). Never throws for a failed step; read the results. */
34
+ export declare function runSteps(items: (Step | StepGroup)[], flags: StepFlags, opts?: {
35
+ bail?: boolean;
36
+ }): Promise<StepResult[]>;
37
+ /** One-line outcome on stderr. Returns the exit code (0, 1, or 130 when interrupted). */
38
+ export declare function summarize(verb: string, results: StepResult[], startedAt: number, hint?: string): number;