@jordond/kit 0.4.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 (252) hide show
  1. package/README.md +64 -3
  2. package/bin/kit +6 -2
  3. package/dist/{_verb-rhswhzxn.js → _verb-cfgwexs5.js} +8 -8
  4. package/dist/{android-d6zs9dyp.js → android-f2jqh5f4.js} +4 -4
  5. package/dist/{build-fmx52dv7.js → build-15wfykv9.js} +3 -3
  6. package/dist/{builtins-1dzch5rr.js → builtins-tgrq0nnd.js} +1 -1
  7. package/dist/{bump-w1feqf2k.js → bump-xmjn8q5s.js} +4 -4
  8. package/dist/{certs-yp73br5h.js → certs-5kcftfaz.js} +4 -4
  9. package/dist/{check-7hgf728j.js → check-h2qjvrge.js} +3 -3
  10. package/dist/{check-2kvdmdcy.js → check-s3xje6km.js} +5 -5
  11. package/dist/cli-0j3ywy6y.js +64 -0
  12. package/dist/{cli-v1tt2mzx.js → cli-1m6cy8wp.js} +4 -4
  13. package/dist/{cli-wxv8j9e1.js → cli-650g3nf7.js} +38 -32
  14. package/dist/{cli-6z4axmde.js → cli-6q43d787.js} +4 -4
  15. package/dist/cli-8mb4ayv9.js +196 -0
  16. package/dist/{cli-mdy0ze8j.js → cli-dcq8ydz0.js} +4 -4
  17. package/dist/cli.js +1 -1
  18. package/dist/{cloudflare-2t4cqqb8.js → cloudflare-3p8gj4ae.js} +2 -2
  19. package/dist/{command-1ydsfy5t.js → command-gtyznw30.js} +2 -2
  20. package/dist/commands/init.d.ts +29 -1
  21. package/dist/commands/upgrade.d.ts +9 -0
  22. package/dist/{completion-gp0a1820.js → completion-6yett99s.js} +2 -2
  23. package/dist/completion-g8bjf46s.js +36 -0
  24. package/dist/config/load.d.ts +22 -0
  25. package/dist/{config-tbdx7xmd.js → config-2db8d4tg.js} +2 -2
  26. package/dist/{create-a0wwtv51.js → create-te58argb.js} +4 -4
  27. package/dist/creds-2qk71mdx.js +1 -1
  28. package/dist/{deploy-zw91q9dz.js → deploy-k21ee2wr.js} +6 -6
  29. package/dist/{deps-mt460msd.js → deps-tq3jpjd3.js} +3 -3
  30. package/dist/{dev-hh6m90wf.js → dev-915svrxw.js} +6 -6
  31. package/dist/{doctor-dbpnyxca.js → doctor-63ntz70n.js} +7 -5
  32. package/dist/{exec-y71nap3e.js → exec-gwnn34v2.js} +4 -4
  33. package/dist/{fastlane-r8ewmtsp.js → fastlane-86zcf5ys.js} +5 -5
  34. package/dist/{fastlane-gjmhdgpc.js → fastlane-pj9c09z3.js} +2 -2
  35. package/dist/{format-7nafzp1w.js → format-z1jqgbad.js} +3 -3
  36. package/dist/{github-wd1fyk08.js → github-xakbbb7p.js} +3 -3
  37. package/dist/{gradle-rgyhk380.js → gradle-df21cm28.js} +3 -3
  38. package/dist/index.js +6 -6
  39. package/dist/init-cbba8t64.js +455 -0
  40. package/dist/{init-dnknbjrv.js → init-hdebe1s9.js} +4 -4
  41. package/dist/{ios-x4rdpb0s.js → ios-txv190np.js} +4 -4
  42. package/dist/kitref-9j43993r.js +84 -0
  43. package/dist/{kotlin-pc1dk6d8.js → kotlin-drt7z6bg.js} +3 -3
  44. package/dist/lib/completion.d.ts +33 -0
  45. package/dist/lib/kitref.d.ts +35 -0
  46. package/dist/lib/scaffold.d.ts +101 -0
  47. package/dist/{lint-2erx5vre.js → lint-90ernbhx.js} +3 -3
  48. package/dist/{list-7z9vyxrc.js → list-vaarpryk.js} +4 -4
  49. package/dist/load-x6mekf6y.js +25 -0
  50. package/dist/{main-2q4ys8qw.js → main-5c6x1pd4.js} +34 -247
  51. package/dist/{migrate-97yp0r9r.js → migrate-9zvfp57b.js} +4 -4
  52. package/dist/{mobile-vjv11q72.js → mobile-r27grzez.js} +16 -16
  53. package/dist/{push-g5ade61n.js → push-tn468c4w.js} +3 -3
  54. package/dist/{push-36vdpwex.js → push-wgbf86c0.js} +6 -6
  55. package/dist/scaffold-eqbtfksr.js +279 -0
  56. package/dist/{service-4cjx0epd.js → service-s5mnjq74.js} +5 -5
  57. package/dist/{show-y420r49k.js → show-qhn6x1vn.js} +3 -3
  58. package/dist/{steps-705j58z1.js → steps-8bz1tscj.js} +1 -1
  59. package/dist/{sync-mfzsmag6.js → sync-34029rh7.js} +4 -4
  60. package/dist/{targets-d9e5naq8.js → targets-5z0abrrk.js} +2 -2
  61. package/dist/{test-vwreks0d.js → test-rpj97zr6.js} +3 -3
  62. package/dist/{typecheck-8p2ng33a.js → typecheck-tbtp9z07.js} +3 -3
  63. package/dist/upgrade-z5s5wzzj.js +127 -0
  64. package/dist/{wrangler-rbrw8ygc.js → wrangler-zz21zhb0.js} +4 -4
  65. package/dist/{xcode-njfvzhk3.js → xcode-w8yhedhm.js} +3 -3
  66. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/{0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom} +2 -2
  67. 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
  68. 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
  69. 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
  70. 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
  71. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml +4 -4
  72. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.md5 +1 -1
  73. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  74. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  75. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  76. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/{0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom} +2 -2
  77. 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
  78. 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
  79. 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
  80. 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
  81. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml +4 -4
  82. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.md5 +1 -1
  83. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  84. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  85. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  86. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/{0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom} +2 -2
  87. 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
  88. 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
  89. 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
  90. 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
  91. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml +4 -4
  92. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.md5 +1 -1
  93. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  94. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  95. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  96. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/{0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom} +2 -2
  97. 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
  98. 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
  99. 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
  100. 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
  101. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml +4 -4
  102. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.md5 +1 -1
  103. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  104. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  105. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  106. package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.module → 0.6.0/kit-plugins-0.6.0.module} +5 -5
  107. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.md5 +1 -0
  108. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.sha1 +1 -0
  109. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.sha256 +1 -0
  110. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.sha512 +1 -0
  111. package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.pom → 0.6.0/kit-plugins-0.6.0.pom} +1 -1
  112. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.md5 +1 -0
  113. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.sha1 +1 -0
  114. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.sha256 +1 -0
  115. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.sha512 +1 -0
  116. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml +4 -4
  117. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.md5 +1 -1
  118. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha1 +1 -1
  119. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha256 +1 -1
  120. package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha512 +1 -1
  121. package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.module → 0.6.0/kit-settings-0.6.0.module} +5 -5
  122. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.md5 +1 -0
  123. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.sha1 +1 -0
  124. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.sha256 +1 -0
  125. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.sha512 +1 -0
  126. package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.pom → 0.6.0/kit-settings-0.6.0.pom} +1 -1
  127. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.md5 +1 -0
  128. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.sha1 +1 -0
  129. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.sha256 +1 -0
  130. package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.sha512 +1 -0
  131. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml +4 -4
  132. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.md5 +1 -1
  133. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha1 +1 -1
  134. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha256 +1 -1
  135. package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha512 +1 -1
  136. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/{0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom} +2 -2
  137. 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
  138. 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
  139. 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
  140. 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
  141. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml +4 -4
  142. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.md5 +1 -1
  143. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  144. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  145. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  146. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/{0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom} +2 -2
  147. 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
  148. 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
  149. 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
  150. 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
  151. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml +4 -4
  152. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.md5 +1 -1
  153. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  154. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  155. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  156. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/{0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom} +2 -2
  157. 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
  158. 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
  159. 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
  160. 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
  161. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml +4 -4
  162. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.md5 +1 -1
  163. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  164. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  165. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  166. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/{0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom} +2 -2
  167. 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
  168. 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
  169. 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
  170. 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
  171. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml +4 -4
  172. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.md5 +1 -1
  173. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha1 +1 -1
  174. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha256 +1 -1
  175. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha512 +1 -1
  176. package/package.json +1 -1
  177. package/templates/{new → gradle}/.github/workflows/ci.yml +3 -3
  178. package/templates/lefthook.yml +1 -1
  179. package/templates/toolchain/.editorconfig +32 -0
  180. package/templates/toolchain/.env.example +20 -0
  181. package/templates/toolchain/.github/workflows/ci.yml +44 -0
  182. package/templates/toolchain/.github/workflows/distribute.yml +41 -0
  183. package/templates/toolchain/fastlane/Fastfile +1 -0
  184. package/templates/toolchain/mise.toml +6 -0
  185. package/dist/init-cb5hz9aa.js +0 -269
  186. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.md5 +0 -1
  187. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.sha1 +0 -1
  188. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.sha256 +0 -1
  189. package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.sha512 +0 -1
  190. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.md5 +0 -1
  191. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.sha1 +0 -1
  192. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.sha256 +0 -1
  193. package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.sha512 +0 -1
  194. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.md5 +0 -1
  195. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.sha1 +0 -1
  196. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.sha256 +0 -1
  197. package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.sha512 +0 -1
  198. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.md5 +0 -1
  199. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.sha1 +0 -1
  200. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.sha256 +0 -1
  201. package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.sha512 +0 -1
  202. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.md5 +0 -1
  203. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.sha1 +0 -1
  204. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.sha256 +0 -1
  205. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.sha512 +0 -1
  206. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.md5 +0 -1
  207. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.sha1 +0 -1
  208. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.sha256 +0 -1
  209. package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.sha512 +0 -1
  210. package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.md5 +0 -1
  211. package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.sha1 +0 -1
  212. package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.sha256 +0 -1
  213. package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.sha512 +0 -1
  214. package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.md5 +0 -1
  215. package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.sha1 +0 -1
  216. package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.sha256 +0 -1
  217. package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.sha512 +0 -1
  218. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.md5 +0 -1
  219. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.sha1 +0 -1
  220. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.sha256 +0 -1
  221. package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.sha512 +0 -1
  222. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.md5 +0 -1
  223. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.sha1 +0 -1
  224. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.sha256 +0 -1
  225. package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.sha512 +0 -1
  226. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.md5 +0 -1
  227. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.sha1 +0 -1
  228. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.sha256 +0 -1
  229. package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.sha512 +0 -1
  230. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.md5 +0 -1
  231. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.sha1 +0 -1
  232. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.sha256 +0 -1
  233. package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.sha512 +0 -1
  234. package/dist/{cli-tafnwn5a.js → cli-5qdvgv3a.js} +4 -4
  235. package/dist/{cli-vkam43jd.js → cli-5sp3tf1s.js} +3 -3
  236. package/dist/{cli-ya6cd8y5.js → cli-pz86az34.js} +0 -0
  237. package/dist/{load-75n91nk4.js → load-4s6t9309.js} +2 -2
  238. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.jar → 0.6.0/kit-plugins-0.6.0.jar} +0 -0
  239. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.jar.md5 → 0.6.0/kit-plugins-0.6.0.jar.md5} +0 -0
  240. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.jar.sha1 → 0.6.0/kit-plugins-0.6.0.jar.sha1} +0 -0
  241. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.jar.sha256 → 0.6.0/kit-plugins-0.6.0.jar.sha256} +0 -0
  242. /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.jar.sha512 → 0.6.0/kit-plugins-0.6.0.jar.sha512} +0 -0
  243. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.jar → 0.6.0/kit-settings-0.6.0.jar} +0 -0
  244. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.jar.md5 → 0.6.0/kit-settings-0.6.0.jar.md5} +0 -0
  245. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.jar.sha1 → 0.6.0/kit-settings-0.6.0.jar.sha1} +0 -0
  246. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.jar.sha256 → 0.6.0/kit-settings-0.6.0.jar.sha256} +0 -0
  247. /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.jar.sha512 → 0.6.0/kit-settings-0.6.0.jar.sha512} +0 -0
  248. /package/templates/{new → gradle}/.env.example +0 -0
  249. /package/templates/{new → gradle}/apps/client/fastlane/Fastfile +0 -0
  250. /package/templates/{new → gradle}/apps/client/gradle/libs.versions.toml +0 -0
  251. /package/templates/{new → gradle}/apps/client/settings.gradle.kts +0 -0
  252. /package/templates/{new → gradle}/kit.config.ts +0 -0
@@ -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,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-6z4axmde.js";
5
- import"./cli-7wvrehng.js";
4
+ } from "./cli-6q43d787.js";
6
5
  import"./cli-540nme4e.js";
7
6
  import"./cli-5wasc5mr.js";
7
+ import"./cli-7wvrehng.js";
8
8
  import {
9
9
  __require
10
10
  } from "./cli-re3ntm60.js";
@@ -29,15 +29,15 @@ 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-1ydsfy5t.js");
32
+ const { requireProject } = await import("./command-gtyznw30.js");
33
33
  const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
34
- const { checkBranch, checkClean } = await import("./mobile-vjv11q72.js");
34
+ const { checkBranch, checkClean } = await import("./mobile-r27grzez.js");
35
35
  const { readVersion } = await import("./version-mnds3q7r.js");
36
36
  const { serviceTag } = await import("./notes-1zsa7qac.js");
37
37
  const { push, tag } = await import("./git-3gyyfk0x.js");
38
38
  const { runPiped } = await import("./proc-jv4bcyyx.js");
39
39
  const { confirm } = await import("./prompt-3wwegvqc.js");
40
- const { commandStep, runSteps, summarize } = await import("./steps-705j58z1.js");
40
+ const { commandStep, runSteps, summarize } = await import("./steps-8bz1tscj.js");
41
41
  const { emitJson } = await import("./log-g1ebh60s.js");
42
42
  const started = performance.now();
43
43
  const { root, config } = requireProject(ctx);
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-6z4axmde.js";
5
- import"./cli-7wvrehng.js";
4
+ } from "./cli-6q43d787.js";
6
5
  import"./cli-540nme4e.js";
7
6
  import"./cli-5wasc5mr.js";
7
+ import"./cli-7wvrehng.js";
8
8
  import {
9
9
  __require
10
10
  } from "./cli-re3ntm60.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-1ydsfy5t.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");
@@ -3,7 +3,7 @@ import {
3
3
  commandStep,
4
4
  runSteps,
5
5
  summarize
6
- } from "./cli-ya6cd8y5.js";
6
+ } from "./cli-pz86az34.js";
7
7
  import"./cli-wg35kt5d.js";
8
8
  import"./cli-fqfan92n.js";
9
9
  import"./cli-fqxtcj42.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-6z4axmde.js";
5
- import"./cli-7wvrehng.js";
4
+ } from "./cli-6q43d787.js";
6
5
  import"./cli-540nme4e.js";
7
6
  import"./cli-5wasc5mr.js";
7
+ import"./cli-7wvrehng.js";
8
8
  import {
9
9
  __require
10
10
  } from "./cli-re3ntm60.js";
@@ -17,8 +17,8 @@ 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-1ydsfy5t.js");
21
- const { loadEnv, assertValid } = await import("./load-75n91nk4.js");
20
+ const { requireProject } = await import("./command-gtyznw30.js");
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");
24
24
  const { root, config } = requireProject(ctx);
@@ -7,12 +7,12 @@ import {
7
7
  selectTargets,
8
8
  suggest,
9
9
  targetCommands
10
- } from "./cli-vkam43jd.js";
10
+ } from "./cli-5sp3tf1s.js";
11
11
  import"./cli-78x6rdyd.js";
12
12
  import"./cli-qhs8ww91.js";
13
- import"./cli-7wvrehng.js";
14
13
  import"./cli-fqfan92n.js";
15
14
  import"./cli-fqxtcj42.js";
15
+ import"./cli-7wvrehng.js";
16
16
  import"./cli-re3ntm60.js";
17
17
  export {
18
18
  targetCommands,
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-6z4axmde.js";
5
- import"./cli-7wvrehng.js";
4
+ } from "./cli-6q43d787.js";
6
5
  import"./cli-540nme4e.js";
7
6
  import"./cli-5wasc5mr.js";
7
+ import"./cli-7wvrehng.js";
8
8
  import {
9
9
  __require
10
10
  } from "./cli-re3ntm60.js";
@@ -17,7 +17,7 @@ var test_default = defineCommand({
17
17
  kit test api
18
18
  kit test client -- --rerun`,
19
19
  async run(ctx) {
20
- const { runVerb } = await import("./_verb-rhswhzxn.js");
20
+ const { runVerb } = await import("./_verb-cfgwexs5.js");
21
21
  await runVerb(ctx, { name: "test", verbs: ["test"] });
22
22
  }
23
23
  });
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-6z4axmde.js";
5
- import"./cli-7wvrehng.js";
4
+ } from "./cli-6q43d787.js";
6
5
  import"./cli-540nme4e.js";
7
6
  import"./cli-5wasc5mr.js";
7
+ import"./cli-7wvrehng.js";
8
8
  import {
9
9
  __require
10
10
  } from "./cli-re3ntm60.js";
@@ -15,7 +15,7 @@ var typecheck_default = defineCommand({
15
15
  group: "Quality",
16
16
  examples: "kit typecheck",
17
17
  async run(ctx) {
18
- const { runVerb } = await import("./_verb-rhswhzxn.js");
18
+ const { runVerb } = await import("./_verb-cfgwexs5.js");
19
19
  await runVerb(ctx, { name: "typecheck", verbs: ["typecheck"] });
20
20
  }
21
21
  });
@@ -0,0 +1,127 @@
1
+ // @bun
2
+ import {
3
+ defineCommand
4
+ } from "./cli-6q43d787.js";
5
+ import"./cli-540nme4e.js";
6
+ import"./cli-5wasc5mr.js";
7
+ import"./cli-7wvrehng.js";
8
+ import {
9
+ __require
10
+ } from "./cli-re3ntm60.js";
11
+
12
+ // src/commands/upgrade.ts
13
+ var upgrade_default = defineCommand({
14
+ description: "Move the @jordond/kit pin and the workflow SHAs to a kit release",
15
+ group: "Setup",
16
+ examples: [
17
+ "kit upgrade # the latest release on npm",
18
+ "kit upgrade 0.6.0",
19
+ "kit upgrade --dry-run"
20
+ ].join(`
21
+ `),
22
+ async run(ctx) {
23
+ const { existsSync, readdirSync, readFileSync, writeFileSync } = await import("fs");
24
+ const { join } = await import("path");
25
+ const { installDir } = await import("./load-x6mekf6y.js");
26
+ const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
27
+ const { bumpPin, isVersion, KIT_PACKAGE, latestVersion, repinWorkflow, tagSha } = await import("./kitref-9j43993r.js");
28
+ const { emitJson } = await import("./log-g1ebh60s.js");
29
+ const { detectPackageManager } = await import("./pm-5q5vz6w3.js");
30
+ const { run, runQuiet } = await import("./proc-jv4bcyyx.js");
31
+ const root = ctx.root ?? process.cwd();
32
+ const dir = installDir(root);
33
+ const manifest = join(dir, "package.json");
34
+ if (!existsSync(join(root, manifest))) {
35
+ throw new KitError(`No ${manifest} here`, "Run it in a repo that uses kit", ExitCode.config);
36
+ }
37
+ const asked = ctx.positionals[0]?.replace(/^v/, "");
38
+ if (asked !== undefined && !isVersion(asked)) {
39
+ throw new KitError(`"${ctx.positionals[0]}" is not a version`, "Pass X.Y.Z", ExitCode.usage);
40
+ }
41
+ const version = asked ?? await latestVersion();
42
+ if (!version) {
43
+ throw new KitError(`Could not read the latest ${KIT_PACKAGE} version from npm`, "Pass it: kit upgrade X.Y.Z");
44
+ }
45
+ const before = readFileSync(join(root, manifest), "utf8");
46
+ const pin = bumpPin(before, version);
47
+ if (!pin) {
48
+ throw new KitError(`${manifest} does not depend on ${KIT_PACKAGE}`, undefined, ExitCode.config);
49
+ }
50
+ if (pin.to === pin.from && !pin.from.endsWith(version)) {
51
+ throw new KitError(`${manifest} pins ${KIT_PACKAGE} to "${pin.from}", which is not a version range`, "Edit it by hand", ExitCode.config);
52
+ }
53
+ const sha = await tagSha(version);
54
+ const wfDir = join(root, ".github/workflows");
55
+ const workflows = (existsSync(wfDir) ? readdirSync(wfDir) : []).filter((f) => /\.ya?ml$/.test(f)).sort().map((f) => {
56
+ const file = join(".github/workflows", f);
57
+ const text = readFileSync(join(root, file), "utf8");
58
+ const next = repinWorkflow(text, version, sha ?? "0".repeat(40));
59
+ return { file, text: next.text, pins: next.count };
60
+ }).filter((w) => w.pins > 0);
61
+ const pinChanged = pin.text !== before;
62
+ const say = !ctx.flags.json;
63
+ const doc = {
64
+ from: pin.from,
65
+ to: pin.to,
66
+ manifest,
67
+ sha: sha ?? null,
68
+ workflows: workflows.map(({ file, pins }) => ({ file, pins }))
69
+ };
70
+ if (say) {
71
+ if (pinChanged)
72
+ ctx.log.step(`${manifest}: ${KIT_PACKAGE} ${pin.from} \u2192 ${pin.to}`);
73
+ else
74
+ ctx.log.dim(`- ${manifest} already ${pin.from}`);
75
+ for (const w of workflows)
76
+ ctx.log.step(`${w.file}: ${w.pins} pin${w.pins === 1 ? "" : "s"} \u2192 v${version}`);
77
+ }
78
+ const unresolved = workflows.length > 0 && !sha;
79
+ const noSha = () => {
80
+ ctx.log.error(`v${version} not found in the kit repo: workflow pins left as they are`, `Re-run \`kit upgrade ${version}\` once the tag exists; \`kit doctor --ci\` fails until then`);
81
+ };
82
+ if (ctx.flags.dryRun) {
83
+ if (ctx.flags.json)
84
+ emitJson({ ok: !unresolved, ...doc });
85
+ else if (unresolved)
86
+ noSha();
87
+ if (unresolved)
88
+ process.exitCode = 1;
89
+ return;
90
+ }
91
+ let ok = true;
92
+ if (pinChanged) {
93
+ writeFileSync(join(root, manifest), pin.text);
94
+ const cwd = join(root, dir);
95
+ const cmd = [detectPackageManager(cwd, root), "install"];
96
+ if (say)
97
+ ctx.log.step(`${cmd.join(" ")}${dir === "." ? "" : ` (${dir})`}`);
98
+ const code = ctx.flags.json ? (await runQuiet(cmd, { cwd })).code : await run(cmd, { cwd });
99
+ if (code !== 0) {
100
+ writeFileSync(join(root, manifest), before);
101
+ if (say)
102
+ ctx.log.error(`${cmd.join(" ")} failed (exit ${code}): ${manifest} restored`);
103
+ if (ctx.flags.json)
104
+ emitJson({ ok: false, ...doc });
105
+ process.exitCode = 1;
106
+ return;
107
+ }
108
+ }
109
+ if (sha)
110
+ for (const w of workflows)
111
+ writeFileSync(join(root, w.file), w.text);
112
+ else if (unresolved) {
113
+ ok = false;
114
+ if (say)
115
+ noSha();
116
+ }
117
+ if (ctx.flags.json)
118
+ emitJson({ ok, ...doc });
119
+ else if (ok)
120
+ ctx.log.success(pinChanged || workflows.length ? `kit ${version}` : `already on kit ${version}`);
121
+ if (!ok)
122
+ process.exitCode = 1;
123
+ }
124
+ });
125
+ export {
126
+ upgrade_default as default
127
+ };
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-6z4axmde.js";
5
- import"./cli-7wvrehng.js";
4
+ } from "./cli-6q43d787.js";
6
5
  import"./cli-540nme4e.js";
7
6
  import"./cli-5wasc5mr.js";
7
+ import"./cli-7wvrehng.js";
8
8
  import {
9
9
  __require
10
10
  } from "./cli-re3ntm60.js";
@@ -20,7 +20,7 @@ kit wrangler api deploy --dry-run`,
20
20
  async run(ctx) {
21
21
  const workersOf = (targets) => Object.entries(targets).filter(([, t]) => t.kind === "worker").map(([n]) => n);
22
22
  const { join } = await import("path");
23
- const { requireProject } = await import("./command-1ydsfy5t.js");
23
+ const { requireProject } = await import("./command-gtyznw30.js");
24
24
  const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
25
25
  const { detectPackageManager, pmExec } = await import("./pm-5q5vz6w3.js");
26
26
  const { run } = await import("./proc-jv4bcyyx.js");
@@ -36,7 +36,7 @@ kit wrangler api deploy --dry-run`,
36
36
  throw new KitError(`"${name}" is not a worker target`, hint, ExitCode.usage);
37
37
  }
38
38
  if (config.cloudflare?.accountId)
39
- (await import("./cloudflare-2t4cqqb8.js")).pinCloudflareAccount(root, config);
39
+ (await import("./cloudflare-3p8gj4ae.js")).pinCloudflareAccount(root, config);
40
40
  const dir = join(root, target.dir);
41
41
  process.exitCode = await run(pmExec(detectPackageManager(dir, root), "wrangler", ...args), { cwd: dir });
42
42
  }
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  defineCommand
4
- } from "./cli-6z4axmde.js";
5
- import"./cli-7wvrehng.js";
4
+ } from "./cli-6q43d787.js";
6
5
  import"./cli-540nme4e.js";
7
6
  import"./cli-5wasc5mr.js";
7
+ import"./cli-7wvrehng.js";
8
8
  import {
9
9
  __require
10
10
  } from "./cli-re3ntm60.js";
@@ -33,7 +33,7 @@ var xcode_default = defineCommand({
33
33
  examples: `kit xcode
34
34
  kit xcode --dry-run --json`,
35
35
  async run(ctx) {
36
- const { requireProject } = await import("./command-1ydsfy5t.js");
36
+ const { requireProject } = await import("./command-gtyznw30.js");
37
37
  const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
38
38
  const { run, runToStderr } = await import("./proc-jv4bcyyx.js");
39
39
  const { root, config } = requireProject(ctx);
@@ -3,13 +3,13 @@
3
3
  <modelVersion>4.0.0</modelVersion>
4
4
  <groupId>io.github.jordond.kit.android.application</groupId>
5
5
  <artifactId>io.github.jordond.kit.android.application.gradle.plugin</artifactId>
6
- <version>0.4.0</version>
6
+ <version>0.6.0</version>
7
7
  <packaging>pom</packaging>
8
8
  <dependencies>
9
9
  <dependency>
10
10
  <groupId>io.github.jordond.kit</groupId>
11
11
  <artifactId>kit-plugins</artifactId>
12
- <version>0.4.0</version>
12
+ <version>0.6.0</version>
13
13
  </dependency>
14
14
  </dependencies>
15
15
  </project>
@@ -0,0 +1 @@
1
+ 2757292327f5e71a4f1b35e60da915148c807674b39979acab9022efb026c59c73131cdd17328eec0ac85478d9fee7b9d8514753b34caffba3900928c1657c7a
@@ -3,11 +3,11 @@
3
3
  <groupId>io.github.jordond.kit.android.application</groupId>
4
4
  <artifactId>io.github.jordond.kit.android.application.gradle.plugin</artifactId>
5
5
  <versioning>
6
- <latest>0.4.0</latest>
7
- <release>0.4.0</release>
6
+ <latest>0.6.0</latest>
7
+ <release>0.6.0</release>
8
8
  <versions>
9
- <version>0.4.0</version>
9
+ <version>0.6.0</version>
10
10
  </versions>
11
- <lastUpdated>20261111231006</lastUpdated>
11
+ <lastUpdated>20261112002009</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 43056cd438a03e84ca730ff24ae1cfee
1
+ 267534e03c65076853192e15f4f67fd4
@@ -1 +1 @@
1
- ef3d8fede2f423bf3ce1e450b352cd002772ea55
1
+ de5766c038d0bb9f472292297ff6f68b594a48c3