@neat.is/types 0.9.13 → 0.9.14
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/index.cjs +17 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +341 -339
- package/dist/index.d.ts +341 -339
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,15 @@ var Provenance = {
|
|
|
4
4
|
EXTRACTED: "EXTRACTED",
|
|
5
5
|
INFERRED: "INFERRED",
|
|
6
6
|
OBSERVED: "OBSERVED",
|
|
7
|
-
STALE: "STALE"
|
|
7
|
+
STALE: "STALE",
|
|
8
|
+
// The staged-surface tense (ADR-094 / ADR-226): a claim outside the settled
|
|
9
|
+
// graph — an edge NEAT reached toward but cannot yet observe (a hop whose far
|
|
10
|
+
// end hung), or a proposed relationship not yet enacted. "Provenance is
|
|
11
|
+
// everything outside the graph." A FRONTIER edge is a real, persisted surface,
|
|
12
|
+
// but it is NEVER ranked: it stays out of `PROV_RANK` and is skipped by settled
|
|
13
|
+
// traversal (Rule 3, edge level). It graduates to OBSERVED (promotion) when its
|
|
14
|
+
// real twin arrives, or is culled. Restores the value ADR-068 froze out.
|
|
15
|
+
FRONTIER: "FRONTIER"
|
|
8
16
|
};
|
|
9
17
|
var EdgeType = {
|
|
10
18
|
CALLS: "CALLS",
|
|
@@ -143,7 +151,8 @@ var ProvenanceSchema = z2.enum([
|
|
|
143
151
|
Provenance.EXTRACTED,
|
|
144
152
|
Provenance.INFERRED,
|
|
145
153
|
Provenance.OBSERVED,
|
|
146
|
-
Provenance.STALE
|
|
154
|
+
Provenance.STALE,
|
|
155
|
+
Provenance.FRONTIER
|
|
147
156
|
]);
|
|
148
157
|
var EdgeTypeSchema = z2.enum([
|
|
149
158
|
EdgeType.CALLS,
|
|
@@ -1105,6 +1114,9 @@ function observedEdgeId(source, target, type) {
|
|
|
1105
1114
|
function inferredEdgeId(source, target, type) {
|
|
1106
1115
|
return `${type}:INFERRED:${source}${EDGE_ARROW}${target}`;
|
|
1107
1116
|
}
|
|
1117
|
+
function frontierEdgeId(source, target, type) {
|
|
1118
|
+
return `${type}:FRONTIER:${source}${EDGE_ARROW}${target}`;
|
|
1119
|
+
}
|
|
1108
1120
|
function parseEdgeId(id) {
|
|
1109
1121
|
const arrowIdx = id.lastIndexOf(EDGE_ARROW);
|
|
1110
1122
|
if (arrowIdx === -1) return null;
|
|
@@ -1115,7 +1127,7 @@ function parseEdgeId(id) {
|
|
|
1115
1127
|
if (firstColon === -1) return null;
|
|
1116
1128
|
const type = left.slice(0, firstColon);
|
|
1117
1129
|
const rest = left.slice(firstColon + 1);
|
|
1118
|
-
for (const prov of ["OBSERVED", "INFERRED"]) {
|
|
1130
|
+
for (const prov of ["OBSERVED", "INFERRED", "FRONTIER"]) {
|
|
1119
1131
|
if (rest.startsWith(`${prov}:`)) {
|
|
1120
1132
|
return { type, provenance: prov, source: rest.slice(prov.length + 1), target };
|
|
1121
1133
|
}
|
|
@@ -1801,6 +1813,7 @@ export {
|
|
|
1801
1813
|
extractedEdgeId,
|
|
1802
1814
|
extractedPrecisionFloor,
|
|
1803
1815
|
fileId,
|
|
1816
|
+
frontierEdgeId,
|
|
1804
1817
|
frontierId,
|
|
1805
1818
|
graphqlOperationId,
|
|
1806
1819
|
grpcMethodId,
|