@dommaker/harness 1.14.0 → 1.16.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 +19 -0
- package/README.md +4 -2
- package/bin/harness.js +6 -0
- package/dist/cli/command-contract.d.ts +4 -4
- package/dist/cli/command-contract.d.ts.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 +44 -0
- package/dist/cli/commands/constraints-disable.d.ts.map +1 -0
- package/dist/cli/commands/constraints-disable.js +84 -0
- package/dist/cli/commands/constraints-disable.js.map +1 -0
- package/dist/cli/commands/constraints-pack-proposal.d.ts +8 -21
- package/dist/cli/commands/constraints-pack-proposal.d.ts.map +1 -1
- package/dist/cli/commands/constraints-pack-proposal.js +22 -130
- 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 -103
- package/dist/cli/commands/constraints-reactivate.js.map +1 -1
- package/dist/cli/commands/constraints-retire.d.ts +14 -60
- package/dist/cli/commands/constraints-retire.d.ts.map +1 -1
- package/dist/cli/commands/constraints-retire.js +22 -195
- package/dist/cli/commands/constraints-retire.js.map +1 -1
- package/dist/cli/commands/constraints.d.ts +7 -10
- package/dist/cli/commands/constraints.d.ts.map +1 -1
- package/dist/cli/commands/constraints.js +8 -22
- package/dist/cli/commands/constraints.js.map +1 -1
- package/dist/cli/commands/definitions.d.ts.map +1 -1
- package/dist/cli/commands/definitions.js +16 -1
- package/dist/cli/commands/definitions.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +4 -19
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/knowledge-view.d.ts +3 -3
- package/dist/cli/commands/knowledge-view.js +4 -4
- package/dist/cli/commands/knowledge-view.js.map +1 -1
- package/dist/cli/commands/knowledge.js +1 -1
- package/dist/cli/commands/knowledge.js.map +1 -1
- package/dist/cli/commands/release.d.ts +2 -2
- package/dist/cli/commands/release.js +2 -2
- 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/sync-docs/agents-syncer.js +2 -4
- package/dist/cli/commands/sync-docs/agents-syncer.js.map +1 -1
- 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 +30 -0
- package/dist/cli/commands/sync-docs/context-syncer.js.map +1 -1
- package/dist/cli/commands/sync-docs/head-gate.d.ts +34 -0
- package/dist/cli/commands/sync-docs/head-gate.d.ts.map +1 -0
- package/dist/cli/commands/sync-docs/head-gate.js +86 -0
- package/dist/cli/commands/sync-docs/head-gate.js.map +1 -0
- package/dist/cli/commands/sync-docs/index.d.ts +8 -1
- package/dist/cli/commands/sync-docs/index.d.ts.map +1 -1
- package/dist/cli/commands/sync-docs/index.js +81 -5
- package/dist/cli/commands/sync-docs/index.js.map +1 -1
- package/dist/cli/commands/sync-docs/project-reader.d.ts +5 -0
- package/dist/cli/commands/sync-docs/project-reader.d.ts.map +1 -1
- 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.js +1 -1
- package/dist/cli/gate-command.js.map +1 -1
- package/dist/completion-checkers/contract-presence.d.ts +1 -1
- package/dist/completion-checkers/contract-presence.js +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 -3
- package/dist/context/index.d.ts.map +1 -1
- package/dist/context/index.js +2 -6
- package/dist/context/index.js.map +1 -1
- package/dist/context/knowledge-injector.d.ts.map +1 -1
- package/dist/context/knowledge-injector.js +3 -4
- package/dist/context/knowledge-injector.js.map +1 -1
- package/dist/context/session-manager.d.ts +0 -6
- package/dist/context/session-manager.d.ts.map +1 -1
- package/dist/context/session-manager.js +0 -9
- package/dist/context/session-manager.js.map +1 -1
- package/dist/context/types.d.ts +0 -24
- 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.js +1 -1
- package/dist/core/constraints/check-cache.d.ts +1 -1
- package/dist/core/constraints/check-cache.js +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/capability-sync.d.ts +1 -1
- package/dist/core/constraints/checkers/capability-sync.js +1 -1
- package/dist/core/constraints/checkers/docs-freshness.js +1 -1
- package/dist/core/constraints/checkers/docs-freshness.js.map +1 -1
- package/dist/core/constraints/checkers/governance-presence.d.ts +1 -1
- package/dist/core/constraints/checkers/governance-presence.js +1 -1
- package/dist/core/constraints/checkers/index.d.ts.map +1 -1
- package/dist/core/constraints/checkers/index.js +2 -2
- package/dist/core/constraints/checkers/index.js.map +1 -1
- package/dist/core/constraints/checkers/no-completion-without-verification.d.ts +39 -0
- package/dist/core/constraints/checkers/no-completion-without-verification.d.ts.map +1 -0
- package/dist/core/constraints/checkers/no-completion-without-verification.js +173 -0
- package/dist/core/constraints/checkers/no-completion-without-verification.js.map +1 -0
- package/dist/core/constraints/checkers/no-hardcoded-credentials.d.ts +3 -2
- package/dist/core/constraints/checkers/no-hardcoded-credentials.d.ts.map +1 -1
- package/dist/core/constraints/checkers/no-hardcoded-credentials.js +19 -7
- package/dist/core/constraints/checkers/no-hardcoded-credentials.js.map +1 -1
- package/dist/core/constraints/checkers/templated/file-exists.js +1 -1
- 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/checkers/types.d.ts +1 -1
- package/dist/core/constraints/checkers/types.js +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 +0 -17
- package/dist/core/constraints/context-builder.js.map +1 -1
- package/dist/core/constraints/definitions/guidelines.js +1 -1
- package/dist/core/constraints/definitions/iron-laws.js +2 -2
- package/dist/core/constraints/definitions/iron-laws.js.map +1 -1
- package/dist/core/constraints/definitions.d.ts +1 -1
- package/dist/core/constraints/definitions.js +1 -1
- package/dist/core/constraints/doc-freshness/runner.d.ts.map +1 -1
- package/dist/core/constraints/doc-freshness/runner.js +3 -1
- package/dist/core/constraints/doc-freshness/runner.js.map +1 -1
- package/dist/core/constraints/index.d.ts +1 -3
- 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/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/run-env.d.ts +3 -2
- package/dist/core/constraints/run-env.d.ts.map +1 -1
- package/dist/core/constraints/run-env.js +5 -4
- package/dist/core/constraints/run-env.js.map +1 -1
- package/dist/core/constraints/usage-report.d.ts +3 -6
- package/dist/core/constraints/usage-report.d.ts.map +1 -1
- package/dist/core/constraints/usage-report.js +6 -13
- package/dist/core/constraints/usage-report.js.map +1 -1
- package/dist/core/effective-constraints.d.ts +7 -7
- package/dist/core/effective-constraints.d.ts.map +1 -1
- package/dist/core/effective-constraints.js +7 -7
- 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/retired-constraints.d.ts +66 -0
- package/dist/core/retired-constraints.d.ts.map +1 -0
- package/dist/core/retired-constraints.js +52 -0
- package/dist/core/retired-constraints.js.map +1 -0
- package/dist/core/validators/check-handlers/command.d.ts.map +1 -1
- package/dist/core/validators/check-handlers/command.js +42 -4
- package/dist/core/validators/check-handlers/command.js.map +1 -1
- package/dist/core/validators/checkpoint.d.ts +4 -2
- package/dist/core/validators/checkpoint.d.ts.map +1 -1
- package/dist/core/validators/checkpoint.js +4 -2
- package/dist/core/validators/checkpoint.js.map +1 -1
- package/dist/core/validators/passes-gate.d.ts +2 -2
- package/dist/core/validators/passes-gate.d.ts.map +1 -1
- package/dist/core/validators/passes-gate.js +4 -3
- package/dist/core/validators/passes-gate.js.map +1 -1
- package/dist/gates/checker-gate.d.ts +4 -3
- package/dist/gates/checker-gate.d.ts.map +1 -1
- package/dist/gates/checker-gate.js +4 -3
- 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/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/index.d.ts +6 -40
- package/dist/gates/index.d.ts.map +1 -1
- package/dist/gates/index.js +5 -79
- package/dist/gates/index.js.map +1 -1
- package/dist/gates/registry.js +1 -1
- package/dist/gates/registry.js.map +1 -1
- package/dist/gates/types.d.ts +10 -3
- package/dist/gates/types.d.ts.map +1 -1
- package/dist/index.d.ts +19 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -67
- package/dist/index.js.map +1 -1
- package/dist/knowledge/audit-scoring.js +1 -1
- package/dist/knowledge/audit-scoring.js.map +1 -1
- package/dist/knowledge/index.d.ts +1 -3
- package/dist/knowledge/index.d.ts.map +1 -1
- package/dist/knowledge/index.js +3 -5
- package/dist/knowledge/index.js.map +1 -1
- package/dist/knowledge/query.d.ts +1 -1
- package/dist/knowledge/query.d.ts.map +1 -1
- package/dist/knowledge/query.js +12 -15
- package/dist/knowledge/query.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 +2 -11
- package/dist/monitoring/trace-analyzer.js.map +1 -1
- package/dist/monitoring/traces.d.ts +15 -11
- package/dist/monitoring/traces.d.ts.map +1 -1
- package/dist/monitoring/traces.js +44 -48
- 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 +7 -7
- package/dist/pretool-use-hook.js.map +1 -1
- package/dist/release/integrity.d.ts +4 -4
- package/dist/release/integrity.d.ts.map +1 -1
- package/dist/release/integrity.js +4 -6
- package/dist/release/integrity.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/test-setup/mkdtemp-cleanup.js +1 -1
- package/dist/types/constraint.d.ts +1 -7
- package/dist/types/constraint.d.ts.map +1 -1
- package/dist/types/constraint.js.map +1 -1
- package/dist/types/passes-gate.d.ts +7 -0
- package/dist/types/passes-gate.d.ts.map +1 -1
- package/dist/types/passes-gate.js +8 -0
- package/dist/types/passes-gate.js.map +1 -1
- package/dist/utils/detect-source-roots.d.ts +1 -1
- package/dist/utils/detect-source-roots.d.ts.map +1 -1
- package/dist/utils/detect-source-roots.js +2 -21
- package/dist/utils/detect-source-roots.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/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 -3
- package/src/CONTEXT.md +14 -7
- package/src/__tests__/acceptance-gate.test.ts +2 -4
- package/src/__tests__/checker-extra.test.ts +32 -9
- package/src/__tests__/checker-primitives-sdk.test.ts +2 -2
- package/src/__tests__/checker.test.ts +16 -14
- package/src/__tests__/detect-source-roots.test.ts +5 -4
- package/src/__tests__/effective-constraints.test.ts +16 -0
- package/src/__tests__/exec-checker-full-chain.test.ts +3 -3
- package/src/__tests__/iron-laws.test.ts +13 -20
- package/src/__tests__/layering.test.ts +2 -3
- package/src/__tests__/no-studio-references.test.ts +62 -0
- package/src/__tests__/passes-gate-check.test.ts +1 -1
- package/src/__tests__/pretool-use-hook.test.ts +5 -5
- package/src/__tests__/public-exports.test.ts +196 -41
- package/src/__tests__/public-type-surface.test.ts +27 -67
- package/src/__tests__/public-value-surface.test.ts +13 -36
- package/src/__tests__/retired-constraints.test.ts +99 -0
- package/src/__tests__/skip-semantics.test.ts +16 -33
- package/src/__tests__/trace-analyzer-extra.test.ts +1 -13
- package/src/__tests__/usage-report-public-export.test.ts +3 -3
- package/src/agents/CONTEXT.md +4 -4
- package/src/cli/__tests__/gate-command.test.ts +1 -1
- package/src/cli/command-contract.ts +4 -4
- package/src/cli/commands/CONTEXT.md +10 -9
- package/src/cli/commands/__tests__/check-read-count.test.ts +3 -0
- package/src/cli/commands/__tests__/check.test.ts +33 -6
- package/src/cli/commands/__tests__/command.test.ts +2 -2
- package/src/cli/commands/__tests__/constraints-disable.test.ts +229 -0
- package/src/cli/commands/__tests__/constraints-report-json-flag.test.ts +1 -1
- package/src/cli/commands/__tests__/constraints-report.test.ts +4 -4
- package/src/cli/commands/__tests__/knowledge-flywheel-consistency.test.ts +1 -1
- package/src/cli/commands/__tests__/knowledge-view.test.ts +1 -1
- package/src/cli/commands/__tests__/knowledge.test.ts +3 -3
- package/src/cli/commands/__tests__/project-path-anchoring.test.ts +4 -1
- package/src/cli/commands/__tests__/project-path-convention.test.ts +4 -36
- package/src/cli/commands/__tests__/spec-baseline-index-cap.test.ts +1 -1
- package/src/cli/commands/__tests__/sync-docs-agents.test.ts +1 -24
- package/src/cli/commands/__tests__/sync-docs-construction-sites.test.ts +175 -0
- package/src/cli/commands/__tests__/sync-docs-gate.test.ts +154 -0
- package/src/cli/commands/__tests__/sync-docs-table-layout.test.ts +1 -1
- package/src/cli/commands/__tests__/sync-docs.test.ts +3 -3
- package/src/cli/commands/__tests__/validate.test.ts +49 -0
- package/src/cli/commands/command.ts +2 -1
- package/src/cli/commands/constraints-disable.ts +94 -0
- package/src/cli/commands/constraints-pack-proposal.ts +27 -122
- package/src/cli/commands/constraints-reactivate.ts +22 -111
- package/src/cli/commands/constraints-retire.ts +33 -270
- package/src/cli/commands/constraints.ts +7 -31
- package/src/cli/commands/definitions.ts +16 -1
- package/src/cli/commands/init.ts +5 -19
- package/src/cli/commands/knowledge-view.ts +4 -4
- package/src/cli/commands/knowledge.ts +1 -1
- package/src/cli/commands/release.ts +2 -2
- package/src/cli/commands/scaffold-templates.ts +23 -0
- package/src/cli/commands/security.ts +1 -1
- package/src/cli/commands/sync-docs/__tests__/construction-site-count.test.ts +49 -0
- package/src/cli/commands/sync-docs/agents-syncer.ts +2 -4
- package/src/cli/commands/sync-docs/context-syncer.ts +43 -1
- package/src/cli/commands/sync-docs/head-gate.ts +87 -0
- package/src/cli/commands/sync-docs/index.ts +103 -6
- package/src/cli/commands/sync-docs/project-reader.ts +5 -0
- package/src/cli/commands/validate.ts +7 -0
- package/src/cli/gate-command.ts +1 -1
- package/src/completion-checkers/CONTEXT.md +3 -3
- package/src/completion-checkers/contract-presence.ts +1 -1
- package/src/completion-checkers/glob-match.ts +3 -35
- package/src/context/CONTEXT.md +5 -8
- package/src/context/__tests__/knowledge-injector.test.ts +21 -2
- package/src/context/__tests__/session-manager.test.ts +0 -7
- package/src/context/index.ts +1 -5
- package/src/context/knowledge-injector.ts +3 -4
- package/src/context/session-manager.ts +0 -10
- package/src/context/types.ts +0 -20
- package/src/core/CONTEXT.md +13 -7
- 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__/capabilities-reconcile.test.ts +1 -1
- package/src/core/constraints/__tests__/check-cache.test.ts +1 -8
- package/src/core/constraints/__tests__/collect-constraints.test.ts +67 -18
- 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__/run-env.test.ts +7 -7
- package/src/core/constraints/__tests__/trace-injection.test.ts +22 -17
- package/src/core/constraints/__tests__/usage-report.test.ts +9 -0
- package/src/core/constraints/capabilities-parser.ts +1 -1
- package/src/core/constraints/check-cache.ts +1 -1
- package/src/core/constraints/checker.ts +20 -1
- package/src/core/constraints/checkers/__tests__/fixtures/public-repo-sanitization.mjs +1 -1
- package/src/core/constraints/checkers/__tests__/governance-presence.test.ts +1 -1
- package/src/core/constraints/checkers/__tests__/input-contract.test.ts +3 -3
- package/src/core/constraints/checkers/__tests__/no-completion-without-verification.test.ts +227 -0
- package/src/core/constraints/checkers/__tests__/no-hardcoded-credentials.test.ts +68 -36
- package/src/core/constraints/checkers/capability-sync.ts +1 -1
- package/src/core/constraints/checkers/docs-freshness.ts +1 -1
- package/src/core/constraints/checkers/governance-presence.ts +1 -1
- package/src/core/constraints/checkers/index.ts +1 -3
- package/src/core/constraints/checkers/no-completion-without-verification.ts +141 -0
- package/src/core/constraints/checkers/no-hardcoded-credentials.ts +20 -7
- package/src/core/constraints/checkers/templated/file-exists.ts +1 -1
- package/src/core/constraints/checkers/templated/glob.ts +3 -36
- package/src/core/constraints/checkers/types.ts +1 -1
- package/src/core/constraints/construction-sites.ts +95 -0
- package/src/core/constraints/context-builder.ts +0 -18
- package/src/core/constraints/definitions/guidelines.ts +1 -1
- package/src/core/constraints/definitions/iron-laws.ts +2 -2
- package/src/core/constraints/definitions.ts +1 -1
- package/src/core/constraints/doc-freshness/__tests__/runner.test.ts +3 -3
- package/src/core/constraints/doc-freshness/runner.ts +4 -1
- package/src/core/constraints/index.ts +0 -5
- package/src/core/constraints/meta.ts +40 -0
- package/src/core/constraints/pack-proposal.ts +179 -0
- package/src/core/constraints/run-env.ts +6 -5
- package/src/core/constraints/usage-report.ts +5 -13
- package/src/core/effective-constraints.ts +7 -7
- package/src/core/index.ts +0 -16
- package/src/core/retired-constraints.ts +77 -0
- package/src/core/validators/__tests__/command-success-output.test.ts +56 -0
- package/src/core/validators/check-handlers/command.ts +44 -4
- package/src/core/validators/checkpoint.ts +4 -2
- package/src/core/validators/passes-gate.ts +4 -3
- package/src/gates/CONTEXT.md +22 -14
- package/src/gates/__tests__/acceptance-types-single-source.test.ts +7 -6
- package/src/gates/__tests__/acceptance.test.ts +3 -5
- package/src/gates/__tests__/checker-gate.test.ts +3 -3
- package/src/gates/__tests__/command.test.ts +1 -13
- package/src/gates/__tests__/decision.test.ts +35 -0
- package/src/gates/checker-gate.ts +4 -3
- package/src/gates/command.ts +4 -38
- package/src/gates/definitions.ts +2 -2
- package/src/gates/index.ts +8 -95
- package/src/gates/registry.ts +1 -1
- package/src/gates/types.ts +11 -3
- package/src/hooks/CONTEXT.md +3 -3
- package/src/index.ts +59 -98
- package/src/knowledge/CONTEXT.md +8 -6
- package/src/knowledge/__tests__/audit.test.ts +1 -1
- package/src/knowledge/__tests__/flywheel-metrics.test.ts +1 -1
- package/src/knowledge/__tests__/token-estimate.test.ts +54 -0
- package/src/knowledge/audit-scoring.ts +1 -1
- package/src/knowledge/index.ts +1 -3
- package/src/knowledge/query.ts +13 -14
- package/src/knowledge/token-estimate.ts +27 -0
- package/src/monitoring/CONTEXT.md +7 -9
- package/src/monitoring/__tests__/prune-trace-logs.test.ts +76 -0
- package/src/monitoring/__tests__/skipped-lines-report.test.ts +2 -2
- package/src/monitoring/__tests__/traces.test.ts +2 -18
- package/src/monitoring/analyzer-base.ts +0 -18
- package/src/monitoring/index.ts +2 -7
- package/src/monitoring/trace-analyzer.ts +2 -10
- package/src/monitoring/traces.ts +54 -54
- package/src/pretool-use-hook.ts +7 -7
- package/src/release/CONTEXT.md +4 -4
- package/src/release/__tests__/integrity.test.ts +3 -5
- package/src/release/integrity.ts +4 -6
- package/src/test-setup/__tests__/mkdtemp-cleanup.test.ts +1 -1
- package/src/test-setup/jsonl-fake-fs.ts +1 -1
- package/src/test-setup/mkdtemp-cleanup.ts +1 -1
- package/src/types/constraint.ts +1 -8
- package/src/types/passes-gate.ts +8 -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__/yaml-edit.test.ts +62 -0
- package/src/utils/detect-source-roots.ts +2 -20
- package/src/utils/glob-match.ts +41 -0
- package/src/utils/jsonl.ts +1 -1
- package/src/utils/yaml-edit.ts +67 -0
- package/bin/harness-knowledge-track.sh +0 -47
- package/bin/harness-sensitive-check.sh +0 -67
- 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/core/constraints/checkers/iron-flags.d.ts +0 -12
- package/dist/core/constraints/checkers/iron-flags.d.ts.map +0 -1
- package/dist/core/constraints/checkers/iron-flags.js +0 -16
- package/dist/core/constraints/checkers/iron-flags.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 -60
- 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 -55
- 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 -62
- 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 -125
- package/dist/tools/definitions/std/evolution/prioritize.yml +0 -112
- package/dist/tools/definitions/std/evolution/report-gap.yml +0 -166
- 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 -79
- package/dist/tools/definitions/std/governance/audit-task.yml +0 -178
- package/dist/tools/definitions/std/governance/cast-vote.yml +0 -129
- 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 -101
- package/dist/tools/definitions/std/governance/define-stance.sh +0 -243
- package/dist/tools/definitions/std/governance/define-stance.yml +0 -82
- package/dist/tools/definitions/std/governance/generate-review-report.yml +0 -23
- package/dist/tools/definitions/std/governance/impeach.yml +0 -179
- package/dist/tools/definitions/std/governance/multi-stance-review.yml +0 -154
- 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 -186
- package/dist/tools/definitions/std/governance/stance-review.yml +0 -149
- package/dist/tools/definitions/std/governance/track-effect.yml +0 -199
- package/dist/tools/definitions/std/governance/vote-tally.yml +0 -144
- 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 -481
- package/dist/tools/definitions/std/planning/split-tasks.yml +0 -359
- 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 +0 -51
- package/dist/tools/paths.js.map +0 -1
- package/src/__tests__/token-budget.test.ts +0 -252
- package/src/context/__tests__/token-budget.test.ts +0 -258
- package/src/context/token-budget.ts +0 -222
- package/src/core/constraints/checkers/__tests__/iron-flags.test.ts +0 -43
- package/src/core/constraints/checkers/iron-flags.ts +0 -17
- package/src/gates/__tests__/runner.test.ts +0 -81
- 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 -60
- 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 -55
- 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 -62
- 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 -125
- package/src/tools/definitions/std/evolution/prioritize.yml +0 -112
- package/src/tools/definitions/std/evolution/report-gap.yml +0 -166
- 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 -79
- package/src/tools/definitions/std/governance/audit-task.yml +0 -178
- package/src/tools/definitions/std/governance/cast-vote.yml +0 -129
- 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 -101
- package/src/tools/definitions/std/governance/define-stance.sh +0 -243
- package/src/tools/definitions/std/governance/define-stance.yml +0 -82
- package/src/tools/definitions/std/governance/generate-review-report.yml +0 -23
- package/src/tools/definitions/std/governance/impeach.yml +0 -179
- package/src/tools/definitions/std/governance/multi-stance-review.yml +0 -154
- 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 -186
- package/src/tools/definitions/std/governance/stance-review.yml +0 -149
- package/src/tools/definitions/std/governance/track-effect.yml +0 -199
- package/src/tools/definitions/std/governance/vote-tally.yml +0 -144
- 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 -481
- package/src/tools/definitions/std/planning/split-tasks.yml +0 -359
- 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/templates/nextjs-app/.github/workflows/ci.yml +0 -39
- package/templates/node-api/.github/workflows/ci.yml +0 -36
- package/templates/node-api/package.json +0 -23
- package/templates/node-api/src/index.ts +0 -2
- package/templates/node-api/tsconfig.json +0 -19
- package/templates/python-api/.github/workflows/ci.yml +0 -39
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# backlog/resolve - 解决待办项
|
|
2
|
-
#
|
|
3
|
-
# 输入:
|
|
4
|
-
# - project_path: 项目路径
|
|
5
|
-
# - item_id: 待办项 ID
|
|
6
|
-
# - resolution: 解决说明(可选)
|
|
7
|
-
#
|
|
8
|
-
# 输出:
|
|
9
|
-
# - item: 解决后的待办项
|
|
10
|
-
|
|
11
|
-
id: backlog/resolve
|
|
12
|
-
stage: plan
|
|
13
|
-
name: 解决待办项
|
|
14
|
-
description: 标记待办项为已解决
|
|
15
|
-
category: backlog
|
|
16
|
-
execute:
|
|
17
|
-
type: builtin
|
|
18
|
-
handler: backlog/resolve
|
|
19
|
-
|
|
20
|
-
inputs:
|
|
21
|
-
project_path:
|
|
22
|
-
type: string
|
|
23
|
-
description: 项目路径
|
|
24
|
-
required: true
|
|
25
|
-
item_id:
|
|
26
|
-
type: string
|
|
27
|
-
description: 待办项 ID(如 BUG-001)
|
|
28
|
-
required: true
|
|
29
|
-
resolution:
|
|
30
|
-
type: string
|
|
31
|
-
description: 解决说明
|
|
32
|
-
required: false
|
|
33
|
-
|
|
34
|
-
outputs:
|
|
35
|
-
- name: item
|
|
36
|
-
type: object
|
|
37
|
-
description: 解决后的待办项
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# backlog/update - 更新待办项
|
|
2
|
-
#
|
|
3
|
-
# 输入:
|
|
4
|
-
# - project_path: 项目路径
|
|
5
|
-
# - item_id: 待办项 ID
|
|
6
|
-
# - status: 新状态(可选)
|
|
7
|
-
# - priority: 新优先级(可选)
|
|
8
|
-
#
|
|
9
|
-
# 输出:
|
|
10
|
-
# - item: 更新后的待办项
|
|
11
|
-
|
|
12
|
-
id: backlog/update
|
|
13
|
-
stage: plan
|
|
14
|
-
name: 更新待办项
|
|
15
|
-
description: 更新待办项状态或优先级
|
|
16
|
-
category: backlog
|
|
17
|
-
execute:
|
|
18
|
-
type: builtin
|
|
19
|
-
handler: backlog/update
|
|
20
|
-
|
|
21
|
-
inputs:
|
|
22
|
-
project_path:
|
|
23
|
-
type: string
|
|
24
|
-
description: 项目路径
|
|
25
|
-
required: true
|
|
26
|
-
item_id:
|
|
27
|
-
type: string
|
|
28
|
-
description: 待办项 ID(如 BUG-001)
|
|
29
|
-
required: true
|
|
30
|
-
status:
|
|
31
|
-
type: string
|
|
32
|
-
enum: [open, in_progress, resolved, closed]
|
|
33
|
-
required: false
|
|
34
|
-
priority:
|
|
35
|
-
type: string
|
|
36
|
-
enum: [critical, high, medium, low]
|
|
37
|
-
required: false
|
|
38
|
-
|
|
39
|
-
outputs:
|
|
40
|
-
- name: item
|
|
41
|
-
type: object
|
|
42
|
-
description: 更新后的待办项
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# bugfix/diagnose - 诊断 Bug
|
|
2
|
-
#
|
|
3
|
-
# 输入:
|
|
4
|
-
# - project_path: 项目路径
|
|
5
|
-
# - bug_description: Bug 描述
|
|
6
|
-
# - error_log: 可选的错误日志
|
|
7
|
-
#
|
|
8
|
-
# 输出:
|
|
9
|
-
# - diagnosis: 诊断结果
|
|
10
|
-
|
|
11
|
-
id: bugfix/diagnose
|
|
12
|
-
stage: fix
|
|
13
|
-
name: 诊断 Bug
|
|
14
|
-
description: 分析代码和错误信息,定位 Bug 根因
|
|
15
|
-
category: bugfix
|
|
16
|
-
agent: codex
|
|
17
|
-
|
|
18
|
-
inputs:
|
|
19
|
-
project_path:
|
|
20
|
-
type: string
|
|
21
|
-
description: 项目路径
|
|
22
|
-
required: true
|
|
23
|
-
bug_description:
|
|
24
|
-
type: string
|
|
25
|
-
description: Bug 描述
|
|
26
|
-
required: true
|
|
27
|
-
error_log:
|
|
28
|
-
type: string
|
|
29
|
-
description: 错误日志(可选)
|
|
30
|
-
required: false
|
|
31
|
-
|
|
32
|
-
outputs:
|
|
33
|
-
- name: diagnosis
|
|
34
|
-
type: object
|
|
35
|
-
description: 诊断结果
|
|
36
|
-
|
|
37
|
-
prompt: |
|
|
38
|
-
你是一个专业的 Bug 诊断专家。请分析以下 Bug 并找出根因。
|
|
39
|
-
|
|
40
|
-
**Bug 描述**: {{bug_description}}
|
|
41
|
-
|
|
42
|
-
{{#if error_log}}
|
|
43
|
-
**错误日志**:
|
|
44
|
-
```
|
|
45
|
-
{{error_log}}
|
|
46
|
-
```
|
|
47
|
-
{{/if}}
|
|
48
|
-
|
|
49
|
-
**项目路径**: {{project_path}}
|
|
50
|
-
|
|
51
|
-
**任务**:
|
|
52
|
-
1. 分析相关代码文件
|
|
53
|
-
2. 找出 Bug 根因
|
|
54
|
-
3. 提出修复方案
|
|
55
|
-
|
|
56
|
-
**输出格式**(JSON):
|
|
57
|
-
```json
|
|
58
|
-
{
|
|
59
|
-
"root_cause": "根本原因描述",
|
|
60
|
-
"affected_files": ["file1.ts", "file2.ts"],
|
|
61
|
-
"fix_suggestion": "修复建议",
|
|
62
|
-
"estimated_complexity": "low/medium/high",
|
|
63
|
-
"related_tests": ["test1.test.ts"]
|
|
64
|
-
}
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
temperature: 0.2
|
|
68
|
-
timeout: 180 # 3 分钟
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# bugfix/fix - 修复 Bug
|
|
2
|
-
#
|
|
3
|
-
# 输入:
|
|
4
|
-
# - project_path: 项目路径
|
|
5
|
-
# - diagnosis: 诊断结果
|
|
6
|
-
# - bug_description: Bug 描述
|
|
7
|
-
#
|
|
8
|
-
# 输出:
|
|
9
|
-
# - fix_result: 修复结果
|
|
10
|
-
|
|
11
|
-
id: bugfix/fix
|
|
12
|
-
stage: fix
|
|
13
|
-
name: 修复 Bug
|
|
14
|
-
description: 根据诊断结果修复 Bug
|
|
15
|
-
category: bugfix
|
|
16
|
-
agent: codex
|
|
17
|
-
|
|
18
|
-
inputs:
|
|
19
|
-
project_path:
|
|
20
|
-
type: string
|
|
21
|
-
description: 项目路径
|
|
22
|
-
required: true
|
|
23
|
-
diagnosis:
|
|
24
|
-
type: object
|
|
25
|
-
description: 诊断结果
|
|
26
|
-
required: true
|
|
27
|
-
bug_description:
|
|
28
|
-
type: string
|
|
29
|
-
description: Bug 描述
|
|
30
|
-
required: true
|
|
31
|
-
|
|
32
|
-
outputs:
|
|
33
|
-
- name: fix_result
|
|
34
|
-
type: object
|
|
35
|
-
description: 修复结果
|
|
36
|
-
|
|
37
|
-
prompt: |
|
|
38
|
-
你是一个专业的 Bug 修复工程师。请根据诊断结果修复 Bug。
|
|
39
|
-
|
|
40
|
-
**Bug 描述**: {{bug_description}}
|
|
41
|
-
|
|
42
|
-
**诊断结果**:
|
|
43
|
-
```json
|
|
44
|
-
{{diagnosis}}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
**项目路径**: {{project_path}}
|
|
48
|
-
|
|
49
|
-
**要求**:
|
|
50
|
-
1. 只修改必要的代码
|
|
51
|
-
2. 保持代码风格一致
|
|
52
|
-
3. 添加必要的注释说明修复原因
|
|
53
|
-
4. 不引入新问题
|
|
54
|
-
|
|
55
|
-
**输出格式**(JSON):
|
|
56
|
-
```json
|
|
57
|
-
{
|
|
58
|
-
"files_modified": ["file1.ts"],
|
|
59
|
-
"changes_summary": "修改摘要",
|
|
60
|
-
"potential_side_effects": ["可能的副作用"],
|
|
61
|
-
"needs_test_update": true/false
|
|
62
|
-
}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
temperature: 0.1
|
|
66
|
-
timeout: 180 # 3 分钟
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# bugfix/verify - 验证 Bug 修复
|
|
2
|
-
#
|
|
3
|
-
# 输入:
|
|
4
|
-
# - project_path: 项目路径
|
|
5
|
-
# - diagnosis: 诊断结果
|
|
6
|
-
# - fix_result: 修复结果
|
|
7
|
-
#
|
|
8
|
-
# 输出:
|
|
9
|
-
# - verify_result: 验证结果
|
|
10
|
-
|
|
11
|
-
id: bugfix/verify
|
|
12
|
-
stage: fix
|
|
13
|
-
name: 验证修复
|
|
14
|
-
description: 验证 Bug 是否已正确修复
|
|
15
|
-
category: bugfix
|
|
16
|
-
agent: codex
|
|
17
|
-
|
|
18
|
-
inputs:
|
|
19
|
-
project_path:
|
|
20
|
-
type: string
|
|
21
|
-
description: 项目路径
|
|
22
|
-
required: true
|
|
23
|
-
diagnosis:
|
|
24
|
-
type: object
|
|
25
|
-
description: 诊断结果
|
|
26
|
-
required: true
|
|
27
|
-
fix_result:
|
|
28
|
-
type: object
|
|
29
|
-
description: 修复结果
|
|
30
|
-
required: true
|
|
31
|
-
|
|
32
|
-
outputs:
|
|
33
|
-
- name: verify_result
|
|
34
|
-
type: object
|
|
35
|
-
description: 验证结果
|
|
36
|
-
|
|
37
|
-
prompt: |
|
|
38
|
-
你是一个质量保证工程师。请验证 Bug 修复是否正确。
|
|
39
|
-
|
|
40
|
-
**诊断结果**:
|
|
41
|
-
```json
|
|
42
|
-
{{diagnosis}}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
**修复结果**:
|
|
46
|
-
```json
|
|
47
|
-
{{fix_result}}
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
**项目路径**: {{project_path}}
|
|
51
|
-
|
|
52
|
-
**验证任务**:
|
|
53
|
-
1. 运行相关测试(如果有)
|
|
54
|
-
2. 检查修复是否解决了根本原因
|
|
55
|
-
3. 确认没有引入新问题
|
|
56
|
-
|
|
57
|
-
**输出格式**(JSON):
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"tests_passed": true/false,
|
|
61
|
-
"test_output": "测试输出摘要",
|
|
62
|
-
"bug_fixed": true/false,
|
|
63
|
-
"side_effects_detected": [],
|
|
64
|
-
"recommendation": "可以提交/需要进一步修复"
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
temperature: 0.1
|
|
69
|
-
timeout: 120 # 2 分钟
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
# check-decomposition.yml - 检查功能拆解
|
|
2
|
-
# ============================================================================
|
|
3
|
-
# 类型: 验证步骤
|
|
4
|
-
# 用途: 检查每个功能是否都有可验证的 passes 子任务
|
|
5
|
-
# Long-Running Agents 铁律: 功能实现前必须拆解为可验证的子任务
|
|
6
|
-
# ============================================================================
|
|
7
|
-
|
|
8
|
-
name: check-decomposition
|
|
9
|
-
stage: govern
|
|
10
|
-
description: 检查功能是否已拆解为可验证的 passes 子任务
|
|
11
|
-
category: validation
|
|
12
|
-
version: 1.0.0
|
|
13
|
-
|
|
14
|
-
inputs:
|
|
15
|
-
- name: project_path
|
|
16
|
-
type: path
|
|
17
|
-
required: true
|
|
18
|
-
description: 项目路径
|
|
19
|
-
|
|
20
|
-
- name: constraint_level
|
|
21
|
-
type: string
|
|
22
|
-
default: guideline
|
|
23
|
-
enum: [iron_law, guideline, tip]
|
|
24
|
-
description: |
|
|
25
|
-
约束级别:
|
|
26
|
-
- iron_law: 违反时必须停止
|
|
27
|
-
- guideline: 违反时警告
|
|
28
|
-
- tip: 仅提示
|
|
29
|
-
|
|
30
|
-
- name: exceptions
|
|
31
|
-
type: array
|
|
32
|
-
default: [trivial_change, bug_fix_only, internal_refactor]
|
|
33
|
-
description: 允许例外的情况
|
|
34
|
-
|
|
35
|
-
outputs:
|
|
36
|
-
- name: passed
|
|
37
|
-
type: boolean
|
|
38
|
-
description: 是否通过检查
|
|
39
|
-
|
|
40
|
-
- name: violations
|
|
41
|
-
type: array
|
|
42
|
-
description: 违规的功能 ID 列表
|
|
43
|
-
|
|
44
|
-
- name: warning_count
|
|
45
|
-
type: number
|
|
46
|
-
description: 警告数量
|
|
47
|
-
|
|
48
|
-
- name: error_count
|
|
49
|
-
type: number
|
|
50
|
-
description: 错误数量(iron_law 级别)
|
|
51
|
-
|
|
52
|
-
# Prompt
|
|
53
|
-
prompt: |
|
|
54
|
-
你是 Long-Running Agents 约束检查器。请检查功能拆解约束。
|
|
55
|
-
|
|
56
|
-
## 项目路径
|
|
57
|
-
|
|
58
|
-
{{project_path}}
|
|
59
|
-
|
|
60
|
-
## 约束级别
|
|
61
|
-
|
|
62
|
-
{{constraint_level}}
|
|
63
|
-
|
|
64
|
-
## 铁律定义
|
|
65
|
-
|
|
66
|
-
**no_feature_without_decomposition**:
|
|
67
|
-
实现功能前必须先拆解为可验证的子任务(passes)
|
|
68
|
-
|
|
69
|
-
## 检查流程
|
|
70
|
-
|
|
71
|
-
1. 加载 feature_list.json:
|
|
72
|
-
```bash
|
|
73
|
-
cat {{project_path}}/feature_list.json
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
2. 对每个 feature 检查:
|
|
77
|
-
- 是否有 `passes` 字段
|
|
78
|
-
- `passes` 数组是否非空
|
|
79
|
-
- 每个 pass 是否有 `description` 和 `verification`
|
|
80
|
-
|
|
81
|
-
3. 识别例外情况(跳过检查):
|
|
82
|
-
{{exceptions}}
|
|
83
|
-
|
|
84
|
-
4. 输出结果:
|
|
85
|
-
```json
|
|
86
|
-
{
|
|
87
|
-
"passed": true/false,
|
|
88
|
-
"violations": ["feature-id-1", "feature-id-2"],
|
|
89
|
-
"warning_count": N,
|
|
90
|
-
"error_count": N // 只在 iron_law 级别
|
|
91
|
-
}
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## 约束级别处理
|
|
95
|
-
|
|
96
|
-
- **iron_law**: 违规必须返回 passed=false, error_count>0
|
|
97
|
-
- **guideline**: 违规返回 passed=true, warning_count>0
|
|
98
|
-
- **tip**: 违规返回 passed=true,仅提示
|
|
99
|
-
|
|
100
|
-
## 注意
|
|
101
|
-
|
|
102
|
-
- 如果 feature_list.json 不存在,返回 passed=true(跳过检查)
|
|
103
|
-
- 只检查 `status` 不是 `completed` 的功能
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# check-feature-list.yml - 检查 feature_list.json
|
|
2
|
-
# ============================================================================
|
|
3
|
-
# 类型: 验证步骤
|
|
4
|
-
# 用途: 检查项目是否存在 feature_list.json 并验证格式
|
|
5
|
-
# ============================================================================
|
|
6
|
-
|
|
7
|
-
name: check-feature-list
|
|
8
|
-
stage: govern
|
|
9
|
-
description: 检查 feature_list.json 存在性和格式
|
|
10
|
-
category: validation
|
|
11
|
-
version: 1.0.0
|
|
12
|
-
|
|
13
|
-
inputs:
|
|
14
|
-
- name: project_path
|
|
15
|
-
type: path
|
|
16
|
-
required: true
|
|
17
|
-
description: 项目路径
|
|
18
|
-
|
|
19
|
-
- name: strict
|
|
20
|
-
type: boolean
|
|
21
|
-
default: false
|
|
22
|
-
description: 是否严格模式(缺失时报错)
|
|
23
|
-
|
|
24
|
-
outputs:
|
|
25
|
-
- name: exists
|
|
26
|
-
type: boolean
|
|
27
|
-
description: feature_list.json 是否存在
|
|
28
|
-
|
|
29
|
-
- name: valid
|
|
30
|
-
type: boolean
|
|
31
|
-
description: 格式是否正确
|
|
32
|
-
|
|
33
|
-
- name: feature_count
|
|
34
|
-
type: number
|
|
35
|
-
description: 功能数量
|
|
36
|
-
|
|
37
|
-
- name: features_with_passes
|
|
38
|
-
type: number
|
|
39
|
-
description: 有 passes 字段的功能数量
|
|
40
|
-
|
|
41
|
-
- name: errors
|
|
42
|
-
type: array
|
|
43
|
-
description: 错误列表
|
|
44
|
-
|
|
45
|
-
# Prompt(用于 Agent 执行)
|
|
46
|
-
prompt: |
|
|
47
|
-
你是项目约束检查器。请检查项目的 feature_list.json 文件。
|
|
48
|
-
|
|
49
|
-
## 项目路径
|
|
50
|
-
|
|
51
|
-
{{project_path}}
|
|
52
|
-
|
|
53
|
-
## 检查流程
|
|
54
|
-
|
|
55
|
-
1. 检查文件是否存在: `{{project_path}}/feature_list.json`
|
|
56
|
-
|
|
57
|
-
2. 如果存在,检查格式:
|
|
58
|
-
- 是否是有效的 JSON
|
|
59
|
-
- 是否有 `features` 数组字段
|
|
60
|
-
- 每个 feature 是否有 `id`, `name`, `description` 字段
|
|
61
|
-
- 检查有多少 feature 有 `passes` 字段
|
|
62
|
-
|
|
63
|
-
3. 输出检查结果:
|
|
64
|
-
```json
|
|
65
|
-
{
|
|
66
|
-
"exists": true/false,
|
|
67
|
-
"valid": true/false,
|
|
68
|
-
"feature_count": N,
|
|
69
|
-
"features_with_passes": N,
|
|
70
|
-
"errors": ["错误1", "错误2", ...]
|
|
71
|
-
}
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## 注意
|
|
75
|
-
|
|
76
|
-
- 如果 strict=true 且文件不存在,返回错误
|
|
77
|
-
- 如果 strict=false 且文件不存在,返回 exists=false, valid=false(不报错)
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# check-progress.yml - 检查 progress.json
|
|
2
|
-
# ============================================================================
|
|
3
|
-
# 类型: 验证步骤
|
|
4
|
-
# 用途: 检查跨 session 进度追踪文件
|
|
5
|
-
# Long-Running Agents: progress.json 用于追踪跨 session 的功能完成进度
|
|
6
|
-
# ============================================================================
|
|
7
|
-
|
|
8
|
-
name: check-progress
|
|
9
|
-
stage: govern
|
|
10
|
-
description: 检查 progress.json 跨 session 进度追踪
|
|
11
|
-
category: validation
|
|
12
|
-
version: 1.0.0
|
|
13
|
-
|
|
14
|
-
inputs:
|
|
15
|
-
- name: project_path
|
|
16
|
-
type: path
|
|
17
|
-
required: true
|
|
18
|
-
description: 项目路径
|
|
19
|
-
|
|
20
|
-
- name: require_passes_evidence
|
|
21
|
-
type: boolean
|
|
22
|
-
default: true
|
|
23
|
-
description: 是否要求 passes 有证据(截图/测试结果)
|
|
24
|
-
|
|
25
|
-
outputs:
|
|
26
|
-
- name: exists
|
|
27
|
-
type: boolean
|
|
28
|
-
description: progress.json 是否存在
|
|
29
|
-
|
|
30
|
-
- name: valid
|
|
31
|
-
type: boolean
|
|
32
|
-
description: 格式是否正确
|
|
33
|
-
|
|
34
|
-
- name: completed_features
|
|
35
|
-
type: number
|
|
36
|
-
description: 已完成的功能数量
|
|
37
|
-
|
|
38
|
-
- name: in_progress_features
|
|
39
|
-
type: number
|
|
40
|
-
description: 进行中的功能数量
|
|
41
|
-
|
|
42
|
-
- name: passes_with_evidence
|
|
43
|
-
type: number
|
|
44
|
-
description: 有证据的 passes 数量
|
|
45
|
-
|
|
46
|
-
- name: passes_without_evidence
|
|
47
|
-
type: number
|
|
48
|
-
description: 缺失证据的 passes 数量
|
|
49
|
-
|
|
50
|
-
- name: errors
|
|
51
|
-
type: array
|
|
52
|
-
description: 错误列表
|
|
53
|
-
|
|
54
|
-
# Prompt
|
|
55
|
-
prompt: |
|
|
56
|
-
你是 Long-Running Agents 进度检查器。请检查 progress.json。
|
|
57
|
-
|
|
58
|
-
## 项目路径
|
|
59
|
-
|
|
60
|
-
{{project_path}}
|
|
61
|
-
|
|
62
|
-
## 检查流程
|
|
63
|
-
|
|
64
|
-
1. 检查文件是否存在: `{{project_path}}/progress.json`
|
|
65
|
-
|
|
66
|
-
2. 如果存在,检查格式:
|
|
67
|
-
- 是否是有效的 JSON
|
|
68
|
-
- 是否有 `features` 字段
|
|
69
|
-
- 每个 feature 是否有 `id`, `status`, `passes` 字段
|
|
70
|
-
- `status` 是否是有效值: pending, in_progress, completed
|
|
71
|
-
|
|
72
|
-
3. 统计:
|
|
73
|
-
- 已完成功能数量(status=completed)
|
|
74
|
-
- 进行中功能数量(status=in_progress)
|
|
75
|
-
- 有证据的 passes 数量(有 screenshot 或 test_result)
|
|
76
|
-
- 缺失证据的 passes 数量
|
|
77
|
-
|
|
78
|
-
4. 如果 require_passes_evidence=true:
|
|
79
|
-
- 检查每个 completed 的 feature 的 passes 是否有证据
|
|
80
|
-
|
|
81
|
-
5. 输出结果:
|
|
82
|
-
```json
|
|
83
|
-
{
|
|
84
|
-
"exists": true/false,
|
|
85
|
-
"valid": true/false,
|
|
86
|
-
"completed_features": N,
|
|
87
|
-
"in_progress_features": N,
|
|
88
|
-
"passes_with_evidence": N,
|
|
89
|
-
"passes_without_evidence": N,
|
|
90
|
-
"errors": ["错误1", ...]
|
|
91
|
-
}
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## 注意
|
|
95
|
-
|
|
96
|
-
- progress.json 是可选的(不存在时不报错)
|
|
97
|
-
- 如果不存在,返回 exists=false, valid=false
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
# generate-report.yml - 生成约束检查报告
|
|
2
|
-
# ============================================================================
|
|
3
|
-
# 类型: 汇总步骤
|
|
4
|
-
# 用途: 汇总所有约束检查结果,生成报告
|
|
5
|
-
# ============================================================================
|
|
6
|
-
|
|
7
|
-
name: generate-report
|
|
8
|
-
stage: govern
|
|
9
|
-
description: 生成约束检查汇总报告
|
|
10
|
-
category: reporting
|
|
11
|
-
version: 1.0.0
|
|
12
|
-
|
|
13
|
-
inputs:
|
|
14
|
-
- name: project_path
|
|
15
|
-
type: path
|
|
16
|
-
required: true
|
|
17
|
-
description: 项目路径
|
|
18
|
-
|
|
19
|
-
- name: constraint_level
|
|
20
|
-
type: string
|
|
21
|
-
required: true
|
|
22
|
-
description: 约束级别
|
|
23
|
-
|
|
24
|
-
- name: feature_list_result
|
|
25
|
-
type: object
|
|
26
|
-
required: true
|
|
27
|
-
description: feature_list 检查结果
|
|
28
|
-
|
|
29
|
-
- name: decomposition_result
|
|
30
|
-
type: object
|
|
31
|
-
required: true
|
|
32
|
-
description: 功能拆解检查结果
|
|
33
|
-
|
|
34
|
-
- name: progress_result
|
|
35
|
-
type: object
|
|
36
|
-
required: true
|
|
37
|
-
description: progress 检查结果
|
|
38
|
-
|
|
39
|
-
- name: output_format
|
|
40
|
-
type: string
|
|
41
|
-
default: summary
|
|
42
|
-
enum: [summary, detailed, json]
|
|
43
|
-
description: 输出格式
|
|
44
|
-
|
|
45
|
-
outputs:
|
|
46
|
-
- name: passed
|
|
47
|
-
type: boolean
|
|
48
|
-
description: 是否通过所有约束
|
|
49
|
-
|
|
50
|
-
- name: total_checks
|
|
51
|
-
type: number
|
|
52
|
-
description: 总检查项数
|
|
53
|
-
|
|
54
|
-
- name: passed_checks
|
|
55
|
-
type: number
|
|
56
|
-
description: 通过的检查项数
|
|
57
|
-
|
|
58
|
-
- name: violations
|
|
59
|
-
type: array
|
|
60
|
-
description: 所有违规项
|
|
61
|
-
|
|
62
|
-
- name: report
|
|
63
|
-
type: object
|
|
64
|
-
description: 详细报告
|
|
65
|
-
|
|
66
|
-
- name: report_file
|
|
67
|
-
type: path
|
|
68
|
-
description: 报告文件路径
|
|
69
|
-
|
|
70
|
-
# Prompt
|
|
71
|
-
prompt: |
|
|
72
|
-
你是约束检查报告生成器。请汇总所有检查结果生成报告。
|
|
73
|
-
|
|
74
|
-
## 项目信息
|
|
75
|
-
|
|
76
|
-
项目路径: {{project_path}}
|
|
77
|
-
约束级别: {{constraint_level}}
|
|
78
|
-
|
|
79
|
-
## 检查结果
|
|
80
|
-
|
|
81
|
-
### feature_list.json 检查
|
|
82
|
-
```json
|
|
83
|
-
{{feature_list_result}}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### 功能拆解检查
|
|
87
|
-
```json
|
|
88
|
-
{{decomposition_result}}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### progress.json 检查
|
|
92
|
-
```json
|
|
93
|
-
{{progress_result}}
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
## 报告生成
|
|
97
|
-
|
|
98
|
-
根据 output_format 生成报告:
|
|
99
|
-
|
|
100
|
-
### summary 格式(默认)
|
|
101
|
-
|
|
102
|
-
```
|
|
103
|
-
🔍 Long-Running Agents 约束检查
|
|
104
|
-
|
|
105
|
-
项目路径: {{project_path}}
|
|
106
|
-
约束级别: {{constraint_level}}
|
|
107
|
-
|
|
108
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
109
|
-
|
|
110
|
-
检查项 状态 说明
|
|
111
|
-
────────────────────────────────────────────
|
|
112
|
-
feature_list.json ✅/⚠️/❌ ...
|
|
113
|
-
功能拆解 ✅/⚠️/❌ ...
|
|
114
|
-
progress.json ✅/⚠️/❌ ...
|
|
115
|
-
|
|
116
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
117
|
-
|
|
118
|
-
结果: ✅ 通过 / ❌ 失败 (N/M)
|
|
119
|
-
|
|
120
|
-
违规项: [列表]
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
### detailed 格式
|
|
124
|
-
|
|
125
|
-
包含每个检查项的详细信息、错误列表、建议修复
|
|
126
|
-
|
|
127
|
-
### json 格式
|
|
128
|
-
|
|
129
|
-
```json
|
|
130
|
-
{
|
|
131
|
-
"passed": true/false,
|
|
132
|
-
"total_checks": N,
|
|
133
|
-
"passed_checks": N,
|
|
134
|
-
"violations": [...],
|
|
135
|
-
"checks": {
|
|
136
|
-
"feature_list": {...},
|
|
137
|
-
"decomposition": {...},
|
|
138
|
-
"progress": {...}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
## 输出
|
|
144
|
-
|
|
145
|
-
将报告保存到: {{project_path}}/.constraint-report.json
|
|
146
|
-
|
|
147
|
-
同时输出 JSON 格式的 passed/total_checks/passed_checks/violations/report
|