@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,350 @@
|
|
|
1
|
+
import { i as requireProject } from "./command-B8J0KTC5.js";
|
|
2
|
+
import { n as chromeBin, t as CHROME_HINT } from "./chrome-guy8J1Sd.js";
|
|
3
|
+
import { n as KitError, t as ExitCode } from "./errors-BO9WKUaF.js";
|
|
4
|
+
import { t as emitJson } from "./log-jfLnWjfH.js";
|
|
5
|
+
import { a as trackChild, n as interrupted, r as onCleanup } from "./cleanup-B3RY_WMv.js";
|
|
6
|
+
import { n as imageInfo, t as flattenPng } from "./png-CYbxsNFm.js";
|
|
7
|
+
import { h as spawnDetached } from "./proc-WkAakwUC.js";
|
|
8
|
+
import { a as openerHtml, c as CONTENT_TYPES, f as notFound, i as logTail, l as NO_STORE, n as chromeArgv, o as reason, r as duration, t as OPENER_FILE } from "./render-roL1FmEH.js";
|
|
9
|
+
import { basename, dirname, extname, join, relative, resolve, sep } from "node:path";
|
|
10
|
+
import { pathToFileURL } from "node:url";
|
|
11
|
+
import { accessSync, constants, mkdirSync, mkdtempSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
12
|
+
import { tmpdir } from "node:os";
|
|
13
|
+
import { randomBytes } from "node:crypto";
|
|
14
|
+
/** Virtual time Chrome runs before the shot, so web fonts and images land; `--screenshot` fires on load otherwise. */
|
|
15
|
+
const VIRTUAL_TIME_BUDGET_MS = 5e3;
|
|
16
|
+
/** Where a page lands when neither its `out` nor `--out` says. */
|
|
17
|
+
const DEFAULT_PAGES_DIR = "build/shots-pages";
|
|
18
|
+
const DEFAULT_BACKGROUND = "#ffffff";
|
|
19
|
+
const MIME = {
|
|
20
|
+
...CONTENT_TYPES,
|
|
21
|
+
".html": "text/html; charset=utf-8",
|
|
22
|
+
".htm": "text/html; charset=utf-8",
|
|
23
|
+
".css": "text/css; charset=utf-8",
|
|
24
|
+
".js": "text/javascript; charset=utf-8",
|
|
25
|
+
".mjs": "text/javascript; charset=utf-8",
|
|
26
|
+
".json": "application/json; charset=utf-8",
|
|
27
|
+
".jpg": "image/jpeg",
|
|
28
|
+
".jpeg": "image/jpeg",
|
|
29
|
+
".webp": "image/webp",
|
|
30
|
+
".gif": "image/gif",
|
|
31
|
+
".woff": "font/woff"
|
|
32
|
+
};
|
|
33
|
+
const inside = (root, file) => file.startsWith(root + sep);
|
|
34
|
+
const repoRel = (root, file) => inside(root, file) ? relative(root, file).split(sep).join("/") : file;
|
|
35
|
+
/** A path with a dot segment (`.git`, `.env`, `..`) in it. */
|
|
36
|
+
const hasDotSegment = (path) => path.split(/[\\/]/).some((part) => part.startsWith("."));
|
|
37
|
+
const defaultPageFile = (page) => `${page.name}-${page.width}x${page.height}.png`;
|
|
38
|
+
const configError = (message, hint) => new KitError(message, hint, ExitCode.config);
|
|
39
|
+
/**
|
|
40
|
+
* The pages to render: all of `shots.pages`, or the named ones in the order named. Pure.
|
|
41
|
+
*
|
|
42
|
+
* A page's own `out` must stay inside the repo; `--out` (`outDir`) may name any dir. No two pages
|
|
43
|
+
* may write the same file, and no page may write over the source of any page.
|
|
44
|
+
*/
|
|
45
|
+
function planPages(root, shots, names, outDir) {
|
|
46
|
+
const all = shots.pages ?? [];
|
|
47
|
+
if (all.length === 0) throw configError("shots.pages is empty", "Add shots: { pages: [{ name: 'header', file: 'art/header.html', width: 3840, height: 1646 }] } to kit.config.ts");
|
|
48
|
+
const picked = (names.length === 0 ? all.map((p) => p.name) : [...new Set(names)]).map((name) => {
|
|
49
|
+
const page = all.find((p) => p.name === name);
|
|
50
|
+
if (!page) throw new KitError(`No page named "${name}" in shots.pages`, `Pages: ${all.map((p) => p.name).join(", ")}`, ExitCode.usage);
|
|
51
|
+
return page;
|
|
52
|
+
});
|
|
53
|
+
const sources = new Set(all.map((p) => resolve(root, p.file)));
|
|
54
|
+
const targets = /* @__PURE__ */ new Map();
|
|
55
|
+
return picked.map((page) => {
|
|
56
|
+
const own = page.out === void 0 ? void 0 : resolve(root, page.out);
|
|
57
|
+
if (own !== void 0 && !inside(root, own)) throw configError(`Page ${page.name}: out ${page.out} is outside the repo`, "Use a path inside the repo, or pass --out <dir>");
|
|
58
|
+
const file = own ? basename(own) : defaultPageFile(page);
|
|
59
|
+
const dir = outDir !== void 0 ? resolve(root, outDir) : own ? dirname(own) : resolve(root, DEFAULT_PAGES_DIR);
|
|
60
|
+
const target = join(dir, file);
|
|
61
|
+
if (sources.has(target)) throw configError(`Page ${page.name}: ${repoRel(root, target)} is the source of a page`, "It would overwrite the HTML");
|
|
62
|
+
const other = targets.get(target);
|
|
63
|
+
if (other !== void 0) throw configError(`Pages ${other} and ${page.name} would both write ${repoRel(root, target)}`, "Give them different names or out paths");
|
|
64
|
+
targets.set(target, page.name);
|
|
65
|
+
return {
|
|
66
|
+
name: page.name,
|
|
67
|
+
source: resolve(root, page.file),
|
|
68
|
+
width: page.width,
|
|
69
|
+
height: page.height,
|
|
70
|
+
scale: page.scale ?? 2,
|
|
71
|
+
background: page.background ?? DEFAULT_BACKGROUND,
|
|
72
|
+
target
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The real file a served path names, or undefined: no dot segment in the request or in the real
|
|
78
|
+
* path, and the real path (symlinks resolved) is a file inside the real root. `root` is real.
|
|
79
|
+
*/
|
|
80
|
+
function servedFile(root, rel) {
|
|
81
|
+
if (hasDotSegment(rel)) return void 0;
|
|
82
|
+
const file = resolve(root, rel);
|
|
83
|
+
if (!inside(root, file)) return void 0;
|
|
84
|
+
let real;
|
|
85
|
+
try {
|
|
86
|
+
real = realpathSync(file);
|
|
87
|
+
} catch {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (!inside(root, real) || hasDotSegment(relative(root, real))) return void 0;
|
|
91
|
+
return statSync(real).isFile() ? real : void 0;
|
|
92
|
+
}
|
|
93
|
+
/** Refuse (exit 3) a page whose HTML is missing, under a dot dir, or reaches outside the repo by a link. */
|
|
94
|
+
function checkSources(root, jobs) {
|
|
95
|
+
const real = realpathSync(root);
|
|
96
|
+
for (const job of jobs) {
|
|
97
|
+
const rel = relative(root, job.source);
|
|
98
|
+
const hint = "shots.pages[].file is relative to the repo root, must stay inside it and not sit under a dot dir";
|
|
99
|
+
if (!inside(root, job.source) || hasDotSegment(rel)) throw configError(`Page ${job.name}: ${job.source} is outside the repo or under a dot path`, hint);
|
|
100
|
+
if (!statSync(job.source, { throwIfNoEntry: false })?.isFile()) throw configError(`Page ${job.name}: no HTML file at ${job.source}`, hint);
|
|
101
|
+
if (servedFile(real, relative(root, job.source)) === void 0) throw configError(`Page ${job.name}: ${job.source} resolves outside the repo or to a dot path`, hint);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/** `font-weight` values kit passes into CSS: words and numbers only. */
|
|
105
|
+
const WEIGHT = /^[\w .%-]+$/;
|
|
106
|
+
/** `@font-face` rules for `shots.fonts`, served from the same root as the page. */
|
|
107
|
+
function fontCss(root, prefix, shots) {
|
|
108
|
+
return (shots.fonts ?? []).map((font) => {
|
|
109
|
+
const url = `${prefix}${repoRel(root, resolve(root, font.file)).split("/").map(encodeURIComponent).join("/")}`;
|
|
110
|
+
const weight = font.weight && WEIGHT.test(font.weight) ? ` font-weight: ${font.weight};` : "";
|
|
111
|
+
return `@font-face { font-family: "${font.family.split("").filter((c) => c !== "\"" && c !== "\\" && c.charCodeAt(0) > 31 && c.charCodeAt(0) !== 127).join("")}"; src: url("${url}");${weight} }`;
|
|
112
|
+
}).join("\n");
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* `html` with the `shots.fonts` rules in it, so a page needs no `@font-face` of its own: first in
|
|
116
|
+
* `<head>`, else after `<html>`, else after the doctype, else at the start. Comments are skipped, and
|
|
117
|
+
* `<header>` is not `<head>`. The rules never go before the doctype, which would force quirks mode.
|
|
118
|
+
*/
|
|
119
|
+
function withFonts(html, css) {
|
|
120
|
+
if (css === "") return html;
|
|
121
|
+
const style = `<style>${css}</style>`;
|
|
122
|
+
const masked = html.replace(/<!--[\s\S]*?-->/g, (comment) => " ".repeat(comment.length));
|
|
123
|
+
for (const tag of [
|
|
124
|
+
/<head(?:\s[^>]*)?>/i,
|
|
125
|
+
/<html(?:\s[^>]*)?>/i,
|
|
126
|
+
/<!doctype[^>]*>/i
|
|
127
|
+
]) {
|
|
128
|
+
const found = tag.exec(masked);
|
|
129
|
+
if (found) {
|
|
130
|
+
const at = found.index + found[0].length;
|
|
131
|
+
return html.slice(0, at) + style + html.slice(at);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return style + html;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Serve the repo root on 127.0.0.1 under a random path token, so a page's relative assets resolve
|
|
138
|
+
* (`../brand/logo.svg`). Any non-dot file under the repo can be read by the page: dot paths, symlinks
|
|
139
|
+
* that lead outside the root or to a dot path, and everything else are 404. HTML gets the
|
|
140
|
+
* `shots.fonts` rules injected. `root` is the real path of the repo root.
|
|
141
|
+
*/
|
|
142
|
+
function servePages(root, shots) {
|
|
143
|
+
const prefix = `/${randomBytes(16).toString("hex")}/`;
|
|
144
|
+
const css = fontCss(root, prefix, shots);
|
|
145
|
+
const requests = [];
|
|
146
|
+
const answer = (req) => {
|
|
147
|
+
if (req.method !== "GET") return notFound();
|
|
148
|
+
const { pathname } = new URL(req.url);
|
|
149
|
+
if (!pathname.startsWith(prefix)) return notFound();
|
|
150
|
+
let rel;
|
|
151
|
+
try {
|
|
152
|
+
rel = decodeURIComponent(pathname.slice(prefix.length));
|
|
153
|
+
} catch {
|
|
154
|
+
return notFound();
|
|
155
|
+
}
|
|
156
|
+
const file = servedFile(root, rel);
|
|
157
|
+
if (file === void 0) return notFound();
|
|
158
|
+
const type = MIME[extname(file).toLowerCase()] ?? "application/octet-stream";
|
|
159
|
+
if (type.startsWith("text/html")) {
|
|
160
|
+
const html = withFonts(readFileSync(file, "utf8"), css);
|
|
161
|
+
return new Response(html, { headers: {
|
|
162
|
+
"content-type": type,
|
|
163
|
+
...NO_STORE
|
|
164
|
+
} });
|
|
165
|
+
}
|
|
166
|
+
return new Response(Bun.file(file), { headers: {
|
|
167
|
+
"content-type": type,
|
|
168
|
+
...NO_STORE
|
|
169
|
+
} });
|
|
170
|
+
};
|
|
171
|
+
const server = Bun.serve({
|
|
172
|
+
hostname: "127.0.0.1",
|
|
173
|
+
port: 0,
|
|
174
|
+
fetch(req) {
|
|
175
|
+
const response = answer(req);
|
|
176
|
+
const { pathname } = new URL(req.url);
|
|
177
|
+
if (pathname.startsWith(prefix)) requests.push({
|
|
178
|
+
path: pathname.slice(prefix.length),
|
|
179
|
+
status: response.status
|
|
180
|
+
});
|
|
181
|
+
return response;
|
|
182
|
+
},
|
|
183
|
+
error: () => new Response("Internal error", { status: 500 })
|
|
184
|
+
});
|
|
185
|
+
return {
|
|
186
|
+
url: `http://127.0.0.1:${server.port}${prefix}`,
|
|
187
|
+
requests,
|
|
188
|
+
stop: () => server.stop(true)
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
/** The shot, checked against the page's size and flattened; a failure names the page. */
|
|
192
|
+
function checkedPage(job, bytes) {
|
|
193
|
+
let info;
|
|
194
|
+
try {
|
|
195
|
+
info = imageInfo(bytes);
|
|
196
|
+
} catch (e) {
|
|
197
|
+
throw new KitError(`Chrome wrote a bad image for page ${job.name}: ${reason(e)}`);
|
|
198
|
+
}
|
|
199
|
+
if (info.format !== "png") throw new KitError(`Chrome wrote a ${info.format} image for page ${job.name}, not a PNG`);
|
|
200
|
+
if (info.width !== job.width || info.height !== job.height) throw new KitError(`The PNG for page ${job.name} is ${info.width}x${info.height}`, `shots.pages declares ${job.width}x${job.height} at scale ${job.scale}`);
|
|
201
|
+
if (!info.alpha) return bytes;
|
|
202
|
+
let flat;
|
|
203
|
+
try {
|
|
204
|
+
flat = flattenPng(bytes, job.background);
|
|
205
|
+
} catch (e) {
|
|
206
|
+
throw new KitError(`Cannot flatten the PNG for page ${job.name}: ${reason(e)}`);
|
|
207
|
+
}
|
|
208
|
+
if (imageInfo(flat).alpha) throw new KitError(`The PNG for page ${job.name} still has an alpha channel after flattening`);
|
|
209
|
+
return flat;
|
|
210
|
+
}
|
|
211
|
+
/** Write through a temp file and a rename, so a failed write never leaves half a PNG at the target. */
|
|
212
|
+
function writeAtomic(target, bytes) {
|
|
213
|
+
mkdirSync(dirname(target), { recursive: true });
|
|
214
|
+
const temp = `${target}.${process.pid}.tmp`;
|
|
215
|
+
try {
|
|
216
|
+
writeFileSync(temp, bytes);
|
|
217
|
+
renameSync(temp, target);
|
|
218
|
+
} finally {
|
|
219
|
+
rmSync(temp, { force: true });
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
/** Kill Chrome's whole process group, the leader gone or not. */
|
|
223
|
+
function killGroup(chrome) {
|
|
224
|
+
if (chrome === void 0) return;
|
|
225
|
+
try {
|
|
226
|
+
process.kill(-chrome.pid, "SIGKILL");
|
|
227
|
+
} catch {}
|
|
228
|
+
}
|
|
229
|
+
/** Shoot every job and write the PNGs, one page at a time; a page's file is written only once it passes its checks. */
|
|
230
|
+
async function renderPages(jobs, opts) {
|
|
231
|
+
const timeoutMs = opts.timeoutMs ?? 6e4;
|
|
232
|
+
checkSources(opts.root, jobs);
|
|
233
|
+
const root = realpathSync(opts.root);
|
|
234
|
+
const work = mkdtempSync(join(tmpdir(), "kit-pages-"));
|
|
235
|
+
const server = servePages(root, opts.shots);
|
|
236
|
+
let chrome;
|
|
237
|
+
const dispose = async () => {
|
|
238
|
+
killGroup(chrome);
|
|
239
|
+
if (chrome) await chrome.exited;
|
|
240
|
+
await server.stop();
|
|
241
|
+
try {
|
|
242
|
+
rmSync(work, {
|
|
243
|
+
recursive: true,
|
|
244
|
+
force: true,
|
|
245
|
+
maxRetries: 3
|
|
246
|
+
});
|
|
247
|
+
} catch (e) {
|
|
248
|
+
opts.verbose?.(`Could not remove ${work}: ${reason(e)}`);
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
const off = onCleanup(dispose);
|
|
252
|
+
const done = [];
|
|
253
|
+
try {
|
|
254
|
+
for (const job of jobs) {
|
|
255
|
+
opts.step?.(`Rendering ${job.name} (${job.width}x${job.height})`);
|
|
256
|
+
const dir = join(work, job.name);
|
|
257
|
+
const profile = join(dir, "profile");
|
|
258
|
+
const shot = join(dir, "shot.png");
|
|
259
|
+
const log = join(dir, "chrome.log");
|
|
260
|
+
mkdirSync(profile, { recursive: true });
|
|
261
|
+
const opener = join(dir, OPENER_FILE);
|
|
262
|
+
const path = relative(root, realpathSync(job.source)).split(sep).map(encodeURIComponent).join("/");
|
|
263
|
+
writeFileSync(opener, openerHtml(`${server.url}${path}`), { mode: 384 });
|
|
264
|
+
const flags = [
|
|
265
|
+
`--force-device-scale-factor=${job.scale}`,
|
|
266
|
+
`--virtual-time-budget=${VIRTUAL_TIME_BUDGET_MS}`,
|
|
267
|
+
`--window-size=${job.width / job.scale},${job.height / job.scale}`,
|
|
268
|
+
`--screenshot=${shot}`
|
|
269
|
+
];
|
|
270
|
+
const seen = server.requests.length;
|
|
271
|
+
try {
|
|
272
|
+
chrome = spawnDetached(chromeArgv(opts.chrome, profile, pathToFileURL(opener).href, flags), log);
|
|
273
|
+
} catch (e) {
|
|
274
|
+
throw new KitError(`Cannot start Chrome at ${opts.chrome}: ${reason(e)}`, CHROME_HINT, ExitCode.precondition);
|
|
275
|
+
}
|
|
276
|
+
trackChild(chrome, true);
|
|
277
|
+
let timer;
|
|
278
|
+
const outcome = await Promise.race([chrome.exited.then((code) => ({ exited: code })), new Promise((res) => {
|
|
279
|
+
timer = setTimeout(() => res("timeout"), timeoutMs);
|
|
280
|
+
})]);
|
|
281
|
+
clearTimeout(timer);
|
|
282
|
+
killGroup(chrome);
|
|
283
|
+
if (interrupted()) throw new KitError("Interrupted", void 0, ExitCode.interrupted);
|
|
284
|
+
if (outcome === "timeout") throw new KitError(`Chrome did not finish page ${job.name} within ${duration(timeoutMs)}`, logTail(log));
|
|
285
|
+
const refused = server.requests.slice(seen).find((r) => r.status < 200 || r.status >= 300);
|
|
286
|
+
if (refused) throw new KitError(`Page ${job.name} requested /${refused.path}, which the server answered ${refused.status}`, "Only files under the repo root are served, and not dot files or links that leave it");
|
|
287
|
+
if (!statSync(shot, { throwIfNoEntry: false })?.size) throw new KitError(`Chrome wrote no screenshot of page ${job.name} (exit code ${outcome.exited})`, logTail(log) ?? `Ran ${opts.chrome}`);
|
|
288
|
+
const png = checkedPage(job, new Uint8Array(readFileSync(shot)));
|
|
289
|
+
writeAtomic(job.target, png);
|
|
290
|
+
done.push({
|
|
291
|
+
name: job.name,
|
|
292
|
+
file: repoRel(opts.root, job.target),
|
|
293
|
+
width: job.width,
|
|
294
|
+
height: job.height
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
} finally {
|
|
298
|
+
opts.requests?.push(...server.requests);
|
|
299
|
+
off();
|
|
300
|
+
await dispose();
|
|
301
|
+
}
|
|
302
|
+
return done;
|
|
303
|
+
}
|
|
304
|
+
// src/lib/storeshots/pages-command.ts
|
|
305
|
+
/** The Chrome binary, checked to be a file kit can run. */
|
|
306
|
+
function requireChrome() {
|
|
307
|
+
const chrome = chromeBin();
|
|
308
|
+
try {
|
|
309
|
+
if (!statSync(chrome).isFile()) throw new Error("not a file");
|
|
310
|
+
accessSync(chrome, constants.X_OK);
|
|
311
|
+
} catch {
|
|
312
|
+
throw new KitError(`${chrome} is not a Chrome binary kit can run`, CHROME_HINT, ExitCode.precondition);
|
|
313
|
+
}
|
|
314
|
+
return chrome;
|
|
315
|
+
}
|
|
316
|
+
const rel = (root, job) => ({
|
|
317
|
+
name: job.name,
|
|
318
|
+
file: job.target.startsWith(`${root}/`) ? job.target.slice(root.length + 1) : job.target,
|
|
319
|
+
width: job.width,
|
|
320
|
+
height: job.height
|
|
321
|
+
});
|
|
322
|
+
/** `kit shots pages`: render the pages, then report (or print the `--json` document). */
|
|
323
|
+
async function runPages(ctx, opts) {
|
|
324
|
+
const { root, config } = requireProject(ctx);
|
|
325
|
+
const shots = config.shots;
|
|
326
|
+
if (!shots?.pages?.length) throw new KitError("No shots.pages in kit.config.ts", "Add shots: { pages: [{ name: 'header', file: 'art/header.html', width: 3840, height: 1646 }] }", ExitCode.config);
|
|
327
|
+
const jobs = planPages(root, shots, opts.names, opts.out);
|
|
328
|
+
checkSources(root, jobs);
|
|
329
|
+
const dryRun = ctx.flags.dryRun;
|
|
330
|
+
let pages = jobs.map((job) => rel(root, job));
|
|
331
|
+
if (!dryRun) pages = await renderPages(jobs, {
|
|
332
|
+
chrome: requireChrome(),
|
|
333
|
+
root,
|
|
334
|
+
shots,
|
|
335
|
+
step: ctx.flags.json ? void 0 : (message) => ctx.log.step(message),
|
|
336
|
+
verbose: ctx.flags.verbose ? (message) => ctx.log.dim(message) : void 0
|
|
337
|
+
});
|
|
338
|
+
if (ctx.flags.json) {
|
|
339
|
+
emitJson({
|
|
340
|
+
dryRun,
|
|
341
|
+
pages
|
|
342
|
+
});
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
for (const page of pages) ctx.log.info(`${page.name}: ${page.file} (${page.width}x${page.height})`);
|
|
346
|
+
const count = `${pages.length} ${pages.length === 1 ? "page" : "pages"}`;
|
|
347
|
+
if (dryRun) ctx.log.info(`Dry run: ${count} would be written; Chrome was not started`);
|
|
348
|
+
else ctx.log.success(`${count} written`);
|
|
349
|
+
}
|
|
350
|
+
export { runPages };
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// src/lib/devices/pick.ts
|
|
2
|
+
const PIXEL_SIZE_RANK = {
|
|
3
|
+
pro_xl: 3,
|
|
4
|
+
xl: 3,
|
|
5
|
+
pro: 2,
|
|
6
|
+
"": 1,
|
|
7
|
+
a: 0
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The newest, largest Pixel among avdmanager's device ids (`pixel_10_pro_xl`,
|
|
11
|
+
* `pixel_9a`, ...). Folds, tablets and the Pixel C are not phones the store shots
|
|
12
|
+
* want, so a size the rank table does not name is skipped.
|
|
13
|
+
*/
|
|
14
|
+
function latestLargestPixel(deviceIds) {
|
|
15
|
+
let best;
|
|
16
|
+
for (const id of deviceIds) {
|
|
17
|
+
const match = /^pixel_(\d+)(?:_(.+))?$/.exec(id);
|
|
18
|
+
if (match === null) continue;
|
|
19
|
+
const size = PIXEL_SIZE_RANK[match[2] ?? ""];
|
|
20
|
+
if (size === void 0) continue;
|
|
21
|
+
const generation = Number(match[1]);
|
|
22
|
+
if (best === void 0 || generation > best.generation || generation === best.generation && size > best.size) best = {
|
|
23
|
+
id,
|
|
24
|
+
generation,
|
|
25
|
+
size
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return best?.id;
|
|
29
|
+
}
|
|
30
|
+
const IPHONE_SIZE_RANK = {
|
|
31
|
+
" Pro Max": 4,
|
|
32
|
+
" Plus": 3,
|
|
33
|
+
" Pro": 2,
|
|
34
|
+
"": 1,
|
|
35
|
+
" Air": 1,
|
|
36
|
+
e: 0
|
|
37
|
+
};
|
|
38
|
+
/** Where a simulator name sits in the line-up: generation first, then size. `undefined` for a non-iPhone. */
|
|
39
|
+
function iphoneRank(name) {
|
|
40
|
+
const match = /^iPhone (\d+)( Pro Max| Plus| Pro| Air|e)?$/.exec(name);
|
|
41
|
+
if (match === null) return void 0;
|
|
42
|
+
const size = IPHONE_SIZE_RANK[match[2] ?? ""];
|
|
43
|
+
if (size === void 0) return void 0;
|
|
44
|
+
return [Number(match[1]), size];
|
|
45
|
+
}
|
|
46
|
+
/** The newest, largest iPhone among the given names — the SE and the minis never win. */
|
|
47
|
+
function latestLargestIphone(types) {
|
|
48
|
+
let best;
|
|
49
|
+
for (const type of types) {
|
|
50
|
+
const rank = iphoneRank(type.name);
|
|
51
|
+
if (rank === void 0) continue;
|
|
52
|
+
if (best === void 0 || rank[0] > best.rank[0] || rank[0] === best.rank[0] && rank[1] > best.rank[1]) best = {
|
|
53
|
+
type,
|
|
54
|
+
rank
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
return best?.type;
|
|
58
|
+
}
|
|
59
|
+
const IPAD_LINE_RANK = {
|
|
60
|
+
" Pro": 3,
|
|
61
|
+
" Air": 2,
|
|
62
|
+
"": 1,
|
|
63
|
+
" mini": 0
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Where a simulator name sits in the iPad line-up: screen inches first, then the chip
|
|
67
|
+
* (`M5` over `M4`, any M over an A-series or a "(6th generation)"), then Pro over Air over
|
|
68
|
+
* the plain one over the mini. `undefined` for a non-iPad.
|
|
69
|
+
*/
|
|
70
|
+
function ipadRank(name) {
|
|
71
|
+
const match = /^iPad( Pro| Air| mini)?(?: \(?(\d+(?:\.\d+)?)-inch\)?)?(?: \((?:(M|A)(\d+)(?: Pro)?|(\d+)\w+ generation)\))?$/.exec(name);
|
|
72
|
+
if (match === null) return void 0;
|
|
73
|
+
const line = IPAD_LINE_RANK[match[1] ?? ""];
|
|
74
|
+
if (line === void 0) return void 0;
|
|
75
|
+
return [
|
|
76
|
+
Number(match[2] ?? 0),
|
|
77
|
+
match[3] === "M" ? 100 + Number(match[4]) : Number(match[4] ?? match[5] ?? 0),
|
|
78
|
+
line
|
|
79
|
+
];
|
|
80
|
+
}
|
|
81
|
+
/** The newest, largest iPad among the given names — the 13-inch the store wants, on the newest chip. */
|
|
82
|
+
function latestLargestIpad(types) {
|
|
83
|
+
let best;
|
|
84
|
+
for (const type of types) {
|
|
85
|
+
const rank = ipadRank(type.name);
|
|
86
|
+
if (rank === void 0) continue;
|
|
87
|
+
if (best === void 0 || compareRanks(rank, best.rank) > 0) best = {
|
|
88
|
+
type,
|
|
89
|
+
rank
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
return best?.type;
|
|
93
|
+
}
|
|
94
|
+
function compareRanks(a, b) {
|
|
95
|
+
for (let i = 0; i < a.length; i++) {
|
|
96
|
+
const diff = (a[i] ?? 0) - (b[i] ?? 0);
|
|
97
|
+
if (diff !== 0) return diff;
|
|
98
|
+
}
|
|
99
|
+
return 0;
|
|
100
|
+
}
|
|
101
|
+
/** The highest of dotted version strings (`26.5` < `27.0`), by numeric parts. */
|
|
102
|
+
function latestVersion(items) {
|
|
103
|
+
const parts = (v) => v.split(".").map((p) => Number.parseInt(p, 10) || 0);
|
|
104
|
+
let best;
|
|
105
|
+
for (const item of items) {
|
|
106
|
+
if (best === void 0) {
|
|
107
|
+
best = item;
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
const a = parts(item.version);
|
|
111
|
+
const b = parts(best.version);
|
|
112
|
+
for (let i = 0; i < Math.max(a.length, b.length); i++) {
|
|
113
|
+
const diff = (a[i] ?? 0) - (b[i] ?? 0);
|
|
114
|
+
if (diff > 0) best = item;
|
|
115
|
+
if (diff !== 0) break;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return best;
|
|
119
|
+
}
|
|
120
|
+
/** The `-k` package avdmanager takes for an installed image. */
|
|
121
|
+
function systemImagePackage({ api, tag, abi }) {
|
|
122
|
+
return `system-images;android-${api};${tag};${abi}`;
|
|
123
|
+
}
|
|
124
|
+
/** Phone images only: TV, Wear, Automotive and desktop tags are not what an app's flows drive. */
|
|
125
|
+
const isPhoneImage = (tag) => tag === "default" || tag.startsWith("google_apis");
|
|
126
|
+
/**
|
|
127
|
+
* The image a new emulator runs: a Play image whenever one is installed (the owner's rule: emulators
|
|
128
|
+
* match what users run), newest API first. Without one, `google_apis` over AOSP `default`.
|
|
129
|
+
* Play images refuse `adb root`, so app data is reached through `run-as` on a debuggable build.
|
|
130
|
+
*/
|
|
131
|
+
function preferredSystemImage(images, hostAbi) {
|
|
132
|
+
const isPlay = (tag) => tag.includes("playstore");
|
|
133
|
+
const tagRank = (tag) => tag === "google_apis_playstore" ? 3 : isPlay(tag) ? 2 : tag === "google_apis" ? 1 : 0;
|
|
134
|
+
const phones = images.filter((image) => image.abi === hostAbi && isPhoneImage(image.tag));
|
|
135
|
+
const play = phones.filter((image) => isPlay(image.tag));
|
|
136
|
+
const candidates = (play.length ? play : phones).map((image) => ({
|
|
137
|
+
image,
|
|
138
|
+
version: image.api
|
|
139
|
+
}));
|
|
140
|
+
const newest = latestVersion(candidates);
|
|
141
|
+
if (newest === void 0) return void 0;
|
|
142
|
+
return candidates.filter((c) => c.version === newest.version).map((c) => c.image).sort((x, y) => tagRank(y.tag) - tagRank(x.tag))[0];
|
|
143
|
+
}
|
|
144
|
+
const isIpadName = (name) => name.startsWith("iPad");
|
|
145
|
+
/**
|
|
146
|
+
* The one `--yes` takes when several are already up: an emulator over a phone on
|
|
147
|
+
* Android, since a cable often means someone's daily device; the newest, largest
|
|
148
|
+
* iPhone or iPad on iOS; and the first listed when nothing separates them.
|
|
149
|
+
*/
|
|
150
|
+
function preferredAmong(platform, devices, family = "iphone") {
|
|
151
|
+
const [first] = devices;
|
|
152
|
+
if (first === void 0) throw new Error("no devices to choose from");
|
|
153
|
+
if (platform === "android") return devices.find((device) => device.id.startsWith("emulator-")) ?? first;
|
|
154
|
+
const named = devices.map((device) => ({
|
|
155
|
+
name: device.label.replace(/ \(.*\)$/, ""),
|
|
156
|
+
device
|
|
157
|
+
}));
|
|
158
|
+
return (family === "ipad" ? latestLargestIpad(named) : latestLargestIphone(named))?.device ?? first;
|
|
159
|
+
}
|
|
160
|
+
export { latestLargestIphone as a, preferredAmong as c, latestLargestIpad as i, preferredSystemImage as l, iphoneRank as n, latestLargestPixel as o, isIpadName as r, latestVersion as s, ipadRank as t, systemImagePackage as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as preferredAmong } from "./pick-Bm8e8uYD.js";
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { n as KitError, t as ExitCode } from "./errors-BO9WKUaF.js";
|
|
2
|
+
import { g as resolveSlides, h as localizeSlide } from "./types-B33pT1hg.js";
|
|
3
|
+
import { f as STORE_TARGETS, g as resolveSets, u as SET_SIZES } from "./sizes-DQoBHANb.js";
|
|
4
|
+
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
5
|
+
// src/lib/storeshots/plan.ts
|
|
6
|
+
/**
|
|
7
|
+
* The `<slug>` of an exported file name: the slide name lower-cased, every run of characters
|
|
8
|
+
* outside `[a-z0-9]` turned into one `-`, trimmed of `-`; the slide id, slugged the same way,
|
|
9
|
+
* when that leaves nothing.
|
|
10
|
+
*/
|
|
11
|
+
function slideSlug(slide) {
|
|
12
|
+
const slug = (value) => value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
13
|
+
return slug(slide.name) || slug(slide.id) || "slide";
|
|
14
|
+
}
|
|
15
|
+
/** `NN`: a 1-based position zero-padded to two digits. */
|
|
16
|
+
const nn = (index) => String(index).padStart(2, "0");
|
|
17
|
+
/** A locale is one dir name and one piece of a job id, so it has to be safe as both. */
|
|
18
|
+
const LOCALE = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
19
|
+
/** Whether `name` can be a locale: what a `--locale` has to be, and what a metadata dir has to be named to count as one. */
|
|
20
|
+
const isLocale = (name) => LOCALE.test(name);
|
|
21
|
+
/** `/`-separated path of `file` relative to `root`; absolute when it is outside `root`. */
|
|
22
|
+
function repoPath(root, file) {
|
|
23
|
+
const rel = relative(root, file);
|
|
24
|
+
if (rel === "" || rel.startsWith("..") || isAbsolute(rel)) return file;
|
|
25
|
+
return rel.split("\\").join("/");
|
|
26
|
+
}
|
|
27
|
+
/** The PNG a job writes: see `Job.file`. */
|
|
28
|
+
function outputFile(destination, locale, job, slug) {
|
|
29
|
+
return destination.store === "apple" ? join(destination.dir, locale, `${nn(job.index)}_${job.set}_${slug}.png`) : join(destination.dir, locale, "images", "phoneScreenshots", `${nn(job.index)}_${slug}.png`);
|
|
30
|
+
}
|
|
31
|
+
/** `shots.fonts` and `shots.brand` as the page loads them, with the files they point at. */
|
|
32
|
+
function pageAssets(root, shots) {
|
|
33
|
+
const assets = [];
|
|
34
|
+
const asset = (file) => `asset/${assets.push(resolve(root, file)) - 1}`;
|
|
35
|
+
const fonts = (shots.fonts ?? []).map((font) => ({
|
|
36
|
+
family: font.family,
|
|
37
|
+
url: asset(font.file),
|
|
38
|
+
...font.weight === void 0 ? {} : { weight: font.weight }
|
|
39
|
+
}));
|
|
40
|
+
if (!shots.brand) return {
|
|
41
|
+
fonts,
|
|
42
|
+
assets
|
|
43
|
+
};
|
|
44
|
+
const { mark, wordmark, color, font } = shots.brand;
|
|
45
|
+
return {
|
|
46
|
+
fonts,
|
|
47
|
+
brand: {
|
|
48
|
+
mark: asset(mark),
|
|
49
|
+
...wordmark === void 0 ? {} : { wordmark },
|
|
50
|
+
...color === void 0 ? {} : { color },
|
|
51
|
+
...font === void 0 ? {} : { font }
|
|
52
|
+
},
|
|
53
|
+
assets
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Plan one `kit shots export`: every slide of the project, in `order`, for each set of each
|
|
58
|
+
* exported store and each of its locales. Pure: the raw listing and the destinations are passed in.
|
|
59
|
+
*/
|
|
60
|
+
const planExport = (input) => {
|
|
61
|
+
const { root, config, project, destinations, rawDir, raw, allowMissing } = input;
|
|
62
|
+
if (!config.shots) throw new KitError("No shots block in kit.config.ts", "Add shots: { project: '<saved project>.json' } to kit.config.ts", ExitCode.config);
|
|
63
|
+
const sets = resolveSets(config);
|
|
64
|
+
const jobs = [];
|
|
65
|
+
const skipped = [];
|
|
66
|
+
const missing = /* @__PURE__ */ new Set();
|
|
67
|
+
for (const destination of destinations) {
|
|
68
|
+
const store = destination.store;
|
|
69
|
+
for (const target of STORE_TARGETS[store]) {
|
|
70
|
+
const set = sets[target];
|
|
71
|
+
const { width, height } = SET_SIZES[set];
|
|
72
|
+
const slides = resolveSlides(project, target);
|
|
73
|
+
for (const locale of destination.locales) {
|
|
74
|
+
if (!isLocale(locale)) throw new KitError(`"${locale}" is not a locale kit can export`, "A locale is a store locale code such as en-US: letters, digits, \".\", \"_\" and \"-\"", ExitCode.usage);
|
|
75
|
+
let index = 0;
|
|
76
|
+
for (const slide of slides) {
|
|
77
|
+
const localised = `${target}/${locale}/${slide.sourceFile}`;
|
|
78
|
+
const shared = `${target}/${slide.sourceFile}`;
|
|
79
|
+
const found = raw.has(localised) ? localised : raw.has(shared) ? shared : void 0;
|
|
80
|
+
if (found === void 0) {
|
|
81
|
+
const shot = repoPath(root, join(rawDir, target, slide.sourceFile));
|
|
82
|
+
missing.add(shot);
|
|
83
|
+
skipped.push({
|
|
84
|
+
store,
|
|
85
|
+
target,
|
|
86
|
+
set,
|
|
87
|
+
locale,
|
|
88
|
+
slide: slide.id,
|
|
89
|
+
shot
|
|
90
|
+
});
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
index += 1;
|
|
94
|
+
const job = {
|
|
95
|
+
set,
|
|
96
|
+
index
|
|
97
|
+
};
|
|
98
|
+
jobs.push({
|
|
99
|
+
id: `${target}-${locale}-${nn(index)}`,
|
|
100
|
+
store,
|
|
101
|
+
target,
|
|
102
|
+
set,
|
|
103
|
+
locale,
|
|
104
|
+
index,
|
|
105
|
+
width,
|
|
106
|
+
height,
|
|
107
|
+
slide: localizeSlide(project, slide, locale),
|
|
108
|
+
shot: join(rawDir, ...found.split("/")),
|
|
109
|
+
file: outputFile(destination, locale, job, slideSlug(slide))
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (missing.size > 0 && !allowMissing) {
|
|
116
|
+
const files = [...missing];
|
|
117
|
+
const targets = [...new Set(skipped.map((s) => s.target))];
|
|
118
|
+
throw new KitError(`${files.length} raw shot${files.length === 1 ? " is" : "s are"} missing:\n${files.map((f) => ` ${f}`).join("\n")}`, `Take ${files.length === 1 ? "it" : "them"} with ${targets.map((t) => `\`kit shots ${t}\``).join(", ")}, or pass --allow-missing to export without ${files.length === 1 ? "that slide" : "those slides"}`, ExitCode.precondition);
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
stores: destinations.map((d) => d.store),
|
|
122
|
+
destinations: [...destinations],
|
|
123
|
+
jobs,
|
|
124
|
+
skipped,
|
|
125
|
+
...pageAssets(root, config.shots)
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export { repoPath as i, pageAssets as n, planExport as r, isLocale as t };
|