@jordond/kit 0.5.0 → 0.6.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 (243) hide show
  1. package/README.md +50 -7
  2. package/bin/kit +2 -2
  3. package/dist/{_verb-d8z0az83.js → _verb-cfgwexs5.js} +2 -2
  4. package/dist/{android-m93y4yam.js → android-f2jqh5f4.js} +2 -2
  5. package/dist/{build-8vcgsjwr.js → build-15wfykv9.js} +2 -2
  6. package/dist/{builtins-v7aeynd1.js → builtins-tgrq0nnd.js} +1 -1
  7. package/dist/{bump-6sw1bwp2.js → bump-xmjn8q5s.js} +2 -2
  8. package/dist/{certs-3nstba8v.js → certs-5kcftfaz.js} +2 -2
  9. package/dist/{check-bbcvkd59.js → check-h2qjvrge.js} +2 -2
  10. package/dist/{check-6p4he09p.js → check-s3xje6km.js} +3 -3
  11. package/dist/cli-0j3ywy6y.js +64 -0
  12. package/dist/{cli-vdxz787w.js → cli-1m6cy8wp.js} +1 -1
  13. package/dist/{cli-tt8q6taw.js → cli-650g3nf7.js} +38 -32
  14. package/dist/{cli-08ff849s.js → cli-6q43d787.js} +1 -1
  15. package/dist/{cli-kzmewy2g.js → cli-8mb4ayv9.js} +13 -6
  16. package/dist/{cli-q4k5hjzg.js → cli-dcq8ydz0.js} +1 -1
  17. package/dist/cli.js +1 -1
  18. package/dist/{cloudflare-d4rm8ndz.js → cloudflare-3p8gj4ae.js} +1 -1
  19. package/dist/{command-ybq4jdy8.js → command-gtyznw30.js} +1 -1
  20. package/dist/commands/init.d.ts +29 -1
  21. package/dist/commands/upgrade.d.ts +9 -0
  22. package/dist/{completion-hm4rhvpk.js → completion-6yett99s.js} +1 -1
  23. package/dist/completion-g8bjf46s.js +36 -0
  24. package/dist/config/load.d.ts +8 -0
  25. package/dist/{config-3craadxe.js → config-2db8d4tg.js} +1 -1
  26. package/dist/{create-p7gmz7yv.js → create-te58argb.js} +3 -3
  27. package/dist/{deploy-4ns94w14.js → deploy-k21ee2wr.js} +3 -3
  28. package/dist/{deps-e65wk9g0.js → deps-tq3jpjd3.js} +2 -2
  29. package/dist/{dev-gq83jvk8.js → dev-915svrxw.js} +4 -4
  30. package/dist/{doctor-rngjjwn8.js → doctor-63ntz70n.js} +3 -3
  31. package/dist/{exec-p5xfgqgs.js → exec-gwnn34v2.js} +3 -3
  32. package/dist/{fastlane-yypgpmwr.js → fastlane-86zcf5ys.js} +2 -2
  33. package/dist/{format-0ynd2amx.js → format-z1jqgbad.js} +2 -2
  34. package/dist/{github-4q7gxxx5.js → github-xakbbb7p.js} +2 -2
  35. package/dist/{gradle-526a5wt2.js → gradle-df21cm28.js} +2 -2
  36. package/dist/index.js +1 -1
  37. package/dist/init-cbba8t64.js +455 -0
  38. package/dist/{init-c2zyegvv.js → init-hdebe1s9.js} +2 -2
  39. package/dist/{ios-hk9xkjak.js → ios-txv190np.js} +2 -2
  40. package/dist/kitref-9j43993r.js +84 -0
  41. package/dist/{kotlin-y092s32p.js → kotlin-drt7z6bg.js} +2 -2
  42. package/dist/lib/completion.d.ts +33 -0
  43. package/dist/lib/kitref.d.ts +35 -0
  44. package/dist/lib/scaffold.d.ts +101 -0
  45. package/dist/{lint-ex675vcp.js → lint-90ernbhx.js} +2 -2
  46. package/dist/{list-vftxgz96.js → list-vaarpryk.js} +3 -3
  47. package/dist/{load-75xm9qcy.js → load-x6mekf6y.js} +5 -1
  48. package/dist/{main-g6ndff3w.js → main-5c6x1pd4.js} +10 -68
  49. package/dist/{migrate-5bj93aqj.js → migrate-9zvfp57b.js} +3 -3
  50. package/dist/{push-bhnr14ms.js → push-tn468c4w.js} +2 -2
  51. package/dist/{push-nx5n43se.js → push-wgbf86c0.js} +4 -4
  52. package/dist/scaffold-eqbtfksr.js +279 -0
  53. package/dist/{service-dfkyxsed.js → service-s5mnjq74.js} +2 -2
  54. package/dist/{show-qdsehk9z.js → show-qhn6x1vn.js} +2 -2
  55. package/dist/{sync-ngknzh6t.js → sync-34029rh7.js} +2 -2
  56. package/dist/{test-gdynbr4p.js → test-rpj97zr6.js} +2 -2
  57. package/dist/{typecheck-9mfcx412.js → typecheck-tbtp9z07.js} +2 -2
  58. package/dist/upgrade-z5s5wzzj.js +127 -0
  59. package/dist/{wrangler-vecn5dwg.js → wrangler-zz21zhb0.js} +3 -3
  60. package/dist/{xcode-33s2hs2d.js → xcode-w8yhedhm.js} +2 -2
  61. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/{0.5.0/io.github.jordond.kit.android.application.gradle.plugin-0.5.0.pom → 0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom} +2 -2
  62. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom.md5 +1 -0
  63. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom.sha1 +1 -0
  64. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom.sha256 +1 -0
  65. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom.sha512 +1 -0
  66. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml +4 -4
  67. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.md5 +1 -1
  68. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  69. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  70. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  71. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/{0.5.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.5.0.pom → 0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom} +2 -2
  72. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom.md5 +1 -0
  73. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom.sha1 +1 -0
  74. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom.sha256 +1 -0
  75. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom.sha512 +1 -0
  76. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml +4 -4
  77. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.md5 +1 -1
  78. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  79. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  80. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  81. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/{0.5.0/io.github.jordond.kit.compose.gradle.plugin-0.5.0.pom → 0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom} +2 -2
  82. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom.md5 +1 -0
  83. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom.sha1 +1 -0
  84. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom.sha256 +1 -0
  85. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom.sha512 +1 -0
  86. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml +4 -4
  87. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.md5 +1 -1
  88. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  89. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  90. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  91. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/{0.5.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.5.0.pom → 0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom} +2 -2
  92. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom.md5 +1 -0
  93. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom.sha1 +1 -0
  94. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom.sha256 +1 -0
  95. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom.sha512 +1 -0
  96. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml +4 -4
  97. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.md5 +1 -1
  98. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  99. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  100. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  101. package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.module → 0.6.0/kit-plugins-0.6.0.module} +5 -5
  102. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.md5 +1 -0
  103. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.sha1 +1 -0
  104. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.sha256 +1 -0
  105. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.sha512 +1 -0
  106. package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.pom → 0.6.0/kit-plugins-0.6.0.pom} +1 -1
  107. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.md5 +1 -0
  108. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.sha1 +1 -0
  109. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.sha256 +1 -0
  110. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.sha512 +1 -0
  111. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml +4 -4
  112. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.md5 +1 -1
  113. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha1 +1 -1
  114. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha256 +1 -1
  115. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha512 +1 -1
  116. package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.module → 0.6.0/kit-settings-0.6.0.module} +5 -5
  117. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.md5 +1 -0
  118. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.sha1 +1 -0
  119. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.sha256 +1 -0
  120. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.sha512 +1 -0
  121. package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.pom → 0.6.0/kit-settings-0.6.0.pom} +1 -1
  122. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.md5 +1 -0
  123. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.sha1 +1 -0
  124. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.sha256 +1 -0
  125. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.sha512 +1 -0
  126. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml +4 -4
  127. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.md5 +1 -1
  128. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha1 +1 -1
  129. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha256 +1 -1
  130. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha512 +1 -1
  131. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/{0.5.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.5.0.pom → 0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom} +2 -2
  132. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom.md5 +1 -0
  133. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom.sha1 +1 -0
  134. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom.sha256 +1 -0
  135. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom.sha512 +1 -0
  136. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml +4 -4
  137. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.md5 +1 -1
  138. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  139. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  140. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  141. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/{0.5.0/io.github.jordond.kit.lint.gradle.plugin-0.5.0.pom → 0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom} +2 -2
  142. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom.md5 +1 -0
  143. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom.sha1 +1 -0
  144. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom.sha256 +1 -0
  145. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom.sha512 +1 -0
  146. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml +4 -4
  147. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.md5 +1 -1
  148. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  149. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  150. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  151. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/{0.5.0/io.github.jordond.kit.release.gradle.plugin-0.5.0.pom → 0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom} +2 -2
  152. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom.md5 +1 -0
  153. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom.sha1 +1 -0
  154. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom.sha256 +1 -0
  155. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom.sha512 +1 -0
  156. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml +4 -4
  157. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.md5 +1 -1
  158. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  159. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  160. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  161. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/{0.5.0/io.github.jordond.kit.settings.gradle.plugin-0.5.0.pom → 0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom} +2 -2
  162. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom.md5 +1 -0
  163. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom.sha1 +1 -0
  164. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom.sha256 +1 -0
  165. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom.sha512 +1 -0
  166. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml +4 -4
  167. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.md5 +1 -1
  168. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  169. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  170. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  171. package/package.json +1 -1
  172. package/templates/{new → gradle}/.github/workflows/ci.yml +3 -3
  173. package/templates/lefthook.yml +1 -1
  174. package/templates/toolchain/.editorconfig +32 -0
  175. package/templates/toolchain/.env.example +20 -0
  176. package/templates/toolchain/.github/workflows/ci.yml +44 -0
  177. package/templates/toolchain/.github/workflows/distribute.yml +41 -0
  178. package/templates/toolchain/fastlane/Fastfile +1 -0
  179. package/templates/toolchain/mise.toml +6 -0
  180. package/dist/init-ndgxaqcj.js +0 -281
  181. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.5.0/io.github.jordond.kit.android.application.gradle.plugin-0.5.0.pom.md5 +0 -1
  182. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.5.0/io.github.jordond.kit.android.application.gradle.plugin-0.5.0.pom.sha1 +0 -1
  183. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.5.0/io.github.jordond.kit.android.application.gradle.plugin-0.5.0.pom.sha256 +0 -1
  184. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.5.0/io.github.jordond.kit.android.application.gradle.plugin-0.5.0.pom.sha512 +0 -1
  185. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.5.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.5.0.pom.md5 +0 -1
  186. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.5.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.5.0.pom.sha1 +0 -1
  187. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.5.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.5.0.pom.sha256 +0 -1
  188. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.5.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.5.0.pom.sha512 +0 -1
  189. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.5.0/io.github.jordond.kit.compose.gradle.plugin-0.5.0.pom.md5 +0 -1
  190. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.5.0/io.github.jordond.kit.compose.gradle.plugin-0.5.0.pom.sha1 +0 -1
  191. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.5.0/io.github.jordond.kit.compose.gradle.plugin-0.5.0.pom.sha256 +0 -1
  192. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.5.0/io.github.jordond.kit.compose.gradle.plugin-0.5.0.pom.sha512 +0 -1
  193. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.5.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.5.0.pom.md5 +0 -1
  194. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.5.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.5.0.pom.sha1 +0 -1
  195. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.5.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.5.0.pom.sha256 +0 -1
  196. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.5.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.5.0.pom.sha512 +0 -1
  197. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.module.md5 +0 -1
  198. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.module.sha1 +0 -1
  199. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.module.sha256 +0 -1
  200. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.module.sha512 +0 -1
  201. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.pom.md5 +0 -1
  202. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.pom.sha1 +0 -1
  203. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.pom.sha256 +0 -1
  204. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.pom.sha512 +0 -1
  205. package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.module.md5 +0 -1
  206. package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.module.sha1 +0 -1
  207. package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.module.sha256 +0 -1
  208. package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.module.sha512 +0 -1
  209. package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.pom.md5 +0 -1
  210. package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.pom.sha1 +0 -1
  211. package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.pom.sha256 +0 -1
  212. package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.pom.sha512 +0 -1
  213. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.5.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.5.0.pom.md5 +0 -1
  214. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.5.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.5.0.pom.sha1 +0 -1
  215. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.5.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.5.0.pom.sha256 +0 -1
  216. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.5.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.5.0.pom.sha512 +0 -1
  217. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.5.0/io.github.jordond.kit.lint.gradle.plugin-0.5.0.pom.md5 +0 -1
  218. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.5.0/io.github.jordond.kit.lint.gradle.plugin-0.5.0.pom.sha1 +0 -1
  219. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.5.0/io.github.jordond.kit.lint.gradle.plugin-0.5.0.pom.sha256 +0 -1
  220. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.5.0/io.github.jordond.kit.lint.gradle.plugin-0.5.0.pom.sha512 +0 -1
  221. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.5.0/io.github.jordond.kit.release.gradle.plugin-0.5.0.pom.md5 +0 -1
  222. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.5.0/io.github.jordond.kit.release.gradle.plugin-0.5.0.pom.sha1 +0 -1
  223. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.5.0/io.github.jordond.kit.release.gradle.plugin-0.5.0.pom.sha256 +0 -1
  224. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.5.0/io.github.jordond.kit.release.gradle.plugin-0.5.0.pom.sha512 +0 -1
  225. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.5.0/io.github.jordond.kit.settings.gradle.plugin-0.5.0.pom.md5 +0 -1
  226. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.5.0/io.github.jordond.kit.settings.gradle.plugin-0.5.0.pom.sha1 +0 -1
  227. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.5.0/io.github.jordond.kit.settings.gradle.plugin-0.5.0.pom.sha256 +0 -1
  228. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.5.0/io.github.jordond.kit.settings.gradle.plugin-0.5.0.pom.sha512 +0 -1
  229. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.jar → 0.6.0/kit-plugins-0.6.0.jar} +0 -0
  230. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.jar.md5 → 0.6.0/kit-plugins-0.6.0.jar.md5} +0 -0
  231. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.jar.sha1 → 0.6.0/kit-plugins-0.6.0.jar.sha1} +0 -0
  232. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.jar.sha256 → 0.6.0/kit-plugins-0.6.0.jar.sha256} +0 -0
  233. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.jar.sha512 → 0.6.0/kit-plugins-0.6.0.jar.sha512} +0 -0
  234. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.jar → 0.6.0/kit-settings-0.6.0.jar} +0 -0
  235. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.jar.md5 → 0.6.0/kit-settings-0.6.0.jar.md5} +0 -0
  236. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.jar.sha1 → 0.6.0/kit-settings-0.6.0.jar.sha1} +0 -0
  237. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.jar.sha256 → 0.6.0/kit-settings-0.6.0.jar.sha256} +0 -0
  238. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.jar.sha512 → 0.6.0/kit-settings-0.6.0.jar.sha512} +0 -0
  239. /package/templates/{new → gradle}/.env.example +0 -0
  240. /package/templates/{new → gradle}/apps/client/fastlane/Fastfile +0 -0
  241. /package/templates/{new → gradle}/apps/client/gradle/libs.versions.toml +0 -0
  242. /package/templates/{new → gradle}/apps/client/settings.gradle.kts +0 -0
  243. /package/templates/{new → gradle}/kit.config.ts +0 -0
@@ -0,0 +1,101 @@
1
+ /**
2
+ * New-repo scaffolding for `kit init` (no kit.config.ts yet). Two templates:
3
+ * - `toolchain`: layered over an existing JetBrains Kotlin Toolchain project (a `kotlin` wrapper and
4
+ * project.yaml). kit goes in `.kit/`, config included, and the root never gets a package.json:
5
+ * the toolchain's own `pnpm add` would install into it.
6
+ * - `gradle`: kit in the root package.json, a Gradle client under apps/client.
7
+ * Everything here is pure: files come in through `read`, and the plan lists what to write.
8
+ * An existing file is never overwritten; .gitignore and the version catalog only gain lines.
9
+ */
10
+ export type Template = 'toolchain' | 'gradle';
11
+ export declare const TEMPLATES: Template[];
12
+ /** Reads a repo-relative file; undefined when it does not exist. */
13
+ export type ReadFile = (repoPath: string) => string | undefined;
14
+ /** A Kotlin toolchain project: the wrapper and project.yaml side by side. */
15
+ export declare function isToolchainRepo(exists: (repoPath: string) => boolean): boolean;
16
+ /** Module dirs listed under `modules:` in project.yaml: a block or flow list of plain paths (no globs). */
17
+ export declare function projectModules(projectYaml: string): string[];
18
+ /** `product: jvm/app`, or `product: { type: kmp/lib, platforms: [...] }` in block or flow form. */
19
+ export declare function moduleProduct(moduleYaml: string): {
20
+ type?: string;
21
+ platforms: string[];
22
+ };
23
+ export interface ToolchainFacts {
24
+ /** `android/app` module and its applicationId (or namespace) and versionName. */
25
+ android?: {
26
+ module: string;
27
+ packageName?: string;
28
+ versionName?: string;
29
+ };
30
+ /** `ios/app` module: its Xcode project, scheme, bundle id, and the xcconfig with MARKETING_VERSION. */
31
+ ios?: {
32
+ module: string;
33
+ project: string;
34
+ scheme: string;
35
+ bundleId?: string;
36
+ teamId?: string;
37
+ xcconfig?: string;
38
+ version?: string;
39
+ };
40
+ /** `jvm/app` module, run by `kit dev`. */
41
+ desktop?: string;
42
+ /** Non-Apple platforms across the modules, for the Linux CI job; empty runs everything. */
43
+ ciPlatforms: string[];
44
+ }
45
+ /**
46
+ * What the template needs from the project. `list(dir)` returns the repo-relative files under a
47
+ * module dir (for the Xcode project, its schemes and xcconfigs).
48
+ */
49
+ export declare function detectToolchain(read: ReadFile, list: (dir: string) => string[]): ToolchainFacts;
50
+ /** A reverse-DNS placeholder id from the app name (`com.example.myapp`). */
51
+ export declare function placeholderId(name: string): string;
52
+ /** `.kit/kit.config.ts` for a toolchain project. Ids kit could not find are `com.example.<name>`. */
53
+ export declare function toolchainConfig(name: string, facts: ToolchainFacts): string;
54
+ /** The package.json that pins kit: `.kit/package.json` (toolchain) or the root one (gradle). */
55
+ export declare function kitPackageJson(name: string, kitVersion: string, zod: string): string;
56
+ /**
57
+ * An existing package.json with the kit pin added to devDependencies; undefined when it already
58
+ * depends on kit (or is not a JSON object, which is left alone).
59
+ */
60
+ export declare function withKitDependency(manifest: string, kitVersion: string, zod: string): string | undefined;
61
+ /** `text` plus the `entries` it does not list yet; undefined when nothing is missing. */
62
+ export declare function withGitignore(text: string | undefined, entries: string[]): string | undefined;
63
+ /**
64
+ * The catalog with any missing `[versions]` key added; undefined when all are there. A new key goes
65
+ * right under the `[versions]` header (created at the top when the file has none). `'manual'`
66
+ * when the file has a versions table without a plain `[versions]` header line.
67
+ */
68
+ export declare function withVersionKeys(text: string | undefined, keys: Record<string, string>): string | 'manual' | undefined;
69
+ export type FileAction = {
70
+ kind: 'write';
71
+ path: string;
72
+ content: string;
73
+ }
74
+ /** An existing file that gains lines. */
75
+ | {
76
+ kind: 'edit';
77
+ path: string;
78
+ content: string;
79
+ note: string;
80
+ } | {
81
+ kind: 'skip';
82
+ path: string;
83
+ reason: string;
84
+ };
85
+ export interface ScaffoldInput {
86
+ template: Template;
87
+ name: string;
88
+ /** The running kit's version; the pin is `^<version>`. */
89
+ kitVersion: string;
90
+ /** What follows `@` in workflow `uses:` lines: `<sha> # vX.Y.Z`. */
91
+ kitRef: string;
92
+ /** zod range for the peer dependency. */
93
+ zod: string;
94
+ /** Template files by repo-relative destination, unrendered. */
95
+ files: Record<string, string>;
96
+ read: ReadFile;
97
+ /** Repo-relative files under a dir (toolchain: the iOS module). */
98
+ list?: (dir: string) => string[];
99
+ }
100
+ /** Every file the template would put in the repo, in a stable order. */
101
+ export declare function planScaffold(input: ScaffoldInput): FileAction[];
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-08ff849s.js";
4
+ } from "./cli-6q43d787.js";
5
5
  import"./cli-540nme4e.js";
6
6
  import"./cli-5wasc5mr.js";
7
7
  import"./cli-7wvrehng.js";
@@ -24,7 +24,7 @@ var lint_default = defineCommand({
24
24
  kit lint api web
25
25
  kit lint --staged --fix`,
26
26
  async run(ctx) {
27
- const { runVerb } = await import("./_verb-d8z0az83.js");
27
+ const { runVerb } = await import("./_verb-cfgwexs5.js");
28
28
  const staged = ctx.args.staged ? await (await import("./git-3gyyfk0x.js")).stagedFiles(ctx.root) : undefined;
29
29
  await runVerb(ctx, {
30
30
  name: ctx.args.fix ? "lint --fix" : "lint",
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  dbArgs,
4
4
  remoteArg
5
- } from "./cli-q4k5hjzg.js";
5
+ } from "./cli-dcq8ydz0.js";
6
6
  import"./cli-wg35kt5d.js";
7
7
  import {
8
8
  defineCommand
9
- } from "./cli-08ff849s.js";
9
+ } from "./cli-6q43d787.js";
10
10
  import"./cli-qhs8ww91.js";
11
11
  import"./cli-fqfan92n.js";
12
12
  import"./cli-fqxtcj42.js";
@@ -25,7 +25,7 @@ var list_default = defineCommand({
25
25
  examples: `kit db list
26
26
  kit db list --remote --db analytics`,
27
27
  async run(ctx) {
28
- const { runD1 } = await import("./cloudflare-d4rm8ndz.js");
28
+ const { runD1 } = await import("./cloudflare-3p8gj4ae.js");
29
29
  await runD1(ctx, { kind: "list", remote: !!ctx.args.remote }, { mutates: false });
30
30
  }
31
31
  });
@@ -2,20 +2,24 @@
2
2
  import {
3
3
  CONFIG_FILE,
4
4
  KIT_DIR,
5
+ configFile,
5
6
  findRoot,
6
7
  installDir,
7
8
  loadConfig,
9
+ loadConfigFile,
8
10
  loadDotEnv,
9
11
  registerSelf
10
- } from "./cli-kzmewy2g.js";
12
+ } from "./cli-8mb4ayv9.js";
11
13
  import"./cli-7wvrehng.js";
12
14
  import"./cli-re3ntm60.js";
13
15
  export {
14
16
  registerSelf,
15
17
  loadDotEnv,
18
+ loadConfigFile,
16
19
  loadConfig,
17
20
  installDir,
18
21
  findRoot,
22
+ configFile,
19
23
  KIT_DIR,
20
24
  CONFIG_FILE
21
25
  };
@@ -1,19 +1,22 @@
1
1
  // @bun
2
+ import {
3
+ builtins,
4
+ groupDescriptions
5
+ } from "./cli-650g3nf7.js";
6
+ import {
7
+ package_default
8
+ } from "./cli-0j3ywy6y.js";
2
9
  import {
3
10
  findRoot,
4
11
  loadConfig,
5
12
  loadDotEnv,
6
13
  registerSelf
7
- } from "./cli-kzmewy2g.js";
8
- import {
9
- builtins,
10
- groupDescriptions
11
- } from "./cli-tt8q6taw.js";
14
+ } from "./cli-8mb4ayv9.js";
12
15
  import {
13
16
  computeFlags,
14
17
  toGunshi,
15
18
  withBuiltin
16
- } from "./cli-08ff849s.js";
19
+ } from "./cli-6q43d787.js";
17
20
  import {
18
21
  installSignalHandlers,
19
22
  interrupted,
@@ -1374,67 +1377,6 @@ async function cli(args, entry, options = {}) {
1374
1377
 
1375
1378
  // src/cli/main.ts
1376
1379
  var import_picocolors2 = __toESM(require_picocolors(), 1);
1377
- // package.json
1378
- var package_default = {
1379
- name: "@jordond/kit",
1380
- version: "0.5.0",
1381
- description: "One dev toolkit for every app: CLI, shared fastlane, Gradle conventions",
1382
- license: "MIT",
1383
- type: "module",
1384
- repository: {
1385
- type: "git",
1386
- url: "git+https://github.com/jordond/kit.git"
1387
- },
1388
- bin: {
1389
- kit: "bin/kit"
1390
- },
1391
- exports: {
1392
- ".": {
1393
- types: "./dist/index.d.ts",
1394
- default: "./dist/index.js"
1395
- }
1396
- },
1397
- files: [
1398
- "bin",
1399
- "dist",
1400
- "fastlane",
1401
- "gradle/maven",
1402
- "templates"
1403
- ],
1404
- engines: {
1405
- bun: ">=1.3"
1406
- },
1407
- scripts: {
1408
- build: "rm -rf dist && bun build src/cli.ts src/index.ts --outdir dist --target bun --splitting --external zod && tsc -p tsconfig.build.json",
1409
- "build:gradle": "gradle/gradlew -p gradle publishKit",
1410
- dev: "bun src/cli.ts",
1411
- test: "bun test",
1412
- "test:pack": "KIT_PACK_TEST=1 bun test test/pack",
1413
- typecheck: "tsc --noEmit",
1414
- lint: "biome check .",
1415
- format: "biome format --write ."
1416
- },
1417
- publishConfig: {
1418
- access: "public"
1419
- },
1420
- peerDependencies: {
1421
- zod: "^4.0.0"
1422
- },
1423
- dependencies: {
1424
- "@clack/prompts": "^1.9.0",
1425
- gunshi: "0.37.3",
1426
- "@gunshi/plugin-completion": "0.37.3",
1427
- listr2: "^11.4.1",
1428
- picocolors: "^1.1.1",
1429
- "smol-toml": "^1.9.1"
1430
- },
1431
- devDependencies: {
1432
- "@biomejs/biome": "^2.6.6",
1433
- "@types/bun": "^1.4.4",
1434
- typescript: "^7.0.2",
1435
- zod: "^4.6.7"
1436
- }
1437
- };
1438
1380
 
1439
1381
  // src/cli/discover.ts
1440
1382
  import { join } from "path";
@@ -1648,7 +1590,7 @@ async function collectLeaves(root, config) {
1648
1590
  description: `Release the ${name} service`,
1649
1591
  group: "Release",
1650
1592
  source: "builtin",
1651
- load: async () => (await import("./service-dfkyxsed.js")).serviceCommand(name)
1593
+ load: async () => (await import("./service-s5mnjq74.js")).serviceCommand(name)
1652
1594
  });
1653
1595
  }
1654
1596
  for (const f of listRepoCommands(root)) {
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  dbArgs,
4
4
  remoteArg
5
- } from "./cli-q4k5hjzg.js";
5
+ } from "./cli-dcq8ydz0.js";
6
6
  import"./cli-wg35kt5d.js";
7
7
  import {
8
8
  defineCommand
9
- } from "./cli-08ff849s.js";
9
+ } from "./cli-6q43d787.js";
10
10
  import"./cli-qhs8ww91.js";
11
11
  import"./cli-fqfan92n.js";
12
12
  import"./cli-fqxtcj42.js";
@@ -29,7 +29,7 @@ var migrate_default = defineCommand({
29
29
  ].join(`
30
30
  `),
31
31
  async run(ctx) {
32
- const { runD1 } = await import("./cloudflare-d4rm8ndz.js");
32
+ const { runD1 } = await import("./cloudflare-3p8gj4ae.js");
33
33
  await runD1(ctx, { kind: "migrate", remote: !!ctx.args.remote }, { mutates: true });
34
34
  }
35
35
  });
@@ -5,8 +5,8 @@ import {
5
5
  githubDestination,
6
6
  planPush,
7
7
  workerDestination
8
- } from "./cli-vdxz787w.js";
9
- import"./cli-q4k5hjzg.js";
8
+ } from "./cli-1m6cy8wp.js";
9
+ import"./cli-dcq8ydz0.js";
10
10
  import"./cli-wg35kt5d.js";
11
11
  import"./cli-qhs8ww91.js";
12
12
  import"./cli-fqfan92n.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-08ff849s.js";
4
+ } from "./cli-6q43d787.js";
5
5
  import"./cli-540nme4e.js";
6
6
  import"./cli-5wasc5mr.js";
7
7
  import"./cli-7wvrehng.js";
@@ -28,10 +28,10 @@ var push_default = defineCommand({
28
28
  ].join(`
29
29
  `),
30
30
  async run(ctx) {
31
- const { requireProject } = await import("./command-ybq4jdy8.js");
31
+ const { requireProject } = await import("./command-gtyznw30.js");
32
32
  const { loadEnv, assertValid } = await import("./load-4s6t9309.js");
33
- const { executePush, githubDestination, planPush, workerDestination } = await import("./push-bhnr14ms.js");
34
- const { pinCloudflareAccount } = await import("./cloudflare-d4rm8ndz.js");
33
+ const { executePush, githubDestination, planPush, workerDestination } = await import("./push-tn468c4w.js");
34
+ const { pinCloudflareAccount } = await import("./cloudflare-3p8gj4ae.js");
35
35
  const { confirm } = await import("./prompt-3wwegvqc.js");
36
36
  const { emitJson } = await import("./log-g1ebh60s.js");
37
37
  const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
@@ -0,0 +1,279 @@
1
+ // @bun
2
+ import {
3
+ getTomlValue,
4
+ parseToml
5
+ } from "./cli-19me2qqg.js";
6
+ import {
7
+ ANDROID_VERSION_NAME,
8
+ getYamlScalar
9
+ } from "./cli-78x6rdyd.js";
10
+ import"./cli-7wvrehng.js";
11
+ import"./cli-re3ntm60.js";
12
+
13
+ // src/lib/scaffold.ts
14
+ import { join } from "path";
15
+ var TEMPLATES = ["toolchain", "gradle"];
16
+ function isToolchainRepo(exists) {
17
+ return exists("kotlin") && exists("project.yaml");
18
+ }
19
+ function projectModules(projectYaml) {
20
+ const lines = projectYaml.split(`
21
+ `);
22
+ const start = lines.findIndex((l) => /^modules\s*:/.test(l));
23
+ if (start < 0)
24
+ return [];
25
+ const clean = (raw) => raw.trim().replace(/^(['"])(.*)\1$/, "$2").replace(/^\.\//, "").replace(/\/+$/, "");
26
+ const plain = (v) => v !== "" && !/[*{:]/.test(v);
27
+ const flow = lines[start].match(/^modules\s*:\s*\[(.*)\]/);
28
+ if (flow)
29
+ return flow[1].split(",").map(clean).filter(plain);
30
+ const out = [];
31
+ for (const line of lines.slice(start + 1)) {
32
+ if (line.trim() === "" || line.trimStart().startsWith("#"))
33
+ continue;
34
+ const m = line.match(/^\s*-\s*(.+?)\s*$/);
35
+ if (!m)
36
+ break;
37
+ const value = clean(m[1].replace(/\s+#.*$/, ""));
38
+ if (plain(value))
39
+ out.push(value);
40
+ }
41
+ return out;
42
+ }
43
+ function moduleProduct(moduleYaml) {
44
+ const short = getYamlScalar(moduleYaml, ["product"]);
45
+ if (short && !short.startsWith("{"))
46
+ return { type: short, platforms: [] };
47
+ const flow = short?.match(/type\s*:\s*([^,}\s]+)/)?.[1];
48
+ const type = flow ?? getYamlScalar(moduleYaml, ["product", "type"]);
49
+ const inline = (short ?? getYamlScalar(moduleYaml, ["product", "platforms"]))?.match(/\[([^\]]*)\]/)?.[1];
50
+ if (inline !== undefined) {
51
+ return { type, platforms: inline.split(",").flatMap((p) => p.trim() ? [p.trim()] : []) };
52
+ }
53
+ const lines = moduleYaml.split(`
54
+ `);
55
+ const at = lines.findIndex((l) => /^\s+platforms\s*:\s*$/.test(l));
56
+ const platforms = [];
57
+ for (const line of at < 0 ? [] : lines.slice(at + 1)) {
58
+ const m = line.match(/^\s+-\s*([\w-]+)/);
59
+ if (!m)
60
+ break;
61
+ platforms.push(m[1]);
62
+ }
63
+ return { type, platforms };
64
+ }
65
+ var PRODUCT_PLATFORM = {
66
+ jvm: "jvm",
67
+ android: "android",
68
+ "wasm-js": "wasmJs",
69
+ js: "js"
70
+ };
71
+ var LINUX_PLATFORMS = ["jvm", "android", "wasmJs", "js", "linuxX64"];
72
+ function detectToolchain(read, list) {
73
+ const facts = { ciPlatforms: [] };
74
+ const platforms = new Set;
75
+ for (const module of projectModules(read("project.yaml") ?? "")) {
76
+ const yaml = read(join(module, "module.yaml"));
77
+ if (yaml === undefined)
78
+ continue;
79
+ const product = moduleProduct(yaml);
80
+ const [kind, shape] = (product.type ?? "").split("/");
81
+ if (kind && PRODUCT_PLATFORM[kind])
82
+ platforms.add(PRODUCT_PLATFORM[kind]);
83
+ for (const p of product.platforms)
84
+ platforms.add(p);
85
+ if (shape !== "app")
86
+ continue;
87
+ if (kind === "android" && !facts.android) {
88
+ facts.android = {
89
+ module,
90
+ packageName: getYamlScalar(yaml, ["settings", "android", "applicationId"]) ?? getYamlScalar(yaml, ["settings", "android", "namespace"]),
91
+ versionName: getYamlScalar(yaml, ANDROID_VERSION_NAME)
92
+ };
93
+ } else if (kind === "jvm" && !facts.desktop) {
94
+ facts.desktop = module;
95
+ } else if (kind === "ios" && !facts.ios) {
96
+ const files = list(module);
97
+ const pbxproj = files.find((f) => f.endsWith(".xcodeproj/project.pbxproj"));
98
+ const project = pbxproj?.replace(/\/project\.pbxproj$/, "") ?? join(module, "module.xcodeproj");
99
+ const schemes = files.flatMap((f) => f.match(/\/xcschemes\/([^/]+)\.xcscheme$/)?.[1] ?? []);
100
+ const pbx = pbxproj && read(pbxproj) || "";
101
+ const xcconfig = files.filter((f) => f.endsWith(".xcconfig")).find((f) => /^\s*MARKETING_VERSION\s*=/m.test(read(f) ?? ""));
102
+ const xc = xcconfig && read(xcconfig) || "";
103
+ const setting = (key) => [xc, pbx].map((text) => text.match(new RegExp(`^\\s*${key}\\s*=\\s*"?([^";\\n]+?)"?\\s*;?\\s*$`, "m"))?.[1]?.trim()).find((v) => v && !v.includes("$("));
104
+ facts.ios = {
105
+ module,
106
+ project,
107
+ scheme: schemes.includes("app") ? "app" : schemes[0] ?? "app",
108
+ bundleId: setting("PRODUCT_BUNDLE_IDENTIFIER"),
109
+ teamId: setting("DEVELOPMENT_TEAM"),
110
+ xcconfig,
111
+ version: xcconfig ? setting("MARKETING_VERSION") : undefined
112
+ };
113
+ }
114
+ }
115
+ facts.ciPlatforms = LINUX_PLATFORMS.filter((p) => platforms.has(p));
116
+ return facts;
117
+ }
118
+ var q = (s) => `'${s.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
119
+ function placeholderId(name) {
120
+ return `com.example.${name.toLowerCase().replace(/[^a-z0-9]+/g, "") || "app"}`;
121
+ }
122
+ function toolchainConfig(name, facts) {
123
+ const id = facts.android?.packageName ?? facts.ios?.bundleId ?? placeholderId(name);
124
+ const lines = [
125
+ "import { defineConfig } from '@jordond/kit'",
126
+ "",
127
+ "// kit config: values only. Paths are relative to the repo root. https://github.com/jordond/kit",
128
+ "export default defineConfig({",
129
+ ` name: ${q(name)},`,
130
+ " toolchain: { root: '.' },",
131
+ " versions: {",
132
+ " file: 'libs.versions.toml',",
133
+ " keys: { ios: 'app-ios-version', android: 'app-android-version' },",
134
+ " },",
135
+ " targets: {",
136
+ facts.desktop ? ` app: { kind: 'kotlin', dir: '.', dev: ${q(`./kotlin run -m ${facts.desktop}`)} },` : " app: { kind: 'kotlin', dir: '.' },",
137
+ " },"
138
+ ];
139
+ const release = [];
140
+ if (facts.ios) {
141
+ release.push(" ios: {", ` bundleIds: [${q(facts.ios.bundleId ?? id)}],`, ` project: ${q(facts.ios.project)},`, ` scheme: ${q(facts.ios.scheme)},`, ` output: ${q(`${name}.ipa`)},`, ...facts.ios.teamId ? [` teamId: ${q(facts.ios.teamId)},`] : [], ...facts.ios.xcconfig ? [` xcconfig: ${q(facts.ios.xcconfig)},`] : [], " },");
142
+ }
143
+ if (facts.android) {
144
+ release.push(" android: {", ` packageName: ${q(facts.android.packageName ?? id)},`, ` module: ${q(facts.android.module)},`, " },");
145
+ }
146
+ if (release.length)
147
+ lines.push(" release: {", ...release, " },");
148
+ lines.push("})", "");
149
+ return lines.join(`
150
+ `);
151
+ }
152
+ function kitPackageJson(name, kitVersion, zod) {
153
+ const pkg = {
154
+ name: name.toLowerCase().replace(/[^a-z0-9._-]+/g, "-") || "app",
155
+ private: true,
156
+ type: "module",
157
+ devDependencies: { "@jordond/kit": `^${kitVersion}`, zod }
158
+ };
159
+ return `${JSON.stringify(pkg, null, 2)}
160
+ `;
161
+ }
162
+ function withKitDependency(manifest, kitVersion, zod) {
163
+ let pkg;
164
+ try {
165
+ pkg = JSON.parse(manifest);
166
+ } catch {
167
+ return;
168
+ }
169
+ if (typeof pkg !== "object" || pkg === null || Array.isArray(pkg))
170
+ return;
171
+ const deps = (k) => pkg[k] ?? {};
172
+ if (deps("devDependencies")["@jordond/kit"] || deps("dependencies")["@jordond/kit"])
173
+ return;
174
+ const dev = { ...deps("devDependencies"), "@jordond/kit": `^${kitVersion}` };
175
+ if (!dev.zod && !deps("dependencies").zod)
176
+ dev.zod = zod;
177
+ return `${JSON.stringify({ ...pkg, devDependencies: dev }, null, 2)}
178
+ `;
179
+ }
180
+ function withGitignore(text, entries) {
181
+ const have = new Set((text ?? "").split(`
182
+ `).map((l) => l.trim().replace(/^\//, "")));
183
+ const missing = entries.filter((e) => !have.has(e) && !have.has(e.replace(/\/$/, "")));
184
+ if (!missing.length)
185
+ return;
186
+ const base = text === undefined || text === "" ? "" : text.endsWith(`
187
+ `) ? text : `${text}
188
+ `;
189
+ return `${base}${missing.join(`
190
+ `)}
191
+ `;
192
+ }
193
+ function withVersionKeys(text, keys) {
194
+ const src = text ?? "";
195
+ const missing = Object.entries(keys).filter(([k]) => getTomlValue(src, "versions", k) === undefined);
196
+ if (!missing.length)
197
+ return;
198
+ const added = missing.map(([k, v]) => `${k} = ${JSON.stringify(v)}`);
199
+ const lines = src.split(`
200
+ `);
201
+ const header = lines.findIndex((l) => /^\s*\[versions\]\s*(#.*)?$/.test(l));
202
+ if (header < 0) {
203
+ if (parseToml(src).versions !== undefined)
204
+ return "manual";
205
+ return `${["[versions]", ...added].join(`
206
+ `)}
207
+ ${src.trim() ? `
208
+ ${src}` : ""}`;
209
+ }
210
+ lines.splice(header + 1, 0, ...added);
211
+ return lines.join(`
212
+ `);
213
+ }
214
+ var fill = (text, vars) => text.replace(/\{\{(\w+)\}\}/g, (m, k) => vars[k] ?? m);
215
+ function planScaffold(input) {
216
+ const { template, name, read } = input;
217
+ const toolchain = template === "toolchain";
218
+ const facts = toolchain ? detectToolchain(read, input.list ?? (() => [])) : undefined;
219
+ const vars = {
220
+ name,
221
+ kitVersion: input.kitVersion,
222
+ kitRef: input.kitRef,
223
+ platformArgs: facts?.ciPlatforms.length ? ` -- ${facts.ciPlatforms.map((p) => `--platform ${p}`).join(" ")}` : ""
224
+ };
225
+ const manifest = toolchain ? ".kit/package.json" : "package.json";
226
+ const wanted = [
227
+ ...facts ? [[".kit/kit.config.ts", toolchainConfig(name, facts)]] : [],
228
+ ...Object.entries(input.files).sort(([a], [b]) => a.localeCompare(b)).map(([path, text]) => [path, fill(text, vars)])
229
+ ];
230
+ const plan = [];
231
+ const existing = read(manifest);
232
+ if (existing === undefined) {
233
+ plan.push({ kind: "write", path: manifest, content: kitPackageJson(name, input.kitVersion, input.zod) });
234
+ } else {
235
+ const content = withKitDependency(existing, input.kitVersion, input.zod);
236
+ plan.push(content === undefined ? { kind: "skip", path: manifest, reason: "exists" } : { kind: "edit", path: manifest, content, note: "add @jordond/kit to devDependencies" });
237
+ }
238
+ for (const [path, content] of wanted) {
239
+ plan.push(read(path) === undefined ? { kind: "write", path, content } : { kind: "skip", path, reason: "exists" });
240
+ }
241
+ const ignore = withGitignore(read(".gitignore"), ["node_modules/", ".env"]);
242
+ if (ignore !== undefined) {
243
+ plan.push(read(".gitignore") === undefined ? { kind: "write", path: ".gitignore", content: ignore } : { kind: "edit", path: ".gitignore", content: ignore, note: "add node_modules/ and .env" });
244
+ }
245
+ if (facts) {
246
+ const android = facts.android?.versionName ?? "1.0.0";
247
+ const keys = { "app-android-version": android, "app-ios-version": facts.ios?.version ?? android };
248
+ const catalog = withVersionKeys(read("libs.versions.toml"), keys);
249
+ if (catalog === "manual") {
250
+ plan.push({
251
+ kind: "skip",
252
+ path: "libs.versions.toml",
253
+ reason: "add app-android-version and app-ios-version to its versions table by hand"
254
+ });
255
+ } else if (catalog !== undefined) {
256
+ plan.push(read("libs.versions.toml") === undefined ? { kind: "write", path: "libs.versions.toml", content: catalog } : {
257
+ kind: "edit",
258
+ path: "libs.versions.toml",
259
+ content: catalog,
260
+ note: "add app-android-version and app-ios-version"
261
+ });
262
+ }
263
+ }
264
+ return plan;
265
+ }
266
+ export {
267
+ withVersionKeys,
268
+ withKitDependency,
269
+ withGitignore,
270
+ toolchainConfig,
271
+ projectModules,
272
+ planScaffold,
273
+ placeholderId,
274
+ moduleProduct,
275
+ kitPackageJson,
276
+ isToolchainRepo,
277
+ detectToolchain,
278
+ TEMPLATES
279
+ };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-08ff849s.js";
4
+ } from "./cli-6q43d787.js";
5
5
  import"./cli-540nme4e.js";
6
6
  import"./cli-5wasc5mr.js";
7
7
  import"./cli-7wvrehng.js";
@@ -29,7 +29,7 @@ function serviceCommand(name) {
29
29
  examples: `kit release ${name}
30
30
  kit release ${name} --dry-run`,
31
31
  async run(ctx) {
32
- const { requireProject } = await import("./command-ybq4jdy8.js");
32
+ const { requireProject } = await import("./command-gtyznw30.js");
33
33
  const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
34
34
  const { checkBranch, checkClean } = await import("./mobile-r27grzez.js");
35
35
  const { readVersion } = await import("./version-mnds3q7r.js");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-08ff849s.js";
4
+ } from "./cli-6q43d787.js";
5
5
  import"./cli-540nme4e.js";
6
6
  import"./cli-5wasc5mr.js";
7
7
  import"./cli-7wvrehng.js";
@@ -17,7 +17,7 @@ var show_default = defineCommand({
17
17
  kit version show ios
18
18
  kit version show --json`,
19
19
  async run(ctx) {
20
- const { requireProject } = await import("./command-ybq4jdy8.js");
20
+ const { requireProject } = await import("./command-gtyznw30.js");
21
21
  const { readVersions, versionKey } = await import("./version-mnds3q7r.js");
22
22
  const { describe } = await import("./git-3gyyfk0x.js");
23
23
  const { emitJson } = await import("./log-g1ebh60s.js");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-08ff849s.js";
4
+ } from "./cli-6q43d787.js";
5
5
  import"./cli-540nme4e.js";
6
6
  import"./cli-5wasc5mr.js";
7
7
  import"./cli-7wvrehng.js";
@@ -17,7 +17,7 @@ var sync_default = defineCommand({
17
17
  kit env sync --dry-run
18
18
  kit env sync --json`,
19
19
  async run(ctx) {
20
- const { requireProject } = await import("./command-ybq4jdy8.js");
20
+ const { requireProject } = await import("./command-gtyznw30.js");
21
21
  const { loadEnv, assertValid } = await import("./load-4s6t9309.js");
22
22
  const { outputs, writeOutputs } = await import("./render-vn40fp54.js");
23
23
  const { emitJson } = await import("./log-g1ebh60s.js");