@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,657 +0,0 @@
1
- import { i as e } from "./quire-BsVj1xIR.js";
2
- import { c as t, s as n } from "./schema-assets-HZWo_iFN.js";
3
- import "./evidence-OyqpqHLS.js";
4
- import { existsSync as r, readFileSync as i } from "node:fs";
5
- import { z as a } from "zod";
6
- //#region src/graph-analysis/input.ts
7
- var o = a.object({
8
- archetype: a.string().min(1),
9
- schema_digest: a.string().regex(/^[0-9a-f]{64}$/)
10
- }).strict(), s = a.object({
11
- name: a.string().min(1),
12
- version: a.string().min(1),
13
- schemas: a.array(o)
14
- }).strict(), c = a.object({
15
- format: a.literal("quire-assurance"),
16
- format_version: a.literal(1),
17
- modules: a.array(s)
18
- }).strict(), l = a.object({
19
- repository: a.string().min(1),
20
- revision: a.string().regex(/^[0-9a-f]{40}$/)
21
- }).strict(), u = a.object({
22
- obligation: a.string().min(1),
23
- kind: a.string().min(1),
24
- severity: a.enum([
25
- "low",
26
- "medium",
27
- "high"
28
- ]),
29
- summary: a.string()
30
- }).passthrough(), d = a.object({
31
- check: a.string().min(1),
32
- obligation: a.string().min(1),
33
- suites: a.array(a.string()),
34
- reason: a.string()
35
- }).passthrough(), f = a.object({
36
- findings: a.array(u),
37
- healthy: a.array(a.string().min(1)),
38
- unevaluated: a.array(d)
39
- }).passthrough(), p = a.object({
40
- format: a.literal("quoin-audit-envelope"),
41
- format_version: a.literal(1),
42
- source: l,
43
- export: c,
44
- report: f
45
- }).strict();
46
- function m(e) {
47
- let t = y(e, "premises", c);
48
- return t.ok ? {
49
- ok: !0,
50
- value: _(t.value)
51
- } : t;
52
- }
53
- function h(e) {
54
- let t = y(e, "audit", p);
55
- return t.ok ? {
56
- ok: !0,
57
- value: {
58
- ...t.value,
59
- export: _(t.value.export),
60
- report: v(t.value.report)
61
- }
62
- } : t;
63
- }
64
- function g(e, t) {
65
- return x(_({
66
- format: e.format,
67
- format_version: e.format_version,
68
- modules: e.modules
69
- }), _(t)) ? null : b("premises", "the accepted format, version, modules, and schema digests must exactly match the assurance export");
70
- }
71
- function ee(e, t) {
72
- if (!x(e.source, t.source)) return b("audit", "the audit source repository/revision does not match the assurance export");
73
- let n = {
74
- format: t.format,
75
- format_version: t.format_version,
76
- modules: t.modules
77
- };
78
- return x(_(e.export), _(n)) ? null : b("audit", "the audit export format/module premises do not match the assurance export");
79
- }
80
- function _(e) {
81
- return {
82
- ...e,
83
- modules: e.modules.map((e) => ({
84
- ...e,
85
- schemas: e.schemas.map((e) => ({ ...e })).sort((e, t) => w(e.archetype, t.archetype) || w(e.schema_digest, t.schema_digest))
86
- })).sort((e, t) => w(e.name, t.name) || w(e.version, t.version))
87
- };
88
- }
89
- function v(e) {
90
- return {
91
- ...e,
92
- findings: e.findings.map((e) => ({ ...e })).sort((e, t) => w(C(e), C(t))),
93
- healthy: [...e.healthy].sort(w),
94
- unevaluated: e.unevaluated.map((e) => ({
95
- ...e,
96
- suites: [...e.suites].sort(w)
97
- })).sort((e, t) => w(C(e), C(t)))
98
- };
99
- }
100
- function y(e, t, n) {
101
- let r;
102
- try {
103
- r = JSON.parse(e);
104
- } catch (e) {
105
- return {
106
- ok: !1,
107
- error: b(t, `invalid JSON: ${e instanceof Error ? e.message : String(e)}`)
108
- };
109
- }
110
- let i = n.safeParse(r);
111
- if (!i.success) {
112
- let e = i.error.issues.map((e) => `${e.path.join(".") || "<root>"}: ${e.message}`);
113
- return {
114
- ok: !1,
115
- error: {
116
- kind: "graph-input-violation",
117
- input: t,
118
- errors: e,
119
- message: `${t} input is invalid (${e.join("; ")})`
120
- }
121
- };
122
- }
123
- return {
124
- ok: !0,
125
- value: i.data
126
- };
127
- }
128
- function b(e, t) {
129
- return {
130
- kind: "graph-input-violation",
131
- input: e,
132
- errors: [t],
133
- message: `${e} input is invalid: ${t}`
134
- };
135
- }
136
- function x(e, t) {
137
- return JSON.stringify(S(e)) === JSON.stringify(S(t));
138
- }
139
- function S(e) {
140
- return Array.isArray(e) ? e.map(S) : typeof e != "object" || !e ? e : Object.fromEntries(Object.entries(e).sort(([e], [t]) => e === t ? 0 : e < t ? -1 : 1).map(([e, t]) => [e, S(t)]));
141
- }
142
- function C(e) {
143
- return JSON.stringify(S(e));
144
- }
145
- function w(e, t) {
146
- return e === t ? 0 : e < t ? -1 : 1;
147
- }
148
- //#endregion
149
- //#region src/graph-analysis/analysis.ts
150
- var te = [
151
- "depends_on",
152
- "derives_from",
153
- "implements",
154
- "mitigates",
155
- "refines",
156
- "requires",
157
- "satisfies",
158
- "traces_to"
159
- ], ne = /* @__PURE__ */ new Set([
160
- "StR",
161
- "US",
162
- "FR",
163
- "NFR"
164
- ]);
165
- function re(e) {
166
- let t = D(e, "fan-out");
167
- if (e.bindings.availability !== "available") return {
168
- ...t,
169
- state: "not_computed",
170
- rows: []
171
- };
172
- let n = k(e.assurance), r = new Set(n.keys()), i = /* @__PURE__ */ new Map();
173
- for (let n of e.bindings.bindings) {
174
- let e = i.get(n.suite) ?? {
175
- live: /* @__PURE__ */ new Set(),
176
- unresolved: /* @__PURE__ */ new Set()
177
- };
178
- r.has(n.obligation) ? e.live.add(n.obligation) : (e.unresolved.add(n.obligation), t.gaps.push({
179
- kind: "unresolved-binding",
180
- subject: `${n.suite}:${n.obligation}`,
181
- reason: `${n.obligation} is absent from the accepted assurance export`
182
- })), i.set(n.suite, e);
183
- }
184
- return O({
185
- ...t,
186
- rows: [...i.entries()].sort(([e], [t]) => W(e, t)).map(([e, t]) => ({
187
- suite: e,
188
- obligations: U(t.live).map((e) => ({
189
- obligation: e,
190
- requirements: n.get(e) ?? []
191
- })),
192
- obligationCount: t.live.size,
193
- unresolvedBindings: U(t.unresolved)
194
- }))
195
- });
196
- }
197
- function T(e) {
198
- let t = D(e, "churn");
199
- if (e.bindings.availability !== "available") return {
200
- ...t,
201
- state: "not_computed",
202
- rows: []
203
- };
204
- let n = k(e.assurance), r = new Set(n.keys()), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
205
- for (let n of e.bindings.bindings) {
206
- if (!r.has(n.obligation)) {
207
- (n.affirmations?.length ?? 0) > 0 && t.gaps.push({
208
- kind: "unresolved-binding",
209
- subject: `${n.suite}:${n.obligation}`,
210
- reason: `affirmation history belongs to absent obligation ${n.obligation}`
211
- });
212
- continue;
213
- }
214
- let e = i.get(n.obligation) ?? /* @__PURE__ */ new Set();
215
- e.add(n.suite), i.set(n.obligation, e);
216
- let o = a.get(n.obligation) ?? /* @__PURE__ */ new Map();
217
- for (let e of n.affirmations ?? []) {
218
- let t = [
219
- n.obligation,
220
- e.who,
221
- e.commit,
222
- e.note ?? ""
223
- ].join("\0"), r = o.get(t);
224
- r ? r.suites = U(/* @__PURE__ */ new Set([...r.suites, n.suite])) : o.set(t, {
225
- who: e.who,
226
- commit: e.commit,
227
- ...e.note === void 0 ? {} : { note: e.note },
228
- suites: [n.suite]
229
- });
230
- }
231
- a.set(n.obligation, o);
232
- }
233
- let o = e.assurance.obligations.filter(({ id: e }) => r.has(e)).map(({ id: e }) => {
234
- let t = [...a.get(e)?.values() ?? []].sort(V);
235
- return {
236
- obligation: e,
237
- requirements: n.get(e) ?? [],
238
- suites: U(i.get(e) ?? /* @__PURE__ */ new Set()),
239
- events: t,
240
- eventCount: t.length
241
- };
242
- });
243
- return o.sort((e, t) => t.eventCount - e.eventCount || W(e.obligation, t.obligation)), O({
244
- ...t,
245
- rows: o
246
- });
247
- }
248
- function E(e, t, n) {
249
- let r = D(e, "change-impact"), i = U(new Set(n ?? te)), a = {
250
- ...r,
251
- requested: U(new Set(t)),
252
- relationKinds: i,
253
- rows: []
254
- };
255
- if (e.bindings.availability !== "available") return {
256
- ...a,
257
- state: "not_computed"
258
- };
259
- let o = new Set(e.assurance.relation_kinds.map(({ kind: e }) => e));
260
- for (let e of i.filter((e) => !o.has(e))) a.gaps.push({
261
- kind: "unknown-relation-kind",
262
- subject: e,
263
- reason: `relationship kind ${e} is absent from the accepted export vocabulary`
264
- });
265
- if (a.gaps.some(({ kind: e }) => e === "unknown-relation-kind")) return {
266
- ...a,
267
- state: "not_computed",
268
- gaps: H(a.gaps)
269
- };
270
- let s = new Set(e.assurance.artifacts.filter(A).map(({ id: e }) => e)), c = [];
271
- for (let e of a.requested) s.has(e) ? c.push(e) : a.gaps.push({
272
- kind: "unknown-requirement",
273
- subject: e,
274
- reason: `${e} is absent from the accepted assurance export`
275
- });
276
- let l = P(c, N(e.assurance, new Set(i), s, new Set(e.assurance.artifacts.map(({ id: e }) => e)), a.gaps)), u = k(e.assurance, !0), d = /* @__PURE__ */ new Map();
277
- for (let t of e.assurance.obligations) for (let e of u.get(t.id) ?? []) {
278
- let n = d.get(e) ?? [];
279
- n.push(t), d.set(e, n);
280
- }
281
- let f = j(e.bindings.bindings), p = [...l.entries()].sort(([e], [t]) => W(e, t)).map(([t, n]) => ({
282
- requirement: t,
283
- depth: n.edges.length,
284
- path: n,
285
- obligations: (d.get(t) ?? []).slice().sort((e, t) => W(e.id, t.id)).map((t) => ({
286
- obligation: t.id,
287
- requirements: u.get(t.id) ?? [],
288
- bindings: (f.get(t.id) ?? []).map((n) => ({
289
- suite: n.suite,
290
- auditorVerdict: M(e.audit.report, t.id, a.gaps)
291
- }))
292
- }))
293
- }));
294
- return O({
295
- ...a,
296
- rows: p
297
- });
298
- }
299
- function D(e, t) {
300
- let n = [];
301
- if (e.bindings.availability === "absent" ? n.push({
302
- kind: "absent-bindings-store",
303
- subject: "bindings.json",
304
- reason: e.bindings.reason
305
- }) : e.bindings.availability === "unreadable" ? n.push({
306
- kind: "unreadable-bindings-store",
307
- subject: "bindings.json",
308
- reason: e.bindings.reason
309
- }) : e.bindings.bindings.length === 0 && n.push({
310
- kind: "empty-bindings-store",
311
- subject: "bindings.json",
312
- reason: "the bindings store is present and valid but contains no bindings"
313
- }), e.bindings.availability === "available") {
314
- let t = new Set(e.assurance.obligations.map(({ id: e }) => e));
315
- for (let r of e.bindings.bindings) t.has(r.obligation) || n.push({
316
- kind: "unresolved-binding",
317
- subject: `${r.suite}:${r.obligation}`,
318
- reason: `${r.obligation} is absent from the accepted assurance export`
319
- });
320
- }
321
- for (let t of e.assurance.relation_observations) t.availability === "unknown" ? n.push({
322
- kind: "unknown-relation-availability",
323
- subject: t.subject ?? t.declaration,
324
- reason: t.reason ?? `availability of ${t.declaration} is unknown`
325
- }) : t.availability === "missing" && n.push({
326
- kind: "missing-required-relation",
327
- subject: t.subject ?? t.declaration,
328
- reason: t.reason ?? `${t.declaration} is not satisfied`
329
- });
330
- let r = k(e.assurance);
331
- for (let t of e.assurance.obligations) (r.get(t.id) ?? []).length === 0 && n.push({
332
- kind: "unresolved-obligation-owner",
333
- subject: t.id,
334
- reason: `${t.document} does not identify an accepted artifact`
335
- });
336
- return {
337
- view: t,
338
- source: e.assurance.source,
339
- export: {
340
- format: e.assurance.format,
341
- format_version: e.assurance.format_version
342
- },
343
- premises: _(e.premises),
344
- state: n.length === 0 ? "complete" : "incomplete",
345
- gaps: H(n)
346
- };
347
- }
348
- function O(e) {
349
- let t = H(e.gaps);
350
- return {
351
- ...e,
352
- state: e.state === "not_computed" ? "not_computed" : t.length === 0 ? "complete" : "incomplete",
353
- gaps: t
354
- };
355
- }
356
- function k(e, t = !1) {
357
- let n = /* @__PURE__ */ new Map();
358
- for (let r of e.artifacts.filter((e) => !t || A(e))) {
359
- let e = n.get(r.locator.path) ?? [];
360
- e.push(r.id), n.set(r.locator.path, e);
361
- }
362
- return new Map(e.obligations.map((e) => [e.id, U(n.get(e.document) ?? [])]));
363
- }
364
- function A(e) {
365
- return ne.has(e.artifact_type);
366
- }
367
- function j(e) {
368
- let t = /* @__PURE__ */ new Map();
369
- for (let n of e) {
370
- let e = t.get(n.obligation) ?? /* @__PURE__ */ new Map();
371
- e.has(n.suite) || e.set(n.suite, n), t.set(n.obligation, e);
372
- }
373
- return new Map([...t].map(([e, t]) => [e, [...t.values()].sort((e, t) => W(e.suite, t.suite))]));
374
- }
375
- function M(e, t, n) {
376
- let r = v(e), i = {
377
- findings: r.findings.filter((e) => e.obligation === t),
378
- healthy: r.healthy.filter((e) => e === t),
379
- unevaluated: r.unevaluated.filter((e) => e.obligation === t)
380
- };
381
- return i.findings.length === 0 && i.healthy.length === 0 && i.unevaluated.length === 0 && n.push({
382
- kind: "missing-auditor-verdict",
383
- subject: t,
384
- reason: `${t} has no FR-032 finding, healthy result, or unevaluated check`
385
- }), i;
386
- }
387
- function N(e, t, n, r, i) {
388
- let a = [];
389
- for (let o of e.relations) o.kind !== "corpus" || !t.has(o.edge_type) || o.resolution === "resolved" && r.has(o.source) && r.has(o.target) && (!n.has(o.source) || !n.has(o.target)) || (o.resolution !== "resolved" || !n.has(o.source) || !n.has(o.target) ? i.push({
390
- kind: "dangling-relation",
391
- subject: `${o.source}:${o.edge_type}:${o.target}`,
392
- reason: "selected relationship cannot resolve both accepted artifacts"
393
- }) : a.push(o));
394
- return a.sort(B);
395
- }
396
- function P(e, t) {
397
- let n = /* @__PURE__ */ new Map();
398
- for (let e of t) {
399
- let t = n.get(e.target) ?? [];
400
- t.push(e), n.set(e.target, t);
401
- }
402
- for (let e of n.values()) e.sort(B);
403
- let r = /* @__PURE__ */ new Map(), i = new F();
404
- for (let t of e.sort(W)) {
405
- let e = {
406
- seed: t,
407
- edges: []
408
- };
409
- I(e, r.get(t)) && (r.set(t, e), i.push({
410
- node: t,
411
- path: e
412
- }));
413
- }
414
- for (; i.length > 0;) {
415
- let e = i.pop();
416
- if (L(r.get(e.node), e.path)) for (let t of n.get(e.node) ?? []) {
417
- let n = {
418
- seed: e.path.seed,
419
- edges: [...e.path.edges, {
420
- source: t.source,
421
- target: t.target,
422
- relationship: t.edge_type
423
- }]
424
- };
425
- I(n, r.get(t.source)) && (r.set(t.source, n), i.push({
426
- node: t.source,
427
- path: n
428
- }));
429
- }
430
- }
431
- return r;
432
- }
433
- var F = class {
434
- items = [];
435
- get length() {
436
- return this.items.length;
437
- }
438
- push(e) {
439
- this.items.push(e);
440
- let t = this.items.length - 1;
441
- for (; t > 0;) {
442
- let n = Math.floor((t - 1) / 2);
443
- if (z(this.items[n], e) <= 0) break;
444
- this.items[t] = this.items[n], t = n;
445
- }
446
- this.items[t] = e;
447
- }
448
- pop() {
449
- let e = this.items[0], t = this.items.pop();
450
- if (e === void 0 || t === void 0 || this.items.length === 0) return e;
451
- let n = 0;
452
- for (;;) {
453
- let e = n * 2 + 1;
454
- if (e >= this.items.length) break;
455
- let r = e + 1, i = r < this.items.length && z(this.items[r], this.items[e]) < 0 ? r : e;
456
- if (z(this.items[i], t) >= 0) break;
457
- this.items[n] = this.items[i], n = i;
458
- }
459
- return this.items[n] = t, e;
460
- }
461
- };
462
- function I(e, t) {
463
- return t ? e.edges.length === t.edges.length ? W(R(e), R(t)) < 0 : e.edges.length < t.edges.length : !0;
464
- }
465
- function L(e, t) {
466
- return e !== void 0 && R(e) === R(t);
467
- }
468
- function R(e) {
469
- return [e.seed, ...e.edges.flatMap(({ source: e, target: t, relationship: n }) => [
470
- e,
471
- t,
472
- n
473
- ])].join("\0");
474
- }
475
- function z(e, t) {
476
- return e.path.edges.length - t.path.edges.length || W(R(e.path), R(t.path)) || W(e.node, t.node);
477
- }
478
- function B(e, t) {
479
- return W(e.source, t.source) || W(e.target, t.target) || W(e.edge_type, t.edge_type);
480
- }
481
- function V(e, t) {
482
- return W(e.who, t.who) || W(e.commit, t.commit) || W(e.note ?? "", t.note ?? "");
483
- }
484
- function H(e) {
485
- let t = /* @__PURE__ */ new Map();
486
- for (let n of e) t.set(`${n.kind}\u0000${n.subject}\u0000${n.reason}`, n);
487
- return [...t.values()].sort((e, t) => W(e.kind, t.kind) || W(e.subject, t.subject) || W(e.reason, t.reason));
488
- }
489
- function U(e) {
490
- return [...e].sort(W);
491
- }
492
- function W(e, t) {
493
- return e === t ? 0 : e < t ? -1 : 1;
494
- }
495
- //#endregion
496
- //#region src/graph-analysis/load.ts
497
- var G = a.object({
498
- who: a.string(),
499
- commit: a.string(),
500
- note: a.string().optional()
501
- }).passthrough(), K = a.object({
502
- obligation: a.string().min(1),
503
- statementHashAtBinding: a.string().min(1),
504
- suite: a.string().min(1),
505
- commit: a.string().min(1),
506
- symbols: a.array(a.string()),
507
- affirmations: a.array(G).optional()
508
- }).passthrough(), q = a.object({
509
- schemaVersion: a.literal(1),
510
- bindings: a.array(K)
511
- }).passthrough();
512
- function ie(t) {
513
- let a = Y(t.exportPath, "export");
514
- if (!a.ok) return a;
515
- let o = e(a.value);
516
- if (!o.ok) return X("export", o.error.message);
517
- let s = Y(t.premisesPath, "premises");
518
- if (!s.ok) return s;
519
- let c = m(s.value);
520
- if (!c.ok) return X("premises", c.error.message);
521
- let l = g(o.value, c.value);
522
- if (l) return X("premises", l.message);
523
- let u = Y(t.auditPath, "audit");
524
- if (!u.ok) return u;
525
- let d = h(u.value);
526
- if (!d.ok) return X("audit", d.error.message);
527
- let f = ee(d.value, o.value);
528
- if (f) return X("audit", f.message);
529
- let p = n(t.repo), _;
530
- if (!r(p)) _ = {
531
- availability: "absent",
532
- reason: `${p} is absent`
533
- };
534
- else try {
535
- let e = q.safeParse(JSON.parse(i(p, "utf8")));
536
- _ = e.success ? {
537
- availability: "available",
538
- bindings: ae(e.data.bindings)
539
- } : {
540
- availability: "unreadable",
541
- reason: `${p} is valid JSON but does not match the retained bindings schema: ${e.error.issues.map((e) => `${e.path.join(".") || "<root>"}: ${e.message}`).join("; ")}`
542
- };
543
- } catch (e) {
544
- _ = {
545
- availability: "unreadable",
546
- reason: e instanceof Error ? e.message : String(e)
547
- };
548
- }
549
- return {
550
- ok: !0,
551
- value: {
552
- assurance: o.value,
553
- premises: c.value,
554
- audit: d.value,
555
- bindings: _
556
- }
557
- };
558
- }
559
- function ae(e) {
560
- return e.map((e) => ({
561
- ...e,
562
- symbols: [...e.symbols].sort(J),
563
- ...e.affirmations === void 0 ? {} : { affirmations: e.affirmations.map((e) => ({ ...e })).sort((e, t) => J(e.who, t.who) || J(e.commit, t.commit) || J(e.note ?? "", t.note ?? "")) }
564
- })).sort((e, t) => J(e.obligation, t.obligation) || J(e.suite, t.suite) || J(e.commit, t.commit) || J(e.statementHashAtBinding, t.statementHashAtBinding) || J(JSON.stringify(e.symbols), JSON.stringify(t.symbols)) || J(JSON.stringify(e.affirmations ?? []), JSON.stringify(t.affirmations ?? [])));
565
- }
566
- function J(e, t) {
567
- return e === t ? 0 : e < t ? -1 : 1;
568
- }
569
- function Y(e, t) {
570
- try {
571
- return {
572
- ok: !0,
573
- value: i(e, "utf8")
574
- };
575
- } catch (n) {
576
- return {
577
- ok: !1,
578
- error: {
579
- kind: "graph-input-read",
580
- input: t,
581
- message: `cannot read ${t} input ${e}: ${n instanceof Error ? n.message : String(n)}`
582
- }
583
- };
584
- }
585
- }
586
- function X(e, t) {
587
- return {
588
- ok: !1,
589
- error: {
590
- kind: "graph-input-invalid",
591
- input: e,
592
- message: t
593
- }
594
- };
595
- }
596
- //#endregion
597
- //#region src/graph-analysis/render.ts
598
- function oe(e) {
599
- return t(e);
600
- }
601
- function se(e) {
602
- let t = [
603
- `# Evidence graph: ${e.view}`,
604
- "",
605
- `State: **${e.state}**`,
606
- `Source: \`${$(e.source.repository)}@${e.source.revision}\``,
607
- `Export: \`${e.export.format} v${e.export.format_version}\``,
608
- "",
609
- "## Accepted module premises",
610
- ""
611
- ];
612
- if (e.premises.modules.length === 0) t.push("*(none)*", "");
613
- else {
614
- for (let n of e.premises.modules) t.push(`- \`${$(n.name)}@${$(n.version)}\`: ${n.schemas.length} schema(s)`);
615
- t.push("");
616
- }
617
- return e.view === "fan-out" ? ce(e, t) : e.view === "change-impact" ? le(e, t) : ue(e, t), de(e, t), `${t.join("\n").trimEnd()}\n`;
618
- }
619
- function ce(e, t) {
620
- if (t.push("## Fan-out", "", "| Suite | Live obligations | Count | Unresolved |", "| --- | --- | ---: | --- |"), e.rows.length === 0) t.push("| *(none)* | — | 0 | — |");
621
- else for (let n of e.rows) {
622
- let e = n.obligations.map(({ obligation: e, requirements: t }) => `${e} (${t.join(", ") || "owner unknown"})`).join(", ");
623
- t.push(`| ${Z(n.suite)} | ${Z(e) || "—"} | ${n.obligationCount} | ${Z(n.unresolvedBindings.join(", ")) || "—"} |`);
624
- }
625
- t.push("");
626
- }
627
- function le(e, t) {
628
- if (t.push("## Change impact", "", `Requested: ${e.requested.map(Q).join(", ") || "*(none)*"}`, `Relations: ${e.relationKinds.map(Q).join(", ") || "*(none)*"}`, "", "| Requirement | Depth | Seed | Obligations |", "| --- | ---: | --- | --- |"), e.rows.length === 0) t.push("| *(none)* | — | — | — |");
629
- else for (let n of e.rows) {
630
- let e = n.obligations.map(({ obligation: e }) => e).join(", ");
631
- t.push(`| ${Z(n.requirement)} | ${n.depth} | ${Z(n.path.seed)} | ${Z(e) || "—"} |`);
632
- }
633
- t.push("");
634
- }
635
- function ue(e, t) {
636
- if (t.push("## Retained reaffirmation history", "", "| Obligation | Requirements | Suites | Events |", "| --- | --- | --- | ---: |"), e.rows.length === 0) t.push("| *(none)* | — | — | 0 |");
637
- else for (let n of e.rows) t.push(`| ${Z(n.obligation)} | ${Z(n.requirements.join(", ")) || "—"} | ${Z(n.suites.join(", ")) || "—"} | ${n.eventCount} |`);
638
- t.push("");
639
- }
640
- function de(e, t) {
641
- if (e.gaps.length !== 0) {
642
- t.push("## Gaps", "");
643
- for (let n of e.gaps) t.push(`- **${n.kind}** ${Q(n.subject)}: ${n.reason}`);
644
- t.push("");
645
- }
646
- }
647
- function Z(e) {
648
- return e.replaceAll("|", "\\|").replaceAll("\n", " ");
649
- }
650
- function Q(e) {
651
- return `\`${$(e)}\``;
652
- }
653
- function $(e) {
654
- return e.replaceAll("`", "\\`");
655
- }
656
- //#endregion
657
- export { T as a, E as i, oe as n, re as o, ie as r, se as t };
@@ -1,23 +0,0 @@
1
- import { Hook } from '@oclif/core';
2
- /**
3
- * `command_not_found` hook — attach the root usage to an unknown command
4
- * (FR-005-AC-1).
5
- *
6
- * The hand-rolled dispatcher FR-026 replaced printed usage on an unknown
7
- * command. The oclif runner reports only `command <x> not found`, which names
8
- * the mistake but not the remedy, leaving NFR-003 unmet on the one path a
9
- * mistyping user is guaranteed to hit.
10
- *
11
- * This is oclif's own extension point for that: `Config.runCommand` invokes it
12
- * when no command matches, and rethrows a hook failure in place of its default
13
- * error. So the message is fixed where oclif expects it to be fixed — no error
14
- * sniffing (the thrown `CLIError` carries no stable discriminator), and no
15
- * bypassing `execute`, whose `flush()` the shipped bin needs so piped output is
16
- * not truncated on exit.
17
- *
18
- * It fires on the library path too: `run(argv, config)` reaches the same
19
- * `Config.runCommand`.
20
- */
21
- declare const hook: Hook<"command_not_found">;
22
- export default hook;
23
- //# sourceMappingURL=command-not-found.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command-not-found.d.ts","sourceRoot":"","sources":["../../src/hooks/command-not-found.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAIhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAKnC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,8 +0,0 @@
1
- import { rootUsage as e } from "../cli.js";
2
- import { Errors as t } from "@oclif/core";
3
- //#region src/hooks/command-not-found.ts
4
- var n = async function(n) {
5
- throw new t.CLIError(`command ${n.id} not found\n\n${e(this.config)}`, { exit: 2 });
6
- };
7
- //#endregion
8
- export { n as default };
package/dist/index.d.ts DELETED
@@ -1,13 +0,0 @@
1
- export { main, isVersionRequest } from './cli.js';
2
- export { packageVersion, resolveVersion } from './version.js';
3
- export { loadCatalog, defaultModuleRoots, filamentModulesDir, findCatalogEntry, } from './catalog.js';
4
- export { ensureDefaultModules, defaultModulesManifest } from './modules.js';
5
- export * from './measurement/index.js';
6
- export * from './change-assurance/index.js';
7
- export { installPlugin, listPlugins, removePlugin, parseSourceArg, } from './plugins.js';
8
- export { createAuthoringPack, formatAuthoringPack, parseTypeList, } from './write.js';
9
- export { QuoinCommand } from './base.js';
10
- export { FlowCommand } from './flow-command.js';
11
- export { resolveOrg, originOrg, UNRESOLVED_ORG_MESSAGE, type OrgSource, type ResolvedOrg, } from './org.js';
12
- export { ixSchema, QuoinConfigSchema, QUOIN_PLUGIN_ID, QUOIN_ENV_BINDINGS, type QuoinConfig, } from './config-schema.js';
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC5E,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EACL,aAAa,EACb,WAAW,EACX,YAAY,EACZ,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,UAAU,EACV,SAAS,EACT,sBAAsB,EACtB,KAAK,SAAS,EACd,KAAK,WAAW,GACjB,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,KAAK,WAAW,GACjB,MAAM,oBAAoB,CAAC"}