@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,533 +0,0 @@
1
- import { _ as e, f as t, p as n, r, u as i, x as a, y as o } from "./store--2sAv12X.js";
2
- import { readFileSync as s, readdirSync as c } from "node:fs";
3
- import { extname as l, join as u, relative as d } from "node:path";
4
- //#region src/evidence/record.ts
5
- function f(n) {
6
- let i = o(n.repo, {
7
- schemaVersion: 1,
8
- suite: n.suite,
9
- commit: n.commit,
10
- tool: n.tool,
11
- evidenceKind: n.evidenceKind,
12
- timestamp: n.timestamp,
13
- entries: n.entries
14
- }), a = new Map(n.obligations.map((e) => [e.id, e])), s = /* @__PURE__ */ new Map();
15
- for (let e of n.obligations) for (let t of e.target_ids ?? []) a.has(t) || s.set(t, [...s.get(t) ?? [], e]);
16
- let c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set();
17
- for (let e of n.entries) for (let t of e.traceIds ?? []) {
18
- let n = a.has(t) ? [a.get(t)] : s.get(t) ?? [];
19
- if (n.length === 0) {
20
- l.add(t);
21
- continue;
22
- }
23
- if (e.outcome === "pass") for (let t of n) {
24
- let n = c.get(t.id) ?? [];
25
- n.push(e.symbol), c.set(t.id, n);
26
- }
27
- }
28
- let u = t(n.repo).bindings, d = [], f = [];
29
- for (let [e, t] of [...c].sort(([e], [t]) => e === t ? 0 : e < t ? -1 : 1)) {
30
- let i = a.get(e);
31
- if (!i) continue;
32
- let o = r(u, {
33
- obligation: e,
34
- statementHashAtBinding: i.statement_hash,
35
- suite: n.suite,
36
- commit: n.commit,
37
- symbols: [...t].sort()
38
- });
39
- u = o.bindings, o.created && d.push(e), o.suspect && f.push(e);
40
- }
41
- return e(n.repo, { bindings: u }), {
42
- runPath: i,
43
- bound: d.sort(),
44
- suspect: f.sort(),
45
- unmatched: [...l].sort()
46
- };
47
- }
48
- function p(e) {
49
- return e.obligations ?? [];
50
- }
51
- //#endregion
52
- //#region src/evidence/adapters/types.ts
53
- var m = class extends Error {
54
- adapter;
55
- constructor(e, t) {
56
- super(`${e}: ${t}`), this.adapter = e, this.name = "AdapterError";
57
- }
58
- };
59
- //#endregion
60
- //#region src/evidence/adapters/cargo-mutants.ts
61
- function h(e) {
62
- let t = e.file?.trim(), n = e.function?.function_name?.trim();
63
- if (t !== void 0 && t !== "" && n !== void 0 && n !== "") return `${t}::${n}`;
64
- }
65
- var g = {
66
- name: "cargo-mutants",
67
- summary: "cargo-mutants outcomes.json — mutation score per mutated function.",
68
- tools: ["cargo-mutants", "cargo mutants"],
69
- parse(e) {
70
- let t;
71
- try {
72
- t = JSON.parse(e);
73
- } catch (e) {
74
- throw new m("cargo-mutants", `input is not JSON: ${e.message}`);
75
- }
76
- if (!Array.isArray(t.outcomes)) throw new m("cargo-mutants", "no `outcomes` array — expected the contents of mutants.out/outcomes.json");
77
- let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
78
- for (let e of t.outcomes) {
79
- if (e.scenario === "Baseline" || typeof e.scenario != "object") continue;
80
- let t = e.scenario.Mutant;
81
- if (t === void 0) continue;
82
- let i = h(t);
83
- i !== void 0 && (e.summary === "CaughtMutant" ? n.set(i, (n.get(i) ?? 0) + 1) : (e.summary === "MissedMutant" || e.summary === "Timeout") && r.set(i, (r.get(i) ?? 0) + 1));
84
- }
85
- let i = [.../* @__PURE__ */ new Set([...n.keys(), ...r.keys()])].sort();
86
- if (i.length === 0) throw new m("cargo-mutants", "no viable mutants in the report — nothing was measured");
87
- return { entries: i.map((e) => {
88
- let t = n.get(e) ?? 0, i = r.get(e) ?? 0, o = t + i;
89
- return {
90
- symbol: e,
91
- outcome: i === 0 ? "pass" : "fail",
92
- score: t / o,
93
- metric: a
94
- };
95
- }) };
96
- }
97
- }, _ = /<testcase\b([^>]*?)(\/>|>([\s\S]*?)<\/testcase\s*>)/g, v = /([\w:.-]+)\s*=\s*"([^"]*)"/g;
98
- function y(e) {
99
- let t = /* @__PURE__ */ new Map();
100
- for (let n of e.matchAll(v)) t.set(n[1], ee(n[2]));
101
- return t;
102
- }
103
- function ee(e) {
104
- return e.replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&quot;", "\"").replaceAll("&apos;", "'").replaceAll("&amp;", "&");
105
- }
106
- function b(e, t) {
107
- let n = e.trim(), r = t.trim();
108
- return n === "" ? r : r === "" ? n : n === r ? r : n.endsWith(`::${r}`) || n.endsWith(`.${r}`) ? n.replaceAll(".", "::") : `${n.replaceAll(".", "::")}::${r}`;
109
- }
110
- var x = /<property\b([^>]*)\/?>/g;
111
- function S(e) {
112
- let t = [];
113
- for (let n of e.matchAll(x)) {
114
- let e = y(n[1]), r = e.get("name"), i = e.get("value");
115
- if (r !== void 0 && i !== void 0 && (r === "trace" || r === "traceIds" || r === "trace_ids")) for (let e of i.split(/[,\s]+/)) e !== "" && t.push(e);
116
- }
117
- return t.length > 0 ? t : void 0;
118
- }
119
- function C(e) {
120
- return /<error\b/.test(e) ? "error" : /<failure\b/.test(e) ? "fail" : /<skipped\b/.test(e) ? "skip" : "pass";
121
- }
122
- var w = {
123
- name: "junit",
124
- summary: "JUnit XML (<testsuite>/<testcase>), as emitted by most runners.",
125
- tools: [
126
- "junit",
127
- "pytest",
128
- "jest",
129
- "vitest",
130
- "gotestsum",
131
- "surefire"
132
- ],
133
- parse(e) {
134
- let t = [];
135
- for (let n of e.matchAll(_)) {
136
- let e = y(n[1]), r = n[3] ?? "", i = b(e.get("classname") ?? "", e.get("name") ?? "");
137
- if (i === "") continue;
138
- let a = S(r);
139
- t.push({
140
- symbol: i,
141
- outcome: C(r),
142
- ...a === void 0 ? {} : { traceIds: a }
143
- });
144
- }
145
- if (t.length === 0) throw new m("junit", "no <testcase> elements found — is this JUnit XML?");
146
- return { entries: t };
147
- }
148
- }, T = /^([A-Za-z0-9._-]+):\s*(OK|FAIL)\b\s*(?:[—-]\s*)?(.*)$/, E = /\(([^)]*)\)[.\s]*$/, D = /\b((?:FR|NFR|StR|US)-\d+-AC-\d+|TC-\d+)\b/g;
149
- function O(e) {
150
- let t = E.exec(e);
151
- if (!t) return;
152
- let n = [...t[1].matchAll(D)].map((e) => e[1]);
153
- return n.length > 0 ? n : void 0;
154
- }
155
- function k(e) {
156
- let t = [], n = 0;
157
- for (let r of e.split("\n")) {
158
- let e = T.exec(r.trim());
159
- if (!e) continue;
160
- let [, i, a, o] = e;
161
- if (n += 1, a === "OK") continue;
162
- let s = o.trim(), c = O(s);
163
- t.push({
164
- ruleId: i,
165
- severity: "violation",
166
- ...s === "" ? {} : { message: s },
167
- ...c === void 0 ? {} : { traceIds: c }
168
- });
169
- }
170
- if (n === 0) throw new m("audit-script", "no `<name>: OK` or `<name>: FAIL` line found — is this audit-script output?");
171
- return {
172
- findings: t,
173
- tool: "audit-script",
174
- rulesEvaluated: n
175
- };
176
- }
177
- //#endregion
178
- //#region src/evidence/adapters/agent-eval.ts
179
- function A(e) {
180
- let t;
181
- try {
182
- t = JSON.parse(e);
183
- } catch (e) {
184
- throw new m("agent-eval", `not JSON: ${e instanceof Error ? e.message : String(e)}`);
185
- }
186
- let n = t;
187
- if (!n || typeof n != "object" || !Array.isArray(n.results)) throw new m("agent-eval", "expected a cli-agent-evals report with a \"results\" array");
188
- let r = [];
189
- for (let e of n.results) {
190
- let t = typeof e.id == "string" ? e.id : null;
191
- t && r.push({
192
- symbol: t,
193
- outcome: e.ok === !0 ? "pass" : "fail",
194
- traceIds: [t],
195
- ...j(e)
196
- });
197
- }
198
- if (r.length === 0) throw new m("agent-eval", "no scenario results in the report — did the suite run?");
199
- return { entries: r };
200
- }
201
- function j(e) {
202
- let t = e.passRate;
203
- if (typeof t != "string") return {};
204
- let [n, r] = t.split("/").map(Number);
205
- return !Number.isFinite(n) || !Number.isFinite(r) || r === 0 ? {} : { score: n / r };
206
- }
207
- var M = {
208
- name: "agent-eval",
209
- summary: "cli-agent-evals report JSON — one entry per scenario, keyed on the scenario id.",
210
- tools: [
211
- "cli-agent-evals",
212
- "agent-evals",
213
- "agent-pty"
214
- ],
215
- parse: A
216
- };
217
- //#endregion
218
- //#region src/evidence/adapters/sbom.ts
219
- function N(e) {
220
- let t;
221
- try {
222
- t = JSON.parse(e);
223
- } catch (e) {
224
- throw new m("sbom", `not JSON: ${e instanceof Error ? e.message : String(e)}. CycloneDX and SPDX both have JSON serialisations; the tag-value SPDX form is not read here.`);
225
- }
226
- if (!t || typeof t != "object") throw new m("sbom", "expected a JSON object");
227
- let n = t;
228
- return { entries: P(n) ?? F(n) ?? te(n) };
229
- }
230
- function P(e) {
231
- return String(e.bomFormat ?? "") === "CycloneDX" ? (Array.isArray(e.components) ? e.components : []).map((e) => {
232
- let t = e, n = typeof t.purl == "string" ? t.purl : null, r = typeof t.name == "string" ? t.name : null;
233
- if (!n && !r) return null;
234
- let i = typeof t.version == "string" ? t.version : null;
235
- return {
236
- symbol: n ?? (i ? `${r}@${i}` : r),
237
- outcome: "pass"
238
- };
239
- }).filter((e) => e !== null) : null;
240
- }
241
- function F(e) {
242
- return typeof e.spdxVersion == "string" ? (Array.isArray(e.packages) ? e.packages : []).map((e) => {
243
- let t = e, n = (Array.isArray(t.externalRefs) ? t.externalRefs : []).map((e) => e).find((e) => String(e.referenceType ?? "") === "purl"), r = n && typeof n.referenceLocator == "string" ? n.referenceLocator : null, i = typeof t.name == "string" ? t.name : null;
244
- if (!r && !i) return null;
245
- let a = typeof t.versionInfo == "string" ? t.versionInfo : null;
246
- return {
247
- symbol: r ?? (a ? `${i}@${a}` : i),
248
- outcome: "pass"
249
- };
250
- }).filter((e) => e !== null) : null;
251
- }
252
- function te(e) {
253
- throw new m("sbom", `neither a CycloneDX (\`bomFormat\`) nor an SPDX (\`spdxVersion\`) document — top-level keys: ${Object.keys(e).slice(0, 6).join(", ") || "(none)"}`);
254
- }
255
- var I = {
256
- name: "sbom",
257
- summary: "CycloneDX or SPDX JSON — one entry per component, so an empty inventory reads as vacuous.",
258
- tools: [
259
- "cyclonedx",
260
- "spdx",
261
- "syft",
262
- "cdxgen",
263
- "cargo-cyclonedx"
264
- ],
265
- parse: N
266
- };
267
- //#endregion
268
- //#region src/evidence/adapters/sarif.ts
269
- function L(e) {
270
- let t;
271
- try {
272
- t = JSON.parse(e);
273
- } catch (e) {
274
- throw new m("sarif", `input is not JSON: ${e.message}`);
275
- }
276
- if (!Array.isArray(t.runs)) throw new m("sarif", "no `runs` array — expected a SARIF 2.1.0 log");
277
- if (t.runs.length === 0) throw new m("sarif", "`runs` is empty — a log with no run proves no scan executed");
278
- let n = [], r = [], i;
279
- for (let e of t.runs) {
280
- let t = e.tool?.driver;
281
- t?.name !== void 0 && t.name !== "" && r.push(t.version === void 0 ? t.name : `${t.name} ${t.version}`), Array.isArray(t?.rules) && (i = (i ?? 0) + t.rules.length);
282
- for (let t of e.results ?? []) {
283
- let e = t.ruleId ?? t.rule?.id;
284
- if (e === void 0 || e === "") continue;
285
- let r = t.locations?.[0]?.physicalLocation;
286
- n.push({
287
- ruleId: e,
288
- ...t.level === void 0 ? {} : { severity: t.level },
289
- ...t.message?.text === void 0 ? {} : { message: t.message.text },
290
- ...r?.artifactLocation?.uri === void 0 ? {} : { path: r.artifactLocation.uri },
291
- ...r?.region?.startLine === void 0 ? {} : { line: r.region.startLine }
292
- });
293
- }
294
- }
295
- return {
296
- findings: n,
297
- ...r.length === 0 ? {} : { tool: r.join(", ") },
298
- ...i === void 0 ? {} : { rulesEvaluated: i }
299
- };
300
- }
301
- function R(e) {
302
- let t;
303
- try {
304
- t = JSON.parse(e);
305
- } catch (e) {
306
- throw new m("cargo-audit", `input is not JSON: ${e.message}`);
307
- }
308
- if (t.vulnerabilities === void 0) throw new m("cargo-audit", "no `vulnerabilities` object — expected `cargo audit --json` output");
309
- let n = [], r = (e, t) => {
310
- let r = e.advisory?.id;
311
- if (r === void 0 || r === "") return;
312
- let i = e.package;
313
- n.push({
314
- ruleId: r,
315
- severity: t,
316
- ...e.advisory?.title === void 0 ? {} : { message: e.advisory.title },
317
- ...i?.name === void 0 ? {} : { path: i.version === void 0 ? i.name : `${i.name}@${i.version}` }
318
- });
319
- };
320
- for (let e of t.vulnerabilities.list ?? []) r(e, "vulnerability");
321
- for (let [e, n] of Object.entries(t.warnings ?? {})) for (let t of n) r(t, e);
322
- let i = t.database?.["advisory-count"];
323
- return {
324
- findings: n,
325
- tool: "cargo-audit",
326
- ...i === void 0 ? {} : { rulesEvaluated: i }
327
- };
328
- }
329
- //#endregion
330
- //#region src/evidence/adapters/registry.ts
331
- var z = {
332
- name: "entries",
333
- summary: "Normalized {\"entries\": [{symbol, outcome, traceIds?}]} — the default.",
334
- tools: [],
335
- parse(e) {
336
- let t;
337
- try {
338
- t = JSON.parse(e);
339
- } catch (e) {
340
- throw new m("entries", `input is not JSON: ${e.message}`);
341
- }
342
- if (!Array.isArray(t.entries)) throw new m("entries", "expected JSON of the form {\"entries\": [{symbol, outcome, traceIds?}]}");
343
- return { entries: t.entries };
344
- }
345
- }, B = [
346
- z,
347
- w,
348
- g,
349
- I,
350
- M
351
- ], V = [
352
- {
353
- name: "sarif",
354
- summary: "SARIF 2.1.0 — semgrep --sarif, CodeQL, ESLint, ZAP via converter.",
355
- tools: [
356
- "sarif",
357
- "semgrep",
358
- "codeql"
359
- ],
360
- parse: L
361
- },
362
- {
363
- name: "audit-script",
364
- summary: "Architecture-conformance audit scripts: '<name>: OK' / '<name>: FAIL — … (AC-ID)'.",
365
- tools: [
366
- "audit-script",
367
- "make ci",
368
- "audit-static",
369
- "import-linter",
370
- "dependency-cruiser"
371
- ],
372
- parse: k
373
- },
374
- {
375
- name: "cargo-audit",
376
- summary: "cargo audit --json — RUSTSEC advisories and warning kinds.",
377
- tools: [
378
- "cargo-audit",
379
- "cargo audit",
380
- "cargo-deny",
381
- "cargo deny"
382
- ],
383
- parse: R
384
- }
385
- ], H = [...B.map((e) => e.name), ...V.map((e) => e.name)];
386
- function U(e) {
387
- if (e.adapter !== void 0 && e.adapter !== "") return V.find((t) => t.name === e.adapter);
388
- let t = (e.tool ?? "").toLowerCase();
389
- if (t !== "") return V.find((e) => e.tools.some((e) => t.includes(e)));
390
- }
391
- function W(e) {
392
- if (e.adapter !== void 0 && e.adapter !== "") {
393
- let t = B.find((t) => t.name === e.adapter);
394
- if (t === void 0) throw new m("adapter", `unknown adapter '${e.adapter}'. Available: ${H.join(", ")}`);
395
- return t;
396
- }
397
- let t = (e.tool ?? "").toLowerCase();
398
- if (t !== "") {
399
- let e = B.find((e) => e.tools.some((e) => t.includes(e)));
400
- if (e !== void 0) return e;
401
- }
402
- return z;
403
- }
404
- //#endregion
405
- //#region src/evidence/mock-inspection.ts
406
- var G = /* @__PURE__ */ new Set([
407
- ".rs",
408
- ".py",
409
- ".ts",
410
- ".tsx",
411
- ".js",
412
- ".jsx"
413
- ]), K = /* @__PURE__ */ new Set([
414
- ".git",
415
- "dist",
416
- "node_modules",
417
- "spec",
418
- "target",
419
- "vendor"
420
- ]);
421
- function q(e, t) {
422
- if (!t) return {
423
- injections: [],
424
- suites: []
425
- };
426
- let r = i(e).map((r) => n(e, r, t)).filter((e) => e !== null && e.commit === t);
427
- return {
428
- suites: r.map((e) => e.suite).sort($),
429
- injections: r.flatMap((e) => e.injections).sort((e, t) => $(e.suite, t.suite) || $(e.path ?? "", t.path ?? "") || (e.line ?? 0) - (t.line ?? 0))
430
- };
431
- }
432
- function J(e, t) {
433
- let n = [];
434
- for (let r of Y(e)) {
435
- let i = s(r, "utf8"), a = X(i, l(r));
436
- if (a.length !== 0) for (let o of i.matchAll(/\b([A-Z][A-Za-z0-9_]*(?:(?:::|\.)[A-Za-z_][A-Za-z0-9_]*)+)\s*\(/g)) {
437
- let s = o[1];
438
- if (!re(s)) continue;
439
- let c = Z(a, o.index ?? -1);
440
- c && n.push({
441
- suite: t,
442
- symbol: c.symbol,
443
- injects: [s],
444
- path: d(e, r),
445
- line: i.slice(0, o.index).split("\n").length
446
- });
447
- }
448
- }
449
- let r = /* @__PURE__ */ new Map();
450
- for (let e of n) {
451
- let t = `${e.path ?? ""}:${e.line ?? 0}:${e.symbol}`, n = r.get(t);
452
- n ? n.injects = [.../* @__PURE__ */ new Set([...n.injects, ...e.injects])].sort() : r.set(t, {
453
- ...e,
454
- injects: [...e.injects].sort()
455
- });
456
- }
457
- return [...r.values()].sort((e, t) => $(e.path ?? "", t.path ?? "") || (e.line ?? 0) - (t.line ?? 0) || $(e.symbol, t.symbol));
458
- }
459
- function Y(e) {
460
- let t = [], n = (e) => {
461
- for (let r of c(e, { withFileTypes: !0 })) {
462
- if (r.isDirectory() && K.has(r.name)) continue;
463
- let i = u(e, r.name);
464
- r.isDirectory() ? n(i) : r.isFile() && G.has(l(i)) && t.push(i);
465
- }
466
- };
467
- return n(e), t.sort($);
468
- }
469
- function X(e, t) {
470
- let n = [], r = t === ".rs" ? [/#\s*\[\s*test\s*\][\s\S]{0,240}?\bfn\s+([A-Za-z_][A-Za-z0-9_]*)\s*\(/g] : t === ".py" ? [/(?:^|\n)\s*(?:async\s+)?def\s+(test_[A-Za-z0-9_]*)\s*\(/g] : [/\b(?:test|it)\s*\(\s*["'`]([^"'`]+)["'`]/g, /\b(?:async\s+)?function\s+(test[A-Za-z0-9_]*)\s*\(/g];
471
- for (let i of r) for (let r of e.matchAll(i)) {
472
- let i = r.index ?? 0, a = t === ".py" ? i + r[0].lastIndexOf(r[1]) : i, o = t === ".py" ? Q(e, a) : ne(e, a + r[0].length);
473
- n.push({
474
- at: a,
475
- end: o,
476
- symbol: r[1]
477
- });
478
- }
479
- return n.sort((e, t) => e.at - t.at);
480
- }
481
- function Z(e, t) {
482
- let n = null;
483
- for (let r of e) {
484
- if (r.at > t) break;
485
- t <= r.end && (n = r);
486
- }
487
- return n;
488
- }
489
- function Q(e, t) {
490
- let n = e.lastIndexOf("\n", t) + 1, r = /^\s*/.exec(e.slice(n))?.[0].length ?? 0, i = e.indexOf("\n", t);
491
- if (i < 0) return e.length;
492
- for (i += 1; i < e.length;) {
493
- let t = e.indexOf("\n", i), n = t < 0 ? e.length : t, a = e.slice(i, n);
494
- if (a.trim() && !a.trimStart().startsWith("#") && (/^\s*/.exec(a)?.[0].length ?? 0) <= r) return i - 1;
495
- i = n + 1;
496
- }
497
- return e.length;
498
- }
499
- function ne(e, t) {
500
- let n = e.indexOf("{", t);
501
- if (n < 0 || n - t > 500) return t;
502
- let r = 0, i = null, a = !1, o = !1, s = !1;
503
- for (let t = n; t < e.length; t += 1) {
504
- let n = e[t], c = e[t + 1] ?? "";
505
- if (o) {
506
- n === "\n" && (o = !1);
507
- continue;
508
- }
509
- if (s) {
510
- n === "*" && c === "/" && (s = !1, t += 1);
511
- continue;
512
- }
513
- if (i) {
514
- a ? a = !1 : n === "\\" ? a = !0 : n === i && (i = null);
515
- continue;
516
- }
517
- if (n === "/" && c === "/") o = !0, t += 1;
518
- else if (n === "/" && c === "*") s = !0, t += 1;
519
- else if (n === "\"" || n === "'" || n === "`") i = n;
520
- else if (n === "{") r += 1;
521
- else if (n === "}" && --r === 0) return t;
522
- }
523
- return e.length;
524
- }
525
- function re(e) {
526
- let t = e.split(/::|\./), n = t[0], r = t.at(-1) ?? "";
527
- return /^(?:mock|fake|stub|spy)/i.test(n) || /^(?:allow|approve|approved|bypass|fake|mock|stub|succeed|success)$/i.test(r);
528
- }
529
- function $(e, t) {
530
- return e === t ? 0 : e < t ? -1 : 1;
531
- }
532
- //#endregion
533
- export { U as a, W as i, q as n, p as o, H as r, f as s, J as t };
@@ -1,88 +0,0 @@
1
- import { a as e, t } from "./base-CqKNs2Kd.js";
2
- import { fileURLToPath as n } from "node:url";
3
- import { existsSync as r } from "node:fs";
4
- import { dirname as i, join as a, resolve as o } from "node:path";
5
- import { homedir as s } from "node:os";
6
- import { Flags as c } from "@oclif/core";
7
- import { spawn as l } from "node:child_process";
8
- //#region src/flows.ts
9
- var u = {
10
- review: {
11
- packageSkill: "spec-review",
12
- runtimeSkill: "review"
13
- },
14
- matrix: {
15
- packageSkill: "spec-matrix",
16
- runtimeSkill: "matrix"
17
- },
18
- "to-plan": {
19
- packageSkill: "spec-to-plan",
20
- runtimeSkill: "to-plan"
21
- }
22
- };
23
- async function d(t, n = {}) {
24
- let r = f(t), i = e(), o = [
25
- "run",
26
- t,
27
- "--path",
28
- r,
29
- "--config-root",
30
- i,
31
- "--state-dir",
32
- a(i, "flows")
33
- ];
34
- n.id && o.push("--id", n.id), n.json && o.push("--json");
35
- for (let e of n.target ?? []) o.push("--target", e);
36
- await m(o);
37
- }
38
- function f(e) {
39
- let t = u[e];
40
- if (!t) throw Error(`unknown spec flow ${e}`);
41
- let n = [
42
- process.env.IX_SPEC_WORKFLOWS_ROOT,
43
- p(),
44
- a(i(o(process.cwd())), "ix-spec-workflows"),
45
- a(s(), ".ix", "plugins", "ix-spec-workflows")
46
- ].filter((e) => !!e);
47
- for (let e of n) {
48
- let n = a(e, t.packageSkill, "workflow-assets", "skills", t.runtimeSkill);
49
- if (r(n)) return n;
50
- }
51
- throw Error(`could not find ix-spec workflow skill ${t.runtimeSkill}; set IX_SPEC_WORKFLOWS_ROOT`);
52
- }
53
- function p() {
54
- return a(i(i(n(import.meta.url))), "skills");
55
- }
56
- async function m(e) {
57
- await new Promise((t, n) => {
58
- let r = l("ix-flow", e, { stdio: "inherit" });
59
- r.on("error", n), r.on("close", (e) => {
60
- if (e === 0) {
61
- t();
62
- return;
63
- }
64
- process.exitCode = e ?? 1, t();
65
- });
66
- });
67
- }
68
- //#endregion
69
- //#region src/flow-command.ts
70
- var h = class extends t {
71
- static flowFlags = {
72
- target: c.string({
73
- description: "Spec target ref to feed the workflow (repeatable).",
74
- multiple: !0
75
- }),
76
- json: c.boolean({ description: "Forward --json to ix-flow." }),
77
- id: c.string({ description: "Explicit workflow run id." })
78
- };
79
- async launch(e) {
80
- await d(this.flowName, {
81
- json: e.json === !0,
82
- ...e.id ? { id: e.id } : {},
83
- ...e.target ? { target: e.target } : {}
84
- });
85
- }
86
- };
87
- //#endregion
88
- export { h as t };
@@ -1,25 +0,0 @@
1
- import { QuoinCommand } from './base.js';
2
- /**
3
- * Base for the bundled spec-workflow launchers (`review`, `matrix`, `to-plan`).
4
- *
5
- * quoin creates the workflow run in ~/.ix/flows by spawning `ix-flow` (see
6
- * {@link startSpecFlow}); ix-flow then inspects, resumes, advances phases, and
7
- * acknowledges human gates. The subprocess delegation is unchanged from the
8
- * legacy dispatcher — the launcher only translates flags into the ix-flow argv.
9
- */
10
- export declare abstract class FlowCommand extends QuoinCommand {
11
- /** Flags shared by every flow launcher; concrete commands reuse this set. */
12
- static flowFlags: {
13
- target: import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
14
- json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
15
- id: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
16
- };
17
- /** ix-flow workflow name; equals the command id (review/matrix/to-plan). */
18
- protected abstract readonly flowName: string;
19
- protected launch(flags: {
20
- target?: string[];
21
- json?: boolean;
22
- id?: string;
23
- }): Promise<void>;
24
- }
25
- //# sourceMappingURL=flow-command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flow-command.d.ts","sourceRoot":"","sources":["../src/flow-command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC;;;;;;;GAOG;AACH,8BAAsB,WAAY,SAAQ,YAAY;IACpD,6EAA6E;IAC7E,MAAM,CAAC,SAAS;;;;MAOd;IAEF,4EAA4E;IAC5E,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;cAE7B,MAAM,CAAC,KAAK,EAAE;QAC5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,GAAG,OAAO,CAAC,IAAI,CAAC;CAOlB"}
package/dist/flows.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export declare function specFlowNames(): string[];
2
- export declare function startSpecFlow(flow: string, opts?: {
3
- json?: boolean;
4
- id?: string;
5
- target?: string[];
6
- }): Promise<void>;
7
- //# sourceMappingURL=flows.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../src/flows.ts"],"names":[],"mappings":"AAiBA,wBAAgB,aAAa,IAAI,MAAM,EAAE,CAExC;AAED,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,GAC5D,OAAO,CAAC,IAAI,CAAC,CAiBf"}
@@ -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 };