@ykdz/template 0.0.42 → 0.1.0-experimental.1
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/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/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 +57 -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/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/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/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/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/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 -64
- 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 +7 -25
- package/node_modules/@ykdz/template-core/dist/renderer.js +14 -252
- 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 -20
- 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/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/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 -34
- 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 -3567
- 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 -193
- 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 -117
- 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 -253
- 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 -155
- 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 -541
- 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 -113
- 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 -204
- package/node_modules/@ykdz/template-builtin-presets/package.json +0 -107
- 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 -82
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-deployment.yml +0 -42
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-diagnostics.yml +0 -80
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check.yml +0 -40
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.pnpmfile.mjs +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/pnpm-workspace.dynamic.txt +0 -24
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/pnpm-workspace.yaml +0 -35
- 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/scripts/node-test-count-reporter.ts +0 -31
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/run-rust-tests.ts +0 -100
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/run-turbo-boundaries.ts +0 -74
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/task-gates.ts +0 -589
- 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-projections/database-preparation.json +0 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-projections/deployment.json +0 -13
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-projections/rust-toolchain.json +0 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-projections/vue-hono-joint-e2e.json +0 -13
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo.json +0 -20
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/typescript-config/turbo.json +0 -33
- 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/.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/tsconfig.scripts.json +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/turbo.json +0 -37
- 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/components/CounterButton.vue +0 -18
- 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/counter.browser.test.ts +0 -16
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/test/counter.node.test.ts +0 -15
- 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/shared/vue/vitest.config.ts +0 -50
- 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 -110
- 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 -122
- 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 -9
- 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.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.test.ts +0 -11
- 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 -146
- 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 -64
- 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/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 -47
- 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/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 -46
- 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 -53
- 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/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/counter.browser.test.ts +0 -14
- 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 -15
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/turbo.json +0 -69
- 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 -35
- 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/test/e2e/app.spec.ts +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/turbo.json +0 -71
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/vite.config.ts +0 -7
- 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 -16
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/turbo.json +0 -54
- 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 -51
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/turbo.json +0 -65
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/vite.config.ts +0 -27
- 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 -76
- 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 -53
- package/node_modules/@ykdz/template-core/dist/module-graph.js +0 -167
- package/node_modules/@ykdz/template-core/dist/pnpm-workspace.yaml +0 -75
- package/node_modules/@ykdz/template-core/dist/project-github.d.ts +0 -25
- package/node_modules/@ykdz/template-core/dist/project-github.js +0 -88
- 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 -839
- 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/vue-hono-app/api → reference-hono-api/native}/test/app.test.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-cli/src → reference-ts-cli/native/src/publication}/cli-command-identity.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/ts-lib → reference-ts-lib/native}/test/greet.test.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 → reference-vike-db/native}/test/todos.test.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/shared/vue → reference-vike-web/native}/TESTING.md +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}/playwright.config.ts +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/vue-app → reference-vue-app/native}/src/App.vue +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/AGENTS.md.template → template-workspace/assets/agent-instructions.md} +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}/gitignore +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
package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/artifact.ts
DELETED
|
@@ -1,1340 +0,0 @@
|
|
|
1
|
-
import { spawn } from "node:child_process";
|
|
2
|
-
import { createHash } from "node:crypto";
|
|
3
|
-
import {
|
|
4
|
-
lstat,
|
|
5
|
-
mkdtemp,
|
|
6
|
-
readFile,
|
|
7
|
-
readdir,
|
|
8
|
-
realpath,
|
|
9
|
-
rename,
|
|
10
|
-
rm,
|
|
11
|
-
stat,
|
|
12
|
-
writeFile,
|
|
13
|
-
} from "node:fs/promises";
|
|
14
|
-
import path from "node:path";
|
|
15
|
-
import { pathToFileURL } from "node:url";
|
|
16
|
-
|
|
17
|
-
import { validRange } from "semver";
|
|
18
|
-
import { list } from "tar";
|
|
19
|
-
|
|
20
|
-
import { hasLookupEvidence, hasSchemaEvidence } from "./handoff.ts";
|
|
21
|
-
import {
|
|
22
|
-
inspectNpmPublicationReadiness,
|
|
23
|
-
type NpmPublicationReadiness,
|
|
24
|
-
} from "./readiness.ts";
|
|
25
|
-
|
|
26
|
-
function hasUsageFailure(source: string): boolean {
|
|
27
|
-
try {
|
|
28
|
-
const value: unknown = JSON.parse(source);
|
|
29
|
-
return (
|
|
30
|
-
isObject(value) &&
|
|
31
|
-
value.schemaVersion === "1" &&
|
|
32
|
-
value.kind === "usageFailure" &&
|
|
33
|
-
Array.isArray(value.issues) &&
|
|
34
|
-
value.issues.length > 0
|
|
35
|
-
);
|
|
36
|
-
} catch {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function hasNotFoundFailure(source: string): boolean {
|
|
42
|
-
try {
|
|
43
|
-
const value: unknown = JSON.parse(source);
|
|
44
|
-
return (
|
|
45
|
-
isObject(value) &&
|
|
46
|
-
value.schemaVersion === "1" &&
|
|
47
|
-
value.command === "lookup" &&
|
|
48
|
-
value.kind === "failure" &&
|
|
49
|
-
value.variant === "notFound" &&
|
|
50
|
-
isObject(value.data) &&
|
|
51
|
-
value.data.name === "missing"
|
|
52
|
-
);
|
|
53
|
-
} catch {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
type JsonObject = Record<string, unknown>;
|
|
59
|
-
|
|
60
|
-
export type PublicationArtifactFailureCode =
|
|
61
|
-
| "artifact-output-invalid"
|
|
62
|
-
| "artifact-temporary-output-failed"
|
|
63
|
-
| "artifact-pack-failed"
|
|
64
|
-
| "artifact-pack-output-invalid"
|
|
65
|
-
| "artifact-archive-unsafe"
|
|
66
|
-
| "artifact-manifest-invalid"
|
|
67
|
-
| "artifact-manifest-contract"
|
|
68
|
-
| "artifact-files-contract"
|
|
69
|
-
| "artifact-bin-contract"
|
|
70
|
-
| "consumer-install-failed"
|
|
71
|
-
| "consumer-smoke-failed"
|
|
72
|
-
| "artifact-receipt-failed"
|
|
73
|
-
| "artifact-cleanup-failed";
|
|
74
|
-
|
|
75
|
-
export type PublicationArtifactFailure = {
|
|
76
|
-
readonly code: PublicationArtifactFailureCode;
|
|
77
|
-
readonly observed: string;
|
|
78
|
-
readonly expected: string;
|
|
79
|
-
readonly nextAction: string;
|
|
80
|
-
readonly command?: {
|
|
81
|
-
readonly executable: string;
|
|
82
|
-
readonly args: readonly string[];
|
|
83
|
-
readonly exitCode: number;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export type VerifiedPublicationArtifactReceipt = {
|
|
88
|
-
readonly schemaVersion: 1;
|
|
89
|
-
readonly artifact: {
|
|
90
|
-
readonly file: string;
|
|
91
|
-
readonly checksumFile: "SHA512SUMS";
|
|
92
|
-
readonly size: number;
|
|
93
|
-
readonly integrity: string;
|
|
94
|
-
};
|
|
95
|
-
readonly publication: {
|
|
96
|
-
readonly packageName: string;
|
|
97
|
-
readonly version: string;
|
|
98
|
-
readonly commandName: string;
|
|
99
|
-
readonly repository: string;
|
|
100
|
-
readonly releaseDate: string;
|
|
101
|
-
readonly releaseNotes: string;
|
|
102
|
-
};
|
|
103
|
-
readonly packedManifest: Readonly<JsonObject>;
|
|
104
|
-
readonly files: readonly {
|
|
105
|
-
readonly path: string;
|
|
106
|
-
readonly mode: number;
|
|
107
|
-
readonly size: number;
|
|
108
|
-
}[];
|
|
109
|
-
readonly bin: {
|
|
110
|
-
readonly path: "package/dist/cli.js";
|
|
111
|
-
readonly shebang: "#!/usr/bin/env node";
|
|
112
|
-
readonly mode: number;
|
|
113
|
-
readonly posixExecutableChecked: boolean;
|
|
114
|
-
};
|
|
115
|
-
readonly smokes: readonly [
|
|
116
|
-
{
|
|
117
|
-
readonly name: "runtime-import";
|
|
118
|
-
readonly args: readonly [];
|
|
119
|
-
readonly stdout: "";
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
readonly name: "help";
|
|
123
|
-
readonly args: readonly ["--help"];
|
|
124
|
-
readonly stdout: string;
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
readonly name: "version";
|
|
128
|
-
readonly args: readonly ["--version"];
|
|
129
|
-
readonly stdout: string;
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
readonly name: "lookup";
|
|
133
|
-
readonly args: readonly ["lookup", "ada"];
|
|
134
|
-
readonly stdout: string;
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
readonly name: "schema";
|
|
138
|
-
readonly args: readonly ["schema"];
|
|
139
|
-
readonly stdout: string;
|
|
140
|
-
},
|
|
141
|
-
];
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export type VerifiedPublicationArtifactResult =
|
|
145
|
-
| {
|
|
146
|
-
readonly kind: "blocked";
|
|
147
|
-
readonly readiness: Extract<
|
|
148
|
-
NpmPublicationReadiness,
|
|
149
|
-
{ readonly kind: "blocked" }
|
|
150
|
-
>;
|
|
151
|
-
}
|
|
152
|
-
| { readonly kind: "failed"; readonly failure: PublicationArtifactFailure }
|
|
153
|
-
| {
|
|
154
|
-
readonly kind: "verified";
|
|
155
|
-
readonly artifactPath: string;
|
|
156
|
-
readonly checksumPath: string;
|
|
157
|
-
readonly receiptPath: string;
|
|
158
|
-
readonly receipt: VerifiedPublicationArtifactReceipt;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
type CommandResult = {
|
|
162
|
-
readonly exitCode: number;
|
|
163
|
-
readonly stdout: string;
|
|
164
|
-
readonly stderr: string;
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
type ArchiveFile = {
|
|
168
|
-
readonly path: string;
|
|
169
|
-
readonly mode: number;
|
|
170
|
-
readonly size: number;
|
|
171
|
-
readonly body?: Buffer;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
type ArchiveInspection = {
|
|
175
|
-
readonly files: readonly ArchiveFile[];
|
|
176
|
-
readonly manifest: JsonObject;
|
|
177
|
-
readonly cliSource: Buffer;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
type ValidatedArtifactPaths = {
|
|
181
|
-
readonly repositoryRoot: string;
|
|
182
|
-
readonly packageRoot: string;
|
|
183
|
-
readonly outputDirectory: string;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
type CommandPlan = {
|
|
187
|
-
readonly executable: string;
|
|
188
|
-
readonly args: readonly string[];
|
|
189
|
-
readonly environment: NodeJS.ProcessEnv;
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
const expectedFiles = [
|
|
193
|
-
"package/CHANGELOG.md",
|
|
194
|
-
"package/LICENSE",
|
|
195
|
-
"package/README.md",
|
|
196
|
-
"package/dist/cli-command-identity.js",
|
|
197
|
-
"package/dist/cli.js",
|
|
198
|
-
"package/dist/main.js",
|
|
199
|
-
"package/dist/standard-schema.js",
|
|
200
|
-
"package/package.json",
|
|
201
|
-
] as const;
|
|
202
|
-
|
|
203
|
-
const allowedPackedManifestFields = new Set([
|
|
204
|
-
"bin",
|
|
205
|
-
"bugs",
|
|
206
|
-
"dependencies",
|
|
207
|
-
"description",
|
|
208
|
-
"engines",
|
|
209
|
-
"files",
|
|
210
|
-
"homepage",
|
|
211
|
-
"license",
|
|
212
|
-
"name",
|
|
213
|
-
"publishConfig",
|
|
214
|
-
"repository",
|
|
215
|
-
"type",
|
|
216
|
-
"version",
|
|
217
|
-
]);
|
|
218
|
-
|
|
219
|
-
const inheritedChildEnvironmentKeys = [
|
|
220
|
-
"ComSpec",
|
|
221
|
-
"HTTP_PROXY",
|
|
222
|
-
"HTTPS_PROXY",
|
|
223
|
-
"LANG",
|
|
224
|
-
"LC_ALL",
|
|
225
|
-
"LC_CTYPE",
|
|
226
|
-
"NO_PROXY",
|
|
227
|
-
"PATH",
|
|
228
|
-
"PATHEXT",
|
|
229
|
-
"SSL_CERT_DIR",
|
|
230
|
-
"SSL_CERT_FILE",
|
|
231
|
-
"SystemRoot",
|
|
232
|
-
"TEMP",
|
|
233
|
-
"TMP",
|
|
234
|
-
"TMPDIR",
|
|
235
|
-
"http_proxy",
|
|
236
|
-
"https_proxy",
|
|
237
|
-
"no_proxy",
|
|
238
|
-
] as const;
|
|
239
|
-
|
|
240
|
-
const installedBinEnvironmentKey = "TEMPLATE_VERIFIED_PUBLICATION_BIN";
|
|
241
|
-
|
|
242
|
-
function isObject(value: unknown): value is JsonObject {
|
|
243
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
function oneLine(value: unknown): string {
|
|
247
|
-
return String(value)
|
|
248
|
-
.replaceAll(/\s*\r?\n\s*/gu, " ")
|
|
249
|
-
.slice(0, 1_000);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
function failure(
|
|
253
|
-
code: PublicationArtifactFailureCode,
|
|
254
|
-
observed: unknown,
|
|
255
|
-
expected: string,
|
|
256
|
-
nextAction: string,
|
|
257
|
-
command?: PublicationArtifactFailure["command"],
|
|
258
|
-
): PublicationArtifactFailure {
|
|
259
|
-
return {
|
|
260
|
-
code,
|
|
261
|
-
observed: oneLine(observed),
|
|
262
|
-
expected,
|
|
263
|
-
nextAction,
|
|
264
|
-
...(command === undefined ? {} : { command }),
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
function commandFailure(
|
|
269
|
-
code:
|
|
270
|
-
| "artifact-pack-failed"
|
|
271
|
-
| "consumer-install-failed"
|
|
272
|
-
| "consumer-smoke-failed",
|
|
273
|
-
executable: string,
|
|
274
|
-
args: readonly string[],
|
|
275
|
-
result: CommandResult,
|
|
276
|
-
expected: string,
|
|
277
|
-
nextAction: string,
|
|
278
|
-
): PublicationArtifactFailure {
|
|
279
|
-
return failure(
|
|
280
|
-
code,
|
|
281
|
-
result.stderr || result.stdout || `exit ${result.exitCode}`,
|
|
282
|
-
expected,
|
|
283
|
-
nextAction,
|
|
284
|
-
{ executable, args, exitCode: result.exitCode },
|
|
285
|
-
);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
function runCommand(options: {
|
|
289
|
-
readonly executable: string;
|
|
290
|
-
readonly args: readonly string[];
|
|
291
|
-
readonly cwd: string;
|
|
292
|
-
readonly env?: NodeJS.ProcessEnv;
|
|
293
|
-
}): Promise<CommandResult> {
|
|
294
|
-
return new Promise((resolve) => {
|
|
295
|
-
const child = spawn(options.executable, [...options.args], {
|
|
296
|
-
cwd: options.cwd,
|
|
297
|
-
env: options.env ?? process.env,
|
|
298
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
299
|
-
});
|
|
300
|
-
let stdout = "";
|
|
301
|
-
let stderr = "";
|
|
302
|
-
child.stdout.setEncoding("utf8");
|
|
303
|
-
child.stderr.setEncoding("utf8");
|
|
304
|
-
child.stdout.on("data", (chunk: string) => {
|
|
305
|
-
stdout += chunk;
|
|
306
|
-
});
|
|
307
|
-
child.stderr.on("data", (chunk: string) => {
|
|
308
|
-
stderr += chunk;
|
|
309
|
-
});
|
|
310
|
-
child.once("error", (error) => {
|
|
311
|
-
resolve({ exitCode: 1, stdout, stderr: `${stderr}\n${error.message}` });
|
|
312
|
-
});
|
|
313
|
-
child.once("close", (exitCode) => {
|
|
314
|
-
resolve({ exitCode: exitCode ?? 1, stdout, stderr });
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
function pathContains(parent: string, child: string): boolean {
|
|
320
|
-
const relative = path.relative(parent, child);
|
|
321
|
-
return (
|
|
322
|
-
relative === "" ||
|
|
323
|
-
(!relative.startsWith("..") && !path.isAbsolute(relative))
|
|
324
|
-
);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
async function validateOutputDirectory(options: {
|
|
328
|
-
readonly repositoryRoot: string;
|
|
329
|
-
readonly packageRoot: string;
|
|
330
|
-
readonly outputDirectory: string;
|
|
331
|
-
}): Promise<ValidatedArtifactPaths | PublicationArtifactFailure> {
|
|
332
|
-
try {
|
|
333
|
-
const [repositoryRoot, packageRoot, outputDirectory] = await Promise.all([
|
|
334
|
-
realpath(options.repositoryRoot),
|
|
335
|
-
realpath(options.packageRoot),
|
|
336
|
-
realpath(options.outputDirectory),
|
|
337
|
-
]);
|
|
338
|
-
const [repository, packageDirectory, output] = await Promise.all([
|
|
339
|
-
stat(repositoryRoot),
|
|
340
|
-
stat(packageRoot),
|
|
341
|
-
stat(outputDirectory),
|
|
342
|
-
]);
|
|
343
|
-
if (!repository.isDirectory())
|
|
344
|
-
throw new Error("repository path is not a directory");
|
|
345
|
-
if (!packageDirectory.isDirectory())
|
|
346
|
-
throw new Error("package path is not a directory");
|
|
347
|
-
if (!output.isDirectory())
|
|
348
|
-
throw new Error("output path is not a directory");
|
|
349
|
-
if (!pathContains(repositoryRoot, packageRoot)) {
|
|
350
|
-
throw new Error("package directory is outside the repository");
|
|
351
|
-
}
|
|
352
|
-
if ((await readdir(outputDirectory)).length !== 0) {
|
|
353
|
-
throw new Error("output directory is not empty");
|
|
354
|
-
}
|
|
355
|
-
if (
|
|
356
|
-
pathContains(repositoryRoot, outputDirectory) ||
|
|
357
|
-
pathContains(outputDirectory, repositoryRoot) ||
|
|
358
|
-
pathContains(packageRoot, outputDirectory) ||
|
|
359
|
-
pathContains(outputDirectory, packageRoot)
|
|
360
|
-
) {
|
|
361
|
-
throw new Error("output directory overlaps the repository or package");
|
|
362
|
-
}
|
|
363
|
-
return { repositoryRoot, packageRoot, outputDirectory };
|
|
364
|
-
} catch (error) {
|
|
365
|
-
return failure(
|
|
366
|
-
"artifact-output-invalid",
|
|
367
|
-
error instanceof Error ? error.message : error,
|
|
368
|
-
"An existing empty output directory outside the repository and package",
|
|
369
|
-
"Create a new isolated output directory and retry.",
|
|
370
|
-
);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
function validArchivePath(entryPath: string): boolean {
|
|
375
|
-
if (
|
|
376
|
-
entryPath.includes("\0") ||
|
|
377
|
-
entryPath.includes("\\") ||
|
|
378
|
-
entryPath.startsWith("/") ||
|
|
379
|
-
!entryPath.startsWith("package/")
|
|
380
|
-
) {
|
|
381
|
-
return false;
|
|
382
|
-
}
|
|
383
|
-
const canonicalPath = entryPath.endsWith("/")
|
|
384
|
-
? entryPath.slice(0, -1)
|
|
385
|
-
: entryPath;
|
|
386
|
-
const segments = canonicalPath.split("/");
|
|
387
|
-
return !segments.some(
|
|
388
|
-
(segment) => segment === "" || segment === "." || segment === "..",
|
|
389
|
-
);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
function archivePathIdentity(entryPath: string): string {
|
|
393
|
-
return entryPath.endsWith("/") ? entryPath.slice(0, -1) : entryPath;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
/** @internal Pure archive seam used by the verifier's focused negative tests. */
|
|
397
|
-
export async function inspectPublicationArchive(
|
|
398
|
-
archivePath: string,
|
|
399
|
-
): Promise<ArchiveInspection | PublicationArtifactFailure> {
|
|
400
|
-
const files: ArchiveFile[] = [];
|
|
401
|
-
const paths = new Set<string>();
|
|
402
|
-
let unsafe: string | undefined;
|
|
403
|
-
const bodyReads: Promise<void>[] = [];
|
|
404
|
-
try {
|
|
405
|
-
await list({
|
|
406
|
-
file: archivePath,
|
|
407
|
-
onentry(entry) {
|
|
408
|
-
const entryPath = entry.path;
|
|
409
|
-
const pathIdentity = archivePathIdentity(entryPath);
|
|
410
|
-
if (!validArchivePath(entryPath) || paths.has(pathIdentity)) {
|
|
411
|
-
unsafe ??= `unsafe or duplicate path ${JSON.stringify(entryPath)}`;
|
|
412
|
-
entry.resume();
|
|
413
|
-
return;
|
|
414
|
-
}
|
|
415
|
-
paths.add(pathIdentity);
|
|
416
|
-
const entryType = entry.type;
|
|
417
|
-
if (entryType === "Directory") {
|
|
418
|
-
const directory = archivePathIdentity(entryPath);
|
|
419
|
-
if (
|
|
420
|
-
!expectedFiles.some((filePath) =>
|
|
421
|
-
filePath.startsWith(`${directory}/`),
|
|
422
|
-
)
|
|
423
|
-
) {
|
|
424
|
-
unsafe ??= `unexpected directory ${JSON.stringify(entryPath)}`;
|
|
425
|
-
}
|
|
426
|
-
entry.resume();
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
if (entryType !== "File") {
|
|
430
|
-
unsafe ??= `unsupported ${entryType} entry ${JSON.stringify(entryPath)}`;
|
|
431
|
-
entry.resume();
|
|
432
|
-
return;
|
|
433
|
-
}
|
|
434
|
-
const chunks: Buffer[] = [];
|
|
435
|
-
const capture =
|
|
436
|
-
entryPath === "package/package.json" ||
|
|
437
|
-
entryPath === "package/dist/cli.js";
|
|
438
|
-
entry.on("data", (chunk: Buffer | string) => {
|
|
439
|
-
if (capture)
|
|
440
|
-
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
|
441
|
-
});
|
|
442
|
-
bodyReads.push(
|
|
443
|
-
new Promise((resolve, reject) => {
|
|
444
|
-
entry.once("end", () => {
|
|
445
|
-
files.push({
|
|
446
|
-
path: entryPath,
|
|
447
|
-
mode: entry.mode ?? 0,
|
|
448
|
-
size: entry.size,
|
|
449
|
-
...(capture ? { body: Buffer.concat(chunks) } : {}),
|
|
450
|
-
});
|
|
451
|
-
resolve();
|
|
452
|
-
});
|
|
453
|
-
entry.once("error", reject);
|
|
454
|
-
}),
|
|
455
|
-
);
|
|
456
|
-
},
|
|
457
|
-
});
|
|
458
|
-
await Promise.all(bodyReads);
|
|
459
|
-
} catch (error) {
|
|
460
|
-
return failure(
|
|
461
|
-
"artifact-archive-unsafe",
|
|
462
|
-
error instanceof Error ? error.message : error,
|
|
463
|
-
"A readable gzip tar archive containing only safe package entries",
|
|
464
|
-
"Correct the package contents and run artifact verification again.",
|
|
465
|
-
);
|
|
466
|
-
}
|
|
467
|
-
if (unsafe !== undefined) {
|
|
468
|
-
return failure(
|
|
469
|
-
"artifact-archive-unsafe",
|
|
470
|
-
unsafe,
|
|
471
|
-
"Canonical package/ paths with only regular files and ancestor directories",
|
|
472
|
-
"Remove unsafe archive entries and retry.",
|
|
473
|
-
);
|
|
474
|
-
}
|
|
475
|
-
const sortedFiles = files.toSorted((left, right) =>
|
|
476
|
-
left.path < right.path ? -1 : left.path > right.path ? 1 : 0,
|
|
477
|
-
);
|
|
478
|
-
const actualPaths = sortedFiles.map((item) => item.path);
|
|
479
|
-
if (JSON.stringify(actualPaths) !== JSON.stringify(expectedFiles)) {
|
|
480
|
-
return failure(
|
|
481
|
-
"artifact-files-contract",
|
|
482
|
-
JSON.stringify(actualPaths),
|
|
483
|
-
`Exactly ${JSON.stringify(expectedFiles)}`,
|
|
484
|
-
"Correct the package files allow-list and compiled runtime outputs.",
|
|
485
|
-
);
|
|
486
|
-
}
|
|
487
|
-
const manifestSource = sortedFiles.find(
|
|
488
|
-
(item) => item.path === "package/package.json",
|
|
489
|
-
)?.body;
|
|
490
|
-
if (manifestSource === undefined) {
|
|
491
|
-
return failure(
|
|
492
|
-
"artifact-manifest-invalid",
|
|
493
|
-
"package/package.json is missing or unreadable",
|
|
494
|
-
"One UTF-8 JSON object at package/package.json",
|
|
495
|
-
"Restore the package manifest and retry.",
|
|
496
|
-
);
|
|
497
|
-
}
|
|
498
|
-
let manifest: unknown;
|
|
499
|
-
try {
|
|
500
|
-
manifest = JSON.parse(
|
|
501
|
-
new TextDecoder("utf-8", { fatal: true }).decode(manifestSource),
|
|
502
|
-
);
|
|
503
|
-
} catch (error) {
|
|
504
|
-
return failure(
|
|
505
|
-
"artifact-manifest-invalid",
|
|
506
|
-
error instanceof Error ? error.message : error,
|
|
507
|
-
"A valid UTF-8 JSON object at package/package.json",
|
|
508
|
-
"Correct the packed package manifest and retry.",
|
|
509
|
-
);
|
|
510
|
-
}
|
|
511
|
-
if (!isObject(manifest)) {
|
|
512
|
-
return failure(
|
|
513
|
-
"artifact-manifest-invalid",
|
|
514
|
-
JSON.stringify(manifest),
|
|
515
|
-
"A JSON object at package/package.json",
|
|
516
|
-
"Correct the packed package manifest and retry.",
|
|
517
|
-
);
|
|
518
|
-
}
|
|
519
|
-
const cliSource = sortedFiles.find(
|
|
520
|
-
(item) => item.path === "package/dist/cli.js",
|
|
521
|
-
)?.body;
|
|
522
|
-
if (cliSource === undefined) {
|
|
523
|
-
return failure(
|
|
524
|
-
"artifact-bin-contract",
|
|
525
|
-
"package/dist/cli.js is missing",
|
|
526
|
-
"A compiled JavaScript bin in the archive",
|
|
527
|
-
"Restore the CLI build output and retry.",
|
|
528
|
-
);
|
|
529
|
-
}
|
|
530
|
-
return { files: sortedFiles, manifest, cliSource };
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
function canonicalJson(value: unknown): unknown {
|
|
534
|
-
if (Array.isArray(value)) return value.map(canonicalJson);
|
|
535
|
-
if (!isObject(value)) return value;
|
|
536
|
-
return Object.fromEntries(
|
|
537
|
-
Object.entries(value)
|
|
538
|
-
.toSorted(([left], [right]) => (left < right ? -1 : left > right ? 1 : 0))
|
|
539
|
-
.map(([key, item]) => [key, canonicalJson(item)]),
|
|
540
|
-
);
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
function sameJson(left: unknown, right: unknown): boolean {
|
|
544
|
-
return (
|
|
545
|
-
JSON.stringify(canonicalJson(left)) === JSON.stringify(canonicalJson(right))
|
|
546
|
-
);
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
/** @internal Pure packed-manifest seam used by focused contract tests. */
|
|
550
|
-
export function inspectPackedManifestContract(options: {
|
|
551
|
-
readonly manifest: JsonObject;
|
|
552
|
-
readonly sourceManifest: JsonObject;
|
|
553
|
-
readonly readiness: Extract<
|
|
554
|
-
NpmPublicationReadiness,
|
|
555
|
-
{ readonly kind: "ready" }
|
|
556
|
-
>;
|
|
557
|
-
}): PublicationArtifactFailure | undefined {
|
|
558
|
-
const { manifest, sourceManifest, readiness } = options;
|
|
559
|
-
const bin = manifest.bin;
|
|
560
|
-
const dependencies = manifest.dependencies;
|
|
561
|
-
const files = manifest.files;
|
|
562
|
-
const publishConfig = manifest.publishConfig;
|
|
563
|
-
const unexpectedFields = Object.keys(manifest).filter(
|
|
564
|
-
(key) => !allowedPackedManifestFields.has(key),
|
|
565
|
-
);
|
|
566
|
-
const exactIdentity =
|
|
567
|
-
manifest.name === readiness.publication.packageName &&
|
|
568
|
-
manifest.version === readiness.publication.version &&
|
|
569
|
-
manifest.description === sourceManifest.description &&
|
|
570
|
-
manifest.license === sourceManifest.license &&
|
|
571
|
-
sameJson(manifest.repository, sourceManifest.repository) &&
|
|
572
|
-
manifest.homepage === sourceManifest.homepage &&
|
|
573
|
-
sameJson(manifest.bugs, sourceManifest.bugs) &&
|
|
574
|
-
manifest.type === "module" &&
|
|
575
|
-
sameJson(manifest.engines, sourceManifest.engines);
|
|
576
|
-
const exactFiles =
|
|
577
|
-
Array.isArray(files) &&
|
|
578
|
-
files.length === 4 &&
|
|
579
|
-
["dist", "README.md", "LICENSE", "CHANGELOG.md"].every((item) =>
|
|
580
|
-
files.includes(item),
|
|
581
|
-
);
|
|
582
|
-
const exactBin =
|
|
583
|
-
isObject(bin) &&
|
|
584
|
-
Object.keys(bin).length === 1 &&
|
|
585
|
-
bin[readiness.publication.commandName] === "./dist/cli.js";
|
|
586
|
-
const exactDependencies =
|
|
587
|
-
isObject(dependencies) &&
|
|
588
|
-
["@ykdz/cli-contract", "@valibot/to-json-schema", "valibot"].every(
|
|
589
|
-
(name) =>
|
|
590
|
-
typeof dependencies[name] === "string" &&
|
|
591
|
-
validRange(dependencies[name]) !== null,
|
|
592
|
-
) &&
|
|
593
|
-
Object.values(dependencies).every(
|
|
594
|
-
(specifier) =>
|
|
595
|
-
typeof specifier === "string" && validRange(specifier) !== null,
|
|
596
|
-
);
|
|
597
|
-
const validPublishConfig =
|
|
598
|
-
publishConfig === undefined ||
|
|
599
|
-
(isObject(publishConfig) &&
|
|
600
|
-
Object.keys(publishConfig).length === 2 &&
|
|
601
|
-
publishConfig.access === "public" &&
|
|
602
|
-
publishConfig.registry === "https://registry.npmjs.org/");
|
|
603
|
-
if (
|
|
604
|
-
!exactIdentity ||
|
|
605
|
-
!exactFiles ||
|
|
606
|
-
!exactBin ||
|
|
607
|
-
!exactDependencies ||
|
|
608
|
-
!validPublishConfig ||
|
|
609
|
-
unexpectedFields.length > 0
|
|
610
|
-
) {
|
|
611
|
-
return failure(
|
|
612
|
-
"artifact-manifest-contract",
|
|
613
|
-
JSON.stringify({
|
|
614
|
-
exactIdentity,
|
|
615
|
-
exactFiles,
|
|
616
|
-
exactBin,
|
|
617
|
-
exactDependencies,
|
|
618
|
-
validPublishConfig,
|
|
619
|
-
unexpectedFields,
|
|
620
|
-
}),
|
|
621
|
-
"The closed ready public CLI packed-manifest contract",
|
|
622
|
-
"Correct the public CLI manifest or packing hook and retry.",
|
|
623
|
-
);
|
|
624
|
-
}
|
|
625
|
-
return undefined;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
function isolatedChildEnvironment(repositoryRoot: string): NodeJS.ProcessEnv {
|
|
629
|
-
const env: NodeJS.ProcessEnv = {};
|
|
630
|
-
for (const key of inheritedChildEnvironmentKeys) {
|
|
631
|
-
const value = process.env[key];
|
|
632
|
-
if (value !== undefined) env[key] = value;
|
|
633
|
-
}
|
|
634
|
-
env.PATH = `${path.join(repositoryRoot, "node_modules", ".bin")}${path.delimiter}${env.PATH ?? ""}`;
|
|
635
|
-
return env;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
function quotedWindowsCommandArgument(value: string): string {
|
|
639
|
-
if (/["\0\r\n]/u.test(value)) {
|
|
640
|
-
throw new Error("Windows command argument is not command-safe");
|
|
641
|
-
}
|
|
642
|
-
return `"${value}"`;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
function windowsEnvironmentReference(key: string): string {
|
|
646
|
-
if (!/^[A-Za-z_][A-Za-z0-9_]*$/u.test(key)) {
|
|
647
|
-
throw new Error("Windows command environment key is not safe");
|
|
648
|
-
}
|
|
649
|
-
return `"%${key}%"`;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
function resolveWindowsExecutable(options: {
|
|
653
|
-
readonly executable: string;
|
|
654
|
-
readonly windowsExecutable?: string;
|
|
655
|
-
readonly windowsExecutableEnvironmentKey?: string;
|
|
656
|
-
}): string {
|
|
657
|
-
if (
|
|
658
|
-
options.windowsExecutable !== undefined &&
|
|
659
|
-
options.windowsExecutableEnvironmentKey !== undefined
|
|
660
|
-
) {
|
|
661
|
-
throw new Error("Windows command executable plan is ambiguous");
|
|
662
|
-
}
|
|
663
|
-
if (options.windowsExecutableEnvironmentKey !== undefined) {
|
|
664
|
-
return windowsEnvironmentReference(options.windowsExecutableEnvironmentKey);
|
|
665
|
-
}
|
|
666
|
-
return quotedWindowsCommandArgument(
|
|
667
|
-
options.windowsExecutable ?? options.executable,
|
|
668
|
-
);
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
function planCommandProcessorInvocation(options: {
|
|
672
|
-
readonly platform: NodeJS.Platform;
|
|
673
|
-
readonly executable: string;
|
|
674
|
-
readonly args: readonly string[];
|
|
675
|
-
readonly environment: NodeJS.ProcessEnv;
|
|
676
|
-
readonly windowsExecutable?: string;
|
|
677
|
-
readonly windowsExecutableEnvironmentKey?: string;
|
|
678
|
-
readonly windowsArgumentEnvironment?: {
|
|
679
|
-
readonly index: number;
|
|
680
|
-
readonly key: string;
|
|
681
|
-
readonly value: string;
|
|
682
|
-
};
|
|
683
|
-
}): CommandPlan {
|
|
684
|
-
if (options.platform !== "win32") {
|
|
685
|
-
return {
|
|
686
|
-
executable: options.executable,
|
|
687
|
-
args: options.args,
|
|
688
|
-
environment: options.environment,
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
const commandProcessor = options.environment.ComSpec;
|
|
692
|
-
if (
|
|
693
|
-
commandProcessor === undefined ||
|
|
694
|
-
!path.win32.isAbsolute(commandProcessor)
|
|
695
|
-
) {
|
|
696
|
-
throw new Error("ComSpec must name the absolute Windows command processor");
|
|
697
|
-
}
|
|
698
|
-
const windowsExecutable = resolveWindowsExecutable(options);
|
|
699
|
-
const commandEnvironment = { ...options.environment };
|
|
700
|
-
const windowsArguments = options.args.map((argument, index) => {
|
|
701
|
-
const replacement = options.windowsArgumentEnvironment;
|
|
702
|
-
if (replacement?.index !== index) {
|
|
703
|
-
return quotedWindowsCommandArgument(argument);
|
|
704
|
-
}
|
|
705
|
-
if (/["\0\r\n]/u.test(replacement.value)) {
|
|
706
|
-
throw new Error("Windows command environment value is not command-safe");
|
|
707
|
-
}
|
|
708
|
-
commandEnvironment[replacement.key] = replacement.value;
|
|
709
|
-
return windowsEnvironmentReference(replacement.key);
|
|
710
|
-
});
|
|
711
|
-
if (
|
|
712
|
-
options.windowsArgumentEnvironment !== undefined &&
|
|
713
|
-
(options.windowsArgumentEnvironment.index < 0 ||
|
|
714
|
-
options.windowsArgumentEnvironment.index >= options.args.length)
|
|
715
|
-
) {
|
|
716
|
-
throw new Error("Windows command environment argument index is invalid");
|
|
717
|
-
}
|
|
718
|
-
const command = [windowsExecutable, ...windowsArguments].join(" ");
|
|
719
|
-
return {
|
|
720
|
-
executable: commandProcessor,
|
|
721
|
-
args: ["/d", "/v:off", "/s", "/c", `"${command}"`],
|
|
722
|
-
environment: commandEnvironment,
|
|
723
|
-
};
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
/** @internal 用于聚焦平台计划测试的纯 installed-bin 命令 seam。 */
|
|
727
|
-
export function planInstalledBinCommand(options: {
|
|
728
|
-
readonly platform: NodeJS.Platform;
|
|
729
|
-
readonly binPath: string;
|
|
730
|
-
readonly args: readonly string[];
|
|
731
|
-
readonly environment: NodeJS.ProcessEnv;
|
|
732
|
-
}): CommandPlan {
|
|
733
|
-
if (options.platform !== "win32") {
|
|
734
|
-
return {
|
|
735
|
-
executable: options.binPath,
|
|
736
|
-
args: options.args,
|
|
737
|
-
environment: options.environment,
|
|
738
|
-
};
|
|
739
|
-
}
|
|
740
|
-
if (/["\0\r\n]/u.test(options.binPath)) {
|
|
741
|
-
throw new Error("installed Windows bin path is not command-safe");
|
|
742
|
-
}
|
|
743
|
-
return planCommandProcessorInvocation({
|
|
744
|
-
platform: options.platform,
|
|
745
|
-
executable: options.binPath,
|
|
746
|
-
args: options.args,
|
|
747
|
-
environment: {
|
|
748
|
-
...options.environment,
|
|
749
|
-
[installedBinEnvironmentKey]: options.binPath,
|
|
750
|
-
},
|
|
751
|
-
windowsExecutableEnvironmentKey: installedBinEnvironmentKey,
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
/** @internal 用于聚焦平台计划测试的纯 pnpm pack 命令 seam。 */
|
|
756
|
-
export function planPnpmPackCommand(options: {
|
|
757
|
-
readonly platform: NodeJS.Platform;
|
|
758
|
-
readonly packDirectory: string;
|
|
759
|
-
readonly environment: NodeJS.ProcessEnv;
|
|
760
|
-
}): CommandPlan {
|
|
761
|
-
const args = ["pack", "--pack-destination", options.packDirectory] as const;
|
|
762
|
-
return planCommandProcessorInvocation({
|
|
763
|
-
platform: options.platform,
|
|
764
|
-
executable: "pnpm",
|
|
765
|
-
args,
|
|
766
|
-
environment: options.environment,
|
|
767
|
-
windowsExecutable: "pnpm.cmd",
|
|
768
|
-
windowsArgumentEnvironment: {
|
|
769
|
-
index: 2,
|
|
770
|
-
key: "TEMPLATE_VERIFIED_PUBLICATION_PACK_DIRECTORY",
|
|
771
|
-
value: options.packDirectory,
|
|
772
|
-
},
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
async function smokeCommand(options: {
|
|
777
|
-
readonly executable: string;
|
|
778
|
-
readonly args: readonly string[];
|
|
779
|
-
readonly cwd: string;
|
|
780
|
-
readonly env: NodeJS.ProcessEnv;
|
|
781
|
-
}): Promise<CommandResult | PublicationArtifactFailure> {
|
|
782
|
-
const result = await runCommand(options);
|
|
783
|
-
return result.exitCode === 0 && result.stderr === ""
|
|
784
|
-
? result
|
|
785
|
-
: commandFailure(
|
|
786
|
-
"consumer-smoke-failed",
|
|
787
|
-
options.executable,
|
|
788
|
-
options.args,
|
|
789
|
-
result,
|
|
790
|
-
"A successful installed CLI smoke command",
|
|
791
|
-
"Correct the packed runtime or command behavior and retry.",
|
|
792
|
-
);
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
export async function verifyNpmPublicationArtifact(options: {
|
|
796
|
-
readonly repositoryRoot: string;
|
|
797
|
-
readonly packagePath: string;
|
|
798
|
-
readonly outputDirectory: string;
|
|
799
|
-
}): Promise<VerifiedPublicationArtifactResult> {
|
|
800
|
-
const requestedRepositoryRoot = path.resolve(options.repositoryRoot);
|
|
801
|
-
const requestedPackageRoot = path.resolve(
|
|
802
|
-
requestedRepositoryRoot,
|
|
803
|
-
options.packagePath,
|
|
804
|
-
);
|
|
805
|
-
const requestedOutputDirectory = path.resolve(options.outputDirectory);
|
|
806
|
-
const validatedPaths = await validateOutputDirectory({
|
|
807
|
-
repositoryRoot: requestedRepositoryRoot,
|
|
808
|
-
packageRoot: requestedPackageRoot,
|
|
809
|
-
outputDirectory: requestedOutputDirectory,
|
|
810
|
-
});
|
|
811
|
-
if ("code" in validatedPaths) {
|
|
812
|
-
return { kind: "failed", failure: validatedPaths };
|
|
813
|
-
}
|
|
814
|
-
const { repositoryRoot, packageRoot, outputDirectory } = validatedPaths;
|
|
815
|
-
const packagePath = path
|
|
816
|
-
.relative(repositoryRoot, packageRoot)
|
|
817
|
-
.split(path.sep)
|
|
818
|
-
.join("/");
|
|
819
|
-
|
|
820
|
-
const readiness = await inspectNpmPublicationReadiness({
|
|
821
|
-
repositoryRoot,
|
|
822
|
-
packagePath,
|
|
823
|
-
});
|
|
824
|
-
if (readiness.kind === "blocked") return { kind: "blocked", readiness };
|
|
825
|
-
|
|
826
|
-
let sourceManifestValue: unknown;
|
|
827
|
-
try {
|
|
828
|
-
sourceManifestValue = JSON.parse(
|
|
829
|
-
await readFile(path.join(packageRoot, "package.json"), "utf8"),
|
|
830
|
-
);
|
|
831
|
-
} catch (error) {
|
|
832
|
-
return {
|
|
833
|
-
kind: "failed",
|
|
834
|
-
failure: failure(
|
|
835
|
-
"artifact-manifest-invalid",
|
|
836
|
-
error instanceof Error ? error.message : error,
|
|
837
|
-
"The readiness-approved source package manifest snapshot",
|
|
838
|
-
"Restore the package manifest and retry.",
|
|
839
|
-
),
|
|
840
|
-
};
|
|
841
|
-
}
|
|
842
|
-
if (!isObject(sourceManifestValue)) {
|
|
843
|
-
return {
|
|
844
|
-
kind: "failed",
|
|
845
|
-
failure: failure(
|
|
846
|
-
"artifact-manifest-invalid",
|
|
847
|
-
"source package.json is not an object",
|
|
848
|
-
"The readiness-approved source package manifest snapshot",
|
|
849
|
-
"Restore the package manifest and retry.",
|
|
850
|
-
),
|
|
851
|
-
};
|
|
852
|
-
}
|
|
853
|
-
const childEnvironment = isolatedChildEnvironment(repositoryRoot);
|
|
854
|
-
|
|
855
|
-
const ownedTemporaryPaths: string[] = [];
|
|
856
|
-
const ownedFinalPaths: string[] = [];
|
|
857
|
-
let result: VerifiedPublicationArtifactResult | undefined;
|
|
858
|
-
try {
|
|
859
|
-
let packDirectory: string;
|
|
860
|
-
let consumerDirectory: string;
|
|
861
|
-
try {
|
|
862
|
-
packDirectory = await mkdtemp(path.join(outputDirectory, "pack-"));
|
|
863
|
-
ownedTemporaryPaths.push(packDirectory);
|
|
864
|
-
consumerDirectory = await mkdtemp(
|
|
865
|
-
path.join(outputDirectory, "consumer-"),
|
|
866
|
-
);
|
|
867
|
-
ownedTemporaryPaths.push(consumerDirectory);
|
|
868
|
-
} catch (error) {
|
|
869
|
-
result = {
|
|
870
|
-
kind: "failed",
|
|
871
|
-
failure: failure(
|
|
872
|
-
"artifact-temporary-output-failed",
|
|
873
|
-
error instanceof Error ? error.message : error,
|
|
874
|
-
"Owned pack and consumer temporary directories",
|
|
875
|
-
"Correct output directory permissions and retry.",
|
|
876
|
-
),
|
|
877
|
-
};
|
|
878
|
-
return result;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
const packCommand = planPnpmPackCommand({
|
|
882
|
-
platform: process.platform,
|
|
883
|
-
packDirectory,
|
|
884
|
-
environment: childEnvironment,
|
|
885
|
-
});
|
|
886
|
-
const pack = await runCommand({
|
|
887
|
-
executable: packCommand.executable,
|
|
888
|
-
args: packCommand.args,
|
|
889
|
-
cwd: packageRoot,
|
|
890
|
-
env: packCommand.environment,
|
|
891
|
-
});
|
|
892
|
-
if (pack.exitCode !== 0) {
|
|
893
|
-
result = {
|
|
894
|
-
kind: "failed",
|
|
895
|
-
failure: commandFailure(
|
|
896
|
-
"artifact-pack-failed",
|
|
897
|
-
packCommand.executable,
|
|
898
|
-
packCommand.args,
|
|
899
|
-
pack,
|
|
900
|
-
"The single pnpm pack lifecycle to succeed",
|
|
901
|
-
"Correct the prepack build or package manifest and retry.",
|
|
902
|
-
),
|
|
903
|
-
};
|
|
904
|
-
return result;
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
const packEntries = await readdir(packDirectory, { withFileTypes: true });
|
|
908
|
-
if (
|
|
909
|
-
packEntries.length !== 1 ||
|
|
910
|
-
!packEntries[0]!.isFile() ||
|
|
911
|
-
!packEntries[0]!.name.endsWith(".tgz")
|
|
912
|
-
) {
|
|
913
|
-
result = {
|
|
914
|
-
kind: "failed",
|
|
915
|
-
failure: failure(
|
|
916
|
-
"artifact-pack-output-invalid",
|
|
917
|
-
JSON.stringify(
|
|
918
|
-
packEntries.map((entry) => ({
|
|
919
|
-
name: entry.name,
|
|
920
|
-
kind: entry.isFile() ? "file" : "other",
|
|
921
|
-
})),
|
|
922
|
-
),
|
|
923
|
-
"Exactly one ordinary .tgz in the owned pack directory",
|
|
924
|
-
"Correct pack lifecycle outputs and retry.",
|
|
925
|
-
),
|
|
926
|
-
};
|
|
927
|
-
return result;
|
|
928
|
-
}
|
|
929
|
-
const artifactBasename = packEntries[0]!.name;
|
|
930
|
-
if (!/^[A-Za-z0-9._-]+\.tgz$/u.test(artifactBasename)) {
|
|
931
|
-
result = {
|
|
932
|
-
kind: "failed",
|
|
933
|
-
failure: failure(
|
|
934
|
-
"artifact-pack-output-invalid",
|
|
935
|
-
artifactBasename,
|
|
936
|
-
"A safe portable tgz basename",
|
|
937
|
-
"Correct the public package identity and retry.",
|
|
938
|
-
),
|
|
939
|
-
};
|
|
940
|
-
return result;
|
|
941
|
-
}
|
|
942
|
-
const packedArtifactPath = path.join(packDirectory, artifactBasename);
|
|
943
|
-
const archive = await inspectPublicationArchive(packedArtifactPath);
|
|
944
|
-
if ("code" in archive) {
|
|
945
|
-
result = { kind: "failed", failure: archive };
|
|
946
|
-
return result;
|
|
947
|
-
}
|
|
948
|
-
const manifestFailure = inspectPackedManifestContract({
|
|
949
|
-
manifest: archive.manifest,
|
|
950
|
-
sourceManifest: sourceManifestValue,
|
|
951
|
-
readiness,
|
|
952
|
-
});
|
|
953
|
-
if (manifestFailure !== undefined) {
|
|
954
|
-
result = { kind: "failed", failure: manifestFailure };
|
|
955
|
-
return result;
|
|
956
|
-
}
|
|
957
|
-
const binFile = archive.files.find(
|
|
958
|
-
(item) => item.path === "package/dist/cli.js",
|
|
959
|
-
)!;
|
|
960
|
-
const shebang = archive.cliSource.toString("utf8").split(/\r?\n/u)[0];
|
|
961
|
-
if (
|
|
962
|
-
shebang !== "#!/usr/bin/env node" ||
|
|
963
|
-
(process.platform !== "win32" && (binFile.mode & 0o111) === 0)
|
|
964
|
-
) {
|
|
965
|
-
result = {
|
|
966
|
-
kind: "failed",
|
|
967
|
-
failure: failure(
|
|
968
|
-
"artifact-bin-contract",
|
|
969
|
-
JSON.stringify({ shebang, mode: binFile.mode }),
|
|
970
|
-
"A Node shebang and executable tar mode on POSIX",
|
|
971
|
-
"Correct the compiled CLI entrypoint and retry.",
|
|
972
|
-
),
|
|
973
|
-
};
|
|
974
|
-
return result;
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
const cacheDirectory = path.join(consumerDirectory, "npm-cache");
|
|
978
|
-
const userConfigPath = path.join(consumerDirectory, "user.npmrc");
|
|
979
|
-
const globalConfigPath = path.join(consumerDirectory, "global.npmrc");
|
|
980
|
-
await writeFile(
|
|
981
|
-
path.join(consumerDirectory, "package.json"),
|
|
982
|
-
'{"private":true}\n',
|
|
983
|
-
);
|
|
984
|
-
await writeFile(userConfigPath, "");
|
|
985
|
-
await writeFile(globalConfigPath, "");
|
|
986
|
-
const npmArgs = [
|
|
987
|
-
"install",
|
|
988
|
-
packedArtifactPath,
|
|
989
|
-
`--cache=${cacheDirectory}`,
|
|
990
|
-
`--userconfig=${userConfigPath}`,
|
|
991
|
-
`--globalconfig=${globalConfigPath}`,
|
|
992
|
-
"--registry=https://registry.npmjs.org/",
|
|
993
|
-
"--ignore-scripts=true",
|
|
994
|
-
"--bin-links=true",
|
|
995
|
-
"--package-lock=false",
|
|
996
|
-
"--audit=false",
|
|
997
|
-
"--fund=false",
|
|
998
|
-
] as const;
|
|
999
|
-
const npmCliPath = path.join(
|
|
1000
|
-
repositoryRoot,
|
|
1001
|
-
"node_modules/npm/bin/npm-cli.js",
|
|
1002
|
-
);
|
|
1003
|
-
const npmCommandArgs = [npmCliPath, ...npmArgs] as const;
|
|
1004
|
-
const install = await runCommand({
|
|
1005
|
-
executable: process.execPath,
|
|
1006
|
-
args: npmCommandArgs,
|
|
1007
|
-
cwd: consumerDirectory,
|
|
1008
|
-
env: childEnvironment,
|
|
1009
|
-
});
|
|
1010
|
-
if (install.exitCode !== 0) {
|
|
1011
|
-
result = {
|
|
1012
|
-
kind: "failed",
|
|
1013
|
-
failure: commandFailure(
|
|
1014
|
-
"consumer-install-failed",
|
|
1015
|
-
process.execPath,
|
|
1016
|
-
npmCommandArgs,
|
|
1017
|
-
install,
|
|
1018
|
-
"The locked npm client to install the local tgz with public runtime dependencies",
|
|
1019
|
-
"Restore registry access or correct the packed runtime dependency and retry.",
|
|
1020
|
-
),
|
|
1021
|
-
};
|
|
1022
|
-
return result;
|
|
1023
|
-
}
|
|
1024
|
-
const installedPackageRoot = path.join(
|
|
1025
|
-
consumerDirectory,
|
|
1026
|
-
"node_modules",
|
|
1027
|
-
readiness.publication.packageName,
|
|
1028
|
-
);
|
|
1029
|
-
const runtimeImportArgs = [
|
|
1030
|
-
"--input-type=module",
|
|
1031
|
-
"--eval",
|
|
1032
|
-
"await import(process.argv[1])",
|
|
1033
|
-
pathToFileURL(path.join(installedPackageRoot, "dist/main.js")).href,
|
|
1034
|
-
] as const;
|
|
1035
|
-
const runtimeImport = await smokeCommand({
|
|
1036
|
-
executable: process.execPath,
|
|
1037
|
-
args: runtimeImportArgs,
|
|
1038
|
-
cwd: consumerDirectory,
|
|
1039
|
-
env: childEnvironment,
|
|
1040
|
-
});
|
|
1041
|
-
if ("code" in runtimeImport) {
|
|
1042
|
-
result = { kind: "failed", failure: runtimeImport };
|
|
1043
|
-
return result;
|
|
1044
|
-
}
|
|
1045
|
-
if (runtimeImport.stdout !== "") {
|
|
1046
|
-
result = {
|
|
1047
|
-
kind: "failed",
|
|
1048
|
-
failure: failure(
|
|
1049
|
-
"consumer-smoke-failed",
|
|
1050
|
-
runtimeImport.stdout,
|
|
1051
|
-
"The installed internal runtime module to import without output",
|
|
1052
|
-
"Remove import-time output and retry.",
|
|
1053
|
-
),
|
|
1054
|
-
};
|
|
1055
|
-
return result;
|
|
1056
|
-
}
|
|
1057
|
-
const binPath = path.join(
|
|
1058
|
-
consumerDirectory,
|
|
1059
|
-
"node_modules/.bin",
|
|
1060
|
-
`${readiness.publication.commandName}${process.platform === "win32" ? ".cmd" : ""}`,
|
|
1061
|
-
);
|
|
1062
|
-
if (
|
|
1063
|
-
process.platform !== "win32" &&
|
|
1064
|
-
((await lstat(binPath)).mode & 0o111) === 0
|
|
1065
|
-
) {
|
|
1066
|
-
result = {
|
|
1067
|
-
kind: "failed",
|
|
1068
|
-
failure: failure(
|
|
1069
|
-
"artifact-bin-contract",
|
|
1070
|
-
"installed bin is not executable",
|
|
1071
|
-
"An executable npm-created package bin link",
|
|
1072
|
-
"Correct the bin manifest and retry.",
|
|
1073
|
-
),
|
|
1074
|
-
};
|
|
1075
|
-
return result;
|
|
1076
|
-
}
|
|
1077
|
-
const helpArgs = ["--help"] as const;
|
|
1078
|
-
const versionArgs = ["--version"] as const;
|
|
1079
|
-
const lookupArgs = ["lookup", "ada"] as const;
|
|
1080
|
-
const schemaArgs = ["schema"] as const;
|
|
1081
|
-
const invalidLookupArgs = ["lookup", " "] as const;
|
|
1082
|
-
const helpCommand = planInstalledBinCommand({
|
|
1083
|
-
platform: process.platform,
|
|
1084
|
-
binPath,
|
|
1085
|
-
args: helpArgs,
|
|
1086
|
-
environment: childEnvironment,
|
|
1087
|
-
});
|
|
1088
|
-
const help = await smokeCommand({
|
|
1089
|
-
executable: helpCommand.executable,
|
|
1090
|
-
args: helpCommand.args,
|
|
1091
|
-
cwd: consumerDirectory,
|
|
1092
|
-
env: helpCommand.environment,
|
|
1093
|
-
});
|
|
1094
|
-
if ("code" in help) {
|
|
1095
|
-
result = { kind: "failed", failure: help };
|
|
1096
|
-
return result;
|
|
1097
|
-
}
|
|
1098
|
-
const versionCommand = planInstalledBinCommand({
|
|
1099
|
-
platform: process.platform,
|
|
1100
|
-
binPath,
|
|
1101
|
-
args: versionArgs,
|
|
1102
|
-
environment: childEnvironment,
|
|
1103
|
-
});
|
|
1104
|
-
const version = await smokeCommand({
|
|
1105
|
-
executable: versionCommand.executable,
|
|
1106
|
-
args: versionCommand.args,
|
|
1107
|
-
cwd: consumerDirectory,
|
|
1108
|
-
env: versionCommand.environment,
|
|
1109
|
-
});
|
|
1110
|
-
if ("code" in version) {
|
|
1111
|
-
result = { kind: "failed", failure: version };
|
|
1112
|
-
return result;
|
|
1113
|
-
}
|
|
1114
|
-
const lookupCommand = planInstalledBinCommand({
|
|
1115
|
-
platform: process.platform,
|
|
1116
|
-
binPath,
|
|
1117
|
-
args: lookupArgs,
|
|
1118
|
-
environment: childEnvironment,
|
|
1119
|
-
});
|
|
1120
|
-
const lookup = await smokeCommand({
|
|
1121
|
-
executable: lookupCommand.executable,
|
|
1122
|
-
args: lookupCommand.args,
|
|
1123
|
-
cwd: consumerDirectory,
|
|
1124
|
-
env: lookupCommand.environment,
|
|
1125
|
-
});
|
|
1126
|
-
if ("code" in lookup) {
|
|
1127
|
-
result = { kind: "failed", failure: lookup };
|
|
1128
|
-
return result;
|
|
1129
|
-
}
|
|
1130
|
-
const schemaCommand = planInstalledBinCommand({
|
|
1131
|
-
platform: process.platform,
|
|
1132
|
-
binPath,
|
|
1133
|
-
args: schemaArgs,
|
|
1134
|
-
environment: childEnvironment,
|
|
1135
|
-
});
|
|
1136
|
-
const schema = await smokeCommand({
|
|
1137
|
-
executable: schemaCommand.executable,
|
|
1138
|
-
args: schemaCommand.args,
|
|
1139
|
-
cwd: consumerDirectory,
|
|
1140
|
-
env: schemaCommand.environment,
|
|
1141
|
-
});
|
|
1142
|
-
if ("code" in schema) {
|
|
1143
|
-
result = { kind: "failed", failure: schema };
|
|
1144
|
-
return result;
|
|
1145
|
-
}
|
|
1146
|
-
if (
|
|
1147
|
-
!help.stdout.includes(readiness.publication.commandName) ||
|
|
1148
|
-
!help.stdout.includes("lookup") ||
|
|
1149
|
-
!help.stdout.includes("schema") ||
|
|
1150
|
-
version.stdout !==
|
|
1151
|
-
`${readiness.publication.commandName} ${readiness.publication.version}\n` ||
|
|
1152
|
-
!hasLookupEvidence(lookup.stdout) ||
|
|
1153
|
-
!hasSchemaEvidence(schema.stdout, readiness.publication.commandName)
|
|
1154
|
-
) {
|
|
1155
|
-
result = {
|
|
1156
|
-
kind: "failed",
|
|
1157
|
-
failure: failure(
|
|
1158
|
-
"consumer-smoke-failed",
|
|
1159
|
-
JSON.stringify({
|
|
1160
|
-
help: help.stdout,
|
|
1161
|
-
version: version.stdout,
|
|
1162
|
-
lookup: lookup.stdout,
|
|
1163
|
-
}),
|
|
1164
|
-
"安装后的帮助、实际版本、lookup 查询及完整 schema 契约",
|
|
1165
|
-
"修正制品中的命令身份或行为后重试。",
|
|
1166
|
-
),
|
|
1167
|
-
};
|
|
1168
|
-
return result;
|
|
1169
|
-
}
|
|
1170
|
-
for (const scenario of [
|
|
1171
|
-
{
|
|
1172
|
-
args: [...invalidLookupArgs, "--output-format", "text"],
|
|
1173
|
-
exitCode: 2,
|
|
1174
|
-
accepts: hasUsageFailure,
|
|
1175
|
-
},
|
|
1176
|
-
{ args: ["lookup", "missing"], exitCode: 1, accepts: hasNotFoundFailure },
|
|
1177
|
-
]) {
|
|
1178
|
-
const command = planInstalledBinCommand({
|
|
1179
|
-
platform: process.platform,
|
|
1180
|
-
binPath,
|
|
1181
|
-
args: scenario.args,
|
|
1182
|
-
environment: childEnvironment,
|
|
1183
|
-
});
|
|
1184
|
-
const observed = await runCommand({
|
|
1185
|
-
executable: command.executable,
|
|
1186
|
-
args: command.args,
|
|
1187
|
-
cwd: consumerDirectory,
|
|
1188
|
-
env: command.environment,
|
|
1189
|
-
});
|
|
1190
|
-
if (
|
|
1191
|
-
observed.exitCode !== scenario.exitCode ||
|
|
1192
|
-
observed.stdout !== "" ||
|
|
1193
|
-
!scenario.accepts(observed.stderr)
|
|
1194
|
-
) {
|
|
1195
|
-
result = {
|
|
1196
|
-
kind: "failed",
|
|
1197
|
-
failure: failure(
|
|
1198
|
-
"consumer-smoke-failed",
|
|
1199
|
-
JSON.stringify(observed),
|
|
1200
|
-
"非法输入应退出 2,未找到记录应退出 1;均通过 stderr 返回原生结果。",
|
|
1201
|
-
"修正安装后命令的失败协议并重试。",
|
|
1202
|
-
{
|
|
1203
|
-
executable: command.executable,
|
|
1204
|
-
args: command.args,
|
|
1205
|
-
exitCode: observed.exitCode,
|
|
1206
|
-
},
|
|
1207
|
-
),
|
|
1208
|
-
};
|
|
1209
|
-
return result;
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
const artifactBytes = await readFile(packedArtifactPath);
|
|
1214
|
-
const digest = createHash("sha512").update(artifactBytes).digest();
|
|
1215
|
-
const artifactPath = path.join(outputDirectory, artifactBasename);
|
|
1216
|
-
const checksumPath = path.join(outputDirectory, "SHA512SUMS");
|
|
1217
|
-
const receiptPath = path.join(
|
|
1218
|
-
outputDirectory,
|
|
1219
|
-
"verified-publication-artifact.json",
|
|
1220
|
-
);
|
|
1221
|
-
const checksumTemporaryPath = path.join(outputDirectory, ".SHA512SUMS.tmp");
|
|
1222
|
-
const receiptTemporaryPath = path.join(
|
|
1223
|
-
outputDirectory,
|
|
1224
|
-
".verified-publication-artifact.json.tmp",
|
|
1225
|
-
);
|
|
1226
|
-
ownedTemporaryPaths.push(checksumTemporaryPath, receiptTemporaryPath);
|
|
1227
|
-
const receipt: VerifiedPublicationArtifactReceipt = {
|
|
1228
|
-
schemaVersion: 1,
|
|
1229
|
-
artifact: {
|
|
1230
|
-
file: artifactBasename,
|
|
1231
|
-
checksumFile: "SHA512SUMS",
|
|
1232
|
-
size: artifactBytes.byteLength,
|
|
1233
|
-
integrity: `sha512-${digest.toString("base64")}`,
|
|
1234
|
-
},
|
|
1235
|
-
publication: readiness.publication,
|
|
1236
|
-
packedManifest: archive.manifest,
|
|
1237
|
-
files: archive.files.map(({ path: filePath, mode, size }) => ({
|
|
1238
|
-
path: filePath,
|
|
1239
|
-
mode,
|
|
1240
|
-
size,
|
|
1241
|
-
})),
|
|
1242
|
-
bin: {
|
|
1243
|
-
path: "package/dist/cli.js",
|
|
1244
|
-
shebang: "#!/usr/bin/env node",
|
|
1245
|
-
mode: binFile.mode,
|
|
1246
|
-
posixExecutableChecked: process.platform !== "win32",
|
|
1247
|
-
},
|
|
1248
|
-
smokes: [
|
|
1249
|
-
{ name: "runtime-import", args: [], stdout: "" },
|
|
1250
|
-
{ name: "help", args: helpArgs, stdout: help.stdout },
|
|
1251
|
-
{ name: "version", args: versionArgs, stdout: version.stdout },
|
|
1252
|
-
{ name: "lookup", args: lookupArgs, stdout: lookup.stdout },
|
|
1253
|
-
{ name: "schema", args: schemaArgs, stdout: schema.stdout },
|
|
1254
|
-
],
|
|
1255
|
-
};
|
|
1256
|
-
try {
|
|
1257
|
-
await writeFile(
|
|
1258
|
-
checksumTemporaryPath,
|
|
1259
|
-
`${digest.toString("hex")} ${artifactBasename}\n`,
|
|
1260
|
-
);
|
|
1261
|
-
await writeFile(
|
|
1262
|
-
receiptTemporaryPath,
|
|
1263
|
-
`${JSON.stringify(receipt, null, 2)}\n`,
|
|
1264
|
-
);
|
|
1265
|
-
await rename(packedArtifactPath, artifactPath);
|
|
1266
|
-
ownedFinalPaths.push(artifactPath);
|
|
1267
|
-
await rename(checksumTemporaryPath, checksumPath);
|
|
1268
|
-
ownedFinalPaths.push(checksumPath);
|
|
1269
|
-
await rename(receiptTemporaryPath, receiptPath);
|
|
1270
|
-
ownedFinalPaths.push(receiptPath);
|
|
1271
|
-
} catch (error) {
|
|
1272
|
-
result = {
|
|
1273
|
-
kind: "failed",
|
|
1274
|
-
failure: failure(
|
|
1275
|
-
"artifact-receipt-failed",
|
|
1276
|
-
error instanceof Error ? error.message : error,
|
|
1277
|
-
"Atomic tgz, SHA512SUMS, and receipt finalization",
|
|
1278
|
-
"Correct output permissions and retry with a new empty directory.",
|
|
1279
|
-
),
|
|
1280
|
-
};
|
|
1281
|
-
return result;
|
|
1282
|
-
}
|
|
1283
|
-
result = {
|
|
1284
|
-
kind: "verified",
|
|
1285
|
-
artifactPath,
|
|
1286
|
-
checksumPath,
|
|
1287
|
-
receiptPath,
|
|
1288
|
-
receipt,
|
|
1289
|
-
};
|
|
1290
|
-
return result;
|
|
1291
|
-
} catch (error) {
|
|
1292
|
-
result = {
|
|
1293
|
-
kind: "failed",
|
|
1294
|
-
failure: failure(
|
|
1295
|
-
"artifact-receipt-failed",
|
|
1296
|
-
error instanceof Error ? error.message : error,
|
|
1297
|
-
"A completely verified and recorded publication artifact",
|
|
1298
|
-
"Correct the reported local failure and retry.",
|
|
1299
|
-
),
|
|
1300
|
-
};
|
|
1301
|
-
return result;
|
|
1302
|
-
} finally {
|
|
1303
|
-
const cleanupFailures: string[] = [];
|
|
1304
|
-
const cleanupTargets = [
|
|
1305
|
-
...ownedTemporaryPaths.toReversed(),
|
|
1306
|
-
...(result?.kind === "verified" ? [] : ownedFinalPaths.toReversed()),
|
|
1307
|
-
];
|
|
1308
|
-
for (const target of cleanupTargets) {
|
|
1309
|
-
try {
|
|
1310
|
-
await rm(target, { recursive: true, force: true });
|
|
1311
|
-
} catch (error) {
|
|
1312
|
-
cleanupFailures.push(
|
|
1313
|
-
`${target}: ${error instanceof Error ? error.message : String(error)}`,
|
|
1314
|
-
);
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
if (cleanupFailures.length > 0 && result?.kind === "verified") {
|
|
1318
|
-
for (const target of ownedFinalPaths.toReversed()) {
|
|
1319
|
-
try {
|
|
1320
|
-
await rm(target, { recursive: true, force: true });
|
|
1321
|
-
} catch (error) {
|
|
1322
|
-
cleanupFailures.push(
|
|
1323
|
-
`${target}: ${error instanceof Error ? error.message : String(error)}`,
|
|
1324
|
-
);
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
if (cleanupFailures.length > 0 && result !== undefined) {
|
|
1329
|
-
Object.assign(result, {
|
|
1330
|
-
kind: "failed",
|
|
1331
|
-
failure: failure(
|
|
1332
|
-
"artifact-cleanup-failed",
|
|
1333
|
-
`${result.kind === "failed" ? `${result.failure.code}; ` : ""}${cleanupFailures.join("; ")}`,
|
|
1334
|
-
"All exact invocation-owned temporary and partial final paths removed",
|
|
1335
|
-
"Remove the reported invocation-owned paths before retrying.",
|
|
1336
|
-
),
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
}
|