@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
|
@@ -0,0 +1,1147 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { isDeepStrictEqual } from "node:util";
|
|
5
|
+
import { assertContentIdentity, contentIdentityKey, contentIdentityLabel, createContentIndex, } from "@ykdz/template-core/content-identity";
|
|
6
|
+
import { assertPackageContribution, } from "@ykdz/template-core/package-contribution";
|
|
7
|
+
import { assertProjectBlueprint, } from "@ykdz/template-core/project-blueprint";
|
|
8
|
+
import { reconcileAndApplyProjectProjections, materializeProjectProjection, } from "@ykdz/template-core/project-projection";
|
|
9
|
+
import { renderNewProject } from "@ykdz/template-core/renderer";
|
|
10
|
+
import { parseGenerationRecordStructure } from "@ykdz/template-core/workspace-strategy";
|
|
11
|
+
export { generationRecordSchema } from "@ykdz/template-core/workspace-strategy";
|
|
12
|
+
function packageIdentity(definition) {
|
|
13
|
+
return {
|
|
14
|
+
name: definition.name,
|
|
15
|
+
path: definition.path,
|
|
16
|
+
role: definition.role,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function isRecord(value) {
|
|
20
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
21
|
+
}
|
|
22
|
+
function isPresetDefinition(value) {
|
|
23
|
+
return isRecord(value) && value.kind === "preset" && isRecord(value.nodes);
|
|
24
|
+
}
|
|
25
|
+
function isLoadedPreset(value) {
|
|
26
|
+
return (isRecord(value) &&
|
|
27
|
+
value.kind === "preset" &&
|
|
28
|
+
isRecord(value.definition) &&
|
|
29
|
+
isPresetDefinition(value.definition));
|
|
30
|
+
}
|
|
31
|
+
function mergeCreationInput(defaults, supplied) {
|
|
32
|
+
if (defaults === undefined)
|
|
33
|
+
return supplied;
|
|
34
|
+
if (supplied === undefined)
|
|
35
|
+
return defaults;
|
|
36
|
+
return { ...defaults, ...supplied };
|
|
37
|
+
}
|
|
38
|
+
function fail(phase, error, diagnostic) {
|
|
39
|
+
return {
|
|
40
|
+
status: "operation-failure",
|
|
41
|
+
phase,
|
|
42
|
+
error: {
|
|
43
|
+
message: error instanceof Error ? error.message : String(error),
|
|
44
|
+
...(diagnostic === undefined ? {} : { diagnostic }),
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
class AdditionPlanningFailure extends Error {
|
|
49
|
+
constructor(error) {
|
|
50
|
+
super(error instanceof Error ? error.message : String(error), {
|
|
51
|
+
cause: error,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function readJson(value, label) {
|
|
56
|
+
if (!isRecord(value))
|
|
57
|
+
throw new Error(label + " must be an object");
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
function presetSelectionKey(identity) {
|
|
61
|
+
return contentIdentityKey(identity);
|
|
62
|
+
}
|
|
63
|
+
function parsePresetSelections(value) {
|
|
64
|
+
if (!Array.isArray(value))
|
|
65
|
+
throw new Error("生成记录的预设选择无效");
|
|
66
|
+
const seen = new Set();
|
|
67
|
+
return value.map((item) => {
|
|
68
|
+
const selection = readJson(item, "生成记录预设选择");
|
|
69
|
+
assertContentIdentity(selection);
|
|
70
|
+
const key = presetSelectionKey(selection);
|
|
71
|
+
if (seen.has(key))
|
|
72
|
+
throw new Error("生成记录的预设选择重复");
|
|
73
|
+
seen.add(key);
|
|
74
|
+
return { ...selection };
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
export function parseGenerationRecord(value) {
|
|
78
|
+
const record = parseGenerationRecordStructure(value);
|
|
79
|
+
const nodeInstances = record.nodeInstances;
|
|
80
|
+
const packageIds = new Set();
|
|
81
|
+
for (const packageRecord of record.packages) {
|
|
82
|
+
assertContentIdentity(packageRecord.contentIdentity);
|
|
83
|
+
if (packageIds.has(packageRecord.packageDefinitionId)) {
|
|
84
|
+
throw new Error("生成记录包含重复包实例:" + packageRecord.packageDefinitionId);
|
|
85
|
+
}
|
|
86
|
+
packageIds.add(packageRecord.packageDefinitionId);
|
|
87
|
+
}
|
|
88
|
+
for (const packageRecord of record.packages) {
|
|
89
|
+
for (const [identity, packageDefinitionId] of Object.entries(packageRecord.bindings)) {
|
|
90
|
+
if (identity.length === 0 || !packageIds.has(packageDefinitionId)) {
|
|
91
|
+
throw new Error(`生成记录中的内容 ${contentIdentityLabel(packageRecord.contentIdentity)} 包含无效实例绑定:${identity}`);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
for (const [nodeIdentity, packageDefinitionId] of Object.entries(nodeInstances)) {
|
|
96
|
+
if (nodeIdentity.length === 0 ||
|
|
97
|
+
typeof packageDefinitionId !== "string" ||
|
|
98
|
+
!packageIds.has(packageDefinitionId)) {
|
|
99
|
+
throw new Error("生成记录的节点实例映射无效");
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const presetSelections = parsePresetSelections(record.presetSelections);
|
|
103
|
+
return {
|
|
104
|
+
schemaVersion: 4,
|
|
105
|
+
strategyIdentity: record.strategyIdentity,
|
|
106
|
+
strategyState: record.strategyState,
|
|
107
|
+
packages: record.packages,
|
|
108
|
+
nodeInstances: nodeInstances,
|
|
109
|
+
presetSelections,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function packageId(options) {
|
|
113
|
+
const facts = {
|
|
114
|
+
domain: "ykdz.template.generator.package-instance.v1",
|
|
115
|
+
contentIdentity: options.contentIdentity,
|
|
116
|
+
createdBy: options.createdBy,
|
|
117
|
+
definition: options.definition,
|
|
118
|
+
};
|
|
119
|
+
let nonce = 0;
|
|
120
|
+
for (;;) {
|
|
121
|
+
const value = nonce === 0
|
|
122
|
+
? facts
|
|
123
|
+
: { facts, occupied: [...options.occupied].toSorted(), nonce };
|
|
124
|
+
const candidate = "package-" +
|
|
125
|
+
createHash("sha256").update(JSON.stringify(value)).digest("hex");
|
|
126
|
+
if (!options.occupied.has(candidate)) {
|
|
127
|
+
return candidate;
|
|
128
|
+
}
|
|
129
|
+
nonce += 1;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export function createGenerator(options) {
|
|
133
|
+
const contentIndex = createContentIndex(options.content);
|
|
134
|
+
const contentMembers = contentIndex.members.filter((member) => member.kind === "reference");
|
|
135
|
+
const presetMembers = contentIndex.members.filter(isLoadedPreset);
|
|
136
|
+
const contentByIdentity = new Map(contentMembers.map((content) => [
|
|
137
|
+
contentIdentityKey(content.identity),
|
|
138
|
+
content,
|
|
139
|
+
]));
|
|
140
|
+
const preparations = new WeakMap();
|
|
141
|
+
const preparedDefinitions = new WeakSet();
|
|
142
|
+
const prepareContent = (content) => {
|
|
143
|
+
const definition = content.definition;
|
|
144
|
+
if (preparedDefinitions.has(definition))
|
|
145
|
+
return preparations.get(definition);
|
|
146
|
+
const preparation = definition.prepare?.();
|
|
147
|
+
preparations.set(definition, preparation);
|
|
148
|
+
preparedDefinitions.add(definition);
|
|
149
|
+
return preparation;
|
|
150
|
+
};
|
|
151
|
+
const presetsByIdentity = new Map();
|
|
152
|
+
for (const presetMember of presetMembers) {
|
|
153
|
+
const preset = presetMember.definition;
|
|
154
|
+
const identityKey = contentIdentityKey(presetMember.identity);
|
|
155
|
+
if (presetsByIdentity.has(identityKey)) {
|
|
156
|
+
throw new Error(`预设规范身份重复:${contentIdentityLabel(presetMember.identity)}`);
|
|
157
|
+
}
|
|
158
|
+
presetsByIdentity.set(identityKey, presetMember);
|
|
159
|
+
for (const node of Object.values(preset.nodes)) {
|
|
160
|
+
try {
|
|
161
|
+
contentIndex.fromDefinition(node.reference, "reference", {
|
|
162
|
+
namespace: presetMember.identity.namespace,
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
catch (error) {
|
|
166
|
+
throw new Error(`预设${contentIdentityLabel(presetMember.identity)}引用未装载的来源定义:${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function requireContent(selector) {
|
|
171
|
+
return contentIndex.resolve(selector, "reference");
|
|
172
|
+
}
|
|
173
|
+
function resolvePreset(selector) {
|
|
174
|
+
const member = isPresetDefinition(selector)
|
|
175
|
+
? contentIndex.fromDefinition(selector, "preset")
|
|
176
|
+
: contentIndex.resolve(selector, "preset");
|
|
177
|
+
return member;
|
|
178
|
+
}
|
|
179
|
+
function expandPreset(options_) {
|
|
180
|
+
const preset = options_.preset.definition;
|
|
181
|
+
if (!preset.operations.includes(options_.operation)) {
|
|
182
|
+
throw new Error(`预设不支持${options_.operation}操作`);
|
|
183
|
+
}
|
|
184
|
+
const nodes = Object.entries(preset.nodes);
|
|
185
|
+
if ((options_.creationInput !== undefined ||
|
|
186
|
+
options_.configuration !== undefined) &&
|
|
187
|
+
nodes.length !== 1) {
|
|
188
|
+
throw new Error("多节点预设不能接收单一包创建输入");
|
|
189
|
+
}
|
|
190
|
+
return nodes.map(([nodeIdentity, node]) => {
|
|
191
|
+
const creationInput = mergeCreationInput(node.creationInput?.[options_.operation], options_.creationInput);
|
|
192
|
+
const reference = contentIndex.fromDefinition(node.reference, "reference", { namespace: options_.preset.identity.namespace });
|
|
193
|
+
return {
|
|
194
|
+
nodeIdentity,
|
|
195
|
+
contentIdentity: reference.identity,
|
|
196
|
+
...(node.layout === undefined ? {} : { layout: node.layout }),
|
|
197
|
+
...(creationInput === undefined ? {} : { creationInput }),
|
|
198
|
+
configuration: options_.configuration === undefined
|
|
199
|
+
? node.configuration?.[options_.operation]
|
|
200
|
+
: options_.configuration,
|
|
201
|
+
};
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
function findByPackageId(records, id) {
|
|
205
|
+
const record = records.find((candidate) => candidate.packageDefinitionId === id);
|
|
206
|
+
if (record === undefined) {
|
|
207
|
+
throw new Error("生成记录引用了不存在的包实例:" + id);
|
|
208
|
+
}
|
|
209
|
+
return record;
|
|
210
|
+
}
|
|
211
|
+
function normalizeConfiguration(content, input) {
|
|
212
|
+
if (content.definition.normalizeConfiguration !== undefined)
|
|
213
|
+
return content.definition.normalizeConfiguration(input) ?? null;
|
|
214
|
+
if (input !== undefined && input !== null)
|
|
215
|
+
throw new Error(`内容 ${contentIdentityLabel(content.identity)} 不支持实例配置`);
|
|
216
|
+
return null;
|
|
217
|
+
}
|
|
218
|
+
function resolvePackageStates(records, blueprint) {
|
|
219
|
+
const definitionsById = new Map(blueprint.packages.map((definition) => [
|
|
220
|
+
definition.packageDefinitionId,
|
|
221
|
+
definition,
|
|
222
|
+
]));
|
|
223
|
+
if (definitionsById.size !== records.length) {
|
|
224
|
+
throw new Error("生成记录与蓝图的包实例数量不一致");
|
|
225
|
+
}
|
|
226
|
+
for (const definition of blueprint.packages) {
|
|
227
|
+
if (!records.some((record) => record.packageDefinitionId === definition.packageDefinitionId)) {
|
|
228
|
+
throw new Error(`蓝图包实例缺少生成记录事实:${definition.packageDefinitionId}`);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return records.map((record) => {
|
|
232
|
+
const definition = definitionsById.get(record.packageDefinitionId);
|
|
233
|
+
if (definition === undefined) {
|
|
234
|
+
throw new Error(`蓝图缺少内容 ${contentIdentityLabel(record.contentIdentity)} 对应的包实例:${record.packageDefinitionId}`);
|
|
235
|
+
}
|
|
236
|
+
const configuration = normalizeConfiguration(requireContent(record.contentIdentity), record.configuration);
|
|
237
|
+
if (!isDeepStrictEqual(configuration, record.configuration))
|
|
238
|
+
throw new Error(`生成记录包含未规范化的实例配置:${definition.path}`);
|
|
239
|
+
return { ...record, definition };
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
function requiredDependencyIdentities(records) {
|
|
243
|
+
const dependenciesByPackageId = new Map();
|
|
244
|
+
for (const record of records) {
|
|
245
|
+
const content = requireContent(record.contentIdentity);
|
|
246
|
+
dependenciesByPackageId.set(record.definition.packageDefinitionId, options.strategy.dependencies({
|
|
247
|
+
content,
|
|
248
|
+
contentByIdentity,
|
|
249
|
+
configuration: record.configuration,
|
|
250
|
+
...(record.creationInput === null
|
|
251
|
+
? {}
|
|
252
|
+
: { creationInput: record.creationInput }),
|
|
253
|
+
}));
|
|
254
|
+
}
|
|
255
|
+
return dependenciesByPackageId;
|
|
256
|
+
}
|
|
257
|
+
function validateRequiredBindings(records, dependenciesByPackageId = requiredDependencyIdentities(records), providers = records) {
|
|
258
|
+
for (const record of records) {
|
|
259
|
+
const dependencies = dependenciesByPackageId.get(record.definition.packageDefinitionId);
|
|
260
|
+
if (dependencies === undefined) {
|
|
261
|
+
throw new Error("生成记录缺少已准备的内容依赖:" +
|
|
262
|
+
contentIdentityLabel(record.contentIdentity));
|
|
263
|
+
}
|
|
264
|
+
for (const dependency of dependencies) {
|
|
265
|
+
const dependencyKey = contentIdentityKey(dependency);
|
|
266
|
+
const packageDefinitionId = record.bindings[dependencyKey];
|
|
267
|
+
if (packageDefinitionId === undefined) {
|
|
268
|
+
throw new Error(`生成记录中的内容 ${contentIdentityLabel(record.contentIdentity)} 缺少必要实例绑定:${contentIdentityLabel(dependency)}`);
|
|
269
|
+
}
|
|
270
|
+
const provider = findByPackageId(providers, packageDefinitionId);
|
|
271
|
+
if (contentIdentityKey(provider.contentIdentity) !== dependencyKey) {
|
|
272
|
+
throw new Error(`生成记录中的内容 ${contentIdentityLabel(record.contentIdentity)} 将依赖绑定到错误实例:${contentIdentityLabel(dependency)}`);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
function validateNodeInstances(records, nodeInstances) {
|
|
278
|
+
const mappedIds = new Set(Object.values(nodeInstances));
|
|
279
|
+
for (const record of records) {
|
|
280
|
+
if (record.createdBy === "initialization" &&
|
|
281
|
+
!mappedIds.has(record.packageDefinitionId)) {
|
|
282
|
+
throw new Error(`生成记录中的内容 ${contentIdentityLabel(record.contentIdentity)} 缺少必要节点实例映射:${record.packageDefinitionId}`);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
function validatePresetSelections(selections) {
|
|
287
|
+
for (const selection of selections) {
|
|
288
|
+
if (!presetsByIdentity.has(presetSelectionKey(selection))) {
|
|
289
|
+
throw new Error(`生成记录所选预设不可用:${contentIdentityLabel(selection)}`);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
function resolveNodeInstances(records, nodeInstances) {
|
|
294
|
+
return new Map(Object.entries(nodeInstances).map(([nodeIdentity, packageDefinitionId]) => [
|
|
295
|
+
nodeIdentity,
|
|
296
|
+
findByPackageId(records, packageDefinitionId).definition,
|
|
297
|
+
]));
|
|
298
|
+
}
|
|
299
|
+
function nodesFromRecords(records) {
|
|
300
|
+
return records.map((record) => {
|
|
301
|
+
return {
|
|
302
|
+
content: requireContent(record.contentIdentity),
|
|
303
|
+
definition: record.definition,
|
|
304
|
+
createdBy: record.createdBy,
|
|
305
|
+
configuration: record.configuration,
|
|
306
|
+
preparation: preparations.get(requireContent(record.contentIdentity).definition),
|
|
307
|
+
preparationComplete: preparedDefinitions.has(requireContent(record.contentIdentity).definition),
|
|
308
|
+
...(record.creationInput === null
|
|
309
|
+
? {}
|
|
310
|
+
: { creationInput: record.creationInput }),
|
|
311
|
+
providers: new Map(),
|
|
312
|
+
record,
|
|
313
|
+
};
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
function createContribution(node, context, allRecords, nodeInstances) {
|
|
317
|
+
if (node.contribution !== undefined)
|
|
318
|
+
return node.contribution;
|
|
319
|
+
const providerDefinitions = new Map();
|
|
320
|
+
const bindings = node.record?.bindings;
|
|
321
|
+
if (bindings !== undefined) {
|
|
322
|
+
for (const [identity, id] of Object.entries(bindings)) {
|
|
323
|
+
const record = findByPackageId(allRecords, id);
|
|
324
|
+
providerDefinitions.set(identity, record.definition);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
for (const [identity, provider] of node.providers) {
|
|
329
|
+
if (provider.record === undefined) {
|
|
330
|
+
throw new Error("内容闭包的包实例尚未登记:" + identity);
|
|
331
|
+
}
|
|
332
|
+
providerDefinitions.set(identity, provider.definition);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
const nativeBindings = options.strategy.bindings({
|
|
336
|
+
content: node.content,
|
|
337
|
+
contentByIdentity,
|
|
338
|
+
providers: providerDefinitions,
|
|
339
|
+
});
|
|
340
|
+
const contributionOptions = {
|
|
341
|
+
context,
|
|
342
|
+
configuration: node.configuration,
|
|
343
|
+
definition: node.definition,
|
|
344
|
+
bindings: nativeBindings,
|
|
345
|
+
createdBy: node.createdBy,
|
|
346
|
+
nodeInstances,
|
|
347
|
+
...(node.preparationComplete ? { preparation: node.preparation } : {}),
|
|
348
|
+
...(node.creationInput === undefined
|
|
349
|
+
? {}
|
|
350
|
+
: { creationInput: node.creationInput }),
|
|
351
|
+
};
|
|
352
|
+
const contribution = node.content.definition.contribute(contributionOptions);
|
|
353
|
+
const contributionDefinition = contribution.definition;
|
|
354
|
+
if (contributionDefinition.name !== node.definition.name ||
|
|
355
|
+
contributionDefinition.path !== node.definition.path ||
|
|
356
|
+
contributionDefinition.role !== node.definition.role ||
|
|
357
|
+
("packageDefinitionId" in contributionDefinition &&
|
|
358
|
+
contributionDefinition.packageDefinitionId !==
|
|
359
|
+
node.record?.packageDefinitionId)) {
|
|
360
|
+
throw new Error(`内容 ${contentIdentityLabel(node.content.identity)} 返回的包定义与已分配实例不一致:${node.definition.path}`);
|
|
361
|
+
}
|
|
362
|
+
assertPackageContribution({
|
|
363
|
+
definition: node.definition,
|
|
364
|
+
operations: contribution.operations,
|
|
365
|
+
}, {
|
|
366
|
+
definitionName: contentIdentityLabel(node.content.identity),
|
|
367
|
+
planner: "内容贡献",
|
|
368
|
+
});
|
|
369
|
+
node.contribution = contribution;
|
|
370
|
+
return node.contribution;
|
|
371
|
+
}
|
|
372
|
+
function storedRecord(state, records, nodeInstances, presetSelections) {
|
|
373
|
+
return {
|
|
374
|
+
schemaVersion: 4,
|
|
375
|
+
strategyIdentity: options.strategy.identity,
|
|
376
|
+
strategyState: state,
|
|
377
|
+
packages: records.map(({ definition: _definition, ...record }) => record),
|
|
378
|
+
nodeInstances,
|
|
379
|
+
presetSelections,
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
function selectedPreset(preset) {
|
|
383
|
+
return preset.identity;
|
|
384
|
+
}
|
|
385
|
+
function mergePresetSelections(existing, added) {
|
|
386
|
+
const selections = new Map();
|
|
387
|
+
for (const selection of [...existing, ...added]) {
|
|
388
|
+
selections.set(presetSelectionKey(selection), selection);
|
|
389
|
+
}
|
|
390
|
+
return [...selections.values()];
|
|
391
|
+
}
|
|
392
|
+
async function validatePresetUpdate(targetRoot, context, contributions, nodeInstances, presetSelections) {
|
|
393
|
+
for (const selection of presetSelections) {
|
|
394
|
+
const presetMember = presetsByIdentity.get(presetSelectionKey(selection));
|
|
395
|
+
if (presetMember === undefined) {
|
|
396
|
+
throw new Error(`生成记录所选预设不可用:${contentIdentityLabel(selection)}`);
|
|
397
|
+
}
|
|
398
|
+
await presetMember.definition.validateUpdate?.({
|
|
399
|
+
targetRoot,
|
|
400
|
+
context,
|
|
401
|
+
contributions,
|
|
402
|
+
nodeInstances,
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function computePresetProjectContributions(context, contributions, nodeInstances, presetSelections) {
|
|
407
|
+
return presetSelections.flatMap((selection) => {
|
|
408
|
+
const presetMember = presetsByIdentity.get(presetSelectionKey(selection));
|
|
409
|
+
if (presetMember === undefined) {
|
|
410
|
+
throw new Error(`生成记录所选预设不可用:${contentIdentityLabel(selection)}`);
|
|
411
|
+
}
|
|
412
|
+
if (presetMember.definition.project === undefined)
|
|
413
|
+
return [];
|
|
414
|
+
return presetMember.definition.project({
|
|
415
|
+
context,
|
|
416
|
+
contributions,
|
|
417
|
+
nodeInstances,
|
|
418
|
+
});
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
function project(context, state, blueprint, records, contributions, nodeInstances, presetSelections) {
|
|
422
|
+
const resolvedNodeInstances = resolveNodeInstances(records, nodeInstances);
|
|
423
|
+
const presetProjectContributions = computePresetProjectContributions(context, contributions, resolvedNodeInstances, presetSelections);
|
|
424
|
+
const projection = options.strategy.project({
|
|
425
|
+
context,
|
|
426
|
+
state,
|
|
427
|
+
blueprint,
|
|
428
|
+
packages: records,
|
|
429
|
+
contributions,
|
|
430
|
+
nodeInstances: resolvedNodeInstances,
|
|
431
|
+
presetProjectContributions,
|
|
432
|
+
});
|
|
433
|
+
const projectedBlueprint = assertProjectBlueprint(projection.blueprint ?? blueprint);
|
|
434
|
+
const allocatedDefinitions = new Map(records.map((record) => [record.packageDefinitionId, record.definition]));
|
|
435
|
+
if (projectedBlueprint.packages.length !== allocatedDefinitions.size) {
|
|
436
|
+
throw new Error("策略蓝图必须引用完整且唯一的已分配包实例");
|
|
437
|
+
}
|
|
438
|
+
for (const projectedDefinition of projectedBlueprint.packages) {
|
|
439
|
+
const allocated = allocatedDefinitions.get(projectedDefinition.packageDefinitionId);
|
|
440
|
+
if (allocated === undefined ||
|
|
441
|
+
allocated.name !== projectedDefinition.name ||
|
|
442
|
+
allocated.path !== projectedDefinition.path ||
|
|
443
|
+
allocated.role !== projectedDefinition.role) {
|
|
444
|
+
throw new Error("策略蓝图中的包定义必须与生成器分配的包实例一致:" +
|
|
445
|
+
projectedDefinition.path);
|
|
446
|
+
}
|
|
447
|
+
allocatedDefinitions.delete(projectedDefinition.packageDefinitionId);
|
|
448
|
+
}
|
|
449
|
+
if (allocatedDefinitions.size > 0) {
|
|
450
|
+
throw new Error("策略蓝图遗漏了已分配的包实例");
|
|
451
|
+
}
|
|
452
|
+
const generationRecord = storedRecord(state, records, nodeInstances, presetSelections);
|
|
453
|
+
return {
|
|
454
|
+
...projection,
|
|
455
|
+
blueprint: projectedBlueprint,
|
|
456
|
+
operations: [
|
|
457
|
+
...projection.operations,
|
|
458
|
+
{
|
|
459
|
+
kind: "writeJson",
|
|
460
|
+
to: ".template/generation.json",
|
|
461
|
+
value: generationRecord,
|
|
462
|
+
},
|
|
463
|
+
],
|
|
464
|
+
generationRecord,
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
function expandDependencies(options_) {
|
|
468
|
+
const newNodes = new Map();
|
|
469
|
+
const visiting = new Set();
|
|
470
|
+
const expanded = new Set();
|
|
471
|
+
const visit = (node) => {
|
|
472
|
+
const identity = contentIdentityKey(node.content.identity);
|
|
473
|
+
const key = identity + "\u0000" + node.definition.path;
|
|
474
|
+
if (visiting.has(key)) {
|
|
475
|
+
throw new Error("显式内容依赖形成循环:" +
|
|
476
|
+
contentIdentityLabel(node.content.identity));
|
|
477
|
+
}
|
|
478
|
+
if (expanded.has(key))
|
|
479
|
+
return;
|
|
480
|
+
visiting.add(key);
|
|
481
|
+
if (node.record === undefined)
|
|
482
|
+
newNodes.set(key, node);
|
|
483
|
+
node.preparation = prepareContent(node.content);
|
|
484
|
+
node.preparationComplete = true;
|
|
485
|
+
const dependencies = options.strategy.dependencies({
|
|
486
|
+
content: node.content,
|
|
487
|
+
contentByIdentity,
|
|
488
|
+
configuration: node.configuration,
|
|
489
|
+
...(node.creationInput === undefined
|
|
490
|
+
? {}
|
|
491
|
+
: { creationInput: node.creationInput }),
|
|
492
|
+
});
|
|
493
|
+
for (const dependencyIdentity of dependencies) {
|
|
494
|
+
const dependencyKey = contentIdentityKey(dependencyIdentity);
|
|
495
|
+
const dependency = requireContent(dependencyIdentity);
|
|
496
|
+
const candidates = [...options_.existing, ...newNodes.values()].filter((candidate) => contentIdentityKey(candidate.content.identity) === dependencyKey);
|
|
497
|
+
const boundId = node.record?.bindings[dependencyKey];
|
|
498
|
+
const bound = boundId === undefined
|
|
499
|
+
? undefined
|
|
500
|
+
: candidates.find((candidate) => candidate.record?.packageDefinitionId === boundId);
|
|
501
|
+
if (bound === undefined && candidates.length > 1) {
|
|
502
|
+
throw new Error("依赖内容有多个持久实例,无法唯一绑定:" +
|
|
503
|
+
contentIdentityLabel(dependencyIdentity));
|
|
504
|
+
}
|
|
505
|
+
let provider = bound ?? candidates[0];
|
|
506
|
+
if (provider === undefined) {
|
|
507
|
+
if (dependency.definition.instance !== "shared") {
|
|
508
|
+
throw new Error("缺少明确的独立依赖实例:" +
|
|
509
|
+
contentIdentityLabel(dependencyIdentity));
|
|
510
|
+
}
|
|
511
|
+
const definition = options.strategy.createDefinition({
|
|
512
|
+
context: options_.context,
|
|
513
|
+
content: dependency,
|
|
514
|
+
});
|
|
515
|
+
const occupied = [...options_.existing, ...newNodes.values()].find((candidate) => candidate.definition.name === definition.name ||
|
|
516
|
+
candidate.definition.path === definition.path);
|
|
517
|
+
if (occupied !== undefined) {
|
|
518
|
+
throw new Error("共享依赖默认身份已被占用:" + definition.path);
|
|
519
|
+
}
|
|
520
|
+
provider = {
|
|
521
|
+
content: dependency,
|
|
522
|
+
definition,
|
|
523
|
+
createdBy: "shared-dependency",
|
|
524
|
+
configuration: normalizeConfiguration(dependency, undefined),
|
|
525
|
+
providers: new Map(),
|
|
526
|
+
};
|
|
527
|
+
newNodes.set(dependencyKey + "\u0000" + definition.path, provider);
|
|
528
|
+
}
|
|
529
|
+
node.providers.set(dependencyKey, provider);
|
|
530
|
+
visit(provider);
|
|
531
|
+
}
|
|
532
|
+
visiting.delete(key);
|
|
533
|
+
expanded.add(key);
|
|
534
|
+
};
|
|
535
|
+
const explicitByContent = new Set();
|
|
536
|
+
const explicitByPath = new Set();
|
|
537
|
+
const explicitByNode = new Set();
|
|
538
|
+
for (const root of options_.roots) {
|
|
539
|
+
const identity = contentIdentityKey(root.content.identity);
|
|
540
|
+
const key = identity + "\u0000" + root.definition.path;
|
|
541
|
+
if (explicitByNode.has(root.nodeIdentity ?? "")) {
|
|
542
|
+
throw new Error("显式初始化节点身份重复:" + root.nodeIdentity);
|
|
543
|
+
}
|
|
544
|
+
explicitByNode.add(root.nodeIdentity ?? "");
|
|
545
|
+
if (root.content.definition.instance === "independent" &&
|
|
546
|
+
explicitByContent.has(identity)) {
|
|
547
|
+
throw new Error("同一独立内容不能重复作为显式根:" +
|
|
548
|
+
contentIdentityLabel(root.content.identity));
|
|
549
|
+
}
|
|
550
|
+
explicitByContent.add(identity);
|
|
551
|
+
if (explicitByPath.has(root.definition.path)) {
|
|
552
|
+
throw new Error("显式初始化根路径重复:" + root.definition.path);
|
|
553
|
+
}
|
|
554
|
+
explicitByPath.add(root.definition.path);
|
|
555
|
+
if (root.record === undefined)
|
|
556
|
+
newNodes.set(key, root);
|
|
557
|
+
}
|
|
558
|
+
for (const root of options_.roots)
|
|
559
|
+
visit(root);
|
|
560
|
+
const nodes = [...newNodes.values()];
|
|
561
|
+
for (const node of nodes) {
|
|
562
|
+
const persisted = {
|
|
563
|
+
...node.definition,
|
|
564
|
+
packageDefinitionId: packageId({
|
|
565
|
+
contentIdentity: node.content.identity,
|
|
566
|
+
createdBy: node.createdBy,
|
|
567
|
+
definition: node.definition,
|
|
568
|
+
occupied: options_.occupiedIds,
|
|
569
|
+
}),
|
|
570
|
+
};
|
|
571
|
+
options_.occupiedIds.add(persisted.packageDefinitionId);
|
|
572
|
+
node.definition = persisted;
|
|
573
|
+
node.record = {
|
|
574
|
+
contentIdentity: node.content.identity,
|
|
575
|
+
createdBy: node.createdBy,
|
|
576
|
+
packageDefinitionId: persisted.packageDefinitionId,
|
|
577
|
+
creationInput: node.creationInput ?? null,
|
|
578
|
+
configuration: node.configuration,
|
|
579
|
+
bindings: {},
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
for (const node of new Set([...nodes, ...options_.roots])) {
|
|
583
|
+
const bindings = Object.fromEntries([...node.providers].map(([identity, provider]) => {
|
|
584
|
+
if (provider.record === undefined) {
|
|
585
|
+
throw new Error("内容闭包绑定缺少包实例:" + identity);
|
|
586
|
+
}
|
|
587
|
+
return [identity, provider.record.packageDefinitionId];
|
|
588
|
+
}));
|
|
589
|
+
node.record = { ...node.record, bindings };
|
|
590
|
+
}
|
|
591
|
+
return nodes;
|
|
592
|
+
}
|
|
593
|
+
function persistedContributions(nodes, context, records, nodeInstances) {
|
|
594
|
+
return nodes.map((node) => createContribution(node, context, records, nodeInstances));
|
|
595
|
+
}
|
|
596
|
+
async function init(initOptions) {
|
|
597
|
+
try {
|
|
598
|
+
const selectedPresets = [];
|
|
599
|
+
for (const root of initOptions.selection.roots) {
|
|
600
|
+
if (!("preset" in root))
|
|
601
|
+
continue;
|
|
602
|
+
selectedPresets.push(selectedPreset(resolvePreset(root.preset)));
|
|
603
|
+
}
|
|
604
|
+
const presetSelections = mergePresetSelections([], selectedPresets);
|
|
605
|
+
const selectionRoots = initOptions.selection.roots.flatMap((root) => "preset" in root
|
|
606
|
+
? expandPreset({
|
|
607
|
+
preset: resolvePreset(root.preset),
|
|
608
|
+
operation: "init",
|
|
609
|
+
configuration: root.configuration,
|
|
610
|
+
...(root.creationInput === undefined
|
|
611
|
+
? {}
|
|
612
|
+
: { creationInput: root.creationInput }),
|
|
613
|
+
})
|
|
614
|
+
: [
|
|
615
|
+
{
|
|
616
|
+
...root,
|
|
617
|
+
contentIdentity: requireContent(root.contentIdentity).identity,
|
|
618
|
+
},
|
|
619
|
+
]);
|
|
620
|
+
if (selectionRoots.length === 0) {
|
|
621
|
+
throw new Error("初始化至少需要一个显式内容根");
|
|
622
|
+
}
|
|
623
|
+
const rootsByIdentity = new Set();
|
|
624
|
+
for (const root of selectionRoots) {
|
|
625
|
+
if (root.nodeIdentity.length === 0) {
|
|
626
|
+
throw new Error("显式初始化节点身份不能为空");
|
|
627
|
+
}
|
|
628
|
+
if (rootsByIdentity.has(root.nodeIdentity)) {
|
|
629
|
+
throw new Error("显式初始化节点身份重复:" + root.nodeIdentity);
|
|
630
|
+
}
|
|
631
|
+
rootsByIdentity.add(root.nodeIdentity);
|
|
632
|
+
requireContent(root.contentIdentity);
|
|
633
|
+
}
|
|
634
|
+
const prepared = options.strategy.initialize({
|
|
635
|
+
targetRoot: initOptions.targetRoot,
|
|
636
|
+
input: initOptions.strategyInput,
|
|
637
|
+
selection: selectionRoots,
|
|
638
|
+
contentByIdentity,
|
|
639
|
+
});
|
|
640
|
+
const roots = selectionRoots.map((root) => {
|
|
641
|
+
const content = requireContent(root.contentIdentity);
|
|
642
|
+
const definition = options.strategy.createDefinition({
|
|
643
|
+
context: prepared.context,
|
|
644
|
+
content,
|
|
645
|
+
...(root.layout === undefined ? {} : { layout: root.layout }),
|
|
646
|
+
...(root.creationInput === undefined
|
|
647
|
+
? {}
|
|
648
|
+
: { creationInput: root.creationInput }),
|
|
649
|
+
});
|
|
650
|
+
return {
|
|
651
|
+
content,
|
|
652
|
+
definition,
|
|
653
|
+
nodeIdentity: root.nodeIdentity,
|
|
654
|
+
createdBy: "initialization",
|
|
655
|
+
configuration: normalizeConfiguration(content, root.configuration),
|
|
656
|
+
...(root.creationInput === undefined
|
|
657
|
+
? {}
|
|
658
|
+
: { creationInput: root.creationInput }),
|
|
659
|
+
providers: new Map(),
|
|
660
|
+
};
|
|
661
|
+
});
|
|
662
|
+
const nodes = expandDependencies({
|
|
663
|
+
roots,
|
|
664
|
+
existing: [],
|
|
665
|
+
context: prepared.context,
|
|
666
|
+
occupiedIds: new Set(),
|
|
667
|
+
});
|
|
668
|
+
const records = nodes.flatMap((node) => node.record === undefined ? [] : [node.record]);
|
|
669
|
+
const nodeInstances = Object.fromEntries(roots.map((root) => {
|
|
670
|
+
if (root.record === undefined) {
|
|
671
|
+
throw new Error("显式初始化节点没有持久实例:" + root.nodeIdentity);
|
|
672
|
+
}
|
|
673
|
+
return [root.nodeIdentity, root.record.packageDefinitionId];
|
|
674
|
+
}));
|
|
675
|
+
const blueprint = assertProjectBlueprint({
|
|
676
|
+
schemaVersion: 3,
|
|
677
|
+
packages: nodes.map((node) => node.definition),
|
|
678
|
+
});
|
|
679
|
+
const packageStates = resolvePackageStates(records, blueprint);
|
|
680
|
+
validateRequiredBindings(packageStates);
|
|
681
|
+
validateNodeInstances(packageStates, nodeInstances);
|
|
682
|
+
const contributions = persistedContributions(nodes, prepared.context, packageStates, resolveNodeInstances(packageStates, nodeInstances));
|
|
683
|
+
const projectPlan = project(prepared.context, prepared.state, blueprint, packageStates, contributions, nodeInstances, presetSelections);
|
|
684
|
+
await materializeProjectProjection({
|
|
685
|
+
operations: projectPlan.operations,
|
|
686
|
+
reconciliation: projectPlan.reconciliation,
|
|
687
|
+
});
|
|
688
|
+
if (!initOptions.dryRun) {
|
|
689
|
+
try {
|
|
690
|
+
await renderNewProject({
|
|
691
|
+
targetRoot: path.resolve(initOptions.targetRoot),
|
|
692
|
+
operations: [...projectPlan.operations],
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
catch (error) {
|
|
696
|
+
return fail("render", error);
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
return {
|
|
700
|
+
status: "success",
|
|
701
|
+
dryRun: initOptions.dryRun ?? false,
|
|
702
|
+
blueprint: projectPlan.blueprint,
|
|
703
|
+
generationRecord: projectPlan.generationRecord,
|
|
704
|
+
projection: projectPlan,
|
|
705
|
+
actions: [],
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
catch (error) {
|
|
709
|
+
return fail("planning", error);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
async function restoreRepository(repositoryRoot) {
|
|
713
|
+
const blueprintValue = JSON.parse(await readFile(path.join(repositoryRoot, ".template/blueprint.json"), "utf8"));
|
|
714
|
+
const blueprint = assertProjectBlueprint(blueprintValue);
|
|
715
|
+
const record = parseGenerationRecord(JSON.parse(await readFile(path.join(repositoryRoot, ".template/generation.json"), "utf8")));
|
|
716
|
+
if (record.strategyIdentity !== options.strategy.identity) {
|
|
717
|
+
throw new Error("目标仓库使用了不兼容的工作区策略");
|
|
718
|
+
}
|
|
719
|
+
const state = options.strategy.parseState(record.strategyState);
|
|
720
|
+
const packageStates = resolvePackageStates(record.packages, blueprint);
|
|
721
|
+
validateNodeInstances(packageStates, record.nodeInstances);
|
|
722
|
+
validatePresetSelections(record.presetSelections);
|
|
723
|
+
return { blueprint, record, state, packageStates };
|
|
724
|
+
}
|
|
725
|
+
async function add(addOptions) {
|
|
726
|
+
try {
|
|
727
|
+
const repositoryRoot = path.resolve(addOptions.repositoryRoot);
|
|
728
|
+
let blueprint;
|
|
729
|
+
let record;
|
|
730
|
+
let packageStates;
|
|
731
|
+
let state;
|
|
732
|
+
try {
|
|
733
|
+
({ blueprint, record, state, packageStates } =
|
|
734
|
+
await restoreRepository(repositoryRoot));
|
|
735
|
+
}
|
|
736
|
+
catch (error) {
|
|
737
|
+
return fail("metadata", error, options.strategy.diagnoseFailure?.(error));
|
|
738
|
+
}
|
|
739
|
+
let requiredDependencies;
|
|
740
|
+
try {
|
|
741
|
+
for (const packageRecord of packageStates) {
|
|
742
|
+
prepareContent(requireContent(packageRecord.contentIdentity));
|
|
743
|
+
}
|
|
744
|
+
requiredDependencies = requiredDependencyIdentities(packageStates);
|
|
745
|
+
}
|
|
746
|
+
catch (error) {
|
|
747
|
+
return fail("planning", error);
|
|
748
|
+
}
|
|
749
|
+
try {
|
|
750
|
+
validateRequiredBindings(packageStates, requiredDependencies);
|
|
751
|
+
}
|
|
752
|
+
catch (error) {
|
|
753
|
+
return fail("metadata", error, options.strategy.diagnoseFailure?.(error));
|
|
754
|
+
}
|
|
755
|
+
const additionRoots = "preset" in addOptions
|
|
756
|
+
? expandPreset({
|
|
757
|
+
preset: resolvePreset(addOptions.preset),
|
|
758
|
+
operation: "add",
|
|
759
|
+
configuration: addOptions.configuration,
|
|
760
|
+
...(addOptions.creationInput === undefined
|
|
761
|
+
? {}
|
|
762
|
+
: { creationInput: addOptions.creationInput }),
|
|
763
|
+
})
|
|
764
|
+
: [
|
|
765
|
+
{
|
|
766
|
+
nodeIdentity: "addition",
|
|
767
|
+
configuration: addOptions.configuration,
|
|
768
|
+
contentIdentity: addOptions.contentIdentity,
|
|
769
|
+
...(addOptions.creationInput === undefined
|
|
770
|
+
? {}
|
|
771
|
+
: { creationInput: addOptions.creationInput }),
|
|
772
|
+
},
|
|
773
|
+
];
|
|
774
|
+
if (additionRoots.length !== 1) {
|
|
775
|
+
throw new Error("加包预设必须恰好包含一个节点");
|
|
776
|
+
}
|
|
777
|
+
const selectionRoot = additionRoots[0];
|
|
778
|
+
if (selectionRoot === undefined) {
|
|
779
|
+
throw new Error("加包预设必须恰好包含一个节点");
|
|
780
|
+
}
|
|
781
|
+
const selected = requireContent(selectionRoot.contentIdentity);
|
|
782
|
+
const creationInput = selectionRoot.creationInput;
|
|
783
|
+
const configuration = normalizeConfiguration(selected, selectionRoot.configuration);
|
|
784
|
+
const addedPresetMember = "preset" in addOptions ? resolvePreset(addOptions.preset) : undefined;
|
|
785
|
+
const addedPreset = addedPresetMember === undefined
|
|
786
|
+
? undefined
|
|
787
|
+
: selectedPreset(addedPresetMember);
|
|
788
|
+
const addedProjectPreset = addedPresetMember?.definition.project === undefined
|
|
789
|
+
? undefined
|
|
790
|
+
: addedPreset;
|
|
791
|
+
const existingNodes = nodesFromRecords(packageStates);
|
|
792
|
+
const currentNodeInstances = resolveNodeInstances(packageStates, record.nodeInstances);
|
|
793
|
+
try {
|
|
794
|
+
prepareContent(selected);
|
|
795
|
+
}
|
|
796
|
+
catch (error) {
|
|
797
|
+
return fail("planning", error);
|
|
798
|
+
}
|
|
799
|
+
let context;
|
|
800
|
+
try {
|
|
801
|
+
context = await options.strategy.prepareUpdate({
|
|
802
|
+
targetRoot: repositoryRoot,
|
|
803
|
+
state,
|
|
804
|
+
content: selected,
|
|
805
|
+
contentByIdentity,
|
|
806
|
+
configuration,
|
|
807
|
+
packages: packageStates,
|
|
808
|
+
nodeInstances: currentNodeInstances,
|
|
809
|
+
...(creationInput === undefined ? {} : { creationInput }),
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
catch (error) {
|
|
813
|
+
return fail("metadata", error, options.strategy.diagnoseFailure?.(error));
|
|
814
|
+
}
|
|
815
|
+
const existingContributions = existingNodes.map((node) => createContribution(node, context, packageStates, currentNodeInstances));
|
|
816
|
+
const definition = options.strategy.createDefinition({
|
|
817
|
+
context,
|
|
818
|
+
content: selected,
|
|
819
|
+
...(selectionRoot.layout === undefined
|
|
820
|
+
? {}
|
|
821
|
+
: { layout: selectionRoot.layout }),
|
|
822
|
+
...(creationInput === undefined ? {} : { creationInput }),
|
|
823
|
+
});
|
|
824
|
+
const requested = {
|
|
825
|
+
content: selected,
|
|
826
|
+
definition,
|
|
827
|
+
createdBy: "addition",
|
|
828
|
+
configuration,
|
|
829
|
+
...(addedProjectPreset !== undefined
|
|
830
|
+
? { nodeIdentity: selectionRoot.nodeIdentity }
|
|
831
|
+
: {}),
|
|
832
|
+
...(creationInput === undefined ? {} : { creationInput }),
|
|
833
|
+
providers: new Map(),
|
|
834
|
+
};
|
|
835
|
+
let preparedAddition;
|
|
836
|
+
const prepareAdditionNodes = () => {
|
|
837
|
+
if (preparedAddition !== undefined)
|
|
838
|
+
return preparedAddition;
|
|
839
|
+
try {
|
|
840
|
+
const nodes = expandDependencies({
|
|
841
|
+
roots: [requested],
|
|
842
|
+
existing: existingNodes,
|
|
843
|
+
context,
|
|
844
|
+
occupiedIds: new Set(record.packages.map((item) => item.packageDefinitionId)),
|
|
845
|
+
});
|
|
846
|
+
const records = nodes.flatMap((node) => node.record === undefined ? [] : [node.record]);
|
|
847
|
+
const allRecords = [...record.packages, ...records];
|
|
848
|
+
const afterBlueprint = {
|
|
849
|
+
...blueprint,
|
|
850
|
+
packages: [
|
|
851
|
+
...blueprint.packages,
|
|
852
|
+
...nodes.map((node) => node.definition),
|
|
853
|
+
],
|
|
854
|
+
};
|
|
855
|
+
const packages = resolvePackageStates(allRecords, afterBlueprint);
|
|
856
|
+
const addedPackageIds = new Set(records.map((item) => item.packageDefinitionId));
|
|
857
|
+
const addedPackages = packages.filter((item) => addedPackageIds.has(item.packageDefinitionId));
|
|
858
|
+
validateRequiredBindings(addedPackages, requiredDependencyIdentities(addedPackages), packages);
|
|
859
|
+
const nodeInstanceIds = {
|
|
860
|
+
...record.nodeInstances,
|
|
861
|
+
};
|
|
862
|
+
if (addedProjectPreset !== undefined &&
|
|
863
|
+
!Object.hasOwn(nodeInstanceIds, selectionRoot.nodeIdentity)) {
|
|
864
|
+
const addedRoot = nodes.find((node) => node.nodeIdentity === selectionRoot.nodeIdentity);
|
|
865
|
+
if (addedRoot?.record === undefined) {
|
|
866
|
+
throw new Error("加包预设节点没有持久实例:" + selectionRoot.nodeIdentity);
|
|
867
|
+
}
|
|
868
|
+
nodeInstanceIds[selectionRoot.nodeIdentity] =
|
|
869
|
+
addedRoot.record.packageDefinitionId;
|
|
870
|
+
}
|
|
871
|
+
const nodeInstances = resolveNodeInstances(packages, nodeInstanceIds);
|
|
872
|
+
preparedAddition = {
|
|
873
|
+
nodes,
|
|
874
|
+
records,
|
|
875
|
+
packages,
|
|
876
|
+
blueprint: afterBlueprint,
|
|
877
|
+
nodeInstances,
|
|
878
|
+
contributions: persistedContributions(nodes, context, packages, nodeInstances),
|
|
879
|
+
};
|
|
880
|
+
return preparedAddition;
|
|
881
|
+
}
|
|
882
|
+
catch (error) {
|
|
883
|
+
throw new AdditionPlanningFailure(error);
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
try {
|
|
887
|
+
await validatePresetUpdate(repositoryRoot, context, existingContributions, currentNodeInstances, record.presetSelections);
|
|
888
|
+
const currentPresetProjectContributions = computePresetProjectContributions(context, existingContributions, currentNodeInstances, record.presetSelections);
|
|
889
|
+
const validation = await options.strategy.validateAddition?.({
|
|
890
|
+
targetRoot: repositoryRoot,
|
|
891
|
+
blueprint,
|
|
892
|
+
content: selected,
|
|
893
|
+
definition,
|
|
894
|
+
...(creationInput === undefined ? {} : { creationInput }),
|
|
895
|
+
packages: packageStates,
|
|
896
|
+
contributions: existingContributions,
|
|
897
|
+
getAdditionContributions: () => prepareAdditionNodes().contributions,
|
|
898
|
+
nodeInstances: currentNodeInstances,
|
|
899
|
+
presetProjectContributions: currentPresetProjectContributions,
|
|
900
|
+
});
|
|
901
|
+
if (validation?.status === "input-invalid")
|
|
902
|
+
return validation;
|
|
903
|
+
if (validation?.status === "conflict") {
|
|
904
|
+
return {
|
|
905
|
+
status: "conflict",
|
|
906
|
+
dryRun: addOptions.dryRun ?? false,
|
|
907
|
+
reason: "工作区策略报告了包加法冲突。",
|
|
908
|
+
conflicts: [],
|
|
909
|
+
ownerConflict: validation.conflict,
|
|
910
|
+
actions: [],
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
catch (error) {
|
|
915
|
+
if (error instanceof AdditionPlanningFailure) {
|
|
916
|
+
return fail("planning", error);
|
|
917
|
+
}
|
|
918
|
+
return fail("metadata", error, options.strategy.diagnoseFailure?.(error));
|
|
919
|
+
}
|
|
920
|
+
const conflicting = blueprint.packages.find((candidate) => candidate.name === definition.name ||
|
|
921
|
+
candidate.path === definition.path);
|
|
922
|
+
if (conflicting !== undefined) {
|
|
923
|
+
const prior = packageStates.find((item) => item.packageDefinitionId === conflicting.packageDefinitionId);
|
|
924
|
+
if (prior !== undefined &&
|
|
925
|
+
contentIdentityKey(prior.contentIdentity) ===
|
|
926
|
+
contentIdentityKey(selected.identity) &&
|
|
927
|
+
prior.definition.name === definition.name &&
|
|
928
|
+
prior.definition.path === definition.path &&
|
|
929
|
+
isDeepStrictEqual(prior.configuration, configuration) &&
|
|
930
|
+
isDeepStrictEqual(prior.creationInput ?? undefined, selectionRoot.creationInput)) {
|
|
931
|
+
return {
|
|
932
|
+
status: "success",
|
|
933
|
+
dryRun: addOptions.dryRun ?? false,
|
|
934
|
+
blueprint,
|
|
935
|
+
generationRecord: record,
|
|
936
|
+
projection: null,
|
|
937
|
+
actions: [],
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
const samePackageIdentity = prior !== undefined &&
|
|
941
|
+
contentIdentityKey(prior.contentIdentity) ===
|
|
942
|
+
contentIdentityKey(selected.identity) &&
|
|
943
|
+
prior.definition.name === definition.name &&
|
|
944
|
+
prior.definition.path === definition.path;
|
|
945
|
+
return {
|
|
946
|
+
status: "conflict",
|
|
947
|
+
dryRun: addOptions.dryRun ?? false,
|
|
948
|
+
reason: samePackageIdentity
|
|
949
|
+
? "已存在的包实例不能接受不同的加包输入。"
|
|
950
|
+
: "目标包名称或路径已被其他实例占用。",
|
|
951
|
+
conflicts: [],
|
|
952
|
+
identityConflict: {
|
|
953
|
+
existing: packageIdentity(conflicting),
|
|
954
|
+
requested: packageIdentity(definition),
|
|
955
|
+
},
|
|
956
|
+
actions: [],
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
const prepared = prepareAdditionNodes();
|
|
960
|
+
const additions = prepared.nodes;
|
|
961
|
+
const allRecords = prepared.packages;
|
|
962
|
+
const afterBlueprint = assertProjectBlueprint(prepared.blueprint);
|
|
963
|
+
const afterNodeInstanceIds = {
|
|
964
|
+
...record.nodeInstances,
|
|
965
|
+
};
|
|
966
|
+
if (addedProjectPreset !== undefined) {
|
|
967
|
+
if (Object.hasOwn(record.nodeInstances, selectionRoot.nodeIdentity)) {
|
|
968
|
+
throw new Error("加包预设节点身份已存在:" + selectionRoot.nodeIdentity);
|
|
969
|
+
}
|
|
970
|
+
const addedRoot = additions.find((node) => node.nodeIdentity === selectionRoot.nodeIdentity);
|
|
971
|
+
if (addedRoot?.record === undefined) {
|
|
972
|
+
throw new Error("加包预设节点没有持久实例:" + selectionRoot.nodeIdentity);
|
|
973
|
+
}
|
|
974
|
+
afterNodeInstanceIds[selectionRoot.nodeIdentity] =
|
|
975
|
+
addedRoot.record.packageDefinitionId;
|
|
976
|
+
}
|
|
977
|
+
const afterPresetSelections = mergePresetSelections(record.presetSelections, addedPreset === undefined ? [] : [addedPreset]);
|
|
978
|
+
const beforeContributions = persistedContributions(existingNodes, context, packageStates, currentNodeInstances);
|
|
979
|
+
const afterNodes = [...existingNodes, ...additions];
|
|
980
|
+
const afterContributions = persistedContributions(afterNodes, context, allRecords, resolveNodeInstances(allRecords, afterNodeInstanceIds));
|
|
981
|
+
const before = project(context, state, blueprint, packageStates, beforeContributions, record.nodeInstances, record.presetSelections);
|
|
982
|
+
const after = project(context, state, afterBlueprint, allRecords, afterContributions, afterNodeInstanceIds, afterPresetSelections);
|
|
983
|
+
const projectedBlueprint = after.blueprint;
|
|
984
|
+
const preconditions = additions.map((node) => ({
|
|
985
|
+
path: node.definition.path,
|
|
986
|
+
kind: "must-not-exist",
|
|
987
|
+
reason: "新包路径已存在:" + node.definition.path,
|
|
988
|
+
}));
|
|
989
|
+
const reconciliation = await reconcileAndApplyProjectProjections({
|
|
990
|
+
targetRoot: repositoryRoot,
|
|
991
|
+
before: {
|
|
992
|
+
operations: before.operations,
|
|
993
|
+
reconciliation: before.reconciliation,
|
|
994
|
+
},
|
|
995
|
+
after: {
|
|
996
|
+
operations: after.operations,
|
|
997
|
+
reconciliation: after.reconciliation,
|
|
998
|
+
},
|
|
999
|
+
preconditions,
|
|
1000
|
+
...(addOptions.dryRun === undefined
|
|
1001
|
+
? {}
|
|
1002
|
+
: { dryRun: addOptions.dryRun }),
|
|
1003
|
+
});
|
|
1004
|
+
if (!reconciliation.ok) {
|
|
1005
|
+
return {
|
|
1006
|
+
status: "conflict",
|
|
1007
|
+
dryRun: addOptions.dryRun ?? false,
|
|
1008
|
+
reason: "目标工作区的现行内容与新增投影发生冲突。",
|
|
1009
|
+
conflicts: reconciliation.conflicts,
|
|
1010
|
+
actions: [],
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
return {
|
|
1014
|
+
status: "success",
|
|
1015
|
+
dryRun: addOptions.dryRun ?? false,
|
|
1016
|
+
blueprint: projectedBlueprint,
|
|
1017
|
+
generationRecord: after.generationRecord,
|
|
1018
|
+
projection: after,
|
|
1019
|
+
actions: reconciliation.actions,
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
catch (error) {
|
|
1023
|
+
return fail(error instanceof AdditionPlanningFailure
|
|
1024
|
+
? "planning"
|
|
1025
|
+
: "reconciliation", error);
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
async function configure(configureOptions) {
|
|
1029
|
+
const repositoryRoot = path.resolve(configureOptions.repositoryRoot);
|
|
1030
|
+
let restored;
|
|
1031
|
+
try {
|
|
1032
|
+
restored = await restoreRepository(repositoryRoot);
|
|
1033
|
+
}
|
|
1034
|
+
catch (error) {
|
|
1035
|
+
return fail("metadata", error, options.strategy.diagnoseFailure?.(error));
|
|
1036
|
+
}
|
|
1037
|
+
const { blueprint, record, state, packageStates } = restored;
|
|
1038
|
+
const target = packageStates.find((item) => item.packageDefinitionId === configureOptions.packageDefinitionId);
|
|
1039
|
+
if (target === undefined)
|
|
1040
|
+
return {
|
|
1041
|
+
status: "input-invalid",
|
|
1042
|
+
issues: [{ code: "UNKNOWN_GENERATED_INSTANCE" }],
|
|
1043
|
+
};
|
|
1044
|
+
try {
|
|
1045
|
+
for (const item of packageStates)
|
|
1046
|
+
prepareContent(requireContent(item.contentIdentity));
|
|
1047
|
+
validateRequiredBindings(packageStates);
|
|
1048
|
+
}
|
|
1049
|
+
catch (error) {
|
|
1050
|
+
return fail("metadata", error, options.strategy.diagnoseFailure?.(error));
|
|
1051
|
+
}
|
|
1052
|
+
let phase = "planning";
|
|
1053
|
+
try {
|
|
1054
|
+
const selected = requireContent(target.contentIdentity);
|
|
1055
|
+
const configuration = normalizeConfiguration(selected, configureOptions.configuration);
|
|
1056
|
+
if (isDeepStrictEqual(target.configuration, configuration)) {
|
|
1057
|
+
return {
|
|
1058
|
+
status: "success",
|
|
1059
|
+
dryRun: configureOptions.dryRun ?? false,
|
|
1060
|
+
blueprint,
|
|
1061
|
+
generationRecord: record,
|
|
1062
|
+
projection: null,
|
|
1063
|
+
actions: [],
|
|
1064
|
+
};
|
|
1065
|
+
}
|
|
1066
|
+
const currentNodeInstances = resolveNodeInstances(packageStates, record.nodeInstances);
|
|
1067
|
+
const context = await options.strategy.prepareUpdate({
|
|
1068
|
+
targetRoot: repositoryRoot,
|
|
1069
|
+
state,
|
|
1070
|
+
content: selected,
|
|
1071
|
+
contentByIdentity,
|
|
1072
|
+
configuration,
|
|
1073
|
+
packages: packageStates,
|
|
1074
|
+
nodeInstances: currentNodeInstances,
|
|
1075
|
+
...(target.creationInput === null
|
|
1076
|
+
? {}
|
|
1077
|
+
: { creationInput: target.creationInput }),
|
|
1078
|
+
});
|
|
1079
|
+
const beforeNodes = nodesFromRecords(packageStates);
|
|
1080
|
+
const beforeContributions = persistedContributions(beforeNodes, context, packageStates, currentNodeInstances);
|
|
1081
|
+
await validatePresetUpdate(repositoryRoot, context, beforeContributions, currentNodeInstances, record.presetSelections);
|
|
1082
|
+
const before = project(context, state, blueprint, packageStates, beforeContributions, record.nodeInstances, record.presetSelections);
|
|
1083
|
+
const afterNodes = nodesFromRecords(packageStates.map((item) => item.packageDefinitionId === target.packageDefinitionId
|
|
1084
|
+
? { ...item, configuration }
|
|
1085
|
+
: item));
|
|
1086
|
+
const changed = afterNodes.find((node) => node.record?.packageDefinitionId === target.packageDefinitionId);
|
|
1087
|
+
const additions = expandDependencies({
|
|
1088
|
+
roots: [changed],
|
|
1089
|
+
existing: afterNodes,
|
|
1090
|
+
context,
|
|
1091
|
+
occupiedIds: new Set(record.packages.map((item) => item.packageDefinitionId)),
|
|
1092
|
+
});
|
|
1093
|
+
const allNodes = [...afterNodes, ...additions];
|
|
1094
|
+
const afterBlueprint = assertProjectBlueprint({
|
|
1095
|
+
...blueprint,
|
|
1096
|
+
packages: [
|
|
1097
|
+
...blueprint.packages,
|
|
1098
|
+
...additions.map((node) => node.definition),
|
|
1099
|
+
],
|
|
1100
|
+
});
|
|
1101
|
+
const afterPackages = resolvePackageStates(allNodes.map((node) => node.record), afterBlueprint);
|
|
1102
|
+
validateRequiredBindings(afterPackages);
|
|
1103
|
+
const afterNodeInstances = resolveNodeInstances(afterPackages, record.nodeInstances);
|
|
1104
|
+
const after = project(context, state, afterBlueprint, afterPackages, persistedContributions(allNodes, context, afterPackages, afterNodeInstances), record.nodeInstances, record.presetSelections);
|
|
1105
|
+
phase = "reconciliation";
|
|
1106
|
+
const reconciliation = await reconcileAndApplyProjectProjections({
|
|
1107
|
+
targetRoot: repositoryRoot,
|
|
1108
|
+
before: {
|
|
1109
|
+
operations: before.operations,
|
|
1110
|
+
reconciliation: before.reconciliation,
|
|
1111
|
+
},
|
|
1112
|
+
after: {
|
|
1113
|
+
operations: after.operations,
|
|
1114
|
+
reconciliation: after.reconciliation,
|
|
1115
|
+
},
|
|
1116
|
+
preconditions: additions.map((node) => ({
|
|
1117
|
+
path: node.definition.path,
|
|
1118
|
+
kind: "must-not-exist",
|
|
1119
|
+
reason: "新共享依赖路径已存在:" + node.definition.path,
|
|
1120
|
+
})),
|
|
1121
|
+
...(configureOptions.dryRun === undefined
|
|
1122
|
+
? {}
|
|
1123
|
+
: { dryRun: configureOptions.dryRun }),
|
|
1124
|
+
});
|
|
1125
|
+
if (!reconciliation.ok)
|
|
1126
|
+
return {
|
|
1127
|
+
status: "conflict",
|
|
1128
|
+
dryRun: configureOptions.dryRun ?? false,
|
|
1129
|
+
reason: "目标工作区的现行内容与配置投影发生冲突。",
|
|
1130
|
+
conflicts: reconciliation.conflicts,
|
|
1131
|
+
actions: [],
|
|
1132
|
+
};
|
|
1133
|
+
return {
|
|
1134
|
+
status: "success",
|
|
1135
|
+
dryRun: configureOptions.dryRun ?? false,
|
|
1136
|
+
blueprint: after.blueprint,
|
|
1137
|
+
generationRecord: after.generationRecord,
|
|
1138
|
+
projection: after,
|
|
1139
|
+
actions: reconciliation.actions,
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
catch (error) {
|
|
1143
|
+
return fail(phase, error, options.strategy.diagnoseFailure?.(error));
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
return { init, add, configure };
|
|
1147
|
+
}
|