@jordond/kit 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +160 -5
- package/dist/_affected-D8pI64_f.js +13 -0
- package/dist/_preview-B58geuUk.js +174 -0
- package/dist/_verb-DWXrtbyb.js +136 -0
- package/dist/android-C7N3LxRq.js +56 -0
- package/dist/apply-CphKtpYM.js +120 -0
- package/dist/args-DLndWKlr.js +25 -0
- package/dist/backup-9B4K9U_G.js +50 -0
- package/dist/bin-BPRG3tvc.js +1 -0
- package/dist/bin-t8E-qlss.js +31 -0
- package/dist/boot-D1w45n5N.js +50 -0
- package/dist/build-B2Ua7rOn.js +1 -0
- package/dist/build-DeykXskB.js +36 -0
- package/dist/build-DqITJpTP.js +52 -0
- package/dist/build-DtqYlgYC.js +123 -0
- package/dist/builtins-CPRE__kE.js +1 -0
- package/dist/builtins-ysIGaptY.js +426 -0
- package/dist/bump-hLNWDGnq.js +203 -0
- package/dist/certs-DRmBZA4b.js +65 -0
- package/dist/changelog-Bx2QM52O.js +131 -0
- package/dist/changelog-CeTpoe3d.js +128 -0
- package/dist/check-CH7X4usg.js +55 -0
- package/dist/check-vl7UBzW0.js +25 -0
- package/dist/checks-DxPGOAjd.js +751 -0
- package/dist/chrome-guy8J1Sd.js +54 -0
- package/dist/clean-Cnjk-U9b.js +78 -0
- package/dist/clean-uyfwoFAC.js +248 -0
- package/dist/cleanup-B3RY_WMv.js +64 -0
- package/dist/cleanup-B7tWYXh4.js +1 -0
- package/dist/clear-C-Pq3HaB.js +34 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +23 -31
- package/dist/cloudflare-DANxWsOQ.js +297 -0
- package/dist/cloudflare-Fqiw0PwT.js +1 -0
- package/dist/command-B8J0KTC5.js +113 -0
- package/dist/command-B_tgmjMh.js +253 -0
- package/dist/command-DEjZdYUF.js +1 -0
- package/dist/command-DS2EuzYK.js +1 -0
- package/dist/command-mcR8k_HV.js +534 -0
- package/dist/completion-BiXJxPZ9.js +36 -0
- package/dist/completion-CbVmcFV9.js +39 -0
- package/dist/concurrent-DkDp6F4m.js +83 -0
- package/dist/config-4UrkUWxr.js +27 -0
- package/dist/config-B-iLUpjx.js +1 -0
- package/dist/config-B55_sHr5.js +14 -0
- package/dist/config-CWBXI-si.js +137 -0
- package/dist/create-Dy7hger6.js +20 -0
- package/dist/creds-DgLGg0OY.js +142 -0
- package/dist/creds-RiwicGw4.js +1 -0
- package/dist/d1-local-GmVnxPO4.js +47 -0
- package/dist/deploy-BBRBn_M4.js +190 -0
- package/dist/deploy-C_QOMOcM.js +1 -0
- package/dist/deps-CdBkTN7j.js +343 -0
- package/dist/dev-BZJD6OIV.js +109 -0
- package/dist/devices-DDv6rotc.js +1 -0
- package/dist/devices-Se92FvRm.js +530 -0
- package/dist/discover-C3nPq8O7.js +1 -0
- package/dist/discover-CAt8csSs.js +33 -0
- package/dist/doctor-BnNmJ3F0.js +63 -0
- package/dist/dotenv-C-L798Jx.js +1 -0
- package/dist/dotenv-DK7phuY3.js +80 -0
- package/dist/dump-CI3A09n5.js +53 -0
- package/dist/entries-B2AZnsYS.js +284 -0
- package/dist/errors-BO9WKUaF.js +20 -0
- package/dist/errors-q8HX0_8p.js +1 -0
- package/dist/exec-CGau45Vt.js +35 -0
- package/dist/export-Dou4TN6P.js +64 -0
- package/dist/fastlane-DOOIW8Bv.js +32 -0
- package/dist/fastlane-DY9nrA1Z.js +1 -0
- package/dist/fastlane-DjJlMdod.js +137 -0
- package/dist/fixes-BPJohmIs.js +115 -0
- package/dist/fixes-BRULlGZH.js +1 -0
- package/dist/fixtures-C_BKaJkW.js +3 -0
- package/dist/fixtures-kSnSse-E.js +568 -0
- package/dist/format-B9P7cwGa.js +30 -0
- package/dist/git-DS1oA148.js +213 -0
- package/dist/git-oL5tg3JB.js +1 -0
- package/dist/github-hbUxSgvC.js +91 -0
- package/dist/gradle-DCCSshhi.js +21 -0
- package/dist/index.d.ts +527 -9
- package/dist/index.js +9 -52
- package/dist/init-BWwVzmNd.js +62 -0
- package/dist/init-CM9_Vffq.js +522 -0
- package/dist/init-se_v7omf.js +72 -0
- package/dist/install-BYaBSSTu.js +1 -0
- package/dist/install-BwbPiWQ4.js +49 -0
- package/dist/install-CHWJxqqA.js +305 -0
- package/dist/ios-BEwVaO46.js +46 -0
- package/dist/kit-copy-BGFT7-eF.js +83 -0
- package/dist/kit-copy-BdBUHLSS.js +1 -0
- package/dist/kitref-D5EszLHl.js +1 -0
- package/dist/kitref-JXE2rWhj.js +100 -0
- package/dist/kotlin-D8HWnUzo.js +17 -0
- package/dist/lint-Cgq_H-NN.js +31 -0
- package/dist/list-1NXRSisF.js +20 -0
- package/dist/list-D0Qc5Qet.js +53 -0
- package/dist/load-BisdxdeI.js +45 -0
- package/dist/load-DKsm40If.js +169 -0
- package/dist/load-DtAHfNBQ.js +83 -0
- package/dist/load-DuQu-YA7.js +1 -0
- package/dist/log-CEcT9mjr.js +1 -0
- package/dist/log-jfLnWjfH.js +46 -0
- package/dist/logs-DG91Koht.js +51 -0
- package/dist/maestro-BSGMnT75.js +19 -0
- package/dist/maestro-Bd02kktp.js +160 -0
- package/dist/maestro-DKJ2SJeq.js +94 -0
- package/dist/main-Cnazq_l_.js +395 -0
- package/dist/metadata-CIIZa00_.js +657 -0
- package/dist/metadata-_t6U_Pi4.js +1 -0
- package/dist/migrate-BeBNQQ23.js +16 -0
- package/dist/migrate-command-PYN2AamL.js +295 -0
- package/dist/migrate-gonPH0WH.js +24 -0
- package/dist/mobile-DlJmxm4l.js +406 -0
- package/dist/mobile-dAnl58hp.js +1 -0
- package/dist/module-UMYvU8pS.js +117 -0
- package/dist/notes-Bdduo3ph.js +30 -0
- package/dist/notes-C7bDoJcD.js +1 -0
- package/dist/open-BHqqqGnv.js +72 -0
- package/dist/package-BVKRcQpC.js +5 -0
- package/dist/pages-CR7DZpWH.js +22 -0
- package/dist/pages-command-C4NlM9ry.js +350 -0
- package/dist/pick-Bm8e8uYD.js +160 -0
- package/dist/pick-Bu_cPUas.js +1 -0
- package/dist/plan-B_a5uNak.js +128 -0
- package/dist/plan-CcvMZsas.js +696 -0
- package/dist/plan-NaiIzubU.js +1 -0
- package/dist/pm-DKb81DKk.js +1 -0
- package/dist/pm-pcSPQYCu.js +79 -0
- package/dist/png-CYbxsNFm.js +270 -0
- package/dist/preflight-BQKjK3Mg.js +23 -0
- package/dist/proc-Bvvv4XbJ.js +1 -0
- package/dist/proc-WkAakwUC.js +218 -0
- package/dist/project-BO8s1Nwj.js +245 -0
- package/dist/promote-B1ZbzFS-.js +236 -0
- package/dist/promote-bk2Q8_L8.js +58 -0
- package/dist/prompt-BDNW2kJ2.js +1 -0
- package/dist/prompt-C0xPjGLR.js +80 -0
- package/dist/pull-Ch2Kz45B.js +28 -0
- package/dist/push-Cebz1M40.js +28 -0
- package/dist/push-Dph9Y38u.js +148 -0
- package/dist/push-EICF6s2a.js +62 -0
- package/dist/push-run-DXt7HOwQ.js +122 -0
- package/dist/qa-HDgx98qK.js +29 -0
- package/dist/render-BdsHMSvL.js +1 -0
- package/dist/render-Cp6zu41s.js +137 -0
- package/dist/render-roL1FmEH.js +302 -0
- package/dist/repair-CFNd7vN4.js +77 -0
- package/dist/reset-CwitJFp3.js +94 -0
- package/dist/restore-fT4mQq6w.js +109 -0
- package/dist/rollback-DQ9c6iV4.js +114 -0
- package/dist/rollout-gCQfGJW5.js +43 -0
- package/dist/rollout-hOEm0hZ9.js +144 -0
- package/dist/rotate-CWoDNN2_.js +65 -0
- package/dist/rotate-DnmY2rlY.js +172 -0
- package/dist/run-BSsdEdwU.js +50 -0
- package/dist/scaffold--FB-iFfy.js +1 -0
- package/dist/scaffold-B5OFkcou.js +311 -0
- package/dist/schema-D-5sWO5A.js +388 -0
- package/dist/secrets-BIStexgu.js +64 -0
- package/dist/secrets-CP1AnRbb.js +1 -0
- package/dist/seed-BJcU14Jr.js +24 -0
- package/dist/service-BHJDfoHf.js +114 -0
- package/dist/shots-DNcpoKfE.js +34 -0
- package/dist/shots-editor/assets/index-B9fyKikJ.css +2 -0
- package/dist/shots-editor/assets/index-BR5ZXxM4.js +244 -0
- package/dist/shots-editor/index.html +13 -0
- package/dist/shots-page.js +650 -564
- package/dist/show-e4oWpeIr.js +33 -0
- package/dist/sizes-CckOOSmE.js +1 -0
- package/dist/sizes-DQoBHANb.js +237 -0
- package/dist/status-BKF9wQDI.js +164 -0
- package/dist/status-CBfRGcak.js +1 -0
- package/dist/status-DgwgkAcK.js +15 -0
- package/dist/statusbar-BOLryuT7.js +56 -0
- package/dist/statusbar-C-5zclXZ.js +139 -0
- package/dist/statusbar-DmyLm4AT.js +1 -0
- package/dist/steps-BuNBR4xM.js +1 -0
- package/dist/steps-D7yIe5Ik.js +144 -0
- package/dist/studio-CjuQWgLj.js +393 -0
- package/dist/studio-SnhFnjKt.js +31 -0
- package/dist/suites-BHqxW32z.js +62 -0
- package/dist/suites-Ceg_mWy8.js +1 -0
- package/dist/sync-CzHA61P_.js +42 -0
- package/dist/target-tTLR9jzh.js +75 -0
- package/dist/targets-8X6fH7Mq.js +410 -0
- package/dist/targets-e5GoRwSs.js +1 -0
- package/dist/test-BlaVtdkO.js +17 -0
- package/dist/toml-BNhXFtqS.js +1 -0
- package/dist/toml-CdgZF4rj.js +73 -0
- package/dist/toolchain-DD2LqADU.js +1 -0
- package/dist/toolchain-Drbw2hx9.js +216 -0
- package/dist/typecheck-BqGdQvhM.js +17 -0
- package/dist/types-B33pT1hg.js +311 -0
- package/dist/uninstall-pc75zzh4.js +34 -0
- package/dist/upgrade-CuTsADCQ.js +112 -0
- package/dist/version-B5FFFYiV.js +1 -0
- package/dist/version-BP9DAmFX.js +133 -0
- package/dist/worker-BP2x5ONk.js +338 -0
- package/dist/worker-CbVQTdeT.js +1 -0
- package/dist/wrangler-DQIQQkT5.js +27 -0
- package/dist/xcode-DUgCKDwE.js +61 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/{0.7.1/io.github.jordond.kit.android.application.gradle.plugin-0.7.1.pom → 0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/{0.7.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.1.pom → 0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/{0.7.1/io.github.jordond.kit.compose.gradle.plugin-0.7.1.pom → 0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/{0.7.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.1.pom → 0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.module → 0.8.0/kit-plugins-0.8.0.module} +5 -5
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.pom → 0.8.0/kit-plugins-0.8.0.pom} +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.module → 0.8.0/kit-settings-0.8.0.module} +5 -5
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.pom → 0.8.0/kit-settings-0.8.0.pom} +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/{0.7.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.1.pom → 0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/{0.7.1/io.github.jordond.kit.lint.gradle.plugin-0.7.1.pom → 0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/{0.7.1/io.github.jordond.kit.release.gradle.plugin-0.7.1.pom → 0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/{0.7.1/io.github.jordond.kit.settings.gradle.plugin-0.7.1.pom → 0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/package.json +15 -6
- package/templates/add/maestro/README.md +142 -0
- package/templates/add/maestro/config.yaml +4 -0
- package/templates/add/maestro/flows/smoke.yaml +20 -0
- package/templates/add/maestro/subflows/settle.yaml +23 -0
- package/dist/_preview-8pctvjkj.js +0 -186
- package/dist/_verb-b1rwwq8f.js +0 -173
- package/dist/android-rxm5012p.js +0 -60
- package/dist/apply-37atsazn.js +0 -118
- package/dist/backup-mmf68rsk.js +0 -67
- package/dist/bin-q60acre8.js +0 -15
- package/dist/boot-z0xvjet2.js +0 -54
- package/dist/build-2neqt771.js +0 -46
- package/dist/build-7418nfdd.js +0 -21
- package/dist/build-c0y6pjgv.js +0 -53
- package/dist/builtins-p4pf9hbc.js +0 -10
- package/dist/bump-4rmt4q57.js +0 -202
- package/dist/certs-j56f2zv1.js +0 -76
- package/dist/changelog-70znsn6a.js +0 -130
- package/dist/changelog-9c2f7zcy.js +0 -120
- package/dist/check-qzf9ks2k.js +0 -38
- package/dist/check-yk8mzca8.js +0 -72
- package/dist/clean-8n2j982t.js +0 -93
- package/dist/clean-k40p14af.js +0 -237
- package/dist/cleanup-hrcvxmh2.js +0 -18
- package/dist/clear-xwhv7bxy.js +0 -43
- package/dist/cli/builtins.d.ts +0 -13
- package/dist/cli/command.d.ts +0 -106
- package/dist/cli/discover.d.ts +0 -10
- package/dist/cli/main.d.ts +0 -1
- package/dist/cli/plugin.d.ts +0 -7
- package/dist/cli/usage.d.ts +0 -3
- package/dist/cli-0f3m8qma.js +0 -127
- package/dist/cli-19me2qqg.js +0 -1056
- package/dist/cli-28nya88s.js +0 -73
- package/dist/cli-2ja6z124.js +0 -127
- package/dist/cli-2nw36t7w.js +0 -135
- package/dist/cli-3nqkyv98.js +0 -517
- package/dist/cli-4kqc5ywj.js +0 -123
- package/dist/cli-4vsj6a7w.js +0 -109
- package/dist/cli-507f5c8j.js +0 -97
- package/dist/cli-540nme4e.js +0 -46
- package/dist/cli-5d61x8vg.js +0 -675
- package/dist/cli-5wasc5mr.js +0 -76
- package/dist/cli-5ws4pqz1.js +0 -61
- package/dist/cli-78x6rdyd.js +0 -202
- package/dist/cli-7wvrehng.js +0 -23
- package/dist/cli-7wxg8m4q.js +0 -123
- package/dist/cli-83zaa5dz.js +0 -67
- package/dist/cli-8qgbqa52.js +0 -2043
- package/dist/cli-8qgqecpv.js +0 -35
- package/dist/cli-a0ghfqeb.js +0 -132
- package/dist/cli-b4qnnrsp.js +0 -35
- package/dist/cli-d6vjw06z.js +0 -223
- package/dist/cli-dbww3ss1.js +0 -479
- package/dist/cli-e3jdg5nx.js +0 -234
- package/dist/cli-ey6trdpc.js +0 -11
- package/dist/cli-f0epa954.js +0 -462
- package/dist/cli-f7hwhng0.js +0 -776
- package/dist/cli-fqxtcj42.js +0 -75
- package/dist/cli-g519ev8e.js +0 -89
- package/dist/cli-jkp4kvsr.js +0 -124
- package/dist/cli-k3q2s02f.js +0 -54
- package/dist/cli-m2zc03pj.js +0 -106
- package/dist/cli-p7bb5zr2.js +0 -14
- package/dist/cli-p98ch7s2.js +0 -167
- package/dist/cli-pd4aspw0.js +0 -208
- package/dist/cli-pxa69atq.js +0 -98
- package/dist/cli-qq1ktr8q.js +0 -234
- package/dist/cli-qsc39jca.js +0 -275
- package/dist/cli-re3ntm60.js +0 -48
- package/dist/cli-s4xqzg86.js +0 -41
- package/dist/cli-sjmx8cqb.js +0 -85
- package/dist/cli-vqw9ek9v.js +0 -474
- package/dist/cli-w7m2hct3.js +0 -326
- package/dist/cli-wrzdcgnt.js +0 -82
- package/dist/cli-wvzmjk4c.js +0 -196
- package/dist/cli-x7ja9ygh.js +0 -77
- package/dist/cli-xs9ge3t2.js +0 -64
- package/dist/cli-xtq08c75.js +0 -394
- package/dist/cli-y0yebvmg.js +0 -37
- package/dist/cli-y3mjprpv.js +0 -31
- package/dist/cli-ye4a1asw.js +0 -267
- package/dist/cli-z4gcjd7a.js +0 -54
- package/dist/cli-zfcp9hzk.js +0 -282
- package/dist/cli-zn8nsg3w.js +0 -157
- package/dist/cloudflare-vm474s23.js +0 -51
- package/dist/command-jwjvb9pb.js +0 -21
- package/dist/command-r3jw2m41.js +0 -269
- package/dist/command-wqrhr0w2.js +0 -1108
- package/dist/commands/_affected.d.ts +0 -11
- package/dist/commands/_preview.d.ts +0 -12
- package/dist/commands/_verb.d.ts +0 -15
- package/dist/commands/add/module.d.ts +0 -25
- package/dist/commands/add/target.d.ts +0 -17
- package/dist/commands/app/build.d.ts +0 -11
- package/dist/commands/app/clear.d.ts +0 -7
- package/dist/commands/app/install.d.ts +0 -15
- package/dist/commands/app/run.d.ts +0 -15
- package/dist/commands/app/uninstall.d.ts +0 -7
- package/dist/commands/build.d.ts +0 -19
- package/dist/commands/changelog.d.ts +0 -30
- package/dist/commands/check.d.ts +0 -16
- package/dist/commands/clean.d.ts +0 -7
- package/dist/commands/completion.d.ts +0 -15
- package/dist/commands/config.d.ts +0 -2
- package/dist/commands/db/backup.d.ts +0 -16
- package/dist/commands/db/create.d.ts +0 -7
- package/dist/commands/db/exec.d.ts +0 -16
- package/dist/commands/db/list.d.ts +0 -11
- package/dist/commands/db/migrate.d.ts +0 -11
- package/dist/commands/db/reset.d.ts +0 -11
- package/dist/commands/db/restore.d.ts +0 -11
- package/dist/commands/db/seed.d.ts +0 -11
- package/dist/commands/deploy.d.ts +0 -26
- package/dist/commands/deps.d.ts +0 -72
- package/dist/commands/dev.d.ts +0 -8
- package/dist/commands/device/boot.d.ts +0 -7
- package/dist/commands/device/list.d.ts +0 -7
- package/dist/commands/device/statusbar.d.ts +0 -11
- package/dist/commands/doctor.d.ts +0 -20
- package/dist/commands/env/check.d.ts +0 -7
- package/dist/commands/env/init.d.ts +0 -2
- package/dist/commands/env/push.d.ts +0 -20
- package/dist/commands/env/rotate.d.ts +0 -7
- package/dist/commands/env/sync.d.ts +0 -2
- package/dist/commands/fastlane.d.ts +0 -2
- package/dist/commands/fixture/dump.d.ts +0 -7
- package/dist/commands/fixture/load.d.ts +0 -7
- package/dist/commands/format.d.ts +0 -19
- package/dist/commands/gradle.d.ts +0 -2
- package/dist/commands/init.d.ts +0 -99
- package/dist/commands/kotlin.d.ts +0 -2
- package/dist/commands/lint.d.ts +0 -20
- package/dist/commands/logs.d.ts +0 -8
- package/dist/commands/maestro.d.ts +0 -2
- package/dist/commands/open.d.ts +0 -13
- package/dist/commands/qa.d.ts +0 -31
- package/dist/commands/release/android.d.ts +0 -30
- package/dist/commands/release/certs.d.ts +0 -7
- package/dist/commands/release/ios.d.ts +0 -22
- package/dist/commands/release/metadata/pull.d.ts +0 -11
- package/dist/commands/release/metadata/push.d.ts +0 -11
- package/dist/commands/release/promote.d.ts +0 -35
- package/dist/commands/release/rollback.d.ts +0 -7
- package/dist/commands/release/rollout.d.ts +0 -23
- package/dist/commands/release/service.d.ts +0 -6
- package/dist/commands/release/status.d.ts +0 -2
- package/dist/commands/shots/export.d.ts +0 -29
- package/dist/commands/shots.d.ts +0 -31
- package/dist/commands/test.d.ts +0 -11
- package/dist/commands/typecheck.d.ts +0 -11
- package/dist/commands/upgrade.d.ts +0 -9
- package/dist/commands/version/bump.d.ts +0 -17
- package/dist/commands/version/show.d.ts +0 -2
- package/dist/commands/wrangler.d.ts +0 -2
- package/dist/commands/xcode.d.ts +0 -10
- package/dist/completion-db2be2ww.js +0 -38
- package/dist/completion-g8bjf46s.js +0 -36
- package/dist/concurrent-vvs84hhn.js +0 -96
- package/dist/config/load.d.ts +0 -28
- package/dist/config/schema.d.ts +0 -236
- package/dist/config-45ts3ey1.js +0 -31
- package/dist/config-ra2ybdkx.js +0 -22
- package/dist/create-232vc6b4.js +0 -38
- package/dist/creds-44ajrfzh.js +0 -34
- package/dist/d1-local-jheysy22.js +0 -62
- package/dist/deploy-sbdbk7xz.js +0 -18
- package/dist/deps-q404mzpf.js +0 -334
- package/dist/dev-hq0acmq1.js +0 -114
- package/dist/discover-gz594nzn.js +0 -14
- package/dist/doctor-xev4sqdt.js +0 -153
- package/dist/dotenv-bsk2m68j.js +0 -15
- package/dist/dump-bvg8ekkx.js +0 -60
- package/dist/entries-2yh20vd4.js +0 -311
- package/dist/errors-1fjbr7ee.js +0 -10
- package/dist/exec-tr777f9f.js +0 -53
- package/dist/export-fqr13qd7.js +0 -65
- package/dist/fastlane-5r62mn8v.js +0 -26
- package/dist/fastlane-85d4k568.js +0 -38
- package/dist/fixes-mqh7f9ds.js +0 -27
- package/dist/format-hrad04cj.js +0 -43
- package/dist/git-e4ys8tdc.js +0 -36
- package/dist/github-rxf67b21.js +0 -95
- package/dist/gradle-ac59hga1.js +0 -39
- package/dist/index-9mmb130f.js +0 -51
- package/dist/index-af01qr87.js +0 -27
- package/dist/index-cx34x4np.js +0 -874
- package/dist/index-erv82p4z.js +0 -1528
- package/dist/index-jqfz6hfy.js +0 -2659
- package/dist/index-mm4ht8yh.js +0 -9
- package/dist/index-s3ehw02w.js +0 -1610
- package/dist/init-bs57n1k0.js +0 -464
- package/dist/init-dyd1b74n.js +0 -80
- package/dist/init-en85gy2h.js +0 -78
- package/dist/install-7sm85xmk.js +0 -50
- package/dist/install-dhw82bzn.js +0 -35
- package/dist/ios-ftz9d17d.js +0 -50
- package/dist/kitref-p727zpk7.js +0 -24
- package/dist/kotlin-8ytjqp7e.js +0 -31
- package/dist/lib/add/apply.d.ts +0 -25
- package/dist/lib/add/edits.d.ts +0 -57
- package/dist/lib/add/plan.d.ts +0 -98
- package/dist/lib/add/settings.d.ts +0 -20
- package/dist/lib/app/build.d.ts +0 -35
- package/dist/lib/app/config.d.ts +0 -21
- package/dist/lib/app/install.d.ts +0 -53
- package/dist/lib/changelog.d.ts +0 -51
- package/dist/lib/chrome.d.ts +0 -19
- package/dist/lib/clean.d.ts +0 -85
- package/dist/lib/cleanup.d.ts +0 -21
- package/dist/lib/cloudflare.d.ts +0 -121
- package/dist/lib/completion.d.ts +0 -33
- package/dist/lib/concurrent.d.ts +0 -21
- package/dist/lib/d1-local.d.ts +0 -29
- package/dist/lib/devices/emulator-args.d.ts +0 -16
- package/dist/lib/devices/index.d.ts +0 -101
- package/dist/lib/devices/pick.d.ts +0 -52
- package/dist/lib/devices/statusbar.d.ts +0 -4
- package/dist/lib/doctor/checks.d.ts +0 -134
- package/dist/lib/doctor/entries.d.ts +0 -34
- package/dist/lib/doctor/fixes.d.ts +0 -64
- package/dist/lib/doctor/repair.d.ts +0 -18
- package/dist/lib/dotenv.d.ts +0 -52
- package/dist/lib/env/github.d.ts +0 -32
- package/dist/lib/env/init.d.ts +0 -22
- package/dist/lib/env/load.d.ts +0 -12
- package/dist/lib/env/push-run.d.ts +0 -62
- package/dist/lib/env/push.d.ts +0 -54
- package/dist/lib/env/render.d.ts +0 -53
- package/dist/lib/env/rotate.d.ts +0 -24
- package/dist/lib/env/schema.d.ts +0 -69
- package/dist/lib/errors.d.ts +0 -14
- package/dist/lib/fastlane.d.ts +0 -39
- package/dist/lib/fixtures/android.d.ts +0 -33
- package/dist/lib/fixtures/config.d.ts +0 -73
- package/dist/lib/fixtures/index.d.ts +0 -29
- package/dist/lib/fixtures/ios.d.ts +0 -13
- package/dist/lib/fixtures/stage.d.ts +0 -37
- package/dist/lib/git.d.ts +0 -78
- package/dist/lib/image/png.d.ts +0 -39
- package/dist/lib/kitref.d.ts +0 -35
- package/dist/lib/log.d.ts +0 -17
- package/dist/lib/maestro/args.d.ts +0 -23
- package/dist/lib/maestro/bin.d.ts +0 -10
- package/dist/lib/maestro/command.d.ts +0 -16
- package/dist/lib/maestro/lint.d.ts +0 -14
- package/dist/lib/maestro/run.d.ts +0 -79
- package/dist/lib/maestro/suites.d.ts +0 -24
- package/dist/lib/pm.d.ts +0 -13
- package/dist/lib/proc.d.ts +0 -83
- package/dist/lib/prompt.d.ts +0 -32
- package/dist/lib/release/creds.d.ts +0 -50
- package/dist/lib/release/listing-images.d.ts +0 -86
- package/dist/lib/release/metadata.d.ts +0 -81
- package/dist/lib/release/mobile.d.ts +0 -64
- package/dist/lib/release/notes.d.ts +0 -15
- package/dist/lib/release/preflight.d.ts +0 -30
- package/dist/lib/release/promote.d.ts +0 -58
- package/dist/lib/release/rollout.d.ts +0 -33
- package/dist/lib/release/status.d.ts +0 -52
- package/dist/lib/release/version.d.ts +0 -53
- package/dist/lib/scaffold.d.ts +0 -104
- package/dist/lib/secrets.d.ts +0 -32
- package/dist/lib/steps.d.ts +0 -48
- package/dist/lib/storeshots/command.d.ts +0 -3
- package/dist/lib/storeshots/fonts.d.ts +0 -14
- package/dist/lib/storeshots/page/background.d.ts +0 -6
- package/dist/lib/storeshots/page/device-frames.d.ts +0 -16
- package/dist/lib/storeshots/page/main.d.ts +0 -1
- package/dist/lib/storeshots/page/renderer.d.ts +0 -17
- package/dist/lib/storeshots/page-bundle.d.ts +0 -7
- package/dist/lib/storeshots/plan.d.ts +0 -25
- package/dist/lib/storeshots/project.d.ts +0 -169
- package/dist/lib/storeshots/render.d.ts +0 -20
- package/dist/lib/storeshots/server.d.ts +0 -29
- package/dist/lib/storeshots/sizes.d.ts +0 -121
- package/dist/lib/storeshots/types.d.ts +0 -397
- package/dist/lib/storeshots/write.d.ts +0 -11
- package/dist/lib/targets.d.ts +0 -69
- package/dist/lib/toml.d.ts +0 -15
- package/dist/lib/toolchain.d.ts +0 -59
- package/dist/lib/worker.d.ts +0 -128
- package/dist/lint-xzb2jaxv.js +0 -43
- package/dist/list-3qms77kb.js +0 -61
- package/dist/list-c2805zb7.js +0 -34
- package/dist/load-1hnv925a.js +0 -27
- package/dist/load-jy3j26eg.js +0 -51
- package/dist/load-nvf2hj1m.js +0 -170
- package/dist/log-g1ebh60s.js +0 -15
- package/dist/logs-jvfk9fm9.js +0 -62
- package/dist/maestro-6tbytfs6.js +0 -30
- package/dist/main-s7a0h69g.js +0 -1747
- package/dist/metadata-hpvy9bcy.js +0 -44
- package/dist/migrate-t2pqt227.js +0 -38
- package/dist/mobile-jfhpfm26.js +0 -40
- package/dist/module-kg87yk0v.js +0 -119
- package/dist/notes-hscncx9v.js +0 -21
- package/dist/open-hdvts4mk.js +0 -73
- package/dist/pick-a90zx6sr.js +0 -26
- package/dist/picocolors-0dxagz5d.js +0 -6
- package/dist/plan-av9jwvvk.js +0 -651
- package/dist/pm-ay4nmeps.js +0 -16
- package/dist/proc-2km5mhwc.js +0 -37
- package/dist/promote-2f9jz0fb.js +0 -290
- package/dist/promote-8z6j6x1t.js +0 -63
- package/dist/prompt-3wwegvqc.js +0 -15
- package/dist/pull-rza3bwrc.js +0 -39
- package/dist/push-29fdysqa.js +0 -44
- package/dist/push-5k6rqfcs.js +0 -63
- package/dist/push-run-znkn6gxf.js +0 -148
- package/dist/qa-9xm0sj2w.js +0 -40
- package/dist/render-hkvej41k.js +0 -24
- package/dist/repair-9j76xj3d.js +0 -104
- package/dist/reset-wkgagcgz.js +0 -110
- package/dist/restore-b0msh1kh.js +0 -122
- package/dist/rollback-3zfvnwt4.js +0 -134
- package/dist/rollout-9kvwswvw.js +0 -188
- package/dist/rollout-b2xm5r5r.js +0 -56
- package/dist/rotate-b52s310n.js +0 -168
- package/dist/rotate-ba6anxzn.js +0 -80
- package/dist/run-jzqzb203.js +0 -56
- package/dist/scaffold-5mzc135g.js +0 -37
- package/dist/secrets-ed4qtmyb.js +0 -24
- package/dist/seed-awcycfbj.js +0 -37
- package/dist/service-edjckedw.js +0 -111
- package/dist/shots-c9w1qq2h.js +0 -46
- package/dist/show-4kc2sevf.js +0 -50
- package/dist/sizes-3kpjxm9h.js +0 -51
- package/dist/status-jtxkbc62.js +0 -41
- package/dist/status-w6wr9403.js +0 -29
- package/dist/statusbar-efr97b9e.js +0 -55
- package/dist/statusbar-m5h8rx00.js +0 -15
- package/dist/steps-1ptk2gnz.js +0 -22
- package/dist/sync-mza36nse.js +0 -53
- package/dist/target-zgg601fm.js +0 -78
- package/dist/targets-gprq0d5c.js +0 -32
- package/dist/test-gnmatth4.js +0 -31
- package/dist/toml-3fxsdkhr.js +0 -14
- package/dist/toolchain-wd7hh812.js +0 -41
- package/dist/typecheck-peqg5a5c.js +0 -28
- package/dist/uninstall-0p4qcvpn.js +0 -43
- package/dist/upgrade-56bzvms8.js +0 -127
- package/dist/version-mnds3q7r.js +0 -39
- package/dist/worker-thvksjg2.js +0 -59
- package/dist/wrangler-f2rf697q.js +0 -46
- package/dist/xcode-qqb04c3a.js +0 -75
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.1/io.github.jordond.kit.android.application.gradle.plugin-0.7.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.1/io.github.jordond.kit.android.application.gradle.plugin-0.7.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.1/io.github.jordond.kit.android.application.gradle.plugin-0.7.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.1/io.github.jordond.kit.android.application.gradle.plugin-0.7.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.1/io.github.jordond.kit.compose.gradle.plugin-0.7.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.1/io.github.jordond.kit.compose.gradle.plugin-0.7.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.1/io.github.jordond.kit.compose.gradle.plugin-0.7.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.1/io.github.jordond.kit.compose.gradle.plugin-0.7.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.1/kit-plugins-0.7.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.1/kit-settings-0.7.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.1/io.github.jordond.kit.lint.gradle.plugin-0.7.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.1/io.github.jordond.kit.lint.gradle.plugin-0.7.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.1/io.github.jordond.kit.lint.gradle.plugin-0.7.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.1/io.github.jordond.kit.lint.gradle.plugin-0.7.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.1/io.github.jordond.kit.release.gradle.plugin-0.7.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.1/io.github.jordond.kit.release.gradle.plugin-0.7.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.1/io.github.jordond.kit.release.gradle.plugin-0.7.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.1/io.github.jordond.kit.release.gradle.plugin-0.7.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.1/io.github.jordond.kit.settings.gradle.plugin-0.7.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.1/io.github.jordond.kit.settings.gradle.plugin-0.7.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.1/io.github.jordond.kit.settings.gradle.plugin-0.7.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.1/io.github.jordond.kit.settings.gradle.plugin-0.7.1.pom.sha512 +0 -1
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.jar → 0.8.0/kit-plugins-0.8.0.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.jar.md5 → 0.8.0/kit-plugins-0.8.0.jar.md5} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.jar.sha1 → 0.8.0/kit-plugins-0.8.0.jar.sha1} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.jar.sha256 → 0.8.0/kit-plugins-0.8.0.jar.sha256} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.1/kit-plugins-0.7.1.jar.sha512 → 0.8.0/kit-plugins-0.8.0.jar.sha512} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.jar → 0.8.0/kit-settings-0.8.0.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.jar.md5 → 0.8.0/kit-settings-0.8.0.jar.md5} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.jar.sha1 → 0.8.0/kit-settings-0.8.0.jar.sha1} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.jar.sha256 → 0.8.0/kit-settings-0.8.0.jar.sha256} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.1/kit-settings-0.7.1.jar.sha512 → 0.8.0/kit-settings-0.8.0.jar.sha512} +0 -0
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { n as KitError, t as ExitCode } from "./errors-BO9WKUaF.js";
|
|
2
|
+
import { i as pmExec, t as detectPackageManager } from "./pm-pcSPQYCu.js";
|
|
3
|
+
import { n as addChildEnv } from "./proc-WkAakwUC.js";
|
|
4
|
+
import { n as pipeSecret } from "./secrets-BIStexgu.js";
|
|
5
|
+
import { join, relative, resolve } from "node:path";
|
|
6
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
7
|
+
// src/lib/cloudflare.ts
|
|
8
|
+
/**
|
|
9
|
+
* Cloudflare helpers (ported from brewd `lib/cloudflare-account.ts`, `lib/d1.ts`, `commands/db.ts`).
|
|
10
|
+
*
|
|
11
|
+
* Account pinning: wrangler reads the ambient CLOUDFLARE_ACCOUNT_ID for d1, r2 and secret, and only
|
|
12
|
+
* falls back to wrangler.jsonc for deploy and dev. kit's `.env` loading does not override a variable
|
|
13
|
+
* the shell already exports, so an id left over from another project would silently retarget those
|
|
14
|
+
* commands at the wrong account (a d1 execute against someone else's database). The pin rides on
|
|
15
|
+
* every spawn via `addChildEnv`: Bun.spawn snapshots the env kit started with, so mutating
|
|
16
|
+
* `process.env` would reach no child.
|
|
17
|
+
*/
|
|
18
|
+
const WRANGLER_FILES = [
|
|
19
|
+
"wrangler.jsonc",
|
|
20
|
+
"wrangler.json",
|
|
21
|
+
"wrangler.toml"
|
|
22
|
+
];
|
|
23
|
+
const ACCOUNT_ID = /^[0-9a-f]{32}$/;
|
|
24
|
+
const TOML_ACCOUNT_ID = /^\s*account_id\s*=\s*["']([0-9a-f]{32})["']/m;
|
|
25
|
+
/** JSONC → JSON text: drops `//` and block comments outside strings, then trailing commas. */
|
|
26
|
+
function stripJsonc(text) {
|
|
27
|
+
let out = "";
|
|
28
|
+
let i = 0;
|
|
29
|
+
while (i < text.length) {
|
|
30
|
+
const c = text[i];
|
|
31
|
+
if (c === "\"") {
|
|
32
|
+
let j = i + 1;
|
|
33
|
+
while (j < text.length && text[j] !== "\"") j += text[j] === "\\" ? 2 : 1;
|
|
34
|
+
out += text.slice(i, j + 1);
|
|
35
|
+
i = j + 1;
|
|
36
|
+
} else if (c === "/" && text[i + 1] === "/") while (i < text.length && text[i] !== "\n") i++;
|
|
37
|
+
else if (c === "/" && text[i + 1] === "*") {
|
|
38
|
+
const end = text.indexOf("*/", i + 2);
|
|
39
|
+
i = end === -1 ? text.length : end + 2;
|
|
40
|
+
} else {
|
|
41
|
+
out += c;
|
|
42
|
+
i++;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return out.replace(/("(?:[^"\\]|\\.)*")|,(\s*[}\]])/g, (_m, str, close) => str ?? close);
|
|
46
|
+
}
|
|
47
|
+
function jsonAccountId(text) {
|
|
48
|
+
try {
|
|
49
|
+
const parsed = JSON.parse(stripJsonc(text));
|
|
50
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return void 0;
|
|
51
|
+
const id = parsed.account_id;
|
|
52
|
+
return typeof id === "string" && ACCOUNT_ID.test(id) ? id : void 0;
|
|
53
|
+
} catch {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function tomlAccountId(text) {
|
|
58
|
+
const header = /^\s*\[/m.exec(text);
|
|
59
|
+
const top = header ? text.slice(0, header.index) : text;
|
|
60
|
+
return TOML_ACCOUNT_ID.exec(top)?.[1];
|
|
61
|
+
}
|
|
62
|
+
/** Top-level `account_id` from the wrangler config in `dir`, or undefined when there is none. */
|
|
63
|
+
function readAccountId(dir) {
|
|
64
|
+
for (const name of WRANGLER_FILES) {
|
|
65
|
+
const file = join(dir, name);
|
|
66
|
+
if (!existsSync(file)) continue;
|
|
67
|
+
const text = readFileSync(file, "utf8");
|
|
68
|
+
return {
|
|
69
|
+
id: name.endsWith(".toml") ? tomlAccountId(text) : jsonAccountId(text),
|
|
70
|
+
file
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
return {};
|
|
74
|
+
}
|
|
75
|
+
/** The target whose wrangler config holds the account: any `cloudflare.d1` entry's, else the first worker. */
|
|
76
|
+
function accountTarget(config) {
|
|
77
|
+
const d1 = Object.values(config.cloudflare?.d1 ?? {})[0];
|
|
78
|
+
if (d1) return d1.target;
|
|
79
|
+
return Object.entries(config.targets).find(([, t]) => t.kind === "worker")?.[0];
|
|
80
|
+
}
|
|
81
|
+
/** `cloudflare.accountId` resolved: a literal id, or read from wrangler config. Undefined when unset. */
|
|
82
|
+
function resolveAccountId(root, config) {
|
|
83
|
+
const configured = config.cloudflare?.accountId;
|
|
84
|
+
if (!configured) return void 0;
|
|
85
|
+
if (configured !== "from-wrangler") return configured;
|
|
86
|
+
const name = accountTarget(config);
|
|
87
|
+
const target = name ? config.targets[name] : void 0;
|
|
88
|
+
if (!name || !target) throw new KitError("cloudflare.accountId is 'from-wrangler' but there is no worker target to read it from", "Add a cloudflare.d1 entry or a worker target, or set the id literally", ExitCode.config);
|
|
89
|
+
const { id, file } = readAccountId(resolve(root, target.dir));
|
|
90
|
+
if (!id) {
|
|
91
|
+
const where = file ? relative(root, file) : `${target.dir}/wrangler.jsonc`;
|
|
92
|
+
throw new KitError(`No account_id in ${where}`, `Add "account_id" to ${where}, or set cloudflare.accountId in kit.config.ts`, ExitCode.config);
|
|
93
|
+
}
|
|
94
|
+
return id;
|
|
95
|
+
}
|
|
96
|
+
/** Resolve the account and pin it for every later child. Commands that run wrangler call this first. */
|
|
97
|
+
function pinCloudflareAccount(root, config) {
|
|
98
|
+
const id = resolveAccountId(root, config);
|
|
99
|
+
if (id) addChildEnv({ CLOUDFLARE_ACCOUNT_ID: id });
|
|
100
|
+
return id;
|
|
101
|
+
}
|
|
102
|
+
/** `wrangler …` from a target's dir, through its package manager (`bun x wrangler`). */
|
|
103
|
+
function wrangler(root, config, target, ...args) {
|
|
104
|
+
const t = config.targets[target];
|
|
105
|
+
if (!t) throw new KitError(`Unknown target "${target}"`, `Targets: ${Object.keys(config.targets).join(", ")}`, ExitCode.config);
|
|
106
|
+
const cwd = resolve(root, t.dir);
|
|
107
|
+
return {
|
|
108
|
+
cmd: pmExec(detectPackageManager(cwd, root), "wrangler", ...args),
|
|
109
|
+
cwd
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
/** `wrangler secret put <key>` with the value on stdin. */
|
|
113
|
+
function wranglerSecretPut(w, value) {
|
|
114
|
+
return pipeSecret(w.cmd, `${value}\n`, { cwd: w.cwd });
|
|
115
|
+
}
|
|
116
|
+
/** Names from `wrangler secret list --format json` (`[{ name, type }]`); unparseable output → []. */
|
|
117
|
+
function parseSecretNames(stdout) {
|
|
118
|
+
try {
|
|
119
|
+
const parsed = JSON.parse(stdout);
|
|
120
|
+
if (!Array.isArray(parsed)) return [];
|
|
121
|
+
const names = [];
|
|
122
|
+
for (const entry of parsed) if (typeof entry === "object" && entry !== null && "name" in entry) {
|
|
123
|
+
const { name } = entry;
|
|
124
|
+
if (typeof name === "string" && name.length > 0) names.push(name);
|
|
125
|
+
}
|
|
126
|
+
return names;
|
|
127
|
+
} catch {
|
|
128
|
+
return [];
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The database for `--db`: a `cloudflare.d1` key or database name. Without `--db` the only one, or
|
|
133
|
+
* the one marked `default: true`; with several and no default, a usage error listing them.
|
|
134
|
+
*/
|
|
135
|
+
function resolveD1(config, db) {
|
|
136
|
+
const all = Object.entries(config.cloudflare?.d1 ?? {}).map(([key, d]) => ({
|
|
137
|
+
key,
|
|
138
|
+
...d
|
|
139
|
+
}));
|
|
140
|
+
if (!all.length) throw new KitError("No D1 databases configured", "Add cloudflare.d1 in kit.config.ts, e.g. { db: { name: 'my-db', target: 'api' } }", ExitCode.config);
|
|
141
|
+
const names = all.map((d) => d.key === d.name ? d.key : `${d.key} (${d.name})`).join(", ");
|
|
142
|
+
if (db === void 0 || db === "") {
|
|
143
|
+
if (all.length === 1) return all[0];
|
|
144
|
+
const fallback = all.find((d) => d.default);
|
|
145
|
+
if (fallback) return fallback;
|
|
146
|
+
throw new KitError(`Several D1 databases; pick one with --db`, `Databases: ${names}`, ExitCode.usage);
|
|
147
|
+
}
|
|
148
|
+
const found = all.find((d) => d.key === db) ?? all.find((d) => d.name === db);
|
|
149
|
+
if (!found) throw new KitError(`Unknown D1 database "${db}"`, `Databases: ${names}`, ExitCode.usage);
|
|
150
|
+
return found;
|
|
151
|
+
}
|
|
152
|
+
const locality = (remote) => remote ? "--remote" : "--local";
|
|
153
|
+
/** `wrangler d1 …` args for an action. Wrangler finds `migrations_dir` from its d1_databases entry. */
|
|
154
|
+
function d1Args(db, action) {
|
|
155
|
+
switch (action.kind) {
|
|
156
|
+
case "migrate": return [
|
|
157
|
+
"d1",
|
|
158
|
+
"migrations",
|
|
159
|
+
"apply",
|
|
160
|
+
db.name,
|
|
161
|
+
locality(action.remote)
|
|
162
|
+
];
|
|
163
|
+
case "list": return [
|
|
164
|
+
"d1",
|
|
165
|
+
"migrations",
|
|
166
|
+
"list",
|
|
167
|
+
db.name,
|
|
168
|
+
locality(action.remote)
|
|
169
|
+
];
|
|
170
|
+
case "create": return [
|
|
171
|
+
"d1",
|
|
172
|
+
"migrations",
|
|
173
|
+
"create",
|
|
174
|
+
db.name,
|
|
175
|
+
action.migration
|
|
176
|
+
];
|
|
177
|
+
case "exec": {
|
|
178
|
+
const source = action.file ? ["--file", action.file] : ["--command", action.sql ?? ""];
|
|
179
|
+
return [
|
|
180
|
+
"d1",
|
|
181
|
+
"execute",
|
|
182
|
+
db.name,
|
|
183
|
+
locality(action.remote),
|
|
184
|
+
...source,
|
|
185
|
+
...action.json ? ["--json"] : []
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
case "export": return [
|
|
189
|
+
"d1",
|
|
190
|
+
"export",
|
|
191
|
+
db.name,
|
|
192
|
+
locality(action.remote),
|
|
193
|
+
"--output",
|
|
194
|
+
action.output
|
|
195
|
+
];
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/** Flags every `kit db` command takes. */
|
|
199
|
+
const dbArgs = { db: {
|
|
200
|
+
type: "string",
|
|
201
|
+
description: "cloudflare.d1 key or database name (default: the only one, or the default: true one)"
|
|
202
|
+
} };
|
|
203
|
+
const remoteArg = { remote: {
|
|
204
|
+
type: "boolean",
|
|
205
|
+
description: "Deployed D1 (default: local)"
|
|
206
|
+
} };
|
|
207
|
+
/** `backups/<db>-<UTC timestamp>.sql` under the repo root: where `kit db backup` writes by default. */
|
|
208
|
+
function backupFile(root, db, now = /* @__PURE__ */ new Date()) {
|
|
209
|
+
const stamp = now.toISOString().replace(/\.\d+Z$/, "Z").replace(/[-:]/g, "");
|
|
210
|
+
return join(root, "backups", `${db.name}-${stamp}.sql`);
|
|
211
|
+
}
|
|
212
|
+
/** The database's `seed` file as an absolute path; exit 3 when none is configured or it is missing. */
|
|
213
|
+
function seedFile(root, db) {
|
|
214
|
+
if (!db.seed) throw new KitError(`No seed file for ${db.name}`, `Set cloudflare.d1.${db.key}.seed in kit.config.ts, e.g. 'apps/${db.target}/seed.sql'`, ExitCode.config);
|
|
215
|
+
const file = resolve(root, db.seed);
|
|
216
|
+
if (!existsSync(file)) throw new KitError(`Seed file ${db.seed} not found`, `cloudflare.d1.${db.key}.seed is relative to the repo root`, ExitCode.config);
|
|
217
|
+
return file;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Body of `kit db …`: resolve the database, pin the account, print the plan on --dry-run, confirm
|
|
221
|
+
* remote mutations, run wrangler from the database's target dir with inherited stdio (wrangler's own
|
|
222
|
+
* "apply N migrations?" prompt works). `--json` captures wrangler's output into one document, except
|
|
223
|
+
* `exec`, where wrangler's `--json` result is the document.
|
|
224
|
+
*
|
|
225
|
+
* `confirm` defaults to `mutates`: a backup writes a local file (so --dry-run skips it) but changes
|
|
226
|
+
* nothing remote. `json` adds fields to the document kit writes (`file` for a backup).
|
|
227
|
+
*/
|
|
228
|
+
async function runD1(ctx, action, opts) {
|
|
229
|
+
const { requireProject } = await import("./command-DEjZdYUF.js");
|
|
230
|
+
const { confirm } = await import("./prompt-BDNW2kJ2.js");
|
|
231
|
+
const { emitJson } = await import("./log-CEcT9mjr.js");
|
|
232
|
+
const { run, runQuiet, runToStderr } = await import("./proc-Bvvv4XbJ.js");
|
|
233
|
+
const { root, config } = requireProject(ctx);
|
|
234
|
+
const db = resolveD1(config, ctx.args.db);
|
|
235
|
+
const remote = "remote" in action && action.remote;
|
|
236
|
+
const passJson = action.kind === "exec" && ctx.flags.json;
|
|
237
|
+
const w = wrangler(root, config, db.target, ...d1Args(db, passJson ? {
|
|
238
|
+
...action,
|
|
239
|
+
json: true
|
|
240
|
+
} : action));
|
|
241
|
+
const shown = `${relative(root, w.cwd) || "."} $ ${w.cmd.join(" ")}`;
|
|
242
|
+
if (ctx.flags.dryRun && opts.mutates) {
|
|
243
|
+
if (ctx.flags.json) emitJson({
|
|
244
|
+
dryRun: true,
|
|
245
|
+
db: db.name,
|
|
246
|
+
remote,
|
|
247
|
+
...opts.json,
|
|
248
|
+
cmd: w.cmd,
|
|
249
|
+
cwd: relative(root, w.cwd)
|
|
250
|
+
});
|
|
251
|
+
else ctx.log.step(shown);
|
|
252
|
+
return "dry-run";
|
|
253
|
+
}
|
|
254
|
+
pinCloudflareAccount(root, config);
|
|
255
|
+
if ((opts.confirm ?? opts.mutates) && remote && !await confirm(ctx.flags, `Run against remote ${db.name}?`)) throw new KitError("Cancelled", void 0, ExitCode.interrupted);
|
|
256
|
+
if (!ctx.flags.json) ctx.log.dim(shown);
|
|
257
|
+
if (ctx.flags.json && !passJson) {
|
|
258
|
+
const { code, output } = await runQuiet(w.cmd, { cwd: w.cwd });
|
|
259
|
+
emitJson({
|
|
260
|
+
db: db.name,
|
|
261
|
+
remote,
|
|
262
|
+
...opts.json,
|
|
263
|
+
ok: code === 0,
|
|
264
|
+
output
|
|
265
|
+
});
|
|
266
|
+
if (code !== 0) process.exitCode = ExitCode.failed;
|
|
267
|
+
return code === 0 ? "ok" : "failed";
|
|
268
|
+
}
|
|
269
|
+
const code = await (action.kind === "export" ? runToStderr : run)(w.cmd, { cwd: w.cwd });
|
|
270
|
+
if (code !== 0) process.exitCode = ExitCode.failed;
|
|
271
|
+
return code === 0 ? "ok" : "failed";
|
|
272
|
+
}
|
|
273
|
+
/** Every table of a database, for the "is it empty" check before a remote restore. */
|
|
274
|
+
const TABLES_SQL = "SELECT name FROM sqlite_master WHERE type = 'table' ORDER BY name";
|
|
275
|
+
/**
|
|
276
|
+
* User tables from `d1 execute --json` output for `TABLES_SQL` (`[{ results: [{ name }] }]`), leaving
|
|
277
|
+
* out SQLite's and Cloudflare's own (`sqlite_*`, `_cf_*`). Undefined when the output is not that shape.
|
|
278
|
+
*/
|
|
279
|
+
function d1Tables(stdout) {
|
|
280
|
+
try {
|
|
281
|
+
const parsed = JSON.parse(stdout);
|
|
282
|
+
const first = Array.isArray(parsed) ? parsed[0] : parsed;
|
|
283
|
+
if (!first || typeof first !== "object" || !("results" in first)) return void 0;
|
|
284
|
+
const { results } = first;
|
|
285
|
+
if (!Array.isArray(results)) return void 0;
|
|
286
|
+
const names = [];
|
|
287
|
+
for (const row of results) {
|
|
288
|
+
const name = row && typeof row === "object" ? row.name : void 0;
|
|
289
|
+
if (typeof name !== "string") return void 0;
|
|
290
|
+
if (!name.startsWith("sqlite_") && !name.startsWith("_cf_")) names.push(name);
|
|
291
|
+
}
|
|
292
|
+
return names;
|
|
293
|
+
} catch {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
export { stripJsonc as _, d1Args as a, locality as c, readAccountId as d, remoteArg as f, seedFile as g, runD1 as h, backupFile as i, parseSecretNames as l, resolveD1 as m, WRANGLER_FILES as n, d1Tables as o, resolveAccountId as p, accountTarget as r, dbArgs as s, TABLES_SQL as t, pinCloudflareAccount as u, wrangler as v, wranglerSecretPut as y };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as TABLES_SQL, i as backupFile, a as d1Args, o as d1Tables, u as pinCloudflareAccount, d as readAccountId, p as resolveAccountId, m as resolveD1, h as runD1, g as seedFile, v as wrangler } from "./cloudflare-DANxWsOQ.js";
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { n as KitError, t as ExitCode } from "./errors-BO9WKUaF.js";
|
|
2
|
+
import { r as log } from "./log-jfLnWjfH.js";
|
|
3
|
+
// src/cli/command.ts
|
|
4
|
+
/** Flags every command accepts. */
|
|
5
|
+
const globalArgs = {
|
|
6
|
+
json: {
|
|
7
|
+
type: "boolean",
|
|
8
|
+
description: "Write one JSON document to stdout; no prompts or animation"
|
|
9
|
+
},
|
|
10
|
+
"dry-run": {
|
|
11
|
+
type: "boolean",
|
|
12
|
+
short: "n",
|
|
13
|
+
description: "Plan and run read-only steps; skip mutations"
|
|
14
|
+
},
|
|
15
|
+
yes: {
|
|
16
|
+
type: "boolean",
|
|
17
|
+
short: "y",
|
|
18
|
+
description: "Accept confirmations (never skips prod)"
|
|
19
|
+
},
|
|
20
|
+
verbose: {
|
|
21
|
+
type: "boolean",
|
|
22
|
+
short: "v",
|
|
23
|
+
description: "Stream all child output"
|
|
24
|
+
},
|
|
25
|
+
quiet: {
|
|
26
|
+
type: "boolean",
|
|
27
|
+
short: "q",
|
|
28
|
+
description: "Errors and summary only"
|
|
29
|
+
},
|
|
30
|
+
bail: {
|
|
31
|
+
type: "boolean",
|
|
32
|
+
description: "Stop at the first failure"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
/** Define a kit command. Heavy imports belong inside `run` so loading the file stays cheap. */
|
|
36
|
+
function defineCommand(command) {
|
|
37
|
+
return command;
|
|
38
|
+
}
|
|
39
|
+
/** Complete a context with `builtin`. */
|
|
40
|
+
function withBuiltin(base) {
|
|
41
|
+
return {
|
|
42
|
+
...base,
|
|
43
|
+
async builtin(path, options = {}) {
|
|
44
|
+
const want = (typeof path === "string" ? path.split(" ") : path).filter(Boolean);
|
|
45
|
+
const { builtins } = await import("./builtins-CPRE__kE.js");
|
|
46
|
+
const entry = builtins.find((b) => b.path.join(" ") === want.join(" "));
|
|
47
|
+
if (!entry) throw new KitError(`No built-in \`kit ${want.join(" ")}\``, "Run `kit --help` to list them");
|
|
48
|
+
await (await entry.load()).default.run(withBuiltin({
|
|
49
|
+
...base,
|
|
50
|
+
args: options.args ?? base.args,
|
|
51
|
+
positionals: options.positionals ?? base.positionals,
|
|
52
|
+
rest: options.rest ?? base.rest,
|
|
53
|
+
mute: options.mute ?? base.mute
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/** gunshi includes the subcommand tokens in positionals; drop them. */
|
|
59
|
+
function stripPath(positionals, path = []) {
|
|
60
|
+
let i = 0;
|
|
61
|
+
while (i < path.length && positionals[i] === path[i]) i++;
|
|
62
|
+
return positionals.slice(i);
|
|
63
|
+
}
|
|
64
|
+
/** Root and config, or exit 3 when kit runs outside a project. */
|
|
65
|
+
function requireProject(ctx) {
|
|
66
|
+
if (!ctx.root || !ctx.config) throw new KitError("No kit.config.ts found here or in any parent directory", "Run `kit init`", ExitCode.config);
|
|
67
|
+
return {
|
|
68
|
+
root: ctx.root,
|
|
69
|
+
config: ctx.config
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function computeFlags(values) {
|
|
73
|
+
const ci = process.env.CI === "true" || process.env.CI === "1";
|
|
74
|
+
const json = values.json === true;
|
|
75
|
+
return {
|
|
76
|
+
json,
|
|
77
|
+
dryRun: values["dry-run"] === true,
|
|
78
|
+
yes: values.yes === true,
|
|
79
|
+
verbose: values.verbose === true,
|
|
80
|
+
quiet: values.quiet === true,
|
|
81
|
+
bail: values.bail === true,
|
|
82
|
+
ci,
|
|
83
|
+
interactive: !json && !ci && !process.env.KIT_NO_INPUT && !!process.stdin.isTTY && !!process.stderr.isTTY
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/** Adapt a kit command to a gunshi command. */
|
|
87
|
+
function toGunshi(name, cmd, rt) {
|
|
88
|
+
return {
|
|
89
|
+
name,
|
|
90
|
+
description: cmd.description,
|
|
91
|
+
examples: cmd.examples,
|
|
92
|
+
args: cmd.passthrough ? {} : {
|
|
93
|
+
...globalArgs,
|
|
94
|
+
...cmd.args
|
|
95
|
+
},
|
|
96
|
+
group: cmd.group,
|
|
97
|
+
passthrough: cmd.passthrough,
|
|
98
|
+
run: async (ctx) => {
|
|
99
|
+
const missing = (cmd.requiresEnv ?? []).filter((k) => !process.env[k]);
|
|
100
|
+
if (missing.length) throw new KitError(`Missing env: ${missing.join(", ")}`, "Add them to .env or run `kit env init`", ExitCode.config);
|
|
101
|
+
await cmd.run(withBuiltin({
|
|
102
|
+
root: rt.root,
|
|
103
|
+
config: rt.config,
|
|
104
|
+
args: ctx.values,
|
|
105
|
+
positionals: stripPath(ctx.positionals, ctx.commandPath),
|
|
106
|
+
rest: ctx.rest,
|
|
107
|
+
flags: computeFlags(ctx.values),
|
|
108
|
+
log
|
|
109
|
+
}));
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export { toGunshi as a, requireProject as i, defineCommand as n, withBuiltin as o, globalArgs as r, computeFlags as t };
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { i as requireProject } from "./command-B8J0KTC5.js";
|
|
2
|
+
import { _ as platformOf, g as parseTarget, i as bootDevice, n as adb, p as listDevices, y as resolveDevice } from "./devices-Se92FvRm.js";
|
|
3
|
+
import { n as KitError, t as ExitCode } from "./errors-BO9WKUaF.js";
|
|
4
|
+
import { t as emitJson } from "./log-jfLnWjfH.js";
|
|
5
|
+
import { c as runApp } from "./install-CHWJxqqA.js";
|
|
6
|
+
import { n as iosStatusBarCommands, r as runStatusBarCommands, t as androidStatusBarCommands } from "./statusbar-C-5zclXZ.js";
|
|
7
|
+
import { n as loadFixture } from "./fixtures-kSnSse-E.js";
|
|
8
|
+
import { p as runToStderr } from "./proc-WkAakwUC.js";
|
|
9
|
+
import { n as maestroBin, r as maestroEnv, t as findMaestro } from "./bin-t8E-qlss.js";
|
|
10
|
+
import { n as requireMaestro, r as resolveSuite, t as outputDir } from "./suites-BHqxW32z.js";
|
|
11
|
+
import { extname, join, resolve } from "node:path";
|
|
12
|
+
import { copyFileSync, existsSync, mkdirSync, readdirSync } from "node:fs";
|
|
13
|
+
// src/lib/maestro/run.ts
|
|
14
|
+
/** Stands in for the device in a dry-run plan when none is running (a dry run boots nothing). */
|
|
15
|
+
const DEVICE_PLACEHOLDER = "<device>";
|
|
16
|
+
/**
|
|
17
|
+
* One `maestro test` argv. `--device` is always passed: without it Maestro blocks on a stdin picker.
|
|
18
|
+
* `--flatten-debug-output` is never passed: it conflicts with `--test-output-dir`.
|
|
19
|
+
*/
|
|
20
|
+
function flowCommand(bin, o) {
|
|
21
|
+
return [
|
|
22
|
+
bin,
|
|
23
|
+
"--device",
|
|
24
|
+
o.device,
|
|
25
|
+
"test",
|
|
26
|
+
o.dir,
|
|
27
|
+
"--include-tags",
|
|
28
|
+
o.tags.join(","),
|
|
29
|
+
"--test-output-dir",
|
|
30
|
+
o.outputDir,
|
|
31
|
+
...Object.entries(o.env ?? {}).flatMap(([key, value]) => ["-e", `${key}=${value}`]),
|
|
32
|
+
...o.junit === void 0 ? [] : [
|
|
33
|
+
"--format",
|
|
34
|
+
"JUNIT",
|
|
35
|
+
"--output",
|
|
36
|
+
o.junit
|
|
37
|
+
]
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
/** Report paths for `count` stages: `qa.xml`, then `qa-2.xml`, `qa-3.xml`, … */
|
|
41
|
+
function junitPaths(path, count) {
|
|
42
|
+
const ext = extname(path);
|
|
43
|
+
const stem = ext ? path.slice(0, -ext.length) : path;
|
|
44
|
+
return Array.from({ length: count }, (_, i) => i === 0 ? path : `${stem}-${i + 1}${ext || ".xml"}`);
|
|
45
|
+
}
|
|
46
|
+
/** The run dirs (`yyyy-MM-dd_HHmmss`) Maestro has written under `dir`; none when it does not exist yet. */
|
|
47
|
+
function listRunDirs(dir) {
|
|
48
|
+
if (!existsSync(dir)) return [];
|
|
49
|
+
return readdirSync(dir, { withFileTypes: true }).filter((e) => e.isDirectory()).map((e) => e.name).sort();
|
|
50
|
+
}
|
|
51
|
+
/** What a stage wrote: the dirs in `after` that `before` lacked. Not "the newest": a parallel run may be newer. */
|
|
52
|
+
const newRunDirs = (before, after) => after.filter((name) => !before.includes(name));
|
|
53
|
+
/** The `takeScreenshot` PNGs of each flow under the given run dirs, oldest run first. */
|
|
54
|
+
function collectScreenshots(dir, runs) {
|
|
55
|
+
const shots = [];
|
|
56
|
+
for (const run of runs) {
|
|
57
|
+
const flows = readdirSync(join(dir, run), { withFileTypes: true }).filter((e) => e.isDirectory()).sort((a, b) => a.name.localeCompare(b.name));
|
|
58
|
+
for (const flow of flows) {
|
|
59
|
+
const shotDir = join(dir, run, flow.name, "takeScreenshot");
|
|
60
|
+
if (!existsSync(shotDir)) continue;
|
|
61
|
+
for (const name of readdirSync(shotDir).sort()) if (name.toLowerCase().endsWith(".png")) shots.push({
|
|
62
|
+
name,
|
|
63
|
+
path: join(shotDir, name)
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return shots;
|
|
68
|
+
}
|
|
69
|
+
/** Copy shots into `dest`: a shot replaces the file of the same name and leaves the rest. Returns the names. */
|
|
70
|
+
function copyScreenshots(shots, dest) {
|
|
71
|
+
mkdirSync(dest, { recursive: true });
|
|
72
|
+
for (const shot of shots) copyFileSync(shot.path, join(dest, shot.name));
|
|
73
|
+
return [...new Set(shots.map((s) => s.name))];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The device every step lands on: `--device`, a running one, else the one `maestro.devices.<target>`
|
|
77
|
+
* names (booted), else kit's pick. A dry run boots nothing and shows a placeholder.
|
|
78
|
+
*/
|
|
79
|
+
async function suiteDevice(env, target, flag) {
|
|
80
|
+
if (flag) return flag;
|
|
81
|
+
const named = env.config.maestro?.devices?.[target];
|
|
82
|
+
const running = (await listDevices(env, target)).length > 0;
|
|
83
|
+
if (!running && env.flags.dryRun) return DEVICE_PLACEHOLDER;
|
|
84
|
+
if (!running && named) return await bootDevice(env, target, named);
|
|
85
|
+
return await resolveDevice(env, target);
|
|
86
|
+
}
|
|
87
|
+
/** Build, install, pin the status bar, load the fixture, then run each stage; stops at the first failure. */
|
|
88
|
+
async function runSuite(env, target, o) {
|
|
89
|
+
const m = requireMaestro(env.config);
|
|
90
|
+
const dry = env.flags.dryRun;
|
|
91
|
+
const { suite } = o;
|
|
92
|
+
const bin = dry ? findMaestro() ?? "maestro" : maestroBin(env.config);
|
|
93
|
+
const fixture = o.fixture === false ? void 0 : o.fixture ?? suite.fixture;
|
|
94
|
+
const shotsDir = suite.screenshots ? o.screenshotsDir ?? join(suite.screenshots, target) : o.screenshotsDir;
|
|
95
|
+
const reports = o.junit ? junitPaths(o.junit, suite.stages.length) : void 0;
|
|
96
|
+
const out = outputDir(env.config, suite.name, target);
|
|
97
|
+
const plan = [];
|
|
98
|
+
if (fixture && !o.loadFixture) {
|
|
99
|
+
const { fixtureConfig, requireFixtureDir } = await import("./config-B-iLUpjx.js");
|
|
100
|
+
requireFixtureDir(fixtureConfig(env.root, env.config), fixture);
|
|
101
|
+
}
|
|
102
|
+
let device = await suiteDevice(env, target, o.device);
|
|
103
|
+
const app = await runApp(env, target, {
|
|
104
|
+
device,
|
|
105
|
+
noBuild: o.noBuild,
|
|
106
|
+
launch: false
|
|
107
|
+
});
|
|
108
|
+
plan.push(...app.plan);
|
|
109
|
+
if (suite.statusBar) {
|
|
110
|
+
const cmds = target === "android" ? androidStatusBarCommands(adb(env), device, false) : iosStatusBarCommands(device, false);
|
|
111
|
+
plan.push(...cmds);
|
|
112
|
+
if (!dry) {
|
|
113
|
+
env.log.step(`status bar: 9:41 on ${device}`);
|
|
114
|
+
await runStatusBarCommands(cmds);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if (fixture) {
|
|
118
|
+
plan.push([
|
|
119
|
+
"kit",
|
|
120
|
+
"fixture",
|
|
121
|
+
"load",
|
|
122
|
+
target,
|
|
123
|
+
fixture,
|
|
124
|
+
"--device",
|
|
125
|
+
device
|
|
126
|
+
]);
|
|
127
|
+
if (!dry) {
|
|
128
|
+
env.log.step(`fixture ${fixture}`);
|
|
129
|
+
device = (await (o.loadFixture ?? loadFixture)(env, target, device, fixture)).device;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const flowEnv = {
|
|
133
|
+
PLATFORM: platformOf(target),
|
|
134
|
+
...suite.env
|
|
135
|
+
};
|
|
136
|
+
const result = {
|
|
137
|
+
suite: suite.name,
|
|
138
|
+
target,
|
|
139
|
+
device,
|
|
140
|
+
ok: true,
|
|
141
|
+
stages: [],
|
|
142
|
+
...shotsDir ? { screenshotsDir: shotsDir } : {},
|
|
143
|
+
...fixture ? { fixture } : {},
|
|
144
|
+
...reports ? { junit: reports } : {}
|
|
145
|
+
};
|
|
146
|
+
const absOut = resolve(env.root, out);
|
|
147
|
+
for (const [i, tags] of suite.stages.entries()) {
|
|
148
|
+
const cmd = flowCommand(bin, {
|
|
149
|
+
dir: m.dir,
|
|
150
|
+
device,
|
|
151
|
+
tags,
|
|
152
|
+
outputDir: out,
|
|
153
|
+
env: flowEnv,
|
|
154
|
+
junit: reports?.[i]
|
|
155
|
+
});
|
|
156
|
+
plan.push(cmd);
|
|
157
|
+
if (dry) continue;
|
|
158
|
+
env.log.step(`maestro ${tags.join(",")}`);
|
|
159
|
+
const before = listRunDirs(absOut);
|
|
160
|
+
const started = performance.now();
|
|
161
|
+
const code = await runToStderr(cmd, {
|
|
162
|
+
cwd: env.root,
|
|
163
|
+
env: maestroEnv(env.flags)
|
|
164
|
+
});
|
|
165
|
+
const stage = {
|
|
166
|
+
tags: [...tags],
|
|
167
|
+
ok: code === 0,
|
|
168
|
+
code,
|
|
169
|
+
ms: Math.round(performance.now() - started),
|
|
170
|
+
outputDir: out,
|
|
171
|
+
screenshots: []
|
|
172
|
+
};
|
|
173
|
+
result.stages.push(stage);
|
|
174
|
+
if (code !== 0) break;
|
|
175
|
+
if (shotsDir) {
|
|
176
|
+
const shots = collectScreenshots(absOut, newRunDirs(before, listRunDirs(absOut)));
|
|
177
|
+
stage.screenshots = copyScreenshots(shots, resolve(env.root, shotsDir)).map((n) => join(shotsDir, n));
|
|
178
|
+
if (!shots.length) {
|
|
179
|
+
stage.ok = false;
|
|
180
|
+
stage.error = `${tags.join(",")} passed but took no screenshot`;
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
result.ok = result.stages.every((s) => s.ok);
|
|
186
|
+
return {
|
|
187
|
+
result,
|
|
188
|
+
plan
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
/** Why a run failed, one line: the failed stage's tags and exit code, or the missing screenshots. */
|
|
192
|
+
function failureSummary(result) {
|
|
193
|
+
const bad = result.stages.find((s) => !s.ok);
|
|
194
|
+
if (!bad) return `${result.suite} failed on ${result.target}`;
|
|
195
|
+
return bad.error ?? `${bad.tags.join(",")} failed on ${result.target} (maestro exit ${bad.code})`;
|
|
196
|
+
}
|
|
197
|
+
// src/lib/maestro/command.ts
|
|
198
|
+
const EXAMPLE = `maestro: { dir: 'maestro', suites: { 'shots-full': { extends: 'shots', stages: [['screenshots'], ['screenshots-extra']] } } }`;
|
|
199
|
+
/** `--full` names `shots-full`, which has no default: a repo defines what "full" means. */
|
|
200
|
+
function requireFullSuite(ctx) {
|
|
201
|
+
const { config } = requireProject(ctx);
|
|
202
|
+
if (!requireMaestro(config).suites?.["shots-full"]) throw new KitError("kit shots --full needs a \"shots-full\" suite", `Define it in kit.config.ts, e.g. ${EXAMPLE}`, ExitCode.config);
|
|
203
|
+
}
|
|
204
|
+
/** Shared body of `kit qa` and `kit shots`: resolve the suite, run or plan it, report. */
|
|
205
|
+
async function runSuiteCommand(ctx, c) {
|
|
206
|
+
const { root, config } = requireProject(ctx);
|
|
207
|
+
const args = ctx.args;
|
|
208
|
+
const target = parseTarget(ctx.positionals[0], c.command);
|
|
209
|
+
const suite = resolveSuite(config, args.suite ?? c.defaultSuite);
|
|
210
|
+
if (c.tags !== void 0) {
|
|
211
|
+
const tags = c.tags.split(",").map((t) => t.trim()).filter(Boolean);
|
|
212
|
+
if (!tags.length) throw new KitError("--tags names no tag", "e.g. --tags smoke,auth", ExitCode.usage);
|
|
213
|
+
suite.stages = [tags];
|
|
214
|
+
}
|
|
215
|
+
if (args.fixture && args["no-fixture"]) throw new KitError("--fixture and --no-fixture conflict", void 0, ExitCode.usage);
|
|
216
|
+
const { result, plan } = await runSuite({
|
|
217
|
+
root,
|
|
218
|
+
config,
|
|
219
|
+
flags: ctx.flags,
|
|
220
|
+
log: ctx.log
|
|
221
|
+
}, target, {
|
|
222
|
+
suite,
|
|
223
|
+
device: args.device,
|
|
224
|
+
noBuild: args["no-build"] === true,
|
|
225
|
+
fixture: args["no-fixture"] ? false : args.fixture,
|
|
226
|
+
screenshotsDir: c.out,
|
|
227
|
+
junit: c.junit
|
|
228
|
+
});
|
|
229
|
+
if (ctx.flags.dryRun) {
|
|
230
|
+
if (ctx.flags.json) emitJson({
|
|
231
|
+
suite: suite.name,
|
|
232
|
+
target,
|
|
233
|
+
plan
|
|
234
|
+
});
|
|
235
|
+
else for (const cmd of plan) ctx.log.step(cmd.join(" "));
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
if (ctx.flags.json) emitJson(result);
|
|
239
|
+
if (!result.ok) {
|
|
240
|
+
ctx.log.error(failureSummary(result), `Maestro output: ${result.stages.at(-1)?.outputDir}`);
|
|
241
|
+
process.exitCode = ExitCode.failed;
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
ctx.log.success(successLine(c.command, result));
|
|
245
|
+
}
|
|
246
|
+
function successLine(command, r) {
|
|
247
|
+
if (command === "shots" && r.screenshotsDir) {
|
|
248
|
+
const count = new Set(r.stages.flatMap((s) => s.screenshots)).size;
|
|
249
|
+
return `${count} screenshot${count === 1 ? "" : "s"} under ${r.screenshotsDir}`;
|
|
250
|
+
}
|
|
251
|
+
return `${[...new Set(r.stages.flatMap((s) => s.tags))].join(", ")} passed on ${r.target}`;
|
|
252
|
+
}
|
|
253
|
+
export { requireFullSuite, runSuiteCommand };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as requireProject } from "./command-B8J0KTC5.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as exportShots } from "./command-mcR8k_HV.js";
|