@cbnventures/nova 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/bin/nova.mjs +3 -3
- package/build/package.json +9 -8
- package/build/src/cli/generate/github/funding.js +2 -2
- package/build/src/cli/generate/github/funding.js.map +1 -1
- package/build/src/cli/generate/github/issue-template.js +2 -2
- package/build/src/cli/generate/github/issue-template.js.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts +12 -0
- package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts.map +1 -0
- package/build/src/cli/generate/github/workflows-blueprint-validate.js +535 -0
- package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -0
- package/build/src/cli/generate/github/workflows-blueprint-variables.d.ts +9 -0
- package/build/src/cli/generate/github/workflows-blueprint-variables.d.ts.map +1 -0
- package/build/src/cli/generate/github/workflows-blueprint-variables.js +117 -0
- package/build/src/cli/generate/github/workflows-blueprint-variables.js.map +1 -0
- package/build/src/cli/generate/github/workflows-blueprint.d.ts +60 -0
- package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -0
- package/build/src/cli/generate/github/workflows-blueprint.js +2251 -0
- package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -0
- package/build/src/cli/generate/must-haves/agent-conventions.js +2 -2
- package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -1
- package/build/src/cli/generate/must-haves/dotenv.d.ts +1 -0
- package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -1
- package/build/src/cli/generate/must-haves/dotenv.js +41 -15
- package/build/src/cli/generate/must-haves/dotenv.js.map +1 -1
- package/build/src/cli/generate/must-haves/editorconfig.js +2 -2
- package/build/src/cli/generate/must-haves/editorconfig.js.map +1 -1
- package/build/src/cli/generate/must-haves/gitignore.js +2 -2
- package/build/src/cli/generate/must-haves/gitignore.js.map +1 -1
- package/build/src/cli/generate/must-haves/license.d.ts.map +1 -1
- package/build/src/cli/generate/must-haves/license.js +4 -4
- package/build/src/cli/generate/must-haves/license.js.map +1 -1
- package/build/src/cli/generate/must-haves/read-me.d.ts +6 -2
- package/build/src/cli/generate/must-haves/read-me.d.ts.map +1 -1
- package/build/src/cli/generate/must-haves/read-me.js +103 -63
- package/build/src/cli/generate/must-haves/read-me.js.map +1 -1
- package/build/src/cli/index.js +108 -2
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/recipe/github/sync-features.d.ts.map +1 -1
- package/build/src/cli/recipe/github/sync-features.js +5 -3
- package/build/src/cli/recipe/github/sync-features.js.map +1 -1
- package/build/src/cli/recipe/github/sync-identity.d.ts.map +1 -1
- package/build/src/cli/recipe/github/sync-identity.js +5 -3
- package/build/src/cli/recipe/github/sync-identity.js.map +1 -1
- package/build/src/cli/recipe/github/sync-policies.d.ts.map +1 -1
- package/build/src/cli/recipe/github/sync-policies.js +5 -3
- package/build/src/cli/recipe/github/sync-policies.js.map +1 -1
- package/build/src/cli/recipe/index.d.ts.map +1 -1
- package/build/src/cli/recipe/index.js +32 -0
- package/build/src/cli/recipe/index.js.map +1 -1
- package/build/src/cli/recipe/license/update-copyright.d.ts +7 -0
- package/build/src/cli/recipe/license/update-copyright.d.ts.map +1 -0
- package/build/src/cli/recipe/license/update-copyright.js +191 -0
- package/build/src/cli/recipe/license/update-copyright.js.map +1 -0
- package/build/src/cli/recipe/package-json/cleanup.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/cleanup.js +14 -13
- package/build/src/cli/recipe/package-json/cleanup.js.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-artifacts.js +11 -6
- package/build/src/cli/recipe/package-json/normalize-artifacts.js.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-bundler.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-bundler.js +11 -6
- package/build/src/cli/recipe/package-json/normalize-bundler.js.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-dependencies.js +18 -10
- package/build/src/cli/recipe/package-json/normalize-dependencies.js.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-modules.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-modules.js +11 -6
- package/build/src/cli/recipe/package-json/normalize-modules.js.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-tooling.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-tooling.js +12 -7
- package/build/src/cli/recipe/package-json/normalize-tooling.js.map +1 -1
- package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/sync-environment.js +46 -14
- package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -1
- package/build/src/cli/recipe/package-json/sync-identity.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/sync-identity.js +29 -16
- package/build/src/cli/recipe/package-json/sync-identity.js.map +1 -1
- package/build/src/cli/recipe/package-json/sync-ownership.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/sync-ownership.js +18 -11
- package/build/src/cli/recipe/package-json/sync-ownership.js.map +1 -1
- package/build/src/cli/recipe/read-me/update-badges.d.ts +6 -0
- package/build/src/cli/recipe/read-me/update-badges.d.ts.map +1 -0
- package/build/src/cli/recipe/read-me/update-badges.js +115 -0
- package/build/src/cli/recipe/read-me/update-badges.js.map +1 -0
- package/build/src/cli/recipe/read-me/update-credits.d.ts +6 -0
- package/build/src/cli/recipe/read-me/update-credits.d.ts.map +1 -0
- package/build/src/cli/recipe/read-me/update-credits.js +115 -0
- package/build/src/cli/recipe/read-me/update-credits.js.map +1 -0
- package/build/src/cli/recipe/read-me/update-documentation.d.ts +6 -0
- package/build/src/cli/recipe/read-me/update-documentation.d.ts.map +1 -0
- package/build/src/cli/recipe/read-me/update-documentation.js +115 -0
- package/build/src/cli/recipe/read-me/update-documentation.js.map +1 -0
- package/build/src/cli/recipe/read-me/update-header.d.ts +6 -0
- package/build/src/cli/recipe/read-me/update-header.d.ts.map +1 -0
- package/build/src/cli/recipe/read-me/update-header.js +115 -0
- package/build/src/cli/recipe/read-me/update-header.js.map +1 -0
- package/build/src/cli/recipe/read-me/update-introduction.d.ts +6 -0
- package/build/src/cli/recipe/read-me/update-introduction.d.ts.map +1 -0
- package/build/src/cli/recipe/read-me/update-introduction.js +115 -0
- package/build/src/cli/recipe/read-me/update-introduction.js.map +1 -0
- package/build/src/cli/scaffold/starter/base.js +1 -1
- package/build/src/cli/scaffold/starter/base.js.map +1 -1
- package/build/src/cli/utility/changelog.d.ts.map +1 -1
- package/build/src/cli/utility/changelog.js +6 -2
- package/build/src/cli/utility/changelog.js.map +1 -1
- package/build/src/cli/utility/initialize.d.ts +6 -0
- package/build/src/cli/utility/initialize.d.ts.map +1 -1
- package/build/src/cli/utility/initialize.js +676 -113
- package/build/src/cli/utility/initialize.js.map +1 -1
- package/build/src/cli/utility/run-scripts.d.ts.map +1 -1
- package/build/src/cli/utility/run-scripts.js +4 -4
- package/build/src/cli/utility/run-scripts.js.map +1 -1
- package/build/src/cli/utility/transpile.js +1 -1
- package/build/src/cli/utility/transpile.js.map +1 -1
- package/build/src/cli/utility/type-check.js +1 -1
- package/build/src/cli/utility/type-check.js.map +1 -1
- package/build/src/cli/utility/version.js +1 -1
- package/build/src/cli/utility/version.js.map +1 -1
- package/build/src/lib/env-github.d.ts +4 -0
- package/build/src/lib/env-github.d.ts.map +1 -0
- package/build/src/lib/env-github.js +57 -0
- package/build/src/lib/env-github.js.map +1 -0
- package/build/src/lib/env-managed-set.d.ts +3 -0
- package/build/src/lib/env-managed-set.d.ts.map +1 -0
- package/build/src/lib/env-managed-set.js +102 -0
- package/build/src/lib/env-managed-set.js.map +1 -0
- package/build/src/lib/env-namespace.d.ts +3 -0
- package/build/src/lib/env-namespace.d.ts.map +1 -0
- package/build/src/lib/env-namespace.js +11 -0
- package/build/src/lib/env-namespace.js.map +1 -0
- package/build/src/lib/env-reconcile.d.ts +3 -0
- package/build/src/lib/env-reconcile.d.ts.map +1 -0
- package/build/src/lib/env-reconcile.js +109 -0
- package/build/src/lib/env-reconcile.js.map +1 -0
- package/build/src/lib/env-status.d.ts +3 -0
- package/build/src/lib/env-status.d.ts.map +1 -0
- package/build/src/lib/env-status.js +113 -0
- package/build/src/lib/env-status.js.map +1 -0
- package/build/src/lib/item.d.ts +2 -1
- package/build/src/lib/item.d.ts.map +1 -1
- package/build/src/lib/item.js +26 -0
- package/build/src/lib/item.js.map +1 -1
- package/build/src/lib/markdown-slug.js +1 -1
- package/build/src/lib/markdown-slug.js.map +1 -1
- package/build/src/lib/nova-config.d.ts +11 -4
- package/build/src/lib/nova-config.d.ts.map +1 -1
- package/build/src/lib/nova-config.js +425 -118
- package/build/src/lib/nova-config.js.map +1 -1
- package/build/src/lib/read-me-regions.d.ts +4 -0
- package/build/src/lib/read-me-regions.d.ts.map +1 -0
- package/build/src/lib/read-me-regions.js +33 -0
- package/build/src/lib/read-me-regions.js.map +1 -0
- package/build/src/lib/regex.d.ts +5 -0
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +5 -0
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/scaffold.d.ts.map +1 -1
- package/build/src/lib/scaffold.js +33 -14
- package/build/src/lib/scaffold.js.map +1 -1
- package/build/src/lib/type-declaration-engine.d.ts +2 -2
- package/build/src/lib/type-declaration-engine.d.ts.map +1 -1
- package/build/src/lib/type-declaration-engine.js +32 -6
- package/build/src/lib/type-declaration-engine.js.map +1 -1
- package/build/src/lib/utility.d.ts +2 -1
- package/build/src/lib/utility.d.ts.map +1 -1
- package/build/src/lib/utility.js +39 -7
- package/build/src/lib/utility.js.map +1 -1
- package/build/src/lib/workflow-templates.d.ts.map +1 -1
- package/build/src/lib/workflow-templates.js +86 -60
- package/build/src/lib/workflow-templates.js.map +1 -1
- package/build/src/presets/eslint/dx-code-style.d.ts.map +1 -1
- package/build/src/presets/eslint/dx-code-style.js +6 -0
- package/build/src/presets/eslint/dx-code-style.js.map +1 -1
- package/build/src/presets/eslint/fw-astro.d.ts +4 -0
- package/build/src/presets/eslint/fw-astro.d.ts.map +1 -0
- package/build/src/presets/eslint/fw-astro.js +13 -0
- package/build/src/presets/eslint/fw-astro.js.map +1 -0
- package/build/src/presets/eslint/index.d.ts +1 -0
- package/build/src/presets/eslint/index.d.ts.map +1 -1
- package/build/src/presets/eslint/index.js +1 -0
- package/build/src/presets/eslint/index.js.map +1 -1
- package/build/src/presets/tsconfig/fw-astro.json +15 -0
- package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts.map +1 -1
- package/build/src/rules/eslint/conventions/no-implicit-boolean.js +3 -2
- package/build/src/rules/eslint/conventions/no-implicit-boolean.js.map +1 -1
- package/build/src/rules/eslint/conventions/require-hash-private.js +1 -1
- package/build/src/rules/eslint/conventions/require-hash-private.js.map +1 -1
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts.map +1 -1
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.js +4 -1
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.js.map +1 -1
- package/build/src/rules/eslint/conventions/require-node-protocol.d.ts +11 -0
- package/build/src/rules/eslint/conventions/require-node-protocol.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-node-protocol.js +76 -0
- package/build/src/rules/eslint/conventions/require-node-protocol.js.map +1 -0
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts.map +1 -1
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.js +2 -1
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.js.map +1 -1
- package/build/src/rules/eslint/formatting/require-padding-lines.d.ts.map +1 -1
- package/build/src/rules/eslint/formatting/require-padding-lines.js +7 -3
- package/build/src/rules/eslint/formatting/require-padding-lines.js.map +1 -1
- package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts.map +1 -1
- package/build/src/rules/eslint/formatting/require-ternary-parens.js +7 -17
- package/build/src/rules/eslint/formatting/require-ternary-parens.js.map +1 -1
- package/build/src/rules/eslint/index.d.ts +4 -0
- package/build/src/rules/eslint/index.d.ts.map +1 -1
- package/build/src/rules/eslint/index.js +4 -0
- package/build/src/rules/eslint/index.js.map +1 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts +3 -2
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts.map +1 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js +22 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js.map +1 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +2 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts.map +1 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js +16 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js.map +1 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts.map +1 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js +8 -4
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js.map +1 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.d.ts +12 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.js +169 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.d.ts +11 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.js +80 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js +2 -2
- package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js.map +1 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.d.ts +15 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.js +290 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-await-in-loop.js +1 -1
- package/build/src/rules/eslint/patterns/no-await-in-loop.js.map +1 -1
- package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts.map +1 -1
- package/build/src/rules/eslint/patterns/no-bracket-method-call.js +4 -0
- package/build/src/rules/eslint/patterns/no-bracket-method-call.js.map +1 -1
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts.map +1 -1
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.js +4 -1
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.js.map +1 -1
- package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts.map +1 -1
- package/build/src/rules/eslint/typescript/require-bracket-property-access.js +8 -1
- package/build/src/rules/eslint/typescript/require-bracket-property-access.js.map +1 -1
- package/build/src/rules/vitest/active-vitest.d.ts +5 -0
- package/build/src/rules/vitest/active-vitest.d.ts.map +1 -0
- package/build/src/rules/vitest/active-vitest.js +19 -0
- package/build/src/rules/vitest/active-vitest.js.map +1 -0
- package/build/src/rules/vitest/dotenv/register.d.ts.map +1 -1
- package/build/src/rules/vitest/dotenv/register.js +3 -2
- package/build/src/rules/vitest/dotenv/register.js.map +1 -1
- package/build/src/rules/vitest/dotenv/rules.d.ts.map +1 -1
- package/build/src/rules/vitest/dotenv/rules.js +2 -2
- package/build/src/rules/vitest/dotenv/rules.js.map +1 -1
- package/build/src/rules/vitest/frontmatter/register.d.ts.map +1 -1
- package/build/src/rules/vitest/frontmatter/register.js +3 -2
- package/build/src/rules/vitest/frontmatter/register.js.map +1 -1
- package/build/src/rules/vitest/frontmatter/rules.d.ts.map +1 -1
- package/build/src/rules/vitest/frontmatter/rules.js +13 -13
- package/build/src/rules/vitest/frontmatter/rules.js.map +1 -1
- package/build/src/rules/vitest/link/register.d.ts.map +1 -1
- package/build/src/rules/vitest/link/register.js +3 -2
- package/build/src/rules/vitest/link/register.js.map +1 -1
- package/build/src/rules/vitest/link/rules.d.ts.map +1 -1
- package/build/src/rules/vitest/link/rules.js +8 -8
- package/build/src/rules/vitest/link/rules.js.map +1 -1
- package/build/src/rules/vitest/markdown-table/register.d.ts.map +1 -1
- package/build/src/rules/vitest/markdown-table/register.js +3 -2
- package/build/src/rules/vitest/markdown-table/register.js.map +1 -1
- package/build/src/rules/vitest/markdown-table/rules.d.ts.map +1 -1
- package/build/src/rules/vitest/markdown-table/rules.js +3 -3
- package/build/src/rules/vitest/markdown-table/rules.js.map +1 -1
- package/build/src/rules/vitest/terminology/register.d.ts.map +1 -1
- package/build/src/rules/vitest/terminology/register.js +3 -2
- package/build/src/rules/vitest/terminology/register.js.map +1 -1
- package/build/src/rules/vitest/terminology/rules.d.ts.map +1 -1
- package/build/src/rules/vitest/terminology/rules.js +8 -8
- package/build/src/rules/vitest/terminology/rules.js.map +1 -1
- package/build/src/rules/vitest/type-declarations/register.d.ts.map +1 -1
- package/build/src/rules/vitest/type-declarations/register.js +6 -3
- package/build/src/rules/vitest/type-declarations/register.js.map +1 -1
- package/build/src/rules/vitest/type-declarations/rules.d.ts +3 -1
- package/build/src/rules/vitest/type-declarations/rules.d.ts.map +1 -1
- package/build/src/rules/vitest/type-declarations/rules.js +82 -12
- package/build/src/rules/vitest/type-declarations/rules.js.map +1 -1
- package/build/src/toolkit/index.d.ts +1 -0
- package/build/src/toolkit/index.d.ts.map +1 -1
- package/build/src/toolkit/index.js +1 -0
- package/build/src/toolkit/index.js.map +1 -1
- package/build/src/toolkit/markdown-table.js +1 -1
- package/build/src/toolkit/markdown-table.js.map +1 -1
- package/build/src/toolkit/nova-identity.d.ts +19 -0
- package/build/src/toolkit/nova-identity.d.ts.map +1 -0
- package/build/src/toolkit/nova-identity.js +141 -0
- package/build/src/toolkit/nova-identity.js.map +1 -0
- package/build/src/types/cli/generate/github/funding.d.ts +4 -4
- package/build/src/types/cli/generate/github/issue-template.d.ts +11 -11
- package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +351 -0
- package/build/src/types/cli/generate/github/workflows-blueprint-variables.d.ts +131 -0
- package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +1180 -0
- package/build/src/types/cli/generate/must-haves/agent-conventions.d.ts +4 -4
- package/build/src/types/cli/generate/must-haves/dotenv.d.ts +49 -14
- package/build/src/types/cli/generate/must-haves/editorconfig.d.ts +2 -2
- package/build/src/types/cli/generate/must-haves/gitignore.d.ts +8 -8
- package/build/src/types/cli/generate/must-haves/license.d.ts +5 -5
- package/build/src/types/cli/generate/must-haves/read-me.d.ts +136 -88
- package/build/src/types/cli/index.d.ts +14 -0
- package/build/src/types/cli/recipe/github/handle-gh-failure.d.ts +2 -2
- package/build/src/types/cli/recipe/github/sync-features.d.ts +19 -12
- package/build/src/types/cli/recipe/github/sync-identity.d.ts +18 -11
- package/build/src/types/cli/recipe/github/sync-policies.d.ts +22 -15
- package/build/src/types/cli/recipe/index.d.ts +7 -3
- package/build/src/types/cli/recipe/license/update-copyright.d.ts +142 -0
- package/build/src/types/cli/recipe/package-json/cleanup.d.ts +26 -22
- package/build/src/types/cli/recipe/package-json/normalize-artifacts.d.ts +22 -16
- package/build/src/types/cli/recipe/package-json/normalize-bundler.d.ts +20 -14
- package/build/src/types/cli/recipe/package-json/normalize-dependencies.d.ts +31 -19
- package/build/src/types/cli/recipe/package-json/normalize-modules.d.ts +20 -14
- package/build/src/types/cli/recipe/package-json/normalize-tooling.d.ts +20 -14
- package/build/src/types/cli/recipe/package-json/sync-environment.d.ts +46 -22
- package/build/src/types/cli/recipe/package-json/sync-identity.d.ts +36 -19
- package/build/src/types/cli/recipe/package-json/sync-ownership.d.ts +33 -23
- package/build/src/types/cli/recipe/read-me/update-badges.d.ts +77 -0
- package/build/src/types/cli/recipe/read-me/update-credits.d.ts +77 -0
- package/build/src/types/cli/recipe/read-me/update-documentation.d.ts +77 -0
- package/build/src/types/cli/recipe/read-me/update-header.d.ts +77 -0
- package/build/src/types/cli/recipe/read-me/update-introduction.d.ts +77 -0
- package/build/src/types/cli/scaffold/starter/base.d.ts +2 -2
- package/build/src/types/cli/utility/changelog.d.ts +74 -74
- package/build/src/types/cli/utility/initialize.d.ts +836 -374
- package/build/src/types/cli/utility/run-scripts.d.ts +1 -1
- package/build/src/types/cli/utility/transpile.d.ts +8 -3
- package/build/src/types/cli/utility/type-check.d.ts +9 -3
- package/build/src/types/cli/utility/version.d.ts +32 -32
- package/build/src/types/lib/env-github.d.ts +67 -0
- package/build/src/types/lib/env-managed-set.d.ts +90 -0
- package/build/src/types/lib/env-namespace.d.ts +22 -0
- package/build/src/types/lib/env-reconcile.d.ts +71 -0
- package/build/src/types/lib/env-status.d.ts +102 -0
- package/build/src/types/lib/item.d.ts +23 -0
- package/build/src/types/lib/nova-config.d.ts +397 -102
- package/build/src/types/lib/read-me-regions.d.ts +51 -0
- package/build/src/types/lib/scaffold.d.ts +43 -23
- package/build/src/types/lib/type-declaration-engine.d.ts +18 -2
- package/build/src/types/lib/utility.d.ts +38 -4
- package/build/src/types/lib/workflow-templates.d.ts +10 -74
- package/build/src/types/presets/eslint/fw-astro.d.ts +8 -0
- package/build/src/types/rules/eslint/conventions/no-implicit-boolean.d.ts +7 -0
- package/build/src/types/rules/eslint/conventions/require-naming-convention.d.ts +8 -4
- package/build/src/types/rules/eslint/conventions/require-node-protocol.d.ts +56 -0
- package/build/src/types/rules/eslint/formatting/require-padding-lines.d.ts +2 -0
- package/build/src/types/rules/eslint/formatting/require-ternary-parens.d.ts +8 -3
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-body.d.ts +16 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +17 -13
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +3 -1
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-presence.d.ts +125 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-returns.d.ts +48 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-tag-order.d.ts +204 -0
- package/build/src/types/rules/eslint/patterns/no-await-in-loop.d.ts +1 -1
- package/build/src/types/rules/eslint/patterns/no-bracket-method-call.d.ts +1 -1
- package/build/src/types/rules/eslint/typescript/require-bracket-property-access.d.ts +19 -7
- package/build/src/types/rules/vitest/active-vitest.d.ts +31 -0
- package/build/src/types/rules/vitest/index.d.ts +21 -1
- package/build/src/types/rules/vitest/markdown-table/rules.d.ts +2 -2
- package/build/src/types/rules/vitest/type-declarations/rules.d.ts +74 -0
- package/build/src/types/shared.d.ts +666 -32
- package/build/src/types/tests/cli/generate/github/funding.test.d.ts +14 -10
- package/build/src/types/tests/cli/generate/github/issue-template.test.d.ts +20 -16
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-generate.test.d.ts +199 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-parity.test.d.ts +75 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-publish-parity.test.d.ts +295 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-validate.test.d.ts +901 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-variables.test.d.ts +144 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +332 -0
- package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +11 -7
- package/build/src/types/tests/cli/generate/must-haves/dotenv.test.d.ts +83 -43
- package/build/src/types/tests/cli/generate/must-haves/editorconfig.test.d.ts +12 -8
- package/build/src/types/tests/cli/generate/must-haves/gitignore.test.d.ts +11 -7
- package/build/src/types/tests/cli/generate/must-haves/read-me.test.d.ts +33 -10
- package/build/src/types/tests/cli/recipe/github/handle-gh-failure.test.d.ts +25 -21
- package/build/src/types/tests/cli/recipe/github/sync-features.test.d.ts +98 -94
- package/build/src/types/tests/cli/recipe/github/sync-identity.test.d.ts +133 -129
- package/build/src/types/tests/cli/recipe/github/sync-policies.test.d.ts +125 -121
- package/build/src/types/tests/cli/recipe/license/update-copyright.test.d.ts +617 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts +27 -0
- package/build/src/types/tests/cli/recipe/package-json/sync-environment.test.d.ts +21 -0
- package/build/src/types/tests/cli/recipe/package-json/sync-identity.test.d.ts +52 -0
- package/build/src/types/tests/cli/recipe/read-me/update-badges.test.d.ts +258 -0
- package/build/src/types/tests/cli/recipe/read-me/update-credits.test.d.ts +258 -0
- package/build/src/types/tests/cli/recipe/read-me/update-documentation.test.d.ts +258 -0
- package/build/src/types/tests/cli/recipe/read-me/update-header.test.d.ts +258 -0
- package/build/src/types/tests/cli/recipe/read-me/update-introduction.test.d.ts +258 -0
- package/build/src/types/tests/cli/utility/changelog.test.d.ts +31 -0
- package/build/src/types/tests/cli/utility/initialize.test.d.ts +148 -32
- package/build/src/types/tests/lib/nova-config.test.d.ts +330 -173
- package/build/src/types/tests/lib/read-me-regions.test.d.ts +43 -0
- package/build/src/types/tests/lib/utility.test.d.ts +35 -0
- package/build/src/types/tests/lib/workflow-templates.test.d.ts +18 -2
- package/build/src/types/tests/rules/eslint/conventions/require-node-protocol.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-presence.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-returns.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-tag-order.test.d.ts +8 -0
- package/build/src/types/tests/rules/vitest/active-vitest.test.d.ts +56 -0
- package/build/src/types/tests/rules/vitest/frontmatter.test.d.ts +14 -0
- package/build/src/types/tests/rules/vitest/terminology.test.d.ts +4 -0
- package/build/src/types/tests/toolkit/logger.test.d.ts +25 -5
- package/build/src/types/tests/toolkit/nova-identity.test.d.ts +118 -0
- package/build/src/types/tests/type-declarations.test.d.ts +14 -0
- package/build/src/types/toolkit/nova-identity.d.ts +313 -0
- package/build/templates/generators/github/workflows/publish/base.yml +2 -0
- package/build/templates/generators/github/workflows/publish/targets/cloudflare-workers.yml +36 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +2 -0
- package/build/templates/scaffold/docs/docusaurus/docusaurus.config.ts +9 -3
- package/build/templates/scaffold/docs/docusaurus/package.json +5 -2
- package/build/templates/scaffold/docs/docusaurus/src/tests/frontmatter.test.ts +4 -0
- package/build/templates/scaffold/docs/docusaurus/src/tests/link.test.ts +2 -0
- package/build/templates/scaffold/docs/docusaurus/src/tests/markdown-table.test.ts +2 -0
- package/build/templates/scaffold/docs/docusaurus/src/tests/terminology.test.ts +2 -0
- package/build/templates/scaffold/docs/docusaurus/src/tests/type-declarations.test.ts +17 -0
- package/package.json +9 -8
- package/build/src/cli/generate/github/workflows.d.ts +0 -17
- package/build/src/cli/generate/github/workflows.d.ts.map +0 -1
- package/build/src/cli/generate/github/workflows.js +0 -856
- package/build/src/cli/generate/github/workflows.js.map +0 -1
- package/build/src/types/cli/generate/github/workflows.d.ts +0 -596
- package/build/src/types/tests/cli/generate/github/workflows-helpers.test.d.ts +0 -239
- package/build/src/types/tests/cli/generate/github/workflows.test.d.ts +0 -587
- package/build/templates/generators/github/workflows/publish/targets/aws-amplify-nextjs.yml +0 -32
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import { Runner as Variables } from './workflows-blueprint-variables.js';
|
|
2
|
+
const allowedTemplates = [
|
|
3
|
+
'check-sponsor-gated-issues',
|
|
4
|
+
'lock-inactive-issues',
|
|
5
|
+
'publish',
|
|
6
|
+
];
|
|
7
|
+
const buildableTargetTypes = [
|
|
8
|
+
'npm',
|
|
9
|
+
'github-action',
|
|
10
|
+
'github-packages',
|
|
11
|
+
'cloudflare-pages-docusaurus',
|
|
12
|
+
'cloudflare-workers',
|
|
13
|
+
'docker-hub',
|
|
14
|
+
'ghcr',
|
|
15
|
+
'github-pages-docusaurus',
|
|
16
|
+
'vercel-nextjs',
|
|
17
|
+
];
|
|
18
|
+
const validTriggersByTemplate = {
|
|
19
|
+
'check-sponsor-gated-issues': [
|
|
20
|
+
'issues',
|
|
21
|
+
'issue-comment',
|
|
22
|
+
],
|
|
23
|
+
'lock-inactive-issues': [
|
|
24
|
+
'schedule-weekly',
|
|
25
|
+
'schedule-daily',
|
|
26
|
+
'schedule-monthly',
|
|
27
|
+
],
|
|
28
|
+
'publish': [
|
|
29
|
+
'release',
|
|
30
|
+
'tag-push',
|
|
31
|
+
'push',
|
|
32
|
+
'workflow-run-success',
|
|
33
|
+
'workflow-run-any',
|
|
34
|
+
'workflow-run-failure',
|
|
35
|
+
],
|
|
36
|
+
};
|
|
37
|
+
export class Runner {
|
|
38
|
+
static validate(rawWorkflows, workspaces) {
|
|
39
|
+
const diagnostics = [];
|
|
40
|
+
const workflows = [];
|
|
41
|
+
const seenKeys = new Set();
|
|
42
|
+
const uniquenessMap = new Map();
|
|
43
|
+
const rawEntries = (Array.isArray(rawWorkflows) === true) ? rawWorkflows : [];
|
|
44
|
+
const envMigration = Runner.envMigrationHint(workspaces);
|
|
45
|
+
if (envMigration !== undefined) {
|
|
46
|
+
diagnostics.push({
|
|
47
|
+
severity: 'error',
|
|
48
|
+
message: envMigration,
|
|
49
|
+
});
|
|
50
|
+
return {
|
|
51
|
+
workflows,
|
|
52
|
+
diagnostics,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
if (Runner.detectCircularDependsOn(rawEntries) === true) {
|
|
56
|
+
diagnostics.push({
|
|
57
|
+
severity: 'error',
|
|
58
|
+
message: 'Circular depends-on references detected. Aborting.',
|
|
59
|
+
});
|
|
60
|
+
return {
|
|
61
|
+
workflows,
|
|
62
|
+
diagnostics,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
const entryKeys = new Set();
|
|
66
|
+
for (const rawKeyEntryValue of rawEntries) {
|
|
67
|
+
const rawKeyEntry = (typeof rawKeyEntryValue === 'object' && rawKeyEntryValue !== null) ? rawKeyEntryValue : {};
|
|
68
|
+
if (typeof rawKeyEntry['template'] !== 'string' || typeof rawKeyEntry['name'] !== 'string') {
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
entryKeys.add(`${rawKeyEntry['template']}-${rawKeyEntry['name']}`);
|
|
72
|
+
}
|
|
73
|
+
for (const rawEntryValue of rawEntries) {
|
|
74
|
+
const entry = (typeof rawEntryValue === 'object' && rawEntryValue !== null) ? rawEntryValue : {};
|
|
75
|
+
const workflowMigration = Runner.workflowMigrationHint(entry);
|
|
76
|
+
if (workflowMigration !== undefined) {
|
|
77
|
+
diagnostics.push({
|
|
78
|
+
severity: 'error',
|
|
79
|
+
message: workflowMigration,
|
|
80
|
+
});
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
const deployMigration = Runner.deployMigrationHint(entry['deploy']);
|
|
84
|
+
if (deployMigration !== undefined) {
|
|
85
|
+
diagnostics.push({
|
|
86
|
+
severity: 'error',
|
|
87
|
+
message: deployMigration,
|
|
88
|
+
});
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
const template = entry['template'];
|
|
92
|
+
const suffix = entry['name'];
|
|
93
|
+
const triggers = entry['triggers'];
|
|
94
|
+
let hasError = false;
|
|
95
|
+
let hasWorkflowRunTrigger = false;
|
|
96
|
+
const templateName = template;
|
|
97
|
+
if (typeof template !== 'string' || allowedTemplates.includes(templateName) === false) {
|
|
98
|
+
diagnostics.push({
|
|
99
|
+
severity: 'error',
|
|
100
|
+
message: `Unknown template "${String(template)}". Allowed templates: ${allowedTemplates.join(', ')}. Skipping.`,
|
|
101
|
+
});
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
const metadata = Variables.getTemplateMetadata(templateName);
|
|
105
|
+
if (metadata === undefined) {
|
|
106
|
+
diagnostics.push({
|
|
107
|
+
severity: 'error',
|
|
108
|
+
message: `Unknown template "${templateName}". Allowed templates: ${allowedTemplates.join(', ')}. Skipping.`,
|
|
109
|
+
});
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
if (typeof suffix !== 'string' || suffix.length === 0) {
|
|
113
|
+
diagnostics.push({
|
|
114
|
+
severity: 'error',
|
|
115
|
+
message: `Workflow using template "${templateName}" is missing a non-empty "name". Skipping.`,
|
|
116
|
+
});
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
const suffixValue = suffix;
|
|
120
|
+
const workflowKey = `${templateName}-${suffixValue}`;
|
|
121
|
+
const validTriggers = validTriggersByTemplate[templateName];
|
|
122
|
+
if (Array.isArray(triggers) === false || triggers.length === 0) {
|
|
123
|
+
diagnostics.push({
|
|
124
|
+
severity: 'error',
|
|
125
|
+
message: `Workflow "${workflowKey}" is missing a non-empty "triggers" array. Skipping.`,
|
|
126
|
+
});
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
const triggerList = triggers;
|
|
130
|
+
for (const triggerValue of triggerList) {
|
|
131
|
+
const trigger = triggerValue;
|
|
132
|
+
if (typeof trigger === 'string') {
|
|
133
|
+
const triggerName = trigger;
|
|
134
|
+
if (validTriggers.includes(triggerName) === false) {
|
|
135
|
+
diagnostics.push({
|
|
136
|
+
severity: 'error',
|
|
137
|
+
message: `Trigger "${trigger}" is not valid for template "${templateName}". Allowed triggers: ${validTriggers.join(', ')}. Skipping workflow "${workflowKey}".`,
|
|
138
|
+
});
|
|
139
|
+
hasError = true;
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if (triggerName === 'workflow-run-success'
|
|
143
|
+
|| triggerName === 'workflow-run-any'
|
|
144
|
+
|| triggerName === 'workflow-run-failure') {
|
|
145
|
+
hasWorkflowRunTrigger = true;
|
|
146
|
+
}
|
|
147
|
+
if (trigger === 'push') {
|
|
148
|
+
diagnostics.push({
|
|
149
|
+
severity: 'error',
|
|
150
|
+
message: `Trigger "push" must use the object form with a non-empty "branches" array, for example { "name": "push", "branches": ["main"] }. Skipping workflow "${workflowKey}".`,
|
|
151
|
+
});
|
|
152
|
+
hasError = true;
|
|
153
|
+
}
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
if (Runner.isPlainObject(trigger) === false) {
|
|
157
|
+
diagnostics.push({
|
|
158
|
+
severity: 'error',
|
|
159
|
+
message: `Trigger "${String(trigger)}" is not valid for template "${templateName}". Allowed triggers: ${validTriggers.join(', ')}. Skipping workflow "${workflowKey}".`,
|
|
160
|
+
});
|
|
161
|
+
hasError = true;
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
const triggerObject = trigger;
|
|
165
|
+
const triggerObjectName = triggerObject['name'];
|
|
166
|
+
const triggerObjectNameValue = triggerObjectName;
|
|
167
|
+
if (typeof triggerObjectName !== 'string' || validTriggers.includes(triggerObjectNameValue) === false) {
|
|
168
|
+
diagnostics.push({
|
|
169
|
+
severity: 'error',
|
|
170
|
+
message: `Trigger "${String(triggerObjectName)}" is not valid for template "${templateName}". Allowed triggers: ${validTriggers.join(', ')}. Skipping workflow "${workflowKey}".`,
|
|
171
|
+
});
|
|
172
|
+
hasError = true;
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
if (triggerObjectNameValue === 'workflow-run-success'
|
|
176
|
+
|| triggerObjectNameValue === 'workflow-run-any'
|
|
177
|
+
|| triggerObjectNameValue === 'workflow-run-failure') {
|
|
178
|
+
hasWorkflowRunTrigger = true;
|
|
179
|
+
}
|
|
180
|
+
const triggerObjectBranches = triggerObject['branches'];
|
|
181
|
+
const triggerObjectPaths = triggerObject['paths'];
|
|
182
|
+
const triggerObjectTags = triggerObject['tags'];
|
|
183
|
+
if (triggerObjectBranches !== undefined && Runner.isNonEmptyStringArray(triggerObjectBranches) === false) {
|
|
184
|
+
diagnostics.push({
|
|
185
|
+
severity: 'error',
|
|
186
|
+
message: `Trigger "${triggerObjectNameValue}" in workflow "${workflowKey}" has an invalid "branches". It must be a non-empty array of strings.`,
|
|
187
|
+
});
|
|
188
|
+
hasError = true;
|
|
189
|
+
}
|
|
190
|
+
if (triggerObjectPaths !== undefined && Runner.isNonEmptyStringArray(triggerObjectPaths) === false) {
|
|
191
|
+
diagnostics.push({
|
|
192
|
+
severity: 'error',
|
|
193
|
+
message: `Trigger "${triggerObjectNameValue}" in workflow "${workflowKey}" has an invalid "paths". It must be a non-empty array of strings.`,
|
|
194
|
+
});
|
|
195
|
+
hasError = true;
|
|
196
|
+
}
|
|
197
|
+
if (triggerObjectTags !== undefined && Runner.isNonEmptyStringArray(triggerObjectTags) === false) {
|
|
198
|
+
diagnostics.push({
|
|
199
|
+
severity: 'error',
|
|
200
|
+
message: `Trigger "${triggerObjectNameValue}" in workflow "${workflowKey}" has an invalid "tags". It must be a non-empty array of strings.`,
|
|
201
|
+
});
|
|
202
|
+
hasError = true;
|
|
203
|
+
}
|
|
204
|
+
if (triggerObjectNameValue === 'push' && triggerObjectBranches === undefined) {
|
|
205
|
+
diagnostics.push({
|
|
206
|
+
severity: 'error',
|
|
207
|
+
message: `Trigger "push" in workflow "${workflowKey}" requires a non-empty "branches" array of strings. Skipping.`,
|
|
208
|
+
});
|
|
209
|
+
hasError = true;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
if (hasError === true) {
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
if (hasWorkflowRunTrigger === true) {
|
|
216
|
+
const dependsOnEntries = Runner.collectWorkflowRunReferences(triggerList);
|
|
217
|
+
if (dependsOnEntries.length === 0) {
|
|
218
|
+
diagnostics.push({
|
|
219
|
+
severity: 'error',
|
|
220
|
+
message: `Workflow "${workflowKey}" uses a trigger that requires "workflows" references, but none are configured. Skipping.`,
|
|
221
|
+
});
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
for (const dependsOnReference of dependsOnEntries) {
|
|
225
|
+
const reference = dependsOnReference;
|
|
226
|
+
if (entryKeys.has(reference) === false) {
|
|
227
|
+
diagnostics.push({
|
|
228
|
+
severity: 'error',
|
|
229
|
+
message: `Workflow "${workflowKey}" depends on "${reference}" which does not exist. Skipping.`,
|
|
230
|
+
});
|
|
231
|
+
hasError = true;
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
if (hasError === true) {
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
if (seenKeys.has(workflowKey) === true) {
|
|
240
|
+
diagnostics.push({
|
|
241
|
+
severity: 'error',
|
|
242
|
+
message: `Duplicate workflow "${workflowKey}". Each template must have a unique suffix when used multiple times.`,
|
|
243
|
+
});
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
const workflowSettings = (typeof entry['with'] === 'object' && entry['with'] !== null) ? entry['with'] : undefined;
|
|
247
|
+
const targets = entry['deploy'];
|
|
248
|
+
if (templateName === 'publish') {
|
|
249
|
+
const scopes = entry['build'];
|
|
250
|
+
if (Array.isArray(scopes) === true) {
|
|
251
|
+
for (const scopeValue of scopes) {
|
|
252
|
+
const scope = scopeValue;
|
|
253
|
+
const isRegisteredScope = typeof scope === 'string' && workspaces[scope] !== undefined;
|
|
254
|
+
if (isRegisteredScope === false) {
|
|
255
|
+
diagnostics.push({
|
|
256
|
+
severity: 'error',
|
|
257
|
+
message: `Scope "${String(scope)}" is not a registered workspace. Skipping.`,
|
|
258
|
+
});
|
|
259
|
+
hasError = true;
|
|
260
|
+
continue;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if (Array.isArray(targets) === true) {
|
|
265
|
+
for (const targetValue of targets) {
|
|
266
|
+
const target = (typeof targetValue === 'object' && targetValue !== null) ? targetValue : {};
|
|
267
|
+
const targetType = target['to'];
|
|
268
|
+
const targetTypeName = targetType;
|
|
269
|
+
const workingDir = target['path'];
|
|
270
|
+
if (typeof targetType !== 'string' || buildableTargetTypes.includes(targetTypeName) === false) {
|
|
271
|
+
diagnostics.push({
|
|
272
|
+
severity: 'error',
|
|
273
|
+
message: `Target type "${String(targetType)}" is not supported by template "${templateName}". Allowed target types: ${buildableTargetTypes.join(', ')}. Skipping.`,
|
|
274
|
+
});
|
|
275
|
+
hasError = true;
|
|
276
|
+
}
|
|
277
|
+
const isRegisteredWorkingDir = typeof workingDir === 'string' && workspaces[workingDir] !== undefined;
|
|
278
|
+
if (isRegisteredWorkingDir === false) {
|
|
279
|
+
diagnostics.push({
|
|
280
|
+
severity: 'error',
|
|
281
|
+
message: `Target working directory "${String(workingDir)}" is not a registered workspace. Skipping.`,
|
|
282
|
+
});
|
|
283
|
+
hasError = true;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
const missingLiterals = [];
|
|
289
|
+
for (const variableEntry of Object.entries(metadata['variables'])) {
|
|
290
|
+
const variableName = variableEntry[0];
|
|
291
|
+
const variableMeta = variableEntry[1];
|
|
292
|
+
if (variableMeta['format'] !== 'literal'
|
|
293
|
+
|| variableMeta['default'] !== undefined
|
|
294
|
+
|| variableName === 'ROOT_WORKING_DIR') {
|
|
295
|
+
continue;
|
|
296
|
+
}
|
|
297
|
+
const resolved = Variables.resolve(variableName, undefined, workflowSettings, variableMeta);
|
|
298
|
+
if (resolved === variableName) {
|
|
299
|
+
missingLiterals.push(variableName);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
if (templateName === 'publish' && Array.isArray(targets) === true) {
|
|
303
|
+
for (const literalTargetValue of targets) {
|
|
304
|
+
const literalTarget = (typeof literalTargetValue === 'object' && literalTargetValue !== null) ? literalTargetValue : {};
|
|
305
|
+
const literalTargetType = literalTarget['to'];
|
|
306
|
+
const literalTargetTypeName = literalTargetType;
|
|
307
|
+
const literalTargetSettings = (typeof literalTarget['with'] === 'object' && literalTarget['with'] !== null) ? literalTarget['with'] : undefined;
|
|
308
|
+
if (typeof literalTargetType !== 'string' || buildableTargetTypes.includes(literalTargetTypeName) === false) {
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
const literalTargetMetadata = Variables.getTargetMetadata(templateName, literalTargetTypeName);
|
|
312
|
+
if (literalTargetMetadata === undefined) {
|
|
313
|
+
continue;
|
|
314
|
+
}
|
|
315
|
+
for (const literalVariableEntry of Object.entries(literalTargetMetadata['variables'])) {
|
|
316
|
+
const literalVariableName = literalVariableEntry[0];
|
|
317
|
+
const literalVariableMeta = literalVariableEntry[1];
|
|
318
|
+
if (literalVariableMeta['format'] !== 'literal' || literalVariableMeta['default'] !== undefined) {
|
|
319
|
+
continue;
|
|
320
|
+
}
|
|
321
|
+
const literalResolved = Variables.resolve(literalVariableName, literalTargetSettings, workflowSettings, literalVariableMeta);
|
|
322
|
+
if (literalResolved === literalVariableName && missingLiterals.includes(literalVariableName) === false) {
|
|
323
|
+
missingLiterals.push(literalVariableName);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (missingLiterals.length > 0) {
|
|
329
|
+
diagnostics.push({
|
|
330
|
+
severity: 'error',
|
|
331
|
+
message: `Workflow "${workflowKey}" is missing required literal settings: ${missingLiterals.join(', ')}. Skipping.`,
|
|
332
|
+
});
|
|
333
|
+
hasError = true;
|
|
334
|
+
}
|
|
335
|
+
if (hasError === true) {
|
|
336
|
+
continue;
|
|
337
|
+
}
|
|
338
|
+
if (templateName === 'publish' && Array.isArray(targets) === true) {
|
|
339
|
+
for (const uniqueTargetValue of targets) {
|
|
340
|
+
const uniqueTarget = (typeof uniqueTargetValue === 'object' && uniqueTargetValue !== null) ? uniqueTargetValue : {};
|
|
341
|
+
const uniqueTargetType = uniqueTarget['to'];
|
|
342
|
+
const uniqueTargetTypeName = uniqueTargetType;
|
|
343
|
+
const uniqueTargetSettings = (typeof uniqueTarget['with'] === 'object' && uniqueTarget['with'] !== null) ? uniqueTarget['with'] : undefined;
|
|
344
|
+
if (typeof uniqueTargetType !== 'string' || buildableTargetTypes.includes(uniqueTargetTypeName) === false) {
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
const uniqueTargetMetadata = Variables.getTargetMetadata(templateName, uniqueTargetTypeName);
|
|
348
|
+
if (uniqueTargetMetadata === undefined) {
|
|
349
|
+
continue;
|
|
350
|
+
}
|
|
351
|
+
const uniquenessKey = uniqueTargetMetadata['uniquenessKey'];
|
|
352
|
+
if (uniquenessKey === undefined) {
|
|
353
|
+
continue;
|
|
354
|
+
}
|
|
355
|
+
const resolvedValues = [];
|
|
356
|
+
const detailEntries = [];
|
|
357
|
+
for (const uniquenessVariableName of uniquenessKey) {
|
|
358
|
+
const uniqueVariableName = uniquenessVariableName;
|
|
359
|
+
const uniqueVariableMeta = uniqueTargetMetadata['variables'][uniqueVariableName];
|
|
360
|
+
const uniqueVariableMetaResolved = uniqueVariableMeta ?? { format: 'literal' };
|
|
361
|
+
const resolvedValue = Variables.resolve(uniqueVariableName, uniqueTargetSettings, workflowSettings, uniqueVariableMetaResolved);
|
|
362
|
+
resolvedValues.push(resolvedValue);
|
|
363
|
+
detailEntries.push(`${uniqueVariableName}=${resolvedValue}`);
|
|
364
|
+
}
|
|
365
|
+
const composite = [
|
|
366
|
+
uniqueTargetTypeName,
|
|
367
|
+
...resolvedValues,
|
|
368
|
+
].join('::');
|
|
369
|
+
const existing = uniquenessMap.get(composite);
|
|
370
|
+
if (existing !== undefined) {
|
|
371
|
+
if (detailEntries.length === 0) {
|
|
372
|
+
if (existing === workflowKey) {
|
|
373
|
+
diagnostics.push({
|
|
374
|
+
severity: 'error',
|
|
375
|
+
message: `Singleton target violation: workflow "${workflowKey}" declares multiple "${uniqueTargetTypeName}" targets, but only one is allowed.`,
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
diagnostics.push({
|
|
380
|
+
severity: 'error',
|
|
381
|
+
message: `Singleton target collision: only one "${uniqueTargetTypeName}" target may be declared across all workflows. Found in workflow "${existing}" and again in workflow "${workflowKey}".`,
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
else if (existing === workflowKey) {
|
|
386
|
+
diagnostics.push({
|
|
387
|
+
severity: 'error',
|
|
388
|
+
message: `Destination collision in workflow "${workflowKey}": multiple "${uniqueTargetTypeName}" targets declare the same destination (${detailEntries.join(', ')}). Each destination must be declared in only one target.`,
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
diagnostics.push({
|
|
393
|
+
severity: 'error',
|
|
394
|
+
message: `Cross-workflow destination collision: target "${uniqueTargetTypeName}" with destination (${detailEntries.join(', ')}) is declared in workflow "${existing}" and again in workflow "${workflowKey}". Each destination must be declared in only one workflow.`,
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
hasError = true;
|
|
398
|
+
continue;
|
|
399
|
+
}
|
|
400
|
+
uniquenessMap.set(composite, workflowKey);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
if (hasError === true) {
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
seenKeys.add(workflowKey);
|
|
407
|
+
const validatedEntry = entry;
|
|
408
|
+
workflows.push(validatedEntry);
|
|
409
|
+
}
|
|
410
|
+
return {
|
|
411
|
+
workflows,
|
|
412
|
+
diagnostics,
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
static detectCircularDependsOn(rawEntries) {
|
|
416
|
+
const dependsOnMap = new Map();
|
|
417
|
+
for (const rawEntryValue of rawEntries) {
|
|
418
|
+
const mapEntry = (typeof rawEntryValue === 'object' && rawEntryValue !== null) ? rawEntryValue : {};
|
|
419
|
+
const mapKey = (typeof mapEntry['name'] === 'string') ? `${String(mapEntry['template'])}-${mapEntry['name']}` : String(mapEntry['template']);
|
|
420
|
+
const mapTriggers = (Array.isArray(mapEntry['triggers']) === true) ? mapEntry['triggers'] : [];
|
|
421
|
+
const mapDependsOn = Runner.collectWorkflowRunReferences(mapTriggers);
|
|
422
|
+
dependsOnMap.set(mapKey, mapDependsOn);
|
|
423
|
+
}
|
|
424
|
+
for (const dependsOnMapEntry of dependsOnMap.entries()) {
|
|
425
|
+
const startKey = dependsOnMapEntry[0];
|
|
426
|
+
const startDependsOn = dependsOnMapEntry[1];
|
|
427
|
+
if (startDependsOn.length === 0) {
|
|
428
|
+
continue;
|
|
429
|
+
}
|
|
430
|
+
const visited = new Set();
|
|
431
|
+
const queue = [...startDependsOn];
|
|
432
|
+
while (queue.length > 0) {
|
|
433
|
+
const currentId = queue.shift();
|
|
434
|
+
if (currentId === startKey) {
|
|
435
|
+
return true;
|
|
436
|
+
}
|
|
437
|
+
if (visited.has(currentId) === true) {
|
|
438
|
+
continue;
|
|
439
|
+
}
|
|
440
|
+
visited.add(currentId);
|
|
441
|
+
const currentDependsOn = dependsOnMap.get(currentId) ?? [];
|
|
442
|
+
for (const dependency of currentDependsOn) {
|
|
443
|
+
queue.push(dependency);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
return false;
|
|
448
|
+
}
|
|
449
|
+
static isNonEmptyStringArray(value) {
|
|
450
|
+
return Array.isArray(value) === true
|
|
451
|
+
&& value.length > 0
|
|
452
|
+
&& value.every((entry) => typeof entry === 'string' && entry.length > 0) === true;
|
|
453
|
+
}
|
|
454
|
+
static isPlainObject(value) {
|
|
455
|
+
return typeof value === 'object'
|
|
456
|
+
&& value !== null
|
|
457
|
+
&& Array.isArray(value) === false;
|
|
458
|
+
}
|
|
459
|
+
static collectWorkflowRunReferences(triggerList) {
|
|
460
|
+
const references = [];
|
|
461
|
+
for (const triggerValue of triggerList) {
|
|
462
|
+
if (Runner.isPlainObject(triggerValue) === false) {
|
|
463
|
+
continue;
|
|
464
|
+
}
|
|
465
|
+
const trigger = triggerValue;
|
|
466
|
+
const triggerName = trigger['name'];
|
|
467
|
+
if (triggerName !== 'workflow-run-success'
|
|
468
|
+
&& triggerName !== 'workflow-run-any'
|
|
469
|
+
&& triggerName !== 'workflow-run-failure') {
|
|
470
|
+
continue;
|
|
471
|
+
}
|
|
472
|
+
if (Runner.isNonEmptyStringArray(trigger['workflows']) === false) {
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
const workflowReferences = trigger['workflows'];
|
|
476
|
+
for (const workflowReference of workflowReferences) {
|
|
477
|
+
references.push(workflowReference);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
return references;
|
|
481
|
+
}
|
|
482
|
+
static workflowMigrationHint(entry) {
|
|
483
|
+
if (entry['suffix'] !== undefined) {
|
|
484
|
+
return 'Workflow field "suffix" was renamed to "name". Skipping.';
|
|
485
|
+
}
|
|
486
|
+
if (entry['scopes'] !== undefined) {
|
|
487
|
+
return 'Workflow field "scopes" was renamed to "build". Skipping.';
|
|
488
|
+
}
|
|
489
|
+
if (entry['targets'] !== undefined) {
|
|
490
|
+
return 'Workflow field "targets" was renamed to "deploy". Skipping.';
|
|
491
|
+
}
|
|
492
|
+
if (entry['settings'] !== undefined) {
|
|
493
|
+
return 'Workflow field "settings" was renamed to "with". Skipping.';
|
|
494
|
+
}
|
|
495
|
+
if (entry['depends-on'] !== undefined) {
|
|
496
|
+
return 'Workflow field "depends-on" moved onto the workflow-run trigger as "workflows". Skipping.';
|
|
497
|
+
}
|
|
498
|
+
return undefined;
|
|
499
|
+
}
|
|
500
|
+
static deployMigrationHint(deploy) {
|
|
501
|
+
if (Array.isArray(deploy) === false) {
|
|
502
|
+
return undefined;
|
|
503
|
+
}
|
|
504
|
+
for (const deployValue of deploy) {
|
|
505
|
+
if (Runner.isPlainObject(deployValue) === false) {
|
|
506
|
+
continue;
|
|
507
|
+
}
|
|
508
|
+
const deployEntry = deployValue;
|
|
509
|
+
if (deployEntry['type'] !== undefined) {
|
|
510
|
+
return 'Deploy field "type" was renamed to "to". Skipping.';
|
|
511
|
+
}
|
|
512
|
+
if (deployEntry['workingDir'] !== undefined) {
|
|
513
|
+
return 'Deploy field "workingDir" was renamed to "path". Skipping.';
|
|
514
|
+
}
|
|
515
|
+
if (deployEntry['needs'] !== undefined) {
|
|
516
|
+
return 'Deploy field "needs" was renamed to "after". Skipping.';
|
|
517
|
+
}
|
|
518
|
+
if (deployEntry['settings'] !== undefined) {
|
|
519
|
+
return 'Deploy field "settings" was renamed to "with". Skipping.';
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return undefined;
|
|
523
|
+
}
|
|
524
|
+
static envMigrationHint(workspaces) {
|
|
525
|
+
const workspaceList = Object.values(workspaces);
|
|
526
|
+
for (const workspace of workspaceList) {
|
|
527
|
+
const workspaceEntry = workspace;
|
|
528
|
+
if (workspaceEntry['dotenv'] !== undefined) {
|
|
529
|
+
return 'Workspace field "dotenv" moved to the top-level "environment" block classified by "secret". Skipping.';
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
return undefined;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
//# sourceMappingURL=workflows-blueprint-validate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows-blueprint-validate.js","sourceRoot":"","sources":["../../../../../src/cli/generate/github/workflows-blueprint-validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAwHzE,MAAM,gBAAgB,GAAoE;IACxF,4BAA4B;IAC5B,sBAAsB;IACtB,SAAS;CACV,CAAC;AAUF,MAAM,oBAAoB,GAAwE;IAChG,KAAK;IACL,eAAe;IACf,iBAAiB;IACjB,6BAA6B;IAC7B,oBAAoB;IACpB,YAAY;IACZ,MAAM;IACN,yBAAyB;IACzB,eAAe;CAChB,CAAC;AAUF,MAAM,uBAAuB,GAA2E;IACtG,4BAA4B,EAAE;QAC5B,QAAQ;QACR,eAAe;KAChB;IACD,sBAAsB,EAAE;QACtB,iBAAiB;QACjB,gBAAgB;QAChB,kBAAkB;KACnB;IACD,SAAS,EAAE;QACT,SAAS;QACT,UAAU;QACV,MAAM;QACN,sBAAsB;QACtB,kBAAkB;QAClB,sBAAsB;KACvB;CACF,CAAC;AAUF,MAAM,OAAO,MAAM;IAcV,MAAM,CAAC,QAAQ,CAAC,YAAyF,EAAE,U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W,CAAC,OAAO,CAAC,KAAK,SAAS,EAAE,CAAC;gBACvC,OAAO,wDAAwD,CAAC;YAClE,CAAC;YAED,IAAI,WAAW,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;gBAC1C,OAAO,0DAA0D,CAAC;YACpE,CAAC;QACH,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAgBO,MAAM,CAAC,gBAAgB,CAAC,UAA6F;QAC3H,MAAM,aAAa,GAAyF,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAEtI,KAAK,MAAM,SAAS,IAAI,aAAa,EAAE,CAAC;YACtC,MAAM,cAAc,GAA0F,SAAkG,CAAC;YAEjN,IAAI,cAAc,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;gBAC3C,OAAO,uGAAuG,CAAC;YACjH,CAAC;QACH,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_Environment, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_OutputFileName, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_Returns, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_ValidatedWorkflow, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_Returns, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_TargetType, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_Template, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTemplateMetadata_Returns, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTemplateMetadata_Template, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_Returns, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_TargetSettings, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_VariableMeta, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_VariableName, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_WorkflowSettings, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_Format, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_ResolvedName, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_Returns } from '../../../types/cli/generate/github/workflows-blueprint-variables.d.ts';
|
|
2
|
+
export declare class Runner {
|
|
3
|
+
static getTemplateMetadata(template: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTemplateMetadata_Template): Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTemplateMetadata_Returns;
|
|
4
|
+
static getTargetMetadata(template: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_Template, targetType: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_TargetType): Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_Returns;
|
|
5
|
+
static resolve(variableName: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_VariableName, targetSettings: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_TargetSettings, workflowSettings: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_WorkflowSettings, variableMeta: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_VariableMeta): Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_Returns;
|
|
6
|
+
static resolveExpr(format: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_Format, resolvedName: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_ResolvedName): Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_Returns;
|
|
7
|
+
static collectSetupLines(validatedWorkflow: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_ValidatedWorkflow, outputFileName: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_OutputFileName, environment: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_Environment): Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_Returns;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=workflows-blueprint-variables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows-blueprint-variables.d.ts","sourceRoot":"","sources":["../../../../../src/cli/generate/github/workflows-blueprint-variables.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAEV,oFAAoF,EAEpF,uFAAuF,EAEvF,gFAAgF,EAchF,0FAA0F,EAQ1F,gFAAgF,EAEhF,mFAAmF,EACnF,iFAAiF,EAEjF,kFAAkF,EAClF,mFAAmF,EACnF,sEAAsE,EACtE,6EAA6E,EAC7E,2EAA2E,EAC3E,2EAA2E,EAC3E,+EAA+E,EAE/E,yEAAyE,EACzE,+EAA+E,EAC/E,0EAA0E,EAC3E,MAAM,uEAAuE,CAAC;AAW/E,qBAAa,MAAM;WAaH,mBAAmB,CAAC,QAAQ,EAAE,mFAAmF,GAAG,kFAAkF;WAiBtM,iBAAiB,CAAC,QAAQ,EAAE,iFAAiF,EAAE,UAAU,EAAE,mFAAmF,GAAG,gFAAgF;WAgCjS,OAAO,CAAC,YAAY,EAAE,2EAA2E,EAAE,cAAc,EAAE,6EAA6E,EAAE,gBAAgB,EAAE,+EAA+E,EAAE,YAAY,EAAE,2EAA2E,GAAG,sEAAsE;WA0Bvc,WAAW,CAAC,MAAM,EAAE,yEAAyE,EAAE,YAAY,EAAE,+EAA+E,GAAG,0EAA0E;WAgCzQ,iBAAiB,CAAC,iBAAiB,EAAE,0FAA0F,EAAE,cAAc,EAAE,uFAAuF,EAAE,WAAW,EAAE,oFAAoF,GAAG,gFAAgF;CA6G7a"}
|