@agent-ix/quoin 0.23.1 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (516) hide show
  1. package/README.md +8 -258
  2. package/bin/launcher.js +138 -0
  3. package/package.json +22 -123
  4. package/.agents/plugins/marketplace.json +0 -14
  5. package/.claude-plugin/marketplace.json +0 -16
  6. package/.claude-plugin/plugin.json +0 -8
  7. package/.codex-plugin/plugin.json +0 -27
  8. package/.github/plugin/marketplace.json +0 -16
  9. package/bin/quoin.js +0 -21
  10. package/default-modules.yaml +0 -107
  11. package/dist/advisor/advise.d.ts +0 -199
  12. package/dist/advisor/advise.d.ts.map +0 -1
  13. package/dist/advisor/index.d.ts +0 -10
  14. package/dist/advisor/index.d.ts.map +0 -1
  15. package/dist/advisor/methods.d.ts +0 -60
  16. package/dist/advisor/methods.d.ts.map +0 -1
  17. package/dist/advisor-B0rESCx1.js +0 -63
  18. package/dist/assurance/graph.d.ts +0 -87
  19. package/dist/assurance/graph.d.ts.map +0 -1
  20. package/dist/assurance/index.d.ts +0 -9
  21. package/dist/assurance/index.d.ts.map +0 -1
  22. package/dist/assurance/render.d.ts +0 -3
  23. package/dist/assurance/render.d.ts.map +0 -1
  24. package/dist/auditor/audit.d.ts +0 -146
  25. package/dist/auditor/audit.d.ts.map +0 -1
  26. package/dist/auditor/combinatorial.d.ts +0 -53
  27. package/dist/auditor/combinatorial.d.ts.map +0 -1
  28. package/dist/auditor/index.d.ts +0 -9
  29. package/dist/auditor/index.d.ts.map +0 -1
  30. package/dist/auditor-Dd3i9Aqx.js +0 -340
  31. package/dist/base-gAClyCNd.js +0 -137
  32. package/dist/base.d.ts +0 -23
  33. package/dist/base.d.ts.map +0 -1
  34. package/dist/catalog.d.ts +0 -33
  35. package/dist/catalog.d.ts.map +0 -1
  36. package/dist/change-assurance/attestations.d.ts +0 -7
  37. package/dist/change-assurance/attestations.d.ts.map +0 -1
  38. package/dist/change-assurance/index.d.ts +0 -14
  39. package/dist/change-assurance/index.d.ts.map +0 -1
  40. package/dist/change-assurance/integrity.d.ts +0 -11
  41. package/dist/change-assurance/integrity.d.ts.map +0 -1
  42. package/dist/change-assurance/records.d.ts +0 -22
  43. package/dist/change-assurance/records.d.ts.map +0 -1
  44. package/dist/change-assurance/schema-assets.d.ts +0 -8
  45. package/dist/change-assurance/schema-assets.d.ts.map +0 -1
  46. package/dist/change-assurance/store.d.ts +0 -18
  47. package/dist/change-assurance/store.d.ts.map +0 -1
  48. package/dist/change-assurance/types.d.ts +0 -180
  49. package/dist/change-assurance/types.d.ts.map +0 -1
  50. package/dist/change-assurance/verify.d.ts +0 -4
  51. package/dist/change-assurance/verify.d.ts.map +0 -1
  52. package/dist/change-assurance-CyKLPeKa.js +0 -1236
  53. package/dist/cli.d.ts +0 -61
  54. package/dist/cli.d.ts.map +0 -1
  55. package/dist/cli.js +0 -34
  56. package/dist/commands/advise.d.ts +0 -16
  57. package/dist/commands/advise.d.ts.map +0 -1
  58. package/dist/commands/advise.js +0 -234
  59. package/dist/commands/assurance.d.ts +0 -14
  60. package/dist/commands/assurance.d.ts.map +0 -1
  61. package/dist/commands/assurance.js +0 -204
  62. package/dist/commands/catalog/index.d.ts +0 -2
  63. package/dist/commands/catalog/index.d.ts.map +0 -1
  64. package/dist/commands/catalog/index.js +0 -2
  65. package/dist/commands/catalog/list.d.ts +0 -11
  66. package/dist/commands/catalog/list.d.ts.map +0 -1
  67. package/dist/commands/catalog/list.js +0 -22
  68. package/dist/commands/catalog/methods.d.ts +0 -12
  69. package/dist/commands/catalog/methods.d.ts.map +0 -1
  70. package/dist/commands/catalog/methods.js +0 -43
  71. package/dist/commands/catalog/show.d.ts +0 -13
  72. package/dist/commands/catalog/show.d.ts.map +0 -1
  73. package/dist/commands/catalog/show.js +0 -25
  74. package/dist/commands/catalog/validate.d.ts +0 -10
  75. package/dist/commands/catalog/validate.d.ts.map +0 -1
  76. package/dist/commands/catalog/validate.js +0 -27
  77. package/dist/commands/change-assurance/common.d.ts +0 -37
  78. package/dist/commands/change-assurance/common.d.ts.map +0 -1
  79. package/dist/commands/change-assurance/index.d.ts +0 -8
  80. package/dist/commands/change-assurance/index.d.ts.map +0 -1
  81. package/dist/commands/change-assurance/index.js +0 -12
  82. package/dist/commands/change-assurance/intake.d.ts +0 -15
  83. package/dist/commands/change-assurance/intake.d.ts.map +0 -1
  84. package/dist/commands/change-assurance/intake.js +0 -53
  85. package/dist/commands/change-assurance/receipt.d.ts +0 -21
  86. package/dist/commands/change-assurance/receipt.d.ts.map +0 -1
  87. package/dist/commands/change-assurance/receipt.js +0 -99
  88. package/dist/commands/change-assurance/recover.d.ts +0 -13
  89. package/dist/commands/change-assurance/recover.d.ts.map +0 -1
  90. package/dist/commands/change-assurance/recover.js +0 -29
  91. package/dist/commands/change-assurance/schema.d.ts +0 -13
  92. package/dist/commands/change-assurance/schema.d.ts.map +0 -1
  93. package/dist/commands/change-assurance/schema.js +0 -40
  94. package/dist/commands/change-assurance/seal-attestation.d.ts +0 -15
  95. package/dist/commands/change-assurance/seal-attestation.d.ts.map +0 -1
  96. package/dist/commands/change-assurance/seal-attestation.js +0 -58
  97. package/dist/commands/change-assurance/seal-record.d.ts +0 -14
  98. package/dist/commands/change-assurance/seal-record.d.ts.map +0 -1
  99. package/dist/commands/change-assurance/seal-record.js +0 -53
  100. package/dist/commands/change-assurance/verify-receipt.d.ts +0 -13
  101. package/dist/commands/change-assurance/verify-receipt.d.ts.map +0 -1
  102. package/dist/commands/change-assurance/verify-receipt.js +0 -41
  103. package/dist/commands/completeness.d.ts +0 -16
  104. package/dist/commands/completeness.d.ts.map +0 -1
  105. package/dist/commands/completeness.js +0 -49
  106. package/dist/commands/config/doctor.d.ts +0 -7
  107. package/dist/commands/config/doctor.d.ts.map +0 -1
  108. package/dist/commands/config/doctor.js +0 -15
  109. package/dist/commands/config/edit.d.ts +0 -7
  110. package/dist/commands/config/edit.d.ts.map +0 -1
  111. package/dist/commands/config/edit.js +0 -13
  112. package/dist/commands/config/get.d.ts +0 -11
  113. package/dist/commands/config/get.d.ts.map +0 -1
  114. package/dist/commands/config/get.js +0 -20
  115. package/dist/commands/config/index.d.ts +0 -2
  116. package/dist/commands/config/index.d.ts.map +0 -1
  117. package/dist/commands/config/index.js +0 -2
  118. package/dist/commands/config/set.d.ts +0 -12
  119. package/dist/commands/config/set.d.ts.map +0 -1
  120. package/dist/commands/config/set.js +0 -26
  121. package/dist/commands/evidence/affirm.d.ts +0 -17
  122. package/dist/commands/evidence/affirm.d.ts.map +0 -1
  123. package/dist/commands/evidence/affirm.js +0 -65
  124. package/dist/commands/evidence/audit.d.ts +0 -34
  125. package/dist/commands/evidence/audit.d.ts.map +0 -1
  126. package/dist/commands/evidence/audit.js +0 -107
  127. package/dist/commands/evidence/baseline.d.ts +0 -14
  128. package/dist/commands/evidence/baseline.d.ts.map +0 -1
  129. package/dist/commands/evidence/baseline.js +0 -89
  130. package/dist/commands/evidence/gc.d.ts +0 -13
  131. package/dist/commands/evidence/gc.d.ts.map +0 -1
  132. package/dist/commands/evidence/gc.js +0 -35
  133. package/dist/commands/evidence/index.d.ts +0 -8
  134. package/dist/commands/evidence/index.d.ts.map +0 -1
  135. package/dist/commands/evidence/index.js +0 -18
  136. package/dist/commands/evidence/inspect-mocks.d.ts +0 -16
  137. package/dist/commands/evidence/inspect-mocks.d.ts.map +0 -1
  138. package/dist/commands/evidence/inspect-mocks.js +0 -49
  139. package/dist/commands/evidence/record.d.ts +0 -22
  140. package/dist/commands/evidence/record.d.ts.map +0 -1
  141. package/dist/commands/evidence/record.js +0 -144
  142. package/dist/commands/graph/change-impact.d.ts +0 -16
  143. package/dist/commands/graph/change-impact.d.ts.map +0 -1
  144. package/dist/commands/graph/change-impact.js +0 -29
  145. package/dist/commands/graph/churn.d.ts +0 -14
  146. package/dist/commands/graph/churn.d.ts.map +0 -1
  147. package/dist/commands/graph/churn.js +0 -15
  148. package/dist/commands/graph/common.d.ts +0 -16
  149. package/dist/commands/graph/common.d.ts.map +0 -1
  150. package/dist/commands/graph/fan-out.d.ts +0 -14
  151. package/dist/commands/graph/fan-out.d.ts.map +0 -1
  152. package/dist/commands/graph/fan-out.js +0 -15
  153. package/dist/commands/graph/index.d.ts +0 -8
  154. package/dist/commands/graph/index.d.ts.map +0 -1
  155. package/dist/commands/graph/index.js +0 -12
  156. package/dist/commands/matrix.d.ts +0 -14
  157. package/dist/commands/matrix.d.ts.map +0 -1
  158. package/dist/commands/matrix.js +0 -15
  159. package/dist/commands/measurement/index.d.ts +0 -7
  160. package/dist/commands/measurement/index.d.ts.map +0 -1
  161. package/dist/commands/measurement/index.js +0 -11
  162. package/dist/commands/measurement/intervention.d.ts +0 -11
  163. package/dist/commands/measurement/intervention.d.ts.map +0 -1
  164. package/dist/commands/measurement/intervention.js +0 -31
  165. package/dist/commands/measurement/operational-release.d.ts +0 -11
  166. package/dist/commands/measurement/operational-release.d.ts.map +0 -1
  167. package/dist/commands/measurement/operational-release.js +0 -31
  168. package/dist/commands/measurement/record.d.ts +0 -10
  169. package/dist/commands/measurement/record.d.ts.map +0 -1
  170. package/dist/commands/measurement/record.js +0 -36
  171. package/dist/commands/module/ensure-defaults.d.ts +0 -8
  172. package/dist/commands/module/ensure-defaults.d.ts.map +0 -1
  173. package/dist/commands/module/ensure-defaults.js +0 -17
  174. package/dist/commands/module/index.d.ts +0 -2
  175. package/dist/commands/module/index.d.ts.map +0 -1
  176. package/dist/commands/module/index.js +0 -2
  177. package/dist/commands/module/install.d.ts +0 -11
  178. package/dist/commands/module/install.d.ts.map +0 -1
  179. package/dist/commands/module/install.js +0 -22
  180. package/dist/commands/module/list.d.ts +0 -8
  181. package/dist/commands/module/list.d.ts.map +0 -1
  182. package/dist/commands/module/list.js +0 -13
  183. package/dist/commands/module/remove.d.ts +0 -10
  184. package/dist/commands/module/remove.d.ts.map +0 -1
  185. package/dist/commands/module/remove.js +0 -16
  186. package/dist/commands/plugin/deprecation.d.ts +0 -10
  187. package/dist/commands/plugin/deprecation.d.ts.map +0 -1
  188. package/dist/commands/plugin/ensure-defaults.d.ts +0 -8
  189. package/dist/commands/plugin/ensure-defaults.d.ts.map +0 -1
  190. package/dist/commands/plugin/ensure-defaults.js +0 -12
  191. package/dist/commands/plugin/index.d.ts +0 -2
  192. package/dist/commands/plugin/index.d.ts.map +0 -1
  193. package/dist/commands/plugin/index.js +0 -2
  194. package/dist/commands/plugin/install.d.ts +0 -8
  195. package/dist/commands/plugin/install.d.ts.map +0 -1
  196. package/dist/commands/plugin/install.js +0 -12
  197. package/dist/commands/plugin/list.d.ts +0 -8
  198. package/dist/commands/plugin/list.d.ts.map +0 -1
  199. package/dist/commands/plugin/list.js +0 -12
  200. package/dist/commands/plugin/remove.d.ts +0 -8
  201. package/dist/commands/plugin/remove.d.ts.map +0 -1
  202. package/dist/commands/plugin/remove.js +0 -12
  203. package/dist/commands/report.d.ts +0 -19
  204. package/dist/commands/report.d.ts.map +0 -1
  205. package/dist/commands/report.js +0 -96
  206. package/dist/commands/review.d.ts +0 -14
  207. package/dist/commands/review.d.ts.map +0 -1
  208. package/dist/commands/review.js +0 -15
  209. package/dist/commands/to-plan.d.ts +0 -14
  210. package/dist/commands/to-plan.d.ts.map +0 -1
  211. package/dist/commands/to-plan.js +0 -15
  212. package/dist/commands/update.d.ts +0 -13
  213. package/dist/commands/update.d.ts.map +0 -1
  214. package/dist/commands/update.js +0 -34
  215. package/dist/commands/validate.d.ts +0 -13
  216. package/dist/commands/validate.d.ts.map +0 -1
  217. package/dist/commands/validate.js +0 -123
  218. package/dist/commands/write.d.ts +0 -16
  219. package/dist/commands/write.d.ts.map +0 -1
  220. package/dist/commands/write.js +0 -33
  221. package/dist/common-B1ZJ8CSO.js +0 -36
  222. package/dist/common-DTrmnvL-.js +0 -35
  223. package/dist/completeness/assess.d.ts +0 -82
  224. package/dist/completeness/assess.d.ts.map +0 -1
  225. package/dist/completeness/bundle.d.ts +0 -52
  226. package/dist/completeness/bundle.d.ts.map +0 -1
  227. package/dist/completeness/declarations.d.ts +0 -46
  228. package/dist/completeness/declarations.d.ts.map +0 -1
  229. package/dist/completeness/index.d.ts +0 -11
  230. package/dist/completeness/index.d.ts.map +0 -1
  231. package/dist/completeness/run.d.ts +0 -35
  232. package/dist/completeness/run.d.ts.map +0 -1
  233. package/dist/completeness-BzBuNq6w.js +0 -228
  234. package/dist/config-schema-Dp-vlxuR.js +0 -13
  235. package/dist/config-schema.d.ts +0 -52
  236. package/dist/config-schema.d.ts.map +0 -1
  237. package/dist/deprecation-fRxUHoxv.js +0 -4
  238. package/dist/evidence/adapters/agent-eval.d.ts +0 -26
  239. package/dist/evidence/adapters/agent-eval.d.ts.map +0 -1
  240. package/dist/evidence/adapters/audit-script.d.ts +0 -25
  241. package/dist/evidence/adapters/audit-script.d.ts.map +0 -1
  242. package/dist/evidence/adapters/cargo-mutants.d.ts +0 -3
  243. package/dist/evidence/adapters/cargo-mutants.d.ts.map +0 -1
  244. package/dist/evidence/adapters/contract-conformance.d.ts +0 -16
  245. package/dist/evidence/adapters/contract-conformance.d.ts.map +0 -1
  246. package/dist/evidence/adapters/differential-report.d.ts +0 -18
  247. package/dist/evidence/adapters/differential-report.d.ts.map +0 -1
  248. package/dist/evidence/adapters/junit.d.ts +0 -17
  249. package/dist/evidence/adapters/junit.d.ts.map +0 -1
  250. package/dist/evidence/adapters/registry.d.ts +0 -63
  251. package/dist/evidence/adapters/registry.d.ts.map +0 -1
  252. package/dist/evidence/adapters/sarif.d.ts +0 -35
  253. package/dist/evidence/adapters/sarif.d.ts.map +0 -1
  254. package/dist/evidence/adapters/sbom.d.ts +0 -35
  255. package/dist/evidence/adapters/sbom.d.ts.map +0 -1
  256. package/dist/evidence/adapters/types.d.ts +0 -86
  257. package/dist/evidence/adapters/types.d.ts.map +0 -1
  258. package/dist/evidence/index.d.ts +0 -27
  259. package/dist/evidence/index.d.ts.map +0 -1
  260. package/dist/evidence/mock-inspection.d.ts +0 -16
  261. package/dist/evidence/mock-inspection.d.ts.map +0 -1
  262. package/dist/evidence/record.d.ts +0 -58
  263. package/dist/evidence/record.d.ts.map +0 -1
  264. package/dist/evidence/store.d.ts +0 -215
  265. package/dist/evidence/store.d.ts.map +0 -1
  266. package/dist/evidence/types.d.ts +0 -281
  267. package/dist/evidence/types.d.ts.map +0 -1
  268. package/dist/evidence-OyqpqHLS.js +0 -614
  269. package/dist/flow-command-CCRTE5Oe.js +0 -88
  270. package/dist/flow-command.d.ts +0 -25
  271. package/dist/flow-command.d.ts.map +0 -1
  272. package/dist/flows.d.ts +0 -7
  273. package/dist/flows.d.ts.map +0 -1
  274. package/dist/graph-analysis/analysis.d.ts +0 -106
  275. package/dist/graph-analysis/analysis.d.ts.map +0 -1
  276. package/dist/graph-analysis/index.d.ts +0 -6
  277. package/dist/graph-analysis/index.d.ts.map +0 -1
  278. package/dist/graph-analysis/input.d.ts +0 -33
  279. package/dist/graph-analysis/input.d.ts.map +0 -1
  280. package/dist/graph-analysis/load.d.ts +0 -21
  281. package/dist/graph-analysis/load.d.ts.map +0 -1
  282. package/dist/graph-analysis/render.d.ts +0 -4
  283. package/dist/graph-analysis/render.d.ts.map +0 -1
  284. package/dist/graph-analysis-IWaoJJSN.js +0 -657
  285. package/dist/hooks/command-not-found.d.ts +0 -23
  286. package/dist/hooks/command-not-found.d.ts.map +0 -1
  287. package/dist/hooks/command-not-found.js +0 -8
  288. package/dist/index.d.ts +0 -13
  289. package/dist/index.d.ts.map +0 -1
  290. package/dist/index.js +0 -12
  291. package/dist/measurement/agent-eval-intervention.d.ts +0 -6
  292. package/dist/measurement/agent-eval-intervention.d.ts.map +0 -1
  293. package/dist/measurement/atomic-file.d.ts +0 -5
  294. package/dist/measurement/atomic-file.d.ts.map +0 -1
  295. package/dist/measurement/compare.d.ts +0 -4
  296. package/dist/measurement/compare.d.ts.map +0 -1
  297. package/dist/measurement/date-time.d.ts +0 -3
  298. package/dist/measurement/date-time.d.ts.map +0 -1
  299. package/dist/measurement/github-release-operational.d.ts +0 -7
  300. package/dist/measurement/github-release-operational.d.ts.map +0 -1
  301. package/dist/measurement/graph-adapters.d.ts +0 -304
  302. package/dist/measurement/graph-adapters.d.ts.map +0 -1
  303. package/dist/measurement/graph-portfolio-load.d.ts +0 -3
  304. package/dist/measurement/graph-portfolio-load.d.ts.map +0 -1
  305. package/dist/measurement/graph-portfolio.d.ts +0 -158
  306. package/dist/measurement/graph-portfolio.d.ts.map +0 -1
  307. package/dist/measurement/index.d.ts +0 -22
  308. package/dist/measurement/index.d.ts.map +0 -1
  309. package/dist/measurement/intervention-report.d.ts +0 -24
  310. package/dist/measurement/intervention-report.d.ts.map +0 -1
  311. package/dist/measurement/intervention-schema.d.ts +0 -144
  312. package/dist/measurement/intervention-schema.d.ts.map +0 -1
  313. package/dist/measurement/intervention-types.d.ts +0 -105
  314. package/dist/measurement/intervention-types.d.ts.map +0 -1
  315. package/dist/measurement/intervention.d.ts +0 -16
  316. package/dist/measurement/intervention.d.ts.map +0 -1
  317. package/dist/measurement/operational-report.d.ts +0 -17
  318. package/dist/measurement/operational-report.d.ts.map +0 -1
  319. package/dist/measurement/operational-schema.d.ts +0 -461
  320. package/dist/measurement/operational-schema.d.ts.map +0 -1
  321. package/dist/measurement/operational-types.d.ts +0 -121
  322. package/dist/measurement/operational-types.d.ts.map +0 -1
  323. package/dist/measurement/operational.d.ts +0 -13
  324. package/dist/measurement/operational.d.ts.map +0 -1
  325. package/dist/measurement/plans.d.ts +0 -6
  326. package/dist/measurement/plans.d.ts.map +0 -1
  327. package/dist/measurement/portfolio.d.ts +0 -54
  328. package/dist/measurement/portfolio.d.ts.map +0 -1
  329. package/dist/measurement/profiles.d.ts +0 -9
  330. package/dist/measurement/profiles.d.ts.map +0 -1
  331. package/dist/measurement/report.d.ts +0 -48
  332. package/dist/measurement/report.d.ts.map +0 -1
  333. package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +0 -384
  334. package/dist/measurement/store.d.ts +0 -14
  335. package/dist/measurement/store.d.ts.map +0 -1
  336. package/dist/measurement/types.d.ts +0 -85
  337. package/dist/measurement/types.d.ts.map +0 -1
  338. package/dist/measurement/validate.d.ts +0 -9
  339. package/dist/measurement/validate.d.ts.map +0 -1
  340. package/dist/measurement-j8sDSqx5.js +0 -2980
  341. package/dist/modules-DDQkKC4l.js +0 -23
  342. package/dist/modules.d.ts +0 -10
  343. package/dist/modules.d.ts.map +0 -1
  344. package/dist/org.d.ts +0 -61
  345. package/dist/org.d.ts.map +0 -1
  346. package/dist/plugins-CHpYhpEI.js +0 -77
  347. package/dist/plugins.d.ts +0 -13
  348. package/dist/plugins.d.ts.map +0 -1
  349. package/dist/quire/assurance.d.ts +0 -109
  350. package/dist/quire/assurance.d.ts.map +0 -1
  351. package/dist/quire/contract.d.ts +0 -88
  352. package/dist/quire/contract.d.ts.map +0 -1
  353. package/dist/quire/exec.d.ts +0 -66
  354. package/dist/quire/exec.d.ts.map +0 -1
  355. package/dist/quire/index.d.ts +0 -13
  356. package/dist/quire/index.d.ts.map +0 -1
  357. package/dist/quire/types.d.ts +0 -415
  358. package/dist/quire/types.d.ts.map +0 -1
  359. package/dist/quire/validate.d.ts +0 -39
  360. package/dist/quire/validate.d.ts.map +0 -1
  361. package/dist/quire-BsVj1xIR.js +0 -4968
  362. package/dist/schema-assets-HZWo_iFN.js +0 -233
  363. package/dist/schemas/assurance-v1.schema.json +0 -225
  364. package/dist/schemas/change-assurance-record-v1.schema.json +0 -234
  365. package/dist/schemas/coverage-v1.schema.json +0 -1111
  366. package/dist/schemas/operational-evidence-v1.schema.json +0 -381
  367. package/dist/schemas/proof-attestation-v1.schema.json +0 -96
  368. package/dist/schemas/properties-v1.schema.json +0 -159
  369. package/dist/schemas/verification-receipt-v1.schema.json +0 -208
  370. package/dist/validators/gates.d.ts +0 -18
  371. package/dist/validators/gates.d.ts.map +0 -1
  372. package/dist/validators/index.d.ts +0 -2
  373. package/dist/validators/index.d.ts.map +0 -1
  374. package/dist/version-CMxMIh5g.js +0 -17
  375. package/dist/version.d.ts +0 -3
  376. package/dist/version.d.ts.map +0 -1
  377. package/dist/write-CGTI0dRO.js +0 -157
  378. package/dist/write.d.ts +0 -28
  379. package/dist/write.d.ts.map +0 -1
  380. package/skills/assurance-status-report/SKILL.md +0 -135
  381. package/skills/assurance-status-report/references/report-contract.md +0 -110
  382. package/skills/gap-analysis/SKILL.md +0 -111
  383. package/skills/gap-analysis/references/step-1-target-selection.md +0 -53
  384. package/skills/gap-analysis/references/step-2-plan-completion.md +0 -49
  385. package/skills/gap-analysis/references/step-3-matrix-verification.md +0 -147
  386. package/skills/gap-analysis/references/step-4-underspecified-code.md +0 -92
  387. package/skills/gap-analysis/references/step-5-semantic-review.md +0 -51
  388. package/skills/gap-analysis/references/step-6-specreview-artifact.md +0 -108
  389. package/skills/spec-app-review/SKILL.md +0 -51
  390. package/skills/spec-app-review/references/checklist.md +0 -197
  391. package/skills/spec-architecture-evaluation/SKILL.md +0 -30
  392. package/skills/spec-correctness/SKILL.md +0 -96
  393. package/skills/spec-correctness/assets/strategy-table.md +0 -101
  394. package/skills/spec-correctness/assets/templates/fast-check.ts.md +0 -169
  395. package/skills/spec-correctness/assets/templates/hypothesis.py.md +0 -156
  396. package/skills/spec-correctness/assets/templates/proptest.rs.md +0 -147
  397. package/skills/spec-correctness/references/step-0-scope-and-harness.md +0 -94
  398. package/skills/spec-correctness/references/step-1-census.md +0 -53
  399. package/skills/spec-correctness/references/step-2-clause-grounding.md +0 -159
  400. package/skills/spec-correctness/references/step-3-strategy-selection.md +0 -85
  401. package/skills/spec-correctness/references/step-4-generate-tests.md +0 -117
  402. package/skills/spec-correctness/references/step-5-second-pass.md +0 -81
  403. package/skills/spec-correctness/references/step-6-review-artifact.md +0 -134
  404. package/skills/spec-correctness/references/step-7-report-and-handoff.md +0 -102
  405. package/skills/spec-dependency-analysis/SKILL.md +0 -90
  406. package/skills/spec-ears-analysis/SKILL.md +0 -102
  407. package/skills/spec-evidence-analysis/SKILL.md +0 -156
  408. package/skills/spec-failure-domain-analysis/SKILL.md +0 -59
  409. package/skills/spec-fuzz/SKILL.md +0 -133
  410. package/skills/spec-fuzz/assets/templates/atheris.py.md +0 -74
  411. package/skills/spec-fuzz/assets/templates/cargo-fuzz.rs.md +0 -83
  412. package/skills/spec-fuzz/assets/templates/fast-check.ts.md +0 -76
  413. package/skills/spec-fuzz/references/step-0-scope-and-harness.md +0 -51
  414. package/skills/spec-fuzz/references/step-1-select-obligations.md +0 -47
  415. package/skills/spec-fuzz/references/step-2-ground-entry-point.md +0 -55
  416. package/skills/spec-fuzz/references/step-3-emit-targets.md +0 -65
  417. package/skills/spec-fuzz/references/step-4-report.md +0 -56
  418. package/skills/spec-ideation/SKILL.md +0 -46
  419. package/skills/spec-integrity-analysis/SKILL.md +0 -62
  420. package/skills/spec-matrix/SKILL.md +0 -186
  421. package/skills/spec-matrix/assets/test-cases/TC-001.md +0 -35
  422. package/skills/spec-matrix/assets/test-cases/TC-002.md +0 -37
  423. package/skills/spec-matrix/assets/test-cases/TC-006.md +0 -50
  424. package/skills/spec-matrix/assets/test-matrix-example.md +0 -104
  425. package/skills/spec-matrix/assets/test-matrix-template.md +0 -123
  426. package/skills/spec-matrix/workflow-assets/dist/index.d.ts +0 -146
  427. package/skills/spec-matrix/workflow-assets/dist/index.d.ts.map +0 -1
  428. package/skills/spec-matrix/workflow-assets/dist/index.js +0 -7525
  429. package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts +0 -6
  430. package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts.map +0 -1
  431. package/skills/spec-matrix/workflow-assets/skills/matrix/SKILL.md +0 -35
  432. package/skills/spec-matrix/workflow-assets/skills/matrix/scripts/invariants.js +0 -1
  433. package/skills/spec-matrix/workflow-assets/skills/matrix/templates/report/default.md +0 -30
  434. package/skills/spec-matrix/workflow-assets/skills/matrix/workflows/matrix/def.yaml +0 -82
  435. package/skills/spec-object-review/SKILL.md +0 -125
  436. package/skills/spec-object-review/references/object-type-guide.md +0 -118
  437. package/skills/spec-review/SKILL.md +0 -92
  438. package/skills/spec-review/references/checklist.md +0 -50
  439. package/skills/spec-review/workflow-assets/dist/index.d.ts +0 -146
  440. package/skills/spec-review/workflow-assets/dist/index.d.ts.map +0 -1
  441. package/skills/spec-review/workflow-assets/dist/index.js +0 -7525
  442. package/skills/spec-review/workflow-assets/dist/invariants.d.ts +0 -6
  443. package/skills/spec-review/workflow-assets/dist/invariants.d.ts.map +0 -1
  444. package/skills/spec-review/workflow-assets/skills/review/SKILL.md +0 -96
  445. package/skills/spec-review/workflow-assets/skills/review/scripts/invariants.js +0 -61
  446. package/skills/spec-review/workflow-assets/skills/review/workflows/review/def.yaml +0 -68
  447. package/skills/spec-risk-complexity-analysis/SKILL.md +0 -92
  448. package/skills/spec-scope-boundary-analysis/SKILL.md +0 -101
  449. package/skills/spec-security-analysis/SKILL.md +0 -84
  450. package/skills/spec-security-analysis/assets/security-analysis-example.md +0 -89
  451. package/skills/spec-security-analysis/assets/security-analysis-template.md +0 -73
  452. package/skills/spec-security-analysis/references/component-type-mapping.md +0 -161
  453. package/skills/spec-security-analysis/references/gdpr/ChII-Principles.md +0 -58
  454. package/skills/spec-security-analysis/references/gdpr/ChIII-DataSubjectRights.md +0 -84
  455. package/skills/spec-security-analysis/references/gdpr/ChIV-ControllerProcessor.md +0 -83
  456. package/skills/spec-security-analysis/references/gdpr/ChV-DataTransfers.md +0 -62
  457. package/skills/spec-security-analysis/references/gdpr/index.md +0 -54
  458. package/skills/spec-security-analysis/references/iso27001/A5-OrganizationalControls.md +0 -64
  459. package/skills/spec-security-analysis/references/iso27001/A6-PeopleControls.md +0 -30
  460. package/skills/spec-security-analysis/references/iso27001/A7-PhysicalControls.md +0 -35
  461. package/skills/spec-security-analysis/references/iso27001/A8-TechnologicalControls.md +0 -66
  462. package/skills/spec-security-analysis/references/iso27001/index.md +0 -43
  463. package/skills/spec-security-analysis/references/nist-800-53/AC-AccessControl.md +0 -57
  464. package/skills/spec-security-analysis/references/nist-800-53/AU-AuditAccountability.md +0 -49
  465. package/skills/spec-security-analysis/references/nist-800-53/CM-ConfigurationManagement.md +0 -36
  466. package/skills/spec-security-analysis/references/nist-800-53/IA-IdentificationAuthentication.md +0 -44
  467. package/skills/spec-security-analysis/references/nist-800-53/SA-SystemServicesAcquisition.md +0 -50
  468. package/skills/spec-security-analysis/references/nist-800-53/SC-SystemCommunications.md +0 -53
  469. package/skills/spec-security-analysis/references/nist-800-53/SI-SystemInformationIntegrity.md +0 -52
  470. package/skills/spec-security-analysis/references/nist-800-53/index.md +0 -58
  471. package/skills/spec-security-analysis/references/owasp-asvs/V1-Architecture.md +0 -33
  472. package/skills/spec-security-analysis/references/owasp-asvs/V10-MaliciousCode.md +0 -33
  473. package/skills/spec-security-analysis/references/owasp-asvs/V11-BusinessLogic.md +0 -32
  474. package/skills/spec-security-analysis/references/owasp-asvs/V12-Files.md +0 -34
  475. package/skills/spec-security-analysis/references/owasp-asvs/V13-API.md +0 -34
  476. package/skills/spec-security-analysis/references/owasp-asvs/V14-Configuration.md +0 -35
  477. package/skills/spec-security-analysis/references/owasp-asvs/V2-Authentication.md +0 -36
  478. package/skills/spec-security-analysis/references/owasp-asvs/V3-SessionManagement.md +0 -35
  479. package/skills/spec-security-analysis/references/owasp-asvs/V4-AccessControl.md +0 -39
  480. package/skills/spec-security-analysis/references/owasp-asvs/V5-Validation.md +0 -37
  481. package/skills/spec-security-analysis/references/owasp-asvs/V6-Cryptography.md +0 -34
  482. package/skills/spec-security-analysis/references/owasp-asvs/V7-ErrorLogging.md +0 -37
  483. package/skills/spec-security-analysis/references/owasp-asvs/V8-DataProtection.md +0 -34
  484. package/skills/spec-security-analysis/references/owasp-asvs/V9-Communication.md +0 -32
  485. package/skills/spec-security-analysis/references/owasp-asvs/index.md +0 -59
  486. package/skills/spec-security-analysis/references/soc2/CC1-ControlEnvironment.md +0 -31
  487. package/skills/spec-security-analysis/references/soc2/CC2-CommunicationInformation.md +0 -27
  488. package/skills/spec-security-analysis/references/soc2/CC3-RiskAssessment.md +0 -29
  489. package/skills/spec-security-analysis/references/soc2/CC4-MonitoringActivities.md +0 -27
  490. package/skills/spec-security-analysis/references/soc2/CC5-ControlActivities.md +0 -28
  491. package/skills/spec-security-analysis/references/soc2/CC6-LogicalPhysicalAccess.md +0 -45
  492. package/skills/spec-security-analysis/references/soc2/CC7-SystemOperations.md +0 -42
  493. package/skills/spec-security-analysis/references/soc2/CC8-ChangeManagement.md +0 -32
  494. package/skills/spec-security-analysis/references/soc2/CC9-RiskMitigation.md +0 -34
  495. package/skills/spec-security-analysis/references/soc2/index.md +0 -46
  496. package/skills/spec-security-analysis/references/standards-index.md +0 -46
  497. package/skills/spec-to-plan/SKILL.md +0 -88
  498. package/skills/spec-to-plan/references/step-0-plan-selection.md +0 -121
  499. package/skills/spec-to-plan/references/step-1-analysis.md +0 -88
  500. package/skills/spec-to-plan/references/step-2-test-plan.md +0 -43
  501. package/skills/spec-to-plan/references/step-3-execution-plan.md +0 -218
  502. package/skills/spec-to-plan/workflow-assets/dist/index.d.ts +0 -146
  503. package/skills/spec-to-plan/workflow-assets/dist/index.d.ts.map +0 -1
  504. package/skills/spec-to-plan/workflow-assets/dist/index.js +0 -7525
  505. package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts +0 -6
  506. package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts.map +0 -1
  507. package/skills/spec-to-plan/workflow-assets/skills/to-plan/SKILL.md +0 -35
  508. package/skills/spec-to-plan/workflow-assets/skills/to-plan/scripts/invariants.js +0 -1
  509. package/skills/spec-to-plan/workflow-assets/skills/to-plan/templates/implementation-plan/default.md +0 -44
  510. package/skills/spec-to-plan/workflow-assets/skills/to-plan/workflows/to-plan/def.yaml +0 -85
  511. package/skills/specify/SKILL.md +0 -154
  512. package/skills/specify/assets/app-spec-template.md +0 -143
  513. package/skills/specify/assets/spec-template.md +0 -299
  514. package/skills/specify/references/integration-tests.md +0 -72
  515. package/skills/specify/references/us-to-fr.md +0 -40
  516. package/skills/specify/references/writing-good-requirements.md +0 -61
@@ -1,614 +0,0 @@
1
- import { C as e, T as t, _ as n, g as r, m as i, o as a, x as o } from "./schema-assets-HZWo_iFN.js";
2
- import { readFileSync as s, readdirSync as c } from "node:fs";
3
- import { extname as l, join as u, relative as d } from "node:path";
4
- //#region src/evidence/record.ts
5
- function f(t) {
6
- let n = e(t.repo, {
7
- schemaVersion: 1,
8
- suite: t.suite,
9
- commit: t.commit,
10
- tool: t.tool,
11
- evidenceKind: t.evidenceKind,
12
- timestamp: t.timestamp,
13
- entries: t.entries
14
- }), i = new Map(t.obligations.map((e) => [e.id, e])), s = /* @__PURE__ */ new Map();
15
- for (let e of t.obligations) for (let t of e.target_ids ?? []) i.has(t) || s.set(t, [...s.get(t) ?? [], e]);
16
- let c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set();
17
- for (let e of t.entries) for (let t of e.traceIds ?? []) {
18
- let n = i.has(t) ? [i.get(t)] : s.get(t) ?? [];
19
- if (n.length === 0) {
20
- l.add(t);
21
- continue;
22
- }
23
- if (e.outcome === "pass") for (let t of n) {
24
- let n = c.get(t.id) ?? [];
25
- n.push(e.symbol), c.set(t.id, n);
26
- }
27
- }
28
- let u = r(t.repo).bindings, d = [], f = [];
29
- for (let [e, n] of [...c].sort(([e], [t]) => e === t ? 0 : e < t ? -1 : 1)) {
30
- let r = i.get(e);
31
- if (!r) continue;
32
- let o = a(u, {
33
- obligation: e,
34
- statementHashAtBinding: r.statement_hash,
35
- suite: t.suite,
36
- commit: t.commit,
37
- symbols: [...n].sort()
38
- });
39
- u = o.bindings, o.created && d.push(e), o.suspect && f.push(e);
40
- }
41
- return o(t.repo, { bindings: u }), {
42
- runPath: n,
43
- bound: d.sort(),
44
- suspect: f.sort(),
45
- unmatched: [...l].sort()
46
- };
47
- }
48
- function p(e) {
49
- return e.obligations ?? [];
50
- }
51
- //#endregion
52
- //#region src/evidence/adapters/types.ts
53
- var m = class extends Error {
54
- adapter;
55
- constructor(e, t) {
56
- super(`${e}: ${t}`), this.adapter = e, this.name = "AdapterError";
57
- }
58
- };
59
- //#endregion
60
- //#region src/evidence/adapters/cargo-mutants.ts
61
- function h(e) {
62
- let t = e.file?.trim(), n = e.function?.function_name?.trim();
63
- if (t !== void 0 && t !== "" && n !== void 0 && n !== "") return `${t}::${n}`;
64
- }
65
- var g = {
66
- name: "cargo-mutants",
67
- summary: "cargo-mutants outcomes.json — mutation score per mutated function.",
68
- tools: ["cargo-mutants", "cargo mutants"],
69
- parse(e) {
70
- let n;
71
- try {
72
- n = JSON.parse(e);
73
- } catch (e) {
74
- throw new m("cargo-mutants", `input is not JSON: ${e.message}`);
75
- }
76
- if (!Array.isArray(n.outcomes)) throw new m("cargo-mutants", "no `outcomes` array — expected the contents of mutants.out/outcomes.json");
77
- let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
78
- for (let e of n.outcomes) {
79
- if (e.scenario === "Baseline" || typeof e.scenario != "object") continue;
80
- let t = e.scenario.Mutant;
81
- if (t === void 0) continue;
82
- let n = h(t);
83
- n !== void 0 && (e.summary === "CaughtMutant" ? r.set(n, (r.get(n) ?? 0) + 1) : (e.summary === "MissedMutant" || e.summary === "Timeout") && i.set(n, (i.get(n) ?? 0) + 1));
84
- }
85
- let a = [.../* @__PURE__ */ new Set([...r.keys(), ...i.keys()])].sort();
86
- if (a.length === 0) throw new m("cargo-mutants", "no viable mutants in the report — nothing was measured");
87
- return { entries: a.map((e) => {
88
- let n = r.get(e) ?? 0, a = i.get(e) ?? 0, o = n + a;
89
- return {
90
- symbol: e,
91
- outcome: a === 0 ? "pass" : "fail",
92
- score: n / o,
93
- metric: t
94
- };
95
- }) };
96
- }
97
- }, _ = "quire.contract.conformance-jsonl/v1", v = /* @__PURE__ */ new Map([["match", "pass"], ["mismatch", "fail"]]), y = {
98
- name: "contract-conformance",
99
- summary: `Contract conformance JSONL (${_}) — one replayed fixture per line.`,
100
- tools: [
101
- "quire-contract-conformance",
102
- "contract-conformance",
103
- "quire-contract-ir"
104
- ],
105
- parse(e) {
106
- let t = e.split("\n").filter((e) => e.trim() !== "");
107
- if (t.length === 0) throw new m("contract-conformance", "input contains no conformance rows; an empty run is not a clean run");
108
- let n = [];
109
- return t.forEach((e, t) => {
110
- let r;
111
- try {
112
- r = JSON.parse(e);
113
- } catch (e) {
114
- throw new m("contract-conformance", `line ${t + 1} is not JSON: ${e.message}`);
115
- }
116
- if (r.protocol !== _) throw new m("contract-conformance", `line ${t + 1} declares protocol ${JSON.stringify(r.protocol)}, expected ${_}`);
117
- for (let e of [
118
- "corpus_id",
119
- "fixture_id",
120
- "operation"
121
- ]) if (typeof r[e] != "string" || r[e] === "") throw new m("contract-conformance", `line ${t + 1} has no ${e}`);
122
- let i = v.get(r.status);
123
- if (i === void 0) throw new m("contract-conformance", `line ${t + 1} has unknown status ${JSON.stringify(r.status)}`);
124
- n.push({
125
- symbol: `${r.corpus_id}::${r.operation}::${r.fixture_id}`,
126
- outcome: i
127
- });
128
- }), { entries: n };
129
- }
130
- }, b = /^[a-z0-9][a-z0-9-]*\.differential-summary\/v1$/, ee = /* @__PURE__ */ new Map([
131
- ["agreement", "pass"],
132
- ["mismatch", "fail"],
133
- ["tool-error", "error"]
134
- ]), te = {
135
- name: "differential-report",
136
- summary: "Domain differential summary (<domain>.differential-summary/v1) — engine versus external reference, case by case.",
137
- tools: [
138
- "differential-report",
139
- "tl-mltl",
140
- "r2u2",
141
- "c2po"
142
- ],
143
- parse(e) {
144
- let t;
145
- try {
146
- t = JSON.parse(e);
147
- } catch (e) {
148
- throw new m("differential-report", `input is not JSON: ${e.message}`);
149
- }
150
- if (typeof t.schemaVersion != "string" || !b.test(t.schemaVersion)) throw new m("differential-report", `unknown schemaVersion ${JSON.stringify(t.schemaVersion)}; expected <domain>.differential-summary/v1`);
151
- if (!Array.isArray(t.cases)) throw new m("differential-report", "report has no cases array");
152
- if (t.cases.length === 0) throw new m("differential-report", "report contains no cases; a comparison that examined nothing is not an agreement");
153
- let n = [], r = [];
154
- return t.cases.forEach((e, t) => {
155
- if (typeof e?.id != "string" || e.id === "") throw new m("differential-report", `case ${t} has no id`);
156
- if (typeof e.status != "string" || e.status === "") throw new m("differential-report", `case ${e.id} has no status`);
157
- if (e.status === "unsupported") {
158
- r.push({
159
- symbol: e.id,
160
- state: "unsupported",
161
- reason: "the external reference does not support this case; that is neither a skip nor an error, and no run-entry outcome carries it"
162
- });
163
- return;
164
- }
165
- let i = ee.get(e.status);
166
- if (i === void 0) throw new m("differential-report", `case ${e.id} has unknown status ${JSON.stringify(e.status)}`);
167
- n.push({
168
- symbol: e.id,
169
- outcome: i
170
- });
171
- }), r.length > 0 ? {
172
- entries: n,
173
- unrepresented: r
174
- } : { entries: n };
175
- }
176
- }, x = /<testcase\b([^>]*?)(\/>|>([\s\S]*?)<\/testcase\s*>)/g, S = /([\w:.-]+)\s*=\s*"([^"]*)"/g;
177
- function C(e) {
178
- let t = /* @__PURE__ */ new Map();
179
- for (let n of e.matchAll(S)) t.set(n[1], w(n[2]));
180
- return t;
181
- }
182
- function w(e) {
183
- return e.replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&quot;", "\"").replaceAll("&apos;", "'").replaceAll("&amp;", "&");
184
- }
185
- function T(e, t) {
186
- let n = e.trim(), r = t.trim();
187
- return n === "" ? r : r === "" ? n : n === r ? r : n.endsWith(`::${r}`) || n.endsWith(`.${r}`) ? n.replaceAll(".", "::") : `${n.replaceAll(".", "::")}::${r}`;
188
- }
189
- var E = /<property\b([^>]*)\/?>/g;
190
- function D(e) {
191
- let t = [];
192
- for (let n of e.matchAll(E)) {
193
- let e = C(n[1]), r = e.get("name"), i = e.get("value");
194
- if (r !== void 0 && i !== void 0 && (r === "trace" || r === "traceIds" || r === "trace_ids")) for (let e of i.split(/[,\s]+/)) e !== "" && t.push(e);
195
- }
196
- return t.length > 0 ? t : void 0;
197
- }
198
- function O(e) {
199
- return /<error\b/.test(e) ? "error" : /<failure\b/.test(e) ? "fail" : /<skipped\b/.test(e) ? "skip" : "pass";
200
- }
201
- var k = {
202
- name: "junit",
203
- summary: "JUnit XML (<testsuite>/<testcase>), as emitted by most runners.",
204
- tools: [
205
- "junit",
206
- "pytest",
207
- "jest",
208
- "vitest",
209
- "gotestsum",
210
- "surefire"
211
- ],
212
- parse(e) {
213
- let t = [];
214
- for (let n of e.matchAll(x)) {
215
- let e = C(n[1]), r = n[3] ?? "", i = T(e.get("classname") ?? "", e.get("name") ?? "");
216
- if (i === "") continue;
217
- let a = D(r);
218
- t.push({
219
- symbol: i,
220
- outcome: O(r),
221
- ...a === void 0 ? {} : { traceIds: a }
222
- });
223
- }
224
- if (t.length === 0) throw new m("junit", "no <testcase> elements found — is this JUnit XML?");
225
- return { entries: t };
226
- }
227
- }, A = /^([A-Za-z0-9._-]+):\s*(OK|FAIL)\b\s*(?:[—-]\s*)?(.*)$/, j = /\(([^)]*)\)[.\s]*$/, M = /\b((?:FR|NFR|StR|US)-\d+-AC-\d+|TC-\d+)\b/g;
228
- function N(e) {
229
- let t = j.exec(e);
230
- if (!t) return;
231
- let n = [...t[1].matchAll(M)].map((e) => e[1]);
232
- return n.length > 0 ? n : void 0;
233
- }
234
- function P(e) {
235
- let t = [], n = 0;
236
- for (let r of e.split("\n")) {
237
- let e = A.exec(r.trim());
238
- if (!e) continue;
239
- let [, i, a, o] = e;
240
- if (n += 1, a === "OK") continue;
241
- let s = o.trim(), c = N(s);
242
- t.push({
243
- ruleId: i,
244
- severity: "violation",
245
- ...s === "" ? {} : { message: s },
246
- ...c === void 0 ? {} : { traceIds: c }
247
- });
248
- }
249
- if (n === 0) throw new m("audit-script", "no `<name>: OK` or `<name>: FAIL` line found — is this audit-script output?");
250
- return {
251
- findings: t,
252
- tool: "audit-script",
253
- rulesEvaluated: n
254
- };
255
- }
256
- //#endregion
257
- //#region src/evidence/adapters/agent-eval.ts
258
- function F(e) {
259
- let t;
260
- try {
261
- t = JSON.parse(e);
262
- } catch (e) {
263
- throw new m("agent-eval", `not JSON: ${e instanceof Error ? e.message : String(e)}`);
264
- }
265
- let n = t;
266
- if (!n || typeof n != "object" || !Array.isArray(n.results)) throw new m("agent-eval", "expected a cli-agent-evals report with a \"results\" array");
267
- let r = [];
268
- for (let e of n.results) {
269
- let t = typeof e.id == "string" ? e.id : null;
270
- t && r.push({
271
- symbol: t,
272
- outcome: e.ok === !0 ? "pass" : "fail",
273
- traceIds: [t],
274
- ...I(e)
275
- });
276
- }
277
- if (r.length === 0) throw new m("agent-eval", "no scenario results in the report — did the suite run?");
278
- return { entries: r };
279
- }
280
- function I(e) {
281
- let t = e.passRate;
282
- if (typeof t != "string") return {};
283
- let [n, r] = t.split("/").map(Number);
284
- return !Number.isFinite(n) || !Number.isFinite(r) || r === 0 ? {} : { score: n / r };
285
- }
286
- var L = {
287
- name: "agent-eval",
288
- summary: "cli-agent-evals report JSON — one entry per scenario, keyed on the scenario id.",
289
- tools: [
290
- "cli-agent-evals",
291
- "agent-evals",
292
- "agent-pty"
293
- ],
294
- parse: F
295
- };
296
- //#endregion
297
- //#region src/evidence/adapters/sbom.ts
298
- function R(e) {
299
- let t;
300
- try {
301
- t = JSON.parse(e);
302
- } catch (e) {
303
- throw new m("sbom", `not JSON: ${e instanceof Error ? e.message : String(e)}. CycloneDX and SPDX both have JSON serialisations; the tag-value SPDX form is not read here.`);
304
- }
305
- if (!t || typeof t != "object") throw new m("sbom", "expected a JSON object");
306
- let n = t;
307
- return { entries: z(n) ?? B(n) ?? ne(n) };
308
- }
309
- function z(e) {
310
- return String(e.bomFormat ?? "") === "CycloneDX" ? (Array.isArray(e.components) ? e.components : []).map((e) => {
311
- let t = e, n = typeof t.purl == "string" ? t.purl : null, r = typeof t.name == "string" ? t.name : null;
312
- if (!n && !r) return null;
313
- let i = typeof t.version == "string" ? t.version : null;
314
- return {
315
- symbol: n ?? (i ? `${r}@${i}` : r),
316
- outcome: "pass"
317
- };
318
- }).filter((e) => e !== null) : null;
319
- }
320
- function B(e) {
321
- return typeof e.spdxVersion == "string" ? (Array.isArray(e.packages) ? e.packages : []).map((e) => {
322
- let t = e, n = (Array.isArray(t.externalRefs) ? t.externalRefs : []).map((e) => e).find((e) => String(e.referenceType ?? "") === "purl"), r = n && typeof n.referenceLocator == "string" ? n.referenceLocator : null, i = typeof t.name == "string" ? t.name : null;
323
- if (!r && !i) return null;
324
- let a = typeof t.versionInfo == "string" ? t.versionInfo : null;
325
- return {
326
- symbol: r ?? (a ? `${i}@${a}` : i),
327
- outcome: "pass"
328
- };
329
- }).filter((e) => e !== null) : null;
330
- }
331
- function ne(e) {
332
- throw new m("sbom", `neither a CycloneDX (\`bomFormat\`) nor an SPDX (\`spdxVersion\`) document — top-level keys: ${Object.keys(e).slice(0, 6).join(", ") || "(none)"}`);
333
- }
334
- var V = {
335
- name: "sbom",
336
- summary: "CycloneDX or SPDX JSON — one entry per component, so an empty inventory reads as vacuous.",
337
- tools: [
338
- "cyclonedx",
339
- "spdx",
340
- "syft",
341
- "cdxgen",
342
- "cargo-cyclonedx"
343
- ],
344
- parse: R
345
- };
346
- //#endregion
347
- //#region src/evidence/adapters/sarif.ts
348
- function H(e) {
349
- let t;
350
- try {
351
- t = JSON.parse(e);
352
- } catch (e) {
353
- throw new m("sarif", `input is not JSON: ${e.message}`);
354
- }
355
- if (!Array.isArray(t.runs)) throw new m("sarif", "no `runs` array — expected a SARIF 2.1.0 log");
356
- if (t.runs.length === 0) throw new m("sarif", "`runs` is empty — a log with no run proves no scan executed");
357
- let n = [], r = [], i;
358
- for (let e of t.runs) {
359
- let t = e.tool?.driver;
360
- t?.name !== void 0 && t.name !== "" && r.push(t.version === void 0 ? t.name : `${t.name} ${t.version}`), Array.isArray(t?.rules) && (i = (i ?? 0) + t.rules.length);
361
- for (let t of e.results ?? []) {
362
- let e = t.ruleId ?? t.rule?.id;
363
- if (e === void 0 || e === "") continue;
364
- let r = t.locations?.[0]?.physicalLocation;
365
- n.push({
366
- ruleId: e,
367
- ...t.level === void 0 ? {} : { severity: t.level },
368
- ...t.message?.text === void 0 ? {} : { message: t.message.text },
369
- ...r?.artifactLocation?.uri === void 0 ? {} : { path: r.artifactLocation.uri },
370
- ...r?.region?.startLine === void 0 ? {} : { line: r.region.startLine }
371
- });
372
- }
373
- }
374
- return {
375
- findings: n,
376
- ...r.length === 0 ? {} : { tool: r.join(", ") },
377
- ...i === void 0 ? {} : { rulesEvaluated: i }
378
- };
379
- }
380
- function U(e) {
381
- let t;
382
- try {
383
- t = JSON.parse(e);
384
- } catch (e) {
385
- throw new m("cargo-audit", `input is not JSON: ${e.message}`);
386
- }
387
- if (t.vulnerabilities === void 0) throw new m("cargo-audit", "no `vulnerabilities` object — expected `cargo audit --json` output");
388
- let n = [], r = (e, t) => {
389
- let r = e.advisory?.id;
390
- if (r === void 0 || r === "") return;
391
- let i = e.package;
392
- n.push({
393
- ruleId: r,
394
- severity: t,
395
- ...e.advisory?.title === void 0 ? {} : { message: e.advisory.title },
396
- ...i?.name === void 0 ? {} : { path: i.version === void 0 ? i.name : `${i.name}@${i.version}` }
397
- });
398
- };
399
- for (let e of t.vulnerabilities.list ?? []) r(e, "vulnerability");
400
- for (let [e, n] of Object.entries(t.warnings ?? {})) for (let t of n) r(t, e);
401
- let i = t.database?.["advisory-count"];
402
- return {
403
- findings: n,
404
- tool: "cargo-audit",
405
- ...i === void 0 ? {} : { rulesEvaluated: i }
406
- };
407
- }
408
- //#endregion
409
- //#region src/evidence/adapters/registry.ts
410
- var W = {
411
- name: "entries",
412
- summary: "Normalized {\"entries\": [{symbol, outcome, traceIds?}]} — the default.",
413
- tools: [],
414
- parse(e) {
415
- let t;
416
- try {
417
- t = JSON.parse(e);
418
- } catch (e) {
419
- throw new m("entries", `input is not JSON: ${e.message}`);
420
- }
421
- if (!Array.isArray(t.entries)) throw new m("entries", "expected JSON of the form {\"entries\": [{symbol, outcome, traceIds?}]}");
422
- return { entries: t.entries };
423
- }
424
- }, G = [
425
- W,
426
- k,
427
- g,
428
- V,
429
- L,
430
- y,
431
- te
432
- ], K = [
433
- {
434
- name: "sarif",
435
- summary: "SARIF 2.1.0 — semgrep --sarif, CodeQL, ESLint, ZAP via converter.",
436
- tools: [
437
- "sarif",
438
- "semgrep",
439
- "codeql"
440
- ],
441
- parse: H
442
- },
443
- {
444
- name: "audit-script",
445
- summary: "Architecture-conformance audit scripts: '<name>: OK' / '<name>: FAIL — … (AC-ID)'.",
446
- tools: [
447
- "audit-script",
448
- "make ci",
449
- "audit-static",
450
- "import-linter",
451
- "dependency-cruiser"
452
- ],
453
- parse: P
454
- },
455
- {
456
- name: "cargo-audit",
457
- summary: "cargo audit --json — RUSTSEC advisories and warning kinds.",
458
- tools: [
459
- "cargo-audit",
460
- "cargo audit",
461
- "cargo-deny",
462
- "cargo deny"
463
- ],
464
- parse: U
465
- }
466
- ], q = [...G.map((e) => e.name), ...K.map((e) => e.name)];
467
- function J(e) {
468
- if (e.adapter !== void 0 && e.adapter !== "") return K.find((t) => t.name === e.adapter);
469
- let t = (e.tool ?? "").toLowerCase();
470
- if (t !== "") return K.find((e) => e.tools.some((e) => t.includes(e)));
471
- }
472
- function Y(e) {
473
- if (e.adapter !== void 0 && e.adapter !== "") {
474
- let t = G.find((t) => t.name === e.adapter);
475
- if (t === void 0) throw new m("adapter", `unknown adapter '${e.adapter}'. Available: ${q.join(", ")}`);
476
- return t;
477
- }
478
- let t = (e.tool ?? "").toLowerCase();
479
- if (t !== "") {
480
- let e = G.find((e) => e.tools.some((e) => t.includes(e)));
481
- if (e !== void 0) return e;
482
- }
483
- return W;
484
- }
485
- //#endregion
486
- //#region src/evidence/mock-inspection.ts
487
- var X = /* @__PURE__ */ new Set([
488
- ".rs",
489
- ".py",
490
- ".ts",
491
- ".tsx",
492
- ".js",
493
- ".jsx"
494
- ]), Z = /* @__PURE__ */ new Set([
495
- ".git",
496
- "dist",
497
- "node_modules",
498
- "spec",
499
- "target",
500
- "vendor"
501
- ]);
502
- function re(e, t) {
503
- if (!t) return {
504
- injections: [],
505
- suites: []
506
- };
507
- let r = i(e).map((r) => n(e, r, t)).filter((e) => e !== null && e.commit === t);
508
- return {
509
- suites: r.map((e) => e.suite).sort($),
510
- injections: r.flatMap((e) => e.injections).sort((e, t) => $(e.suite, t.suite) || $(e.path ?? "", t.path ?? "") || (e.line ?? 0) - (t.line ?? 0))
511
- };
512
- }
513
- function ie(e, t) {
514
- let n = [];
515
- for (let r of ae(e)) {
516
- let i = s(r, "utf8"), a = oe(i, l(r));
517
- if (a.length !== 0) for (let o of i.matchAll(/\b([A-Z][A-Za-z0-9_]*(?:(?:::|\.)[A-Za-z_][A-Za-z0-9_]*)+)\s*\(/g)) {
518
- let s = o[1];
519
- if (!le(s)) continue;
520
- let c = se(a, o.index ?? -1);
521
- c && n.push({
522
- suite: t,
523
- symbol: c.symbol,
524
- injects: [s],
525
- path: d(e, r),
526
- line: i.slice(0, o.index).split("\n").length
527
- });
528
- }
529
- }
530
- let r = /* @__PURE__ */ new Map();
531
- for (let e of n) {
532
- let t = `${e.path ?? ""}:${e.line ?? 0}:${e.symbol}`, n = r.get(t);
533
- n ? n.injects = [.../* @__PURE__ */ new Set([...n.injects, ...e.injects])].sort() : r.set(t, {
534
- ...e,
535
- injects: [...e.injects].sort()
536
- });
537
- }
538
- return [...r.values()].sort((e, t) => $(e.path ?? "", t.path ?? "") || (e.line ?? 0) - (t.line ?? 0) || $(e.symbol, t.symbol));
539
- }
540
- function ae(e) {
541
- let t = [], n = (e) => {
542
- for (let r of c(e, { withFileTypes: !0 })) {
543
- if (r.isDirectory() && Z.has(r.name)) continue;
544
- let i = u(e, r.name);
545
- r.isDirectory() ? n(i) : r.isFile() && X.has(l(i)) && t.push(i);
546
- }
547
- };
548
- return n(e), t.sort($);
549
- }
550
- function oe(e, t) {
551
- let n = [], r = t === ".rs" ? [/#\s*\[\s*test\s*\][\s\S]{0,240}?\bfn\s+([A-Za-z_][A-Za-z0-9_]*)\s*\(/g] : t === ".py" ? [/(?:^|\n)\s*(?:async\s+)?def\s+(test_[A-Za-z0-9_]*)\s*\(/g] : [/\b(?:test|it)\s*\(\s*["'`]([^"'`]+)["'`]/g, /\b(?:async\s+)?function\s+(test[A-Za-z0-9_]*)\s*\(/g];
552
- for (let i of r) for (let r of e.matchAll(i)) {
553
- let i = r.index ?? 0, a = t === ".py" ? i + r[0].lastIndexOf(r[1]) : i, o = t === ".py" ? Q(e, a) : ce(e, a + r[0].length);
554
- n.push({
555
- at: a,
556
- end: o,
557
- symbol: r[1]
558
- });
559
- }
560
- return n.sort((e, t) => e.at - t.at);
561
- }
562
- function se(e, t) {
563
- let n = null;
564
- for (let r of e) {
565
- if (r.at > t) break;
566
- t <= r.end && (n = r);
567
- }
568
- return n;
569
- }
570
- function Q(e, t) {
571
- let n = e.lastIndexOf("\n", t) + 1, r = /^\s*/.exec(e.slice(n))?.[0].length ?? 0, i = e.indexOf("\n", t);
572
- if (i < 0) return e.length;
573
- for (i += 1; i < e.length;) {
574
- let t = e.indexOf("\n", i), n = t < 0 ? e.length : t, a = e.slice(i, n);
575
- if (a.trim() && !a.trimStart().startsWith("#") && (/^\s*/.exec(a)?.[0].length ?? 0) <= r) return i - 1;
576
- i = n + 1;
577
- }
578
- return e.length;
579
- }
580
- function ce(e, t) {
581
- let n = e.indexOf("{", t);
582
- if (n < 0 || n - t > 500) return t;
583
- let r = 0, i = null, a = !1, o = !1, s = !1;
584
- for (let t = n; t < e.length; t += 1) {
585
- let n = e[t], c = e[t + 1] ?? "";
586
- if (o) {
587
- n === "\n" && (o = !1);
588
- continue;
589
- }
590
- if (s) {
591
- n === "*" && c === "/" && (s = !1, t += 1);
592
- continue;
593
- }
594
- if (i) {
595
- a ? a = !1 : n === "\\" ? a = !0 : n === i && (i = null);
596
- continue;
597
- }
598
- if (n === "/" && c === "/") o = !0, t += 1;
599
- else if (n === "/" && c === "*") s = !0, t += 1;
600
- else if (n === "\"" || n === "'" || n === "`") i = n;
601
- else if (n === "{") r += 1;
602
- else if (n === "}" && --r === 0) return t;
603
- }
604
- return e.length;
605
- }
606
- function le(e) {
607
- let t = e.split(/::|\./), n = t[0], r = t.at(-1) ?? "";
608
- return /^(?:mock|fake|stub|spy)/i.test(n) || /^(?:allow|approve|approved|bypass|fake|mock|stub|succeed|success)$/i.test(r);
609
- }
610
- function $(e, t) {
611
- return e === t ? 0 : e < t ? -1 : 1;
612
- }
613
- //#endregion
614
- export { J as a, f as c, Y as i, re as n, F as o, q as r, p as s, ie as t };
@@ -1,88 +0,0 @@
1
- import { a as e, t } from "./base-gAClyCNd.js";
2
- import { fileURLToPath as n } from "node:url";
3
- import { existsSync as r } from "node:fs";
4
- import { dirname as i, join as a, resolve as o } from "node:path";
5
- import { homedir as s } from "node:os";
6
- import { spawn as c } from "node:child_process";
7
- import { Flags as l } from "@oclif/core";
8
- //#region src/flows.ts
9
- var u = {
10
- review: {
11
- packageSkill: "spec-review",
12
- runtimeSkill: "review"
13
- },
14
- matrix: {
15
- packageSkill: "spec-matrix",
16
- runtimeSkill: "matrix"
17
- },
18
- "to-plan": {
19
- packageSkill: "spec-to-plan",
20
- runtimeSkill: "to-plan"
21
- }
22
- };
23
- async function d(t, n = {}) {
24
- let r = f(t), i = e(), o = [
25
- "run",
26
- t,
27
- "--path",
28
- r,
29
- "--config-root",
30
- i,
31
- "--state-dir",
32
- a(i, "flows")
33
- ];
34
- n.id && o.push("--id", n.id), n.json && o.push("--json");
35
- for (let e of n.target ?? []) o.push("--target", e);
36
- await m(o);
37
- }
38
- function f(e) {
39
- let t = u[e];
40
- if (!t) throw Error(`unknown spec flow ${e}`);
41
- let n = [
42
- process.env.IX_SPEC_WORKFLOWS_ROOT,
43
- p(),
44
- a(i(o(process.cwd())), "ix-spec-workflows"),
45
- a(s(), ".ix", "plugins", "ix-spec-workflows")
46
- ].filter((e) => !!e);
47
- for (let e of n) {
48
- let n = a(e, t.packageSkill, "workflow-assets", "skills", t.runtimeSkill);
49
- if (r(n)) return n;
50
- }
51
- throw Error(`could not find ix-spec workflow skill ${t.runtimeSkill}; set IX_SPEC_WORKFLOWS_ROOT`);
52
- }
53
- function p() {
54
- return a(i(i(n(import.meta.url))), "skills");
55
- }
56
- async function m(e) {
57
- await new Promise((t, n) => {
58
- let r = c("ix-flow", e, { stdio: "inherit" });
59
- r.on("error", n), r.on("close", (e) => {
60
- if (e === 0) {
61
- t();
62
- return;
63
- }
64
- process.exitCode = e ?? 1, t();
65
- });
66
- });
67
- }
68
- //#endregion
69
- //#region src/flow-command.ts
70
- var h = class extends t {
71
- static flowFlags = {
72
- target: l.string({
73
- description: "Spec target ref to feed the workflow (repeatable).",
74
- multiple: !0
75
- }),
76
- json: l.boolean({ description: "Forward --json to ix-flow." }),
77
- id: l.string({ description: "Explicit workflow run id." })
78
- };
79
- async launch(e) {
80
- await d(this.flowName, {
81
- json: e.json === !0,
82
- ...e.id ? { id: e.id } : {},
83
- ...e.target ? { target: e.target } : {}
84
- });
85
- }
86
- };
87
- //#endregion
88
- export { h as t };