@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.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/default-modules.yaml +18 -2
- package/dist/{advisor-BiKhR9Yp.js → advisor-B0rESCx1.js} +1 -1
- package/dist/auditor/audit.d.ts +23 -18
- package/dist/auditor/audit.d.ts.map +1 -1
- package/dist/auditor/index.d.ts +2 -1
- package/dist/auditor/index.d.ts.map +1 -1
- package/dist/{auditor-ww0MC62a.js → auditor-Dd3i9Aqx.js} +82 -65
- package/dist/{base-W7vrLi5E.js → base-gAClyCNd.js} +1 -1
- package/dist/change-assurance/attestations.d.ts +7 -0
- package/dist/change-assurance/attestations.d.ts.map +1 -0
- package/dist/change-assurance/index.d.ts +14 -0
- package/dist/change-assurance/index.d.ts.map +1 -0
- package/dist/change-assurance/integrity.d.ts +11 -0
- package/dist/change-assurance/integrity.d.ts.map +1 -0
- package/dist/change-assurance/records.d.ts +22 -0
- package/dist/change-assurance/records.d.ts.map +1 -0
- package/dist/change-assurance/schema-assets.d.ts +8 -0
- package/dist/change-assurance/schema-assets.d.ts.map +1 -0
- package/dist/change-assurance/store.d.ts +18 -0
- package/dist/change-assurance/store.d.ts.map +1 -0
- package/dist/change-assurance/types.d.ts +180 -0
- package/dist/change-assurance/types.d.ts.map +1 -0
- package/dist/change-assurance/verify.d.ts +4 -0
- package/dist/change-assurance/verify.d.ts.map +1 -0
- package/dist/change-assurance-CyKLPeKa.js +1236 -0
- package/dist/cli.js +1 -1
- package/dist/commands/advise.js +27 -26
- package/dist/commands/assurance.d.ts.map +1 -1
- package/dist/commands/assurance.js +84 -61
- package/dist/commands/catalog/list.js +2 -2
- package/dist/commands/catalog/methods.js +3 -3
- package/dist/commands/catalog/show.js +2 -2
- package/dist/commands/catalog/validate.js +2 -2
- package/dist/commands/change-assurance/common.d.ts +37 -0
- package/dist/commands/change-assurance/common.d.ts.map +1 -0
- package/dist/commands/change-assurance/index.d.ts +8 -0
- package/dist/commands/change-assurance/index.d.ts.map +1 -0
- package/dist/commands/change-assurance/index.js +12 -0
- package/dist/commands/change-assurance/intake.d.ts +15 -0
- package/dist/commands/change-assurance/intake.d.ts.map +1 -0
- package/dist/commands/change-assurance/intake.js +53 -0
- package/dist/commands/change-assurance/receipt.d.ts +21 -0
- package/dist/commands/change-assurance/receipt.d.ts.map +1 -0
- package/dist/commands/change-assurance/receipt.js +99 -0
- package/dist/commands/change-assurance/recover.d.ts +13 -0
- package/dist/commands/change-assurance/recover.d.ts.map +1 -0
- package/dist/commands/change-assurance/recover.js +29 -0
- package/dist/commands/change-assurance/schema.d.ts +13 -0
- package/dist/commands/change-assurance/schema.d.ts.map +1 -0
- package/dist/commands/change-assurance/schema.js +40 -0
- package/dist/commands/change-assurance/seal-attestation.d.ts +15 -0
- package/dist/commands/change-assurance/seal-attestation.d.ts.map +1 -0
- package/dist/commands/change-assurance/seal-attestation.js +58 -0
- package/dist/commands/change-assurance/seal-record.d.ts +14 -0
- package/dist/commands/change-assurance/seal-record.d.ts.map +1 -0
- package/dist/commands/change-assurance/seal-record.js +53 -0
- package/dist/commands/change-assurance/verify-receipt.d.ts +13 -0
- package/dist/commands/change-assurance/verify-receipt.d.ts.map +1 -0
- package/dist/commands/change-assurance/verify-receipt.js +41 -0
- package/dist/commands/completeness.js +2 -2
- package/dist/commands/config/doctor.d.ts.map +1 -1
- package/dist/commands/config/doctor.js +3 -3
- package/dist/commands/config/edit.d.ts.map +1 -1
- package/dist/commands/config/edit.js +3 -3
- package/dist/commands/config/get.js +1 -1
- package/dist/commands/config/set.js +1 -1
- package/dist/commands/evidence/affirm.js +17 -16
- package/dist/commands/evidence/audit.d.ts.map +1 -1
- package/dist/commands/evidence/audit.js +55 -43
- package/dist/commands/evidence/baseline.d.ts.map +1 -1
- package/dist/commands/evidence/baseline.js +50 -40
- package/dist/commands/evidence/gc.js +3 -2
- package/dist/commands/evidence/index.js +1 -1
- package/dist/commands/evidence/inspect-mocks.d.ts +16 -0
- package/dist/commands/evidence/inspect-mocks.d.ts.map +1 -0
- package/dist/commands/evidence/inspect-mocks.js +49 -0
- package/dist/commands/evidence/record.d.ts +1 -0
- package/dist/commands/evidence/record.d.ts.map +1 -1
- package/dist/commands/evidence/record.js +48 -33
- package/dist/commands/graph/change-impact.d.ts +16 -0
- package/dist/commands/graph/change-impact.d.ts.map +1 -0
- package/dist/commands/graph/change-impact.js +29 -0
- package/dist/commands/graph/churn.d.ts +14 -0
- package/dist/commands/graph/churn.d.ts.map +1 -0
- package/dist/commands/graph/churn.js +15 -0
- package/dist/commands/graph/common.d.ts +16 -0
- package/dist/commands/graph/common.d.ts.map +1 -0
- package/dist/commands/graph/fan-out.d.ts +14 -0
- package/dist/commands/graph/fan-out.d.ts.map +1 -0
- package/dist/commands/graph/fan-out.js +15 -0
- package/dist/commands/graph/index.d.ts +8 -0
- package/dist/commands/graph/index.d.ts.map +1 -0
- package/dist/commands/graph/index.js +12 -0
- package/dist/commands/matrix.js +1 -1
- package/dist/commands/measurement/index.d.ts +7 -0
- package/dist/commands/measurement/index.d.ts.map +1 -0
- package/dist/commands/measurement/index.js +11 -0
- package/dist/commands/measurement/intervention.d.ts +11 -0
- package/dist/commands/measurement/intervention.d.ts.map +1 -0
- package/dist/commands/measurement/intervention.js +31 -0
- package/dist/commands/measurement/operational-release.d.ts +11 -0
- package/dist/commands/measurement/operational-release.d.ts.map +1 -0
- package/dist/commands/measurement/operational-release.js +31 -0
- package/dist/commands/measurement/record.d.ts +10 -0
- package/dist/commands/measurement/record.d.ts.map +1 -0
- package/dist/commands/measurement/record.js +36 -0
- package/dist/commands/module/ensure-defaults.js +3 -3
- package/dist/commands/module/install.js +2 -2
- package/dist/commands/module/list.js +2 -2
- package/dist/commands/module/remove.js +2 -2
- package/dist/commands/report.d.ts +19 -0
- package/dist/commands/report.d.ts.map +1 -0
- package/dist/commands/report.js +96 -0
- package/dist/commands/review.js +1 -1
- package/dist/commands/to-plan.js +1 -1
- package/dist/commands/update.js +2 -2
- package/dist/commands/validate.d.ts +13 -0
- package/dist/commands/validate.d.ts.map +1 -0
- package/dist/commands/validate.js +123 -0
- package/dist/commands/write.js +3 -3
- package/dist/common-B1ZJ8CSO.js +36 -0
- package/dist/common-DTrmnvL-.js +35 -0
- package/dist/{completeness-BQDxME0a.js → completeness-BzBuNq6w.js} +1 -1
- package/dist/evidence/adapters/contract-conformance.d.ts +16 -0
- package/dist/evidence/adapters/contract-conformance.d.ts.map +1 -0
- package/dist/evidence/adapters/differential-report.d.ts +18 -0
- package/dist/evidence/adapters/differential-report.d.ts.map +1 -0
- package/dist/evidence/adapters/registry.d.ts.map +1 -1
- package/dist/evidence/adapters/types.d.ts +31 -0
- package/dist/evidence/adapters/types.d.ts.map +1 -1
- package/dist/evidence/index.d.ts +7 -3
- package/dist/evidence/index.d.ts.map +1 -1
- package/dist/evidence/mock-inspection.d.ts +16 -0
- package/dist/evidence/mock-inspection.d.ts.map +1 -0
- package/dist/evidence/store.d.ts +11 -1
- package/dist/evidence/store.d.ts.map +1 -1
- package/dist/evidence/types.d.ts +31 -0
- package/dist/evidence/types.d.ts.map +1 -1
- package/dist/evidence-OyqpqHLS.js +614 -0
- package/dist/{flow-command-C_dUJNm-.js → flow-command-CCRTE5Oe.js} +7 -7
- package/dist/graph-analysis/analysis.d.ts +106 -0
- package/dist/graph-analysis/analysis.d.ts.map +1 -0
- package/dist/graph-analysis/index.d.ts +6 -0
- package/dist/graph-analysis/index.d.ts.map +1 -0
- package/dist/graph-analysis/input.d.ts +33 -0
- package/dist/graph-analysis/input.d.ts.map +1 -0
- package/dist/graph-analysis/load.d.ts +21 -0
- package/dist/graph-analysis/load.d.ts.map +1 -0
- package/dist/graph-analysis/render.d.ts +4 -0
- package/dist/graph-analysis/render.d.ts.map +1 -0
- package/dist/graph-analysis-IWaoJJSN.js +657 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -8
- package/dist/measurement/agent-eval-intervention.d.ts +6 -0
- package/dist/measurement/agent-eval-intervention.d.ts.map +1 -0
- package/dist/measurement/atomic-file.d.ts +5 -0
- package/dist/measurement/atomic-file.d.ts.map +1 -0
- package/dist/measurement/compare.d.ts +4 -0
- package/dist/measurement/compare.d.ts.map +1 -0
- package/dist/measurement/date-time.d.ts +3 -0
- package/dist/measurement/date-time.d.ts.map +1 -0
- package/dist/measurement/github-release-operational.d.ts +7 -0
- package/dist/measurement/github-release-operational.d.ts.map +1 -0
- package/dist/measurement/graph-adapters.d.ts +304 -0
- package/dist/measurement/graph-adapters.d.ts.map +1 -0
- package/dist/measurement/graph-portfolio-load.d.ts +3 -0
- package/dist/measurement/graph-portfolio-load.d.ts.map +1 -0
- package/dist/measurement/graph-portfolio.d.ts +158 -0
- package/dist/measurement/graph-portfolio.d.ts.map +1 -0
- package/dist/measurement/index.d.ts +22 -0
- package/dist/measurement/index.d.ts.map +1 -0
- package/dist/measurement/intervention-report.d.ts +24 -0
- package/dist/measurement/intervention-report.d.ts.map +1 -0
- package/dist/measurement/intervention-schema.d.ts +144 -0
- package/dist/measurement/intervention-schema.d.ts.map +1 -0
- package/dist/measurement/intervention-types.d.ts +105 -0
- package/dist/measurement/intervention-types.d.ts.map +1 -0
- package/dist/measurement/intervention.d.ts +16 -0
- package/dist/measurement/intervention.d.ts.map +1 -0
- package/dist/measurement/operational-report.d.ts +17 -0
- package/dist/measurement/operational-report.d.ts.map +1 -0
- package/dist/measurement/operational-schema.d.ts +461 -0
- package/dist/measurement/operational-schema.d.ts.map +1 -0
- package/dist/measurement/operational-types.d.ts +121 -0
- package/dist/measurement/operational-types.d.ts.map +1 -0
- package/dist/measurement/operational.d.ts +13 -0
- package/dist/measurement/operational.d.ts.map +1 -0
- package/dist/measurement/plans.d.ts +6 -0
- package/dist/measurement/plans.d.ts.map +1 -0
- package/dist/measurement/portfolio.d.ts +54 -0
- package/dist/measurement/portfolio.d.ts.map +1 -0
- package/dist/measurement/profiles.d.ts +9 -0
- package/dist/measurement/profiles.d.ts.map +1 -0
- package/dist/measurement/report.d.ts +48 -0
- package/dist/measurement/report.d.ts.map +1 -0
- package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +384 -0
- package/dist/measurement/store.d.ts +14 -0
- package/dist/measurement/store.d.ts.map +1 -0
- package/dist/measurement/types.d.ts +85 -0
- package/dist/measurement/types.d.ts.map +1 -0
- package/dist/measurement/validate.d.ts +9 -0
- package/dist/measurement/validate.d.ts.map +1 -0
- package/dist/measurement-j8sDSqx5.js +2980 -0
- package/dist/{modules-Cn9Htfp0.js → modules-DDQkKC4l.js} +2 -2
- package/dist/{plugins-Byi1bWLD.js → plugins-CHpYhpEI.js} +1 -1
- package/dist/quire/assurance.d.ts +109 -0
- package/dist/quire/assurance.d.ts.map +1 -0
- package/dist/quire/contract.d.ts +12 -12
- package/dist/quire/contract.d.ts.map +1 -1
- package/dist/quire/exec.d.ts +10 -0
- package/dist/quire/exec.d.ts.map +1 -1
- package/dist/quire/index.d.ts +4 -3
- package/dist/quire/index.d.ts.map +1 -1
- package/dist/quire/types.d.ts +119 -1
- package/dist/quire/types.d.ts.map +1 -1
- package/dist/quire/validate.d.ts +5 -0
- package/dist/quire/validate.d.ts.map +1 -1
- package/dist/{quire-UzoK3Azf.js → quire-BsVj1xIR.js} +533 -499
- package/dist/schema-assets-HZWo_iFN.js +233 -0
- package/dist/schemas/assurance-v1.schema.json +225 -0
- package/dist/schemas/change-assurance-record-v1.schema.json +234 -0
- package/dist/schemas/coverage-v1.schema.json +919 -105
- package/dist/schemas/operational-evidence-v1.schema.json +381 -0
- package/dist/schemas/proof-attestation-v1.schema.json +96 -0
- package/dist/schemas/properties-v1.schema.json +25 -0
- package/dist/schemas/verification-receipt-v1.schema.json +208 -0
- package/dist/validators/gates.d.ts +18 -0
- package/dist/validators/gates.d.ts.map +1 -0
- package/dist/validators/index.d.ts +2 -0
- package/dist/validators/index.d.ts.map +1 -0
- package/dist/{version-BMXhyIie.js → version-CMxMIh5g.js} +1 -1
- package/dist/{write-BDxILTLC.js → write-CGTI0dRO.js} +1 -1
- package/package.json +26 -16
- package/skills/assurance-status-report/SKILL.md +135 -0
- package/skills/assurance-status-report/references/report-contract.md +110 -0
- package/skills/gap-analysis/references/step-4-underspecified-code.md +36 -7
- package/skills/gap-analysis/references/step-5-semantic-review.md +2 -2
- package/skills/gap-analysis/references/step-6-specreview-artifact.md +6 -5
- package/skills/spec-architecture-evaluation/SKILL.md +30 -0
- package/skills/spec-fuzz/SKILL.md +7 -6
- package/dist/evidence-BA5vyZJk.js +0 -603
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e } from "./base-
|
|
2
|
-
import { t } from "./plugins-
|
|
1
|
+
import { a as e } from "./base-gAClyCNd.js";
|
|
2
|
+
import { t } from "./plugins-CHpYhpEI.js";
|
|
3
3
|
import { fileURLToPath as n } from "node:url";
|
|
4
4
|
import { readFileSync as r } from "node:fs";
|
|
5
5
|
import { dirname as i, join as a } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, r as t } from "./base-
|
|
1
|
+
import { a as e, r as t } from "./base-gAClyCNd.js";
|
|
2
2
|
import { existsSync as n, readFileSync as r, rmSync as i } from "node:fs";
|
|
3
3
|
import { basename as a, join as o } from "node:path";
|
|
4
4
|
import { parse as s } from "yaml";
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed consumer model for quire-rs's assurance-v1 export (FR-062).
|
|
3
|
+
*
|
|
4
|
+
* The JSON Schema is authoritative. These types describe the value only after
|
|
5
|
+
* schema and caller-premise validation have both succeeded.
|
|
6
|
+
*/
|
|
7
|
+
export interface AssuranceSource {
|
|
8
|
+
repository: string;
|
|
9
|
+
revision: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AssuranceSchemaPremise {
|
|
12
|
+
archetype: string;
|
|
13
|
+
schema_digest: string;
|
|
14
|
+
}
|
|
15
|
+
export interface AssuranceModulePremise {
|
|
16
|
+
name: string;
|
|
17
|
+
version: string;
|
|
18
|
+
schemas: AssuranceSchemaPremise[];
|
|
19
|
+
}
|
|
20
|
+
export interface AcceptedAssurancePremises {
|
|
21
|
+
format: "quire-assurance";
|
|
22
|
+
format_version: 1;
|
|
23
|
+
modules: AssuranceModulePremise[];
|
|
24
|
+
}
|
|
25
|
+
export interface AssuranceLocator {
|
|
26
|
+
path: string;
|
|
27
|
+
line: number;
|
|
28
|
+
digest: string;
|
|
29
|
+
}
|
|
30
|
+
export interface AssuranceArtifact {
|
|
31
|
+
id: string;
|
|
32
|
+
uuid?: string;
|
|
33
|
+
artifact_type: string;
|
|
34
|
+
locator: AssuranceLocator;
|
|
35
|
+
}
|
|
36
|
+
export interface AssuranceObligation {
|
|
37
|
+
source: string;
|
|
38
|
+
id: string;
|
|
39
|
+
document: string;
|
|
40
|
+
statement: string;
|
|
41
|
+
statement_hash: string;
|
|
42
|
+
method?: string;
|
|
43
|
+
parameters?: Record<string, string>;
|
|
44
|
+
criticality?: string;
|
|
45
|
+
target_ids: string[];
|
|
46
|
+
locator: AssuranceLocator;
|
|
47
|
+
}
|
|
48
|
+
export interface AssuranceSymbol {
|
|
49
|
+
id: string;
|
|
50
|
+
language: "rust" | "python" | "typescript";
|
|
51
|
+
kind: "function" | "test_function" | "container" | "benchmark" | "fuzz_target";
|
|
52
|
+
qualified_name: string;
|
|
53
|
+
container: string | null;
|
|
54
|
+
capabilities: Array<"verifies" | "implements">;
|
|
55
|
+
locator: AssuranceLocator;
|
|
56
|
+
}
|
|
57
|
+
export interface AssuranceRelationKind {
|
|
58
|
+
kind: string;
|
|
59
|
+
availability: "available";
|
|
60
|
+
sources: Array<"module_vocabulary" | "required_relation" | "trace_binding" | "observed">;
|
|
61
|
+
}
|
|
62
|
+
export type AssuranceFreshness = "current" | "suspect" | "unknown" | "not_applicable";
|
|
63
|
+
export interface AssuranceCorpusRelation {
|
|
64
|
+
kind: "corpus";
|
|
65
|
+
source: string;
|
|
66
|
+
target: string;
|
|
67
|
+
edge_type: string;
|
|
68
|
+
resolution: "resolved" | "dangling";
|
|
69
|
+
locator: AssuranceLocator;
|
|
70
|
+
freshness: AssuranceFreshness;
|
|
71
|
+
}
|
|
72
|
+
export interface AssuranceVerifiesRelation {
|
|
73
|
+
kind: "verifies";
|
|
74
|
+
source: string;
|
|
75
|
+
target: string;
|
|
76
|
+
form: string;
|
|
77
|
+
provenance: "canonical" | "legacy";
|
|
78
|
+
locator: AssuranceLocator;
|
|
79
|
+
freshness: AssuranceFreshness;
|
|
80
|
+
}
|
|
81
|
+
export interface AssuranceImplementsRelation {
|
|
82
|
+
kind: "implements";
|
|
83
|
+
source: string;
|
|
84
|
+
target: string;
|
|
85
|
+
form: string;
|
|
86
|
+
locator: AssuranceLocator;
|
|
87
|
+
freshness: AssuranceFreshness;
|
|
88
|
+
}
|
|
89
|
+
export type AssuranceRelation = AssuranceCorpusRelation | AssuranceVerifiesRelation | AssuranceImplementsRelation;
|
|
90
|
+
export interface AssuranceRelationObservation {
|
|
91
|
+
declaration: string;
|
|
92
|
+
subject?: string;
|
|
93
|
+
availability: "available" | "missing" | "not_applicable" | "unknown";
|
|
94
|
+
freshness: AssuranceFreshness;
|
|
95
|
+
reason?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface AssuranceExport {
|
|
98
|
+
format: "quire-assurance";
|
|
99
|
+
format_version: 1;
|
|
100
|
+
source: AssuranceSource;
|
|
101
|
+
modules: AssuranceModulePremise[];
|
|
102
|
+
artifacts: AssuranceArtifact[];
|
|
103
|
+
obligations: AssuranceObligation[];
|
|
104
|
+
symbols: AssuranceSymbol[];
|
|
105
|
+
relation_kinds: AssuranceRelationKind[];
|
|
106
|
+
relations: AssuranceRelation[];
|
|
107
|
+
relation_observations: AssuranceRelationObservation[];
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=assurance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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ACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,gBAAgB,CAAC;IAC1B,SAAS,EAAE,kBAAkB,CAAC;CAC/B;AAED,MAAM,MAAM,iBAAiB,GACzB,uBAAuB,GACvB,yBAAyB,GACzB,2BAA2B,CAAC;AAEhC,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,WAAW,GAAG,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAAC;IACrE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,cAAc,EAAE,CAAC,CAAC;IAClB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACnC,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,cAAc,EAAE,qBAAqB,EAAE,CAAC;IACxC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,qBAAqB,EAAE,4BAA4B,EAAE,CAAC;CACvD"}
|
package/dist/quire/contract.d.ts
CHANGED
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
* is no dependency edge along which a schema file could travel, and fetching
|
|
13
13
|
* one at runtime is out of the question (quoin performs no network reads on a
|
|
14
14
|
* command path). So the artifacts are **copied in with their provenance
|
|
15
|
-
* recorded** — source
|
|
15
|
+
* recorded** — source revision, path and content hash — and refreshed deliberately
|
|
16
16
|
* by `scripts/refresh-quire-schemas.mjs`, whose diff is reviewed.
|
|
17
17
|
*
|
|
18
18
|
* That is a copy, and a copy can drift. What keeps it honest is that the hash
|
|
19
|
-
* is asserted on every test run and the refresh script re-derives it from
|
|
20
|
-
*
|
|
19
|
+
* is asserted on every test run and the refresh script re-derives it from the
|
|
20
|
+
* exact pinned quire-rs git object: an edit to the vendored file without
|
|
21
21
|
* a matching refresh fails immediately, rather than silently teaching quoin a
|
|
22
22
|
* contract quire does not emit.
|
|
23
23
|
*/
|
|
24
24
|
/** Where the vendored schemas came from, and exactly which bytes. */
|
|
25
25
|
export declare const QUIRE_CONTRACT: {
|
|
26
|
-
/**
|
|
27
|
-
readonly
|
|
26
|
+
/** Exact quire-rs commit whose schemas were copied. */
|
|
27
|
+
readonly sourceRevision: "e3352a0644abcfd5f0ebad348bc7aca235925ecc";
|
|
28
28
|
/** The contract version, as carried in each schema's `$id` and filename. */
|
|
29
29
|
readonly contractVersion: "v1";
|
|
30
30
|
/**
|
|
@@ -40,15 +40,15 @@ export declare const QUIRE_CONTRACT: {
|
|
|
40
40
|
* SHA-256 of each vendored file. Asserted on every test run, so an edit
|
|
41
41
|
* without a matching refresh fails loudly.
|
|
42
42
|
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* `shared_trace_ids` (CR-087) and `excluded_source_files` (#215).
|
|
43
|
+
* The revision is pinned rather than described as a release because the QA
|
|
44
|
+
* program intentionally runs both projects from their tracking branches.
|
|
45
|
+
* The refresh helper reads the files from that git object, so unrelated
|
|
46
|
+
* working-tree changes cannot alter the recorded contract.
|
|
48
47
|
*/
|
|
49
48
|
readonly hashes: {
|
|
50
|
-
readonly "
|
|
51
|
-
readonly "
|
|
49
|
+
readonly "assurance-v1.schema.json": "441e1b8324fe64e234a007216b11867ec937ac4779fcebcdd84b30fa064367e5";
|
|
50
|
+
readonly "coverage-v1.schema.json": "f0cdbb9457ca7ca76b642c11fd5b6f41273909c894458c31f58c9c50fdbcdb38";
|
|
51
|
+
readonly "properties-v1.schema.json": "cc687773c35b3e71e82fc336e887ecc688a28b03e970e349b2921b8624e4d11c";
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
export type SchemaName = keyof typeof QUIRE_CONTRACT.hashes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/quire/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,qEAAqE;AACrE,eAAO,MAAM,cAAc;IACzB,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/quire/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,qEAAqE;AACrE,eAAO,MAAM,cAAc;IACzB,uDAAuD;;IAEvD,4EAA4E;;IAE5E;;;;;;;OAOG;;IAkBH;;;;;;;;OAQG;;;;;;CASK,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,cAAc,CAAC,MAAM,CAAC;AAI5D,0CAA0C;AAC1C,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAEnD;AAED,6CAA6C;AAC7C,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAEpD;AAED,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAInD;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG7D;AAED,oDAAoD;AACpD,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAQ5D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,MAAM,GAAG,IAAI,GAC3B,qBAAqB,GAAG,IAAI,CA2B9B"}
|
package/dist/quire/exec.d.ts
CHANGED
|
@@ -16,6 +16,16 @@
|
|
|
16
16
|
* command outright.
|
|
17
17
|
*/
|
|
18
18
|
export declare const QUIRE_MAX_BUFFER: number;
|
|
19
|
+
/**
|
|
20
|
+
* Resolve the producer once per invocation, never once per installation.
|
|
21
|
+
*
|
|
22
|
+
* `QUOIN_QUIRE` is the governed surface used by the verification-stack runner.
|
|
23
|
+
* Ordinary interactive use may still resolve `quire` from PATH, but the result
|
|
24
|
+
* is converted to an absolute real path before execution. When
|
|
25
|
+
* `QUOIN_EXPECTED_QUIRE_SHA256` is present the exact bytes are checked on every
|
|
26
|
+
* call, so replacing a file at the same path cannot move a canonical run.
|
|
27
|
+
*/
|
|
28
|
+
export declare function quireExecutable(): string;
|
|
19
29
|
/**
|
|
20
30
|
* Run `quire` and return stdout, surfacing **stderr** when it fails.
|
|
21
31
|
*
|
package/dist/quire/exec.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/quire/exec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/quire/exec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,QAAmB,CAAC;AAEjD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAsBxC;AAoCD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CA0C/C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,OAAO,CAAC;CACb,CAmBA;AAED,qEAAqE;AACrE,wBAAgB,YAAY,IAAI,MAAM,GAAG,IAAI,CAS5C"}
|
package/dist/quire/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* validators make true.
|
|
7
7
|
*/
|
|
8
8
|
export { QUIRE_CONTRACT, checkVersionPremise, compareVersions, parseCliVersion, readSchema, schemaHash, schemaPath, type SchemaName, type VersionPremiseFailure, } from './contract.js';
|
|
9
|
-
export { parseCoverage, parseProperties, validateCoverage, validateProperties, type ContractViolation, type ValidationResult, } from './validate.js';
|
|
10
|
-
export type {
|
|
11
|
-
export {
|
|
9
|
+
export { parseAssurance, parseCoverage, parseProperties, validateAssurance, validateCoverage, validateProperties, type ContractViolation, type ValidationResult, } from './validate.js';
|
|
10
|
+
export type { AcceptedAssurancePremises, AssuranceArtifact, AssuranceCorpusRelation, AssuranceExport, AssuranceFreshness, AssuranceImplementsRelation, AssuranceLocator, AssuranceModulePremise, AssuranceObligation, AssuranceRelation, AssuranceRelationKind, AssuranceRelationObservation, AssuranceSchemaPremise, AssuranceSource, AssuranceSymbol, AssuranceVerifiesRelation, } from './assurance.js';
|
|
11
|
+
export type { AcShape, BindingCensus, CatchAllCriterion, CoverageDiagnostic, CoverageReport, CoverageTotals, Criterion, CriteriaCounts, CriterionObligation, Extraction, EngineProvenance, GroundingCounts, GroupCounts, ImplementsRecord, NoSymbolRow, MeasuredMetric, Metric, MetricShape, NotComputedMetric, Obligation, PropertiesDocument, PropertiesReport, PropertyShape, PropertySpan, SharedTraceId, SharedTraceSymbol, StatusLie, Suspicion, UnbackedRow, UnboundSymbol, UntrackedSymbol, VocabularyValueRecord, } from './types.js';
|
|
12
|
+
export { QUIRE_MAX_BUFFER, quireExecutable, quireVersion, runQuire, runQuireAllowFailure, } from './exec.js';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/quire/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,UAAU,EACf,KAAK,qBAAqB,GAC3B,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AAEvB,YAAY,EACV,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,eAAe,EACf,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,oBAAoB,GACrB,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/quire/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,UAAU,EACf,KAAK,qBAAqB,GAC3B,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,cAAc,EACd,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AAEvB,YAAY,EACV,yBAAyB,EACzB,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,2BAA2B,EAC3B,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACV,OAAO,EACP,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,MAAM,EACN,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,WAAW,EACX,aAAa,EACb,eAAe,EACf,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,oBAAoB,GACrB,MAAM,WAAW,CAAC"}
|
package/dist/quire/types.d.ts
CHANGED
|
@@ -88,6 +88,22 @@ export interface UntrackedSymbol {
|
|
|
88
88
|
/** 1-based declaration line of the tagged symbol (quire-rs #210, v0.42.0). */
|
|
89
89
|
line?: number;
|
|
90
90
|
}
|
|
91
|
+
/** One minted source-evidence row and its resolved backed state (FR-050-AC-38). */
|
|
92
|
+
export interface MintedTargetRecord {
|
|
93
|
+
id: string;
|
|
94
|
+
target: string;
|
|
95
|
+
document: string;
|
|
96
|
+
line: number;
|
|
97
|
+
backed: boolean;
|
|
98
|
+
}
|
|
99
|
+
/** An authored annotation token that no declared form bound (FR-050-AC-39). */
|
|
100
|
+
export interface UnmatchedTag {
|
|
101
|
+
trace_id: string;
|
|
102
|
+
language: "rust" | "python" | "typescript";
|
|
103
|
+
path: string;
|
|
104
|
+
line: number;
|
|
105
|
+
symbol: string;
|
|
106
|
+
}
|
|
91
107
|
/** One of the distinct symbols binding a shared trace id (quire-rs CR-087). */
|
|
92
108
|
export interface SharedTraceSymbol {
|
|
93
109
|
path: string;
|
|
@@ -121,6 +137,22 @@ export interface CriteriaCounts {
|
|
|
121
137
|
criteria: number;
|
|
122
138
|
property_shaped: number;
|
|
123
139
|
by_property: Record<string, number>;
|
|
140
|
+
specific_shaped?: number;
|
|
141
|
+
grounding?: Record<string, GroundingCounts>;
|
|
142
|
+
catch_all_example?: CatchAllCriterion;
|
|
143
|
+
}
|
|
144
|
+
/** Span availability for one property-shape population. */
|
|
145
|
+
export interface GroundingCounts {
|
|
146
|
+
records: number;
|
|
147
|
+
domain: number;
|
|
148
|
+
precondition: number;
|
|
149
|
+
oracle: number;
|
|
150
|
+
all_three: number;
|
|
151
|
+
}
|
|
152
|
+
/** One located criterion illustrating catch-all classification. */
|
|
153
|
+
export interface CatchAllCriterion {
|
|
154
|
+
row_id?: string;
|
|
155
|
+
line?: number;
|
|
124
156
|
}
|
|
125
157
|
/** A declaration that selected nothing, and why (CR-054). */
|
|
126
158
|
export interface CoverageDiagnostic {
|
|
@@ -129,6 +161,8 @@ export interface CoverageDiagnostic {
|
|
|
129
161
|
reason: string;
|
|
130
162
|
message: string;
|
|
131
163
|
path?: string | null;
|
|
164
|
+
/** One-based line at the smallest repair locus, when one exists. */
|
|
165
|
+
line?: number;
|
|
132
166
|
/**
|
|
133
167
|
* The vocabulary or catalog value the diagnostic is about, verbatim, when it
|
|
134
168
|
* is about exactly one (quire-rs FR-054-AC-12, CR-091).
|
|
@@ -141,12 +175,20 @@ export interface CoverageDiagnostic {
|
|
|
141
175
|
* one value; a consumer must tolerate both.
|
|
142
176
|
*/
|
|
143
177
|
value?: string;
|
|
178
|
+
/** Affected row, declaration, metric, criterion, or symbol (quire-rs#364). */
|
|
179
|
+
subject?: string;
|
|
180
|
+
/** Source or configuration surface to inspect or change. */
|
|
181
|
+
change_target?: string;
|
|
182
|
+
/** Prescribed repair; the JSON contract excludes next_diagnostic_step. */
|
|
183
|
+
remedy?: string;
|
|
184
|
+
/** Safe investigation step; the JSON contract excludes remedy. */
|
|
185
|
+
next_diagnostic_step?: string;
|
|
144
186
|
}
|
|
145
187
|
/**
|
|
146
188
|
* One declared coverage-vocabulary value, classified (quire-rs FR-059-AC-9,
|
|
147
189
|
* CR-091).
|
|
148
190
|
*
|
|
149
|
-
* Carried ahead of the pinned
|
|
191
|
+
* Carried ahead of the previously pinned release as an additive field (see
|
|
150
192
|
* `QUIRE_CONTRACT`): a payload from quire 0.27.0 simply omits the whole
|
|
151
193
|
* `vocabulary_coverage` array, and every consumer must treat absence as "the
|
|
152
194
|
* engine predates the classification", never as "every value is owned".
|
|
@@ -200,6 +242,66 @@ export interface CoverageTotals {
|
|
|
200
242
|
total: number;
|
|
201
243
|
criteria?: number | null;
|
|
202
244
|
property_shaped?: number | null;
|
|
245
|
+
specific_shaped?: number | null;
|
|
246
|
+
}
|
|
247
|
+
/** One source symbol the binder examined but did not bind. */
|
|
248
|
+
export interface UnboundSymbol {
|
|
249
|
+
path: string;
|
|
250
|
+
line: number;
|
|
251
|
+
symbol: string;
|
|
252
|
+
}
|
|
253
|
+
/** The trace binder's measured premise for one language. */
|
|
254
|
+
export interface BindingCensus {
|
|
255
|
+
language: "rust" | "python" | "typescript";
|
|
256
|
+
candidates: number;
|
|
257
|
+
tagged: number;
|
|
258
|
+
bound: number;
|
|
259
|
+
self_named?: number;
|
|
260
|
+
self_named_bound?: number;
|
|
261
|
+
forms: string[];
|
|
262
|
+
unbound_example?: UnboundSymbol;
|
|
263
|
+
unmatched_example?: UnboundSymbol;
|
|
264
|
+
self_named_unbound_example?: UnboundSymbol;
|
|
265
|
+
}
|
|
266
|
+
/** Which executable and engine produced a payload. */
|
|
267
|
+
export interface EngineProvenance {
|
|
268
|
+
cli: string;
|
|
269
|
+
engine: string;
|
|
270
|
+
capabilities: string[];
|
|
271
|
+
}
|
|
272
|
+
export type MetricShape = "ratio" | "count";
|
|
273
|
+
interface MetricBase {
|
|
274
|
+
name: string;
|
|
275
|
+
unit: string;
|
|
276
|
+
method: string;
|
|
277
|
+
shape: MetricShape;
|
|
278
|
+
}
|
|
279
|
+
/** A measurement that ran and carries its complete population premise. */
|
|
280
|
+
export interface MeasuredMetric extends MetricBase {
|
|
281
|
+
state: "measured";
|
|
282
|
+
value: number;
|
|
283
|
+
population: number;
|
|
284
|
+
examined: number;
|
|
285
|
+
matched: number;
|
|
286
|
+
}
|
|
287
|
+
/** A measurement the engine could not compute, with the deciding reason. */
|
|
288
|
+
export interface NotComputedMetric extends MetricBase {
|
|
289
|
+
state: "not_computed";
|
|
290
|
+
because: string;
|
|
291
|
+
}
|
|
292
|
+
export type Metric = MeasuredMetric | NotComputedMetric;
|
|
293
|
+
/** Advisory evidence that a test may be vacuous or self-confirming. */
|
|
294
|
+
export interface Suspicion {
|
|
295
|
+
kind: "vacuous-under-guard" | "oracle-resembles-implementation";
|
|
296
|
+
path: string;
|
|
297
|
+
symbol: string;
|
|
298
|
+
line: number;
|
|
299
|
+
message: string;
|
|
300
|
+
evidence: string;
|
|
301
|
+
subject?: string;
|
|
302
|
+
change_target?: string;
|
|
303
|
+
remedy?: string;
|
|
304
|
+
next_diagnostic_step?: string;
|
|
203
305
|
}
|
|
204
306
|
/** The `quire coverage --json` payload (v1). */
|
|
205
307
|
export interface CoverageReport {
|
|
@@ -210,6 +312,10 @@ export interface CoverageReport {
|
|
|
210
312
|
/** Absent — not empty — when every status value in the corpus is declared. */
|
|
211
313
|
undeclared_statuses?: UndeclaredStatus[];
|
|
212
314
|
untracked_symbols: UntrackedSymbol[];
|
|
315
|
+
/** Absent when the traceability model minted no source-evidence rows. */
|
|
316
|
+
minted_targets?: MintedTargetRecord[];
|
|
317
|
+
/** Absent when every authored annotation token matched a declared form. */
|
|
318
|
+
unmatched_tags?: UnmatchedTag[];
|
|
213
319
|
/**
|
|
214
320
|
* Trace ids bound by more than one distinct symbol (quire-rs FR-050-AC-23,
|
|
215
321
|
* CR-087). ABSENT — not empty — for a corpus whose every id is uniquely
|
|
@@ -219,6 +325,8 @@ export interface CoverageReport {
|
|
|
219
325
|
groups: GroupCounts[];
|
|
220
326
|
criteria?: CriteriaCounts[];
|
|
221
327
|
diagnostics?: CoverageDiagnostic[];
|
|
328
|
+
/** Stable reason tokens the producing engine can emit. */
|
|
329
|
+
diagnostic_reason_registry?: string[];
|
|
222
330
|
obligations?: Obligation[];
|
|
223
331
|
/**
|
|
224
332
|
* Absent when the module declares no `implements` marker forms. Present in
|
|
@@ -242,6 +350,13 @@ export interface CoverageReport {
|
|
|
242
350
|
* a coverage regression.
|
|
243
351
|
*/
|
|
244
352
|
excluded_source_files?: number;
|
|
353
|
+
binding_census?: BindingCensus[];
|
|
354
|
+
/** Headline measurements with explicit populations and methods. */
|
|
355
|
+
metrics?: Metric[];
|
|
356
|
+
/** Advisory test-quality findings; never folded into coverage totals. */
|
|
357
|
+
suspicions?: Suspicion[];
|
|
358
|
+
/** Instrument provenance added by quire-cli. */
|
|
359
|
+
engine?: EngineProvenance;
|
|
245
360
|
totals: CoverageTotals;
|
|
246
361
|
}
|
|
247
362
|
/** A byte-offset span carrying its own text (FR-052). */
|
|
@@ -293,5 +408,8 @@ export interface PropertiesDocument {
|
|
|
293
408
|
/** The `quire properties --json` payload (v1). */
|
|
294
409
|
export interface PropertiesReport {
|
|
295
410
|
documents: PropertiesDocument[];
|
|
411
|
+
/** Instrument provenance added by quire-cli. */
|
|
412
|
+
engine?: EngineProvenance;
|
|
296
413
|
}
|
|
414
|
+
export {};
|
|
297
415
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/quire/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,8EAA8E;AAC9E,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAA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,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,2CAA2C;AAC3C,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,aAAa,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,mBAAmB,GAAG,IAAI,CAAC;CACxC;AAED,0CAA0C;AAC1C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,EAAE,CAAC;CACvB;AAED,kDAAkD;AAClD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAChC,gDAAgD;IAChD,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
|
package/dist/quire/validate.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SchemaName } from './contract.js';
|
|
2
|
+
import { AssuranceExport } from './assurance.js';
|
|
2
3
|
import { CoverageReport, PropertiesReport } from './types.js';
|
|
3
4
|
/** A payload that did not satisfy the published contract. */
|
|
4
5
|
export interface ContractViolation {
|
|
@@ -19,6 +20,8 @@ export type ValidationResult<T> = {
|
|
|
19
20
|
export declare function validateCoverage(payload: unknown): ValidationResult<CoverageReport>;
|
|
20
21
|
/** Validate a `quire properties --json` payload. */
|
|
21
22
|
export declare function validateProperties(payload: unknown): ValidationResult<PropertiesReport>;
|
|
23
|
+
/** Validate a supplied source-grounded assurance-v1 export. */
|
|
24
|
+
export declare function validateAssurance(payload: unknown): ValidationResult<AssuranceExport>;
|
|
22
25
|
/**
|
|
23
26
|
* Parse and validate in one step, so a caller never holds an unvalidated
|
|
24
27
|
* payload it could accidentally use.
|
|
@@ -31,4 +34,6 @@ export declare function validateProperties(payload: unknown): ValidationResult<P
|
|
|
31
34
|
export declare function parseCoverage(text: string): ValidationResult<CoverageReport>;
|
|
32
35
|
/** As {@link parseCoverage}, for the properties payload. */
|
|
33
36
|
export declare function parseProperties(text: string): ValidationResult<PropertiesReport>;
|
|
37
|
+
/** As {@link parseCoverage}, for an existing assurance-export artifact. */
|
|
38
|
+
export declare function parseAssurance(text: string): ValidationResult<AssuranceExport>;
|
|
34
39
|
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/quire/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnE,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,iEAAiE;IACjE,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAC5B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,EAAE,EA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