opencode-swarm 6.27.0 → 7.0.0-beta.1

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