mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 01:13:39 +00:00
refactor(ownership)!: consolidate legacy aliases
Migrate schema, installer, ASN.1, and tooling consumers to their owning definitions. Remove the redundant CI task entry and the deprecated Cutter command-local JSON flag. BREAKING CHANGE: Replace Cutter --json=true or --json=false with --json-output=true or --json-output=false. Bare --json still controls CLI result formatting.
This commit is contained in:
1 parent
7c8eb63fcc
commit
567ea4b1e8
17 files changed
+73
-109
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import { z } from "zod";
|
||||
import { javascriptSourceRangeSchema } from "./javascriptSourceCoordinates.js";
|
||||
import { digestSchema } from "../digests.js";
|
||||
import { prefixedDigestSchema } from "../digests.js";
|
||||
import { digestSchema, prefixedDigestSchema } from "../digests.js";
|
||||
|
||||
const boundedTextSchema = z.string().min(1);
|
||||
const boundedKeySchema = z.string().min(1);
|
||||
@@ -139,14 +138,17 @@ const applicationLocationSchema = z.discriminatedUnion("kind", [
|
||||
}),
|
||||
]);
|
||||
|
||||
/** Explicit source-location availability for one graph fact. */
|
||||
const applicationLocationReferenceSchema = z.discriminatedUnion("available", [
|
||||
z.strictObject({
|
||||
available: z.literal(true),
|
||||
value: applicationLocationSchema,
|
||||
}),
|
||||
unavailableFactSchema,
|
||||
]);
|
||||
/** Source-location availability and coordinates retained on each graph fact. */
|
||||
export const applicationGraphEvidenceLocationSchema = z.discriminatedUnion(
|
||||
"available",
|
||||
[
|
||||
z.strictObject({
|
||||
available: z.literal(true),
|
||||
value: applicationLocationSchema,
|
||||
}),
|
||||
unavailableFactSchema,
|
||||
],
|
||||
);
|
||||
|
||||
/** Versioned extractor coordinates attached to every graph fact. */
|
||||
const applicationExtractorSchema = z.strictObject({
|
||||
@@ -242,7 +244,7 @@ const applicationGraphEvidenceBaseSchema = z.strictObject({
|
||||
state: applicationFactStateSchema,
|
||||
confidence: applicationConfidenceSchema,
|
||||
artifact: applicationArtifactReferenceSchema,
|
||||
location: applicationLocationReferenceSchema,
|
||||
location: applicationGraphEvidenceLocationSchema,
|
||||
extractor: applicationExtractorSchema,
|
||||
coverage: applicationCoverageSchema,
|
||||
limitations: z.array(boundedTextSchema),
|
||||
@@ -253,10 +255,6 @@ const applicationGraphEvidenceBaseSchema = z.strictObject({
|
||||
export const applicationGraphEvidenceContextSchema =
|
||||
applicationGraphEvidenceBaseSchema.omit({ location: true });
|
||||
|
||||
/** Exact coordinates retained on each graph fact. */
|
||||
export const applicationGraphEvidenceLocationSchema =
|
||||
applicationLocationReferenceSchema;
|
||||
|
||||
type EvidenceValue = z.infer<typeof applicationGraphEvidenceBaseSchema>;
|
||||
|
||||
const checkAuthorityState = (
|
||||
|
||||
Reference in new issue
Block a user