@ykdz/template 0.0.41 → 0.1.0-experimental.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/dist/application.d.ts +38 -4
- package/dist/application.js +199 -138
- package/dist/cli.js +0 -5
- package/dist/input-schemas.d.ts +14 -0
- package/dist/input-schemas.js +27 -8
- package/dist/input-validation.d.ts +43 -0
- package/dist/input-validation.js +129 -0
- package/dist/main.js +157 -6
- package/dist/preset-catalog.d.ts +36 -0
- package/dist/preset-catalog.js +41 -0
- package/dist/result-schemas.d.ts +63 -34
- package/dist/result-schemas.js +5 -4
- package/dist/standard-schema.d.ts +1 -1
- package/dist/standard-schema.js +1 -9
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/util.d.ts +7 -4
- package/node_modules/@typescript/typescript-linux-x64/LICENSE +55 -0
- package/node_modules/@typescript/typescript-linux-x64/NOTICE.txt +436 -0
- package/node_modules/@typescript/typescript-linux-x64/README.md +3 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.d.ts +20 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.decorators.d.ts +382 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.decorators.legacy.d.ts +20 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.dom.asynciterable.d.ts +18 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.dom.d.ts +45125 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.dom.iterable.d.ts +18 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.collection.d.ts +159 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.core.d.ts +595 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.d.ts +26 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.generator.d.ts +75 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.iterable.d.ts +603 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.promise.d.ts +79 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.proxy.d.ts +126 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.reflect.d.ts +142 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.symbol.d.ts +44 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.array.include.d.ts +114 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.d.ts +19 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.full.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.intl.d.ts +29 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.arraybuffer.d.ts +19 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.d.ts +24 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.date.d.ts +29 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.full.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.intl.d.ts +42 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.object.d.ts +47 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.sharedmemory.d.ts +133 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.string.d.ts +47 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.typedarrays.d.ts +51 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.asyncgenerator.d.ts +75 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.asynciterable.d.ts +51 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.intl.d.ts +81 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.promise.d.ts +28 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.regexp.d.ts +35 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.array.d.ts +77 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.intl.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.object.d.ts +31 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.string.d.ts +35 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.symbol.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.bigint.d.ts +763 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.d.ts +25 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.date.d.ts +40 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.intl.d.ts +472 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.number.d.ts +26 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.promise.d.ts +45 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.sharedmemory.d.ts +97 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.string.d.ts +42 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.intl.d.ts +164 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.promise.d.ts +46 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.string.d.ts +31 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.weakref.d.ts +76 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.array.d.ts +119 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.d.ts +23 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.error.d.ts +73 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.intl.d.ts +143 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.object.d.ts +24 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.regexp.d.ts +37 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.string.d.ts +23 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.array.d.ts +922 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.collection.d.ts +19 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.d.ts +20 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.intl.d.ts +62 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.arraybuffer.d.ts +63 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.collection.d.ts +27 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.d.ts +24 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.object.d.ts +27 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.promise.d.ts +33 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.regexp.d.ts +23 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.sharedmemory.d.ts +66 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.string.d.ts +27 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.collection.d.ts +94 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.d.ts +23 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.float16.d.ts +443 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.intl.d.ts +200 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.iterator.d.ts +146 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.promise.d.ts +32 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.regexp.d.ts +30 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es5.d.ts +4599 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es6.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.array.d.ts +33 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.collection.d.ts +47 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.d.ts +27 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.date.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.decorators.d.ts +26 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.disposable.d.ts +191 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.error.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.intl.d.ts +107 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.sharedmemory.d.ts +23 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.temporal.d.ts +485 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.typedarrays.d.ts +90 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.scripthost.d.ts +320 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.asynciterable.d.ts +18 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.d.ts +15606 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.importscripts.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.iterable.d.ts +18 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/tsc +0 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/tsc.sig +11 -0
- package/node_modules/@typescript/typescript-linux-x64/package.json +45 -0
- package/node_modules/@ykdz/cli-contract/dist/cli-contract.d.ts +689 -184
- package/node_modules/@ykdz/cli-contract/dist/cli-contract.js +816 -243
- package/node_modules/@ykdz/cli-contract/dist/cli-execution.d.ts +11 -7
- package/node_modules/@ykdz/cli-contract/dist/cli-execution.js +69 -22
- package/node_modules/@ykdz/cli-contract/dist/cli-invocation.d.ts +80 -31
- package/node_modules/@ykdz/cli-contract/dist/cli-invocation.js +84 -26
- package/node_modules/@ykdz/cli-contract/dist/contract-definition-error.d.ts +40 -7
- package/node_modules/@ykdz/cli-contract/dist/contract-definition-error.js +28 -6
- package/node_modules/@ykdz/cli-contract/dist/contract-schema-compiler.js +17 -3
- package/node_modules/@ykdz/cli-contract/dist/contract-schema.d.ts +4 -0
- package/node_modules/@ykdz/cli-contract/dist/field-identity.d.ts +2 -0
- package/node_modules/@ykdz/cli-contract/dist/field-identity.js +16 -0
- package/node_modules/@ykdz/cli-contract/dist/index.d.ts +4 -3
- package/node_modules/@ykdz/cli-contract/dist/index.js +2 -2
- package/node_modules/@ykdz/cli-contract/dist/node.d.ts +1 -1
- package/node_modules/@ykdz/cli-contract/dist/node.js +1 -1
- package/node_modules/@ykdz/cli-contract/dist/outcome-fact.d.ts +42 -9
- package/node_modules/@ykdz/cli-contract/dist/outcome-fact.js +98 -24
- package/node_modules/@ykdz/cli-contract/dist/outcome-wire.d.ts +5 -5
- package/node_modules/@ykdz/cli-contract/dist/outcome-wire.js +75 -15
- package/node_modules/@ykdz/cli-contract/package.json +6 -5
- package/node_modules/@ykdz/preset-rust-bin/native/package.json +46 -0
- package/node_modules/@ykdz/preset-rust-bin/native/template-dist/definition.d.ts +43 -0
- package/node_modules/@ykdz/preset-rust-bin/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-rust-bin/native/template-dist/definition.js +21 -0
- package/node_modules/@ykdz/preset-rust-bin/package.json +20 -0
- package/node_modules/@ykdz/preset-ts-cli/native/package.json +48 -0
- package/node_modules/@ykdz/preset-ts-cli/native/template-dist/definition.d.ts +23 -0
- package/node_modules/@ykdz/preset-ts-cli/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-ts-cli/native/template-dist/definition.js +23 -0
- package/node_modules/@ykdz/preset-ts-cli/package.json +20 -0
- package/node_modules/@ykdz/preset-ts-lib/native/package.json +45 -0
- package/node_modules/@ykdz/preset-ts-lib/native/template-dist/definition.d.ts +23 -0
- package/node_modules/@ykdz/preset-ts-lib/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-ts-lib/native/template-dist/definition.js +21 -0
- package/node_modules/@ykdz/preset-ts-lib/package.json +20 -0
- package/node_modules/@ykdz/preset-vike-app/native/package.json +55 -0
- package/node_modules/@ykdz/preset-vike-app/native/resources/deployment/Dockerfile +76 -0
- package/node_modules/@ykdz/preset-vike-app/native/resources/deployment/container.dockerignore +11 -0
- package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → preset-vike-app/native/resources/deployment}/scripts/container-entrypoint.sh +0 -0
- package/node_modules/@ykdz/preset-vike-app/native/resources/deployment/setup-buildx-step.yml +3 -0
- package/node_modules/@ykdz/preset-vike-app/native/scripts/check-standalone-deployment.ts +570 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/definition.d.ts +35 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/definition.js +61 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/deployment.d.ts +20 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/deployment.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/deployment.js +277 -0
- package/node_modules/@ykdz/preset-vike-app/package.json +24 -0
- package/node_modules/@ykdz/preset-vue-app/native/package.json +44 -0
- package/node_modules/@ykdz/preset-vue-app/native/template-dist/definition.d.ts +23 -0
- package/node_modules/@ykdz/preset-vue-app/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-vue-app/native/template-dist/definition.js +21 -0
- package/node_modules/@ykdz/preset-vue-app/package.json +20 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/package.json +50 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/resources/joint-e2e/playwright.config.ts +35 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/resources/joint-e2e/test/e2e/app.spec.ts +10 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/definition.d.ts +33 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/definition.js +129 -0
- package/node_modules/@ykdz/preset-vue-hono-app/package.json +21 -0
- package/node_modules/@ykdz/reference-hono-api/native/package.json +55 -0
- package/node_modules/@ykdz/reference-hono-api/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-hono-api/native/template-dist/definition.js +33 -0
- package/node_modules/@ykdz/reference-hono-api/native/test/app.test.ts +11 -0
- package/node_modules/@ykdz/reference-hono-api/native/tsconfig.build.json +11 -0
- package/node_modules/@ykdz/reference-hono-api/native/tsconfig.json +15 -0
- package/node_modules/@ykdz/reference-hono-api/native/turbo.json +67 -0
- package/node_modules/@ykdz/reference-hono-api/package.json +19 -0
- package/node_modules/@ykdz/reference-npm-publication/native/.changeset/config.json +4 -0
- package/node_modules/@ykdz/reference-npm-publication/native/README.md +11 -0
- package/node_modules/@ykdz/reference-npm-publication/native/package.json +38 -0
- package/node_modules/@ykdz/reference-npm-publication/native/resources/gitignore +1 -0
- package/node_modules/@ykdz/reference-npm-publication/native/resources/release.yml +70 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/definition.d.ts +5 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/definition.js +39 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/target.d.ts +13 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/target.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/target.js +30 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/workspace.d.ts +11 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/workspace.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/workspace.js +51 -0
- package/node_modules/@ykdz/reference-npm-publication/package.json +19 -0
- package/node_modules/@ykdz/reference-rust-bin/native/Cargo.lock +16 -0
- package/node_modules/@ykdz/reference-rust-bin/native/Cargo.toml +27 -0
- package/node_modules/@ykdz/reference-rust-bin/native/package.json +38 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template/rust-toolchain.toml +3 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/definition.d.ts +15 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/definition.js +145 -0
- package/node_modules/@ykdz/reference-rust-bin/native/tsconfig.json +8 -0
- package/node_modules/@ykdz/reference-rust-bin/native/turbo.json +63 -0
- package/node_modules/@ykdz/reference-rust-bin/package.json +20 -0
- package/node_modules/@ykdz/reference-tooling-config/native/node.json +13 -0
- package/node_modules/@ykdz/reference-tooling-config/native/oxlint.config.ts +8 -0
- package/node_modules/@ykdz/reference-tooling-config/native/package.json +37 -0
- package/node_modules/@ykdz/reference-tooling-config/native/template-dist/definition.d.ts +27 -0
- package/node_modules/@ykdz/reference-tooling-config/native/template-dist/definition.js +27 -0
- package/node_modules/@ykdz/reference-tooling-config/native/tsconfig.json +9 -0
- package/node_modules/@ykdz/reference-tooling-config/native/turbo.json +51 -0
- package/node_modules/@ykdz/reference-tooling-config/package.json +16 -0
- package/node_modules/@ykdz/reference-ts-cli/native/package.json +56 -0
- package/node_modules/@ykdz/reference-ts-cli/native/src/cli.ts +17 -0
- package/node_modules/@ykdz/reference-ts-cli/native/src/main.ts +162 -0
- package/node_modules/@ykdz/reference-ts-cli/native/src/publication/cli-command-identity.ts +88 -0
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/definition.d.ts +8 -0
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/definition.js +80 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/e2e/journey.ts +31 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/e2e/journeys/lookup.journey.ts +76 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/e2e/run-journeys.ts +240 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/e2e/source-journeys.test.ts +9 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/integration/command.test.ts +147 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/unit/cli-command-identity.test.ts +76 -0
- package/node_modules/@ykdz/reference-ts-cli/native/tsconfig.build.json +12 -0
- package/node_modules/@ykdz/reference-ts-cli/native/tsconfig.json +8 -0
- package/node_modules/@ykdz/reference-ts-cli/native/tsconfig.node.json +7 -0
- package/node_modules/@ykdz/reference-ts-cli/native/turbo.json +75 -0
- package/node_modules/@ykdz/reference-ts-cli/package.json +20 -0
- package/node_modules/@ykdz/reference-ts-lib/native/package.json +54 -0
- package/node_modules/@ykdz/reference-ts-lib/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-ts-lib/native/template-dist/definition.js +43 -0
- package/node_modules/@ykdz/reference-ts-lib/native/test/greet.test.ts +20 -0
- package/node_modules/@ykdz/reference-ts-lib/native/tsconfig.build.json +9 -0
- package/node_modules/@ykdz/reference-ts-lib/native/tsconfig.json +8 -0
- package/node_modules/@ykdz/reference-ts-lib/native/tsconfig.node.json +8 -0
- package/node_modules/@ykdz/reference-ts-lib/native/turbo.json +63 -0
- package/node_modules/@ykdz/reference-ts-lib/package.json +20 -0
- package/node_modules/@ykdz/reference-vike-db/native/package.json +83 -0
- package/node_modules/@ykdz/reference-vike-db/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-vike-db/native/template-dist/definition.js +39 -0
- package/node_modules/@ykdz/reference-vike-db/native/test/todos.test.ts +20 -0
- package/node_modules/@ykdz/reference-vike-db/native/tsconfig.build.json +12 -0
- package/node_modules/@ykdz/reference-vike-db/native/tsconfig.json +11 -0
- package/node_modules/@ykdz/reference-vike-db/native/tsconfig.node.json +19 -0
- package/node_modules/@ykdz/reference-vike-db/native/tsconfig.scripts.json +13 -0
- package/node_modules/@ykdz/reference-vike-db/native/turbo.json +67 -0
- package/node_modules/@ykdz/reference-vike-db/package.json +19 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/drizzle.config.ts +22 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/package.json +51 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/template-dist/definition.js +39 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/tsconfig.json +15 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/turbo.json +76 -0
- package/node_modules/@ykdz/reference-vike-migrations/package.json +19 -0
- package/node_modules/@ykdz/reference-vike-web/native/TESTING.md +7 -0
- package/node_modules/@ykdz/reference-vike-web/native/package.json +84 -0
- package/node_modules/@ykdz/reference-vike-web/native/pages/index/+Page.telefunc.ts +12 -0
- package/node_modules/@ykdz/reference-vike-web/native/pages/index/+Page.vue +89 -0
- package/node_modules/@ykdz/reference-vike-web/native/playwright.config.ts +156 -0
- package/node_modules/@ykdz/reference-vike-web/native/server/app.ts +36 -0
- package/node_modules/@ykdz/reference-vike-web/native/server/database.ts +2 -0
- package/node_modules/@ykdz/reference-vike-web/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-vike-web/native/template-dist/definition.js +59 -0
- package/node_modules/@ykdz/reference-vike-web/native/test/e2e/app.spec.ts +16 -0
- package/node_modules/@ykdz/reference-vike-web/native/test/todos.browser.test.ts +37 -0
- package/node_modules/@ykdz/reference-vike-web/native/tooling/vite.ts +5 -0
- package/node_modules/@ykdz/reference-vike-web/native/tsconfig.app.json +27 -0
- package/node_modules/@ykdz/reference-vike-web/native/tsconfig.json +11 -0
- package/node_modules/@ykdz/reference-vike-web/native/tsconfig.node.json +33 -0
- package/node_modules/@ykdz/reference-vike-web/native/turbo.json +92 -0
- package/node_modules/@ykdz/reference-vike-web/native/types/global.d.ts +9 -0
- package/node_modules/@ykdz/reference-vike-web/native/vite.config.ts +16 -0
- package/node_modules/@ykdz/reference-vike-web/native/vitest.config.ts +37 -0
- package/node_modules/@ykdz/reference-vike-web/package.json +20 -0
- package/node_modules/@ykdz/reference-vue-app/native/TESTING.md +7 -0
- package/node_modules/@ykdz/reference-vue-app/native/package.json +70 -0
- package/node_modules/@ykdz/reference-vue-app/native/src/App.vue +43 -0
- package/node_modules/@ykdz/reference-vue-app/native/src/components/CounterButton.vue +18 -0
- package/node_modules/@ykdz/reference-vue-app/native/src/style.css +2 -0
- package/node_modules/@ykdz/reference-vue-app/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-vue-app/native/template-dist/definition.js +53 -0
- package/node_modules/@ykdz/reference-vue-app/native/test/app.browser.test.ts +13 -0
- package/node_modules/@ykdz/reference-vue-app/native/test/counter.node.test.ts +15 -0
- package/node_modules/@ykdz/reference-vue-app/native/test/e2e/app.spec.ts +15 -0
- package/node_modules/@ykdz/reference-vue-app/native/tsconfig.app.json +18 -0
- package/node_modules/@ykdz/reference-vue-app/native/tsconfig.json +11 -0
- package/node_modules/@ykdz/reference-vue-app/native/tsconfig.node.json +25 -0
- package/node_modules/@ykdz/reference-vue-app/native/turbo.json +84 -0
- package/node_modules/@ykdz/reference-vue-app/native/vite.config.ts +8 -0
- package/node_modules/@ykdz/reference-vue-app/native/vitest.config.ts +37 -0
- package/node_modules/@ykdz/reference-vue-app/package.json +20 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/TESTING.md +7 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/package.json +66 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/src/App.vue +49 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/src/main.ts +7 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/src/style.css +2 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/template-dist/definition.js +49 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/test/app.browser.test.ts +13 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/tsconfig.app.json +18 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/tsconfig.json +11 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/tsconfig.node.json +25 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/turbo.json +74 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/vite.config.ts +28 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/vitest.config.ts +37 -0
- package/node_modules/@ykdz/reference-vue-hono-web/package.json +20 -0
- package/node_modules/@ykdz/template-content/dist/index.d.ts +14 -0
- package/node_modules/@ykdz/template-content/dist/index.js +9 -0
- package/node_modules/@ykdz/template-content/dist/template-members.d.ts +9 -0
- package/node_modules/@ykdz/template-content/dist/template-members.js +16 -0
- package/node_modules/@ykdz/template-content/package.json +18 -0
- package/node_modules/@ykdz/template-content-provider-51cfac9642dc43a4/dist/index.d.ts +45 -0
- package/node_modules/@ykdz/template-content-provider-51cfac9642dc43a4/dist/index.js +30 -0
- package/node_modules/@ykdz/template-content-provider-51cfac9642dc43a4/package.json +35 -0
- package/node_modules/@ykdz/template-core/dist/content-identity.d.ts +42 -0
- package/node_modules/@ykdz/template-core/dist/content-identity.js +117 -0
- package/node_modules/@ykdz/template-core/dist/generation-record.d.ts +28 -0
- package/node_modules/@ykdz/template-core/dist/generation-record.js +45 -0
- package/node_modules/@ykdz/template-core/dist/package-contribution.d.ts +3 -81
- package/node_modules/@ykdz/template-core/dist/package-contribution.js +19 -106
- package/node_modules/@ykdz/template-core/dist/preset-definition.d.ts +73 -97
- package/node_modules/@ykdz/template-core/dist/preset-definition.js +107 -15
- package/node_modules/@ykdz/template-core/dist/project-blueprint.d.ts +3 -11
- package/node_modules/@ykdz/template-core/dist/project-blueprint.js +23 -71
- package/node_modules/@ykdz/template-core/dist/project-projection.js +4 -17
- package/node_modules/@ykdz/template-core/dist/renderer-policy-snapshot.d.ts +1 -0
- package/node_modules/@ykdz/template-core/dist/renderer-policy-snapshot.js +2 -0
- package/node_modules/@ykdz/template-core/dist/renderer.d.ts +8 -25
- package/node_modules/@ykdz/template-core/dist/renderer.js +53 -253
- package/node_modules/@ykdz/template-core/dist/toml.d.ts +6 -0
- package/node_modules/@ykdz/template-core/dist/toml.js +31 -0
- package/node_modules/@ykdz/template-core/dist/workspace-strategy.d.ts +188 -0
- package/node_modules/@ykdz/template-core/dist/workspace-strategy.js +1 -0
- package/node_modules/@ykdz/template-core/package.json +24 -25
- package/node_modules/@ykdz/template-environment/dist/development-container-tool-layer.d.ts +65 -0
- package/node_modules/@ykdz/template-environment/dist/development-container-tool-layer.js +414 -0
- package/node_modules/@ykdz/template-environment/package.json +36 -0
- package/node_modules/@ykdz/template-generator/dist/content-source.d.ts +13 -0
- package/node_modules/@ykdz/template-generator/dist/content-source.js +181 -0
- package/node_modules/@ykdz/template-generator/dist/index.d.ts +82 -0
- package/node_modules/@ykdz/template-generator/dist/index.js +1147 -0
- package/node_modules/@ykdz/template-generator/package.json +41 -0
- package/node_modules/@ykdz/template-workspace/assets/agent-instructions.md +25 -0
- package/node_modules/@ykdz/template-workspace/assets/environment/devcontainer/workspace-template.json +16 -0
- package/node_modules/@ykdz/template-workspace/assets/github/check.yml +83 -0
- package/node_modules/@ykdz/template-workspace/assets/github/dependabot.yml +49 -0
- package/node_modules/@ykdz/template-workspace/assets/gitignore +12 -0
- package/node_modules/@ykdz/template-workspace/assets/next-steps.md +3 -0
- package/node_modules/@ykdz/template-workspace/assets/tsconfig.config.json +6 -0
- package/node_modules/@ykdz/template-workspace/assets/turbo.json +64 -0
- package/node_modules/@ykdz/template-workspace/dist/application-requirements.d.ts +14 -0
- package/node_modules/@ykdz/template-workspace/dist/application-requirements.js +42 -0
- package/node_modules/@ykdz/template-workspace/dist/ci-diagnostic-artifact.d.ts +17 -0
- package/node_modules/@ykdz/template-workspace/dist/ci-diagnostic-artifact.js +74 -0
- package/node_modules/@ykdz/template-workspace/dist/default-environment-sources.d.ts +5 -0
- package/node_modules/@ykdz/template-workspace/dist/default-environment-sources.js +8 -0
- package/node_modules/@ykdz/template-workspace/dist/default-environment.d.ts +9 -0
- package/node_modules/@ykdz/template-workspace/dist/default-environment.js +5 -0
- package/node_modules/@ykdz/template-workspace/dist/default-package-identity.d.ts +19 -0
- package/node_modules/@ykdz/template-workspace/dist/default-package-identity.js +128 -0
- package/node_modules/@ykdz/template-workspace/dist/default-package-role.d.ts +4 -0
- package/node_modules/@ykdz/template-workspace/dist/default-package-role.js +9 -0
- package/node_modules/@ykdz/template-workspace/dist/default-workspace-strategy.d.ts +89 -0
- package/node_modules/@ykdz/template-workspace/dist/default-workspace-strategy.js +967 -0
- package/node_modules/@ykdz/template-workspace/dist/dependency-catalog.d.ts +25 -0
- package/node_modules/@ykdz/template-workspace/dist/dependency-catalog.js +159 -0
- package/node_modules/@ykdz/template-workspace/dist/development-container.d.ts +3 -0
- package/node_modules/@ykdz/template-workspace/dist/development-container.js +36 -0
- package/node_modules/@ykdz/template-workspace/dist/development-environment.d.ts +36 -0
- package/node_modules/@ykdz/template-workspace/dist/development-environment.js +241 -0
- package/node_modules/@ykdz/template-workspace/dist/editor-customization.d.ts +18 -0
- package/node_modules/@ykdz/template-workspace/dist/editor-customization.js +83 -0
- package/node_modules/@ykdz/template-workspace/dist/environment-needs.d.ts +51 -0
- package/node_modules/@ykdz/template-workspace/dist/environment-needs.js +167 -0
- package/node_modules/@ykdz/template-workspace/dist/generation-context.d.ts +14 -0
- package/node_modules/@ykdz/template-workspace/dist/package-addition-facts.d.ts +21 -0
- package/node_modules/@ykdz/template-workspace/dist/package-addition-facts.js +90 -0
- package/node_modules/@ykdz/template-workspace/dist/package-contribution.d.ts +64 -0
- package/node_modules/@ykdz/template-workspace/dist/package-contribution.js +65 -0
- package/node_modules/@ykdz/template-workspace/dist/project-github.d.ts +24 -0
- package/node_modules/@ykdz/template-workspace/dist/project-github.js +98 -0
- package/node_modules/@ykdz/template-workspace/dist/project-linking.d.ts +48 -0
- package/node_modules/@ykdz/template-workspace/dist/project-linking.js +218 -0
- package/node_modules/@ykdz/template-workspace/dist/project-requirements.d.ts +17 -0
- package/node_modules/@ykdz/template-workspace/dist/reference-package.d.ts +146 -0
- package/node_modules/@ykdz/template-workspace/dist/reference-package.js +521 -0
- package/node_modules/@ykdz/template-workspace/dist/release-toolchain-snapshot.d.ts +6 -0
- package/node_modules/@ykdz/template-workspace/dist/release-toolchain-snapshot.js +6 -0
- package/node_modules/@ykdz/template-workspace/dist/root-projection.d.ts +29 -0
- package/node_modules/@ykdz/template-workspace/dist/root-projection.js +144 -0
- package/node_modules/@ykdz/template-workspace/dist/rust-target-projection.d.ts +35 -0
- package/node_modules/@ykdz/template-workspace/dist/rust-target-projection.js +74 -0
- package/node_modules/@ykdz/template-workspace/dist/rust-toolchain-facts.d.ts +22 -0
- package/node_modules/@ykdz/template-workspace/dist/rust-toolchain-facts.js +64 -0
- package/node_modules/@ykdz/template-workspace/dist/shared-root-files.d.ts +99 -0
- package/node_modules/@ykdz/template-workspace/dist/shared-root-files.js +159 -0
- package/node_modules/@ykdz/template-workspace/dist/vue-policy.d.ts +5 -0
- package/node_modules/@ykdz/template-workspace/dist/vue-policy.js +5 -0
- package/node_modules/@ykdz/template-workspace/dist/workspace-policy-snapshot.d.ts +20 -0
- package/node_modules/@ykdz/template-workspace/dist/workspace-policy-snapshot.js +86 -0
- package/node_modules/@ykdz/template-workspace/dist/workspace-resources.d.ts +23 -0
- package/node_modules/@ykdz/template-workspace/dist/workspace-resources.js +83 -0
- package/node_modules/@ykdz/template-workspace/package.json +135 -0
- package/node_modules/@ykdz/template-workspace/resources/oxfmt.config.ts +1 -0
- package/node_modules/@ykdz/template-workspace/resources/oxlint.config.ts +4 -0
- package/node_modules/@ykdz/template-workspace/scripts/sync-snapshot.ts +27 -0
- package/node_modules/@ykdz/template-workspace/scripts/task-gates.ts +631 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/content-artifact.d.ts +57 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/content-artifact.js +168 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/package-name-projection.d.ts +2 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/package-name-projection.js +22 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/resource-ignore-snapshot.d.ts +1 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/resource-ignore-snapshot.js +2 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/typescript-module-specifiers.d.ts +2 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/typescript-module-specifiers.js +36 -0
- package/node_modules/@ykdz/template-workspace-authoring/package.json +55 -0
- package/node_modules/eslint-visitor-keys/LICENSE +201 -0
- package/node_modules/eslint-visitor-keys/README.md +123 -0
- package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +187 -0
- package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +28 -0
- package/node_modules/eslint-visitor-keys/dist/index.d.ts +16 -0
- package/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +12 -0
- package/node_modules/eslint-visitor-keys/lib/index.js +67 -0
- package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +118 -0
- package/node_modules/eslint-visitor-keys/package.json +57 -0
- package/node_modules/ignore/LICENSE-MIT +21 -0
- package/node_modules/ignore/README.md +501 -0
- package/node_modules/ignore/index.d.ts +81 -0
- package/node_modules/ignore/index.js +1566 -0
- package/node_modules/ignore/legacy.js +1346 -0
- package/node_modules/ignore/package.json +93 -0
- package/node_modules/smol-toml/dist/extract.js +5 -1
- package/node_modules/smol-toml/dist/index.cjs +2 -1
- package/node_modules/smol-toml/package.json +6 -6
- package/node_modules/toml-eslint-parser/LICENSE +21 -0
- package/node_modules/toml-eslint-parser/README.md +192 -0
- package/node_modules/toml-eslint-parser/lib/chunk-15K8U1wQ.mjs +18 -0
- package/node_modules/toml-eslint-parser/lib/index.d.mts +284 -0
- package/node_modules/toml-eslint-parser/lib/index.mjs +2219 -0
- package/node_modules/toml-eslint-parser/package.json +102 -0
- package/node_modules/typescript-7/LICENSE +55 -0
- package/node_modules/typescript-7/NOTICE.txt +436 -0
- package/node_modules/typescript-7/README.md +49 -0
- package/node_modules/typescript-7/bin/tsc +2 -0
- package/node_modules/typescript-7/dist/api/async/api.d.ts +529 -0
- package/node_modules/typescript-7/dist/api/async/api.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/async/api.js +1657 -0
- package/node_modules/typescript-7/dist/api/async/api.js.map +1 -0
- package/node_modules/typescript-7/dist/api/async/client.d.ts +39 -0
- package/node_modules/typescript-7/dist/api/async/client.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/async/client.js +211 -0
- package/node_modules/typescript-7/dist/api/async/client.js.map +1 -0
- package/node_modules/typescript-7/dist/api/async/types.d.ts +310 -0
- package/node_modules/typescript-7/dist/api/async/types.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/async/types.js +2 -0
- package/node_modules/typescript-7/dist/api/async/types.js.map +1 -0
- package/node_modules/typescript-7/dist/api/compilerOptions.d.ts +109 -0
- package/node_modules/typescript-7/dist/api/compilerOptions.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/compilerOptions.js +2 -0
- package/node_modules/typescript-7/dist/api/compilerOptions.js.map +1 -0
- package/node_modules/typescript-7/dist/api/fs.d.ts +23 -0
- package/node_modules/typescript-7/dist/api/fs.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/fs.js +109 -0
- package/node_modules/typescript-7/dist/api/fs.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/encoder.d.ts +15 -0
- package/node_modules/typescript-7/dist/api/node/encoder.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/encoder.generated.d.ts +5 -0
- package/node_modules/typescript-7/dist/api/node/encoder.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/encoder.generated.js +74 -0
- package/node_modules/typescript-7/dist/api/node/encoder.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/encoder.js +287 -0
- package/node_modules/typescript-7/dist/api/node/encoder.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/msgpack.d.ts +32 -0
- package/node_modules/typescript-7/dist/api/node/msgpack.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/msgpack.js +213 -0
- package/node_modules/typescript-7/dist/api/node/msgpack.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.d.ts +76 -0
- package/node_modules/typescript-7/dist/api/node/node.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.generated.d.ts +182 -0
- package/node_modules/typescript-7/dist/api/node/node.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.generated.js +835 -0
- package/node_modules/typescript-7/dist/api/node/node.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.d.ts +62 -0
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.js +122 -0
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.js +298 -0
- package/node_modules/typescript-7/dist/api/node/node.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/protocol.d.ts +29 -0
- package/node_modules/typescript-7/dist/api/node/protocol.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/protocol.generated.d.ts +4 -0
- package/node_modules/typescript-7/dist/api/node/protocol.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/protocol.generated.js +241 -0
- package/node_modules/typescript-7/dist/api/node/protocol.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/protocol.js +30 -0
- package/node_modules/typescript-7/dist/api/node/protocol.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/wtf8.d.ts +6 -0
- package/node_modules/typescript-7/dist/api/node/wtf8.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/wtf8.js +61 -0
- package/node_modules/typescript-7/dist/api/node/wtf8.js.map +1 -0
- package/node_modules/typescript-7/dist/api/options.d.ts +32 -0
- package/node_modules/typescript-7/dist/api/options.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/options.js +11 -0
- package/node_modules/typescript-7/dist/api/options.js.map +1 -0
- package/node_modules/typescript-7/dist/api/path.d.ts +110 -0
- package/node_modules/typescript-7/dist/api/path.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/path.js +508 -0
- package/node_modules/typescript-7/dist/api/path.js.map +1 -0
- package/node_modules/typescript-7/dist/api/proto.d.ts +239 -0
- package/node_modules/typescript-7/dist/api/proto.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/proto.js +37 -0
- package/node_modules/typescript-7/dist/api/proto.js.map +1 -0
- package/node_modules/typescript-7/dist/api/sourceFileCache.d.ts +79 -0
- package/node_modules/typescript-7/dist/api/sourceFileCache.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/sourceFileCache.js +169 -0
- package/node_modules/typescript-7/dist/api/sourceFileCache.js.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/api.d.ts +529 -0
- package/node_modules/typescript-7/dist/api/sync/api.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/api.js +1665 -0
- package/node_modules/typescript-7/dist/api/sync/api.js.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/client.d.ts +30 -0
- package/node_modules/typescript-7/dist/api/sync/client.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/client.js +124 -0
- package/node_modules/typescript-7/dist/api/sync/client.js.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/types.d.ts +310 -0
- package/node_modules/typescript-7/dist/api/sync/types.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/types.js +2 -0
- package/node_modules/typescript-7/dist/api/sync/types.js.map +1 -0
- package/node_modules/typescript-7/dist/api/syncChannel.d.ts +114 -0
- package/node_modules/typescript-7/dist/api/syncChannel.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/syncChannel.js +508 -0
- package/node_modules/typescript-7/dist/api/syncChannel.js.map +1 -0
- package/node_modules/typescript-7/dist/api/timing.d.ts +175 -0
- package/node_modules/typescript-7/dist/api/timing.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/timing.js +149 -0
- package/node_modules/typescript-7/dist/api/timing.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/ast.d.ts +100 -0
- package/node_modules/typescript-7/dist/ast/ast.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/ast.generated.d.ts +1161 -0
- package/node_modules/typescript-7/dist/ast/ast.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/ast.generated.js +4 -0
- package/node_modules/typescript-7/dist/ast/ast.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/ast.js +7 -0
- package/node_modules/typescript-7/dist/ast/ast.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/astnav.d.ts +19 -0
- package/node_modules/typescript-7/dist/ast/astnav.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/astnav.js +596 -0
- package/node_modules/typescript-7/dist/ast/astnav.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/clone.d.ts +16 -0
- package/node_modules/typescript-7/dist/ast/clone.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/clone.js +104 -0
- package/node_modules/typescript-7/dist/ast/clone.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/factory.generated.d.ts +520 -0
- package/node_modules/typescript-7/dist/ast/factory.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/factory.generated.js +3057 -0
- package/node_modules/typescript-7/dist/ast/factory.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/index.d.ts +20 -0
- package/node_modules/typescript-7/dist/ast/index.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/index.js +20 -0
- package/node_modules/typescript-7/dist/ast/index.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/is.d.ts +35 -0
- package/node_modules/typescript-7/dist/ast/is.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/is.generated.d.ts +329 -0
- package/node_modules/typescript-7/dist/ast/is.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/is.generated.js +1103 -0
- package/node_modules/typescript-7/dist/ast/is.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/is.js +233 -0
- package/node_modules/typescript-7/dist/ast/is.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/jsdoc.d.ts +11 -0
- package/node_modules/typescript-7/dist/ast/jsdoc.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/jsdoc.js +202 -0
- package/node_modules/typescript-7/dist/ast/jsdoc.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/scanner.d.ts +97 -0
- package/node_modules/typescript-7/dist/ast/scanner.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/scanner.js +2230 -0
- package/node_modules/typescript-7/dist/ast/scanner.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/utils.d.ts +17 -0
- package/node_modules/typescript-7/dist/ast/utils.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/utils.js +67 -0
- package/node_modules/typescript-7/dist/ast/utils.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/visitor.d.ts +14 -0
- package/node_modules/typescript-7/dist/ast/visitor.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/visitor.generated.d.ts +50 -0
- package/node_modules/typescript-7/dist/ast/visitor.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/visitor.generated.js +978 -0
- package/node_modules/typescript-7/dist/ast/visitor.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/visitor.js +47 -0
- package/node_modules/typescript-7/dist/ast/visitor.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.d.ts +129 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.js +132 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.js +130 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.d.ts +5 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.js +6 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.js +6 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.d.ts +28 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.js +30 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.js +30 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.d.ts +7 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.js +9 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.js +9 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.d.ts +12 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.js +14 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.js +14 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.d.ts +23 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.js +25 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.js +25 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.d.ts +9 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.js +11 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.js +11 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.d.ts +5 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.js +6 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.js +6 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.d.ts +42 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.js +44 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.js +44 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.d.ts +7 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.js +9 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.js +9 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.d.ts +17 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.js +19 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.js +19 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.d.ts +9 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.js +11 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.js +11 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.d.ts +6 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.js +8 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.js +8 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.d.ts +36 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.js +38 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.js +38 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.d.ts +44 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.js +46 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.js +46 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.d.ts +50 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.js +52 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.js +52 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.d.ts +16 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.js +18 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.js +18 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.d.ts +13 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.js +14 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.js +14 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.d.ts +11 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.js +12 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.js +12 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.d.ts +17 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.js +18 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.js +18 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.d.ts +15 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.js +17 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.js +17 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.d.ts +5 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.js +7 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.js +7 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.d.ts +71 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.js +73 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.js +73 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.d.ts +389 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.js +391 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.js +391 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.d.ts +30 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.js +32 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.js +32 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.d.ts +76 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.js +78 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.js +78 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.d.ts +7 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.js +9 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.js +9 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.js.map +1 -0
- package/node_modules/typescript-7/dist/internal/utils.d.ts +23 -0
- package/node_modules/typescript-7/dist/internal/utils.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/internal/utils.js +25 -0
- package/node_modules/typescript-7/dist/internal/utils.js.map +1 -0
- package/node_modules/typescript-7/lib/getExePath.d.ts +2 -0
- package/node_modules/typescript-7/lib/getExePath.js +70 -0
- package/node_modules/typescript-7/lib/tsc.js +28 -0
- package/node_modules/typescript-7/lib/version.cjs +3 -0
- package/node_modules/typescript-7/lib/version.d.cts +2 -0
- package/node_modules/typescript-7/package.json +87 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/License.txt +11 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/README.md +54 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/main.js +83 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/ril.js +210 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/api.d.ts +14 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/api.js +87 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/cancellation.js +132 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/connection.js +1271 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/disposable.js +16 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/encoding.js +70 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/events.d.ts +39 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/events.js +135 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/is.d.ts +7 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/is.js +34 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/linkedMap.js +412 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +155 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageReader.js +246 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageWriter.js +157 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messages.js +436 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/ral.js +23 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/semaphore.js +74 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +77 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/main.d.ts +58 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/main.js +289 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/ril.js +163 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/package.json +54 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/typings/thenable.d.ts +5 -0
- package/package.json +110 -40
- package/node_modules/@ykdz/template-builtin-presets/dist/src/foundation.d.ts +0 -243
- package/node_modules/@ykdz/template-builtin-presets/dist/src/foundation.js +0 -3555
- package/node_modules/@ykdz/template-builtin-presets/dist/src/generation-record.d.ts +0 -58
- package/node_modules/@ykdz/template-builtin-presets/dist/src/generation-record.js +0 -178
- package/node_modules/@ykdz/template-builtin-presets/dist/src/index.d.ts +0 -4
- package/node_modules/@ykdz/template-builtin-presets/dist/src/index.js +0 -3
- package/node_modules/@ykdz/template-builtin-presets/dist/src/rust-bin/definition.d.ts +0 -31
- package/node_modules/@ykdz/template-builtin-presets/dist/src/rust-bin/definition.js +0 -168
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/development-container.d.ts +0 -3
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/development-container.js +0 -52
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/typescript.d.ts +0 -16
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/typescript.js +0 -74
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/vue.d.ts +0 -36
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/vue.js +0 -108
- package/node_modules/@ykdz/template-builtin-presets/dist/src/template-sources.d.ts +0 -15
- package/node_modules/@ykdz/template-builtin-presets/dist/src/template-sources.js +0 -27
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-cli/definition.d.ts +0 -31
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-cli/definition.js +0 -243
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-lib/definition.d.ts +0 -31
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-lib/definition.js +0 -142
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vike-app/definition.d.ts +0 -48
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vike-app/definition.js +0 -507
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-app/definition.d.ts +0 -26
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-app/definition.js +0 -110
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-hono-app/definition.d.ts +0 -22
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-hono-app/definition.js +0 -193
- package/node_modules/@ykdz/template-builtin-presets/package.json +0 -94
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/dependabot-rust.yml +0 -41
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/dependabot.dynamic.template +0 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/dependabot.yml +0 -33
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-deployment-diagnostics.yml +0 -81
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-deployment.yml +0 -55
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-diagnostics.yml +0 -64
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check.yml +0 -38
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.pnpmfile.mjs +0 -19
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/AGENTS.md.template +0 -19
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/TODO.md.template +0 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/devcontainer.json +0 -18
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/gitignore +0 -11
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/pnpm-workspace.dynamic.txt +0 -24
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/pnpm-workspace.yaml +0 -32
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/check-toolchain-versions.ts +0 -556
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/tsconfig.packing-hook.json +0 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-boundary-tags/app.json +0 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-boundary-tags/library.json +0 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo.json +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/typescript-config/turbo.json +0 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/.github/dependabot.yml +0 -41
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/.github/workflows/check.yml +0 -23
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/.vscode/extensions.json +0 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/.vscode/settings.json +0 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/Cargo.lock +0 -16
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/Cargo.toml +0 -27
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/rust-toolchain.toml +0 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/turbo.json +0 -22
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/oxc/node/oxlint.config.ts +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/oxc/tsconfig.config.json +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/src/style.css +0 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/test/app.test.ts +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.app.json +0 -18
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.json +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.node.json +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.test.json +0 -10
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/typescript/run-vue-tsc.ts +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/CHANGELOG.md.template +0 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/RELEASING.md +0 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/artifact.ts +0 -1340
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/changelog.ts +0 -283
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/check-artifact.ts +0 -99
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/check-readiness.ts +0 -66
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/cli-command-identity.ts +0 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/handoff.ts +0 -522
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/publish.ts +0 -483
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/readiness.ts +0 -1150
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/release.ts +0 -819
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/release.yml +0 -119
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/root-tsconfig.json +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/tsconfig.json +0 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/turbo.json +0 -6
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/README.md +0 -48
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/CHANGELOG.md.template +0 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/LICENSE-APACHE-2.0.txt +0 -202
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/LICENSE-MIT.txt +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/README.md.template +0 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/bridge.ts +0 -3336
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/setup.sh +0 -221
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/src/cli-command-identity.ts +0 -133
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/src/cli.ts +0 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/src/main.ts +0 -162
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/src/standard-schema.ts +0 -37
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/e2e/journey.ts +0 -31
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/e2e/journeys/lookup.journey.ts +0 -71
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/e2e/run-journeys.ts +0 -255
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/integration/command.test.ts +0 -142
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/unit/cli-command-identity.test.ts +0 -76
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/tsconfig.build.json +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/tsconfig.json +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/turbo.json +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/.github/dependabot.yml +0 -33
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/.github/workflows/check.yml +0 -19
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/tsconfig.build.json +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/tsconfig.json +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/turbo.json +0 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/scripts/reset.ts +0 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/test/todos.test.ts +0 -23
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/tsconfig.build.json +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/tsconfig.json +0 -18
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/turbo.json +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/drizzle.config.ts +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/tsconfig.json +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/turbo.json +0 -10
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/Dockerfile +0 -81
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/Dockerfile.dockerignore +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/components/CounterButton.vue +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/pages/index/+Page.telefunc.ts +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/pages/index/+Page.vue +0 -93
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/playwright.config.ts +0 -140
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/scripts/check-standalone-deployment.ts +0 -553
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/server/app.ts +0 -36
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/test/e2e/app.spec.ts +0 -18
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.app.json +0 -26
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.json +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.node.json +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.test.json +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/turbo.json +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/types/global.d.ts +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/vite.config.ts +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/vitest.config.ts +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/.github/dependabot.yml +0 -33
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/.github/workflows/check.yml +0 -20
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/src/App.vue +0 -53
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/test/e2e/app.spec.ts +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/turbo.json +0 -13
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/vite.config.ts +0 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/vitest.config.ts +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/test/app.test.ts +0 -10
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/tsconfig.build.json +0 -10
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/tsconfig.json +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/turbo.json +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/vitest.config.ts +0 -15
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/root/playwright.config.ts +0 -34
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/root/test/e2e/app.spec.ts +0 -15
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/root/tsconfig.json +0 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/src/App.vue +0 -60
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/turbo.json +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/vite.config.ts +0 -27
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/vitest.config.ts +0 -10
- package/node_modules/@ykdz/template-core/dist/Cargo.lock +0 -16
- package/node_modules/@ykdz/template-core/dist/Cargo.toml +0 -12
- package/node_modules/@ykdz/template-core/dist/ci-diagnostic-artifact.d.ts +0 -19
- package/node_modules/@ykdz/template-core/dist/ci-diagnostic-artifact.js +0 -73
- package/node_modules/@ykdz/template-core/dist/dependency-catalog.d.ts +0 -33
- package/node_modules/@ykdz/template-core/dist/dependency-catalog.js +0 -238
- package/node_modules/@ykdz/template-core/dist/development-container-tool-layer.d.ts +0 -56
- package/node_modules/@ykdz/template-core/dist/development-container-tool-layer.js +0 -361
- package/node_modules/@ykdz/template-core/dist/editor-customization.d.ts +0 -17
- package/node_modules/@ykdz/template-core/dist/editor-customization.js +0 -73
- package/node_modules/@ykdz/template-core/dist/module-graph.d.ts +0 -62
- package/node_modules/@ykdz/template-core/dist/module-graph.js +0 -207
- package/node_modules/@ykdz/template-core/dist/pnpm-workspace.yaml +0 -72
- package/node_modules/@ykdz/template-core/dist/project-github.d.ts +0 -25
- package/node_modules/@ykdz/template-core/dist/project-github.js +0 -84
- package/node_modules/@ykdz/template-core/dist/project-linking-v2.d.ts +0 -31
- package/node_modules/@ykdz/template-core/dist/project-linking-v2.js +0 -143
- package/node_modules/@ykdz/template-core/dist/release-toolchain-snapshot.d.ts +0 -10
- package/node_modules/@ykdz/template-core/dist/release-toolchain-snapshot.js +0 -9
- package/node_modules/@ykdz/template-core/dist/template-boundary-check.d.ts +0 -58
- package/node_modules/@ykdz/template-core/dist/template-boundary-check.js +0 -821
- package/node_modules/@ykdz/template-core/node_modules/valibot/LICENSE.md +0 -9
- package/node_modules/@ykdz/template-core/node_modules/valibot/README.md +0 -94
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.cjs +0 -7897
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.d.cts +0 -16579
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.d.mts +0 -16579
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.min.cjs +0 -2
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.min.mjs +0 -2
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.mjs +0 -7577
- package/node_modules/@ykdz/template-core/node_modules/valibot/package.json +0 -84
- package/node_modules/npm-package-arg/node_modules/semver/LICENSE +0 -15
- package/node_modules/npm-package-arg/node_modules/semver/README.md +0 -680
- package/node_modules/npm-package-arg/node_modules/semver/bin/semver.js +0 -195
- package/node_modules/npm-package-arg/node_modules/semver/classes/comparator.js +0 -143
- package/node_modules/npm-package-arg/node_modules/semver/classes/index.js +0 -7
- package/node_modules/npm-package-arg/node_modules/semver/classes/range.js +0 -577
- package/node_modules/npm-package-arg/node_modules/semver/classes/semver.js +0 -350
- package/node_modules/npm-package-arg/node_modules/semver/functions/clean.js +0 -8
- package/node_modules/npm-package-arg/node_modules/semver/functions/cmp.js +0 -54
- package/node_modules/npm-package-arg/node_modules/semver/functions/coerce.js +0 -62
- package/node_modules/npm-package-arg/node_modules/semver/functions/compare-build.js +0 -9
- package/node_modules/npm-package-arg/node_modules/semver/functions/compare-loose.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/compare.js +0 -7
- package/node_modules/npm-package-arg/node_modules/semver/functions/diff.js +0 -60
- package/node_modules/npm-package-arg/node_modules/semver/functions/eq.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/gt.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/gte.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/inc.js +0 -21
- package/node_modules/npm-package-arg/node_modules/semver/functions/lt.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/lte.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/major.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/minor.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/neq.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/parse.js +0 -18
- package/node_modules/npm-package-arg/node_modules/semver/functions/patch.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/prerelease.js +0 -8
- package/node_modules/npm-package-arg/node_modules/semver/functions/rcompare.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/rsort.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/satisfies.js +0 -12
- package/node_modules/npm-package-arg/node_modules/semver/functions/sort.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/truncate.js +0 -48
- package/node_modules/npm-package-arg/node_modules/semver/functions/valid.js +0 -8
- package/node_modules/npm-package-arg/node_modules/semver/index.js +0 -93
- package/node_modules/npm-package-arg/node_modules/semver/internal/constants.js +0 -37
- package/node_modules/npm-package-arg/node_modules/semver/internal/debug.js +0 -11
- package/node_modules/npm-package-arg/node_modules/semver/internal/identifiers.js +0 -29
- package/node_modules/npm-package-arg/node_modules/semver/internal/lrucache.js +0 -42
- package/node_modules/npm-package-arg/node_modules/semver/internal/parse-options.js +0 -17
- package/node_modules/npm-package-arg/node_modules/semver/internal/re.js +0 -223
- package/node_modules/npm-package-arg/node_modules/semver/package.json +0 -78
- package/node_modules/npm-package-arg/node_modules/semver/preload.js +0 -4
- package/node_modules/npm-package-arg/node_modules/semver/range.bnf +0 -17
- package/node_modules/npm-package-arg/node_modules/semver/ranges/gtr.js +0 -6
- package/node_modules/npm-package-arg/node_modules/semver/ranges/intersects.js +0 -9
- package/node_modules/npm-package-arg/node_modules/semver/ranges/ltr.js +0 -6
- package/node_modules/npm-package-arg/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/node_modules/npm-package-arg/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/node_modules/npm-package-arg/node_modules/semver/ranges/min-version.js +0 -63
- package/node_modules/npm-package-arg/node_modules/semver/ranges/outside.js +0 -82
- package/node_modules/npm-package-arg/node_modules/semver/ranges/simplify.js +0 -49
- package/node_modules/npm-package-arg/node_modules/semver/ranges/subset.js +0 -249
- package/node_modules/npm-package-arg/node_modules/semver/ranges/to-comparators.js +0 -10
- package/node_modules/npm-package-arg/node_modules/semver/ranges/valid.js +0 -13
- package/node_modules/unbash/LICENSE +0 -15
- package/node_modules/unbash/README.md +0 -289
- package/node_modules/unbash/dist/ansi-c.d.ts +0 -5
- package/node_modules/unbash/dist/ansi-c.js +0 -130
- package/node_modules/unbash/dist/arithmetic.d.ts +0 -11
- package/node_modules/unbash/dist/arithmetic.js +0 -530
- package/node_modules/unbash/dist/assignment.d.ts +0 -15
- package/node_modules/unbash/dist/assignment.js +0 -118
- package/node_modules/unbash/dist/chars.d.ts +0 -41
- package/node_modules/unbash/dist/chars.js +0 -41
- package/node_modules/unbash/dist/command.d.ts +0 -14
- package/node_modules/unbash/dist/command.js +0 -41
- package/node_modules/unbash/dist/heredoc.d.ts +0 -18
- package/node_modules/unbash/dist/heredoc.js +0 -25
- package/node_modules/unbash/dist/internal-types.d.ts +0 -87
- package/node_modules/unbash/dist/lexer.d.ts +0 -202
- package/node_modules/unbash/dist/lexer.js +0 -3930
- package/node_modules/unbash/dist/parser.d.ts +0 -4
- package/node_modules/unbash/dist/parser.js +0 -1295
- package/node_modules/unbash/dist/parts.d.ts +0 -17
- package/node_modules/unbash/dist/parts.js +0 -82
- package/node_modules/unbash/dist/printer.d.ts +0 -2
- package/node_modules/unbash/dist/printer.js +0 -536
- package/node_modules/unbash/dist/types.d.ts +0 -494
- package/node_modules/unbash/dist/word.d.ts +0 -22
- package/node_modules/unbash/dist/word.js +0 -102
- package/node_modules/unbash/package.json +0 -80
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/root → preset-vue-hono-app/native/resources/joint-e2e}/test/e2e/fixtures.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/api → reference-hono-api/native}/src/index.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/api → reference-hono-api/native}/src/runtime.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/api → reference-hono-api/native}/src/server.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/rust-bin → reference-rust-bin/native}/rustfmt.toml +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/rust-bin → reference-rust-bin/native}/src/main.rs +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/foundation/typescript-config → reference-tooling-config/native}/base.json +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared/oxc → reference-tooling-config/native}/oxfmt.config.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/ts-lib → reference-ts-lib/native}/src/index.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/ts-lib → reference-ts-lib/native}/src/name-schema.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/scripts/seed-example.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/db.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/index.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/queries/todos.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/readiness.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/schema.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/seed/example.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/storage.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/types.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db-migrations → reference-vike-migrations/native}/drizzle/migrations/20260709120325_old_captain_flint/migration.sql +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db-migrations → reference-vike-migrations/native}/drizzle/migrations/20260709120325_old_captain_flint/snapshot.json +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db-migrations → reference-vike-migrations/native}/tsconfig.build.json +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/+server.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/.env.example +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/assets/logo.svg +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/components/PageShell.vue +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/pages/+Head.vue +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/pages/+Layout.vue +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/pages/+config.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/pages/tailwind.css +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/server/api.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/test/playwright-teardown.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/types/env.d.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-app → reference-vue-app/native}/env.d.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-app → reference-vue-app/native}/index.html +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-app → reference-vue-app/native}/playwright.config.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared/vue → reference-vue-app/native}/src/main.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared/vue → reference-vue-app/native}/src/stores/counter.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/web → reference-vue-hono-web/native}/env.d.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/web → reference-vue-hono-web/native}/index.html +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/web → reference-vue-hono-web/native}/src/api.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/foundation/devcontainer → template-workspace/assets/environment}/base.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared → template-workspace/assets/environment}/devcontainer/browser-test.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared → template-workspace/assets/environment}/devcontainer/github-cli.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/rust-bin → template-workspace/assets/environment}/devcontainer/rust.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app → template-workspace/assets/environment}/devcontainer/shellcheck.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared → template-workspace/assets/environment}/editor-customization/capabilities.json +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/foundation → template-workspace/assets}/tsconfig.json +0 -0
- /package/node_modules/{unbash/dist/internal-types.js → @ykdz/template-workspace/dist/generation-context.js} +0 -0
- /package/node_modules/{unbash/dist/types.js → @ykdz/template-workspace/dist/project-requirements.js} +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/LICENSE +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/README.md +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/bin/semver.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/classes/comparator.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/classes/index.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/classes/range.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/classes/semver.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/clean.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/cmp.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/coerce.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/compare-build.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/compare-loose.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/compare.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/diff.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/eq.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/gt.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/gte.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/inc.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/lt.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/lte.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/major.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/minor.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/neq.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/parse.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/patch.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/prerelease.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/rcompare.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/rsort.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/satisfies.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/sort.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/truncate.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/valid.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/index.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/constants.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/debug.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/identifiers.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/lrucache.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/parse-options.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/re.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/package.json +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/preload.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/range.bnf +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/gtr.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/intersects.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/ltr.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/max-satisfying.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/min-satisfying.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/min-version.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/outside.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/simplify.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/subset.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/to-comparators.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/valid.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/LICENSE.md +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/README.md +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.cjs +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.d.cts +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.d.mts +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.min.cjs +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.min.mjs +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.mjs +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/package.json +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type RuntimeAtomicVariant } from "#/atomic-variant-compiler";
|
|
2
2
|
import type { CommandUsage } from "#/cli-invocation";
|
|
3
3
|
import type { ContractSchema, ContractSchemaInput, ContractSchemaOutput, EmptyCliInput, JsonObject, JsonValue } from "#/contract-schema";
|
|
4
|
+
import type { reservedFieldNames } from "#/field-identity";
|
|
4
5
|
import type { AtomicTextPresenter, CompletionFact, CompletionTextPresenter, CompletionOutcome, DataFactUnion, DataOutcome, DataVariantDefinitions, FailureFactUnion, FailureOutcome, FailureVariantDefinitions, OutcomeFact, TextLine, TextLines, StreamOutcome, StreamTextPresenter, StreamRecordDefinitions, StreamRecordFactUnion, StreamSuccessFact } from "#/outcome-fact";
|
|
5
6
|
import { type RuntimeStreamRecord, type StreamRecordManifest } from "#/stream-variant-compiler";
|
|
6
|
-
export { createCompletionFact, createDataFact, createFailureFact, createStreamRecordFact, createStreamSuccessFact, isIssuedOutcomeFact, text, } from "#/outcome-fact";
|
|
7
|
-
export type { CompletionFact, CompletionTextPresenter, CompletionOutcome, DataFact, DataFactUnion, DataOutcome, DataVariantDefinition, DataVariantDefinitions, FailureFact, FailureFactUnion, FailureOutcome, FailureVariantDefinition, FailureVariantDefinitions, OutcomeFact, StreamOutcome, StreamRecordDefinition, StreamRecordDefinitions, StreamRecordFact, StreamRecordFactUnion, StreamSuccessFact, StreamTextPresenter, SilentText, TextLine, TextLines, TextFragment, } from "#/outcome-fact";
|
|
7
|
+
export { createCompletionFact, createDataFact, createFailureFact, createStreamRecordFact, createStreamSuccessFact, isIssuedOutcomeFact, TextValueError, text, } from "#/outcome-fact";
|
|
8
|
+
export type { CompletionFact, CompletionTextPresenter, CompletionOutcome, DataFact, DataFactUnion, DataOutcome, DataVariantDefinition, DataVariantDefinitions, FailureFact, FailureFactUnion, FailureOutcome, FailureVariantDefinition, FailureVariantDefinitions, OutcomeFact, StreamOutcome, StreamRecordDefinition, StreamRecordDefinitions, StreamRecordFact, StreamRecordFactUnion, StreamSuccessFact, StreamTextPresenter, SilentText, TextLine, TextLines, TextValueErrorIssue, TextFragment, } from "#/outcome-fact";
|
|
8
9
|
declare const cliContractType: unique symbol;
|
|
9
|
-
declare const executableCommandType: unique symbol;
|
|
10
10
|
declare const definitionPropertyKeys: {
|
|
11
11
|
readonly cli: readonly ["root", "help", "version", "output", "usageFailureExitCode", "commands"];
|
|
12
12
|
readonly group: readonly ["kind", "parent", "name", "aliases", "description", "helpSupplement", "handler"];
|
|
@@ -17,10 +17,14 @@ declare const definitionPropertyKeys: {
|
|
|
17
17
|
readonly positional: readonly ["kind", "description"];
|
|
18
18
|
};
|
|
19
19
|
readonly usage: {
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
20
|
+
readonly count: readonly ["kind", "fields", "min", "max"];
|
|
21
|
+
readonly when: readonly ["kind", "all", "onMatch", "otherwise"];
|
|
22
|
+
readonly effect: readonly ["require", "forbid"];
|
|
23
|
+
readonly forbiddenCombination: readonly ["kind", "all"];
|
|
24
|
+
readonly fact: {
|
|
25
|
+
readonly present: readonly ["kind", "field"];
|
|
26
|
+
readonly equals: readonly ["kind", "field", "value"];
|
|
27
|
+
};
|
|
24
28
|
};
|
|
25
29
|
readonly success: {
|
|
26
30
|
readonly completion: readonly ["kind", "text"];
|
|
@@ -62,19 +66,93 @@ export interface HelpFactWording {
|
|
|
62
66
|
readonly choices?: string;
|
|
63
67
|
/** 字段或输出格式的默认 JSON 值,必须包含 `{value}`。 */
|
|
64
68
|
readonly default?: string;
|
|
65
|
-
/**
|
|
66
|
-
readonly
|
|
67
|
-
/**
|
|
68
|
-
readonly
|
|
69
|
-
/**
|
|
69
|
+
/** 有效的成立分支,必须包含 `{facts}` 与 `{onMatch}`。 */
|
|
70
|
+
readonly whenOnMatch?: string;
|
|
71
|
+
/** 有效的不成立分支,必须包含 `{facts}` 与 `{otherwise}`。 */
|
|
72
|
+
readonly whenOtherwise?: string;
|
|
73
|
+
/** 两侧均有效的条件分支,必须包含 `{facts}`、`{onMatch}` 与 `{otherwise}`。 */
|
|
74
|
+
readonly whenOnMatchOtherwise?: string;
|
|
75
|
+
/** 效果中的必需字段组,必须包含 `{fields}`。 */
|
|
76
|
+
readonly require?: string;
|
|
77
|
+
/** 效果中的禁止字段组,必须包含 `{fields}`。 */
|
|
78
|
+
readonly forbid?: string;
|
|
79
|
+
/** 字段出现事实,必须包含 `{field}`。 */
|
|
80
|
+
readonly present?: string;
|
|
81
|
+
/** 字段等值事实,必须包含 `{field}` 与 `{value}`。 */
|
|
82
|
+
readonly equals?: string;
|
|
83
|
+
/** 禁止同时成立的字段事实组,必须包含 `{facts}`。 */
|
|
70
84
|
readonly forbiddenCombination?: string;
|
|
85
|
+
/** 字段数必须恰好为 `{count}`,包含 `{fields}`。 */
|
|
86
|
+
readonly countExactly?: string;
|
|
87
|
+
/** 字段数至少为 `{min}`,包含 `{fields}`。 */
|
|
88
|
+
readonly countAtLeast?: string;
|
|
89
|
+
/** 字段数至多为 `{max}`,包含 `{fields}`。 */
|
|
90
|
+
readonly countAtMost?: string;
|
|
91
|
+
/** 字段数位于 `{min}` 到 `{max}`,包含 `{fields}`。 */
|
|
92
|
+
readonly countBetween?: string;
|
|
71
93
|
}
|
|
94
|
+
/** 帮助事实槽位及其必需替换参数的唯一规格。 */
|
|
95
|
+
export declare const helpTemplateSpecifications: {
|
|
96
|
+
readonly commandPlaceholder: {
|
|
97
|
+
readonly placeholders: readonly [];
|
|
98
|
+
};
|
|
99
|
+
readonly choices: {
|
|
100
|
+
readonly placeholders: readonly ["choices"];
|
|
101
|
+
};
|
|
102
|
+
readonly default: {
|
|
103
|
+
readonly placeholders: readonly ["value"];
|
|
104
|
+
};
|
|
105
|
+
readonly whenOnMatch: {
|
|
106
|
+
readonly placeholders: readonly ["facts", "onMatch"];
|
|
107
|
+
};
|
|
108
|
+
readonly whenOtherwise: {
|
|
109
|
+
readonly placeholders: readonly ["facts", "otherwise"];
|
|
110
|
+
};
|
|
111
|
+
readonly whenOnMatchOtherwise: {
|
|
112
|
+
readonly placeholders: readonly ["facts", "onMatch", "otherwise"];
|
|
113
|
+
};
|
|
114
|
+
readonly require: {
|
|
115
|
+
readonly placeholders: readonly ["fields"];
|
|
116
|
+
};
|
|
117
|
+
readonly forbid: {
|
|
118
|
+
readonly placeholders: readonly ["fields"];
|
|
119
|
+
};
|
|
120
|
+
readonly present: {
|
|
121
|
+
readonly placeholders: readonly ["field"];
|
|
122
|
+
};
|
|
123
|
+
readonly equals: {
|
|
124
|
+
readonly placeholders: readonly ["field", "value"];
|
|
125
|
+
};
|
|
126
|
+
readonly forbiddenCombination: {
|
|
127
|
+
readonly placeholders: readonly ["facts"];
|
|
128
|
+
};
|
|
129
|
+
readonly countExactly: {
|
|
130
|
+
readonly placeholders: readonly ["fields", "count"];
|
|
131
|
+
};
|
|
132
|
+
readonly countAtLeast: {
|
|
133
|
+
readonly placeholders: readonly ["fields", "min"];
|
|
134
|
+
};
|
|
135
|
+
readonly countAtMost: {
|
|
136
|
+
readonly placeholders: readonly ["fields", "max"];
|
|
137
|
+
};
|
|
138
|
+
readonly countBetween: {
|
|
139
|
+
readonly placeholders: readonly ["fields", "min", "max"];
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
/** 按帮助槽位推导的替换参数闭合形状。 */
|
|
143
|
+
export type HelpFactTemplateParameters = {
|
|
144
|
+
readonly [Slot in keyof typeof helpTemplateSpecifications]: Readonly<Record<(typeof helpTemplateSpecifications)[Slot]["placeholders"][number], string>>;
|
|
145
|
+
};
|
|
72
146
|
/** 根契约一次装配的帮助配置;标题可省略,实际出现的事实必须有文案。 */
|
|
73
147
|
export interface HelpCapabilityDefinition {
|
|
74
148
|
readonly shortAlias?: "-h";
|
|
75
149
|
readonly headings?: HelpHeadings;
|
|
76
150
|
readonly wording?: HelpFactWording;
|
|
77
151
|
}
|
|
152
|
+
type HelpCapabilityDefinitionForTypeCheck = Omit<HelpCapabilityDefinition, "wording"> & {
|
|
153
|
+
/** 保留未知槽位的字面键,让局部闭合诊断提供可行动身份。 */
|
|
154
|
+
readonly wording?: object;
|
|
155
|
+
};
|
|
78
156
|
export interface VersionCapability {
|
|
79
157
|
readonly kind: "versionCapability";
|
|
80
158
|
readonly value: string;
|
|
@@ -138,36 +216,87 @@ export interface ValueOptionDefinition<LongOption extends `--${string}` = `--${s
|
|
|
138
216
|
readonly description: string;
|
|
139
217
|
}
|
|
140
218
|
export type FieldDefinition = FlagDefinition | PositionalDefinition | RepeatableOptionDefinition | VariadicPositionalDefinition | ValueOptionDefinition;
|
|
219
|
+
/**
|
|
220
|
+
* 字段键须符合 lowerCamelCase,且不能使用 constructor、hasOwnProperty、
|
|
221
|
+
* isPrototypeOf、propertyIsEnumerable、toString、valueOf 或 toLocaleString。
|
|
222
|
+
* 迁移字段键时同步模式 Input 键及引用,命令行拼写可保留。
|
|
223
|
+
*/
|
|
141
224
|
export type FieldDefinitions = Readonly<Record<string, FieldDefinition>>;
|
|
142
225
|
/**
|
|
143
|
-
*
|
|
144
|
-
* `
|
|
145
|
-
* 的离散值只作用于 flag 或 value option。动态声明在定义期检查这些前提。
|
|
226
|
+
* 可投影到 parser 和 Draft 2020-12 的有限字段关系:`count` 限制 raw 字段出现数,`when` 根据 raw 事实选择必需或禁止效果,
|
|
227
|
+
* `forbiddenCombination` 拒绝指定事实组合。字段必填、候选值与格式由输入模式表达;依赖实际值计算、时间或业务状态的规则由 handler 返回具名失败。
|
|
146
228
|
*/
|
|
147
|
-
export type UsageConstraint<Fields extends FieldDefinitions = FieldDefinitions> =
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
229
|
+
export type UsageConstraint<Fields extends FieldDefinitions = FieldDefinitions, Input = unknown> = CountUsageConstraint<Fields> | WhenUsageConstraint<Fields, Input> | ForbiddenCombinationUsageConstraint<Fields, Input>;
|
|
230
|
+
/**
|
|
231
|
+
* 限制当前命令中 `fields` 所列 raw 输入字段的出现数量;字段组必须非空且无重复。
|
|
232
|
+
* 规范化端点必须是有限整数,且满足 `0 <= min <= max <= fields.length`。每个 raw 自有属性只计一次,
|
|
233
|
+
* 因而 `false` 也算出现,repeatable 或 variadic 字段的多个值仍只计一项;
|
|
234
|
+
* 缺席的 variadic 字段没有属性,schema 默认值和转换结果也不会增加计数。
|
|
235
|
+
* 缺省 `min` 为 0,缺省 `max` 为字段组长度,至少显式提供一个端点。
|
|
236
|
+
* TypeScript 会拒绝静态可判定的错误;动态端点或字段成员在 CLI 定义时校验。
|
|
237
|
+
*/
|
|
238
|
+
export interface CountUsageConstraint<Fields extends FieldDefinitions = FieldDefinitions> {
|
|
239
|
+
readonly kind: "count";
|
|
240
|
+
readonly fields: readonly [
|
|
241
|
+
Extract<keyof Fields, string>,
|
|
242
|
+
...Extract<keyof Fields, string>[]
|
|
243
|
+
];
|
|
244
|
+
readonly min?: number;
|
|
245
|
+
readonly max?: number;
|
|
152
246
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
247
|
+
/**
|
|
248
|
+
* 条件分支只描述 raw 输入 facts 全部成立或未全部成立时的效果;空效果不增加限制,
|
|
249
|
+
* 但整条规则至少需要一个非空分支。字段不会被赋值或补入默认值。
|
|
250
|
+
*/
|
|
251
|
+
export interface UsageConstraintEffect<Field extends string = string> {
|
|
252
|
+
readonly require?: readonly Field[];
|
|
253
|
+
readonly forbid?: readonly Field[];
|
|
254
|
+
}
|
|
255
|
+
/** 表示一个输入字段在 raw argv 解析结果中出现。 */
|
|
256
|
+
export interface PresentUsageFact<Field extends string = string> {
|
|
257
|
+
readonly kind: "present";
|
|
258
|
+
readonly field: Field;
|
|
156
259
|
}
|
|
157
|
-
type
|
|
158
|
-
|
|
159
|
-
|
|
260
|
+
type RawUsageFactValue<Field extends FieldDefinition> = Field extends Readonly<{
|
|
261
|
+
readonly kind: "flag";
|
|
262
|
+
readonly negatedLongOption: `--${string}`;
|
|
263
|
+
}> ? boolean : Field extends FlagDefinition ? true : Field extends ValueOptionDefinition | PositionalDefinition ? string : never;
|
|
264
|
+
type UsageFactInputValue<Input, Field extends string, RawValue> = IsAny<Input> extends true ? RawValue : unknown extends Input ? RawValue : Field extends keyof Input ? Extract<Exclude<Input[Field], undefined>, RawValue> : never;
|
|
265
|
+
/** 从字段的 raw 标量和 schema Input 交集中推导可比较值。 */
|
|
266
|
+
export type UsageFactValue<Fields extends FieldDefinitions, Input, Field extends keyof Fields & string> = UsageFactInputValue<Input, Field, RawUsageFactValue<Fields[Field]>>;
|
|
267
|
+
/** 将字段身份关联到其可接受的 raw 等值操作数。 */
|
|
268
|
+
export type EqualsUsageFact<Fields extends FieldDefinitions = FieldDefinitions, Input = unknown> = {
|
|
269
|
+
[Field in keyof Fields & string]: UsageFactValue<Fields, Input, Field> extends never ? never : Readonly<{
|
|
270
|
+
readonly kind: "equals";
|
|
160
271
|
readonly field: Field;
|
|
161
|
-
readonly value:
|
|
272
|
+
readonly value: UsageFactValue<Fields, Input, Field>;
|
|
162
273
|
}>;
|
|
163
274
|
}[keyof Fields & string];
|
|
164
|
-
|
|
275
|
+
/** 字段出现或单值等值事实的闭合联合。 */
|
|
276
|
+
export type UsageFact<Fields extends FieldDefinitions = FieldDefinitions, Input = unknown> = string extends keyof Fields ? PresentUsageFact<string> | Readonly<{
|
|
277
|
+
readonly kind: "equals";
|
|
278
|
+
readonly field: string;
|
|
279
|
+
readonly value: boolean | string;
|
|
280
|
+
}> : PresentUsageFact<Extract<keyof Fields, string>> | EqualsUsageFact<Fields, Input>;
|
|
281
|
+
/** 所列事实同时成立时拒绝调用;`all` 保留非空顺序和重复项。 */
|
|
282
|
+
export interface ForbiddenCombinationUsageConstraint<Fields extends FieldDefinitions = FieldDefinitions, Input = unknown> {
|
|
165
283
|
readonly kind: "forbiddenCombination";
|
|
166
|
-
readonly
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
284
|
+
readonly all: readonly [
|
|
285
|
+
UsageFact<Fields, Input>,
|
|
286
|
+
...UsageFact<Fields, Input>[]
|
|
287
|
+
];
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* 平面 facts 合取选择成立或不成立分支。观察与效果都依据模式验证、默认和转换前的 raw input。
|
|
291
|
+
*/
|
|
292
|
+
export interface WhenUsageConstraint<Fields extends FieldDefinitions = FieldDefinitions, Input = unknown> {
|
|
293
|
+
readonly kind: "when";
|
|
294
|
+
readonly all: readonly [
|
|
295
|
+
UsageFact<Fields, Input>,
|
|
296
|
+
...UsageFact<Fields, Input>[]
|
|
170
297
|
];
|
|
298
|
+
readonly onMatch?: UsageConstraintEffect<Extract<keyof Fields, string>>;
|
|
299
|
+
readonly otherwise?: UsageConstraintEffect<Extract<keyof Fields, string>>;
|
|
171
300
|
}
|
|
172
301
|
export type ValueOptionDefinitions = Readonly<Record<string, ValueOptionDefinition>>;
|
|
173
302
|
type RawFieldValue<Field extends FieldDefinition> = Field extends {
|
|
@@ -186,22 +315,30 @@ export type FieldDefinitionsForInput<Input> = Readonly<{
|
|
|
186
315
|
export type ValueOptionDefinitionsForInput<Input> = Readonly<{
|
|
187
316
|
[Field in Extract<keyof Input, string>]: ValueOptionDefinition;
|
|
188
317
|
}>;
|
|
189
|
-
type
|
|
190
|
-
|
|
191
|
-
readonly
|
|
192
|
-
} ? NegatedLongOption extends CanonicalLongOption<NegatedLongOption> ? Field : ContractTypeError<"invalidNegatedLongOption", Readonly<{
|
|
193
|
-
readonly field: Key;
|
|
194
|
-
readonly received: NegatedLongOption;
|
|
195
|
-
}>> : Field : CheckedOptionDefinition<Field, Key, LongOption, ShortAlias>;
|
|
196
|
-
type CheckedOptionDefinition<Field, Key, LongOption extends `--${string}`, ShortAlias extends `-${string}` | undefined> = LongOption extends CanonicalLongOption<LongOption> ? ShortAlias extends undefined ? Field : ShortAlias extends ShortOptionAlias<Extract<ShortAlias, string>> ? Field : ContractTypeError<"invalidShortOptionAlias", Readonly<{
|
|
197
|
-
readonly field: Key;
|
|
198
|
-
readonly received: ShortAlias;
|
|
199
|
-
}>> : ContractTypeError<"invalidCanonicalLongOption", Readonly<{
|
|
200
|
-
readonly field: Key;
|
|
318
|
+
type InvalidCanonicalLongOptionIssue<Command extends string, Key, LongOption extends `--${string}`> = LongOption extends CanonicalLongOption<LongOption> ? never : ContractTypeError<"invalidFieldLongOption", Readonly<{
|
|
319
|
+
readonly command: Command;
|
|
320
|
+
readonly field: Extract<Key, string>;
|
|
201
321
|
readonly received: LongOption;
|
|
202
322
|
}>>;
|
|
203
|
-
type
|
|
204
|
-
readonly
|
|
323
|
+
type InvalidShortOptionAliasIssue<Field, Command extends string, Key> = Field extends Readonly<{
|
|
324
|
+
readonly shortAlias: infer ShortAlias extends `-${string}`;
|
|
325
|
+
}> ? ShortAlias extends ShortOptionAlias<ShortAlias> ? never : ContractTypeError<"invalidFieldShortAlias", Readonly<{
|
|
326
|
+
readonly command: Command;
|
|
327
|
+
readonly field: Extract<Key, string>;
|
|
328
|
+
readonly received: ShortAlias;
|
|
329
|
+
}>> : never;
|
|
330
|
+
type InvalidNegatedLongOptionIssue<Field, Key, Command extends string> = Field extends Readonly<{
|
|
331
|
+
readonly negatedLongOption: infer NegatedLongOption extends `--${string}`;
|
|
332
|
+
}> ? NegatedLongOption extends CanonicalLongOption<NegatedLongOption> ? never : ContractTypeError<"invalidFieldLongOption", Readonly<{
|
|
333
|
+
readonly command: Command;
|
|
334
|
+
readonly field: Extract<Key, string>;
|
|
335
|
+
readonly received: NegatedLongOption;
|
|
336
|
+
}>> : never;
|
|
337
|
+
type CheckedFieldDefinition<Field extends FieldDefinition, Key, Command extends string> = Field extends PositionalDefinition ? Field : Field extends VariadicPositionalDefinition ? Field : Field extends FlagDefinition<infer LongOption> ? CheckedNegatedFlagDefinition<Field, Key, LongOption, Command> : Field extends RepeatableOptionDefinition<infer LongOption> ? CheckedOptionDefinition<Field, Key, LongOption, Command> : Field extends ValueOptionDefinition<infer LongOption> ? CheckedOptionDefinition<Field, Key, LongOption, Command> : never;
|
|
338
|
+
type CheckedNegatedFlagDefinition<Field, Key, LongOption extends `--${string}`, Command extends string> = [InvalidCanonicalLongOptionIssue<Command, Key, LongOption>] extends [never] ? [InvalidShortOptionAliasIssue<Field, Command, Key>] extends [never] ? [InvalidNegatedLongOptionIssue<Field, Key, Command>] extends [never] ? Field : InvalidNegatedLongOptionIssue<Field, Key, Command> : InvalidShortOptionAliasIssue<Field, Command, Key> : InvalidCanonicalLongOptionIssue<Command, Key, LongOption>;
|
|
339
|
+
type CheckedOptionDefinition<Field, Key, LongOption extends `--${string}`, Command extends string> = [InvalidCanonicalLongOptionIssue<Command, Key, LongOption>] extends [never] ? [InvalidShortOptionAliasIssue<Field, Command, Key>] extends [never] ? Field : InvalidShortOptionAliasIssue<Field, Command, Key> : InvalidCanonicalLongOptionIssue<Command, Key, LongOption>;
|
|
340
|
+
type CheckedFieldDefinitions<Fields extends FieldDefinitions, Command extends string> = {
|
|
341
|
+
readonly [Field in keyof Fields]: CheckedFieldDefinition<Fields[Field], Field, Command> & RejectUnknownProperties<Fields[Field], AllowedFieldProperties<Fields[Field]>>;
|
|
205
342
|
};
|
|
206
343
|
type RejectUnknownProperties<Value, Allowed extends PropertyKey> = Readonly<{
|
|
207
344
|
[Property in Exclude<keyof Value, Allowed>]?: never;
|
|
@@ -219,19 +356,36 @@ type ClosedStreamRecords<Records> = ClosedVariantDefinitions<Records, (typeof de
|
|
|
219
356
|
type ClosedFieldDefinitions<Fields> = Readonly<{
|
|
220
357
|
[Field in keyof Fields]: RejectUnknownProperties<Fields[Field], AllowedFieldProperties<Fields[Field]>>;
|
|
221
358
|
}>;
|
|
359
|
+
type ClosedUsageFact<Fact> = Fact extends Readonly<{
|
|
360
|
+
readonly kind: "present";
|
|
361
|
+
}> ? RejectUnknownProperties<Fact, (typeof definitionPropertyKeys.usage.fact.present)[number]> : Fact extends Readonly<{
|
|
362
|
+
readonly kind: "equals";
|
|
363
|
+
}> ? RejectUnknownProperties<Fact, (typeof definitionPropertyKeys.usage.fact.equals)[number]> : unknown;
|
|
364
|
+
type ClosedUsageFacts<Facts extends readonly unknown[]> = {
|
|
365
|
+
readonly [Index in keyof Facts]: ClosedUsageFact<Facts[Index]>;
|
|
366
|
+
};
|
|
367
|
+
type ClosedUsageEffect<Effect> = Effect extends object ? RejectUnknownProperties<Effect, (typeof definitionPropertyKeys.usage.effect)[number]> : Effect;
|
|
222
368
|
type ClosedUsageConstraint<Constraint> = Constraint extends Readonly<{
|
|
223
|
-
readonly kind: "
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
369
|
+
readonly kind: "when";
|
|
370
|
+
readonly all: infer Facts extends readonly unknown[];
|
|
371
|
+
}> ? RejectUnknownProperties<Constraint, (typeof definitionPropertyKeys.usage.when)[number]> & Readonly<{
|
|
372
|
+
readonly all: ClosedUsageFacts<Facts>;
|
|
373
|
+
}> & (Constraint extends Readonly<{
|
|
374
|
+
readonly onMatch?: infer OnMatch;
|
|
375
|
+
}> ? Readonly<{
|
|
376
|
+
readonly onMatch?: ClosedUsageEffect<OnMatch>;
|
|
377
|
+
}> : unknown) & (Constraint extends Readonly<{
|
|
378
|
+
readonly otherwise?: infer Otherwise;
|
|
379
|
+
}> ? Readonly<{
|
|
380
|
+
readonly otherwise?: ClosedUsageEffect<Otherwise>;
|
|
381
|
+
}> : unknown) : Constraint extends Readonly<{
|
|
382
|
+
readonly kind: "count";
|
|
383
|
+
}> ? RejectUnknownProperties<Constraint, (typeof definitionPropertyKeys.usage.count)[number]> : Constraint extends Readonly<{
|
|
227
384
|
readonly kind: "forbiddenCombination";
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
readonly
|
|
231
|
-
|
|
232
|
-
};
|
|
233
|
-
}> : unknown;
|
|
234
|
-
type ClosedUsageConstraints<Constraints> = Constraints extends readonly (infer Constraint)[] ? readonly (Constraint & ClosedUsageConstraint<Constraint>)[] : unknown;
|
|
385
|
+
}> ? unknown : unknown;
|
|
386
|
+
type ClosedUsageConstraints<Command extends string, Constraints> = Constraints extends readonly unknown[] ? InvalidClosedUsageConstraintProperties<Command, Constraints[number]> extends infer Issue ? [Issue] extends [never] ? {
|
|
387
|
+
readonly [Index in keyof Constraints]: Constraints[Index] & ClosedUsageConstraint<Constraints[Index]>;
|
|
388
|
+
} : Issue : never : unknown;
|
|
235
389
|
type ClosedSuccessDefinition<Success> = Success extends Readonly<{
|
|
236
390
|
readonly kind: "data";
|
|
237
391
|
readonly variants: infer Variants;
|
|
@@ -243,7 +397,7 @@ type ClosedSuccessDefinition<Success> = Success extends Readonly<{
|
|
|
243
397
|
}> ? RejectUnknownProperties<Success, (typeof definitionPropertyKeys.success.stream)[number]> & Readonly<{
|
|
244
398
|
readonly records: ClosedStreamRecords<Records>;
|
|
245
399
|
}> : RejectUnknownProperties<Success, (typeof definitionPropertyKeys.success.completion)[number]>;
|
|
246
|
-
type ClosedCommandDefinition<Definition> = RejectUnknownProperties<Definition, (typeof definitionPropertyKeys.command)[number]
|
|
400
|
+
type ClosedCommandDefinition<Definition, Command extends string = string> = RejectUnknownProperties<Definition, (typeof definitionPropertyKeys.command)[number]> & (Definition extends Readonly<{
|
|
247
401
|
readonly success: infer Success;
|
|
248
402
|
}> ? Readonly<{
|
|
249
403
|
readonly success: ClosedSuccessDefinition<Success>;
|
|
@@ -258,12 +412,12 @@ type ClosedCommandDefinition<Definition> = RejectUnknownProperties<Definition, (
|
|
|
258
412
|
}> : unknown) & (Definition extends Readonly<{
|
|
259
413
|
readonly usageConstraints: infer Constraints;
|
|
260
414
|
}> ? Readonly<{
|
|
261
|
-
readonly usageConstraints: ClosedUsageConstraints<Constraints>;
|
|
415
|
+
readonly usageConstraints: ClosedUsageConstraints<Command, Constraints>;
|
|
262
416
|
}> : unknown);
|
|
263
417
|
type ClosedRootCommands<Commands> = Readonly<{
|
|
264
418
|
[Command in keyof Commands]: Commands[Command] extends Readonly<{
|
|
265
419
|
readonly kind: "command" | "rootCommand";
|
|
266
|
-
}> ? ClosedCommandDefinition<Commands[Command]
|
|
420
|
+
}> ? ClosedCommandDefinition<Commands[Command], Extract<Command, string>> : RejectUnknownProperties<Commands[Command], (typeof definitionPropertyKeys.group)[number]>;
|
|
267
421
|
}>;
|
|
268
422
|
type ClosedRootDefinition<Definition> = RejectUnknownProperties<Definition, (typeof definitionPropertyKeys.cli)[number]> & (Definition extends Readonly<{
|
|
269
423
|
readonly commands: infer Commands;
|
|
@@ -273,8 +427,11 @@ type ClosedRootDefinition<Definition> = RejectUnknownProperties<Definition, (typ
|
|
|
273
427
|
type InvalidFieldIdentities<Fields extends FieldDefinitions> = {
|
|
274
428
|
[Field in keyof Fields & string]: IsLowerCamelCase<Field> extends true ? never : Field;
|
|
275
429
|
}[keyof Fields & string];
|
|
276
|
-
type FieldIdentityContract<Fields extends FieldDefinitions> = string extends keyof Fields ? unknown : InvalidFieldIdentities<Fields> extends never ? unknown : ContractTypeError<"
|
|
277
|
-
readonly
|
|
430
|
+
type FieldIdentityContract<Command extends string, Fields extends FieldDefinitions> = string extends keyof Fields ? unknown : InvalidFieldIdentities<Fields> | Extract<keyof Fields, (typeof reservedFieldNames)[number]> extends never ? unknown : ContractTypeError<"invalidFieldIdentity", Readonly<{
|
|
431
|
+
readonly command: Command;
|
|
432
|
+
readonly field: InvalidFieldIdentities<Fields> extends never ? Extract<keyof Fields, (typeof reservedFieldNames)[number]> : InvalidFieldIdentities<Fields>;
|
|
433
|
+
readonly reason: InvalidFieldIdentities<Fields> extends never ? "reservedName" : "lowerCamelCase";
|
|
434
|
+
readonly hint: InvalidFieldIdentities<Fields> extends never ? "更换字段键,同步模式 Input 键及引用;CLI 拼写可保留" : "小写字母开头,仅含字母和数字";
|
|
278
435
|
}>>;
|
|
279
436
|
export type RawValueOptionInputForSchema<InputSchema extends ContractSchema> = Readonly<{
|
|
280
437
|
[Field in Extract<keyof ContractSchemaInput<InputSchema>, string>]?: string;
|
|
@@ -284,6 +441,42 @@ export interface ContractTypeError<Code extends string, Evidence> {
|
|
|
284
441
|
readonly code: Code;
|
|
285
442
|
} & Evidence>;
|
|
286
443
|
}
|
|
444
|
+
type HelpFactTemplateAllowedPlaceholder<Slot extends keyof HelpFactWording> = (typeof helpTemplateSpecifications)[Slot]["placeholders"][number];
|
|
445
|
+
type ParsedHelpFactTemplate<Template extends string, Allowed extends string, Seen extends string = never> = Template extends `${infer Prefix}{${infer Tail}` ? Prefix extends `${string}}${string}` ? false : Tail extends `${infer Placeholder}}${infer Rest}` ? Placeholder extends Allowed ? ParsedHelpFactTemplate<Rest, Allowed, Seen | Placeholder> : false : false : Template extends `${string}}${string}` ? false : Exclude<Allowed, Seen> extends never ? true : false;
|
|
446
|
+
type HelpTemplateWhitespace = " " | "\t" | "\v" | "\f" | "\u00a0" | "\u1680" | "\u2000" | "\u2001" | "\u2002" | "\u2003" | "\u2004" | "\u2005" | "\u2006" | "\u2007" | "\u2008" | "\u2009" | "\u200a" | "\u2028" | "\u2029" | "\u202f" | "\u205f" | "\u3000" | "\ufeff";
|
|
447
|
+
type TrimHelpTemplateWhitespace<Template extends string> = Template extends `${HelpTemplateWhitespace}${infer Rest}` ? TrimHelpTemplateWhitespace<Rest> : Template extends `${infer Rest}${HelpTemplateWhitespace}` ? TrimHelpTemplateWhitespace<Rest> : Template;
|
|
448
|
+
type HelpFactTemplateFailureReason<Slot extends keyof HelpFactWording, Template extends string> = Template extends `${string}\r${string}` | `${string}\n${string}` | `${string}\0${string}` ? "singleLine" : TrimHelpTemplateWhitespace<Template> extends "" ? "empty" : Slot extends "commandPlaceholder" ? Template extends `${string}<${string}` | `${string}>${string}` ? "placeholder" : ParsedHelpFactTemplate<Template, HelpFactTemplateAllowedPlaceholder<Slot>> extends true ? never : "placeholder" : ParsedHelpFactTemplate<Template, HelpFactTemplateAllowedPlaceholder<Slot>> extends true ? never : "placeholder";
|
|
449
|
+
type IsValidStaticHelpFactTemplate<Slot extends keyof HelpFactWording, Template extends string> = HelpFactTemplateFailureReason<Slot, Template> extends never ? true : false;
|
|
450
|
+
type HelpFactTemplateValueContract<Slot extends keyof HelpFactWording, Value> = [Exclude<Value, undefined>] extends [never] ? never : [Exclude<Value, undefined>] extends [string] ? string extends Exclude<Value, undefined> ? never : IsValidStaticHelpFactTemplate<Slot, Extract<Exclude<Value, undefined>, string>> extends true ? never : ContractTypeError<"invalidHelpFactTemplate", Readonly<{
|
|
451
|
+
readonly slot: Slot;
|
|
452
|
+
readonly received: Extract<Exclude<Value, undefined>, string>;
|
|
453
|
+
readonly reason: HelpFactTemplateFailureReason<Slot, Extract<Exclude<Value, undefined>, string>>;
|
|
454
|
+
}>> : ContractTypeError<"invalidHelpFactTemplate", Readonly<{
|
|
455
|
+
readonly slot: Slot;
|
|
456
|
+
readonly received: Value;
|
|
457
|
+
readonly reason: "singleLine";
|
|
458
|
+
}>>;
|
|
459
|
+
type HelpFactWordingMemberIssues<Wording> = {
|
|
460
|
+
[Slot in keyof Wording & keyof HelpFactWording]: HelpFactTemplateValueContract<Slot, Wording[Slot]>;
|
|
461
|
+
}[keyof Wording & keyof HelpFactWording] | HelpFactWordingUnknownPropertyIssues<Wording>;
|
|
462
|
+
type HelpFactWordingIssues<Wording> = Wording extends unknown ? HelpFactWordingMemberIssues<Wording> : never;
|
|
463
|
+
type HelpFactWordingUnknownPropertyIssues<Wording> = {
|
|
464
|
+
[Property in Exclude<Extract<keyof Wording, string>, keyof HelpFactWording>]: ContractTypeError<"unknownDefinitionProperty", Readonly<{
|
|
465
|
+
readonly path: readonly ["help", "wording", Property];
|
|
466
|
+
readonly property: Property;
|
|
467
|
+
}>>;
|
|
468
|
+
}[Exclude<Extract<keyof Wording, string>, keyof HelpFactWording>];
|
|
469
|
+
type HelpFactWordingContract<Wording> = [
|
|
470
|
+
HelpFactWordingIssues<Wording>
|
|
471
|
+
] extends [never] ? unknown : HelpFactWordingIssues<Wording>;
|
|
472
|
+
type HelpCapabilityWording<Definition> = Definition extends unknown ? Definition extends Readonly<{
|
|
473
|
+
readonly wording?: infer Wording;
|
|
474
|
+
}> ? Exclude<Wording, undefined> : never : never;
|
|
475
|
+
type HelpCapabilityTemplateContract<Definition> = [
|
|
476
|
+
HelpCapabilityWording<Definition>
|
|
477
|
+
] extends [never] ? unknown : [
|
|
478
|
+
Extract<HelpCapabilityWording<Definition>, (...arguments_: never[]) => unknown>
|
|
479
|
+
] extends [never] ? HelpFactWordingContract<HelpCapabilityWording<Definition>> : never;
|
|
287
480
|
type InputStringKeys<Input> = Extract<keyof Input, string>;
|
|
288
481
|
type IsAny<Value> = 0 extends 1 & Value ? true : false;
|
|
289
482
|
type IsUnion<Value, Whole = Value> = IsAny<Value> extends true ? false : Value extends unknown ? [Whole] extends [Value] ? false : true : never;
|
|
@@ -300,12 +493,18 @@ type InvalidVariantNames<Variants> = {
|
|
|
300
493
|
[Variant in keyof Variants & string]: IsLowerCamelCase<Variant> extends true ? never : Variant;
|
|
301
494
|
}[keyof Variants & string];
|
|
302
495
|
type InvalidDataVariantNames<Variants> = InvalidVariantNames<Variants>;
|
|
303
|
-
type DataVariantNameContract<Variants> = InvalidDataVariantNames<Variants> extends never ? unknown : ContractTypeError<"
|
|
304
|
-
readonly
|
|
496
|
+
type DataVariantNameContract<Command extends string, Variants> = InvalidDataVariantNames<Variants> extends never ? unknown : ContractTypeError<"invalidVariantName", Readonly<{
|
|
497
|
+
readonly command: Command;
|
|
498
|
+
readonly location: "data";
|
|
499
|
+
readonly variant: InvalidDataVariantNames<Variants>;
|
|
500
|
+
readonly reason: "lowerCamelCase";
|
|
305
501
|
}>>;
|
|
306
502
|
type InvalidFailureVariantNames<Failures> = InvalidVariantNames<Failures>;
|
|
307
|
-
type FailureVariantNameContract<Failures> = InvalidFailureVariantNames<Failures> extends never ? unknown : ContractTypeError<"
|
|
308
|
-
readonly
|
|
503
|
+
type FailureVariantNameContract<Command extends string, Failures> = InvalidFailureVariantNames<Failures> extends never ? unknown : ContractTypeError<"invalidVariantName", Readonly<{
|
|
504
|
+
readonly command: Command;
|
|
505
|
+
readonly location: "failure";
|
|
506
|
+
readonly variant: InvalidFailureVariantNames<Failures>;
|
|
507
|
+
readonly reason: "lowerCamelCase";
|
|
309
508
|
}>>;
|
|
310
509
|
export interface CompletionHandlerContext<Command extends string, Dependencies, Failures extends FailureVariantDefinitions, Input = EmptyCliInput> {
|
|
311
510
|
readonly input: Input;
|
|
@@ -373,8 +572,11 @@ type FailureVariantDefinitionsForSchemas<Schemas extends VariantSchemaMap, TextE
|
|
|
373
572
|
}>;
|
|
374
573
|
type FailureVariantTextContract<Command extends string, Failures, TextEnabled extends boolean> = NamedVariantTextContract<Command, "failure", Failures, TextEnabled, FailureVariantDefinitions<false>>;
|
|
375
574
|
type StreamRecordTextContract<Command extends string, Records, TextEnabled extends boolean> = NamedVariantTextContract<Command, "record", Records, TextEnabled, StreamRecordDefinitions<false>>;
|
|
376
|
-
type StreamRecordNameContract<Records> = InvalidVariantNames<Records> extends never ? unknown : ContractTypeError<"
|
|
377
|
-
readonly
|
|
575
|
+
type StreamRecordNameContract<Command extends string, Records> = InvalidVariantNames<Records> extends never ? unknown : ContractTypeError<"invalidVariantName", Readonly<{
|
|
576
|
+
readonly command: Command;
|
|
577
|
+
readonly location: "record";
|
|
578
|
+
readonly variant: InvalidVariantNames<Records>;
|
|
579
|
+
readonly reason: "lowerCamelCase";
|
|
378
580
|
}>>;
|
|
379
581
|
type StreamRecordDefinitionForSchema<Schema extends ContractSchema, TextEnabled extends boolean> = Readonly<{
|
|
380
582
|
readonly description: string;
|
|
@@ -392,11 +594,10 @@ export interface CompletionRootCommandDefinition<Command extends string, Depende
|
|
|
392
594
|
readonly name: string;
|
|
393
595
|
readonly description: string;
|
|
394
596
|
readonly helpSupplement?: TextLines;
|
|
395
|
-
readonly
|
|
396
|
-
readonly fields?: CheckedFieldDefinitions<Fields> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Fields>;
|
|
597
|
+
readonly fields?: CheckedFieldDefinitions<Fields, Command> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Command, Fields>;
|
|
397
598
|
readonly input: InputSchema & RawFieldInputContract<Command, Fields, InputSchema>;
|
|
398
599
|
readonly success: CompletionSuccessDefinition<Command, TextEnabled>;
|
|
399
|
-
readonly failures: Failures & ClosedAtomicVariants<Failures> & FailureVariantNameContract<Failures> & FailureVariantTextContract<Command, Failures, TextEnabled>;
|
|
600
|
+
readonly failures: Failures & ClosedAtomicVariants<Failures> & FailureVariantNameContract<Command, Failures> & FailureVariantTextContract<Command, Failures, TextEnabled>;
|
|
400
601
|
readonly handler: (context: CompletionHandlerContext<Command, Dependencies, Failures, ContractSchemaOutput<InputSchema>>) => CompletionFact<Command> | FailureFactUnion<Command, Failures> | Promise<CompletionFact<Command> | FailureFactUnion<Command, Failures>>;
|
|
401
602
|
}
|
|
402
603
|
export interface DataRootCommandDefinition<Command extends string, Dependencies, Fields extends FieldDefinitions, InputSchema extends ContractSchema, Variants extends DataVariantDefinitions, Failures extends FailureVariantDefinitions> {
|
|
@@ -404,14 +605,13 @@ export interface DataRootCommandDefinition<Command extends string, Dependencies,
|
|
|
404
605
|
readonly name: string;
|
|
405
606
|
readonly description: string;
|
|
406
607
|
readonly helpSupplement?: TextLines;
|
|
407
|
-
readonly
|
|
408
|
-
readonly fields: CheckedFieldDefinitions<Fields> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Fields>;
|
|
608
|
+
readonly fields: CheckedFieldDefinitions<Fields, Command> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Command, Fields>;
|
|
409
609
|
readonly input: InputSchema & RawFieldInputContract<Command, Fields, InputSchema>;
|
|
410
610
|
readonly success: Readonly<{
|
|
411
611
|
readonly kind: "data";
|
|
412
|
-
readonly variants: Variants & ClosedAtomicVariants<Variants> & DataVariantNameContract<Variants>;
|
|
612
|
+
readonly variants: Variants & ClosedAtomicVariants<Variants> & DataVariantNameContract<Command, Variants>;
|
|
413
613
|
}>;
|
|
414
|
-
readonly failures: Failures & ClosedAtomicVariants<Failures> & FailureVariantNameContract<Failures>;
|
|
614
|
+
readonly failures: Failures & ClosedAtomicVariants<Failures> & FailureVariantNameContract<Command, Failures>;
|
|
415
615
|
readonly handler: (context: DataHandlerContext<Command, Dependencies, ContractSchemaOutput<InputSchema>, Variants, Failures>) => DataFactUnion<Command, Variants> | FailureFactUnion<Command, Failures> | Promise<DataFactUnion<Command, Variants> | FailureFactUnion<Command, Failures>>;
|
|
416
616
|
}
|
|
417
617
|
export interface StreamRootCommandDefinition<Command extends string, Dependencies, Fields extends FieldDefinitions, InputSchema extends ContractSchema, Records extends StreamRecordDefinitions, Failures extends FailureVariantDefinitions, TextEnabled extends boolean = boolean> {
|
|
@@ -419,12 +619,11 @@ export interface StreamRootCommandDefinition<Command extends string, Dependencie
|
|
|
419
619
|
readonly name: string;
|
|
420
620
|
readonly description: string;
|
|
421
621
|
readonly helpSupplement?: TextLines;
|
|
422
|
-
readonly
|
|
423
|
-
readonly fields?: CheckedFieldDefinitions<Fields> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Fields>;
|
|
622
|
+
readonly fields?: CheckedFieldDefinitions<Fields, Command> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Command, Fields>;
|
|
424
623
|
readonly input: InputSchema & RawFieldInputContract<Command, Fields, InputSchema>;
|
|
425
624
|
readonly success: Readonly<{
|
|
426
625
|
readonly kind: "stream";
|
|
427
|
-
readonly records: Records & StreamRecordDefinitions<TextEnabled> & ClosedStreamRecords<Records> & StreamRecordNameContract<Records>;
|
|
626
|
+
readonly records: Records & StreamRecordDefinitions<TextEnabled> & ClosedStreamRecords<Records> & StreamRecordNameContract<Command, Records>;
|
|
428
627
|
}> & (TextEnabled extends true ? Readonly<{
|
|
429
628
|
readonly text: CompletionTextPresenter;
|
|
430
629
|
}> : TextEnabled extends false ? Readonly<{
|
|
@@ -432,7 +631,7 @@ export interface StreamRootCommandDefinition<Command extends string, Dependencie
|
|
|
432
631
|
}> : Readonly<{
|
|
433
632
|
readonly text?: CompletionTextPresenter;
|
|
434
633
|
}>);
|
|
435
|
-
readonly failures: Failures & ClosedAtomicVariants<Failures> & FailureVariantNameContract<Failures>;
|
|
634
|
+
readonly failures: Failures & ClosedAtomicVariants<Failures> & FailureVariantNameContract<Command, Failures>;
|
|
436
635
|
readonly handler: (context: StreamHandlerContext<Command, Dependencies, ContractSchemaOutput<InputSchema>, Records, Failures>) => AsyncGenerator<StreamRecordFactUnion<Command, Records>, StreamSuccessFact<Command> | FailureFactUnion<Command, Failures>, void>;
|
|
437
636
|
}
|
|
438
637
|
export type RootCommandDefinition<Command extends string, Dependencies> = CompletionRootCommandDefinition<Command, Dependencies, FailureVariantDefinitions, FieldDefinitions, ContractSchema> | DataRootCommandDefinition<Command, Dependencies, FieldDefinitions, ContractSchema, DataVariantDefinitions, FailureVariantDefinitions> | StreamRootCommandDefinition<Command, Dependencies, FieldDefinitions, ContractSchema, StreamRecordDefinitions, FailureVariantDefinitions>;
|
|
@@ -454,13 +653,17 @@ export interface CommandGroupDefinition<Parent extends string = string> {
|
|
|
454
653
|
readonly helpSupplement?: TextLines;
|
|
455
654
|
readonly handler?: never;
|
|
456
655
|
}
|
|
457
|
-
type
|
|
656
|
+
type HierarchyCommandFactsDefinition<Parent extends string = string> = Readonly<{
|
|
458
657
|
readonly kind: "command";
|
|
459
658
|
readonly parent: Parent;
|
|
460
659
|
readonly aliases?: readonly string[];
|
|
461
660
|
readonly helpSupplement?: TextLines;
|
|
462
|
-
readonly [executableCommandType]: true;
|
|
463
661
|
}>;
|
|
662
|
+
type HierarchyCommandFacts<Parent extends string = string> = HierarchyCommandFactsDefinition<Parent> & CommandCombinationBrand;
|
|
663
|
+
export declare abstract class CommandCombinationBrand {
|
|
664
|
+
private readonly commandCombinationBrand;
|
|
665
|
+
}
|
|
666
|
+
export type CommandCombination<Command extends string, Definition extends object, Parent extends string = string> = Readonly<Record<Command, Definition & HierarchyCommandFacts<Parent>>>;
|
|
464
667
|
export type ExecutableCommandDefinition<Command extends string = string, Dependencies = unknown> = (Omit<CompletionRootCommandDefinition<Command, Dependencies, FailureVariantDefinitions, FieldDefinitions, ContractSchema>, "kind"> & HierarchyCommandFacts) | (Omit<DataRootCommandDefinition<Command, Dependencies, FieldDefinitions, ContractSchema, DataVariantDefinitions, FailureVariantDefinitions>, "kind"> & HierarchyCommandFacts) | (Omit<StreamRootCommandDefinition<Command, Dependencies, FieldDefinitions, ContractSchema, StreamRecordDefinitions, FailureVariantDefinitions>, "kind"> & HierarchyCommandFacts);
|
|
465
668
|
export type CommandNodeDefinition = CommandGroupDefinition | (HierarchyCommandFacts & Readonly<{
|
|
466
669
|
readonly name: string;
|
|
@@ -538,82 +741,402 @@ type HierarchyInputIssues<Commands> = {
|
|
|
538
741
|
type HierarchyUsageConstraints<Node> = Node extends Readonly<{
|
|
539
742
|
readonly usageConstraints?: infer Constraints;
|
|
540
743
|
}> ? Exclude<Constraints, undefined> : never;
|
|
541
|
-
type
|
|
744
|
+
type ConditionalUsageConstraints<Constraints> = Constraints extends readonly (infer Constraint)[] ? Extract<Constraint, Readonly<{
|
|
745
|
+
readonly kind: "when";
|
|
746
|
+
}>> : never;
|
|
747
|
+
type UsageConstraintFactsForNode<Node> = ConditionalUsageConstraints<HierarchyUsageConstraints<Node>>;
|
|
748
|
+
type HierarchyUsageConstraintFacts<Commands> = Readonly<{
|
|
749
|
+
[Command in keyof Commands]: UsageConstraintFactsForNode<Commands[Command]>;
|
|
750
|
+
}>;
|
|
751
|
+
type RootUsageConstraintFacts<Root extends string, Commands> = Readonly<{
|
|
752
|
+
[Command in Root]: RootNodeFromCommands<Root, Commands> extends infer Node ? UsageConstraintFactsForNode<Node> : never;
|
|
753
|
+
}>;
|
|
754
|
+
type UsageConstraintFactFields<Facts> = Facts extends readonly (infer Fact)[] ? Fact extends Readonly<{
|
|
542
755
|
readonly field: infer Field extends string;
|
|
543
756
|
}> ? Field : never : never;
|
|
544
|
-
type
|
|
545
|
-
|
|
757
|
+
type LastRequiredTupleItem<Items extends readonly unknown[]> = Items extends readonly [...unknown[], infer Last] ? Last : never;
|
|
758
|
+
type PopRequiredTupleItem<Items extends readonly unknown[]> = Items extends readonly [...infer Prefix, unknown] ? readonly [...Prefix] : never;
|
|
759
|
+
type StaticallyKnownTupleSuffixItems<Items extends readonly unknown[]> = [
|
|
760
|
+
LastRequiredTupleItem<Items>
|
|
761
|
+
] extends [never] ? never : string extends LastRequiredTupleItem<Items> ? StaticallyKnownTupleSuffixItems<PopRequiredTupleItem<Items>> : LastRequiredTupleItem<Items> | StaticallyKnownTupleSuffixItems<PopRequiredTupleItem<Items>>;
|
|
762
|
+
type StaticallyKnownUsageFact<Fact> = Fact extends Readonly<{
|
|
763
|
+
readonly field: infer Field extends string;
|
|
764
|
+
}> ? string extends Field ? never : IsUnion<Field> extends true ? never : Fact : never;
|
|
765
|
+
type StaticallyKnownUsageTupleFacts<Facts extends readonly unknown[]> = Facts extends readonly [infer Fact, ...infer Remaining] ? StaticallyKnownUsageFact<Fact> | StaticallyKnownUsageTupleFacts<Remaining> : StaticallyKnownTupleSuffixItems<Facts> extends infer Fact ? StaticallyKnownUsageFact<Fact> : never;
|
|
766
|
+
type IsNarrowUsageFactValue<Value> = [Value] extends [string | boolean] ? string extends Value ? false : boolean extends Value ? false : true : false;
|
|
767
|
+
type AreDisjointKnownUsageFactValues<Left, Right> = IsNarrowUsageFactValue<Left> extends true ? IsNarrowUsageFactValue<Right> extends true ? [Left & Right] extends [never] ? true : false : false : false;
|
|
768
|
+
type ConflictingEqualsUsageFactFields<First, Others> = First extends Readonly<{
|
|
769
|
+
readonly kind: "equals";
|
|
770
|
+
readonly field: infer Field extends string;
|
|
771
|
+
readonly value: infer Value;
|
|
772
|
+
}> ? Extract<Others, Readonly<{
|
|
773
|
+
readonly kind: "equals";
|
|
774
|
+
readonly field: Field;
|
|
775
|
+
}>> extends infer SameFieldFacts ? SameFieldFacts extends Readonly<{
|
|
776
|
+
readonly kind: "equals";
|
|
777
|
+
readonly value: infer OtherValue;
|
|
778
|
+
}> ? AreDisjointKnownUsageFactValues<Value, OtherValue> extends true ? Field : never : never : never : never;
|
|
779
|
+
type ContradictoryUsageFactUnionFields<Fact, Facts = Fact> = Fact extends unknown ? ConflictingEqualsUsageFactFields<Fact, Exclude<Facts, Fact>> : never;
|
|
780
|
+
type ContradictoryUsageFactFields<Facts extends readonly unknown[]> = Facts extends unknown ? ContradictoryUsageFactUnionFields<StaticallyKnownUsageTupleFacts<Facts>> : never;
|
|
781
|
+
type InvalidUsageFactForFields<Command extends string, Fact, Fields extends FieldDefinitions, Input, Constraint extends "when" | "forbiddenCombination" = "forbiddenCombination"> = Fact extends Readonly<{
|
|
782
|
+
readonly kind: "present";
|
|
783
|
+
readonly field: infer Field extends string;
|
|
784
|
+
}> ? Exclude<Field, keyof Fields> extends never ? never : ContractTypeError<"unknownUsageConstraintField", Readonly<{
|
|
785
|
+
readonly command: Command;
|
|
786
|
+
readonly constraint: Constraint;
|
|
787
|
+
readonly member: "all.field";
|
|
788
|
+
readonly field: Exclude<Field, keyof Fields>;
|
|
789
|
+
}>> : Fact extends Readonly<{
|
|
790
|
+
readonly kind: "equals";
|
|
791
|
+
readonly field: infer Field extends string;
|
|
546
792
|
readonly value: infer Actual;
|
|
547
|
-
}> ?
|
|
793
|
+
}> ? Exclude<Field, keyof Fields> extends never ? Field extends keyof Fields & string ? [UsageFactValue<Fields, Input, Field>] extends [never] ? ContractTypeError<"inapplicableUsageConstraintField", Readonly<{
|
|
548
794
|
readonly command: Command;
|
|
549
|
-
readonly constraint:
|
|
550
|
-
readonly member: "
|
|
795
|
+
readonly constraint: Constraint;
|
|
796
|
+
readonly member: "all.field";
|
|
551
797
|
readonly field: Field;
|
|
552
|
-
readonly
|
|
553
|
-
|
|
554
|
-
}>> : Fields[Field] extends ValueOptionDefinition ? Actual extends string ? never : ContractTypeError<"invalidUsageConstraintValue", Readonly<{
|
|
798
|
+
readonly kind: Fields[Field]["kind"];
|
|
799
|
+
}>> : [Actual] extends [UsageFactValue<Fields, Input, Field>] ? never : ContractTypeError<"invalidUsageConstraintValue", Readonly<{
|
|
555
800
|
readonly command: Command;
|
|
556
|
-
readonly constraint:
|
|
557
|
-
readonly member: "
|
|
801
|
+
readonly constraint: Constraint;
|
|
802
|
+
readonly member: "all.value";
|
|
558
803
|
readonly field: Field;
|
|
559
804
|
readonly actual: Actual;
|
|
560
|
-
readonly expected:
|
|
561
|
-
}>> : ContractTypeError<"
|
|
805
|
+
readonly expected: UsageFactValue<Fields, Input, Field>;
|
|
806
|
+
}>> : never : ContractTypeError<"unknownUsageConstraintField", Readonly<{
|
|
807
|
+
readonly command: Command;
|
|
808
|
+
readonly constraint: Constraint;
|
|
809
|
+
readonly member: "all.field";
|
|
810
|
+
readonly field: Exclude<Field, keyof Fields>;
|
|
811
|
+
}>> : ContractTypeError<"invalidUsageConstraint", Readonly<{
|
|
812
|
+
readonly command: Command;
|
|
813
|
+
readonly constraint: Constraint;
|
|
814
|
+
readonly member: "all";
|
|
815
|
+
}>>;
|
|
816
|
+
type InvalidForbiddenCombinationFacts<Command extends string, Facts extends readonly unknown[], Fields extends FieldDefinitions, Input> = Facts extends readonly [infer Fact, ...infer Remaining] ? [InvalidUsageFactForFields<Command, Fact, Fields, Input>] extends [never] ? InvalidForbiddenCombinationFacts<Command, Remaining, Fields, Input> : InvalidUsageFactForFields<Command, Fact, Fields, Input> : InvalidUsageFactForFields<Command, StaticallyKnownUsageTupleFacts<Facts>, Fields, Input>;
|
|
817
|
+
type InvalidWhenFacts<Command extends string, Facts extends readonly unknown[], Fields extends FieldDefinitions, Input> = Facts extends readonly [infer Fact, ...infer Remaining] ? [InvalidUsageFactForFields<Command, Fact, Fields, Input, "when">] extends [
|
|
818
|
+
never
|
|
819
|
+
] ? InvalidWhenFacts<Command, Remaining, Fields, Input> : InvalidUsageFactForFields<Command, Fact, Fields, Input, "when"> : InvalidUsageFactForFields<Command, StaticallyKnownUsageTupleFacts<Facts>, Fields, Input, "when">;
|
|
820
|
+
type UnknownUsageFactProperty<Fact> = Fact extends Readonly<{
|
|
821
|
+
readonly kind: "present";
|
|
822
|
+
}> ? Exclude<keyof Fact, (typeof definitionPropertyKeys.usage.fact.present)[number]> : Fact extends Readonly<{
|
|
823
|
+
readonly kind: "equals";
|
|
824
|
+
}> ? Exclude<keyof Fact, (typeof definitionPropertyKeys.usage.fact.equals)[number]> : never;
|
|
825
|
+
type UnknownUsageFactProperties<Facts extends readonly unknown[]> = UnknownUsageFactProperty<Facts[number]>;
|
|
826
|
+
type UnknownForbiddenCombinationConstraintProperties<Constraint> = Exclude<keyof Constraint, (typeof definitionPropertyKeys.usage.forbiddenCombination)[number]>;
|
|
827
|
+
type UnknownForbiddenCombinationFactProperties<Facts> = Facts extends readonly unknown[] ? UnknownUsageFactProperties<Facts> : never;
|
|
828
|
+
type InvalidForbiddenCombinationShape<Command extends string, Constraint, Facts> = ([UnknownForbiddenCombinationConstraintProperties<Constraint>] extends [
|
|
829
|
+
never
|
|
830
|
+
] ? never : ContractTypeError<"unknownDefinitionProperty", Readonly<{
|
|
562
831
|
readonly command: Command;
|
|
563
832
|
readonly constraint: "forbiddenCombination";
|
|
564
|
-
readonly member: "
|
|
565
|
-
readonly
|
|
566
|
-
|
|
833
|
+
readonly member: "forbiddenCombination";
|
|
834
|
+
readonly property: UnknownForbiddenCombinationConstraintProperties<Constraint>;
|
|
835
|
+
}>>) | ([UnknownForbiddenCombinationFactProperties<Facts>] extends [never] ? never : ContractTypeError<"unknownDefinitionProperty", Readonly<{
|
|
836
|
+
readonly command: Command;
|
|
837
|
+
readonly constraint: "forbiddenCombination";
|
|
838
|
+
readonly member: "all";
|
|
839
|
+
readonly property: UnknownForbiddenCombinationFactProperties<Facts>;
|
|
840
|
+
}>>);
|
|
841
|
+
type UnknownWhenEffectProperty<Effect> = Effect extends object ? Exclude<keyof Effect, (typeof definitionPropertyKeys.usage.effect)[number]> : never;
|
|
842
|
+
type UnknownWhenConstraintProperty<Constraint> = Constraint extends object ? Exclude<keyof Constraint, (typeof definitionPropertyKeys.usage.when)[number]> : never;
|
|
843
|
+
type InvalidWhenEffectProperties<Command extends string, Branch, Effect> = Effect extends object ? [UnknownWhenEffectProperty<Effect>] extends [never] ? never : ContractTypeError<"unknownDefinitionProperty", Readonly<{
|
|
844
|
+
readonly command: Command;
|
|
845
|
+
readonly constraint: "when";
|
|
846
|
+
readonly member: Branch;
|
|
847
|
+
readonly property: UnknownWhenEffectProperty<Effect>;
|
|
567
848
|
}>> : never;
|
|
568
|
-
type
|
|
569
|
-
type InvalidUsageConstraintForFields<Command extends string, Constraint, Fields extends FieldDefinitions> = Constraint extends Readonly<{
|
|
570
|
-
readonly kind: "requires";
|
|
571
|
-
readonly field: infer Field extends string;
|
|
572
|
-
readonly requires: infer Required extends string;
|
|
573
|
-
}> ? Exclude<Field, keyof Fields> extends never ? Exclude<Required, keyof Fields> extends never ? never : ContractTypeError<"unknownUsageConstraintField", Readonly<{
|
|
849
|
+
type InvalidWhenProperties<Command extends string, Constraint, Facts> = ([UnknownWhenConstraintProperty<Constraint>] extends [never] ? never : ContractTypeError<"unknownDefinitionProperty", Readonly<{
|
|
574
850
|
readonly command: Command;
|
|
575
|
-
readonly constraint: "
|
|
576
|
-
readonly member: "
|
|
577
|
-
readonly
|
|
578
|
-
}>> : ContractTypeError<"
|
|
851
|
+
readonly constraint: "when";
|
|
852
|
+
readonly member: "when";
|
|
853
|
+
readonly property: UnknownWhenConstraintProperty<Constraint>;
|
|
854
|
+
}>>) | (Facts extends readonly unknown[] ? [UnknownUsageFactProperties<Facts>] extends [never] ? never : ContractTypeError<"unknownDefinitionProperty", Readonly<{
|
|
579
855
|
readonly command: Command;
|
|
580
|
-
readonly constraint: "
|
|
581
|
-
readonly member: "
|
|
582
|
-
readonly
|
|
583
|
-
}>> : Constraint extends Readonly<{
|
|
584
|
-
readonly
|
|
585
|
-
|
|
586
|
-
|
|
856
|
+
readonly constraint: "when";
|
|
857
|
+
readonly member: "all";
|
|
858
|
+
readonly property: UnknownUsageFactProperties<Facts>;
|
|
859
|
+
}>> : never) | (Constraint extends Readonly<{
|
|
860
|
+
readonly onMatch?: infer OnMatch;
|
|
861
|
+
}> ? InvalidWhenEffectProperties<Command, "onMatch", OnMatch> : never) | (Constraint extends Readonly<{
|
|
862
|
+
readonly otherwise?: infer Otherwise;
|
|
863
|
+
}> ? InvalidWhenEffectProperties<Command, "otherwise", Otherwise> : never);
|
|
864
|
+
type InvalidClosedUsageConstraintProperties<Command extends string, Constraint> = Constraint extends Readonly<{
|
|
865
|
+
readonly kind: "when";
|
|
866
|
+
readonly all: infer Facts;
|
|
867
|
+
}> ? InvalidWhenProperties<Command, Constraint, Facts> : Constraint extends Readonly<{
|
|
868
|
+
readonly kind: "forbiddenCombination";
|
|
869
|
+
readonly all: infer Facts;
|
|
870
|
+
}> ? InvalidForbiddenCombinationShape<Command, Constraint, Facts> : Constraint extends Readonly<{
|
|
871
|
+
readonly kind: "count";
|
|
872
|
+
}> ? [
|
|
873
|
+
Exclude<keyof Constraint, (typeof definitionPropertyKeys.usage.count)[number]>
|
|
874
|
+
] extends [never] ? never : ContractTypeError<"unknownDefinitionProperty", Readonly<{
|
|
875
|
+
readonly command: Command;
|
|
876
|
+
readonly constraint: "count";
|
|
877
|
+
readonly member: "count";
|
|
878
|
+
readonly property: Exclude<keyof Constraint, (typeof definitionPropertyKeys.usage.count)[number]>;
|
|
879
|
+
}>> : never;
|
|
880
|
+
type CountDigit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
881
|
+
type CountDigitTuple = {
|
|
882
|
+
readonly "0": readonly [];
|
|
883
|
+
readonly "1": readonly [unknown];
|
|
884
|
+
readonly "2": readonly [unknown, unknown];
|
|
885
|
+
readonly "3": readonly [unknown, unknown, unknown];
|
|
886
|
+
readonly "4": readonly [unknown, unknown, unknown, unknown];
|
|
887
|
+
readonly "5": readonly [unknown, unknown, unknown, unknown, unknown];
|
|
888
|
+
readonly "6": readonly [unknown, unknown, unknown, unknown, unknown, unknown];
|
|
889
|
+
readonly "7": readonly [
|
|
890
|
+
unknown,
|
|
891
|
+
unknown,
|
|
892
|
+
unknown,
|
|
893
|
+
unknown,
|
|
894
|
+
unknown,
|
|
895
|
+
unknown,
|
|
896
|
+
unknown
|
|
897
|
+
];
|
|
898
|
+
readonly "8": readonly [
|
|
899
|
+
unknown,
|
|
900
|
+
unknown,
|
|
901
|
+
unknown,
|
|
902
|
+
unknown,
|
|
903
|
+
unknown,
|
|
904
|
+
unknown,
|
|
905
|
+
unknown,
|
|
906
|
+
unknown
|
|
907
|
+
];
|
|
908
|
+
readonly "9": readonly [
|
|
909
|
+
unknown,
|
|
910
|
+
unknown,
|
|
911
|
+
unknown,
|
|
912
|
+
unknown,
|
|
913
|
+
unknown,
|
|
914
|
+
unknown,
|
|
915
|
+
unknown,
|
|
916
|
+
unknown,
|
|
917
|
+
unknown
|
|
918
|
+
];
|
|
919
|
+
};
|
|
920
|
+
type CountStringLength<Value extends string, Cursor extends readonly unknown[] = []> = Value extends `${infer _Character}${infer Remaining}` ? CountStringLength<Remaining, [...Cursor, unknown]> : Cursor;
|
|
921
|
+
type CompareCountDigit<Left extends CountDigit, Right extends CountDigit> = Left extends Right ? "equal" : CountDigitTuple[Left] extends readonly [
|
|
922
|
+
...CountDigitTuple[Right],
|
|
923
|
+
unknown,
|
|
924
|
+
...unknown[]
|
|
925
|
+
] ? "greater" : "less";
|
|
926
|
+
type CompareCountDigitStrings<Left extends string, Right extends string> = Left extends `${infer LeftDigit extends CountDigit}${infer LeftRest}` ? Right extends `${infer RightDigit extends CountDigit}${infer RightRest}` ? CompareCountDigit<LeftDigit, RightDigit> extends infer Comparison ? Comparison extends "equal" ? CompareCountDigitStrings<LeftRest, RightRest> : Comparison : never : "greater" : Right extends "" ? "equal" : "less";
|
|
927
|
+
type CompareCountStringLengths<Left extends string, Right extends string> = CountStringLength<Left> extends readonly [
|
|
928
|
+
...CountStringLength<Right>,
|
|
929
|
+
...infer Remaining
|
|
930
|
+
] ? Remaining extends readonly [] ? "equal" : "greater" : "less";
|
|
931
|
+
type CompareCountUnsignedIntegers<Left extends string, Right extends string> = CompareCountStringLengths<Left, Right> extends infer LengthOrder ? LengthOrder extends "equal" ? CompareCountDigitStrings<Left, Right> : LengthOrder : never;
|
|
932
|
+
type CompareCountFractions<Left extends string, Right extends string> = Left extends `${infer LeftDigit extends CountDigit}${infer LeftRest}` ? Right extends `${infer RightDigit extends CountDigit}${infer RightRest}` ? CompareCountDigit<LeftDigit, RightDigit> extends infer Comparison ? Comparison extends "equal" ? CompareCountFractions<LeftRest, RightRest> : Comparison : never : CompareCountDigit<LeftDigit, "0"> extends infer Comparison ? Comparison extends "equal" ? CompareCountFractions<LeftRest, ""> : Comparison : never : Right extends `${infer RightDigit extends CountDigit}${infer RightRest}` ? CompareCountDigit<"0", RightDigit> extends infer Comparison ? Comparison extends "equal" ? CompareCountFractions<"", RightRest> : Comparison : never : "equal";
|
|
933
|
+
type CompareCountCoefficients<Left extends string, Right extends string> = Left extends `${infer LeftWhole extends CountDigit}.${infer LeftFraction}` ? Right extends `${infer RightWhole extends CountDigit}.${infer RightFraction}` ? CompareCountDigit<LeftWhole, RightWhole> extends infer Comparison ? Comparison extends "equal" ? CompareCountFractions<LeftFraction, RightFraction> : Comparison : never : never : never;
|
|
934
|
+
type NormalizeCountCoefficient<Coefficient extends string> = Coefficient extends `${string}.${string}` ? Coefficient : `${Coefficient}.0`;
|
|
935
|
+
type CountScientificParts<Value extends number> = `${Value}` extends `${infer Coefficient}e+${infer Exponent}` ? Readonly<{
|
|
936
|
+
readonly exponent: Exponent;
|
|
937
|
+
readonly coefficient: NormalizeCountCoefficient<Coefficient>;
|
|
938
|
+
}> : `${Value}` extends `${infer First extends CountDigit}${infer Remaining}` ? Readonly<{
|
|
939
|
+
readonly exponent: CountStringLength<`${Value}`> extends readonly [
|
|
940
|
+
...infer RemainingDigits,
|
|
941
|
+
unknown
|
|
942
|
+
] ? `${RemainingDigits["length"]}` : "0";
|
|
943
|
+
readonly coefficient: `${First}.${Remaining extends "" ? "0" : Remaining}`;
|
|
944
|
+
}> : never;
|
|
945
|
+
type CompareCountNumbers<Left extends number, Right extends number> = CountScientificParts<Left> extends Readonly<{
|
|
946
|
+
readonly exponent: infer LeftExponent extends string;
|
|
947
|
+
readonly coefficient: infer LeftCoefficient extends string;
|
|
948
|
+
}> ? CountScientificParts<Right> extends Readonly<{
|
|
949
|
+
readonly exponent: infer RightExponent extends string;
|
|
950
|
+
readonly coefficient: infer RightCoefficient extends string;
|
|
951
|
+
}> ? CompareCountUnsignedIntegers<LeftExponent, RightExponent> extends infer ExponentOrder ? ExponentOrder extends "equal" ? CompareCountCoefficients<LeftCoefficient, RightCoefficient> : ExponentOrder : never : never : never;
|
|
952
|
+
type IsCountIntegerLiteral<Value extends number> = `${Value}` extends `${bigint}` ? true : `${Value}` extends `${infer Coefficient}e+${infer Exponent}` ? Coefficient extends `${bigint}` ? true : Coefficient extends `${string}.${infer Fraction}` ? CompareCountUnsignedIntegers<Exponent, `${CountStringLength<Fraction>["length"]}`> extends "less" ? false : true : false : false;
|
|
953
|
+
type CountFieldRange<Fields extends readonly unknown[], Cursor extends readonly unknown[] = []> = number extends Fields["length"] ? number : Cursor["length"] extends Fields["length"] ? Cursor["length"] : Cursor["length"] | CountFieldRange<Fields, [...Cursor, unknown]>;
|
|
954
|
+
type CountFieldMaximum<Fields extends readonly unknown[]> = Fields["length"];
|
|
955
|
+
type CountFieldDuplicates<Fields extends readonly unknown[], Seen = never> = Fields extends readonly [infer Field, ...infer Remaining] ? string extends Field ? CountFieldDuplicates<Remaining, Seen> : IsUnion<Field> extends true ? CountFieldDuplicates<Remaining, Seen> : Field extends Seen ? Field : CountFieldDuplicates<Remaining, Seen | Field> : CountFieldSuffixDuplicates<Fields, Seen>;
|
|
956
|
+
type CountFieldSuffixDuplicates<Fields extends readonly unknown[], Seen> = [
|
|
957
|
+
LastRequiredTupleItem<Fields>
|
|
958
|
+
] extends [never] ? never : LastRequiredTupleItem<Fields> extends infer Field ? string extends Field ? CountFieldSuffixDuplicates<PopRequiredTupleItem<Fields>, Seen> : IsUnion<Field> extends true ? CountFieldSuffixDuplicates<PopRequiredTupleItem<Fields>, Seen> : Field extends Seen ? Field | CountFieldSuffixDuplicates<PopRequiredTupleItem<Fields>, Seen | Field> : CountFieldSuffixDuplicates<PopRequiredTupleItem<Fields>, Seen | Field> : never;
|
|
959
|
+
type CountEndpoint<Constraint, Member extends "min" | "max"> = Member extends keyof Constraint ? Exclude<Constraint[Member], undefined> : never;
|
|
960
|
+
type CountEndpointIssue<Command extends string, Member extends "min" | "max", Value, Allowed extends number, Maximum extends number> = IsAny<Value> extends true ? never : number extends Value ? never : Value extends number ? `${Value}` extends `-${string}` ? ContractTypeError<"invalidCountConstraint", Readonly<{
|
|
961
|
+
readonly command: Command;
|
|
962
|
+
readonly constraint: "count";
|
|
963
|
+
readonly member: Member;
|
|
964
|
+
readonly reason: "nonNegative";
|
|
965
|
+
readonly actual: Value;
|
|
966
|
+
}>> : IsCountIntegerLiteral<Value> extends true ? Exclude<Value, Allowed> extends infer Outside extends number ? [Outside] extends [never] ? never : ContractTypeError<"invalidCountConstraint", Readonly<{
|
|
967
|
+
readonly command: Command;
|
|
968
|
+
readonly constraint: "count";
|
|
969
|
+
readonly member: Member;
|
|
970
|
+
readonly reason: "fieldCount";
|
|
971
|
+
readonly actual: Outside;
|
|
972
|
+
readonly maximum: Maximum;
|
|
973
|
+
}>> : never : ContractTypeError<"invalidCountConstraint", Readonly<{
|
|
974
|
+
readonly command: Command;
|
|
975
|
+
readonly constraint: "count";
|
|
976
|
+
readonly member: Member;
|
|
977
|
+
readonly reason: "integer";
|
|
978
|
+
readonly actual: Value;
|
|
979
|
+
}>> : never;
|
|
980
|
+
type CountEndpointValidationIssue<Command extends string, Constraint, Fields extends readonly unknown[], Member extends "min" | "max"> = CountEndpointIssue<Command, Member, CountEndpoint<Constraint, Member>, CountFieldRange<Fields>, CountFieldMaximum<Fields>>;
|
|
981
|
+
type CountRangeOrderIssue<Command extends string, Minimum, Maximum> = Minimum extends number ? Maximum extends number ? CompareCountNumbers<Minimum, Maximum> extends "greater" ? ContractTypeError<"invalidCountConstraint", Readonly<{
|
|
982
|
+
readonly command: Command;
|
|
983
|
+
readonly constraint: "count";
|
|
984
|
+
readonly member: "min";
|
|
985
|
+
readonly reason: "ordered";
|
|
986
|
+
readonly actual: Minimum;
|
|
987
|
+
readonly maximum: Maximum;
|
|
988
|
+
}>> : never : never : never;
|
|
989
|
+
type StaticallyKnownCountTupleFields<Fields extends readonly unknown[]> = Fields extends readonly [infer Field, ...infer Remaining] ? string extends Field ? StaticallyKnownCountTupleFields<Remaining> : Field | StaticallyKnownCountTupleFields<Remaining> : StaticallyKnownTupleSuffixItems<Fields>;
|
|
990
|
+
type CountUnknownFieldIssue<Command extends string, Fields extends FieldDefinitions, CountFields extends readonly unknown[]> = Exclude<StaticallyKnownCountTupleFields<CountFields>, keyof Fields> extends infer UnknownField ? [UnknownField] extends [never] ? never : ContractTypeError<"unknownUsageConstraintField", Readonly<{
|
|
587
991
|
readonly command: Command;
|
|
588
|
-
readonly constraint: "
|
|
992
|
+
readonly constraint: "count";
|
|
589
993
|
readonly member: "fields";
|
|
994
|
+
readonly field: Extract<UnknownField, string>;
|
|
995
|
+
}>> : never;
|
|
996
|
+
type CountDuplicateFieldIssue<Command extends string, CountFields extends readonly unknown[]> = [CountFieldDuplicates<CountFields>] extends [never] ? never : ContractTypeError<"invalidCountConstraint", Readonly<{
|
|
997
|
+
readonly command: Command;
|
|
998
|
+
readonly constraint: "count";
|
|
999
|
+
readonly member: "fields";
|
|
1000
|
+
readonly reason: "duplicateFields";
|
|
1001
|
+
readonly fields: CountFieldDuplicates<CountFields>;
|
|
1002
|
+
}>>;
|
|
1003
|
+
type CountEndpointRangeIssue<Command extends string, Constraint, CountFields extends readonly unknown[]> = [
|
|
1004
|
+
CountEndpoint<Constraint, "min"> | CountEndpoint<Constraint, "max">
|
|
1005
|
+
] extends [never] ? ContractTypeError<"invalidCountConstraint", Readonly<{
|
|
1006
|
+
readonly command: Command;
|
|
1007
|
+
readonly constraint: "count";
|
|
1008
|
+
readonly member: "min";
|
|
1009
|
+
readonly reason: "endpointRequired";
|
|
1010
|
+
}>> : [
|
|
1011
|
+
CountEndpointValidationIssue<Command, Constraint, CountFields, "min">
|
|
1012
|
+
] extends [never] ? [
|
|
1013
|
+
CountEndpointValidationIssue<Command, Constraint, CountFields, "max">
|
|
1014
|
+
] extends [never] ? number extends CountEndpoint<Constraint, "min"> | CountEndpoint<Constraint, "max"> ? never : CountRangeOrderIssue<Command, CountEndpoint<Constraint, "min">, CountEndpoint<Constraint, "max">> : CountEndpointValidationIssue<Command, Constraint, CountFields, "max"> : CountEndpointValidationIssue<Command, Constraint, CountFields, "min">;
|
|
1015
|
+
type InvalidCountConstraintForFields<Command extends string, Constraint, Fields extends FieldDefinitions> = Constraint extends Readonly<{
|
|
1016
|
+
readonly fields: infer CountFields extends readonly unknown[];
|
|
1017
|
+
}> ? [CountUnknownFieldIssue<Command, Fields, CountFields>] extends [never] ? [CountFields["length"]] extends [0] ? ContractTypeError<"invalidCountConstraint", Readonly<{
|
|
1018
|
+
readonly command: Command;
|
|
1019
|
+
readonly constraint: "count";
|
|
1020
|
+
readonly member: "fields";
|
|
1021
|
+
readonly reason: "nonEmpty";
|
|
1022
|
+
}>> : [CountDuplicateFieldIssue<Command, CountFields>] extends [never] ? CountEndpointRangeIssue<Command, Constraint, CountFields> : CountDuplicateFieldIssue<Command, CountFields> : CountUnknownFieldIssue<Command, Fields, CountFields> : ContractTypeError<"invalidCountConstraint", Readonly<{
|
|
1023
|
+
readonly command: Command;
|
|
1024
|
+
readonly constraint: "count";
|
|
1025
|
+
readonly member: "fields";
|
|
1026
|
+
readonly reason: "nonEmpty";
|
|
1027
|
+
}>>;
|
|
1028
|
+
type UsageEffectFields<Effect, Member extends "require" | "forbid"> = Effect extends Readonly<Record<Member, readonly unknown[]>> ? StaticallyKnownCountTupleFields<Extract<Effect[Member], readonly unknown[]>> : never;
|
|
1029
|
+
type UsageEffectFieldArrays<Effect, Member extends "require" | "forbid"> = Effect extends object ? Member extends keyof Effect ? {} extends Pick<Effect, Member> ? never : Extract<Effect[Member], readonly unknown[]> : never : never;
|
|
1030
|
+
type StaticallyGuaranteedUsageTupleFields<Fields extends readonly unknown[]> = Fields extends readonly [infer Field, ...infer Remaining] ? string extends Field ? StaticallyGuaranteedUsageTupleFields<Remaining> : IsUnion<Field> extends true ? StaticallyGuaranteedUsageTupleFields<Remaining> : Field extends string ? Field | StaticallyGuaranteedUsageTupleFields<Remaining> : StaticallyGuaranteedUsageTupleFields<Remaining> : StaticallyGuaranteedUsageTupleSuffixFields<Fields>;
|
|
1031
|
+
type StaticallyGuaranteedUsageTupleSuffixFields<Fields extends readonly unknown[]> = [LastRequiredTupleItem<Fields>] extends [never] ? never : LastRequiredTupleItem<Fields> extends infer Field ? string extends Field ? StaticallyGuaranteedUsageTupleSuffixFields<PopRequiredTupleItem<Fields>> : IsUnion<Field> extends true ? StaticallyGuaranteedUsageTupleSuffixFields<PopRequiredTupleItem<Fields>> : Field extends string ? Field | StaticallyGuaranteedUsageTupleSuffixFields<PopRequiredTupleItem<Fields>> : StaticallyGuaranteedUsageTupleSuffixFields<PopRequiredTupleItem<Fields>> : never;
|
|
1032
|
+
type UsageArrayBranchesMissingGuaranteedField<Arrays, Field extends string> = Arrays extends readonly unknown[] ? Field extends StaticallyGuaranteedUsageTupleFields<Arrays> ? never : Arrays : never;
|
|
1033
|
+
type GuaranteedUsageFieldsAcrossArrays<Arrays> = StaticallyKnownCountTupleFields<Extract<Arrays, readonly unknown[]>> extends infer Candidate ? Candidate extends string ? [UsageArrayBranchesMissingGuaranteedField<Arrays, Candidate>] extends [
|
|
1034
|
+
never
|
|
1035
|
+
] ? Candidate : never : never : never;
|
|
1036
|
+
type GuaranteedUsageEffectFields<Effect, Member extends "require" | "forbid"> = GuaranteedUsageFieldsAcrossArrays<UsageEffectFieldArrays<Effect, Member>>;
|
|
1037
|
+
type UnknownUsageEffectFields<Command extends string, Branch extends "onMatch" | "otherwise", Member extends "require" | "forbid", Effect, Fields extends FieldDefinitions> = UsageEffectFields<Effect, Member> extends infer Field extends string ? string extends Field ? never : Exclude<Field, keyof Fields> extends never ? never : ContractTypeError<"unknownUsageConstraintField", Readonly<{
|
|
1038
|
+
readonly command: Command;
|
|
1039
|
+
readonly constraint: "when";
|
|
1040
|
+
readonly member: `${Branch}.${Member}`;
|
|
590
1041
|
readonly field: Exclude<Field, keyof Fields>;
|
|
591
|
-
}>> :
|
|
1042
|
+
}>> : never;
|
|
1043
|
+
type DefinitelyEmptyUsageEffectMember<Effect, Member extends "require" | "forbid"> = Effect extends undefined ? true : Effect extends object ? Member extends keyof Effect ? [Exclude<Effect[Member], undefined>] extends [never] ? true : Exclude<Effect[Member], undefined> extends readonly [] ? true : false : true : true;
|
|
1044
|
+
type DefinitelyEmptyUsageEffect<Effect> = DefinitelyEmptyUsageEffectMember<Effect, "require"> extends true ? DefinitelyEmptyUsageEffectMember<Effect, "forbid"> extends true ? true : false : false;
|
|
1045
|
+
type ContradictoryUsageEffectFields<Effect> = Effect extends unknown ? Extract<GuaranteedUsageEffectFields<Effect, "require">, GuaranteedUsageEffectFields<Effect, "forbid">> : never;
|
|
1046
|
+
type InvalidUsageEffectForFields<Command extends string, Branch extends "onMatch" | "otherwise", Effect, Fields extends FieldDefinitions> = UnknownUsageEffectFields<Command, Branch, "require", Effect, Fields> | UnknownUsageEffectFields<Command, Branch, "forbid", Effect, Fields> | ([ContradictoryUsageEffectFields<Effect>] extends [never] ? never : ContractTypeError<"contradictoryUsageConstraint", Readonly<{
|
|
1047
|
+
readonly command: Command;
|
|
1048
|
+
readonly constraint: "when";
|
|
1049
|
+
readonly member: Branch;
|
|
1050
|
+
readonly fields: ContradictoryUsageEffectFields<Effect>;
|
|
1051
|
+
}>>);
|
|
1052
|
+
type WhenEffectForConstraint<Constraint, Branch extends "onMatch" | "otherwise"> = Constraint extends object ? Branch extends keyof Constraint ? Exclude<Constraint[Branch], undefined> : undefined : undefined;
|
|
1053
|
+
type InvalidWhenHasNoEffects<Command extends string, Constraint> = Constraint extends unknown ? [
|
|
1054
|
+
DefinitelyEmptyUsageEffect<WhenEffectForConstraint<Constraint, "onMatch">>
|
|
1055
|
+
] extends [true] ? [
|
|
1056
|
+
DefinitelyEmptyUsageEffect<WhenEffectForConstraint<Constraint, "otherwise">>
|
|
1057
|
+
] extends [true] ? ContractTypeError<"invalidUsageConstraint", Readonly<{
|
|
1058
|
+
readonly command: Command;
|
|
1059
|
+
readonly constraint: "when";
|
|
1060
|
+
readonly member: "effects";
|
|
1061
|
+
}>> : never : never : never;
|
|
1062
|
+
type InvalidUsageConstraintForFields<Command extends string, Constraint, Fields extends FieldDefinitions, Input> = Constraint extends Readonly<{
|
|
1063
|
+
readonly kind: "when";
|
|
1064
|
+
readonly all: infer Facts extends readonly unknown[];
|
|
1065
|
+
}> ? [InvalidWhenProperties<Command, Constraint, Facts>] extends [never] ? Facts extends readonly [] ? ContractTypeError<"invalidUsageConstraint", Readonly<{
|
|
1066
|
+
readonly command: Command;
|
|
1067
|
+
readonly constraint: "when";
|
|
1068
|
+
readonly member: "all";
|
|
1069
|
+
}>> : [InvalidWhenFacts<Command, Facts, Fields, Input>] extends [never] ? Exclude<UsageConstraintFactFields<Facts>, keyof Fields> extends never ? [ContradictoryUsageFactFields<Facts>] extends [never] ? [
|
|
1070
|
+
InvalidUsageEffectForFields<Command, "onMatch", Constraint extends Readonly<{
|
|
1071
|
+
readonly onMatch?: infer OnMatch;
|
|
1072
|
+
}> ? OnMatch : undefined, Fields>
|
|
1073
|
+
] extends [never] ? [
|
|
1074
|
+
InvalidUsageEffectForFields<Command, "otherwise", Constraint extends Readonly<{
|
|
1075
|
+
readonly otherwise?: infer Otherwise;
|
|
1076
|
+
}> ? Otherwise : undefined, Fields>
|
|
1077
|
+
] extends [never] ? [InvalidWhenHasNoEffects<Command, Constraint>] extends [
|
|
1078
|
+
never
|
|
1079
|
+
] ? Constraint extends WhenUsageConstraint<Fields, Input> ? never : ContractTypeError<"invalidUsageConstraint", Readonly<{
|
|
1080
|
+
readonly command: Command;
|
|
1081
|
+
readonly constraint: "when";
|
|
1082
|
+
readonly member: "when";
|
|
1083
|
+
}>> : InvalidWhenHasNoEffects<Command, Constraint> : InvalidUsageEffectForFields<Command, "otherwise", Constraint extends Readonly<{
|
|
1084
|
+
readonly otherwise?: infer Otherwise;
|
|
1085
|
+
}> ? Otherwise : undefined, Fields> : InvalidUsageEffectForFields<Command, "onMatch", Constraint extends Readonly<{
|
|
1086
|
+
readonly onMatch?: infer OnMatch;
|
|
1087
|
+
}> ? OnMatch : undefined, Fields> : ContractTypeError<"contradictoryUsageConstraint", Readonly<{
|
|
1088
|
+
readonly command: Command;
|
|
1089
|
+
readonly constraint: "when";
|
|
1090
|
+
readonly member: "all";
|
|
1091
|
+
readonly fields: ContradictoryUsageFactFields<Facts>;
|
|
1092
|
+
}>> : ContractTypeError<"unknownUsageConstraintField", Readonly<{
|
|
1093
|
+
readonly command: Command;
|
|
1094
|
+
readonly constraint: "when";
|
|
1095
|
+
readonly member: "all.field";
|
|
1096
|
+
readonly field: Exclude<UsageConstraintFactFields<Facts>, keyof Fields>;
|
|
1097
|
+
}>> : InvalidWhenFacts<Command, Facts, Fields, Input> : InvalidWhenProperties<Command, Constraint, Facts> : Constraint extends Readonly<{
|
|
1098
|
+
readonly kind: "count";
|
|
1099
|
+
}> ? InvalidCountConstraintForFields<Command, Constraint, Fields> : Constraint extends Readonly<{
|
|
592
1100
|
readonly kind: "forbiddenCombination";
|
|
593
|
-
readonly
|
|
594
|
-
}> ?
|
|
595
|
-
|
|
596
|
-
] extends [never] ?
|
|
1101
|
+
readonly all: infer Facts extends readonly unknown[];
|
|
1102
|
+
}> ? [
|
|
1103
|
+
InvalidForbiddenCombinationShape<Command, Constraint, Facts>
|
|
1104
|
+
] extends [never] ? Exclude<UsageConstraintFactFields<Facts>, keyof Fields> extends never ? [
|
|
1105
|
+
InvalidForbiddenCombinationFacts<Command, Facts, Fields, Input>
|
|
1106
|
+
] extends [never] ? [ContradictoryUsageFactFields<Facts>] extends [never] ? Constraint extends ForbiddenCombinationUsageConstraint<Fields, Input> ? never : ContractTypeError<"invalidUsageConstraint", Readonly<{
|
|
1107
|
+
readonly command: Command;
|
|
1108
|
+
readonly constraint: "forbiddenCombination";
|
|
1109
|
+
readonly member: "all";
|
|
1110
|
+
}>> : ContractTypeError<"contradictoryUsageConstraint", Readonly<{
|
|
1111
|
+
readonly command: Command;
|
|
1112
|
+
readonly constraint: "forbiddenCombination";
|
|
1113
|
+
readonly member: "all";
|
|
1114
|
+
readonly fields: ContradictoryUsageFactFields<Facts>;
|
|
1115
|
+
}>> : InvalidForbiddenCombinationFacts<Command, Facts, Fields, Input> : ContractTypeError<"unknownUsageConstraintField", Readonly<{
|
|
597
1116
|
readonly command: Command;
|
|
598
1117
|
readonly constraint: "forbiddenCombination";
|
|
599
|
-
readonly member: "
|
|
600
|
-
|
|
1118
|
+
readonly member: "all.field";
|
|
1119
|
+
readonly field: Exclude<UsageConstraintFactFields<Facts>, keyof Fields>;
|
|
1120
|
+
}>> : ContractTypeError<"invalidUsageConstraint", Readonly<{
|
|
601
1121
|
readonly command: Command;
|
|
602
1122
|
readonly constraint: "forbiddenCombination";
|
|
603
|
-
readonly member: "
|
|
604
|
-
readonly field: Exclude<UsageConstraintValueFields<Values>, keyof Fields>;
|
|
1123
|
+
readonly member: "all";
|
|
605
1124
|
}>> : ContractTypeError<"invalidEffectiveUsageConstraint", Readonly<{
|
|
606
1125
|
readonly command: Command;
|
|
607
1126
|
}>>;
|
|
608
1127
|
type InvalidCommandUsageConstraintIssues<Commands> = {
|
|
609
1128
|
[Command in keyof Commands & string]: Commands[Command] extends Readonly<{
|
|
610
1129
|
readonly kind: "command" | "rootCommand";
|
|
611
|
-
}> ? HierarchyUsageConstraints<Commands[Command]> extends never ? never : HierarchyUsageConstraints<Commands[Command]> extends readonly (infer Constraint)[] ? InvalidUsageConstraintForFields<Command, Constraint, HierarchyCommandFields<Commands[Command]>> extends never ? never : InvalidUsageConstraintForFields<Command, Constraint, HierarchyCommandFields<Commands[Command]>> : ContractTypeError<"invalidEffectiveUsageConstraint", Readonly<{
|
|
1130
|
+
}> ? HierarchyUsageConstraints<Commands[Command]> extends never ? never : HierarchyUsageConstraints<Commands[Command]> extends readonly (infer Constraint)[] ? InvalidUsageConstraintForFields<Command, Constraint, HierarchyCommandFields<Commands[Command]>, HierarchyCommandInputSchema<Commands[Command]>> extends never ? never : InvalidUsageConstraintForFields<Command, Constraint, HierarchyCommandFields<Commands[Command]>, HierarchyCommandInputSchema<Commands[Command]>> : ContractTypeError<"invalidEffectiveUsageConstraint", Readonly<{
|
|
612
1131
|
readonly command: Command;
|
|
613
1132
|
}>> : never;
|
|
614
1133
|
}[keyof Commands & string];
|
|
615
|
-
type
|
|
1134
|
+
type HierarchyCommandInputSchema<Node> = Node extends Readonly<{
|
|
1135
|
+
readonly input: infer InputSchema extends ContractSchema;
|
|
1136
|
+
}> ? ContractSchemaInput<InputSchema> : unknown;
|
|
1137
|
+
type RootIdentityContract<Root extends string> = string extends Root ? unknown : IsLowerCamelCase<Root> extends true ? unknown : ContractTypeError<"invalidCommandIdentity", Readonly<{
|
|
616
1138
|
readonly command: Root;
|
|
1139
|
+
readonly reason: "lowerCamelCase";
|
|
617
1140
|
}>>;
|
|
618
1141
|
type RootCliDefinitionBase<Root extends string> = RootIdentityContract<Root> & {
|
|
619
1142
|
readonly root: Root;
|
|
@@ -771,9 +1294,22 @@ export interface ExecutableCommandManifest extends Omit<RootCommandManifest, "ki
|
|
|
771
1294
|
readonly aliases: readonly string[];
|
|
772
1295
|
readonly helpSupplement?: readonly string[];
|
|
773
1296
|
}
|
|
774
|
-
export type UsageConstraintGrammar =
|
|
1297
|
+
export type UsageConstraintGrammar = CountUsageConstraintGrammar | WhenUsageConstraint | ForbiddenCombinationUsageConstraint;
|
|
1298
|
+
/** 已校验并补全默认端点的数量约束。 */
|
|
1299
|
+
export interface CountUsageConstraintGrammar {
|
|
1300
|
+
readonly kind: "count";
|
|
1301
|
+
readonly fields: readonly [string, ...string[]];
|
|
1302
|
+
readonly min: number;
|
|
1303
|
+
readonly max: number;
|
|
1304
|
+
}
|
|
1305
|
+
type CountHelpFact = Readonly<{
|
|
1306
|
+
readonly slot: "countExactly" | "countAtLeast" | "countAtMost" | "countBetween";
|
|
1307
|
+
readonly values: Readonly<Record<string, string>>;
|
|
1308
|
+
}>;
|
|
1309
|
+
/** 选择 count 事实实际使用的帮助模板及其占位符值。 */
|
|
1310
|
+
export declare function countHelpFactForConstraint(constraint: CountUsageConstraintGrammar): CountHelpFact;
|
|
775
1311
|
export interface CliManifest<Root extends string, RootKind extends CliRootKind = CliRootKind> {
|
|
776
|
-
readonly schemaVersion: "
|
|
1312
|
+
readonly schemaVersion: "4";
|
|
777
1313
|
readonly root: Root;
|
|
778
1314
|
readonly commands: RootKind extends "rootGroup" ? Readonly<Record<string, CommandGroupManifest | ExecutableCommandManifest>> : Readonly<Record<Root, RootCommandManifest>>;
|
|
779
1315
|
readonly controls: CliGrammar<Root, RootKind>["controls"];
|
|
@@ -835,7 +1371,7 @@ type HierarchyExecutableKeys<Commands> = {
|
|
|
835
1371
|
}> ? Command : never;
|
|
836
1372
|
}[keyof Commands];
|
|
837
1373
|
export interface HierarchyCliManifest<Root extends string, Commands> {
|
|
838
|
-
readonly schemaVersion: "
|
|
1374
|
+
readonly schemaVersion: "4";
|
|
839
1375
|
readonly root: Root;
|
|
840
1376
|
readonly commands: Readonly<{
|
|
841
1377
|
[Command in keyof Commands]: HierarchyManifestNode<Commands[Command]>;
|
|
@@ -849,7 +1385,7 @@ export interface HierarchyCliManifest<Root extends string, Commands> {
|
|
|
849
1385
|
[Command in HierarchyExecutableKeys<Commands>]: CommandWireManifest;
|
|
850
1386
|
}>;
|
|
851
1387
|
}
|
|
852
|
-
export interface CliContract<Root extends string = string, Dependencies = unknown, RawInput = Readonly<Record<string, unknown>>, Result extends OutcomeFact = OutcomeFact, RootKind extends CliRootKind = CliRootKind, Commands = never
|
|
1388
|
+
export interface CliContract<Root extends string = string, Dependencies = unknown, RawInput = Readonly<Record<string, unknown>>, Result extends OutcomeFact = OutcomeFact, RootKind extends CliRootKind = CliRootKind, Commands = never, UsageFacts = Readonly<Record<string, unknown>>> {
|
|
853
1389
|
readonly grammar: [Commands] extends [never] ? CliGrammar<Root, RootKind> : HierarchyCliGrammar<Root, Commands>;
|
|
854
1390
|
readonly manifest: [Commands] extends [never] ? CliManifest<Root, RootKind> : HierarchyCliManifest<Root, Commands>;
|
|
855
1391
|
readonly [cliContractType]: Readonly<{
|
|
@@ -858,8 +1394,14 @@ export interface CliContract<Root extends string = string, Dependencies = unknow
|
|
|
858
1394
|
readonly result: Result;
|
|
859
1395
|
readonly root: Root;
|
|
860
1396
|
readonly commands: [Commands] extends [never] ? Root : keyof Commands;
|
|
1397
|
+
readonly usageFacts: UsageFacts;
|
|
861
1398
|
}>;
|
|
862
1399
|
}
|
|
1400
|
+
export type CliContractUsageFacts<Contract> = Contract extends Readonly<{
|
|
1401
|
+
readonly [cliContractType]: Readonly<{
|
|
1402
|
+
readonly usageFacts: infer UsageFacts;
|
|
1403
|
+
}>;
|
|
1404
|
+
}> ? UsageFacts : never;
|
|
863
1405
|
export type CliContractDependencies<Contract> = Contract extends CliContract<infer _Root, infer Dependencies, unknown, OutcomeFact, CliRootKind, infer _Commands> ? Dependencies : never;
|
|
864
1406
|
export type CliContractRawInput<Contract> = Contract extends CliContract<infer _Root, unknown, infer RawInput, OutcomeFact, CliRootKind, infer _Commands> ? RawInput : never;
|
|
865
1407
|
export type CliContractResult<Contract> = Contract extends CliContract<infer _Root, unknown, unknown, infer Result, CliRootKind, infer _Commands> ? Result : never;
|
|
@@ -971,28 +1513,27 @@ type RootFallbackCliDefinition<Root extends string, _Dependencies, Fields extend
|
|
|
971
1513
|
readonly name: string;
|
|
972
1514
|
readonly description: string;
|
|
973
1515
|
readonly helpSupplement?: TextLines;
|
|
974
|
-
readonly usageConstraints?: readonly UsageConstraint[];
|
|
975
1516
|
}> & Readonly<{
|
|
976
1517
|
readonly input: InputSchema & RootFallbackRawFieldInputContract<Command, Fields, InputSchema>;
|
|
977
|
-
readonly failures: Failures & FailureVariantDefinitionsForSchemas<FailureSchemas, boolean> & FailureVariantNameContract<Failures> & FailureVariantTextContract<Command, Failures, TextEnabled>;
|
|
1518
|
+
readonly failures: Failures & FailureVariantDefinitionsForSchemas<FailureSchemas, boolean> & FailureVariantNameContract<Command, Failures> & FailureVariantTextContract<Command, Failures, TextEnabled>;
|
|
978
1519
|
}> & (Readonly<{
|
|
979
|
-
readonly fields: CheckedFieldDefinitions<Fields> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Fields>;
|
|
1520
|
+
readonly fields: CheckedFieldDefinitions<Fields, Command> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Command, Fields>;
|
|
980
1521
|
readonly success: Readonly<{
|
|
981
1522
|
readonly kind: "data";
|
|
982
|
-
readonly variants: Variants & DataVariantDefinitionsForSchemas<VariantSchemas, boolean> & DataVariantNameContract<Variants> & DataVariantTextContract<Command, Variants, TextEnabled>;
|
|
1523
|
+
readonly variants: Variants & DataVariantDefinitionsForSchemas<VariantSchemas, boolean> & DataVariantNameContract<Command, Variants> & DataVariantTextContract<Command, Variants, TextEnabled>;
|
|
983
1524
|
}>;
|
|
984
1525
|
}> | Readonly<{
|
|
985
|
-
readonly fields?: CheckedFieldDefinitions<Fields> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Fields>;
|
|
1526
|
+
readonly fields?: CheckedFieldDefinitions<Fields, Command> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Command, Fields>;
|
|
986
1527
|
readonly success: CompletionSuccessDefinition<Root, TextEnabled>;
|
|
987
1528
|
}> | Readonly<{
|
|
988
|
-
readonly fields?: CheckedFieldDefinitions<Fields> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Fields>;
|
|
1529
|
+
readonly fields?: CheckedFieldDefinitions<Fields, Command> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Command, Fields>;
|
|
989
1530
|
readonly success: (Readonly<{
|
|
990
1531
|
readonly kind: "stream";
|
|
991
|
-
readonly records: Records & StreamRecordDefinitionsForSchemas<RecordSchemas, boolean> & StreamRecordNameContract<Records>;
|
|
1532
|
+
readonly records: Records & StreamRecordDefinitionsForSchemas<RecordSchemas, boolean> & StreamRecordNameContract<Command, Records>;
|
|
992
1533
|
readonly text: CompletionTextPresenter;
|
|
993
1534
|
}> & StreamRecordTextContract<Command, Records, TextEnabled>) | (Readonly<{
|
|
994
1535
|
readonly kind: "stream";
|
|
995
|
-
readonly records: Records & StreamRecordDefinitionsForSchemas<RecordSchemas, boolean> & StreamRecordNameContract<Records>;
|
|
1536
|
+
readonly records: Records & StreamRecordDefinitionsForSchemas<RecordSchemas, boolean> & StreamRecordNameContract<Command, Records>;
|
|
996
1537
|
readonly text?: never;
|
|
997
1538
|
}> & ([TextEnabled] extends [true] ? ContractTypeError<"missingTextPresenter", Readonly<{
|
|
998
1539
|
readonly command: Command;
|
|
@@ -1032,56 +1573,23 @@ export interface DefineCli<Dependencies> {
|
|
|
1032
1573
|
readonly kind: "rootGroup";
|
|
1033
1574
|
}>> ? HierarchyCliDefinition<Root> & HierarchyContract<Commands, Output> : ValidationIntersection<HierarchyOutputValidation<Commands, Output>>)): Commands extends Readonly<Record<Root, {
|
|
1034
1575
|
readonly kind: "rootGroup";
|
|
1035
|
-
}>> ? CliContract<Root, Dependencies, HierarchyRawInput<Commands>, HierarchyResult<Commands>, "rootGroup", Commands
|
|
1576
|
+
}>> ? CliContract<Root, Dependencies, HierarchyRawInput<Commands>, HierarchyResult<Commands>, "rootGroup", Commands, HierarchyUsageConstraintFacts<Commands>> : CliContract<Root, Dependencies, RootCommandRawInput<Root, Commands>, RootCommandResult<Root, Commands>, "rootCommand", never, RootUsageConstraintFacts<Root, Commands>>;
|
|
1036
1577
|
}
|
|
1037
|
-
type HierarchyCommandInput<Definition> = Omit<Definition, "kind"> & Omit<HierarchyCommandFacts, typeof executableCommandType>;
|
|
1038
|
-
type HierarchyCompletionCommandDefinition<Command extends string, Dependencies, Failures extends FailureVariantDefinitions, Fields extends FieldDefinitions, InputSchema extends ContractSchema> = Omit<CompletionRootCommandDefinition<Command, Dependencies, Failures, Fields, InputSchema>, "fields" | "input" | "usageConstraints"> & Readonly<{
|
|
1039
|
-
readonly fields?: CheckedFieldDefinitions<Fields> & FieldIdentityContract<Fields>;
|
|
1040
|
-
readonly input: InputSchema;
|
|
1041
|
-
}>;
|
|
1042
|
-
type HierarchyDataCommandDefinition<Command extends string, Dependencies, Fields extends FieldDefinitions, InputSchema extends ContractSchema, Variants extends DataVariantDefinitions, Failures extends FailureVariantDefinitions> = Omit<DataRootCommandDefinition<Command, Dependencies, Fields, InputSchema, Variants, Failures>, "fields" | "input" | "usageConstraints"> & Readonly<{
|
|
1043
|
-
readonly fields: CheckedFieldDefinitions<Fields> & FieldIdentityContract<Fields>;
|
|
1044
|
-
readonly input: InputSchema;
|
|
1045
|
-
}>;
|
|
1046
|
-
type HierarchyStreamCommandDefinition<Command extends string, Dependencies, Fields extends FieldDefinitions, InputSchema extends ContractSchema, Records extends StreamRecordDefinitions, Failures extends FailureVariantDefinitions> = Omit<StreamRootCommandDefinition<Command, Dependencies, Fields, InputSchema, Records, Failures>, "fields" | "input" | "usageConstraints"> & Readonly<{
|
|
1047
|
-
readonly fields: CheckedFieldDefinitions<Fields> & FieldIdentityContract<Fields>;
|
|
1048
|
-
readonly input: InputSchema;
|
|
1049
|
-
}>;
|
|
1050
|
-
type UsageConstraintProperty<Constraints> = Constraints extends readonly unknown[] ? Readonly<{
|
|
1051
|
-
readonly usageConstraints: Constraints;
|
|
1052
|
-
}> : unknown;
|
|
1053
1578
|
type ActualFailureDefinitions<Failures> = Failures extends FailureVariantDefinitions ? Failures : never;
|
|
1054
|
-
type RootFallbackFieldsProperty<Fields extends FieldDefinitions, InputSchema extends ContractSchema> = Readonly<{
|
|
1055
|
-
readonly fields: CheckedFieldDefinitions<Fields> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Fields>;
|
|
1579
|
+
type RootFallbackFieldsProperty<Command extends string, Fields extends FieldDefinitions, InputSchema extends ContractSchema> = Readonly<{
|
|
1580
|
+
readonly fields: CheckedFieldDefinitions<Fields, Command> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Command, Fields>;
|
|
1056
1581
|
readonly success: Readonly<{
|
|
1057
1582
|
readonly kind: "data" | "stream";
|
|
1058
1583
|
}>;
|
|
1059
1584
|
}> | Readonly<{
|
|
1060
|
-
readonly fields?: CheckedFieldDefinitions<Fields> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Fields>;
|
|
1585
|
+
readonly fields?: CheckedFieldDefinitions<Fields, Command> & FieldDefinitionsForInput<ContractSchemaInput<InputSchema>> & FieldIdentityContract<Command, Fields>;
|
|
1061
1586
|
readonly success: Readonly<{
|
|
1062
1587
|
readonly kind: "completion";
|
|
1063
1588
|
}>;
|
|
1064
1589
|
}>;
|
|
1065
1590
|
/** 为具名叶命令生成可展开到根契约 `commands` 的定义。 */
|
|
1066
1591
|
export interface DefineCommand<Command extends string, Dependencies> {
|
|
1067
|
-
<const Definition extends object, const Parent extends string, const Fields extends FieldDefinitions, InputSchema extends ContractSchema, const VariantSchemas extends VariantSchemaMap, const Variants, const RecordSchemas extends VariantSchemaMap, const Records, const FailureSchemas extends VariantSchemaMap, const Failures, const Kind extends RootFallbackKind>(definition: Definition & ClosedCommandDefinition<Definition> & Omit<RootFallbackCliDefinition<Command, Dependencies, Fields, InputSchema, VariantSchemas, Variants, RecordSchemas, Records, FailureSchemas, Failures, boolean>["commands"][Command], "kind" | "fields"> & RootFallbackFieldsProperty<Fields, InputSchema> & RootFallbackHandlerDefinition<Command, Dependencies, InputSchema,
|
|
1068
|
-
<const Definition extends object, const Parent extends string, const Failures extends FailureVariantDefinitions, const Constraints extends readonly unknown[] | undefined = undefined>(definition: Definition & ClosedCommandDefinition<Definition> & HierarchyCommandInput<HierarchyCompletionCommandDefinition<Command, Dependencies, Failures, Readonly<Record<never, never>>, ContractSchema<EmptyCliInput>>> & Readonly<{
|
|
1069
|
-
readonly parent: Parent;
|
|
1070
|
-
readonly usageConstraints?: Constraints & readonly UsageConstraint[];
|
|
1071
|
-
}>): Readonly<Record<Command, Definition & Omit<HierarchyCompletionCommandDefinition<Command, Dependencies, Failures, Readonly<Record<never, never>>, ContractSchema<EmptyCliInput>>, "kind" | "success" | "failures"> & UsageConstraintProperty<Constraints> & HierarchyCommandFacts<Parent>>>;
|
|
1072
|
-
<const Definition extends object, const Fields extends FieldDefinitions, InputSchema extends ContractSchema, const Parent extends string, const Failures extends FailureVariantDefinitions, const Constraints extends readonly unknown[] | undefined = undefined>(definition: Definition & ClosedCommandDefinition<Definition> & HierarchyCommandInput<HierarchyCompletionCommandDefinition<Command, Dependencies, Failures, Fields, InputSchema>> & Readonly<{
|
|
1073
|
-
readonly fields: Fields;
|
|
1074
|
-
readonly parent: Parent;
|
|
1075
|
-
readonly usageConstraints?: Constraints & readonly UsageConstraint[];
|
|
1076
|
-
}>): Readonly<Record<Command, Definition & Omit<HierarchyCompletionCommandDefinition<Command, Dependencies, Failures, Fields, InputSchema>, "kind" | "success" | "failures"> & UsageConstraintProperty<Constraints> & HierarchyCommandFacts<Parent>>>;
|
|
1077
|
-
<const Definition extends object, const Fields extends FieldDefinitions, InputSchema extends ContractSchema, const Parent extends string, const Variants extends DataVariantDefinitions, const Failures extends FailureVariantDefinitions, const Constraints extends readonly unknown[] | undefined = undefined>(definition: Definition & ClosedCommandDefinition<Definition> & HierarchyCommandInput<HierarchyDataCommandDefinition<Command, Dependencies, Fields, InputSchema, Variants, Failures>> & Readonly<{
|
|
1078
|
-
readonly parent: Parent;
|
|
1079
|
-
readonly usageConstraints?: Constraints & readonly UsageConstraint[];
|
|
1080
|
-
}>): Readonly<Record<Command, Definition & Omit<HierarchyDataCommandDefinition<Command, Dependencies, Fields, InputSchema, Variants, Failures>, "kind" | "success" | "failures"> & UsageConstraintProperty<Constraints> & HierarchyCommandFacts<Parent>>>;
|
|
1081
|
-
<const Definition extends object, const Fields extends FieldDefinitions, InputSchema extends ContractSchema, const Parent extends string, const Records extends StreamRecordDefinitions, const Failures extends FailureVariantDefinitions, const Constraints extends readonly unknown[] | undefined = undefined>(definition: Definition & ClosedCommandDefinition<Definition> & HierarchyCommandInput<HierarchyStreamCommandDefinition<Command, Dependencies, Fields, InputSchema, Records, Failures>> & Readonly<{
|
|
1082
|
-
readonly parent: Parent;
|
|
1083
|
-
readonly usageConstraints?: Constraints & readonly UsageConstraint[];
|
|
1084
|
-
}>): Readonly<Record<Command, Definition & Omit<HierarchyStreamCommandDefinition<Command, Dependencies, Fields, InputSchema, Records, Failures>, "kind" | "success" | "failures"> & UsageConstraintProperty<Constraints> & HierarchyCommandFacts<Parent>>>;
|
|
1592
|
+
<const Definition extends object, const Parent extends string, const Fields extends FieldDefinitions, InputSchema extends ContractSchema, const VariantSchemas extends VariantSchemaMap, const Variants, const RecordSchemas extends VariantSchemaMap, const Records, const FailureSchemas extends VariantSchemaMap, const Failures, const Kind extends RootFallbackKind>(definition: Definition & ClosedCommandDefinition<Definition, Command> & Omit<RootFallbackCliDefinition<Command, Dependencies, Fields, InputSchema, VariantSchemas, Variants, RecordSchemas, Records, FailureSchemas, Failures, boolean>["commands"][Command], "kind" | "fields"> & RootFallbackFieldsProperty<Command, Fields, InputSchema> & RootFallbackHandlerDefinition<Command, Dependencies, InputSchema, Variants extends DataVariantDefinitions ? Variants : never, Records extends StreamRecordDefinitions ? Records : never, ActualFailureDefinitions<Failures>, Kind>["commands"][Command] & HierarchyCommandFactsDefinition<Parent>): CommandCombination<Command, Definition, Parent>;
|
|
1085
1593
|
}
|
|
1086
1594
|
interface RuntimeCompiledCli {
|
|
1087
1595
|
readonly contract: CliContract;
|
|
@@ -1127,16 +1635,11 @@ export declare function isCompiledExecutable(command: RuntimeCompiledCommand): c
|
|
|
1127
1635
|
* 显式装配全树帮助。`headings` 是可选段落标题;`wording` 按实际帮助事实
|
|
1128
1636
|
* 提供必要模板,由 defineCli 检查完整性;核心不生成默认自然语言。
|
|
1129
1637
|
*/
|
|
1130
|
-
export declare function helpCapability(definition?:
|
|
1131
|
-
export declare function helpCapability<const Definition extends HelpCapabilityDefinition>(definition: Definition & RejectUnknownProperties<Definition, (typeof definitionPropertyKeys.capability.help)[number]> & (Definition extends Readonly<{
|
|
1638
|
+
export declare function helpCapability<const Definition extends HelpCapabilityDefinitionForTypeCheck = HelpCapabilityDefinition>(definition?: Definition & RejectUnknownProperties<Definition, (typeof definitionPropertyKeys.capability.help)[number]> & (Definition extends Readonly<{
|
|
1132
1639
|
readonly headings: infer Headings;
|
|
1133
1640
|
}> ? Readonly<{
|
|
1134
1641
|
readonly headings: RejectUnknownProperties<Headings, keyof HelpHeadings>;
|
|
1135
|
-
}> : unknown) &
|
|
1136
|
-
readonly wording: infer Wording;
|
|
1137
|
-
}> ? Readonly<{
|
|
1138
|
-
readonly wording: RejectUnknownProperties<Wording, keyof HelpFactWording>;
|
|
1139
|
-
}> : unknown)): HelpCapability;
|
|
1642
|
+
}> : unknown) & HelpCapabilityTemplateContract<Definition>): HelpCapability;
|
|
1140
1643
|
/**
|
|
1141
1644
|
* 在根契约显式装配版本提前请求,并自动覆盖整棵命令树。`value` 与可选
|
|
1142
1645
|
* `description` 均由消费者拥有;核心只注册固定 spelling、投影帮助并写出 value,
|
|
@@ -1152,8 +1655,10 @@ export declare function versionCapability<const Definition extends VersionCapabi
|
|
|
1152
1655
|
export declare function outputCapability<const Definition extends OutputCapabilityDefinition>(definition: Definition & RejectUnknownProperties<Definition, (typeof definitionPropertyKeys.capability.output)[number]>): OutputCapability<OutputFormatsFor<Definition>>;
|
|
1153
1656
|
/**
|
|
1154
1657
|
* 定义一个闭合 CLI 契约。根级 help 与 output 能力在此处一次装配,并据此约束根命令的结果投影;
|
|
1658
|
+
* 最终根装配会逐个检查整棵命令树的 completion、data/failure variant、stream record 与 stream success
|
|
1659
|
+
* 是否满足 text 能力要求的同位 presenter;structured-only 禁止 presenter,`define.command()` 组合也在此检查。
|
|
1155
1660
|
* 动态声明仍会在定义期报告 `ContractDefinitionError`,不能以它替代静态可判定声明的类型检查。
|
|
1156
|
-
* @see {@link https://github.com/YKDZ/cli-contract/tree/v0.
|
|
1661
|
+
* @see {@link https://github.com/YKDZ/cli-contract/tree/v0.3.0/packages/example | 端到端示例}
|
|
1157
1662
|
*/
|
|
1158
1663
|
export declare function defineCli<Dependencies = undefined>(): DefineCli<Dependencies>;
|
|
1159
1664
|
export declare function getCompiledCli(contract: CliContract): RuntimeCompiledCli;
|