@agent-teams/engineering-foundation 0.17.0-rc.8 → 0.18.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 +33 -47
- package/dist/capabilities/contract-json-schema-releases/module.d.ts.map +1 -1
- package/dist/capabilities/contract-json-schema-releases/module.js +4 -17
- package/dist/capabilities/contract-json-schema-releases/module.js.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/module.d.ts.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/module.js +4 -17
- package/dist/capabilities/contract-protobuf-evolution/module.js.map +1 -1
- package/dist/capabilities/documentation-local-references/module.d.ts.map +1 -1
- package/dist/capabilities/documentation-local-references/module.js +4 -17
- package/dist/capabilities/documentation-local-references/module.js.map +1 -1
- package/dist/capabilities/executable-specifications/module.d.ts.map +1 -1
- package/dist/capabilities/executable-specifications/module.js +4 -17
- package/dist/capabilities/executable-specifications/module.js.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/module.d.ts.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/module.js +4 -17
- package/dist/capabilities/governance-architecture-decisions/module.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/module.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/module.js +4 -19
- package/dist/capabilities/public-api-compatibility/module.js.map +1 -1
- package/dist/capabilities/quality-gate-runner/adapters/inbound/cli/report-renderer.d.ts +3 -0
- package/dist/capabilities/quality-gate-runner/adapters/inbound/cli/report-renderer.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/adapters/inbound/cli/report-renderer.js +17 -0
- package/dist/capabilities/quality-gate-runner/adapters/inbound/cli/report-renderer.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/filesystem/filesystem-package-script-catalog-reader.d.ts +7 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/filesystem/filesystem-package-script-catalog-reader.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/filesystem/filesystem-package-script-catalog-reader.js +51 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/filesystem/filesystem-package-script-catalog-reader.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/pnpm/pnpm-package-script-executor.d.ts +22 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/pnpm/pnpm-package-script-executor.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/pnpm/pnpm-package-script-executor.js +90 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/pnpm/pnpm-package-script-executor.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/time/performance-monotonic-clock.d.ts +3 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/time/performance-monotonic-clock.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/time/performance-monotonic-clock.js +5 -0
- package/dist/capabilities/quality-gate-runner/adapters/outbound/time/performance-monotonic-clock.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/model/quality-gate-report.d.ts +18 -0
- package/dist/capabilities/quality-gate-runner/application/model/quality-gate-report.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/model/quality-gate-report.js +2 -0
- package/dist/capabilities/quality-gate-runner/application/model/quality-gate-report.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/model/quality-gate.d.ts +19 -0
- package/dist/capabilities/quality-gate-runner/application/model/quality-gate.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/model/quality-gate.js +2 -0
- package/dist/capabilities/quality-gate-runner/application/model/quality-gate.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/policies/evaluate-quality-gate-scripts.d.ts +4 -0
- package/dist/capabilities/quality-gate-runner/application/policies/evaluate-quality-gate-scripts.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/policies/evaluate-quality-gate-scripts.js +64 -0
- package/dist/capabilities/quality-gate-runner/application/policies/evaluate-quality-gate-scripts.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/policies/validate-quality-gate-graph.d.ts +6 -0
- package/dist/capabilities/quality-gate-runner/application/policies/validate-quality-gate-graph.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/policies/validate-quality-gate-graph.js +75 -0
- package/dist/capabilities/quality-gate-runner/application/policies/validate-quality-gate-graph.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/ports/monotonic-clock.d.ts +4 -0
- package/dist/capabilities/quality-gate-runner/application/ports/monotonic-clock.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/ports/monotonic-clock.js +2 -0
- package/dist/capabilities/quality-gate-runner/application/ports/monotonic-clock.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/ports/package-script-catalog-reader.d.ts +5 -0
- package/dist/capabilities/quality-gate-runner/application/ports/package-script-catalog-reader.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/ports/package-script-catalog-reader.js +2 -0
- package/dist/capabilities/quality-gate-runner/application/ports/package-script-catalog-reader.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/ports/package-script-executor.d.ts +20 -0
- package/dist/capabilities/quality-gate-runner/application/ports/package-script-executor.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/ports/package-script-executor.js +9 -0
- package/dist/capabilities/quality-gate-runner/application/ports/package-script-executor.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/rules.d.ts +12 -0
- package/dist/capabilities/quality-gate-runner/application/rules.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/rules.js +18 -0
- package/dist/capabilities/quality-gate-runner/application/rules.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/use-cases/analyze-quality-gate-runner.d.ts +9 -0
- package/dist/capabilities/quality-gate-runner/application/use-cases/analyze-quality-gate-runner.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/use-cases/analyze-quality-gate-runner.js +5 -0
- package/dist/capabilities/quality-gate-runner/application/use-cases/analyze-quality-gate-runner.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/use-cases/run-quality-gate-profile.d.ts +10 -0
- package/dist/capabilities/quality-gate-runner/application/use-cases/run-quality-gate-profile.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/application/use-cases/run-quality-gate-profile.js +138 -0
- package/dist/capabilities/quality-gate-runner/application/use-cases/run-quality-gate-profile.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/contract/config.d.ts +5 -0
- package/dist/capabilities/quality-gate-runner/contract/config.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/contract/config.js +89 -0
- package/dist/capabilities/quality-gate-runner/contract/config.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/gate-command.d.ts +10 -0
- package/dist/capabilities/quality-gate-runner/gate-command.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/gate-command.js +82 -0
- package/dist/capabilities/quality-gate-runner/gate-command.js.map +1 -0
- package/dist/capabilities/quality-gate-runner/module.d.ts +5 -0
- package/dist/capabilities/quality-gate-runner/module.d.ts.map +1 -0
- package/dist/capabilities/quality-gate-runner/module.js +36 -0
- package/dist/capabilities/quality-gate-runner/module.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.d.ts +2 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.js +32 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/filesystem-effective-instructions-reader.d.ts +16 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/filesystem-effective-instructions-reader.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/filesystem-effective-instructions-reader.js +213 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/filesystem-effective-instructions-reader.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/git/git-repository-changes-reader.d.ts +9 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/git/git-repository-changes-reader.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/git/git-repository-changes-reader.js +232 -62
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/git/git-repository-changes-reader.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.d.ts +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.js +2 -1
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/application/model/changed-workflow.d.ts +26 -0
- package/dist/capabilities/repository-agent-workflow/application/model/changed-workflow.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/application/model/effective-instructions.d.ts +61 -0
- package/dist/capabilities/repository-agent-workflow/application/model/effective-instructions.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/model/effective-instructions.js +7 -0
- package/dist/capabilities/repository-agent-workflow/application/model/effective-instructions.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/effective-instructions-reader.d.ts +15 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/effective-instructions-reader.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/effective-instructions-reader.js +2 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/effective-instructions-reader.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/resolve-effective-instructions.d.ts +8 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/resolve-effective-instructions.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/resolve-effective-instructions.js +128 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/resolve-effective-instructions.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-changed-agent-workflow.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-changed-agent-workflow.js +8 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-changed-agent-workflow.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/instructions-command.d.ts +6 -0
- package/dist/capabilities/repository-agent-workflow/instructions-command.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/instructions-command.js +26 -0
- package/dist/capabilities/repository-agent-workflow/instructions-command.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/module.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/module.js +4 -17
- package/dist/capabilities/repository-agent-workflow/module.js.map +1 -1
- package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-parser.d.ts.map +1 -1
- package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-parser.js +33 -0
- package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-parser.js.map +1 -1
- package/dist/capabilities/repository-security-baseline/application/model/repository-security.d.ts +1 -0
- package/dist/capabilities/repository-security-baseline/application/model/repository-security.d.ts.map +1 -1
- package/dist/capabilities/repository-security-baseline/application/model/repository-security.js.map +1 -1
- package/dist/capabilities/repository-security-baseline/application/policies/dependency-review-ordering.js +1 -1
- package/dist/capabilities/repository-security-baseline/application/policies/dependency-review-ordering.js.map +1 -1
- package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security-tools.js +1 -1
- package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security-tools.js.map +1 -1
- package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security.js +1 -1
- package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security.js.map +1 -1
- package/dist/capabilities/repository-security-baseline/module.d.ts.map +1 -1
- package/dist/capabilities/repository-security-baseline/module.js +4 -17
- package/dist/capabilities/repository-security-baseline/module.js.map +1 -1
- package/dist/capabilities/source-dependencies/module.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/module.js +4 -19
- package/dist/capabilities/source-dependencies/module.js.map +1 -1
- package/dist/capabilities/suppression-governance/module.d.ts.map +1 -1
- package/dist/capabilities/suppression-governance/module.js +4 -19
- package/dist/capabilities/suppression-governance/module.js.map +1 -1
- package/dist/capabilities/workspace-dependency-declarations/module.d.ts.map +1 -1
- package/dist/capabilities/workspace-dependency-declarations/module.js +4 -18
- package/dist/capabilities/workspace-dependency-declarations/module.js.map +1 -1
- package/dist/capability-runtime.d.ts +8 -0
- package/dist/capability-runtime.d.ts.map +1 -1
- package/dist/capability-runtime.js +66 -0
- package/dist/capability-runtime.js.map +1 -1
- package/dist/check-runner.d.ts.map +1 -1
- package/dist/check-runner.js +16 -10
- package/dist/check-runner.js.map +1 -1
- package/dist/cli-arguments.d.ts.map +1 -1
- package/dist/cli-arguments.js +15 -8
- package/dist/cli-arguments.js.map +1 -1
- package/dist/cli.js +31 -8
- package/dist/cli.js.map +1 -1
- package/dist/composition/capability-modules.d.ts +13 -0
- package/dist/composition/capability-modules.d.ts.map +1 -0
- package/dist/composition/capability-modules.js +30 -0
- package/dist/composition/capability-modules.js.map +1 -0
- package/dist/composition/capability-registry.d.ts +2 -0
- package/dist/composition/capability-registry.d.ts.map +1 -1
- package/dist/composition/capability-registry.js +5 -25
- package/dist/composition/capability-registry.js.map +1 -1
- package/dist/composition/rule-registry.d.ts +4 -7
- package/dist/composition/rule-registry.d.ts.map +1 -1
- package/dist/composition/rule-registry.js +17 -25
- package/dist/composition/rule-registry.js.map +1 -1
- package/dist/document-authoring/index.d.ts +6 -1
- package/dist/document-authoring/index.d.ts.map +1 -1
- package/dist/document-authoring/index.js.map +1 -1
- package/dist/filesystem-path-safety.d.ts +6 -0
- package/dist/filesystem-path-safety.d.ts.map +1 -1
- package/dist/filesystem-path-safety.js +76 -21
- package/dist/filesystem-path-safety.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/legacy-docs-cli-deprecation.d.ts +10 -0
- package/dist/legacy-docs-cli-deprecation.d.ts.map +1 -0
- package/dist/legacy-docs-cli-deprecation.js +36 -0
- package/dist/legacy-docs-cli-deprecation.js.map +1 -0
- package/dist/local-mode/index.d.ts +5 -0
- package/dist/local-mode/index.d.ts.map +1 -1
- package/dist/local-mode/index.js +5 -0
- package/dist/local-mode/index.js.map +1 -1
- package/dist/mutation/index.d.ts +8 -0
- package/dist/mutation/index.d.ts.map +1 -1
- package/dist/mutation/index.js.map +1 -1
- package/dist/mutation/qualification/index.d.ts +10 -0
- package/dist/mutation/qualification/index.d.ts.map +1 -0
- package/dist/mutation/qualification/index.js +6 -0
- package/dist/mutation/qualification/index.js.map +1 -0
- package/dist/process-execution/node-process-runner.d.ts +6 -1
- package/dist/process-execution/node-process-runner.d.ts.map +1 -1
- package/dist/process-execution/node-process-runner.js +29 -6
- package/dist/process-execution/node-process-runner.js.map +1 -1
- package/dist/quality-gate-cli-command.d.ts +3 -0
- package/dist/quality-gate-cli-command.d.ts.map +1 -0
- package/dist/quality-gate-cli-command.js +37 -0
- package/dist/quality-gate-cli-command.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.d.ts +84 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.js +232 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.d.ts +9 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.js +2 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.d.ts +6 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.js +30 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.d.ts +11 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.js +159 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-state.d.ts +9 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-state.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-state.js +21 -0
- package/dist/repository-mutation/adapters/node/node-known-file-apply-state.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.d.ts +9 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.js +203 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.d.ts +17 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.js +22 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.d.ts +15 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.js +47 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.d.ts +29 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.js +72 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.d.ts +31 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.js +254 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.d.ts +13 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.js +210 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.d.ts +15 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.js +172 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.d.ts +12 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.js +17 -0
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.d.ts +2 -5
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.d.ts.map +1 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.js +18 -860
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.js.map +1 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.d.ts +3 -9
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.d.ts.map +1 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.js +35 -451
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.js.map +1 -1
- package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.d.ts +25 -0
- package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.d.ts.map +1 -0
- package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.js +19 -0
- package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.js.map +1 -0
- package/dist/schema-ids.d.ts +1 -1
- package/dist/schema-ids.d.ts.map +1 -1
- package/dist/schema-ids.js +2 -0
- package/dist/schema-ids.js.map +1 -1
- package/dist/unexpected-failure.d.ts +9 -0
- package/dist/unexpected-failure.d.ts.map +1 -0
- package/dist/unexpected-failure.js +105 -0
- package/dist/unexpected-failure.js.map +1 -0
- package/package.json +7 -1
- package/schemas/foundation-config/v1.schema.json +10 -0
- package/schemas/quality-gate-run-report/v1.schema.json +47 -0
- package/schemas/quality-gate-runner/v1.schema.json +74 -0
package/dist/capabilities/quality-gate-runner/application/use-cases/run-quality-gate-profile.js
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { PackageScriptTimeoutError } from "../ports/package-script-executor.js";
|
|
2
|
+
const FAILURE_TAIL_CHARACTERS = 8_192;
|
|
3
|
+
function unsafeTerminalControl(codePoint) {
|
|
4
|
+
return codePoint <= 0x08 ||
|
|
5
|
+
(codePoint >= 0x0b && codePoint <= 0x1f) ||
|
|
6
|
+
(codePoint >= 0x7f && codePoint <= 0x9f);
|
|
7
|
+
}
|
|
8
|
+
function sanitizeFailureOutput(value) {
|
|
9
|
+
let sanitized = "";
|
|
10
|
+
for (const character of value) {
|
|
11
|
+
const codePoint = character.codePointAt(0) ?? 0;
|
|
12
|
+
sanitized += unsafeTerminalControl(codePoint)
|
|
13
|
+
? `\\u{${codePoint.toString(16).padStart(4, "0")}}`
|
|
14
|
+
: character;
|
|
15
|
+
}
|
|
16
|
+
return sanitized;
|
|
17
|
+
}
|
|
18
|
+
function elapsed(clock, startedAt) {
|
|
19
|
+
return Math.max(0, Math.floor(clock.nowMs() - startedAt));
|
|
20
|
+
}
|
|
21
|
+
function failureTail(stdout, stderr) {
|
|
22
|
+
const combined = sanitizeFailureOutput([stdout.trim(), stderr.trim()]
|
|
23
|
+
.filter((value) => value.length > 0)
|
|
24
|
+
.join("\n"));
|
|
25
|
+
const tail = combined.length <= FAILURE_TAIL_CHARACTERS
|
|
26
|
+
? combined
|
|
27
|
+
: combined.slice(combined.length - FAILURE_TAIL_CHARACTERS);
|
|
28
|
+
return /^[\udc00-\udfff]/u.test(tail) ? tail.slice(1) : tail;
|
|
29
|
+
}
|
|
30
|
+
async function executeTask(input, executor, clock) {
|
|
31
|
+
const startedAt = clock.nowMs();
|
|
32
|
+
try {
|
|
33
|
+
const result = await executor.run({
|
|
34
|
+
consumerRoot: input.consumerRoot,
|
|
35
|
+
scriptId: input.task.id,
|
|
36
|
+
...(input.task.timeoutMs === undefined
|
|
37
|
+
? {}
|
|
38
|
+
: { timeoutMs: input.task.timeoutMs }),
|
|
39
|
+
...(input.signal === undefined ? {} : { signal: input.signal })
|
|
40
|
+
});
|
|
41
|
+
return Object.freeze({
|
|
42
|
+
id: input.task.id,
|
|
43
|
+
outcome: result.exitCode === 0 ? "passed" : "failed",
|
|
44
|
+
durationMs: elapsed(clock, startedAt),
|
|
45
|
+
exitCode: result.exitCode,
|
|
46
|
+
signal: result.signal,
|
|
47
|
+
failureTail: result.exitCode === 0 ? "" : failureTail(result.stdout, result.stderr)
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
const cancelled = input.signal?.aborted === true;
|
|
52
|
+
const timedOut = error instanceof PackageScriptTimeoutError;
|
|
53
|
+
return Object.freeze({
|
|
54
|
+
id: input.task.id,
|
|
55
|
+
outcome: cancelled ? "cancelled" : timedOut ? "timed-out" : "failed",
|
|
56
|
+
durationMs: elapsed(clock, startedAt),
|
|
57
|
+
exitCode: null,
|
|
58
|
+
signal: null,
|
|
59
|
+
failureTail: cancelled
|
|
60
|
+
? ""
|
|
61
|
+
: error instanceof Error
|
|
62
|
+
? failureTail("", error.message)
|
|
63
|
+
: "Package script execution failed."
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function terminalReport(id, outcome) {
|
|
68
|
+
return Object.freeze({
|
|
69
|
+
id,
|
|
70
|
+
outcome,
|
|
71
|
+
durationMs: 0,
|
|
72
|
+
exitCode: null,
|
|
73
|
+
signal: null,
|
|
74
|
+
failureTail: ""
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
export async function runQualityGateProfile(input, executor, clock) {
|
|
78
|
+
const startedAt = clock.nowMs();
|
|
79
|
+
const reports = new Map();
|
|
80
|
+
const active = new Map();
|
|
81
|
+
while (reports.size < input.profile.tasks.length) {
|
|
82
|
+
const madeProgress = scheduleReadyTasks(input, reports, active, executor, clock);
|
|
83
|
+
if (active.size > 0) {
|
|
84
|
+
const completed = await Promise.race(active.values());
|
|
85
|
+
active.delete(completed.id);
|
|
86
|
+
reports.set(completed.id, completed);
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if (!madeProgress && reports.size < input.profile.tasks.length) {
|
|
90
|
+
throw new Error("Quality gate scheduler reached an invalid dependency state.");
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const tasks = Object.freeze(input.profile.tasks.map((task) => reports.get(task.id)));
|
|
94
|
+
return Object.freeze({
|
|
95
|
+
reportSchemaVersion: 1,
|
|
96
|
+
profileId: input.profile.id,
|
|
97
|
+
outcome: tasks.some(({ outcome }) => outcome === "cancelled")
|
|
98
|
+
? "cancelled"
|
|
99
|
+
: tasks.every(({ outcome }) => outcome === "passed")
|
|
100
|
+
? "passed"
|
|
101
|
+
: "failed",
|
|
102
|
+
durationMs: elapsed(clock, startedAt),
|
|
103
|
+
tasks
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function scheduleReadyTasks(input, reports, active, executor, clock) {
|
|
107
|
+
let madeProgress = false;
|
|
108
|
+
for (const task of input.profile.tasks) {
|
|
109
|
+
if (reports.has(task.id) || active.has(task.id)) {
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
if (input.signal?.aborted === true) {
|
|
113
|
+
reports.set(task.id, terminalReport(task.id, "cancelled"));
|
|
114
|
+
madeProgress = true;
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
const dependencies = [...task.needs, ...task.after].map((id) => reports.get(id));
|
|
118
|
+
if (dependencies.some((report) => report === undefined)) {
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
if (task.needs.some((id) => reports.get(id)?.outcome !== "passed")) {
|
|
122
|
+
reports.set(task.id, terminalReport(task.id, "blocked"));
|
|
123
|
+
madeProgress = true;
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
if (active.size >= input.profile.concurrency) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
active.set(task.id, executeTask({
|
|
130
|
+
consumerRoot: input.consumerRoot,
|
|
131
|
+
task,
|
|
132
|
+
...(input.signal === undefined ? {} : { signal: input.signal })
|
|
133
|
+
}, executor, clock));
|
|
134
|
+
madeProgress = true;
|
|
135
|
+
}
|
|
136
|
+
return madeProgress;
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=run-quality-gate-profile.js.map
|
package/dist/capabilities/quality-gate-runner/application/use-cases/run-quality-gate-profile.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-quality-gate-profile.js","sourceRoot":"","sources":["../../../../../src/capabilities/quality-gate-runner/application/use-cases/run-quality-gate-profile.ts"],"names":[],"mappings":"AASA,OAAO,EACL,yBAAyB,EAE1B,MAAM,qCAAqC,CAAC;AAE7C,MAAM,uBAAuB,GAAG,KAAK,CAAC;AAEtC,SAAS,qBAAqB,CAAC,SAAiB;IAC9C,O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;QACX,CAAC;QACD,IAAI,MAAM,CAAC,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC7C,MAAM;QACR,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,CAAC;YAC9B,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,IAAI;YACJ,GAAG,CAAC,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;SAChE,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;QACrB,YAAY,GAAG,IAAI,CAAC;IACtB,CAAC;IACD,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { QualityGatePolicy } from "../application/model/quality-gate.js";
|
|
2
|
+
export declare const CAPABILITY_ID: "quality.gate-runner";
|
|
3
|
+
export declare const CAPABILITY_CONFIG_SCHEMA_VERSION: 1;
|
|
4
|
+
export declare function loadQualityGatePolicy(consumerRoot: string, configPath: string, signal?: AbortSignal): Promise<QualityGatePolicy>;
|
|
5
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/quality-gate-runner/contract/config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,iBAAiB,EAGlB,MAAM,sCAAsC,CAAC;AAM9C,eAAO,MAAM,aAAa,EAAG,qBAA8B,CAAC;AAC5D,eAAO,MAAM,gCAAgC,EAAG,CAAU,CAAC;AAsE3D,wBAAsB,qBAAqB,CACzC,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,iBAAiB,CAAC,CA0B5B"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { CapabilityInputError } from "../../../capability-runtime.js";
|
|
2
|
+
import { assertSchema } from "../../../schema-catalog.js";
|
|
3
|
+
import { loadStrictYamlFile } from "../../../strict-yaml.js";
|
|
4
|
+
import { QualityGateGraphError, validateQualityGatePolicy } from "../application/policies/validate-quality-gate-graph.js";
|
|
5
|
+
export const CAPABILITY_ID = "quality.gate-runner";
|
|
6
|
+
export const CAPABILITY_CONFIG_SCHEMA_VERSION = 1;
|
|
7
|
+
function inputError(message) {
|
|
8
|
+
throw new CapabilityInputError({
|
|
9
|
+
code: "QUALITY_GATE_RUNNER_CONFIG_INVALID",
|
|
10
|
+
message,
|
|
11
|
+
phase: "quality-gate-runner-config",
|
|
12
|
+
retryable: false
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function record(value, field) {
|
|
16
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
17
|
+
inputError(`${field} must be an object.`);
|
|
18
|
+
}
|
|
19
|
+
return value;
|
|
20
|
+
}
|
|
21
|
+
function string(value, field) {
|
|
22
|
+
if (typeof value !== "string") {
|
|
23
|
+
inputError(`${field} must be a string.`);
|
|
24
|
+
}
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
function integer(value, field) {
|
|
28
|
+
if (!Number.isSafeInteger(value)) {
|
|
29
|
+
inputError(`${field} must be an integer.`);
|
|
30
|
+
}
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
function ids(value, field) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return Object.freeze([]);
|
|
36
|
+
}
|
|
37
|
+
if (!Array.isArray(value)) {
|
|
38
|
+
inputError(`${field} must be an array.`);
|
|
39
|
+
}
|
|
40
|
+
return Object.freeze(value.map((entry, index) => string(entry, `${field}[${index}]`)));
|
|
41
|
+
}
|
|
42
|
+
function task(value, profileIndex, taskIndex) {
|
|
43
|
+
const field = `profiles[${profileIndex}].tasks[${taskIndex}]`;
|
|
44
|
+
const input = record(value, field);
|
|
45
|
+
const timeoutMs = input["timeoutMs"];
|
|
46
|
+
return Object.freeze({
|
|
47
|
+
id: string(input["id"], `${field}.id`),
|
|
48
|
+
needs: ids(input["needs"], `${field}.needs`),
|
|
49
|
+
after: ids(input["after"], `${field}.after`),
|
|
50
|
+
...(timeoutMs === undefined ? {} : { timeoutMs: integer(timeoutMs, `${field}.timeoutMs`) })
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function profile(value, index) {
|
|
54
|
+
const field = `profiles[${index}]`;
|
|
55
|
+
const input = record(value, field);
|
|
56
|
+
const tasks = input["tasks"];
|
|
57
|
+
if (!Array.isArray(tasks)) {
|
|
58
|
+
inputError(`${field}.tasks must be an array.`);
|
|
59
|
+
}
|
|
60
|
+
return Object.freeze({
|
|
61
|
+
id: string(input["id"], `${field}.id`),
|
|
62
|
+
concurrency: integer(input["concurrency"], `${field}.concurrency`),
|
|
63
|
+
tasks: Object.freeze(tasks.map((entry, taskIndex) => task(entry, index, taskIndex)))
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export async function loadQualityGatePolicy(consumerRoot, configPath, signal) {
|
|
67
|
+
const input = await loadStrictYamlFile(consumerRoot, configPath, "quality-gate-runner-config", signal);
|
|
68
|
+
await assertSchema("quality-gate-runner/v1", input, "quality-gate-runner-config");
|
|
69
|
+
const root = record(input, "quality gate runner config");
|
|
70
|
+
const profiles = root["profiles"];
|
|
71
|
+
if (!Array.isArray(profiles)) {
|
|
72
|
+
inputError("profiles must be an array.");
|
|
73
|
+
}
|
|
74
|
+
const policy = Object.freeze({
|
|
75
|
+
packageManager: "pnpm",
|
|
76
|
+
profiles: Object.freeze(profiles.map(profile))
|
|
77
|
+
});
|
|
78
|
+
try {
|
|
79
|
+
validateQualityGatePolicy(policy);
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
if (error instanceof QualityGateGraphError) {
|
|
83
|
+
inputError(error.message);
|
|
84
|
+
}
|
|
85
|
+
throw error;
|
|
86
|
+
}
|
|
87
|
+
return policy;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/capabilities/quality-gate-runner/contract/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAM7D,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,wDAAwD,CAAC;AAEhE,MAAM,CAAC,MAAM,aAAa,GAAG,qBAA8B,CAAC;AAC5D,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAU,CAAC;AAE3D,SAAS,UAAU,CAAC,OAAe;IACjC,MAAM,IAAI,oBAAoB,CAAC;QAC7B,IAAI,EAAE,oCAAoC;QAC1C,OAAO;QACP,KAAK,EAAE,4BAA4B;QACnC,SAAS,EAAE,KAAK;KACjB,CAAC,CAAC;AACL,CAAC;AAED,SAAS,MAAM,CAAC,KAAc,EAAE,KAAa;IAC3C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACxE,UAAU,CAAC,GAAG,KAAK,qBAAqB,CAAC,CAAC;IAC5C,CAAC;IACD,OAAO,KAAgC,CAAC;AAC1C,CAAC;AAED,SAAS,MAAM,CAAC,KAAc,EAAE,KAAa;IAC3C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,UAAU,CAAC,GAAG,KAAK,oBAAoB,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,OAAO,CAAC,KAAc,EAAE,KAAa;IAC5C,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC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AAC,QAAQ,CAAC,EAAE,CAAC;QAC7B,UAAU,CAAC,4BAA4B,CAAC,CAAC;IAC3C,CAAC;IACD,MAAM,MAAM,GAAsB,MAAM,CAAC,MAAM,CAAC;QAC9C,cAAc,EAAE,MAAM;QACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KAC/C,CAAC,CAAC;IACH,IAAI,CAAC;QACH,yBAAyB,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,qBAAqB,EAAE,CAAC;YAC3C,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC5B,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type QualityGatePnpmEnvironment } from "./adapters/outbound/pnpm/pnpm-package-script-executor.js";
|
|
2
|
+
export declare function runQualityGateCommand(input: {
|
|
3
|
+
readonly consumerRoot: string;
|
|
4
|
+
readonly configPath: string;
|
|
5
|
+
readonly profileId: string;
|
|
6
|
+
readonly format: "json" | "text";
|
|
7
|
+
readonly environment: NodeJS.ProcessEnv;
|
|
8
|
+
readonly pnpmEnvironment: QualityGatePnpmEnvironment;
|
|
9
|
+
}): Promise<void>;
|
|
10
|
+
//# sourceMappingURL=gate-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate-command.d.ts","sourceRoot":"","sources":["../../../src/capabilities/quality-gate-runner/gate-command.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,0DAA0D,CAAC;AAqClE,wBAAsB,qBAAqB,CAAC,KAAK,EAAE;IACjD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,UAAU,CAAC;IACxC,QAAQ,CAAC,eAAe,EAAE,0BAA0B,CAAC;CACtD,GAAG,OAAO,CAAC,IAAI,CAAC,CAkEhB"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { CapabilityInputError } from "../../capability-runtime.js";
|
|
2
|
+
import { evaluateQualityGateScripts } from "./application/policies/evaluate-quality-gate-scripts.js";
|
|
3
|
+
import { runQualityGateProfile } from "./application/use-cases/run-quality-gate-profile.js";
|
|
4
|
+
import { renderQualityGateRunReport } from "./adapters/inbound/cli/report-renderer.js";
|
|
5
|
+
import { FilesystemPackageScriptCatalogReader } from "./adapters/outbound/filesystem/filesystem-package-script-catalog-reader.js";
|
|
6
|
+
import { PnpmQualityGateScriptExecutor } from "./adapters/outbound/pnpm/pnpm-package-script-executor.js";
|
|
7
|
+
import { performanceMonotonicClock } from "./adapters/outbound/time/performance-monotonic-clock.js";
|
|
8
|
+
import { loadQualityGatePolicy } from "./contract/config.js";
|
|
9
|
+
const ACTIVE_GATE_ENVIRONMENT_VARIABLE = "AGENT_TEAMS_FOUNDATION_QUALITY_GATE_ACTIVE";
|
|
10
|
+
function inputError(code, message) {
|
|
11
|
+
throw new CapabilityInputError({
|
|
12
|
+
code,
|
|
13
|
+
message,
|
|
14
|
+
phase: "quality-gate-runner-command",
|
|
15
|
+
retryable: false
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function exitCodeForQualityGateRun(report, cancellationSignal) {
|
|
19
|
+
if (report.outcome === "passed") {
|
|
20
|
+
return 0;
|
|
21
|
+
}
|
|
22
|
+
if (report.outcome === "cancelled") {
|
|
23
|
+
return cancellationSignal === "SIGTERM" ? 143 : 130;
|
|
24
|
+
}
|
|
25
|
+
for (const task of report.tasks) {
|
|
26
|
+
if (task.outcome === "timed-out") {
|
|
27
|
+
return 124;
|
|
28
|
+
}
|
|
29
|
+
if (task.outcome === "failed") {
|
|
30
|
+
return task.exitCode === null || task.exitCode === 0 ? 1 : task.exitCode;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return 1;
|
|
34
|
+
}
|
|
35
|
+
export async function runQualityGateCommand(input) {
|
|
36
|
+
if (input.environment[ACTIVE_GATE_ENVIRONMENT_VARIABLE] !== undefined) {
|
|
37
|
+
inputError("QUALITY_GATE_RECURSION", "A quality gate task cannot start another quality gate runner.");
|
|
38
|
+
}
|
|
39
|
+
const controller = new AbortController();
|
|
40
|
+
let cancellationSignal;
|
|
41
|
+
const cancelFor = (signal) => () => {
|
|
42
|
+
cancellationSignal ??= signal;
|
|
43
|
+
controller.abort(signal);
|
|
44
|
+
};
|
|
45
|
+
const onInterrupt = cancelFor("SIGINT");
|
|
46
|
+
const onTerminate = cancelFor("SIGTERM");
|
|
47
|
+
process.on("SIGINT", onInterrupt);
|
|
48
|
+
process.on("SIGTERM", onTerminate);
|
|
49
|
+
try {
|
|
50
|
+
const policy = await loadQualityGatePolicy(input.consumerRoot, input.configPath, controller.signal);
|
|
51
|
+
const profile = policy.profiles.find(({ id }) => id === input.profileId);
|
|
52
|
+
if (profile === undefined) {
|
|
53
|
+
inputError("QUALITY_GATE_PROFILE_UNKNOWN", `Unknown quality gate profile: ${input.profileId}.`);
|
|
54
|
+
}
|
|
55
|
+
const catalog = await new FilesystemPackageScriptCatalogReader().read(input.consumerRoot, controller.signal);
|
|
56
|
+
const diagnostics = evaluateQualityGateScripts(policy, catalog);
|
|
57
|
+
if (diagnostics.length > 0) {
|
|
58
|
+
inputError("QUALITY_GATE_SCRIPTS_INVALID", diagnostics.map(({ message }) => message).join(" "));
|
|
59
|
+
}
|
|
60
|
+
input.environment[ACTIVE_GATE_ENVIRONMENT_VARIABLE] = input.profileId;
|
|
61
|
+
let report;
|
|
62
|
+
try {
|
|
63
|
+
report = await runQualityGateProfile({
|
|
64
|
+
consumerRoot: input.consumerRoot,
|
|
65
|
+
profile,
|
|
66
|
+
signal: controller.signal
|
|
67
|
+
}, new PnpmQualityGateScriptExecutor(input.pnpmEnvironment), performanceMonotonicClock);
|
|
68
|
+
}
|
|
69
|
+
finally {
|
|
70
|
+
delete input.environment[ACTIVE_GATE_ENVIRONMENT_VARIABLE];
|
|
71
|
+
}
|
|
72
|
+
process.stdout.write(input.format === "json"
|
|
73
|
+
? `${JSON.stringify(report, null, 2)}\n`
|
|
74
|
+
: renderQualityGateRunReport(report));
|
|
75
|
+
process.exitCode = exitCodeForQualityGateRun(report, cancellationSignal);
|
|
76
|
+
}
|
|
77
|
+
finally {
|
|
78
|
+
process.removeListener("SIGINT", onInterrupt);
|
|
79
|
+
process.removeListener("SIGTERM", onTerminate);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=gate-command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate-command.js","sourceRoot":"","sources":["../../../src/capabilities/quality-gate-runner/gate-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AACrG,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4EAA4E,CAAC;AAClI,OAAO,EACL,6BAA6B,EAE9B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,gCAAgC,GACpC,4CAA4C,CAAC;AAE/C,SAAS,UAAU,CAAC,IAAY,EAAE,OAAe;IAC/C,MAAM,IAAI,oBAAoB,CAA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AAK,CAAC,YAAY;gBAChC,OAAO;gBACP,MAAM,EAAE,UAAU,CAAC,MAAM;aAC1B,EACD,IAAI,6BAA6B,CAAC,KAAK,CAAC,eAAe,CAAC,EACxD,yBAAyB,CAC1B,CAAC;QACJ,CAAC;gBAAS,CAAC;YACT,OAAO,KAAK,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,KAAK,CAAC,MAAM,KAAK,MAAM;YACrB,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI;YACxC,CAAC,CAAC,0BAA0B,CAAC,MAAM,CAAC,CACvC,CAAC;QACF,OAAO,CAAC,QAAQ,GAAG,yBAAyB,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC3E,CAAC;YAAS,CAAC;QACT,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QAC9C,OAAO,CAAC,cAAc,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IACjD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type CapabilityDefinition } from "../../capability-runtime.js";
|
|
2
|
+
import { QUALITY_GATE_RUNNER_RULES_BY_ID } from "./application/rules.js";
|
|
3
|
+
export { QUALITY_GATE_RUNNER_RULES_BY_ID };
|
|
4
|
+
export declare function createQualityGateRunnerCapability(): CapabilityDefinition;
|
|
5
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/capabilities/quality-gate-runner/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAQzE,OAAO,EAAE,+BAA+B,EAAE,CAAC;AAE3C,wBAAgB,iCAAiC,IAAI,oBAAoB,CAkCxE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { capabilityFailureReport, capabilityReport } from "../../capability-runtime.js";
|
|
2
|
+
import { FilesystemPackageScriptCatalogReader } from "./adapters/outbound/filesystem/filesystem-package-script-catalog-reader.js";
|
|
3
|
+
import { QUALITY_GATE_RUNNER_RULES_BY_ID } from "./application/rules.js";
|
|
4
|
+
import { analyzeQualityGateRunner } from "./application/use-cases/analyze-quality-gate-runner.js";
|
|
5
|
+
import { CAPABILITY_CONFIG_SCHEMA_VERSION, CAPABILITY_ID, loadQualityGatePolicy } from "./contract/config.js";
|
|
6
|
+
export { QUALITY_GATE_RUNNER_RULES_BY_ID };
|
|
7
|
+
export function createQualityGateRunnerCapability() {
|
|
8
|
+
const reader = new FilesystemPackageScriptCatalogReader();
|
|
9
|
+
return Object.freeze({
|
|
10
|
+
id: CAPABILITY_ID,
|
|
11
|
+
configSchemaVersion: CAPABILITY_CONFIG_SCHEMA_VERSION,
|
|
12
|
+
async run(invocation) {
|
|
13
|
+
try {
|
|
14
|
+
const policy = await loadQualityGatePolicy(invocation.consumerRoot, invocation.configPath, invocation.signal);
|
|
15
|
+
return capabilityReport({
|
|
16
|
+
capabilityId: CAPABILITY_ID,
|
|
17
|
+
capabilityConfigSchemaVersion: CAPABILITY_CONFIG_SCHEMA_VERSION,
|
|
18
|
+
diagnostics: await analyzeQualityGateRunner({
|
|
19
|
+
consumerRoot: invocation.consumerRoot,
|
|
20
|
+
policy,
|
|
21
|
+
...(invocation.signal === undefined ? {} : { signal: invocation.signal })
|
|
22
|
+
}, reader)
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
return capabilityFailureReport({
|
|
27
|
+
capabilityId: CAPABILITY_ID,
|
|
28
|
+
capabilityConfigSchemaVersion: CAPABILITY_CONFIG_SCHEMA_VERSION,
|
|
29
|
+
error,
|
|
30
|
+
phase: "quality-gate-runner-execution"
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/capabilities/quality-gate-runner/module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAGjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oCAAoC,EAAE,MAAM,4EAA4E,CAAC;AAClI,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAClG,OAAO,EACL,gCAAgC,EAChC,aAAa,EACb,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,+BAA+B,EAAE,CAAC;AAE3C,MAAM,UAAU,iCAAiC;IAC/C,MAAM,MAAM,GAAG,IAAI,oCAAoC,EAAE,CAAC;IAC1D,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,EAAE,EAAE,aAAa;QACjB,mBAAmB,EAAE,gCAAgC;QACrD,KAAK,CAAC,GAAG,CAAC,UAAgC;YACxC,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,qBAAqB,CACxC,UAAU,CAAC,YAAY,EACvB,UAAU,CAAC,UAAU,EACrB,UAAU,CAAC,MAAM,CAClB,CAAC;gBACF,OAAO,gBAAgB,CAAC;oBACtB,YAAY,EAAE,aAAa;oBAC3B,6BAA6B,EAAE,gCAAgC;oBAC/D,WAAW,EAAE,MAAM,wBAAwB,CACzC;wBACE,YAAY,EAAE,UAAU,CAAC,YAAY;wBACrC,MAAM;wBACN,GAAG,CAAC,UAAU,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC;qBAC1E,EACD,MAAM,CACP;iBACF,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,uBAAuB,CAAC;oBAC7B,YAAY,EAAE,aAAa;oBAC3B,6BAA6B,EAAE,gCAAgC;oBAC/D,KAAK;oBACL,KAAK,EAAE,+BAA+B;iBACvC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { AgentWorkflowChangedReport } from "../../../application/model/changed-workflow.js";
|
|
2
|
+
import type { EffectiveInstructionsReport } from "../../../application/model/effective-instructions.js";
|
|
2
3
|
export declare function renderAgentWorkflowReport(report: AgentWorkflowChangedReport): string;
|
|
4
|
+
export declare function renderEffectiveInstructionsReport(report: EffectiveInstructionsReport): string;
|
|
3
5
|
//# sourceMappingURL=report-renderer.d.ts.map
|
package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-renderer.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"report-renderer.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAExG,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM,CA6BpF;AAED,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,2BAA2B,GAClC,MAAM,CAiCR"}
|
|
@@ -4,6 +4,11 @@ export function renderAgentWorkflowReport(report) {
|
|
|
4
4
|
`Agent workflow: ${report.outcome}`,
|
|
5
5
|
`Coverage: ${report.coverage}`,
|
|
6
6
|
`Baseline: ${report.baselineRef}${report.baselineCommit === null ? "" : ` (${report.baselineCommit})`}`,
|
|
7
|
+
`Base: ${report.resolvedBaseRef}${report.baseCommit === null ? "" : ` (${report.baseCommit})`}`,
|
|
8
|
+
`Head: ${report.headRef}${report.headCommit === null ? "" : ` (${report.headCommit})`}`,
|
|
9
|
+
`Merge base: ${report.mergeBaseCommit ?? "none"}`,
|
|
10
|
+
`Scope digest: ${report.scopeDigest}`,
|
|
11
|
+
`Evidence groups: committed ${report.changeGroups.committed.paths.length}, staged ${report.changeGroups.staged.paths.length}, unstaged ${report.changeGroups.unstaged.paths.length}, untracked ${report.changeGroups.untracked.paths.length}`,
|
|
7
12
|
`Changed paths: ${report.changedPaths.length}`
|
|
8
13
|
];
|
|
9
14
|
if (report.changedPaths.length > 0) {
|
|
@@ -23,4 +28,31 @@ export function renderAgentWorkflowReport(report) {
|
|
|
23
28
|
}
|
|
24
29
|
return `${lines.join("\n")}\n`;
|
|
25
30
|
}
|
|
31
|
+
export function renderEffectiveInstructionsReport(report) {
|
|
32
|
+
const lines = [
|
|
33
|
+
`Effective instructions for ${report.target.path}`,
|
|
34
|
+
`Target directory: ${report.target.directory}`,
|
|
35
|
+
`Loaded: ${report.budget.loadedBytes}/${report.budget.maximumBytes} bytes`,
|
|
36
|
+
`Resolution digest: ${report.resolutionDigest}`
|
|
37
|
+
];
|
|
38
|
+
if (report.layers.length === 0) {
|
|
39
|
+
lines.push("Applicable instruction files: none");
|
|
40
|
+
}
|
|
41
|
+
for (const layer of report.layers) {
|
|
42
|
+
lines.push(`${layer.order}. ${layer.selectedPath} [${layer.status}]`, ` Scope: ${layer.scope}`, ` Size: ${layer.loadedBytes}/${layer.sourceBytes} bytes`, ` Source digest: ${layer.sourceDigest ?? "not read (budget exhausted)"}`, ` Loaded digest: ${layer.loadedDigest}`, " Why: first regular candidate in an ancestor directory of the target");
|
|
43
|
+
if (layer.canOverrideEarlier.length > 0) {
|
|
44
|
+
lines.push(` Can override earlier: ${layer.canOverrideEarlier.join(", ")}`);
|
|
45
|
+
}
|
|
46
|
+
for (const shadowed of layer.shadowed) {
|
|
47
|
+
lines.push(` Shadowed: ${shadowed.path} (higher-priority candidate selected)`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (report.budget.truncated) {
|
|
51
|
+
lines.push("Warning: the final applied instruction file was truncated by the byte budget.");
|
|
52
|
+
}
|
|
53
|
+
if (report.budget.exhausted) {
|
|
54
|
+
lines.push("Warning: later instruction layers may be excluded because the byte budget is exhausted.");
|
|
55
|
+
}
|
|
56
|
+
return `${lines.join("\n")}\n`;
|
|
57
|
+
}
|
|
26
58
|
//# sourceMappingURL=report-renderer.js.map
|
package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-renderer.js","sourceRoot":"","sources":["../../../../../../src/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"report-renderer.js","sourceRoot":"","sources":["../../../../../../src/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,yBAAyB,CAAC,MAAkC;IAC1E,MAAM,cAAc,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACxD,MAAM,KAAK,GAAG;QACZ,mBAAmB,MAAM,CAAC,OAAO,EAAE;QACnC,aAAa,MAAM,CAAC,QAAQ,EAAE;QAC9B,aAAa,MAAM,CAAC,WAAW,GAAG,MAAM,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAA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B,EAAE,EAC1E,qBAAqB,KAAK,CAAC,YAAY,EAAE,EACzC,wEAAwE,CACzE,CAAC;QACF,IAAI,KAAK,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxC,KAAK,CAAC,IAAI,CAAC,4BAA4B,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAChF,CAAC;QACD,KAAK,MAAM,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACtC,KAAK,CAAC,IAAI,CAAC,gBAAgB,QAAQ,CAAC,IAAI,uCAAuC,CAAC,CAAC;QACnF,CAAC;IACH,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QAC5B,KAAK,CAAC,IAAI,CAAC,+EAA+E,CAAC,CAAC;IAC9F,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QAC5B,KAAK,CAAC,IAAI,CAAC,yFAAyF,CAAC,CAAC;IACxG,CAAC;IACD,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { EffectiveInstructionDirectoryObservation, EffectiveInstructionDiscovery } from "../../../application/model/effective-instructions.js";
|
|
2
|
+
import type { EffectiveInstructionsReader } from "../../../application/ports/effective-instructions-reader.js";
|
|
3
|
+
export declare class FilesystemEffectiveInstructionsReader implements EffectiveInstructionsReader {
|
|
4
|
+
discover(input: {
|
|
5
|
+
readonly consumerRoot: string;
|
|
6
|
+
readonly targetPath: string;
|
|
7
|
+
readonly signal?: AbortSignal;
|
|
8
|
+
}): Promise<EffectiveInstructionDiscovery>;
|
|
9
|
+
readDirectory(input: {
|
|
10
|
+
readonly consumerRoot: string;
|
|
11
|
+
readonly directory: string;
|
|
12
|
+
readonly readSelectedBytes: boolean;
|
|
13
|
+
readonly signal?: AbortSignal;
|
|
14
|
+
}): Promise<EffectiveInstructionDirectoryObservation>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=filesystem-effective-instructions-reader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesystem-effective-instructions-reader.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/repository-agent-workflow/adapters/outbound/filesystem/filesystem-effective-instructions-reader.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAEV,wCAAwC,EACxC,6BAA6B,EAC9B,MAAM,sDAAsD,CAAC;AAE9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6DAA6D,CAAC;AAsM/G,qBAAa,qCAAsC,YAAW,2BAA2B;IACjF,QAAQ,CAAC,KAAK,EAAE;QACpB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;QAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;KAC/B,GAAG,OAAO,CAAC,6BAA6B,CAAC,CA0CzC;IAEK,aAAa,CAAC,KAAK,EAAE;QACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;QACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;KAC/B,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAqCpD;CACF"}
|