@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.cjs
CHANGED
|
@@ -152,6 +152,7 @@ __export(index_exports, {
|
|
|
152
152
|
extractedEdgeId: () => extractedEdgeId,
|
|
153
153
|
extractedPrecisionFloor: () => extractedPrecisionFloor,
|
|
154
154
|
fileId: () => fileId,
|
|
155
|
+
frontierEdgeId: () => frontierEdgeId,
|
|
155
156
|
frontierId: () => frontierId,
|
|
156
157
|
graphqlOperationId: () => graphqlOperationId,
|
|
157
158
|
grpcMethodId: () => grpcMethodId,
|
|
@@ -188,7 +189,15 @@ var Provenance = {
|
|
|
188
189
|
EXTRACTED: "EXTRACTED",
|
|
189
190
|
INFERRED: "INFERRED",
|
|
190
191
|
OBSERVED: "OBSERVED",
|
|
191
|
-
STALE: "STALE"
|
|
192
|
+
STALE: "STALE",
|
|
193
|
+
// The staged-surface tense (ADR-094 / ADR-226): a claim outside the settled
|
|
194
|
+
// graph — an edge NEAT reached toward but cannot yet observe (a hop whose far
|
|
195
|
+
// end hung), or a proposed relationship not yet enacted. "Provenance is
|
|
196
|
+
// everything outside the graph." A FRONTIER edge is a real, persisted surface,
|
|
197
|
+
// but it is NEVER ranked: it stays out of `PROV_RANK` and is skipped by settled
|
|
198
|
+
// traversal (Rule 3, edge level). It graduates to OBSERVED (promotion) when its
|
|
199
|
+
// real twin arrives, or is culled. Restores the value ADR-068 froze out.
|
|
200
|
+
FRONTIER: "FRONTIER"
|
|
192
201
|
};
|
|
193
202
|
var EdgeType = {
|
|
194
203
|
CALLS: "CALLS",
|
|
@@ -327,7 +336,8 @@ var ProvenanceSchema = import_zod2.z.enum([
|
|
|
327
336
|
Provenance.EXTRACTED,
|
|
328
337
|
Provenance.INFERRED,
|
|
329
338
|
Provenance.OBSERVED,
|
|
330
|
-
Provenance.STALE
|
|
339
|
+
Provenance.STALE,
|
|
340
|
+
Provenance.FRONTIER
|
|
331
341
|
]);
|
|
332
342
|
var EdgeTypeSchema = import_zod2.z.enum([
|
|
333
343
|
EdgeType.CALLS,
|
|
@@ -1289,6 +1299,9 @@ function observedEdgeId(source, target, type) {
|
|
|
1289
1299
|
function inferredEdgeId(source, target, type) {
|
|
1290
1300
|
return `${type}:INFERRED:${source}${EDGE_ARROW}${target}`;
|
|
1291
1301
|
}
|
|
1302
|
+
function frontierEdgeId(source, target, type) {
|
|
1303
|
+
return `${type}:FRONTIER:${source}${EDGE_ARROW}${target}`;
|
|
1304
|
+
}
|
|
1292
1305
|
function parseEdgeId(id) {
|
|
1293
1306
|
const arrowIdx = id.lastIndexOf(EDGE_ARROW);
|
|
1294
1307
|
if (arrowIdx === -1) return null;
|
|
@@ -1299,7 +1312,7 @@ function parseEdgeId(id) {
|
|
|
1299
1312
|
if (firstColon === -1) return null;
|
|
1300
1313
|
const type = left.slice(0, firstColon);
|
|
1301
1314
|
const rest = left.slice(firstColon + 1);
|
|
1302
|
-
for (const prov of ["OBSERVED", "INFERRED"]) {
|
|
1315
|
+
for (const prov of ["OBSERVED", "INFERRED", "FRONTIER"]) {
|
|
1303
1316
|
if (rest.startsWith(`${prov}:`)) {
|
|
1304
1317
|
return { type, provenance: prov, source: rest.slice(prov.length + 1), target };
|
|
1305
1318
|
}
|
|
@@ -1986,6 +1999,7 @@ function passesExtractedFloor(confidence) {
|
|
|
1986
1999
|
extractedEdgeId,
|
|
1987
2000
|
extractedPrecisionFloor,
|
|
1988
2001
|
fileId,
|
|
2002
|
+
frontierEdgeId,
|
|
1989
2003
|
frontierId,
|
|
1990
2004
|
graphqlOperationId,
|
|
1991
2005
|
grpcMethodId,
|