@neat.is/types 0.9.2 → 0.9.3

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.js CHANGED
@@ -168,7 +168,18 @@ var EdgeEvidenceSchema = z2.object({
168
168
  // client named, alongside the file:line it named them at. Absent on every
169
169
  // other edge — a config or infra edge has no HTTP method.
170
170
  method: z2.string().optional(),
171
- pathTemplate: z2.string().optional()
171
+ pathTemplate: z2.string().optional(),
172
+ // How a datastore host was recovered (ADR-213). `config` when the host came
173
+ // from an env var / IConfiguration key / config file — the deployment's real
174
+ // target; `literal` when it was read from a hardcoded string literal in
175
+ // source. The divergence ranker reads this to tell a genuine declared store
176
+ // from a hardcoded fault-injection / flag-gated probe: a `literal` host
177
+ // production never observed, sitting beside a `config`-driven store of the
178
+ // same engine on the same service, is a dead alternate whose missing-observed
179
+ // is dampened rather than surfaced as a real gap. Present only on datastore
180
+ // CONNECTS_TO edges from a recogniser that distinguishes the two; absent on
181
+ // every other edge.
182
+ hostSource: z2.enum(["literal", "config"]).optional()
172
183
  });
173
184
  var LatencyMsSchema = z2.object({
174
185
  p50: z2.number().nonnegative(),
@@ -1216,12 +1227,35 @@ var CompatViolationDivergenceSchema = z8.object({
1216
1227
  rule: CompatRuleRefSchema,
1217
1228
  observed: GraphEdgeSchema
1218
1229
  });
1230
+ var SymbolMismatchKindSchema = z8.enum([
1231
+ "missing-attribute",
1232
+ "missing-field",
1233
+ "missing-property",
1234
+ "missing-column",
1235
+ "undefined-method"
1236
+ ]);
1237
+ var ObservedSymbolMismatchDivergenceSchema = z8.object({
1238
+ type: z8.literal("observed-symbol-mismatch"),
1239
+ ...commonFields,
1240
+ mismatchKind: SymbolMismatchKindSchema,
1241
+ symbol: z8.string().optional(),
1242
+ location: z8.string().optional(),
1243
+ provenance: ProvenanceSchema,
1244
+ // The OBSERVED incident this fuses — its id and the raw error text — so a
1245
+ // consumer can trace the finding back to the recorded failure.
1246
+ incidentId: z8.string().optional(),
1247
+ errorMessage: z8.string(),
1248
+ // How many recorded incidents share this (node, member, mismatch) — the
1249
+ // failure has usually fired more than once.
1250
+ incidentCount: z8.number().int().positive().optional()
1251
+ });
1219
1252
  var DivergenceSchema = z8.discriminatedUnion("type", [
1220
1253
  MissingObservedDivergenceSchema,
1221
1254
  MissingExtractedDivergenceSchema,
1222
1255
  VersionMismatchDivergenceSchema,
1223
1256
  HostMismatchDivergenceSchema,
1224
- CompatViolationDivergenceSchema
1257
+ CompatViolationDivergenceSchema,
1258
+ ObservedSymbolMismatchDivergenceSchema
1225
1259
  ]);
1226
1260
  var DivergenceResultSchema = z8.object({
1227
1261
  divergences: z8.array(DivergenceSchema),
@@ -1235,7 +1269,8 @@ var DivergenceTypeSchema = z8.enum([
1235
1269
  "missing-extracted",
1236
1270
  "version-mismatch",
1237
1271
  "host-mismatch",
1238
- "compat-violation"
1272
+ "compat-violation",
1273
+ "observed-symbol-mismatch"
1239
1274
  ]);
1240
1275
 
1241
1276
  // src/mcp-tools.ts
@@ -1510,6 +1545,7 @@ export {
1510
1545
  NodeType,
1511
1546
  NodeTypeSchema,
1512
1547
  ObservedDependenciesResultSchema,
1548
+ ObservedSymbolMismatchDivergenceSchema,
1513
1549
  OwnershipRuleSchema,
1514
1550
  PROV_RANK,
1515
1551
  PoliciesCheckBodySchema,
@@ -1544,6 +1580,7 @@ export {
1544
1580
  StaleEventsResponseSchema,
1545
1581
  StructuralRuleSchema,
1546
1582
  SymbolKindSchema,
1583
+ SymbolMismatchKindSchema,
1547
1584
  SymbolNodeSchema,
1548
1585
  SymbolSpanSchema,
1549
1586
  TransitiveDependenciesResultSchema,