audit-tools 0.28.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.
Files changed (1476) hide show
  1. package/README.audit.md +223 -0
  2. package/README.md +42 -0
  3. package/README.remediate.md +113 -0
  4. package/audit-code-wrapper-build.mjs +185 -0
  5. package/audit-code-wrapper-install-hosts.mjs +1079 -0
  6. package/audit-code-wrapper-install-renderers.mjs +58 -0
  7. package/audit-code-wrapper-io.mjs +155 -0
  8. package/audit-code-wrapper-legacy.mjs +125 -0
  9. package/audit-code-wrapper-lib.mjs +314 -0
  10. package/audit-code-wrapper-opencode.mjs +241 -0
  11. package/audit-code.mjs +12 -0
  12. package/dispatch/lens-definitions.json +46 -0
  13. package/dispatch/merge-results.mjs +110 -0
  14. package/dispatch/validate-result.mjs +59 -0
  15. package/dispatch/validate.mjs +16 -0
  16. package/dist/audit/adapters/coverageSummary.d.ts +9 -0
  17. package/dist/audit/adapters/coverageSummary.d.ts.map +1 -0
  18. package/dist/audit/adapters/coverageSummary.js +18 -0
  19. package/dist/audit/adapters/coverageSummary.js.map +1 -0
  20. package/dist/audit/adapters/eslint.d.ts +14 -0
  21. package/dist/audit/adapters/eslint.d.ts.map +1 -0
  22. package/dist/audit/adapters/eslint.js +28 -0
  23. package/dist/audit/adapters/eslint.js.map +1 -0
  24. package/dist/audit/adapters/normalizeExternal.d.ts +13 -0
  25. package/dist/audit/adapters/normalizeExternal.d.ts.map +1 -0
  26. package/dist/audit/adapters/normalizeExternal.js +44 -0
  27. package/dist/audit/adapters/normalizeExternal.js.map +1 -0
  28. package/dist/audit/adapters/npmAudit.d.ts +16 -0
  29. package/dist/audit/adapters/npmAudit.d.ts.map +1 -0
  30. package/dist/audit/adapters/npmAudit.js +24 -0
  31. package/dist/audit/adapters/npmAudit.js.map +1 -0
  32. package/dist/audit/adapters/semgrep.d.ts +23 -0
  33. package/dist/audit/adapters/semgrep.d.ts.map +1 -0
  34. package/dist/audit/adapters/semgrep.js +40 -0
  35. package/dist/audit/adapters/semgrep.js.map +1 -0
  36. package/dist/audit/cli/advanceAuditCommand.d.ts +2 -0
  37. package/dist/audit/cli/advanceAuditCommand.d.ts.map +1 -0
  38. package/dist/audit/cli/advanceAuditCommand.js +95 -0
  39. package/dist/audit/cli/advanceAuditCommand.js.map +1 -0
  40. package/dist/audit/cli/args.d.ts +95 -0
  41. package/dist/audit/cli/args.d.ts.map +1 -0
  42. package/dist/audit/cli/args.js +274 -0
  43. package/dist/audit/cli/args.js.map +1 -0
  44. package/dist/audit/cli/auditStep.d.ts +34 -0
  45. package/dist/audit/cli/auditStep.d.ts.map +1 -0
  46. package/dist/audit/cli/auditStep.js +162 -0
  47. package/dist/audit/cli/auditStep.js.map +1 -0
  48. package/dist/audit/cli/cleanup.d.ts +12 -0
  49. package/dist/audit/cli/cleanup.d.ts.map +1 -0
  50. package/dist/audit/cli/cleanup.js +44 -0
  51. package/dist/audit/cli/cleanup.js.map +1 -0
  52. package/dist/audit/cli/cleanupCommand.d.ts +2 -0
  53. package/dist/audit/cli/cleanupCommand.d.ts.map +1 -0
  54. package/dist/audit/cli/cleanupCommand.js +25 -0
  55. package/dist/audit/cli/cleanupCommand.js.map +1 -0
  56. package/dist/audit/cli/conceptualDispatch.d.ts +74 -0
  57. package/dist/audit/cli/conceptualDispatch.d.ts.map +1 -0
  58. package/dist/audit/cli/conceptualDispatch.js +118 -0
  59. package/dist/audit/cli/conceptualDispatch.js.map +1 -0
  60. package/dist/audit/cli/confirmIntentStep.d.ts +25 -0
  61. package/dist/audit/cli/confirmIntentStep.d.ts.map +1 -0
  62. package/dist/audit/cli/confirmIntentStep.js +210 -0
  63. package/dist/audit/cli/confirmIntentStep.js.map +1 -0
  64. package/dist/audit/cli/dispatch/packetFilter.d.ts +102 -0
  65. package/dist/audit/cli/dispatch/packetFilter.d.ts.map +1 -0
  66. package/dist/audit/cli/dispatch/packetFilter.js +148 -0
  67. package/dist/audit/cli/dispatch/packetFilter.js.map +1 -0
  68. package/dist/audit/cli/dispatch/packetPrompt.d.ts +48 -0
  69. package/dist/audit/cli/dispatch/packetPrompt.d.ts.map +1 -0
  70. package/dist/audit/cli/dispatch/packetPrompt.js +258 -0
  71. package/dist/audit/cli/dispatch/packetPrompt.js.map +1 -0
  72. package/dist/audit/cli/dispatch/paths.d.ts +7 -0
  73. package/dist/audit/cli/dispatch/paths.d.ts.map +1 -0
  74. package/dist/audit/cli/dispatch/paths.js +38 -0
  75. package/dist/audit/cli/dispatch/paths.js.map +1 -0
  76. package/dist/audit/cli/dispatch/quotaPool.d.ts +75 -0
  77. package/dist/audit/cli/dispatch/quotaPool.d.ts.map +1 -0
  78. package/dist/audit/cli/dispatch/quotaPool.js +163 -0
  79. package/dist/audit/cli/dispatch/quotaPool.js.map +1 -0
  80. package/dist/audit/cli/dispatch/tierRouting.d.ts +36 -0
  81. package/dist/audit/cli/dispatch/tierRouting.d.ts.map +1 -0
  82. package/dist/audit/cli/dispatch/tierRouting.js +121 -0
  83. package/dist/audit/cli/dispatch/tierRouting.js.map +1 -0
  84. package/dist/audit/cli/dispatch/types.d.ts +90 -0
  85. package/dist/audit/cli/dispatch/types.d.ts.map +1 -0
  86. package/dist/audit/cli/dispatch/types.js +15 -0
  87. package/dist/audit/cli/dispatch/types.js.map +1 -0
  88. package/dist/audit/cli/dispatch.d.ts +29 -0
  89. package/dist/audit/cli/dispatch.d.ts.map +1 -0
  90. package/dist/audit/cli/dispatch.js +303 -0
  91. package/dist/audit/cli/dispatch.js.map +1 -0
  92. package/dist/audit/cli/dispatchStatusCommand.d.ts +2 -0
  93. package/dist/audit/cli/dispatchStatusCommand.d.ts.map +1 -0
  94. package/dist/audit/cli/dispatchStatusCommand.js +81 -0
  95. package/dist/audit/cli/dispatchStatusCommand.js.map +1 -0
  96. package/dist/audit/cli/envelope.d.ts +50 -0
  97. package/dist/audit/cli/envelope.d.ts.map +1 -0
  98. package/dist/audit/cli/envelope.js +69 -0
  99. package/dist/audit/cli/envelope.js.map +1 -0
  100. package/dist/audit/cli/explainTaskCommand.d.ts +2 -0
  101. package/dist/audit/cli/explainTaskCommand.d.ts.map +1 -0
  102. package/dist/audit/cli/explainTaskCommand.js +34 -0
  103. package/dist/audit/cli/explainTaskCommand.js.map +1 -0
  104. package/dist/audit/cli/importExternalAnalyzerCommand.d.ts +2 -0
  105. package/dist/audit/cli/importExternalAnalyzerCommand.d.ts.map +1 -0
  106. package/dist/audit/cli/importExternalAnalyzerCommand.js +25 -0
  107. package/dist/audit/cli/importExternalAnalyzerCommand.js.map +1 -0
  108. package/dist/audit/cli/ingestResultsCommand.d.ts +2 -0
  109. package/dist/audit/cli/ingestResultsCommand.d.ts.map +1 -0
  110. package/dist/audit/cli/ingestResultsCommand.js +42 -0
  111. package/dist/audit/cli/ingestResultsCommand.js.map +1 -0
  112. package/dist/audit/cli/intakeCommand.d.ts +2 -0
  113. package/dist/audit/cli/intakeCommand.d.ts.map +1 -0
  114. package/dist/audit/cli/intakeCommand.js +18 -0
  115. package/dist/audit/cli/intakeCommand.js.map +1 -0
  116. package/dist/audit/cli/lineIndex.d.ts +5 -0
  117. package/dist/audit/cli/lineIndex.d.ts.map +1 -0
  118. package/dist/audit/cli/lineIndex.js +70 -0
  119. package/dist/audit/cli/lineIndex.js.map +1 -0
  120. package/dist/audit/cli/mergeAndIngestCommand.d.ts +46 -0
  121. package/dist/audit/cli/mergeAndIngestCommand.d.ts.map +1 -0
  122. package/dist/audit/cli/mergeAndIngestCommand.js +541 -0
  123. package/dist/audit/cli/mergeAndIngestCommand.js.map +1 -0
  124. package/dist/audit/cli/nextStepCommand.d.ts +22 -0
  125. package/dist/audit/cli/nextStepCommand.d.ts.map +1 -0
  126. package/dist/audit/cli/nextStepCommand.js +531 -0
  127. package/dist/audit/cli/nextStepCommand.js.map +1 -0
  128. package/dist/audit/cli/nextStepHelpers.d.ts +303 -0
  129. package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -0
  130. package/dist/audit/cli/nextStepHelpers.js +861 -0
  131. package/dist/audit/cli/nextStepHelpers.js.map +1 -0
  132. package/dist/audit/cli/paths.d.ts +2 -0
  133. package/dist/audit/cli/paths.d.ts.map +1 -0
  134. package/dist/audit/cli/paths.js +10 -0
  135. package/dist/audit/cli/paths.js.map +1 -0
  136. package/dist/audit/cli/planCommand.d.ts +2 -0
  137. package/dist/audit/cli/planCommand.d.ts.map +1 -0
  138. package/dist/audit/cli/planCommand.js +17 -0
  139. package/dist/audit/cli/planCommand.js.map +1 -0
  140. package/dist/audit/cli/prepareDispatchCommand.d.ts +2 -0
  141. package/dist/audit/cli/prepareDispatchCommand.d.ts.map +1 -0
  142. package/dist/audit/cli/prepareDispatchCommand.js +37 -0
  143. package/dist/audit/cli/prepareDispatchCommand.js.map +1 -0
  144. package/dist/audit/cli/prompts.d.ts +54 -0
  145. package/dist/audit/cli/prompts.d.ts.map +1 -0
  146. package/dist/audit/cli/prompts.js +324 -0
  147. package/dist/audit/cli/prompts.js.map +1 -0
  148. package/dist/audit/cli/quotaCommand.d.ts +2 -0
  149. package/dist/audit/cli/quotaCommand.d.ts.map +1 -0
  150. package/dist/audit/cli/quotaCommand.js +64 -0
  151. package/dist/audit/cli/quotaCommand.js.map +1 -0
  152. package/dist/audit/cli/requeueCommand.d.ts +2 -0
  153. package/dist/audit/cli/requeueCommand.d.ts.map +1 -0
  154. package/dist/audit/cli/requeueCommand.js +11 -0
  155. package/dist/audit/cli/requeueCommand.js.map +1 -0
  156. package/dist/audit/cli/resynthesizeCommand.d.ts +2 -0
  157. package/dist/audit/cli/resynthesizeCommand.d.ts.map +1 -0
  158. package/dist/audit/cli/resynthesizeCommand.js +57 -0
  159. package/dist/audit/cli/resynthesizeCommand.js.map +1 -0
  160. package/dist/audit/cli/reviewRun.d.ts +57 -0
  161. package/dist/audit/cli/reviewRun.d.ts.map +1 -0
  162. package/dist/audit/cli/reviewRun.js +180 -0
  163. package/dist/audit/cli/reviewRun.js.map +1 -0
  164. package/dist/audit/cli/rollingAuditDispatch.d.ts +119 -0
  165. package/dist/audit/cli/rollingAuditDispatch.d.ts.map +1 -0
  166. package/dist/audit/cli/rollingAuditDispatch.js +264 -0
  167. package/dist/audit/cli/rollingAuditDispatch.js.map +1 -0
  168. package/dist/audit/cli/sampleRunCommand.d.ts +2 -0
  169. package/dist/audit/cli/sampleRunCommand.d.ts.map +1 -0
  170. package/dist/audit/cli/sampleRunCommand.js +106 -0
  171. package/dist/audit/cli/sampleRunCommand.js.map +1 -0
  172. package/dist/audit/cli/semanticReviewStep.d.ts +23 -0
  173. package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -0
  174. package/dist/audit/cli/semanticReviewStep.js +123 -0
  175. package/dist/audit/cli/semanticReviewStep.js.map +1 -0
  176. package/dist/audit/cli/statusCommand.d.ts +2 -0
  177. package/dist/audit/cli/statusCommand.d.ts.map +1 -0
  178. package/dist/audit/cli/statusCommand.js +133 -0
  179. package/dist/audit/cli/statusCommand.js.map +1 -0
  180. package/dist/audit/cli/steps.d.ts +204 -0
  181. package/dist/audit/cli/steps.d.ts.map +1 -0
  182. package/dist/audit/cli/steps.js +105 -0
  183. package/dist/audit/cli/steps.js.map +1 -0
  184. package/dist/audit/cli/submitPacketCommand.d.ts +2 -0
  185. package/dist/audit/cli/submitPacketCommand.d.ts.map +1 -0
  186. package/dist/audit/cli/submitPacketCommand.js +126 -0
  187. package/dist/audit/cli/submitPacketCommand.js.map +1 -0
  188. package/dist/audit/cli/synthesizeCommand.d.ts +2 -0
  189. package/dist/audit/cli/synthesizeCommand.d.ts.map +1 -0
  190. package/dist/audit/cli/synthesizeCommand.js +16 -0
  191. package/dist/audit/cli/synthesizeCommand.js.map +1 -0
  192. package/dist/audit/cli/updateRuntimeValidationCommand.d.ts +2 -0
  193. package/dist/audit/cli/updateRuntimeValidationCommand.d.ts.map +1 -0
  194. package/dist/audit/cli/updateRuntimeValidationCommand.js +17 -0
  195. package/dist/audit/cli/updateRuntimeValidationCommand.js.map +1 -0
  196. package/dist/audit/cli/validateCommand.d.ts +2 -0
  197. package/dist/audit/cli/validateCommand.d.ts.map +1 -0
  198. package/dist/audit/cli/validateCommand.js +42 -0
  199. package/dist/audit/cli/validateCommand.js.map +1 -0
  200. package/dist/audit/cli/validateResultCommand.d.ts +2 -0
  201. package/dist/audit/cli/validateResultCommand.d.ts.map +1 -0
  202. package/dist/audit/cli/validateResultCommand.js +92 -0
  203. package/dist/audit/cli/validateResultCommand.js.map +1 -0
  204. package/dist/audit/cli/validateResultsCommand.d.ts +2 -0
  205. package/dist/audit/cli/validateResultsCommand.d.ts.map +1 -0
  206. package/dist/audit/cli/validateResultsCommand.js +32 -0
  207. package/dist/audit/cli/validateResultsCommand.js.map +1 -0
  208. package/dist/audit/cli/waveManifest.d.ts +41 -0
  209. package/dist/audit/cli/waveManifest.d.ts.map +1 -0
  210. package/dist/audit/cli/waveManifest.js +42 -0
  211. package/dist/audit/cli/waveManifest.js.map +1 -0
  212. package/dist/audit/cli/workerResult.d.ts +19 -0
  213. package/dist/audit/cli/workerResult.d.ts.map +1 -0
  214. package/dist/audit/cli/workerResult.js +43 -0
  215. package/dist/audit/cli/workerResult.js.map +1 -0
  216. package/dist/audit/cli/workerRunCommand.d.ts +16 -0
  217. package/dist/audit/cli/workerRunCommand.d.ts.map +1 -0
  218. package/dist/audit/cli/workerRunCommand.js +132 -0
  219. package/dist/audit/cli/workerRunCommand.js.map +1 -0
  220. package/dist/audit/cli.d.ts +21 -0
  221. package/dist/audit/cli.d.ts.map +1 -0
  222. package/dist/audit/cli.js +137 -0
  223. package/dist/audit/cli.js.map +1 -0
  224. package/dist/audit/contracts/workerSchemas.d.ts +1448 -0
  225. package/dist/audit/contracts/workerSchemas.d.ts.map +1 -0
  226. package/dist/audit/contracts/workerSchemas.js +117 -0
  227. package/dist/audit/contracts/workerSchemas.js.map +1 -0
  228. package/dist/audit/contracts/wrapperResponse.d.ts +316 -0
  229. package/dist/audit/contracts/wrapperResponse.d.ts.map +1 -0
  230. package/dist/audit/contracts/wrapperResponse.js +96 -0
  231. package/dist/audit/contracts/wrapperResponse.js.map +1 -0
  232. package/dist/audit/coverage.d.ts +11 -0
  233. package/dist/audit/coverage.d.ts.map +1 -0
  234. package/dist/audit/coverage.js +78 -0
  235. package/dist/audit/coverage.js.map +1 -0
  236. package/dist/audit/extractors/analyzers/css.d.ts +3 -0
  237. package/dist/audit/extractors/analyzers/css.d.ts.map +1 -0
  238. package/dist/audit/extractors/analyzers/css.js +102 -0
  239. package/dist/audit/extractors/analyzers/css.js.map +1 -0
  240. package/dist/audit/extractors/analyzers/html.d.ts +3 -0
  241. package/dist/audit/extractors/analyzers/html.d.ts.map +1 -0
  242. package/dist/audit/extractors/analyzers/html.js +93 -0
  243. package/dist/audit/extractors/analyzers/html.js.map +1 -0
  244. package/dist/audit/extractors/analyzers/merge.d.ts +15 -0
  245. package/dist/audit/extractors/analyzers/merge.d.ts.map +1 -0
  246. package/dist/audit/extractors/analyzers/merge.js +86 -0
  247. package/dist/audit/extractors/analyzers/merge.js.map +1 -0
  248. package/dist/audit/extractors/analyzers/python.d.ts +3 -0
  249. package/dist/audit/extractors/analyzers/python.d.ts.map +1 -0
  250. package/dist/audit/extractors/analyzers/python.js +105 -0
  251. package/dist/audit/extractors/analyzers/python.js.map +1 -0
  252. package/dist/audit/extractors/analyzers/registry.d.ts +34 -0
  253. package/dist/audit/extractors/analyzers/registry.d.ts.map +1 -0
  254. package/dist/audit/extractors/analyzers/registry.js +82 -0
  255. package/dist/audit/extractors/analyzers/registry.js.map +1 -0
  256. package/dist/audit/extractors/analyzers/resourceUrl.d.ts +8 -0
  257. package/dist/audit/extractors/analyzers/resourceUrl.d.ts.map +1 -0
  258. package/dist/audit/extractors/analyzers/resourceUrl.js +26 -0
  259. package/dist/audit/extractors/analyzers/resourceUrl.js.map +1 -0
  260. package/dist/audit/extractors/analyzers/sql.d.ts +3 -0
  261. package/dist/audit/extractors/analyzers/sql.d.ts.map +1 -0
  262. package/dist/audit/extractors/analyzers/sql.js +23 -0
  263. package/dist/audit/extractors/analyzers/sql.js.map +1 -0
  264. package/dist/audit/extractors/analyzers/treeSitter.d.ts +44 -0
  265. package/dist/audit/extractors/analyzers/treeSitter.d.ts.map +1 -0
  266. package/dist/audit/extractors/analyzers/treeSitter.js +148 -0
  267. package/dist/audit/extractors/analyzers/treeSitter.js.map +1 -0
  268. package/dist/audit/extractors/analyzers/types.d.ts +54 -0
  269. package/dist/audit/extractors/analyzers/types.d.ts.map +1 -0
  270. package/dist/audit/extractors/analyzers/types.js +2 -0
  271. package/dist/audit/extractors/analyzers/types.js.map +1 -0
  272. package/dist/audit/extractors/analyzers/typescript.d.ts +3 -0
  273. package/dist/audit/extractors/analyzers/typescript.d.ts.map +1 -0
  274. package/dist/audit/extractors/analyzers/typescript.js +279 -0
  275. package/dist/audit/extractors/analyzers/typescript.js.map +1 -0
  276. package/dist/audit/extractors/browserExtension.d.ts +12 -0
  277. package/dist/audit/extractors/browserExtension.d.ts.map +1 -0
  278. package/dist/audit/extractors/browserExtension.js +388 -0
  279. package/dist/audit/extractors/browserExtension.js.map +1 -0
  280. package/dist/audit/extractors/bucketing.d.ts +12 -0
  281. package/dist/audit/extractors/bucketing.d.ts.map +1 -0
  282. package/dist/audit/extractors/bucketing.js +56 -0
  283. package/dist/audit/extractors/bucketing.js.map +1 -0
  284. package/dist/audit/extractors/designAssessment.d.ts +10 -0
  285. package/dist/audit/extractors/designAssessment.d.ts.map +1 -0
  286. package/dist/audit/extractors/designAssessment.js +280 -0
  287. package/dist/audit/extractors/designAssessment.js.map +1 -0
  288. package/dist/audit/extractors/disposition.d.ts +76 -0
  289. package/dist/audit/extractors/disposition.d.ts.map +1 -0
  290. package/dist/audit/extractors/disposition.js +265 -0
  291. package/dist/audit/extractors/disposition.js.map +1 -0
  292. package/dist/audit/extractors/fileInventory.d.ts +8 -0
  293. package/dist/audit/extractors/fileInventory.d.ts.map +1 -0
  294. package/dist/audit/extractors/fileInventory.js +36 -0
  295. package/dist/audit/extractors/fileInventory.js.map +1 -0
  296. package/dist/audit/extractors/flows.d.ts +9 -0
  297. package/dist/audit/extractors/flows.d.ts.map +1 -0
  298. package/dist/audit/extractors/flows.js +111 -0
  299. package/dist/audit/extractors/flows.js.map +1 -0
  300. package/dist/audit/extractors/fsIntake.d.ts +9 -0
  301. package/dist/audit/extractors/fsIntake.d.ts.map +1 -0
  302. package/dist/audit/extractors/fsIntake.js +95 -0
  303. package/dist/audit/extractors/fsIntake.js.map +1 -0
  304. package/dist/audit/extractors/graph.d.ts +11 -0
  305. package/dist/audit/extractors/graph.d.ts.map +1 -0
  306. package/dist/audit/extractors/graph.js +472 -0
  307. package/dist/audit/extractors/graph.js.map +1 -0
  308. package/dist/audit/extractors/graphManifestEdges/cargo.d.ts +15 -0
  309. package/dist/audit/extractors/graphManifestEdges/cargo.d.ts.map +1 -0
  310. package/dist/audit/extractors/graphManifestEdges/cargo.js +74 -0
  311. package/dist/audit/extractors/graphManifestEdges/cargo.js.map +1 -0
  312. package/dist/audit/extractors/graphManifestEdges/go.d.ts +6 -0
  313. package/dist/audit/extractors/graphManifestEdges/go.d.ts.map +1 -0
  314. package/dist/audit/extractors/graphManifestEdges/go.js +152 -0
  315. package/dist/audit/extractors/graphManifestEdges/go.js.map +1 -0
  316. package/dist/audit/extractors/graphManifestEdges/index.d.ts +9 -0
  317. package/dist/audit/extractors/graphManifestEdges/index.d.ts.map +1 -0
  318. package/dist/audit/extractors/graphManifestEdges/index.js +12 -0
  319. package/dist/audit/extractors/graphManifestEdges/index.js.map +1 -0
  320. package/dist/audit/extractors/graphManifestEdges/jsonc.d.ts +4 -0
  321. package/dist/audit/extractors/graphManifestEdges/jsonc.d.ts.map +1 -0
  322. package/dist/audit/extractors/graphManifestEdges/jsonc.js +98 -0
  323. package/dist/audit/extractors/graphManifestEdges/jsonc.js.map +1 -0
  324. package/dist/audit/extractors/graphManifestEdges/maven.d.ts +4 -0
  325. package/dist/audit/extractors/graphManifestEdges/maven.d.ts.map +1 -0
  326. package/dist/audit/extractors/graphManifestEdges/maven.js +74 -0
  327. package/dist/audit/extractors/graphManifestEdges/maven.js.map +1 -0
  328. package/dist/audit/extractors/graphManifestEdges/packageJson.d.ts +20 -0
  329. package/dist/audit/extractors/graphManifestEdges/packageJson.d.ts.map +1 -0
  330. package/dist/audit/extractors/graphManifestEdges/packageJson.js +205 -0
  331. package/dist/audit/extractors/graphManifestEdges/packageJson.js.map +1 -0
  332. package/dist/audit/extractors/graphManifestEdges/pnpm.d.ts +10 -0
  333. package/dist/audit/extractors/graphManifestEdges/pnpm.d.ts.map +1 -0
  334. package/dist/audit/extractors/graphManifestEdges/pnpm.js +18 -0
  335. package/dist/audit/extractors/graphManifestEdges/pnpm.js.map +1 -0
  336. package/dist/audit/extractors/graphManifestEdges/pyproject.d.ts +4 -0
  337. package/dist/audit/extractors/graphManifestEdges/pyproject.d.ts.map +1 -0
  338. package/dist/audit/extractors/graphManifestEdges/pyproject.js +45 -0
  339. package/dist/audit/extractors/graphManifestEdges/pyproject.js.map +1 -0
  340. package/dist/audit/extractors/graphManifestEdges/toml.d.ts +25 -0
  341. package/dist/audit/extractors/graphManifestEdges/toml.d.ts.map +1 -0
  342. package/dist/audit/extractors/graphManifestEdges/toml.js +49 -0
  343. package/dist/audit/extractors/graphManifestEdges/toml.js.map +1 -0
  344. package/dist/audit/extractors/graphManifestEdges/typescript.d.ts +4 -0
  345. package/dist/audit/extractors/graphManifestEdges/typescript.d.ts.map +1 -0
  346. package/dist/audit/extractors/graphManifestEdges/typescript.js +57 -0
  347. package/dist/audit/extractors/graphManifestEdges/typescript.js.map +1 -0
  348. package/dist/audit/extractors/graphManifestEdges/workspace.d.ts +11 -0
  349. package/dist/audit/extractors/graphManifestEdges/workspace.d.ts.map +1 -0
  350. package/dist/audit/extractors/graphManifestEdges/workspace.js +73 -0
  351. package/dist/audit/extractors/graphManifestEdges/workspace.js.map +1 -0
  352. package/dist/audit/extractors/graphManifestEdges/yaml.d.ts +24 -0
  353. package/dist/audit/extractors/graphManifestEdges/yaml.d.ts.map +1 -0
  354. package/dist/audit/extractors/graphManifestEdges/yaml.js +57 -0
  355. package/dist/audit/extractors/graphManifestEdges/yaml.js.map +1 -0
  356. package/dist/audit/extractors/graphManifestEdges/yamlPaths.d.ts +5 -0
  357. package/dist/audit/extractors/graphManifestEdges/yamlPaths.d.ts.map +1 -0
  358. package/dist/audit/extractors/graphManifestEdges/yamlPaths.js +75 -0
  359. package/dist/audit/extractors/graphManifestEdges/yamlPaths.js.map +1 -0
  360. package/dist/audit/extractors/graphPathUtils.d.ts +34 -0
  361. package/dist/audit/extractors/graphPathUtils.d.ts.map +1 -0
  362. package/dist/audit/extractors/graphPathUtils.js +174 -0
  363. package/dist/audit/extractors/graphPathUtils.js.map +1 -0
  364. package/dist/audit/extractors/graphPythonImports.d.ts +19 -0
  365. package/dist/audit/extractors/graphPythonImports.d.ts.map +1 -0
  366. package/dist/audit/extractors/graphPythonImports.js +318 -0
  367. package/dist/audit/extractors/graphPythonImports.js.map +1 -0
  368. package/dist/audit/extractors/graphRoutes.d.ts +13 -0
  369. package/dist/audit/extractors/graphRoutes.d.ts.map +1 -0
  370. package/dist/audit/extractors/graphRoutes.js +447 -0
  371. package/dist/audit/extractors/graphRoutes.js.map +1 -0
  372. package/dist/audit/extractors/graphSuites.d.ts +5 -0
  373. package/dist/audit/extractors/graphSuites.d.ts.map +1 -0
  374. package/dist/audit/extractors/graphSuites.js +248 -0
  375. package/dist/audit/extractors/graphSuites.js.map +1 -0
  376. package/dist/audit/extractors/graphTestSources.d.ts +3 -0
  377. package/dist/audit/extractors/graphTestSources.d.ts.map +1 -0
  378. package/dist/audit/extractors/graphTestSources.js +103 -0
  379. package/dist/audit/extractors/graphTestSources.js.map +1 -0
  380. package/dist/audit/extractors/ignore.d.ts +2 -0
  381. package/dist/audit/extractors/ignore.d.ts.map +1 -0
  382. package/dist/audit/extractors/ignore.js +18 -0
  383. package/dist/audit/extractors/ignore.js.map +1 -0
  384. package/dist/audit/extractors/languageMap.generated.d.ts +2 -0
  385. package/dist/audit/extractors/languageMap.generated.d.ts.map +1 -0
  386. package/dist/audit/extractors/languageMap.generated.js +1456 -0
  387. package/dist/audit/extractors/languageMap.generated.js.map +1 -0
  388. package/dist/audit/extractors/pathPatterns.d.ts +55 -0
  389. package/dist/audit/extractors/pathPatterns.d.ts.map +1 -0
  390. package/dist/audit/extractors/pathPatterns.js +303 -0
  391. package/dist/audit/extractors/pathPatterns.js.map +1 -0
  392. package/dist/audit/extractors/risk.d.ts +5 -0
  393. package/dist/audit/extractors/risk.d.ts.map +1 -0
  394. package/dist/audit/extractors/risk.js +54 -0
  395. package/dist/audit/extractors/risk.js.map +1 -0
  396. package/dist/audit/extractors/surfaces.d.ts +10 -0
  397. package/dist/audit/extractors/surfaces.d.ts.map +1 -0
  398. package/dist/audit/extractors/surfaces.js +49 -0
  399. package/dist/audit/extractors/surfaces.js.map +1 -0
  400. package/dist/audit/index.d.ts +2 -0
  401. package/dist/audit/index.d.ts.map +1 -0
  402. package/dist/audit/index.js +3 -0
  403. package/dist/audit/index.js.map +1 -0
  404. package/dist/audit/io/artifacts.d.ts +152 -0
  405. package/dist/audit/io/artifacts.d.ts.map +1 -0
  406. package/dist/audit/io/artifacts.js +239 -0
  407. package/dist/audit/io/artifacts.js.map +1 -0
  408. package/dist/audit/io/runArtifactTypes.d.ts +19 -0
  409. package/dist/audit/io/runArtifactTypes.d.ts.map +1 -0
  410. package/dist/audit/io/runArtifactTypes.js +2 -0
  411. package/dist/audit/io/runArtifactTypes.js.map +1 -0
  412. package/dist/audit/io/runArtifacts.d.ts +33 -0
  413. package/dist/audit/io/runArtifacts.d.ts.map +1 -0
  414. package/dist/audit/io/runArtifacts.js +254 -0
  415. package/dist/audit/io/runArtifacts.js.map +1 -0
  416. package/dist/audit/io/toolingManifest.d.ts +4 -0
  417. package/dist/audit/io/toolingManifest.d.ts.map +1 -0
  418. package/dist/audit/io/toolingManifest.js +79 -0
  419. package/dist/audit/io/toolingManifest.js.map +1 -0
  420. package/dist/audit/orchestrator/advance.d.ts +5 -0
  421. package/dist/audit/orchestrator/advance.d.ts.map +1 -0
  422. package/dist/audit/orchestrator/advance.js +172 -0
  423. package/dist/audit/orchestrator/advance.js.map +1 -0
  424. package/dist/audit/orchestrator/advanceTypes.d.ts +50 -0
  425. package/dist/audit/orchestrator/advanceTypes.d.ts.map +1 -0
  426. package/dist/audit/orchestrator/advanceTypes.js +2 -0
  427. package/dist/audit/orchestrator/advanceTypes.js.map +1 -0
  428. package/dist/audit/orchestrator/artifactFreshness.d.ts +4 -0
  429. package/dist/audit/orchestrator/artifactFreshness.d.ts.map +1 -0
  430. package/dist/audit/orchestrator/artifactFreshness.js +99 -0
  431. package/dist/audit/orchestrator/artifactFreshness.js.map +1 -0
  432. package/dist/audit/orchestrator/artifactMetadata.d.ts +6 -0
  433. package/dist/audit/orchestrator/artifactMetadata.d.ts.map +1 -0
  434. package/dist/audit/orchestrator/artifactMetadata.js +98 -0
  435. package/dist/audit/orchestrator/artifactMetadata.js.map +1 -0
  436. package/dist/audit/orchestrator/auditTaskUtils.d.ts +10 -0
  437. package/dist/audit/orchestrator/auditTaskUtils.d.ts.map +1 -0
  438. package/dist/audit/orchestrator/auditTaskUtils.js +53 -0
  439. package/dist/audit/orchestrator/auditTaskUtils.js.map +1 -0
  440. package/dist/audit/orchestrator/autoFixExecutor.d.ts +4 -0
  441. package/dist/audit/orchestrator/autoFixExecutor.d.ts.map +1 -0
  442. package/dist/audit/orchestrator/autoFixExecutor.js +152 -0
  443. package/dist/audit/orchestrator/autoFixExecutor.js.map +1 -0
  444. package/dist/audit/orchestrator/chunking.d.ts +6 -0
  445. package/dist/audit/orchestrator/chunking.d.ts.map +1 -0
  446. package/dist/audit/orchestrator/chunking.js +14 -0
  447. package/dist/audit/orchestrator/chunking.js.map +1 -0
  448. package/dist/audit/orchestrator/dependencyMap.d.ts +74 -0
  449. package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -0
  450. package/dist/audit/orchestrator/dependencyMap.js +193 -0
  451. package/dist/audit/orchestrator/dependencyMap.js.map +1 -0
  452. package/dist/audit/orchestrator/designReviewProjection.d.ts +66 -0
  453. package/dist/audit/orchestrator/designReviewProjection.d.ts.map +1 -0
  454. package/dist/audit/orchestrator/designReviewProjection.js +215 -0
  455. package/dist/audit/orchestrator/designReviewProjection.js.map +1 -0
  456. package/dist/audit/orchestrator/designReviewPrompt.d.ts +82 -0
  457. package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -0
  458. package/dist/audit/orchestrator/designReviewPrompt.js +474 -0
  459. package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -0
  460. package/dist/audit/orchestrator/designReviewSnapshot.d.ts +69 -0
  461. package/dist/audit/orchestrator/designReviewSnapshot.d.ts.map +1 -0
  462. package/dist/audit/orchestrator/designReviewSnapshot.js +135 -0
  463. package/dist/audit/orchestrator/designReviewSnapshot.js.map +1 -0
  464. package/dist/audit/orchestrator/edgeReasoning.d.ts +40 -0
  465. package/dist/audit/orchestrator/edgeReasoning.d.ts.map +1 -0
  466. package/dist/audit/orchestrator/edgeReasoning.js +126 -0
  467. package/dist/audit/orchestrator/edgeReasoning.js.map +1 -0
  468. package/dist/audit/orchestrator/executorResult.d.ts +71 -0
  469. package/dist/audit/orchestrator/executorResult.d.ts.map +1 -0
  470. package/dist/audit/orchestrator/executorResult.js +2 -0
  471. package/dist/audit/orchestrator/executorResult.js.map +1 -0
  472. package/dist/audit/orchestrator/executorRunners.d.ts +34 -0
  473. package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -0
  474. package/dist/audit/orchestrator/executorRunners.js +85 -0
  475. package/dist/audit/orchestrator/executorRunners.js.map +1 -0
  476. package/dist/audit/orchestrator/executors.d.ts +13 -0
  477. package/dist/audit/orchestrator/executors.d.ts.map +1 -0
  478. package/dist/audit/orchestrator/executors.js +114 -0
  479. package/dist/audit/orchestrator/executors.js.map +1 -0
  480. package/dist/audit/orchestrator/fileAnchors.d.ts +33 -0
  481. package/dist/audit/orchestrator/fileAnchors.d.ts.map +1 -0
  482. package/dist/audit/orchestrator/fileAnchors.js +242 -0
  483. package/dist/audit/orchestrator/fileAnchors.js.map +1 -0
  484. package/dist/audit/orchestrator/fileIntegrity.d.ts +9 -0
  485. package/dist/audit/orchestrator/fileIntegrity.d.ts.map +1 -0
  486. package/dist/audit/orchestrator/fileIntegrity.js +58 -0
  487. package/dist/audit/orchestrator/fileIntegrity.js.map +1 -0
  488. package/dist/audit/orchestrator/flowCoverage.d.ts +5 -0
  489. package/dist/audit/orchestrator/flowCoverage.d.ts.map +1 -0
  490. package/dist/audit/orchestrator/flowCoverage.js +46 -0
  491. package/dist/audit/orchestrator/flowCoverage.js.map +1 -0
  492. package/dist/audit/orchestrator/flowPlanning.d.ts +8 -0
  493. package/dist/audit/orchestrator/flowPlanning.d.ts.map +1 -0
  494. package/dist/audit/orchestrator/flowPlanning.js +65 -0
  495. package/dist/audit/orchestrator/flowPlanning.js.map +1 -0
  496. package/dist/audit/orchestrator/flowRequeue.d.ts +6 -0
  497. package/dist/audit/orchestrator/flowRequeue.d.ts.map +1 -0
  498. package/dist/audit/orchestrator/flowRequeue.js +73 -0
  499. package/dist/audit/orchestrator/flowRequeue.js.map +1 -0
  500. package/dist/audit/orchestrator/graphEnrichmentExecutor.d.ts +30 -0
  501. package/dist/audit/orchestrator/graphEnrichmentExecutor.d.ts.map +1 -0
  502. package/dist/audit/orchestrator/graphEnrichmentExecutor.js +227 -0
  503. package/dist/audit/orchestrator/graphEnrichmentExecutor.js.map +1 -0
  504. package/dist/audit/orchestrator/ingestionExecutors.d.ts +10 -0
  505. package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -0
  506. package/dist/audit/orchestrator/ingestionExecutors.js +262 -0
  507. package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -0
  508. package/dist/audit/orchestrator/intakeExecutors.d.ts +26 -0
  509. package/dist/audit/orchestrator/intakeExecutors.d.ts.map +1 -0
  510. package/dist/audit/orchestrator/intakeExecutors.js +138 -0
  511. package/dist/audit/orchestrator/intakeExecutors.js.map +1 -0
  512. package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +89 -0
  513. package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -0
  514. package/dist/audit/orchestrator/intentCheckpointExecutor.js +264 -0
  515. package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -0
  516. package/dist/audit/orchestrator/intentInterpreter.d.ts +49 -0
  517. package/dist/audit/orchestrator/intentInterpreter.d.ts.map +1 -0
  518. package/dist/audit/orchestrator/intentInterpreter.js +110 -0
  519. package/dist/audit/orchestrator/intentInterpreter.js.map +1 -0
  520. package/dist/audit/orchestrator/lensSelection.d.ts +35 -0
  521. package/dist/audit/orchestrator/lensSelection.d.ts.map +1 -0
  522. package/dist/audit/orchestrator/lensSelection.js +81 -0
  523. package/dist/audit/orchestrator/lensSelection.js.map +1 -0
  524. package/dist/audit/orchestrator/localCommands.d.ts +16 -0
  525. package/dist/audit/orchestrator/localCommands.d.ts.map +1 -0
  526. package/dist/audit/orchestrator/localCommands.js +113 -0
  527. package/dist/audit/orchestrator/localCommands.js.map +1 -0
  528. package/dist/audit/orchestrator/nextStep.d.ts +12 -0
  529. package/dist/audit/orchestrator/nextStep.d.ts.map +1 -0
  530. package/dist/audit/orchestrator/nextStep.js +63 -0
  531. package/dist/audit/orchestrator/nextStep.js.map +1 -0
  532. package/dist/audit/orchestrator/partitionTaskGraph.d.ts +32 -0
  533. package/dist/audit/orchestrator/partitionTaskGraph.d.ts.map +1 -0
  534. package/dist/audit/orchestrator/partitionTaskGraph.js +98 -0
  535. package/dist/audit/orchestrator/partitionTaskGraph.js.map +1 -0
  536. package/dist/audit/orchestrator/planning.d.ts +5 -0
  537. package/dist/audit/orchestrator/planning.d.ts.map +1 -0
  538. package/dist/audit/orchestrator/planning.js +81 -0
  539. package/dist/audit/orchestrator/planning.js.map +1 -0
  540. package/dist/audit/orchestrator/planningExecutors.d.ts +21 -0
  541. package/dist/audit/orchestrator/planningExecutors.d.ts.map +1 -0
  542. package/dist/audit/orchestrator/planningExecutors.js +228 -0
  543. package/dist/audit/orchestrator/planningExecutors.js.map +1 -0
  544. package/dist/audit/orchestrator/providerConfirmation.d.ts +21 -0
  545. package/dist/audit/orchestrator/providerConfirmation.d.ts.map +1 -0
  546. package/dist/audit/orchestrator/providerConfirmation.js +54 -0
  547. package/dist/audit/orchestrator/providerConfirmation.js.map +1 -0
  548. package/dist/audit/orchestrator/requeue.d.ts +4 -0
  549. package/dist/audit/orchestrator/requeue.d.ts.map +1 -0
  550. package/dist/audit/orchestrator/requeue.js +33 -0
  551. package/dist/audit/orchestrator/requeue.js.map +1 -0
  552. package/dist/audit/orchestrator/requeueCommand.d.ts +32 -0
  553. package/dist/audit/orchestrator/requeueCommand.d.ts.map +1 -0
  554. package/dist/audit/orchestrator/requeueCommand.js +45 -0
  555. package/dist/audit/orchestrator/requeueCommand.js.map +1 -0
  556. package/dist/audit/orchestrator/requeueUtils.d.ts +14 -0
  557. package/dist/audit/orchestrator/requeueUtils.d.ts.map +1 -0
  558. package/dist/audit/orchestrator/requeueUtils.js +22 -0
  559. package/dist/audit/orchestrator/requeueUtils.js.map +1 -0
  560. package/dist/audit/orchestrator/resultIngestion.d.ts +18 -0
  561. package/dist/audit/orchestrator/resultIngestion.d.ts.map +1 -0
  562. package/dist/audit/orchestrator/resultIngestion.js +63 -0
  563. package/dist/audit/orchestrator/resultIngestion.js.map +1 -0
  564. package/dist/audit/orchestrator/reviewPacketGraph.d.ts +5 -0
  565. package/dist/audit/orchestrator/reviewPacketGraph.d.ts.map +1 -0
  566. package/dist/audit/orchestrator/reviewPacketGraph.js +11 -0
  567. package/dist/audit/orchestrator/reviewPacketGraph.js.map +1 -0
  568. package/dist/audit/orchestrator/reviewPacketGraphClustering.d.ts +4 -0
  569. package/dist/audit/orchestrator/reviewPacketGraphClustering.d.ts.map +1 -0
  570. package/dist/audit/orchestrator/reviewPacketGraphClustering.js +481 -0
  571. package/dist/audit/orchestrator/reviewPacketGraphClustering.js.map +1 -0
  572. package/dist/audit/orchestrator/reviewPacketGraphContext.d.ts +10 -0
  573. package/dist/audit/orchestrator/reviewPacketGraphContext.d.ts.map +1 -0
  574. package/dist/audit/orchestrator/reviewPacketGraphContext.js +95 -0
  575. package/dist/audit/orchestrator/reviewPacketGraphContext.js.map +1 -0
  576. package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts +23 -0
  577. package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts.map +1 -0
  578. package/dist/audit/orchestrator/reviewPacketGraphEdges.js +169 -0
  579. package/dist/audit/orchestrator/reviewPacketGraphEdges.js.map +1 -0
  580. package/dist/audit/orchestrator/reviewPacketMetrics.d.ts +17 -0
  581. package/dist/audit/orchestrator/reviewPacketMetrics.d.ts.map +1 -0
  582. package/dist/audit/orchestrator/reviewPacketMetrics.js +322 -0
  583. package/dist/audit/orchestrator/reviewPacketMetrics.js.map +1 -0
  584. package/dist/audit/orchestrator/reviewPacketSizing.d.ts +27 -0
  585. package/dist/audit/orchestrator/reviewPacketSizing.d.ts.map +1 -0
  586. package/dist/audit/orchestrator/reviewPacketSizing.js +64 -0
  587. package/dist/audit/orchestrator/reviewPacketSizing.js.map +1 -0
  588. package/dist/audit/orchestrator/reviewPackets.d.ts +54 -0
  589. package/dist/audit/orchestrator/reviewPackets.d.ts.map +1 -0
  590. package/dist/audit/orchestrator/reviewPackets.js +318 -0
  591. package/dist/audit/orchestrator/reviewPackets.js.map +1 -0
  592. package/dist/audit/orchestrator/rollingDispatch.d.ts +45 -0
  593. package/dist/audit/orchestrator/rollingDispatch.d.ts.map +1 -0
  594. package/dist/audit/orchestrator/rollingDispatch.js +103 -0
  595. package/dist/audit/orchestrator/rollingDispatch.js.map +1 -0
  596. package/dist/audit/orchestrator/runtimeCommand.d.ts +10 -0
  597. package/dist/audit/orchestrator/runtimeCommand.d.ts.map +1 -0
  598. package/dist/audit/orchestrator/runtimeCommand.js +129 -0
  599. package/dist/audit/orchestrator/runtimeCommand.js.map +1 -0
  600. package/dist/audit/orchestrator/runtimeValidation.d.ts +13 -0
  601. package/dist/audit/orchestrator/runtimeValidation.d.ts.map +1 -0
  602. package/dist/audit/orchestrator/runtimeValidation.js +94 -0
  603. package/dist/audit/orchestrator/runtimeValidation.js.map +1 -0
  604. package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts +3 -0
  605. package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts.map +1 -0
  606. package/dist/audit/orchestrator/runtimeValidationUpdate.js +57 -0
  607. package/dist/audit/orchestrator/runtimeValidationUpdate.js.map +1 -0
  608. package/dist/audit/orchestrator/scope.d.ts +75 -0
  609. package/dist/audit/orchestrator/scope.d.ts.map +1 -0
  610. package/dist/audit/orchestrator/scope.js +268 -0
  611. package/dist/audit/orchestrator/scope.js.map +1 -0
  612. package/dist/audit/orchestrator/selectiveDeepening/conflict.d.ts +9 -0
  613. package/dist/audit/orchestrator/selectiveDeepening/conflict.d.ts.map +1 -0
  614. package/dist/audit/orchestrator/selectiveDeepening/conflict.js +72 -0
  615. package/dist/audit/orchestrator/selectiveDeepening/conflict.js.map +1 -0
  616. package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.d.ts +11 -0
  617. package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.d.ts.map +1 -0
  618. package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js +53 -0
  619. package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js.map +1 -0
  620. package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.d.ts +8 -0
  621. package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.d.ts.map +1 -0
  622. package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.js +46 -0
  623. package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.js.map +1 -0
  624. package/dist/audit/orchestrator/selectiveDeepening/index.d.ts +25 -0
  625. package/dist/audit/orchestrator/selectiveDeepening/index.d.ts.map +1 -0
  626. package/dist/audit/orchestrator/selectiveDeepening/index.js +157 -0
  627. package/dist/audit/orchestrator/selectiveDeepening/index.js.map +1 -0
  628. package/dist/audit/orchestrator/selectiveDeepening/lensVerification.d.ts +13 -0
  629. package/dist/audit/orchestrator/selectiveDeepening/lensVerification.d.ts.map +1 -0
  630. package/dist/audit/orchestrator/selectiveDeepening/lensVerification.js +269 -0
  631. package/dist/audit/orchestrator/selectiveDeepening/lensVerification.js.map +1 -0
  632. package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.d.ts +14 -0
  633. package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.d.ts.map +1 -0
  634. package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.js +58 -0
  635. package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.js.map +1 -0
  636. package/dist/audit/orchestrator/selectiveDeepening/shared.d.ts +42 -0
  637. package/dist/audit/orchestrator/selectiveDeepening/shared.d.ts.map +1 -0
  638. package/dist/audit/orchestrator/selectiveDeepening/shared.js +121 -0
  639. package/dist/audit/orchestrator/selectiveDeepening/shared.js.map +1 -0
  640. package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.d.ts +7 -0
  641. package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.d.ts.map +1 -0
  642. package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.js +73 -0
  643. package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.js.map +1 -0
  644. package/dist/audit/orchestrator/selectiveDeepening.d.ts +3 -0
  645. package/dist/audit/orchestrator/selectiveDeepening.d.ts.map +1 -0
  646. package/dist/audit/orchestrator/selectiveDeepening.js +7 -0
  647. package/dist/audit/orchestrator/selectiveDeepening.js.map +1 -0
  648. package/dist/audit/orchestrator/staleness.d.ts +3 -0
  649. package/dist/audit/orchestrator/staleness.d.ts.map +1 -0
  650. package/dist/audit/orchestrator/staleness.js +102 -0
  651. package/dist/audit/orchestrator/staleness.js.map +1 -0
  652. package/dist/audit/orchestrator/state.d.ts +4 -0
  653. package/dist/audit/orchestrator/state.d.ts.map +1 -0
  654. package/dist/audit/orchestrator/state.js +158 -0
  655. package/dist/audit/orchestrator/state.js.map +1 -0
  656. package/dist/audit/orchestrator/structureExecutors.d.ts +6 -0
  657. package/dist/audit/orchestrator/structureExecutors.d.ts.map +1 -0
  658. package/dist/audit/orchestrator/structureExecutors.js +116 -0
  659. package/dist/audit/orchestrator/structureExecutors.js.map +1 -0
  660. package/dist/audit/orchestrator/syntaxResolutionExecutor.d.ts +4 -0
  661. package/dist/audit/orchestrator/syntaxResolutionExecutor.d.ts.map +1 -0
  662. package/dist/audit/orchestrator/syntaxResolutionExecutor.js +260 -0
  663. package/dist/audit/orchestrator/syntaxResolutionExecutor.js.map +1 -0
  664. package/dist/audit/orchestrator/synthesisExecutors.d.ts +13 -0
  665. package/dist/audit/orchestrator/synthesisExecutors.d.ts.map +1 -0
  666. package/dist/audit/orchestrator/synthesisExecutors.js +107 -0
  667. package/dist/audit/orchestrator/synthesisExecutors.js.map +1 -0
  668. package/dist/audit/orchestrator/taskAffinityGraph.d.ts +154 -0
  669. package/dist/audit/orchestrator/taskAffinityGraph.d.ts.map +1 -0
  670. package/dist/audit/orchestrator/taskAffinityGraph.js +216 -0
  671. package/dist/audit/orchestrator/taskAffinityGraph.js.map +1 -0
  672. package/dist/audit/orchestrator/taskBuilder.d.ts +43 -0
  673. package/dist/audit/orchestrator/taskBuilder.d.ts.map +1 -0
  674. package/dist/audit/orchestrator/taskBuilder.js +355 -0
  675. package/dist/audit/orchestrator/taskBuilder.js.map +1 -0
  676. package/dist/audit/orchestrator/trivialAudit.d.ts +5 -0
  677. package/dist/audit/orchestrator/trivialAudit.d.ts.map +1 -0
  678. package/dist/audit/orchestrator/trivialAudit.js +50 -0
  679. package/dist/audit/orchestrator/trivialAudit.js.map +1 -0
  680. package/dist/audit/orchestrator/unionFind.d.ts +8 -0
  681. package/dist/audit/orchestrator/unionFind.d.ts.map +1 -0
  682. package/dist/audit/orchestrator/unionFind.js +43 -0
  683. package/dist/audit/orchestrator/unionFind.js.map +1 -0
  684. package/dist/audit/orchestrator/unitBuilder.d.ts +8 -0
  685. package/dist/audit/orchestrator/unitBuilder.d.ts.map +1 -0
  686. package/dist/audit/orchestrator/unitBuilder.js +171 -0
  687. package/dist/audit/orchestrator/unitBuilder.js.map +1 -0
  688. package/dist/audit/orchestrator.d.ts +7 -0
  689. package/dist/audit/orchestrator.d.ts.map +1 -0
  690. package/dist/audit/orchestrator.js +68 -0
  691. package/dist/audit/orchestrator.js.map +1 -0
  692. package/dist/audit/prompts/renderWorkerPrompt.d.ts +3 -0
  693. package/dist/audit/prompts/renderWorkerPrompt.d.ts.map +1 -0
  694. package/dist/audit/prompts/renderWorkerPrompt.js +87 -0
  695. package/dist/audit/prompts/renderWorkerPrompt.js.map +1 -0
  696. package/dist/audit/providers/claudeCodeProvider.d.ts +11 -0
  697. package/dist/audit/providers/claudeCodeProvider.d.ts.map +1 -0
  698. package/dist/audit/providers/claudeCodeProvider.js +23 -0
  699. package/dist/audit/providers/claudeCodeProvider.js.map +1 -0
  700. package/dist/audit/providers/constants.d.ts +2 -0
  701. package/dist/audit/providers/constants.d.ts.map +1 -0
  702. package/dist/audit/providers/constants.js +2 -0
  703. package/dist/audit/providers/constants.js.map +1 -0
  704. package/dist/audit/providers/index.d.ts +14 -0
  705. package/dist/audit/providers/index.d.ts.map +1 -0
  706. package/dist/audit/providers/index.js +21 -0
  707. package/dist/audit/providers/index.js.map +1 -0
  708. package/dist/audit/providers/opencodeProvider.d.ts +5 -0
  709. package/dist/audit/providers/opencodeProvider.d.ts.map +1 -0
  710. package/dist/audit/providers/opencodeProvider.js +10 -0
  711. package/dist/audit/providers/opencodeProvider.js.map +1 -0
  712. package/dist/audit/quota/discoveredLimits.d.ts +27 -0
  713. package/dist/audit/quota/discoveredLimits.d.ts.map +1 -0
  714. package/dist/audit/quota/discoveredLimits.js +91 -0
  715. package/dist/audit/quota/discoveredLimits.js.map +1 -0
  716. package/dist/audit/quota/headerExtraction.d.ts +9 -0
  717. package/dist/audit/quota/headerExtraction.d.ts.map +1 -0
  718. package/dist/audit/quota/headerExtraction.js +148 -0
  719. package/dist/audit/quota/headerExtraction.js.map +1 -0
  720. package/dist/audit/quota/headerExtractors/claudeCodeHeaderExtractor.d.ts +7 -0
  721. package/dist/audit/quota/headerExtractors/claudeCodeHeaderExtractor.d.ts.map +1 -0
  722. package/dist/audit/quota/headerExtractors/claudeCodeHeaderExtractor.js +27 -0
  723. package/dist/audit/quota/headerExtractors/claudeCodeHeaderExtractor.js.map +1 -0
  724. package/dist/audit/quota/headerExtractors/genericHeaderExtractor.d.ts +10 -0
  725. package/dist/audit/quota/headerExtractors/genericHeaderExtractor.d.ts.map +1 -0
  726. package/dist/audit/quota/headerExtractors/genericHeaderExtractor.js +8 -0
  727. package/dist/audit/quota/headerExtractors/genericHeaderExtractor.js.map +1 -0
  728. package/dist/audit/quota/headerExtractors/index.d.ts +6 -0
  729. package/dist/audit/quota/headerExtractors/index.d.ts.map +1 -0
  730. package/dist/audit/quota/headerExtractors/index.js +11 -0
  731. package/dist/audit/quota/headerExtractors/index.js.map +1 -0
  732. package/dist/audit/quota/hostLimits.d.ts +8 -0
  733. package/dist/audit/quota/hostLimits.d.ts.map +1 -0
  734. package/dist/audit/quota/hostLimits.js +9 -0
  735. package/dist/audit/quota/hostLimits.js.map +1 -0
  736. package/dist/audit/quota/index.d.ts +383 -0
  737. package/dist/audit/quota/index.d.ts.map +1 -0
  738. package/dist/audit/quota/index.js +45 -0
  739. package/dist/audit/quota/index.js.map +1 -0
  740. package/dist/audit/reporting/findingIdentity.d.ts +34 -0
  741. package/dist/audit/reporting/findingIdentity.d.ts.map +1 -0
  742. package/dist/audit/reporting/findingIdentity.js +64 -0
  743. package/dist/audit/reporting/findingIdentity.js.map +1 -0
  744. package/dist/audit/reporting/findingRanks.d.ts +2 -0
  745. package/dist/audit/reporting/findingRanks.d.ts.map +1 -0
  746. package/dist/audit/reporting/findingRanks.js +7 -0
  747. package/dist/audit/reporting/findingRanks.js.map +1 -0
  748. package/dist/audit/reporting/mergeFindings.d.ts +6 -0
  749. package/dist/audit/reporting/mergeFindings.d.ts.map +1 -0
  750. package/dist/audit/reporting/mergeFindings.js +326 -0
  751. package/dist/audit/reporting/mergeFindings.js.map +1 -0
  752. package/dist/audit/reporting/synthesis.d.ts +124 -0
  753. package/dist/audit/reporting/synthesis.d.ts.map +1 -0
  754. package/dist/audit/reporting/synthesis.js +369 -0
  755. package/dist/audit/reporting/synthesis.js.map +1 -0
  756. package/dist/audit/reporting/synthesisNarrativePrompt.d.ts +8 -0
  757. package/dist/audit/reporting/synthesisNarrativePrompt.d.ts.map +1 -0
  758. package/dist/audit/reporting/synthesisNarrativePrompt.js +66 -0
  759. package/dist/audit/reporting/synthesisNarrativePrompt.js.map +1 -0
  760. package/dist/audit/reporting/workBlocks.d.ts +10 -0
  761. package/dist/audit/reporting/workBlocks.d.ts.map +1 -0
  762. package/dist/audit/reporting/workBlocks.js +154 -0
  763. package/dist/audit/reporting/workBlocks.js.map +1 -0
  764. package/dist/audit/supervisor/operatorHandoff.d.ts +65 -0
  765. package/dist/audit/supervisor/operatorHandoff.d.ts.map +1 -0
  766. package/dist/audit/supervisor/operatorHandoff.js +277 -0
  767. package/dist/audit/supervisor/operatorHandoff.js.map +1 -0
  768. package/dist/audit/supervisor/runLedger.d.ts +4 -0
  769. package/dist/audit/supervisor/runLedger.d.ts.map +1 -0
  770. package/dist/audit/supervisor/runLedger.js +118 -0
  771. package/dist/audit/supervisor/runLedger.js.map +1 -0
  772. package/dist/audit/supervisor/sessionConfig.d.ts +12 -0
  773. package/dist/audit/supervisor/sessionConfig.d.ts.map +1 -0
  774. package/dist/audit/supervisor/sessionConfig.js +49 -0
  775. package/dist/audit/supervisor/sessionConfig.js.map +1 -0
  776. package/dist/audit/types/activeDispatch.d.ts +36 -0
  777. package/dist/audit/types/activeDispatch.d.ts.map +1 -0
  778. package/dist/audit/types/activeDispatch.js +3 -0
  779. package/dist/audit/types/activeDispatch.js.map +1 -0
  780. package/dist/audit/types/analyzerCapability.d.ts +17 -0
  781. package/dist/audit/types/analyzerCapability.d.ts.map +1 -0
  782. package/dist/audit/types/analyzerCapability.js +2 -0
  783. package/dist/audit/types/analyzerCapability.js.map +1 -0
  784. package/dist/audit/types/artifactMetadata.d.ts +9 -0
  785. package/dist/audit/types/artifactMetadata.d.ts.map +1 -0
  786. package/dist/audit/types/artifactMetadata.js +2 -0
  787. package/dist/audit/types/artifactMetadata.js.map +1 -0
  788. package/dist/audit/types/auditScope.d.ts +58 -0
  789. package/dist/audit/types/auditScope.d.ts.map +1 -0
  790. package/dist/audit/types/auditScope.js +15 -0
  791. package/dist/audit/types/auditScope.js.map +1 -0
  792. package/dist/audit/types/auditState.d.ts +18 -0
  793. package/dist/audit/types/auditState.d.ts.map +1 -0
  794. package/dist/audit/types/auditState.js +2 -0
  795. package/dist/audit/types/auditState.js.map +1 -0
  796. package/dist/audit/types/designAssessment.d.ts +22 -0
  797. package/dist/audit/types/designAssessment.d.ts.map +1 -0
  798. package/dist/audit/types/designAssessment.js +8 -0
  799. package/dist/audit/types/designAssessment.js.map +1 -0
  800. package/dist/audit/types/externalAnalyzer.d.ts +225 -0
  801. package/dist/audit/types/externalAnalyzer.d.ts.map +1 -0
  802. package/dist/audit/types/externalAnalyzer.js +56 -0
  803. package/dist/audit/types/externalAnalyzer.js.map +1 -0
  804. package/dist/audit/types/flowCoverage.d.ts +16 -0
  805. package/dist/audit/types/flowCoverage.d.ts.map +1 -0
  806. package/dist/audit/types/flowCoverage.js +6 -0
  807. package/dist/audit/types/flowCoverage.js.map +1 -0
  808. package/dist/audit/types/reviewPlanning.d.ts +513 -0
  809. package/dist/audit/types/reviewPlanning.d.ts.map +1 -0
  810. package/dist/audit/types/reviewPlanning.js +109 -0
  811. package/dist/audit/types/reviewPlanning.js.map +1 -0
  812. package/dist/audit/types/runtimeValidation.d.ts +155 -0
  813. package/dist/audit/types/runtimeValidation.d.ts.map +1 -0
  814. package/dist/audit/types/runtimeValidation.js +52 -0
  815. package/dist/audit/types/runtimeValidation.js.map +1 -0
  816. package/dist/audit/types/synthesisNarrative.d.ts +8 -0
  817. package/dist/audit/types/synthesisNarrative.d.ts.map +1 -0
  818. package/dist/audit/types/synthesisNarrative.js +6 -0
  819. package/dist/audit/types/synthesisNarrative.js.map +1 -0
  820. package/dist/audit/types/toolingManifest.d.ts +8 -0
  821. package/dist/audit/types/toolingManifest.d.ts.map +1 -0
  822. package/dist/audit/types/toolingManifest.js +2 -0
  823. package/dist/audit/types/toolingManifest.js.map +1 -0
  824. package/dist/audit/types/workerResult.d.ts +14 -0
  825. package/dist/audit/types/workerResult.d.ts.map +1 -0
  826. package/dist/audit/types/workerResult.js +2 -0
  827. package/dist/audit/types/workerResult.js.map +1 -0
  828. package/dist/audit/types/workerSession.d.ts +28 -0
  829. package/dist/audit/types/workerSession.d.ts.map +1 -0
  830. package/dist/audit/types/workerSession.js +5 -0
  831. package/dist/audit/types/workerSession.js.map +1 -0
  832. package/dist/audit/types.d.ts +1077 -0
  833. package/dist/audit/types.d.ts.map +1 -0
  834. package/dist/audit/types.js +160 -0
  835. package/dist/audit/types.js.map +1 -0
  836. package/dist/audit/validation/anchorGrounding.d.ts +49 -0
  837. package/dist/audit/validation/anchorGrounding.d.ts.map +1 -0
  838. package/dist/audit/validation/anchorGrounding.js +183 -0
  839. package/dist/audit/validation/anchorGrounding.js.map +1 -0
  840. package/dist/audit/validation/artifacts.d.ts +4 -0
  841. package/dist/audit/validation/artifacts.d.ts.map +1 -0
  842. package/dist/audit/validation/artifacts.js +313 -0
  843. package/dist/audit/validation/artifacts.js.map +1 -0
  844. package/dist/audit/validation/auditResults.d.ts +16 -0
  845. package/dist/audit/validation/auditResults.d.ts.map +1 -0
  846. package/dist/audit/validation/auditResults.js +619 -0
  847. package/dist/audit/validation/auditResults.js.map +1 -0
  848. package/dist/audit/validation/designFindingGrounding.d.ts +33 -0
  849. package/dist/audit/validation/designFindingGrounding.d.ts.map +1 -0
  850. package/dist/audit/validation/designFindingGrounding.js +43 -0
  851. package/dist/audit/validation/designFindingGrounding.js.map +1 -0
  852. package/dist/audit/validation/quoteGrounding.d.ts +18 -0
  853. package/dist/audit/validation/quoteGrounding.d.ts.map +1 -0
  854. package/dist/audit/validation/quoteGrounding.js +18 -0
  855. package/dist/audit/validation/quoteGrounding.js.map +1 -0
  856. package/dist/audit/validation/sessionConfig.d.ts +8 -0
  857. package/dist/audit/validation/sessionConfig.d.ts.map +1 -0
  858. package/dist/audit/validation/sessionConfig.js +334 -0
  859. package/dist/audit/validation/sessionConfig.js.map +1 -0
  860. package/dist/remediate/contractPipeline/artifactStore.d.ts +58 -0
  861. package/dist/remediate/contractPipeline/artifactStore.d.ts.map +1 -0
  862. package/dist/remediate/contractPipeline/artifactStore.js +201 -0
  863. package/dist/remediate/contractPipeline/artifactStore.js.map +1 -0
  864. package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts +68 -0
  865. package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts.map +1 -0
  866. package/dist/remediate/contractPipeline/cyclicSeamResolution.js +151 -0
  867. package/dist/remediate/contractPipeline/cyclicSeamResolution.js.map +1 -0
  868. package/dist/remediate/contractPipeline/derive.d.ts +88 -0
  869. package/dist/remediate/contractPipeline/derive.d.ts.map +1 -0
  870. package/dist/remediate/contractPipeline/derive.js +216 -0
  871. package/dist/remediate/contractPipeline/derive.js.map +1 -0
  872. package/dist/remediate/contractPipeline/idRegistry.d.ts +49 -0
  873. package/dist/remediate/contractPipeline/idRegistry.d.ts.map +1 -0
  874. package/dist/remediate/contractPipeline/idRegistry.js +57 -0
  875. package/dist/remediate/contractPipeline/idRegistry.js.map +1 -0
  876. package/dist/remediate/contractPipeline/reviewSnapshot.d.ts +52 -0
  877. package/dist/remediate/contractPipeline/reviewSnapshot.d.ts.map +1 -0
  878. package/dist/remediate/contractPipeline/reviewSnapshot.js +116 -0
  879. package/dist/remediate/contractPipeline/reviewSnapshot.js.map +1 -0
  880. package/dist/remediate/contractPipeline/semanticProjection.d.ts +46 -0
  881. package/dist/remediate/contractPipeline/semanticProjection.d.ts.map +1 -0
  882. package/dist/remediate/contractPipeline/semanticProjection.js +102 -0
  883. package/dist/remediate/contractPipeline/semanticProjection.js.map +1 -0
  884. package/dist/remediate/coverage/findingLedger.d.ts +99 -0
  885. package/dist/remediate/coverage/findingLedger.d.ts.map +1 -0
  886. package/dist/remediate/coverage/findingLedger.js +110 -0
  887. package/dist/remediate/coverage/findingLedger.js.map +1 -0
  888. package/dist/remediate/dedup/crossLensDedup.d.ts +9 -0
  889. package/dist/remediate/dedup/crossLensDedup.d.ts.map +1 -0
  890. package/dist/remediate/dedup/crossLensDedup.js +191 -0
  891. package/dist/remediate/dedup/crossLensDedup.js.map +1 -0
  892. package/dist/remediate/dispatch/amendmentClaim.d.ts +41 -0
  893. package/dist/remediate/dispatch/amendmentClaim.d.ts.map +1 -0
  894. package/dist/remediate/dispatch/amendmentClaim.js +60 -0
  895. package/dist/remediate/dispatch/amendmentClaim.js.map +1 -0
  896. package/dist/remediate/dispatch/ownershipRegistry.d.ts +97 -0
  897. package/dist/remediate/dispatch/ownershipRegistry.d.ts.map +1 -0
  898. package/dist/remediate/dispatch/ownershipRegistry.js +217 -0
  899. package/dist/remediate/dispatch/ownershipRegistry.js.map +1 -0
  900. package/dist/remediate/findingFilter.d.ts +42 -0
  901. package/dist/remediate/findingFilter.d.ts.map +1 -0
  902. package/dist/remediate/findingFilter.js +62 -0
  903. package/dist/remediate/findingFilter.js.map +1 -0
  904. package/dist/remediate/index.d.ts +45 -0
  905. package/dist/remediate/index.d.ts.map +1 -0
  906. package/dist/remediate/index.js +434 -0
  907. package/dist/remediate/index.js.map +1 -0
  908. package/dist/remediate/intake.d.ts +168 -0
  909. package/dist/remediate/intake.d.ts.map +1 -0
  910. package/dist/remediate/intake.js +340 -0
  911. package/dist/remediate/intake.js.map +1 -0
  912. package/dist/remediate/intent/checkpointFilter.d.ts +14 -0
  913. package/dist/remediate/intent/checkpointFilter.d.ts.map +1 -0
  914. package/dist/remediate/intent/checkpointFilter.js +111 -0
  915. package/dist/remediate/intent/checkpointFilter.js.map +1 -0
  916. package/dist/remediate/phases/close.d.ts +32 -0
  917. package/dist/remediate/phases/close.d.ts.map +1 -0
  918. package/dist/remediate/phases/close.js +992 -0
  919. package/dist/remediate/phases/close.js.map +1 -0
  920. package/dist/remediate/phases/constants.d.ts +3 -0
  921. package/dist/remediate/phases/constants.d.ts.map +1 -0
  922. package/dist/remediate/phases/constants.js +3 -0
  923. package/dist/remediate/phases/constants.js.map +1 -0
  924. package/dist/remediate/phases/grounding.d.ts +77 -0
  925. package/dist/remediate/phases/grounding.d.ts.map +1 -0
  926. package/dist/remediate/phases/grounding.js +153 -0
  927. package/dist/remediate/phases/grounding.js.map +1 -0
  928. package/dist/remediate/phases/plan.d.ts +113 -0
  929. package/dist/remediate/phases/plan.d.ts.map +1 -0
  930. package/dist/remediate/phases/plan.js +988 -0
  931. package/dist/remediate/phases/plan.js.map +1 -0
  932. package/dist/remediate/phases/triage.d.ts +4 -0
  933. package/dist/remediate/phases/triage.d.ts.map +1 -0
  934. package/dist/remediate/phases/triage.js +175 -0
  935. package/dist/remediate/phases/triage.js.map +1 -0
  936. package/dist/remediate/phases/workerTasks.d.ts +21 -0
  937. package/dist/remediate/phases/workerTasks.d.ts.map +1 -0
  938. package/dist/remediate/phases/workerTasks.js +31 -0
  939. package/dist/remediate/phases/workerTasks.js.map +1 -0
  940. package/dist/remediate/providers/claudeCodeProvider.d.ts +12 -0
  941. package/dist/remediate/providers/claudeCodeProvider.d.ts.map +1 -0
  942. package/dist/remediate/providers/claudeCodeProvider.js +24 -0
  943. package/dist/remediate/providers/claudeCodeProvider.js.map +1 -0
  944. package/dist/remediate/providers/constants.d.ts +2 -0
  945. package/dist/remediate/providers/constants.d.ts.map +1 -0
  946. package/dist/remediate/providers/constants.js +2 -0
  947. package/dist/remediate/providers/constants.js.map +1 -0
  948. package/dist/remediate/providers/index.d.ts +15 -0
  949. package/dist/remediate/providers/index.d.ts.map +1 -0
  950. package/dist/remediate/providers/index.js +22 -0
  951. package/dist/remediate/providers/index.js.map +1 -0
  952. package/dist/remediate/providers/opencodeProvider.d.ts +5 -0
  953. package/dist/remediate/providers/opencodeProvider.d.ts.map +1 -0
  954. package/dist/remediate/providers/opencodeProvider.js +10 -0
  955. package/dist/remediate/providers/opencodeProvider.js.map +1 -0
  956. package/dist/remediate/quota/hostLimits.d.ts +8 -0
  957. package/dist/remediate/quota/hostLimits.d.ts.map +1 -0
  958. package/dist/remediate/quota/hostLimits.js +9 -0
  959. package/dist/remediate/quota/hostLimits.js.map +1 -0
  960. package/dist/remediate/quota/index.d.ts +8 -0
  961. package/dist/remediate/quota/index.d.ts.map +1 -0
  962. package/dist/remediate/quota/index.js +12 -0
  963. package/dist/remediate/quota/index.js.map +1 -0
  964. package/dist/remediate/review/reviewGate.d.ts +72 -0
  965. package/dist/remediate/review/reviewGate.d.ts.map +1 -0
  966. package/dist/remediate/review/reviewGate.js +112 -0
  967. package/dist/remediate/review/reviewGate.js.map +1 -0
  968. package/dist/remediate/review/reviewNecessity.d.ts +53 -0
  969. package/dist/remediate/review/reviewNecessity.d.ts.map +1 -0
  970. package/dist/remediate/review/reviewNecessity.js +129 -0
  971. package/dist/remediate/review/reviewNecessity.js.map +1 -0
  972. package/dist/remediate/state/closingActions.d.ts +3 -0
  973. package/dist/remediate/state/closingActions.d.ts.map +1 -0
  974. package/dist/remediate/state/closingActions.js +10 -0
  975. package/dist/remediate/state/closingActions.js.map +1 -0
  976. package/dist/remediate/state/itemStatus.d.ts +40 -0
  977. package/dist/remediate/state/itemStatus.d.ts.map +1 -0
  978. package/dist/remediate/state/itemStatus.js +138 -0
  979. package/dist/remediate/state/itemStatus.js.map +1 -0
  980. package/dist/remediate/state/store.d.ts +65 -0
  981. package/dist/remediate/state/store.d.ts.map +1 -0
  982. package/dist/remediate/state/store.js +141 -0
  983. package/dist/remediate/state/store.js.map +1 -0
  984. package/dist/remediate/state/types.d.ts +766 -0
  985. package/dist/remediate/state/types.d.ts.map +1 -0
  986. package/dist/remediate/state/types.js +122 -0
  987. package/dist/remediate/state/types.js.map +1 -0
  988. package/dist/remediate/steps/contractPipeline.d.ts +173 -0
  989. package/dist/remediate/steps/contractPipeline.d.ts.map +1 -0
  990. package/dist/remediate/steps/contractPipeline.js +1229 -0
  991. package/dist/remediate/steps/contractPipeline.js.map +1 -0
  992. package/dist/remediate/steps/contractPipelinePrompts.d.ts +72 -0
  993. package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -0
  994. package/dist/remediate/steps/contractPipelinePrompts.js +438 -0
  995. package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -0
  996. package/dist/remediate/steps/dispatch.d.ts +434 -0
  997. package/dist/remediate/steps/dispatch.d.ts.map +1 -0
  998. package/dist/remediate/steps/dispatch.js +2180 -0
  999. package/dist/remediate/steps/dispatch.js.map +1 -0
  1000. package/dist/remediate/steps/intakeResolver.d.ts +32 -0
  1001. package/dist/remediate/steps/intakeResolver.d.ts.map +1 -0
  1002. package/dist/remediate/steps/intakeResolver.js +310 -0
  1003. package/dist/remediate/steps/intakeResolver.js.map +1 -0
  1004. package/dist/remediate/steps/leanFastPath.d.ts +49 -0
  1005. package/dist/remediate/steps/leanFastPath.d.ts.map +1 -0
  1006. package/dist/remediate/steps/leanFastPath.js +151 -0
  1007. package/dist/remediate/steps/leanFastPath.js.map +1 -0
  1008. package/dist/remediate/steps/nextStep.d.ts +323 -0
  1009. package/dist/remediate/steps/nextStep.d.ts.map +1 -0
  1010. package/dist/remediate/steps/nextStep.js +2721 -0
  1011. package/dist/remediate/steps/nextStep.js.map +1 -0
  1012. package/dist/remediate/steps/prompts.d.ts +26 -0
  1013. package/dist/remediate/steps/prompts.d.ts.map +1 -0
  1014. package/dist/remediate/steps/prompts.js +370 -0
  1015. package/dist/remediate/steps/prompts.js.map +1 -0
  1016. package/dist/remediate/steps/providerNodeDispatch.d.ts +42 -0
  1017. package/dist/remediate/steps/providerNodeDispatch.d.ts.map +1 -0
  1018. package/dist/remediate/steps/providerNodeDispatch.js +100 -0
  1019. package/dist/remediate/steps/providerNodeDispatch.js.map +1 -0
  1020. package/dist/remediate/steps/rollingSession.d.ts +84 -0
  1021. package/dist/remediate/steps/rollingSession.d.ts.map +1 -0
  1022. package/dist/remediate/steps/rollingSession.js +147 -0
  1023. package/dist/remediate/steps/rollingSession.js.map +1 -0
  1024. package/dist/remediate/steps/stepUtils.d.ts +63 -0
  1025. package/dist/remediate/steps/stepUtils.d.ts.map +1 -0
  1026. package/dist/remediate/steps/stepUtils.js +117 -0
  1027. package/dist/remediate/steps/stepUtils.js.map +1 -0
  1028. package/dist/remediate/steps/stepWriter.d.ts +27 -0
  1029. package/dist/remediate/steps/stepWriter.d.ts.map +1 -0
  1030. package/dist/remediate/steps/stepWriter.js +37 -0
  1031. package/dist/remediate/steps/stepWriter.js.map +1 -0
  1032. package/dist/remediate/steps/types.d.ts +83 -0
  1033. package/dist/remediate/steps/types.d.ts.map +1 -0
  1034. package/dist/remediate/steps/types.js +6 -0
  1035. package/dist/remediate/steps/types.js.map +1 -0
  1036. package/dist/remediate/types/options.d.ts +6 -0
  1037. package/dist/remediate/types/options.d.ts.map +1 -0
  1038. package/dist/remediate/types/options.js +2 -0
  1039. package/dist/remediate/types/options.js.map +1 -0
  1040. package/dist/remediate/types/workerSession.d.ts +36 -0
  1041. package/dist/remediate/types/workerSession.d.ts.map +1 -0
  1042. package/dist/remediate/types/workerSession.js +13 -0
  1043. package/dist/remediate/types/workerSession.js.map +1 -0
  1044. package/dist/remediate/utils/commands.d.ts +17 -0
  1045. package/dist/remediate/utils/commands.d.ts.map +1 -0
  1046. package/dist/remediate/utils/commands.js +26 -0
  1047. package/dist/remediate/utils/commands.js.map +1 -0
  1048. package/dist/remediate/utils/fileIntegrity.d.ts +27 -0
  1049. package/dist/remediate/utils/fileIntegrity.d.ts.map +1 -0
  1050. package/dist/remediate/utils/fileIntegrity.js +201 -0
  1051. package/dist/remediate/utils/fileIntegrity.js.map +1 -0
  1052. package/dist/remediate/utils/hostAssets.d.ts +18 -0
  1053. package/dist/remediate/utils/hostAssets.d.ts.map +1 -0
  1054. package/dist/remediate/utils/hostAssets.js +31 -0
  1055. package/dist/remediate/utils/hostAssets.js.map +1 -0
  1056. package/dist/remediate/validation/artifacts.d.ts +9 -0
  1057. package/dist/remediate/validation/artifacts.d.ts.map +1 -0
  1058. package/dist/remediate/validation/artifacts.js +316 -0
  1059. package/dist/remediate/validation/artifacts.js.map +1 -0
  1060. package/dist/remediate/validation/contractPipeline.d.ts +36 -0
  1061. package/dist/remediate/validation/contractPipeline.d.ts.map +1 -0
  1062. package/dist/remediate/validation/contractPipeline.js +569 -0
  1063. package/dist/remediate/validation/contractPipeline.js.map +1 -0
  1064. package/dist/remediate/validation/contractPipelineGates.d.ts +161 -0
  1065. package/dist/remediate/validation/contractPipelineGates.d.ts.map +1 -0
  1066. package/dist/remediate/validation/contractPipelineGates.js +739 -0
  1067. package/dist/remediate/validation/contractPipelineGates.js.map +1 -0
  1068. package/dist/remediate/validation/remediationState.d.ts +8 -0
  1069. package/dist/remediate/validation/remediationState.d.ts.map +1 -0
  1070. package/dist/remediate/validation/remediationState.js +187 -0
  1071. package/dist/remediate/validation/remediationState.js.map +1 -0
  1072. package/dist/shared/agentReflections.d.ts +61 -0
  1073. package/dist/shared/agentReflections.d.ts.map +1 -0
  1074. package/dist/shared/agentReflections.js +180 -0
  1075. package/dist/shared/agentReflections.js.map +1 -0
  1076. package/dist/shared/concurrency.d.ts +16 -0
  1077. package/dist/shared/concurrency.d.ts.map +1 -0
  1078. package/dist/shared/concurrency.js +34 -0
  1079. package/dist/shared/concurrency.js.map +1 -0
  1080. package/dist/shared/contracts.d.ts +2 -0
  1081. package/dist/shared/contracts.d.ts.map +1 -0
  1082. package/dist/shared/contracts.js +2 -0
  1083. package/dist/shared/contracts.js.map +1 -0
  1084. package/dist/shared/dispatch/rollingDispatch.d.ts +192 -0
  1085. package/dist/shared/dispatch/rollingDispatch.d.ts.map +1 -0
  1086. package/dist/shared/dispatch/rollingDispatch.js +389 -0
  1087. package/dist/shared/dispatch/rollingDispatch.js.map +1 -0
  1088. package/dist/shared/dispatch/tierRank.d.ts +53 -0
  1089. package/dist/shared/dispatch/tierRank.d.ts.map +1 -0
  1090. package/dist/shared/dispatch/tierRank.js +69 -0
  1091. package/dist/shared/dispatch/tierRank.js.map +1 -0
  1092. package/dist/shared/engine/obligationEngine.d.ts +159 -0
  1093. package/dist/shared/engine/obligationEngine.d.ts.map +1 -0
  1094. package/dist/shared/engine/obligationEngine.js +124 -0
  1095. package/dist/shared/engine/obligationEngine.js.map +1 -0
  1096. package/dist/shared/findingIdentitySignature.d.ts +82 -0
  1097. package/dist/shared/findingIdentitySignature.d.ts.map +1 -0
  1098. package/dist/shared/findingIdentitySignature.js +114 -0
  1099. package/dist/shared/findingIdentitySignature.js.map +1 -0
  1100. package/dist/shared/git.d.ts +18 -0
  1101. package/dist/shared/git.d.ts.map +1 -0
  1102. package/dist/shared/git.js +63 -0
  1103. package/dist/shared/git.js.map +1 -0
  1104. package/dist/shared/hash.d.ts +16 -0
  1105. package/dist/shared/hash.d.ts.map +1 -0
  1106. package/dist/shared/hash.js +36 -0
  1107. package/dist/shared/hash.js.map +1 -0
  1108. package/dist/shared/hostAssets.d.ts +40 -0
  1109. package/dist/shared/hostAssets.d.ts.map +1 -0
  1110. package/dist/shared/hostAssets.js +110 -0
  1111. package/dist/shared/hostAssets.js.map +1 -0
  1112. package/dist/shared/ids.d.ts +18 -0
  1113. package/dist/shared/ids.d.ts.map +1 -0
  1114. package/dist/shared/ids.js +27 -0
  1115. package/dist/shared/ids.js.map +1 -0
  1116. package/dist/shared/index.d.ts +150 -0
  1117. package/dist/shared/index.d.ts.map +1 -0
  1118. package/dist/shared/index.js +112 -0
  1119. package/dist/shared/index.js.map +1 -0
  1120. package/dist/shared/intent/clauseInterpreter.d.ts +84 -0
  1121. package/dist/shared/intent/clauseInterpreter.d.ts.map +1 -0
  1122. package/dist/shared/intent/clauseInterpreter.js +183 -0
  1123. package/dist/shared/intent/clauseInterpreter.js.map +1 -0
  1124. package/dist/shared/intent/freeFormIntentInterpreter.d.ts +46 -0
  1125. package/dist/shared/intent/freeFormIntentInterpreter.d.ts.map +1 -0
  1126. package/dist/shared/intent/freeFormIntentInterpreter.js +126 -0
  1127. package/dist/shared/intent/freeFormIntentInterpreter.js.map +1 -0
  1128. package/dist/shared/intent/sharedIntentData.d.ts +16 -0
  1129. package/dist/shared/intent/sharedIntentData.d.ts.map +1 -0
  1130. package/dist/shared/intent/sharedIntentData.js +38 -0
  1131. package/dist/shared/intent/sharedIntentData.js.map +1 -0
  1132. package/dist/shared/io/auditToolsPaths.d.ts +36 -0
  1133. package/dist/shared/io/auditToolsPaths.d.ts.map +1 -0
  1134. package/dist/shared/io/auditToolsPaths.js +47 -0
  1135. package/dist/shared/io/auditToolsPaths.js.map +1 -0
  1136. package/dist/shared/io/json.d.ts +30 -0
  1137. package/dist/shared/io/json.d.ts.map +1 -0
  1138. package/dist/shared/io/json.js +183 -0
  1139. package/dist/shared/io/json.js.map +1 -0
  1140. package/dist/shared/io/stepContractWriter.d.ts +103 -0
  1141. package/dist/shared/io/stepContractWriter.d.ts.map +1 -0
  1142. package/dist/shared/io/stepContractWriter.js +85 -0
  1143. package/dist/shared/io/stepContractWriter.js.map +1 -0
  1144. package/dist/shared/observability/runLog.d.ts +37 -0
  1145. package/dist/shared/observability/runLog.d.ts.map +1 -0
  1146. package/dist/shared/observability/runLog.js +40 -0
  1147. package/dist/shared/observability/runLog.js.map +1 -0
  1148. package/dist/shared/opencodePermissions.d.ts +49 -0
  1149. package/dist/shared/opencodePermissions.d.ts.map +1 -0
  1150. package/dist/shared/opencodePermissions.js +118 -0
  1151. package/dist/shared/opencodePermissions.js.map +1 -0
  1152. package/dist/shared/parsing/stringAwareScanner.d.ts +32 -0
  1153. package/dist/shared/parsing/stringAwareScanner.d.ts.map +1 -0
  1154. package/dist/shared/parsing/stringAwareScanner.js +51 -0
  1155. package/dist/shared/parsing/stringAwareScanner.js.map +1 -0
  1156. package/dist/shared/prompts.d.ts +47 -0
  1157. package/dist/shared/prompts.d.ts.map +1 -0
  1158. package/dist/shared/prompts.js +41 -0
  1159. package/dist/shared/prompts.js.map +1 -0
  1160. package/dist/shared/providers/claudeCodeProvider.d.ts +56 -0
  1161. package/dist/shared/providers/claudeCodeProvider.d.ts.map +1 -0
  1162. package/dist/shared/providers/claudeCodeProvider.js +67 -0
  1163. package/dist/shared/providers/claudeCodeProvider.js.map +1 -0
  1164. package/dist/shared/providers/codexProvider.d.ts +37 -0
  1165. package/dist/shared/providers/codexProvider.d.ts.map +1 -0
  1166. package/dist/shared/providers/codexProvider.js +79 -0
  1167. package/dist/shared/providers/codexProvider.js.map +1 -0
  1168. package/dist/shared/providers/constants.d.ts +4 -0
  1169. package/dist/shared/providers/constants.d.ts.map +1 -0
  1170. package/dist/shared/providers/constants.js +4 -0
  1171. package/dist/shared/providers/constants.js.map +1 -0
  1172. package/dist/shared/providers/localSubprocessProvider.d.ts +10 -0
  1173. package/dist/shared/providers/localSubprocessProvider.d.ts.map +1 -0
  1174. package/dist/shared/providers/localSubprocessProvider.js +20 -0
  1175. package/dist/shared/providers/localSubprocessProvider.js.map +1 -0
  1176. package/dist/shared/providers/openAiCompatibleProvider.d.ts +62 -0
  1177. package/dist/shared/providers/openAiCompatibleProvider.d.ts.map +1 -0
  1178. package/dist/shared/providers/openAiCompatibleProvider.js +333 -0
  1179. package/dist/shared/providers/openAiCompatibleProvider.js.map +1 -0
  1180. package/dist/shared/providers/opencodeLaunch.d.ts +28 -0
  1181. package/dist/shared/providers/opencodeLaunch.d.ts.map +1 -0
  1182. package/dist/shared/providers/opencodeLaunch.js +39 -0
  1183. package/dist/shared/providers/opencodeLaunch.js.map +1 -0
  1184. package/dist/shared/providers/opencodeProvider.d.ts +19 -0
  1185. package/dist/shared/providers/opencodeProvider.d.ts.map +1 -0
  1186. package/dist/shared/providers/opencodeProvider.js +41 -0
  1187. package/dist/shared/providers/opencodeProvider.js.map +1 -0
  1188. package/dist/shared/providers/providerConfirmation.d.ts +56 -0
  1189. package/dist/shared/providers/providerConfirmation.d.ts.map +1 -0
  1190. package/dist/shared/providers/providerConfirmation.js +195 -0
  1191. package/dist/shared/providers/providerConfirmation.js.map +1 -0
  1192. package/dist/shared/providers/providerDiagnostics.d.ts +11 -0
  1193. package/dist/shared/providers/providerDiagnostics.d.ts.map +1 -0
  1194. package/dist/shared/providers/providerDiagnostics.js +28 -0
  1195. package/dist/shared/providers/providerDiagnostics.js.map +1 -0
  1196. package/dist/shared/providers/providerFactory.d.ts +72 -0
  1197. package/dist/shared/providers/providerFactory.d.ts.map +1 -0
  1198. package/dist/shared/providers/providerFactory.js +246 -0
  1199. package/dist/shared/providers/providerFactory.js.map +1 -0
  1200. package/dist/shared/providers/providerKeyedFactory.d.ts +14 -0
  1201. package/dist/shared/providers/providerKeyedFactory.d.ts.map +1 -0
  1202. package/dist/shared/providers/providerKeyedFactory.js +16 -0
  1203. package/dist/shared/providers/providerKeyedFactory.js.map +1 -0
  1204. package/dist/shared/providers/spawnLoggedCommand.d.ts +10 -0
  1205. package/dist/shared/providers/spawnLoggedCommand.d.ts.map +1 -0
  1206. package/dist/shared/providers/spawnLoggedCommand.js +304 -0
  1207. package/dist/shared/providers/spawnLoggedCommand.js.map +1 -0
  1208. package/dist/shared/providers/subprocessTemplateProvider.d.ts +19 -0
  1209. package/dist/shared/providers/subprocessTemplateProvider.d.ts.map +1 -0
  1210. package/dist/shared/providers/subprocessTemplateProvider.js +91 -0
  1211. package/dist/shared/providers/subprocessTemplateProvider.js.map +1 -0
  1212. package/dist/shared/providers/types.d.ts +43 -0
  1213. package/dist/shared/providers/types.d.ts.map +1 -0
  1214. package/dist/shared/providers/types.js +2 -0
  1215. package/dist/shared/providers/types.js.map +1 -0
  1216. package/dist/shared/providers/workerTaskLaunch.d.ts +32 -0
  1217. package/dist/shared/providers/workerTaskLaunch.d.ts.map +1 -0
  1218. package/dist/shared/providers/workerTaskLaunch.js +27 -0
  1219. package/dist/shared/providers/workerTaskLaunch.js.map +1 -0
  1220. package/dist/shared/quota/antigravityQuotaSource.d.ts +44 -0
  1221. package/dist/shared/quota/antigravityQuotaSource.d.ts.map +1 -0
  1222. package/dist/shared/quota/antigravityQuotaSource.js +101 -0
  1223. package/dist/shared/quota/antigravityQuotaSource.js.map +1 -0
  1224. package/dist/shared/quota/capacity.d.ts +283 -0
  1225. package/dist/shared/quota/capacity.d.ts.map +1 -0
  1226. package/dist/shared/quota/capacity.js +290 -0
  1227. package/dist/shared/quota/capacity.js.map +1 -0
  1228. package/dist/shared/quota/claudeCodeJsonLines.d.ts +15 -0
  1229. package/dist/shared/quota/claudeCodeJsonLines.d.ts.map +1 -0
  1230. package/dist/shared/quota/claudeCodeJsonLines.js +34 -0
  1231. package/dist/shared/quota/claudeCodeJsonLines.js.map +1 -0
  1232. package/dist/shared/quota/claudeOAuthQuotaSource.d.ts +56 -0
  1233. package/dist/shared/quota/claudeOAuthQuotaSource.d.ts.map +1 -0
  1234. package/dist/shared/quota/claudeOAuthQuotaSource.js +136 -0
  1235. package/dist/shared/quota/claudeOAuthQuotaSource.js.map +1 -0
  1236. package/dist/shared/quota/codexQuotaSource.d.ts +49 -0
  1237. package/dist/shared/quota/codexQuotaSource.d.ts.map +1 -0
  1238. package/dist/shared/quota/codexQuotaSource.js +96 -0
  1239. package/dist/shared/quota/codexQuotaSource.js.map +1 -0
  1240. package/dist/shared/quota/compositeQuotaSource.d.ts +29 -0
  1241. package/dist/shared/quota/compositeQuotaSource.d.ts.map +1 -0
  1242. package/dist/shared/quota/compositeQuotaSource.js +58 -0
  1243. package/dist/shared/quota/compositeQuotaSource.js.map +1 -0
  1244. package/dist/shared/quota/copilotQuotaSource.d.ts +57 -0
  1245. package/dist/shared/quota/copilotQuotaSource.d.ts.map +1 -0
  1246. package/dist/shared/quota/copilotQuotaSource.js +141 -0
  1247. package/dist/shared/quota/copilotQuotaSource.js.map +1 -0
  1248. package/dist/shared/quota/errorParsers/claudeCodeErrorParser.d.ts +7 -0
  1249. package/dist/shared/quota/errorParsers/claudeCodeErrorParser.d.ts.map +1 -0
  1250. package/dist/shared/quota/errorParsers/claudeCodeErrorParser.js +33 -0
  1251. package/dist/shared/quota/errorParsers/claudeCodeErrorParser.js.map +1 -0
  1252. package/dist/shared/quota/errorParsers/genericErrorParser.d.ts +10 -0
  1253. package/dist/shared/quota/errorParsers/genericErrorParser.d.ts.map +1 -0
  1254. package/dist/shared/quota/errorParsers/genericErrorParser.js +8 -0
  1255. package/dist/shared/quota/errorParsers/genericErrorParser.js.map +1 -0
  1256. package/dist/shared/quota/errorParsers/index.d.ts +6 -0
  1257. package/dist/shared/quota/errorParsers/index.d.ts.map +1 -0
  1258. package/dist/shared/quota/errorParsers/index.js +16 -0
  1259. package/dist/shared/quota/errorParsers/index.js.map +1 -0
  1260. package/dist/shared/quota/errorParsing.d.ts +8 -0
  1261. package/dist/shared/quota/errorParsing.d.ts.map +1 -0
  1262. package/dist/shared/quota/errorParsing.js +129 -0
  1263. package/dist/shared/quota/errorParsing.js.map +1 -0
  1264. package/dist/shared/quota/fileLock.d.ts +9 -0
  1265. package/dist/shared/quota/fileLock.d.ts.map +1 -0
  1266. package/dist/shared/quota/fileLock.js +202 -0
  1267. package/dist/shared/quota/fileLock.js.map +1 -0
  1268. package/dist/shared/quota/hostLimits.d.ts +16 -0
  1269. package/dist/shared/quota/hostLimits.d.ts.map +1 -0
  1270. package/dist/shared/quota/hostLimits.js +57 -0
  1271. package/dist/shared/quota/hostLimits.js.map +1 -0
  1272. package/dist/shared/quota/httpQuotaSource.d.ts +87 -0
  1273. package/dist/shared/quota/httpQuotaSource.d.ts.map +1 -0
  1274. package/dist/shared/quota/httpQuotaSource.js +90 -0
  1275. package/dist/shared/quota/httpQuotaSource.js.map +1 -0
  1276. package/dist/shared/quota/learnedQuotaSource.d.ts +8 -0
  1277. package/dist/shared/quota/learnedQuotaSource.d.ts.map +1 -0
  1278. package/dist/shared/quota/learnedQuotaSource.js +26 -0
  1279. package/dist/shared/quota/learnedQuotaSource.js.map +1 -0
  1280. package/dist/shared/quota/limits.d.ts +35 -0
  1281. package/dist/shared/quota/limits.d.ts.map +1 -0
  1282. package/dist/shared/quota/limits.js +110 -0
  1283. package/dist/shared/quota/limits.js.map +1 -0
  1284. package/dist/shared/quota/openCodeQuotaSource.d.ts +18 -0
  1285. package/dist/shared/quota/openCodeQuotaSource.d.ts.map +1 -0
  1286. package/dist/shared/quota/openCodeQuotaSource.js +84 -0
  1287. package/dist/shared/quota/openCodeQuotaSource.js.map +1 -0
  1288. package/dist/shared/quota/quotaSource.d.ts +29 -0
  1289. package/dist/shared/quota/quotaSource.d.ts.map +1 -0
  1290. package/dist/shared/quota/quotaSource.js +12 -0
  1291. package/dist/shared/quota/quotaSource.js.map +1 -0
  1292. package/dist/shared/quota/rollingEngine.d.ts +130 -0
  1293. package/dist/shared/quota/rollingEngine.d.ts.map +1 -0
  1294. package/dist/shared/quota/rollingEngine.js +153 -0
  1295. package/dist/shared/quota/rollingEngine.js.map +1 -0
  1296. package/dist/shared/quota/scheduler.d.ts +94 -0
  1297. package/dist/shared/quota/scheduler.d.ts.map +1 -0
  1298. package/dist/shared/quota/scheduler.js +313 -0
  1299. package/dist/shared/quota/scheduler.js.map +1 -0
  1300. package/dist/shared/quota/slidingWindow.d.ts +5 -0
  1301. package/dist/shared/quota/slidingWindow.d.ts.map +1 -0
  1302. package/dist/shared/quota/slidingWindow.js +29 -0
  1303. package/dist/shared/quota/slidingWindow.js.map +1 -0
  1304. package/dist/shared/quota/state.d.ts +27 -0
  1305. package/dist/shared/quota/state.d.ts.map +1 -0
  1306. package/dist/shared/quota/state.js +204 -0
  1307. package/dist/shared/quota/state.js.map +1 -0
  1308. package/dist/shared/quota/types.d.ts +109 -0
  1309. package/dist/shared/quota/types.d.ts.map +1 -0
  1310. package/dist/shared/quota/types.js +56 -0
  1311. package/dist/shared/quota/types.js.map +1 -0
  1312. package/dist/shared/reReview/projectionDiff.d.ts +65 -0
  1313. package/dist/shared/reReview/projectionDiff.d.ts.map +1 -0
  1314. package/dist/shared/reReview/projectionDiff.js +144 -0
  1315. package/dist/shared/reReview/projectionDiff.js.map +1 -0
  1316. package/dist/shared/rolling/pausedState.d.ts +109 -0
  1317. package/dist/shared/rolling/pausedState.d.ts.map +1 -0
  1318. package/dist/shared/rolling/pausedState.js +100 -0
  1319. package/dist/shared/rolling/pausedState.js.map +1 -0
  1320. package/dist/shared/tokens.d.ts +24 -0
  1321. package/dist/shared/tokens.d.ts.map +1 -0
  1322. package/dist/shared/tokens.js +54 -0
  1323. package/dist/shared/tokens.js.map +1 -0
  1324. package/dist/shared/tooling/allowlistedExec.d.ts +45 -0
  1325. package/dist/shared/tooling/allowlistedExec.d.ts.map +1 -0
  1326. package/dist/shared/tooling/allowlistedExec.js +340 -0
  1327. package/dist/shared/tooling/allowlistedExec.js.map +1 -0
  1328. package/dist/shared/tooling/analyzerDeps.d.ts +65 -0
  1329. package/dist/shared/tooling/analyzerDeps.d.ts.map +1 -0
  1330. package/dist/shared/tooling/analyzerDeps.js +130 -0
  1331. package/dist/shared/tooling/analyzerDeps.js.map +1 -0
  1332. package/dist/shared/tooling/exec.d.ts +99 -0
  1333. package/dist/shared/tooling/exec.d.ts.map +1 -0
  1334. package/dist/shared/tooling/exec.js +217 -0
  1335. package/dist/shared/tooling/exec.js.map +1 -0
  1336. package/dist/shared/tooling/repoConventions.d.ts +23 -0
  1337. package/dist/shared/tooling/repoConventions.d.ts.map +1 -0
  1338. package/dist/shared/tooling/repoConventions.js +177 -0
  1339. package/dist/shared/tooling/repoConventions.js.map +1 -0
  1340. package/dist/shared/tooling/testCommand.d.ts +17 -0
  1341. package/dist/shared/tooling/testCommand.d.ts.map +1 -0
  1342. package/dist/shared/tooling/testCommand.js +106 -0
  1343. package/dist/shared/tooling/testCommand.js.map +1 -0
  1344. package/dist/shared/types/accessDeclaration.d.ts +16 -0
  1345. package/dist/shared/types/accessDeclaration.d.ts.map +1 -0
  1346. package/dist/shared/types/accessDeclaration.js +9 -0
  1347. package/dist/shared/types/accessDeclaration.js.map +1 -0
  1348. package/dist/shared/types/contractPipeline/design.d.ts +74 -0
  1349. package/dist/shared/types/contractPipeline/design.d.ts.map +1 -0
  1350. package/dist/shared/types/contractPipeline/design.js +10 -0
  1351. package/dist/shared/types/contractPipeline/design.js.map +1 -0
  1352. package/dist/shared/types/contractPipeline/goal.d.ts +41 -0
  1353. package/dist/shared/types/contractPipeline/goal.d.ts.map +1 -0
  1354. package/dist/shared/types/contractPipeline/goal.js +10 -0
  1355. package/dist/shared/types/contractPipeline/goal.js.map +1 -0
  1356. package/dist/shared/types/contractPipeline/implementation.d.ts +64 -0
  1357. package/dist/shared/types/contractPipeline/implementation.d.ts.map +1 -0
  1358. package/dist/shared/types/contractPipeline/implementation.js +8 -0
  1359. package/dist/shared/types/contractPipeline/implementation.js.map +1 -0
  1360. package/dist/shared/types/contractPipeline/obligations.d.ts +141 -0
  1361. package/dist/shared/types/contractPipeline/obligations.d.ts.map +1 -0
  1362. package/dist/shared/types/contractPipeline/obligations.js +16 -0
  1363. package/dist/shared/types/contractPipeline/obligations.js.map +1 -0
  1364. package/dist/shared/types/contractPipeline/verification.d.ts +64 -0
  1365. package/dist/shared/types/contractPipeline/verification.d.ts.map +1 -0
  1366. package/dist/shared/types/contractPipeline/verification.js +10 -0
  1367. package/dist/shared/types/contractPipeline/verification.js.map +1 -0
  1368. package/dist/shared/types/contractPipeline.d.ts +36 -0
  1369. package/dist/shared/types/contractPipeline.d.ts.map +1 -0
  1370. package/dist/shared/types/contractPipeline.js +31 -0
  1371. package/dist/shared/types/contractPipeline.js.map +1 -0
  1372. package/dist/shared/types/disposition.d.ts +46 -0
  1373. package/dist/shared/types/disposition.d.ts.map +1 -0
  1374. package/dist/shared/types/disposition.js +22 -0
  1375. package/dist/shared/types/disposition.js.map +1 -0
  1376. package/dist/shared/types/finding.d.ts +1463 -0
  1377. package/dist/shared/types/finding.d.ts.map +1 -0
  1378. package/dist/shared/types/finding.js +234 -0
  1379. package/dist/shared/types/finding.js.map +1 -0
  1380. package/dist/shared/types/flows.d.ts +84 -0
  1381. package/dist/shared/types/flows.d.ts.map +1 -0
  1382. package/dist/shared/types/flows.js +23 -0
  1383. package/dist/shared/types/flows.js.map +1 -0
  1384. package/dist/shared/types/graph.d.ts +359 -0
  1385. package/dist/shared/types/graph.d.ts.map +1 -0
  1386. package/dist/shared/types/graph.js +38 -0
  1387. package/dist/shared/types/graph.js.map +1 -0
  1388. package/dist/shared/types/intentCheckpoint.d.ts +95 -0
  1389. package/dist/shared/types/intentCheckpoint.d.ts.map +1 -0
  1390. package/dist/shared/types/intentCheckpoint.js +2 -0
  1391. package/dist/shared/types/intentCheckpoint.js.map +1 -0
  1392. package/dist/shared/types/intentInterpretation.d.ts +57 -0
  1393. package/dist/shared/types/intentInterpretation.d.ts.map +1 -0
  1394. package/dist/shared/types/intentInterpretation.js +20 -0
  1395. package/dist/shared/types/intentInterpretation.js.map +1 -0
  1396. package/dist/shared/types/lens.d.ts +38 -0
  1397. package/dist/shared/types/lens.d.ts.map +1 -0
  1398. package/dist/shared/types/lens.js +80 -0
  1399. package/dist/shared/types/lens.js.map +1 -0
  1400. package/dist/shared/types/obligationLedger.d.ts +35 -0
  1401. package/dist/shared/types/obligationLedger.d.ts.map +1 -0
  1402. package/dist/shared/types/obligationLedger.js +77 -0
  1403. package/dist/shared/types/obligationLedger.js.map +1 -0
  1404. package/dist/shared/types/providerConfirmation.d.ts +51 -0
  1405. package/dist/shared/types/providerConfirmation.d.ts.map +1 -0
  1406. package/dist/shared/types/providerConfirmation.js +19 -0
  1407. package/dist/shared/types/providerConfirmation.js.map +1 -0
  1408. package/dist/shared/types/remediationOutcome.d.ts +41 -0
  1409. package/dist/shared/types/remediationOutcome.d.ts.map +1 -0
  1410. package/dist/shared/types/remediationOutcome.js +7 -0
  1411. package/dist/shared/types/remediationOutcome.js.map +1 -0
  1412. package/dist/shared/types/risk.d.ts +52 -0
  1413. package/dist/shared/types/risk.d.ts.map +1 -0
  1414. package/dist/shared/types/risk.js +17 -0
  1415. package/dist/shared/types/risk.js.map +1 -0
  1416. package/dist/shared/types/rollingDispatch.d.ts +61 -0
  1417. package/dist/shared/types/rollingDispatch.d.ts.map +1 -0
  1418. package/dist/shared/types/rollingDispatch.js +19 -0
  1419. package/dist/shared/types/rollingDispatch.js.map +1 -0
  1420. package/dist/shared/types/runLedger.d.ts +18 -0
  1421. package/dist/shared/types/runLedger.d.ts.map +1 -0
  1422. package/dist/shared/types/runLedger.js +7 -0
  1423. package/dist/shared/types/runLedger.js.map +1 -0
  1424. package/dist/shared/types/sessionConfig.d.ts +294 -0
  1425. package/dist/shared/types/sessionConfig.d.ts.map +1 -0
  1426. package/dist/shared/types/sessionConfig.js +44 -0
  1427. package/dist/shared/types/sessionConfig.js.map +1 -0
  1428. package/dist/shared/types/stepContract.d.ts +10 -0
  1429. package/dist/shared/types/stepContract.d.ts.map +1 -0
  1430. package/dist/shared/types/stepContract.js +4 -0
  1431. package/dist/shared/types/stepContract.js.map +1 -0
  1432. package/dist/shared/types/surfaces.d.ts +73 -0
  1433. package/dist/shared/types/surfaces.d.ts.map +1 -0
  1434. package/dist/shared/types/surfaces.js +21 -0
  1435. package/dist/shared/types/surfaces.js.map +1 -0
  1436. package/dist/shared/validation/basic.d.ts +24 -0
  1437. package/dist/shared/validation/basic.d.ts.map +1 -0
  1438. package/dist/shared/validation/basic.js +57 -0
  1439. package/dist/shared/validation/basic.js.map +1 -0
  1440. package/dist/shared/validation/findingGrounding.d.ts +45 -0
  1441. package/dist/shared/validation/findingGrounding.d.ts.map +1 -0
  1442. package/dist/shared/validation/findingGrounding.js +103 -0
  1443. package/dist/shared/validation/findingGrounding.js.map +1 -0
  1444. package/dist/shared/validation/findingsReport.d.ts +42 -0
  1445. package/dist/shared/validation/findingsReport.d.ts.map +1 -0
  1446. package/dist/shared/validation/findingsReport.js +76 -0
  1447. package/dist/shared/validation/findingsReport.js.map +1 -0
  1448. package/dist/shared/validation/sessionConfig.d.ts +22 -0
  1449. package/dist/shared/validation/sessionConfig.d.ts.map +1 -0
  1450. package/dist/shared/validation/sessionConfig.js +38 -0
  1451. package/dist/shared/validation/sessionConfig.js.map +1 -0
  1452. package/docs/audit-pkg/contracts.md +227 -0
  1453. package/docs/audit-pkg/development.md +112 -0
  1454. package/docs/audit-pkg/history.md +66 -0
  1455. package/docs/audit-pkg/operator-guide.md +204 -0
  1456. package/docs/audit-pkg/product.md +119 -0
  1457. package/docs/audit-pkg/release.md +131 -0
  1458. package/opencode.json +159 -0
  1459. package/package.json +104 -0
  1460. package/remediate-code.mjs +116 -0
  1461. package/schemas/audit_result.schema.json +510 -0
  1462. package/schemas/audit_results.schema.json +514 -0
  1463. package/schemas/audit_task.schema.json +127 -0
  1464. package/schemas/finding.schema.json +261 -0
  1465. package/schemas/lens.schema.json +19 -0
  1466. package/scripts/audit/postinstall.mjs +385 -0
  1467. package/scripts/postinstall.mjs +24 -0
  1468. package/scripts/remediate/postinstall.mjs +387 -0
  1469. package/skills/audit-code/SKILL.md +166 -0
  1470. package/skills/audit-code/agents/openai.yaml +4 -0
  1471. package/skills/audit-code/audit-code.prompt.md +112 -0
  1472. package/skills/audit-code/opencode-command-template.txt +13 -0
  1473. package/skills/remediate-code/SKILL.md +90 -0
  1474. package/skills/remediate-code/agents/openai.yaml +4 -0
  1475. package/skills/remediate-code/remediate-code.prompt.md +94 -0
  1476. package/templates/AGENTS.remediate-code.md +6 -0
@@ -0,0 +1,474 @@
1
+ function summarizeUnits(bundle) {
2
+ const units = bundle.unit_manifest?.units ?? [];
3
+ if (units.length === 0)
4
+ return "No units identified.";
5
+ const lines = units.map((unit) => {
6
+ const lenses = unit.required_lenses.join(", ") || "none";
7
+ return `- ${unit.unit_id} (${unit.files.length} files, lenses: ${lenses})`;
8
+ });
9
+ return [
10
+ `${units.length} units:`,
11
+ ...lines.slice(0, 40),
12
+ ...(units.length > 40 ? [` ... and ${units.length - 40} more`] : []),
13
+ ].join("\n");
14
+ }
15
+ function summarizeGraph(bundle) {
16
+ const graphs = bundle.graph_bundle?.graphs;
17
+ if (!graphs)
18
+ return "No dependency graph available.";
19
+ const counts = [];
20
+ for (const [kind, edges] of Object.entries(graphs)) {
21
+ if (Array.isArray(edges) && edges.length > 0) {
22
+ counts.push(`${kind}: ${edges.length} edges`);
23
+ }
24
+ }
25
+ if (counts.length === 0)
26
+ return "Dependency graph is empty.";
27
+ return `Dependency graph: ${counts.join(", ")}.`;
28
+ }
29
+ function summarizeFlows(bundle, max = 15) {
30
+ const flows = bundle.critical_flows?.flows ?? [];
31
+ if (flows.length === 0)
32
+ return "No critical flows identified.";
33
+ const shown = flows.slice(0, max);
34
+ const lines = shown.map((flow) => `- ${flow.name}: ${flow.paths.length} files, concerns: ${flow.concerns.join(", ") || "none"}`);
35
+ return [
36
+ `${flows.length} critical flows:`,
37
+ ...lines,
38
+ ...(flows.length > max ? [` ... and ${flows.length - max} more`] : []),
39
+ ].join("\n");
40
+ }
41
+ function summarizeRisk(bundle) {
42
+ const items = bundle.risk_register?.items ?? [];
43
+ if (items.length === 0)
44
+ return "No risk items.";
45
+ const sorted = [...items].sort((a, b) => b.risk_score - a.risk_score);
46
+ const top = sorted.slice(0, 10);
47
+ const lines = top.map((item) => `- ${item.unit_id}: score ${item.risk_score}, signals: ${item.signals.join(", ") || "none"}`);
48
+ return [
49
+ `${items.length} risk items (top ${top.length} by score):`,
50
+ ...lines,
51
+ ].join("\n");
52
+ }
53
+ function buildPrioritizedReadingList(bundle, maxUnits) {
54
+ const items = bundle.risk_register?.items ?? [];
55
+ const units = bundle.unit_manifest?.units ?? [];
56
+ if (items.length === 0 && units.length === 0) {
57
+ return "No risk or unit data available; read the repository root files to orient yourself.";
58
+ }
59
+ // Build a map from unit_id → file list for fast lookup
60
+ const unitFiles = new Map();
61
+ for (const unit of units) {
62
+ unitFiles.set(unit.unit_id, unit.files);
63
+ }
64
+ // Sort risk items by score descending, then take the top-N
65
+ const sorted = [...items].sort((a, b) => b.risk_score - a.risk_score);
66
+ const top = sorted.slice(0, maxUnits);
67
+ if (top.length === 0) {
68
+ // Fall back to listing all units if no risk data
69
+ const allUnits = units.slice(0, maxUnits);
70
+ const lines = allUnits.map((u) => `- **${u.unit_id}** — ${u.files.join(", ")}`);
71
+ return [
72
+ `Top ${allUnits.length} unit(s) (no risk scores available):`,
73
+ ...lines,
74
+ ].join("\n");
75
+ }
76
+ const lines = top.map((item) => {
77
+ const files = unitFiles.get(item.unit_id);
78
+ const fileList = files && files.length > 0 ? files.join(", ") : "(files unknown)";
79
+ return `- **${item.unit_id}** (risk score: ${item.risk_score}) — ${fileList}`;
80
+ });
81
+ return [
82
+ `Top ${top.length} highest-risk unit(s) by risk score (out of ${items.length} total):`,
83
+ ...lines,
84
+ ].join("\n");
85
+ }
86
+ function summarizeSurfaces(bundle, max = 20) {
87
+ const surfaces = bundle.surface_manifest?.surfaces ?? [];
88
+ if (surfaces.length === 0)
89
+ return "No externally reachable surfaces identified.";
90
+ const shown = surfaces.slice(0, max);
91
+ const lines = shown.map((surface) => `- ${surface.id} (${surface.kind}): ${surface.entrypoint}${surface.methods?.length ? ` [${surface.methods.join(", ")}]` : ""}`);
92
+ return [
93
+ `${surfaces.length} surfaces:`,
94
+ ...lines,
95
+ ...(surfaces.length > max ? [` ... and ${surfaces.length - max} more`] : []),
96
+ ].join("\n");
97
+ }
98
+ function summarizeFiles(bundle) {
99
+ const files = bundle.repo_manifest?.files ?? [];
100
+ if (files.length === 0)
101
+ return "No files in manifest.";
102
+ const byLanguage = new Map();
103
+ for (const file of files) {
104
+ const lang = file.language || "unknown";
105
+ byLanguage.set(lang, (byLanguage.get(lang) ?? 0) + 1);
106
+ }
107
+ const langSummary = [...byLanguage.entries()]
108
+ .sort((a, b) => b[1] - a[1])
109
+ .map(([lang, count]) => `${lang}: ${count}`)
110
+ .join(", ");
111
+ return `${files.length} files (${langSummary}).`;
112
+ }
113
+ function formatDeterministicFindings(findings, max = 20) {
114
+ if (findings.length === 0)
115
+ return "No structural issues detected by deterministic analysis.";
116
+ const shown = findings.slice(0, max);
117
+ const lines = shown.map((finding) => `- [${finding.severity}] ${finding.title}: ${finding.summary}`);
118
+ return [
119
+ `${findings.length} structural findings from deterministic analysis:`,
120
+ ...lines,
121
+ ...(findings.length > max ? [` ... and ${findings.length - max} more`] : []),
122
+ ].join("\n");
123
+ }
124
+ /**
125
+ * Built-in conceptual perspectives, ordered most-to-least commonly useful. The
126
+ * deep fan-out takes the first `perspectives` of these. Each is a maximally
127
+ * dissimilar value system so the union covers angles no single pass would. A
128
+ * reviewer may sharpen its lens to the codebase, but stays in character.
129
+ */
130
+ export const CONCEPTUAL_PERSPECTIVES = [
131
+ {
132
+ name: "Pragmatist",
133
+ lens: "Does this actually work for users? What's the shortest path to value? Flag anything that adds ceremony or indirection without earning its keep.",
134
+ },
135
+ {
136
+ name: "Mathematician seeking elegance",
137
+ lens: "Minimal complexity, orthogonal abstractions, no redundancy. Flag overlapping concepts that should be unified and abstractions that fail to compose.",
138
+ },
139
+ {
140
+ name: "Short attention span",
141
+ lens: "Frustrated by anything taking >30 seconds to understand. If a design can't be explained simply, it's too complex. Flag cognitive-load hotspots and implicit knowledge.",
142
+ },
143
+ {
144
+ name: "Novelty-seeker",
145
+ lens: "Always hunting for the latest tool, pattern, or library that could replace hand-rolled machinery. Flag wheels being reinvented and standards being ignored.",
146
+ },
147
+ {
148
+ name: "Adversary",
149
+ lens: "What could go wrong, what's fragile, what breaks under pressure or at scale? Flag failure modes the happy path quietly assumes away.",
150
+ },
151
+ {
152
+ name: "Maintainer inheriting this cold",
153
+ lens: "A new engineer six months from now with no context. Flag what would take longest to learn, what's implicit, and what has no obvious entry point.",
154
+ },
155
+ {
156
+ name: "Minimalist",
157
+ lens: "What could be deleted entirely? Flag features, layers, and options that exist but earn little, and capabilities that duplicate one another.",
158
+ },
159
+ ];
160
+ /** Default number of deep-review perspectives when the host does not specify. */
161
+ export const DEFAULT_CONCEPTUAL_PERSPECTIVES = 5;
162
+ /**
163
+ * Clamp a requested perspective count into the supported range: at least 2
164
+ * (one perspective is just a shallow review) and at most the number of built-in
165
+ * perspectives. Non-finite / undefined ⇒ the default.
166
+ */
167
+ export function clampPerspectiveCount(requested) {
168
+ if (requested === undefined || !Number.isFinite(requested)) {
169
+ return DEFAULT_CONCEPTUAL_PERSPECTIVES;
170
+ }
171
+ return Math.max(2, Math.min(CONCEPTUAL_PERSPECTIVES.length, Math.floor(requested)));
172
+ }
173
+ /** The first `count` (clamped) built-in perspectives for a deep fan-out. */
174
+ export function selectPerspectives(count) {
175
+ return CONCEPTUAL_PERSPECTIVES.slice(0, clampPerspectiveCount(count));
176
+ }
177
+ /**
178
+ * Shared "how to think" block for the conceptual-review prompts. This is the
179
+ * lens meant to catch deep architectural mistakes, so it asks GENERAL,
180
+ * first-principles questions and tells the reviewer to orient then roam the real
181
+ * code — never a project-specific checklist (it must work on any repository).
182
+ */
183
+ function conceptualCritiqueInstructions() {
184
+ return [
185
+ "## Orient, then roam",
186
+ "",
187
+ "The structural context above is a map to orient you — it is NOT your reading list, and it is not where the deep problems will be obvious. Before forming conclusions:",
188
+ "",
189
+ "- **Read the project's own documentation first** — its README, anything under `docs/`, design notes, and any `CLAUDE.md`/agent-instruction files — to learn what this project is *trying* to be and why. Understand the intent before you judge the execution.",
190
+ "- **Then roam the actual code freely.** Read whole files, follow imports and call paths wherever they lead, and build your own mental model the way a new senior engineer would. Do NOT confine yourself to the highest-risk units — emergent, whole-system problems live in the connections between ordinary-looking parts, which no per-unit risk score surfaces.",
191
+ "",
192
+ "## How to think — first principles, not a checklist",
193
+ "",
194
+ "Interrogate the design from the ground up. These are starting questions, not a form to fill — follow the ones that prove fruitful for THIS codebase:",
195
+ "",
196
+ "- **Is the fundamental approach the right one?** If you were starting clean today, knowing what this project must do, would you build it this way? What would a clean-sheet redesign do differently, and why?",
197
+ "- **What core assumption does this design rest on — and is it sound?** Name the load-bearing assumption (about the domain, the inputs, the scale, the consumers, the failure model). What breaks if it is wrong, and is anything relying on it without checking?",
198
+ "- **Where is the deepest structural risk?** Not the worst single line — the place where the *shape* of the system will hurt most as it grows, changes hands, or meets reality. What is fragile by construction?",
199
+ "- **Does the structure match the problem?** Where do the abstractions, boundaries, and responsibilities fit the problem, and where do they cut across it — forcing one change to ripple through many places, or one place to know too much?",
200
+ "- **What is the design optimizing for, and is that the right thing?** Every design trades simplicity, flexibility, performance, and clarity against each other. Is this project's implicit trade-off the one it should be making?",
201
+ "- **What is missing that the design will eventually need** — a capability, a seam, a constraint, an integration — that is cheap to add now and expensive later?",
202
+ "",
203
+ "Reason about the system as a whole. Prefer naming the single change that would most improve the design over a long list of small ones. If the approach is genuinely sound, say so — with the evidence that convinced you.",
204
+ "",
205
+ ];
206
+ }
207
+ /** Shared finding-output-format block for any conceptual-review prompt. */
208
+ function conceptualOutputFormat(resultsPathNote) {
209
+ return [
210
+ "## Output format",
211
+ "",
212
+ "Produce a JSON array of findings. Each finding must conform to:",
213
+ "",
214
+ "```json",
215
+ "{",
216
+ ' "id": "DR-001",',
217
+ ' "title": "short descriptive title",',
218
+ ' "category": "one of: fundamental_approach, core_assumption, structural_risk, architecture_pattern, design_simplification, tool_opportunity, integration, missing_capability",',
219
+ ' "severity": "one of: critical, high, medium, low, info",',
220
+ ' "confidence": "one of: high, medium, low",',
221
+ ' "lens": "architecture",',
222
+ ' "summary": "detailed explanation of the observation and the recommended change",',
223
+ ' "affected_files": [{"path": "relevant/file.ts"}],',
224
+ ' "systemic": true',
225
+ "}",
226
+ "```",
227
+ "",
228
+ "**Ground every finding.** Cite at least one real `affected_files` path that exists in this repository — the component your observation is actually about. A finding that cites no real component is surfaced as ungrounded (quarantined), not admitted as confirmed: point at the code, do not invent paths. A whole-system observation should anchor on the file(s) where the structure is clearest.",
229
+ "",
230
+ resultsPathNote,
231
+ "",
232
+ "Focus on substantive, actionable observations. Prefer fewer high-quality findings over many surface-level ones.",
233
+ "",
234
+ ];
235
+ }
236
+ /**
237
+ * Render the shared structural context block that is identical for both the
238
+ * contract-review and conceptual-review passes. Placing it first in both
239
+ * prompts makes it cache-eligible when the same bundle is used for both agents.
240
+ */
241
+ export function renderSharedStructuralContext(bundle, maxUnits) {
242
+ const deterministicFindings = bundle.design_assessment?.findings ?? [];
243
+ const prioritizedReadingList = buildPrioritizedReadingList(bundle, maxUnits);
244
+ return [
245
+ "## Project context",
246
+ "",
247
+ `Repository: ${bundle.repo_manifest?.repository?.name ?? "unknown"}`,
248
+ "",
249
+ "### File inventory",
250
+ "",
251
+ summarizeFiles(bundle),
252
+ "",
253
+ "### Unit structure",
254
+ "",
255
+ summarizeUnits(bundle),
256
+ "",
257
+ "### Dependency graph",
258
+ "",
259
+ summarizeGraph(bundle),
260
+ "",
261
+ "### Externally reachable surfaces",
262
+ "",
263
+ summarizeSurfaces(bundle),
264
+ "",
265
+ "### Critical flows",
266
+ "",
267
+ summarizeFlows(bundle),
268
+ "",
269
+ "### Risk profile",
270
+ "",
271
+ summarizeRisk(bundle),
272
+ "",
273
+ "### Deterministic structural findings",
274
+ "",
275
+ formatDeterministicFindings(deterministicFindings),
276
+ "",
277
+ "### Starting points (orient, then roam)",
278
+ "",
279
+ `Use the ${maxUnits} highest-risk units below to orient yourself, then follow the code wherever it leads. You need not read every file, but do NOT confine yourself to this list — the most important problems often live in the connections between ordinary-looking parts that no per-unit risk score flags.`,
280
+ "",
281
+ prioritizedReadingList,
282
+ "",
283
+ ].join("\n");
284
+ }
285
+ /**
286
+ * Contract-review prompt (adversarial pass).
287
+ * Infers existing contracts from the codebase and attacks them with counterexamples.
288
+ * Categories: inferred_contract_gap, trust_boundary_gap, invariant_counterexample,
289
+ * critical_invariant_coverage_gap.
290
+ */
291
+ export function renderContractReviewPrompt(bundle, options = {}) {
292
+ const unitCount = bundle.unit_manifest?.units.length ?? 0;
293
+ const defaultMaxUnits = Math.max(5, Math.min(20, Math.ceil(unitCount / 5)));
294
+ const maxUnits = options.max_units ?? defaultMaxUnits;
295
+ return [
296
+ "# Project contract review (adversarial pass)",
297
+ "",
298
+ "You are performing the **contract-assessment** pass on this project. The deterministic audit pipeline has already analyzed the codebase structure. Your job is to infer existing contracts from the repository and attack them adversarially with concrete counterexamples.",
299
+ "",
300
+ renderSharedStructuralContext(bundle, maxUnits),
301
+ "## Contract assessment instructions",
302
+ "",
303
+ "- Infer existing contracts from the repository artifacts and code you inspect: invariants, trust boundaries, preconditions, postconditions, data lifecycle obligations, and critical-flow guarantees.",
304
+ "- Attack those inferred contracts with concrete counterexamples. Report evidenced gaps where the code appears to rely on an invariant or boundary that is missing, unenforced, unclear, or uncovered for a critical flow.",
305
+ "- Be adversarial: look for cases where the contract is violated, not just cases where it is satisfied.",
306
+ "- Stay observational: do not invent a new contract DSL, write a remediation plan, remediate code, or turn the audit into an implementation pipeline.",
307
+ "",
308
+ "## Output format",
309
+ "",
310
+ "Produce a JSON array of findings. Each finding must conform to:",
311
+ "",
312
+ "```json",
313
+ "{",
314
+ ' "id": "DR-001",',
315
+ ' "title": "short descriptive title",',
316
+ ' "category": "one of: inferred_contract_gap, trust_boundary_gap, invariant_counterexample, critical_invariant_coverage_gap",',
317
+ ' "severity": "one of: critical, high, medium, low, info",',
318
+ ' "confidence": "one of: high, medium, low",',
319
+ ' "lens": "architecture",',
320
+ ' "summary": "detailed explanation of the observation and the recommended change",',
321
+ ' "affected_files": [{"path": "relevant/file.ts"}],',
322
+ ' "systemic": true',
323
+ "}",
324
+ "```",
325
+ "",
326
+ "Write the JSON array to the contract review results path provided below. Use finding IDs starting with DR-001.",
327
+ "",
328
+ "Focus on substantive, actionable observations. Prefer fewer high-quality findings over many surface-level ones.",
329
+ "",
330
+ ].join("\n");
331
+ }
332
+ /**
333
+ * Conceptual-design review prompt (generative pass — shallow / single agent).
334
+ * Produces broad architectural and design improvement observations.
335
+ * Categories: tool_opportunity, architecture_pattern, design_simplification,
336
+ * integration, missing_capability.
337
+ *
338
+ * The deep multi-perspective variant is real dispatch fan-out, not an in-prompt
339
+ * instruction — see `renderConceptualPerspectivePrompt` /
340
+ * `renderConceptualJudgePrompt`.
341
+ */
342
+ export function renderConceptualReviewPrompt(bundle, options = {}) {
343
+ const unitCount = bundle.unit_manifest?.units.length ?? 0;
344
+ const defaultMaxUnits = Math.max(5, Math.min(20, Math.ceil(unitCount / 5)));
345
+ const maxUnits = options.max_units ?? defaultMaxUnits;
346
+ return [
347
+ "# Project conceptual design review (generative pass)",
348
+ "",
349
+ "You are performing the **conceptual-design-critique** pass on this project. The deterministic audit pipeline has already analyzed the codebase structure. Your job is to provide generative observations about broader architecture ideas that static analysis cannot produce.",
350
+ "",
351
+ renderSharedStructuralContext(bundle, maxUnits),
352
+ ...conceptualCritiqueInstructions(),
353
+ ...conceptualOutputFormat("Write the JSON array to the conceptual review results path provided below. Use finding IDs starting with DR-001."),
354
+ ].join("\n");
355
+ }
356
+ /**
357
+ * One perspective's conceptual-review prompt (deep fan-out). Each perspective
358
+ * is dispatched to an independent subagent that reviews *only* through its
359
+ * assigned value system and must not see the other perspectives' output — a
360
+ * separate judge merges them. This is the real fan-out that replaces the old
361
+ * single-agent "imagine several perspectives" instruction.
362
+ */
363
+ export function renderConceptualPerspectivePrompt(bundle, perspective, index, total, options = {}) {
364
+ const unitCount = bundle.unit_manifest?.units.length ?? 0;
365
+ const defaultMaxUnits = Math.max(5, Math.min(20, Math.ceil(unitCount / 5)));
366
+ const maxUnits = options.max_units ?? defaultMaxUnits;
367
+ return [
368
+ `# Conceptual design review — perspective ${index + 1} of ${total}: ${perspective.name}`,
369
+ "",
370
+ `You are **one of ${total} independent reviewers**, each assigned a deliberately different value system. You will NOT see the other reviewers' output, and a separate judge agent will merge everyone's findings. Do **not** try to be balanced or cover the other angles — your value is the one perspective no one else takes. Review the whole codebase, but judge it only through your assigned lens.`,
371
+ "",
372
+ `## Your perspective: ${perspective.name}`,
373
+ "",
374
+ perspective.lens,
375
+ "",
376
+ "You may sharpen or extend this lens to fit this codebase's character and domain, but stay in character.",
377
+ "",
378
+ renderSharedStructuralContext(bundle, maxUnits),
379
+ ...conceptualCritiqueInstructions(),
380
+ ...conceptualOutputFormat("Write the JSON array of findings *from your perspective only* to the results path provided below. Use finding IDs starting with DR-001."),
381
+ ].join("\n");
382
+ }
383
+ /**
384
+ * The independent judge prompt (deep fan-out). The judge is a fresh agent —
385
+ * never one of the perspective authors — that reads every perspective's
386
+ * findings, merges and deduplicates them, resolves contradictions, drops
387
+ * low-confidence observations no other perspective corroborates, and writes the
388
+ * single merged conceptual-review result the orchestrator ingests.
389
+ */
390
+ export function renderConceptualJudgePrompt(perspectiveResults) {
391
+ const sources = perspectiveResults.map((p, i) => `${i + 1}. **${p.name}** — \`${p.path}\``);
392
+ return [
393
+ "# Conceptual design review — judge / merge pass",
394
+ "",
395
+ `You are an **independent judge and final reviewer**. Several reviewers each examined this project through a different value system and wrote their findings to separate files. You did **not** author any of them — your job is to evaluate them on merit, merge them into one ranked, deduplicated result, AND add anything significant they collectively missed.`,
396
+ "",
397
+ "## Perspective result files",
398
+ "",
399
+ "Read each of these JSON finding arrays:",
400
+ "",
401
+ ...sources,
402
+ "",
403
+ "## Judging instructions",
404
+ "",
405
+ "- **Merge** all findings into a single list.",
406
+ "- **Deduplicate**: collapse findings that describe the same underlying observation, even if worded differently. Keep the clearest statement and note corroboration in the summary.",
407
+ "- **Resolve contradictions**: when two perspectives disagree, keep the better-evidenced position; if genuinely unresolved, keep it and say so.",
408
+ "- **Rank** by impact and actionability.",
409
+ "- **Judge on merit, not consensus.** Evaluate each finding on its own evidence, impact, and actionability. Do NOT drop a finding solely because only one perspective raised it — a lone but well-reasoned or high-impact observation must survive. Cross-perspective corroboration only RAISES confidence; it is never a survival requirement.",
410
+ "- **Drop only genuine noise:** vague, unactionable, unsupported, or out-of-scope assertions — regardless of how many perspectives raised them.",
411
+ "- **Flag what the perspectives MISSED.** You are the final reviewer, not only a merger. If, across every perspective, a significant whole-system issue went unraised — a shared assumption none of them questioned, a structural risk no lens covered, a doubt about whether the fundamental approach is even right — add it as a finding, mark its title with `(judge-added)`, and hold it to the same evidence and grounding bar as any other finding. Add only what genuinely matters and is genuinely absent; do not pad.",
412
+ "",
413
+ ...conceptualOutputFormat("Write the merged, ranked JSON array to the conceptual review results path provided below. Renumber finding IDs sequentially from DR-001."),
414
+ ].join("\n");
415
+ }
416
+ /**
417
+ * Combined fallback prompt for non-dispatch paths: both contract-assessment and
418
+ * conceptual-design-critique sections in a single agent turn.
419
+ */
420
+ export function renderDesignReviewPrompt(bundle, options = {}) {
421
+ const unitCount = bundle.unit_manifest?.units.length ?? 0;
422
+ const defaultMaxUnits = Math.max(5, Math.min(20, Math.ceil(unitCount / 5)));
423
+ const maxUnits = options.max_units ?? defaultMaxUnits;
424
+ return [
425
+ "# Project design review",
426
+ "",
427
+ "You are reviewing the overall design of this project. The deterministic audit pipeline has already analyzed the codebase structure. Your job is to provide qualitative observations in two distinct modes: contract assessment for inferred or existing project contracts, and conceptual design critique for broader architecture ideas that static analysis cannot produce.",
428
+ "",
429
+ renderSharedStructuralContext(bundle, maxUnits),
430
+ "## What to assess",
431
+ "",
432
+ `Focus on the ${maxUnits} highest-risk units listed above; you need not read the entire repository, though you may follow any thread that demands more context. Produce findings about:`,
433
+ "",
434
+ "### Contract assessment",
435
+ "",
436
+ "- Infer existing contracts from the repository artifacts and code you inspect: invariants, trust boundaries, preconditions, postconditions, data lifecycle obligations, and critical-flow guarantees.",
437
+ "- Attack those inferred contracts with concrete counterexamples. Report evidenced gaps where the code appears to rely on an invariant or boundary that is missing, unenforced, unclear, or uncovered for a critical flow.",
438
+ "- Use contract-assessment categories such as inferred_contract_gap, trust_boundary_gap, invariant_counterexample, and critical_invariant_coverage_gap when those best describe the finding.",
439
+ "- Stay observational: do not invent a new contract DSL, write a remediation plan, remediate code, or turn the audit into an implementation pipeline.",
440
+ "",
441
+ "### Conceptual design critique",
442
+ "",
443
+ "Ask general, first-principles questions (not a checklist) — read the project's own docs, then roam the real code:",
444
+ "- **Is the fundamental approach the right one?** What would a clean-sheet redesign do differently, and why?",
445
+ "- **What core assumption does the design rest on, and is it sound?** What breaks if it is wrong?",
446
+ "- **Where is the deepest structural risk** — the place the *shape* of the system will hurt most as it grows or changes hands?",
447
+ "- **Does the structure match the problem,** or do abstractions and boundaries cut across it?",
448
+ "- **What is the design optimizing for, and is that the right trade-off?** What is missing that it will eventually need?",
449
+ "",
450
+ "## Output format",
451
+ "",
452
+ "Produce a JSON array of findings. Each finding must conform to:",
453
+ "",
454
+ "```json",
455
+ "{",
456
+ ' "id": "DR-001",',
457
+ ' "title": "short descriptive title",',
458
+ ' "category": "one of: inferred_contract_gap, trust_boundary_gap, invariant_counterexample, critical_invariant_coverage_gap, tool_opportunity, architecture_pattern, design_simplification, integration, missing_capability",',
459
+ ' "severity": "one of: critical, high, medium, low, info",',
460
+ ' "confidence": "one of: high, medium, low",',
461
+ ' "lens": "architecture",',
462
+ ' "summary": "detailed explanation of the observation and the recommended change",',
463
+ ' "affected_files": [{"path": "relevant/file.ts"}],',
464
+ ' "systemic": true',
465
+ "}",
466
+ "```",
467
+ "",
468
+ "Write the JSON array to the design review results path provided below. Use finding IDs starting with DR-001.",
469
+ "",
470
+ "Focus on substantive, actionable observations. Prefer fewer high-quality findings over many surface-level ones.",
471
+ "",
472
+ ].join("\n");
473
+ }
474
+ //# sourceMappingURL=designReviewPrompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"designReviewPrompt.js","sourceRoot":"","sources":["../../../src/audit/orchestrator/designReviewPrompt.ts"],"names":[],"mappings":"AAGA,SAAS,cAAc,CAAC,MAAsB;IAC5C,MAAM,KAAK,GAAG,MAAM,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC;IAChD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,sBAAsB,CAAC;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E;QACF,iEAAiE;QACjE,EAAE;QACF,SAAS;QACT,GAAG;QACH,mBAAmB;QACnB,uCAAuC;QACvC,+NAA+N;QAC/N,4DAA4D;QAC5D,8CAA8C;QAC9C,2BAA2B;QAC3B,oFAAoF;QACpF,qDAAqD;QACrD,oBAAoB;QACpB,GAAG;QACH,KAAK;QACL,EAAE;QACF,8GAA8G;QAC9G,EAAE;QACF,iHAAiH;QACjH,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { type ProjectionDiffEntry } from "audit-tools/shared";
2
+ import type { Finding } from "../types.js";
3
+ import { type DesignReviewBundle, type DesignReviewInput } from "./designReviewProjection.js";
4
+ /** The two verdict-bearing design-review passes (each snapshots independently). */
5
+ export declare const DESIGN_REVIEW_PASSES: readonly ["contract", "conceptual"];
6
+ export type DesignReviewPass = (typeof DESIGN_REVIEW_PASSES)[number];
7
+ declare const SNAPSHOT_SCHEMA_VERSION: "audit-code/design-review-snapshot/v1alpha1";
8
+ export interface DesignReviewSnapshot {
9
+ schema_version: typeof SNAPSHOT_SCHEMA_VERSION;
10
+ pass: DesignReviewPass;
11
+ /** ISO-8601 capture time (caller-supplied for deterministic tests). */
12
+ reviewed_at: string;
13
+ /** The findings this pass emitted — what a re-review re-affirms. */
14
+ prior_findings: Finding[];
15
+ /** Semantic projection of each structural input at review time. */
16
+ reviewed_inputs: Record<DesignReviewInput, unknown>;
17
+ }
18
+ /** Bundle-side view: the loaded snapshots, keyed by pass (absent until captured). */
19
+ export type DesignReviewSnapshotBundle = Partial<Record<DesignReviewPass, DesignReviewSnapshot>>;
20
+ export declare function designReviewSnapshotPath(artifactsDir: string, pass: DesignReviewPass): string;
21
+ export declare function designReviewSnapshotExists(artifactsDir: string, pass: DesignReviewPass): boolean;
22
+ export declare function readDesignReviewSnapshot(artifactsDir: string, pass: DesignReviewPass): Promise<DesignReviewSnapshot | null>;
23
+ /**
24
+ * Load both design-review snapshots from disk into the bundle-side view, so the
25
+ * synchronous `deriveAuditState` can compute pass staleness in-memory. Absent
26
+ * snapshots are simply omitted.
27
+ */
28
+ export declare function loadDesignReviewSnapshots(artifactsDir: string): Promise<DesignReviewSnapshotBundle>;
29
+ /**
30
+ * Capture a design-review snapshot for a freshly-completed pass: the semantic
31
+ * projection of every structural input plus the pass's own findings (verdict).
32
+ */
33
+ export declare function captureDesignReviewSnapshot(artifactsDir: string, pass: DesignReviewPass, priorFindings: Finding[], bundle: DesignReviewBundle, reviewedAt: string): Promise<void>;
34
+ export interface DesignReReviewDelta {
35
+ /** Per-input diff lines, keyed by input name; empty for unchanged. */
36
+ changedInputs: ProjectionDiffEntry[];
37
+ /** True when no structural input projection actually changed. */
38
+ allUnchanged: boolean;
39
+ }
40
+ /**
41
+ * Compute the re-review delta for a design-review pass against its snapshot:
42
+ * which structural inputs changed (by semantic projection) since the prior
43
+ * verdict, and the field-level diff for each.
44
+ */
45
+ export declare function computeDesignReReviewDelta(snapshot: DesignReviewSnapshot, bundle: DesignReviewBundle): DesignReReviewDelta;
46
+ /**
47
+ * Whether a design-review pass is stale relative to its snapshot — i.e. the
48
+ * semantic projection of any structural input has changed since the verdict was
49
+ * recorded. The synchronous staleness signal `deriveAuditState` consumes.
50
+ */
51
+ export declare function isDesignReviewStale(snapshot: DesignReviewSnapshot, bundle: DesignReviewBundle): boolean;
52
+ /**
53
+ * Render the diff-based re-review section appended to a design-review pass's
54
+ * re-emit prompt. Delegates the prompt body to the shared
55
+ * `renderDiffReReviewSection` so the shape matches remediate-code's contract
56
+ * pipeline exactly.
57
+ */
58
+ export declare function renderDesignReReviewSection(snapshot: DesignReviewSnapshot, delta: DesignReReviewDelta): string;
59
+ /**
60
+ * Build the diff-based re-review section for a design-review pass being re-emitted
61
+ * after staleness, or `undefined` when this is not a re-review (no prior
62
+ * snapshot — i.e. first authoring). Mirrors remediate-code's
63
+ * `buildReReviewSection`. The pass-level step is only emitted when the pass is
64
+ * `missing` (no snapshot → `undefined`) or `stale` (snapshot present → section),
65
+ * so the section appears exactly on a genuine re-review.
66
+ */
67
+ export declare function buildDesignReReviewSection(artifactsDir: string, bundle: DesignReviewBundle, pass: DesignReviewPass): Promise<string | undefined>;
68
+ export {};
69
+ //# sourceMappingURL=designReviewSnapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"designReviewSnapshot.d.ts","sourceRoot":"","sources":["../../../src/audit/orchestrator/designReviewSnapshot.ts"],"names":[],"mappings":"AAwBA,OAAO,EAML,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,6BAA6B,CAAC;AAErC,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,qCAAsC,CAAC;AACxE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,QAAA,MAAM,uBAAuB,EAAG,4CAAqD,CAAC;AAEtF,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,OAAO,uBAAuB,CAAC;IAC/C,IAAI,EAAE,gBAAgB,CAAC;IACvB,uEAAuE;IACvE,WAAW,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,mEAAmE;IACnE,eAAe,EAAE,MAAM,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;CACrD;AAED,qFAAqF;AACrF,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAC9C,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAC/C,CAAC;AAQF,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,gBAAgB,GACrB,MAAM,CAER;AAED,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,gB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