@jordond/kit 0.7.0 → 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 +181 -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.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.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.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.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.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.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.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.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.0/kit-plugins-0.7.0.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.0/kit-plugins-0.7.0.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.0/kit-settings-0.7.0.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.0/kit-settings-0.7.0.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.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.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.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.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.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.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.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.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-g0s46wbd.js +0 -186
- package/dist/_verb-g6837n2y.js +0 -173
- package/dist/android-17z0stcg.js +0 -60
- package/dist/apply-5531ynqp.js +0 -118
- package/dist/backup-ev2amscz.js +0 -67
- package/dist/bin-q60acre8.js +0 -15
- package/dist/boot-6t7jn0jp.js +0 -52
- package/dist/build-6rp8qsab.js +0 -46
- package/dist/build-m9z9pfdh.js +0 -21
- package/dist/build-wdysb1g7.js +0 -53
- package/dist/builtins-vh45v6hz.js +0 -10
- package/dist/bump-rce7k3yk.js +0 -202
- package/dist/certs-x8ds6gcq.js +0 -76
- package/dist/changelog-70znsn6a.js +0 -130
- package/dist/changelog-ans0k88j.js +0 -120
- package/dist/check-5p1nvffh.js +0 -38
- package/dist/check-snsfxv4x.js +0 -72
- package/dist/clean-j1aan7n6.js +0 -93
- package/dist/clean-jdky4kys.js +0 -237
- package/dist/cleanup-hrcvxmh2.js +0 -18
- package/dist/clear-exmjhx8t.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-0gq9ayk0.js +0 -97
- package/dist/cli-0h5bs7he.js +0 -37
- package/dist/cli-0pgyxzex.js +0 -776
- package/dist/cli-17hmeca5.js +0 -394
- package/dist/cli-19me2qqg.js +0 -1056
- package/dist/cli-1j74pfjc.js +0 -466
- package/dist/cli-28nya88s.js +0 -73
- package/dist/cli-2ja6z124.js +0 -127
- package/dist/cli-2nw36t7w.js +0 -135
- package/dist/cli-2vx7vz1p.js +0 -64
- package/dist/cli-3f9s5j76.js +0 -150
- package/dist/cli-3nqkyv98.js +0 -517
- package/dist/cli-540nme4e.js +0 -46
- package/dist/cli-5d61x8vg.js +0 -675
- package/dist/cli-5mqj72g1.js +0 -54
- 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-8qgqecpv.js +0 -35
- package/dist/cli-9jt7ffg6.js +0 -2043
- package/dist/cli-9jv0j32a.js +0 -167
- package/dist/cli-aca1bbxq.js +0 -77
- package/dist/cli-af51pbj8.js +0 -123
- package/dist/cli-b4qnnrsp.js +0 -35
- package/dist/cli-cj4hjqac.js +0 -326
- package/dist/cli-e7kt35ys.js +0 -218
- package/dist/cli-ey6trdpc.js +0 -11
- package/dist/cli-f68dq32t.js +0 -282
- package/dist/cli-fgxfjapz.js +0 -234
- package/dist/cli-fqxtcj42.js +0 -75
- package/dist/cli-g519ev8e.js +0 -89
- package/dist/cli-j47q7z51.js +0 -98
- package/dist/cli-k3q2s02f.js +0 -54
- package/dist/cli-m2zc03pj.js +0 -106
- package/dist/cli-nnj05pns.js +0 -41
- package/dist/cli-p7bb5zr2.js +0 -14
- package/dist/cli-pd4aspw0.js +0 -208
- package/dist/cli-py23qtsd.js +0 -132
- package/dist/cli-qq1ktr8q.js +0 -234
- package/dist/cli-qr7pzwpv.js +0 -67
- package/dist/cli-qsc39jca.js +0 -275
- package/dist/cli-r2zaznxh.js +0 -123
- package/dist/cli-re3ntm60.js +0 -48
- package/dist/cli-s4bb7m1c.js +0 -407
- package/dist/cli-thr9xsnm.js +0 -109
- package/dist/cli-v5ahh2k7.js +0 -462
- package/dist/cli-vrtkz6f0.js +0 -124
- package/dist/cli-w3yfxvfc.js +0 -85
- package/dist/cli-w7nrc7bk.js +0 -267
- package/dist/cli-wrzdcgnt.js +0 -82
- package/dist/cli-y3mjprpv.js +0 -31
- package/dist/cli-ynsy144r.js +0 -196
- package/dist/cloudflare-mkq6s4p7.js +0 -51
- package/dist/command-05jwq2ce.js +0 -1108
- package/dist/command-jqp93n3b.js +0 -269
- package/dist/command-nmgz9x53.js +0 -21
- 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-g8bjf46s.js +0 -36
- package/dist/completion-n9yqehnf.js +0 -38
- package/dist/concurrent-atba349a.js +0 -96
- package/dist/config/load.d.ts +0 -28
- package/dist/config/schema.d.ts +0 -231
- package/dist/config-45ts3ey1.js +0 -31
- package/dist/config-d7h13gsg.js +0 -22
- package/dist/create-pzjz0d84.js +0 -38
- package/dist/creds-kgbnkj91.js +0 -34
- package/dist/d1-local-mpc7ykq4.js +0 -62
- package/dist/deploy-napjwj8w.js +0 -18
- package/dist/deps-7xxc0a5z.js +0 -334
- package/dist/dev-z4s47pvj.js +0 -114
- package/dist/discover-9egde25c.js +0 -14
- package/dist/doctor-nhn8fsqn.js +0 -153
- package/dist/dotenv-bsk2m68j.js +0 -15
- package/dist/dump-4s2wbydq.js +0 -60
- package/dist/entries-358fsdbg.js +0 -311
- package/dist/errors-1fjbr7ee.js +0 -10
- package/dist/exec-f7s2cper.js +0 -53
- package/dist/export-1eszfz4q.js +0 -65
- package/dist/fastlane-8yepfr2p.js +0 -26
- package/dist/fastlane-faays7j0.js +0 -38
- package/dist/fixes-nyvcnb08.js +0 -27
- package/dist/format-tt14cck9.js +0 -43
- package/dist/git-qyqfbf8e.js +0 -36
- package/dist/github-em8sgwvy.js +0 -95
- package/dist/gradle-zgbmvvej.js +0 -39
- package/dist/index-cx34x4np.js +0 -874
- package/dist/index-erv82p4z.js +0 -1528
- package/dist/index-gqmhnjkq.js +0 -49
- package/dist/index-jqfz6hfy.js +0 -2659
- package/dist/index-mm4ht8yh.js +0 -9
- package/dist/index-s3ehw02w.js +0 -1610
- package/dist/index-tvegt8ab.js +0 -25
- package/dist/init-025v8xjs.js +0 -464
- package/dist/init-dyd1b74n.js +0 -80
- package/dist/init-ktq9qfgk.js +0 -78
- package/dist/install-c87y65cw.js +0 -50
- package/dist/install-wz1de5cv.js +0 -35
- package/dist/ios-yas39gap.js +0 -50
- package/dist/kitref-p727zpk7.js +0 -24
- package/dist/kotlin-66qna77x.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/index.d.ts +0 -96
- 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 -20
- 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 -78
- 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-hx7b83kn.js +0 -43
- package/dist/list-ks9e93rx.js +0 -61
- package/dist/list-xxsdc51s.js +0 -34
- package/dist/load-1fxmvh9n.js +0 -51
- package/dist/load-8y6s655t.js +0 -170
- package/dist/load-ak66yg9j.js +0 -27
- package/dist/log-g1ebh60s.js +0 -15
- package/dist/logs-zjbmpm40.js +0 -62
- package/dist/maestro-zw9p32cc.js +0 -30
- package/dist/main-1v5dgfdb.js +0 -1747
- package/dist/metadata-4jn2zdsm.js +0 -44
- package/dist/migrate-2a66bm3x.js +0 -38
- package/dist/mobile-0m026dzx.js +0 -40
- package/dist/module-2bn1p66a.js +0 -119
- package/dist/notes-pyvrbdgg.js +0 -21
- package/dist/open-rn88e9c5.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-8ewt3hs4.js +0 -35
- package/dist/promote-8g49cxj1.js +0 -63
- package/dist/promote-eezgfcm6.js +0 -290
- package/dist/prompt-3wwegvqc.js +0 -15
- package/dist/pull-0cjcf2jg.js +0 -39
- package/dist/push-qndrsnvg.js +0 -63
- package/dist/push-run-y2gb3a0r.js +0 -148
- package/dist/push-ysd4zzad.js +0 -44
- package/dist/qa-ha84kjzm.js +0 -40
- package/dist/render-hkvej41k.js +0 -24
- package/dist/repair-6989jrqg.js +0 -104
- package/dist/reset-710zhbbj.js +0 -110
- package/dist/restore-b744ykwg.js +0 -122
- package/dist/rollback-3vkb819m.js +0 -134
- package/dist/rollout-kdfmvwwv.js +0 -56
- package/dist/rollout-z1r0r7h1.js +0 -188
- package/dist/rotate-762tg2z9.js +0 -80
- package/dist/rotate-q5psaddv.js +0 -168
- package/dist/run-k2w6qqms.js +0 -56
- package/dist/scaffold-5mzc135g.js +0 -37
- package/dist/secrets-5hej44bb.js +0 -24
- package/dist/seed-9xw8ppn9.js +0 -37
- package/dist/service-n6kgj7ba.js +0 -111
- package/dist/shots-byejd6g2.js +0 -46
- package/dist/show-47xz48ea.js +0 -50
- package/dist/sizes-3kpjxm9h.js +0 -51
- package/dist/status-fk3frgy1.js +0 -41
- package/dist/status-stvsvpn3.js +0 -29
- package/dist/statusbar-tkznwzqz.js +0 -15
- package/dist/statusbar-x2rjwbz5.js +0 -55
- package/dist/steps-t6q8yxbb.js +0 -22
- package/dist/sync-7d7v2f5r.js +0 -53
- package/dist/target-hpmjbrrh.js +0 -78
- package/dist/targets-vvzvaskd.js +0 -32
- package/dist/test-f07bcpby.js +0 -31
- package/dist/toml-3fxsdkhr.js +0 -14
- package/dist/toolchain-wd7hh812.js +0 -41
- package/dist/typecheck-ztfs5rb9.js +0 -28
- package/dist/uninstall-q8ewxkdr.js +0 -43
- package/dist/upgrade-g67qx155.js +0 -127
- package/dist/version-mnds3q7r.js +0 -39
- package/dist/worker-661hvwnb.js +0 -59
- package/dist/wrangler-mvnagswd.js +0 -46
- package/dist/xcode-h3nt62t8.js +0 -75
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.sha512 +0 -1
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.0/kit-plugins-0.7.0.jar → 0.8.0/kit-plugins-0.8.0.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.7.0/kit-plugins-0.7.0.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.0/kit-plugins-0.7.0.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.0/kit-plugins-0.7.0.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.0/kit-plugins-0.7.0.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.0/kit-settings-0.7.0.jar → 0.8.0/kit-settings-0.8.0.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.7.0/kit-settings-0.7.0.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.0/kit-settings-0.7.0.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.0/kit-settings-0.7.0.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.0/kit-settings-0.7.0.jar.sha512 → 0.8.0/kit-settings-0.8.0.jar.sha512} +0 -0
package/dist/main-1v5dgfdb.js
DELETED
|
@@ -1,1747 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
package_default
|
|
4
|
-
} from "./cli-2vx7vz1p.js";
|
|
5
|
-
import {
|
|
6
|
-
builtins,
|
|
7
|
-
groupDescriptions
|
|
8
|
-
} from "./cli-17hmeca5.js";
|
|
9
|
-
import {
|
|
10
|
-
importRepoCommand,
|
|
11
|
-
listRepoCommands
|
|
12
|
-
} from "./cli-0h5bs7he.js";
|
|
13
|
-
import {
|
|
14
|
-
findRoot,
|
|
15
|
-
loadConfig,
|
|
16
|
-
loadDotEnv
|
|
17
|
-
} from "./cli-w3yfxvfc.js";
|
|
18
|
-
import"./cli-wrzdcgnt.js";
|
|
19
|
-
import"./cli-e7kt35ys.js";
|
|
20
|
-
import {
|
|
21
|
-
computeFlags,
|
|
22
|
-
toGunshi,
|
|
23
|
-
withBuiltin
|
|
24
|
-
} from "./cli-0gq9ayk0.js";
|
|
25
|
-
import {
|
|
26
|
-
installSignalHandlers,
|
|
27
|
-
interrupted,
|
|
28
|
-
runCleanup
|
|
29
|
-
} from "./cli-fqxtcj42.js";
|
|
30
|
-
import {
|
|
31
|
-
emitJson,
|
|
32
|
-
jsonEmitted,
|
|
33
|
-
log
|
|
34
|
-
} from "./cli-540nme4e.js";
|
|
35
|
-
import {
|
|
36
|
-
require_picocolors
|
|
37
|
-
} from "./cli-5wasc5mr.js";
|
|
38
|
-
import {
|
|
39
|
-
ExitCode,
|
|
40
|
-
KitError
|
|
41
|
-
} from "./cli-7wvrehng.js";
|
|
42
|
-
import {
|
|
43
|
-
__require,
|
|
44
|
-
__toESM
|
|
45
|
-
} from "./cli-re3ntm60.js";
|
|
46
|
-
|
|
47
|
-
// node_modules/gunshi/lib/utils-DbRhwNIU.js
|
|
48
|
-
function kebabnize(str) {
|
|
49
|
-
return str.replace(/[A-Z]/g, (match, offset) => (offset > 0 ? "-" : "") + match.toLowerCase());
|
|
50
|
-
}
|
|
51
|
-
function formatChoices(choices) {
|
|
52
|
-
return choices.map((value) => JSON.stringify(value)).join(", ");
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// node_modules/gunshi/lib/utils.js
|
|
56
|
-
function isLazyCommand(cmd) {
|
|
57
|
-
return typeof cmd === "function" && "commandName" in cmd && !!cmd.commandName;
|
|
58
|
-
}
|
|
59
|
-
async function resolveLazyCommand(cmd, name, needRunResolving = false) {
|
|
60
|
-
let command;
|
|
61
|
-
if (isLazyCommand(cmd)) {
|
|
62
|
-
const baseCommand = {
|
|
63
|
-
name: cmd.commandName,
|
|
64
|
-
description: cmd.description,
|
|
65
|
-
args: cmd.args,
|
|
66
|
-
examples: cmd.examples,
|
|
67
|
-
internal: cmd.internal,
|
|
68
|
-
entry: cmd.entry,
|
|
69
|
-
subCommands: cmd.subCommands
|
|
70
|
-
};
|
|
71
|
-
if ("resource" in cmd && cmd.resource)
|
|
72
|
-
baseCommand.resource = cmd.resource;
|
|
73
|
-
command = Object.assign(create(), baseCommand);
|
|
74
|
-
if (needRunResolving) {
|
|
75
|
-
const loaded = await cmd();
|
|
76
|
-
if (typeof loaded === "function")
|
|
77
|
-
command.run = loaded;
|
|
78
|
-
else if (typeof loaded === "object") {
|
|
79
|
-
if (loaded.run == null)
|
|
80
|
-
throw new TypeError(`'run' is required in command: ${cmd.name || name}`);
|
|
81
|
-
command.run = loaded.run;
|
|
82
|
-
command.name = loaded.name;
|
|
83
|
-
command.description = loaded.description;
|
|
84
|
-
command.args = loaded.args;
|
|
85
|
-
command.examples = loaded.examples;
|
|
86
|
-
command.internal = loaded.internal;
|
|
87
|
-
command.entry = loaded.entry;
|
|
88
|
-
command.subCommands = loaded.subCommands || cmd.subCommands;
|
|
89
|
-
if ("resource" in loaded && loaded.resource)
|
|
90
|
-
command.resource = loaded.resource;
|
|
91
|
-
} else
|
|
92
|
-
throw new TypeError(`Cannot resolve command: ${cmd.name || name}`);
|
|
93
|
-
}
|
|
94
|
-
} else
|
|
95
|
-
command = Object.assign(create(), cmd);
|
|
96
|
-
if (command.name == null && name)
|
|
97
|
-
command.name = name;
|
|
98
|
-
return deepFreeze(command);
|
|
99
|
-
}
|
|
100
|
-
function create(obj = null) {
|
|
101
|
-
return Object.create(obj);
|
|
102
|
-
}
|
|
103
|
-
function log2(...args) {
|
|
104
|
-
console.log(...args);
|
|
105
|
-
}
|
|
106
|
-
function getCommandSubCommands(cmd) {
|
|
107
|
-
const subCommands = isLazyCommand(cmd) ? cmd.subCommands : typeof cmd === "object" ? cmd.subCommands : undefined;
|
|
108
|
-
if (!subCommands)
|
|
109
|
-
return;
|
|
110
|
-
if (subCommands instanceof Map)
|
|
111
|
-
return subCommands.size > 0 ? subCommands : undefined;
|
|
112
|
-
if (typeof subCommands === "object") {
|
|
113
|
-
const entries = Object.entries(subCommands);
|
|
114
|
-
if (entries.length === 0)
|
|
115
|
-
return;
|
|
116
|
-
const map = /* @__PURE__ */ new Map;
|
|
117
|
-
for (const [name, cmd2] of entries)
|
|
118
|
-
map.set(name, cmd2);
|
|
119
|
-
return map;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
function deepFreeze(obj, ignores = []) {
|
|
123
|
-
if (obj === null || typeof obj !== "object")
|
|
124
|
-
return obj;
|
|
125
|
-
for (const key of Object.keys(obj)) {
|
|
126
|
-
const value = obj[key];
|
|
127
|
-
if (ignores.includes(key))
|
|
128
|
-
continue;
|
|
129
|
-
if (typeof value === "object" && value !== null)
|
|
130
|
-
deepFreeze(value, ignores);
|
|
131
|
-
}
|
|
132
|
-
return Object.freeze(obj);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// node_modules/gunshi/lib/context-CAPhwgJJ.js
|
|
136
|
-
var ANONYMOUS_COMMAND_NAME = "(anonymous)";
|
|
137
|
-
var NOOP = () => {};
|
|
138
|
-
var CLI_OPTIONS_DEFAULT = {
|
|
139
|
-
name: undefined,
|
|
140
|
-
description: undefined,
|
|
141
|
-
version: undefined,
|
|
142
|
-
cwd: undefined,
|
|
143
|
-
usageSilent: false,
|
|
144
|
-
subCommands: undefined,
|
|
145
|
-
leftMargin: 2,
|
|
146
|
-
middleMargin: 10,
|
|
147
|
-
usageOptionType: false,
|
|
148
|
-
usageOptionValue: true,
|
|
149
|
-
strict: false,
|
|
150
|
-
renderHeader: undefined,
|
|
151
|
-
renderUsage: undefined,
|
|
152
|
-
renderValidationErrors: undefined,
|
|
153
|
-
plugins: undefined,
|
|
154
|
-
fallbackToEntry: false
|
|
155
|
-
};
|
|
156
|
-
async function createCommandContext({ args = {}, explicit = {}, values = {}, positionals = [], rest = [], argv = [], tokens = [], command = {}, extensions = {}, cliOptions = {}, callMode = "entry", commandPath = [], omitted = false, validationError }) {
|
|
157
|
-
const _args = Object.entries(args).reduce((acc, [key, value]) => {
|
|
158
|
-
acc[key] = Object.assign(create(), value);
|
|
159
|
-
return acc;
|
|
160
|
-
}, create());
|
|
161
|
-
const env = Object.assign(create(), CLI_OPTIONS_DEFAULT, cliOptions);
|
|
162
|
-
if (command.rendering) {
|
|
163
|
-
const { header, usage, validationErrors } = command.rendering;
|
|
164
|
-
if (header !== undefined)
|
|
165
|
-
env.renderHeader = header;
|
|
166
|
-
if (usage !== undefined)
|
|
167
|
-
env.renderUsage = usage;
|
|
168
|
-
if (validationErrors !== undefined)
|
|
169
|
-
env.renderValidationErrors = validationErrors;
|
|
170
|
-
}
|
|
171
|
-
const core = Object.assign(create(), {
|
|
172
|
-
name: getCommandName(command),
|
|
173
|
-
description: command.description,
|
|
174
|
-
omitted,
|
|
175
|
-
callMode,
|
|
176
|
-
commandPath,
|
|
177
|
-
env,
|
|
178
|
-
args: _args,
|
|
179
|
-
explicit,
|
|
180
|
-
values,
|
|
181
|
-
positionals,
|
|
182
|
-
rest,
|
|
183
|
-
_: argv,
|
|
184
|
-
tokens,
|
|
185
|
-
toKebab: command.toKebab,
|
|
186
|
-
log: cliOptions.usageSilent ? NOOP : log2,
|
|
187
|
-
validationError
|
|
188
|
-
});
|
|
189
|
-
if (Object.keys(extensions).length > 0) {
|
|
190
|
-
const ext = create(null);
|
|
191
|
-
Object.defineProperty(core, "extensions", {
|
|
192
|
-
value: ext,
|
|
193
|
-
writable: false,
|
|
194
|
-
enumerable: true,
|
|
195
|
-
configurable: true
|
|
196
|
-
});
|
|
197
|
-
for (const [key, extension] of Object.entries(extensions)) {
|
|
198
|
-
ext[key] = await extension.factory(core, command);
|
|
199
|
-
if (extension.onFactory)
|
|
200
|
-
await extension.onFactory(core, command);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
return deepFreeze(core, ["extensions"]);
|
|
204
|
-
}
|
|
205
|
-
function getCommandName(cmd) {
|
|
206
|
-
if (isLazyCommand(cmd))
|
|
207
|
-
return cmd.commandName || cmd.name || "(anonymous)";
|
|
208
|
-
else if (typeof cmd === "object")
|
|
209
|
-
return cmd.name || "(anonymous)";
|
|
210
|
-
else
|
|
211
|
-
return ANONYMOUS_COMMAND_NAME;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// node_modules/gunshi/lib/resolver-D5skgYcF.js
|
|
215
|
-
var HYPHEN_CHAR = "-";
|
|
216
|
-
var HYPHEN_CODE = HYPHEN_CHAR.codePointAt(0);
|
|
217
|
-
var EQUAL_CHAR = "=";
|
|
218
|
-
var EQUAL_CODE = EQUAL_CHAR.codePointAt(0);
|
|
219
|
-
var TERMINATOR = "--";
|
|
220
|
-
var SHORT_OPTION_PREFIX = HYPHEN_CHAR;
|
|
221
|
-
var LONG_OPTION_PREFIX = "--";
|
|
222
|
-
function parseArgs(args, options = {}) {
|
|
223
|
-
const { allowCompatible = false } = options;
|
|
224
|
-
const tokens = [];
|
|
225
|
-
const remainings = [...args];
|
|
226
|
-
let index = -1;
|
|
227
|
-
let groupCount = 0;
|
|
228
|
-
let hasShortValueSeparator = false;
|
|
229
|
-
while (remainings.length > 0) {
|
|
230
|
-
const arg = remainings.shift();
|
|
231
|
-
if (arg == undefined)
|
|
232
|
-
break;
|
|
233
|
-
const nextArg = remainings[0];
|
|
234
|
-
if (groupCount > 0)
|
|
235
|
-
groupCount--;
|
|
236
|
-
else
|
|
237
|
-
index++;
|
|
238
|
-
if (arg === TERMINATOR) {
|
|
239
|
-
tokens.push({
|
|
240
|
-
kind: "option-terminator",
|
|
241
|
-
index
|
|
242
|
-
});
|
|
243
|
-
const mapped = remainings.map((arg2) => {
|
|
244
|
-
return {
|
|
245
|
-
kind: "positional",
|
|
246
|
-
index: ++index,
|
|
247
|
-
value: arg2
|
|
248
|
-
};
|
|
249
|
-
});
|
|
250
|
-
tokens.push(...mapped);
|
|
251
|
-
break;
|
|
252
|
-
}
|
|
253
|
-
if (isShortOption(arg)) {
|
|
254
|
-
const shortOption = arg.charAt(1);
|
|
255
|
-
let value;
|
|
256
|
-
let inlineValue;
|
|
257
|
-
if (groupCount) {
|
|
258
|
-
tokens.push({
|
|
259
|
-
kind: "option",
|
|
260
|
-
name: shortOption,
|
|
261
|
-
rawName: arg,
|
|
262
|
-
index,
|
|
263
|
-
value,
|
|
264
|
-
inlineValue
|
|
265
|
-
});
|
|
266
|
-
if (groupCount === 1 && hasOptionValue(nextArg)) {
|
|
267
|
-
value = remainings.shift();
|
|
268
|
-
if (hasShortValueSeparator) {
|
|
269
|
-
inlineValue = true;
|
|
270
|
-
hasShortValueSeparator = false;
|
|
271
|
-
}
|
|
272
|
-
tokens.push({
|
|
273
|
-
kind: "option",
|
|
274
|
-
index,
|
|
275
|
-
value,
|
|
276
|
-
inlineValue
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
} else
|
|
280
|
-
tokens.push({
|
|
281
|
-
kind: "option",
|
|
282
|
-
name: shortOption,
|
|
283
|
-
rawName: arg,
|
|
284
|
-
index,
|
|
285
|
-
value,
|
|
286
|
-
inlineValue
|
|
287
|
-
});
|
|
288
|
-
if (value != null)
|
|
289
|
-
++index;
|
|
290
|
-
continue;
|
|
291
|
-
}
|
|
292
|
-
if (isShortOptionGroup(arg)) {
|
|
293
|
-
const expanded = [];
|
|
294
|
-
let shortValue = "";
|
|
295
|
-
for (let i = 1;i < arg.length; i++) {
|
|
296
|
-
const shortableOption = arg.charAt(i);
|
|
297
|
-
if (hasShortValueSeparator)
|
|
298
|
-
shortValue += shortableOption;
|
|
299
|
-
else if (!allowCompatible && shortableOption.codePointAt(0) === EQUAL_CODE)
|
|
300
|
-
hasShortValueSeparator = true;
|
|
301
|
-
else
|
|
302
|
-
expanded.push(`${SHORT_OPTION_PREFIX}${shortableOption}`);
|
|
303
|
-
}
|
|
304
|
-
if (shortValue)
|
|
305
|
-
expanded.push(shortValue);
|
|
306
|
-
remainings.unshift(...expanded);
|
|
307
|
-
groupCount = expanded.length;
|
|
308
|
-
continue;
|
|
309
|
-
}
|
|
310
|
-
if (isLongOption(arg)) {
|
|
311
|
-
const longOption = arg.slice(2);
|
|
312
|
-
tokens.push({
|
|
313
|
-
kind: "option",
|
|
314
|
-
name: longOption,
|
|
315
|
-
rawName: arg,
|
|
316
|
-
index,
|
|
317
|
-
value: undefined,
|
|
318
|
-
inlineValue: undefined
|
|
319
|
-
});
|
|
320
|
-
continue;
|
|
321
|
-
}
|
|
322
|
-
if (isLongOptionAndValue(arg)) {
|
|
323
|
-
const equalIndex = arg.indexOf(EQUAL_CHAR);
|
|
324
|
-
const longOption = arg.slice(2, equalIndex);
|
|
325
|
-
const value = arg.slice(equalIndex + 1);
|
|
326
|
-
tokens.push({
|
|
327
|
-
kind: "option",
|
|
328
|
-
name: longOption,
|
|
329
|
-
rawName: `${LONG_OPTION_PREFIX}${longOption}`,
|
|
330
|
-
index,
|
|
331
|
-
value,
|
|
332
|
-
inlineValue: true
|
|
333
|
-
});
|
|
334
|
-
continue;
|
|
335
|
-
}
|
|
336
|
-
tokens.push({
|
|
337
|
-
kind: "positional",
|
|
338
|
-
index,
|
|
339
|
-
value: arg
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
return tokens;
|
|
343
|
-
}
|
|
344
|
-
function isShortOption(arg) {
|
|
345
|
-
return arg.length === 2 && arg.codePointAt(0) === HYPHEN_CODE && arg.codePointAt(1) !== HYPHEN_CODE;
|
|
346
|
-
}
|
|
347
|
-
function isShortOptionGroup(arg) {
|
|
348
|
-
if (arg.length <= 2)
|
|
349
|
-
return false;
|
|
350
|
-
if (arg.codePointAt(0) !== HYPHEN_CODE)
|
|
351
|
-
return false;
|
|
352
|
-
if (arg.codePointAt(1) === HYPHEN_CODE)
|
|
353
|
-
return false;
|
|
354
|
-
return true;
|
|
355
|
-
}
|
|
356
|
-
function isLongOption(arg) {
|
|
357
|
-
return hasLongOptionPrefix(arg) && !arg.includes(EQUAL_CHAR, 3);
|
|
358
|
-
}
|
|
359
|
-
function isLongOptionAndValue(arg) {
|
|
360
|
-
return hasLongOptionPrefix(arg) && arg.includes(EQUAL_CHAR, 3);
|
|
361
|
-
}
|
|
362
|
-
function hasLongOptionPrefix(arg) {
|
|
363
|
-
return arg.startsWith(LONG_OPTION_PREFIX) && arg.length > 2;
|
|
364
|
-
}
|
|
365
|
-
function hasOptionValue(value) {
|
|
366
|
-
return !(value == null) && value.codePointAt(0) !== HYPHEN_CODE;
|
|
367
|
-
}
|
|
368
|
-
var ArgsValidationErrorKeys = {
|
|
369
|
-
requiredOption: "err:arg:required-option",
|
|
370
|
-
requiredPositional: "err:arg:required-positional",
|
|
371
|
-
invalidType: "err:arg:invalid-type",
|
|
372
|
-
invalidChoice: "err:arg:invalid-choice",
|
|
373
|
-
customParse: "err:arg:custom-parse",
|
|
374
|
-
unknownOption: "err:arg:unknown-option"
|
|
375
|
-
};
|
|
376
|
-
var ARGS_VALIDATION_ERROR_BRAND = Symbol.for("args-tokens.ArgsValidationError");
|
|
377
|
-
var ArgsValidationError = class extends Error {
|
|
378
|
-
code;
|
|
379
|
-
values;
|
|
380
|
-
constructor(message, options = {}) {
|
|
381
|
-
super(message, { cause: options.cause });
|
|
382
|
-
this.name = "ArgsValidationError";
|
|
383
|
-
this.code = options.code;
|
|
384
|
-
this.values = options.values ?? {};
|
|
385
|
-
Object.defineProperty(this, ARGS_VALIDATION_ERROR_BRAND, {
|
|
386
|
-
value: true,
|
|
387
|
-
enumerable: false,
|
|
388
|
-
writable: false,
|
|
389
|
-
configurable: false
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
function isArgsValidationError(error) {
|
|
394
|
-
if (error instanceof ArgsValidationError)
|
|
395
|
-
return true;
|
|
396
|
-
if (typeof error !== "object" || error === null)
|
|
397
|
-
return false;
|
|
398
|
-
if (!Object.hasOwn(error, ARGS_VALIDATION_ERROR_BRAND) || error[ARGS_VALIDATION_ERROR_BRAND] !== true)
|
|
399
|
-
return false;
|
|
400
|
-
const values = error.values;
|
|
401
|
-
return typeof values === "object" && values !== null;
|
|
402
|
-
}
|
|
403
|
-
var SKIP_POSITIONAL_DEFAULT = -1;
|
|
404
|
-
function resolveArgs(args, tokens, { shortGrouping = false, skipPositional = SKIP_POSITIONAL_DEFAULT, toKebab = false } = {}) {
|
|
405
|
-
const skipPositionalIndex = typeof skipPositional === "number" ? Math.max(skipPositional, SKIP_POSITIONAL_DEFAULT) : SKIP_POSITIONAL_DEFAULT;
|
|
406
|
-
const rest = [];
|
|
407
|
-
const optionTokens = [];
|
|
408
|
-
const positionalTokens = [];
|
|
409
|
-
const argEntries = Object.entries(args);
|
|
410
|
-
let currentLongOption;
|
|
411
|
-
let currentShortOption;
|
|
412
|
-
const expandableShortOptions = [];
|
|
413
|
-
function getOptionName(rawArg, schema) {
|
|
414
|
-
return toKebab || schema.toKebab ? kebabnize(rawArg) : rawArg;
|
|
415
|
-
}
|
|
416
|
-
function checkLongTokenName(option, schema, token) {
|
|
417
|
-
if (token.rawName == undefined || !hasLongOptionPrefix(token.rawName))
|
|
418
|
-
return false;
|
|
419
|
-
return token.name === option || schema.type === "boolean" && schema.negatable === true && token.name === `no-${option}`;
|
|
420
|
-
}
|
|
421
|
-
function toShortValue() {
|
|
422
|
-
if (expandableShortOptions.length === 0)
|
|
423
|
-
return;
|
|
424
|
-
else {
|
|
425
|
-
const value = expandableShortOptions.map((token) => token.name).join("");
|
|
426
|
-
expandableShortOptions.length = 0;
|
|
427
|
-
return value;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
function applyLongOptionValue(value) {
|
|
431
|
-
if (currentLongOption) {
|
|
432
|
-
currentLongOption.value = value;
|
|
433
|
-
optionTokens.push({ ...currentLongOption });
|
|
434
|
-
currentLongOption = undefined;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
function applyShortOptionValue(value) {
|
|
438
|
-
if (currentShortOption) {
|
|
439
|
-
currentShortOption.value = value || toShortValue();
|
|
440
|
-
optionTokens.push({ ...currentShortOption });
|
|
441
|
-
currentShortOption = undefined;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
const schemas = Object.values(args);
|
|
445
|
-
const booleanLongOptionNames = /* @__PURE__ */ new Set;
|
|
446
|
-
for (const [rawArg, schema] of Object.entries(args)) {
|
|
447
|
-
if (schema.type !== "boolean")
|
|
448
|
-
continue;
|
|
449
|
-
const arg = toKebab || schema.toKebab ? kebabnize(rawArg) : rawArg;
|
|
450
|
-
booleanLongOptionNames.add(arg);
|
|
451
|
-
if (schema.negatable === true)
|
|
452
|
-
booleanLongOptionNames.add(`no-${arg}`);
|
|
453
|
-
}
|
|
454
|
-
let terminated = false;
|
|
455
|
-
for (let i = 0;i < tokens.length; i++) {
|
|
456
|
-
const token = tokens[i];
|
|
457
|
-
if (token.kind === "positional") {
|
|
458
|
-
if (terminated && token.value) {
|
|
459
|
-
rest.push(token.value);
|
|
460
|
-
continue;
|
|
461
|
-
}
|
|
462
|
-
if (currentShortOption) {
|
|
463
|
-
if (schemas.find((schema) => schema.short === currentShortOption.name && schema.type === "boolean")) {
|
|
464
|
-
positionalTokens.push({ ...token });
|
|
465
|
-
applyShortOptionValue();
|
|
466
|
-
} else
|
|
467
|
-
applyShortOptionValue(token.value);
|
|
468
|
-
} else if (currentLongOption) {
|
|
469
|
-
if (booleanLongOptionNames.has(currentLongOption.name)) {
|
|
470
|
-
positionalTokens.push({ ...token });
|
|
471
|
-
applyLongOptionValue();
|
|
472
|
-
} else
|
|
473
|
-
applyLongOptionValue(token.value);
|
|
474
|
-
} else
|
|
475
|
-
positionalTokens.push({ ...token });
|
|
476
|
-
} else if (token.kind === "option") {
|
|
477
|
-
if (token.rawName) {
|
|
478
|
-
if (hasLongOptionPrefix(token.rawName)) {
|
|
479
|
-
applyLongOptionValue();
|
|
480
|
-
if (token.inlineValue)
|
|
481
|
-
optionTokens.push({ ...token });
|
|
482
|
-
else
|
|
483
|
-
currentLongOption = { ...token };
|
|
484
|
-
applyShortOptionValue();
|
|
485
|
-
} else if (isShortOption(token.rawName)) {
|
|
486
|
-
if (currentShortOption) {
|
|
487
|
-
if (currentShortOption.index === token.index) {
|
|
488
|
-
if (shortGrouping) {
|
|
489
|
-
currentShortOption.value = token.value;
|
|
490
|
-
optionTokens.push({ ...currentShortOption });
|
|
491
|
-
currentShortOption = { ...token };
|
|
492
|
-
} else
|
|
493
|
-
expandableShortOptions.push({ ...token });
|
|
494
|
-
} else {
|
|
495
|
-
currentShortOption.value = toShortValue();
|
|
496
|
-
optionTokens.push({ ...currentShortOption });
|
|
497
|
-
currentShortOption = { ...token };
|
|
498
|
-
}
|
|
499
|
-
applyLongOptionValue();
|
|
500
|
-
} else {
|
|
501
|
-
currentShortOption = { ...token };
|
|
502
|
-
applyLongOptionValue();
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
} else {
|
|
506
|
-
if (currentShortOption && currentShortOption.index == token.index && token.inlineValue) {
|
|
507
|
-
currentShortOption.value = token.value;
|
|
508
|
-
optionTokens.push({ ...currentShortOption });
|
|
509
|
-
currentShortOption = undefined;
|
|
510
|
-
}
|
|
511
|
-
applyLongOptionValue();
|
|
512
|
-
}
|
|
513
|
-
} else {
|
|
514
|
-
if (token.kind === "option-terminator")
|
|
515
|
-
terminated = true;
|
|
516
|
-
applyLongOptionValue();
|
|
517
|
-
applyShortOptionValue();
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
applyLongOptionValue();
|
|
521
|
-
applyShortOptionValue();
|
|
522
|
-
const values = Object.create(null);
|
|
523
|
-
const errors = [];
|
|
524
|
-
const explicit = Object.create(null);
|
|
525
|
-
const actualInputNames = /* @__PURE__ */ new Map;
|
|
526
|
-
let requiredPositionalsAfter;
|
|
527
|
-
const positionalItemCount = tokens.filter((token) => token.kind === "positional").length;
|
|
528
|
-
function getPositionalSkipIndex() {
|
|
529
|
-
return Math.min(skipPositionalIndex, positionalItemCount);
|
|
530
|
-
}
|
|
531
|
-
function getRequiredPositionalsAfter(rawArg) {
|
|
532
|
-
requiredPositionalsAfter ??= createRequiredPositionalsAfter(argEntries);
|
|
533
|
-
return requiredPositionalsAfter[rawArg] ?? 0;
|
|
534
|
-
}
|
|
535
|
-
let positionalsCount = 0;
|
|
536
|
-
for (const [rawArg, schema] of argEntries) {
|
|
537
|
-
const arg = getOptionName(rawArg, schema);
|
|
538
|
-
explicit[rawArg] = false;
|
|
539
|
-
if (schema.type === "positional") {
|
|
540
|
-
if (skipPositionalIndex > SKIP_POSITIONAL_DEFAULT)
|
|
541
|
-
while (positionalsCount <= getPositionalSkipIndex())
|
|
542
|
-
positionalsCount++;
|
|
543
|
-
if (schema.multiple) {
|
|
544
|
-
const availablePositionals = Math.max(positionalTokens.length - positionalsCount, 0);
|
|
545
|
-
if (availablePositionals > 0) {
|
|
546
|
-
const requiredPositionals = getRequiredPositionalsAfter(rawArg);
|
|
547
|
-
const positionalsToConsume = Math.max(availablePositionals - requiredPositionals, 0);
|
|
548
|
-
if (positionalsToConsume > 0) {
|
|
549
|
-
const endPositionals = positionalsCount + positionalsToConsume;
|
|
550
|
-
if (typeof schema.parse === "function") {
|
|
551
|
-
const parsed = [];
|
|
552
|
-
for (let i = positionalsCount;i < endPositionals; i++) {
|
|
553
|
-
const p = positionalTokens[i];
|
|
554
|
-
const [parsedValue, error] = parseSchemaValue(p.value, rawArg, arg, schema);
|
|
555
|
-
if (error)
|
|
556
|
-
errors.push(error);
|
|
557
|
-
else
|
|
558
|
-
parsed.push(parsedValue);
|
|
559
|
-
}
|
|
560
|
-
values[rawArg] = parsed;
|
|
561
|
-
} else {
|
|
562
|
-
const valuesArray = [];
|
|
563
|
-
for (let i = positionalsCount;i < endPositionals; i++)
|
|
564
|
-
valuesArray.push(positionalTokens[i].value);
|
|
565
|
-
values[rawArg] = valuesArray;
|
|
566
|
-
}
|
|
567
|
-
positionalsCount = endPositionals;
|
|
568
|
-
explicit[rawArg] = true;
|
|
569
|
-
} else if (schema.required)
|
|
570
|
-
errors.push(createRequireError(rawArg, arg, schema));
|
|
571
|
-
} else if (schema.required)
|
|
572
|
-
errors.push(createRequireError(rawArg, arg, schema));
|
|
573
|
-
} else {
|
|
574
|
-
const positional = positionalTokens[positionalsCount];
|
|
575
|
-
if (shouldRequireMissingSinglePositional(schema)) {
|
|
576
|
-
if (positional != null) {
|
|
577
|
-
resolveSinglePositionalValue(values, errors, rawArg, arg, schema, positional);
|
|
578
|
-
explicit[rawArg] = true;
|
|
579
|
-
positionalsCount++;
|
|
580
|
-
} else
|
|
581
|
-
errors.push(createRequireError(rawArg, arg, schema));
|
|
582
|
-
continue;
|
|
583
|
-
}
|
|
584
|
-
if (positional != null) {
|
|
585
|
-
const requiredPositionals = getRequiredPositionalsAfter(rawArg);
|
|
586
|
-
if (Math.max(positionalTokens.length - positionalsCount, 0) > requiredPositionals) {
|
|
587
|
-
resolveSinglePositionalValue(values, errors, rawArg, arg, schema, positional);
|
|
588
|
-
explicit[rawArg] = true;
|
|
589
|
-
positionalsCount++;
|
|
590
|
-
continue;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
if (hasDefault(schema))
|
|
594
|
-
values[rawArg] = schema.default;
|
|
595
|
-
}
|
|
596
|
-
continue;
|
|
597
|
-
}
|
|
598
|
-
if (schema.required) {
|
|
599
|
-
if (!optionTokens.find((token) => {
|
|
600
|
-
return schema.short && token.name === schema.short && token.rawName != null && isShortOption(token.rawName) || checkLongTokenName(arg, schema, token);
|
|
601
|
-
})) {
|
|
602
|
-
errors.push(createRequireError(rawArg, arg, schema));
|
|
603
|
-
continue;
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
for (let i = 0;i < optionTokens.length; i++) {
|
|
607
|
-
const token = optionTokens[i];
|
|
608
|
-
if (checkLongTokenName(arg, schema, token) || schema.short === token.name && token.rawName != null && isShortOption(token.rawName)) {
|
|
609
|
-
const invalid = validateRequire(token, rawArg, arg, schema);
|
|
610
|
-
if (invalid) {
|
|
611
|
-
errors.push(invalid);
|
|
612
|
-
continue;
|
|
613
|
-
}
|
|
614
|
-
explicit[rawArg] = true;
|
|
615
|
-
const rawName = token.rawName;
|
|
616
|
-
const actualInputName = isShortOption(rawName) ? `-${token.name}` : rawName;
|
|
617
|
-
actualInputNames.set(rawArg, actualInputName);
|
|
618
|
-
const [parsedValue, error] = parse(token, rawArg, arg, schema);
|
|
619
|
-
if (error)
|
|
620
|
-
errors.push(error);
|
|
621
|
-
else if (schema.multiple) {
|
|
622
|
-
values[rawArg] ||= [];
|
|
623
|
-
values[rawArg].push(parsedValue);
|
|
624
|
-
} else
|
|
625
|
-
values[rawArg] = parsedValue;
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
if (values[rawArg] == null && schema.default != null)
|
|
629
|
-
values[rawArg] = schema.default;
|
|
630
|
-
}
|
|
631
|
-
const conflictErrors = checkConflicts(args, explicit, toKebab, actualInputNames);
|
|
632
|
-
errors.push(...conflictErrors);
|
|
633
|
-
return {
|
|
634
|
-
values,
|
|
635
|
-
positionals: positionalTokens.map((token) => token.value),
|
|
636
|
-
rest,
|
|
637
|
-
error: errors.length > 0 ? new AggregateError(errors) : undefined,
|
|
638
|
-
explicit
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
function parse(token, rawArg, option, schema) {
|
|
642
|
-
if (typeof schema.parse === "function") {
|
|
643
|
-
if (schema.type === "boolean") {
|
|
644
|
-
const boolValue = !(schema.negatable && token.name.startsWith("no-"));
|
|
645
|
-
return parseSchemaValue(String(boolValue), rawArg, option, schema);
|
|
646
|
-
}
|
|
647
|
-
return parseSchemaValue(token.value ?? String(schema.default ?? ""), rawArg, option, schema);
|
|
648
|
-
}
|
|
649
|
-
switch (schema.type) {
|
|
650
|
-
case "string":
|
|
651
|
-
return typeof token.value === "string" ? [token.value || schema.default, undefined] : [undefined, createTypeError(rawArg, option, schema, token.value)];
|
|
652
|
-
case "boolean":
|
|
653
|
-
return [!(schema.negatable && token.name.startsWith("no-")), undefined];
|
|
654
|
-
case "number":
|
|
655
|
-
if (!isNumeric(token.value))
|
|
656
|
-
return [undefined, createTypeError(rawArg, option, schema, token.value)];
|
|
657
|
-
return token.value ? [+token.value, undefined] : [+(schema.default || ""), undefined];
|
|
658
|
-
case "enum":
|
|
659
|
-
if (schema.choices && !schema.choices.includes(token.value))
|
|
660
|
-
return [undefined, createChoiceError(rawArg, option, schema, token.value)];
|
|
661
|
-
return [token.value || schema.default, undefined];
|
|
662
|
-
case "custom":
|
|
663
|
-
throw new TypeError(`argument '${option}' should have a 'parse' function`);
|
|
664
|
-
default:
|
|
665
|
-
throw new Error(`Unsupported argument type '${schema.type}' for option '${option}'`);
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
function parseSchemaValue(value, rawArg, option, schema) {
|
|
669
|
-
try {
|
|
670
|
-
return [schema.parse(value), undefined];
|
|
671
|
-
} catch (error) {
|
|
672
|
-
return [undefined, createCustomParseError(error, rawArg, option, schema, value)];
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
function createRequireError(rawArg, option, schema) {
|
|
676
|
-
return new ArgResolveError(schema.type === "positional" ? `Positional argument '${option}' is required` : `Optional argument ${createOptionDisplayName(option, schema)} is required`, option, "required", schema, {
|
|
677
|
-
code: schema.type === "positional" ? ArgsValidationErrorKeys.requiredPositional : ArgsValidationErrorKeys.requiredOption,
|
|
678
|
-
values: schema.type === "positional" ? { name: rawArg } : {
|
|
679
|
-
displayName: createOptionDisplayName(option, schema),
|
|
680
|
-
name: rawArg
|
|
681
|
-
}
|
|
682
|
-
});
|
|
683
|
-
}
|
|
684
|
-
function resolveSinglePositionalValue(values, errors, rawArg, option, schema, positional) {
|
|
685
|
-
if (typeof schema.parse === "function") {
|
|
686
|
-
const [parsedValue, error] = parseSchemaValue(positional.value, rawArg, option, schema);
|
|
687
|
-
if (error)
|
|
688
|
-
errors.push(error);
|
|
689
|
-
else
|
|
690
|
-
values[rawArg] = parsedValue;
|
|
691
|
-
} else
|
|
692
|
-
values[rawArg] = positional.value;
|
|
693
|
-
}
|
|
694
|
-
function hasDefault(schema) {
|
|
695
|
-
return schema.default != null;
|
|
696
|
-
}
|
|
697
|
-
function shouldRequireMissingSinglePositional(schema) {
|
|
698
|
-
if (schema.required === true)
|
|
699
|
-
return true;
|
|
700
|
-
if (schema.required === false)
|
|
701
|
-
return false;
|
|
702
|
-
return !hasDefault(schema);
|
|
703
|
-
}
|
|
704
|
-
function getRequiredPositionalInputCount(schema) {
|
|
705
|
-
if (schema.type !== "positional")
|
|
706
|
-
return 0;
|
|
707
|
-
if (schema.multiple)
|
|
708
|
-
return schema.required === true ? 1 : 0;
|
|
709
|
-
return shouldRequireMissingSinglePositional(schema) ? 1 : 0;
|
|
710
|
-
}
|
|
711
|
-
function createRequiredPositionalsAfter(argEntries) {
|
|
712
|
-
const requiredPositionalsAfter = Object.create(null);
|
|
713
|
-
let minimumRequiredPositionals = 0;
|
|
714
|
-
for (let i = argEntries.length - 1;i >= 0; i--) {
|
|
715
|
-
const [rawArg, schema] = argEntries[i];
|
|
716
|
-
if (schema.type !== "positional")
|
|
717
|
-
continue;
|
|
718
|
-
requiredPositionalsAfter[rawArg] = minimumRequiredPositionals;
|
|
719
|
-
minimumRequiredPositionals += getRequiredPositionalInputCount(schema);
|
|
720
|
-
}
|
|
721
|
-
return requiredPositionalsAfter;
|
|
722
|
-
}
|
|
723
|
-
var ArgResolveError = class extends ArgsValidationError {
|
|
724
|
-
name;
|
|
725
|
-
schema;
|
|
726
|
-
type;
|
|
727
|
-
constructor(message, name, type, schema, options = {}) {
|
|
728
|
-
super(message, options);
|
|
729
|
-
this.name = name;
|
|
730
|
-
this.type = type;
|
|
731
|
-
this.schema = schema;
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
|
-
function validateRequire(token, rawArg, option, schema) {
|
|
735
|
-
if (schema.required && schema.type !== "boolean" && !token.value)
|
|
736
|
-
return createRequireError(rawArg, option, schema);
|
|
737
|
-
}
|
|
738
|
-
function isNumeric(str) {
|
|
739
|
-
return str.trim() !== "" && !isNaN(str);
|
|
740
|
-
}
|
|
741
|
-
function createTypeError(rawArg, option, schema, actual) {
|
|
742
|
-
return new ArgResolveError(`Optional argument ${createOptionDisplayName(option, schema)} should be '${schema.type}'`, option, "type", schema, {
|
|
743
|
-
code: ArgsValidationErrorKeys.invalidType,
|
|
744
|
-
values: {
|
|
745
|
-
displayName: createOptionDisplayName(option, schema),
|
|
746
|
-
name: rawArg,
|
|
747
|
-
expected: schema.type,
|
|
748
|
-
...actual != null ? { actual } : {}
|
|
749
|
-
}
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
function createChoiceError(rawArg, option, schema, actual) {
|
|
753
|
-
const choices = schema.choices ?? [];
|
|
754
|
-
return new ArgResolveError(`Optional argument ${createOptionDisplayName(option, schema)} should be chosen from '${schema.type}' [${formatChoices(choices)}] values`, option, "type", schema, {
|
|
755
|
-
code: ArgsValidationErrorKeys.invalidChoice,
|
|
756
|
-
values: {
|
|
757
|
-
displayName: createOptionDisplayName(option, schema),
|
|
758
|
-
name: rawArg,
|
|
759
|
-
expected: schema.type,
|
|
760
|
-
choices: formatChoices(choices),
|
|
761
|
-
choiceValues: [...choices],
|
|
762
|
-
...actual != null ? { actual } : {}
|
|
763
|
-
}
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
function createCustomParseError(error, rawArg, option, schema, value) {
|
|
767
|
-
const reused = reuseValidationError(error, rawArg, option, schema, value);
|
|
768
|
-
if (reused)
|
|
769
|
-
return reused;
|
|
770
|
-
const reason = getErrorReason(error);
|
|
771
|
-
return new ArgsValidationError(reason, {
|
|
772
|
-
code: ArgsValidationErrorKeys.customParse,
|
|
773
|
-
values: {
|
|
774
|
-
displayName: createArgumentDisplayName(option, schema),
|
|
775
|
-
name: rawArg,
|
|
776
|
-
reason
|
|
777
|
-
},
|
|
778
|
-
cause: error
|
|
779
|
-
});
|
|
780
|
-
}
|
|
781
|
-
function reuseValidationError(error, rawArg, option, schema, value) {
|
|
782
|
-
try {
|
|
783
|
-
if (isArgsValidationError(error)) {
|
|
784
|
-
augmentValidationError(error, rawArg, option, schema, value);
|
|
785
|
-
return error;
|
|
786
|
-
}
|
|
787
|
-
} catch {}
|
|
788
|
-
}
|
|
789
|
-
function augmentValidationError(error, rawArg, option, schema, value) {
|
|
790
|
-
const values = error.values;
|
|
791
|
-
values.name ??= rawArg;
|
|
792
|
-
values.displayName ??= createArgumentDisplayName(option, schema);
|
|
793
|
-
if ((error.code === ArgsValidationErrorKeys.invalidType || error.code === ArgsValidationErrorKeys.invalidChoice) && values.actual == null)
|
|
794
|
-
values.actual = value;
|
|
795
|
-
}
|
|
796
|
-
function getErrorReason(error) {
|
|
797
|
-
return error instanceof Error ? error.message : String(error);
|
|
798
|
-
}
|
|
799
|
-
function createArgumentDisplayName(option, schema) {
|
|
800
|
-
return schema.type === "positional" ? `'${option}'` : createOptionDisplayName(option, schema);
|
|
801
|
-
}
|
|
802
|
-
function createOptionDisplayName(option, schema) {
|
|
803
|
-
return `'--${option}'${schema.short ? ` or '-${schema.short}'` : ""}`;
|
|
804
|
-
}
|
|
805
|
-
function checkConflicts(args, explicit, toKebab, actualInputNames) {
|
|
806
|
-
for (const rawArg in args) {
|
|
807
|
-
const schema = args[rawArg];
|
|
808
|
-
if (!explicit[rawArg])
|
|
809
|
-
continue;
|
|
810
|
-
if (!schema.conflicts)
|
|
811
|
-
continue;
|
|
812
|
-
const conflicts = Array.isArray(schema.conflicts) ? schema.conflicts : [schema.conflicts];
|
|
813
|
-
for (let i = 0;i < conflicts.length; i++) {
|
|
814
|
-
const conflictingArg = conflicts[i];
|
|
815
|
-
if (!explicit[conflictingArg])
|
|
816
|
-
continue;
|
|
817
|
-
const arg = toKebab || schema.toKebab ? kebabnize(rawArg) : rawArg;
|
|
818
|
-
const conflictingArgKebab = toKebab || args[conflictingArg]?.toKebab ? kebabnize(conflictingArg) : conflictingArg;
|
|
819
|
-
return [new ArgResolveError(`Optional argument '${actualInputNames.get(rawArg) || `--${arg}`}' conflicts with '${actualInputNames.get(conflictingArg) || `--${conflictingArgKebab}`}'`, rawArg, "conflict", schema)];
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
return [];
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
// node_modules/gunshi/lib/error-B5QxSzk9.js
|
|
826
|
-
var CommandNotFoundErrorKeys = { notFound: "err:cmd:not-found" };
|
|
827
|
-
var COMMAND_NOT_FOUND_ERROR_BRAND = Symbol.for("gunshi.CommandNotFoundError");
|
|
828
|
-
var CommandNotFoundError = class extends Error {
|
|
829
|
-
code;
|
|
830
|
-
values;
|
|
831
|
-
commandName;
|
|
832
|
-
candidates;
|
|
833
|
-
commandPath;
|
|
834
|
-
constructor(message, options) {
|
|
835
|
-
super(message, { cause: options.cause });
|
|
836
|
-
this.name = "CommandNotFoundError";
|
|
837
|
-
this.code = options.code;
|
|
838
|
-
this.values = options.values || {};
|
|
839
|
-
this.commandName = options.commandName;
|
|
840
|
-
this.candidates = options.candidates || [];
|
|
841
|
-
this.commandPath = options.commandPath || [];
|
|
842
|
-
Object.defineProperty(this, COMMAND_NOT_FOUND_ERROR_BRAND, {
|
|
843
|
-
value: true,
|
|
844
|
-
enumerable: false,
|
|
845
|
-
writable: false,
|
|
846
|
-
configurable: false
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
|
-
function isCommandNotFoundError(error) {
|
|
851
|
-
if (error instanceof CommandNotFoundError)
|
|
852
|
-
return true;
|
|
853
|
-
if (!isRecord(error) || !hasCommandNotFoundErrorShape(error))
|
|
854
|
-
return false;
|
|
855
|
-
if (Object.hasOwn(error, COMMAND_NOT_FOUND_ERROR_BRAND) && error[COMMAND_NOT_FOUND_ERROR_BRAND] === true)
|
|
856
|
-
return true;
|
|
857
|
-
return error instanceof Error && error.name === "CommandNotFoundError";
|
|
858
|
-
}
|
|
859
|
-
function isArgsValidationError2(error) {
|
|
860
|
-
if (error instanceof ArgsValidationError)
|
|
861
|
-
return true;
|
|
862
|
-
if (!isRecord(error) || !hasArgsValidationErrorShape(error))
|
|
863
|
-
return false;
|
|
864
|
-
if (isArgsValidationError(error))
|
|
865
|
-
return true;
|
|
866
|
-
return error instanceof Error && error.name === "ArgsValidationError";
|
|
867
|
-
}
|
|
868
|
-
function isRecord(value) {
|
|
869
|
-
return typeof value === "object" && value !== null;
|
|
870
|
-
}
|
|
871
|
-
function isStringArray(value) {
|
|
872
|
-
return Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
873
|
-
}
|
|
874
|
-
function hasOptionalStringCode(error) {
|
|
875
|
-
return "code" in error && (error.code === undefined || typeof error.code === "string");
|
|
876
|
-
}
|
|
877
|
-
function hasCommandNotFoundErrorShape(error) {
|
|
878
|
-
return hasOptionalStringCode(error) && isRecord(error.values) && typeof error.commandName === "string" && isStringArray(error.candidates) && isStringArray(error.commandPath);
|
|
879
|
-
}
|
|
880
|
-
function hasArgsValidationErrorShape(error) {
|
|
881
|
-
return hasOptionalStringCode(error) && isRecord(error.values);
|
|
882
|
-
}
|
|
883
|
-
function hasPriorityValidationError(error) {
|
|
884
|
-
return error?.errors.some((error2) => isCommandNotFoundError(error2) || isArgsValidationError2(error2) && error2.code === ArgsValidationErrorKeys.unknownOption) ?? false;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
// node_modules/gunshi/lib/core-CLzX86kY.js
|
|
888
|
-
var EMPTY_RENDERER = () => Promise.resolve("");
|
|
889
|
-
function createDecorators() {
|
|
890
|
-
const headerDecorators = [];
|
|
891
|
-
const usageDecorators = [];
|
|
892
|
-
const validationDecorators = [];
|
|
893
|
-
const commandDecorators = [];
|
|
894
|
-
function buildRenderer(decorators, defaultRenderer) {
|
|
895
|
-
if (decorators.length === 0)
|
|
896
|
-
return defaultRenderer;
|
|
897
|
-
let renderer = defaultRenderer;
|
|
898
|
-
for (const decorator of decorators) {
|
|
899
|
-
const previousRenderer = renderer;
|
|
900
|
-
renderer = (ctx) => decorator(previousRenderer, ctx);
|
|
901
|
-
}
|
|
902
|
-
return renderer;
|
|
903
|
-
}
|
|
904
|
-
return Object.freeze({
|
|
905
|
-
addHeaderDecorator(decorator) {
|
|
906
|
-
headerDecorators.push(decorator);
|
|
907
|
-
},
|
|
908
|
-
addUsageDecorator(decorator) {
|
|
909
|
-
usageDecorators.push(decorator);
|
|
910
|
-
},
|
|
911
|
-
addValidationErrorsDecorator(decorator) {
|
|
912
|
-
validationDecorators.push(decorator);
|
|
913
|
-
},
|
|
914
|
-
addCommandDecorator(decorator) {
|
|
915
|
-
commandDecorators.push(decorator);
|
|
916
|
-
},
|
|
917
|
-
get commandDecorators() {
|
|
918
|
-
return [...commandDecorators];
|
|
919
|
-
},
|
|
920
|
-
getHeaderRenderer() {
|
|
921
|
-
return buildRenderer(headerDecorators, EMPTY_RENDERER);
|
|
922
|
-
},
|
|
923
|
-
getUsageRenderer() {
|
|
924
|
-
return buildRenderer(usageDecorators, EMPTY_RENDERER);
|
|
925
|
-
},
|
|
926
|
-
getValidationErrorsRenderer() {
|
|
927
|
-
if (validationDecorators.length === 0)
|
|
928
|
-
return EMPTY_RENDERER;
|
|
929
|
-
let renderer = EMPTY_RENDERER;
|
|
930
|
-
for (const decorator of validationDecorators) {
|
|
931
|
-
const previousRenderer = renderer;
|
|
932
|
-
renderer = (ctx, error) => decorator(previousRenderer, ctx, error);
|
|
933
|
-
}
|
|
934
|
-
return renderer;
|
|
935
|
-
}
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
function createPluginContext(decorators, initialSubCommands) {
|
|
939
|
-
const globalOptions = /* @__PURE__ */ new Map;
|
|
940
|
-
const subCommands = new Map(initialSubCommands || []);
|
|
941
|
-
return Object.freeze({
|
|
942
|
-
get globalOptions() {
|
|
943
|
-
return new Map(globalOptions);
|
|
944
|
-
},
|
|
945
|
-
addGlobalOption(name, schema) {
|
|
946
|
-
if (!name)
|
|
947
|
-
throw new Error("Option name must be a non-empty string");
|
|
948
|
-
if (globalOptions.has(name))
|
|
949
|
-
throw new Error(`Global option '${name}' is already registered`);
|
|
950
|
-
globalOptions.set(name, schema);
|
|
951
|
-
},
|
|
952
|
-
get subCommands() {
|
|
953
|
-
return new Map(subCommands);
|
|
954
|
-
},
|
|
955
|
-
addCommand(name, command) {
|
|
956
|
-
if (!name)
|
|
957
|
-
throw new Error("Command name must be a non-empty string");
|
|
958
|
-
if (subCommands.has(name))
|
|
959
|
-
throw new Error(`Command '${name}' is already registered`);
|
|
960
|
-
subCommands.set(name, command);
|
|
961
|
-
},
|
|
962
|
-
hasCommand(name) {
|
|
963
|
-
return subCommands.has(name);
|
|
964
|
-
},
|
|
965
|
-
decorateHeaderRenderer(decorator) {
|
|
966
|
-
decorators.addHeaderDecorator(decorator);
|
|
967
|
-
},
|
|
968
|
-
decorateUsageRenderer(decorator) {
|
|
969
|
-
decorators.addUsageDecorator(decorator);
|
|
970
|
-
},
|
|
971
|
-
decorateValidationErrorsRenderer(decorator) {
|
|
972
|
-
decorators.addValidationErrorsDecorator(decorator);
|
|
973
|
-
},
|
|
974
|
-
decorateCommand(decorator) {
|
|
975
|
-
decorators.addCommandDecorator(decorator);
|
|
976
|
-
}
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
function resolveDependencies(plugins) {
|
|
980
|
-
const sorted = [];
|
|
981
|
-
const visited = /* @__PURE__ */ new Set;
|
|
982
|
-
const visiting = /* @__PURE__ */ new Set;
|
|
983
|
-
const pluginMap = /* @__PURE__ */ new Map;
|
|
984
|
-
for (const plugin of plugins)
|
|
985
|
-
if (plugin.id) {
|
|
986
|
-
if (pluginMap.has(plugin.id))
|
|
987
|
-
console.warn(`Duplicate plugin id detected: \`${plugin.id}\``);
|
|
988
|
-
pluginMap.set(plugin.id, plugin);
|
|
989
|
-
}
|
|
990
|
-
function visit(plugin) {
|
|
991
|
-
if (!plugin.id)
|
|
992
|
-
return;
|
|
993
|
-
if (visited.has(plugin.id))
|
|
994
|
-
return;
|
|
995
|
-
if (visiting.has(plugin.id))
|
|
996
|
-
throw new Error(`Circular dependency detected: \`${[...visiting].join(` -> `) + " -> " + plugin.id}\``);
|
|
997
|
-
visiting.add(plugin.id);
|
|
998
|
-
const deps = plugin.dependencies || [];
|
|
999
|
-
for (const dep of deps) {
|
|
1000
|
-
const depId = typeof dep === "string" ? dep : dep.id;
|
|
1001
|
-
const isOptional = typeof dep === "string" ? false : dep.optional || false;
|
|
1002
|
-
const depPlugin = pluginMap.get(depId);
|
|
1003
|
-
if (!depPlugin && !isOptional)
|
|
1004
|
-
throw new Error(`Missing required dependency: \`${depId}\` on \`${plugin.id}\``);
|
|
1005
|
-
if (depPlugin)
|
|
1006
|
-
visit(depPlugin);
|
|
1007
|
-
}
|
|
1008
|
-
visiting.delete(plugin.id);
|
|
1009
|
-
visited.add(plugin.id);
|
|
1010
|
-
sorted.push(plugin);
|
|
1011
|
-
}
|
|
1012
|
-
for (const plugin of plugins)
|
|
1013
|
-
visit(plugin);
|
|
1014
|
-
return sorted;
|
|
1015
|
-
}
|
|
1016
|
-
async function cliCore(argv, entry, options, plugins) {
|
|
1017
|
-
const decorators = createDecorators();
|
|
1018
|
-
const pluginContext = createPluginContext(decorators, createInitialSubCommands(options, entry));
|
|
1019
|
-
const resolvedPlugins = await applyPlugins(pluginContext, [...plugins, ...options.plugins || []]);
|
|
1020
|
-
const cliOptions = normalizeCliOptions(options, decorators, pluginContext);
|
|
1021
|
-
const tokens = parseArgs(argv);
|
|
1022
|
-
const resolved = resolveCommandTree(tokens, entry, cliOptions);
|
|
1023
|
-
const { commandName: name, command, callMode, commandPath, depth, levelSubCommands } = resolved;
|
|
1024
|
-
let targetCommand = command;
|
|
1025
|
-
let targetCommandName = name;
|
|
1026
|
-
let targetCallMode = callMode;
|
|
1027
|
-
let targetCommandPath = commandPath;
|
|
1028
|
-
let targetDepth = depth;
|
|
1029
|
-
let targetOmitted = resolved.omitted;
|
|
1030
|
-
let targetLevelSubCommands = levelSubCommands;
|
|
1031
|
-
const additionalValidationErrors = [];
|
|
1032
|
-
if (!targetCommand) {
|
|
1033
|
-
if (!resolved.parentCommand || !resolved.unresolvedCommandName)
|
|
1034
|
-
throw new Error(`Command not found: ${name || ""}`);
|
|
1035
|
-
targetCommand = resolved.parentCommand;
|
|
1036
|
-
targetCommandName = resolved.parentCommandName;
|
|
1037
|
-
targetCommandPath = resolved.parentCommandPath || [];
|
|
1038
|
-
targetDepth = targetCommandPath.length;
|
|
1039
|
-
targetCallMode = targetDepth > 0 ? "subCommand" : "entry";
|
|
1040
|
-
targetOmitted = false;
|
|
1041
|
-
targetLevelSubCommands = resolved.parentSubCommands;
|
|
1042
|
-
additionalValidationErrors.push(createCommandNotFoundError(resolved));
|
|
1043
|
-
}
|
|
1044
|
-
if (targetLevelSubCommands)
|
|
1045
|
-
cliOptions.subCommands = targetLevelSubCommands;
|
|
1046
|
-
const resolvedCommand = isLazyCommand(targetCommand) ? await resolveLazyCommand(targetCommand, targetCommandName, true) : targetCommand;
|
|
1047
|
-
const args = resolveArguments(pluginContext, getCommandArgs(resolvedCommand));
|
|
1048
|
-
const skipPositional = targetDepth > 0 ? targetDepth - 1 : -1;
|
|
1049
|
-
const { explicit, values, positionals, rest, error } = resolveArgs(args, tokens, {
|
|
1050
|
-
shortGrouping: true,
|
|
1051
|
-
toKebab: resolvedCommand.toKebab,
|
|
1052
|
-
skipPositional
|
|
1053
|
-
});
|
|
1054
|
-
const validationError = mergeValidationErrors(error, [...additionalValidationErrors, ...cliOptions.strict ? createUnknownOptionErrors(findUnknownOptions(args, tokens, { toKebab: resolvedCommand.toKebab })) : []]);
|
|
1055
|
-
return await executeCommand(resolvedCommand, await createCommandContext({
|
|
1056
|
-
args,
|
|
1057
|
-
explicit,
|
|
1058
|
-
values,
|
|
1059
|
-
positionals,
|
|
1060
|
-
rest,
|
|
1061
|
-
argv,
|
|
1062
|
-
tokens,
|
|
1063
|
-
omitted: targetOmitted,
|
|
1064
|
-
callMode: targetCallMode,
|
|
1065
|
-
commandPath: targetCommandPath,
|
|
1066
|
-
command: resolvedCommand,
|
|
1067
|
-
extensions: getPluginExtensions(resolvedPlugins),
|
|
1068
|
-
validationError,
|
|
1069
|
-
cliOptions
|
|
1070
|
-
}), decorators.commandDecorators);
|
|
1071
|
-
}
|
|
1072
|
-
async function applyPlugins(pluginContext, plugins) {
|
|
1073
|
-
const sortedPlugins = resolveDependencies(plugins);
|
|
1074
|
-
try {
|
|
1075
|
-
for (const plugin of sortedPlugins)
|
|
1076
|
-
await plugin(pluginContext);
|
|
1077
|
-
} catch (error) {
|
|
1078
|
-
console.error("Error loading plugin:", error.message);
|
|
1079
|
-
}
|
|
1080
|
-
return sortedPlugins;
|
|
1081
|
-
}
|
|
1082
|
-
function getCommandArgs(cmd) {
|
|
1083
|
-
if (isLazyCommand(cmd))
|
|
1084
|
-
return cmd.args || create();
|
|
1085
|
-
else if (typeof cmd === "object")
|
|
1086
|
-
return cmd.args || create();
|
|
1087
|
-
else
|
|
1088
|
-
return create();
|
|
1089
|
-
}
|
|
1090
|
-
function resolveArguments(pluginContext, args) {
|
|
1091
|
-
return Object.assign(create(), Object.fromEntries(pluginContext.globalOptions), args);
|
|
1092
|
-
}
|
|
1093
|
-
var NEGATABLE_OPTION_PREFIX = "no-";
|
|
1094
|
-
function findUnknownOptions(args, tokens, options) {
|
|
1095
|
-
const knownLongOptions = /* @__PURE__ */ new Set;
|
|
1096
|
-
const knownShortOptions = /* @__PURE__ */ new Set;
|
|
1097
|
-
const knownNegatableOptions = /* @__PURE__ */ new Set;
|
|
1098
|
-
const knownLongOptionCandidates = /* @__PURE__ */ new Set;
|
|
1099
|
-
const longOptionCandidates = [];
|
|
1100
|
-
function addLongOptionCandidate(name) {
|
|
1101
|
-
const candidate = `--${name}`;
|
|
1102
|
-
if (knownLongOptionCandidates.has(candidate))
|
|
1103
|
-
return;
|
|
1104
|
-
knownLongOptionCandidates.add(candidate);
|
|
1105
|
-
longOptionCandidates.push(candidate);
|
|
1106
|
-
}
|
|
1107
|
-
for (const [name, schema] of Object.entries(args)) {
|
|
1108
|
-
if (schema.type === "positional")
|
|
1109
|
-
continue;
|
|
1110
|
-
const optionName = resolveOptionName(name, schema, options);
|
|
1111
|
-
knownLongOptions.add(optionName);
|
|
1112
|
-
addLongOptionCandidate(optionName);
|
|
1113
|
-
if (schema.short)
|
|
1114
|
-
knownShortOptions.add(schema.short);
|
|
1115
|
-
if (schema.type === "boolean" && schema.negatable) {
|
|
1116
|
-
const negatableOptionName = `${NEGATABLE_OPTION_PREFIX}${optionName}`;
|
|
1117
|
-
knownNegatableOptions.add(negatableOptionName);
|
|
1118
|
-
addLongOptionCandidate(negatableOptionName);
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
const unknownOptions = [];
|
|
1122
|
-
for (const token of tokens) {
|
|
1123
|
-
if (token.kind === "option-terminator")
|
|
1124
|
-
break;
|
|
1125
|
-
if (token.kind !== "option" || !token.name || !token.rawName)
|
|
1126
|
-
continue;
|
|
1127
|
-
const isLongOption2 = token.rawName.startsWith("--");
|
|
1128
|
-
if (isLongOption2) {
|
|
1129
|
-
if (knownLongOptions.has(token.name) || knownNegatableOptions.has(token.name))
|
|
1130
|
-
continue;
|
|
1131
|
-
} else if (knownShortOptions.has(token.name))
|
|
1132
|
-
continue;
|
|
1133
|
-
unknownOptions.push({
|
|
1134
|
-
rawName: token.rawName,
|
|
1135
|
-
name: token.name,
|
|
1136
|
-
candidates: isLongOption2 ? longOptionCandidates : []
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
return unknownOptions;
|
|
1140
|
-
}
|
|
1141
|
-
function resolveOptionName(name, schema, options) {
|
|
1142
|
-
return options.toKebab || schema.toKebab ? kebabnize(name) : name;
|
|
1143
|
-
}
|
|
1144
|
-
function createUnknownOptionErrors(unknownOptions) {
|
|
1145
|
-
return unknownOptions.map(({ rawName, name, candidates }) => {
|
|
1146
|
-
return new ArgsValidationError(`Unknown option: ${rawName}`, {
|
|
1147
|
-
code: ArgsValidationErrorKeys.unknownOption,
|
|
1148
|
-
values: {
|
|
1149
|
-
rawName,
|
|
1150
|
-
name,
|
|
1151
|
-
candidates
|
|
1152
|
-
}
|
|
1153
|
-
});
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
function mergeValidationErrors(error, additionalErrors) {
|
|
1157
|
-
if (additionalErrors.length === 0)
|
|
1158
|
-
return error;
|
|
1159
|
-
return new AggregateError(error ? [...error.errors, ...additionalErrors] : additionalErrors, error?.message || additionalErrors[0]?.message);
|
|
1160
|
-
}
|
|
1161
|
-
var isObject = (val) => val !== null && typeof val === "object";
|
|
1162
|
-
function createInitialSubCommands(options, entryCmd) {
|
|
1163
|
-
const hasSubCommands = options.subCommands ? options.subCommands instanceof Map ? options.subCommands.size > 0 : isObject(options.subCommands) && Object.keys(options.subCommands).length > 0 : false;
|
|
1164
|
-
const subCommands = new Map(options.subCommands instanceof Map ? options.subCommands : []);
|
|
1165
|
-
if (!(options.subCommands instanceof Map) && isObject(options.subCommands))
|
|
1166
|
-
for (const [name, cmd] of Object.entries(options.subCommands))
|
|
1167
|
-
subCommands.set(name, cmd);
|
|
1168
|
-
if (hasSubCommands) {
|
|
1169
|
-
if (isLazyCommand(entryCmd)) {
|
|
1170
|
-
const entryCopy = Object.assign((...args) => entryCmd(...args), entryCmd, { entry: true });
|
|
1171
|
-
subCommands.set(resolveEntryName(entryCopy), entryCopy);
|
|
1172
|
-
} else if (typeof entryCmd === "object") {
|
|
1173
|
-
const entryCopy = Object.assign(create(), entryCmd, { entry: true });
|
|
1174
|
-
subCommands.set(resolveEntryName(entryCopy), entryCopy);
|
|
1175
|
-
} else if (typeof entryCmd === "function") {
|
|
1176
|
-
const name = entryCmd.name || "(anonymous)";
|
|
1177
|
-
subCommands.set(name, {
|
|
1178
|
-
run: entryCmd,
|
|
1179
|
-
name,
|
|
1180
|
-
entry: true
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
return subCommands;
|
|
1185
|
-
}
|
|
1186
|
-
function normalizeCliOptions(options, decorators, pluginContext) {
|
|
1187
|
-
const subCommands = new Map(pluginContext.subCommands);
|
|
1188
|
-
const resolvedOptions = Object.assign(create(), CLI_OPTIONS_DEFAULT, options, { subCommands });
|
|
1189
|
-
if (resolvedOptions.renderHeader === undefined)
|
|
1190
|
-
resolvedOptions.renderHeader = decorators.getHeaderRenderer();
|
|
1191
|
-
if (resolvedOptions.renderUsage === undefined)
|
|
1192
|
-
resolvedOptions.renderUsage = decorators.getUsageRenderer();
|
|
1193
|
-
if (resolvedOptions.renderValidationErrors === undefined)
|
|
1194
|
-
resolvedOptions.renderValidationErrors = decorators.getValidationErrorsRenderer();
|
|
1195
|
-
return resolvedOptions;
|
|
1196
|
-
}
|
|
1197
|
-
function getPositionalTokens(tokens) {
|
|
1198
|
-
return tokens.filter((t) => t.kind === "positional").map((t) => t.value).filter((v) => !!v);
|
|
1199
|
-
}
|
|
1200
|
-
function resolveCommandTree(tokens, entry, options) {
|
|
1201
|
-
const positionals = getPositionalTokens(tokens);
|
|
1202
|
-
function resolveAsEntry() {
|
|
1203
|
-
if (typeof entry === "function") {
|
|
1204
|
-
if ("commandName" in entry && entry.commandName)
|
|
1205
|
-
return {
|
|
1206
|
-
commandName: entry.commandName,
|
|
1207
|
-
command: entry,
|
|
1208
|
-
callMode: "entry",
|
|
1209
|
-
commandPath: [],
|
|
1210
|
-
depth: 0,
|
|
1211
|
-
omitted: options.subCommands.size > 0 && !positionals[0],
|
|
1212
|
-
levelSubCommands: options.subCommands.size > 0 ? options.subCommands : undefined
|
|
1213
|
-
};
|
|
1214
|
-
else
|
|
1215
|
-
return {
|
|
1216
|
-
command: {
|
|
1217
|
-
run: entry,
|
|
1218
|
-
entry: true
|
|
1219
|
-
},
|
|
1220
|
-
callMode: "entry",
|
|
1221
|
-
commandPath: [],
|
|
1222
|
-
depth: 0,
|
|
1223
|
-
omitted: options.subCommands.size > 0 && !positionals[0],
|
|
1224
|
-
levelSubCommands: options.subCommands.size > 0 ? options.subCommands : undefined
|
|
1225
|
-
};
|
|
1226
|
-
} else if (typeof entry === "object")
|
|
1227
|
-
return {
|
|
1228
|
-
commandName: resolveEntryName(entry),
|
|
1229
|
-
command: entry,
|
|
1230
|
-
callMode: "entry",
|
|
1231
|
-
commandPath: [],
|
|
1232
|
-
depth: 0,
|
|
1233
|
-
omitted: options.subCommands.size > 0 && !positionals[0],
|
|
1234
|
-
levelSubCommands: options.subCommands.size > 0 ? options.subCommands : undefined
|
|
1235
|
-
};
|
|
1236
|
-
else
|
|
1237
|
-
return {
|
|
1238
|
-
callMode: "unexpected",
|
|
1239
|
-
commandPath: [],
|
|
1240
|
-
depth: 0,
|
|
1241
|
-
omitted: false,
|
|
1242
|
-
levelSubCommands: undefined
|
|
1243
|
-
};
|
|
1244
|
-
}
|
|
1245
|
-
if (positionals.length === 0 || options.subCommands.size === 0)
|
|
1246
|
-
return resolveAsEntry();
|
|
1247
|
-
let currentSubCommands = options.subCommands;
|
|
1248
|
-
let resolvedCommand;
|
|
1249
|
-
let resolvedName;
|
|
1250
|
-
const commandPath = [];
|
|
1251
|
-
let depth = 0;
|
|
1252
|
-
for (let i = 0;i < positionals.length; i++) {
|
|
1253
|
-
const token = positionals[i];
|
|
1254
|
-
const cmd = currentSubCommands.get(token);
|
|
1255
|
-
if (cmd == null) {
|
|
1256
|
-
if (depth === 0) {
|
|
1257
|
-
if (options.fallbackToEntry)
|
|
1258
|
-
return resolveAsEntry();
|
|
1259
|
-
const parent = resolveAsEntry();
|
|
1260
|
-
return {
|
|
1261
|
-
commandName: token,
|
|
1262
|
-
callMode: "unexpected",
|
|
1263
|
-
commandPath: [],
|
|
1264
|
-
depth: 0,
|
|
1265
|
-
omitted: false,
|
|
1266
|
-
levelSubCommands: undefined,
|
|
1267
|
-
unresolvedCommandName: token,
|
|
1268
|
-
parentCommand: parent.command,
|
|
1269
|
-
parentCommandName: parent.commandName,
|
|
1270
|
-
parentCommandPath: [],
|
|
1271
|
-
parentSubCommands: options.subCommands
|
|
1272
|
-
};
|
|
1273
|
-
}
|
|
1274
|
-
return {
|
|
1275
|
-
commandName: token,
|
|
1276
|
-
callMode: "unexpected",
|
|
1277
|
-
commandPath: [...commandPath],
|
|
1278
|
-
depth,
|
|
1279
|
-
omitted: false,
|
|
1280
|
-
levelSubCommands: undefined,
|
|
1281
|
-
unresolvedCommandName: token,
|
|
1282
|
-
parentCommand: resolvedCommand,
|
|
1283
|
-
parentCommandName: resolvedName,
|
|
1284
|
-
parentCommandPath: [...commandPath],
|
|
1285
|
-
parentSubCommands: currentSubCommands
|
|
1286
|
-
};
|
|
1287
|
-
}
|
|
1288
|
-
let resolved = cmd;
|
|
1289
|
-
if (typeof cmd === "function" && cmd.commandName == null)
|
|
1290
|
-
resolved = Object.assign((...args) => cmd(...args), cmd, { commandName: token });
|
|
1291
|
-
else if (typeof cmd === "object" && cmd.name == null)
|
|
1292
|
-
resolved = Object.assign(create(), cmd, { name: token });
|
|
1293
|
-
resolvedCommand = resolved;
|
|
1294
|
-
resolvedName = token;
|
|
1295
|
-
commandPath.push(token);
|
|
1296
|
-
depth++;
|
|
1297
|
-
const nestedSubCommands = getCommandSubCommands(cmd);
|
|
1298
|
-
if (nestedSubCommands && nestedSubCommands.size > 0)
|
|
1299
|
-
currentSubCommands = nestedSubCommands;
|
|
1300
|
-
else
|
|
1301
|
-
break;
|
|
1302
|
-
}
|
|
1303
|
-
if (!resolvedCommand)
|
|
1304
|
-
return resolveAsEntry();
|
|
1305
|
-
const resolvedSubCommands = getCommandSubCommands(resolvedCommand);
|
|
1306
|
-
const omitted = resolvedSubCommands != null && resolvedSubCommands.size > 0;
|
|
1307
|
-
let levelSubCommands;
|
|
1308
|
-
if (omitted && resolvedSubCommands) {
|
|
1309
|
-
levelSubCommands = new Map(resolvedSubCommands);
|
|
1310
|
-
let entryCopy;
|
|
1311
|
-
if (typeof resolvedCommand === "function")
|
|
1312
|
-
entryCopy = Object.assign((...args) => resolvedCommand(...args), resolvedCommand, { entry: true });
|
|
1313
|
-
else
|
|
1314
|
-
entryCopy = Object.assign(create(), resolvedCommand, { entry: true });
|
|
1315
|
-
levelSubCommands.set(resolvedName || resolveEntryName(entryCopy), entryCopy);
|
|
1316
|
-
}
|
|
1317
|
-
return {
|
|
1318
|
-
commandName: resolvedName,
|
|
1319
|
-
command: resolvedCommand,
|
|
1320
|
-
callMode: depth > 0 ? "subCommand" : "entry",
|
|
1321
|
-
commandPath,
|
|
1322
|
-
depth,
|
|
1323
|
-
omitted,
|
|
1324
|
-
levelSubCommands
|
|
1325
|
-
};
|
|
1326
|
-
}
|
|
1327
|
-
function createCommandNotFoundError(resolved) {
|
|
1328
|
-
const commandName = resolved.unresolvedCommandName || resolved.commandName || "";
|
|
1329
|
-
return new CommandNotFoundError(`Command not found: ${commandName}`, {
|
|
1330
|
-
code: CommandNotFoundErrorKeys.notFound,
|
|
1331
|
-
values: { commandName },
|
|
1332
|
-
commandName,
|
|
1333
|
-
candidates: [...resolved.parentSubCommands?.keys() || []],
|
|
1334
|
-
commandPath: resolved.parentCommandPath || []
|
|
1335
|
-
});
|
|
1336
|
-
}
|
|
1337
|
-
function resolveEntryName(entry) {
|
|
1338
|
-
return isLazyCommand(entry) ? entry.commandName || "(anonymous)" : entry.name || "(anonymous)";
|
|
1339
|
-
}
|
|
1340
|
-
function getPluginExtensions(plugins) {
|
|
1341
|
-
const extensions = create();
|
|
1342
|
-
for (const plugin of plugins)
|
|
1343
|
-
if (plugin.extension) {
|
|
1344
|
-
const key = plugin.id;
|
|
1345
|
-
if (extensions[key])
|
|
1346
|
-
console.warn(`Plugin "${key}" is already installed. Ignore it for command context extending.`);
|
|
1347
|
-
else
|
|
1348
|
-
extensions[key] = plugin.extension;
|
|
1349
|
-
}
|
|
1350
|
-
return extensions;
|
|
1351
|
-
}
|
|
1352
|
-
async function executeCommand(cmd, ctx, decorators) {
|
|
1353
|
-
const commandRunner = cmd.run || NOOP;
|
|
1354
|
-
const baseRunner = (ctx2) => {
|
|
1355
|
-
if (hasPriorityValidationError(ctx2.validationError))
|
|
1356
|
-
throw ctx2.validationError;
|
|
1357
|
-
return commandRunner(ctx2);
|
|
1358
|
-
};
|
|
1359
|
-
const decoratedRunner = decorators.reduceRight((runner, decorator) => decorator(runner), baseRunner);
|
|
1360
|
-
try {
|
|
1361
|
-
if (ctx.env.onBeforeCommand)
|
|
1362
|
-
await ctx.env.onBeforeCommand(ctx);
|
|
1363
|
-
const result = await decoratedRunner(ctx);
|
|
1364
|
-
if (ctx.env.onAfterCommand)
|
|
1365
|
-
await ctx.env.onAfterCommand(ctx, result);
|
|
1366
|
-
return typeof result === "string" ? result : undefined;
|
|
1367
|
-
} catch (error) {
|
|
1368
|
-
if (ctx.env.onErrorCommand)
|
|
1369
|
-
try {
|
|
1370
|
-
await ctx.env.onErrorCommand(ctx, error);
|
|
1371
|
-
} catch (hookError) {
|
|
1372
|
-
console.error("Error in onErrorCommand hook:", hookError);
|
|
1373
|
-
}
|
|
1374
|
-
throw error;
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
// node_modules/gunshi/lib/bone.js
|
|
1379
|
-
async function cli(args, entry, options = {}) {
|
|
1380
|
-
return cliCore(args, entry, options, []);
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
// src/cli/main.ts
|
|
1384
|
-
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
1385
|
-
|
|
1386
|
-
// node_modules/gunshi/lib/plugin-DneW3Toi.js
|
|
1387
|
-
var NOOP_EXTENSION = () => {
|
|
1388
|
-
return Object.create(null);
|
|
1389
|
-
};
|
|
1390
|
-
function plugin(options = {}) {
|
|
1391
|
-
const { id, name, setup, onExtension, dependencies } = options;
|
|
1392
|
-
const extension = options.extension || NOOP_EXTENSION;
|
|
1393
|
-
const pluginFn = async (ctx) => {
|
|
1394
|
-
if (setup)
|
|
1395
|
-
await setup(ctx);
|
|
1396
|
-
};
|
|
1397
|
-
const props = {
|
|
1398
|
-
writable: false,
|
|
1399
|
-
enumerable: true,
|
|
1400
|
-
configurable: true
|
|
1401
|
-
};
|
|
1402
|
-
return Object.defineProperties(pluginFn, {
|
|
1403
|
-
id: {
|
|
1404
|
-
value: id,
|
|
1405
|
-
...props
|
|
1406
|
-
},
|
|
1407
|
-
...name && { name: {
|
|
1408
|
-
value: name,
|
|
1409
|
-
...props
|
|
1410
|
-
} },
|
|
1411
|
-
...dependencies && { dependencies: {
|
|
1412
|
-
value: dependencies,
|
|
1413
|
-
...props
|
|
1414
|
-
} },
|
|
1415
|
-
...extension && { extension: {
|
|
1416
|
-
value: {
|
|
1417
|
-
key: Symbol(id),
|
|
1418
|
-
factory: extension,
|
|
1419
|
-
onFactory: onExtension
|
|
1420
|
-
},
|
|
1421
|
-
...props
|
|
1422
|
-
} }
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
// src/cli/plugin.ts
|
|
1427
|
-
var SHOW_USAGE = Symbol("kit.showUsage");
|
|
1428
|
-
function kitGlobals(version, renderUsage) {
|
|
1429
|
-
return plugin({
|
|
1430
|
-
id: "kit:globals",
|
|
1431
|
-
name: "kit global options",
|
|
1432
|
-
setup(ctx) {
|
|
1433
|
-
ctx.addGlobalOption("help", { type: "boolean", short: "h", description: "Show help" });
|
|
1434
|
-
ctx.addGlobalOption("version", { type: "boolean", short: "V", description: "Show kit version" });
|
|
1435
|
-
ctx.decorateCommand((run) => async (c) => {
|
|
1436
|
-
if (c.values.version) {
|
|
1437
|
-
process.stdout.write(`${version}
|
|
1438
|
-
`);
|
|
1439
|
-
return;
|
|
1440
|
-
}
|
|
1441
|
-
if (c.values.help || c.callMode === "entry") {
|
|
1442
|
-
process.stdout.write(`${await renderUsage(c)}
|
|
1443
|
-
`);
|
|
1444
|
-
return;
|
|
1445
|
-
}
|
|
1446
|
-
if (c.validationError) {
|
|
1447
|
-
const msgs = c.validationError.errors.map((e) => e.message).join(`
|
|
1448
|
-
`);
|
|
1449
|
-
throw new KitError(msgs, `Run \`kit ${c.commandPath.join(" ")} --help\``, ExitCode.usage);
|
|
1450
|
-
}
|
|
1451
|
-
try {
|
|
1452
|
-
return await run(c);
|
|
1453
|
-
} catch (e) {
|
|
1454
|
-
if (e !== SHOW_USAGE)
|
|
1455
|
-
throw e;
|
|
1456
|
-
process.stdout.write(`${await renderUsage(c)}
|
|
1457
|
-
`);
|
|
1458
|
-
}
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
// src/cli/usage.ts
|
|
1465
|
-
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
1466
|
-
var GROUP_ORDER = ["Develop", "Quality", "Release", "Infra", "Setup"];
|
|
1467
|
-
function lookup(ctx) {
|
|
1468
|
-
let level = ctx.env.subCommands;
|
|
1469
|
-
let cmd;
|
|
1470
|
-
for (const seg of ctx.commandPath ?? []) {
|
|
1471
|
-
const found = level?.get(seg);
|
|
1472
|
-
if (!found && level)
|
|
1473
|
-
continue;
|
|
1474
|
-
cmd = found;
|
|
1475
|
-
const next = cmd?.subCommands;
|
|
1476
|
-
level = next ? new Map(Object.entries(next)) : undefined;
|
|
1477
|
-
}
|
|
1478
|
-
return { cmd, children: level ?? new Map };
|
|
1479
|
-
}
|
|
1480
|
-
async function renderUsage(ctx) {
|
|
1481
|
-
const path = ["kit", ...ctx.commandPath ?? []].join(" ");
|
|
1482
|
-
const lines = [];
|
|
1483
|
-
if (ctx.description)
|
|
1484
|
-
lines.push(ctx.description, "");
|
|
1485
|
-
const { cmd: self, children } = lookup(ctx);
|
|
1486
|
-
const hasRun = typeof ctx === "object" && ctx.commandPath.length > 0;
|
|
1487
|
-
const positionals = Object.entries(ctx.args ?? {}).filter(([, a]) => a.type === "positional").map(([name]) => ` <${name}>`).join("");
|
|
1488
|
-
const tail = self?.passthrough ? " [args\u2026]" : `${children.size ? " <command>" : ""}${positionals} [options]`;
|
|
1489
|
-
lines.push(import_picocolors.default.bold("Usage"), ` ${import_picocolors.default.cyan(path)}${tail}`, "");
|
|
1490
|
-
if (self?.passthrough) {
|
|
1491
|
-
lines.push("Every argument passes through untouched; kit parses no flags here (no --json).", `Only a leading -h/--help shows this; \`${path} <args> --help\` reaches the tool.`, "");
|
|
1492
|
-
}
|
|
1493
|
-
const examples = typeof self?.examples === "string" ? self.examples : "";
|
|
1494
|
-
if (examples) {
|
|
1495
|
-
lines.push(import_picocolors.default.bold("Examples"));
|
|
1496
|
-
for (const e of examples.split(`
|
|
1497
|
-
`))
|
|
1498
|
-
lines.push(` ${e.startsWith("#") ? import_picocolors.default.dim(e) : e}`);
|
|
1499
|
-
lines.push("");
|
|
1500
|
-
}
|
|
1501
|
-
if (children.size) {
|
|
1502
|
-
const groups = new Map;
|
|
1503
|
-
for (const [name, cmd] of children) {
|
|
1504
|
-
if (cmd.internal || cmd.entry || name === ctx.env.name)
|
|
1505
|
-
continue;
|
|
1506
|
-
const g = ctx.commandPath.length ? "Commands" : cmd.group ?? "Other";
|
|
1507
|
-
groups.set(g, [...groups.get(g) ?? [], [name, cmd]]);
|
|
1508
|
-
}
|
|
1509
|
-
const order = [...groups.keys()].sort((a, b) => {
|
|
1510
|
-
const ia = GROUP_ORDER.indexOf(a);
|
|
1511
|
-
const ib = GROUP_ORDER.indexOf(b);
|
|
1512
|
-
return (ia < 0 ? 99 : ia) - (ib < 0 ? 99 : ib) || a.localeCompare(b);
|
|
1513
|
-
});
|
|
1514
|
-
const width = Math.max(...[...children.keys()].map((n) => n.length)) + 2;
|
|
1515
|
-
for (const g of order) {
|
|
1516
|
-
lines.push(import_picocolors.default.bold(g));
|
|
1517
|
-
for (const [name, cmd] of groups.get(g) ?? []) {
|
|
1518
|
-
const more = cmd.subCommands ? import_picocolors.default.dim(" \u2026") : "";
|
|
1519
|
-
lines.push(` ${import_picocolors.default.cyan(name.padEnd(width))}${cmd.description ?? ""}${more}`);
|
|
1520
|
-
}
|
|
1521
|
-
lines.push("");
|
|
1522
|
-
}
|
|
1523
|
-
}
|
|
1524
|
-
const args = Object.entries(ctx.args ?? {});
|
|
1525
|
-
if (args.length && (hasRun || !children.size) && !self?.passthrough) {
|
|
1526
|
-
lines.push(import_picocolors.default.bold("Options"));
|
|
1527
|
-
const rows = args.map(([name, a]) => {
|
|
1528
|
-
const flag = a.type === "positional" ? `<${name}>` : `${a.short ? `-${a.short}, ` : " "}--${name}`;
|
|
1529
|
-
const value = a.type === "string" || a.type === "number" || a.type === "enum" ? ` <${a.type}>` : "";
|
|
1530
|
-
return [`${flag}${value}`, a.description ?? ""];
|
|
1531
|
-
});
|
|
1532
|
-
const w = Math.max(...rows.map(([f]) => f.length)) + 2;
|
|
1533
|
-
for (const [f, d] of rows)
|
|
1534
|
-
lines.push(` ${f.padEnd(w)}${import_picocolors.default.dim(d)}`);
|
|
1535
|
-
lines.push("");
|
|
1536
|
-
}
|
|
1537
|
-
return lines.join(`
|
|
1538
|
-
`);
|
|
1539
|
-
}
|
|
1540
|
-
|
|
1541
|
-
// src/cli/main.ts
|
|
1542
|
-
var SHELLS = ["zsh", "bash", "fish"];
|
|
1543
|
-
function commandTokens(argv) {
|
|
1544
|
-
const out = [];
|
|
1545
|
-
for (const a of argv) {
|
|
1546
|
-
if (a === "--" || a.startsWith("-"))
|
|
1547
|
-
break;
|
|
1548
|
-
out.push(a);
|
|
1549
|
-
}
|
|
1550
|
-
return out;
|
|
1551
|
-
}
|
|
1552
|
-
var same = (a, b) => a.length === b.length && a.every((s, i) => s === b[i]);
|
|
1553
|
-
var startsWith = (a, prefix) => prefix.every((s, i) => a[i] === s);
|
|
1554
|
-
async function collectLeaves(root, config) {
|
|
1555
|
-
const appName = config?.name;
|
|
1556
|
-
const leaves = builtins.map((b) => ({
|
|
1557
|
-
path: b.path,
|
|
1558
|
-
description: b.description,
|
|
1559
|
-
group: b.group,
|
|
1560
|
-
source: "builtin",
|
|
1561
|
-
load: async () => (await b.load()).default
|
|
1562
|
-
}));
|
|
1563
|
-
if (!root)
|
|
1564
|
-
return leaves;
|
|
1565
|
-
for (const name of Object.keys(config?.release?.services ?? {})) {
|
|
1566
|
-
if (leaves.some((l) => l.path[0] === "release" && l.path[1] === name))
|
|
1567
|
-
continue;
|
|
1568
|
-
leaves.push({
|
|
1569
|
-
path: ["release", name],
|
|
1570
|
-
description: `Release the ${name} service`,
|
|
1571
|
-
group: "Release",
|
|
1572
|
-
source: "builtin",
|
|
1573
|
-
load: async () => (await import("./service-n6kgj7ba.js")).serviceCommand(name)
|
|
1574
|
-
});
|
|
1575
|
-
}
|
|
1576
|
-
for (const f of listRepoCommands(root)) {
|
|
1577
|
-
leaves.push({
|
|
1578
|
-
path: f.path,
|
|
1579
|
-
description: "",
|
|
1580
|
-
group: appName ?? "Repo",
|
|
1581
|
-
source: "repo",
|
|
1582
|
-
load: () => importRepoCommand(f)
|
|
1583
|
-
});
|
|
1584
|
-
}
|
|
1585
|
-
return leaves;
|
|
1586
|
-
}
|
|
1587
|
-
function buildTree(leaves, loaded, rt, depth = 0) {
|
|
1588
|
-
const tree = {};
|
|
1589
|
-
const names = [...new Set(leaves.map((l) => l.path[depth]))];
|
|
1590
|
-
for (const name of names) {
|
|
1591
|
-
const here = leaves.filter((l) => l.path[depth] === name);
|
|
1592
|
-
const atDepth = here.filter((l) => l.path.length === depth + 1);
|
|
1593
|
-
const leaf = atDepth.find((l) => l.source === "repo" && (l.override || loaded.get(l)?.override)) ?? atDepth[0];
|
|
1594
|
-
const children = here.filter((l) => l.path.length > depth + 1);
|
|
1595
|
-
const loadedCmd = leaf ? loaded.get(leaf) : undefined;
|
|
1596
|
-
const base = loadedCmd ? toGunshi(name, loadedCmd, rt) : {
|
|
1597
|
-
name,
|
|
1598
|
-
description: leaf ? leaf.description || loaded.get(leaf)?.description : groupDescriptions[name] ?? "",
|
|
1599
|
-
group: leaf?.group ?? here[0]?.group,
|
|
1600
|
-
run: () => {
|
|
1601
|
-
throw SHOW_USAGE;
|
|
1602
|
-
}
|
|
1603
|
-
};
|
|
1604
|
-
if (children.length)
|
|
1605
|
-
base.subCommands = buildTree(children, loaded, rt, depth + 1);
|
|
1606
|
-
tree[name] = base;
|
|
1607
|
-
}
|
|
1608
|
-
return tree;
|
|
1609
|
-
}
|
|
1610
|
-
function suggest(token, candidates) {
|
|
1611
|
-
const dist = (a, b) => {
|
|
1612
|
-
const d = Array.from({ length: a.length + 1 }, (_, i) => [i, ...Array(b.length).fill(0)]);
|
|
1613
|
-
for (let j = 1;j <= b.length; j++)
|
|
1614
|
-
d[0][j] = j;
|
|
1615
|
-
for (let i = 1;i <= a.length; i++)
|
|
1616
|
-
for (let j = 1;j <= b.length; j++)
|
|
1617
|
-
d[i][j] = Math.min(d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1));
|
|
1618
|
-
return d[a.length][b.length];
|
|
1619
|
-
};
|
|
1620
|
-
const best = candidates.map((c) => [c, dist(token, c)]).sort((x, y) => x[1] - y[1])[0];
|
|
1621
|
-
return best && best[1] <= 2 ? best[0] : undefined;
|
|
1622
|
-
}
|
|
1623
|
-
async function main(argv) {
|
|
1624
|
-
const root = findRoot();
|
|
1625
|
-
let config;
|
|
1626
|
-
if (root) {
|
|
1627
|
-
await loadDotEnv(root);
|
|
1628
|
-
config = await loadConfig(root);
|
|
1629
|
-
}
|
|
1630
|
-
const rt = { root, config };
|
|
1631
|
-
const leaves = await collectLeaves(root, config);
|
|
1632
|
-
const tokens = commandTokens(argv);
|
|
1633
|
-
const wantsHelp = argv.includes("--help") || argv.includes("-h");
|
|
1634
|
-
const script = tokens[0] === "completion" && SHELLS.includes(tokens[1] ?? "") && !wantsHelp;
|
|
1635
|
-
if (tokens[0] === "complete" || script) {
|
|
1636
|
-
const { default: completion } = await import("./index-erv82p4z.js");
|
|
1637
|
-
const all = new Map;
|
|
1638
|
-
await Promise.all(leaves.map(async (l) => all.set(l, await l.load())));
|
|
1639
|
-
if (script)
|
|
1640
|
-
Object.defineProperty(process, "execPath", { value: "kit", configurable: true });
|
|
1641
|
-
await cli(script ? ["complete", tokens[1]] : argv, { name: "kit", run: () => {} }, {
|
|
1642
|
-
name: "kit",
|
|
1643
|
-
version: package_default.version,
|
|
1644
|
-
subCommands: buildTree(leaves, all, rt),
|
|
1645
|
-
renderUsage: null,
|
|
1646
|
-
renderHeader: null,
|
|
1647
|
-
plugins: [completion()]
|
|
1648
|
-
});
|
|
1649
|
-
return 0;
|
|
1650
|
-
}
|
|
1651
|
-
const matches = leaves.filter((l) => startsWith(tokens, l.path)).sort((a, b) => b.path.length - a.path.length);
|
|
1652
|
-
const loaded = new Map;
|
|
1653
|
-
let target;
|
|
1654
|
-
const longest = matches[0]?.path.length;
|
|
1655
|
-
for (const m of matches.filter((x) => x.path.length === longest)) {
|
|
1656
|
-
const cmd = await m.load();
|
|
1657
|
-
if (target && target.source === "builtin" && m.source === "repo" && !cmd.override) {
|
|
1658
|
-
throw new KitError(`.kit/commands/${m.path.join("/")}.ts conflicts with built-in \`kit ${m.path.join(" ")}\``, "Rename it, or set `override: true` to replace the built-in", ExitCode.usage);
|
|
1659
|
-
}
|
|
1660
|
-
if (!target || m.source === "repo" && cmd.override) {
|
|
1661
|
-
if (target)
|
|
1662
|
-
loaded.delete(target);
|
|
1663
|
-
target = m;
|
|
1664
|
-
loaded.set(m, cmd);
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
1667
|
-
const picked = target && loaded.get(target);
|
|
1668
|
-
if (target && picked?.passthrough) {
|
|
1669
|
-
const rest = argv.slice(target.path.length);
|
|
1670
|
-
if (rest[0] !== "-h" && rest[0] !== "--help") {
|
|
1671
|
-
await picked.run(withBuiltin({ root, config, args: {}, positionals: [], rest, flags: computeFlags({}), log }));
|
|
1672
|
-
return process.exitCode === undefined ? 0 : Number(process.exitCode);
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
if (!target || wantsHelp) {
|
|
1676
|
-
const level = leaves.filter((l) => l.source === "repo" && startsWith(l.path, tokens.slice(0, l.path.length - 1)));
|
|
1677
|
-
await Promise.all(level.map(async (l) => loaded.set(l, await l.load())));
|
|
1678
|
-
for (const l of level) {
|
|
1679
|
-
l.description = loaded.get(l)?.description ?? "";
|
|
1680
|
-
l.override = loaded.get(l)?.override;
|
|
1681
|
-
}
|
|
1682
|
-
if (!target)
|
|
1683
|
-
for (const l of level)
|
|
1684
|
-
loaded.delete(l);
|
|
1685
|
-
}
|
|
1686
|
-
if (!target && tokens.length) {
|
|
1687
|
-
let i = 0;
|
|
1688
|
-
while (i < tokens.length && leaves.some((l) => same(l.path.slice(0, i + 1), tokens.slice(0, i + 1))))
|
|
1689
|
-
i++;
|
|
1690
|
-
const isGroup = i === tokens.length;
|
|
1691
|
-
if (!isGroup) {
|
|
1692
|
-
const prefix = tokens.slice(0, i);
|
|
1693
|
-
const options = [...new Set(leaves.filter((l) => startsWith(l.path, prefix)).map((l) => l.path[i]))];
|
|
1694
|
-
const guess = suggest(tokens[i], options);
|
|
1695
|
-
throw new KitError(`Unknown command "${tokens.slice(0, i + 1).join(" ")}".${guess ? ` Did you mean "${[...prefix, guess].join(" ")}"?` : ""}`, `Run \`kit ${prefix.length ? `${prefix.join(" ")} ` : ""}--help\` to list commands`, ExitCode.usage);
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
const own = target;
|
|
1699
|
-
const listsChildren = wantsHelp && own !== undefined && tokens.length === own.path.length;
|
|
1700
|
-
const treeLeaves = own && !listsChildren ? leaves.filter((l) => !(l.path.length > own.path.length && startsWith(l.path, own.path))) : leaves;
|
|
1701
|
-
const subCommands = buildTree(treeLeaves, loaded, rt);
|
|
1702
|
-
const entry = {
|
|
1703
|
-
name: "kit",
|
|
1704
|
-
description: config ? `kit \xB7 ${config.name}` : "kit",
|
|
1705
|
-
run: () => {}
|
|
1706
|
-
};
|
|
1707
|
-
await cli(argv, entry, {
|
|
1708
|
-
name: "kit",
|
|
1709
|
-
version: package_default.version,
|
|
1710
|
-
description: "One dev toolkit for every app",
|
|
1711
|
-
subCommands,
|
|
1712
|
-
renderUsage: null,
|
|
1713
|
-
renderHeader: null,
|
|
1714
|
-
renderValidationErrors: null,
|
|
1715
|
-
plugins: [kitGlobals(package_default.version, renderUsage)]
|
|
1716
|
-
});
|
|
1717
|
-
return process.exitCode === undefined ? 0 : Number(process.exitCode);
|
|
1718
|
-
}
|
|
1719
|
-
installSignalHandlers();
|
|
1720
|
-
try {
|
|
1721
|
-
process.exitCode = await main(process.argv.slice(2));
|
|
1722
|
-
} catch (e) {
|
|
1723
|
-
const argv = process.argv.slice(2);
|
|
1724
|
-
const dashdash = argv.indexOf("--");
|
|
1725
|
-
if ((dashdash < 0 ? argv : argv.slice(0, dashdash)).includes("--json") && !jsonEmitted()) {
|
|
1726
|
-
emitJson({
|
|
1727
|
-
ok: false,
|
|
1728
|
-
error: e instanceof Error ? e.message : String(e),
|
|
1729
|
-
...e instanceof KitError && e.hint ? { hint: e.hint } : {},
|
|
1730
|
-
exitCode: e instanceof KitError ? e.exitCode : ExitCode.failed
|
|
1731
|
-
});
|
|
1732
|
-
}
|
|
1733
|
-
if (e instanceof KitError) {
|
|
1734
|
-
log.error(e.message, e.hint);
|
|
1735
|
-
process.exitCode = e.exitCode;
|
|
1736
|
-
} else {
|
|
1737
|
-
log.error(e instanceof Error ? e.message : String(e));
|
|
1738
|
-
if (process.env.DEBUG?.includes("kit") && e instanceof Error)
|
|
1739
|
-
log.dim(e.stack ?? "");
|
|
1740
|
-
else
|
|
1741
|
-
log.dim(` ${import_picocolors2.default.dim("re-run with DEBUG=kit for a stack trace")}`);
|
|
1742
|
-
process.exitCode = ExitCode.failed;
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
if (interrupted())
|
|
1746
|
-
process.exitCode = ExitCode.interrupted;
|
|
1747
|
-
await runCleanup();
|