opencode-swarm 7.0.0-beta.1 → 7.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/LICENSE +21 -0
- package/README.md +1265 -40
- package/dist/__tests__/acknowledge-spec-drift.test.d.ts +1 -0
- package/dist/__tests__/cli-version.adversarial.test.d.ts +1 -0
- package/dist/__tests__/cli-version.test.d.ts +1 -0
- package/dist/__tests__/conflict-resolution.test.d.ts +1 -0
- package/dist/__tests__/convene-general-council.test.d.ts +10 -0
- package/dist/__tests__/critic_drift_verifier-whitelist.test.d.ts +1 -0
- package/dist/__tests__/critic_hallucination_verifier-whitelist.test.d.ts +1 -0
- package/dist/__tests__/disagreement-detector.test.d.ts +7 -0
- package/dist/__tests__/evidence-lock.adversarial.test.d.ts +8 -0
- package/dist/__tests__/evidence-lock.test.d.ts +6 -0
- package/dist/__tests__/gate-evidence.adversarial.test.d.ts +7 -0
- package/dist/__tests__/general-council-service.test.d.ts +7 -0
- package/dist/__tests__/lint-spec.test.d.ts +1 -0
- package/dist/__tests__/preflight-phase.test.d.ts +1 -0
- package/dist/__tests__/qa-gate-hardening.test.d.ts +12 -0
- package/dist/__tests__/req-coverage.test.d.ts +1 -0
- package/dist/__tests__/security-adversarial.test.d.ts +1 -0
- package/dist/__tests__/sounding-board-parser.test.d.ts +1 -0
- package/dist/__tests__/spec-hash.test.d.ts +1 -0
- package/dist/__tests__/spec-schema.test.d.ts +1 -0
- package/dist/__tests__/web-search-provider.test.d.ts +6 -0
- package/dist/__tests__/write-drift-evidence-requirement-coverage.test.d.ts +4 -0
- package/dist/adversarial-tests.test.d.ts +1 -0
- package/dist/agents/architect-permission.adversarial.test.d.ts +5 -0
- package/dist/agents/architect.commands-list.adversarial.test.d.ts +1 -0
- package/dist/agents/architect.commands-list.test.d.ts +1 -0
- package/dist/agents/architect.d.ts +57 -0
- package/dist/agents/architect.dark-matter.test.d.ts +1 -0
- package/dist/agents/architect.designer-gate.test.d.ts +1 -0
- package/dist/agents/coder.d.ts +2 -0
- package/dist/agents/council-member.d.ts +30 -0
- package/dist/agents/council-member.test.d.ts +8 -0
- package/dist/agents/council-moderator.d.ts +20 -0
- package/dist/agents/critic.d.ts +34 -0
- package/dist/agents/curator-agent.d.ts +14 -0
- package/dist/agents/designer.d.ts +2 -0
- package/dist/agents/docs.d.ts +2 -0
- package/dist/agents/explorer-consumer-contract.test.d.ts +1 -0
- package/dist/agents/explorer-role-boundary.test.d.ts +1 -0
- package/dist/agents/explorer.d.ts +5 -0
- package/dist/agents/index.d.ts +52 -0
- package/dist/agents/reviewer.d.ts +5 -0
- package/dist/agents/sme.d.ts +2 -0
- package/dist/agents/test-engineer.adversarial.test.d.ts +5 -0
- package/dist/agents/test-engineer.d.ts +2 -0
- package/dist/agents/test-engineer.security.test.d.ts +1 -0
- package/dist/background/circuit-breaker.d.ts +149 -0
- package/dist/background/event-bus.d.ts +60 -0
- package/dist/background/evidence-summary-integration.d.ts +73 -0
- package/dist/background/index.d.ts +22 -0
- package/dist/background/manager.d.ts +122 -0
- package/dist/background/plan-sync-worker.d.ts +122 -0
- package/dist/background/queue.d.ts +117 -0
- package/dist/background/status-artifact.d.ts +115 -0
- package/dist/background/trigger.d.ts +179 -0
- package/dist/background/trigger.vulnerability.test.d.ts +1 -0
- package/dist/background/worker.d.ts +92 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.js +31227 -11423
- package/dist/commands/acknowledge-spec-drift.d.ts +5 -0
- package/dist/commands/brainstorm.d.ts +13 -0
- package/dist/commands/brainstorm.test.d.ts +1 -0
- package/dist/commands/checkpoint.d.ts +5 -0
- package/dist/commands/close.d.ts +11 -0
- package/dist/commands/command-adapters.security.test.d.ts +14 -0
- package/dist/commands/commands.test.d.ts +1 -0
- package/dist/commands/config.d.ts +5 -0
- package/dist/commands/council.d.ts +17 -0
- package/dist/commands/council.test.d.ts +4 -0
- package/dist/commands/curate.test.d.ts +1 -0
- package/dist/commands/doctor.d.ts +17 -0
- package/dist/commands/full-auto-config-guard.test.d.ts +7 -0
- package/dist/commands/full-auto-discoverability.test.d.ts +8 -0
- package/dist/commands/full-auto-registration.test.d.ts +5 -0
- package/dist/commands/full-auto-sessionid.test.d.ts +5 -0
- package/dist/commands/full-auto.d.ts +10 -0
- package/dist/commands/full-auto.regression.test.d.ts +10 -0
- package/dist/commands/full-auto.test.d.ts +6 -0
- package/dist/commands/index.d.ts +50 -0
- package/dist/commands/index.help-text.test.d.ts +1 -0
- package/dist/commands/issue.d.ts +13 -0
- package/dist/{knowledge.d.ts → commands/knowledge.d.ts} +2 -0
- package/dist/commands/pr-review.d.ts +11 -0
- package/dist/commands/qa-gates.d.ts +15 -0
- package/dist/commands/qa-gates.test.d.ts +1 -0
- package/dist/commands/registry-documentation.test.d.ts +1 -0
- package/dist/commands/registry-type.test.d.ts +1 -0
- package/dist/commands/registry.d.ts +282 -0
- package/dist/commands/reset-session.d.ts +7 -0
- package/dist/commands/shortcut-routing.test.d.ts +11 -0
- package/dist/{sync-plan.d.ts → commands/sync-plan.d.ts} +3 -1
- package/dist/commands/turbo-registration.test.d.ts +5 -0
- package/dist/commands/turbo-sessionid.test.d.ts +5 -0
- package/dist/commands/turbo.regression.test.d.ts +11 -0
- package/dist/commands/turbo.test.d.ts +5 -0
- package/dist/config/agent-categories.d.ts +12 -0
- package/dist/config/cache-paths.d.ts +11 -0
- package/dist/config/constants.architect-whitelist.test.d.ts +1 -0
- package/dist/config/constants.d.ts +72 -0
- package/dist/config/evidence-schema.d.ts +1352 -0
- package/dist/config/index.d.ts +11 -0
- package/dist/{config.d.ts → config/loader.d.ts} +11 -6
- package/dist/config/plan-schema.d.ts +191 -0
- package/dist/config/schema.d.ts +1078 -0
- package/dist/config/spec-schema.d.ts +113 -0
- package/dist/context/role-filter.d.ts +27 -0
- package/dist/context/zone-classifier.d.ts +17 -0
- package/dist/council/__tests__/council-evidence-writer.adversarial.test.d.ts +6 -0
- package/dist/council/council-advisory.d.ts +46 -0
- package/dist/council/council-evidence-writer.d.ts +18 -0
- package/dist/council/council-service.d.ts +21 -0
- package/dist/council/criteria-store.d.ts +9 -0
- package/dist/council/disagreement-detector.d.ts +24 -0
- package/dist/council/general-council-advisory.d.ts +29 -0
- package/dist/council/general-council-service.d.ts +22 -0
- package/dist/council/general-council-types.d.ts +98 -0
- package/dist/council/types.d.ts +126 -0
- package/dist/council/web-search-provider.d.ts +35 -0
- package/dist/db/global-db.d.ts +22 -0
- package/dist/db/global-db.test.d.ts +7 -0
- package/dist/db/index.d.ts +13 -0
- package/dist/db/project-db.d.ts +40 -0
- package/dist/db/project-db.test.d.ts +4 -0
- package/dist/db/qa-gate-profile.d.ts +107 -0
- package/dist/db/qa-gate-profile.test.d.ts +4 -0
- package/dist/diff/__tests__/semantic-classifier.test.d.ts +1 -0
- package/dist/diff/__tests__/summary-generator.test.d.ts +1 -0
- package/dist/diff/ast-diff.d.ts +21 -0
- package/dist/diff/semantic-classifier.d.ts +59 -0
- package/dist/diff/summary-generator.d.ts +33 -0
- package/dist/environment/index.d.ts +3 -0
- package/dist/environment/profile.d.ts +50 -0
- package/dist/environment/prompt-renderer.d.ts +6 -0
- package/dist/evidence/index.d.ts +2 -0
- package/dist/evidence/lock.d.ts +36 -0
- package/dist/evidence/manager.d.ts +78 -0
- package/dist/gate-evidence.d.ts +69 -0
- package/dist/gate-evidence.test.d.ts +1 -0
- package/dist/git/branch.d.ts +70 -0
- package/dist/git/index.d.ts +22 -0
- package/dist/git/pr.d.ts +28 -0
- package/dist/graph/graph-builder.d.ts +39 -0
- package/dist/graph/graph-query.d.ts +42 -0
- package/dist/graph/graph-store.d.ts +27 -0
- package/dist/graph/import-extractor.d.ts +44 -0
- package/dist/graph/index.d.ts +16 -0
- package/dist/graph/symbol-extractor.d.ts +17 -0
- package/dist/graph/types.d.ts +84 -0
- package/dist/hooks/__tests__/semantic-diff-injection.test.d.ts +1 -0
- package/dist/hooks/adversarial-detector.d.ts +50 -0
- package/dist/hooks/agent-activity.d.ts +38 -0
- package/dist/hooks/co-change-suggester.d.ts +51 -0
- package/dist/hooks/compaction-customizer.d.ts +11 -0
- package/dist/hooks/conflict-resolution.d.ts +12 -0
- package/dist/hooks/context-budget.d.ts +34 -0
- package/dist/hooks/context-scoring.d.ts +70 -0
- package/dist/hooks/curator-drift-advisory.test.d.ts +1 -0
- package/dist/hooks/curator-drift.d.ts +30 -0
- package/dist/hooks/curator-llm-factory.d.ts +20 -0
- package/dist/hooks/curator-types.d.ts +103 -0
- package/dist/hooks/curator.d.ts +108 -0
- package/dist/hooks/dark-matter-detector.d.ts +38 -0
- package/dist/hooks/delegation-gate.d.ts +78 -0
- package/dist/hooks/delegation-gate.evidence.test.d.ts +4 -0
- package/dist/hooks/delegation-gate.getEvidenceTaskId.test.d.ts +20 -0
- package/dist/hooks/delegation-gate.plan-fallback-security.test.d.ts +13 -0
- package/dist/hooks/delegation-gate.plan-fallback.test.d.ts +5 -0
- package/dist/hooks/delegation-gate.seed-state.test.d.ts +1 -0
- package/dist/hooks/delegation-gate.turbo-evidence.test.d.ts +8 -0
- package/dist/hooks/delegation-gate.verify.test.d.ts +11 -0
- package/dist/hooks/delegation-ledger.d.ts +37 -0
- package/dist/hooks/delegation-ledger.test.d.ts +11 -0
- package/dist/hooks/delegation-sanitizer.d.ts +24 -0
- package/dist/hooks/delegation-tracker.d.ts +15 -0
- package/dist/hooks/diff-scope.d.ts +12 -0
- package/dist/hooks/diff-scope.test.d.ts +1 -0
- package/dist/hooks/extractors.d.ts +53 -0
- package/dist/hooks/full-auto-intercept.d.ts +77 -0
- package/dist/hooks/guardrails.d.ts +174 -0
- package/dist/hooks/hive-promoter.d.ts +40 -0
- package/dist/hooks/incremental-verify.d.ts +34 -0
- package/dist/hooks/incremental-verify.test.d.ts +1 -0
- package/dist/hooks/index.d.ts +20 -0
- package/dist/hooks/knowledge-curator.d.ts +27 -0
- package/dist/hooks/knowledge-injector.d.ts +20 -0
- package/dist/hooks/knowledge-migrator.d.ts +11 -0
- package/dist/hooks/knowledge-reader.d.ts +22 -0
- package/dist/hooks/knowledge-store.d.ts +30 -0
- package/dist/hooks/knowledge-types.d.ts +131 -0
- package/dist/hooks/knowledge-validator.d.ts +29 -0
- package/dist/hooks/loop-detector.d.ts +17 -0
- package/dist/hooks/loop-detector.test.d.ts +1 -0
- package/dist/hooks/message-priority.d.ts +105 -0
- package/dist/hooks/messages-transform.d.ts +13 -0
- package/dist/hooks/model-limits.d.ts +96 -0
- package/dist/hooks/normalize-tool-name.d.ts +25 -0
- package/dist/hooks/phase-monitor.d.ts +29 -0
- package/dist/hooks/pipeline-tracker.d.ts +41 -0
- package/dist/hooks/repo-graph-builder.d.ts +32 -0
- package/dist/hooks/repo-graph-injection.d.ts +45 -0
- package/dist/hooks/review-receipt.d.ts +189 -0
- package/dist/hooks/scope-guard-throw-behavior.test.d.ts +15 -0
- package/dist/hooks/scope-guard.adversarial.test.d.ts +1 -0
- package/dist/hooks/scope-guard.d.ts +43 -0
- package/dist/hooks/scope-guard.test.d.ts +14 -0
- package/dist/hooks/self-review.d.ts +14 -0
- package/dist/hooks/self-review.test.d.ts +14 -0
- package/dist/hooks/semantic-diff-injection.d.ts +24 -0
- package/dist/hooks/slop-detector.adversarial.test.d.ts +1 -0
- package/dist/hooks/slop-detector.d.ts +17 -0
- package/dist/hooks/slop-detector.test.d.ts +1 -0
- package/dist/hooks/spawn-helper.d.ts +5 -0
- package/dist/hooks/spawn-helper.test.d.ts +1 -0
- package/dist/hooks/steering-consumed.d.ts +30 -0
- package/dist/hooks/system-enhancer.d.ts +30 -0
- package/dist/hooks/tool-summarizer.d.ts +28 -0
- package/dist/hooks/trajectory-logger.d.ts +69 -0
- package/dist/hooks/utils.d.ts +20 -0
- package/dist/hooks/watchdog.integration.test.d.ts +9 -0
- package/dist/index.adversarial-bootstrap.test.d.ts +1 -0
- package/dist/index.bootstrap-adversarial.test.d.ts +1 -0
- package/dist/index.bootstrap-directory.test.d.ts +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.js +74704 -47714
- package/dist/knowledge/identity.d.ts +25 -0
- package/dist/knowledge/index.d.ts +2 -0
- package/dist/lang/detector.d.ts +20 -0
- package/dist/lang/framework-detector.d.ts +98 -0
- package/dist/lang/grammars/tree-sitter-dart.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-kotlin.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-swift.wasm +0 -0
- package/dist/lang/grammars/tree-sitter.wasm +0 -0
- package/dist/lang/index.d.ts +4 -0
- package/dist/lang/profiles.d.ts +72 -0
- package/dist/lang/registry.d.ts +24 -0
- package/dist/lang/runtime.d.ts +35 -0
- package/dist/model-fallback.adversarial.test.d.ts +22 -0
- package/dist/model-fallback.test.d.ts +12 -0
- package/dist/mutation/__tests__/engine.adversarial.test.d.ts +1 -0
- package/dist/mutation/__tests__/engine.test.d.ts +1 -0
- package/dist/mutation/__tests__/equivalence.adversarial.test.d.ts +1 -0
- package/dist/mutation/__tests__/equivalence.test.d.ts +1 -0
- package/dist/mutation/__tests__/gate.adversarial.test.d.ts +1 -0
- package/dist/mutation/__tests__/gate.test.d.ts +1 -0
- package/dist/mutation/__tests__/generator.test.d.ts +1 -0
- package/dist/mutation/engine.d.ts +47 -0
- package/dist/mutation/equivalence.d.ts +35 -0
- package/dist/mutation/gate.d.ts +28 -0
- package/dist/mutation/generator.d.ts +16 -0
- package/dist/output/agent-writer.d.ts +27 -0
- package/dist/output/index.d.ts +1 -0
- package/dist/parallel/dependency-graph.d.ts +34 -0
- package/dist/parallel/dispatcher/index.d.ts +12 -0
- package/dist/parallel/dispatcher/noop-dispatcher.d.ts +18 -0
- package/dist/parallel/dispatcher/noop-dispatcher.test.d.ts +10 -0
- package/dist/parallel/dispatcher/parallel-dispatcher.d.ts +18 -0
- package/dist/parallel/dispatcher/types.d.ts +33 -0
- package/dist/parallel/file-locks.d.ts +40 -0
- package/dist/parallel/index.d.ts +5 -0
- package/dist/parallel/meta-indexer.d.ts +32 -0
- package/dist/parallel/review-router.d.ts +29 -0
- package/dist/plan/checkpoint.d.ts +25 -0
- package/dist/plan/checkpoint.test.d.ts +1 -0
- package/dist/plan/index.d.ts +1 -0
- package/dist/plan/ledger-integrity.test.d.ts +5 -0
- package/dist/plan/ledger-snapshot-adversarial.test.d.ts +1 -0
- package/dist/plan/ledger.d.ts +286 -0
- package/dist/plan/ledger.test.d.ts +1 -0
- package/dist/plan/manager.cas-backoff.test.d.ts +10 -0
- package/dist/plan/manager.d.ts +90 -0
- package/dist/plan/manager.ledger-aware.test.d.ts +1 -0
- package/dist/plan/manager.loadplan-validation-guard.test.d.ts +13 -0
- package/dist/plan/manager.update-task-status.test.d.ts +1 -0
- package/dist/plan/migration-revert.regression.test.d.ts +8 -0
- package/dist/prm/__tests__/course-correction.test.d.ts +1 -0
- package/dist/prm/__tests__/escalation-queue-drain.test.d.ts +1 -0
- package/dist/prm/__tests__/escalation.test.d.ts +1 -0
- package/dist/prm/__tests__/index.test.d.ts +1 -0
- package/dist/prm/__tests__/integration.test.d.ts +1 -0
- package/dist/prm/__tests__/pattern-detector.test.d.ts +5 -0
- package/dist/prm/__tests__/replay.test.d.ts +1 -0
- package/dist/prm/__tests__/trajectory-store.test.d.ts +7 -0
- package/dist/prm/course-correction.d.ts +20 -0
- package/dist/prm/escalation.d.ts +73 -0
- package/dist/prm/index.d.ts +58 -0
- package/dist/prm/pattern-detector.d.ts +71 -0
- package/dist/prm/replay.d.ts +44 -0
- package/dist/prm/trajectory-store.d.ts +66 -0
- package/dist/prm/types.d.ts +120 -0
- package/dist/quality/index.d.ts +1 -0
- package/dist/quality/metrics.d.ts +25 -0
- package/dist/sast/rules/c.d.ts +9 -0
- package/dist/sast/rules/csharp.d.ts +9 -0
- package/dist/sast/rules/go.d.ts +9 -0
- package/dist/sast/rules/index.d.ts +72 -0
- package/dist/sast/rules/java.d.ts +9 -0
- package/dist/sast/rules/javascript.d.ts +9 -0
- package/dist/sast/rules/php.d.ts +9 -0
- package/dist/sast/rules/python.d.ts +9 -0
- package/dist/sast/semgrep.d.ts +68 -0
- package/dist/sast/semgrep.test.d.ts +1 -0
- package/dist/sbom/cyclonedx.d.ts +101 -0
- package/dist/sbom/detectors/dart.d.ts +7 -0
- package/dist/sbom/detectors/dotnet.d.ts +7 -0
- package/dist/sbom/detectors/go.d.ts +7 -0
- package/dist/sbom/detectors/index.d.ts +53 -0
- package/dist/sbom/detectors/java.d.ts +7 -0
- package/dist/sbom/detectors/nodejs.d.ts +7 -0
- package/dist/sbom/detectors/python.d.ts +7 -0
- package/dist/sbom/detectors/rust.d.ts +7 -0
- package/dist/sbom/detectors/swift.d.ts +7 -0
- package/dist/scope/scope-persistence.d.ts +109 -0
- package/dist/scope/scope-persistence.test.d.ts +13 -0
- package/dist/services/compaction-service.d.ts +28 -0
- package/dist/services/compaction-service.test.d.ts +1 -0
- package/dist/services/config-doctor.d.ts +125 -0
- package/dist/services/config-doctor.security.test.d.ts +1 -0
- package/dist/services/config-doctor.test.d.ts +1 -0
- package/dist/services/context-budget-service.d.ts +101 -0
- package/dist/services/decision-drift-analyzer.d.ts +96 -0
- package/dist/services/diagnose-service.d.ts +41 -0
- package/dist/services/evidence-service.d.ts +65 -0
- package/dist/services/evidence-summary-service.d.ts +75 -0
- package/dist/services/export-service.d.ts +30 -0
- package/dist/services/handoff-service.d.ts +74 -0
- package/dist/services/history-service.d.ts +35 -0
- package/dist/services/index.d.ts +13 -0
- package/dist/services/plan-service.d.ts +25 -0
- package/dist/services/preflight-integration.d.ts +38 -0
- package/dist/services/preflight-service.d.ts +62 -0
- package/dist/services/run-memory.d.ts +66 -0
- package/dist/services/status-service.d.ts +35 -0
- package/dist/services/status-service.turbo-indicator.test.d.ts +5 -0
- package/dist/services/tool-doctor.d.ts +26 -0
- package/dist/services/tool-doctor.test.d.ts +1 -0
- package/dist/services/version-check.d.ts +28 -0
- package/dist/services/warning-buffer.d.ts +9 -0
- package/dist/session/snapshot-reader.d.ts +37 -0
- package/dist/session/snapshot-writer.d.ts +115 -0
- package/dist/skills/index.d.ts +30 -0
- package/dist/state/agent-run-context.d.ts +24 -0
- package/dist/state.agent-run-context.test.d.ts +10 -0
- package/dist/state.d.ts +501 -1
- package/dist/state.rehydrate.test.d.ts +1 -0
- package/dist/state.rehydration-adversarial.test.d.ts +1 -0
- package/dist/state.rehydration-integration.test.d.ts +1 -0
- package/dist/state.session-restart.test.d.ts +7 -0
- package/dist/summaries/index.d.ts +2 -0
- package/dist/summaries/manager.d.ts +29 -0
- package/dist/summaries/summarizer.d.ts +38 -0
- package/dist/telemetry.d.ts +59 -0
- package/dist/telemetry.test.d.ts +1 -0
- package/dist/test-impact/__tests__/analyzer-import-fix.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/analyzer-import-fix.test.d.ts +1 -0
- package/dist/test-impact/__tests__/analyzer.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/analyzer.test.d.ts +1 -0
- package/dist/test-impact/__tests__/council-fixes.test.d.ts +1 -0
- package/dist/test-impact/__tests__/failure-classifier.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/failure-classifier.test.d.ts +1 -0
- package/dist/test-impact/__tests__/flaky-detector.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/flaky-detector.test.d.ts +1 -0
- package/dist/test-impact/__tests__/history-store.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/history-store.test.d.ts +1 -0
- package/dist/test-impact/__tests__/test-impact.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/test-impact.test.d.ts +1 -0
- package/dist/test-impact/analyzer.d.ts +9 -0
- package/dist/test-impact/failure-classifier.d.ts +26 -0
- package/dist/test-impact/flaky-detector.d.ts +14 -0
- package/dist/test-impact/history-store.d.ts +15 -0
- package/dist/tools/__tests__/barrel-exports.test.d.ts +1 -0
- package/dist/tools/__tests__/diff-ast-fallback.test.d.ts +1 -0
- package/dist/tools/__tests__/diff-markdown-summary.test.d.ts +1 -0
- package/dist/tools/__tests__/diff-semantic.test.d.ts +1 -0
- package/dist/tools/__tests__/diff-summary.adversarial.test.d.ts +1 -0
- package/dist/tools/__tests__/diff-summary.test.d.ts +1 -0
- package/dist/tools/__tests__/mutation-test.adversarial.test.d.ts +1 -0
- package/dist/tools/__tests__/mutation-test.sourcefiles.test.d.ts +1 -0
- package/dist/tools/__tests__/mutation-test.test.d.ts +1 -0
- package/dist/tools/__tests__/test-runner-history.test.d.ts +1 -0
- package/dist/tools/__tests__/test-runner-impact.adversarial.test.d.ts +1 -0
- package/dist/tools/__tests__/test-runner-impact.test.d.ts +1 -0
- package/dist/tools/__tests__/test-runner-source-files.test.d.ts +1 -0
- package/dist/tools/barrel-export-check-gate-status.test.d.ts +6 -0
- package/dist/tools/batch-symbols.d.ts +24 -0
- package/dist/tools/batch-symbols.test.d.ts +1 -0
- package/dist/tools/build-check.d.ts +50 -0
- package/dist/tools/check-gate-status.adversarial.test.d.ts +1 -0
- package/dist/tools/check-gate-status.d.ts +7 -0
- package/dist/tools/check-gate-status.gates.test.d.ts +1 -0
- package/dist/tools/check-gate-status.plugin-registration.test.d.ts +1 -0
- package/dist/tools/checkpoint.d.ts +2 -0
- package/dist/tools/co-change-analyzer.d.ts +45 -0
- package/dist/tools/completion-verify.d.ts +25 -0
- package/dist/tools/complexity-hotspots.d.ts +2 -0
- package/dist/tools/convene-council.d.ts +53 -0
- package/dist/tools/convene-general-council.d.ts +25 -0
- package/dist/{create-tool.d.ts → tools/create-tool.d.ts} +13 -1
- package/dist/tools/curator-analyze.d.ts +7 -0
- package/dist/tools/curator-analyze.test.d.ts +1 -0
- package/dist/tools/declare-council-criteria.d.ts +14 -0
- package/dist/tools/declare-scope.d.ts +50 -0
- package/dist/tools/diff-summary.d.ts +12 -0
- package/dist/tools/diff.d.ts +24 -0
- package/dist/tools/doc-scan.d.ts +38 -0
- package/dist/tools/domain-detector.d.ts +6 -0
- package/dist/tools/evidence-check.d.ts +8 -0
- package/dist/tools/file-extractor.d.ts +9 -0
- package/dist/tools/generate-mutants.d.ts +15 -0
- package/dist/tools/get-approved-plan.d.ts +55 -0
- package/dist/tools/get-qa-gate-profile.d.ts +27 -0
- package/dist/tools/gitingest.d.ts +18 -0
- package/dist/tools/imports.d.ts +5 -0
- package/dist/tools/index.d.ts +66 -0
- package/dist/tools/knowledge-add.d.ts +2 -0
- package/dist/tools/knowledge-query.d.ts +5 -0
- package/dist/tools/knowledge-recall.d.ts +2 -0
- package/dist/tools/knowledge-remove.d.ts +2 -0
- package/dist/tools/knowledge-tools.integration.test.d.ts +1 -0
- package/dist/tools/lint-spec.d.ts +2 -0
- package/dist/tools/lint.d.ts +63 -0
- package/dist/tools/mutation-test.d.ts +2 -0
- package/dist/tools/mutation-test.security.test.d.ts +1 -0
- package/dist/tools/phase-complete.d.ts +25 -0
- package/dist/tools/pkg-audit.d.ts +2 -0
- package/dist/tools/placeholder-scan.d.ts +28 -0
- package/dist/tools/plugin-registration-adversarial.test.d.ts +1 -0
- package/dist/tools/pre-check-batch.d.ts +89 -0
- package/dist/tools/quality-budget.d.ts +26 -0
- package/dist/tools/repo-graph.d.ts +226 -0
- package/dist/tools/repo-map.d.ts +2 -0
- package/dist/tools/req-coverage.d.ts +47 -0
- package/dist/tools/resolve-working-directory.d.ts +35 -0
- package/dist/tools/resolve-working-directory.test.d.ts +1 -0
- package/dist/tools/retrieve-summary.d.ts +2 -0
- package/dist/tools/sast-baseline.d.ts +126 -0
- package/dist/tools/sast-scan.d.ts +87 -0
- package/dist/tools/save-plan.d.ts +95 -0
- package/dist/tools/save-plan.subdirectory-rejection.test.d.ts +1 -0
- package/dist/tools/sbom-generate.d.ts +26 -0
- package/dist/tools/schema-drift.d.ts +2 -0
- package/dist/tools/search.adversarial.test.d.ts +1 -0
- package/dist/tools/search.d.ts +29 -0
- package/dist/tools/search.test.d.ts +1 -0
- package/dist/tools/secretscan.d.ts +35 -0
- package/dist/tools/set-qa-gates.d.ts +40 -0
- package/dist/tools/suggest-patch.adversarial.test.d.ts +1 -0
- package/dist/tools/suggest-patch.d.ts +37 -0
- package/dist/tools/suggest-patch.test.d.ts +1 -0
- package/dist/tools/symbols.d.ts +21 -0
- package/dist/tools/syntax-check.d.ts +37 -0
- package/dist/tools/test-impact.d.ts +2 -0
- package/dist/tools/test-runner.d.ts +86 -0
- package/dist/tools/test-runner.security-adversarial.test.d.ts +5 -0
- package/dist/tools/todo-extract.d.ts +2 -0
- package/dist/tools/tool-names.d.ts +10 -0
- package/dist/tools/update-task-status.adversarial.test.d.ts +13 -0
- package/dist/tools/update-task-status.d.ts +114 -0
- package/dist/tools/update-task-status.gates.test.d.ts +1 -0
- package/dist/tools/update-task-status.test.d.ts +1 -0
- package/dist/tools/update-task-status.turbo-bypass.test.d.ts +1 -0
- package/dist/tools/verify-six-tools-registration.test.d.ts +9 -0
- package/dist/tools/web-search.d.ts +13 -0
- package/dist/tools/write-drift-evidence.d.ts +31 -0
- package/dist/tools/write-hallucination-evidence.d.ts +30 -0
- package/dist/tools/write-mutation-evidence.d.ts +34 -0
- package/dist/tools/write-mutation-evidence.test.d.ts +1 -0
- package/dist/tools/write-retro.d.ts +55 -0
- package/dist/transient-retry.test.d.ts +10 -0
- package/dist/types/delegation.d.ts +24 -0
- package/dist/types/events.d.ts +125 -0
- package/dist/utils/errors.d.ts +33 -0
- package/dist/utils/gitignore-warning.d.ts +17 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/logger.d.ts +3 -0
- package/dist/utils/merge.d.ts +5 -0
- package/dist/utils/path-security.d.ts +36 -0
- package/dist/utils/regex.d.ts +30 -0
- package/dist/utils/spec-hash.d.ts +15 -0
- package/dist/utils/tool-output.d.ts +12 -0
- package/dist/validation/task-id.d.ts +43 -0
- package/package.json +21 -14
- package/dist/architect.d.ts +0 -7
- package/dist/checkpoint.d.ts +0 -7
- package/dist/co-change-analyzer.d.ts +0 -1
- package/dist/compat.d.ts +0 -12
- package/dist/config-doctor.d.ts +0 -1
- package/dist/detector.d.ts +0 -7
- package/dist/diagnose-service.d.ts +0 -1
- package/dist/doctor.d.ts +0 -5
- package/dist/evidence-schema.d.ts +0 -2
- package/dist/evidence-service.d.ts +0 -1
- package/dist/export-service.d.ts +0 -1
- package/dist/handoff-service.d.ts +0 -1
- package/dist/history-service.d.ts +0 -1
- package/dist/hive-promoter.d.ts +0 -2
- package/dist/knowledge-migrator.d.ts +0 -2
- package/dist/knowledge-store.d.ts +0 -1
- package/dist/knowledge-types.d.ts +0 -1
- package/dist/knowledge-validator.d.ts +0 -2
- package/dist/loader.d.ts +0 -1
- package/dist/manager.d.ts +0 -1
- package/dist/models.d.ts +0 -1
- package/dist/plan-service.d.ts +0 -1
- package/dist/preflight-service.d.ts +0 -1
- package/dist/profiles.d.ts +0 -7
- package/dist/register.d.ts +0 -36
- package/dist/schema.d.ts +0 -2
- package/dist/snapshot-writer.d.ts +0 -1
- package/dist/status-service.d.ts +0 -15
- package/dist/telemetry/src/events.d.ts +0 -308
- package/dist/telemetry/src/guards.d.ts +0 -14
- package/dist/telemetry/src/index.d.ts +0 -4
- package/dist/telemetry/src/version.d.ts +0 -1
- package/dist/utils.d.ts +0 -1
- package/dist/write-retro.d.ts +0 -1
- /package/dist/{discovery.d.ts → build/discovery.d.ts} +0 -0
- /package/dist/{agents.d.ts → commands/agents.d.ts} +0 -0
- /package/dist/{analyze.d.ts → commands/analyze.d.ts} +0 -0
- /package/dist/{archive.d.ts → commands/archive.d.ts} +0 -0
- /package/dist/{benchmark.d.ts → commands/benchmark.d.ts} +0 -0
- /package/dist/{clarify.d.ts → commands/clarify.d.ts} +0 -0
- /package/dist/{curate.d.ts → commands/curate.d.ts} +0 -0
- /package/dist/{dark-matter.d.ts → commands/dark-matter.d.ts} +0 -0
- /package/dist/{diagnose.d.ts → commands/diagnose.d.ts} +0 -0
- /package/dist/{evidence.d.ts → commands/evidence.d.ts} +0 -0
- /package/dist/{export.d.ts → commands/export.d.ts} +0 -0
- /package/dist/{handoff.d.ts → commands/handoff.d.ts} +0 -0
- /package/dist/{history.d.ts → commands/history.d.ts} +0 -0
- /package/dist/{plan.d.ts → commands/plan.d.ts} +0 -0
- /package/dist/{preflight.d.ts → commands/preflight.d.ts} +0 -0
- /package/dist/{promote.d.ts → commands/promote.d.ts} +0 -0
- /package/dist/{reset.d.ts → commands/reset.d.ts} +0 -0
- /package/dist/{retrieve.d.ts → commands/retrieve.d.ts} +0 -0
- /package/dist/{rollback.d.ts → commands/rollback.d.ts} +0 -0
- /package/dist/{simulate.d.ts → commands/simulate.d.ts} +0 -0
- /package/dist/{specify.d.ts → commands/specify.d.ts} +0 -0
- /package/dist/{status.d.ts → commands/status.d.ts} +0 -0
- /package/dist/{turbo.d.ts → commands/turbo.d.ts} +0 -0
- /package/dist/{write_retro.d.ts → commands/write-retro.d.ts} +0 -0
|
@@ -0,0 +1,1352 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const EVIDENCE_MAX_JSON_BYTES: number;
|
|
3
|
+
export declare const EVIDENCE_MAX_PATCH_BYTES: number;
|
|
4
|
+
export declare const EVIDENCE_MAX_TASK_BYTES: number;
|
|
5
|
+
export declare const EvidenceTypeSchema: z.ZodEnum<{
|
|
6
|
+
diff: "diff";
|
|
7
|
+
secretscan: "secretscan";
|
|
8
|
+
quality_budget: "quality_budget";
|
|
9
|
+
placeholder: "placeholder";
|
|
10
|
+
test: "test";
|
|
11
|
+
build: "build";
|
|
12
|
+
review: "review";
|
|
13
|
+
approval: "approval";
|
|
14
|
+
note: "note";
|
|
15
|
+
retrospective: "retrospective";
|
|
16
|
+
syntax: "syntax";
|
|
17
|
+
sast: "sast";
|
|
18
|
+
sbom: "sbom";
|
|
19
|
+
}>;
|
|
20
|
+
export type EvidenceType = z.infer<typeof EvidenceTypeSchema>;
|
|
21
|
+
export declare const EvidenceVerdictSchema: z.ZodEnum<{
|
|
22
|
+
pass: "pass";
|
|
23
|
+
fail: "fail";
|
|
24
|
+
approved: "approved";
|
|
25
|
+
rejected: "rejected";
|
|
26
|
+
info: "info";
|
|
27
|
+
}>;
|
|
28
|
+
export type EvidenceVerdict = z.infer<typeof EvidenceVerdictSchema>;
|
|
29
|
+
export declare const BaseEvidenceSchema: z.ZodObject<{
|
|
30
|
+
task_id: z.ZodString;
|
|
31
|
+
type: z.ZodEnum<{
|
|
32
|
+
diff: "diff";
|
|
33
|
+
secretscan: "secretscan";
|
|
34
|
+
quality_budget: "quality_budget";
|
|
35
|
+
placeholder: "placeholder";
|
|
36
|
+
test: "test";
|
|
37
|
+
build: "build";
|
|
38
|
+
review: "review";
|
|
39
|
+
approval: "approval";
|
|
40
|
+
note: "note";
|
|
41
|
+
retrospective: "retrospective";
|
|
42
|
+
syntax: "syntax";
|
|
43
|
+
sast: "sast";
|
|
44
|
+
sbom: "sbom";
|
|
45
|
+
}>;
|
|
46
|
+
timestamp: z.ZodString;
|
|
47
|
+
agent: z.ZodString;
|
|
48
|
+
verdict: z.ZodEnum<{
|
|
49
|
+
pass: "pass";
|
|
50
|
+
fail: "fail";
|
|
51
|
+
approved: "approved";
|
|
52
|
+
rejected: "rejected";
|
|
53
|
+
info: "info";
|
|
54
|
+
}>;
|
|
55
|
+
summary: z.ZodString;
|
|
56
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type BaseEvidence = z.infer<typeof BaseEvidenceSchema>;
|
|
59
|
+
export declare const ReviewEvidenceSchema: z.ZodObject<{
|
|
60
|
+
task_id: z.ZodString;
|
|
61
|
+
timestamp: z.ZodString;
|
|
62
|
+
agent: z.ZodString;
|
|
63
|
+
verdict: z.ZodEnum<{
|
|
64
|
+
pass: "pass";
|
|
65
|
+
fail: "fail";
|
|
66
|
+
approved: "approved";
|
|
67
|
+
rejected: "rejected";
|
|
68
|
+
info: "info";
|
|
69
|
+
}>;
|
|
70
|
+
summary: z.ZodString;
|
|
71
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
72
|
+
type: z.ZodLiteral<"review">;
|
|
73
|
+
risk: z.ZodEnum<{
|
|
74
|
+
medium: "medium";
|
|
75
|
+
low: "low";
|
|
76
|
+
high: "high";
|
|
77
|
+
critical: "critical";
|
|
78
|
+
}>;
|
|
79
|
+
issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
80
|
+
severity: z.ZodEnum<{
|
|
81
|
+
error: "error";
|
|
82
|
+
info: "info";
|
|
83
|
+
warning: "warning";
|
|
84
|
+
}>;
|
|
85
|
+
message: z.ZodString;
|
|
86
|
+
file: z.ZodOptional<z.ZodString>;
|
|
87
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
}, z.core.$strip>>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type ReviewEvidence = z.infer<typeof ReviewEvidenceSchema>;
|
|
91
|
+
export declare const TestEvidenceSchema: z.ZodObject<{
|
|
92
|
+
task_id: z.ZodString;
|
|
93
|
+
timestamp: z.ZodString;
|
|
94
|
+
agent: z.ZodString;
|
|
95
|
+
verdict: z.ZodEnum<{
|
|
96
|
+
pass: "pass";
|
|
97
|
+
fail: "fail";
|
|
98
|
+
approved: "approved";
|
|
99
|
+
rejected: "rejected";
|
|
100
|
+
info: "info";
|
|
101
|
+
}>;
|
|
102
|
+
summary: z.ZodString;
|
|
103
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
104
|
+
type: z.ZodLiteral<"test">;
|
|
105
|
+
tests_passed: z.ZodNumber;
|
|
106
|
+
tests_failed: z.ZodNumber;
|
|
107
|
+
test_file: z.ZodOptional<z.ZodString>;
|
|
108
|
+
failures: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
109
|
+
name: z.ZodString;
|
|
110
|
+
message: z.ZodString;
|
|
111
|
+
}, z.core.$strip>>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export type TestEvidence = z.infer<typeof TestEvidenceSchema>;
|
|
114
|
+
export declare const DiffEvidenceSchema: z.ZodObject<{
|
|
115
|
+
task_id: z.ZodString;
|
|
116
|
+
timestamp: z.ZodString;
|
|
117
|
+
agent: z.ZodString;
|
|
118
|
+
verdict: z.ZodEnum<{
|
|
119
|
+
pass: "pass";
|
|
120
|
+
fail: "fail";
|
|
121
|
+
approved: "approved";
|
|
122
|
+
rejected: "rejected";
|
|
123
|
+
info: "info";
|
|
124
|
+
}>;
|
|
125
|
+
summary: z.ZodString;
|
|
126
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
127
|
+
type: z.ZodLiteral<"diff">;
|
|
128
|
+
files_changed: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
129
|
+
additions: z.ZodDefault<z.ZodNumber>;
|
|
130
|
+
deletions: z.ZodDefault<z.ZodNumber>;
|
|
131
|
+
patch_path: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
export type DiffEvidence = z.infer<typeof DiffEvidenceSchema>;
|
|
134
|
+
export declare const ApprovalEvidenceSchema: z.ZodObject<{
|
|
135
|
+
task_id: z.ZodString;
|
|
136
|
+
timestamp: z.ZodString;
|
|
137
|
+
agent: z.ZodString;
|
|
138
|
+
verdict: z.ZodEnum<{
|
|
139
|
+
pass: "pass";
|
|
140
|
+
fail: "fail";
|
|
141
|
+
approved: "approved";
|
|
142
|
+
rejected: "rejected";
|
|
143
|
+
info: "info";
|
|
144
|
+
}>;
|
|
145
|
+
summary: z.ZodString;
|
|
146
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
147
|
+
type: z.ZodLiteral<"approval">;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
export type ApprovalEvidence = z.infer<typeof ApprovalEvidenceSchema>;
|
|
150
|
+
export declare const NoteEvidenceSchema: z.ZodObject<{
|
|
151
|
+
task_id: z.ZodString;
|
|
152
|
+
timestamp: z.ZodString;
|
|
153
|
+
agent: z.ZodString;
|
|
154
|
+
verdict: z.ZodEnum<{
|
|
155
|
+
pass: "pass";
|
|
156
|
+
fail: "fail";
|
|
157
|
+
approved: "approved";
|
|
158
|
+
rejected: "rejected";
|
|
159
|
+
info: "info";
|
|
160
|
+
}>;
|
|
161
|
+
summary: z.ZodString;
|
|
162
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
163
|
+
type: z.ZodLiteral<"note">;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export type NoteEvidence = z.infer<typeof NoteEvidenceSchema>;
|
|
166
|
+
export declare const RetrospectiveEvidenceSchema: z.ZodObject<{
|
|
167
|
+
task_id: z.ZodString;
|
|
168
|
+
timestamp: z.ZodString;
|
|
169
|
+
agent: z.ZodString;
|
|
170
|
+
verdict: z.ZodEnum<{
|
|
171
|
+
pass: "pass";
|
|
172
|
+
fail: "fail";
|
|
173
|
+
approved: "approved";
|
|
174
|
+
rejected: "rejected";
|
|
175
|
+
info: "info";
|
|
176
|
+
}>;
|
|
177
|
+
summary: z.ZodString;
|
|
178
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
179
|
+
type: z.ZodLiteral<"retrospective">;
|
|
180
|
+
phase_number: z.ZodNumber;
|
|
181
|
+
total_tool_calls: z.ZodNumber;
|
|
182
|
+
coder_revisions: z.ZodNumber;
|
|
183
|
+
reviewer_rejections: z.ZodNumber;
|
|
184
|
+
loop_detections: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
circuit_breaker_trips: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
test_failures: z.ZodNumber;
|
|
187
|
+
security_findings: z.ZodNumber;
|
|
188
|
+
integration_issues: z.ZodNumber;
|
|
189
|
+
task_count: z.ZodNumber;
|
|
190
|
+
task_complexity: z.ZodEnum<{
|
|
191
|
+
trivial: "trivial";
|
|
192
|
+
simple: "simple";
|
|
193
|
+
moderate: "moderate";
|
|
194
|
+
complex: "complex";
|
|
195
|
+
}>;
|
|
196
|
+
top_rejection_reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
197
|
+
lessons_learned: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
198
|
+
user_directives: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
199
|
+
directive: z.ZodString;
|
|
200
|
+
category: z.ZodEnum<{
|
|
201
|
+
tooling: "tooling";
|
|
202
|
+
code_style: "code_style";
|
|
203
|
+
architecture: "architecture";
|
|
204
|
+
process: "process";
|
|
205
|
+
other: "other";
|
|
206
|
+
}>;
|
|
207
|
+
scope: z.ZodEnum<{
|
|
208
|
+
project: "project";
|
|
209
|
+
global: "global";
|
|
210
|
+
session: "session";
|
|
211
|
+
}>;
|
|
212
|
+
}, z.core.$strip>>>;
|
|
213
|
+
approaches_tried: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
214
|
+
approach: z.ZodString;
|
|
215
|
+
result: z.ZodEnum<{
|
|
216
|
+
success: "success";
|
|
217
|
+
failure: "failure";
|
|
218
|
+
partial: "partial";
|
|
219
|
+
}>;
|
|
220
|
+
abandoned_reason: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>>>;
|
|
222
|
+
error_taxonomy: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
223
|
+
planning_error: "planning_error";
|
|
224
|
+
interface_mismatch: "interface_mismatch";
|
|
225
|
+
logic_error: "logic_error";
|
|
226
|
+
scope_creep: "scope_creep";
|
|
227
|
+
gate_evasion: "gate_evasion";
|
|
228
|
+
}>>>;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
export type RetrospectiveEvidence = z.infer<typeof RetrospectiveEvidenceSchema>;
|
|
231
|
+
export declare const SyntaxEvidenceSchema: z.ZodObject<{
|
|
232
|
+
task_id: z.ZodString;
|
|
233
|
+
timestamp: z.ZodString;
|
|
234
|
+
agent: z.ZodString;
|
|
235
|
+
verdict: z.ZodEnum<{
|
|
236
|
+
pass: "pass";
|
|
237
|
+
fail: "fail";
|
|
238
|
+
approved: "approved";
|
|
239
|
+
rejected: "rejected";
|
|
240
|
+
info: "info";
|
|
241
|
+
}>;
|
|
242
|
+
summary: z.ZodString;
|
|
243
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
244
|
+
type: z.ZodLiteral<"syntax">;
|
|
245
|
+
files_checked: z.ZodNumber;
|
|
246
|
+
files_failed: z.ZodNumber;
|
|
247
|
+
skipped_count: z.ZodDefault<z.ZodNumber>;
|
|
248
|
+
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
249
|
+
path: z.ZodString;
|
|
250
|
+
language: z.ZodString;
|
|
251
|
+
ok: z.ZodBoolean;
|
|
252
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
253
|
+
line: z.ZodNumber;
|
|
254
|
+
column: z.ZodNumber;
|
|
255
|
+
message: z.ZodString;
|
|
256
|
+
}, z.core.$strip>>>;
|
|
257
|
+
skipped_reason: z.ZodOptional<z.ZodString>;
|
|
258
|
+
}, z.core.$strip>>>;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
export type SyntaxEvidence = z.infer<typeof SyntaxEvidenceSchema>;
|
|
261
|
+
export declare const PlaceholderEvidenceSchema: z.ZodObject<{
|
|
262
|
+
task_id: z.ZodString;
|
|
263
|
+
timestamp: z.ZodString;
|
|
264
|
+
agent: z.ZodString;
|
|
265
|
+
verdict: z.ZodEnum<{
|
|
266
|
+
pass: "pass";
|
|
267
|
+
fail: "fail";
|
|
268
|
+
approved: "approved";
|
|
269
|
+
rejected: "rejected";
|
|
270
|
+
info: "info";
|
|
271
|
+
}>;
|
|
272
|
+
summary: z.ZodString;
|
|
273
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
274
|
+
type: z.ZodLiteral<"placeholder">;
|
|
275
|
+
findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
276
|
+
path: z.ZodString;
|
|
277
|
+
line: z.ZodNumber;
|
|
278
|
+
kind: z.ZodEnum<{
|
|
279
|
+
string: "string";
|
|
280
|
+
other: "other";
|
|
281
|
+
comment: "comment";
|
|
282
|
+
function_body: "function_body";
|
|
283
|
+
}>;
|
|
284
|
+
excerpt: z.ZodString;
|
|
285
|
+
rule_id: z.ZodString;
|
|
286
|
+
}, z.core.$strip>>>;
|
|
287
|
+
files_scanned: z.ZodNumber;
|
|
288
|
+
files_with_findings: z.ZodNumber;
|
|
289
|
+
findings_count: z.ZodNumber;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
export type PlaceholderEvidence = z.infer<typeof PlaceholderEvidenceSchema>;
|
|
292
|
+
export declare const SastFindingSchema: z.ZodObject<{
|
|
293
|
+
rule_id: z.ZodString;
|
|
294
|
+
severity: z.ZodEnum<{
|
|
295
|
+
medium: "medium";
|
|
296
|
+
low: "low";
|
|
297
|
+
high: "high";
|
|
298
|
+
critical: "critical";
|
|
299
|
+
}>;
|
|
300
|
+
message: z.ZodString;
|
|
301
|
+
location: z.ZodObject<{
|
|
302
|
+
file: z.ZodString;
|
|
303
|
+
line: z.ZodNumber;
|
|
304
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
export declare const SastEvidenceSchema: z.ZodObject<{
|
|
309
|
+
task_id: z.ZodString;
|
|
310
|
+
timestamp: z.ZodString;
|
|
311
|
+
agent: z.ZodString;
|
|
312
|
+
verdict: z.ZodEnum<{
|
|
313
|
+
pass: "pass";
|
|
314
|
+
fail: "fail";
|
|
315
|
+
approved: "approved";
|
|
316
|
+
rejected: "rejected";
|
|
317
|
+
info: "info";
|
|
318
|
+
}>;
|
|
319
|
+
summary: z.ZodString;
|
|
320
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
321
|
+
type: z.ZodLiteral<"sast">;
|
|
322
|
+
findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
323
|
+
rule_id: z.ZodString;
|
|
324
|
+
severity: z.ZodEnum<{
|
|
325
|
+
medium: "medium";
|
|
326
|
+
low: "low";
|
|
327
|
+
high: "high";
|
|
328
|
+
critical: "critical";
|
|
329
|
+
}>;
|
|
330
|
+
message: z.ZodString;
|
|
331
|
+
location: z.ZodObject<{
|
|
332
|
+
file: z.ZodString;
|
|
333
|
+
line: z.ZodNumber;
|
|
334
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
337
|
+
}, z.core.$strip>>>;
|
|
338
|
+
engine: z.ZodEnum<{
|
|
339
|
+
tier_a: "tier_a";
|
|
340
|
+
"tier_a+tier_b": "tier_a+tier_b";
|
|
341
|
+
}>;
|
|
342
|
+
files_scanned: z.ZodNumber;
|
|
343
|
+
findings_count: z.ZodNumber;
|
|
344
|
+
findings_by_severity: z.ZodObject<{
|
|
345
|
+
critical: z.ZodNumber;
|
|
346
|
+
high: z.ZodNumber;
|
|
347
|
+
medium: z.ZodNumber;
|
|
348
|
+
low: z.ZodNumber;
|
|
349
|
+
}, z.core.$strip>;
|
|
350
|
+
new_findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
351
|
+
rule_id: z.ZodString;
|
|
352
|
+
severity: z.ZodEnum<{
|
|
353
|
+
medium: "medium";
|
|
354
|
+
low: "low";
|
|
355
|
+
high: "high";
|
|
356
|
+
critical: "critical";
|
|
357
|
+
}>;
|
|
358
|
+
message: z.ZodString;
|
|
359
|
+
location: z.ZodObject<{
|
|
360
|
+
file: z.ZodString;
|
|
361
|
+
line: z.ZodNumber;
|
|
362
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
}, z.core.$strip>;
|
|
364
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, z.core.$strip>>>;
|
|
366
|
+
pre_existing_findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
367
|
+
rule_id: z.ZodString;
|
|
368
|
+
severity: z.ZodEnum<{
|
|
369
|
+
medium: "medium";
|
|
370
|
+
low: "low";
|
|
371
|
+
high: "high";
|
|
372
|
+
critical: "critical";
|
|
373
|
+
}>;
|
|
374
|
+
message: z.ZodString;
|
|
375
|
+
location: z.ZodObject<{
|
|
376
|
+
file: z.ZodString;
|
|
377
|
+
line: z.ZodNumber;
|
|
378
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
381
|
+
}, z.core.$strip>>>;
|
|
382
|
+
baseline_used: z.ZodOptional<z.ZodBoolean>;
|
|
383
|
+
}, z.core.$strip>;
|
|
384
|
+
export type SastEvidence = z.infer<typeof SastEvidenceSchema>;
|
|
385
|
+
export declare const SbomEvidenceSchema: z.ZodObject<{
|
|
386
|
+
task_id: z.ZodString;
|
|
387
|
+
timestamp: z.ZodString;
|
|
388
|
+
agent: z.ZodString;
|
|
389
|
+
verdict: z.ZodEnum<{
|
|
390
|
+
pass: "pass";
|
|
391
|
+
fail: "fail";
|
|
392
|
+
approved: "approved";
|
|
393
|
+
rejected: "rejected";
|
|
394
|
+
info: "info";
|
|
395
|
+
}>;
|
|
396
|
+
summary: z.ZodString;
|
|
397
|
+
type: z.ZodLiteral<"sbom">;
|
|
398
|
+
components: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
399
|
+
name: z.ZodString;
|
|
400
|
+
version: z.ZodString;
|
|
401
|
+
type: z.ZodEnum<{
|
|
402
|
+
library: "library";
|
|
403
|
+
framework: "framework";
|
|
404
|
+
application: "application";
|
|
405
|
+
}>;
|
|
406
|
+
purl: z.ZodOptional<z.ZodString>;
|
|
407
|
+
license: z.ZodOptional<z.ZodString>;
|
|
408
|
+
}, z.core.$strip>>>;
|
|
409
|
+
metadata: z.ZodObject<{
|
|
410
|
+
timestamp: z.ZodString;
|
|
411
|
+
tool: z.ZodString;
|
|
412
|
+
tool_version: z.ZodString;
|
|
413
|
+
}, z.core.$strip>;
|
|
414
|
+
files: z.ZodArray<z.ZodString>;
|
|
415
|
+
components_count: z.ZodNumber;
|
|
416
|
+
output_path: z.ZodString;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
export type SbomEvidence = z.infer<typeof SbomEvidenceSchema>;
|
|
419
|
+
export declare const BuildEvidenceSchema: z.ZodObject<{
|
|
420
|
+
task_id: z.ZodString;
|
|
421
|
+
timestamp: z.ZodString;
|
|
422
|
+
agent: z.ZodString;
|
|
423
|
+
verdict: z.ZodEnum<{
|
|
424
|
+
pass: "pass";
|
|
425
|
+
fail: "fail";
|
|
426
|
+
approved: "approved";
|
|
427
|
+
rejected: "rejected";
|
|
428
|
+
info: "info";
|
|
429
|
+
}>;
|
|
430
|
+
summary: z.ZodString;
|
|
431
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
432
|
+
type: z.ZodLiteral<"build">;
|
|
433
|
+
runs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
434
|
+
kind: z.ZodEnum<{
|
|
435
|
+
test: "test";
|
|
436
|
+
build: "build";
|
|
437
|
+
typecheck: "typecheck";
|
|
438
|
+
}>;
|
|
439
|
+
command: z.ZodString;
|
|
440
|
+
cwd: z.ZodString;
|
|
441
|
+
exit_code: z.ZodNumber;
|
|
442
|
+
duration_ms: z.ZodNumber;
|
|
443
|
+
stdout_tail: z.ZodString;
|
|
444
|
+
stderr_tail: z.ZodString;
|
|
445
|
+
}, z.core.$strip>>>;
|
|
446
|
+
files_scanned: z.ZodNumber;
|
|
447
|
+
runs_count: z.ZodNumber;
|
|
448
|
+
failed_count: z.ZodNumber;
|
|
449
|
+
skipped_reason: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
export type BuildEvidence = z.infer<typeof BuildEvidenceSchema>;
|
|
452
|
+
export declare const QualityBudgetEvidenceSchema: z.ZodObject<{
|
|
453
|
+
task_id: z.ZodString;
|
|
454
|
+
timestamp: z.ZodString;
|
|
455
|
+
agent: z.ZodString;
|
|
456
|
+
verdict: z.ZodEnum<{
|
|
457
|
+
pass: "pass";
|
|
458
|
+
fail: "fail";
|
|
459
|
+
approved: "approved";
|
|
460
|
+
rejected: "rejected";
|
|
461
|
+
info: "info";
|
|
462
|
+
}>;
|
|
463
|
+
summary: z.ZodString;
|
|
464
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
465
|
+
type: z.ZodLiteral<"quality_budget">;
|
|
466
|
+
metrics: z.ZodObject<{
|
|
467
|
+
complexity_delta: z.ZodNumber;
|
|
468
|
+
public_api_delta: z.ZodNumber;
|
|
469
|
+
duplication_ratio: z.ZodNumber;
|
|
470
|
+
test_to_code_ratio: z.ZodNumber;
|
|
471
|
+
}, z.core.$strip>;
|
|
472
|
+
thresholds: z.ZodObject<{
|
|
473
|
+
max_complexity_delta: z.ZodNumber;
|
|
474
|
+
max_public_api_delta: z.ZodNumber;
|
|
475
|
+
max_duplication_ratio: z.ZodNumber;
|
|
476
|
+
min_test_to_code_ratio: z.ZodNumber;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
violations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
479
|
+
type: z.ZodEnum<{
|
|
480
|
+
complexity: "complexity";
|
|
481
|
+
api: "api";
|
|
482
|
+
duplication: "duplication";
|
|
483
|
+
test_ratio: "test_ratio";
|
|
484
|
+
}>;
|
|
485
|
+
message: z.ZodString;
|
|
486
|
+
severity: z.ZodEnum<{
|
|
487
|
+
error: "error";
|
|
488
|
+
warning: "warning";
|
|
489
|
+
}>;
|
|
490
|
+
files: z.ZodArray<z.ZodString>;
|
|
491
|
+
}, z.core.$strip>>>;
|
|
492
|
+
files_analyzed: z.ZodArray<z.ZodString>;
|
|
493
|
+
}, z.core.$strip>;
|
|
494
|
+
export type QualityBudgetEvidence = z.infer<typeof QualityBudgetEvidenceSchema>;
|
|
495
|
+
export declare const SecretscanEvidenceSchema: z.ZodObject<{
|
|
496
|
+
task_id: z.ZodString;
|
|
497
|
+
timestamp: z.ZodString;
|
|
498
|
+
agent: z.ZodString;
|
|
499
|
+
verdict: z.ZodEnum<{
|
|
500
|
+
pass: "pass";
|
|
501
|
+
fail: "fail";
|
|
502
|
+
approved: "approved";
|
|
503
|
+
rejected: "rejected";
|
|
504
|
+
info: "info";
|
|
505
|
+
}>;
|
|
506
|
+
summary: z.ZodString;
|
|
507
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
508
|
+
type: z.ZodLiteral<"secretscan">;
|
|
509
|
+
findings_count: z.ZodDefault<z.ZodNumber>;
|
|
510
|
+
scan_directory: z.ZodOptional<z.ZodString>;
|
|
511
|
+
files_scanned: z.ZodDefault<z.ZodNumber>;
|
|
512
|
+
skipped_files: z.ZodDefault<z.ZodNumber>;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
export type SecretscanEvidence = z.infer<typeof SecretscanEvidenceSchema>;
|
|
515
|
+
export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
516
|
+
task_id: z.ZodString;
|
|
517
|
+
timestamp: z.ZodString;
|
|
518
|
+
agent: z.ZodString;
|
|
519
|
+
verdict: z.ZodEnum<{
|
|
520
|
+
pass: "pass";
|
|
521
|
+
fail: "fail";
|
|
522
|
+
approved: "approved";
|
|
523
|
+
rejected: "rejected";
|
|
524
|
+
info: "info";
|
|
525
|
+
}>;
|
|
526
|
+
summary: z.ZodString;
|
|
527
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
528
|
+
type: z.ZodLiteral<"review">;
|
|
529
|
+
risk: z.ZodEnum<{
|
|
530
|
+
medium: "medium";
|
|
531
|
+
low: "low";
|
|
532
|
+
high: "high";
|
|
533
|
+
critical: "critical";
|
|
534
|
+
}>;
|
|
535
|
+
issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
536
|
+
severity: z.ZodEnum<{
|
|
537
|
+
error: "error";
|
|
538
|
+
info: "info";
|
|
539
|
+
warning: "warning";
|
|
540
|
+
}>;
|
|
541
|
+
message: z.ZodString;
|
|
542
|
+
file: z.ZodOptional<z.ZodString>;
|
|
543
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
544
|
+
}, z.core.$strip>>>;
|
|
545
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
546
|
+
task_id: z.ZodString;
|
|
547
|
+
timestamp: z.ZodString;
|
|
548
|
+
agent: z.ZodString;
|
|
549
|
+
verdict: z.ZodEnum<{
|
|
550
|
+
pass: "pass";
|
|
551
|
+
fail: "fail";
|
|
552
|
+
approved: "approved";
|
|
553
|
+
rejected: "rejected";
|
|
554
|
+
info: "info";
|
|
555
|
+
}>;
|
|
556
|
+
summary: z.ZodString;
|
|
557
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
558
|
+
type: z.ZodLiteral<"test">;
|
|
559
|
+
tests_passed: z.ZodNumber;
|
|
560
|
+
tests_failed: z.ZodNumber;
|
|
561
|
+
test_file: z.ZodOptional<z.ZodString>;
|
|
562
|
+
failures: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
563
|
+
name: z.ZodString;
|
|
564
|
+
message: z.ZodString;
|
|
565
|
+
}, z.core.$strip>>>;
|
|
566
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
567
|
+
task_id: z.ZodString;
|
|
568
|
+
timestamp: z.ZodString;
|
|
569
|
+
agent: z.ZodString;
|
|
570
|
+
verdict: z.ZodEnum<{
|
|
571
|
+
pass: "pass";
|
|
572
|
+
fail: "fail";
|
|
573
|
+
approved: "approved";
|
|
574
|
+
rejected: "rejected";
|
|
575
|
+
info: "info";
|
|
576
|
+
}>;
|
|
577
|
+
summary: z.ZodString;
|
|
578
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
579
|
+
type: z.ZodLiteral<"diff">;
|
|
580
|
+
files_changed: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
581
|
+
additions: z.ZodDefault<z.ZodNumber>;
|
|
582
|
+
deletions: z.ZodDefault<z.ZodNumber>;
|
|
583
|
+
patch_path: z.ZodOptional<z.ZodString>;
|
|
584
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
585
|
+
task_id: z.ZodString;
|
|
586
|
+
timestamp: z.ZodString;
|
|
587
|
+
agent: z.ZodString;
|
|
588
|
+
verdict: z.ZodEnum<{
|
|
589
|
+
pass: "pass";
|
|
590
|
+
fail: "fail";
|
|
591
|
+
approved: "approved";
|
|
592
|
+
rejected: "rejected";
|
|
593
|
+
info: "info";
|
|
594
|
+
}>;
|
|
595
|
+
summary: z.ZodString;
|
|
596
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
597
|
+
type: z.ZodLiteral<"approval">;
|
|
598
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
599
|
+
task_id: z.ZodString;
|
|
600
|
+
timestamp: z.ZodString;
|
|
601
|
+
agent: z.ZodString;
|
|
602
|
+
verdict: z.ZodEnum<{
|
|
603
|
+
pass: "pass";
|
|
604
|
+
fail: "fail";
|
|
605
|
+
approved: "approved";
|
|
606
|
+
rejected: "rejected";
|
|
607
|
+
info: "info";
|
|
608
|
+
}>;
|
|
609
|
+
summary: z.ZodString;
|
|
610
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
611
|
+
type: z.ZodLiteral<"note">;
|
|
612
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
613
|
+
task_id: z.ZodString;
|
|
614
|
+
timestamp: z.ZodString;
|
|
615
|
+
agent: z.ZodString;
|
|
616
|
+
verdict: z.ZodEnum<{
|
|
617
|
+
pass: "pass";
|
|
618
|
+
fail: "fail";
|
|
619
|
+
approved: "approved";
|
|
620
|
+
rejected: "rejected";
|
|
621
|
+
info: "info";
|
|
622
|
+
}>;
|
|
623
|
+
summary: z.ZodString;
|
|
624
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
625
|
+
type: z.ZodLiteral<"retrospective">;
|
|
626
|
+
phase_number: z.ZodNumber;
|
|
627
|
+
total_tool_calls: z.ZodNumber;
|
|
628
|
+
coder_revisions: z.ZodNumber;
|
|
629
|
+
reviewer_rejections: z.ZodNumber;
|
|
630
|
+
loop_detections: z.ZodOptional<z.ZodNumber>;
|
|
631
|
+
circuit_breaker_trips: z.ZodOptional<z.ZodNumber>;
|
|
632
|
+
test_failures: z.ZodNumber;
|
|
633
|
+
security_findings: z.ZodNumber;
|
|
634
|
+
integration_issues: z.ZodNumber;
|
|
635
|
+
task_count: z.ZodNumber;
|
|
636
|
+
task_complexity: z.ZodEnum<{
|
|
637
|
+
trivial: "trivial";
|
|
638
|
+
simple: "simple";
|
|
639
|
+
moderate: "moderate";
|
|
640
|
+
complex: "complex";
|
|
641
|
+
}>;
|
|
642
|
+
top_rejection_reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
643
|
+
lessons_learned: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
644
|
+
user_directives: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
645
|
+
directive: z.ZodString;
|
|
646
|
+
category: z.ZodEnum<{
|
|
647
|
+
tooling: "tooling";
|
|
648
|
+
code_style: "code_style";
|
|
649
|
+
architecture: "architecture";
|
|
650
|
+
process: "process";
|
|
651
|
+
other: "other";
|
|
652
|
+
}>;
|
|
653
|
+
scope: z.ZodEnum<{
|
|
654
|
+
project: "project";
|
|
655
|
+
global: "global";
|
|
656
|
+
session: "session";
|
|
657
|
+
}>;
|
|
658
|
+
}, z.core.$strip>>>;
|
|
659
|
+
approaches_tried: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
660
|
+
approach: z.ZodString;
|
|
661
|
+
result: z.ZodEnum<{
|
|
662
|
+
success: "success";
|
|
663
|
+
failure: "failure";
|
|
664
|
+
partial: "partial";
|
|
665
|
+
}>;
|
|
666
|
+
abandoned_reason: z.ZodOptional<z.ZodString>;
|
|
667
|
+
}, z.core.$strip>>>;
|
|
668
|
+
error_taxonomy: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
669
|
+
planning_error: "planning_error";
|
|
670
|
+
interface_mismatch: "interface_mismatch";
|
|
671
|
+
logic_error: "logic_error";
|
|
672
|
+
scope_creep: "scope_creep";
|
|
673
|
+
gate_evasion: "gate_evasion";
|
|
674
|
+
}>>>;
|
|
675
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
676
|
+
task_id: z.ZodString;
|
|
677
|
+
timestamp: z.ZodString;
|
|
678
|
+
agent: z.ZodString;
|
|
679
|
+
verdict: z.ZodEnum<{
|
|
680
|
+
pass: "pass";
|
|
681
|
+
fail: "fail";
|
|
682
|
+
approved: "approved";
|
|
683
|
+
rejected: "rejected";
|
|
684
|
+
info: "info";
|
|
685
|
+
}>;
|
|
686
|
+
summary: z.ZodString;
|
|
687
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
688
|
+
type: z.ZodLiteral<"syntax">;
|
|
689
|
+
files_checked: z.ZodNumber;
|
|
690
|
+
files_failed: z.ZodNumber;
|
|
691
|
+
skipped_count: z.ZodDefault<z.ZodNumber>;
|
|
692
|
+
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
693
|
+
path: z.ZodString;
|
|
694
|
+
language: z.ZodString;
|
|
695
|
+
ok: z.ZodBoolean;
|
|
696
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
697
|
+
line: z.ZodNumber;
|
|
698
|
+
column: z.ZodNumber;
|
|
699
|
+
message: z.ZodString;
|
|
700
|
+
}, z.core.$strip>>>;
|
|
701
|
+
skipped_reason: z.ZodOptional<z.ZodString>;
|
|
702
|
+
}, z.core.$strip>>>;
|
|
703
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
704
|
+
task_id: z.ZodString;
|
|
705
|
+
timestamp: z.ZodString;
|
|
706
|
+
agent: z.ZodString;
|
|
707
|
+
verdict: z.ZodEnum<{
|
|
708
|
+
pass: "pass";
|
|
709
|
+
fail: "fail";
|
|
710
|
+
approved: "approved";
|
|
711
|
+
rejected: "rejected";
|
|
712
|
+
info: "info";
|
|
713
|
+
}>;
|
|
714
|
+
summary: z.ZodString;
|
|
715
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
716
|
+
type: z.ZodLiteral<"placeholder">;
|
|
717
|
+
findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
718
|
+
path: z.ZodString;
|
|
719
|
+
line: z.ZodNumber;
|
|
720
|
+
kind: z.ZodEnum<{
|
|
721
|
+
string: "string";
|
|
722
|
+
other: "other";
|
|
723
|
+
comment: "comment";
|
|
724
|
+
function_body: "function_body";
|
|
725
|
+
}>;
|
|
726
|
+
excerpt: z.ZodString;
|
|
727
|
+
rule_id: z.ZodString;
|
|
728
|
+
}, z.core.$strip>>>;
|
|
729
|
+
files_scanned: z.ZodNumber;
|
|
730
|
+
files_with_findings: z.ZodNumber;
|
|
731
|
+
findings_count: z.ZodNumber;
|
|
732
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
733
|
+
task_id: z.ZodString;
|
|
734
|
+
timestamp: z.ZodString;
|
|
735
|
+
agent: z.ZodString;
|
|
736
|
+
verdict: z.ZodEnum<{
|
|
737
|
+
pass: "pass";
|
|
738
|
+
fail: "fail";
|
|
739
|
+
approved: "approved";
|
|
740
|
+
rejected: "rejected";
|
|
741
|
+
info: "info";
|
|
742
|
+
}>;
|
|
743
|
+
summary: z.ZodString;
|
|
744
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
745
|
+
type: z.ZodLiteral<"sast">;
|
|
746
|
+
findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
747
|
+
rule_id: z.ZodString;
|
|
748
|
+
severity: z.ZodEnum<{
|
|
749
|
+
medium: "medium";
|
|
750
|
+
low: "low";
|
|
751
|
+
high: "high";
|
|
752
|
+
critical: "critical";
|
|
753
|
+
}>;
|
|
754
|
+
message: z.ZodString;
|
|
755
|
+
location: z.ZodObject<{
|
|
756
|
+
file: z.ZodString;
|
|
757
|
+
line: z.ZodNumber;
|
|
758
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
759
|
+
}, z.core.$strip>;
|
|
760
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
761
|
+
}, z.core.$strip>>>;
|
|
762
|
+
engine: z.ZodEnum<{
|
|
763
|
+
tier_a: "tier_a";
|
|
764
|
+
"tier_a+tier_b": "tier_a+tier_b";
|
|
765
|
+
}>;
|
|
766
|
+
files_scanned: z.ZodNumber;
|
|
767
|
+
findings_count: z.ZodNumber;
|
|
768
|
+
findings_by_severity: z.ZodObject<{
|
|
769
|
+
critical: z.ZodNumber;
|
|
770
|
+
high: z.ZodNumber;
|
|
771
|
+
medium: z.ZodNumber;
|
|
772
|
+
low: z.ZodNumber;
|
|
773
|
+
}, z.core.$strip>;
|
|
774
|
+
new_findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
775
|
+
rule_id: z.ZodString;
|
|
776
|
+
severity: z.ZodEnum<{
|
|
777
|
+
medium: "medium";
|
|
778
|
+
low: "low";
|
|
779
|
+
high: "high";
|
|
780
|
+
critical: "critical";
|
|
781
|
+
}>;
|
|
782
|
+
message: z.ZodString;
|
|
783
|
+
location: z.ZodObject<{
|
|
784
|
+
file: z.ZodString;
|
|
785
|
+
line: z.ZodNumber;
|
|
786
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
787
|
+
}, z.core.$strip>;
|
|
788
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
789
|
+
}, z.core.$strip>>>;
|
|
790
|
+
pre_existing_findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
791
|
+
rule_id: z.ZodString;
|
|
792
|
+
severity: z.ZodEnum<{
|
|
793
|
+
medium: "medium";
|
|
794
|
+
low: "low";
|
|
795
|
+
high: "high";
|
|
796
|
+
critical: "critical";
|
|
797
|
+
}>;
|
|
798
|
+
message: z.ZodString;
|
|
799
|
+
location: z.ZodObject<{
|
|
800
|
+
file: z.ZodString;
|
|
801
|
+
line: z.ZodNumber;
|
|
802
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
803
|
+
}, z.core.$strip>;
|
|
804
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
805
|
+
}, z.core.$strip>>>;
|
|
806
|
+
baseline_used: z.ZodOptional<z.ZodBoolean>;
|
|
807
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
808
|
+
task_id: z.ZodString;
|
|
809
|
+
timestamp: z.ZodString;
|
|
810
|
+
agent: z.ZodString;
|
|
811
|
+
verdict: z.ZodEnum<{
|
|
812
|
+
pass: "pass";
|
|
813
|
+
fail: "fail";
|
|
814
|
+
approved: "approved";
|
|
815
|
+
rejected: "rejected";
|
|
816
|
+
info: "info";
|
|
817
|
+
}>;
|
|
818
|
+
summary: z.ZodString;
|
|
819
|
+
type: z.ZodLiteral<"sbom">;
|
|
820
|
+
components: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
821
|
+
name: z.ZodString;
|
|
822
|
+
version: z.ZodString;
|
|
823
|
+
type: z.ZodEnum<{
|
|
824
|
+
library: "library";
|
|
825
|
+
framework: "framework";
|
|
826
|
+
application: "application";
|
|
827
|
+
}>;
|
|
828
|
+
purl: z.ZodOptional<z.ZodString>;
|
|
829
|
+
license: z.ZodOptional<z.ZodString>;
|
|
830
|
+
}, z.core.$strip>>>;
|
|
831
|
+
metadata: z.ZodObject<{
|
|
832
|
+
timestamp: z.ZodString;
|
|
833
|
+
tool: z.ZodString;
|
|
834
|
+
tool_version: z.ZodString;
|
|
835
|
+
}, z.core.$strip>;
|
|
836
|
+
files: z.ZodArray<z.ZodString>;
|
|
837
|
+
components_count: z.ZodNumber;
|
|
838
|
+
output_path: z.ZodString;
|
|
839
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
840
|
+
task_id: z.ZodString;
|
|
841
|
+
timestamp: z.ZodString;
|
|
842
|
+
agent: z.ZodString;
|
|
843
|
+
verdict: z.ZodEnum<{
|
|
844
|
+
pass: "pass";
|
|
845
|
+
fail: "fail";
|
|
846
|
+
approved: "approved";
|
|
847
|
+
rejected: "rejected";
|
|
848
|
+
info: "info";
|
|
849
|
+
}>;
|
|
850
|
+
summary: z.ZodString;
|
|
851
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
852
|
+
type: z.ZodLiteral<"build">;
|
|
853
|
+
runs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
854
|
+
kind: z.ZodEnum<{
|
|
855
|
+
test: "test";
|
|
856
|
+
build: "build";
|
|
857
|
+
typecheck: "typecheck";
|
|
858
|
+
}>;
|
|
859
|
+
command: z.ZodString;
|
|
860
|
+
cwd: z.ZodString;
|
|
861
|
+
exit_code: z.ZodNumber;
|
|
862
|
+
duration_ms: z.ZodNumber;
|
|
863
|
+
stdout_tail: z.ZodString;
|
|
864
|
+
stderr_tail: z.ZodString;
|
|
865
|
+
}, z.core.$strip>>>;
|
|
866
|
+
files_scanned: z.ZodNumber;
|
|
867
|
+
runs_count: z.ZodNumber;
|
|
868
|
+
failed_count: z.ZodNumber;
|
|
869
|
+
skipped_reason: z.ZodOptional<z.ZodString>;
|
|
870
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
871
|
+
task_id: z.ZodString;
|
|
872
|
+
timestamp: z.ZodString;
|
|
873
|
+
agent: z.ZodString;
|
|
874
|
+
verdict: z.ZodEnum<{
|
|
875
|
+
pass: "pass";
|
|
876
|
+
fail: "fail";
|
|
877
|
+
approved: "approved";
|
|
878
|
+
rejected: "rejected";
|
|
879
|
+
info: "info";
|
|
880
|
+
}>;
|
|
881
|
+
summary: z.ZodString;
|
|
882
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
883
|
+
type: z.ZodLiteral<"quality_budget">;
|
|
884
|
+
metrics: z.ZodObject<{
|
|
885
|
+
complexity_delta: z.ZodNumber;
|
|
886
|
+
public_api_delta: z.ZodNumber;
|
|
887
|
+
duplication_ratio: z.ZodNumber;
|
|
888
|
+
test_to_code_ratio: z.ZodNumber;
|
|
889
|
+
}, z.core.$strip>;
|
|
890
|
+
thresholds: z.ZodObject<{
|
|
891
|
+
max_complexity_delta: z.ZodNumber;
|
|
892
|
+
max_public_api_delta: z.ZodNumber;
|
|
893
|
+
max_duplication_ratio: z.ZodNumber;
|
|
894
|
+
min_test_to_code_ratio: z.ZodNumber;
|
|
895
|
+
}, z.core.$strip>;
|
|
896
|
+
violations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
897
|
+
type: z.ZodEnum<{
|
|
898
|
+
complexity: "complexity";
|
|
899
|
+
api: "api";
|
|
900
|
+
duplication: "duplication";
|
|
901
|
+
test_ratio: "test_ratio";
|
|
902
|
+
}>;
|
|
903
|
+
message: z.ZodString;
|
|
904
|
+
severity: z.ZodEnum<{
|
|
905
|
+
error: "error";
|
|
906
|
+
warning: "warning";
|
|
907
|
+
}>;
|
|
908
|
+
files: z.ZodArray<z.ZodString>;
|
|
909
|
+
}, z.core.$strip>>>;
|
|
910
|
+
files_analyzed: z.ZodArray<z.ZodString>;
|
|
911
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
912
|
+
task_id: z.ZodString;
|
|
913
|
+
timestamp: z.ZodString;
|
|
914
|
+
agent: z.ZodString;
|
|
915
|
+
verdict: z.ZodEnum<{
|
|
916
|
+
pass: "pass";
|
|
917
|
+
fail: "fail";
|
|
918
|
+
approved: "approved";
|
|
919
|
+
rejected: "rejected";
|
|
920
|
+
info: "info";
|
|
921
|
+
}>;
|
|
922
|
+
summary: z.ZodString;
|
|
923
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
924
|
+
type: z.ZodLiteral<"secretscan">;
|
|
925
|
+
findings_count: z.ZodDefault<z.ZodNumber>;
|
|
926
|
+
scan_directory: z.ZodOptional<z.ZodString>;
|
|
927
|
+
files_scanned: z.ZodDefault<z.ZodNumber>;
|
|
928
|
+
skipped_files: z.ZodDefault<z.ZodNumber>;
|
|
929
|
+
}, z.core.$strip>], "type">;
|
|
930
|
+
export type Evidence = z.infer<typeof EvidenceSchema>;
|
|
931
|
+
export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
932
|
+
schema_version: z.ZodLiteral<"1.0.0">;
|
|
933
|
+
task_id: z.ZodString;
|
|
934
|
+
entries: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
935
|
+
task_id: z.ZodString;
|
|
936
|
+
timestamp: z.ZodString;
|
|
937
|
+
agent: z.ZodString;
|
|
938
|
+
verdict: z.ZodEnum<{
|
|
939
|
+
pass: "pass";
|
|
940
|
+
fail: "fail";
|
|
941
|
+
approved: "approved";
|
|
942
|
+
rejected: "rejected";
|
|
943
|
+
info: "info";
|
|
944
|
+
}>;
|
|
945
|
+
summary: z.ZodString;
|
|
946
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
947
|
+
type: z.ZodLiteral<"review">;
|
|
948
|
+
risk: z.ZodEnum<{
|
|
949
|
+
medium: "medium";
|
|
950
|
+
low: "low";
|
|
951
|
+
high: "high";
|
|
952
|
+
critical: "critical";
|
|
953
|
+
}>;
|
|
954
|
+
issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
955
|
+
severity: z.ZodEnum<{
|
|
956
|
+
error: "error";
|
|
957
|
+
info: "info";
|
|
958
|
+
warning: "warning";
|
|
959
|
+
}>;
|
|
960
|
+
message: z.ZodString;
|
|
961
|
+
file: z.ZodOptional<z.ZodString>;
|
|
962
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
963
|
+
}, z.core.$strip>>>;
|
|
964
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
965
|
+
task_id: z.ZodString;
|
|
966
|
+
timestamp: z.ZodString;
|
|
967
|
+
agent: z.ZodString;
|
|
968
|
+
verdict: z.ZodEnum<{
|
|
969
|
+
pass: "pass";
|
|
970
|
+
fail: "fail";
|
|
971
|
+
approved: "approved";
|
|
972
|
+
rejected: "rejected";
|
|
973
|
+
info: "info";
|
|
974
|
+
}>;
|
|
975
|
+
summary: z.ZodString;
|
|
976
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
977
|
+
type: z.ZodLiteral<"test">;
|
|
978
|
+
tests_passed: z.ZodNumber;
|
|
979
|
+
tests_failed: z.ZodNumber;
|
|
980
|
+
test_file: z.ZodOptional<z.ZodString>;
|
|
981
|
+
failures: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
982
|
+
name: z.ZodString;
|
|
983
|
+
message: z.ZodString;
|
|
984
|
+
}, z.core.$strip>>>;
|
|
985
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
986
|
+
task_id: z.ZodString;
|
|
987
|
+
timestamp: z.ZodString;
|
|
988
|
+
agent: z.ZodString;
|
|
989
|
+
verdict: z.ZodEnum<{
|
|
990
|
+
pass: "pass";
|
|
991
|
+
fail: "fail";
|
|
992
|
+
approved: "approved";
|
|
993
|
+
rejected: "rejected";
|
|
994
|
+
info: "info";
|
|
995
|
+
}>;
|
|
996
|
+
summary: z.ZodString;
|
|
997
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
998
|
+
type: z.ZodLiteral<"diff">;
|
|
999
|
+
files_changed: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1000
|
+
additions: z.ZodDefault<z.ZodNumber>;
|
|
1001
|
+
deletions: z.ZodDefault<z.ZodNumber>;
|
|
1002
|
+
patch_path: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1004
|
+
task_id: z.ZodString;
|
|
1005
|
+
timestamp: z.ZodString;
|
|
1006
|
+
agent: z.ZodString;
|
|
1007
|
+
verdict: z.ZodEnum<{
|
|
1008
|
+
pass: "pass";
|
|
1009
|
+
fail: "fail";
|
|
1010
|
+
approved: "approved";
|
|
1011
|
+
rejected: "rejected";
|
|
1012
|
+
info: "info";
|
|
1013
|
+
}>;
|
|
1014
|
+
summary: z.ZodString;
|
|
1015
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1016
|
+
type: z.ZodLiteral<"approval">;
|
|
1017
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1018
|
+
task_id: z.ZodString;
|
|
1019
|
+
timestamp: z.ZodString;
|
|
1020
|
+
agent: z.ZodString;
|
|
1021
|
+
verdict: z.ZodEnum<{
|
|
1022
|
+
pass: "pass";
|
|
1023
|
+
fail: "fail";
|
|
1024
|
+
approved: "approved";
|
|
1025
|
+
rejected: "rejected";
|
|
1026
|
+
info: "info";
|
|
1027
|
+
}>;
|
|
1028
|
+
summary: z.ZodString;
|
|
1029
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1030
|
+
type: z.ZodLiteral<"note">;
|
|
1031
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1032
|
+
task_id: z.ZodString;
|
|
1033
|
+
timestamp: z.ZodString;
|
|
1034
|
+
agent: z.ZodString;
|
|
1035
|
+
verdict: z.ZodEnum<{
|
|
1036
|
+
pass: "pass";
|
|
1037
|
+
fail: "fail";
|
|
1038
|
+
approved: "approved";
|
|
1039
|
+
rejected: "rejected";
|
|
1040
|
+
info: "info";
|
|
1041
|
+
}>;
|
|
1042
|
+
summary: z.ZodString;
|
|
1043
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1044
|
+
type: z.ZodLiteral<"retrospective">;
|
|
1045
|
+
phase_number: z.ZodNumber;
|
|
1046
|
+
total_tool_calls: z.ZodNumber;
|
|
1047
|
+
coder_revisions: z.ZodNumber;
|
|
1048
|
+
reviewer_rejections: z.ZodNumber;
|
|
1049
|
+
loop_detections: z.ZodOptional<z.ZodNumber>;
|
|
1050
|
+
circuit_breaker_trips: z.ZodOptional<z.ZodNumber>;
|
|
1051
|
+
test_failures: z.ZodNumber;
|
|
1052
|
+
security_findings: z.ZodNumber;
|
|
1053
|
+
integration_issues: z.ZodNumber;
|
|
1054
|
+
task_count: z.ZodNumber;
|
|
1055
|
+
task_complexity: z.ZodEnum<{
|
|
1056
|
+
trivial: "trivial";
|
|
1057
|
+
simple: "simple";
|
|
1058
|
+
moderate: "moderate";
|
|
1059
|
+
complex: "complex";
|
|
1060
|
+
}>;
|
|
1061
|
+
top_rejection_reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1062
|
+
lessons_learned: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1063
|
+
user_directives: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1064
|
+
directive: z.ZodString;
|
|
1065
|
+
category: z.ZodEnum<{
|
|
1066
|
+
tooling: "tooling";
|
|
1067
|
+
code_style: "code_style";
|
|
1068
|
+
architecture: "architecture";
|
|
1069
|
+
process: "process";
|
|
1070
|
+
other: "other";
|
|
1071
|
+
}>;
|
|
1072
|
+
scope: z.ZodEnum<{
|
|
1073
|
+
project: "project";
|
|
1074
|
+
global: "global";
|
|
1075
|
+
session: "session";
|
|
1076
|
+
}>;
|
|
1077
|
+
}, z.core.$strip>>>;
|
|
1078
|
+
approaches_tried: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1079
|
+
approach: z.ZodString;
|
|
1080
|
+
result: z.ZodEnum<{
|
|
1081
|
+
success: "success";
|
|
1082
|
+
failure: "failure";
|
|
1083
|
+
partial: "partial";
|
|
1084
|
+
}>;
|
|
1085
|
+
abandoned_reason: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
}, z.core.$strip>>>;
|
|
1087
|
+
error_taxonomy: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1088
|
+
planning_error: "planning_error";
|
|
1089
|
+
interface_mismatch: "interface_mismatch";
|
|
1090
|
+
logic_error: "logic_error";
|
|
1091
|
+
scope_creep: "scope_creep";
|
|
1092
|
+
gate_evasion: "gate_evasion";
|
|
1093
|
+
}>>>;
|
|
1094
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1095
|
+
task_id: z.ZodString;
|
|
1096
|
+
timestamp: z.ZodString;
|
|
1097
|
+
agent: z.ZodString;
|
|
1098
|
+
verdict: z.ZodEnum<{
|
|
1099
|
+
pass: "pass";
|
|
1100
|
+
fail: "fail";
|
|
1101
|
+
approved: "approved";
|
|
1102
|
+
rejected: "rejected";
|
|
1103
|
+
info: "info";
|
|
1104
|
+
}>;
|
|
1105
|
+
summary: z.ZodString;
|
|
1106
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1107
|
+
type: z.ZodLiteral<"syntax">;
|
|
1108
|
+
files_checked: z.ZodNumber;
|
|
1109
|
+
files_failed: z.ZodNumber;
|
|
1110
|
+
skipped_count: z.ZodDefault<z.ZodNumber>;
|
|
1111
|
+
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1112
|
+
path: z.ZodString;
|
|
1113
|
+
language: z.ZodString;
|
|
1114
|
+
ok: z.ZodBoolean;
|
|
1115
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1116
|
+
line: z.ZodNumber;
|
|
1117
|
+
column: z.ZodNumber;
|
|
1118
|
+
message: z.ZodString;
|
|
1119
|
+
}, z.core.$strip>>>;
|
|
1120
|
+
skipped_reason: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
}, z.core.$strip>>>;
|
|
1122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1123
|
+
task_id: z.ZodString;
|
|
1124
|
+
timestamp: z.ZodString;
|
|
1125
|
+
agent: z.ZodString;
|
|
1126
|
+
verdict: z.ZodEnum<{
|
|
1127
|
+
pass: "pass";
|
|
1128
|
+
fail: "fail";
|
|
1129
|
+
approved: "approved";
|
|
1130
|
+
rejected: "rejected";
|
|
1131
|
+
info: "info";
|
|
1132
|
+
}>;
|
|
1133
|
+
summary: z.ZodString;
|
|
1134
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1135
|
+
type: z.ZodLiteral<"placeholder">;
|
|
1136
|
+
findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1137
|
+
path: z.ZodString;
|
|
1138
|
+
line: z.ZodNumber;
|
|
1139
|
+
kind: z.ZodEnum<{
|
|
1140
|
+
string: "string";
|
|
1141
|
+
other: "other";
|
|
1142
|
+
comment: "comment";
|
|
1143
|
+
function_body: "function_body";
|
|
1144
|
+
}>;
|
|
1145
|
+
excerpt: z.ZodString;
|
|
1146
|
+
rule_id: z.ZodString;
|
|
1147
|
+
}, z.core.$strip>>>;
|
|
1148
|
+
files_scanned: z.ZodNumber;
|
|
1149
|
+
files_with_findings: z.ZodNumber;
|
|
1150
|
+
findings_count: z.ZodNumber;
|
|
1151
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1152
|
+
task_id: z.ZodString;
|
|
1153
|
+
timestamp: z.ZodString;
|
|
1154
|
+
agent: z.ZodString;
|
|
1155
|
+
verdict: z.ZodEnum<{
|
|
1156
|
+
pass: "pass";
|
|
1157
|
+
fail: "fail";
|
|
1158
|
+
approved: "approved";
|
|
1159
|
+
rejected: "rejected";
|
|
1160
|
+
info: "info";
|
|
1161
|
+
}>;
|
|
1162
|
+
summary: z.ZodString;
|
|
1163
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1164
|
+
type: z.ZodLiteral<"sast">;
|
|
1165
|
+
findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1166
|
+
rule_id: z.ZodString;
|
|
1167
|
+
severity: z.ZodEnum<{
|
|
1168
|
+
medium: "medium";
|
|
1169
|
+
low: "low";
|
|
1170
|
+
high: "high";
|
|
1171
|
+
critical: "critical";
|
|
1172
|
+
}>;
|
|
1173
|
+
message: z.ZodString;
|
|
1174
|
+
location: z.ZodObject<{
|
|
1175
|
+
file: z.ZodString;
|
|
1176
|
+
line: z.ZodNumber;
|
|
1177
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
1178
|
+
}, z.core.$strip>;
|
|
1179
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
}, z.core.$strip>>>;
|
|
1181
|
+
engine: z.ZodEnum<{
|
|
1182
|
+
tier_a: "tier_a";
|
|
1183
|
+
"tier_a+tier_b": "tier_a+tier_b";
|
|
1184
|
+
}>;
|
|
1185
|
+
files_scanned: z.ZodNumber;
|
|
1186
|
+
findings_count: z.ZodNumber;
|
|
1187
|
+
findings_by_severity: z.ZodObject<{
|
|
1188
|
+
critical: z.ZodNumber;
|
|
1189
|
+
high: z.ZodNumber;
|
|
1190
|
+
medium: z.ZodNumber;
|
|
1191
|
+
low: z.ZodNumber;
|
|
1192
|
+
}, z.core.$strip>;
|
|
1193
|
+
new_findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1194
|
+
rule_id: z.ZodString;
|
|
1195
|
+
severity: z.ZodEnum<{
|
|
1196
|
+
medium: "medium";
|
|
1197
|
+
low: "low";
|
|
1198
|
+
high: "high";
|
|
1199
|
+
critical: "critical";
|
|
1200
|
+
}>;
|
|
1201
|
+
message: z.ZodString;
|
|
1202
|
+
location: z.ZodObject<{
|
|
1203
|
+
file: z.ZodString;
|
|
1204
|
+
line: z.ZodNumber;
|
|
1205
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
1206
|
+
}, z.core.$strip>;
|
|
1207
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
1208
|
+
}, z.core.$strip>>>;
|
|
1209
|
+
pre_existing_findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1210
|
+
rule_id: z.ZodString;
|
|
1211
|
+
severity: z.ZodEnum<{
|
|
1212
|
+
medium: "medium";
|
|
1213
|
+
low: "low";
|
|
1214
|
+
high: "high";
|
|
1215
|
+
critical: "critical";
|
|
1216
|
+
}>;
|
|
1217
|
+
message: z.ZodString;
|
|
1218
|
+
location: z.ZodObject<{
|
|
1219
|
+
file: z.ZodString;
|
|
1220
|
+
line: z.ZodNumber;
|
|
1221
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
1222
|
+
}, z.core.$strip>;
|
|
1223
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
1224
|
+
}, z.core.$strip>>>;
|
|
1225
|
+
baseline_used: z.ZodOptional<z.ZodBoolean>;
|
|
1226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1227
|
+
task_id: z.ZodString;
|
|
1228
|
+
timestamp: z.ZodString;
|
|
1229
|
+
agent: z.ZodString;
|
|
1230
|
+
verdict: z.ZodEnum<{
|
|
1231
|
+
pass: "pass";
|
|
1232
|
+
fail: "fail";
|
|
1233
|
+
approved: "approved";
|
|
1234
|
+
rejected: "rejected";
|
|
1235
|
+
info: "info";
|
|
1236
|
+
}>;
|
|
1237
|
+
summary: z.ZodString;
|
|
1238
|
+
type: z.ZodLiteral<"sbom">;
|
|
1239
|
+
components: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1240
|
+
name: z.ZodString;
|
|
1241
|
+
version: z.ZodString;
|
|
1242
|
+
type: z.ZodEnum<{
|
|
1243
|
+
library: "library";
|
|
1244
|
+
framework: "framework";
|
|
1245
|
+
application: "application";
|
|
1246
|
+
}>;
|
|
1247
|
+
purl: z.ZodOptional<z.ZodString>;
|
|
1248
|
+
license: z.ZodOptional<z.ZodString>;
|
|
1249
|
+
}, z.core.$strip>>>;
|
|
1250
|
+
metadata: z.ZodObject<{
|
|
1251
|
+
timestamp: z.ZodString;
|
|
1252
|
+
tool: z.ZodString;
|
|
1253
|
+
tool_version: z.ZodString;
|
|
1254
|
+
}, z.core.$strip>;
|
|
1255
|
+
files: z.ZodArray<z.ZodString>;
|
|
1256
|
+
components_count: z.ZodNumber;
|
|
1257
|
+
output_path: z.ZodString;
|
|
1258
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1259
|
+
task_id: z.ZodString;
|
|
1260
|
+
timestamp: z.ZodString;
|
|
1261
|
+
agent: z.ZodString;
|
|
1262
|
+
verdict: z.ZodEnum<{
|
|
1263
|
+
pass: "pass";
|
|
1264
|
+
fail: "fail";
|
|
1265
|
+
approved: "approved";
|
|
1266
|
+
rejected: "rejected";
|
|
1267
|
+
info: "info";
|
|
1268
|
+
}>;
|
|
1269
|
+
summary: z.ZodString;
|
|
1270
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1271
|
+
type: z.ZodLiteral<"build">;
|
|
1272
|
+
runs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1273
|
+
kind: z.ZodEnum<{
|
|
1274
|
+
test: "test";
|
|
1275
|
+
build: "build";
|
|
1276
|
+
typecheck: "typecheck";
|
|
1277
|
+
}>;
|
|
1278
|
+
command: z.ZodString;
|
|
1279
|
+
cwd: z.ZodString;
|
|
1280
|
+
exit_code: z.ZodNumber;
|
|
1281
|
+
duration_ms: z.ZodNumber;
|
|
1282
|
+
stdout_tail: z.ZodString;
|
|
1283
|
+
stderr_tail: z.ZodString;
|
|
1284
|
+
}, z.core.$strip>>>;
|
|
1285
|
+
files_scanned: z.ZodNumber;
|
|
1286
|
+
runs_count: z.ZodNumber;
|
|
1287
|
+
failed_count: z.ZodNumber;
|
|
1288
|
+
skipped_reason: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1290
|
+
task_id: z.ZodString;
|
|
1291
|
+
timestamp: z.ZodString;
|
|
1292
|
+
agent: z.ZodString;
|
|
1293
|
+
verdict: z.ZodEnum<{
|
|
1294
|
+
pass: "pass";
|
|
1295
|
+
fail: "fail";
|
|
1296
|
+
approved: "approved";
|
|
1297
|
+
rejected: "rejected";
|
|
1298
|
+
info: "info";
|
|
1299
|
+
}>;
|
|
1300
|
+
summary: z.ZodString;
|
|
1301
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1302
|
+
type: z.ZodLiteral<"quality_budget">;
|
|
1303
|
+
metrics: z.ZodObject<{
|
|
1304
|
+
complexity_delta: z.ZodNumber;
|
|
1305
|
+
public_api_delta: z.ZodNumber;
|
|
1306
|
+
duplication_ratio: z.ZodNumber;
|
|
1307
|
+
test_to_code_ratio: z.ZodNumber;
|
|
1308
|
+
}, z.core.$strip>;
|
|
1309
|
+
thresholds: z.ZodObject<{
|
|
1310
|
+
max_complexity_delta: z.ZodNumber;
|
|
1311
|
+
max_public_api_delta: z.ZodNumber;
|
|
1312
|
+
max_duplication_ratio: z.ZodNumber;
|
|
1313
|
+
min_test_to_code_ratio: z.ZodNumber;
|
|
1314
|
+
}, z.core.$strip>;
|
|
1315
|
+
violations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1316
|
+
type: z.ZodEnum<{
|
|
1317
|
+
complexity: "complexity";
|
|
1318
|
+
api: "api";
|
|
1319
|
+
duplication: "duplication";
|
|
1320
|
+
test_ratio: "test_ratio";
|
|
1321
|
+
}>;
|
|
1322
|
+
message: z.ZodString;
|
|
1323
|
+
severity: z.ZodEnum<{
|
|
1324
|
+
error: "error";
|
|
1325
|
+
warning: "warning";
|
|
1326
|
+
}>;
|
|
1327
|
+
files: z.ZodArray<z.ZodString>;
|
|
1328
|
+
}, z.core.$strip>>>;
|
|
1329
|
+
files_analyzed: z.ZodArray<z.ZodString>;
|
|
1330
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1331
|
+
task_id: z.ZodString;
|
|
1332
|
+
timestamp: z.ZodString;
|
|
1333
|
+
agent: z.ZodString;
|
|
1334
|
+
verdict: z.ZodEnum<{
|
|
1335
|
+
pass: "pass";
|
|
1336
|
+
fail: "fail";
|
|
1337
|
+
approved: "approved";
|
|
1338
|
+
rejected: "rejected";
|
|
1339
|
+
info: "info";
|
|
1340
|
+
}>;
|
|
1341
|
+
summary: z.ZodString;
|
|
1342
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1343
|
+
type: z.ZodLiteral<"secretscan">;
|
|
1344
|
+
findings_count: z.ZodDefault<z.ZodNumber>;
|
|
1345
|
+
scan_directory: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
files_scanned: z.ZodDefault<z.ZodNumber>;
|
|
1347
|
+
skipped_files: z.ZodDefault<z.ZodNumber>;
|
|
1348
|
+
}, z.core.$strip>], "type">>>;
|
|
1349
|
+
created_at: z.ZodString;
|
|
1350
|
+
updated_at: z.ZodString;
|
|
1351
|
+
}, z.core.$strip>;
|
|
1352
|
+
export type EvidenceBundle = z.infer<typeof EvidenceBundleSchema>;
|