@agent-ix/quoin 0.22.5 → 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 (200) hide show
  1. package/dist/{advisor-BkgwDKvQ.js → advisor-B0rESCx1.js} +1 -1
  2. package/dist/{auditor-C3bSmPD_.js → auditor-Dd3i9Aqx.js} +2 -2
  3. package/dist/{base-CqKNs2Kd.js → base-gAClyCNd.js} +1 -1
  4. package/dist/change-assurance/attestations.d.ts +7 -0
  5. package/dist/change-assurance/attestations.d.ts.map +1 -0
  6. package/dist/change-assurance/index.d.ts +14 -0
  7. package/dist/change-assurance/index.d.ts.map +1 -0
  8. package/dist/change-assurance/integrity.d.ts +11 -0
  9. package/dist/change-assurance/integrity.d.ts.map +1 -0
  10. package/dist/change-assurance/records.d.ts +22 -0
  11. package/dist/change-assurance/records.d.ts.map +1 -0
  12. package/dist/change-assurance/schema-assets.d.ts +8 -0
  13. package/dist/change-assurance/schema-assets.d.ts.map +1 -0
  14. package/dist/change-assurance/store.d.ts +18 -0
  15. package/dist/change-assurance/store.d.ts.map +1 -0
  16. package/dist/change-assurance/types.d.ts +180 -0
  17. package/dist/change-assurance/types.d.ts.map +1 -0
  18. package/dist/change-assurance/verify.d.ts +4 -0
  19. package/dist/change-assurance/verify.d.ts.map +1 -0
  20. package/dist/change-assurance-CyKLPeKa.js +1236 -0
  21. package/dist/cli.js +1 -1
  22. package/dist/commands/advise.js +19 -19
  23. package/dist/commands/assurance.js +20 -20
  24. package/dist/commands/catalog/list.js +2 -2
  25. package/dist/commands/catalog/methods.js +3 -3
  26. package/dist/commands/catalog/show.js +2 -2
  27. package/dist/commands/catalog/validate.js +2 -2
  28. package/dist/commands/change-assurance/common.d.ts +37 -0
  29. package/dist/commands/change-assurance/common.d.ts.map +1 -0
  30. package/dist/commands/change-assurance/index.d.ts +8 -0
  31. package/dist/commands/change-assurance/index.d.ts.map +1 -0
  32. package/dist/commands/change-assurance/index.js +12 -0
  33. package/dist/commands/change-assurance/intake.d.ts +15 -0
  34. package/dist/commands/change-assurance/intake.d.ts.map +1 -0
  35. package/dist/commands/change-assurance/intake.js +53 -0
  36. package/dist/commands/change-assurance/receipt.d.ts +21 -0
  37. package/dist/commands/change-assurance/receipt.d.ts.map +1 -0
  38. package/dist/commands/change-assurance/receipt.js +99 -0
  39. package/dist/commands/change-assurance/recover.d.ts +13 -0
  40. package/dist/commands/change-assurance/recover.d.ts.map +1 -0
  41. package/dist/commands/change-assurance/recover.js +29 -0
  42. package/dist/commands/change-assurance/schema.d.ts +13 -0
  43. package/dist/commands/change-assurance/schema.d.ts.map +1 -0
  44. package/dist/commands/change-assurance/schema.js +40 -0
  45. package/dist/commands/change-assurance/seal-attestation.d.ts +15 -0
  46. package/dist/commands/change-assurance/seal-attestation.d.ts.map +1 -0
  47. package/dist/commands/change-assurance/seal-attestation.js +58 -0
  48. package/dist/commands/change-assurance/seal-record.d.ts +14 -0
  49. package/dist/commands/change-assurance/seal-record.d.ts.map +1 -0
  50. package/dist/commands/change-assurance/seal-record.js +53 -0
  51. package/dist/commands/change-assurance/verify-receipt.d.ts +13 -0
  52. package/dist/commands/change-assurance/verify-receipt.d.ts.map +1 -0
  53. package/dist/commands/change-assurance/verify-receipt.js +41 -0
  54. package/dist/commands/completeness.js +2 -2
  55. package/dist/commands/config/doctor.js +1 -1
  56. package/dist/commands/config/edit.js +1 -1
  57. package/dist/commands/config/get.js +1 -1
  58. package/dist/commands/config/set.js +1 -1
  59. package/dist/commands/evidence/affirm.js +19 -19
  60. package/dist/commands/evidence/audit.js +26 -26
  61. package/dist/commands/evidence/baseline.js +21 -21
  62. package/dist/commands/evidence/gc.js +3 -3
  63. package/dist/commands/evidence/index.js +1 -1
  64. package/dist/commands/evidence/inspect-mocks.js +4 -4
  65. package/dist/commands/evidence/record.d.ts.map +1 -1
  66. package/dist/commands/evidence/record.js +28 -24
  67. package/dist/commands/graph/change-impact.d.ts +16 -0
  68. package/dist/commands/graph/change-impact.d.ts.map +1 -0
  69. package/dist/commands/graph/change-impact.js +29 -0
  70. package/dist/commands/graph/churn.d.ts +14 -0
  71. package/dist/commands/graph/churn.d.ts.map +1 -0
  72. package/dist/commands/graph/churn.js +15 -0
  73. package/dist/commands/graph/common.d.ts +16 -0
  74. package/dist/commands/graph/common.d.ts.map +1 -0
  75. package/dist/commands/graph/fan-out.d.ts +14 -0
  76. package/dist/commands/graph/fan-out.d.ts.map +1 -0
  77. package/dist/commands/graph/fan-out.js +15 -0
  78. package/dist/commands/graph/index.d.ts +8 -0
  79. package/dist/commands/graph/index.d.ts.map +1 -0
  80. package/dist/commands/graph/index.js +12 -0
  81. package/dist/commands/matrix.js +1 -1
  82. package/dist/commands/measurement/index.js +1 -1
  83. package/dist/commands/measurement/intervention.d.ts +11 -0
  84. package/dist/commands/measurement/intervention.d.ts.map +1 -0
  85. package/dist/commands/measurement/intervention.js +31 -0
  86. package/dist/commands/measurement/operational-release.d.ts +11 -0
  87. package/dist/commands/measurement/operational-release.d.ts.map +1 -0
  88. package/dist/commands/measurement/operational-release.js +31 -0
  89. package/dist/commands/measurement/record.d.ts.map +1 -1
  90. package/dist/commands/measurement/record.js +12 -11
  91. package/dist/commands/module/ensure-defaults.js +3 -3
  92. package/dist/commands/module/install.js +2 -2
  93. package/dist/commands/module/list.js +2 -2
  94. package/dist/commands/module/remove.js +2 -2
  95. package/dist/commands/report.d.ts +4 -0
  96. package/dist/commands/report.d.ts.map +1 -1
  97. package/dist/commands/report.js +49 -23
  98. package/dist/commands/review.js +1 -1
  99. package/dist/commands/to-plan.js +1 -1
  100. package/dist/commands/update.js +2 -2
  101. package/dist/commands/validate.js +1 -1
  102. package/dist/commands/write.js +3 -3
  103. package/dist/common-B1ZJ8CSO.js +36 -0
  104. package/dist/common-DTrmnvL-.js +35 -0
  105. package/dist/{completeness-DamWradt.js → completeness-BzBuNq6w.js} +1 -1
  106. package/dist/evidence/adapters/contract-conformance.d.ts +16 -0
  107. package/dist/evidence/adapters/contract-conformance.d.ts.map +1 -0
  108. package/dist/evidence/adapters/differential-report.d.ts +18 -0
  109. package/dist/evidence/adapters/differential-report.d.ts.map +1 -0
  110. package/dist/evidence/adapters/registry.d.ts.map +1 -1
  111. package/dist/evidence/adapters/types.d.ts +31 -0
  112. package/dist/evidence/adapters/types.d.ts.map +1 -1
  113. package/dist/evidence/index.d.ts +5 -2
  114. package/dist/evidence/index.d.ts.map +1 -1
  115. package/dist/{evidence-DD0CHzJ0.js → evidence-OyqpqHLS.js} +191 -110
  116. package/dist/{flow-command-BfFNY0Rv.js → flow-command-CCRTE5Oe.js} +7 -7
  117. package/dist/graph-analysis/analysis.d.ts +106 -0
  118. package/dist/graph-analysis/analysis.d.ts.map +1 -0
  119. package/dist/graph-analysis/index.d.ts +6 -0
  120. package/dist/graph-analysis/index.d.ts.map +1 -0
  121. package/dist/graph-analysis/input.d.ts +33 -0
  122. package/dist/graph-analysis/input.d.ts.map +1 -0
  123. package/dist/graph-analysis/load.d.ts +21 -0
  124. package/dist/graph-analysis/load.d.ts.map +1 -0
  125. package/dist/graph-analysis/render.d.ts +4 -0
  126. package/dist/graph-analysis/render.d.ts.map +1 -0
  127. package/dist/graph-analysis-IWaoJJSN.js +657 -0
  128. package/dist/index.d.ts +1 -0
  129. package/dist/index.d.ts.map +1 -1
  130. package/dist/index.js +11 -9
  131. package/dist/measurement/agent-eval-intervention.d.ts +6 -0
  132. package/dist/measurement/agent-eval-intervention.d.ts.map +1 -0
  133. package/dist/measurement/atomic-file.d.ts +5 -0
  134. package/dist/measurement/atomic-file.d.ts.map +1 -0
  135. package/dist/measurement/date-time.d.ts +3 -0
  136. package/dist/measurement/date-time.d.ts.map +1 -0
  137. package/dist/measurement/github-release-operational.d.ts +7 -0
  138. package/dist/measurement/github-release-operational.d.ts.map +1 -0
  139. package/dist/measurement/graph-adapters.d.ts +304 -0
  140. package/dist/measurement/graph-adapters.d.ts.map +1 -0
  141. package/dist/measurement/graph-portfolio-load.d.ts +3 -0
  142. package/dist/measurement/graph-portfolio-load.d.ts.map +1 -0
  143. package/dist/measurement/graph-portfolio.d.ts +158 -0
  144. package/dist/measurement/graph-portfolio.d.ts.map +1 -0
  145. package/dist/measurement/index.d.ts +15 -2
  146. package/dist/measurement/index.d.ts.map +1 -1
  147. package/dist/measurement/intervention-report.d.ts +24 -0
  148. package/dist/measurement/intervention-report.d.ts.map +1 -0
  149. package/dist/measurement/intervention-schema.d.ts +144 -0
  150. package/dist/measurement/intervention-schema.d.ts.map +1 -0
  151. package/dist/measurement/intervention-types.d.ts +105 -0
  152. package/dist/measurement/intervention-types.d.ts.map +1 -0
  153. package/dist/measurement/intervention.d.ts +16 -0
  154. package/dist/measurement/intervention.d.ts.map +1 -0
  155. package/dist/measurement/operational-report.d.ts +17 -0
  156. package/dist/measurement/operational-report.d.ts.map +1 -0
  157. package/dist/measurement/operational-schema.d.ts +461 -0
  158. package/dist/measurement/operational-schema.d.ts.map +1 -0
  159. package/dist/measurement/operational-types.d.ts +121 -0
  160. package/dist/measurement/operational-types.d.ts.map +1 -0
  161. package/dist/measurement/operational.d.ts +13 -0
  162. package/dist/measurement/operational.d.ts.map +1 -0
  163. package/dist/measurement/plans.d.ts +3 -1
  164. package/dist/measurement/plans.d.ts.map +1 -1
  165. package/dist/measurement/portfolio.d.ts +7 -1
  166. package/dist/measurement/portfolio.d.ts.map +1 -1
  167. package/dist/measurement/report.d.ts +4 -0
  168. package/dist/measurement/report.d.ts.map +1 -1
  169. package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +384 -0
  170. package/dist/measurement/store.d.ts +7 -0
  171. package/dist/measurement/store.d.ts.map +1 -1
  172. package/dist/measurement/types.d.ts +2 -0
  173. package/dist/measurement/types.d.ts.map +1 -1
  174. package/dist/measurement-j8sDSqx5.js +2980 -0
  175. package/dist/{modules-ez9httBA.js → modules-DDQkKC4l.js} +2 -2
  176. package/dist/{plugins-C-ta0llj.js → plugins-CHpYhpEI.js} +1 -1
  177. package/dist/quire/assurance.d.ts +109 -0
  178. package/dist/quire/assurance.d.ts.map +1 -0
  179. package/dist/quire/contract.d.ts +2 -1
  180. package/dist/quire/contract.d.ts.map +1 -1
  181. package/dist/quire/index.d.ts +3 -2
  182. package/dist/quire/index.d.ts.map +1 -1
  183. package/dist/quire/validate.d.ts +5 -0
  184. package/dist/quire/validate.d.ts.map +1 -1
  185. package/dist/{quire-D8tCpgyA.js → quire-BsVj1xIR.js} +54 -47
  186. package/dist/schema-assets-HZWo_iFN.js +233 -0
  187. package/dist/schemas/assurance-v1.schema.json +225 -0
  188. package/dist/schemas/change-assurance-record-v1.schema.json +234 -0
  189. package/dist/schemas/operational-evidence-v1.schema.json +381 -0
  190. package/dist/schemas/proof-attestation-v1.schema.json +96 -0
  191. package/dist/schemas/verification-receipt-v1.schema.json +208 -0
  192. package/dist/{version-Dg0e6CZU.js → version-CMxMIh5g.js} +1 -1
  193. package/dist/{write-DElwS9xc.js → write-CGTI0dRO.js} +1 -1
  194. package/package.json +5 -1
  195. package/skills/gap-analysis/references/step-4-underspecified-code.md +36 -7
  196. package/skills/gap-analysis/references/step-5-semantic-review.md +2 -2
  197. package/skills/gap-analysis/references/step-6-specreview-artifact.md +6 -5
  198. package/skills/spec-fuzz/SKILL.md +7 -6
  199. package/dist/measurement-CzB74Q07.js +0 -595
  200. package/dist/store--2sAv12X.js +0 -219
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./version-Dg0e6CZU.js";
1
+ import { n as e, t } from "./version-CMxMIh5g.js";
2
2
  import { fileURLToPath as n } from "node:url";
3
3
  import { loadConfig as r, run as i } from "@agent-ix/ix-cli-core";
4
4
  //#region src/cli.ts
@@ -1,9 +1,9 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../quire-D8tCpgyA.js";
2
- import { t as o } from "../base-CqKNs2Kd.js";
3
- import { f as s, s as c } from "../store--2sAv12X.js";
4
- import { t as l } from "../advisor-BkgwDKvQ.js";
5
- import { a as u, i as d } from "../auditor-C3bSmPD_.js";
6
- import "../evidence-DD0CHzJ0.js";
1
+ import { a as e, l as t, n, o as r, r as i, t as a } from "../quire-BsVj1xIR.js";
2
+ import { t as o } from "../base-gAClyCNd.js";
3
+ import { d as s, g as c } from "../schema-assets-HZWo_iFN.js";
4
+ import "../evidence-OyqpqHLS.js";
5
+ import { t as l } from "../advisor-B0rESCx1.js";
6
+ import { a as u, i as d } from "../auditor-Dd3i9Aqx.js";
7
7
  import { Flags as f } from "@oclif/core";
8
8
  //#region src/advisor/advise.ts
9
9
  var p = [
@@ -132,7 +132,7 @@ function x(e, t) {
132
132
  }
133
133
  //#endregion
134
134
  //#region src/commands/advise.ts
135
- var S = class e extends o {
135
+ var S = class r extends o {
136
136
  static summary = "Recommend a verification method for each obligation, from the catalog.";
137
137
  static description = "The deterministic half of the test-plan advisor (FR-031). Rules match or they do\nnot; where they are inconclusive it says so and stops, rather than guessing.\n\nBefore this, the method table was skill-local prose and `Verification` columns\ndefaulted to Test by habit — nothing ever advised DAST for an attack surface,\nmonitors for a temporal property, or fault injection for a reliability NFR.\n\nObligations come from quire (coverage --json), and each criterion's FR-052\nproperty shape from quire (properties --json), so the advice is over what the\nspec actually states rather than over a document somebody pasted in.\n\nRead the output as a recommendation, never a verdict. An LLM may judge the\nresidue afterwards — labelled as judgement (the FR-042 / ADR-0010 discipline).";
138
138
  static examples = [
@@ -151,9 +151,9 @@ var S = class e extends o {
151
151
  json: f.boolean({ description: "Emit the advice as JSON." })
152
152
  };
153
153
  async run() {
154
- let { flags: i } = await this.parse(e), o = r(a());
154
+ let { flags: i } = await this.parse(r), o = t(a());
155
155
  o && this.error(o.message, { exit: 2 });
156
- let u = t(n(((e) => {
156
+ let u = e(n(((e) => {
157
157
  let t = [
158
158
  e,
159
159
  "--scope",
@@ -168,7 +168,7 @@ var S = class e extends o {
168
168
  for (let e of d.unreadable) this.warn(`skipped ${e.moduleRoot}: ${e.reason}`);
169
169
  let f = C(i.repo), p = u.value.obligations ?? [];
170
170
  p.length > 0 && f.size === 0 && this.warn("no property shapes were read, so recommendations rest on statement text alone. `quire properties` resolves archetypes from the whole installed module set; check that the modules declaring FR/NFR/StR are installed (quoin module list).");
171
- let m = s(i.repo).bindings, h = c(i.repo), g = v(u.value.diagnostics);
171
+ let m = c(i.repo).bindings, h = s(i.repo), g = v(u.value.diagnostics);
172
172
  g.degraded && this.warn("engine predates vocabulary classification: this quire's `uncatalogued-verification-method` diagnostics carry no `value`, so an authored method the catalog never declared cannot be told from a genuine disagreement. Every disagreement is reported as a mismatch, as before. Update quire-cli to restore the three-state split (quire-rs CR-091).");
173
173
  let y = p.map((e) => _(d, T(e, f.get(e.id), w(e.id, m, h), g))), b = [];
174
174
  i["mismatch-only"] && b.push((e) => e.mismatch), i["inconclusive-only"] && b.push((e) => e.inconclusive);
@@ -189,22 +189,22 @@ var S = class e extends o {
189
189
  this.log(`${e.length} of ${t.length} obligation(s) shown. Of all ${t.length}: ${n((e) => e.mismatch)} mismatch, ${n((e) => e.uncatalogued)} uncatalogued, ${n((e) => e.inconclusive)} inconclusive. Recommendations, not verdicts: confirm the method in spec review.`);
190
190
  }
191
191
  };
192
- function C(t) {
193
- let n = [
192
+ function C(e) {
193
+ let t = [
194
194
  "properties",
195
195
  "spec/**/*.md",
196
196
  "--scope",
197
- t,
197
+ e,
198
198
  "--json"
199
- ], r = /* @__PURE__ */ new Map(), a = i(n);
200
- if (!a.stdout.trim()) return r;
201
- let o = e(a.stdout);
202
- if (!o.ok) return r;
203
- for (let e of o.value.documents) for (let t of e.criteria) t.row_id && r.set(t.row_id, {
199
+ ], n = /* @__PURE__ */ new Map(), a = i(t);
200
+ if (!a.stdout.trim()) return n;
201
+ let o = r(a.stdout);
202
+ if (!o.ok) return n;
203
+ for (let e of o.value.documents) for (let t of e.criteria) t.row_id && n.set(t.row_id, {
204
204
  property: t.property,
205
205
  archetype: e.archetype
206
206
  });
207
- return r;
207
+ return n;
208
208
  }
209
209
  function w(e, t, n) {
210
210
  let r = t.filter((t) => t.obligation === e);
@@ -1,12 +1,12 @@
1
- import { i as e, n as t, o as n, t as r } from "../quire-D8tCpgyA.js";
2
- import { t as i } from "../base-CqKNs2Kd.js";
3
- import { c as a, f as o, o as s, u as c } from "../store--2sAv12X.js";
4
- import { t as l } from "../advisor-BkgwDKvQ.js";
5
- import { t as u } from "../auditor-C3bSmPD_.js";
6
- import { n as d } from "../evidence-DD0CHzJ0.js";
7
- import { n as f } from "../completeness-DamWradt.js";
8
- import { Flags as p } from "@oclif/core";
9
- import { execFileSync as m } 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 { f as a, g as o, m as s, u as c } from "../schema-assets-HZWo_iFN.js";
4
+ import { n as l } from "../evidence-OyqpqHLS.js";
5
+ import { t as u } from "../advisor-B0rESCx1.js";
6
+ import { t as d } from "../auditor-Dd3i9Aqx.js";
7
+ import { n as f } from "../completeness-BzBuNq6w.js";
8
+ import { execFileSync as p } from "node:child_process";
9
+ import { Flags as m } from "@oclif/core";
10
10
  //#region src/assurance/graph.ts
11
11
  var h = /* @__PURE__ */ new Set([
12
12
  "traces_to",
@@ -134,19 +134,19 @@ var O = class a extends i {
134
134
  "quoin assurance > docs/assurance.md"
135
135
  ];
136
136
  static flags = {
137
- repo: p.string({
137
+ repo: m.string({
138
138
  description: "Repository root.",
139
139
  default: "."
140
140
  }),
141
- module: p.string({ description: "Module directory supplying the traceability model." }),
142
- "claim-type": p.string({
141
+ module: m.string({ description: "Module directory supplying the traceability model." }),
142
+ "claim-type": m.string({
143
143
  description: "Artifact type that is a top-level claim. Repeatable; matched case-insensitively. REPLACES the StR default rather than adding to it — pass --claim-type StR as well if StRs should stay claims. A safety or security bundle argues from a declared hazard or threat.",
144
144
  multiple: !0
145
145
  }),
146
- json: p.boolean({ description: "Emit the case as JSON." })
146
+ json: m.boolean({ description: "Emit the case as JSON." })
147
147
  };
148
148
  async run() {
149
- let { flags: i } = await this.parse(a), s = n(r());
149
+ let { flags: i } = await this.parse(a), s = t(r());
150
150
  s && this.error(s.message, { exit: 2 });
151
151
  let c = [
152
152
  "coverage",
@@ -155,16 +155,16 @@ var O = class a extends i {
155
155
  "--json"
156
156
  ];
157
157
  i.module && c.push("--module", i.module);
158
- let p = e(t(c));
158
+ let p = e(n(c));
159
159
  p.ok || this.error(p.error.message, { exit: 2 });
160
- let m = p.value.obligations ?? [], h = k(i.repo), _ = d(i.repo, h), v = u({
160
+ let m = p.value.obligations ?? [], h = k(i.repo), _ = l(i.repo, h), v = d({
161
161
  obligations: m,
162
162
  bindings: o(i.repo).bindings,
163
163
  runs: j(i.repo),
164
164
  scans: A(i.repo),
165
165
  injections: _.injections,
166
166
  mockInspectionSuites: _.suites,
167
- catalog: l(i.module ? [i.module] : void 0)
167
+ catalog: u(i.module ? [i.module] : void 0)
168
168
  }), y = f(`${i.repo}/spec`), b = g({
169
169
  documents: y.documents,
170
170
  obligations: m,
@@ -177,7 +177,7 @@ var O = class a extends i {
177
177
  };
178
178
  function k(e) {
179
179
  try {
180
- return m("git", [
180
+ return p("git", [
181
181
  "-C",
182
182
  e,
183
183
  "rev-parse",
@@ -195,10 +195,10 @@ function k(e) {
195
195
  }
196
196
  }
197
197
  function A(e) {
198
- return c(e).map((t) => a(e, t)).filter((e) => e !== null);
198
+ return s(e).map((t) => a(e, t)).filter((e) => e !== null);
199
199
  }
200
200
  function j(e) {
201
- return c(e).map((t) => s(e, t)).filter((e) => e !== null);
201
+ return s(e).map((t) => c(e, t)).filter((e) => e !== null);
202
202
  }
203
203
  //#endregion
204
204
  export { O as default };
@@ -1,5 +1,5 @@
1
- import { o as e, t } from "../../base-CqKNs2Kd.js";
2
- import { n } from "../../modules-ez9httBA.js";
1
+ import { o as e, t } from "../../base-gAClyCNd.js";
2
+ import { n } from "../../modules-DDQkKC4l.js";
3
3
  import { Flags as r } from "@oclif/core";
4
4
  //#region src/commands/catalog/list.ts
5
5
  var i = class i extends t {
@@ -1,6 +1,6 @@
1
- import { t as e } from "../../base-CqKNs2Kd.js";
2
- import { n as t } from "../../modules-ez9httBA.js";
3
- import { n, t as r } from "../../advisor-BkgwDKvQ.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { n as t } from "../../modules-DDQkKC4l.js";
3
+ import { n, t as r } from "../../advisor-B0rESCx1.js";
4
4
  import { Flags as i } from "@oclif/core";
5
5
  //#region src/commands/catalog/methods.ts
6
6
  var a = class a extends e {
@@ -1,5 +1,5 @@
1
- import { i as e, o as t, t as n } from "../../base-CqKNs2Kd.js";
2
- import { n as r } from "../../modules-ez9httBA.js";
1
+ import { i as e, o as t, t as n } from "../../base-gAClyCNd.js";
2
+ import { n as r } from "../../modules-DDQkKC4l.js";
3
3
  import { Args as i, Flags as a } from "@oclif/core";
4
4
  //#region src/commands/catalog/show.ts
5
5
  var o = class o extends n {
@@ -1,5 +1,5 @@
1
- import { o as e, t } from "../../base-CqKNs2Kd.js";
2
- import { n } from "../../modules-ez9httBA.js";
1
+ import { o as e, t } from "../../base-gAClyCNd.js";
2
+ import { n } from "../../modules-DDQkKC4l.js";
3
3
  import { Flags as r } from "@oclif/core";
4
4
  //#region src/commands/catalog/validate.ts
5
5
  var i = class i extends t {
@@ -0,0 +1,37 @@
1
+ /** Repository root holding the evidence store. */
2
+ export declare const repoFlag: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
3
+ /** Canonical machine output. */
4
+ export declare const jsonFlag: import('@oclif/core/interfaces').BooleanFlag<boolean>;
5
+ /**
6
+ * Read one command input as exact bytes. `-` reads standard input.
7
+ *
8
+ * The bytes are returned unmodified so intake can retain what the producer
9
+ * actually supplied rather than a re-serialized copy of it.
10
+ */
11
+ export declare function readInputBytes(source: string): Uint8Array;
12
+ /**
13
+ * Read one command input as strictly parsed JSON.
14
+ *
15
+ * Strict parsing is the same reader the sealed contracts use, so a duplicate
16
+ * key or a non-finite number is refused here rather than silently normalized
17
+ * into a record that then seals cleanly.
18
+ */
19
+ export declare function readInputJson(source: string): unknown;
20
+ /** Canonical JCS text for machine output, with a trailing newline. */
21
+ export declare function canonicalOutput(value: unknown): string;
22
+ /** The message of an unknown thrown value, for a `this.error` hand-off. */
23
+ export declare function messageOf(error: unknown): string;
24
+ /**
25
+ * Refuse a body that supplies a field the caller must not state.
26
+ *
27
+ * The sealing functions delete a supplied `digest` before hashing, so without
28
+ * this check a caller could hand in a wrong digest and receive a cleanly
29
+ * sealed record back, having been told nothing.
30
+ */
31
+ export declare function refuseSuppliedFields(value: unknown, fields: readonly string[]): string | null;
32
+ /** Parse one repeated `--select <proof-id>=<attestation-digest>` mapping. */
33
+ export declare function parseSelection(raw: string): {
34
+ proof_id: string;
35
+ attestation_digest: string;
36
+ } | null;
37
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/commands/change-assurance/common.ts"],"names":[],"mappings":"AASA,kDAAkD;AAClD,eAAO,MAAM,QAAQ,qGAGnB,CAAC;AAEH,gCAAgC;AAChC,eAAO,MAAM,QAAQ,uDAAyD,CAAC;AAE/E;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAEzD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,sEAAsE;AACtE,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEtD;AAED,2EAA2E;AAC3E,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,SAAS,MAAM,EAAE,GACxB,MAAM,GAAG,IAAI,CASf;AAED,6EAA6E;AAC7E,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,GACV;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAOzD"}
@@ -0,0 +1,8 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ChangeAssurance 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/change-assurance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,YAAY;IACvD,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAC+D;IAC7E,MAAM,CAAC,WAAW,SAmBqB;IAEjC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAI3B"}
@@ -0,0 +1,12 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ //#region src/commands/change-assurance/index.ts
3
+ var t = class t extends e {
4
+ skipUpdateNudge = !0;
5
+ static summary = "Form, retain, and verify change-assurance evidence from explicit inputs.";
6
+ static description = "Producer-facing surface over the FR-063 record, FR-064 proof attestation,\nretained-output intake, and FR-065 verification receipt contracts (FR-068).\n\nThese commands transcribe and verify what a producer supplies. None of them\nruns the command an attestation describes, spawns a process, invokes Git, or\nperforms a network request. Digests establish content integrity and recorded\nactor labels are attribution only; nothing here establishes authorization or\nnon-repudiation, and no output is a certification.\n\nSubcommands:\n quoin change-assurance seal-record\n quoin change-assurance seal-attestation\n quoin change-assurance intake\n quoin change-assurance receipt\n quoin change-assurance verify-receipt\n quoin change-assurance schema\n quoin change-assurance recover\n\nExit status: 0 for a valid receipt, 1 for an invalid or incomplete one, and 2\nfor a usage, parse, or integrity error.";
7
+ async run() {
8
+ await this.parse(t), this.log(t.description);
9
+ }
10
+ };
11
+ //#endregion
12
+ export { t as default };
@@ -0,0 +1,15 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ChangeAssuranceIntake extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ static examples: string[];
7
+ static flags: {
8
+ attestation: 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
+ repo: 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=intake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intake.d.ts","sourceRoot":"","sources":["../../../src/commands/change-assurance/intake.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAU7C,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,YAAY;IAC7D,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SACqD;IACnE,MAAM,CAAC,WAAW,SAY+C;IAEjE,MAAM,CAAC,QAAQ,WAEb;IAEF,MAAM,CAAC,KAAK;;;;;MAaV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAoC3B"}
@@ -0,0 +1,53 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { o as t } from "../../change-assurance-CyKLPeKa.js";
3
+ import { a as n, c as r, n as i, r as a, t as o } from "../../common-B1ZJ8CSO.js";
4
+ import { Flags as s } from "@oclif/core";
5
+ //#region src/commands/change-assurance/intake.ts
6
+ var c = class c extends e {
7
+ skipUpdateNudge = !0;
8
+ static summary = "Retain an exact sealed attestation and its exact output bytes.";
9
+ static description = "Verifies ONE sealed attestation against the bytes it claims and retains the\npair atomically: either both the attestation JSON and the output file become\nvisible together, or neither does.\n\nThe retained attestation is the canonical form of what was supplied and the\nretained output is byte-for-byte the file named by --output. A recorded digest\nor size that contradicts those bytes is refused and nothing is retained.\n\nRe-running with byte-identical inputs succeeds and retains nothing new. The\nsame digest with different bytes is a collision and is refused.\n\nAn interrupted intake leaves an invisible staging directory that is never read\nas an attestation; `quoin change-assurance recover` removes it.";
10
+ static examples = ["quoin change-assurance intake --attestation attestation.json --output junit.xml --json"];
11
+ static flags = {
12
+ attestation: s.string({
13
+ description: "Exact sealed attestation JSON. `-` reads stdin.",
14
+ required: !0
15
+ }),
16
+ output: s.string({
17
+ description: "Exact retained result file the attestation names. Its bytes are retained and re-hashed; it is never executed.",
18
+ required: !0
19
+ }),
20
+ repo: r,
21
+ json: i
22
+ };
23
+ async run() {
24
+ let { flags: e } = await this.parse(c), r;
25
+ try {
26
+ r = n(e.attestation);
27
+ } catch (t) {
28
+ this.error(`cannot read --attestation ${e.attestation}: ${a(t)}`, { exit: 2 });
29
+ }
30
+ let i;
31
+ try {
32
+ i = n(e.output);
33
+ } catch (t) {
34
+ this.error(`cannot read --output ${e.output}: ${a(t)}`, { exit: 2 });
35
+ }
36
+ let s;
37
+ try {
38
+ s = t(e.repo, r, i);
39
+ } catch (e) {
40
+ this.error(`cannot retain attestation: ${a(e)}`, { exit: 2 });
41
+ }
42
+ if (e.json) {
43
+ this.log(o({
44
+ directory: s,
45
+ size_bytes: i.byteLength
46
+ }));
47
+ return;
48
+ }
49
+ this.log(`retained attestation → ${s}`), this.log(` output bytes: ${i.byteLength}`);
50
+ }
51
+ };
52
+ //#endregion
53
+ export { c as default };
@@ -0,0 +1,21 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ChangeAssuranceReceipt extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ static examples: string[];
7
+ static flags: {
8
+ record: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
+ "candidate-revision": import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
10
+ parent: import('@oclif/core/interfaces').OptionFlag<string[], import('@oclif/core/interfaces').CustomOptions>;
11
+ select: import('@oclif/core/interfaces').OptionFlag<string[], import('@oclif/core/interfaces').CustomOptions>;
12
+ decisions: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
13
+ audits: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
14
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
15
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
16
+ };
17
+ run(): Promise<void>;
18
+ /** Read one stored record, refusing an unknown digest rather than skipping it. */
19
+ private storedRecord;
20
+ }
21
+ //# sourceMappingURL=receipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../../../src/commands/change-assurance/receipt.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAoB7C,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,YAAY;IAC9D,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SACoD;IAClE,MAAM,CAAC,WAAW,SAe6B;IAE/C,MAAM,CAAC,QAAQ,WAEb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;MAuCV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA6G1B,kFAAkF;IAClF,OAAO,CAAC,YAAY;CAoBrB"}
@@ -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"}