@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,99 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { c as t, s as n, t as r } from "../../change-assurance-CyKLPeKa.js";
3
+ import { c as i, i as a, n as o, o as s, r as c, t as l } from "../../common-B1ZJ8CSO.js";
4
+ import { Flags as u } from "@oclif/core";
5
+ //#region src/commands/change-assurance/receipt.ts
6
+ var d = class d extends e {
7
+ skipUpdateNudge = !0;
8
+ static summary = "Verify a candidate from retained inputs and emit its receipt.";
9
+ static description = "Assembles the FR-065 verification input from what the caller names — the\nstored record, its parents, the explicitly selected attestations and their\nretained outputs, the retained ix-flow decision history, and any retained\nFR-032 audit reports — and emits the resulting receipt.\n\nNothing is discovered. A stored attestation that is not named by --select has\nno effect on the receipt, so a stray upload cannot discharge a proof.\n\nNo proof, suite, tool, workflow, Git, or network operation runs, and nothing is\nwritten. Missing evidence stays missing: `unavailable`, `not_computed`, and\nabsent attestations remain their own outcomes and reasons and are never turned\ninto a pass or a failure.\n\nExit status is 0 for a `valid` receipt and 1 for an `invalid` or\n`incomplete` one. The receipt is emitted either way; a usage, parse, or\nintegrity error exits 2 instead and emits none.";
10
+ static examples = ["quoin change-assurance receipt --record <record-digest> --candidate-revision <sha> --select PROOF-1=<attestation-digest> --decisions decisions.json --json"];
11
+ static flags = {
12
+ record: u.string({
13
+ description: "Digest of the stored change-assurance record to verify.",
14
+ required: !0
15
+ }),
16
+ "candidate-revision": u.string({
17
+ description: "Candidate revision the selected attestations must be bound to.",
18
+ required: !0
19
+ }),
20
+ parent: u.string({
21
+ description: "Digest of a stored parent record, repeated for each earlier revision. Named rather than walked, so a missing ancestor is a stated gap instead of a silently shortened chain.",
22
+ multiple: !0,
23
+ default: []
24
+ }),
25
+ select: u.string({
26
+ description: "Explicit `<proof-id>=<attestation-digest>` selection, repeated per proof. Only selected attestations are read.",
27
+ multiple: !0,
28
+ default: []
29
+ }),
30
+ decisions: u.string({
31
+ description: "Retained ix-flow decision history JSON (`run_id` plus its exact event chain). `-` reads stdin.",
32
+ required: !0
33
+ }),
34
+ audits: u.string({ description: "Retained FR-032 audit reports as a JSON array. Absent means no audit was retained, which stays distinct from an audit with no findings." }),
35
+ repo: i,
36
+ json: o
37
+ };
38
+ async run() {
39
+ let { flags: e } = await this.parse(d), t = this.storedRecord(e.repo, e.record, "--record"), i = e.parent.map((t) => this.storedRecord(e.repo, t, "--parent")), o = [], u = [];
40
+ for (let t of e.select) {
41
+ let r = a(t);
42
+ r || this.error(`--select ${t} must be <proof-id>=<64-character lowercase hex digest>`, { exit: 2 }), o.push(r);
43
+ let i;
44
+ try {
45
+ i = n(e.repo, r.attestation_digest);
46
+ } catch (e) {
47
+ this.error(`cannot read attestation ${r.attestation_digest}: ${c(e)}`, { exit: 2 });
48
+ }
49
+ i || this.error(`--select ${t} names no retained attestation in ${e.repo}`, { exit: 2 }), u.push(i);
50
+ }
51
+ let f;
52
+ try {
53
+ f = s(e.decisions);
54
+ } catch (t) {
55
+ this.error(`cannot read --decisions ${e.decisions}: ${c(t)}`, { exit: 2 });
56
+ }
57
+ let p = [];
58
+ if (e.audits !== void 0) {
59
+ let t;
60
+ try {
61
+ t = s(e.audits);
62
+ } catch (t) {
63
+ this.error(`cannot read --audits ${e.audits}: ${c(t)}`, { exit: 2 });
64
+ }
65
+ Array.isArray(t) || this.error("--audits must be a JSON array of retained audit reports", { exit: 2 }), p = t;
66
+ }
67
+ let m;
68
+ try {
69
+ m = r({
70
+ record: t,
71
+ parents: i,
72
+ candidate_revision: e["candidate-revision"],
73
+ selections: o,
74
+ attestations: u,
75
+ decision_history: f,
76
+ audits: p
77
+ });
78
+ } catch (e) {
79
+ this.error(`cannot verify candidate: ${c(e)}`, { exit: 2 });
80
+ }
81
+ if (e.json) this.log(l(m));
82
+ else {
83
+ this.log(`receipt ${m.digest}`), this.log(` outcome: ${m.outcome}`), m.reasons.length > 0 && this.log(` reasons: ${m.reasons.join(", ")}`);
84
+ for (let e of m.proofs) this.log(` ${e.proof_id}: ${e.outcome}` + (e.reasons.length > 0 ? ` (${e.reasons.join(", ")})` : ""));
85
+ }
86
+ m.outcome !== "valid" && this.exit(1);
87
+ }
88
+ storedRecord(e, n, r) {
89
+ let i;
90
+ try {
91
+ i = t(e, n);
92
+ } catch (e) {
93
+ this.error(`cannot read ${r} ${n}: ${c(e)}`, { exit: 2 });
94
+ }
95
+ return i || this.error(`${r} ${n} names no retained record in ${e}`, { exit: 2 }), i;
96
+ }
97
+ };
98
+ //#endregion
99
+ export { d as default };
@@ -0,0 +1,13 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ChangeAssuranceRecover extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ static examples: string[];
7
+ static flags: {
8
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=recover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recover.d.ts","sourceRoot":"","sources":["../../../src/commands/change-assurance/recover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,YAAY;IAC9D,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAA+D;IAC7E,MAAM,CAAC,WAAW,SAM+B;IAEjD,MAAM,CAAC,QAAQ,WAAsD;IAErE,MAAM,CAAC,KAAK;;;MAGV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAkB3B"}
@@ -0,0 +1,29 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { u as t } from "../../change-assurance-CyKLPeKa.js";
3
+ import { c as n, n as r, r as i, t as a } from "../../common-B1ZJ8CSO.js";
4
+ //#region src/commands/change-assurance/recover.ts
5
+ var o = class o extends e {
6
+ skipUpdateNudge = !0;
7
+ static summary = "Remove staging directories left by an interrupted intake.";
8
+ static description = "Intake makes an attestation and its output visible with a single rename. If it\nis interrupted before that rename, the half-written pair stays in a staging\ndirectory that is never read as an attestation — invisible, but not free.\n\nThis removes exactly those staging directories and reports how many it removed.\nRetained records, attestations, and outputs are left untouched, and nothing\nhere re-runs, re-hashes, or re-verifies anything.";
9
+ static examples = ["quoin change-assurance recover --repo . --json"];
10
+ static flags = {
11
+ repo: n,
12
+ json: r
13
+ };
14
+ async run() {
15
+ let { flags: e } = await this.parse(o), n;
16
+ try {
17
+ n = t(e.repo);
18
+ } catch (e) {
19
+ this.error(`cannot recover staging: ${i(e)}`, { exit: 2 });
20
+ }
21
+ if (e.json) {
22
+ this.log(a({ removed: n }));
23
+ return;
24
+ }
25
+ this.log(`removed ${n} interrupted intake staging director${n === 1 ? "y" : "ies"}`);
26
+ }
27
+ };
28
+ //#endregion
29
+ export { o as default };
@@ -0,0 +1,13 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ChangeAssuranceSchema extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ static examples: string[];
7
+ static flags: {
8
+ name: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
9
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/commands/change-assurance/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAQ7C,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,YAAY;IAC7D,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAAyD;IACvE,MAAM,CAAC,WAAW,SAK0D;IAE5E,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,KAAK;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA2B3B"}
@@ -0,0 +1,40 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { n as t, t as n } from "../../schema-assets-HZWo_iFN.js";
3
+ import "../../change-assurance-CyKLPeKa.js";
4
+ import { n as r, r as i, t as a } from "../../common-B1ZJ8CSO.js";
5
+ import { readFileSync as o } from "node:fs";
6
+ import { Flags as s } from "@oclif/core";
7
+ //#region src/commands/change-assurance/schema.ts
8
+ var c = class c extends e {
9
+ skipUpdateNudge = !0;
10
+ static summary = "Emit a packaged change-assurance JSON Schema asset.";
11
+ static description = "Prints one of the three normative, versioned schema assets shipped with this\nbuild, byte-for-byte as packaged, so a consumer validates against the same file\nthe sealing and verification code was written against rather than a copy that\nhas drifted.\n\nWithout --name the three asset names are listed. An unknown name is refused.";
12
+ static examples = ["quoin change-assurance schema", "quoin change-assurance schema --name proof-attestation-v1.schema.json"];
13
+ static flags = {
14
+ name: s.string({
15
+ description: "Schema asset to emit.",
16
+ options: [...n]
17
+ }),
18
+ json: r
19
+ };
20
+ async run() {
21
+ let { flags: e } = await this.parse(c);
22
+ if (e.name === void 0) {
23
+ if (e.json) {
24
+ this.log(a({ schemas: [...n] }));
25
+ return;
26
+ }
27
+ for (let e of n) this.log(e);
28
+ return;
29
+ }
30
+ let r = e.name, s;
31
+ try {
32
+ s = o(t(r), "utf8");
33
+ } catch (e) {
34
+ this.error(`cannot read schema ${r}: ${i(e)}`, { exit: 2 });
35
+ }
36
+ this.log(s.replace(/\n$/, ""));
37
+ }
38
+ };
39
+ //#endregion
40
+ export { c as default };
@@ -0,0 +1,15 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ChangeAssuranceSealAttestation extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ static examples: string[];
7
+ static flags: {
8
+ input: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
+ output: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
10
+ "media-type": import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
11
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
12
+ };
13
+ run(): Promise<void>;
14
+ }
15
+ //# sourceMappingURL=seal-attestation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seal-attestation.d.ts","sourceRoot":"","sources":["../../../src/commands/change-assurance/seal-attestation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAe7C,MAAM,CAAC,OAAO,OAAO,8BAA+B,SAAQ,YAAY;IACtE,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SACsD;IACpE,MAAM,CAAC,WAAW,SAY0D;IAE5E,MAAM,CAAC,QAAQ,WAEb;IAEF,MAAM,CAAC,KAAK;;;;;MAqBV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAwC3B"}
@@ -0,0 +1,58 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { p as t, w as n } from "../../change-assurance-CyKLPeKa.js";
3
+ import { a as r, n as i, o as a, r as o, s, t as c } from "../../common-B1ZJ8CSO.js";
4
+ import { Flags as l } from "@oclif/core";
5
+ //#region src/commands/change-assurance/seal-attestation.ts
6
+ var u = class u extends e {
7
+ skipUpdateNudge = !0;
8
+ static summary = "Seal a proof attestation over an existing retained result file.";
9
+ static description = "Binds ONE already-produced result file to the reviewed record, candidate\nrevision, proof obligation, command, tool, configuration, environment, and\nresult the caller states (FR-064), and emits the sealed attestation JSON.\n\nThe ONLY fields derived here are `retained_output.digest` and\n`retained_output.size_bytes`, read from the bytes of --output, plus the\n`media_type` the caller declares. Everything else is the caller's: this\ncommand does not run the proof command, re-read the tool, inspect the\nrepository, or infer a result from the file it hashes. A body supplying\n`retained_output` or `digest` is refused.\n\nThe attestation is emitted, not retained. `quoin change-assurance intake`\nis the retention step, and it re-checks this binding against the same bytes.";
10
+ static examples = ["quoin change-assurance seal-attestation --input attestation.json --output junit.xml --media-type application/xml"];
11
+ static flags = {
12
+ input: l.string({
13
+ description: "Proof-attestation body as JSON, without `digest` and without `retained_output`. `-` reads stdin.",
14
+ required: !0
15
+ }),
16
+ output: l.string({
17
+ description: "Path of the retained result file this attestation describes. Its bytes are hashed and measured; it is never executed.",
18
+ required: !0
19
+ }),
20
+ "media-type": l.string({
21
+ description: "Declared media type of the retained result file. Stated by the caller rather than sniffed, so a producer's own content type is preserved exactly.",
22
+ required: !0
23
+ }),
24
+ json: i
25
+ };
26
+ async run() {
27
+ let { flags: e } = await this.parse(u), i;
28
+ try {
29
+ i = a(e.input);
30
+ } catch (t) {
31
+ this.error(`cannot read --input ${e.input}: ${o(t)}`, { exit: 2 });
32
+ }
33
+ let l = s(i, ["digest", "retained_output"]);
34
+ l && this.error(l, { exit: 2 });
35
+ let d;
36
+ try {
37
+ d = r(e.output);
38
+ } catch (t) {
39
+ this.error(`cannot read --output ${e.output}: ${o(t)}`, { exit: 2 });
40
+ }
41
+ let f;
42
+ try {
43
+ f = t({
44
+ ...i,
45
+ retained_output: {
46
+ media_type: e["media-type"],
47
+ digest: n(d),
48
+ size_bytes: d.byteLength
49
+ }
50
+ });
51
+ } catch (e) {
52
+ this.error(`cannot seal attestation: ${o(e)}`, { exit: 2 });
53
+ }
54
+ this.log(c(f));
55
+ }
56
+ };
57
+ //#endregion
58
+ export { u as default };
@@ -0,0 +1,14 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ChangeAssuranceSealRecord extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ static examples: string[];
7
+ static flags: {
8
+ input: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
+ repo: 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=seal-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seal-record.d.ts","sourceRoot":"","sources":["../../../src/commands/change-assurance/seal-record.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAe7C,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,YAAY;IACjE,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAA6D;IAC3E,MAAM,CAAC,WAAW,SASH;IAEf,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,KAAK;;;;MAQV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA4C3B"}
@@ -0,0 +1,53 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { _ as t, d as n } from "../../change-assurance-CyKLPeKa.js";
3
+ import { c as r, n as i, o as a, r as o, s, t as c } from "../../common-B1ZJ8CSO.js";
4
+ import { Flags as l } from "@oclif/core";
5
+ //#region src/commands/change-assurance/seal-record.ts
6
+ var u = class u extends e {
7
+ skipUpdateNudge = !0;
8
+ static summary = "Seal an explicit change-assurance record and retain it.";
9
+ static description = "Seals ONE reviewed change definition the caller supplies in full (FR-063) and\nretains it under its own digest.\n\nThe body is the record without its `digest`: the digest is computed from the\ncanonical bytes of everything else, so supplying one is refused rather than\noverwritten. Nothing in the body is inferred, defaulted, or discovered — a\nfield the caller did not state is a validation failure, not a blank.\n\nThis command runs no producer and reads no repository state beyond the store\nit writes into.";
10
+ static examples = ["quoin change-assurance seal-record --input record.json --json", "cat record.json | quoin change-assurance seal-record --input -"];
11
+ static flags = {
12
+ input: l.string({
13
+ description: "Change-assurance record body as JSON, without `digest`. `-` reads stdin.",
14
+ required: !0
15
+ }),
16
+ repo: r,
17
+ json: i
18
+ };
19
+ async run() {
20
+ let { flags: e } = await this.parse(u), r;
21
+ try {
22
+ r = a(e.input);
23
+ } catch (t) {
24
+ this.error(`cannot read --input ${e.input}: ${o(t)}`, { exit: 2 });
25
+ }
26
+ let i = s(r, ["digest"]);
27
+ i && this.error(i, { exit: 2 });
28
+ let l;
29
+ try {
30
+ l = t(r);
31
+ } catch (e) {
32
+ this.error(`cannot seal record: ${o(e)}`, { exit: 2 });
33
+ }
34
+ let d;
35
+ try {
36
+ d = n(e.repo, l);
37
+ } catch (e) {
38
+ this.error(`cannot retain record: ${o(e)}`, { exit: 2 });
39
+ }
40
+ if (e.json) {
41
+ this.log(c({
42
+ record_id: l.record_id,
43
+ revision: l.revision,
44
+ digest: l.digest,
45
+ path: d
46
+ }));
47
+ return;
48
+ }
49
+ this.log(`sealed ${l.record_id} revision ${l.revision}`), this.log(` digest: ${l.digest}`), this.log(` retained: ${d}`);
50
+ }
51
+ };
52
+ //#endregion
53
+ export { u as default };
@@ -0,0 +1,13 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ChangeAssuranceVerifyReceipt extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ static examples: string[];
7
+ static flags: {
8
+ input: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=verify-receipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-receipt.d.ts","sourceRoot":"","sources":["../../../src/commands/change-assurance/verify-receipt.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAY7C,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,YAAY;IACpE,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAA8C;IAC5D,MAAM,CAAC,WAAW,SASuD;IAEzE,MAAM,CAAC,QAAQ,WAEb;IAEF,MAAM,CAAC,KAAK;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAuC3B"}
@@ -0,0 +1,41 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { n as t } from "../../change-assurance-CyKLPeKa.js";
3
+ import { n, o as r, r as i, t as a } from "../../common-B1ZJ8CSO.js";
4
+ import { Flags as o } from "@oclif/core";
5
+ //#region src/commands/change-assurance/verify-receipt.ts
6
+ var s = class s extends e {
7
+ skipUpdateNudge = !0;
8
+ static summary = "Re-verify a sealed verification receipt.";
9
+ static description = "Checks that a receipt still has the shape FR-065 declares and still hashes to\nits own digest, so an edited outcome, reason, proof row, or check is refused\nrather than read back as fact.\n\nThis re-verifies the receipt document. It does not re-run verification: the\nunderlying record, attestations, and decisions are not consulted, and no proof\ncommand is executed.\n\nExit status is 0 when the verified receipt is `valid`, 1 when it is\n`invalid` or `incomplete`, and 2 when the document itself is refused.";
10
+ static examples = ["quoin change-assurance verify-receipt --input receipt.json --json"];
11
+ static flags = {
12
+ input: o.string({
13
+ description: "Sealed verification receipt JSON. `-` reads stdin.",
14
+ required: !0
15
+ }),
16
+ json: n
17
+ };
18
+ async run() {
19
+ let { flags: e } = await this.parse(s), n;
20
+ try {
21
+ n = r(e.input);
22
+ } catch (t) {
23
+ this.error(`cannot read --input ${e.input}: ${i(t)}`, { exit: 2 });
24
+ }
25
+ let o;
26
+ try {
27
+ o = t(n);
28
+ } catch (e) {
29
+ this.error(`receipt refused: ${i(e)}`, { exit: 2 });
30
+ }
31
+ e.json ? this.log(a({
32
+ digest: o.digest,
33
+ record_digest: o.record_digest,
34
+ candidate_revision: o.candidate_revision,
35
+ outcome: o.outcome,
36
+ reasons: o.reasons
37
+ })) : (this.log(`receipt ${o.digest} verified`), this.log(` outcome: ${o.outcome}`), o.reasons.length > 0 && this.log(` reasons: ${o.reasons.join(", ")}`)), o.outcome !== "valid" && this.exit(1);
38
+ }
39
+ };
40
+ //#endregion
41
+ export { s as default };
@@ -1,5 +1,5 @@
1
- import { t as e } from "../base-W7vrLi5E.js";
2
- import { t } from "../completeness-BQDxME0a.js";
1
+ import { t as e } from "../base-gAClyCNd.js";
2
+ import { t } from "../completeness-BzBuNq6w.js";
3
3
  import { Flags as n } from "@oclif/core";
4
4
  //#region src/commands/completeness.ts
5
5
  var r = class r extends e {
@@ -1 +1 @@
1
- {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/commands/config/doctor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,MAAM,CAAC,OAAO,SAA2D;IACzE,MAAM,CAAC,WAAW,SAC+C;IAE3D,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAS3B"}
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/commands/config/doctor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,MAAM,CAAC,OAAO,SAA2D;IACzE,MAAM,CAAC,WAAW,SAC+C;IAE3D,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAU3B"}
@@ -1,12 +1,12 @@
1
- import { t as e } from "../../base-W7vrLi5E.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
2
  import { a as t } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigDoctor as n } from "@agent-ix/ix-cli-core";
4
4
  //#region src/commands/config/doctor.ts
5
- var r = class extends e {
5
+ var r = class r extends e {
6
6
  static summary = "Report config files that failed to parse or validate.";
7
7
  static description = "A malformed config never blocks a command -- schema defaults are used and the\nproblem is recorded instead. This is where those records surface.";
8
8
  async run() {
9
- t();
9
+ await this.parse(r), t();
10
10
  let { exitCode: e } = await n();
11
11
  process.exitCode = e;
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../src/commands/config/edit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IAClD,MAAM,CAAC,OAAO,SAA0C;IAExD,MAAM,CAAC,QAAQ,WAAyB;IAElC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAI3B"}
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../src/commands/config/edit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IAClD,MAAM,CAAC,OAAO,SAA0C;IAExD,MAAM,CAAC,QAAQ,WAAyB;IAElC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAK3B"}
@@ -1,12 +1,12 @@
1
- import { t as e } from "../../base-W7vrLi5E.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
2
  import { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigEdit as r } from "@agent-ix/ix-cli-core";
4
4
  //#region src/commands/config/edit.ts
5
- var i = class extends e {
5
+ var i = class i extends e {
6
6
  static summary = "Open quoin's config file in $EDITOR.";
7
7
  static examples = ["quoin config edit"];
8
8
  async run() {
9
- t(), await r(n);
9
+ await this.parse(i), t(), await r(n);
10
10
  }
11
11
  };
12
12
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../base-W7vrLi5E.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
2
  import { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigGet as r } from "@agent-ix/ix-cli-core";
4
4
  import { Args as i } from "@oclif/core";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../base-W7vrLi5E.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
2
  import { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigSet as r } from "@agent-ix/ix-cli-core";
4
4
  import { Args as i } from "@oclif/core";
@@ -1,34 +1,35 @@
1
- import { i as e, n as t, o as n, t as r } from "../../quire-UzoK3Azf.js";
2
- import { t as i } from "../../base-W7vrLi5E.js";
3
- import { g as a, o, y as s } from "../../evidence-BA5vyZJk.js";
4
- import { Flags as c } from "@oclif/core";
5
- import { execFileSync as l } from "node:child_process";
1
+ import { a as e, l as t, n, t as r } from "../../quire-BsVj1xIR.js";
2
+ import { t as i } from "../../base-gAClyCNd.js";
3
+ import { g as a, i as o, x as s } from "../../schema-assets-HZWo_iFN.js";
4
+ import "../../evidence-OyqpqHLS.js";
5
+ import { execFileSync as c } from "node:child_process";
6
+ import { Flags as l } from "@oclif/core";
6
7
  //#region src/commands/evidence/affirm.ts
7
8
  var u = class u extends i {
8
9
  static summary = "Re-affirm a binding after the statement it was made against changed.";
9
10
  static description = "A reworded acceptance criterion changes its content hash, which makes every\nbinding on it SUSPECT until somebody says the evidence still discharges the new\nwording. This is that act.\n\nAuto-bind, explicit affirmation: first discharge binds without asking, because\nrequiring a signature on something the evidence already proves puts a gate in\nfront of the common case and teaches people to click through it. Re-affirmation\nis the judgement call, so it stays explicit — and it is recorded with who, at\nwhich commit, and optionally why.\n\nRe-running the test does NOT clear suspicion. If it did, the suspect state would\nclear itself on the next CI run and the detector would never fire.";
10
11
  static examples = ["quoin evidence affirm --obligation FR-001-AC-1 --who @reviewer", "quoin evidence affirm --obligation NFR-006-M-2 --who @reviewer --note 'threshold widened deliberately'"];
11
12
  static flags = {
12
- obligation: c.string({
13
+ obligation: l.string({
13
14
  description: "Obligation id whose binding is being re-affirmed.",
14
15
  required: !0
15
16
  }),
16
- who: c.string({
17
+ who: l.string({
17
18
  description: "Who is affirming. Recorded verbatim.",
18
19
  required: !0
19
20
  }),
20
- note: c.string({ description: "Why the evidence still holds." }),
21
- commit: c.string({ description: "Commit of the affirmation. Defaults to HEAD." }),
22
- repo: c.string({
21
+ note: l.string({ description: "Why the evidence still holds." }),
22
+ commit: l.string({ description: "Commit of the affirmation. Defaults to HEAD." }),
23
+ repo: l.string({
23
24
  description: "Repository root.",
24
25
  default: "."
25
26
  }),
26
- module: c.string({ description: "Module directory supplying the traceability model." }),
27
- json: c.boolean({ description: "Emit the outcome as JSON." })
27
+ module: l.string({ description: "Module directory supplying the traceability model." }),
28
+ json: l.boolean({ description: "Emit the outcome as JSON." })
28
29
  };
29
30
  async run() {
30
- let { flags: i } = await this.parse(u), c = n(r());
31
- c && this.error(c.message, { exit: 2 });
31
+ let { flags: i } = await this.parse(u), l = t(r());
32
+ l && this.error(l.message, { exit: 2 });
32
33
  let d = [
33
34
  "coverage",
34
35
  "--scope",
@@ -36,11 +37,11 @@ var u = class u extends i {
36
37
  "--json"
37
38
  ];
38
39
  i.module && d.push("--module", i.module);
39
- let f = e(t(d));
40
+ let f = e(n(d));
40
41
  f.ok || this.error(f.error.message, { exit: 2 });
41
42
  let p = (f.value.obligations ?? []).find((e) => e.id === i.obligation);
42
43
  p || this.error(`no obligation \`${i.obligation}\` is derived from this spec today. Either the id is wrong, or the requirement it named is gone — in which case the binding should be removed rather than affirmed.`, { exit: 2 });
43
- let m = i.commit ?? l("git", [
44
+ let m = i.commit ?? c("git", [
44
45
  "-C",
45
46
  i.repo,
46
47
  "rev-parse",
@@ -1 +1 @@
1
- {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/audit.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAiB7C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;IACrD,MAAM,CAAC,OAAO,SACmD;IACjE,MAAM,CAAC,WAAW,SAiBuC;IAEzD,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;;;;MA0BV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA6E3B;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM1D;AAsBD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,EAC7B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,KAAK,GAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAuBpC"}
1
+ {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/audit.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAkB7C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;IACrD,MAAM,CAAC,OAAO,SACmD;IACjE,MAAM,CAAC,WAAW,SAiBuC;IAEzD,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;;;;MA0BV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA2F3B;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM1D;AAuBD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,EAC7B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,KAAK,GAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAuBpC"}