@agent-ix/quoin 0.22.5 → 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 (398) hide show
  1. package/README.md +8 -258
  2. package/bin/launcher.js +138 -0
  3. package/package.json +22 -119
  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-BkgwDKvQ.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-C3bSmPD_.js +0 -340
  31. package/dist/base-CqKNs2Kd.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/cli.d.ts +0 -61
  37. package/dist/cli.d.ts.map +0 -1
  38. package/dist/cli.js +0 -34
  39. package/dist/commands/advise.d.ts +0 -16
  40. package/dist/commands/advise.d.ts.map +0 -1
  41. package/dist/commands/advise.js +0 -234
  42. package/dist/commands/assurance.d.ts +0 -14
  43. package/dist/commands/assurance.d.ts.map +0 -1
  44. package/dist/commands/assurance.js +0 -204
  45. package/dist/commands/catalog/index.d.ts +0 -2
  46. package/dist/commands/catalog/index.d.ts.map +0 -1
  47. package/dist/commands/catalog/index.js +0 -2
  48. package/dist/commands/catalog/list.d.ts +0 -11
  49. package/dist/commands/catalog/list.d.ts.map +0 -1
  50. package/dist/commands/catalog/list.js +0 -22
  51. package/dist/commands/catalog/methods.d.ts +0 -12
  52. package/dist/commands/catalog/methods.d.ts.map +0 -1
  53. package/dist/commands/catalog/methods.js +0 -43
  54. package/dist/commands/catalog/show.d.ts +0 -13
  55. package/dist/commands/catalog/show.d.ts.map +0 -1
  56. package/dist/commands/catalog/show.js +0 -25
  57. package/dist/commands/catalog/validate.d.ts +0 -10
  58. package/dist/commands/catalog/validate.d.ts.map +0 -1
  59. package/dist/commands/catalog/validate.js +0 -27
  60. package/dist/commands/completeness.d.ts +0 -16
  61. package/dist/commands/completeness.d.ts.map +0 -1
  62. package/dist/commands/completeness.js +0 -49
  63. package/dist/commands/config/doctor.d.ts +0 -7
  64. package/dist/commands/config/doctor.d.ts.map +0 -1
  65. package/dist/commands/config/doctor.js +0 -15
  66. package/dist/commands/config/edit.d.ts +0 -7
  67. package/dist/commands/config/edit.d.ts.map +0 -1
  68. package/dist/commands/config/edit.js +0 -13
  69. package/dist/commands/config/get.d.ts +0 -11
  70. package/dist/commands/config/get.d.ts.map +0 -1
  71. package/dist/commands/config/get.js +0 -20
  72. package/dist/commands/config/index.d.ts +0 -2
  73. package/dist/commands/config/index.d.ts.map +0 -1
  74. package/dist/commands/config/index.js +0 -2
  75. package/dist/commands/config/set.d.ts +0 -12
  76. package/dist/commands/config/set.d.ts.map +0 -1
  77. package/dist/commands/config/set.js +0 -26
  78. package/dist/commands/evidence/affirm.d.ts +0 -17
  79. package/dist/commands/evidence/affirm.d.ts.map +0 -1
  80. package/dist/commands/evidence/affirm.js +0 -65
  81. package/dist/commands/evidence/audit.d.ts +0 -34
  82. package/dist/commands/evidence/audit.d.ts.map +0 -1
  83. package/dist/commands/evidence/audit.js +0 -107
  84. package/dist/commands/evidence/baseline.d.ts +0 -14
  85. package/dist/commands/evidence/baseline.d.ts.map +0 -1
  86. package/dist/commands/evidence/baseline.js +0 -89
  87. package/dist/commands/evidence/gc.d.ts +0 -13
  88. package/dist/commands/evidence/gc.d.ts.map +0 -1
  89. package/dist/commands/evidence/gc.js +0 -35
  90. package/dist/commands/evidence/index.d.ts +0 -8
  91. package/dist/commands/evidence/index.d.ts.map +0 -1
  92. package/dist/commands/evidence/index.js +0 -18
  93. package/dist/commands/evidence/inspect-mocks.d.ts +0 -16
  94. package/dist/commands/evidence/inspect-mocks.d.ts.map +0 -1
  95. package/dist/commands/evidence/inspect-mocks.js +0 -49
  96. package/dist/commands/evidence/record.d.ts +0 -22
  97. package/dist/commands/evidence/record.d.ts.map +0 -1
  98. package/dist/commands/evidence/record.js +0 -140
  99. package/dist/commands/matrix.d.ts +0 -14
  100. package/dist/commands/matrix.d.ts.map +0 -1
  101. package/dist/commands/matrix.js +0 -15
  102. package/dist/commands/measurement/index.d.ts +0 -7
  103. package/dist/commands/measurement/index.d.ts.map +0 -1
  104. package/dist/commands/measurement/index.js +0 -11
  105. package/dist/commands/measurement/record.d.ts +0 -10
  106. package/dist/commands/measurement/record.d.ts.map +0 -1
  107. package/dist/commands/measurement/record.js +0 -35
  108. package/dist/commands/module/ensure-defaults.d.ts +0 -8
  109. package/dist/commands/module/ensure-defaults.d.ts.map +0 -1
  110. package/dist/commands/module/ensure-defaults.js +0 -17
  111. package/dist/commands/module/index.d.ts +0 -2
  112. package/dist/commands/module/index.d.ts.map +0 -1
  113. package/dist/commands/module/index.js +0 -2
  114. package/dist/commands/module/install.d.ts +0 -11
  115. package/dist/commands/module/install.d.ts.map +0 -1
  116. package/dist/commands/module/install.js +0 -22
  117. package/dist/commands/module/list.d.ts +0 -8
  118. package/dist/commands/module/list.d.ts.map +0 -1
  119. package/dist/commands/module/list.js +0 -13
  120. package/dist/commands/module/remove.d.ts +0 -10
  121. package/dist/commands/module/remove.d.ts.map +0 -1
  122. package/dist/commands/module/remove.js +0 -16
  123. package/dist/commands/plugin/deprecation.d.ts +0 -10
  124. package/dist/commands/plugin/deprecation.d.ts.map +0 -1
  125. package/dist/commands/plugin/ensure-defaults.d.ts +0 -8
  126. package/dist/commands/plugin/ensure-defaults.d.ts.map +0 -1
  127. package/dist/commands/plugin/ensure-defaults.js +0 -12
  128. package/dist/commands/plugin/index.d.ts +0 -2
  129. package/dist/commands/plugin/index.d.ts.map +0 -1
  130. package/dist/commands/plugin/index.js +0 -2
  131. package/dist/commands/plugin/install.d.ts +0 -8
  132. package/dist/commands/plugin/install.d.ts.map +0 -1
  133. package/dist/commands/plugin/install.js +0 -12
  134. package/dist/commands/plugin/list.d.ts +0 -8
  135. package/dist/commands/plugin/list.d.ts.map +0 -1
  136. package/dist/commands/plugin/list.js +0 -12
  137. package/dist/commands/plugin/remove.d.ts +0 -8
  138. package/dist/commands/plugin/remove.d.ts.map +0 -1
  139. package/dist/commands/plugin/remove.js +0 -12
  140. package/dist/commands/report.d.ts +0 -15
  141. package/dist/commands/report.d.ts.map +0 -1
  142. package/dist/commands/report.js +0 -70
  143. package/dist/commands/review.d.ts +0 -14
  144. package/dist/commands/review.d.ts.map +0 -1
  145. package/dist/commands/review.js +0 -15
  146. package/dist/commands/to-plan.d.ts +0 -14
  147. package/dist/commands/to-plan.d.ts.map +0 -1
  148. package/dist/commands/to-plan.js +0 -15
  149. package/dist/commands/update.d.ts +0 -13
  150. package/dist/commands/update.d.ts.map +0 -1
  151. package/dist/commands/update.js +0 -34
  152. package/dist/commands/validate.d.ts +0 -13
  153. package/dist/commands/validate.d.ts.map +0 -1
  154. package/dist/commands/validate.js +0 -123
  155. package/dist/commands/write.d.ts +0 -16
  156. package/dist/commands/write.d.ts.map +0 -1
  157. package/dist/commands/write.js +0 -33
  158. package/dist/completeness/assess.d.ts +0 -82
  159. package/dist/completeness/assess.d.ts.map +0 -1
  160. package/dist/completeness/bundle.d.ts +0 -52
  161. package/dist/completeness/bundle.d.ts.map +0 -1
  162. package/dist/completeness/declarations.d.ts +0 -46
  163. package/dist/completeness/declarations.d.ts.map +0 -1
  164. package/dist/completeness/index.d.ts +0 -11
  165. package/dist/completeness/index.d.ts.map +0 -1
  166. package/dist/completeness/run.d.ts +0 -35
  167. package/dist/completeness/run.d.ts.map +0 -1
  168. package/dist/completeness-DamWradt.js +0 -228
  169. package/dist/config-schema-Dp-vlxuR.js +0 -13
  170. package/dist/config-schema.d.ts +0 -52
  171. package/dist/config-schema.d.ts.map +0 -1
  172. package/dist/deprecation-fRxUHoxv.js +0 -4
  173. package/dist/evidence/adapters/agent-eval.d.ts +0 -26
  174. package/dist/evidence/adapters/agent-eval.d.ts.map +0 -1
  175. package/dist/evidence/adapters/audit-script.d.ts +0 -25
  176. package/dist/evidence/adapters/audit-script.d.ts.map +0 -1
  177. package/dist/evidence/adapters/cargo-mutants.d.ts +0 -3
  178. package/dist/evidence/adapters/cargo-mutants.d.ts.map +0 -1
  179. package/dist/evidence/adapters/junit.d.ts +0 -17
  180. package/dist/evidence/adapters/junit.d.ts.map +0 -1
  181. package/dist/evidence/adapters/registry.d.ts +0 -63
  182. package/dist/evidence/adapters/registry.d.ts.map +0 -1
  183. package/dist/evidence/adapters/sarif.d.ts +0 -35
  184. package/dist/evidence/adapters/sarif.d.ts.map +0 -1
  185. package/dist/evidence/adapters/sbom.d.ts +0 -35
  186. package/dist/evidence/adapters/sbom.d.ts.map +0 -1
  187. package/dist/evidence/adapters/types.d.ts +0 -55
  188. package/dist/evidence/adapters/types.d.ts.map +0 -1
  189. package/dist/evidence/index.d.ts +0 -24
  190. package/dist/evidence/index.d.ts.map +0 -1
  191. package/dist/evidence/mock-inspection.d.ts +0 -16
  192. package/dist/evidence/mock-inspection.d.ts.map +0 -1
  193. package/dist/evidence/record.d.ts +0 -58
  194. package/dist/evidence/record.d.ts.map +0 -1
  195. package/dist/evidence/store.d.ts +0 -215
  196. package/dist/evidence/store.d.ts.map +0 -1
  197. package/dist/evidence/types.d.ts +0 -281
  198. package/dist/evidence/types.d.ts.map +0 -1
  199. package/dist/evidence-DD0CHzJ0.js +0 -533
  200. package/dist/flow-command-BfFNY0Rv.js +0 -88
  201. package/dist/flow-command.d.ts +0 -25
  202. package/dist/flow-command.d.ts.map +0 -1
  203. package/dist/flows.d.ts +0 -7
  204. package/dist/flows.d.ts.map +0 -1
  205. package/dist/hooks/command-not-found.d.ts +0 -23
  206. package/dist/hooks/command-not-found.d.ts.map +0 -1
  207. package/dist/hooks/command-not-found.js +0 -8
  208. package/dist/index.d.ts +0 -12
  209. package/dist/index.d.ts.map +0 -1
  210. package/dist/index.js +0 -10
  211. package/dist/measurement/compare.d.ts +0 -4
  212. package/dist/measurement/compare.d.ts.map +0 -1
  213. package/dist/measurement/index.d.ts +0 -9
  214. package/dist/measurement/index.d.ts.map +0 -1
  215. package/dist/measurement/plans.d.ts +0 -4
  216. package/dist/measurement/plans.d.ts.map +0 -1
  217. package/dist/measurement/portfolio.d.ts +0 -48
  218. package/dist/measurement/portfolio.d.ts.map +0 -1
  219. package/dist/measurement/profiles.d.ts +0 -9
  220. package/dist/measurement/profiles.d.ts.map +0 -1
  221. package/dist/measurement/report.d.ts +0 -44
  222. package/dist/measurement/report.d.ts.map +0 -1
  223. package/dist/measurement/store.d.ts +0 -7
  224. package/dist/measurement/store.d.ts.map +0 -1
  225. package/dist/measurement/types.d.ts +0 -83
  226. package/dist/measurement/types.d.ts.map +0 -1
  227. package/dist/measurement/validate.d.ts +0 -9
  228. package/dist/measurement/validate.d.ts.map +0 -1
  229. package/dist/measurement-CzB74Q07.js +0 -595
  230. package/dist/modules-ez9httBA.js +0 -23
  231. package/dist/modules.d.ts +0 -10
  232. package/dist/modules.d.ts.map +0 -1
  233. package/dist/org.d.ts +0 -61
  234. package/dist/org.d.ts.map +0 -1
  235. package/dist/plugins-C-ta0llj.js +0 -77
  236. package/dist/plugins.d.ts +0 -13
  237. package/dist/plugins.d.ts.map +0 -1
  238. package/dist/quire/contract.d.ts +0 -87
  239. package/dist/quire/contract.d.ts.map +0 -1
  240. package/dist/quire/exec.d.ts +0 -66
  241. package/dist/quire/exec.d.ts.map +0 -1
  242. package/dist/quire/index.d.ts +0 -12
  243. package/dist/quire/index.d.ts.map +0 -1
  244. package/dist/quire/types.d.ts +0 -415
  245. package/dist/quire/types.d.ts.map +0 -1
  246. package/dist/quire/validate.d.ts +0 -34
  247. package/dist/quire/validate.d.ts.map +0 -1
  248. package/dist/quire-D8tCpgyA.js +0 -4961
  249. package/dist/schemas/coverage-v1.schema.json +0 -1111
  250. package/dist/schemas/properties-v1.schema.json +0 -159
  251. package/dist/store--2sAv12X.js +0 -219
  252. package/dist/validators/gates.d.ts +0 -18
  253. package/dist/validators/gates.d.ts.map +0 -1
  254. package/dist/validators/index.d.ts +0 -2
  255. package/dist/validators/index.d.ts.map +0 -1
  256. package/dist/version-Dg0e6CZU.js +0 -17
  257. package/dist/version.d.ts +0 -3
  258. package/dist/version.d.ts.map +0 -1
  259. package/dist/write-DElwS9xc.js +0 -157
  260. package/dist/write.d.ts +0 -28
  261. package/dist/write.d.ts.map +0 -1
  262. package/skills/assurance-status-report/SKILL.md +0 -135
  263. package/skills/assurance-status-report/references/report-contract.md +0 -110
  264. package/skills/gap-analysis/SKILL.md +0 -111
  265. package/skills/gap-analysis/references/step-1-target-selection.md +0 -53
  266. package/skills/gap-analysis/references/step-2-plan-completion.md +0 -49
  267. package/skills/gap-analysis/references/step-3-matrix-verification.md +0 -147
  268. package/skills/gap-analysis/references/step-4-underspecified-code.md +0 -63
  269. package/skills/gap-analysis/references/step-5-semantic-review.md +0 -51
  270. package/skills/gap-analysis/references/step-6-specreview-artifact.md +0 -107
  271. package/skills/spec-app-review/SKILL.md +0 -51
  272. package/skills/spec-app-review/references/checklist.md +0 -197
  273. package/skills/spec-architecture-evaluation/SKILL.md +0 -30
  274. package/skills/spec-correctness/SKILL.md +0 -96
  275. package/skills/spec-correctness/assets/strategy-table.md +0 -101
  276. package/skills/spec-correctness/assets/templates/fast-check.ts.md +0 -169
  277. package/skills/spec-correctness/assets/templates/hypothesis.py.md +0 -156
  278. package/skills/spec-correctness/assets/templates/proptest.rs.md +0 -147
  279. package/skills/spec-correctness/references/step-0-scope-and-harness.md +0 -94
  280. package/skills/spec-correctness/references/step-1-census.md +0 -53
  281. package/skills/spec-correctness/references/step-2-clause-grounding.md +0 -159
  282. package/skills/spec-correctness/references/step-3-strategy-selection.md +0 -85
  283. package/skills/spec-correctness/references/step-4-generate-tests.md +0 -117
  284. package/skills/spec-correctness/references/step-5-second-pass.md +0 -81
  285. package/skills/spec-correctness/references/step-6-review-artifact.md +0 -134
  286. package/skills/spec-correctness/references/step-7-report-and-handoff.md +0 -102
  287. package/skills/spec-dependency-analysis/SKILL.md +0 -90
  288. package/skills/spec-ears-analysis/SKILL.md +0 -102
  289. package/skills/spec-evidence-analysis/SKILL.md +0 -156
  290. package/skills/spec-failure-domain-analysis/SKILL.md +0 -59
  291. package/skills/spec-fuzz/SKILL.md +0 -132
  292. package/skills/spec-fuzz/assets/templates/atheris.py.md +0 -74
  293. package/skills/spec-fuzz/assets/templates/cargo-fuzz.rs.md +0 -83
  294. package/skills/spec-fuzz/assets/templates/fast-check.ts.md +0 -76
  295. package/skills/spec-fuzz/references/step-0-scope-and-harness.md +0 -51
  296. package/skills/spec-fuzz/references/step-1-select-obligations.md +0 -47
  297. package/skills/spec-fuzz/references/step-2-ground-entry-point.md +0 -55
  298. package/skills/spec-fuzz/references/step-3-emit-targets.md +0 -65
  299. package/skills/spec-fuzz/references/step-4-report.md +0 -56
  300. package/skills/spec-ideation/SKILL.md +0 -46
  301. package/skills/spec-integrity-analysis/SKILL.md +0 -62
  302. package/skills/spec-matrix/SKILL.md +0 -186
  303. package/skills/spec-matrix/assets/test-cases/TC-001.md +0 -35
  304. package/skills/spec-matrix/assets/test-cases/TC-002.md +0 -37
  305. package/skills/spec-matrix/assets/test-cases/TC-006.md +0 -50
  306. package/skills/spec-matrix/assets/test-matrix-example.md +0 -104
  307. package/skills/spec-matrix/assets/test-matrix-template.md +0 -123
  308. package/skills/spec-matrix/workflow-assets/dist/index.d.ts +0 -146
  309. package/skills/spec-matrix/workflow-assets/dist/index.d.ts.map +0 -1
  310. package/skills/spec-matrix/workflow-assets/dist/index.js +0 -7525
  311. package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts +0 -6
  312. package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts.map +0 -1
  313. package/skills/spec-matrix/workflow-assets/skills/matrix/SKILL.md +0 -35
  314. package/skills/spec-matrix/workflow-assets/skills/matrix/scripts/invariants.js +0 -1
  315. package/skills/spec-matrix/workflow-assets/skills/matrix/templates/report/default.md +0 -30
  316. package/skills/spec-matrix/workflow-assets/skills/matrix/workflows/matrix/def.yaml +0 -82
  317. package/skills/spec-object-review/SKILL.md +0 -125
  318. package/skills/spec-object-review/references/object-type-guide.md +0 -118
  319. package/skills/spec-review/SKILL.md +0 -92
  320. package/skills/spec-review/references/checklist.md +0 -50
  321. package/skills/spec-review/workflow-assets/dist/index.d.ts +0 -146
  322. package/skills/spec-review/workflow-assets/dist/index.d.ts.map +0 -1
  323. package/skills/spec-review/workflow-assets/dist/index.js +0 -7525
  324. package/skills/spec-review/workflow-assets/dist/invariants.d.ts +0 -6
  325. package/skills/spec-review/workflow-assets/dist/invariants.d.ts.map +0 -1
  326. package/skills/spec-review/workflow-assets/skills/review/SKILL.md +0 -96
  327. package/skills/spec-review/workflow-assets/skills/review/scripts/invariants.js +0 -61
  328. package/skills/spec-review/workflow-assets/skills/review/workflows/review/def.yaml +0 -68
  329. package/skills/spec-risk-complexity-analysis/SKILL.md +0 -92
  330. package/skills/spec-scope-boundary-analysis/SKILL.md +0 -101
  331. package/skills/spec-security-analysis/SKILL.md +0 -84
  332. package/skills/spec-security-analysis/assets/security-analysis-example.md +0 -89
  333. package/skills/spec-security-analysis/assets/security-analysis-template.md +0 -73
  334. package/skills/spec-security-analysis/references/component-type-mapping.md +0 -161
  335. package/skills/spec-security-analysis/references/gdpr/ChII-Principles.md +0 -58
  336. package/skills/spec-security-analysis/references/gdpr/ChIII-DataSubjectRights.md +0 -84
  337. package/skills/spec-security-analysis/references/gdpr/ChIV-ControllerProcessor.md +0 -83
  338. package/skills/spec-security-analysis/references/gdpr/ChV-DataTransfers.md +0 -62
  339. package/skills/spec-security-analysis/references/gdpr/index.md +0 -54
  340. package/skills/spec-security-analysis/references/iso27001/A5-OrganizationalControls.md +0 -64
  341. package/skills/spec-security-analysis/references/iso27001/A6-PeopleControls.md +0 -30
  342. package/skills/spec-security-analysis/references/iso27001/A7-PhysicalControls.md +0 -35
  343. package/skills/spec-security-analysis/references/iso27001/A8-TechnologicalControls.md +0 -66
  344. package/skills/spec-security-analysis/references/iso27001/index.md +0 -43
  345. package/skills/spec-security-analysis/references/nist-800-53/AC-AccessControl.md +0 -57
  346. package/skills/spec-security-analysis/references/nist-800-53/AU-AuditAccountability.md +0 -49
  347. package/skills/spec-security-analysis/references/nist-800-53/CM-ConfigurationManagement.md +0 -36
  348. package/skills/spec-security-analysis/references/nist-800-53/IA-IdentificationAuthentication.md +0 -44
  349. package/skills/spec-security-analysis/references/nist-800-53/SA-SystemServicesAcquisition.md +0 -50
  350. package/skills/spec-security-analysis/references/nist-800-53/SC-SystemCommunications.md +0 -53
  351. package/skills/spec-security-analysis/references/nist-800-53/SI-SystemInformationIntegrity.md +0 -52
  352. package/skills/spec-security-analysis/references/nist-800-53/index.md +0 -58
  353. package/skills/spec-security-analysis/references/owasp-asvs/V1-Architecture.md +0 -33
  354. package/skills/spec-security-analysis/references/owasp-asvs/V10-MaliciousCode.md +0 -33
  355. package/skills/spec-security-analysis/references/owasp-asvs/V11-BusinessLogic.md +0 -32
  356. package/skills/spec-security-analysis/references/owasp-asvs/V12-Files.md +0 -34
  357. package/skills/spec-security-analysis/references/owasp-asvs/V13-API.md +0 -34
  358. package/skills/spec-security-analysis/references/owasp-asvs/V14-Configuration.md +0 -35
  359. package/skills/spec-security-analysis/references/owasp-asvs/V2-Authentication.md +0 -36
  360. package/skills/spec-security-analysis/references/owasp-asvs/V3-SessionManagement.md +0 -35
  361. package/skills/spec-security-analysis/references/owasp-asvs/V4-AccessControl.md +0 -39
  362. package/skills/spec-security-analysis/references/owasp-asvs/V5-Validation.md +0 -37
  363. package/skills/spec-security-analysis/references/owasp-asvs/V6-Cryptography.md +0 -34
  364. package/skills/spec-security-analysis/references/owasp-asvs/V7-ErrorLogging.md +0 -37
  365. package/skills/spec-security-analysis/references/owasp-asvs/V8-DataProtection.md +0 -34
  366. package/skills/spec-security-analysis/references/owasp-asvs/V9-Communication.md +0 -32
  367. package/skills/spec-security-analysis/references/owasp-asvs/index.md +0 -59
  368. package/skills/spec-security-analysis/references/soc2/CC1-ControlEnvironment.md +0 -31
  369. package/skills/spec-security-analysis/references/soc2/CC2-CommunicationInformation.md +0 -27
  370. package/skills/spec-security-analysis/references/soc2/CC3-RiskAssessment.md +0 -29
  371. package/skills/spec-security-analysis/references/soc2/CC4-MonitoringActivities.md +0 -27
  372. package/skills/spec-security-analysis/references/soc2/CC5-ControlActivities.md +0 -28
  373. package/skills/spec-security-analysis/references/soc2/CC6-LogicalPhysicalAccess.md +0 -45
  374. package/skills/spec-security-analysis/references/soc2/CC7-SystemOperations.md +0 -42
  375. package/skills/spec-security-analysis/references/soc2/CC8-ChangeManagement.md +0 -32
  376. package/skills/spec-security-analysis/references/soc2/CC9-RiskMitigation.md +0 -34
  377. package/skills/spec-security-analysis/references/soc2/index.md +0 -46
  378. package/skills/spec-security-analysis/references/standards-index.md +0 -46
  379. package/skills/spec-to-plan/SKILL.md +0 -88
  380. package/skills/spec-to-plan/references/step-0-plan-selection.md +0 -121
  381. package/skills/spec-to-plan/references/step-1-analysis.md +0 -88
  382. package/skills/spec-to-plan/references/step-2-test-plan.md +0 -43
  383. package/skills/spec-to-plan/references/step-3-execution-plan.md +0 -218
  384. package/skills/spec-to-plan/workflow-assets/dist/index.d.ts +0 -146
  385. package/skills/spec-to-plan/workflow-assets/dist/index.d.ts.map +0 -1
  386. package/skills/spec-to-plan/workflow-assets/dist/index.js +0 -7525
  387. package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts +0 -6
  388. package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts.map +0 -1
  389. package/skills/spec-to-plan/workflow-assets/skills/to-plan/SKILL.md +0 -35
  390. package/skills/spec-to-plan/workflow-assets/skills/to-plan/scripts/invariants.js +0 -1
  391. package/skills/spec-to-plan/workflow-assets/skills/to-plan/templates/implementation-plan/default.md +0 -44
  392. package/skills/spec-to-plan/workflow-assets/skills/to-plan/workflows/to-plan/def.yaml +0 -85
  393. package/skills/specify/SKILL.md +0 -154
  394. package/skills/specify/assets/app-spec-template.md +0 -143
  395. package/skills/specify/assets/spec-template.md +0 -299
  396. package/skills/specify/references/integration-tests.md +0 -72
  397. package/skills/specify/references/us-to-fr.md +0 -40
  398. package/skills/specify/references/writing-good-requirements.md +0 -61
@@ -1,595 +0,0 @@
1
- import { h as e, i as t } from "./store--2sAv12X.js";
2
- import { existsSync as n, mkdirSync as r, readFileSync as i, readdirSync as a, renameSync as o, statSync as s, unlinkSync as c, writeFileSync as l } from "node:fs";
3
- import { basename as u, dirname as ee, isAbsolute as d, join as f, relative as p, resolve as m } from "node:path";
4
- import { parse as h } from "yaml";
5
- import { randomUUID as g } from "node:crypto";
6
- //#region src/measurement/compare.ts
7
- function _(e, t) {
8
- let n = y(e.observations), r = y(t.observations);
9
- return [.../* @__PURE__ */ new Set([...n.keys(), ...r.keys()])].sort(S).map((i) => {
10
- let a = n.get(i), o = r.get(i), s = a ?? o;
11
- if (!a || !o || a.state === "not_computed" || o.state === "not_computed") return {
12
- metric: s.metric,
13
- dimensions: s.dimensions ?? {},
14
- before: a?.value ?? null,
15
- after: o?.value ?? null,
16
- delta: null,
17
- status: "not_computed",
18
- reasons: []
19
- };
20
- let c = [];
21
- a.definitionVersion !== o.definitionVersion && c.push({
22
- code: "definition_changed",
23
- blocking: !0,
24
- message: `${a.metric}: definition moved ${a.definitionVersion} -> ${o.definitionVersion}`
25
- }), e.configDigest !== t.configDigest && c.push({
26
- code: "configuration_changed",
27
- blocking: !0,
28
- message: `${a.metric}: producer configuration moved ${e.configDigest} -> ${t.configDigest}`
29
- }), (v(a) || v(o)) && c.push({
30
- code: "incomplete_population",
31
- blocking: !0,
32
- message: `${a.metric}: ratio matched none of a non-empty examined population, or collection marked it incomplete`
33
- }), x(a) !== x(o) && c.push({
34
- code: "population_changed",
35
- blocking: !1,
36
- message: `${a.metric}: population changed; delta is shown with this warning`
37
- }), e.toolVersion !== t.toolVersion && c.push({
38
- code: "tool_changed",
39
- blocking: !1,
40
- message: `${a.metric}: tool moved ${e.toolVersion} -> ${t.toolVersion}`
41
- });
42
- let l = c.some((e) => e.blocking);
43
- return {
44
- metric: a.metric,
45
- dimensions: a.dimensions ?? {},
46
- before: a.value,
47
- after: o.value,
48
- delta: l ? null : o.value - a.value,
49
- status: l ? "incomparable" : "comparable",
50
- reasons: c
51
- };
52
- });
53
- }
54
- function v(e) {
55
- return e.population?.complete === void 0 ? e.shape === "ratio" && (e.population?.examined ?? 0) > 0 && e.population?.matched === 0 : !e.population.complete;
56
- }
57
- function y(e) {
58
- return new Map(e.map((e) => [b(e), e]));
59
- }
60
- function b(e) {
61
- return `${e.metric}\0${JSON.stringify(Object.entries(e.dimensions ?? {}).sort(([e], [t]) => S(e, t)))}`;
62
- }
63
- function x(e) {
64
- return JSON.stringify(e.population ?? null);
65
- }
66
- function S(e, t) {
67
- return e === t ? 0 : e < t ? -1 : 1;
68
- }
69
- //#endregion
70
- //#region src/measurement/plans.ts
71
- var C = /* @__PURE__ */ new Set([
72
- "observe",
73
- "baseline",
74
- "branch-comparison",
75
- "trend",
76
- "ratchet",
77
- "target",
78
- "gate"
79
- ]);
80
- function w(e) {
81
- return te(e).map((t) => ne(t, e)).filter((e) => e !== null).sort((e, t) => T(e.metric, t.metric) || T(e.id, t.id));
82
- }
83
- function te(e) {
84
- return [f(e, "spec", "assurance"), f(e, "assurance")].filter(n).flatMap(re).sort(T);
85
- }
86
- function ne(e, t) {
87
- let n = i(e, "utf8"), r = /^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/.exec(n);
88
- if (!r) return null;
89
- let a = h(r[1]);
90
- if (a.type !== "MeasurementPlan") return null;
91
- for (let t of [
92
- "id",
93
- "title",
94
- "status",
95
- "stage",
96
- "metric",
97
- "definition_version"
98
- ]) if (typeof a[t] != "string" || a[t].length === 0) throw Error(`${e}: MeasurementPlan requires non-empty \`${t}\``);
99
- if (!C.has(a.stage)) throw Error(`${e}: unknown measurement stage \`${String(a.stage)}\``);
100
- let o = a.status;
101
- if (!(/* @__PURE__ */ new Set([
102
- "proposed",
103
- "active",
104
- "retired"
105
- ])).has(o)) throw Error(`${e}: unknown MeasurementPlan status \`${String(a.status)}\``);
106
- return {
107
- id: a.id,
108
- title: a.title,
109
- status: o,
110
- stage: a.stage,
111
- metric: a.metric,
112
- definitionVersion: a.definition_version,
113
- path: d(e) ? p(t, e) : e
114
- };
115
- }
116
- function re(e) {
117
- let t = [], n = [e];
118
- for (; n.length > 0;) {
119
- let e = n.pop();
120
- for (let r of a(e, { withFileTypes: !0 })) {
121
- let i = f(e, r.name);
122
- r.isDirectory() ? n.push(i) : r.isFile() && r.name.endsWith(".md") && t.push(i);
123
- }
124
- }
125
- return t.sort(T);
126
- }
127
- function T(e, t) {
128
- return e === t ? 0 : e < t ? -1 : 1;
129
- }
130
- //#endregion
131
- //#region src/measurement/profiles.ts
132
- function E(e) {
133
- return D(e).map((t) => O(t, e)).filter((e) => e !== null && e.status === "active").sort((e, t) => A(e.id, t.id) || A(e.path, t.path));
134
- }
135
- function D(e) {
136
- return [f(e, "spec", "assurance"), f(e, "assurance")].filter(n).flatMap(k).sort(A);
137
- }
138
- function O(e, t) {
139
- let n = i(e, "utf8"), r = /^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/.exec(n);
140
- if (!r) return null;
141
- let a = h(r[1]);
142
- if (a.type !== "AssuranceProfile") return null;
143
- for (let t of [
144
- "id",
145
- "title",
146
- "status"
147
- ]) if (typeof a[t] != "string" || a[t].length === 0) throw Error(`${e}: AssuranceProfile requires non-empty \`${t}\``);
148
- let o = a.status;
149
- if (!(/* @__PURE__ */ new Set([
150
- "proposed",
151
- "active",
152
- "retired"
153
- ])).has(o)) throw Error(`${e}: unknown AssuranceProfile status \`${o}\``);
154
- return {
155
- id: a.id,
156
- title: a.title,
157
- status: o,
158
- path: p(t, e)
159
- };
160
- }
161
- function k(e) {
162
- let t = [], n = [e];
163
- for (; n.length > 0;) {
164
- let e = n.pop();
165
- for (let r of a(e, { withFileTypes: !0 })) {
166
- let i = f(e, r.name);
167
- r.isDirectory() ? n.push(i) : r.isFile() && r.name.endsWith(".md") && t.push(i);
168
- }
169
- }
170
- return t.sort(A);
171
- }
172
- function A(e, t) {
173
- return e === t ? 0 : e < t ? -1 : 1;
174
- }
175
- //#endregion
176
- //#region src/measurement/types.ts
177
- var j = 2, M = class extends Error {
178
- constructor(e) {
179
- super(e), this.name = "MeasurementValidationError";
180
- }
181
- };
182
- function N(e, t) {
183
- P(e), e.schemaVersion !== 2 && R("new collections must use schemaVersion 2; v1 is read-only historical evidence"), e.verificationStack?.buildProfile !== "release" && R("verificationStack.buildProfile must be release for new collections");
184
- let n = e.verificationStack.toolchains;
185
- (!L(n) || [
186
- "node",
187
- "rust",
188
- "python"
189
- ].some((e) => typeof n[e] != "string" || !n[e])) && R("verificationStack.toolchains must pin node, rust, and python");
190
- let r = new Map(t.map((e) => [e.metric, e]));
191
- for (let t of e.observations) {
192
- let e = r.get(t.metric);
193
- e || R(`metric \`${t.metric}\` has no MeasurementPlan under spec/assurance or assurance; record refused`), e.status !== "active" && R(`metric \`${t.metric}\` plan ${e.id} is ${e.status}, not active`), t.planId !== e.id && R(`metric \`${t.metric}\` names plan ${t.planId}; active plan is ${e.id}`), t.definitionVersion !== e.definitionVersion && R(`metric \`${t.metric}\` definition ${t.definitionVersion} does not match ${e.definitionVersion}`);
194
- }
195
- }
196
- function P(e) {
197
- L(e) || R("collection must be an object"), e.schemaVersion !== 1 && e.schemaVersion !== 2 && R("schemaVersion must be 1 or 2");
198
- for (let t of [
199
- "collectionId",
200
- "subject",
201
- "toolIdentity",
202
- "toolVersion",
203
- "configDigest",
204
- "timestamp",
205
- "sourceRevision"
206
- ]) (typeof e[t] != "string" || e[t].length === 0) && R(`collection requires non-empty \`${t}\``);
207
- (!Array.isArray(e.observations) || e.observations.length === 0) && R("collection requires at least one observation"), L(e.environment) || R("environment must be an object"), "scope" in e || R("collection requires `scope`"), "rawEvidence" in e || R("collection requires attached `rawEvidence`"), e.schemaVersion === 2 && ie(e.verificationStack);
208
- let t = /* @__PURE__ */ new Set();
209
- for (let n of e.observations) {
210
- F(n);
211
- let e = `${n.metric}\0${I(n)}`;
212
- t.has(e) && R(`duplicate observation for \`${n.metric}\` and its dimensions`), t.add(e);
213
- }
214
- }
215
- function ie(e) {
216
- L(e) || R("schemaVersion 2 requires `verificationStack`"), e.schemaVersion !== "verification-stack-attestation-v1" && R("verificationStack has unsupported schemaVersion");
217
- for (let t of ["lockDigest", "executableDigest"]) /^sha256:[0-9a-f]{64}$/.test(String(e[t] ?? "")) || R(`verificationStack.${t} must be a full sha256 digest`);
218
- if (e.buildProfile !== void 0 && e.buildProfile !== "debug" && e.buildProfile !== "release" && R("verificationStack.buildProfile must be debug, release, or absent"), e.toolchains !== void 0) {
219
- L(e.toolchains) || R("verificationStack.toolchains must pin node, rust, and python");
220
- for (let t of [
221
- "node",
222
- "rust",
223
- "python"
224
- ]) (typeof e.toolchains[t] != "string" || !e.toolchains[t]) && R("verificationStack.toolchains must pin node, rust, and python");
225
- }
226
- (!L(e.sources) || Object.keys(e.sources).length === 0) && R("verificationStack.sources must be a non-empty object");
227
- for (let [t, n] of Object.entries(e.sources)) (!L(n) || !/^[0-9a-f]{40}$/.test(String(n.revision ?? "")) || n.sourceState !== "clean" || typeof n.remote != "string" || n.remote.length === 0) && R(`verificationStack.sources.${t} is not a clean full-SHA source`);
228
- (!Array.isArray(e.capabilities) || e.capabilities.length === 0 || e.capabilities.some((e) => typeof e != "string" || !e)) && R("verificationStack.capabilities must be a non-empty string array"), (!L(e.artifacts) || Object.keys(e.artifacts).length === 0) && R("verificationStack.artifacts must be a non-empty object");
229
- for (let [t, n] of Object.entries(e.artifacts)) /^sha256:[0-9a-f]{64}$/.test(String(n)) || R(`verificationStack.artifacts.${t} must be a full sha256 digest`);
230
- }
231
- function F(e) {
232
- L(e) || R("observation must be an object");
233
- for (let t of [
234
- "metric",
235
- "planId",
236
- "definitionVersion",
237
- "unit",
238
- "shape",
239
- "state"
240
- ]) (typeof e[t] != "string" || e[t].length === 0) && R(`observation requires non-empty \`${t}\``);
241
- (/* @__PURE__ */ new Set([
242
- "scalar",
243
- "ratio",
244
- "count"
245
- ])).has(e.shape) || R(`observation \`${String(e.metric)}\` has invalid shape`), (/* @__PURE__ */ new Set(["measured", "not_computed"])).has(e.state) || R(`observation \`${String(e.metric)}\` has invalid state`), e.state === "measured" && typeof e.value != "number" && R(`measured observation \`${String(e.metric)}\` requires a numeric value`), e.state === "not_computed" && e.value !== null && R(`not_computed observation \`${String(e.metric)}\` requires null value`);
246
- }
247
- function I(e) {
248
- return JSON.stringify(Object.entries(e.dimensions ?? {}).sort(([e], [t]) => e === t ? 0 : e < t ? -1 : 1));
249
- }
250
- function L(e) {
251
- return typeof e == "object" && !!e && !Array.isArray(e);
252
- }
253
- function R(e) {
254
- throw new M(e);
255
- }
256
- //#endregion
257
- //#region src/measurement/store.ts
258
- function z(t) {
259
- return f(e(t), "measurements");
260
- }
261
- function B(e, t) {
262
- return f(z(e), `${U(t)}.json`);
263
- }
264
- function V(e, a) {
265
- N(a, w(e));
266
- let s = B(e, a.collectionId), u = t(a);
267
- if (n(s)) {
268
- if (i(s, "utf8") === u) return s;
269
- throw Error(`${s}: collection id already exists with different content`);
270
- }
271
- r(ee(s), { recursive: !0 });
272
- let d = `${s}.tmp-${process.pid}-${g()}`;
273
- try {
274
- l(d, u, {
275
- encoding: "utf8",
276
- flag: "wx"
277
- }), o(d, s);
278
- } finally {
279
- n(d) && c(d);
280
- }
281
- return s;
282
- }
283
- function H(e) {
284
- let t = z(e);
285
- return n(t) ? a(t).filter((e) => e.endsWith(".json")).sort(W).map((e) => {
286
- let n = f(t, e), r;
287
- try {
288
- r = JSON.parse(i(n, "utf8")), P(r);
289
- } catch (e) {
290
- let t = e instanceof Error ? e.message : String(e);
291
- throw Error(`${n}: unreadable measurement collection: ${t}`);
292
- }
293
- return r;
294
- }).sort((e, t) => W(e.timestamp, t.timestamp) || W(e.collectionId, t.collectionId)) : [];
295
- }
296
- function U(e) {
297
- if (!/^[A-Za-z0-9._-]+$/.test(e)) throw Error(`unsafe measurement collection id \`${e}\``);
298
- return e;
299
- }
300
- function W(e, t) {
301
- return e === t ? 0 : e < t ? -1 : 1;
302
- }
303
- //#endregion
304
- //#region src/measurement/report.ts
305
- function G(e) {
306
- return K(e, w(e), H(e));
307
- }
308
- function K(e, t, n) {
309
- let r = t.filter((e) => e.status === "active");
310
- return {
311
- plans: r,
312
- current: r.flatMap((t) => {
313
- let r = [...n].reverse().find((e) => e.observations.some((e) => e.metric === t.metric)), i = r?.observations.filter((e) => e.metric === t.metric) ?? [];
314
- return (i.length > 0 ? i : [null]).map((n) => ({
315
- metric: t.metric,
316
- planId: t.id,
317
- planPath: t.path,
318
- planDefinitionVersion: t.definitionVersion,
319
- stage: t.stage,
320
- observation: n,
321
- collection: r ? {
322
- collectionId: r.collectionId,
323
- timestamp: r.timestamp,
324
- toolIdentity: r.toolIdentity,
325
- toolVersion: r.toolVersion,
326
- configDigest: r.configDigest,
327
- sourceRevision: r.sourceRevision,
328
- corpusRevision: r.corpusRevision,
329
- path: B(e, r.collectionId)
330
- } : null
331
- }));
332
- }),
333
- corpusGaps: ce(n)
334
- };
335
- }
336
- function q(e) {
337
- let t = [
338
- "# QA measurement report",
339
- "",
340
- "## What this repository measures",
341
- ""
342
- ];
343
- if (e.plans.length === 0) t.push("No MeasurementPlan is authored.", "");
344
- else {
345
- t.push("| Metric | Plan | Stage | Current |", "| --- | --- | --- | --- |");
346
- for (let n of e.current) {
347
- let e = Object.entries(n.observation?.dimensions ?? {}).map(([e, t]) => `${e}=${t}`).join(", "), r = e ? `${n.metric} [${e}]` : n.metric, i = n.observation ? n.observation.definitionVersion === n.planDefinitionVersion ? n.observation.state === "measured" ? `${n.observation.value} ${n.observation.unit}` : `not_computed: ${n.observation.reason ?? "producer did not compute it"}` : `incomparable: definition ${n.observation.definitionVersion}; active plan ${n.planDefinitionVersion}` : "not_computed: no record";
348
- t.push(`| ${r} | ${n.planId} (${n.planPath}) | ${n.stage} | ${i} |`);
349
- }
350
- t.push("");
351
- }
352
- t.push("## Current evidence", ""), t.push(e.corpusGaps === null ? "Corpus gaps: not_computed" : `Corpus gaps: ${e.corpusGaps}`, "");
353
- let n = new Map(e.current.filter((e) => e.collection).map((e) => [e.collection?.collectionId, e.collection]));
354
- for (let e of n.values()) e && t.push(`- ${e.timestamp} — ${e.toolIdentity} ${e.toolVersion}; source ${e.sourceRevision}; corpus ${e.corpusRevision ?? "n/a"}; config ${e.configDigest}`);
355
- n.size === 0 && t.push("No measurement collection recorded."), t.push(""), t.push("## Attention", "");
356
- let r = [];
357
- (e.corpusGaps ?? 0) > 0 && r.push(`${e.corpusGaps} mode-language cells are GAP; run the corpus bounds view to see each named cell.`);
358
- for (let t of e.current) {
359
- let e = t.observation;
360
- if (!e) {
361
- r.push(`${t.metric}: no collection has computed this authored plan.`);
362
- continue;
363
- }
364
- let n = Object.entries(e.dimensions ?? {}).map(([e, t]) => `${e}=${t}`).join(", "), i = n ? `${t.metric} [${n}]` : t.metric;
365
- e.state === "not_computed" ? r.push(`${i}: not computed — ${e.reason ?? "no reason supplied"}.`) : e.definitionVersion === t.planDefinitionVersion ? t.metric === "finding_recall" && e.value === 0 ? r.push(`${i}: zero seeded defects detected; add or connect the detector named by the family.`) : t.metric === "finding_precision.unadjudicated" && (e.value ?? 0) > 0 ? r.push(`${i}: ${e.value} firings have no corpus ruling; adjudicate their cases.`) : t.metric === "actionability_rate" && e.population?.examined !== void 0 && r.push(`${i}: ${e.population.matched ?? 0} of ${e.population.examined} findings name a row or line; inspect emitted findings without a locus.`) : r.push(`${i}: stored definition ${e.definitionVersion} does not match active plan ${t.planDefinitionVersion}; do not compare the value.`);
366
- }
367
- return t.push(...r.length > 0 ? r.map((e) => `- ${e}`) : ["No factual attention items."], ""), t.join("\n");
368
- }
369
- function J(e) {
370
- return t(e);
371
- }
372
- function ae(e, t) {
373
- return H(e).flatMap((e) => e.observations.filter((e) => e.metric === t).map((t) => ({
374
- timestamp: e.timestamp,
375
- sourceRevision: e.sourceRevision,
376
- toolVersion: e.toolVersion,
377
- toolIdentity: e.toolIdentity,
378
- configDigest: e.configDigest,
379
- corpusRevision: e.corpusRevision ?? null,
380
- corpusGaps: Z(e),
381
- observation: t
382
- })));
383
- }
384
- function oe(e, t) {
385
- let n = H(e), r = [...n].reverse().find((e) => e.sourceRevision.startsWith(t)), i = n.at(-1);
386
- return i ? r ? {
387
- status: "compared",
388
- reason: null,
389
- before: Y(e, r),
390
- after: Y(e, i),
391
- comparisons: _(r, i)
392
- } : {
393
- status: "not_computed",
394
- reason: `no baseline measurement collection for source revision ${t}`,
395
- before: null,
396
- after: Y(e, i),
397
- comparisons: []
398
- } : {
399
- status: "not_computed",
400
- reason: "no current measurement collection is recorded",
401
- before: null,
402
- after: null,
403
- comparisons: []
404
- };
405
- }
406
- function se(e) {
407
- let t = [
408
- "# QA measurement comparison",
409
- "",
410
- `Status: ${e.status}`,
411
- ""
412
- ];
413
- if (e.before ? t.push(`Before: ${X(e.before)}`) : t.push("Before: not_computed — no baseline"), e.after ? t.push(`After: ${X(e.after)}`) : t.push("After: not_computed — no current record"), t.push(""), e.reason) return t.push(`not_computed: ${e.reason}`, ""), t.join("\n");
414
- t.push("| Metric | Status | Before | After | Delta |", "| --- | --- | ---: | ---: | ---: |");
415
- for (let n of e.comparisons) {
416
- let e = Object.entries(n.dimensions).map(([e, t]) => `${e}=${t}`).join(", "), r = e ? `${n.metric} [${e}]` : n.metric;
417
- t.push(`| ${r} | ${n.status} | ${n.before ?? "n/a"} | ${n.after ?? "n/a"} | ${n.delta ?? "n/a"} |`);
418
- for (let e of n.reasons) t.push(`| ↳ ${e.code} | ${e.blocking ? "blocks delta" : "context"} | | | ${e.message} |`);
419
- }
420
- return t.push(""), t.join("\n");
421
- }
422
- function Y(e, t) {
423
- return {
424
- collectionId: t.collectionId,
425
- timestamp: t.timestamp,
426
- toolIdentity: t.toolIdentity,
427
- toolVersion: t.toolVersion,
428
- configDigest: t.configDigest,
429
- sourceRevision: t.sourceRevision,
430
- corpusRevision: t.corpusRevision ?? null,
431
- corpusGaps: Z(t),
432
- path: B(e, t.collectionId)
433
- };
434
- }
435
- function X(e) {
436
- return `${e.collectionId} — ${e.toolIdentity} ${e.toolVersion}; source ${e.sourceRevision}; corpus ${e.corpusRevision ?? "n/a"}; gaps ${e.corpusGaps ?? "not_computed"}; config ${e.configDigest}; record ${e.path}`;
437
- }
438
- function Z(e) {
439
- let t = e.rawEvidence;
440
- return typeof t?.bounds?.gap_count == "number" ? t.bounds.gap_count : null;
441
- }
442
- function ce(e) {
443
- for (let t of [...e].reverse()) {
444
- let e = Z(t);
445
- if (e !== null) return e;
446
- }
447
- return null;
448
- }
449
- //#endregion
450
- //#region src/measurement/portfolio.ts
451
- var le = 864e5, ue = 30;
452
- function de(e) {
453
- let t = [...new Set(e.map((e) => m(e)))].sort($).map(me);
454
- for (let e of t) {
455
- let t = e.latestCollection;
456
- t && !Number.isFinite(Date.parse(t.timestamp)) && he(e, `${t.path}: collection timestamp is not a valid date`);
457
- }
458
- let n = t.map((e) => e.latestCollection?.timestamp).filter((e) => e !== void 0).sort($).at(-1) ?? null, r = n ? Date.parse(n) : null;
459
- for (let e of t) {
460
- let t = e.latestCollection;
461
- if (!t || r === null) continue;
462
- let i = Date.parse(t.timestamp), a = Math.floor(Math.max(0, r - i) / le);
463
- e.staleness = {
464
- status: a > 30 ? "stale" : "current",
465
- ageDays: a,
466
- relativeTo: n,
467
- thresholdDays: 30
468
- };
469
- }
470
- return {
471
- schemaVersion: 1,
472
- newestCollectionTimestamp: n,
473
- staleAfterDays: 30,
474
- repositories: t
475
- };
476
- }
477
- function fe(e) {
478
- let t = [
479
- "# QA portfolio report",
480
- "",
481
- "No cross-repository metric is summed, averaged, or assigned a quality verdict.",
482
- ""
483
- ];
484
- for (let n of e.repositories) {
485
- if (t.push(`## ${n.name}`, "", `Root: ${n.root}`), n.status !== "readable") {
486
- t.push(`Status: ${n.status} — ${n.error ?? "unknown read error"}`, "");
487
- continue;
488
- }
489
- t.push(`Status: readable; measurement store: ${n.store}`), t.push(`Profiles: ${n.profiles.length ? n.profiles.map((e) => `${e.id} (${e.path})`).join(", ") : "none"}`);
490
- let e = n.latestCollection;
491
- t.push(e ? `Latest: ${e.timestamp} — ${e.id} (${e.path}); ${n.staleness.status}, ${n.staleness.ageDays} days behind portfolio latest` : "Latest: not_computed — no measurement collection"), e && t.push(`Provenance: source ${e.sourceRevision}; corpus ${e.corpusRevision ?? "n/a"}; tool ${e.toolIdentity} ${e.toolVersion}; config ${e.configDigest}`);
492
- let r = n.measurements;
493
- if (t.push(!r || r.corpusGaps === null || !e ? "Corpus gaps: not_computed" : `Corpus gaps: ${r.corpusGaps} (${e.path}; raw evidence, no metric plan)`, "", "| Metric | State/value | Plan | Collection |", "| --- | --- | --- | --- |"), !r || r.current.length === 0) t.push("| not_computed | no active MeasurementPlan | n/a | n/a |");
494
- else for (let e of r.current) {
495
- let n = Object.entries(e.observation?.dimensions ?? {}).map(([e, t]) => `${e}=${t}`).join(", "), r = n ? `${e.metric} [${n}]` : e.metric, i = e.observation ? e.observation.definitionVersion === e.planDefinitionVersion ? e.observation.state === "measured" ? `${e.observation.value} ${e.observation.unit}` : `not_computed: ${e.observation.reason ?? "producer supplied no reason"}` : `incomparable: definition ${e.observation.definitionVersion}; active plan ${e.planDefinitionVersion}` : "not_computed: no collection";
496
- t.push(`| ${r} | ${i} | ${e.planId} (${e.planPath}) | ${e.collection ? `${e.collection.collectionId} (${e.collection.path})` : "n/a"} |`);
497
- }
498
- t.push(""), _e(t, n);
499
- }
500
- return t.join("\n");
501
- }
502
- function pe(e) {
503
- return t(e);
504
- }
505
- function me(e) {
506
- let t = ge(e);
507
- if (!n(e)) return {
508
- ...t,
509
- status: "missing",
510
- error: `${e}: repository does not exist`
511
- };
512
- try {
513
- if (!s(e).isDirectory()) return {
514
- ...t,
515
- status: "unreadable",
516
- store: "unreadable",
517
- error: `${e}: repository location is not a directory`
518
- };
519
- let r = E(e), i = w(e).filter((e) => e.status === "active"), a = H(e), o = a.at(-1) ?? null, c = a.at(-2) ?? null;
520
- return {
521
- ...t,
522
- store: n(z(e)) ? a.length === 0 ? "empty" : "present" : "missing",
523
- profiles: r,
524
- plans: i,
525
- measurements: K(e, i, a),
526
- latestCollection: o ? Q(e, o) : null,
527
- comparison: c && o ? {
528
- before: Q(e, c),
529
- after: Q(e, o),
530
- observations: _(c, o)
531
- } : null
532
- };
533
- } catch (e) {
534
- let n = e instanceof Error ? e.message : String(e);
535
- return {
536
- ...t,
537
- status: "unreadable",
538
- store: "unreadable",
539
- error: n
540
- };
541
- }
542
- }
543
- function he(e, t) {
544
- e.status = "unreadable", e.store = "unreadable", e.error = t, e.measurements = null, e.comparison = null, e.latestCollection = null;
545
- }
546
- function ge(e) {
547
- return {
548
- name: u(e) || e,
549
- root: e,
550
- status: "readable",
551
- error: null,
552
- store: "missing",
553
- profiles: [],
554
- plans: [],
555
- measurements: null,
556
- latestCollection: null,
557
- comparison: null,
558
- staleness: {
559
- status: "not_computed",
560
- ageDays: null,
561
- relativeTo: null,
562
- thresholdDays: 30
563
- }
564
- };
565
- }
566
- function Q(e, t) {
567
- return {
568
- id: t.collectionId,
569
- path: B(e, t.collectionId),
570
- timestamp: t.timestamp,
571
- sourceRevision: t.sourceRevision,
572
- toolIdentity: t.toolIdentity,
573
- toolVersion: t.toolVersion,
574
- configDigest: t.configDigest,
575
- ...t.corpusRevision ? { corpusRevision: t.corpusRevision } : {}
576
- };
577
- }
578
- function _e(e, t) {
579
- let n = t.comparison;
580
- if (!n) {
581
- e.push("Comparison: not_computed — fewer than two collections", "");
582
- return;
583
- }
584
- e.push(`Comparison: ${n.before.id} (${n.before.path}) → ${n.after.id} (${n.after.path})`, "", "| Metric | Status | Before | After | Reasons | Plan |", "| --- | --- | ---: | ---: | --- | --- |");
585
- for (let r of n.observations) {
586
- let n = t.plans.find((e) => e.metric === r.metric), i = Object.entries(r.dimensions).map(([e, t]) => `${e}=${t}`).join(", "), a = i ? `${r.metric} [${i}]` : r.metric;
587
- e.push(`| ${a} | ${r.status} | ${r.before ?? "n/a"} | ${r.after ?? "n/a"} | ${r.reasons.map((e) => `${e.code}: ${e.message}`).join("; ") || "none"} | ${n ? `${n.id} (${n.path})` : "not_computed: no active plan"} |`);
588
- }
589
- e.push("");
590
- }
591
- function $(e, t) {
592
- return e === t ? 0 : e < t ? -1 : 1;
593
- }
594
- //#endregion
595
- export { _ as S, N as _, G as a, E as b, se as c, ae as d, B as f, M as g, V as h, pe as i, q as l, H as m, de as n, K as o, z as p, fe as r, oe as s, ue as t, J as u, P as v, w as x, j as y };
@@ -1,23 +0,0 @@
1
- import { a as e } from "./base-CqKNs2Kd.js";
2
- import { t } from "./plugins-C-ta0llj.js";
3
- import { fileURLToPath as n } from "node:url";
4
- import { readFileSync as r } from "node:fs";
5
- import { dirname as i, join as a } from "node:path";
6
- import { parse as o } from "yaml";
7
- import { reconcile as s, validateMarketplaceManifest as c } from "@agent-ix/ts-plugin-kit";
8
- //#region src/modules.ts
9
- function l() {
10
- return i(i(n(import.meta.url)));
11
- }
12
- function u() {
13
- let e = a(l(), "default-modules.yaml");
14
- return c(o(r(e, "utf8")));
15
- }
16
- function d(n = e(), r = u()) {
17
- s(r, {
18
- ...t(n),
19
- mode: "lazy"
20
- });
21
- }
22
- //#endregion
23
- export { d as n, u as t };
package/dist/modules.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { MarketplaceManifest } from '@agent-ix/ts-plugin-kit';
2
- /** The committed default module set shipped with quoin. */
3
- export declare function defaultModulesManifest(): MarketplaceManifest;
4
- /**
5
- * Lazily install the default module set into `~/.ix/filament/modules`. Idempotent
6
- * and (once installed and pinned) does no git — safe to call before every catalog
7
- * read. Pass a manifest to override the committed default set (used by tests).
8
- */
9
- export declare function ensureDefaultModules(home?: string, manifest?: MarketplaceManifest): void;
10
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,yBAAyB,CAAC;AASjC,2DAA2D;AAC3D,wBAAgB,sBAAsB,IAAI,mBAAmB,CAG5D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,SAAW,EACf,QAAQ,GAAE,mBAA8C,GACvD,IAAI,CAEN"}