@ykdz/template 0.1.0-experimental.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/application.d.ts +18 -48
- package/dist/application.js +164 -111
- package/dist/input-schemas.d.ts +0 -14
- package/dist/input-schemas.js +0 -11
- package/dist/input-validation.js +3 -30
- package/dist/main.js +79 -180
- package/dist/preset-catalog.d.ts +410 -29
- package/dist/preset-catalog.js +4 -30
- package/dist/result-schemas.d.ts +64 -65
- package/dist/result-schemas.js +8 -8
- package/node_modules/@ykdz/default-content-authoring/dist/contracts.d.ts +240 -0
- package/node_modules/@ykdz/default-content-authoring/dist/environment-needs.d.ts +16 -0
- package/node_modules/@ykdz/default-content-authoring/dist/preset-root-contribution.d.ts +36 -0
- package/node_modules/@ykdz/default-content-authoring/dist/preset-root-contribution.js +1 -0
- package/node_modules/@ykdz/default-content-authoring/dist/reference-package.d.ts +65 -0
- package/node_modules/@ykdz/default-content-authoring/dist/reference-package.js +742 -0
- package/node_modules/@ykdz/default-content-authoring/package.json +59 -0
- package/node_modules/@ykdz/preset-rust-bin/native/package.json +2 -0
- package/node_modules/@ykdz/preset-rust-bin/native/template-dist/definition.d.ts +2 -40
- package/node_modules/@ykdz/preset-rust-bin/native/template-dist/definition.d.ts.map +1 -1
- package/node_modules/@ykdz/preset-rust-bin/native/template-dist/definition.js +3 -2
- package/node_modules/@ykdz/preset-ts-cli/native/package.json +4 -0
- package/node_modules/@ykdz/preset-ts-cli/native/template-dist/definition.d.ts +2 -15
- package/node_modules/@ykdz/preset-ts-cli/native/template-dist/definition.d.ts.map +1 -1
- package/node_modules/@ykdz/preset-ts-lib/native/package.json +3 -0
- package/node_modules/@ykdz/preset-ts-lib/native/template-dist/definition.d.ts +2 -15
- package/node_modules/@ykdz/preset-ts-lib/native/template-dist/definition.d.ts.map +1 -1
- package/node_modules/@ykdz/preset-vike-app/native/package.json +3 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/definition.d.ts +40 -23
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/definition.d.ts.map +1 -1
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/definition.js +19 -36
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/deployment.d.ts +54 -17
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/deployment.d.ts.map +1 -1
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/deployment.js +393 -207
- package/node_modules/@ykdz/preset-vike-app/package.json +2 -1
- package/node_modules/@ykdz/preset-vue-app/native/package.json +2 -0
- package/node_modules/@ykdz/preset-vue-app/native/template-dist/definition.d.ts +2 -15
- package/node_modules/@ykdz/preset-vue-app/native/template-dist/definition.d.ts.map +1 -1
- package/node_modules/@ykdz/preset-vue-hono-app/native/package.json +4 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/definition.d.ts +49 -23
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/definition.d.ts.map +1 -1
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/definition.js +31 -102
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/joint-e2e.d.ts +42 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/joint-e2e.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/joint-e2e.js +173 -0
- package/node_modules/@ykdz/reference-hono-api/native/package.json +3 -1
- package/node_modules/@ykdz/reference-hono-api/native/template-dist/definition.d.ts +1 -1
- package/node_modules/@ykdz/reference-hono-api/native/template-dist/definition.js +51 -18
- package/node_modules/@ykdz/reference-hono-api/native/tsconfig.json +1 -1
- package/node_modules/@ykdz/reference-hono-api/native/turbo.json +2 -2
- package/node_modules/@ykdz/reference-hono-api/package.json +3 -2
- package/node_modules/@ykdz/reference-npm-publication/native/README.md +14 -6
- package/node_modules/@ykdz/reference-npm-publication/native/package.json +2 -2
- package/node_modules/@ykdz/reference-npm-publication/native/resources/release.yml +4 -1
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/definition.d.ts +8 -4
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/definition.d.ts.map +1 -1
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/definition.js +68 -21
- package/node_modules/@ykdz/reference-npm-publication/package.json +1 -2
- package/node_modules/@ykdz/reference-rust-bin/native/package.json +13 -3
- package/node_modules/@ykdz/reference-rust-bin/native/resources/gitignore +5 -0
- package/node_modules/@ykdz/reference-rust-bin/native/resources/npmignore +1 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/definition.d.ts +86 -12
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/definition.d.ts.map +1 -1
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/definition.js +227 -106
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/environment.d.ts +6 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/environment.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/environment.js +44 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/rust-package-projection.d.ts +19 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/rust-package-projection.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/rust-package-projection.js +65 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/rust-toolchain-projection.d.ts +15 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/rust-toolchain-projection.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/rust-toolchain-projection.js +44 -0
- package/node_modules/@ykdz/reference-rust-bin/native/turbo.json +3 -1
- package/node_modules/@ykdz/reference-rust-bin/package.json +6 -1
- package/node_modules/@ykdz/reference-tooling-config/native/package.json +4 -5
- package/node_modules/@ykdz/reference-tooling-config/native/template/workspace/oxfmt.config.ts +1 -0
- package/node_modules/@ykdz/{template-workspace/resources → reference-tooling-config/native/template/workspace}/oxlint.config.ts +1 -1
- package/node_modules/@ykdz/reference-tooling-config/native/template-dist/definition.d.ts +1 -27
- package/node_modules/@ykdz/reference-tooling-config/native/template-dist/definition.js +53 -11
- package/node_modules/@ykdz/reference-tooling-config/native/tsconfig.json +1 -1
- package/node_modules/@ykdz/reference-tooling-config/native/turbo.json +5 -4
- package/node_modules/@ykdz/reference-tooling-config/package.json +5 -1
- package/node_modules/@ykdz/reference-ts-cli/native/package.json +7 -6
- package/node_modules/@ykdz/reference-ts-cli/native/resources/gitignore +5 -0
- package/node_modules/@ykdz/reference-ts-cli/native/resources/npmignore +1 -0
- package/node_modules/@ykdz/reference-ts-cli/native/src/cli-command-identity.ts +18 -0
- package/node_modules/@ykdz/reference-ts-cli/native/src/cli.ts +1 -1
- package/node_modules/@ykdz/reference-ts-cli/native/src/main.ts +1 -1
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/definition.d.ts +8 -6
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/definition.d.ts.map +1 -1
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/definition.js +119 -59
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/package-manifest.d.ts +7 -0
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/package-manifest.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/package-manifest.js +28 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/e2e/journeys/lookup.journey.ts +1 -1
- package/node_modules/@ykdz/reference-ts-cli/native/test/integration/command.test.ts +1 -1
- package/node_modules/@ykdz/reference-ts-cli/native/test/unit/cli-command-identity.test.ts +7 -55
- package/node_modules/@ykdz/reference-ts-cli/native/tsconfig.build.json +1 -1
- package/node_modules/@ykdz/reference-ts-cli/native/tsconfig.node.json +8 -2
- package/node_modules/@ykdz/reference-ts-cli/native/turbo.json +11 -3
- package/node_modules/@ykdz/reference-ts-cli/package.json +3 -2
- package/node_modules/@ykdz/reference-ts-lib/native/package.json +3 -1
- package/node_modules/@ykdz/reference-ts-lib/native/resources/gitignore +3 -0
- package/node_modules/@ykdz/reference-ts-lib/native/resources/npmignore +1 -0
- package/node_modules/@ykdz/reference-ts-lib/native/template-dist/definition.d.ts +1 -1
- package/node_modules/@ykdz/reference-ts-lib/native/template-dist/definition.js +70 -26
- package/node_modules/@ykdz/reference-ts-lib/native/tsconfig.node.json +1 -1
- package/node_modules/@ykdz/reference-ts-lib/native/turbo.json +3 -1
- package/node_modules/@ykdz/reference-ts-lib/package.json +3 -2
- package/node_modules/@ykdz/reference-vike-db/native/package.json +3 -1
- package/node_modules/@ykdz/reference-vike-db/native/template-dist/definition.d.ts +1 -1
- package/node_modules/@ykdz/reference-vike-db/native/template-dist/definition.js +70 -23
- package/node_modules/@ykdz/reference-vike-db/native/tsconfig.node.json +1 -1
- package/node_modules/@ykdz/reference-vike-db/native/turbo.json +3 -3
- package/node_modules/@ykdz/reference-vike-db/package.json +4 -2
- package/node_modules/@ykdz/reference-vike-migrations/native/package.json +3 -1
- package/node_modules/@ykdz/reference-vike-migrations/native/template-dist/definition.d.ts +2 -1
- package/node_modules/@ykdz/reference-vike-migrations/native/template-dist/definition.js +78 -23
- package/node_modules/@ykdz/reference-vike-migrations/native/tsconfig.json +1 -1
- package/node_modules/@ykdz/reference-vike-migrations/native/turbo.json +3 -3
- package/node_modules/@ykdz/reference-vike-migrations/package.json +4 -2
- package/node_modules/@ykdz/reference-vike-web/native/package.json +3 -1
- package/node_modules/@ykdz/reference-vike-web/native/template-dist/definition.d.ts +2 -1
- package/node_modules/@ykdz/reference-vike-web/native/template-dist/definition.js +137 -38
- package/node_modules/@ykdz/reference-vike-web/native/tsconfig.app.json +1 -1
- package/node_modules/@ykdz/reference-vike-web/native/tsconfig.node.json +1 -1
- package/node_modules/@ykdz/reference-vike-web/native/turbo.json +8 -4
- package/node_modules/@ykdz/reference-vike-web/package.json +4 -3
- package/node_modules/@ykdz/reference-vue-app/native/package.json +3 -1
- package/node_modules/@ykdz/reference-vue-app/native/template-dist/definition.d.ts +1 -1
- package/node_modules/@ykdz/reference-vue-app/native/template-dist/definition.js +72 -32
- package/node_modules/@ykdz/reference-vue-app/native/tsconfig.app.json +1 -1
- package/node_modules/@ykdz/reference-vue-app/native/tsconfig.node.json +1 -1
- package/node_modules/@ykdz/reference-vue-app/native/turbo.json +2 -2
- package/node_modules/@ykdz/reference-vue-app/package.json +3 -3
- package/node_modules/@ykdz/reference-vue-hono-web/native/package.json +3 -1
- package/node_modules/@ykdz/reference-vue-hono-web/native/template-dist/definition.d.ts +3 -1
- package/node_modules/@ykdz/reference-vue-hono-web/native/template-dist/definition.js +78 -28
- package/node_modules/@ykdz/reference-vue-hono-web/native/tsconfig.app.json +1 -1
- package/node_modules/@ykdz/reference-vue-hono-web/native/tsconfig.node.json +1 -1
- package/node_modules/@ykdz/reference-vue-hono-web/native/turbo.json +2 -2
- package/node_modules/@ykdz/reference-vue-hono-web/package.json +4 -3
- package/node_modules/@ykdz/reference-workspace-root/native/package.json +59 -0
- package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/template/files}/turbo.json +0 -24
- package/node_modules/@ykdz/reference-workspace-root/native/template-dist/definition.d.ts +10 -0
- package/node_modules/@ykdz/reference-workspace-root/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-workspace-root/native/template-dist/definition.js +140 -0
- package/node_modules/@ykdz/{template-workspace/dist → reference-workspace-root/native/template-dist}/editor-customization.d.ts +2 -1
- package/node_modules/@ykdz/reference-workspace-root/native/template-dist/editor-customization.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-workspace-root/native/template-dist/environment-sources.d.ts +6 -0
- package/node_modules/@ykdz/reference-workspace-root/native/template-dist/environment-sources.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-workspace-root/native/template-dist/environment-sources.js +10 -0
- package/node_modules/@ykdz/reference-workspace-root/native/template-dist/environment.d.ts +36 -0
- package/node_modules/@ykdz/reference-workspace-root/native/template-dist/environment.d.ts.map +1 -0
- package/node_modules/@ykdz/{template-workspace/dist/development-environment.js → reference-workspace-root/native/template-dist/environment.js} +20 -51
- package/node_modules/@ykdz/{template-workspace/dist → reference-workspace-root/native/template-dist}/project-github.d.ts +15 -8
- package/node_modules/@ykdz/reference-workspace-root/native/template-dist/project-github.d.ts.map +1 -0
- package/node_modules/@ykdz/{template-workspace/dist → reference-workspace-root/native/template-dist}/project-github.js +15 -19
- package/node_modules/@ykdz/reference-workspace-root/native/tsconfig.config.json +10 -0
- package/node_modules/@ykdz/reference-workspace-root/native/tsconfig.json +7 -0
- package/node_modules/@ykdz/reference-workspace-root/native/tsconfig.scripts.json +8 -0
- package/node_modules/@ykdz/reference-workspace-root/package.json +33 -0
- package/node_modules/@ykdz/template-content/dist/index.d.ts +10 -10
- package/node_modules/@ykdz/template-content/dist/index.js +3 -3
- package/node_modules/@ykdz/template-content/package.json +2 -1
- package/node_modules/@ykdz/template-content-provider-51cfac9642dc43a4/dist/index.d.ts +3 -45
- package/node_modules/@ykdz/template-content-provider-51cfac9642dc43a4/dist/index.js +18 -23
- package/node_modules/@ykdz/template-content-provider-51cfac9642dc43a4/package.json +2 -2
- package/node_modules/@ykdz/template-core/dist/composition.d.ts +49 -0
- package/node_modules/@ykdz/template-core/dist/composition.js +1 -0
- package/node_modules/@ykdz/template-core/dist/content-identity.d.ts +10 -0
- package/node_modules/@ykdz/template-core/dist/content-identity.js +21 -2
- package/node_modules/@ykdz/template-core/dist/generation-record.d.ts +46 -15
- package/node_modules/@ykdz/template-core/dist/generation-record.js +98 -29
- package/node_modules/@ykdz/template-core/dist/json.d.ts +8 -0
- package/node_modules/@ykdz/template-core/dist/json.js +62 -0
- package/node_modules/@ykdz/template-core/dist/package-contribution.d.ts +29 -12
- package/node_modules/@ykdz/template-core/dist/package-contribution.js +164 -33
- package/node_modules/@ykdz/template-core/dist/preset-definition.d.ts +6 -33
- package/node_modules/@ykdz/template-core/dist/preset-definition.js +23 -6
- package/node_modules/@ykdz/template-core/dist/project-blueprint.d.ts +37 -27
- package/node_modules/@ykdz/template-core/dist/project-blueprint.js +126 -125
- package/node_modules/@ykdz/template-core/dist/project-projection.d.ts +91 -33
- package/node_modules/@ykdz/template-core/dist/project-projection.js +639 -323
- package/node_modules/@ykdz/template-core/dist/reference-package.d.ts +101 -0
- package/node_modules/@ykdz/template-core/dist/reference-package.js +14 -0
- package/node_modules/@ykdz/template-core/dist/template-source.d.ts +10 -0
- package/node_modules/@ykdz/template-core/dist/template-source.js +31 -0
- package/node_modules/@ykdz/template-core/package.json +2 -3
- package/node_modules/@ykdz/template-environment/dist/development-container-tool-layer.d.ts +2 -3
- package/node_modules/@ykdz/template-environment/dist/development-container-tool-layer.js +2 -6
- package/node_modules/@ykdz/template-environment/package.json +1 -1
- package/node_modules/@ykdz/template-generator/dist/content-source.d.ts +25 -3
- package/node_modules/@ykdz/template-generator/dist/content-source.js +28 -27
- package/node_modules/@ykdz/template-generator/dist/index.d.ts +191 -60
- package/node_modules/@ykdz/template-generator/dist/index.js +1868 -1000
- package/node_modules/@ykdz/template-generator/dist/owner-local-reference.d.ts +8 -0
- package/node_modules/@ykdz/template-generator/dist/owner-local-reference.js +80 -0
- package/node_modules/@ykdz/template-workspace/dist/application-requirements.d.ts +13 -3
- package/node_modules/@ykdz/template-workspace/dist/application-requirements.js +34 -0
- package/node_modules/@ykdz/template-workspace/dist/ci-diagnostic-artifact.d.ts +1 -6
- package/node_modules/@ykdz/template-workspace/dist/default-composition.d.ts +109 -0
- package/node_modules/@ykdz/template-workspace/dist/default-composition.js +1353 -0
- package/node_modules/@ykdz/template-workspace/dist/default-generation.d.ts +618 -0
- package/node_modules/@ykdz/template-workspace/dist/default-generation.js +638 -0
- package/node_modules/@ykdz/template-workspace/dist/default-package-identity.js +23 -19
- package/node_modules/@ykdz/template-workspace/dist/project-requirements.d.ts +23 -9
- package/node_modules/@ykdz/template-workspace/dist/project-requirements.js +16 -1
- package/node_modules/@ykdz/template-workspace/dist/rust-toolchain-facts.d.ts +13 -7
- package/node_modules/@ykdz/template-workspace/dist/rust-toolchain-facts.js +35 -21
- package/node_modules/@ykdz/template-workspace/dist/shared-root-files.d.ts +7 -67
- package/node_modules/@ykdz/template-workspace/dist/shared-root-files.js +18 -50
- package/node_modules/@ykdz/template-workspace/dist/workspace-policy-snapshot.d.ts +0 -1
- package/node_modules/@ykdz/template-workspace/dist/workspace-policy-snapshot.js +0 -10
- package/node_modules/@ykdz/template-workspace/package.json +14 -55
- package/node_modules/@ykdz/template-workspace-authoring/dist/content-artifact.d.ts +38 -2
- package/node_modules/@ykdz/template-workspace-authoring/dist/content-artifact.js +95 -44
- package/node_modules/@ykdz/template-workspace-authoring/package.json +2 -1
- package/node_modules/@ykdz/tooling-config/base.json +15 -0
- package/node_modules/@ykdz/tooling-config/node.json +13 -0
- package/node_modules/@ykdz/tooling-config/oxfmt.config.ts +3 -0
- package/node_modules/@ykdz/tooling-config/oxlint.config.ts +8 -0
- package/node_modules/@ykdz/tooling-config/package.json +36 -0
- package/package.json +14 -6
- package/node_modules/@typescript/typescript-linux-x64/LICENSE +0 -55
- package/node_modules/@typescript/typescript-linux-x64/NOTICE.txt +0 -436
- package/node_modules/@typescript/typescript-linux-x64/README.md +0 -3
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.d.ts +0 -20
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.decorators.d.ts +0 -382
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.decorators.legacy.d.ts +0 -20
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.dom.asynciterable.d.ts +0 -18
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.dom.d.ts +0 -45125
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.dom.iterable.d.ts +0 -18
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.collection.d.ts +0 -159
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.core.d.ts +0 -595
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.d.ts +0 -26
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.generator.d.ts +0 -75
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.iterable.d.ts +0 -603
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.promise.d.ts +0 -79
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.proxy.d.ts +0 -126
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.reflect.d.ts +0 -142
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.symbol.d.ts +0 -44
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.symbol.wellknown.d.ts +0 -324
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.array.include.d.ts +0 -114
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.d.ts +0 -19
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.full.d.ts +0 -21
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.intl.d.ts +0 -29
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.arraybuffer.d.ts +0 -19
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.d.ts +0 -24
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.date.d.ts +0 -29
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.full.d.ts +0 -21
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.intl.d.ts +0 -42
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.object.d.ts +0 -47
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.sharedmemory.d.ts +0 -133
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.string.d.ts +0 -47
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.typedarrays.d.ts +0 -51
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.asyncgenerator.d.ts +0 -75
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.asynciterable.d.ts +0 -51
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.full.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.intl.d.ts +0 -81
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.promise.d.ts +0 -28
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.regexp.d.ts +0 -35
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.array.d.ts +0 -77
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.full.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.intl.d.ts +0 -21
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.object.d.ts +0 -31
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.string.d.ts +0 -35
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.symbol.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.bigint.d.ts +0 -763
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.d.ts +0 -25
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.date.d.ts +0 -40
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.full.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.intl.d.ts +0 -472
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.number.d.ts +0 -26
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.promise.d.ts +0 -45
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.sharedmemory.d.ts +0 -97
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.string.d.ts +0 -42
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.symbol.wellknown.d.ts +0 -39
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.d.ts +0 -21
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.full.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.intl.d.ts +0 -164
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.promise.d.ts +0 -46
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.string.d.ts +0 -31
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.weakref.d.ts +0 -76
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.array.d.ts +0 -119
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.d.ts +0 -23
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.error.d.ts +0 -73
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.full.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.intl.d.ts +0 -143
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.object.d.ts +0 -24
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.regexp.d.ts +0 -37
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.string.d.ts +0 -23
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.array.d.ts +0 -922
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.collection.d.ts +0 -19
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.d.ts +0 -20
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.full.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.intl.d.ts +0 -62
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.arraybuffer.d.ts +0 -63
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.collection.d.ts +0 -27
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.d.ts +0 -24
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.full.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.object.d.ts +0 -27
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.promise.d.ts +0 -33
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.regexp.d.ts +0 -23
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.sharedmemory.d.ts +0 -66
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.string.d.ts +0 -27
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.collection.d.ts +0 -94
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.d.ts +0 -23
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.float16.d.ts +0 -443
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.full.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.intl.d.ts +0 -200
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.iterator.d.ts +0 -146
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.promise.d.ts +0 -32
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.regexp.d.ts +0 -30
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es5.d.ts +0 -4599
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es6.d.ts +0 -21
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.array.d.ts +0 -33
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.collection.d.ts +0 -47
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.d.ts +0 -27
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.date.d.ts +0 -21
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.decorators.d.ts +0 -26
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.disposable.d.ts +0 -191
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.error.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.full.d.ts +0 -22
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.intl.d.ts +0 -107
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.sharedmemory.d.ts +0 -23
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.temporal.d.ts +0 -485
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.typedarrays.d.ts +0 -90
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.scripthost.d.ts +0 -320
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.asynciterable.d.ts +0 -18
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.d.ts +0 -15606
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.importscripts.d.ts +0 -21
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.iterable.d.ts +0 -18
- package/node_modules/@typescript/typescript-linux-x64/lib/tsc +0 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/tsc.sig +0 -11
- package/node_modules/@typescript/typescript-linux-x64/package.json +0 -45
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/target.d.ts +0 -13
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/target.d.ts.map +0 -1
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/target.js +0 -30
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/workspace.d.ts +0 -11
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/workspace.d.ts.map +0 -1
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/workspace.js +0 -51
- package/node_modules/@ykdz/reference-rust-bin/native/tsconfig.json +0 -8
- package/node_modules/@ykdz/reference-ts-cli/native/src/publication/cli-command-identity.ts +0 -88
- package/node_modules/@ykdz/template-content/dist/template-members.d.ts +0 -9
- package/node_modules/@ykdz/template-content/dist/template-members.js +0 -16
- package/node_modules/@ykdz/template-core/dist/renderer-policy-snapshot.d.ts +0 -1
- package/node_modules/@ykdz/template-core/dist/renderer-policy-snapshot.js +0 -2
- package/node_modules/@ykdz/template-core/dist/renderer.d.ts +0 -101
- package/node_modules/@ykdz/template-core/dist/renderer.js +0 -386
- package/node_modules/@ykdz/template-core/dist/workspace-strategy.d.ts +0 -188
- package/node_modules/@ykdz/template-core/dist/workspace-strategy.js +0 -1
- package/node_modules/@ykdz/template-workspace/assets/tsconfig.config.json +0 -6
- package/node_modules/@ykdz/template-workspace/assets/tsconfig.json +0 -7
- package/node_modules/@ykdz/template-workspace/dist/default-environment-sources.d.ts +0 -5
- package/node_modules/@ykdz/template-workspace/dist/default-environment-sources.js +0 -8
- package/node_modules/@ykdz/template-workspace/dist/default-environment.d.ts +0 -9
- package/node_modules/@ykdz/template-workspace/dist/default-environment.js +0 -5
- package/node_modules/@ykdz/template-workspace/dist/default-workspace-strategy.d.ts +0 -89
- package/node_modules/@ykdz/template-workspace/dist/default-workspace-strategy.js +0 -967
- package/node_modules/@ykdz/template-workspace/dist/development-container.d.ts +0 -3
- package/node_modules/@ykdz/template-workspace/dist/development-container.js +0 -36
- package/node_modules/@ykdz/template-workspace/dist/development-environment.d.ts +0 -36
- package/node_modules/@ykdz/template-workspace/dist/environment-needs.d.ts +0 -51
- package/node_modules/@ykdz/template-workspace/dist/generation-context.d.ts +0 -14
- package/node_modules/@ykdz/template-workspace/dist/package-addition-facts.d.ts +0 -21
- package/node_modules/@ykdz/template-workspace/dist/package-addition-facts.js +0 -90
- package/node_modules/@ykdz/template-workspace/dist/package-contribution.d.ts +0 -64
- package/node_modules/@ykdz/template-workspace/dist/package-contribution.js +0 -65
- package/node_modules/@ykdz/template-workspace/dist/project-linking.d.ts +0 -48
- package/node_modules/@ykdz/template-workspace/dist/project-linking.js +0 -218
- package/node_modules/@ykdz/template-workspace/dist/reference-package.d.ts +0 -146
- package/node_modules/@ykdz/template-workspace/dist/reference-package.js +0 -521
- package/node_modules/@ykdz/template-workspace/dist/root-projection.d.ts +0 -29
- package/node_modules/@ykdz/template-workspace/dist/root-projection.js +0 -144
- package/node_modules/@ykdz/template-workspace/dist/rust-target-projection.d.ts +0 -35
- package/node_modules/@ykdz/template-workspace/dist/rust-target-projection.js +0 -74
- package/node_modules/@ykdz/template-workspace/dist/workspace-resources.d.ts +0 -23
- package/node_modules/@ykdz/template-workspace/dist/workspace-resources.js +0 -83
- package/node_modules/@ykdz/template-workspace/resources/oxfmt.config.ts +0 -1
- package/node_modules/typescript-7/LICENSE +0 -55
- package/node_modules/typescript-7/NOTICE.txt +0 -436
- package/node_modules/typescript-7/README.md +0 -49
- package/node_modules/typescript-7/bin/tsc +0 -2
- package/node_modules/typescript-7/dist/api/async/api.d.ts +0 -529
- package/node_modules/typescript-7/dist/api/async/api.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/async/api.js +0 -1657
- package/node_modules/typescript-7/dist/api/async/api.js.map +0 -1
- package/node_modules/typescript-7/dist/api/async/client.d.ts +0 -39
- package/node_modules/typescript-7/dist/api/async/client.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/async/client.js +0 -211
- package/node_modules/typescript-7/dist/api/async/client.js.map +0 -1
- package/node_modules/typescript-7/dist/api/async/types.d.ts +0 -310
- package/node_modules/typescript-7/dist/api/async/types.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/async/types.js +0 -2
- package/node_modules/typescript-7/dist/api/async/types.js.map +0 -1
- package/node_modules/typescript-7/dist/api/compilerOptions.d.ts +0 -109
- package/node_modules/typescript-7/dist/api/compilerOptions.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/compilerOptions.js +0 -2
- package/node_modules/typescript-7/dist/api/compilerOptions.js.map +0 -1
- package/node_modules/typescript-7/dist/api/fs.d.ts +0 -23
- package/node_modules/typescript-7/dist/api/fs.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/fs.js +0 -109
- package/node_modules/typescript-7/dist/api/fs.js.map +0 -1
- package/node_modules/typescript-7/dist/api/node/encoder.d.ts +0 -15
- package/node_modules/typescript-7/dist/api/node/encoder.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/node/encoder.generated.d.ts +0 -5
- package/node_modules/typescript-7/dist/api/node/encoder.generated.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/node/encoder.generated.js +0 -74
- package/node_modules/typescript-7/dist/api/node/encoder.generated.js.map +0 -1
- package/node_modules/typescript-7/dist/api/node/encoder.js +0 -287
- package/node_modules/typescript-7/dist/api/node/encoder.js.map +0 -1
- package/node_modules/typescript-7/dist/api/node/msgpack.d.ts +0 -32
- package/node_modules/typescript-7/dist/api/node/msgpack.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/node/msgpack.js +0 -213
- package/node_modules/typescript-7/dist/api/node/msgpack.js.map +0 -1
- package/node_modules/typescript-7/dist/api/node/node.d.ts +0 -76
- package/node_modules/typescript-7/dist/api/node/node.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/node/node.generated.d.ts +0 -182
- package/node_modules/typescript-7/dist/api/node/node.generated.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/node/node.generated.js +0 -835
- package/node_modules/typescript-7/dist/api/node/node.generated.js.map +0 -1
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.d.ts +0 -62
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.js +0 -122
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.js.map +0 -1
- package/node_modules/typescript-7/dist/api/node/node.js +0 -298
- package/node_modules/typescript-7/dist/api/node/node.js.map +0 -1
- package/node_modules/typescript-7/dist/api/node/protocol.d.ts +0 -29
- package/node_modules/typescript-7/dist/api/node/protocol.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/node/protocol.generated.d.ts +0 -4
- package/node_modules/typescript-7/dist/api/node/protocol.generated.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/node/protocol.generated.js +0 -241
- package/node_modules/typescript-7/dist/api/node/protocol.generated.js.map +0 -1
- package/node_modules/typescript-7/dist/api/node/protocol.js +0 -30
- package/node_modules/typescript-7/dist/api/node/protocol.js.map +0 -1
- package/node_modules/typescript-7/dist/api/node/wtf8.d.ts +0 -6
- package/node_modules/typescript-7/dist/api/node/wtf8.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/node/wtf8.js +0 -61
- package/node_modules/typescript-7/dist/api/node/wtf8.js.map +0 -1
- package/node_modules/typescript-7/dist/api/options.d.ts +0 -32
- package/node_modules/typescript-7/dist/api/options.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/options.js +0 -11
- package/node_modules/typescript-7/dist/api/options.js.map +0 -1
- package/node_modules/typescript-7/dist/api/path.d.ts +0 -110
- package/node_modules/typescript-7/dist/api/path.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/path.js +0 -508
- package/node_modules/typescript-7/dist/api/path.js.map +0 -1
- package/node_modules/typescript-7/dist/api/proto.d.ts +0 -239
- package/node_modules/typescript-7/dist/api/proto.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/proto.js +0 -37
- package/node_modules/typescript-7/dist/api/proto.js.map +0 -1
- package/node_modules/typescript-7/dist/api/sourceFileCache.d.ts +0 -79
- package/node_modules/typescript-7/dist/api/sourceFileCache.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/sourceFileCache.js +0 -169
- package/node_modules/typescript-7/dist/api/sourceFileCache.js.map +0 -1
- package/node_modules/typescript-7/dist/api/sync/api.d.ts +0 -529
- package/node_modules/typescript-7/dist/api/sync/api.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/sync/api.js +0 -1665
- package/node_modules/typescript-7/dist/api/sync/api.js.map +0 -1
- package/node_modules/typescript-7/dist/api/sync/client.d.ts +0 -30
- package/node_modules/typescript-7/dist/api/sync/client.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/sync/client.js +0 -124
- package/node_modules/typescript-7/dist/api/sync/client.js.map +0 -1
- package/node_modules/typescript-7/dist/api/sync/types.d.ts +0 -310
- package/node_modules/typescript-7/dist/api/sync/types.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/sync/types.js +0 -2
- package/node_modules/typescript-7/dist/api/sync/types.js.map +0 -1
- package/node_modules/typescript-7/dist/api/syncChannel.d.ts +0 -114
- package/node_modules/typescript-7/dist/api/syncChannel.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/syncChannel.js +0 -508
- package/node_modules/typescript-7/dist/api/syncChannel.js.map +0 -1
- package/node_modules/typescript-7/dist/api/timing.d.ts +0 -175
- package/node_modules/typescript-7/dist/api/timing.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/api/timing.js +0 -149
- package/node_modules/typescript-7/dist/api/timing.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/ast.d.ts +0 -100
- package/node_modules/typescript-7/dist/ast/ast.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/ast.generated.d.ts +0 -1161
- package/node_modules/typescript-7/dist/ast/ast.generated.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/ast.generated.js +0 -4
- package/node_modules/typescript-7/dist/ast/ast.generated.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/ast.js +0 -7
- package/node_modules/typescript-7/dist/ast/ast.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/astnav.d.ts +0 -19
- package/node_modules/typescript-7/dist/ast/astnav.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/astnav.js +0 -596
- package/node_modules/typescript-7/dist/ast/astnav.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/clone.d.ts +0 -16
- package/node_modules/typescript-7/dist/ast/clone.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/clone.js +0 -104
- package/node_modules/typescript-7/dist/ast/clone.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/factory.generated.d.ts +0 -520
- package/node_modules/typescript-7/dist/ast/factory.generated.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/factory.generated.js +0 -3057
- package/node_modules/typescript-7/dist/ast/factory.generated.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/index.d.ts +0 -20
- package/node_modules/typescript-7/dist/ast/index.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/index.js +0 -20
- package/node_modules/typescript-7/dist/ast/index.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/is.d.ts +0 -35
- package/node_modules/typescript-7/dist/ast/is.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/is.generated.d.ts +0 -329
- package/node_modules/typescript-7/dist/ast/is.generated.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/is.generated.js +0 -1103
- package/node_modules/typescript-7/dist/ast/is.generated.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/is.js +0 -233
- package/node_modules/typescript-7/dist/ast/is.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/jsdoc.d.ts +0 -11
- package/node_modules/typescript-7/dist/ast/jsdoc.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/jsdoc.js +0 -202
- package/node_modules/typescript-7/dist/ast/jsdoc.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/scanner.d.ts +0 -97
- package/node_modules/typescript-7/dist/ast/scanner.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/scanner.js +0 -2230
- package/node_modules/typescript-7/dist/ast/scanner.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/utils.d.ts +0 -17
- package/node_modules/typescript-7/dist/ast/utils.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/utils.js +0 -67
- package/node_modules/typescript-7/dist/ast/utils.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/visitor.d.ts +0 -14
- package/node_modules/typescript-7/dist/ast/visitor.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/visitor.generated.d.ts +0 -50
- package/node_modules/typescript-7/dist/ast/visitor.generated.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/ast/visitor.generated.js +0 -978
- package/node_modules/typescript-7/dist/ast/visitor.generated.js.map +0 -1
- package/node_modules/typescript-7/dist/ast/visitor.js +0 -47
- package/node_modules/typescript-7/dist/ast/visitor.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/characterCodes.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/characterCodes.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.d.ts +0 -129
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.js +0 -132
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/characterCodes.js +0 -130
- package/node_modules/typescript-7/dist/enums/characterCodes.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.d.ts +0 -5
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.js +0 -6
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.js +0 -6
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/completionItemKind.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/completionItemKind.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.d.ts +0 -28
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.js +0 -30
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/completionItemKind.js +0 -30
- package/node_modules/typescript-7/dist/enums/completionItemKind.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.d.ts +0 -7
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.js +0 -9
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.js +0 -9
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/elementFlags.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/elementFlags.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.d.ts +0 -12
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.js +0 -14
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/elementFlags.js +0 -14
- package/node_modules/typescript-7/dist/enums/elementFlags.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/internalSymbolName.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/internalSymbolName.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.d.ts +0 -23
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.js +0 -25
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/internalSymbolName.js +0 -25
- package/node_modules/typescript-7/dist/enums/internalSymbolName.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/jsxEmit.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/jsxEmit.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.d.ts +0 -9
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.js +0 -11
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/jsxEmit.js +0 -11
- package/node_modules/typescript-7/dist/enums/jsxEmit.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/languageVariant.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/languageVariant.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.d.ts +0 -5
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.js +0 -6
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/languageVariant.js +0 -6
- package/node_modules/typescript-7/dist/enums/languageVariant.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/modifierFlags.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/modifierFlags.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.d.ts +0 -42
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.js +0 -44
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/modifierFlags.js +0 -44
- package/node_modules/typescript-7/dist/enums/modifierFlags.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.d.ts +0 -7
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.js +0 -9
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.js +0 -9
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleKind.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/moduleKind.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.d.ts +0 -17
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.js +0 -19
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleKind.js +0 -19
- package/node_modules/typescript-7/dist/enums/moduleKind.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.d.ts +0 -9
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.js +0 -11
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.js +0 -11
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/newLineKind.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/newLineKind.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.d.ts +0 -6
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.js +0 -8
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/newLineKind.js +0 -8
- package/node_modules/typescript-7/dist/enums/newLineKind.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.d.ts +0 -36
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.js +0 -38
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.js +0 -38
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/nodeFlags.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/nodeFlags.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.d.ts +0 -44
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.js +0 -46
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/nodeFlags.js +0 -46
- package/node_modules/typescript-7/dist/enums/nodeFlags.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/objectFlags.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/objectFlags.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.d.ts +0 -50
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.js +0 -52
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/objectFlags.js +0 -52
- package/node_modules/typescript-7/dist/enums/objectFlags.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.d.ts +0 -16
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.js +0 -18
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.js +0 -18
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.d.ts +0 -13
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.js +0 -14
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.js +0 -14
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/scriptKind.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/scriptKind.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.d.ts +0 -11
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.js +0 -12
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/scriptKind.js +0 -12
- package/node_modules/typescript-7/dist/enums/scriptKind.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/scriptTarget.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/scriptTarget.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.d.ts +0 -17
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.js +0 -18
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/scriptTarget.js +0 -18
- package/node_modules/typescript-7/dist/enums/scriptTarget.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/signatureFlags.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/signatureFlags.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.d.ts +0 -15
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.js +0 -17
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/signatureFlags.js +0 -17
- package/node_modules/typescript-7/dist/enums/signatureFlags.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/signatureKind.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/signatureKind.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.d.ts +0 -5
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.js +0 -7
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/signatureKind.js +0 -7
- package/node_modules/typescript-7/dist/enums/signatureKind.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/symbolFlags.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/symbolFlags.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.d.ts +0 -71
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.js +0 -73
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/symbolFlags.js +0 -73
- package/node_modules/typescript-7/dist/enums/symbolFlags.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/syntaxKind.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/syntaxKind.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.d.ts +0 -389
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.js +0 -391
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/syntaxKind.js +0 -391
- package/node_modules/typescript-7/dist/enums/syntaxKind.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/tokenFlags.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/tokenFlags.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.d.ts +0 -30
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.js +0 -32
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/tokenFlags.js +0 -32
- package/node_modules/typescript-7/dist/enums/tokenFlags.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/typeFlags.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/typeFlags.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.d.ts +0 -76
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.js +0 -78
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/typeFlags.js +0 -78
- package/node_modules/typescript-7/dist/enums/typeFlags.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/typePredicateKind.d.ts +0 -2
- package/node_modules/typescript-7/dist/enums/typePredicateKind.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.d.ts +0 -7
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.js +0 -9
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.js.map +0 -1
- package/node_modules/typescript-7/dist/enums/typePredicateKind.js +0 -9
- package/node_modules/typescript-7/dist/enums/typePredicateKind.js.map +0 -1
- package/node_modules/typescript-7/dist/internal/utils.d.ts +0 -23
- package/node_modules/typescript-7/dist/internal/utils.d.ts.map +0 -1
- package/node_modules/typescript-7/dist/internal/utils.js +0 -25
- package/node_modules/typescript-7/dist/internal/utils.js.map +0 -1
- package/node_modules/typescript-7/lib/getExePath.d.ts +0 -2
- package/node_modules/typescript-7/lib/getExePath.js +0 -70
- package/node_modules/typescript-7/lib/tsc.js +0 -28
- package/node_modules/typescript-7/lib/version.cjs +0 -3
- package/node_modules/typescript-7/lib/version.d.cts +0 -2
- package/node_modules/typescript-7/package.json +0 -87
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/License.txt +0 -11
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/README.md +0 -54
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/main.js +0 -83
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +0 -22
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/ril.js +0 -210
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/api.d.ts +0 -14
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/api.js +0 -87
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/cancellation.js +0 -132
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/connection.d.ts +0 -367
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/connection.js +0 -1271
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/disposable.js +0 -16
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/encoding.js +0 -70
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/events.d.ts +0 -39
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/events.js +0 -135
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/is.d.ts +0 -7
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/is.js +0 -34
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -55
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/linkedMap.js +0 -412
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +0 -155
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageReader.js +0 -246
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageWriter.js +0 -157
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messages.js +0 -436
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/ral.js +0 -23
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/semaphore.js +0 -74
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -77
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/main.d.ts +0 -58
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/main.js +0 -289
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/ril.d.ts +0 -12
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/ril.js +0 -163
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/package.json +0 -54
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/typings/thenable.d.ts +0 -5
- /package/node_modules/@ykdz/{template-workspace/dist/generation-context.js → default-content-authoring/dist/contracts.js} +0 -0
- /package/node_modules/@ykdz/{template-workspace → default-content-authoring}/dist/environment-needs.js +0 -0
- /package/node_modules/@ykdz/{template-workspace/dist/default-package-role.d.ts → default-content-authoring/dist/package-role.d.ts} +0 -0
- /package/node_modules/@ykdz/{template-workspace/dist/default-package-role.js → default-content-authoring/dist/package-role.js} +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets/environment → reference-rust-bin/native/resources}/devcontainer/rust.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/agent-instructions.md +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/environment/base.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/environment/devcontainer/browser-test.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/environment/devcontainer/github-cli.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/environment/devcontainer/shellcheck.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/environment/devcontainer/workspace-template.json +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/environment/editor-customization/capabilities.json +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/github/check.yml +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/github/dependabot.yml +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/gitignore +0 -0
- /package/node_modules/@ykdz/{template-workspace/assets → reference-workspace-root/native/resources}/next-steps.md +0 -0
- /package/node_modules/@ykdz/{template-workspace → reference-workspace-root/native}/scripts/task-gates.ts +0 -0
- /package/node_modules/@ykdz/{template-workspace/dist → reference-workspace-root/native/template-dist}/editor-customization.js +0 -0
|
@@ -0,0 +1,1353 @@
|
|
|
1
|
+
import { isDeepStrictEqual } from "node:util";
|
|
2
|
+
import { normalizeEnvironmentNeeds } from "@ykdz/default-content-authoring/environment-needs";
|
|
3
|
+
import { isDefaultPackageRole } from "@ykdz/default-content-authoring/package-role";
|
|
4
|
+
import { serializeNativeJson, serializeNativeReferenceDocument, } from "@ykdz/default-content-authoring/reference-package";
|
|
5
|
+
import { browserTestDevelopmentContainerToolLayer, prepareWorkspaceDevelopmentContainerResources, prepareWorkspaceEditorCustomizationDeclarations, projectWorkspaceDevelopmentContainer, projectWorkspaceEditorCustomization, shellCheckDevelopmentContainerToolLayer, } from "@ykdz/reference-workspace-root/environment";
|
|
6
|
+
import { normalizeProjectCheckWorkflowJob, prepareProjectGithubTemplates, projectCheckWorkflow, projectDependabotConfig, projectNextStepsDocument, } from "@ykdz/reference-workspace-root/project-github";
|
|
7
|
+
import { workspaceRootNextSteps } from "@ykdz/reference-workspace-root/template";
|
|
8
|
+
import { contentIdentityKey, contentIdentityLabel, } from "@ykdz/template-core/content-identity";
|
|
9
|
+
import { resolveReferenceDependencyIdentity } from "@ykdz/template-generator";
|
|
10
|
+
import { stringify as stringifyYaml } from "yaml";
|
|
11
|
+
import { composeApplicationRequirements, projectDependencyMaintenancePolicy, resolveApplicationRequirements, } from "./application-requirements.js";
|
|
12
|
+
import { composeCiDiagnosticArtifacts } from "./ci-diagnostic-artifact.js";
|
|
13
|
+
import { assertDefaultProjectBlueprint } from "./default-package-identity.js";
|
|
14
|
+
import { collectGeneratedManifestCatalogReferences, selectTemplateDependencyCatalogEntries, } from "./dependency-catalog.js";
|
|
15
|
+
import { PackageLinkValidationError } from "./project-requirements.js";
|
|
16
|
+
import { releaseToolchainSnapshot } from "./release-toolchain-snapshot.js";
|
|
17
|
+
import { composeCheckWorkflow, composeSharedRootFiles, } from "./shared-root-files.js";
|
|
18
|
+
import { vuePnpmDependencyOverrides } from "./vue-policy.js";
|
|
19
|
+
import { dependencyCatalogSnapshot, workspaceInstallPolicySnapshot, } from "./workspace-policy-snapshot.js";
|
|
20
|
+
const defaultCompositionIdentity = Object.freeze({
|
|
21
|
+
namespace: "ykdz",
|
|
22
|
+
packageName: "@ykdz/template-workspace",
|
|
23
|
+
exportPath: "./default-composition",
|
|
24
|
+
});
|
|
25
|
+
function isRecord(value) {
|
|
26
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
27
|
+
}
|
|
28
|
+
function errorMessage(error) {
|
|
29
|
+
return error instanceof Error ? error.message : String(error);
|
|
30
|
+
}
|
|
31
|
+
function presetRootContributionOwner(definition) {
|
|
32
|
+
if (!isRecord(definition) || !isRecord(definition.rootContribution)) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
const owner = definition.rootContribution;
|
|
36
|
+
if (typeof owner.prepare !== "function" ||
|
|
37
|
+
typeof owner.compose !== "function") {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
return owner;
|
|
41
|
+
}
|
|
42
|
+
function composePresetRootContributionDeclarations(options) {
|
|
43
|
+
const presetsByIdentity = new Map(options.content
|
|
44
|
+
.filter((member) => member.kind === "preset")
|
|
45
|
+
.map((member) => [contentIdentityKey(member.identity), member]));
|
|
46
|
+
const preparedByIdentity = new Map(options.preparedContributions.map((prepared) => [
|
|
47
|
+
contentIdentityKey(prepared.ownerIdentity),
|
|
48
|
+
prepared.ownerFacts,
|
|
49
|
+
]));
|
|
50
|
+
const packagesById = new Map(options.packages.map((item) => [item.package.packageDefinitionId, item]));
|
|
51
|
+
const rootPackages = options.packages.filter(({ package: item }) => item.definition.path === ".");
|
|
52
|
+
if (rootPackages.length !== 1) {
|
|
53
|
+
throw new Error("预设根贡献要求唯一的明确根包实例");
|
|
54
|
+
}
|
|
55
|
+
const rootPackage = rootPackages[0].package;
|
|
56
|
+
const declarations = [];
|
|
57
|
+
for (const selection of options.selections) {
|
|
58
|
+
if (selection.presetIdentity === null)
|
|
59
|
+
continue;
|
|
60
|
+
const member = presetsByIdentity.get(contentIdentityKey(selection.presetIdentity));
|
|
61
|
+
if (member === undefined) {
|
|
62
|
+
throw new Error(`持久预设选择不存在:${contentIdentityLabel(selection.presetIdentity)}`);
|
|
63
|
+
}
|
|
64
|
+
const owner = presetRootContributionOwner(member.definition);
|
|
65
|
+
if (owner === undefined)
|
|
66
|
+
continue;
|
|
67
|
+
const ownerFacts = preparedByIdentity.get(contentIdentityKey(member.identity));
|
|
68
|
+
if (ownerFacts === undefined) {
|
|
69
|
+
throw new Error(`预设根贡献未按完整身份准备:${contentIdentityLabel(member.identity)}`);
|
|
70
|
+
}
|
|
71
|
+
const selectedPackages = new Map();
|
|
72
|
+
for (const [nodeIdentity, packageDefinitionId] of Object.entries(selection.nodes)) {
|
|
73
|
+
const selectedEvaluation = packagesById.get(packageDefinitionId);
|
|
74
|
+
if (selectedEvaluation === undefined) {
|
|
75
|
+
throw new Error(`持久预设选择缺少节点实例:${contentIdentityLabel(member.identity)}/${nodeIdentity}`);
|
|
76
|
+
}
|
|
77
|
+
selectedPackages.set(nodeIdentity, selectedEvaluation);
|
|
78
|
+
}
|
|
79
|
+
const composition = owner.compose({
|
|
80
|
+
ownerIdentity: member.identity,
|
|
81
|
+
selection,
|
|
82
|
+
selectedPackages,
|
|
83
|
+
rootPackage,
|
|
84
|
+
ownerFacts,
|
|
85
|
+
});
|
|
86
|
+
if (composition.rootPackageDefinitionId !== rootPackage.packageDefinitionId) {
|
|
87
|
+
throw new Error(`预设根贡献输出根与默认组合根不匹配:${contentIdentityLabel(member.identity)}`);
|
|
88
|
+
}
|
|
89
|
+
declarations.push({
|
|
90
|
+
...composition.rootDeclaration,
|
|
91
|
+
sourceIdentity: member.identity,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
return Object.freeze(declarations);
|
|
95
|
+
}
|
|
96
|
+
function parseConventions(value) {
|
|
97
|
+
if (!isRecord(value)) {
|
|
98
|
+
throw new Error("默认工作区约定必须是对象");
|
|
99
|
+
}
|
|
100
|
+
if (typeof value.repositoryName !== "string" ||
|
|
101
|
+
value.repositoryName.trim().length === 0) {
|
|
102
|
+
throw new Error("默认工作区约定缺少repositoryName");
|
|
103
|
+
}
|
|
104
|
+
if (typeof value.defaultPackageScope !== "string" ||
|
|
105
|
+
value.defaultPackageScope.trim().length === 0) {
|
|
106
|
+
throw new Error("默认工作区约定缺少defaultPackageScope");
|
|
107
|
+
}
|
|
108
|
+
if (value.todo !== undefined && typeof value.todo !== "boolean") {
|
|
109
|
+
throw new Error("默认工作区约定todo必须是boolean");
|
|
110
|
+
}
|
|
111
|
+
return Object.freeze({
|
|
112
|
+
repositoryName: value.repositoryName,
|
|
113
|
+
defaultPackageScope: value.defaultPackageScope,
|
|
114
|
+
todo: value.todo === true,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/** 外层默认准备拥有者读取的默认环境资源;Composition只接收这份快照。 */
|
|
118
|
+
export function prepareDefaultCompositionResources() {
|
|
119
|
+
return Object.freeze({
|
|
120
|
+
github: prepareProjectGithubTemplates(),
|
|
121
|
+
developmentContainer: prepareWorkspaceDevelopmentContainerResources(),
|
|
122
|
+
editor: prepareWorkspaceEditorCustomizationDeclarations(),
|
|
123
|
+
nextSteps: workspaceRootNextSteps,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
export function prepareDefaultInitOperationFacts(options = {}) {
|
|
127
|
+
return Object.freeze({
|
|
128
|
+
nodeDeclaration: releaseToolchainSnapshot.nodeVersion,
|
|
129
|
+
packageManagerPin: releaseToolchainSnapshot.packageManagerPin,
|
|
130
|
+
...(options.rustToolchainTarget === undefined
|
|
131
|
+
? {}
|
|
132
|
+
: { rustToolchainTarget: options.rustToolchainTarget }),
|
|
133
|
+
resources: options.resources ?? prepareDefaultCompositionResources(),
|
|
134
|
+
rootDeclarations: options.rootDeclarations ?? [],
|
|
135
|
+
rootAttachmentDependencies: options.rootAttachmentDependencies ?? [],
|
|
136
|
+
existingPackageDefinitionIds: new Set(),
|
|
137
|
+
existingPackageLinkIntents: [],
|
|
138
|
+
presetRootContributions: options.presetRootContributions ?? [],
|
|
139
|
+
presetRootContributionReadFacts: options.presetRootContributionReadFacts ?? [],
|
|
140
|
+
targetManifests: new Map(),
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/** 读取声明了根附件的owner快照;调用者负责在每次正式操作前执行。 */
|
|
144
|
+
export async function prepareDefaultRootDeclarations(content) {
|
|
145
|
+
const declarations = [];
|
|
146
|
+
for (const member of content) {
|
|
147
|
+
if (member.kind !== "reference" || !isRecord(member.definition))
|
|
148
|
+
continue;
|
|
149
|
+
if (member.definition.rootDeclarationAvailable !== true)
|
|
150
|
+
continue;
|
|
151
|
+
const prepare = member.definition.prepare;
|
|
152
|
+
const project = member.definition.prepareRootDeclaration;
|
|
153
|
+
const manifest = member.definition.manifest;
|
|
154
|
+
if (typeof prepare !== "function" ||
|
|
155
|
+
typeof project !== "function" ||
|
|
156
|
+
!isRecord(manifest) ||
|
|
157
|
+
typeof manifest.name !== "string") {
|
|
158
|
+
throw new Error(`根附件owner声明不完整:${contentIdentityLabel(member.identity)}`);
|
|
159
|
+
}
|
|
160
|
+
const prepared = await prepare({ excludedPackagePaths: [] });
|
|
161
|
+
if (!isRecord(prepared) || !isRecord(prepared.facts)) {
|
|
162
|
+
throw new Error(`根附件owner prepare未返回事实:${contentIdentityLabel(member.identity)}`);
|
|
163
|
+
}
|
|
164
|
+
const data = project(prepared.facts.ownerFacts);
|
|
165
|
+
if (data === undefined)
|
|
166
|
+
continue;
|
|
167
|
+
if (!isRecord(data)) {
|
|
168
|
+
throw new Error(`根附件owner投影必须是对象:${contentIdentityLabel(member.identity)}`);
|
|
169
|
+
}
|
|
170
|
+
declarations.push({
|
|
171
|
+
...data,
|
|
172
|
+
sourceIdentity: member.identity,
|
|
173
|
+
requiredTemplateDependency: manifest.name,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
return Object.freeze(declarations);
|
|
177
|
+
}
|
|
178
|
+
/** 正式准备阶段解析owner入口;Composition只消费这份完整身份快照。 */
|
|
179
|
+
export function prepareDefaultRootAttachmentDependencies(content) {
|
|
180
|
+
const facts = [];
|
|
181
|
+
for (const member of content) {
|
|
182
|
+
if (member.kind !== "reference" || !isRecord(member.definition))
|
|
183
|
+
continue;
|
|
184
|
+
const dependencies = member.definition.rootAttachmentDependencies;
|
|
185
|
+
if (dependencies === undefined)
|
|
186
|
+
continue;
|
|
187
|
+
if (!Array.isArray(dependencies)) {
|
|
188
|
+
throw new Error(`根附件owner依赖必须是列表:${contentIdentityLabel(member.identity)}`);
|
|
189
|
+
}
|
|
190
|
+
for (const value of dependencies) {
|
|
191
|
+
if (!isRecord(value) || typeof value.key !== "string") {
|
|
192
|
+
throw new Error(`根附件owner依赖声明无效:${contentIdentityLabel(member.identity)}`);
|
|
193
|
+
}
|
|
194
|
+
const dependency = value;
|
|
195
|
+
try {
|
|
196
|
+
facts.push({
|
|
197
|
+
consumerIdentity: member.identity,
|
|
198
|
+
key: value.key,
|
|
199
|
+
result: {
|
|
200
|
+
kind: "resolved",
|
|
201
|
+
ownerIdentity: resolveReferenceDependencyIdentity({
|
|
202
|
+
consumerIdentity: member.identity,
|
|
203
|
+
dependency,
|
|
204
|
+
members: content,
|
|
205
|
+
}),
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
catch (error) {
|
|
210
|
+
facts.push({
|
|
211
|
+
consumerIdentity: member.identity,
|
|
212
|
+
key: value.key,
|
|
213
|
+
result: { kind: "error", message: errorMessage(error) },
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return Object.freeze(facts);
|
|
219
|
+
}
|
|
220
|
+
function sourceLabel(identity) {
|
|
221
|
+
return contentIdentityLabel(identity);
|
|
222
|
+
}
|
|
223
|
+
function validateDefaultFacts(value) {
|
|
224
|
+
if (!isRecord(value) ||
|
|
225
|
+
typeof value.nodeDeclaration !== "string" ||
|
|
226
|
+
value.nodeDeclaration.trim().length === 0 ||
|
|
227
|
+
typeof value.packageManagerPin !== "string" ||
|
|
228
|
+
value.packageManagerPin.trim().length === 0 ||
|
|
229
|
+
!Array.isArray(value.rootDeclarations) ||
|
|
230
|
+
!Array.isArray(value.rootAttachmentDependencies) ||
|
|
231
|
+
!(value.existingPackageDefinitionIds instanceof Set) ||
|
|
232
|
+
!Array.isArray(value.existingPackageLinkIntents) ||
|
|
233
|
+
!Array.isArray(value.presetRootContributions) ||
|
|
234
|
+
!Array.isArray(value.presetRootContributionReadFacts) ||
|
|
235
|
+
!isRecord(value.resources)) {
|
|
236
|
+
throw new Error("默认工作区本次operationFacts无效");
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
function prepareSelectedRootAttachmentIdentities(options) {
|
|
240
|
+
const contentByIdentity = new Map(options.content
|
|
241
|
+
.filter((member) => member.kind === "reference")
|
|
242
|
+
.map((member) => [contentIdentityKey(member.identity), member]));
|
|
243
|
+
const factsByConsumerAndKey = new Map(options.operationFacts.rootAttachmentDependencies.map((fact) => [
|
|
244
|
+
JSON.stringify([contentIdentityKey(fact.consumerIdentity), fact.key]),
|
|
245
|
+
fact,
|
|
246
|
+
]));
|
|
247
|
+
const declarationIdentities = new Set(options.operationFacts.rootDeclarations.map(({ sourceIdentity }) => contentIdentityKey(sourceIdentity)));
|
|
248
|
+
const requested = new Map();
|
|
249
|
+
for (const item of options.packages) {
|
|
250
|
+
const member = contentByIdentity.get(contentIdentityKey(item.contentIdentity));
|
|
251
|
+
if (member === undefined || !isRecord(member.definition))
|
|
252
|
+
continue;
|
|
253
|
+
const dependencies = member.definition.rootAttachmentDependencies;
|
|
254
|
+
if (dependencies === undefined)
|
|
255
|
+
continue;
|
|
256
|
+
if (!Array.isArray(dependencies)) {
|
|
257
|
+
throw new Error(`根附件owner依赖必须是列表:${contentIdentityLabel(member.identity)}`);
|
|
258
|
+
}
|
|
259
|
+
for (const value of dependencies) {
|
|
260
|
+
if (!isRecord(value) || typeof value.key !== "string") {
|
|
261
|
+
throw new Error(`根附件owner依赖声明无效:${contentIdentityLabel(member.identity)}`);
|
|
262
|
+
}
|
|
263
|
+
const fact = factsByConsumerAndKey.get(JSON.stringify([contentIdentityKey(member.identity), value.key]));
|
|
264
|
+
if (fact === undefined) {
|
|
265
|
+
throw new Error(`正式准备缺少根附件owner依赖身份:${contentIdentityLabel(member.identity)}/${value.key}`);
|
|
266
|
+
}
|
|
267
|
+
if (fact.result.kind === "error") {
|
|
268
|
+
throw new Error(`根附件owner依赖无法解析:${contentIdentityLabel(member.identity)}/${value.key}:${fact.result.message}`);
|
|
269
|
+
}
|
|
270
|
+
const ownerIdentity = fact.result.ownerIdentity;
|
|
271
|
+
const ownerKey = contentIdentityKey(ownerIdentity);
|
|
272
|
+
if (!declarationIdentities.has(ownerKey)) {
|
|
273
|
+
throw new Error(`根附件owner未提供所需声明:${contentIdentityLabel(ownerIdentity)}`);
|
|
274
|
+
}
|
|
275
|
+
requested.set(ownerKey, ownerIdentity);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return Object.freeze([...requested.values()]);
|
|
279
|
+
}
|
|
280
|
+
function packageLinks(options) {
|
|
281
|
+
const seen = new Set();
|
|
282
|
+
const links = [];
|
|
283
|
+
const packagesById = new Map(options.packages.map((item) => [item.packageDefinitionId, item]));
|
|
284
|
+
const contentByIdentity = new Map(options.content
|
|
285
|
+
.filter((member) => member.kind === "reference")
|
|
286
|
+
.map((member) => [contentIdentityKey(member.identity), member]));
|
|
287
|
+
const packagesByNodeIdentity = new Map();
|
|
288
|
+
for (const selection of options.selections) {
|
|
289
|
+
for (const [nodeIdentity, packageId] of Object.entries(selection.nodes)) {
|
|
290
|
+
const packageIds = packagesByNodeIdentity.get(nodeIdentity) ?? new Set();
|
|
291
|
+
packageIds.add(packageId);
|
|
292
|
+
packagesByNodeIdentity.set(nodeIdentity, packageIds);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
const add = (consumerId, providerId) => {
|
|
296
|
+
if (consumerId === providerId)
|
|
297
|
+
return;
|
|
298
|
+
const identity = `${consumerId}\u0000${providerId}`;
|
|
299
|
+
if (seen.has(identity))
|
|
300
|
+
return;
|
|
301
|
+
seen.add(identity);
|
|
302
|
+
links.push({ consumerId, providerId });
|
|
303
|
+
};
|
|
304
|
+
for (const intent of options.existingPackageLinkIntents) {
|
|
305
|
+
add(intent.consumerId, intent.providerId);
|
|
306
|
+
}
|
|
307
|
+
for (const consumer of options.packages) {
|
|
308
|
+
const consumerMember = contentByIdentity.get(contentIdentityKey(consumer.contentIdentity));
|
|
309
|
+
if (consumerMember !== undefined && isRecord(consumerMember.definition)) {
|
|
310
|
+
const targetDependencyKeys = new Set(Array.isArray(consumerMember.definition.targetDependencyKeys)
|
|
311
|
+
? consumerMember.definition.targetDependencyKeys.filter((key) => typeof key === "string")
|
|
312
|
+
: []);
|
|
313
|
+
for (const [key, providerId] of Object.entries(consumer.dependencyBindings)) {
|
|
314
|
+
if (!targetDependencyKeys.has(key))
|
|
315
|
+
continue;
|
|
316
|
+
const provider = packagesById.get(providerId);
|
|
317
|
+
const providerMember = provider === undefined
|
|
318
|
+
? undefined
|
|
319
|
+
: contentByIdentity.get(contentIdentityKey(provider.contentIdentity));
|
|
320
|
+
if (providerMember === undefined ||
|
|
321
|
+
!isRecord(providerMember.definition) ||
|
|
322
|
+
!isRecord(providerMember.definition.targetExports) ||
|
|
323
|
+
!Object.hasOwn(providerMember.definition.targetExports, ".")) {
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
add(consumer.packageDefinitionId, providerId);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
const creationInput = consumer.creationInput;
|
|
330
|
+
const isExistingPackage = options.existingPackageDefinitionIds.has(consumer.packageDefinitionId);
|
|
331
|
+
if (!isExistingPackage && isRecord(creationInput)) {
|
|
332
|
+
const linkTo = creationInput.linkTo;
|
|
333
|
+
if (linkTo !== undefined) {
|
|
334
|
+
if (!isRecord(linkTo)) {
|
|
335
|
+
throw new Error("包连接目标必须是节点身份或现存实例ID");
|
|
336
|
+
}
|
|
337
|
+
const targetKeys = Object.keys(linkTo);
|
|
338
|
+
if (targetKeys.length !== 1 ||
|
|
339
|
+
!["nodeIdentity", "packageDefinitionId"].includes(targetKeys[0])) {
|
|
340
|
+
throw new Error("包连接目标必须且只能指定一种身份");
|
|
341
|
+
}
|
|
342
|
+
const nodeIdentity = linkTo.nodeIdentity;
|
|
343
|
+
const packageDefinitionId = linkTo.packageDefinitionId;
|
|
344
|
+
let providerId;
|
|
345
|
+
if (typeof nodeIdentity === "string") {
|
|
346
|
+
if (nodeIdentity.length === 0) {
|
|
347
|
+
throw new Error("包连接请求需要非空节点身份");
|
|
348
|
+
}
|
|
349
|
+
const candidates = packagesByNodeIdentity.get(nodeIdentity);
|
|
350
|
+
if (candidates === undefined || candidates.size === 0) {
|
|
351
|
+
throw new Error(`包连接节点身份不存在:${nodeIdentity}`);
|
|
352
|
+
}
|
|
353
|
+
if (candidates.size > 1) {
|
|
354
|
+
throw new Error(`包连接节点身份不唯一:${nodeIdentity}`);
|
|
355
|
+
}
|
|
356
|
+
providerId = candidates.values().next().value;
|
|
357
|
+
}
|
|
358
|
+
else if (typeof packageDefinitionId === "string") {
|
|
359
|
+
if (packageDefinitionId.length === 0) {
|
|
360
|
+
throw new Error("包连接请求需要非空实例ID");
|
|
361
|
+
}
|
|
362
|
+
if (!options.existingPackageDefinitionIds.has(packageDefinitionId)) {
|
|
363
|
+
throw new Error(`包连接实例ID不存在:${packageDefinitionId}`);
|
|
364
|
+
}
|
|
365
|
+
providerId = packageDefinitionId;
|
|
366
|
+
}
|
|
367
|
+
if (providerId === undefined || !packagesById.has(providerId)) {
|
|
368
|
+
const identity = typeof nodeIdentity === "string"
|
|
369
|
+
? nodeIdentity
|
|
370
|
+
: typeof packageDefinitionId === "string"
|
|
371
|
+
? packageDefinitionId
|
|
372
|
+
: "实例ID";
|
|
373
|
+
throw new Error(`包连接目标没有当前实例:${identity}`);
|
|
374
|
+
}
|
|
375
|
+
if (providerId === consumer.packageDefinitionId) {
|
|
376
|
+
throw new Error("包连接请求不能连接自身");
|
|
377
|
+
}
|
|
378
|
+
add(consumer.packageDefinitionId, providerId);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
if (isExistingPackage ||
|
|
382
|
+
!isRecord(creationInput) ||
|
|
383
|
+
creationInput.linkFrom === undefined) {
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
if (!Array.isArray(creationInput.linkFrom) ||
|
|
387
|
+
creationInput.linkFrom.some((packagePath) => typeof packagePath !== "string")) {
|
|
388
|
+
throw new Error(`包连接请求必须是路径字符串列表:${contentIdentityLabel(consumer.contentIdentity)}`);
|
|
389
|
+
}
|
|
390
|
+
for (const packagePath of creationInput.linkFrom) {
|
|
391
|
+
const linkedConsumer = options.packages.find((item) => item.definition.path === packagePath);
|
|
392
|
+
if (linkedConsumer === undefined) {
|
|
393
|
+
throw new PackageLinkValidationError({ kind: "unknown-consumer", path: packagePath }, `包连接目标不存在:${packagePath}`);
|
|
394
|
+
}
|
|
395
|
+
add(linkedConsumer.packageDefinitionId, consumer.packageDefinitionId);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
return Object.freeze(links);
|
|
399
|
+
}
|
|
400
|
+
function packageManifestExports(manifest) {
|
|
401
|
+
return isRecord(manifest.exports) ? manifest.exports : {};
|
|
402
|
+
}
|
|
403
|
+
function packageRelativeTarget(value, extension) {
|
|
404
|
+
if (typeof value !== "string" || !value.startsWith("./"))
|
|
405
|
+
return false;
|
|
406
|
+
const segments = value.slice(2).split("/");
|
|
407
|
+
return (!value.includes("\\") &&
|
|
408
|
+
segments.every((segment) => segment.length > 0 && segment !== "." && segment !== "..") &&
|
|
409
|
+
extension.test(value));
|
|
410
|
+
}
|
|
411
|
+
function exposesSourceConditions(manifest) {
|
|
412
|
+
const rootExport = packageManifestExports(manifest)["."];
|
|
413
|
+
if (!isRecord(rootExport) ||
|
|
414
|
+
Object.keys(rootExport).join("\u0000") !== "source\u0000types\u0000default") {
|
|
415
|
+
return false;
|
|
416
|
+
}
|
|
417
|
+
return (packageRelativeTarget(rootExport.source, /(?<!\.d)\.(?:[cm]?ts|tsx)$/u) &&
|
|
418
|
+
packageRelativeTarget(rootExport.types, /\.d\.[cm]?ts$/u) &&
|
|
419
|
+
packageRelativeTarget(rootExport.default, /\.[cm]?js$/u));
|
|
420
|
+
}
|
|
421
|
+
function exposesPackageRoot(manifest) {
|
|
422
|
+
const rootExport = packageManifestExports(manifest)["."];
|
|
423
|
+
if (packageRelativeTarget(rootExport, /\.[cm]?[jt]sx?$/u))
|
|
424
|
+
return true;
|
|
425
|
+
return (isRecord(rootExport) &&
|
|
426
|
+
packageRelativeTarget(rootExport.default, /\.[cm]?[jt]sx?$/u));
|
|
427
|
+
}
|
|
428
|
+
function requestsInjectedProvider(manifest, providerName) {
|
|
429
|
+
if (!isRecord(manifest.dependenciesMeta))
|
|
430
|
+
return false;
|
|
431
|
+
const metadata = manifest.dependenciesMeta[providerName];
|
|
432
|
+
return isRecord(metadata) && metadata.injected === true;
|
|
433
|
+
}
|
|
434
|
+
/** 在已计算的贡献中应用新模型的ID连接,并只改完整原生manifest值。 */
|
|
435
|
+
function linkedManifestOverrides(options) {
|
|
436
|
+
const byId = new Map(options.packages.map((item) => [item.package.packageDefinitionId, item]));
|
|
437
|
+
const overrides = new Map();
|
|
438
|
+
const linkedNames = new Map();
|
|
439
|
+
const getOverride = (item) => {
|
|
440
|
+
const existing = overrides.get(item.package.packageDefinitionId);
|
|
441
|
+
if (existing !== undefined)
|
|
442
|
+
return existing;
|
|
443
|
+
const next = structuredClone(item.contribution.facts.packageInput?.targetManifest ??
|
|
444
|
+
item.contribution.facts.manifest);
|
|
445
|
+
overrides.set(item.package.packageDefinitionId, next);
|
|
446
|
+
return next;
|
|
447
|
+
};
|
|
448
|
+
for (const intent of options.intents) {
|
|
449
|
+
const consumer = byId.get(intent.consumerId);
|
|
450
|
+
const provider = byId.get(intent.providerId);
|
|
451
|
+
if (consumer === undefined || provider === undefined) {
|
|
452
|
+
throw new Error("包连接引用了不存在的计算实例");
|
|
453
|
+
}
|
|
454
|
+
const consumerSource = consumer.contribution.facts.manifest;
|
|
455
|
+
const providerSource = provider.contribution.facts.manifest;
|
|
456
|
+
const currentManifest = (item, id, source) => {
|
|
457
|
+
const packageInput = item.contribution.facts.packageInput;
|
|
458
|
+
const current = packageInput?.targetManifest;
|
|
459
|
+
if (current !== undefined)
|
|
460
|
+
return current;
|
|
461
|
+
if (packageInput?.existing === true) {
|
|
462
|
+
throw new Error(`包连接缺少当前manifest事实:${item.package.definition.path}`);
|
|
463
|
+
}
|
|
464
|
+
return source;
|
|
465
|
+
};
|
|
466
|
+
const consumerCurrent = currentManifest(consumer, intent.consumerId, consumerSource);
|
|
467
|
+
const providerCurrent = currentManifest(provider, intent.providerId, providerSource);
|
|
468
|
+
for (const [item, manifest] of [
|
|
469
|
+
[consumer, consumerCurrent],
|
|
470
|
+
[provider, providerCurrent],
|
|
471
|
+
]) {
|
|
472
|
+
if (manifest.name !== item.package.definition.name) {
|
|
473
|
+
throw new Error(`包连接manifest名称与实例不符:${item.package.definition.path} 应为 ${item.package.definition.name}`);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
const consumerRole = consumer.package.definition.role;
|
|
477
|
+
const providerRole = provider.package.definition.role;
|
|
478
|
+
if (!isDefaultPackageRole(consumerRole) ||
|
|
479
|
+
consumerRole === "native-package" ||
|
|
480
|
+
consumerCurrent.type !== "module") {
|
|
481
|
+
throw new PackageLinkValidationError({
|
|
482
|
+
kind: "unsupported-link",
|
|
483
|
+
consumerPath: consumer.package.definition.path,
|
|
484
|
+
providerPath: provider.package.definition.path,
|
|
485
|
+
}, `包连接consumer不能使用Node包名导入:${consumer.package.definition.path}`);
|
|
486
|
+
}
|
|
487
|
+
if (!isDefaultPackageRole(providerRole) ||
|
|
488
|
+
providerRole === "native-package" ||
|
|
489
|
+
(consumerRole === "shared-library" && providerRole !== "shared-library")) {
|
|
490
|
+
throw new PackageLinkValidationError({
|
|
491
|
+
kind: "unsupported-link",
|
|
492
|
+
consumerPath: consumer.package.definition.path,
|
|
493
|
+
providerPath: provider.package.definition.path,
|
|
494
|
+
}, `包连接违反默认Package Role边界:${consumer.package.definition.path} (${consumerRole}) -> ${provider.package.definition.path} (${providerRole})`);
|
|
495
|
+
}
|
|
496
|
+
if (!exposesPackageRoot(providerCurrent)) {
|
|
497
|
+
throw new PackageLinkValidationError({
|
|
498
|
+
kind: "unsupported-link",
|
|
499
|
+
consumerPath: consumer.package.definition.path,
|
|
500
|
+
providerPath: provider.package.definition.path,
|
|
501
|
+
}, `包连接provider没有公开可导入包根:${provider.package.definition.path}`);
|
|
502
|
+
}
|
|
503
|
+
const providerName = provider.package.definition.name;
|
|
504
|
+
const linkKey = `${intent.consumerId}\u0000${providerName}`;
|
|
505
|
+
const previousProvider = linkedNames.get(linkKey);
|
|
506
|
+
if (previousProvider !== undefined &&
|
|
507
|
+
previousProvider !== intent.providerId) {
|
|
508
|
+
throw new Error(`包连接名称冲突:${consumer.package.definition.path}/${providerName} 同时绑定 ${previousProvider} 与 ${intent.providerId}`);
|
|
509
|
+
}
|
|
510
|
+
linkedNames.set(linkKey, intent.providerId);
|
|
511
|
+
const injected = !exposesSourceConditions(providerCurrent) ||
|
|
512
|
+
requestsInjectedProvider(consumerCurrent, providerName);
|
|
513
|
+
const consumerManifest = getOverride(consumer);
|
|
514
|
+
const dependencies = isRecord(consumerManifest.dependencies)
|
|
515
|
+
? { ...consumerManifest.dependencies }
|
|
516
|
+
: {};
|
|
517
|
+
dependencies[providerName] = "workspace:*";
|
|
518
|
+
consumerManifest.dependencies = dependencies;
|
|
519
|
+
const providerManifest = getOverride(provider);
|
|
520
|
+
if (injected) {
|
|
521
|
+
const metadata = isRecord(consumerManifest.dependenciesMeta)
|
|
522
|
+
? { ...consumerManifest.dependenciesMeta }
|
|
523
|
+
: {};
|
|
524
|
+
metadata[providerName] = { injected: true };
|
|
525
|
+
consumerManifest.dependenciesMeta = metadata;
|
|
526
|
+
const devDependencies = isRecord(providerManifest.devDependencies)
|
|
527
|
+
? { ...providerManifest.devDependencies }
|
|
528
|
+
: {};
|
|
529
|
+
const runtimeDependencies = isRecord(providerManifest.dependencies)
|
|
530
|
+
? { ...providerManifest.dependencies }
|
|
531
|
+
: {};
|
|
532
|
+
for (const [key, dependencyId] of Object.entries(provider.package.dependencyBindings)) {
|
|
533
|
+
const binding = provider.contribution.facts.referenceBindings[key];
|
|
534
|
+
if (dependencyId === undefined ||
|
|
535
|
+
!isRecord(binding) ||
|
|
536
|
+
typeof binding.name !== "string" ||
|
|
537
|
+
!Object.hasOwn(devDependencies, binding.name)) {
|
|
538
|
+
continue;
|
|
539
|
+
}
|
|
540
|
+
runtimeDependencies[binding.name] = devDependencies[binding.name];
|
|
541
|
+
delete devDependencies[binding.name];
|
|
542
|
+
}
|
|
543
|
+
providerManifest.devDependencies = devDependencies;
|
|
544
|
+
providerManifest.dependencies = runtimeDependencies;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
return overrides;
|
|
548
|
+
}
|
|
549
|
+
function assertUniqueWorkspaceBinaryNames(options) {
|
|
550
|
+
const owners = new Map();
|
|
551
|
+
for (const { package: item, contribution } of options.packages) {
|
|
552
|
+
const manifest = options.manifestOverrides.get(item.packageDefinitionId) ??
|
|
553
|
+
contribution.facts.packageInput?.targetManifest ??
|
|
554
|
+
contribution.facts.manifest;
|
|
555
|
+
if (!isRecord(manifest.bin))
|
|
556
|
+
continue;
|
|
557
|
+
for (const commandName of Object.keys(manifest.bin)) {
|
|
558
|
+
const previousOwner = owners.get(commandName);
|
|
559
|
+
if (previousOwner !== undefined) {
|
|
560
|
+
throw new Error(`CLI命令名称 ${JSON.stringify(commandName)} 重复:${previousOwner} 与 ${item.definition.name}`);
|
|
561
|
+
}
|
|
562
|
+
owners.set(commandName, item.definition.name);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
function mergeEntries(options) {
|
|
567
|
+
const result = { ...options.base };
|
|
568
|
+
const owners = new Map(Object.keys(options.base).map((key) => [key, options.baseSource]));
|
|
569
|
+
for (const declaration of options.declarations) {
|
|
570
|
+
for (const [key, value] of Object.entries(declaration.values)) {
|
|
571
|
+
const owner = owners.get(key);
|
|
572
|
+
if (owner !== undefined && !isDeepStrictEqual(result[key], value)) {
|
|
573
|
+
throw new Error(`共享根声明冲突:${options.location}/${key};来源 ${owner} 与 ${declaration.source}`);
|
|
574
|
+
}
|
|
575
|
+
if (owner === undefined) {
|
|
576
|
+
result[key] = value;
|
|
577
|
+
owners.set(key, declaration.source);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
return result;
|
|
582
|
+
}
|
|
583
|
+
function developmentContainerFragmentTexts(options) {
|
|
584
|
+
const fragments = { ...options.rootFragments };
|
|
585
|
+
const owners = new Map(Object.keys(fragments).map((path) => [path, "根参考包"]));
|
|
586
|
+
for (const { package: item, contribution } of options.packages) {
|
|
587
|
+
const declared = contribution.facts.foundation.developmentContainerToolLayerFragments;
|
|
588
|
+
if (declared === undefined)
|
|
589
|
+
continue;
|
|
590
|
+
if (!isRecord(declared)) {
|
|
591
|
+
throw new Error(`开发容器片段快照无效:${sourceLabel(item.contentIdentity)}`);
|
|
592
|
+
}
|
|
593
|
+
const owner = sourceLabel(item.contentIdentity);
|
|
594
|
+
for (const [path, text] of Object.entries(declared)) {
|
|
595
|
+
if (typeof text !== "string") {
|
|
596
|
+
throw new Error(`开发容器片段必须是文本:${owner}/${path}`);
|
|
597
|
+
}
|
|
598
|
+
const previousOwner = owners.get(path);
|
|
599
|
+
if (previousOwner !== undefined && fragments[path] !== text) {
|
|
600
|
+
throw new Error(`开发容器 Dockerfile 片段冲突:${path};来源 ${previousOwner} 与 ${owner}`);
|
|
601
|
+
}
|
|
602
|
+
if (previousOwner === undefined) {
|
|
603
|
+
owners.set(path, owner);
|
|
604
|
+
fragments[path] = text;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
return fragments;
|
|
609
|
+
}
|
|
610
|
+
function packageGlobs(blueprint) {
|
|
611
|
+
const globs = new Set(["apps/*", "packages/*"]);
|
|
612
|
+
for (const definition of blueprint.packages) {
|
|
613
|
+
if (definition.path === ".")
|
|
614
|
+
continue;
|
|
615
|
+
const firstSegment = definition.path.split("/", 1)[0];
|
|
616
|
+
globs.add(`${firstSegment}/*`);
|
|
617
|
+
}
|
|
618
|
+
return [...globs];
|
|
619
|
+
}
|
|
620
|
+
function packageRoles(blueprint) {
|
|
621
|
+
return [...new Set(blueprint.packages.map(({ role }) => role))];
|
|
622
|
+
}
|
|
623
|
+
function boundariesFor(blueprint) {
|
|
624
|
+
const roles = packageRoles(blueprint);
|
|
625
|
+
const tags = {};
|
|
626
|
+
if (roles.some((role) => role === "cli-tool" || role === "runtime-service")) {
|
|
627
|
+
tags.app = { dependencies: { allow: ["app", "library"] } };
|
|
628
|
+
}
|
|
629
|
+
if (roles.some((role) => role === "shared-library" ||
|
|
630
|
+
role === "native-package" ||
|
|
631
|
+
role === "cli-tool" ||
|
|
632
|
+
role === "runtime-service")) {
|
|
633
|
+
tags.library = { dependencies: { allow: ["library"] } };
|
|
634
|
+
}
|
|
635
|
+
return { tags };
|
|
636
|
+
}
|
|
637
|
+
function json(value) {
|
|
638
|
+
return serializeNativeJson(value);
|
|
639
|
+
}
|
|
640
|
+
function rootFile(options) {
|
|
641
|
+
const reconciliation = options.reconciliation ?? {
|
|
642
|
+
path: options.path,
|
|
643
|
+
driver: /\.(?:json|jsonc)$/u.test(options.path)
|
|
644
|
+
? "structured"
|
|
645
|
+
: "text",
|
|
646
|
+
};
|
|
647
|
+
return {
|
|
648
|
+
file: {
|
|
649
|
+
packageDefinitionId: options.packageDefinitionId,
|
|
650
|
+
file: {
|
|
651
|
+
path: options.path,
|
|
652
|
+
content: options.content,
|
|
653
|
+
mode: options.mode ?? 0,
|
|
654
|
+
},
|
|
655
|
+
},
|
|
656
|
+
reconciliation: {
|
|
657
|
+
packageDefinitionId: options.packageDefinitionId,
|
|
658
|
+
reconciliation,
|
|
659
|
+
},
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
function filePath(value) {
|
|
663
|
+
const normalized = value;
|
|
664
|
+
if (normalized.length === 0 ||
|
|
665
|
+
normalized.includes("\\") ||
|
|
666
|
+
normalized.startsWith("/") ||
|
|
667
|
+
normalized
|
|
668
|
+
.split("/")
|
|
669
|
+
.some((part) => part === "" || part === "." || part === "..")) {
|
|
670
|
+
throw new Error(`默认组合根资源路径无效:${value}`);
|
|
671
|
+
}
|
|
672
|
+
return normalized;
|
|
673
|
+
}
|
|
674
|
+
function reuseEquivalentRootDeclarations(declarations) {
|
|
675
|
+
const declarationsBySource = new Map();
|
|
676
|
+
const result = [];
|
|
677
|
+
for (const declaration of declarations) {
|
|
678
|
+
const sourceKey = contentIdentityKey(declaration.sourceIdentity);
|
|
679
|
+
const sourceDeclarations = declarationsBySource.get(sourceKey) ?? [];
|
|
680
|
+
if (sourceDeclarations.some((existing) => isDeepStrictEqual(existing, declaration))) {
|
|
681
|
+
continue;
|
|
682
|
+
}
|
|
683
|
+
sourceDeclarations.push(declaration);
|
|
684
|
+
declarationsBySource.set(sourceKey, sourceDeclarations);
|
|
685
|
+
result.push(declaration);
|
|
686
|
+
}
|
|
687
|
+
return result;
|
|
688
|
+
}
|
|
689
|
+
function compositionFilesForRoot(options) {
|
|
690
|
+
const owners = new Map();
|
|
691
|
+
const files = [];
|
|
692
|
+
const reconciliation = [];
|
|
693
|
+
const add = (file, identity) => {
|
|
694
|
+
const target = filePath(file.path);
|
|
695
|
+
const source = sourceLabel(identity);
|
|
696
|
+
const owner = owners.get(target);
|
|
697
|
+
if (owner !== undefined) {
|
|
698
|
+
throw new Error(`默认组合根资源冲突:${target};来源 ${owner} 与 ${source}`);
|
|
699
|
+
}
|
|
700
|
+
owners.set(target, source);
|
|
701
|
+
files.push({
|
|
702
|
+
packageDefinitionId: options.rootId,
|
|
703
|
+
file: {
|
|
704
|
+
path: target,
|
|
705
|
+
content: file.content,
|
|
706
|
+
mode: file.mode,
|
|
707
|
+
},
|
|
708
|
+
});
|
|
709
|
+
reconciliation.push({
|
|
710
|
+
packageDefinitionId: options.rootId,
|
|
711
|
+
reconciliation: {
|
|
712
|
+
path: target,
|
|
713
|
+
driver: /\.(?:json|jsonc)$/u.test(target) ? "structured" : "text",
|
|
714
|
+
},
|
|
715
|
+
});
|
|
716
|
+
};
|
|
717
|
+
for (const item of options.contributionFiles)
|
|
718
|
+
add(item.file, item.identity);
|
|
719
|
+
for (const declaration of options.declarations) {
|
|
720
|
+
for (const file of declaration.files ?? []) {
|
|
721
|
+
add(file, declaration.sourceIdentity);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
return { files, reconciliation, owners };
|
|
725
|
+
}
|
|
726
|
+
function manifestContributions(declarations, field) {
|
|
727
|
+
return declarations.flatMap((declaration) => {
|
|
728
|
+
const values = declaration.manifest?.[field];
|
|
729
|
+
return values === undefined
|
|
730
|
+
? []
|
|
731
|
+
: [{ source: sourceLabel(declaration.sourceIdentity), values }];
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
function nativeDocumentsForPackage(options) {
|
|
735
|
+
return options.contribution.deferredNativeDocuments.map((document) => ({
|
|
736
|
+
document,
|
|
737
|
+
identity: options.identity,
|
|
738
|
+
packageDefinitionId: options.packageDefinitionId,
|
|
739
|
+
}));
|
|
740
|
+
}
|
|
741
|
+
function renderNativeDocument(document) {
|
|
742
|
+
return serializeNativeReferenceDocument(document);
|
|
743
|
+
}
|
|
744
|
+
function ownerDependencies(facts, rootPolicies) {
|
|
745
|
+
const policies = facts.flatMap((fact) => {
|
|
746
|
+
const dependencyMaintenance = fact.foundation.dependencyMaintenance;
|
|
747
|
+
return isRecord(dependencyMaintenance)
|
|
748
|
+
? [
|
|
749
|
+
{
|
|
750
|
+
foundation: {
|
|
751
|
+
dependencyMaintenance: dependencyMaintenance,
|
|
752
|
+
},
|
|
753
|
+
},
|
|
754
|
+
]
|
|
755
|
+
: [];
|
|
756
|
+
});
|
|
757
|
+
return projectDependencyMaintenancePolicy({
|
|
758
|
+
contributions: policies,
|
|
759
|
+
rootContributions: rootPolicies.map((dependencyMaintenance) => ({
|
|
760
|
+
dependencyMaintenance,
|
|
761
|
+
})),
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
/** 默认共同组合只消费显式实例、已经求得的原生贡献和本次准备快照。 */
|
|
765
|
+
export function createDefaultComposition(options) {
|
|
766
|
+
const rootKey = contentIdentityKey(options.rootIdentity);
|
|
767
|
+
const catalog = options.catalog ?? dependencyCatalogSnapshot;
|
|
768
|
+
const installPolicy = options.installPolicy ?? workspaceInstallPolicySnapshot;
|
|
769
|
+
const composition = {
|
|
770
|
+
identity: defaultCompositionIdentity,
|
|
771
|
+
parseConventions(value) {
|
|
772
|
+
return parseConventions(value);
|
|
773
|
+
},
|
|
774
|
+
resolve(resolveOptions) {
|
|
775
|
+
validateDefaultFacts(resolveOptions.operationFacts);
|
|
776
|
+
assertDefaultProjectBlueprint(resolveOptions.blueprint);
|
|
777
|
+
const roots = resolveOptions.packages.filter((item) => contentIdentityKey(item.contentIdentity) === rootKey);
|
|
778
|
+
if (roots.length !== 1 || roots[0]?.definition.path !== ".") {
|
|
779
|
+
throw new Error("默认组合必须包含唯一的原生基础根实例");
|
|
780
|
+
}
|
|
781
|
+
if (resolveOptions.blueprint.packages.filter(({ path: packagePath }) => packagePath === ".").length !== 1) {
|
|
782
|
+
throw new Error("默认组合只能有一个根包");
|
|
783
|
+
}
|
|
784
|
+
const rootAttachmentIdentities = prepareSelectedRootAttachmentIdentities({
|
|
785
|
+
packages: resolveOptions.packages,
|
|
786
|
+
content: options.content,
|
|
787
|
+
operationFacts: resolveOptions.operationFacts,
|
|
788
|
+
});
|
|
789
|
+
const selectedContent = new Set(resolveOptions.packages.map(({ contentIdentity }) => contentIdentityKey(contentIdentity)));
|
|
790
|
+
const declaredApplicationRequirements = composeApplicationRequirements(resolveOptions.operationFacts.rootDeclarations
|
|
791
|
+
.filter((declaration) => selectedContent.has(contentIdentityKey(declaration.sourceIdentity)))
|
|
792
|
+
.map((declaration) => ({
|
|
793
|
+
source: contentIdentityLabel(declaration.sourceIdentity),
|
|
794
|
+
...(declaration.applicationRequirements === undefined
|
|
795
|
+
? {}
|
|
796
|
+
: { requirements: declaration.applicationRequirements }),
|
|
797
|
+
})));
|
|
798
|
+
const applicationRequirements = resolveApplicationRequirements({
|
|
799
|
+
declared: declaredApplicationRequirements,
|
|
800
|
+
...(resolveOptions.operationFacts.rustToolchainTarget === undefined
|
|
801
|
+
? {}
|
|
802
|
+
: {
|
|
803
|
+
rustToolchainTarget: resolveOptions.operationFacts.rustToolchainTarget,
|
|
804
|
+
}),
|
|
805
|
+
defaultRustToolchain: releaseToolchainSnapshot.rustVersion,
|
|
806
|
+
});
|
|
807
|
+
const packageLinkIntents = packageLinks({
|
|
808
|
+
packages: resolveOptions.packages,
|
|
809
|
+
content: options.content,
|
|
810
|
+
selections: resolveOptions.selections,
|
|
811
|
+
existingPackageDefinitionIds: resolveOptions.operationFacts.existingPackageDefinitionIds,
|
|
812
|
+
existingPackageLinkIntents: resolveOptions.operationFacts.existingPackageLinkIntents,
|
|
813
|
+
});
|
|
814
|
+
const linkedPackageIds = new Set(packageLinkIntents.flatMap(({ consumerId, providerId }) => [
|
|
815
|
+
consumerId,
|
|
816
|
+
providerId,
|
|
817
|
+
]));
|
|
818
|
+
const packageInputs = new Map(resolveOptions.packages.map((item) => {
|
|
819
|
+
const deferredNativeDocumentPaths = new Set();
|
|
820
|
+
if (contentIdentityKey(item.contentIdentity) === rootKey) {
|
|
821
|
+
deferredNativeDocumentPaths.add("package.json");
|
|
822
|
+
deferredNativeDocumentPaths.add("turbo.json");
|
|
823
|
+
deferredNativeDocumentPaths.add("tsconfig.config.json");
|
|
824
|
+
}
|
|
825
|
+
if (linkedPackageIds.has(item.packageDefinitionId)) {
|
|
826
|
+
deferredNativeDocumentPaths.add("package.json");
|
|
827
|
+
}
|
|
828
|
+
return [
|
|
829
|
+
item.packageDefinitionId,
|
|
830
|
+
{
|
|
831
|
+
deferredNativeDocumentPaths: [...deferredNativeDocumentPaths],
|
|
832
|
+
targetManifest: resolveOptions.operationFacts.targetManifests.get(item.packageDefinitionId),
|
|
833
|
+
existing: resolveOptions.operationFacts.existingPackageDefinitionIds.has(item.packageDefinitionId),
|
|
834
|
+
},
|
|
835
|
+
];
|
|
836
|
+
}));
|
|
837
|
+
return {
|
|
838
|
+
stableCommon: Object.freeze({
|
|
839
|
+
nodeDeclaration: resolveOptions.operationFacts.nodeDeclaration,
|
|
840
|
+
packageManagerPin: resolveOptions.operationFacts.packageManagerPin,
|
|
841
|
+
resources: resolveOptions.operationFacts.resources,
|
|
842
|
+
applicationRequirements,
|
|
843
|
+
rootDeclarations: resolveOptions.operationFacts.rootDeclarations,
|
|
844
|
+
rootAttachmentIdentities,
|
|
845
|
+
presetRootContributions: resolveOptions.operationFacts.presetRootContributions,
|
|
846
|
+
}),
|
|
847
|
+
packageInputs,
|
|
848
|
+
packageLinkIntents,
|
|
849
|
+
};
|
|
850
|
+
},
|
|
851
|
+
combine(combineOptions) {
|
|
852
|
+
const rootPackages = combineOptions.packages.filter(({ package: item }) => contentIdentityKey(item.contentIdentity) === rootKey);
|
|
853
|
+
if (rootPackages.length !== 1) {
|
|
854
|
+
throw new Error("默认组合只能合成一个基础根贡献");
|
|
855
|
+
}
|
|
856
|
+
const rootPackage = rootPackages[0];
|
|
857
|
+
if (rootPackage.package.definition.path !== ".") {
|
|
858
|
+
throw new Error("基础根内容必须拥有目标目录 .");
|
|
859
|
+
}
|
|
860
|
+
const presetRootContributionDeclarations = composePresetRootContributionDeclarations({
|
|
861
|
+
content: options.content,
|
|
862
|
+
selections: combineOptions.selections,
|
|
863
|
+
packages: combineOptions.packages,
|
|
864
|
+
preparedContributions: combineOptions.stableCommon.presetRootContributions,
|
|
865
|
+
});
|
|
866
|
+
const allFacts = combineOptions.packages.map(({ contribution }) => contribution.facts);
|
|
867
|
+
const manifestOverrides = linkedManifestOverrides({
|
|
868
|
+
packages: combineOptions.packages,
|
|
869
|
+
intents: combineOptions.blueprint.packageLinkIntents,
|
|
870
|
+
});
|
|
871
|
+
const finalManifests = new Map(combineOptions.packages.map(({ package: item, contribution }) => [
|
|
872
|
+
item.packageDefinitionId,
|
|
873
|
+
manifestOverrides.get(item.packageDefinitionId) ??
|
|
874
|
+
contribution.facts.manifest,
|
|
875
|
+
]));
|
|
876
|
+
assertUniqueWorkspaceBinaryNames({
|
|
877
|
+
packages: combineOptions.packages,
|
|
878
|
+
manifestOverrides,
|
|
879
|
+
});
|
|
880
|
+
const requiredTemplateDependencies = new Set(allFacts.flatMap((facts) => facts.templateDependencies
|
|
881
|
+
.filter(({ purpose }) => purpose === "template-execution")
|
|
882
|
+
.map(({ name }) => name)));
|
|
883
|
+
const requiredRootAttachmentIdentities = new Set(combineOptions.stableCommon.rootAttachmentIdentities.map(contentIdentityKey));
|
|
884
|
+
const selectedContentIdentities = new Set(combineOptions.packages.map(({ package: item }) => contentIdentityKey(item.contentIdentity)));
|
|
885
|
+
const declarations = reuseEquivalentRootDeclarations([
|
|
886
|
+
...combineOptions.packages.flatMap(({ package: item, contribution }) => contribution.facts.rootDeclaration === undefined
|
|
887
|
+
? []
|
|
888
|
+
: [
|
|
889
|
+
{
|
|
890
|
+
...contribution.facts.rootDeclaration,
|
|
891
|
+
sourceIdentity: item.contentIdentity,
|
|
892
|
+
},
|
|
893
|
+
]),
|
|
894
|
+
...combineOptions.stableCommon.rootDeclarations.filter((declaration) => declaration.requiredTemplateDependency === undefined ||
|
|
895
|
+
selectedContentIdentities.has(contentIdentityKey(declaration.sourceIdentity)) ||
|
|
896
|
+
(requiredTemplateDependencies.has(declaration.requiredTemplateDependency) &&
|
|
897
|
+
requiredRootAttachmentIdentities.has(contentIdentityKey(declaration.sourceIdentity)))),
|
|
898
|
+
...presetRootContributionDeclarations,
|
|
899
|
+
]);
|
|
900
|
+
const rootIdentity = rootPackage.package.contentIdentity;
|
|
901
|
+
const rootSource = sourceLabel(rootIdentity);
|
|
902
|
+
const nativeDocumentFacts = combineOptions.packages.flatMap(({ package: item, contribution }) => contribution.facts.nativeDocuments.map((document) => ({
|
|
903
|
+
identity: item.contentIdentity,
|
|
904
|
+
packageDefinitionId: item.packageDefinitionId,
|
|
905
|
+
path: document.path,
|
|
906
|
+
sourcePath: document.sourcePath,
|
|
907
|
+
})));
|
|
908
|
+
const documents = combineOptions.packages.flatMap(({ package: item, contribution }) => nativeDocumentsForPackage({
|
|
909
|
+
contribution: contribution.facts,
|
|
910
|
+
identity: item.contentIdentity,
|
|
911
|
+
packageDefinitionId: item.packageDefinitionId,
|
|
912
|
+
}));
|
|
913
|
+
const rootManifestFact = documents.find(({ identity, document }) => contentIdentityKey(identity) === rootKey &&
|
|
914
|
+
document.path === "package.json" &&
|
|
915
|
+
document.scope === "package");
|
|
916
|
+
const rootTurboFact = documents.find(({ identity, document }) => contentIdentityKey(identity) === rootKey &&
|
|
917
|
+
document.path === "turbo.json" &&
|
|
918
|
+
document.scope === "package");
|
|
919
|
+
if (rootManifestFact === undefined || rootTurboFact === undefined) {
|
|
920
|
+
throw new Error("基础根原生贡献必须包含package.json与turbo.json");
|
|
921
|
+
}
|
|
922
|
+
const manifest = structuredClone(finalManifests.get(rootPackage.package.packageDefinitionId) ??
|
|
923
|
+
rootManifestFact.document.value);
|
|
924
|
+
for (const field of ["scripts", "imports", "devDependencies"]) {
|
|
925
|
+
const base = isRecord(manifest[field])
|
|
926
|
+
? manifest[field]
|
|
927
|
+
: {};
|
|
928
|
+
const merged = mergeEntries({
|
|
929
|
+
location: `package.json#/${field}`,
|
|
930
|
+
baseSource: rootSource,
|
|
931
|
+
base,
|
|
932
|
+
declarations: manifestContributions(declarations, field),
|
|
933
|
+
});
|
|
934
|
+
if (Object.keys(merged).length > 0)
|
|
935
|
+
manifest[field] = merged;
|
|
936
|
+
}
|
|
937
|
+
const rootTurbo = structuredClone(rootTurboFact.document.value);
|
|
938
|
+
const baseTasks = isRecord(rootTurbo.tasks)
|
|
939
|
+
? rootTurbo.tasks
|
|
940
|
+
: {};
|
|
941
|
+
const tasks = mergeEntries({
|
|
942
|
+
location: "turbo.json#/tasks",
|
|
943
|
+
baseSource: rootSource,
|
|
944
|
+
base: baseTasks,
|
|
945
|
+
declarations: declarations.flatMap((declaration) => declaration.turboTasks === undefined
|
|
946
|
+
? []
|
|
947
|
+
: [
|
|
948
|
+
{
|
|
949
|
+
source: sourceLabel(declaration.sourceIdentity),
|
|
950
|
+
values: declaration.turboTasks,
|
|
951
|
+
},
|
|
952
|
+
]),
|
|
953
|
+
});
|
|
954
|
+
const toolingConfigurations = combineOptions.packages.filter(({ contribution }) => contribution.facts.workspaceConfiguration?.kind ===
|
|
955
|
+
"typescript-workspace-configuration");
|
|
956
|
+
const packageGlobalDependencies = toolingConfigurations.flatMap(({ package: item }) => ["oxfmt.config.ts", "oxlint.config.ts"].map((file) => item.definition.path === "."
|
|
957
|
+
? file
|
|
958
|
+
: `${item.definition.path}/${file}`));
|
|
959
|
+
const globalDependencies = [
|
|
960
|
+
...new Set([
|
|
961
|
+
...(Array.isArray(rootTurbo.globalDependencies)
|
|
962
|
+
? rootTurbo.globalDependencies.filter((entry) => typeof entry === "string")
|
|
963
|
+
: []),
|
|
964
|
+
...packageGlobalDependencies,
|
|
965
|
+
]),
|
|
966
|
+
];
|
|
967
|
+
const turbo = {
|
|
968
|
+
...rootTurbo,
|
|
969
|
+
boundaries: boundariesFor(combineOptions.blueprint),
|
|
970
|
+
globalDependencies,
|
|
971
|
+
tasks,
|
|
972
|
+
};
|
|
973
|
+
const rootTypeScriptFact = documents.find(({ identity, document }) => contentIdentityKey(identity) === rootKey &&
|
|
974
|
+
document.path === "tsconfig.config.json" &&
|
|
975
|
+
document.scope === "package");
|
|
976
|
+
const typescriptDeclarations = declarations.filter((declaration) => declaration.typescript !== undefined);
|
|
977
|
+
let rootTypeScript;
|
|
978
|
+
if (typescriptDeclarations.length > 0) {
|
|
979
|
+
if (rootTypeScriptFact === undefined) {
|
|
980
|
+
throw new Error("根TypeScript声明需要基础根提供tsconfig.config.json原生文档");
|
|
981
|
+
}
|
|
982
|
+
const value = structuredClone(rootTypeScriptFact.document.value);
|
|
983
|
+
const baseCompilerOptions = isRecord(value.compilerOptions)
|
|
984
|
+
? value.compilerOptions
|
|
985
|
+
: {};
|
|
986
|
+
const compilerOptions = mergeEntries({
|
|
987
|
+
location: "tsconfig.config.json#/compilerOptions",
|
|
988
|
+
baseSource: rootSource,
|
|
989
|
+
base: baseCompilerOptions,
|
|
990
|
+
declarations: typescriptDeclarations.flatMap((declaration) => declaration.typescript?.compilerOptions === undefined
|
|
991
|
+
? []
|
|
992
|
+
: [
|
|
993
|
+
{
|
|
994
|
+
source: sourceLabel(declaration.sourceIdentity),
|
|
995
|
+
values: declaration.typescript.compilerOptions,
|
|
996
|
+
},
|
|
997
|
+
]),
|
|
998
|
+
});
|
|
999
|
+
const baseInclude = value.include;
|
|
1000
|
+
if (baseInclude !== undefined &&
|
|
1001
|
+
(!Array.isArray(baseInclude) ||
|
|
1002
|
+
baseInclude.some((item) => typeof item !== "string"))) {
|
|
1003
|
+
throw new Error("基础根tsconfig.config.json include必须是字符串列表");
|
|
1004
|
+
}
|
|
1005
|
+
const include = [
|
|
1006
|
+
...new Set([
|
|
1007
|
+
...(baseInclude ?? []),
|
|
1008
|
+
...typescriptDeclarations.flatMap((declaration) => declaration.typescript?.include ?? []),
|
|
1009
|
+
]),
|
|
1010
|
+
];
|
|
1011
|
+
value.compilerOptions = compilerOptions;
|
|
1012
|
+
value.include = include;
|
|
1013
|
+
rootTypeScript = {
|
|
1014
|
+
...rootTypeScriptFact.document,
|
|
1015
|
+
value,
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
finalManifests.set(rootPackage.package.packageDefinitionId, manifest);
|
|
1019
|
+
const dependencyCatalog = selectTemplateDependencyCatalogEntries(collectGeneratedManifestCatalogReferences([...finalManifests.values()]), catalog);
|
|
1020
|
+
const packagePaths = combineOptions.blueprint.packages
|
|
1021
|
+
.filter(({ path: packagePath }) => packagePath !== ".")
|
|
1022
|
+
.map(({ path: packagePath }) => packagePath);
|
|
1023
|
+
const sharedRoot = composeSharedRootFiles({
|
|
1024
|
+
source: rootSource,
|
|
1025
|
+
manifest: {},
|
|
1026
|
+
turboTasks: {},
|
|
1027
|
+
typescript: { compilerOptions: {}, include: [] },
|
|
1028
|
+
declarations: declarations.map((declaration) => ({
|
|
1029
|
+
kind: "shared-root-files",
|
|
1030
|
+
source: sourceLabel(declaration.sourceIdentity),
|
|
1031
|
+
...(declaration.ciJob === undefined
|
|
1032
|
+
? {}
|
|
1033
|
+
: { ciJob: declaration.ciJob }),
|
|
1034
|
+
...(declaration.ciSteps === undefined
|
|
1035
|
+
? {}
|
|
1036
|
+
: { ciSteps: declaration.ciSteps }),
|
|
1037
|
+
...(declaration.environmentNeeds === undefined
|
|
1038
|
+
? {}
|
|
1039
|
+
: { environmentNeeds: declaration.environmentNeeds }),
|
|
1040
|
+
...(declaration.dependencyMaintenance === undefined
|
|
1041
|
+
? {}
|
|
1042
|
+
: { dependencyMaintenance: declaration.dependencyMaintenance }),
|
|
1043
|
+
})),
|
|
1044
|
+
});
|
|
1045
|
+
const packages = packageGlobs(combineOptions.blueprint);
|
|
1046
|
+
const overrides = Object.hasOwn(dependencyCatalog, "vue") ||
|
|
1047
|
+
Object.hasOwn(dependencyCatalog, "pinia")
|
|
1048
|
+
? vuePnpmDependencyOverrides
|
|
1049
|
+
: {};
|
|
1050
|
+
const installConfiguration = { ...installPolicy };
|
|
1051
|
+
delete installConfiguration.minimumReleaseAgeExclude;
|
|
1052
|
+
const workspace = stringifyYaml({
|
|
1053
|
+
...installConfiguration,
|
|
1054
|
+
packages,
|
|
1055
|
+
catalog: dependencyCatalog,
|
|
1056
|
+
overrides,
|
|
1057
|
+
});
|
|
1058
|
+
const baseDeclarations = declarations
|
|
1059
|
+
.map((declaration) => declaration.gitignoreFragments ?? [])
|
|
1060
|
+
.flat();
|
|
1061
|
+
const files = compositionFilesForRoot({
|
|
1062
|
+
rootId: rootPackage.package.packageDefinitionId,
|
|
1063
|
+
declarations,
|
|
1064
|
+
contributionFiles: combineOptions.packages.flatMap(({ package: item, contribution }) => contribution.facts.compositionFiles.map((file) => ({
|
|
1065
|
+
identity: item.contentIdentity,
|
|
1066
|
+
file,
|
|
1067
|
+
}))),
|
|
1068
|
+
});
|
|
1069
|
+
const ownerPackagePaths = packagePaths;
|
|
1070
|
+
const editor = projectWorkspaceEditorCustomization(allFacts.flatMap((facts) => {
|
|
1071
|
+
const capabilities = facts.foundation.editorCapabilities;
|
|
1072
|
+
return Array.isArray(capabilities)
|
|
1073
|
+
? capabilities.filter((value) => typeof value === "string")
|
|
1074
|
+
: [];
|
|
1075
|
+
}), combineOptions.stableCommon.resources.editor);
|
|
1076
|
+
const checkNeeds = [];
|
|
1077
|
+
const deploymentNeeds = [];
|
|
1078
|
+
for (const need of [
|
|
1079
|
+
...allFacts.flatMap((facts) => facts.environmentNeeds),
|
|
1080
|
+
...sharedRoot.environmentNeeds.check,
|
|
1081
|
+
...sharedRoot.environmentNeeds.deployment,
|
|
1082
|
+
]) {
|
|
1083
|
+
if (need.kind === "docker-engine")
|
|
1084
|
+
deploymentNeeds.push(need);
|
|
1085
|
+
else
|
|
1086
|
+
checkNeeds.push(need);
|
|
1087
|
+
}
|
|
1088
|
+
const environmentNeeds = normalizeEnvironmentNeeds({
|
|
1089
|
+
check: checkNeeds,
|
|
1090
|
+
deployment: deploymentNeeds,
|
|
1091
|
+
});
|
|
1092
|
+
const developmentContainerLayers = allFacts.flatMap((facts) => {
|
|
1093
|
+
const layers = facts.foundation.developmentContainerToolLayers;
|
|
1094
|
+
return Array.isArray(layers)
|
|
1095
|
+
? layers
|
|
1096
|
+
: [];
|
|
1097
|
+
});
|
|
1098
|
+
if (environmentNeeds.check.some((need) => need.kind === "playwright-browser-assets")) {
|
|
1099
|
+
const playwrightVersion = dependencyCatalog["@playwright/test"] ?? dependencyCatalog.playwright;
|
|
1100
|
+
if (playwrightVersion === undefined) {
|
|
1101
|
+
throw new Error("声明Playwright浏览器环境需求的内容必须在实际模板依赖目录中提供playwright或@playwright/test版本");
|
|
1102
|
+
}
|
|
1103
|
+
developmentContainerLayers.push(browserTestDevelopmentContainerToolLayer(playwrightVersion));
|
|
1104
|
+
}
|
|
1105
|
+
if (environmentNeeds.check.some((need) => need.kind === "shellcheck-command")) {
|
|
1106
|
+
developmentContainerLayers.push(shellCheckDevelopmentContainerToolLayer());
|
|
1107
|
+
}
|
|
1108
|
+
const developmentContainerResources = {
|
|
1109
|
+
...combineOptions.stableCommon.resources.developmentContainer,
|
|
1110
|
+
dockerfileFragments: developmentContainerFragmentTexts({
|
|
1111
|
+
packages: combineOptions.packages,
|
|
1112
|
+
rootFragments: combineOptions.stableCommon.resources.developmentContainer
|
|
1113
|
+
.dockerfileFragments,
|
|
1114
|
+
}),
|
|
1115
|
+
};
|
|
1116
|
+
const developmentContainer = projectWorkspaceDevelopmentContainer({
|
|
1117
|
+
nodeVersion: combineOptions.stableCommon.nodeDeclaration,
|
|
1118
|
+
layers: developmentContainerLayers,
|
|
1119
|
+
resources: developmentContainerResources,
|
|
1120
|
+
});
|
|
1121
|
+
const dependencyMaintenance = ownerDependencies(allFacts, sharedRoot.dependencyMaintenance);
|
|
1122
|
+
const ciDiagnosticArtifacts = composeCiDiagnosticArtifacts({
|
|
1123
|
+
packagePaths: ownerPackagePaths,
|
|
1124
|
+
declarations: [
|
|
1125
|
+
...allFacts.flatMap((facts) => facts.ciDiagnosticArtifacts),
|
|
1126
|
+
...declarations.flatMap((declaration) => declaration.ciDiagnosticArtifacts ?? []),
|
|
1127
|
+
],
|
|
1128
|
+
});
|
|
1129
|
+
const ciJob = Object.keys(sharedRoot.ciJob).length === 0
|
|
1130
|
+
? undefined
|
|
1131
|
+
: sharedRoot.ciJob;
|
|
1132
|
+
const checkWorkflow = composeCheckWorkflow(projectCheckWorkflow({
|
|
1133
|
+
diagnostics: ciDiagnosticArtifacts,
|
|
1134
|
+
...(ciJob === undefined ? {} : { job: ciJob }),
|
|
1135
|
+
}, combineOptions.stableCommon.resources.github.checkWorkflow), sourceLabel(combineOptions.stableCommon.rootDeclarations[0]?.sourceIdentity ??
|
|
1136
|
+
rootIdentity), sharedRoot.ciSteps);
|
|
1137
|
+
const dependabot = projectDependabotConfig(dependencyMaintenance, combineOptions.stableCommon.resources.github.dependabot);
|
|
1138
|
+
const baseRootFiles = [];
|
|
1139
|
+
const developmentContainerConfiguration = structuredClone(developmentContainer.configuration);
|
|
1140
|
+
const baseBuild = isRecord(developmentContainerConfiguration.build)
|
|
1141
|
+
? developmentContainerConfiguration.build
|
|
1142
|
+
: {};
|
|
1143
|
+
const baseBuildArguments = isRecord(baseBuild.args) ? baseBuild.args : {};
|
|
1144
|
+
const baseMounts = Array.isArray(developmentContainerConfiguration.mounts)
|
|
1145
|
+
? developmentContainerConfiguration.mounts
|
|
1146
|
+
: [];
|
|
1147
|
+
const generatedBuildArguments = Object.fromEntries(developmentContainer.buildArguments.map(({ name, value }) => [
|
|
1148
|
+
name,
|
|
1149
|
+
value,
|
|
1150
|
+
]));
|
|
1151
|
+
const generatedMounts = developmentContainer.mounts.map(({ identity: _identity, ...mount }) => mount);
|
|
1152
|
+
developmentContainerConfiguration.build = {
|
|
1153
|
+
...baseBuild,
|
|
1154
|
+
args: { ...baseBuildArguments, ...generatedBuildArguments },
|
|
1155
|
+
};
|
|
1156
|
+
developmentContainerConfiguration.mounts = [
|
|
1157
|
+
...baseMounts,
|
|
1158
|
+
...generatedMounts,
|
|
1159
|
+
];
|
|
1160
|
+
baseRootFiles.push({
|
|
1161
|
+
path: ".github/workflows/check.yml",
|
|
1162
|
+
content: new TextEncoder().encode(checkWorkflow),
|
|
1163
|
+
mode: 0,
|
|
1164
|
+
sourcePath: "github/check.yml",
|
|
1165
|
+
}, {
|
|
1166
|
+
path: ".github/dependabot.yml",
|
|
1167
|
+
content: new TextEncoder().encode(dependabot),
|
|
1168
|
+
mode: 0,
|
|
1169
|
+
sourcePath: "github/dependabot.yml",
|
|
1170
|
+
}, {
|
|
1171
|
+
path: ".vscode/extensions.json",
|
|
1172
|
+
content: json({ recommendations: editor.extensions }),
|
|
1173
|
+
mode: 0,
|
|
1174
|
+
sourcePath: "editor/extensions.json",
|
|
1175
|
+
}, {
|
|
1176
|
+
path: ".vscode/settings.json",
|
|
1177
|
+
content: json(editor.settings),
|
|
1178
|
+
mode: 0,
|
|
1179
|
+
sourcePath: "editor/settings.json",
|
|
1180
|
+
}, {
|
|
1181
|
+
path: ".devcontainer/devcontainer.json",
|
|
1182
|
+
content: json({
|
|
1183
|
+
...developmentContainerConfiguration,
|
|
1184
|
+
name: combineOptions.conventions.repositoryName,
|
|
1185
|
+
}),
|
|
1186
|
+
mode: 0,
|
|
1187
|
+
sourcePath: "devcontainer/workspace-template.json",
|
|
1188
|
+
});
|
|
1189
|
+
baseRootFiles.push({
|
|
1190
|
+
path: ".devcontainer/Dockerfile",
|
|
1191
|
+
content: new TextEncoder().encode(developmentContainer.dockerfile),
|
|
1192
|
+
mode: 0,
|
|
1193
|
+
sourcePath: "devcontainer/Dockerfile",
|
|
1194
|
+
});
|
|
1195
|
+
if (combineOptions.conventions.todo === true) {
|
|
1196
|
+
baseRootFiles.push({
|
|
1197
|
+
path: "TODO.md",
|
|
1198
|
+
content: new TextEncoder().encode(projectNextStepsDocument(combineOptions.stableCommon.resources.nextSteps, combineOptions.stableCommon.resources.github.nextSteps)),
|
|
1199
|
+
mode: 0,
|
|
1200
|
+
sourcePath: "github/next-steps.md",
|
|
1201
|
+
});
|
|
1202
|
+
}
|
|
1203
|
+
const allRootFiles = baseRootFiles;
|
|
1204
|
+
const seenRootPaths = new Map();
|
|
1205
|
+
const rootFiles = allRootFiles.map((file) => {
|
|
1206
|
+
const previous = seenRootPaths.get(file.path);
|
|
1207
|
+
if (previous !== undefined) {
|
|
1208
|
+
throw new Error(`默认组合根资源冲突:${file.path};来源 ${previous} 与 ${file.sourcePath}`);
|
|
1209
|
+
}
|
|
1210
|
+
seenRootPaths.set(file.path, file.sourcePath);
|
|
1211
|
+
return rootFile({
|
|
1212
|
+
path: file.path,
|
|
1213
|
+
content: file.content,
|
|
1214
|
+
mode: file.mode,
|
|
1215
|
+
...(file.path === ".devcontainer/devcontainer.json"
|
|
1216
|
+
? {
|
|
1217
|
+
reconciliation: {
|
|
1218
|
+
path: file.path,
|
|
1219
|
+
driver: "structured",
|
|
1220
|
+
identitySets: [
|
|
1221
|
+
{
|
|
1222
|
+
location: "/mounts",
|
|
1223
|
+
identity: {
|
|
1224
|
+
kind: "projection",
|
|
1225
|
+
members: developmentContainer.mounts.map(({ identity, target }) => ({
|
|
1226
|
+
identity,
|
|
1227
|
+
match: { target },
|
|
1228
|
+
})),
|
|
1229
|
+
fallback: { fields: ["target"] },
|
|
1230
|
+
},
|
|
1231
|
+
},
|
|
1232
|
+
],
|
|
1233
|
+
mirrorSlots: [
|
|
1234
|
+
{
|
|
1235
|
+
id: "node-version-build-arg",
|
|
1236
|
+
location: {
|
|
1237
|
+
kind: "json-pointer",
|
|
1238
|
+
pointer: "/build/args/NODE_VERSION",
|
|
1239
|
+
},
|
|
1240
|
+
},
|
|
1241
|
+
...(combineOptions.stableCommon.applicationRequirements
|
|
1242
|
+
.rustToolchain === undefined
|
|
1243
|
+
? []
|
|
1244
|
+
: [
|
|
1245
|
+
{
|
|
1246
|
+
id: "rust-toolchain-build-arg",
|
|
1247
|
+
location: {
|
|
1248
|
+
kind: "json-pointer",
|
|
1249
|
+
pointer: "/build/args/RUST_TOOLCHAIN",
|
|
1250
|
+
},
|
|
1251
|
+
},
|
|
1252
|
+
]),
|
|
1253
|
+
],
|
|
1254
|
+
},
|
|
1255
|
+
}
|
|
1256
|
+
: {}),
|
|
1257
|
+
packageDefinitionId: rootPackage.package.packageDefinitionId,
|
|
1258
|
+
});
|
|
1259
|
+
});
|
|
1260
|
+
const processedDocuments = [];
|
|
1261
|
+
for (const item of documents) {
|
|
1262
|
+
if (item.document.scope === "composition")
|
|
1263
|
+
continue;
|
|
1264
|
+
const isRootDocument = contentIdentityKey(item.identity) === rootKey &&
|
|
1265
|
+
item.document.path === "package.json";
|
|
1266
|
+
const isRootTurbo = contentIdentityKey(item.identity) === rootKey &&
|
|
1267
|
+
item.document.path === "turbo.json";
|
|
1268
|
+
const isRootTypeScript = contentIdentityKey(item.identity) === rootKey &&
|
|
1269
|
+
item.document.path === "tsconfig.config.json" &&
|
|
1270
|
+
item.document.scope === "package";
|
|
1271
|
+
const linkedManifest = item.document.path === "package.json"
|
|
1272
|
+
? manifestOverrides.get(item.packageDefinitionId)
|
|
1273
|
+
: undefined;
|
|
1274
|
+
const document = isRootDocument
|
|
1275
|
+
? { ...item.document, value: manifest }
|
|
1276
|
+
: isRootTurbo
|
|
1277
|
+
? { ...item.document, value: turbo }
|
|
1278
|
+
: isRootTypeScript && rootTypeScript !== undefined
|
|
1279
|
+
? rootTypeScript
|
|
1280
|
+
: linkedManifest === undefined
|
|
1281
|
+
? item.document
|
|
1282
|
+
: { ...item.document, value: linkedManifest };
|
|
1283
|
+
processedDocuments.push({
|
|
1284
|
+
packageDefinitionId: item.packageDefinitionId,
|
|
1285
|
+
file: {
|
|
1286
|
+
path: document.path,
|
|
1287
|
+
content: renderNativeDocument(document),
|
|
1288
|
+
mode: document.mode,
|
|
1289
|
+
},
|
|
1290
|
+
});
|
|
1291
|
+
}
|
|
1292
|
+
const workspaceFile = rootFile({
|
|
1293
|
+
path: "pnpm-workspace.yaml",
|
|
1294
|
+
content: new TextEncoder().encode(workspace),
|
|
1295
|
+
packageDefinitionId: rootPackage.package.packageDefinitionId,
|
|
1296
|
+
reconciliation: {
|
|
1297
|
+
path: "pnpm-workspace.yaml",
|
|
1298
|
+
driver: "text",
|
|
1299
|
+
},
|
|
1300
|
+
});
|
|
1301
|
+
const sharedRootFiles = rootFiles.map(({ file }) => file);
|
|
1302
|
+
const rootFileComposition = [
|
|
1303
|
+
...sharedRootFiles,
|
|
1304
|
+
...files.files,
|
|
1305
|
+
...processedDocuments.filter(({ packageDefinitionId }) => packageDefinitionId === rootPackage.package.packageDefinitionId),
|
|
1306
|
+
workspaceFile.file,
|
|
1307
|
+
];
|
|
1308
|
+
const rootReconciliation = [
|
|
1309
|
+
...rootFiles.flatMap(({ reconciliation }) => reconciliation === undefined ? [] : [reconciliation]),
|
|
1310
|
+
...files.reconciliation,
|
|
1311
|
+
...(workspaceFile.reconciliation === undefined
|
|
1312
|
+
? []
|
|
1313
|
+
: [workspaceFile.reconciliation]),
|
|
1314
|
+
];
|
|
1315
|
+
const nonRootDocuments = processedDocuments.filter(({ packageDefinitionId }) => packageDefinitionId !== rootPackage.package.packageDefinitionId);
|
|
1316
|
+
const gitignoreIndex = rootFileComposition.findIndex(({ file }) => file.path === ".gitignore");
|
|
1317
|
+
if (gitignoreIndex !== -1 && baseDeclarations.length > 0) {
|
|
1318
|
+
const fragment = baseDeclarations.join("\n");
|
|
1319
|
+
const previous = new TextDecoder().decode(rootFileComposition[gitignoreIndex].file.content);
|
|
1320
|
+
const updated = `${previous.trimEnd()}\n${fragment}\n`;
|
|
1321
|
+
rootFileComposition[gitignoreIndex] = {
|
|
1322
|
+
...rootFileComposition[gitignoreIndex],
|
|
1323
|
+
file: {
|
|
1324
|
+
...rootFileComposition[gitignoreIndex].file,
|
|
1325
|
+
content: new TextEncoder().encode(updated),
|
|
1326
|
+
},
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
const dockerfileText = developmentContainer.dockerfile;
|
|
1330
|
+
return {
|
|
1331
|
+
files: [...rootFileComposition, ...nonRootDocuments],
|
|
1332
|
+
reconciliation: rootReconciliation,
|
|
1333
|
+
facts: {
|
|
1334
|
+
rootPackageDefinitionId: rootPackage.package.packageDefinitionId,
|
|
1335
|
+
packagePaths,
|
|
1336
|
+
nativeDocuments: nativeDocumentFacts,
|
|
1337
|
+
dependencyCatalog,
|
|
1338
|
+
environmentNeeds,
|
|
1339
|
+
ciDiagnosticArtifacts,
|
|
1340
|
+
dependencyMaintenance,
|
|
1341
|
+
checkWorkflowJob: normalizeProjectCheckWorkflowJob(ciJob),
|
|
1342
|
+
container: {
|
|
1343
|
+
dockerfileText,
|
|
1344
|
+
buildArguments: developmentContainer.buildArguments,
|
|
1345
|
+
mounts: developmentContainer.mounts,
|
|
1346
|
+
probes: developmentContainer.probes,
|
|
1347
|
+
},
|
|
1348
|
+
},
|
|
1349
|
+
};
|
|
1350
|
+
},
|
|
1351
|
+
};
|
|
1352
|
+
return composition;
|
|
1353
|
+
}
|