@agent-ix/quoin 0.21.9 → 0.23.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 (244) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/default-modules.yaml +18 -2
  4. package/dist/{advisor-BiKhR9Yp.js → advisor-B0rESCx1.js} +1 -1
  5. package/dist/auditor/audit.d.ts +23 -18
  6. package/dist/auditor/audit.d.ts.map +1 -1
  7. package/dist/auditor/index.d.ts +2 -1
  8. package/dist/auditor/index.d.ts.map +1 -1
  9. package/dist/{auditor-ww0MC62a.js → auditor-Dd3i9Aqx.js} +82 -65
  10. package/dist/{base-W7vrLi5E.js → base-gAClyCNd.js} +1 -1
  11. package/dist/change-assurance/attestations.d.ts +7 -0
  12. package/dist/change-assurance/attestations.d.ts.map +1 -0
  13. package/dist/change-assurance/index.d.ts +14 -0
  14. package/dist/change-assurance/index.d.ts.map +1 -0
  15. package/dist/change-assurance/integrity.d.ts +11 -0
  16. package/dist/change-assurance/integrity.d.ts.map +1 -0
  17. package/dist/change-assurance/records.d.ts +22 -0
  18. package/dist/change-assurance/records.d.ts.map +1 -0
  19. package/dist/change-assurance/schema-assets.d.ts +8 -0
  20. package/dist/change-assurance/schema-assets.d.ts.map +1 -0
  21. package/dist/change-assurance/store.d.ts +18 -0
  22. package/dist/change-assurance/store.d.ts.map +1 -0
  23. package/dist/change-assurance/types.d.ts +180 -0
  24. package/dist/change-assurance/types.d.ts.map +1 -0
  25. package/dist/change-assurance/verify.d.ts +4 -0
  26. package/dist/change-assurance/verify.d.ts.map +1 -0
  27. package/dist/change-assurance-CyKLPeKa.js +1236 -0
  28. package/dist/cli.js +1 -1
  29. package/dist/commands/advise.js +27 -26
  30. package/dist/commands/assurance.d.ts.map +1 -1
  31. package/dist/commands/assurance.js +84 -61
  32. package/dist/commands/catalog/list.js +2 -2
  33. package/dist/commands/catalog/methods.js +3 -3
  34. package/dist/commands/catalog/show.js +2 -2
  35. package/dist/commands/catalog/validate.js +2 -2
  36. package/dist/commands/change-assurance/common.d.ts +37 -0
  37. package/dist/commands/change-assurance/common.d.ts.map +1 -0
  38. package/dist/commands/change-assurance/index.d.ts +8 -0
  39. package/dist/commands/change-assurance/index.d.ts.map +1 -0
  40. package/dist/commands/change-assurance/index.js +12 -0
  41. package/dist/commands/change-assurance/intake.d.ts +15 -0
  42. package/dist/commands/change-assurance/intake.d.ts.map +1 -0
  43. package/dist/commands/change-assurance/intake.js +53 -0
  44. package/dist/commands/change-assurance/receipt.d.ts +21 -0
  45. package/dist/commands/change-assurance/receipt.d.ts.map +1 -0
  46. package/dist/commands/change-assurance/receipt.js +99 -0
  47. package/dist/commands/change-assurance/recover.d.ts +13 -0
  48. package/dist/commands/change-assurance/recover.d.ts.map +1 -0
  49. package/dist/commands/change-assurance/recover.js +29 -0
  50. package/dist/commands/change-assurance/schema.d.ts +13 -0
  51. package/dist/commands/change-assurance/schema.d.ts.map +1 -0
  52. package/dist/commands/change-assurance/schema.js +40 -0
  53. package/dist/commands/change-assurance/seal-attestation.d.ts +15 -0
  54. package/dist/commands/change-assurance/seal-attestation.d.ts.map +1 -0
  55. package/dist/commands/change-assurance/seal-attestation.js +58 -0
  56. package/dist/commands/change-assurance/seal-record.d.ts +14 -0
  57. package/dist/commands/change-assurance/seal-record.d.ts.map +1 -0
  58. package/dist/commands/change-assurance/seal-record.js +53 -0
  59. package/dist/commands/change-assurance/verify-receipt.d.ts +13 -0
  60. package/dist/commands/change-assurance/verify-receipt.d.ts.map +1 -0
  61. package/dist/commands/change-assurance/verify-receipt.js +41 -0
  62. package/dist/commands/completeness.js +2 -2
  63. package/dist/commands/config/doctor.d.ts.map +1 -1
  64. package/dist/commands/config/doctor.js +3 -3
  65. package/dist/commands/config/edit.d.ts.map +1 -1
  66. package/dist/commands/config/edit.js +3 -3
  67. package/dist/commands/config/get.js +1 -1
  68. package/dist/commands/config/set.js +1 -1
  69. package/dist/commands/evidence/affirm.js +17 -16
  70. package/dist/commands/evidence/audit.d.ts.map +1 -1
  71. package/dist/commands/evidence/audit.js +55 -43
  72. package/dist/commands/evidence/baseline.d.ts.map +1 -1
  73. package/dist/commands/evidence/baseline.js +50 -40
  74. package/dist/commands/evidence/gc.js +3 -2
  75. package/dist/commands/evidence/index.js +1 -1
  76. package/dist/commands/evidence/inspect-mocks.d.ts +16 -0
  77. package/dist/commands/evidence/inspect-mocks.d.ts.map +1 -0
  78. package/dist/commands/evidence/inspect-mocks.js +49 -0
  79. package/dist/commands/evidence/record.d.ts +1 -0
  80. package/dist/commands/evidence/record.d.ts.map +1 -1
  81. package/dist/commands/evidence/record.js +48 -33
  82. package/dist/commands/graph/change-impact.d.ts +16 -0
  83. package/dist/commands/graph/change-impact.d.ts.map +1 -0
  84. package/dist/commands/graph/change-impact.js +29 -0
  85. package/dist/commands/graph/churn.d.ts +14 -0
  86. package/dist/commands/graph/churn.d.ts.map +1 -0
  87. package/dist/commands/graph/churn.js +15 -0
  88. package/dist/commands/graph/common.d.ts +16 -0
  89. package/dist/commands/graph/common.d.ts.map +1 -0
  90. package/dist/commands/graph/fan-out.d.ts +14 -0
  91. package/dist/commands/graph/fan-out.d.ts.map +1 -0
  92. package/dist/commands/graph/fan-out.js +15 -0
  93. package/dist/commands/graph/index.d.ts +8 -0
  94. package/dist/commands/graph/index.d.ts.map +1 -0
  95. package/dist/commands/graph/index.js +12 -0
  96. package/dist/commands/matrix.js +1 -1
  97. package/dist/commands/measurement/index.d.ts +7 -0
  98. package/dist/commands/measurement/index.d.ts.map +1 -0
  99. package/dist/commands/measurement/index.js +11 -0
  100. package/dist/commands/measurement/intervention.d.ts +11 -0
  101. package/dist/commands/measurement/intervention.d.ts.map +1 -0
  102. package/dist/commands/measurement/intervention.js +31 -0
  103. package/dist/commands/measurement/operational-release.d.ts +11 -0
  104. package/dist/commands/measurement/operational-release.d.ts.map +1 -0
  105. package/dist/commands/measurement/operational-release.js +31 -0
  106. package/dist/commands/measurement/record.d.ts +10 -0
  107. package/dist/commands/measurement/record.d.ts.map +1 -0
  108. package/dist/commands/measurement/record.js +36 -0
  109. package/dist/commands/module/ensure-defaults.js +3 -3
  110. package/dist/commands/module/install.js +2 -2
  111. package/dist/commands/module/list.js +2 -2
  112. package/dist/commands/module/remove.js +2 -2
  113. package/dist/commands/report.d.ts +19 -0
  114. package/dist/commands/report.d.ts.map +1 -0
  115. package/dist/commands/report.js +96 -0
  116. package/dist/commands/review.js +1 -1
  117. package/dist/commands/to-plan.js +1 -1
  118. package/dist/commands/update.js +2 -2
  119. package/dist/commands/validate.d.ts +13 -0
  120. package/dist/commands/validate.d.ts.map +1 -0
  121. package/dist/commands/validate.js +123 -0
  122. package/dist/commands/write.js +3 -3
  123. package/dist/common-B1ZJ8CSO.js +36 -0
  124. package/dist/common-DTrmnvL-.js +35 -0
  125. package/dist/{completeness-BQDxME0a.js → completeness-BzBuNq6w.js} +1 -1
  126. package/dist/evidence/adapters/contract-conformance.d.ts +16 -0
  127. package/dist/evidence/adapters/contract-conformance.d.ts.map +1 -0
  128. package/dist/evidence/adapters/differential-report.d.ts +18 -0
  129. package/dist/evidence/adapters/differential-report.d.ts.map +1 -0
  130. package/dist/evidence/adapters/registry.d.ts.map +1 -1
  131. package/dist/evidence/adapters/types.d.ts +31 -0
  132. package/dist/evidence/adapters/types.d.ts.map +1 -1
  133. package/dist/evidence/index.d.ts +7 -3
  134. package/dist/evidence/index.d.ts.map +1 -1
  135. package/dist/evidence/mock-inspection.d.ts +16 -0
  136. package/dist/evidence/mock-inspection.d.ts.map +1 -0
  137. package/dist/evidence/store.d.ts +11 -1
  138. package/dist/evidence/store.d.ts.map +1 -1
  139. package/dist/evidence/types.d.ts +31 -0
  140. package/dist/evidence/types.d.ts.map +1 -1
  141. package/dist/evidence-OyqpqHLS.js +614 -0
  142. package/dist/{flow-command-C_dUJNm-.js → flow-command-CCRTE5Oe.js} +7 -7
  143. package/dist/graph-analysis/analysis.d.ts +106 -0
  144. package/dist/graph-analysis/analysis.d.ts.map +1 -0
  145. package/dist/graph-analysis/index.d.ts +6 -0
  146. package/dist/graph-analysis/index.d.ts.map +1 -0
  147. package/dist/graph-analysis/input.d.ts +33 -0
  148. package/dist/graph-analysis/input.d.ts.map +1 -0
  149. package/dist/graph-analysis/load.d.ts +21 -0
  150. package/dist/graph-analysis/load.d.ts.map +1 -0
  151. package/dist/graph-analysis/render.d.ts +4 -0
  152. package/dist/graph-analysis/render.d.ts.map +1 -0
  153. package/dist/graph-analysis-IWaoJJSN.js +657 -0
  154. package/dist/index.d.ts +2 -0
  155. package/dist/index.d.ts.map +1 -1
  156. package/dist/index.js +11 -8
  157. package/dist/measurement/agent-eval-intervention.d.ts +6 -0
  158. package/dist/measurement/agent-eval-intervention.d.ts.map +1 -0
  159. package/dist/measurement/atomic-file.d.ts +5 -0
  160. package/dist/measurement/atomic-file.d.ts.map +1 -0
  161. package/dist/measurement/compare.d.ts +4 -0
  162. package/dist/measurement/compare.d.ts.map +1 -0
  163. package/dist/measurement/date-time.d.ts +3 -0
  164. package/dist/measurement/date-time.d.ts.map +1 -0
  165. package/dist/measurement/github-release-operational.d.ts +7 -0
  166. package/dist/measurement/github-release-operational.d.ts.map +1 -0
  167. package/dist/measurement/graph-adapters.d.ts +304 -0
  168. package/dist/measurement/graph-adapters.d.ts.map +1 -0
  169. package/dist/measurement/graph-portfolio-load.d.ts +3 -0
  170. package/dist/measurement/graph-portfolio-load.d.ts.map +1 -0
  171. package/dist/measurement/graph-portfolio.d.ts +158 -0
  172. package/dist/measurement/graph-portfolio.d.ts.map +1 -0
  173. package/dist/measurement/index.d.ts +22 -0
  174. package/dist/measurement/index.d.ts.map +1 -0
  175. package/dist/measurement/intervention-report.d.ts +24 -0
  176. package/dist/measurement/intervention-report.d.ts.map +1 -0
  177. package/dist/measurement/intervention-schema.d.ts +144 -0
  178. package/dist/measurement/intervention-schema.d.ts.map +1 -0
  179. package/dist/measurement/intervention-types.d.ts +105 -0
  180. package/dist/measurement/intervention-types.d.ts.map +1 -0
  181. package/dist/measurement/intervention.d.ts +16 -0
  182. package/dist/measurement/intervention.d.ts.map +1 -0
  183. package/dist/measurement/operational-report.d.ts +17 -0
  184. package/dist/measurement/operational-report.d.ts.map +1 -0
  185. package/dist/measurement/operational-schema.d.ts +461 -0
  186. package/dist/measurement/operational-schema.d.ts.map +1 -0
  187. package/dist/measurement/operational-types.d.ts +121 -0
  188. package/dist/measurement/operational-types.d.ts.map +1 -0
  189. package/dist/measurement/operational.d.ts +13 -0
  190. package/dist/measurement/operational.d.ts.map +1 -0
  191. package/dist/measurement/plans.d.ts +6 -0
  192. package/dist/measurement/plans.d.ts.map +1 -0
  193. package/dist/measurement/portfolio.d.ts +54 -0
  194. package/dist/measurement/portfolio.d.ts.map +1 -0
  195. package/dist/measurement/profiles.d.ts +9 -0
  196. package/dist/measurement/profiles.d.ts.map +1 -0
  197. package/dist/measurement/report.d.ts +48 -0
  198. package/dist/measurement/report.d.ts.map +1 -0
  199. package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +384 -0
  200. package/dist/measurement/store.d.ts +14 -0
  201. package/dist/measurement/store.d.ts.map +1 -0
  202. package/dist/measurement/types.d.ts +85 -0
  203. package/dist/measurement/types.d.ts.map +1 -0
  204. package/dist/measurement/validate.d.ts +9 -0
  205. package/dist/measurement/validate.d.ts.map +1 -0
  206. package/dist/measurement-j8sDSqx5.js +2980 -0
  207. package/dist/{modules-Cn9Htfp0.js → modules-DDQkKC4l.js} +2 -2
  208. package/dist/{plugins-Byi1bWLD.js → plugins-CHpYhpEI.js} +1 -1
  209. package/dist/quire/assurance.d.ts +109 -0
  210. package/dist/quire/assurance.d.ts.map +1 -0
  211. package/dist/quire/contract.d.ts +12 -12
  212. package/dist/quire/contract.d.ts.map +1 -1
  213. package/dist/quire/exec.d.ts +10 -0
  214. package/dist/quire/exec.d.ts.map +1 -1
  215. package/dist/quire/index.d.ts +4 -3
  216. package/dist/quire/index.d.ts.map +1 -1
  217. package/dist/quire/types.d.ts +119 -1
  218. package/dist/quire/types.d.ts.map +1 -1
  219. package/dist/quire/validate.d.ts +5 -0
  220. package/dist/quire/validate.d.ts.map +1 -1
  221. package/dist/{quire-UzoK3Azf.js → quire-BsVj1xIR.js} +533 -499
  222. package/dist/schema-assets-HZWo_iFN.js +233 -0
  223. package/dist/schemas/assurance-v1.schema.json +225 -0
  224. package/dist/schemas/change-assurance-record-v1.schema.json +234 -0
  225. package/dist/schemas/coverage-v1.schema.json +919 -105
  226. package/dist/schemas/operational-evidence-v1.schema.json +381 -0
  227. package/dist/schemas/proof-attestation-v1.schema.json +96 -0
  228. package/dist/schemas/properties-v1.schema.json +25 -0
  229. package/dist/schemas/verification-receipt-v1.schema.json +208 -0
  230. package/dist/validators/gates.d.ts +18 -0
  231. package/dist/validators/gates.d.ts.map +1 -0
  232. package/dist/validators/index.d.ts +2 -0
  233. package/dist/validators/index.d.ts.map +1 -0
  234. package/dist/{version-BMXhyIie.js → version-CMxMIh5g.js} +1 -1
  235. package/dist/{write-BDxILTLC.js → write-CGTI0dRO.js} +1 -1
  236. package/package.json +26 -16
  237. package/skills/assurance-status-report/SKILL.md +135 -0
  238. package/skills/assurance-status-report/references/report-contract.md +110 -0
  239. package/skills/gap-analysis/references/step-4-underspecified-code.md +36 -7
  240. package/skills/gap-analysis/references/step-5-semantic-review.md +2 -2
  241. package/skills/gap-analysis/references/step-6-specreview-artifact.md +6 -5
  242. package/skills/spec-architecture-evaluation/SKILL.md +30 -0
  243. package/skills/spec-fuzz/SKILL.md +7 -6
  244. package/dist/evidence-BA5vyZJk.js +0 -603
@@ -0,0 +1,16 @@
1
+ import { GraphAnalysis } from '../../graph-analysis/index.js';
2
+ export declare const graphInputFlags: {
3
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
4
+ export: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
5
+ premises: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
+ audit: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
8
+ };
9
+ export declare function loadGraphFlags(flags: {
10
+ repo: string;
11
+ export: string;
12
+ premises: string;
13
+ audit: string;
14
+ }): import('../../graph-analysis/load.js').GraphLoadResult;
15
+ export declare function graphOutput(report: GraphAnalysis, json: boolean): string;
16
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/commands/graph/common.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAOnE,eAAO,MAAM,eAAe;;;;;;CAkB3B,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,0DAOA;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAIxE"}
@@ -0,0 +1,14 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class GraphFanOut extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static flags: {
6
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
+ export: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
+ premises: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
+ audit: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
10
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
11
+ };
12
+ run(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=fan-out.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fan-out.d.ts","sourceRoot":"","sources":["../../../src/commands/graph/fan-out.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IACnD,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAA0D;IACxE,MAAM,CAAC,KAAK;;;;;;MAAmB;IAEzB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAM3B"}
@@ -0,0 +1,15 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { o as t } from "../../graph-analysis-IWaoJJSN.js";
3
+ import { n, r, t as i } from "../../common-DTrmnvL-.js";
4
+ //#region src/commands/graph/fan-out.ts
5
+ var a = class a extends e {
6
+ skipUpdateNudge = !0;
7
+ static summary = "Report distinct live obligations per evidence suite.";
8
+ static flags = i;
9
+ async run() {
10
+ let { flags: e } = await this.parse(a), i = r(e);
11
+ i.ok || this.error(i.error.message, { exit: 2 }), this.log(n(t(i.value), e.json));
12
+ }
13
+ };
14
+ //#endregion
15
+ export { a as default };
@@ -0,0 +1,8 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class Graph extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ run(): Promise<void>;
7
+ }
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/graph/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,YAAY;IAC7C,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAA8C;IAC5D,MAAM,CAAC,WAAW,SAOC;IAEb,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAI3B"}
@@ -0,0 +1,12 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ //#region src/commands/graph/index.ts
3
+ var t = class t extends e {
4
+ skipUpdateNudge = !0;
5
+ static summary = "Read-only evidence-graph analysis views.";
6
+ static description = "Analyze an existing, accepted Quire assurance export together with retained\nQuoin evidence and an existing FR-032 audit. These commands run no producer,\nsuite, Quire, Git, or network operation and write nothing.\n\nSubcommands:\n quoin graph fan-out\n quoin graph change-impact\n quoin graph churn";
7
+ async run() {
8
+ await this.parse(t), this.log(t.description);
9
+ }
10
+ };
11
+ //#endregion
12
+ export { t as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../flow-command-C_dUJNm-.js";
1
+ import { t as e } from "../flow-command-CCRTE5Oe.js";
2
2
  //#region src/commands/matrix.ts
3
3
  var t = class t extends e {
4
4
  static summary = "Build or update a requirements test matrix.";
@@ -0,0 +1,7 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class MeasurementIndex extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ run(): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/measurement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,YAAY;IACxD,MAAM,CAAC,OAAO,SAAmD;IACjE,MAAM,CAAC,WAAW,SAE0D;IAEtE,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAM3B"}
@@ -0,0 +1,11 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ //#region src/commands/measurement/index.ts
3
+ var t = class t extends e {
4
+ static summary = "Record and inspect versioned QA measurements.";
5
+ static description = "Measurement collections connect raw producer output to active\nMeasurementPlans. Use `quoin measurement record` to persist one complete producer\ninvocation; use `quoin report` for current state, comparisons, and series.";
6
+ async run() {
7
+ await this.parse(t), this.log(t.description);
8
+ }
9
+ };
10
+ //#endregion
11
+ export { t as default };
@@ -0,0 +1,11 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class MeasurementIntervention extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static flags: {
6
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
+ definition: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
+ };
9
+ run(): Promise<void>;
10
+ }
11
+ //# sourceMappingURL=intervention.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intervention.d.ts","sourceRoot":"","sources":["../../../src/commands/measurement/intervention.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAM7C,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,YAAY;IAC/D,MAAM,CAAC,OAAO,SACmD;IACjE,MAAM,CAAC,WAAW,SACsC;IACxD,MAAM,CAAC,KAAK;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAY3B"}
@@ -0,0 +1,31 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { n as t } from "../../measurement-j8sDSqx5.js";
3
+ import { readFileSync as n } from "node:fs";
4
+ import { Flags as r } from "@oclif/core";
5
+ //#region src/commands/measurement/intervention.ts
6
+ var i = class i extends e {
7
+ static summary = "Record an intervention from two retained agent-eval reports.";
8
+ static description = "Consumes retained reports only. It never invokes an agent,\nevaluation harness, producer process, or network client.";
9
+ static flags = {
10
+ repo: r.string({
11
+ description: "Repository root.",
12
+ default: "."
13
+ }),
14
+ definition: r.string({
15
+ description: "Versioned producer-definition JSON path.",
16
+ required: !0
17
+ })
18
+ };
19
+ async run() {
20
+ let { flags: e } = await this.parse(i);
21
+ try {
22
+ let r = JSON.parse(n(e.definition, "utf8"));
23
+ this.log(t(e.repo, r).path);
24
+ } catch (e) {
25
+ let t = e instanceof Error ? e.message : String(e);
26
+ this.error(t, { exit: 2 });
27
+ }
28
+ }
29
+ };
30
+ //#endregion
31
+ export { i as default };
@@ -0,0 +1,11 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class OperationalRelease extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static flags: {
6
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
+ definition: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
+ };
9
+ run(): Promise<void>;
10
+ }
11
+ //# sourceMappingURL=operational-release.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operational-release.d.ts","sourceRoot":"","sources":["../../../src/commands/measurement/operational-release.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAM7C,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,YAAY;IAC1D,MAAM,CAAC,OAAO,SACwD;IACtE,MAAM,CAAC,WAAW,SAC4D;IAC9E,MAAM,CAAC,KAAK;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAY3B"}
@@ -0,0 +1,31 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { t } from "../../measurement-j8sDSqx5.js";
3
+ import { readFileSync as n } from "node:fs";
4
+ import { Flags as r } from "@oclif/core";
5
+ //#region src/commands/measurement/operational-release.ts
6
+ var i = class i extends e {
7
+ static summary = "Record operational evidence from retained GitHub release exports.";
8
+ static description = "Consumes retained workflow and API files only. It performs no\nnetwork request, workflow dispatch, release publication, or process execution.";
9
+ static flags = {
10
+ repo: r.string({
11
+ description: "Repository root.",
12
+ default: "."
13
+ }),
14
+ definition: r.string({
15
+ description: "Versioned release-producer definition JSON path.",
16
+ required: !0
17
+ })
18
+ };
19
+ async run() {
20
+ let { flags: e } = await this.parse(i);
21
+ try {
22
+ let r = JSON.parse(n(e.definition, "utf8"));
23
+ this.log(t(e.repo, r).path);
24
+ } catch (e) {
25
+ let t = e instanceof Error ? e.message : String(e);
26
+ this.error(t, { exit: 2 });
27
+ }
28
+ }
29
+ };
30
+ //#endregion
31
+ export { i as default };
@@ -0,0 +1,10 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class MeasurementRecord extends QuoinCommand {
3
+ static summary: string;
4
+ static flags: {
5
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
+ input: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
+ };
8
+ run(): Promise<void>;
9
+ }
10
+ //# sourceMappingURL=record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../src/commands/measurement/record.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAO7C,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,YAAY;IACzD,MAAM,CAAC,OAAO,SAA+D;IAC7E,MAAM,CAAC,KAAK;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA8B3B"}
@@ -0,0 +1,36 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { E as t, N as n, W as r } from "../../measurement-j8sDSqx5.js";
3
+ import { readFileSync as i } from "node:fs";
4
+ import { Flags as a } from "@oclif/core";
5
+ //#region src/commands/measurement/record.ts
6
+ var o = class o extends e {
7
+ static summary = "Atomically record one plan-validated producer invocation.";
8
+ static flags = {
9
+ repo: a.string({
10
+ description: "Repository root.",
11
+ default: "."
12
+ }),
13
+ input: a.string({
14
+ description: "Collection JSON path, or - for stdin.",
15
+ required: !0
16
+ })
17
+ };
18
+ async run() {
19
+ let { flags: e } = await this.parse(o), a = e.input === "-" ? i(0, "utf8") : i(e.input, "utf8"), s;
20
+ try {
21
+ s = JSON.parse(a);
22
+ } catch (e) {
23
+ let t = e instanceof Error ? e.message : String(e);
24
+ this.error(`measurement input is not JSON: ${t}`, { exit: 2 });
25
+ }
26
+ try {
27
+ let i = typeof s == "object" && s && !Array.isArray(s) ? s.record_type : void 0;
28
+ this.log(i === "intervention_experiment" ? r(e.repo, s) : i === "operational_evidence" ? n(e.repo, s) : t(e.repo, s));
29
+ } catch (e) {
30
+ let t = e instanceof Error ? e.message : String(e);
31
+ this.error(t, { exit: 2 });
32
+ }
33
+ }
34
+ };
35
+ //#endregion
36
+ export { o as default };
@@ -1,6 +1,6 @@
1
- import { t as e } from "../../base-W7vrLi5E.js";
2
- import { r as t } from "../../plugins-Byi1bWLD.js";
3
- import { n } from "../../modules-Cn9Htfp0.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { r as t } from "../../plugins-CHpYhpEI.js";
3
+ import { n } from "../../modules-DDQkKC4l.js";
4
4
  //#region src/commands/module/ensure-defaults.ts
5
5
  var r = class r extends e {
6
6
  static summary = "Idempotently install the default spec module set.";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../base-W7vrLi5E.js";
2
- import { n as t } from "../../plugins-Byi1bWLD.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { n as t } from "../../plugins-CHpYhpEI.js";
3
3
  import { Args as n } from "@oclif/core";
4
4
  //#region src/commands/module/install.ts
5
5
  var r = class r extends e {
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../base-W7vrLi5E.js";
2
- import { r as t } from "../../plugins-Byi1bWLD.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { r as t } from "../../plugins-CHpYhpEI.js";
3
3
  //#region src/commands/module/list.ts
4
4
  var n = class n extends e {
5
5
  static summary = "List installed spec modules.";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../base-W7vrLi5E.js";
2
- import { a as t } from "../../plugins-Byi1bWLD.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { a as t } from "../../plugins-CHpYhpEI.js";
3
3
  import { Args as n } from "@oclif/core";
4
4
  //#region src/commands/module/remove.ts
5
5
  var r = class r extends e {
@@ -0,0 +1,19 @@
1
+ import { QuoinCommand } from '../base.js';
2
+ export default class Report extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
+ portfolio: import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
9
+ "graph-export": import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
10
+ "graph-premises": import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
11
+ "graph-audit": import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
12
+ changed: import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
13
+ since: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
14
+ series: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
15
+ format: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
16
+ };
17
+ run(): Promise<void>;
18
+ }
19
+ //# sourceMappingURL=report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/commands/report.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAiB1C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;IAC9C,MAAM,CAAC,OAAO,SAA+D;IAC7E,MAAM,CAAC,WAAW,SACyD;IAC3E,MAAM,CAAC,QAAQ,WAKb;IACF,MAAM,CAAC,KAAK;;;;;;;;;;MAmCV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA4E3B"}
@@ -0,0 +1,96 @@
1
+ import { t as e } from "../base-gAClyCNd.js";
2
+ import { _ as t, b as n, d as r, h as i, l as a, m as o, o as s, p as c, r as l, v as u, x as d, y as f } from "../measurement-j8sDSqx5.js";
3
+ import { c as p } from "../schema-assets-HZWo_iFN.js";
4
+ import { Flags as m } from "@oclif/core";
5
+ //#region src/commands/report.ts
6
+ var h = class h extends e {
7
+ static summary = "Render QA plans and measurements from the evidence store.";
8
+ static description = "A deterministic store view. It accepts no typed values and runs no\nmeasurement producer. Plans with no records remain visible as not_computed.";
9
+ static examples = [
10
+ "quoin report",
11
+ "quoin report --since abc123 --format json",
12
+ "quoin report --series finding_recall --format json",
13
+ "quoin report --portfolio ../quoin --portfolio ../quire-rs"
14
+ ];
15
+ static flags = {
16
+ repo: m.string({
17
+ description: "Repository root.",
18
+ default: "."
19
+ }),
20
+ portfolio: m.string({
21
+ description: "Repository root to include; repeat for a portfolio view.",
22
+ multiple: !0
23
+ }),
24
+ "graph-export": m.string({
25
+ description: "Repository=path mapping for an existing Quire assurance export; repeatable.",
26
+ multiple: !0
27
+ }),
28
+ "graph-premises": m.string({
29
+ description: "Repository=path mapping for accepted graph premises; repeatable.",
30
+ multiple: !0
31
+ }),
32
+ "graph-audit": m.string({
33
+ description: "Repository=path mapping for a source-bound audit envelope; repeatable.",
34
+ multiple: !0
35
+ }),
36
+ changed: m.string({
37
+ description: "Repository=requirement mapping for graph change-impact; repeatable.",
38
+ multiple: !0
39
+ }),
40
+ since: m.string({ description: "Compare the named source revision to latest." }),
41
+ series: m.string({ description: "Render the history of one metric." }),
42
+ format: m.string({
43
+ description: "Output format.",
44
+ options: ["human", "json"],
45
+ default: "human"
46
+ })
47
+ };
48
+ async run() {
49
+ let { flags: e } = await this.parse(h);
50
+ e.since && e.series && this.error("--since and --series are mutually exclusive", { exit: 2 });
51
+ try {
52
+ let m = !!(e["graph-export"]?.length || e["graph-premises"]?.length || e["graph-audit"]?.length || e.changed?.length);
53
+ if (m && !e.portfolio?.length && this.error("graph portfolio mappings require --portfolio", { exit: 2 }), e.portfolio?.length) {
54
+ if ((e.since || e.series) && this.error("--portfolio cannot be combined with --since or --series", { exit: 2 }), m) {
55
+ let t = l(e.portfolio, {
56
+ graphExports: e["graph-export"],
57
+ graphPremises: e["graph-premises"],
58
+ graphAudits: e["graph-audit"],
59
+ changed: e.changed
60
+ });
61
+ this.log(e.format === "json" ? s(t).trimEnd() : a(t));
62
+ return;
63
+ }
64
+ let t = r(e.portfolio);
65
+ this.log(e.format === "json" ? o(t).trimEnd() : c(t));
66
+ return;
67
+ }
68
+ if (e.series) {
69
+ let t = d(e.repo, e.series);
70
+ this.log(e.format === "json" ? p(t).trimEnd() : g(e.series, t));
71
+ return;
72
+ }
73
+ if (e.since) {
74
+ let n = t(e.repo, e.since);
75
+ this.log(e.format === "json" ? p(n).trimEnd() : u(n));
76
+ return;
77
+ }
78
+ let h = i(e.repo);
79
+ this.log(e.format === "json" ? n(h).trimEnd() : f(h));
80
+ } catch (e) {
81
+ let t = e instanceof Error ? e.message : String(e);
82
+ this.error(t, { exit: 2 });
83
+ }
84
+ }
85
+ };
86
+ function g(e, t) {
87
+ let n = [`# ${e} series`, ""];
88
+ if (t.length === 0) return `${n.join("\n")}not_computed: no records\n`;
89
+ for (let e of t) {
90
+ let t = e.observation;
91
+ n.push(`- ${String(e.timestamp)} ${String(t.state)} ${String(t.value)} ${String(t.unit)} (source ${String(e.sourceRevision)}, tool ${String(e.toolIdentity)} ${String(e.toolVersion)}, corpus ${String(e.corpusRevision)}, gaps ${String(e.corpusGaps)}, config ${String(e.configDigest)})`);
92
+ }
93
+ return n.push(""), n.join("\n");
94
+ }
95
+ //#endregion
96
+ export { h as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../flow-command-C_dUJNm-.js";
1
+ import { t as e } from "../flow-command-CCRTE5Oe.js";
2
2
  //#region src/commands/review.ts
3
3
  var t = class t extends e {
4
4
  static summary = "Run a composite spec review workflow.";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../flow-command-C_dUJNm-.js";
1
+ import { t as e } from "../flow-command-CCRTE5Oe.js";
2
2
  //#region src/commands/to-plan.ts
3
3
  var t = class t extends e {
4
4
  static summary = "Convert accepted requirements into an implementation plan.";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../version-BMXhyIie.js";
2
- import { t } from "../base-W7vrLi5E.js";
1
+ import { t as e } from "../version-CMxMIh5g.js";
2
+ import { t } from "../base-gAClyCNd.js";
3
3
  import { runSelfUpdate as n } from "@agent-ix/ix-cli-core";
4
4
  import { Flags as r } from "@oclif/core";
5
5
  //#region src/commands/update.ts
@@ -0,0 +1,13 @@
1
+ import { QuoinCommand } from '../base.js';
2
+ export default class Validate extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
+ strict: import('@oclif/core/interfaces').BooleanFlag<boolean>;
9
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/commands/validate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,YAAY;IAChD,MAAM,CAAC,OAAO,SAA8D;IAC5E,MAAM,CAAC,WAAW,SAIqD;IAEvE,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;MAIV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAiB3B"}
@@ -0,0 +1,123 @@
1
+ import { t as e } from "../base-gAClyCNd.js";
2
+ import { readFileSync as t, readdirSync as n } from "node:fs";
3
+ import { basename as r, extname as i, join as a, relative as o } from "node:path";
4
+ import { Flags as s } from "@oclif/core";
5
+ //#region src/validators/gates.ts
6
+ var c = /* @__PURE__ */ new Set([
7
+ ".git",
8
+ "dist",
9
+ "node_modules",
10
+ "spec",
11
+ "target",
12
+ "vendor"
13
+ ]);
14
+ function l(e) {
15
+ let n = _(e), r = [];
16
+ for (let i of g(e)) {
17
+ let a = t(i, "utf8"), s = u(a);
18
+ if (!s || !d(s.statement)) continue;
19
+ let c = y(o(e, i)), l = n.find((e) => h(t(e, "utf8"), c));
20
+ if (!l) continue;
21
+ let m = a.split(/\r?\n/);
22
+ for (let [t, n] of m.entries()) {
23
+ let i = f(n);
24
+ if (!i || !p(s.statement, i)) continue;
25
+ let a = y(o(e, l));
26
+ r.push({
27
+ kind: "gate-that-gates-nothing",
28
+ obligation: s.obligation,
29
+ path: c,
30
+ line: t + 1,
31
+ wiredBy: a,
32
+ subject: `gate for ${s.obligation}`,
33
+ changeTarget: `${c}:${t + 1}`,
34
+ remedy: `compare the count for “${i}” to zero or make the match command exit non-zero when forbidden text is present`,
35
+ summary: `${s.obligation} claims “${s.statement}”, and ${a} wires ${c}, but line ${t + 1} only counts matches for “${i}” without asserting zero. The gate succeeds when the forbidden text is present; compare the count to zero or make a match exit non-zero.`
36
+ });
37
+ }
38
+ }
39
+ return r.sort((e, t) => b(e.path, t.path) || e.line - t.line || b(e.obligation, t.obligation));
40
+ }
41
+ function u(e) {
42
+ let t = /^\s*#\s*(?:gate|check)\s+for\s+([A-Z][A-Z0-9-]+):\s*(.+?)\s*$/im.exec(e);
43
+ return t ? {
44
+ obligation: t[1],
45
+ statement: t[2]
46
+ } : null;
47
+ }
48
+ function d(e) {
49
+ return /\b(?:no|never|not|forbid(?:s|den)?|without)\b/i.test(e);
50
+ }
51
+ function f(e) {
52
+ if (/^\s*(?:if|while|until)\b/.test(e)) return null;
53
+ let t = /\|\s*wc\s+-?l\b/.exec(e);
54
+ if (!/\b(?:grep|rg)\b/.test(e) || !t) return null;
55
+ let n = e.slice((t.index ?? 0) + t[0].length);
56
+ return /\|\s*(?:grep|test)\b/.test(n) || /(?:==|!=|\b(?:eq|ne|gt|ge|lt|le)\b)/.test(n) ? null : (/\b(?:grep|rg)\b[^\n]*?["']([^"']+)["']/.exec(e)?.[1])?.trim() || null;
57
+ }
58
+ function p(e, t) {
59
+ let n = m(e);
60
+ return [...m(t)].some((e) => e.length >= 4 && n.has(e));
61
+ }
62
+ function m(e) {
63
+ return new Set(e.toLowerCase().match(/[a-z_][a-z0-9_]*/g) ?? []);
64
+ }
65
+ function h(e, t) {
66
+ return e.includes(t) || e.includes(`./${t}`) || e.includes(r(t));
67
+ }
68
+ function g(e) {
69
+ return v(e).filter((e) => i(e) === ".sh");
70
+ }
71
+ function _(e) {
72
+ return v(e).filter((t) => {
73
+ let n = y(o(e, t)), i = r(t).toLowerCase();
74
+ return /^makefile(?:\..+)?$/.test(i) || i === "justfile" || i === "package.json" || /^taskfile\.(?:ya?ml)$/.test(i) || /^\.github\/workflows\//.test(n) && /\.ya?ml$/.test(n);
75
+ });
76
+ }
77
+ function v(e) {
78
+ let t = [], r = (e) => {
79
+ for (let i of n(e, { withFileTypes: !0 })) {
80
+ if (i.isDirectory() && c.has(i.name)) continue;
81
+ let n = a(e, i.name);
82
+ i.isDirectory() ? r(n) : i.isFile() && t.push(n);
83
+ }
84
+ };
85
+ return r(e), t.sort(b);
86
+ }
87
+ function y(e) {
88
+ return e.split("\\").join("/");
89
+ }
90
+ function b(e, t) {
91
+ return e === t ? 0 : e < t ? -1 : 1;
92
+ }
93
+ //#endregion
94
+ //#region src/commands/validate.ts
95
+ var x = class t extends e {
96
+ static summary = "Validate repository QA gates and report located defects.";
97
+ static description = "Runs deterministic repository validators. The gate-capability check joins an\nexplicit shell-gate claim, build/CI wiring, and the command that is supposed to\nenforce it; report scripts are not treated as gates from their text alone.\n\nFindings are advisory by default. Pass --strict in CI to exit non-zero.";
98
+ static examples = [
99
+ "quoin validate",
100
+ "quoin validate --strict",
101
+ "quoin validate --json"
102
+ ];
103
+ static flags = {
104
+ repo: s.string({
105
+ description: "Repository root.",
106
+ default: "."
107
+ }),
108
+ strict: s.boolean({ description: "Exit 1 when a finding remains." }),
109
+ json: s.boolean({ description: "Emit findings as JSON." })
110
+ };
111
+ async run() {
112
+ let { flags: e } = await this.parse(t), n = l(e.repo);
113
+ if (e.json) this.log(JSON.stringify({ findings: n }, null, 2));
114
+ else if (n.length === 0) this.log("repository QA gates: no findings");
115
+ else {
116
+ for (let e of n) this.log(`[warning] ${e.kind}: ${e.path}:${e.line}: ${e.summary}`);
117
+ this.log(`${n.length} gate finding(s)`);
118
+ }
119
+ e.strict && n.length > 0 && this.exit(1);
120
+ }
121
+ };
122
+ //#endregion
123
+ export { x as default };
@@ -1,6 +1,6 @@
1
- import { o as e, t } from "../base-W7vrLi5E.js";
2
- import { n } from "../modules-Cn9Htfp0.js";
3
- import { n as r, r as i, t as a } from "../write-BDxILTLC.js";
1
+ import { o as e, t } from "../base-gAClyCNd.js";
2
+ import { n } from "../modules-DDQkKC4l.js";
3
+ import { n as r, r as i, t as a } from "../write-CGTI0dRO.js";
4
4
  import { Args as o, Flags as s } from "@oclif/core";
5
5
  //#region src/commands/write.ts
6
6
  var c = class c extends t {
@@ -0,0 +1,36 @@
1
+ import { E as e, O as t } from "./change-assurance-CyKLPeKa.js";
2
+ import { readFileSync as n } from "node:fs";
3
+ import { Flags as r } from "@oclif/core";
4
+ //#region src/commands/change-assurance/common.ts
5
+ var i = r.string({
6
+ description: "Repository root for retained Quoin state.",
7
+ default: "."
8
+ }), a = r.boolean({ description: "Emit canonical JSON." });
9
+ function o(e) {
10
+ return n(e === "-" ? 0 : e);
11
+ }
12
+ function s(e) {
13
+ return t(o(e));
14
+ }
15
+ function c(t) {
16
+ return e(t);
17
+ }
18
+ function l(e) {
19
+ return e instanceof Error ? e.message : String(e);
20
+ }
21
+ function u(e, t) {
22
+ if (typeof e != "object" || !e || Array.isArray(e)) return "input must be a JSON object";
23
+ let n = t.filter((t) => Object.prototype.hasOwnProperty.call(e, t));
24
+ return n.length === 0 ? null : `input must not supply ${n.join(", ")}; it is derived when sealing`;
25
+ }
26
+ function d(e) {
27
+ let t = e.indexOf("=");
28
+ if (t <= 0) return null;
29
+ let n = e.slice(0, t).trim(), r = e.slice(t + 1).trim();
30
+ return n === "" || !/^[a-f0-9]{64}$/.test(r) ? null : {
31
+ proof_id: n,
32
+ attestation_digest: r
33
+ };
34
+ }
35
+ //#endregion
36
+ export { o as a, i as c, d as i, a as n, s as o, l as r, u as s, c as t };