@dommaker/harness 1.15.0 → 2.0.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/CHANGELOG.md +28 -0
- package/bin/harness.js +6 -0
- package/dist/agents/lifecycle.d.ts.map +1 -1
- package/dist/agents/lifecycle.js +3 -6
- package/dist/agents/lifecycle.js.map +1 -1
- package/dist/cli/command-contract.d.ts +10 -13
- package/dist/cli/command-contract.d.ts.map +1 -1
- package/dist/cli/command-contract.js +6 -0
- package/dist/cli/command-contract.js.map +1 -1
- package/dist/cli/commands/acceptance.d.ts.map +1 -1
- package/dist/cli/commands/acceptance.js +8 -7
- package/dist/cli/commands/acceptance.js.map +1 -1
- package/dist/cli/commands/command.d.ts.map +1 -1
- package/dist/cli/commands/command.js +5 -5
- package/dist/cli/commands/command.js.map +1 -1
- package/dist/cli/commands/constraints-disable.d.ts +7 -11
- package/dist/cli/commands/constraints-disable.d.ts.map +1 -1
- package/dist/cli/commands/constraints-disable.js +8 -80
- package/dist/cli/commands/constraints-disable.js.map +1 -1
- package/dist/cli/commands/constraints-pack-proposal.d.ts +7 -20
- package/dist/cli/commands/constraints-pack-proposal.d.ts.map +1 -1
- package/dist/cli/commands/constraints-pack-proposal.js +21 -129
- package/dist/cli/commands/constraints-pack-proposal.js.map +1 -1
- package/dist/cli/commands/constraints-reactivate.d.ts +8 -20
- package/dist/cli/commands/constraints-reactivate.d.ts.map +1 -1
- package/dist/cli/commands/constraints-reactivate.js +11 -105
- package/dist/cli/commands/constraints-reactivate.js.map +1 -1
- package/dist/cli/commands/constraints-retire.d.ts +11 -67
- package/dist/cli/commands/constraints-retire.d.ts.map +1 -1
- package/dist/cli/commands/constraints-retire.js +20 -196
- package/dist/cli/commands/constraints-retire.js.map +1 -1
- package/dist/cli/commands/constraints.d.ts +6 -9
- package/dist/cli/commands/constraints.d.ts.map +1 -1
- package/dist/cli/commands/constraints.js +7 -21
- package/dist/cli/commands/constraints.js.map +1 -1
- package/dist/cli/commands/contract.d.ts.map +1 -1
- package/dist/cli/commands/contract.js +20 -10
- package/dist/cli/commands/contract.js.map +1 -1
- package/dist/cli/commands/definitions.d.ts.map +1 -1
- package/dist/cli/commands/definitions.js +13 -12
- package/dist/cli/commands/definitions.js.map +1 -1
- package/dist/cli/commands/init/ci-platform.d.ts +35 -0
- package/dist/cli/commands/init/ci-platform.d.ts.map +1 -0
- package/dist/cli/commands/init/ci-platform.js +59 -0
- package/dist/cli/commands/init/ci-platform.js.map +1 -0
- package/dist/cli/commands/init/ci-wiring.d.ts +20 -0
- package/dist/cli/commands/init/ci-wiring.d.ts.map +1 -0
- package/dist/cli/commands/init/ci-wiring.js +72 -0
- package/dist/cli/commands/init/ci-wiring.js.map +1 -0
- package/dist/cli/commands/init/git-hooks.d.ts +15 -0
- package/dist/cli/commands/init/git-hooks.d.ts.map +1 -0
- package/dist/{tools/paths.js → cli/commands/init/git-hooks.js} +25 -12
- package/dist/cli/commands/init/git-hooks.js.map +1 -0
- package/dist/cli/commands/init/governance.d.ts +14 -0
- package/dist/cli/commands/init/governance.d.ts.map +1 -0
- package/dist/cli/commands/init/governance.js +132 -0
- package/dist/cli/commands/init/governance.js.map +1 -0
- package/dist/cli/commands/{init.d.ts → init/index.d.ts} +13 -14
- package/dist/cli/commands/init/index.d.ts.map +1 -0
- package/dist/cli/commands/init/index.js +148 -0
- package/dist/cli/commands/init/index.js.map +1 -0
- package/dist/cli/commands/init/output-style.d.ts +19 -0
- package/dist/cli/commands/init/output-style.d.ts.map +1 -0
- package/dist/cli/commands/init/output-style.js +110 -0
- package/dist/cli/commands/init/output-style.js.map +1 -0
- package/dist/cli/commands/init/presets.d.ts +26 -0
- package/dist/cli/commands/init/presets.d.ts.map +1 -0
- package/dist/cli/commands/init/presets.js +104 -0
- package/dist/cli/commands/init/presets.js.map +1 -0
- package/dist/cli/commands/init/snippets.d.ts +18 -0
- package/dist/cli/commands/init/snippets.d.ts.map +1 -0
- package/dist/cli/commands/init/snippets.js +49 -0
- package/dist/cli/commands/init/snippets.js.map +1 -0
- package/dist/cli/commands/knowledge/audit.d.ts +30 -0
- package/dist/cli/commands/knowledge/audit.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/audit.js +114 -0
- package/dist/cli/commands/knowledge/audit.js.map +1 -0
- package/dist/cli/commands/knowledge/decay.d.ts +19 -0
- package/dist/cli/commands/knowledge/decay.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/decay.js +48 -0
- package/dist/cli/commands/knowledge/decay.js.map +1 -0
- package/dist/cli/commands/knowledge/health.d.ts +36 -0
- package/dist/cli/commands/knowledge/health.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/health.js +172 -0
- package/dist/cli/commands/knowledge/health.js.map +1 -0
- package/dist/cli/commands/knowledge/import.d.ts +26 -0
- package/dist/cli/commands/knowledge/import.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/import.js +63 -0
- package/dist/cli/commands/knowledge/import.js.map +1 -0
- package/dist/cli/commands/knowledge/index.d.ts +25 -0
- package/dist/cli/commands/knowledge/index.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/index.js +84 -0
- package/dist/cli/commands/knowledge/index.js.map +1 -0
- package/dist/cli/commands/knowledge/list.d.ts +25 -0
- package/dist/cli/commands/knowledge/list.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/list.js +60 -0
- package/dist/cli/commands/knowledge/list.js.map +1 -0
- package/dist/cli/commands/knowledge/migrate.d.ts +21 -0
- package/dist/cli/commands/knowledge/migrate.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/migrate.js +48 -0
- package/dist/cli/commands/knowledge/migrate.js.map +1 -0
- package/dist/cli/commands/knowledge/search.d.ts +32 -0
- package/dist/cli/commands/knowledge/search.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/search.js +73 -0
- package/dist/cli/commands/knowledge/search.js.map +1 -0
- package/dist/cli/commands/knowledge/shared.d.ts +14 -0
- package/dist/cli/commands/knowledge/shared.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/shared.js +6 -0
- package/dist/cli/commands/knowledge/shared.js.map +1 -0
- package/dist/cli/commands/knowledge/snapshot.d.ts +18 -0
- package/dist/cli/commands/knowledge/snapshot.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/snapshot.js +34 -0
- package/dist/cli/commands/knowledge/snapshot.js.map +1 -0
- package/dist/cli/commands/knowledge/stats.d.ts +26 -0
- package/dist/cli/commands/knowledge/stats.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/stats.js +132 -0
- package/dist/cli/commands/knowledge/stats.js.map +1 -0
- package/dist/cli/commands/knowledge/sync-rag.d.ts +19 -0
- package/dist/cli/commands/knowledge/sync-rag.d.ts.map +1 -0
- package/dist/cli/commands/knowledge/sync-rag.js +77 -0
- package/dist/cli/commands/knowledge/sync-rag.js.map +1 -0
- package/dist/cli/commands/knowledge-view.d.ts +2 -1
- package/dist/cli/commands/knowledge-view.d.ts.map +1 -1
- package/dist/cli/commands/knowledge-view.js +2 -2
- package/dist/cli/commands/knowledge-view.js.map +1 -1
- package/dist/cli/commands/passes-gate.d.ts.map +1 -1
- package/dist/cli/commands/passes-gate.js +12 -2
- package/dist/cli/commands/passes-gate.js.map +1 -1
- package/dist/cli/commands/performance.js.map +1 -1
- package/dist/cli/commands/release.d.ts +2 -2
- package/dist/cli/commands/release.d.ts.map +1 -1
- package/dist/cli/commands/release.js +15 -43
- package/dist/cli/commands/release.js.map +1 -1
- package/dist/cli/commands/review.d.ts.map +1 -1
- package/dist/cli/commands/review.js +3 -2
- package/dist/cli/commands/review.js.map +1 -1
- package/dist/cli/commands/scaffold-templates.d.ts +7 -0
- package/dist/cli/commands/scaffold-templates.d.ts.map +1 -1
- package/dist/cli/commands/scaffold-templates.js +21 -1
- package/dist/cli/commands/scaffold-templates.js.map +1 -1
- package/dist/cli/commands/security.d.ts.map +1 -1
- package/dist/cli/commands/security.js +7 -8
- package/dist/cli/commands/security.js.map +1 -1
- package/dist/cli/commands/spec-baseline-check.d.ts.map +1 -1
- package/dist/cli/commands/spec-baseline-check.js +6 -5
- package/dist/cli/commands/spec-baseline-check.js.map +1 -1
- package/dist/cli/commands/status.js +2 -2
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/sync-docs/agents-syncer.js +31 -55
- package/dist/cli/commands/sync-docs/agents-syncer.js.map +1 -1
- package/dist/cli/commands/sync-docs/capabilities-syncer.d.ts.map +1 -1
- package/dist/cli/commands/sync-docs/capabilities-syncer.js +18 -12
- package/dist/cli/commands/sync-docs/capabilities-syncer.js.map +1 -1
- package/dist/cli/commands/sync-docs/compact.d.ts +9 -0
- package/dist/cli/commands/sync-docs/compact.d.ts.map +1 -0
- package/dist/cli/commands/sync-docs/compact.js +73 -0
- package/dist/cli/commands/sync-docs/compact.js.map +1 -0
- package/dist/cli/commands/sync-docs/context-syncer.d.ts +13 -0
- package/dist/cli/commands/sync-docs/context-syncer.d.ts.map +1 -1
- package/dist/cli/commands/sync-docs/context-syncer.js +40 -29
- package/dist/cli/commands/sync-docs/context-syncer.js.map +1 -1
- package/dist/cli/commands/sync-docs/gate.d.ts +27 -0
- package/dist/cli/commands/sync-docs/gate.d.ts.map +1 -0
- package/dist/cli/commands/sync-docs/gate.js +72 -0
- package/dist/cli/commands/sync-docs/gate.js.map +1 -0
- package/dist/cli/commands/sync-docs/index.d.ts +13 -27
- package/dist/cli/commands/sync-docs/index.d.ts.map +1 -1
- package/dist/cli/commands/sync-docs/index.js +19 -503
- package/dist/cli/commands/sync-docs/index.js.map +1 -1
- package/dist/cli/commands/sync-docs/main-flow.d.ts +37 -0
- package/dist/cli/commands/sync-docs/main-flow.d.ts.map +1 -0
- package/dist/cli/commands/sync-docs/main-flow.js +485 -0
- package/dist/cli/commands/sync-docs/main-flow.js.map +1 -0
- package/dist/cli/commands/sync-docs/project-reader.d.ts +6 -1
- package/dist/cli/commands/sync-docs/project-reader.d.ts.map +1 -1
- package/dist/cli/commands/sync-docs/project-reader.js +16 -25
- package/dist/cli/commands/sync-docs/project-reader.js.map +1 -1
- package/dist/cli/commands/validate.d.ts.map +1 -1
- package/dist/cli/commands/validate.js +7 -0
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/gate-command.d.ts +1 -1
- package/dist/cli/gate-command.d.ts.map +1 -1
- package/dist/cli/gate-command.js +1 -1
- package/dist/cli/gate-command.js.map +1 -1
- package/dist/completion-checkers/glob-match.d.ts +1 -1
- package/dist/completion-checkers/glob-match.d.ts.map +1 -1
- package/dist/completion-checkers/glob-match.js +3 -38
- package/dist/completion-checkers/glob-match.js.map +1 -1
- package/dist/context/index.d.ts +2 -5
- package/dist/context/index.d.ts.map +1 -1
- package/dist/context/index.js +2 -9
- package/dist/context/index.js.map +1 -1
- package/dist/context/session-manager.d.ts +2 -8
- package/dist/context/session-manager.d.ts.map +1 -1
- package/dist/context/session-manager.js +31 -61
- package/dist/context/session-manager.js.map +1 -1
- package/dist/context/types.d.ts +2 -26
- package/dist/context/types.d.ts.map +1 -1
- package/dist/core/config-files.d.ts +21 -0
- package/dist/core/config-files.d.ts.map +1 -0
- package/dist/core/config-files.js +75 -0
- package/dist/core/config-files.js.map +1 -0
- package/dist/core/constraint-lifecycle.d.ts +127 -0
- package/dist/core/constraint-lifecycle.d.ts.map +1 -0
- package/dist/core/constraint-lifecycle.js +306 -0
- package/dist/core/constraint-lifecycle.js.map +1 -0
- package/dist/core/constraints/capabilities-parser.d.ts +2 -1
- package/dist/core/constraints/capabilities-parser.d.ts.map +1 -1
- package/dist/core/constraints/capabilities-parser.js +4 -6
- package/dist/core/constraints/capabilities-parser.js.map +1 -1
- package/dist/core/constraints/checker.d.ts +9 -1
- package/dist/core/constraints/checker.d.ts.map +1 -1
- package/dist/core/constraints/checker.js +18 -0
- package/dist/core/constraints/checker.js.map +1 -1
- package/dist/core/constraints/checkers/no-completion-without-verification.d.ts +6 -1
- package/dist/core/constraints/checkers/no-completion-without-verification.d.ts.map +1 -1
- package/dist/core/constraints/checkers/no-completion-without-verification.js +17 -1
- package/dist/core/constraints/checkers/no-completion-without-verification.js.map +1 -1
- package/dist/core/constraints/checkers/no-hardcoded-credentials.d.ts +0 -2
- package/dist/core/constraints/checkers/no-hardcoded-credentials.d.ts.map +1 -1
- package/dist/core/constraints/checkers/no-hardcoded-credentials.js +0 -5
- package/dist/core/constraints/checkers/no-hardcoded-credentials.js.map +1 -1
- package/dist/core/constraints/checkers/templated/exec.d.ts.map +1 -1
- package/dist/core/constraints/checkers/templated/exec.js +1 -0
- package/dist/core/constraints/checkers/templated/exec.js.map +1 -1
- package/dist/core/constraints/checkers/templated/file-exists.js +2 -2
- package/dist/core/constraints/checkers/templated/file-exists.js.map +1 -1
- package/dist/core/constraints/checkers/templated/glob.d.ts +2 -3
- package/dist/core/constraints/checkers/templated/glob.d.ts.map +1 -1
- package/dist/core/constraints/checkers/templated/glob.js +4 -40
- package/dist/core/constraints/checkers/templated/glob.js.map +1 -1
- package/dist/core/constraints/construction-sites.d.ts +56 -0
- package/dist/core/constraints/construction-sites.d.ts.map +1 -0
- package/dist/core/constraints/construction-sites.js +75 -0
- package/dist/core/constraints/construction-sites.js.map +1 -0
- package/dist/core/constraints/context-builder.d.ts.map +1 -1
- package/dist/core/constraints/context-builder.js +13 -34
- package/dist/core/constraints/context-builder.js.map +1 -1
- package/dist/core/constraints/definitions/guidelines.d.ts.map +1 -1
- package/dist/core/constraints/definitions/guidelines.js +18 -0
- package/dist/core/constraints/definitions/guidelines.js.map +1 -1
- package/dist/core/constraints/definitions/iron-laws.d.ts.map +1 -1
- package/dist/core/constraints/definitions/iron-laws.js +0 -16
- package/dist/core/constraints/definitions/iron-laws.js.map +1 -1
- package/dist/core/constraints/doc-freshness/runner.d.ts.map +1 -1
- package/dist/core/constraints/doc-freshness/runner.js +192 -221
- package/dist/core/constraints/doc-freshness/runner.js.map +1 -1
- package/dist/core/constraints/git-evidence.d.ts.map +1 -1
- package/dist/core/constraints/git-evidence.js +2 -0
- package/dist/core/constraints/git-evidence.js.map +1 -1
- package/dist/core/constraints/index.d.ts +0 -2
- package/dist/core/constraints/index.d.ts.map +1 -1
- package/dist/core/constraints/index.js +1 -4
- package/dist/core/constraints/index.js.map +1 -1
- package/dist/core/constraints/injection-writer.d.ts +1 -0
- package/dist/core/constraints/injection-writer.d.ts.map +1 -1
- package/dist/core/constraints/injection-writer.js +3 -6
- package/dist/core/constraints/injection-writer.js.map +1 -1
- package/dist/core/constraints/meta.d.ts +18 -0
- package/dist/core/constraints/meta.d.ts.map +1 -0
- package/dist/core/constraints/meta.js +31 -0
- package/dist/core/constraints/meta.js.map +1 -0
- package/dist/core/constraints/pack-proposal.d.ts +66 -0
- package/dist/core/constraints/pack-proposal.d.ts.map +1 -0
- package/dist/core/constraints/pack-proposal.js +181 -0
- package/dist/core/constraints/pack-proposal.js.map +1 -0
- package/dist/core/constraints/usage-report.d.ts +3 -1
- package/dist/core/constraints/usage-report.d.ts.map +1 -1
- package/dist/core/constraints/usage-report.js +3 -1
- package/dist/core/constraints/usage-report.js.map +1 -1
- package/dist/core/effective-constraints.d.ts +6 -6
- package/dist/core/effective-constraints.d.ts.map +1 -1
- package/dist/core/effective-constraints.js +6 -6
- package/dist/core/effective-constraints.js.map +1 -1
- package/dist/core/index.d.ts +3 -6
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -6
- package/dist/core/index.js.map +1 -1
- package/dist/core/project-config-loader.d.ts +3 -1
- package/dist/core/project-config-loader.d.ts.map +1 -1
- package/dist/core/project-config-loader.js +6 -6
- package/dist/core/project-config-loader.js.map +1 -1
- package/dist/core/spec/validator.d.ts +1 -1
- package/dist/core/spec/validator.d.ts.map +1 -1
- package/dist/core/spec/validator.js +41 -36
- package/dist/core/spec/validator.js.map +1 -1
- package/dist/core/validators/check-handlers/command.d.ts.map +1 -1
- package/dist/core/validators/check-handlers/command.js +49 -8
- package/dist/core/validators/check-handlers/command.js.map +1 -1
- package/dist/core/validators/check-handlers/http.d.ts.map +1 -1
- package/dist/core/validators/check-handlers/http.js +6 -4
- package/dist/core/validators/check-handlers/http.js.map +1 -1
- package/dist/core/validators/check-handlers/output.d.ts +1 -1
- package/dist/core/validators/check-handlers/output.d.ts.map +1 -1
- package/dist/core/validators/check-handlers/output.js +2 -1
- package/dist/core/validators/check-handlers/output.js.map +1 -1
- package/dist/core/validators/passes-gate.d.ts +2 -1
- package/dist/core/validators/passes-gate.d.ts.map +1 -1
- package/dist/core/validators/passes-gate.js +25 -30
- package/dist/core/validators/passes-gate.js.map +1 -1
- package/dist/gates/acceptance.d.ts +37 -18
- package/dist/gates/acceptance.d.ts.map +1 -1
- package/dist/gates/acceptance.js +129 -97
- package/dist/gates/acceptance.js.map +1 -1
- package/dist/gates/checker-gate.d.ts +2 -1
- package/dist/gates/checker-gate.d.ts.map +1 -1
- package/dist/gates/checker-gate.js +2 -1
- package/dist/gates/checker-gate.js.map +1 -1
- package/dist/gates/command.d.ts +3 -20
- package/dist/gates/command.d.ts.map +1 -1
- package/dist/gates/command.js +2 -35
- package/dist/gates/command.js.map +1 -1
- package/dist/gates/contract.d.ts +11 -2
- package/dist/gates/contract.d.ts.map +1 -1
- package/dist/gates/contract.js +57 -62
- package/dist/gates/contract.js.map +1 -1
- package/dist/gates/definitions.d.ts +1 -1
- package/dist/gates/definitions.d.ts.map +1 -1
- package/dist/gates/definitions.js +1 -1
- package/dist/gates/definitions.js.map +1 -1
- package/dist/gates/performance.d.ts +1 -1
- package/dist/gates/performance.d.ts.map +1 -1
- package/dist/gates/performance.js +18 -8
- package/dist/gates/performance.js.map +1 -1
- package/dist/gates/registry.d.ts.map +1 -1
- package/dist/gates/registry.js +7 -3
- package/dist/gates/registry.js.map +1 -1
- package/dist/gates/review.d.ts.map +1 -1
- package/dist/gates/review.js +16 -2
- package/dist/gates/review.js.map +1 -1
- package/dist/gates/security.d.ts +5 -1
- package/dist/gates/security.d.ts.map +1 -1
- package/dist/gates/security.js +57 -63
- package/dist/gates/security.js.map +1 -1
- package/dist/gates/types.d.ts +12 -72
- package/dist/gates/types.d.ts.map +1 -1
- package/dist/gates/types.js +5 -1
- package/dist/gates/types.js.map +1 -1
- package/dist/index.d.ts +23 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -65
- package/dist/index.js.map +1 -1
- package/dist/knowledge/audit-dimensions.d.ts +45 -0
- package/dist/knowledge/audit-dimensions.d.ts.map +1 -0
- package/dist/knowledge/audit-dimensions.js +144 -0
- package/dist/knowledge/audit-dimensions.js.map +1 -0
- package/dist/knowledge/audit-rules.d.ts +41 -0
- package/dist/knowledge/audit-rules.d.ts.map +1 -0
- package/dist/knowledge/audit-rules.js +269 -0
- package/dist/knowledge/audit-rules.js.map +1 -0
- package/dist/knowledge/audit-scoring.d.ts +6 -60
- package/dist/knowledge/audit-scoring.d.ts.map +1 -1
- package/dist/knowledge/audit-scoring.js +8 -391
- package/dist/knowledge/audit-scoring.js.map +1 -1
- package/dist/knowledge/audit.d.ts +6 -3
- package/dist/knowledge/audit.d.ts.map +1 -1
- package/dist/knowledge/audit.js +9 -6
- package/dist/knowledge/audit.js.map +1 -1
- package/dist/knowledge/import.d.ts.map +1 -1
- package/dist/knowledge/import.js +5 -4
- package/dist/knowledge/import.js.map +1 -1
- package/dist/knowledge/index-generator.d.ts +2 -0
- package/dist/knowledge/index-generator.d.ts.map +1 -1
- package/dist/knowledge/index-generator.js +43 -50
- package/dist/knowledge/index-generator.js.map +1 -1
- package/dist/knowledge/index.d.ts +5 -5
- package/dist/knowledge/index.d.ts.map +1 -1
- package/dist/knowledge/index.js +4 -5
- package/dist/knowledge/index.js.map +1 -1
- package/dist/knowledge/ingest.d.ts +21 -5
- package/dist/knowledge/ingest.d.ts.map +1 -1
- package/dist/knowledge/ingest.js +12 -9
- package/dist/knowledge/ingest.js.map +1 -1
- package/dist/knowledge/lifecycle.d.ts.map +1 -1
- package/dist/knowledge/lifecycle.js +17 -22
- package/dist/knowledge/lifecycle.js.map +1 -1
- package/dist/knowledge/query.d.ts +2 -2
- package/dist/knowledge/query.d.ts.map +1 -1
- package/dist/knowledge/query.js +19 -22
- package/dist/knowledge/query.js.map +1 -1
- package/dist/knowledge/reference-tracker.d.ts.map +1 -1
- package/dist/knowledge/reference-tracker.js +14 -17
- package/dist/knowledge/reference-tracker.js.map +1 -1
- package/dist/knowledge/store.d.ts.map +1 -1
- package/dist/knowledge/store.js +17 -36
- package/dist/knowledge/store.js.map +1 -1
- package/dist/knowledge/token-estimate.d.ts +14 -0
- package/dist/knowledge/token-estimate.d.ts.map +1 -0
- package/dist/knowledge/token-estimate.js +31 -0
- package/dist/knowledge/token-estimate.js.map +1 -0
- package/dist/monitoring/analyzer-base.d.ts +0 -8
- package/dist/monitoring/analyzer-base.d.ts.map +1 -1
- package/dist/monitoring/analyzer-base.js +0 -20
- package/dist/monitoring/analyzer-base.js.map +1 -1
- package/dist/monitoring/index.d.ts +2 -7
- package/dist/monitoring/index.d.ts.map +1 -1
- package/dist/monitoring/index.js +2 -9
- package/dist/monitoring/index.js.map +1 -1
- package/dist/monitoring/trace-analyzer.d.ts +2 -6
- package/dist/monitoring/trace-analyzer.d.ts.map +1 -1
- package/dist/monitoring/trace-analyzer.js +9 -16
- package/dist/monitoring/trace-analyzer.js.map +1 -1
- package/dist/monitoring/traces.d.ts +14 -10
- package/dist/monitoring/traces.d.ts.map +1 -1
- package/dist/monitoring/traces.js +47 -49
- package/dist/monitoring/traces.js.map +1 -1
- package/dist/pretool-use-hook.d.ts +1 -1
- package/dist/pretool-use-hook.d.ts.map +1 -1
- package/dist/pretool-use-hook.js +14 -21
- package/dist/pretool-use-hook.js.map +1 -1
- package/dist/release/integrity.d.ts.map +1 -1
- package/dist/release/integrity.js +8 -10
- package/dist/release/integrity.js.map +1 -1
- package/dist/sdd/index-generator.d.ts.map +1 -1
- package/dist/sdd/index-generator.js +4 -0
- package/dist/sdd/index-generator.js.map +1 -1
- package/dist/test-setup/jsonl-fake-fs.d.ts +1 -1
- package/dist/test-setup/jsonl-fake-fs.js +1 -1
- package/dist/types/checkpoint.d.ts +8 -8
- package/dist/types/checkpoint.d.ts.map +1 -1
- package/dist/types/command-io.d.ts +19 -0
- package/dist/types/command-io.d.ts.map +1 -0
- package/dist/types/command-io.js +3 -0
- package/dist/types/command-io.js.map +1 -0
- package/dist/types/gate.d.ts +72 -0
- package/dist/types/gate.d.ts.map +1 -0
- package/dist/types/gate.js +13 -0
- package/dist/types/gate.js.map +1 -0
- package/dist/utils/attempt.d.ts +22 -0
- package/dist/utils/attempt.d.ts.map +1 -0
- package/dist/utils/attempt.js +40 -0
- package/dist/utils/attempt.js.map +1 -0
- package/dist/utils/detect-source-roots.d.ts.map +1 -1
- package/dist/utils/detect-source-roots.js +42 -51
- package/dist/utils/detect-source-roots.js.map +1 -1
- package/dist/utils/file-walk.d.ts +2 -1
- package/dist/utils/file-walk.d.ts.map +1 -1
- package/dist/utils/file-walk.js +3 -8
- package/dist/utils/file-walk.js.map +1 -1
- package/dist/utils/glob-match.d.ts +10 -0
- package/dist/utils/glob-match.d.ts.map +1 -0
- package/dist/utils/glob-match.js +47 -0
- package/dist/utils/glob-match.js.map +1 -0
- package/dist/utils/jsonl.d.ts +1 -1
- package/dist/utils/jsonl.js +1 -1
- package/dist/utils/package-json.d.ts +49 -0
- package/dist/utils/package-json.d.ts.map +1 -0
- package/dist/utils/package-json.js +78 -0
- package/dist/utils/package-json.js.map +1 -0
- package/dist/utils/package-version.d.ts +5 -2
- package/dist/utils/package-version.d.ts.map +1 -1
- package/dist/utils/package-version.js +8 -11
- package/dist/utils/package-version.js.map +1 -1
- package/dist/utils/yaml-edit.d.ts +26 -0
- package/dist/utils/yaml-edit.d.ts.map +1 -0
- package/dist/utils/yaml-edit.js +98 -0
- package/dist/utils/yaml-edit.js.map +1 -0
- package/package.json +2 -7
- package/src/CONTEXT.md +14 -6
- package/src/__tests__/acceptance-gate.test.ts +25 -55
- package/src/__tests__/contract-gate.test.ts +1 -1
- package/src/__tests__/effective-constraints.test.ts +16 -0
- package/src/__tests__/install-precommit-hook.test.ts +61 -0
- package/src/__tests__/iron-laws.test.ts +5 -5
- package/src/__tests__/layering.test.ts +3 -4
- package/src/__tests__/no-studio-references.test.ts +13 -5
- package/src/__tests__/pretool-use-hook.test.ts +3 -3
- package/src/__tests__/public-exports.test.ts +196 -42
- package/src/__tests__/public-type-surface.test.ts +22 -72
- package/src/__tests__/public-value-surface.test.ts +7 -38
- package/src/__tests__/skip-semantics.test.ts +5 -4
- package/src/__tests__/trace-analyzer-extra.test.ts +1 -13
- package/src/agents/CONTEXT.md +4 -4
- package/src/agents/lifecycle.ts +3 -5
- package/src/cli/__tests__/command-contract.test.ts +18 -0
- package/src/cli/__tests__/gate-command.test.ts +1 -1
- package/src/cli/command-contract.ts +12 -9
- package/src/cli/commands/CONTEXT.md +13 -13
- package/src/cli/commands/__tests__/check.test.ts +1 -1
- package/src/cli/commands/__tests__/command.test.ts +2 -2
- package/src/cli/commands/__tests__/constraints-retire.test.ts +5 -3
- package/src/cli/commands/__tests__/init-governance-io.test.ts +7 -2
- package/src/cli/commands/__tests__/init.test.ts +1 -1
- package/src/cli/commands/__tests__/knowledge-audit-threshold.test.ts +14 -8
- package/src/cli/commands/__tests__/knowledge-flywheel-consistency.test.ts +2 -1
- package/src/cli/commands/__tests__/knowledge-view.test.ts +29 -19
- package/src/cli/commands/__tests__/knowledge.test.ts +6 -2
- package/src/cli/commands/__tests__/numeric-flag-assembly.test.ts +1 -1
- package/src/cli/commands/__tests__/passes-gate.test.ts +100 -24
- package/src/cli/commands/__tests__/project-path-anchoring.test.ts +3 -6
- package/src/cli/commands/__tests__/project-path-convention.test.ts +3 -35
- package/src/cli/commands/__tests__/registry.test.ts +3 -2
- package/src/cli/commands/__tests__/release.test.ts +24 -2
- package/src/cli/commands/__tests__/report-false-green.test.ts +10 -6
- package/src/cli/commands/__tests__/sync-docs-construction-sites.test.ts +175 -0
- package/src/cli/commands/__tests__/validate.test.ts +49 -0
- package/src/cli/commands/acceptance.ts +10 -9
- package/src/cli/commands/command.ts +2 -1
- package/src/cli/commands/constraints-disable.ts +8 -59
- package/src/cli/commands/constraints-pack-proposal.ts +26 -121
- package/src/cli/commands/constraints-reactivate.ts +22 -113
- package/src/cli/commands/constraints-retire.ts +32 -271
- package/src/cli/commands/constraints.ts +6 -30
- package/src/cli/commands/contract.ts +29 -14
- package/src/cli/commands/definitions.ts +13 -12
- package/src/cli/commands/init/ci-platform.ts +66 -0
- package/src/cli/commands/init/ci-wiring.ts +48 -0
- package/src/cli/commands/init/git-hooks.ts +31 -0
- package/src/cli/commands/init/governance.ts +127 -0
- package/src/cli/commands/init/index.ts +156 -0
- package/src/cli/commands/init/output-style.ts +82 -0
- package/src/cli/commands/init/presets.ts +105 -0
- package/src/cli/commands/init/snippets.ts +57 -0
- package/src/cli/commands/knowledge/audit.ts +155 -0
- package/src/cli/commands/knowledge/decay.ts +57 -0
- package/src/cli/commands/knowledge/health.ts +176 -0
- package/src/cli/commands/knowledge/import.ts +82 -0
- package/src/cli/commands/knowledge/index.ts +60 -0
- package/src/cli/commands/knowledge/list.ts +73 -0
- package/src/cli/commands/knowledge/migrate.ts +61 -0
- package/src/cli/commands/knowledge/search.ts +93 -0
- package/src/cli/commands/knowledge/shared.ts +13 -0
- package/src/cli/commands/knowledge/snapshot.ts +38 -0
- package/src/cli/commands/knowledge/stats.ts +112 -0
- package/src/cli/commands/knowledge/sync-rag.ts +48 -0
- package/src/cli/commands/knowledge-view.ts +3 -2
- package/src/cli/commands/passes-gate.ts +14 -2
- package/src/cli/commands/performance.ts +2 -2
- package/src/cli/commands/release.ts +16 -11
- package/src/cli/commands/review.ts +5 -4
- package/src/cli/commands/scaffold-templates.ts +23 -0
- package/src/cli/commands/security.ts +11 -12
- package/src/cli/commands/spec-baseline-check.ts +6 -7
- package/src/cli/commands/status.ts +2 -2
- package/src/cli/commands/sync-docs/__tests__/construction-site-count.test.ts +49 -0
- package/src/cli/commands/sync-docs/agents-syncer.ts +28 -47
- package/src/cli/commands/sync-docs/capabilities-syncer.ts +18 -11
- package/src/cli/commands/sync-docs/compact.ts +35 -0
- package/src/cli/commands/sync-docs/context-syncer.ts +52 -26
- package/src/cli/commands/sync-docs/gate.ts +78 -0
- package/src/cli/commands/sync-docs/index.ts +21 -549
- package/src/cli/commands/sync-docs/main-flow.ts +549 -0
- package/src/cli/commands/sync-docs/project-reader.ts +26 -24
- package/src/cli/commands/validate.ts +7 -0
- package/src/cli/gate-command.ts +2 -2
- package/src/completion-checkers/CONTEXT.md +3 -3
- package/src/completion-checkers/glob-match.ts +3 -35
- package/src/context/CONTEXT.md +7 -10
- package/src/context/__tests__/session-manager.test.ts +18 -7
- package/src/context/index.ts +1 -9
- package/src/context/session-manager.ts +34 -60
- package/src/context/types.ts +2 -22
- package/src/core/CONTEXT.md +10 -5
- package/src/core/__tests__/config-files.test.ts +88 -0
- package/src/core/__tests__/constraint-lifecycle.test.ts +255 -0
- package/src/core/__tests__/constraints-meta.test.ts +26 -0
- package/src/core/__tests__/pack-proposal.test.ts +95 -0
- package/src/core/config-files.ts +39 -0
- package/src/core/constraint-lifecycle.ts +435 -0
- package/src/core/constraints/__tests__/check-cache.test.ts +0 -7
- package/src/core/constraints/__tests__/collect-constraints.test.ts +25 -0
- package/src/core/constraints/__tests__/construction-sites.test.ts +147 -0
- package/src/core/constraints/__tests__/context-reconcile.test.ts +16 -16
- package/src/core/constraints/__tests__/trace-injection.test.ts +14 -15
- package/src/core/constraints/__tests__/usage-report.test.ts +9 -0
- package/src/core/constraints/capabilities-parser.ts +4 -6
- package/src/core/constraints/checker.ts +20 -1
- package/src/core/constraints/checkers/__tests__/no-completion-without-verification.test.ts +22 -3
- package/src/core/constraints/checkers/__tests__/no-hardcoded-credentials.test.ts +56 -41
- package/src/core/constraints/checkers/no-completion-without-verification.ts +16 -1
- package/src/core/constraints/checkers/no-hardcoded-credentials.ts +0 -5
- package/src/core/constraints/checkers/templated/exec.ts +1 -0
- package/src/core/constraints/checkers/templated/file-exists.ts +2 -2
- package/src/core/constraints/checkers/templated/glob.ts +3 -36
- package/src/core/constraints/construction-sites.ts +95 -0
- package/src/core/constraints/context-builder.ts +11 -28
- package/src/core/constraints/definitions/guidelines.ts +19 -0
- package/src/core/constraints/definitions/iron-laws.ts +0 -17
- package/src/core/constraints/doc-freshness/runner.ts +221 -242
- package/src/core/constraints/git-evidence.ts +2 -0
- package/src/core/constraints/index.ts +0 -4
- package/src/core/constraints/injection-writer.ts +3 -6
- package/src/core/constraints/meta.ts +40 -0
- package/src/core/constraints/pack-proposal.ts +179 -0
- package/src/core/constraints/usage-report.ts +3 -1
- package/src/core/effective-constraints.ts +6 -6
- package/src/core/index.ts +0 -15
- package/src/core/project-config-loader.ts +6 -5
- package/src/core/spec/__tests__/validator.test.ts +65 -13
- package/src/core/spec/validator.ts +50 -40
- package/src/core/validators/__tests__/command-success-output.test.ts +56 -0
- package/src/core/validators/__tests__/passes-gate-counts.test.ts +52 -0
- package/src/core/validators/check-handlers/command.ts +53 -10
- package/src/core/validators/check-handlers/http.ts +8 -6
- package/src/core/validators/check-handlers/output.ts +7 -6
- package/src/core/validators/passes-gate.ts +31 -32
- package/src/gates/CONTEXT.md +22 -14
- package/src/gates/__tests__/acceptance-types-single-source.test.ts +22 -19
- package/src/gates/__tests__/acceptance.test.ts +72 -99
- package/src/gates/__tests__/command-single-predicate.test.ts +1 -1
- package/src/gates/__tests__/command.test.ts +24 -25
- package/src/gates/__tests__/decision.test.ts +35 -0
- package/src/gates/__tests__/gate-interface.test.ts +2 -5
- package/src/gates/__tests__/performance.test.ts +3 -3
- package/src/gates/__tests__/security.test.ts +7 -19
- package/src/gates/acceptance.ts +176 -131
- package/src/gates/checker-gate.ts +2 -1
- package/src/gates/command.ts +4 -38
- package/src/gates/contract.ts +86 -79
- package/src/gates/definitions.ts +2 -2
- package/src/gates/performance.ts +35 -19
- package/src/gates/registry.ts +7 -4
- package/src/gates/review.ts +38 -10
- package/src/gates/security.ts +94 -81
- package/src/gates/types.ts +23 -77
- package/src/hooks/CONTEXT.md +1 -1
- package/src/index.ts +57 -98
- package/src/knowledge/CONTEXT.md +14 -10
- package/src/knowledge/__tests__/audit-labels.test.ts +3 -3
- package/src/knowledge/__tests__/audit-scoring.test.ts +9 -7
- package/src/knowledge/__tests__/ingest.test.ts +17 -17
- package/src/knowledge/__tests__/store.test.ts +4 -6
- package/src/knowledge/__tests__/token-estimate.test.ts +54 -0
- package/src/knowledge/audit-dimensions.ts +190 -0
- package/src/knowledge/audit-rules.ts +335 -0
- package/src/knowledge/audit-scoring.ts +7 -495
- package/src/knowledge/audit.ts +9 -11
- package/src/knowledge/import.ts +7 -6
- package/src/knowledge/index-generator.ts +48 -53
- package/src/knowledge/index.ts +5 -5
- package/src/knowledge/ingest.ts +27 -12
- package/src/knowledge/lifecycle.ts +17 -19
- package/src/knowledge/query.ts +20 -20
- package/src/knowledge/reference-tracker.ts +14 -16
- package/src/knowledge/store.ts +17 -32
- package/src/knowledge/token-estimate.ts +27 -0
- package/src/monitoring/CONTEXT.md +6 -8
- package/src/monitoring/__tests__/prune-trace-logs.test.ts +76 -0
- package/src/monitoring/__tests__/traces.test.ts +1 -17
- package/src/monitoring/analyzer-base.ts +0 -18
- package/src/monitoring/index.ts +2 -7
- package/src/monitoring/trace-analyzer.ts +12 -17
- package/src/monitoring/traces.ts +59 -57
- package/src/pretool-use-hook.ts +28 -23
- package/src/release/CONTEXT.md +2 -2
- package/src/release/__tests__/integrity.test.ts +3 -7
- package/src/release/integrity.ts +8 -11
- package/src/sdd/index-generator.ts +4 -0
- package/src/test-setup/jsonl-fake-fs.ts +1 -1
- package/src/types/checkpoint.ts +8 -8
- package/src/types/command-io.ts +14 -0
- package/src/types/gate.ts +77 -0
- package/src/utils/__tests__/attempt.test.ts +94 -0
- package/src/utils/__tests__/glob-match.test.ts +52 -0
- package/src/utils/__tests__/jsonl-skip-disposition.test.ts +0 -1
- package/src/utils/__tests__/package-json.test.ts +58 -0
- package/src/utils/__tests__/package-version.test.ts +21 -2
- package/src/utils/__tests__/yaml-edit.test.ts +62 -0
- package/src/utils/attempt.ts +35 -0
- package/src/utils/detect-source-roots.ts +38 -44
- package/src/utils/file-walk.ts +3 -7
- package/src/utils/glob-match.ts +41 -0
- package/src/utils/jsonl.ts +1 -1
- package/src/utils/package-json.ts +61 -0
- package/src/utils/package-version.ts +8 -10
- package/src/utils/yaml-edit.ts +67 -0
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -517
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/knowledge.d.ts +0 -169
- package/dist/cli/commands/knowledge.d.ts.map +0 -1
- package/dist/cli/commands/knowledge.js +0 -700
- package/dist/cli/commands/knowledge.js.map +0 -1
- package/dist/context/knowledge-injector.d.ts +0 -51
- package/dist/context/knowledge-injector.d.ts.map +0 -1
- package/dist/context/knowledge-injector.js +0 -129
- package/dist/context/knowledge-injector.js.map +0 -1
- package/dist/context/token-budget.d.ts +0 -115
- package/dist/context/token-budget.d.ts.map +0 -1
- package/dist/context/token-budget.js +0 -200
- package/dist/context/token-budget.js.map +0 -1
- package/dist/gates/index.d.ts +0 -44
- package/dist/gates/index.d.ts.map +0 -1
- package/dist/gates/index.js +0 -85
- package/dist/gates/index.js.map +0 -1
- package/dist/gates/runner.d.ts +0 -30
- package/dist/gates/runner.d.ts.map +0 -1
- package/dist/gates/runner.js +0 -38
- package/dist/gates/runner.js.map +0 -1
- package/dist/knowledge/primitives/code-structure.d.ts +0 -37
- package/dist/knowledge/primitives/code-structure.d.ts.map +0 -1
- package/dist/knowledge/primitives/code-structure.js +0 -185
- package/dist/knowledge/primitives/code-structure.js.map +0 -1
- package/dist/monitoring/context-tracker.d.ts +0 -38
- package/dist/monitoring/context-tracker.d.ts.map +0 -1
- package/dist/monitoring/context-tracker.js +0 -153
- package/dist/monitoring/context-tracker.js.map +0 -1
- package/dist/tools/definitions/core/code/fingerprint.sh +0 -273
- package/dist/tools/definitions/core/code/fingerprint.yml +0 -72
- package/dist/tools/definitions/core/code/parse.yml +0 -68
- package/dist/tools/definitions/core/code/register-language.sh +0 -475
- package/dist/tools/definitions/core/code/register-language.yml +0 -74
- package/dist/tools/definitions/core/docker/build.yml +0 -73
- package/dist/tools/definitions/core/docker/run.yml +0 -81
- package/dist/tools/definitions/core/file/copy.yml +0 -88
- package/dist/tools/definitions/core/file/read.yml +0 -69
- package/dist/tools/definitions/core/file/write.yml +0 -75
- package/dist/tools/definitions/core/git/branch.yml +0 -61
- package/dist/tools/definitions/core/git/cleanup-worktree.yml +0 -50
- package/dist/tools/definitions/core/git/clone.yml +0 -69
- package/dist/tools/definitions/core/git/commit.yml +0 -65
- package/dist/tools/definitions/core/git/push.yml +0 -79
- package/dist/tools/definitions/core/git/worktree.yml +0 -96
- package/dist/tools/definitions/core/notification/notify.sh +0 -152
- package/dist/tools/definitions/core/notification/notify.yml +0 -59
- package/dist/tools/definitions/core/npm/build.yml +0 -75
- package/dist/tools/definitions/core/npm/install.yml +0 -58
- package/dist/tools/definitions/core/npm/test.yml +0 -75
- package/dist/tools/definitions/core/validation/check-reuse.yml +0 -170
- package/dist/tools/definitions/core/validation/validate-handlers.yml +0 -118
- package/dist/tools/definitions/core/validation/validate-readme-stats.yml +0 -155
- package/dist/tools/definitions/core/validation/validate-yaml-syntax.yml +0 -134
- package/dist/tools/definitions/ext/browser/browser-automate.sh +0 -255
- package/dist/tools/definitions/ext/browser/browser-automate.yml +0 -166
- package/dist/tools/definitions/ext/browser/browser-close.sh +0 -104
- package/dist/tools/definitions/ext/browser/browser-close.yml +0 -54
- package/dist/tools/definitions/ext/browser/browser-mcp-debug.sh +0 -682
- package/dist/tools/definitions/ext/browser/browser-mcp-debug.yml +0 -167
- package/dist/tools/definitions/ext/browser/browser-start.sh +0 -101
- package/dist/tools/definitions/ext/browser/browser-start.yml +0 -61
- package/dist/tools/definitions/registry.json +0 -795
- package/dist/tools/definitions/std/README.md +0 -350
- package/dist/tools/definitions/std/analysis/analyze-codebase.yml +0 -72
- package/dist/tools/definitions/std/analysis/analyze-diff.yml +0 -182
- package/dist/tools/definitions/std/analysis/analyze-git-diff.yml +0 -70
- package/dist/tools/definitions/std/analysis/analyze-impact.yml +0 -78
- package/dist/tools/definitions/std/analysis/analyze-requirements.yml +0 -105
- package/dist/tools/definitions/std/analysis/brainstorm-options.yml +0 -106
- package/dist/tools/definitions/std/analysis/build-graph.yml +0 -154
- package/dist/tools/definitions/std/analysis/clarify-requirements.yml +0 -90
- package/dist/tools/definitions/std/analysis/detect-context.yml +0 -109
- package/dist/tools/definitions/std/analysis/detect-layers.yml +0 -125
- package/dist/tools/definitions/std/analysis/generate-tour.yml +0 -102
- package/dist/tools/definitions/std/analysis/search-enhance.yml +0 -105
- package/dist/tools/definitions/std/backlog/add.yml +0 -51
- package/dist/tools/definitions/std/backlog/decide.yml +0 -39
- package/dist/tools/definitions/std/backlog/github-sync.yml +0 -161
- package/dist/tools/definitions/std/backlog/list.yml +0 -53
- package/dist/tools/definitions/std/backlog/load.yml +0 -46
- package/dist/tools/definitions/std/backlog/resolve.yml +0 -37
- package/dist/tools/definitions/std/backlog/update.yml +0 -42
- package/dist/tools/definitions/std/bugfix/diagnose.yml +0 -68
- package/dist/tools/definitions/std/bugfix/fix.yml +0 -66
- package/dist/tools/definitions/std/bugfix/verify.yml +0 -69
- package/dist/tools/definitions/std/constraint/check-decomposition.yml +0 -103
- package/dist/tools/definitions/std/constraint/check-feature-list.yml +0 -77
- package/dist/tools/definitions/std/constraint/check-progress.yml +0 -97
- package/dist/tools/definitions/std/constraint/generate-report.yml +0 -147
- package/dist/tools/definitions/std/deploy/commit-push.yml +0 -33
- package/dist/tools/definitions/std/deploy/deploy-backend.yml +0 -37
- package/dist/tools/definitions/std/deploy/deploy-frontend.yml +0 -37
- package/dist/tools/definitions/std/deploy/rollback.yml +0 -148
- package/dist/tools/definitions/std/design/analyze-architecture-impact.yml +0 -113
- package/dist/tools/definitions/std/design/design-api.yml +0 -55
- package/dist/tools/definitions/std/design/design-architecture.yml +0 -97
- package/dist/tools/definitions/std/design/design-db.yml +0 -81
- package/dist/tools/definitions/std/design/generate-spec.yml +0 -182
- package/dist/tools/definitions/std/development/develop-api.yml +0 -85
- package/dist/tools/definitions/std/development/develop-backend.yml +0 -88
- package/dist/tools/definitions/std/development/develop-frontend.yml +0 -87
- package/dist/tools/definitions/std/development/develop-shared-types.yml +0 -74
- package/dist/tools/definitions/std/development/develop-task.yml +0 -122
- package/dist/tools/definitions/std/development/develop-tests.yml +0 -76
- package/dist/tools/definitions/std/development/execute-batch.yml +0 -152
- package/dist/tools/definitions/std/development/fix-issues.yml +0 -100
- package/dist/tools/definitions/std/development/implement-task.yml +0 -124
- package/dist/tools/definitions/std/development/review-fix-cycle.yml +0 -232
- package/dist/tools/definitions/std/evolution/implement.yml +0 -124
- package/dist/tools/definitions/std/evolution/prioritize.yml +0 -111
- package/dist/tools/definitions/std/evolution/report-gap.yml +0 -165
- package/dist/tools/definitions/std/file/read.yml +0 -21
- package/dist/tools/definitions/std/governance/aggregate-opinions.sh +0 -201
- package/dist/tools/definitions/std/governance/aggregate-opinions.yml +0 -78
- package/dist/tools/definitions/std/governance/audit-task.yml +0 -177
- package/dist/tools/definitions/std/governance/cast-vote.yml +0 -128
- package/dist/tools/definitions/std/governance/collect-issues.yml +0 -16
- package/dist/tools/definitions/std/governance/create-signed-document.yml +0 -23
- package/dist/tools/definitions/std/governance/create-voting-session.yml +0 -100
- package/dist/tools/definitions/std/governance/define-stance.sh +0 -243
- package/dist/tools/definitions/std/governance/define-stance.yml +0 -81
- package/dist/tools/definitions/std/governance/generate-review-report.yml +0 -23
- package/dist/tools/definitions/std/governance/impeach.yml +0 -178
- package/dist/tools/definitions/std/governance/multi-stance-review.yml +0 -153
- package/dist/tools/definitions/std/governance/prepare-artifact.yml +0 -20
- package/dist/tools/definitions/std/governance/review-spec-approval.yml +0 -262
- package/dist/tools/definitions/std/governance/rollback.yml +0 -185
- package/dist/tools/definitions/std/governance/stance-review.yml +0 -148
- package/dist/tools/definitions/std/governance/track-effect.yml +0 -198
- package/dist/tools/definitions/std/governance/vote-tally.yml +0 -143
- package/dist/tools/definitions/std/patch/execute.yml +0 -51
- package/dist/tools/definitions/std/planning/generate-tasks.yml +0 -36
- package/dist/tools/definitions/std/planning/load-tasks.yml +0 -44
- package/dist/tools/definitions/std/planning/split-batch.yml +0 -480
- package/dist/tools/definitions/std/planning/split-tasks.yml +0 -358
- package/dist/tools/definitions/std/planning/update-tasks.yml +0 -51
- package/dist/tools/definitions/std/planning/validate-tasks.yml +0 -46
- package/dist/tools/definitions/std/project/decide-next-workflow.yml +0 -38
- package/dist/tools/definitions/std/project/load-state.yml +0 -31
- package/dist/tools/definitions/std/project/save-state.yml +0 -32
- package/dist/tools/definitions/std/quality/check-quality.yml +0 -241
- package/dist/tools/definitions/std/quality/debug-systematic.yml +0 -163
- package/dist/tools/definitions/std/quality/handle-feedback.yml +0 -108
- package/dist/tools/definitions/std/quality/review-code.yml +0 -128
- package/dist/tools/definitions/std/quality/review-spec.yml +0 -140
- package/dist/tools/definitions/std/quality/review-task.yml +0 -190
- package/dist/tools/definitions/std/quality/run-tests.yml +0 -80
- package/dist/tools/definitions/std/quick/analyze.yml +0 -56
- package/dist/tools/definitions/std/quick/implement.yml +0 -67
- package/dist/tools/definitions/std/quick/verify.yml +0 -71
- package/dist/tools/definitions/std/verification/verify_completion.yml +0 -113
- package/dist/tools/definitions/std/verification/wait-condition.yml +0 -107
- package/dist/tools/index.d.ts +0 -5
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -10
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/paths.d.ts +0 -9
- package/dist/tools/paths.d.ts.map +0 -1
- package/dist/tools/paths.js.map +0 -1
- package/src/__tests__/token-budget.test.ts +0 -252
- package/src/cli/commands/init.ts +0 -604
- package/src/cli/commands/knowledge.ts +0 -820
- package/src/context/__tests__/knowledge-injector.test.ts +0 -178
- package/src/context/__tests__/token-budget.test.ts +0 -258
- package/src/context/knowledge-injector.ts +0 -175
- package/src/context/token-budget.ts +0 -222
- package/src/gates/__tests__/runner.test.ts +0 -81
- package/src/gates/index.ts +0 -98
- package/src/gates/runner.ts +0 -57
- package/src/knowledge/primitives/__tests__/code-structure-degrade.test.ts +0 -24
- package/src/knowledge/primitives/__tests__/code-structure.test.ts +0 -120
- package/src/knowledge/primitives/code-structure.ts +0 -185
- package/src/monitoring/__tests__/context-tracker.test.ts +0 -180
- package/src/monitoring/context-tracker.ts +0 -136
- package/src/tools/CONTEXT.md +0 -24
- package/src/tools/__tests__/registry.test.ts +0 -221
- package/src/tools/definitions/core/code/fingerprint.sh +0 -273
- package/src/tools/definitions/core/code/fingerprint.yml +0 -72
- package/src/tools/definitions/core/code/parse.yml +0 -68
- package/src/tools/definitions/core/code/register-language.sh +0 -475
- package/src/tools/definitions/core/code/register-language.yml +0 -74
- package/src/tools/definitions/core/docker/build.yml +0 -73
- package/src/tools/definitions/core/docker/run.yml +0 -81
- package/src/tools/definitions/core/file/copy.yml +0 -88
- package/src/tools/definitions/core/file/read.yml +0 -69
- package/src/tools/definitions/core/file/write.yml +0 -75
- package/src/tools/definitions/core/git/branch.yml +0 -61
- package/src/tools/definitions/core/git/cleanup-worktree.yml +0 -50
- package/src/tools/definitions/core/git/clone.yml +0 -69
- package/src/tools/definitions/core/git/commit.yml +0 -65
- package/src/tools/definitions/core/git/push.yml +0 -79
- package/src/tools/definitions/core/git/worktree.yml +0 -96
- package/src/tools/definitions/core/notification/notify.sh +0 -152
- package/src/tools/definitions/core/notification/notify.yml +0 -59
- package/src/tools/definitions/core/npm/build.yml +0 -75
- package/src/tools/definitions/core/npm/install.yml +0 -58
- package/src/tools/definitions/core/npm/test.yml +0 -75
- package/src/tools/definitions/core/validation/check-reuse.yml +0 -170
- package/src/tools/definitions/core/validation/validate-handlers.yml +0 -118
- package/src/tools/definitions/core/validation/validate-readme-stats.yml +0 -155
- package/src/tools/definitions/core/validation/validate-yaml-syntax.yml +0 -134
- package/src/tools/definitions/ext/browser/browser-automate.sh +0 -255
- package/src/tools/definitions/ext/browser/browser-automate.yml +0 -166
- package/src/tools/definitions/ext/browser/browser-close.sh +0 -104
- package/src/tools/definitions/ext/browser/browser-close.yml +0 -54
- package/src/tools/definitions/ext/browser/browser-mcp-debug.sh +0 -682
- package/src/tools/definitions/ext/browser/browser-mcp-debug.yml +0 -167
- package/src/tools/definitions/ext/browser/browser-start.sh +0 -101
- package/src/tools/definitions/ext/browser/browser-start.yml +0 -61
- package/src/tools/definitions/registry.json +0 -795
- package/src/tools/definitions/std/README.md +0 -350
- package/src/tools/definitions/std/analysis/analyze-codebase.yml +0 -72
- package/src/tools/definitions/std/analysis/analyze-diff.yml +0 -182
- package/src/tools/definitions/std/analysis/analyze-git-diff.yml +0 -70
- package/src/tools/definitions/std/analysis/analyze-impact.yml +0 -78
- package/src/tools/definitions/std/analysis/analyze-requirements.yml +0 -105
- package/src/tools/definitions/std/analysis/brainstorm-options.yml +0 -106
- package/src/tools/definitions/std/analysis/build-graph.yml +0 -154
- package/src/tools/definitions/std/analysis/clarify-requirements.yml +0 -90
- package/src/tools/definitions/std/analysis/detect-context.yml +0 -109
- package/src/tools/definitions/std/analysis/detect-layers.yml +0 -125
- package/src/tools/definitions/std/analysis/generate-tour.yml +0 -102
- package/src/tools/definitions/std/analysis/search-enhance.yml +0 -105
- package/src/tools/definitions/std/backlog/add.yml +0 -51
- package/src/tools/definitions/std/backlog/decide.yml +0 -39
- package/src/tools/definitions/std/backlog/github-sync.yml +0 -161
- package/src/tools/definitions/std/backlog/list.yml +0 -53
- package/src/tools/definitions/std/backlog/load.yml +0 -46
- package/src/tools/definitions/std/backlog/resolve.yml +0 -37
- package/src/tools/definitions/std/backlog/update.yml +0 -42
- package/src/tools/definitions/std/bugfix/diagnose.yml +0 -68
- package/src/tools/definitions/std/bugfix/fix.yml +0 -66
- package/src/tools/definitions/std/bugfix/verify.yml +0 -69
- package/src/tools/definitions/std/constraint/check-decomposition.yml +0 -103
- package/src/tools/definitions/std/constraint/check-feature-list.yml +0 -77
- package/src/tools/definitions/std/constraint/check-progress.yml +0 -97
- package/src/tools/definitions/std/constraint/generate-report.yml +0 -147
- package/src/tools/definitions/std/deploy/commit-push.yml +0 -33
- package/src/tools/definitions/std/deploy/deploy-backend.yml +0 -37
- package/src/tools/definitions/std/deploy/deploy-frontend.yml +0 -37
- package/src/tools/definitions/std/deploy/rollback.yml +0 -148
- package/src/tools/definitions/std/design/analyze-architecture-impact.yml +0 -113
- package/src/tools/definitions/std/design/design-api.yml +0 -55
- package/src/tools/definitions/std/design/design-architecture.yml +0 -97
- package/src/tools/definitions/std/design/design-db.yml +0 -81
- package/src/tools/definitions/std/design/generate-spec.yml +0 -182
- package/src/tools/definitions/std/development/develop-api.yml +0 -85
- package/src/tools/definitions/std/development/develop-backend.yml +0 -88
- package/src/tools/definitions/std/development/develop-frontend.yml +0 -87
- package/src/tools/definitions/std/development/develop-shared-types.yml +0 -74
- package/src/tools/definitions/std/development/develop-task.yml +0 -122
- package/src/tools/definitions/std/development/develop-tests.yml +0 -76
- package/src/tools/definitions/std/development/execute-batch.yml +0 -152
- package/src/tools/definitions/std/development/fix-issues.yml +0 -100
- package/src/tools/definitions/std/development/implement-task.yml +0 -124
- package/src/tools/definitions/std/development/review-fix-cycle.yml +0 -232
- package/src/tools/definitions/std/evolution/implement.yml +0 -124
- package/src/tools/definitions/std/evolution/prioritize.yml +0 -111
- package/src/tools/definitions/std/evolution/report-gap.yml +0 -165
- package/src/tools/definitions/std/file/read.yml +0 -21
- package/src/tools/definitions/std/governance/aggregate-opinions.sh +0 -201
- package/src/tools/definitions/std/governance/aggregate-opinions.yml +0 -78
- package/src/tools/definitions/std/governance/audit-task.yml +0 -177
- package/src/tools/definitions/std/governance/cast-vote.yml +0 -128
- package/src/tools/definitions/std/governance/collect-issues.yml +0 -16
- package/src/tools/definitions/std/governance/create-signed-document.yml +0 -23
- package/src/tools/definitions/std/governance/create-voting-session.yml +0 -100
- package/src/tools/definitions/std/governance/define-stance.sh +0 -243
- package/src/tools/definitions/std/governance/define-stance.yml +0 -81
- package/src/tools/definitions/std/governance/generate-review-report.yml +0 -23
- package/src/tools/definitions/std/governance/impeach.yml +0 -178
- package/src/tools/definitions/std/governance/multi-stance-review.yml +0 -153
- package/src/tools/definitions/std/governance/prepare-artifact.yml +0 -20
- package/src/tools/definitions/std/governance/review-spec-approval.yml +0 -262
- package/src/tools/definitions/std/governance/rollback.yml +0 -185
- package/src/tools/definitions/std/governance/stance-review.yml +0 -148
- package/src/tools/definitions/std/governance/track-effect.yml +0 -198
- package/src/tools/definitions/std/governance/vote-tally.yml +0 -143
- package/src/tools/definitions/std/patch/execute.yml +0 -51
- package/src/tools/definitions/std/planning/generate-tasks.yml +0 -36
- package/src/tools/definitions/std/planning/load-tasks.yml +0 -44
- package/src/tools/definitions/std/planning/split-batch.yml +0 -480
- package/src/tools/definitions/std/planning/split-tasks.yml +0 -358
- package/src/tools/definitions/std/planning/update-tasks.yml +0 -51
- package/src/tools/definitions/std/planning/validate-tasks.yml +0 -46
- package/src/tools/definitions/std/project/decide-next-workflow.yml +0 -38
- package/src/tools/definitions/std/project/load-state.yml +0 -31
- package/src/tools/definitions/std/project/save-state.yml +0 -32
- package/src/tools/definitions/std/quality/check-quality.yml +0 -241
- package/src/tools/definitions/std/quality/debug-systematic.yml +0 -163
- package/src/tools/definitions/std/quality/handle-feedback.yml +0 -108
- package/src/tools/definitions/std/quality/review-code.yml +0 -128
- package/src/tools/definitions/std/quality/review-spec.yml +0 -140
- package/src/tools/definitions/std/quality/review-task.yml +0 -190
- package/src/tools/definitions/std/quality/run-tests.yml +0 -80
- package/src/tools/definitions/std/quick/analyze.yml +0 -56
- package/src/tools/definitions/std/quick/implement.yml +0 -67
- package/src/tools/definitions/std/quick/verify.yml +0 -71
- package/src/tools/definitions/std/verification/verify_completion.yml +0 -113
- package/src/tools/definitions/std/verification/wait-condition.yml +0 -107
- package/src/tools/index.ts +0 -5
- package/src/tools/paths.ts +0 -15
package/src/gates/security.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 安全门禁
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* 检查安全漏洞:
|
|
5
5
|
* - npm audit
|
|
6
6
|
* - 依赖漏洞
|
|
7
7
|
* - 敏感信息泄露
|
|
8
|
+
*
|
|
9
|
+
* fail-fast:扫描输出必须是 npm audit 的 JSON;非 JSON 输出不再有
|
|
10
|
+
* 「正则抠数字」的文本兜底——解析失败直接抛出(外层归一为 deny 报告)。
|
|
8
11
|
*/
|
|
9
12
|
|
|
10
13
|
import { execAsync } from '../utils/exec';
|
|
@@ -12,6 +15,49 @@ import { gateResult, fromError } from './types';
|
|
|
12
15
|
import type { GateResult, GateContext, SecurityGateConfig, Gate, GateDecision } from './types';
|
|
13
16
|
import { decisionFromResult } from './decision';
|
|
14
17
|
|
|
18
|
+
/** 漏洞条目(报告 details 与 analyzeResult 共用形状) */
|
|
19
|
+
interface VulnerabilityEntry {
|
|
20
|
+
name: string;
|
|
21
|
+
severity: string;
|
|
22
|
+
via: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** 漏洞统计 */
|
|
26
|
+
interface VulnerabilityAnalysis {
|
|
27
|
+
critical: number;
|
|
28
|
+
high: number;
|
|
29
|
+
moderate: number;
|
|
30
|
+
low: number;
|
|
31
|
+
total: number;
|
|
32
|
+
vulnerabilities: VulnerabilityEntry[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** npm audit(旧版 audit.advisories 形状)单条 advisory 已读字段 */
|
|
36
|
+
interface NpmAdvisory {
|
|
37
|
+
name?: string;
|
|
38
|
+
severity?: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
via?: Array<{ title?: string } | string>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** npm audit(v7+ vulnerabilities 形状)单条记录已读字段 */
|
|
44
|
+
interface NpmVulnerability {
|
|
45
|
+
name?: string;
|
|
46
|
+
severity?: string;
|
|
47
|
+
via?: Array<{ title?: string } | string>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
51
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** via 的首个来源标题(字符串直取,对象取 title) */
|
|
55
|
+
function viaTitle(via: NpmAdvisory['via']): string | undefined {
|
|
56
|
+
const first = via?.[0];
|
|
57
|
+
if (typeof first === 'string') return first;
|
|
58
|
+
return first?.title;
|
|
59
|
+
}
|
|
60
|
+
|
|
15
61
|
/**
|
|
16
62
|
* 安全门禁
|
|
17
63
|
*/
|
|
@@ -48,7 +94,7 @@ export class SecurityGate implements Gate {
|
|
|
48
94
|
// 三级优先级(自上而下取第一个「已提供」者):context 覆盖 > 构造配置 > 自动探测。
|
|
49
95
|
// 缺省(未给命令)落到 detectScanCommand()——本行曾因构造器兜空串而恒停在第二级(#138)。
|
|
50
96
|
const scanCommand = context.securityScanCommand ??
|
|
51
|
-
this.config.scanCommand ??
|
|
97
|
+
this.config.scanCommand ??
|
|
52
98
|
this.detectScanCommand(context.projectPath);
|
|
53
99
|
|
|
54
100
|
const result = await this.runScan(scanCommand, context.projectPath);
|
|
@@ -75,7 +121,7 @@ export class SecurityGate implements Gate {
|
|
|
75
121
|
scanCommand,
|
|
76
122
|
}
|
|
77
123
|
);
|
|
78
|
-
} catch (error:
|
|
124
|
+
} catch (error: unknown) {
|
|
79
125
|
return fromError('security', '安全扫描失败', error, startTime);
|
|
80
126
|
}
|
|
81
127
|
}
|
|
@@ -98,10 +144,10 @@ export class SecurityGate implements Gate {
|
|
|
98
144
|
maxBuffer: 10 * 1024 * 1024,
|
|
99
145
|
});
|
|
100
146
|
return stdout;
|
|
101
|
-
} catch (error:
|
|
147
|
+
} catch (error: unknown) {
|
|
102
148
|
// npm audit 发现漏洞时会返回非零退出码
|
|
103
149
|
// 但 stdout 仍然包含结果
|
|
104
|
-
if (error.stdout) {
|
|
150
|
+
if (isRecord(error) && typeof error.stdout === 'string') {
|
|
105
151
|
return error.stdout;
|
|
106
152
|
}
|
|
107
153
|
throw error;
|
|
@@ -109,82 +155,57 @@ export class SecurityGate implements Gate {
|
|
|
109
155
|
}
|
|
110
156
|
|
|
111
157
|
/**
|
|
112
|
-
*
|
|
158
|
+
* 分析扫描结果:只认 npm audit 的两种 JSON 形状(audit.advisories / vulnerabilities)。
|
|
159
|
+
* 输出不是合法 JSON 对象 → 抛错(不再有文本正则兜底)。
|
|
113
160
|
*/
|
|
114
|
-
private analyzeResult(output: string): {
|
|
115
|
-
critical: number;
|
|
116
|
-
high: number;
|
|
117
|
-
moderate: number;
|
|
118
|
-
low: number;
|
|
119
|
-
total: number;
|
|
120
|
-
vulnerabilities: Array<{
|
|
121
|
-
name: string;
|
|
122
|
-
severity: string;
|
|
123
|
-
via: string;
|
|
124
|
-
}>;
|
|
125
|
-
} {
|
|
161
|
+
private analyzeResult(output: string): VulnerabilityAnalysis {
|
|
126
162
|
let critical = 0;
|
|
127
163
|
let high = 0;
|
|
128
164
|
let moderate = 0;
|
|
129
165
|
let low = 0;
|
|
130
|
-
const vulnerabilities:
|
|
166
|
+
const vulnerabilities: VulnerabilityEntry[] = [];
|
|
167
|
+
|
|
168
|
+
const count = (severity: string): void => {
|
|
169
|
+
switch (severity) {
|
|
170
|
+
case 'critical': critical++; break;
|
|
171
|
+
case 'high': high++; break;
|
|
172
|
+
case 'moderate': moderate++; break;
|
|
173
|
+
default: low++;
|
|
174
|
+
}
|
|
175
|
+
};
|
|
131
176
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
vulnerabilities.push({
|
|
150
|
-
name: advisory.name || key,
|
|
151
|
-
severity,
|
|
152
|
-
via: advisory.via?.[0]?.title || advisory.title || 'Unknown',
|
|
153
|
-
});
|
|
154
|
-
}
|
|
177
|
+
const raw: unknown = JSON.parse(output);
|
|
178
|
+
if (!isRecord(raw)) {
|
|
179
|
+
throw new Error('安全扫描输出不是 JSON 对象');
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// npm audit 旧格式
|
|
183
|
+
if (isRecord(raw.audit)) {
|
|
184
|
+
const advisories = isRecord(raw.audit.advisories) ? raw.audit.advisories : {};
|
|
185
|
+
for (const [key, entry] of Object.entries(advisories)) {
|
|
186
|
+
const advisory = (isRecord(entry) ? entry : {}) as NpmAdvisory;
|
|
187
|
+
const severity = advisory.severity?.toLowerCase() ?? 'low';
|
|
188
|
+
count(severity);
|
|
189
|
+
vulnerabilities.push({
|
|
190
|
+
name: advisory.name ?? key,
|
|
191
|
+
severity,
|
|
192
|
+
via: viaTitle(advisory.via) ?? advisory.title ?? 'Unknown',
|
|
193
|
+
});
|
|
155
194
|
}
|
|
195
|
+
}
|
|
156
196
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
vulnerabilities.push({
|
|
171
|
-
name,
|
|
172
|
-
severity,
|
|
173
|
-
via: v.via?.[0]?.title || v.name || 'Unknown',
|
|
174
|
-
});
|
|
175
|
-
}
|
|
197
|
+
// 新版 npm audit 格式
|
|
198
|
+
if (isRecord(raw.vulnerabilities)) {
|
|
199
|
+
for (const [name, entry] of Object.entries(raw.vulnerabilities)) {
|
|
200
|
+
const vuln = (isRecord(entry) ? entry : {}) as NpmVulnerability;
|
|
201
|
+
const severity = vuln.severity?.toLowerCase() ?? 'low';
|
|
202
|
+
count(severity);
|
|
203
|
+
vulnerabilities.push({
|
|
204
|
+
name,
|
|
205
|
+
severity,
|
|
206
|
+
via: viaTitle(vuln.via) ?? vuln.name ?? 'Unknown',
|
|
207
|
+
});
|
|
176
208
|
}
|
|
177
|
-
} catch {
|
|
178
|
-
// 解析失败,尝试从文本提取
|
|
179
|
-
const criticalMatch = output.match(/(\d+) critical/i);
|
|
180
|
-
const highMatch = output.match(/(\d+) high/i);
|
|
181
|
-
const moderateMatch = output.match(/(\d+) moderate/i);
|
|
182
|
-
const lowMatch = output.match(/(\d+) low/i);
|
|
183
|
-
|
|
184
|
-
critical = criticalMatch ? parseInt(criticalMatch[1], 10) : 0;
|
|
185
|
-
high = highMatch ? parseInt(highMatch[1], 10) : 0;
|
|
186
|
-
moderate = moderateMatch ? parseInt(moderateMatch[1], 10) : 0;
|
|
187
|
-
low = lowMatch ? parseInt(lowMatch[1], 10) : 0;
|
|
188
209
|
}
|
|
189
210
|
|
|
190
211
|
return {
|
|
@@ -200,13 +221,7 @@ export class SecurityGate implements Gate {
|
|
|
200
221
|
/**
|
|
201
222
|
* 判断是否通过
|
|
202
223
|
*/
|
|
203
|
-
private isPassed(analysis: {
|
|
204
|
-
critical: number;
|
|
205
|
-
high: number;
|
|
206
|
-
moderate: number;
|
|
207
|
-
low: number;
|
|
208
|
-
total: number;
|
|
209
|
-
}): boolean {
|
|
224
|
+
private isPassed(analysis: VulnerabilityAnalysis): boolean {
|
|
210
225
|
// 根据严重程度阈值判断
|
|
211
226
|
switch (this.config.severityThreshold) {
|
|
212
227
|
case 'critical':
|
|
@@ -217,8 +232,6 @@ export class SecurityGate implements Gate {
|
|
|
217
232
|
return analysis.critical === 0 && analysis.high === 0 && analysis.moderate === 0;
|
|
218
233
|
case 'low':
|
|
219
234
|
return analysis.total === 0;
|
|
220
|
-
default:
|
|
221
|
-
return analysis.critical === 0 && analysis.high === 0;
|
|
222
235
|
}
|
|
223
236
|
}
|
|
224
237
|
|
package/src/gates/types.ts
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 门禁层私有类型 + GateResult 构造器
|
|
3
|
+
*
|
|
4
|
+
* 跨层消费的公共类型(GateResult / GateDecision / GateDecisionStatus /
|
|
5
|
+
* BlacklistLevel / CommandBlacklistRule / PerformanceThresholds)正本在
|
|
6
|
+
* `src/types/gate.ts`,此处 re-export 只是本层内部的便捷入口。
|
|
3
7
|
*/
|
|
4
8
|
|
|
9
|
+
import type {
|
|
10
|
+
GateDecision,
|
|
11
|
+
GateResult,
|
|
12
|
+
PerformanceThresholds,
|
|
13
|
+
} from '../types/gate';
|
|
5
14
|
import type { RunEnv } from '../core/constraints/run-env';
|
|
6
15
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
passed: boolean;
|
|
16
|
-
message: string;
|
|
17
|
-
details?: Record<string, any>;
|
|
18
|
-
timestamp: string;
|
|
19
|
-
duration?: number;
|
|
20
|
-
}
|
|
16
|
+
export type {
|
|
17
|
+
GateDecision,
|
|
18
|
+
GateDecisionStatus,
|
|
19
|
+
GateResult,
|
|
20
|
+
BlacklistLevel,
|
|
21
|
+
CommandBlacklistRule,
|
|
22
|
+
PerformanceThresholds,
|
|
23
|
+
} from '../types/gate';
|
|
21
24
|
|
|
22
25
|
/**
|
|
23
26
|
* GateResult 构造器:报告层的唯一落点
|
|
@@ -30,7 +33,7 @@ export function gateResult(
|
|
|
30
33
|
passed: boolean,
|
|
31
34
|
message: string,
|
|
32
35
|
startedAt: number,
|
|
33
|
-
details?: Record<string,
|
|
36
|
+
details?: Record<string, unknown>
|
|
34
37
|
): GateResult {
|
|
35
38
|
return {
|
|
36
39
|
gate,
|
|
@@ -47,7 +50,7 @@ export function pass(
|
|
|
47
50
|
gate: string,
|
|
48
51
|
message: string,
|
|
49
52
|
startedAt: number,
|
|
50
|
-
details?: Record<string,
|
|
53
|
+
details?: Record<string, unknown>
|
|
51
54
|
): GateResult {
|
|
52
55
|
return gateResult(gate, true, message, startedAt, details);
|
|
53
56
|
}
|
|
@@ -57,7 +60,7 @@ export function fail(
|
|
|
57
60
|
gate: string,
|
|
58
61
|
message: string,
|
|
59
62
|
startedAt: number,
|
|
60
|
-
details?: Record<string,
|
|
63
|
+
details?: Record<string, unknown>
|
|
61
64
|
): GateResult {
|
|
62
65
|
return gateResult(gate, false, message, startedAt, details);
|
|
63
66
|
}
|
|
@@ -72,35 +75,12 @@ export function fromError(
|
|
|
72
75
|
label: string,
|
|
73
76
|
error: unknown,
|
|
74
77
|
startedAt: number,
|
|
75
|
-
details?: Record<string,
|
|
78
|
+
details?: Record<string, unknown>
|
|
76
79
|
): GateResult {
|
|
77
80
|
const reason = error instanceof Error ? error.message : String(error);
|
|
78
81
|
return fail(gate, `${label}: ${reason}`, startedAt, details);
|
|
79
82
|
}
|
|
80
83
|
|
|
81
|
-
/**
|
|
82
|
-
* 门禁决策三态(守卫/门禁统一,G1)
|
|
83
|
-
*
|
|
84
|
-
* - deny:阻断。单调语义——一旦出现,下游门禁不得改回 allow。
|
|
85
|
-
* - abstain:弃权/放行。不阻断,也不否决。
|
|
86
|
-
* - ask:需要人裁决。枚举预留,暂无实现;无实现时 fail-closed 按 deny 计。
|
|
87
|
-
*/
|
|
88
|
-
export type GateDecisionStatus = 'deny' | 'abstain' | 'ask';
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* 门禁决策:统一 Gate 接口的返回值
|
|
92
|
-
*
|
|
93
|
-
* status 是三态决策;result 携带 GateResult 报告结构。
|
|
94
|
-
* 决策对象由 decisionFromResult / runGates 浅冻结——不可变是
|
|
95
|
-
* deny 单调语义的接口契约。
|
|
96
|
-
*/
|
|
97
|
-
export interface GateDecision {
|
|
98
|
-
/** 三态决策 */
|
|
99
|
-
status: GateDecisionStatus;
|
|
100
|
-
/** 报告结构(GateResult 保留为报告层,不删) */
|
|
101
|
-
result: GateResult;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
84
|
/**
|
|
105
85
|
* 统一门禁接口(G1)
|
|
106
86
|
*
|
|
@@ -110,7 +90,7 @@ export interface GateDecision {
|
|
|
110
90
|
export interface Gate {
|
|
111
91
|
/** 门禁 id(与 gates/definitions.ts 定义一致,注册表闭环校验) */
|
|
112
92
|
readonly id: string;
|
|
113
|
-
/**
|
|
93
|
+
/** 声明式顺序(以 gates/definitions.ts 定义表为准,config.yml 无覆盖口——gates.order 生效集已删,ADR-0002「后续变更」),小者先执行 */
|
|
114
94
|
order: number;
|
|
115
95
|
/** 决策协议:返回三态 GateDecision */
|
|
116
96
|
evaluate(ctx: GateContext): Promise<GateDecision> | GateDecision;
|
|
@@ -152,15 +132,6 @@ export interface GateContext {
|
|
|
152
132
|
runEnv?: RunEnv;
|
|
153
133
|
}
|
|
154
134
|
|
|
155
|
-
/**
|
|
156
|
-
* 性能阈值(架构评审候选2:只留有真实现的维度——coverage 走 json-summary、
|
|
157
|
-
* bundleSize 走 dist 目录测量;responseTime/memoryUsage/throughput 无真实现已删)
|
|
158
|
-
*/
|
|
159
|
-
export interface PerformanceThresholds {
|
|
160
|
-
minCoverage?: number; // %
|
|
161
|
-
maxBundleSize?: number; // KB
|
|
162
|
-
}
|
|
163
|
-
|
|
164
135
|
/**
|
|
165
136
|
* 审查门禁配置
|
|
166
137
|
*/
|
|
@@ -205,8 +176,6 @@ export interface SpecAcceptanceGateConfig {
|
|
|
205
176
|
tasksPath?: string;
|
|
206
177
|
/** 是否检查所有任务 */
|
|
207
178
|
checkAllTasks?: boolean;
|
|
208
|
-
/** 自定义验收条件 */
|
|
209
|
-
customAcceptanceCriteria?: Record<string, (task: any) => Promise<boolean>>;
|
|
210
179
|
/** E2E 测试命令模板 */
|
|
211
180
|
e2eTestCommand?: string;
|
|
212
181
|
/** E2E 测试超时时间(毫秒) */
|
|
@@ -227,29 +196,6 @@ export interface AcceptanceGateContext {
|
|
|
227
196
|
tasksPath?: string;
|
|
228
197
|
}
|
|
229
198
|
|
|
230
|
-
/**
|
|
231
|
-
* 验收标准(旧格式,向后兼容)
|
|
232
|
-
*/
|
|
233
|
-
export interface AcceptanceCriteria {
|
|
234
|
-
id: string;
|
|
235
|
-
description: string;
|
|
236
|
-
type: 'manual' | 'automated' | 'test';
|
|
237
|
-
required: boolean;
|
|
238
|
-
checked?: boolean;
|
|
239
|
-
notes?: string;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* 命令黑名单规则
|
|
244
|
-
*/
|
|
245
|
-
export interface CommandBlacklistRule {
|
|
246
|
-
id: string;
|
|
247
|
-
pattern: RegExp;
|
|
248
|
-
level: 'block' | 'warn' | 'audit';
|
|
249
|
-
message: string;
|
|
250
|
-
category: string;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
199
|
/**
|
|
254
200
|
* 命令门禁配置
|
|
255
201
|
*
|
package/src/hooks/CONTEXT.md
CHANGED
|
@@ -6,7 +6,7 @@ Harness 运行环境的组合根:一次调用装配起约束检查器、会话
|
|
|
6
6
|
ADR-0027(#170)起本层只剩 bootstrap 一个面。原先的通用 hook 管线(`registry` / `pipeline` / `config` / `types` 四文件:注册 → 排序 → 错误隔离 → 采样执行)双仓零生产消费者,整体删除——裁决记录 `docs/adr/0027-hooks-pipeline-surface-trim.md`(事实前提:下游消费方侧 hooks 层已删除)。目录名沿用历史,不再表示「提供 hook 能力」。
|
|
7
7
|
|
|
8
8
|
## 核心导出
|
|
9
|
-
- `bootstrapHarness` — 异步组合根(S9:配置异步加载,不阻塞事件循环);也是 trace 记录器的接线点:`new ConstraintChecker(new TraceCollector({ projectPath }))`(harness#88:core 不上行依赖 monitoring,故由本层接线;#139 收根:两个入口本就收 projectPath
|
|
9
|
+
- `bootstrapHarness` — 异步组合根(S9:配置异步加载,不阻塞事件循环);也是 trace 记录器的接线点:`new ConstraintChecker(new TraceCollector({ projectPath }))`(harness#88:core 不上行依赖 monitoring,故由本层接线;#139 收根:两个入口本就收 projectPath,落点随之锚定。原 cwd 锚定的 `getTraceCollector()` 单例已随 #199 删除)
|
|
10
10
|
- `bootstrapHarnessSync` — 同形状的同步版,配置走 `readFileSync`,供不支持 top-level await 的环境与 `bootstrapHarness` 失败时的回落路径
|
|
11
11
|
- `HarnessBootstrap`(type)— 返回值形状 `{ checker, sessions, projectPath, mergedConstraints }`
|
|
12
12
|
|
package/src/index.ts
CHANGED
|
@@ -9,11 +9,9 @@
|
|
|
9
9
|
*
|
|
10
10
|
* 门禁系统:
|
|
11
11
|
* - PassesGate:测试门控
|
|
12
|
-
* - ReviewGate:审查门禁
|
|
13
|
-
* - SecurityGate:安全门禁
|
|
14
|
-
* - PerformanceGate:性能门禁
|
|
15
|
-
* - ContractGate:契约门禁
|
|
16
12
|
* - CheckpointValidator:检查点验证
|
|
13
|
+
* (其余 Gate 类随 #199/ADR-0038 收回内部:CLI 可达 ≠ 导出理由,
|
|
14
|
+
* 消费方经实现文件直引,见 src/gates/CONTEXT.md)
|
|
17
15
|
*
|
|
18
16
|
* 公共导出(ADR-0003):显式清单,禁 export *。
|
|
19
17
|
* 收录标准:属 harness 定位(约束数据 / 执行引擎 / 知识基建)、
|
|
@@ -50,9 +48,7 @@ export {
|
|
|
50
48
|
} from './core/constraints/definitions';
|
|
51
49
|
export {
|
|
52
50
|
getEffectiveConstraints,
|
|
53
|
-
lintEffectiveConfig,
|
|
54
51
|
} from './core/effective-constraints';
|
|
55
|
-
export type { EffectiveConfigLint } from './core/effective-constraints';
|
|
56
52
|
export {
|
|
57
53
|
listRetiredConstraints,
|
|
58
54
|
} from './core/retired-constraints';
|
|
@@ -61,6 +57,49 @@ export type {
|
|
|
61
57
|
RetiredConstraintMeta,
|
|
62
58
|
} from './core/retired-constraints';
|
|
63
59
|
|
|
60
|
+
// ========================================
|
|
61
|
+
// 约束变更面(harness#198):retire/reactivate/disable + 提案打包 + 元数据 + 配置铺放
|
|
62
|
+
// 下游消费方经库面完成约束变更,不再偷看 `.harness/` 内部、免起子进程。
|
|
63
|
+
// 知识沉淀写口是注入 seam(harness#88 分层纪律:core 不 value-import 知识层)——
|
|
64
|
+
// retire/reactivate 缺省只落 config.yml,要沉淀经 options.openKnowledgeStore 注入;
|
|
65
|
+
// CLI 命令是已接线的组合根。
|
|
66
|
+
// ========================================
|
|
67
|
+
export {
|
|
68
|
+
retireConstraint,
|
|
69
|
+
reactivateConstraint,
|
|
70
|
+
disableConstraint,
|
|
71
|
+
} from './core/constraint-lifecycle';
|
|
72
|
+
export type {
|
|
73
|
+
LifecycleKnowledgeSink,
|
|
74
|
+
RetireExecuteOptions,
|
|
75
|
+
RetireStatus,
|
|
76
|
+
RetireResult,
|
|
77
|
+
RetireTargetInfo,
|
|
78
|
+
ReactivateExecuteOptions,
|
|
79
|
+
ReactivateStatus,
|
|
80
|
+
ReactivateResult,
|
|
81
|
+
DisableStatus,
|
|
82
|
+
DisableResult,
|
|
83
|
+
} from './core/constraint-lifecycle';
|
|
84
|
+
export {
|
|
85
|
+
packProposal,
|
|
86
|
+
collectProposalMaterial,
|
|
87
|
+
renderProposalMarkdown,
|
|
88
|
+
proposalMaterialPath,
|
|
89
|
+
} from './core/constraints/pack-proposal';
|
|
90
|
+
export type {
|
|
91
|
+
ProposalMaterial,
|
|
92
|
+
PackProposalResult,
|
|
93
|
+
} from './core/constraints/pack-proposal';
|
|
94
|
+
export {
|
|
95
|
+
getConstraintsMeta,
|
|
96
|
+
} from './core/constraints/meta';
|
|
97
|
+
export type { ConstraintsMeta } from './core/constraints/meta';
|
|
98
|
+
export {
|
|
99
|
+
HARNESS_CONFIG_FILES,
|
|
100
|
+
propagateConfig,
|
|
101
|
+
} from './core/config-files';
|
|
102
|
+
|
|
64
103
|
// ========================================
|
|
65
104
|
// 约束使用报告(退役候选诊断数据层,下游消费方进化链路消费)
|
|
66
105
|
// ========================================
|
|
@@ -87,6 +126,7 @@ export type {
|
|
|
87
126
|
export {
|
|
88
127
|
checkConstraint,
|
|
89
128
|
checkConstraints,
|
|
129
|
+
collectConstraints,
|
|
90
130
|
checkBeforeExecution,
|
|
91
131
|
} from './core/constraints/checker';
|
|
92
132
|
export type { CheckConstraintsOptions } from './core/constraints/checker';
|
|
@@ -116,12 +156,6 @@ export type {
|
|
|
116
156
|
ContextEvidenceFlag,
|
|
117
157
|
} from './core/constraints/checkers';
|
|
118
158
|
|
|
119
|
-
// ========================================
|
|
120
|
-
// 约束缓存
|
|
121
|
-
// ========================================
|
|
122
|
-
export { CheckCache } from './core/constraints/check-cache';
|
|
123
|
-
export type { CheckCacheConfig, CheckSamplingConfig } from './core/constraints/check-cache';
|
|
124
|
-
|
|
125
159
|
// ========================================
|
|
126
160
|
// 检查点与验证器
|
|
127
161
|
// ========================================
|
|
@@ -155,70 +189,7 @@ export type {
|
|
|
155
189
|
} from './types/cso';
|
|
156
190
|
|
|
157
191
|
// ========================================
|
|
158
|
-
//
|
|
159
|
-
// ========================================
|
|
160
|
-
export { SpecValidator, validateSpec, validateAllSpecs } from './core/spec/validator';
|
|
161
|
-
export type {
|
|
162
|
-
SpecValidatorConfig,
|
|
163
|
-
SpecValidationResult,
|
|
164
|
-
BatchSpecValidationResult,
|
|
165
|
-
SpecSchemaDefinition,
|
|
166
|
-
SpecType,
|
|
167
|
-
SpecValidationError,
|
|
168
|
-
SchemaLoader,
|
|
169
|
-
} from './types/spec';
|
|
170
|
-
|
|
171
|
-
// ========================================
|
|
172
|
-
// 门禁系统(公共面 = ./gates 子路径出口)
|
|
173
|
-
// ========================================
|
|
174
|
-
export {
|
|
175
|
-
ReviewGate,
|
|
176
|
-
SecurityGate,
|
|
177
|
-
PerformanceGate,
|
|
178
|
-
ContractGate,
|
|
179
|
-
SpecAcceptanceGate,
|
|
180
|
-
CommandGate,
|
|
181
|
-
createCommandGate,
|
|
182
|
-
getCommandGate,
|
|
183
|
-
isCommandAllowed,
|
|
184
|
-
getCommandRiskLevel,
|
|
185
|
-
DEFAULT_COMMAND_BLACKLIST,
|
|
186
|
-
createReviewGate,
|
|
187
|
-
createSecurityGate,
|
|
188
|
-
createPerformanceGate,
|
|
189
|
-
createContractGate,
|
|
190
|
-
createSpecAcceptanceGate,
|
|
191
|
-
decisionFromResult,
|
|
192
|
-
GATE_DEFINITIONS,
|
|
193
|
-
getGate,
|
|
194
|
-
listRegisteredGates,
|
|
195
|
-
registeredGateCount,
|
|
196
|
-
assertGateRegistryClosed,
|
|
197
|
-
runGates,
|
|
198
|
-
createCheckerGate,
|
|
199
|
-
} from './gates';
|
|
200
|
-
export type {
|
|
201
|
-
GateResult,
|
|
202
|
-
GateContext,
|
|
203
|
-
Gate,
|
|
204
|
-
GateDecision,
|
|
205
|
-
GateDecisionStatus,
|
|
206
|
-
GateDefinition,
|
|
207
|
-
GateRunResult,
|
|
208
|
-
PerformanceThresholds,
|
|
209
|
-
ReviewGateConfig,
|
|
210
|
-
SecurityGateConfig,
|
|
211
|
-
PerformanceGateConfig,
|
|
212
|
-
ContractGateConfig,
|
|
213
|
-
SpecAcceptanceGateConfig,
|
|
214
|
-
AcceptanceGateContext,
|
|
215
|
-
AcceptanceCriteria,
|
|
216
|
-
CommandBlacklistRule,
|
|
217
|
-
CommandGateConfig,
|
|
218
|
-
} from './gates';
|
|
219
|
-
|
|
220
|
-
// ========================================
|
|
221
|
-
// 监控(Execution Trace 收集/分析 + 上下文追踪)
|
|
192
|
+
// 监控(Execution Trace 收集/分析)
|
|
222
193
|
// ========================================
|
|
223
194
|
export {
|
|
224
195
|
DEFAULT_TRACE_FILE,
|
|
@@ -233,13 +204,9 @@ export type {
|
|
|
233
204
|
} from './types/trace';
|
|
234
205
|
export {
|
|
235
206
|
TraceCollector,
|
|
236
|
-
|
|
237
|
-
configureTraceCollector,
|
|
207
|
+
pruneTraceLogs,
|
|
238
208
|
TraceAnalyzer,
|
|
239
|
-
createAnalyzer,
|
|
240
|
-
ContextTracker,
|
|
241
209
|
} from './monitoring';
|
|
242
|
-
export type { ContextAverages } from './monitoring';
|
|
243
210
|
|
|
244
211
|
// ========================================
|
|
245
212
|
// 失败处理(错误分类 + 记录 + 违规处理策略)
|
|
@@ -266,22 +233,16 @@ export type {
|
|
|
266
233
|
} from './failure';
|
|
267
234
|
|
|
268
235
|
// ========================================
|
|
269
|
-
//
|
|
236
|
+
// 上下文管理(会话管理)
|
|
270
237
|
// ========================================
|
|
271
238
|
export {
|
|
272
|
-
TokenBudget,
|
|
273
|
-
TokenEstimator,
|
|
274
239
|
SessionManager,
|
|
275
|
-
KnowledgeInjector,
|
|
276
240
|
} from './context';
|
|
277
241
|
export type {
|
|
278
242
|
CompactionConfig,
|
|
279
243
|
CompactionLevel,
|
|
280
244
|
ContextSource,
|
|
281
245
|
ContextSourceType,
|
|
282
|
-
ContextUsageSnapshot,
|
|
283
|
-
InjectionConfig,
|
|
284
|
-
InjectionResult,
|
|
285
246
|
SessionCheckpoint,
|
|
286
247
|
SessionEvent,
|
|
287
248
|
SessionEventType,
|
|
@@ -303,10 +264,16 @@ export {
|
|
|
303
264
|
ColdStartImporter,
|
|
304
265
|
KnowledgeHealthScorer,
|
|
305
266
|
KnowledgeAudit,
|
|
306
|
-
migrateKnowledgeEntries,
|
|
307
|
-
extractCodeStructure,
|
|
308
267
|
DEFAULT_DECAY_CONFIG,
|
|
268
|
+
estimateTokens,
|
|
309
269
|
} from './knowledge';
|
|
270
|
+
/**
|
|
271
|
+
* 外部来源条目的 prompt 标记标准(harness#161 三层防御第二层 marking 的唯一正本,
|
|
272
|
+
* 定义在 `knowledge/query.ts`)。知识注入编排已归下游编排消费方(定位文档裁决),
|
|
273
|
+
* 本标记作为标准/家具保留公开导出:消费方自行格式化注入内容时以此常量对齐标记,
|
|
274
|
+
* 不得另存字面量。
|
|
275
|
+
*/
|
|
276
|
+
export { EXTERNAL_SOURCE_MARKER } from './knowledge';
|
|
310
277
|
export type {
|
|
311
278
|
KnowledgeEntry,
|
|
312
279
|
KnowledgeStore,
|
|
@@ -335,9 +302,6 @@ export type {
|
|
|
335
302
|
AuditIssue,
|
|
336
303
|
AuditReport,
|
|
337
304
|
AuditOptions,
|
|
338
|
-
CodeStructure,
|
|
339
|
-
DeclarationInfo,
|
|
340
|
-
ImportInfo,
|
|
341
305
|
} from './knowledge';
|
|
342
306
|
|
|
343
307
|
// ========================================
|
|
@@ -371,11 +335,6 @@ export type {
|
|
|
371
335
|
TddChainResult,
|
|
372
336
|
} from './completion-checkers';
|
|
373
337
|
|
|
374
|
-
// ========================================
|
|
375
|
-
// 工具路径
|
|
376
|
-
// ========================================
|
|
377
|
-
export { getRegistryPath, getToolsDir } from './tools';
|
|
378
|
-
|
|
379
338
|
// ========================================
|
|
380
339
|
// 发布物完整性自检(#75 N4 收编:harness 自己最知道自己发了什么)
|
|
381
340
|
// 清单 = 包声明面(package.json main/exports/bin)推导 + 运行时 extras 随源码维护;
|