@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.
- package/dist/{advisor-BkgwDKvQ.js → advisor-B0rESCx1.js} +1 -1
- package/dist/{auditor-C3bSmPD_.js → auditor-Dd3i9Aqx.js} +2 -2
- package/dist/{base-CqKNs2Kd.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 +19 -19
- package/dist/commands/assurance.js +20 -20
- 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.js +1 -1
- package/dist/commands/config/edit.js +1 -1
- package/dist/commands/config/get.js +1 -1
- package/dist/commands/config/set.js +1 -1
- package/dist/commands/evidence/affirm.js +19 -19
- package/dist/commands/evidence/audit.js +26 -26
- package/dist/commands/evidence/baseline.js +21 -21
- package/dist/commands/evidence/gc.js +3 -3
- package/dist/commands/evidence/index.js +1 -1
- package/dist/commands/evidence/inspect-mocks.js +4 -4
- package/dist/commands/evidence/record.d.ts.map +1 -1
- package/dist/commands/evidence/record.js +28 -24
- 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.js +1 -1
- 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.map +1 -1
- package/dist/commands/measurement/record.js +12 -11
- 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 +4 -0
- package/dist/commands/report.d.ts.map +1 -1
- package/dist/commands/report.js +49 -23
- 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.js +1 -1
- package/dist/commands/write.js +3 -3
- package/dist/common-B1ZJ8CSO.js +36 -0
- package/dist/common-DTrmnvL-.js +35 -0
- package/dist/{completeness-DamWradt.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 +5 -2
- package/dist/evidence/index.d.ts.map +1 -1
- package/dist/{evidence-DD0CHzJ0.js → evidence-OyqpqHLS.js} +191 -110
- package/dist/{flow-command-BfFNY0Rv.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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -9
- 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/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 +15 -2
- package/dist/measurement/index.d.ts.map +1 -1
- 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 +3 -1
- package/dist/measurement/plans.d.ts.map +1 -1
- package/dist/measurement/portfolio.d.ts +7 -1
- package/dist/measurement/portfolio.d.ts.map +1 -1
- package/dist/measurement/report.d.ts +4 -0
- package/dist/measurement/report.d.ts.map +1 -1
- package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +384 -0
- package/dist/measurement/store.d.ts +7 -0
- package/dist/measurement/store.d.ts.map +1 -1
- package/dist/measurement/types.d.ts +2 -0
- package/dist/measurement/types.d.ts.map +1 -1
- package/dist/measurement-j8sDSqx5.js +2980 -0
- package/dist/{modules-ez9httBA.js → modules-DDQkKC4l.js} +2 -2
- package/dist/{plugins-C-ta0llj.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 +2 -1
- package/dist/quire/contract.d.ts.map +1 -1
- package/dist/quire/index.d.ts +3 -2
- package/dist/quire/index.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-D8tCpgyA.js → quire-BsVj1xIR.js} +54 -47
- 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/operational-evidence-v1.schema.json +381 -0
- package/dist/schemas/proof-attestation-v1.schema.json +96 -0
- package/dist/schemas/verification-receipt-v1.schema.json +208 -0
- package/dist/{version-Dg0e6CZU.js → version-CMxMIh5g.js} +1 -1
- package/dist/{write-DElwS9xc.js → write-CGTI0dRO.js} +1 -1
- package/package.json +5 -1
- 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-fuzz/SKILL.md +7 -6
- package/dist/measurement-CzB74Q07.js +0 -595
- package/dist/store--2sAv12X.js +0 -219
|
@@ -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
|
+
{"version":3,"file":"assurance.d.ts","sourceRoot":"","sources":["../../src/quire/assurance.ts"],"names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C1B,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
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/** Where the vendored schemas came from, and exactly which bytes. */
|
|
25
25
|
export declare const QUIRE_CONTRACT: {
|
|
26
26
|
/** Exact quire-rs commit whose schemas were copied. */
|
|
27
|
-
readonly sourceRevision: "
|
|
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
|
/**
|
|
@@ -46,6 +46,7 @@ export declare const QUIRE_CONTRACT: {
|
|
|
46
46
|
* working-tree changes cannot alter the recorded contract.
|
|
47
47
|
*/
|
|
48
48
|
readonly hashes: {
|
|
49
|
+
readonly "assurance-v1.schema.json": "441e1b8324fe64e234a007216b11867ec937ac4779fcebcdd84b30fa064367e5";
|
|
49
50
|
readonly "coverage-v1.schema.json": "f0cdbb9457ca7ca76b642c11fd5b6f41273909c894458c31f58c9c50fdbcdb38";
|
|
50
51
|
readonly "properties-v1.schema.json": "cc687773c35b3e71e82fc336e887ecc688a28b03e970e349b2921b8624e4d11c";
|
|
51
52
|
};
|
|
@@ -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,uDAAuD;;IAEvD,4EAA4E;;IAE5E;;;;;;;OAOG;;IAkBH;;;;;;;;OAQG
|
|
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/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 {
|
|
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';
|
|
11
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,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,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"}
|
|
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/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;C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C,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAoDnE,kDAAkD;AAClD,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,GACf,gBAAgB,CAAC,cAAc,CAAC,CAElC;AAED,oDAAoD;AACpD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,OAAO,GACf,gBAAgB,CAAC,gBAAgB,CAAC,CAEpC;AAED,+DAA+D;AAC/D,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GACf,gBAAgB,CAAC,eAAe,CAAC,CAEnC;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAE5E;AAED,4DAA4D;AAC5D,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,GACX,gBAAgB,CAAC,gBAAgB,CAAC,CAEpC;AAED,2EAA2E;AAC3E,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GACX,gBAAgB,CAAC,eAAe,CAAC,CAEnC"}
|
|
@@ -25,10 +25,11 @@ var d = Object.defineProperty, f = Object.getOwnPropertyDescriptor, p = Object.g
|
|
|
25
25
|
});
|
|
26
26
|
return e;
|
|
27
27
|
}, y = (e) => m.call(e, "module.exports") ? e["module.exports"] : v(d({}, "__esModule", { value: !0 }), e), b = {
|
|
28
|
-
sourceRevision: "
|
|
28
|
+
sourceRevision: "e3352a0644abcfd5f0ebad348bc7aca235925ecc",
|
|
29
29
|
contractVersion: "v1",
|
|
30
30
|
minimumCli: "0.21.0",
|
|
31
31
|
hashes: {
|
|
32
|
+
"assurance-v1.schema.json": "441e1b8324fe64e234a007216b11867ec937ac4779fcebcdd84b30fa064367e5",
|
|
32
33
|
"coverage-v1.schema.json": "f0cdbb9457ca7ca76b642c11fd5b6f41273909c894458c31f58c9c50fdbcdb38",
|
|
33
34
|
"properties-v1.schema.json": "cc687773c35b3e71e82fc336e887ecc688a28b03e970e349b2921b8624e4d11c"
|
|
34
35
|
}
|
|
@@ -4597,12 +4598,12 @@ var D = /* @__PURE__ */ g(((e) => {
|
|
|
4597
4598
|
$id: () => yn,
|
|
4598
4599
|
$schema: () => vn,
|
|
4599
4600
|
$vocabulary: () => bn,
|
|
4600
|
-
default: () =>
|
|
4601
|
-
properties: () =>
|
|
4601
|
+
default: () => Tn,
|
|
4602
|
+
properties: () => wn,
|
|
4602
4603
|
title: () => Sn,
|
|
4603
|
-
type: () =>
|
|
4604
|
-
}), vn, yn, bn, xn, Sn,
|
|
4605
|
-
vn = "https://json-schema.org/draft/2020-12/schema", yn = "https://json-schema.org/draft/2020-12/meta/meta-data", bn = { "https://json-schema.org/draft/2020-12/vocab/meta-data": !0 }, xn = "meta", Sn = "Meta-data vocabulary meta-schema",
|
|
4604
|
+
type: () => Cn
|
|
4605
|
+
}), vn, yn, bn, xn, Sn, Cn, wn, Tn, En = h((() => {
|
|
4606
|
+
vn = "https://json-schema.org/draft/2020-12/schema", yn = "https://json-schema.org/draft/2020-12/meta/meta-data", bn = { "https://json-schema.org/draft/2020-12/vocab/meta-data": !0 }, xn = "meta", Sn = "Meta-data vocabulary meta-schema", Cn = ["object", "boolean"], wn = {
|
|
4606
4607
|
title: { type: "string" },
|
|
4607
4608
|
description: { type: "string" },
|
|
4608
4609
|
default: !0,
|
|
@@ -4622,27 +4623,27 @@ var D = /* @__PURE__ */ g(((e) => {
|
|
|
4622
4623
|
type: "array",
|
|
4623
4624
|
items: !0
|
|
4624
4625
|
}
|
|
4625
|
-
},
|
|
4626
|
+
}, Tn = {
|
|
4626
4627
|
$schema: vn,
|
|
4627
4628
|
$id: yn,
|
|
4628
4629
|
$vocabulary: bn,
|
|
4629
4630
|
$dynamicAnchor: xn,
|
|
4630
4631
|
title: Sn,
|
|
4631
|
-
type:
|
|
4632
|
-
properties:
|
|
4632
|
+
type: Cn,
|
|
4633
|
+
properties: wn
|
|
4633
4634
|
};
|
|
4634
|
-
})),
|
|
4635
|
+
})), Dn = /* @__PURE__ */ _({
|
|
4635
4636
|
$defs: () => Pn,
|
|
4636
4637
|
$dynamicAnchor: () => An,
|
|
4637
|
-
$id: () =>
|
|
4638
|
-
$schema: () =>
|
|
4639
|
-
$vocabulary: () =>
|
|
4638
|
+
$id: () => kn,
|
|
4639
|
+
$schema: () => On,
|
|
4640
|
+
$vocabulary: () => Q,
|
|
4640
4641
|
default: () => Fn,
|
|
4641
4642
|
properties: () => Nn,
|
|
4642
4643
|
title: () => jn,
|
|
4643
4644
|
type: () => Mn
|
|
4644
|
-
}),
|
|
4645
|
-
|
|
4645
|
+
}), On, kn, Q, An, jn, Mn, Nn, Pn, Fn, In = h((() => {
|
|
4646
|
+
On = "https://json-schema.org/draft/2020-12/schema", kn = "https://json-schema.org/draft/2020-12/meta/validation", Q = { "https://json-schema.org/draft/2020-12/vocab/validation": !0 }, An = "meta", jn = "Validation vocabulary meta-schema", Mn = ["object", "boolean"], Nn = {
|
|
4646
4647
|
type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, {
|
|
4647
4648
|
type: "array",
|
|
4648
4649
|
items: { $ref: "#/$defs/simpleTypes" },
|
|
@@ -4711,9 +4712,9 @@ var D = /* @__PURE__ */ g(((e) => {
|
|
|
4711
4712
|
default: []
|
|
4712
4713
|
}
|
|
4713
4714
|
}, Fn = {
|
|
4714
|
-
$schema:
|
|
4715
|
-
$id:
|
|
4716
|
-
$vocabulary:
|
|
4715
|
+
$schema: On,
|
|
4716
|
+
$id: kn,
|
|
4717
|
+
$vocabulary: Q,
|
|
4717
4718
|
$dynamicAnchor: An,
|
|
4718
4719
|
title: jn,
|
|
4719
4720
|
type: Mn,
|
|
@@ -4722,7 +4723,7 @@ var D = /* @__PURE__ */ g(((e) => {
|
|
|
4722
4723
|
};
|
|
4723
4724
|
})), Ln = /* @__PURE__ */ g(((e) => {
|
|
4724
4725
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4725
|
-
var t = (_t(), y(ot).default), n = (Ot(), y(vt).default), r = (Rt(), y(kt).default), i = (Jt(), y(zt).default), a = (on(), y(Yt).default), o = (gn(), y(sn).default), s = (
|
|
4726
|
+
var t = (_t(), y(ot).default), n = (Ot(), y(vt).default), r = (Rt(), y(kt).default), i = (Jt(), y(zt).default), a = (on(), y(Yt).default), o = (gn(), y(sn).default), s = (En(), y(_n).default), c = (In(), y(Dn).default), l = ["/properties"];
|
|
4726
4727
|
function u(e) {
|
|
4727
4728
|
return [
|
|
4728
4729
|
t,
|
|
@@ -4739,7 +4740,7 @@ var D = /* @__PURE__ */ g(((e) => {
|
|
|
4739
4740
|
}
|
|
4740
4741
|
}
|
|
4741
4742
|
e.default = u;
|
|
4742
|
-
})), Rn =
|
|
4743
|
+
})), Rn = /* @__PURE__ */ g(((e, t) => {
|
|
4743
4744
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv2020 = void 0;
|
|
4744
4745
|
var n = ce(), r = rt(), i = at(), a = Ln(), o = "https://json-schema.org/draft/2020-12/schema", s = class extends n.default {
|
|
4745
4746
|
constructor(e = {}) {
|
|
@@ -4816,26 +4817,26 @@ var D = /* @__PURE__ */ g(((e) => {
|
|
|
4816
4817
|
return d.default;
|
|
4817
4818
|
}
|
|
4818
4819
|
});
|
|
4819
|
-
}))
|
|
4820
|
-
function
|
|
4821
|
-
let t =
|
|
4820
|
+
})), zn = Rn(), Bn = /* @__PURE__ */ new Map();
|
|
4821
|
+
function Vn(e) {
|
|
4822
|
+
let t = Bn.get(e);
|
|
4822
4823
|
if (t) return t;
|
|
4823
|
-
let n = new
|
|
4824
|
+
let n = new zn.Ajv2020({
|
|
4824
4825
|
allErrors: !0,
|
|
4825
4826
|
strict: !1
|
|
4826
4827
|
}).compile(C(e));
|
|
4827
|
-
return
|
|
4828
|
+
return Bn.set(e, n), n;
|
|
4828
4829
|
}
|
|
4829
|
-
function
|
|
4830
|
+
function Hn(e) {
|
|
4830
4831
|
return (e ?? []).map((e) => `${e.instancePath === "" ? "<root>" : e.instancePath}: ${e.message ?? "invalid"}`);
|
|
4831
4832
|
}
|
|
4832
|
-
function
|
|
4833
|
-
let n =
|
|
4833
|
+
function Un(e, t) {
|
|
4834
|
+
let n = Vn(e);
|
|
4834
4835
|
if (n(t)) return {
|
|
4835
4836
|
ok: !0,
|
|
4836
4837
|
value: t
|
|
4837
4838
|
};
|
|
4838
|
-
let r =
|
|
4839
|
+
let r = Hn(n.errors);
|
|
4839
4840
|
return {
|
|
4840
4841
|
ok: !1,
|
|
4841
4842
|
error: {
|
|
@@ -4846,19 +4847,25 @@ function Hn(e, t) {
|
|
|
4846
4847
|
}
|
|
4847
4848
|
};
|
|
4848
4849
|
}
|
|
4849
|
-
function Un(e) {
|
|
4850
|
-
return Hn("coverage-v1.schema.json", e);
|
|
4851
|
-
}
|
|
4852
4850
|
function Wn(e) {
|
|
4853
|
-
return
|
|
4851
|
+
return Un("coverage-v1.schema.json", e);
|
|
4854
4852
|
}
|
|
4855
4853
|
function Gn(e) {
|
|
4856
|
-
return
|
|
4854
|
+
return Un("properties-v1.schema.json", e);
|
|
4857
4855
|
}
|
|
4858
4856
|
function Kn(e) {
|
|
4859
|
-
return
|
|
4857
|
+
return Un("assurance-v1.schema.json", e);
|
|
4858
|
+
}
|
|
4859
|
+
function qn(e) {
|
|
4860
|
+
return Xn(e, "coverage-v1.schema.json", Wn);
|
|
4861
|
+
}
|
|
4862
|
+
function Jn(e) {
|
|
4863
|
+
return Xn(e, "properties-v1.schema.json", Gn);
|
|
4860
4864
|
}
|
|
4861
|
-
function
|
|
4865
|
+
function Yn(e) {
|
|
4866
|
+
return Xn(e, "assurance-v1.schema.json", Kn);
|
|
4867
|
+
}
|
|
4868
|
+
function Xn(e, t, n) {
|
|
4862
4869
|
let r;
|
|
4863
4870
|
try {
|
|
4864
4871
|
r = JSON.parse(e);
|
|
@@ -4878,8 +4885,8 @@ function qn(e, t, n) {
|
|
|
4878
4885
|
//#endregion
|
|
4879
4886
|
//#region src/quire/exec.ts
|
|
4880
4887
|
var $ = 67108864;
|
|
4881
|
-
function
|
|
4882
|
-
let e = process.env.QUOIN_QUIRE, t = e ?
|
|
4888
|
+
function Zn() {
|
|
4889
|
+
let e = process.env.QUOIN_QUIRE, t = e ? Qn(e) : $n("quire"), n = process.env.QUOIN_EXPECTED_QUIRE_SHA256;
|
|
4883
4890
|
if (n) {
|
|
4884
4891
|
if (!/^sha256:[0-9a-f]{64}$/.test(n)) throw Error("QUOIN_EXPECTED_QUIRE_SHA256 must be a full lowercase sha256 digest");
|
|
4885
4892
|
let e = `sha256:${l("sha256").update(r(t)).digest("hex")}`;
|
|
@@ -4887,7 +4894,7 @@ function Jn() {
|
|
|
4887
4894
|
}
|
|
4888
4895
|
return t;
|
|
4889
4896
|
}
|
|
4890
|
-
function
|
|
4897
|
+
function Qn(e) {
|
|
4891
4898
|
if (!s(e)) throw Error(`QUOIN_QUIRE must be an absolute path, got ${e}`);
|
|
4892
4899
|
try {
|
|
4893
4900
|
return t(e, n.X_OK), i(e);
|
|
@@ -4895,7 +4902,7 @@ function Yn(e) {
|
|
|
4895
4902
|
throw Error(`QUOIN_QUIRE is not an executable file: ${e}`);
|
|
4896
4903
|
}
|
|
4897
4904
|
}
|
|
4898
|
-
function
|
|
4905
|
+
function $n(e) {
|
|
4899
4906
|
let r = process.platform === "win32" ? (process.env.PATHEXT ?? ".EXE;.CMD;.BAT").split(";") : [""];
|
|
4900
4907
|
for (let o of (process.env.PATH ?? "").split(a)) if (o) for (let a of r) {
|
|
4901
4908
|
let r = c(o, `${e}${a}`);
|
|
@@ -4905,9 +4912,9 @@ function Xn(e) {
|
|
|
4905
4912
|
}
|
|
4906
4913
|
throw Object.assign(/* @__PURE__ */ Error(`${e} is not executable on PATH`), { code: "ENOENT" });
|
|
4907
4914
|
}
|
|
4908
|
-
function
|
|
4915
|
+
function er(e) {
|
|
4909
4916
|
try {
|
|
4910
|
-
return u(
|
|
4917
|
+
return u(Zn(), e, {
|
|
4911
4918
|
encoding: "utf8",
|
|
4912
4919
|
stdio: [
|
|
4913
4920
|
"ignore",
|
|
@@ -4923,10 +4930,10 @@ function Zn(e) {
|
|
|
4923
4930
|
throw Error(`quire ${e.join(" ")} exited ${n.status}` + (r ? `:\n${r}` : " with no diagnostic on stderr."));
|
|
4924
4931
|
}
|
|
4925
4932
|
}
|
|
4926
|
-
function
|
|
4933
|
+
function tr(e) {
|
|
4927
4934
|
try {
|
|
4928
4935
|
return {
|
|
4929
|
-
stdout: u(
|
|
4936
|
+
stdout: u(Zn(), e, {
|
|
4930
4937
|
encoding: "utf8",
|
|
4931
4938
|
stdio: [
|
|
4932
4939
|
"ignore",
|
|
@@ -4947,9 +4954,9 @@ function Qn(e) {
|
|
|
4947
4954
|
};
|
|
4948
4955
|
}
|
|
4949
4956
|
}
|
|
4950
|
-
function
|
|
4957
|
+
function nr() {
|
|
4951
4958
|
try {
|
|
4952
|
-
return u(
|
|
4959
|
+
return u(Zn(), ["--version"], {
|
|
4953
4960
|
encoding: "utf8",
|
|
4954
4961
|
maxBuffer: $
|
|
4955
4962
|
});
|
|
@@ -4958,4 +4965,4 @@ function $n() {
|
|
|
4958
4965
|
}
|
|
4959
4966
|
}
|
|
4960
4967
|
//#endregion
|
|
4961
|
-
export {
|
|
4968
|
+
export { qn as a, Rn as c, Yn as i, E as l, er as n, Jn as o, tr as r, Kn as s, nr as t };
|