@neat.is/types 0.9.7-dev.20260827 → 0.9.7

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.d.cts CHANGED
@@ -4653,9 +4653,13 @@ declare const ObservedSymbolMismatchDivergenceSchema: z.ZodObject<{
4653
4653
  incidentId?: string | undefined;
4654
4654
  }>;
4655
4655
  type ObservedSymbolMismatchDivergence = z.infer<typeof ObservedSymbolMismatchDivergenceSchema>;
4656
- declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4656
+ declare const ObservedFailureKindSchema: z.ZodEnum<["error-rate", "connection-refused", "deadline-exceeded", "timeout", "unavailable", "server-error"]>;
4657
+ type ObservedFailureKind = z.infer<typeof ObservedFailureKindSchema>;
4658
+ declare const ObservedFailingDivergenceSchema: z.ZodObject<{
4659
+ failureKind: z.ZodEnum<["error-rate", "connection-refused", "deadline-exceeded", "timeout", "unavailable", "server-error"]>;
4660
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
4657
4661
  edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
4658
- extracted: z.ZodOptional<z.ZodObject<{
4662
+ observed: z.ZodOptional<z.ZodObject<{
4659
4663
  id: z.ZodString;
4660
4664
  source: z.ZodString;
4661
4665
  target: z.ZodString;
@@ -4814,23 +4818,36 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4814
4818
  } | undefined;
4815
4819
  grain?: "file" | "service" | undefined;
4816
4820
  }>>;
4817
- table: z.ZodOptional<z.ZodString>;
4818
- column: z.ZodOptional<z.ZodString>;
4821
+ spanCount: z.ZodOptional<z.ZodNumber>;
4822
+ errorCount: z.ZodOptional<z.ZodNumber>;
4823
+ errorRate: z.ZodOptional<z.ZodNumber>;
4824
+ location: z.ZodOptional<z.ZodString>;
4825
+ incidentId: z.ZodOptional<z.ZodString>;
4826
+ errorMessage: z.ZodOptional<z.ZodString>;
4827
+ incidentCount: z.ZodOptional<z.ZodNumber>;
4828
+ httpStatusCode: z.ZodOptional<z.ZodNumber>;
4819
4829
  source: z.ZodString;
4820
4830
  target: z.ZodString;
4821
4831
  confidence: z.ZodNumber;
4822
4832
  reason: z.ZodString;
4823
4833
  recommendation: z.ZodString;
4824
- type: z.ZodLiteral<"missing-observed">;
4834
+ type: z.ZodLiteral<"observed-failing">;
4825
4835
  }, "strip", z.ZodTypeAny, {
4826
4836
  reason: string;
4827
- type: "missing-observed";
4837
+ type: "observed-failing";
4828
4838
  source: string;
4829
4839
  target: string;
4840
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
4830
4841
  confidence: number;
4831
4842
  recommendation: string;
4843
+ failureKind: "error-rate" | "connection-refused" | "deadline-exceeded" | "timeout" | "unavailable" | "server-error";
4844
+ spanCount?: number | undefined;
4845
+ errorCount?: number | undefined;
4846
+ errorMessage?: string | undefined;
4847
+ httpStatusCode?: number | undefined;
4848
+ incidentCount?: number | undefined;
4832
4849
  edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
4833
- extracted?: {
4850
+ observed?: {
4834
4851
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
4835
4852
  source: string;
4836
4853
  id: string;
@@ -4865,17 +4882,25 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4865
4882
  } | undefined;
4866
4883
  grain?: "file" | "service" | undefined;
4867
4884
  } | undefined;
4868
- table?: string | undefined;
4869
- column?: string | undefined;
4885
+ location?: string | undefined;
4886
+ incidentId?: string | undefined;
4887
+ errorRate?: number | undefined;
4870
4888
  }, {
4871
4889
  reason: string;
4872
- type: "missing-observed";
4890
+ type: "observed-failing";
4873
4891
  source: string;
4874
4892
  target: string;
4893
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
4875
4894
  confidence: number;
4876
4895
  recommendation: string;
4896
+ failureKind: "error-rate" | "connection-refused" | "deadline-exceeded" | "timeout" | "unavailable" | "server-error";
4897
+ spanCount?: number | undefined;
4898
+ errorCount?: number | undefined;
4899
+ errorMessage?: string | undefined;
4900
+ httpStatusCode?: number | undefined;
4901
+ incidentCount?: number | undefined;
4877
4902
  edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
4878
- extracted?: {
4903
+ observed?: {
4879
4904
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
4880
4905
  source: string;
4881
4906
  id: string;
@@ -4910,11 +4935,14 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4910
4935
  } | undefined;
4911
4936
  grain?: "file" | "service" | undefined;
4912
4937
  } | undefined;
4913
- table?: string | undefined;
4914
- column?: string | undefined;
4915
- }>, z.ZodObject<{
4938
+ location?: string | undefined;
4939
+ incidentId?: string | undefined;
4940
+ errorRate?: number | undefined;
4941
+ }>;
4942
+ type ObservedFailingDivergence = z.infer<typeof ObservedFailingDivergenceSchema>;
4943
+ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4916
4944
  edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
4917
- observed: z.ZodOptional<z.ZodObject<{
4945
+ extracted: z.ZodOptional<z.ZodObject<{
4918
4946
  id: z.ZodString;
4919
4947
  source: z.ZodString;
4920
4948
  target: z.ZodString;
@@ -5080,16 +5108,16 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5080
5108
  confidence: z.ZodNumber;
5081
5109
  reason: z.ZodString;
5082
5110
  recommendation: z.ZodString;
5083
- type: z.ZodLiteral<"missing-extracted">;
5111
+ type: z.ZodLiteral<"missing-observed">;
5084
5112
  }, "strip", z.ZodTypeAny, {
5085
5113
  reason: string;
5086
- type: "missing-extracted";
5114
+ type: "missing-observed";
5087
5115
  source: string;
5088
5116
  target: string;
5089
5117
  confidence: number;
5090
5118
  recommendation: string;
5091
5119
  edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
5092
- observed?: {
5120
+ extracted?: {
5093
5121
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5094
5122
  source: string;
5095
5123
  id: string;
@@ -5128,13 +5156,13 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5128
5156
  column?: string | undefined;
5129
5157
  }, {
5130
5158
  reason: string;
5131
- type: "missing-extracted";
5159
+ type: "missing-observed";
5132
5160
  source: string;
5133
5161
  target: string;
5134
5162
  confidence: number;
5135
5163
  recommendation: string;
5136
5164
  edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
5137
- observed?: {
5165
+ extracted?: {
5138
5166
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5139
5167
  source: string;
5140
5168
  id: string;
@@ -5172,83 +5200,8 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5172
5200
  table?: string | undefined;
5173
5201
  column?: string | undefined;
5174
5202
  }>, z.ZodObject<{
5175
- extractedVersion: z.ZodString;
5176
- observedVersion: z.ZodString;
5177
- compatibility: z.ZodEnum<["incompatible", "deprecated", "unknown"]>;
5178
- source: z.ZodString;
5179
- target: z.ZodString;
5180
- confidence: z.ZodNumber;
5181
- reason: z.ZodString;
5182
- recommendation: z.ZodString;
5183
- type: z.ZodLiteral<"version-mismatch">;
5184
- }, "strip", z.ZodTypeAny, {
5185
- reason: string;
5186
- type: "version-mismatch";
5187
- source: string;
5188
- target: string;
5189
- confidence: number;
5190
- compatibility: "unknown" | "incompatible" | "deprecated";
5191
- recommendation: string;
5192
- extractedVersion: string;
5193
- observedVersion: string;
5194
- }, {
5195
- reason: string;
5196
- type: "version-mismatch";
5197
- source: string;
5198
- target: string;
5199
- confidence: number;
5200
- compatibility: "unknown" | "incompatible" | "deprecated";
5201
- recommendation: string;
5202
- extractedVersion: string;
5203
- observedVersion: string;
5204
- }>, z.ZodObject<{
5205
- extractedHost: z.ZodString;
5206
- observedHost: z.ZodString;
5207
- source: z.ZodString;
5208
- target: z.ZodString;
5209
- confidence: z.ZodNumber;
5210
- reason: z.ZodString;
5211
- recommendation: z.ZodString;
5212
- type: z.ZodLiteral<"host-mismatch">;
5213
- }, "strip", z.ZodTypeAny, {
5214
- reason: string;
5215
- type: "host-mismatch";
5216
- source: string;
5217
- target: string;
5218
- confidence: number;
5219
- recommendation: string;
5220
- extractedHost: string;
5221
- observedHost: string;
5222
- }, {
5223
- reason: string;
5224
- type: "host-mismatch";
5225
- source: string;
5226
- target: string;
5227
- confidence: number;
5228
- recommendation: string;
5229
- extractedHost: string;
5230
- observedHost: string;
5231
- }>, z.ZodObject<{
5232
- rule: z.ZodObject<{
5233
- kind: z.ZodString;
5234
- reason: z.ZodString;
5235
- package: z.ZodOptional<z.ZodString>;
5236
- driver: z.ZodOptional<z.ZodString>;
5237
- engine: z.ZodOptional<z.ZodString>;
5238
- }, "strip", z.ZodTypeAny, {
5239
- reason: string;
5240
- kind: string;
5241
- driver?: string | undefined;
5242
- engine?: string | undefined;
5243
- package?: string | undefined;
5244
- }, {
5245
- reason: string;
5246
- kind: string;
5247
- driver?: string | undefined;
5248
- engine?: string | undefined;
5249
- package?: string | undefined;
5250
- }>;
5251
- observed: z.ZodObject<{
5203
+ edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
5204
+ observed: z.ZodOptional<z.ZodObject<{
5252
5205
  id: z.ZodString;
5253
5206
  source: z.ZodString;
5254
5207
  target: z.ZodString;
@@ -5406,27 +5359,24 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5406
5359
  } | undefined;
5407
5360
  } | undefined;
5408
5361
  grain?: "file" | "service" | undefined;
5409
- }>;
5362
+ }>>;
5363
+ table: z.ZodOptional<z.ZodString>;
5364
+ column: z.ZodOptional<z.ZodString>;
5410
5365
  source: z.ZodString;
5411
5366
  target: z.ZodString;
5412
5367
  confidence: z.ZodNumber;
5413
5368
  reason: z.ZodString;
5414
5369
  recommendation: z.ZodString;
5415
- type: z.ZodLiteral<"compat-violation">;
5370
+ type: z.ZodLiteral<"missing-extracted">;
5416
5371
  }, "strip", z.ZodTypeAny, {
5417
5372
  reason: string;
5418
- type: "compat-violation";
5373
+ type: "missing-extracted";
5419
5374
  source: string;
5420
- rule: {
5421
- reason: string;
5422
- kind: string;
5423
- driver?: string | undefined;
5424
- engine?: string | undefined;
5425
- package?: string | undefined;
5426
- };
5427
5375
  target: string;
5428
5376
  confidence: number;
5429
- observed: {
5377
+ recommendation: string;
5378
+ edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
5379
+ observed?: {
5430
5380
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5431
5381
  source: string;
5432
5382
  id: string;
@@ -5460,22 +5410,18 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5460
5410
  } | undefined;
5461
5411
  } | undefined;
5462
5412
  grain?: "file" | "service" | undefined;
5463
- };
5464
- recommendation: string;
5413
+ } | undefined;
5414
+ table?: string | undefined;
5415
+ column?: string | undefined;
5465
5416
  }, {
5466
5417
  reason: string;
5467
- type: "compat-violation";
5418
+ type: "missing-extracted";
5468
5419
  source: string;
5469
- rule: {
5470
- reason: string;
5471
- kind: string;
5472
- driver?: string | undefined;
5473
- engine?: string | undefined;
5474
- package?: string | undefined;
5475
- };
5476
5420
  target: string;
5477
5421
  confidence: number;
5478
- observed: {
5422
+ recommendation: string;
5423
+ edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
5424
+ observed?: {
5479
5425
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5480
5426
  source: string;
5481
5427
  id: string;
@@ -5509,80 +5455,963 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5509
5455
  } | undefined;
5510
5456
  } | undefined;
5511
5457
  grain?: "file" | "service" | undefined;
5512
- };
5458
+ } | undefined;
5459
+ table?: string | undefined;
5460
+ column?: string | undefined;
5461
+ }>, z.ZodObject<{
5462
+ extractedVersion: z.ZodString;
5463
+ observedVersion: z.ZodString;
5464
+ compatibility: z.ZodEnum<["incompatible", "deprecated", "unknown"]>;
5465
+ source: z.ZodString;
5466
+ target: z.ZodString;
5467
+ confidence: z.ZodNumber;
5468
+ reason: z.ZodString;
5469
+ recommendation: z.ZodString;
5470
+ type: z.ZodLiteral<"version-mismatch">;
5471
+ }, "strip", z.ZodTypeAny, {
5472
+ reason: string;
5473
+ type: "version-mismatch";
5474
+ source: string;
5475
+ target: string;
5476
+ confidence: number;
5477
+ compatibility: "unknown" | "incompatible" | "deprecated";
5478
+ recommendation: string;
5479
+ extractedVersion: string;
5480
+ observedVersion: string;
5481
+ }, {
5482
+ reason: string;
5483
+ type: "version-mismatch";
5484
+ source: string;
5485
+ target: string;
5486
+ confidence: number;
5487
+ compatibility: "unknown" | "incompatible" | "deprecated";
5513
5488
  recommendation: string;
5489
+ extractedVersion: string;
5490
+ observedVersion: string;
5514
5491
  }>, z.ZodObject<{
5515
- mismatchKind: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
5516
- symbol: z.ZodOptional<z.ZodString>;
5517
- location: z.ZodOptional<z.ZodString>;
5518
- provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
5519
- incidentId: z.ZodOptional<z.ZodString>;
5520
- errorMessage: z.ZodString;
5521
- incidentCount: z.ZodOptional<z.ZodNumber>;
5492
+ extractedHost: z.ZodString;
5493
+ observedHost: z.ZodString;
5522
5494
  source: z.ZodString;
5523
5495
  target: z.ZodString;
5524
5496
  confidence: z.ZodNumber;
5525
5497
  reason: z.ZodString;
5526
5498
  recommendation: z.ZodString;
5527
- type: z.ZodLiteral<"observed-symbol-mismatch">;
5499
+ type: z.ZodLiteral<"host-mismatch">;
5528
5500
  }, "strip", z.ZodTypeAny, {
5529
5501
  reason: string;
5530
- type: "observed-symbol-mismatch";
5502
+ type: "host-mismatch";
5531
5503
  source: string;
5532
5504
  target: string;
5533
- provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
5534
5505
  confidence: number;
5535
- errorMessage: string;
5536
5506
  recommendation: string;
5537
- mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
5538
- symbol?: string | undefined;
5539
- incidentCount?: number | undefined;
5540
- location?: string | undefined;
5541
- incidentId?: string | undefined;
5507
+ extractedHost: string;
5508
+ observedHost: string;
5542
5509
  }, {
5543
5510
  reason: string;
5544
- type: "observed-symbol-mismatch";
5511
+ type: "host-mismatch";
5545
5512
  source: string;
5546
5513
  target: string;
5547
- provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
5548
5514
  confidence: number;
5549
- errorMessage: string;
5550
5515
  recommendation: string;
5551
- mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
5552
- symbol?: string | undefined;
5553
- incidentCount?: number | undefined;
5554
- location?: string | undefined;
5555
- incidentId?: string | undefined;
5556
- }>]>;
5557
- type Divergence = z.infer<typeof DivergenceSchema>;
5558
- declare const DivergenceResultSchema: z.ZodObject<{
5559
- divergences: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5560
- edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
5561
- extracted: z.ZodOptional<z.ZodObject<{
5562
- id: z.ZodString;
5563
- source: z.ZodString;
5564
- target: z.ZodString;
5565
- type: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>;
5566
- provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
5567
- confidence: z.ZodOptional<z.ZodNumber>;
5568
- lastObserved: z.ZodOptional<z.ZodString>;
5569
- callCount: z.ZodOptional<z.ZodNumber>;
5570
- evidence: z.ZodOptional<z.ZodObject<{
5571
- file: z.ZodString;
5572
- line: z.ZodOptional<z.ZodNumber>;
5573
- snippet: z.ZodOptional<z.ZodString>;
5574
- method: z.ZodOptional<z.ZodString>;
5575
- pathTemplate: z.ZodOptional<z.ZodString>;
5576
- hostSource: z.ZodOptional<z.ZodEnum<["literal", "config"]>>;
5577
- approximate: z.ZodOptional<z.ZodBoolean>;
5578
- reason: z.ZodOptional<z.ZodString>;
5579
- }, "strip", z.ZodTypeAny, {
5580
- file: string;
5581
- line?: number | undefined;
5582
- snippet?: string | undefined;
5583
- method?: string | undefined;
5584
- pathTemplate?: string | undefined;
5585
- hostSource?: "literal" | "config" | undefined;
5516
+ extractedHost: string;
5517
+ observedHost: string;
5518
+ }>, z.ZodObject<{
5519
+ rule: z.ZodObject<{
5520
+ kind: z.ZodString;
5521
+ reason: z.ZodString;
5522
+ package: z.ZodOptional<z.ZodString>;
5523
+ driver: z.ZodOptional<z.ZodString>;
5524
+ engine: z.ZodOptional<z.ZodString>;
5525
+ }, "strip", z.ZodTypeAny, {
5526
+ reason: string;
5527
+ kind: string;
5528
+ driver?: string | undefined;
5529
+ engine?: string | undefined;
5530
+ package?: string | undefined;
5531
+ }, {
5532
+ reason: string;
5533
+ kind: string;
5534
+ driver?: string | undefined;
5535
+ engine?: string | undefined;
5536
+ package?: string | undefined;
5537
+ }>;
5538
+ observed: z.ZodObject<{
5539
+ id: z.ZodString;
5540
+ source: z.ZodString;
5541
+ target: z.ZodString;
5542
+ type: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>;
5543
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
5544
+ confidence: z.ZodOptional<z.ZodNumber>;
5545
+ lastObserved: z.ZodOptional<z.ZodString>;
5546
+ callCount: z.ZodOptional<z.ZodNumber>;
5547
+ evidence: z.ZodOptional<z.ZodObject<{
5548
+ file: z.ZodString;
5549
+ line: z.ZodOptional<z.ZodNumber>;
5550
+ snippet: z.ZodOptional<z.ZodString>;
5551
+ method: z.ZodOptional<z.ZodString>;
5552
+ pathTemplate: z.ZodOptional<z.ZodString>;
5553
+ hostSource: z.ZodOptional<z.ZodEnum<["literal", "config"]>>;
5554
+ approximate: z.ZodOptional<z.ZodBoolean>;
5555
+ reason: z.ZodOptional<z.ZodString>;
5556
+ }, "strip", z.ZodTypeAny, {
5557
+ file: string;
5558
+ line?: number | undefined;
5559
+ snippet?: string | undefined;
5560
+ method?: string | undefined;
5561
+ pathTemplate?: string | undefined;
5562
+ hostSource?: "literal" | "config" | undefined;
5563
+ approximate?: boolean | undefined;
5564
+ reason?: string | undefined;
5565
+ }, {
5566
+ file: string;
5567
+ line?: number | undefined;
5568
+ snippet?: string | undefined;
5569
+ method?: string | undefined;
5570
+ pathTemplate?: string | undefined;
5571
+ hostSource?: "literal" | "config" | undefined;
5572
+ approximate?: boolean | undefined;
5573
+ reason?: string | undefined;
5574
+ }>>;
5575
+ signal: z.ZodOptional<z.ZodObject<{
5576
+ spanCount: z.ZodNumber;
5577
+ errorCount: z.ZodNumber;
5578
+ lastObservedAgeMs: z.ZodOptional<z.ZodNumber>;
5579
+ latencyMs: z.ZodOptional<z.ZodObject<{
5580
+ p50: z.ZodNumber;
5581
+ p95: z.ZodNumber;
5582
+ }, "strip", z.ZodTypeAny, {
5583
+ p50: number;
5584
+ p95: number;
5585
+ }, {
5586
+ p50: number;
5587
+ p95: number;
5588
+ }>>;
5589
+ latencyHist: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
5590
+ anomalous: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
5591
+ source: z.ZodString;
5592
+ rule: z.ZodString;
5593
+ }, "strip", z.ZodTypeAny, {
5594
+ source: string;
5595
+ rule: string;
5596
+ }, {
5597
+ source: string;
5598
+ rule: string;
5599
+ }>, z.ZodBoolean]>>;
5600
+ }, "strip", z.ZodTypeAny, {
5601
+ spanCount: number;
5602
+ errorCount: number;
5603
+ lastObservedAgeMs?: number | undefined;
5604
+ latencyMs?: {
5605
+ p50: number;
5606
+ p95: number;
5607
+ } | undefined;
5608
+ latencyHist?: Record<string, number> | undefined;
5609
+ anomalous?: boolean | {
5610
+ source: string;
5611
+ rule: string;
5612
+ } | undefined;
5613
+ }, {
5614
+ spanCount: number;
5615
+ errorCount: number;
5616
+ lastObservedAgeMs?: number | undefined;
5617
+ latencyMs?: {
5618
+ p50: number;
5619
+ p95: number;
5620
+ } | undefined;
5621
+ latencyHist?: Record<string, number> | undefined;
5622
+ anomalous?: boolean | {
5623
+ source: string;
5624
+ rule: string;
5625
+ } | undefined;
5626
+ }>>;
5627
+ grain: z.ZodOptional<z.ZodEnum<["file", "service"]>>;
5628
+ }, "strip", z.ZodTypeAny, {
5629
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5630
+ source: string;
5631
+ id: string;
5632
+ target: string;
5633
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
5634
+ confidence?: number | undefined;
5635
+ lastObserved?: string | undefined;
5636
+ callCount?: number | undefined;
5637
+ evidence?: {
5638
+ file: string;
5639
+ line?: number | undefined;
5640
+ snippet?: string | undefined;
5641
+ method?: string | undefined;
5642
+ pathTemplate?: string | undefined;
5643
+ hostSource?: "literal" | "config" | undefined;
5644
+ approximate?: boolean | undefined;
5645
+ reason?: string | undefined;
5646
+ } | undefined;
5647
+ signal?: {
5648
+ spanCount: number;
5649
+ errorCount: number;
5650
+ lastObservedAgeMs?: number | undefined;
5651
+ latencyMs?: {
5652
+ p50: number;
5653
+ p95: number;
5654
+ } | undefined;
5655
+ latencyHist?: Record<string, number> | undefined;
5656
+ anomalous?: boolean | {
5657
+ source: string;
5658
+ rule: string;
5659
+ } | undefined;
5660
+ } | undefined;
5661
+ grain?: "file" | "service" | undefined;
5662
+ }, {
5663
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5664
+ source: string;
5665
+ id: string;
5666
+ target: string;
5667
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
5668
+ confidence?: number | undefined;
5669
+ lastObserved?: string | undefined;
5670
+ callCount?: number | undefined;
5671
+ evidence?: {
5672
+ file: string;
5673
+ line?: number | undefined;
5674
+ snippet?: string | undefined;
5675
+ method?: string | undefined;
5676
+ pathTemplate?: string | undefined;
5677
+ hostSource?: "literal" | "config" | undefined;
5678
+ approximate?: boolean | undefined;
5679
+ reason?: string | undefined;
5680
+ } | undefined;
5681
+ signal?: {
5682
+ spanCount: number;
5683
+ errorCount: number;
5684
+ lastObservedAgeMs?: number | undefined;
5685
+ latencyMs?: {
5686
+ p50: number;
5687
+ p95: number;
5688
+ } | undefined;
5689
+ latencyHist?: Record<string, number> | undefined;
5690
+ anomalous?: boolean | {
5691
+ source: string;
5692
+ rule: string;
5693
+ } | undefined;
5694
+ } | undefined;
5695
+ grain?: "file" | "service" | undefined;
5696
+ }>;
5697
+ source: z.ZodString;
5698
+ target: z.ZodString;
5699
+ confidence: z.ZodNumber;
5700
+ reason: z.ZodString;
5701
+ recommendation: z.ZodString;
5702
+ type: z.ZodLiteral<"compat-violation">;
5703
+ }, "strip", z.ZodTypeAny, {
5704
+ reason: string;
5705
+ type: "compat-violation";
5706
+ source: string;
5707
+ rule: {
5708
+ reason: string;
5709
+ kind: string;
5710
+ driver?: string | undefined;
5711
+ engine?: string | undefined;
5712
+ package?: string | undefined;
5713
+ };
5714
+ target: string;
5715
+ confidence: number;
5716
+ observed: {
5717
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5718
+ source: string;
5719
+ id: string;
5720
+ target: string;
5721
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
5722
+ confidence?: number | undefined;
5723
+ lastObserved?: string | undefined;
5724
+ callCount?: number | undefined;
5725
+ evidence?: {
5726
+ file: string;
5727
+ line?: number | undefined;
5728
+ snippet?: string | undefined;
5729
+ method?: string | undefined;
5730
+ pathTemplate?: string | undefined;
5731
+ hostSource?: "literal" | "config" | undefined;
5732
+ approximate?: boolean | undefined;
5733
+ reason?: string | undefined;
5734
+ } | undefined;
5735
+ signal?: {
5736
+ spanCount: number;
5737
+ errorCount: number;
5738
+ lastObservedAgeMs?: number | undefined;
5739
+ latencyMs?: {
5740
+ p50: number;
5741
+ p95: number;
5742
+ } | undefined;
5743
+ latencyHist?: Record<string, number> | undefined;
5744
+ anomalous?: boolean | {
5745
+ source: string;
5746
+ rule: string;
5747
+ } | undefined;
5748
+ } | undefined;
5749
+ grain?: "file" | "service" | undefined;
5750
+ };
5751
+ recommendation: string;
5752
+ }, {
5753
+ reason: string;
5754
+ type: "compat-violation";
5755
+ source: string;
5756
+ rule: {
5757
+ reason: string;
5758
+ kind: string;
5759
+ driver?: string | undefined;
5760
+ engine?: string | undefined;
5761
+ package?: string | undefined;
5762
+ };
5763
+ target: string;
5764
+ confidence: number;
5765
+ observed: {
5766
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5767
+ source: string;
5768
+ id: string;
5769
+ target: string;
5770
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
5771
+ confidence?: number | undefined;
5772
+ lastObserved?: string | undefined;
5773
+ callCount?: number | undefined;
5774
+ evidence?: {
5775
+ file: string;
5776
+ line?: number | undefined;
5777
+ snippet?: string | undefined;
5778
+ method?: string | undefined;
5779
+ pathTemplate?: string | undefined;
5780
+ hostSource?: "literal" | "config" | undefined;
5781
+ approximate?: boolean | undefined;
5782
+ reason?: string | undefined;
5783
+ } | undefined;
5784
+ signal?: {
5785
+ spanCount: number;
5786
+ errorCount: number;
5787
+ lastObservedAgeMs?: number | undefined;
5788
+ latencyMs?: {
5789
+ p50: number;
5790
+ p95: number;
5791
+ } | undefined;
5792
+ latencyHist?: Record<string, number> | undefined;
5793
+ anomalous?: boolean | {
5794
+ source: string;
5795
+ rule: string;
5796
+ } | undefined;
5797
+ } | undefined;
5798
+ grain?: "file" | "service" | undefined;
5799
+ };
5800
+ recommendation: string;
5801
+ }>, z.ZodObject<{
5802
+ mismatchKind: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
5803
+ symbol: z.ZodOptional<z.ZodString>;
5804
+ location: z.ZodOptional<z.ZodString>;
5805
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
5806
+ incidentId: z.ZodOptional<z.ZodString>;
5807
+ errorMessage: z.ZodString;
5808
+ incidentCount: z.ZodOptional<z.ZodNumber>;
5809
+ source: z.ZodString;
5810
+ target: z.ZodString;
5811
+ confidence: z.ZodNumber;
5812
+ reason: z.ZodString;
5813
+ recommendation: z.ZodString;
5814
+ type: z.ZodLiteral<"observed-symbol-mismatch">;
5815
+ }, "strip", z.ZodTypeAny, {
5816
+ reason: string;
5817
+ type: "observed-symbol-mismatch";
5818
+ source: string;
5819
+ target: string;
5820
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
5821
+ confidence: number;
5822
+ errorMessage: string;
5823
+ recommendation: string;
5824
+ mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
5825
+ symbol?: string | undefined;
5826
+ incidentCount?: number | undefined;
5827
+ location?: string | undefined;
5828
+ incidentId?: string | undefined;
5829
+ }, {
5830
+ reason: string;
5831
+ type: "observed-symbol-mismatch";
5832
+ source: string;
5833
+ target: string;
5834
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
5835
+ confidence: number;
5836
+ errorMessage: string;
5837
+ recommendation: string;
5838
+ mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
5839
+ symbol?: string | undefined;
5840
+ incidentCount?: number | undefined;
5841
+ location?: string | undefined;
5842
+ incidentId?: string | undefined;
5843
+ }>, z.ZodObject<{
5844
+ failureKind: z.ZodEnum<["error-rate", "connection-refused", "deadline-exceeded", "timeout", "unavailable", "server-error"]>;
5845
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
5846
+ edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
5847
+ observed: z.ZodOptional<z.ZodObject<{
5848
+ id: z.ZodString;
5849
+ source: z.ZodString;
5850
+ target: z.ZodString;
5851
+ type: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>;
5852
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
5853
+ confidence: z.ZodOptional<z.ZodNumber>;
5854
+ lastObserved: z.ZodOptional<z.ZodString>;
5855
+ callCount: z.ZodOptional<z.ZodNumber>;
5856
+ evidence: z.ZodOptional<z.ZodObject<{
5857
+ file: z.ZodString;
5858
+ line: z.ZodOptional<z.ZodNumber>;
5859
+ snippet: z.ZodOptional<z.ZodString>;
5860
+ method: z.ZodOptional<z.ZodString>;
5861
+ pathTemplate: z.ZodOptional<z.ZodString>;
5862
+ hostSource: z.ZodOptional<z.ZodEnum<["literal", "config"]>>;
5863
+ approximate: z.ZodOptional<z.ZodBoolean>;
5864
+ reason: z.ZodOptional<z.ZodString>;
5865
+ }, "strip", z.ZodTypeAny, {
5866
+ file: string;
5867
+ line?: number | undefined;
5868
+ snippet?: string | undefined;
5869
+ method?: string | undefined;
5870
+ pathTemplate?: string | undefined;
5871
+ hostSource?: "literal" | "config" | undefined;
5872
+ approximate?: boolean | undefined;
5873
+ reason?: string | undefined;
5874
+ }, {
5875
+ file: string;
5876
+ line?: number | undefined;
5877
+ snippet?: string | undefined;
5878
+ method?: string | undefined;
5879
+ pathTemplate?: string | undefined;
5880
+ hostSource?: "literal" | "config" | undefined;
5881
+ approximate?: boolean | undefined;
5882
+ reason?: string | undefined;
5883
+ }>>;
5884
+ signal: z.ZodOptional<z.ZodObject<{
5885
+ spanCount: z.ZodNumber;
5886
+ errorCount: z.ZodNumber;
5887
+ lastObservedAgeMs: z.ZodOptional<z.ZodNumber>;
5888
+ latencyMs: z.ZodOptional<z.ZodObject<{
5889
+ p50: z.ZodNumber;
5890
+ p95: z.ZodNumber;
5891
+ }, "strip", z.ZodTypeAny, {
5892
+ p50: number;
5893
+ p95: number;
5894
+ }, {
5895
+ p50: number;
5896
+ p95: number;
5897
+ }>>;
5898
+ latencyHist: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
5899
+ anomalous: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
5900
+ source: z.ZodString;
5901
+ rule: z.ZodString;
5902
+ }, "strip", z.ZodTypeAny, {
5903
+ source: string;
5904
+ rule: string;
5905
+ }, {
5906
+ source: string;
5907
+ rule: string;
5908
+ }>, z.ZodBoolean]>>;
5909
+ }, "strip", z.ZodTypeAny, {
5910
+ spanCount: number;
5911
+ errorCount: number;
5912
+ lastObservedAgeMs?: number | undefined;
5913
+ latencyMs?: {
5914
+ p50: number;
5915
+ p95: number;
5916
+ } | undefined;
5917
+ latencyHist?: Record<string, number> | undefined;
5918
+ anomalous?: boolean | {
5919
+ source: string;
5920
+ rule: string;
5921
+ } | undefined;
5922
+ }, {
5923
+ spanCount: number;
5924
+ errorCount: number;
5925
+ lastObservedAgeMs?: number | undefined;
5926
+ latencyMs?: {
5927
+ p50: number;
5928
+ p95: number;
5929
+ } | undefined;
5930
+ latencyHist?: Record<string, number> | undefined;
5931
+ anomalous?: boolean | {
5932
+ source: string;
5933
+ rule: string;
5934
+ } | undefined;
5935
+ }>>;
5936
+ grain: z.ZodOptional<z.ZodEnum<["file", "service"]>>;
5937
+ }, "strip", z.ZodTypeAny, {
5938
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5939
+ source: string;
5940
+ id: string;
5941
+ target: string;
5942
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
5943
+ confidence?: number | undefined;
5944
+ lastObserved?: string | undefined;
5945
+ callCount?: number | undefined;
5946
+ evidence?: {
5947
+ file: string;
5948
+ line?: number | undefined;
5949
+ snippet?: string | undefined;
5950
+ method?: string | undefined;
5951
+ pathTemplate?: string | undefined;
5952
+ hostSource?: "literal" | "config" | undefined;
5953
+ approximate?: boolean | undefined;
5954
+ reason?: string | undefined;
5955
+ } | undefined;
5956
+ signal?: {
5957
+ spanCount: number;
5958
+ errorCount: number;
5959
+ lastObservedAgeMs?: number | undefined;
5960
+ latencyMs?: {
5961
+ p50: number;
5962
+ p95: number;
5963
+ } | undefined;
5964
+ latencyHist?: Record<string, number> | undefined;
5965
+ anomalous?: boolean | {
5966
+ source: string;
5967
+ rule: string;
5968
+ } | undefined;
5969
+ } | undefined;
5970
+ grain?: "file" | "service" | undefined;
5971
+ }, {
5972
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5973
+ source: string;
5974
+ id: string;
5975
+ target: string;
5976
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
5977
+ confidence?: number | undefined;
5978
+ lastObserved?: string | undefined;
5979
+ callCount?: number | undefined;
5980
+ evidence?: {
5981
+ file: string;
5982
+ line?: number | undefined;
5983
+ snippet?: string | undefined;
5984
+ method?: string | undefined;
5985
+ pathTemplate?: string | undefined;
5986
+ hostSource?: "literal" | "config" | undefined;
5987
+ approximate?: boolean | undefined;
5988
+ reason?: string | undefined;
5989
+ } | undefined;
5990
+ signal?: {
5991
+ spanCount: number;
5992
+ errorCount: number;
5993
+ lastObservedAgeMs?: number | undefined;
5994
+ latencyMs?: {
5995
+ p50: number;
5996
+ p95: number;
5997
+ } | undefined;
5998
+ latencyHist?: Record<string, number> | undefined;
5999
+ anomalous?: boolean | {
6000
+ source: string;
6001
+ rule: string;
6002
+ } | undefined;
6003
+ } | undefined;
6004
+ grain?: "file" | "service" | undefined;
6005
+ }>>;
6006
+ spanCount: z.ZodOptional<z.ZodNumber>;
6007
+ errorCount: z.ZodOptional<z.ZodNumber>;
6008
+ errorRate: z.ZodOptional<z.ZodNumber>;
6009
+ location: z.ZodOptional<z.ZodString>;
6010
+ incidentId: z.ZodOptional<z.ZodString>;
6011
+ errorMessage: z.ZodOptional<z.ZodString>;
6012
+ incidentCount: z.ZodOptional<z.ZodNumber>;
6013
+ httpStatusCode: z.ZodOptional<z.ZodNumber>;
6014
+ source: z.ZodString;
6015
+ target: z.ZodString;
6016
+ confidence: z.ZodNumber;
6017
+ reason: z.ZodString;
6018
+ recommendation: z.ZodString;
6019
+ type: z.ZodLiteral<"observed-failing">;
6020
+ }, "strip", z.ZodTypeAny, {
6021
+ reason: string;
6022
+ type: "observed-failing";
6023
+ source: string;
6024
+ target: string;
6025
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6026
+ confidence: number;
6027
+ recommendation: string;
6028
+ failureKind: "error-rate" | "connection-refused" | "deadline-exceeded" | "timeout" | "unavailable" | "server-error";
6029
+ spanCount?: number | undefined;
6030
+ errorCount?: number | undefined;
6031
+ errorMessage?: string | undefined;
6032
+ httpStatusCode?: number | undefined;
6033
+ incidentCount?: number | undefined;
6034
+ edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
6035
+ observed?: {
6036
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
6037
+ source: string;
6038
+ id: string;
6039
+ target: string;
6040
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6041
+ confidence?: number | undefined;
6042
+ lastObserved?: string | undefined;
6043
+ callCount?: number | undefined;
6044
+ evidence?: {
6045
+ file: string;
6046
+ line?: number | undefined;
6047
+ snippet?: string | undefined;
6048
+ method?: string | undefined;
6049
+ pathTemplate?: string | undefined;
6050
+ hostSource?: "literal" | "config" | undefined;
6051
+ approximate?: boolean | undefined;
6052
+ reason?: string | undefined;
6053
+ } | undefined;
6054
+ signal?: {
6055
+ spanCount: number;
6056
+ errorCount: number;
6057
+ lastObservedAgeMs?: number | undefined;
6058
+ latencyMs?: {
6059
+ p50: number;
6060
+ p95: number;
6061
+ } | undefined;
6062
+ latencyHist?: Record<string, number> | undefined;
6063
+ anomalous?: boolean | {
6064
+ source: string;
6065
+ rule: string;
6066
+ } | undefined;
6067
+ } | undefined;
6068
+ grain?: "file" | "service" | undefined;
6069
+ } | undefined;
6070
+ location?: string | undefined;
6071
+ incidentId?: string | undefined;
6072
+ errorRate?: number | undefined;
6073
+ }, {
6074
+ reason: string;
6075
+ type: "observed-failing";
6076
+ source: string;
6077
+ target: string;
6078
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6079
+ confidence: number;
6080
+ recommendation: string;
6081
+ failureKind: "error-rate" | "connection-refused" | "deadline-exceeded" | "timeout" | "unavailable" | "server-error";
6082
+ spanCount?: number | undefined;
6083
+ errorCount?: number | undefined;
6084
+ errorMessage?: string | undefined;
6085
+ httpStatusCode?: number | undefined;
6086
+ incidentCount?: number | undefined;
6087
+ edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
6088
+ observed?: {
6089
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
6090
+ source: string;
6091
+ id: string;
6092
+ target: string;
6093
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6094
+ confidence?: number | undefined;
6095
+ lastObserved?: string | undefined;
6096
+ callCount?: number | undefined;
6097
+ evidence?: {
6098
+ file: string;
6099
+ line?: number | undefined;
6100
+ snippet?: string | undefined;
6101
+ method?: string | undefined;
6102
+ pathTemplate?: string | undefined;
6103
+ hostSource?: "literal" | "config" | undefined;
6104
+ approximate?: boolean | undefined;
6105
+ reason?: string | undefined;
6106
+ } | undefined;
6107
+ signal?: {
6108
+ spanCount: number;
6109
+ errorCount: number;
6110
+ lastObservedAgeMs?: number | undefined;
6111
+ latencyMs?: {
6112
+ p50: number;
6113
+ p95: number;
6114
+ } | undefined;
6115
+ latencyHist?: Record<string, number> | undefined;
6116
+ anomalous?: boolean | {
6117
+ source: string;
6118
+ rule: string;
6119
+ } | undefined;
6120
+ } | undefined;
6121
+ grain?: "file" | "service" | undefined;
6122
+ } | undefined;
6123
+ location?: string | undefined;
6124
+ incidentId?: string | undefined;
6125
+ errorRate?: number | undefined;
6126
+ }>]>;
6127
+ type Divergence = z.infer<typeof DivergenceSchema>;
6128
+ declare const DivergenceResultSchema: z.ZodObject<{
6129
+ divergences: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6130
+ edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
6131
+ extracted: z.ZodOptional<z.ZodObject<{
6132
+ id: z.ZodString;
6133
+ source: z.ZodString;
6134
+ target: z.ZodString;
6135
+ type: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>;
6136
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
6137
+ confidence: z.ZodOptional<z.ZodNumber>;
6138
+ lastObserved: z.ZodOptional<z.ZodString>;
6139
+ callCount: z.ZodOptional<z.ZodNumber>;
6140
+ evidence: z.ZodOptional<z.ZodObject<{
6141
+ file: z.ZodString;
6142
+ line: z.ZodOptional<z.ZodNumber>;
6143
+ snippet: z.ZodOptional<z.ZodString>;
6144
+ method: z.ZodOptional<z.ZodString>;
6145
+ pathTemplate: z.ZodOptional<z.ZodString>;
6146
+ hostSource: z.ZodOptional<z.ZodEnum<["literal", "config"]>>;
6147
+ approximate: z.ZodOptional<z.ZodBoolean>;
6148
+ reason: z.ZodOptional<z.ZodString>;
6149
+ }, "strip", z.ZodTypeAny, {
6150
+ file: string;
6151
+ line?: number | undefined;
6152
+ snippet?: string | undefined;
6153
+ method?: string | undefined;
6154
+ pathTemplate?: string | undefined;
6155
+ hostSource?: "literal" | "config" | undefined;
6156
+ approximate?: boolean | undefined;
6157
+ reason?: string | undefined;
6158
+ }, {
6159
+ file: string;
6160
+ line?: number | undefined;
6161
+ snippet?: string | undefined;
6162
+ method?: string | undefined;
6163
+ pathTemplate?: string | undefined;
6164
+ hostSource?: "literal" | "config" | undefined;
6165
+ approximate?: boolean | undefined;
6166
+ reason?: string | undefined;
6167
+ }>>;
6168
+ signal: z.ZodOptional<z.ZodObject<{
6169
+ spanCount: z.ZodNumber;
6170
+ errorCount: z.ZodNumber;
6171
+ lastObservedAgeMs: z.ZodOptional<z.ZodNumber>;
6172
+ latencyMs: z.ZodOptional<z.ZodObject<{
6173
+ p50: z.ZodNumber;
6174
+ p95: z.ZodNumber;
6175
+ }, "strip", z.ZodTypeAny, {
6176
+ p50: number;
6177
+ p95: number;
6178
+ }, {
6179
+ p50: number;
6180
+ p95: number;
6181
+ }>>;
6182
+ latencyHist: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6183
+ anomalous: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
6184
+ source: z.ZodString;
6185
+ rule: z.ZodString;
6186
+ }, "strip", z.ZodTypeAny, {
6187
+ source: string;
6188
+ rule: string;
6189
+ }, {
6190
+ source: string;
6191
+ rule: string;
6192
+ }>, z.ZodBoolean]>>;
6193
+ }, "strip", z.ZodTypeAny, {
6194
+ spanCount: number;
6195
+ errorCount: number;
6196
+ lastObservedAgeMs?: number | undefined;
6197
+ latencyMs?: {
6198
+ p50: number;
6199
+ p95: number;
6200
+ } | undefined;
6201
+ latencyHist?: Record<string, number> | undefined;
6202
+ anomalous?: boolean | {
6203
+ source: string;
6204
+ rule: string;
6205
+ } | undefined;
6206
+ }, {
6207
+ spanCount: number;
6208
+ errorCount: number;
6209
+ lastObservedAgeMs?: number | undefined;
6210
+ latencyMs?: {
6211
+ p50: number;
6212
+ p95: number;
6213
+ } | undefined;
6214
+ latencyHist?: Record<string, number> | undefined;
6215
+ anomalous?: boolean | {
6216
+ source: string;
6217
+ rule: string;
6218
+ } | undefined;
6219
+ }>>;
6220
+ grain: z.ZodOptional<z.ZodEnum<["file", "service"]>>;
6221
+ }, "strip", z.ZodTypeAny, {
6222
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
6223
+ source: string;
6224
+ id: string;
6225
+ target: string;
6226
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6227
+ confidence?: number | undefined;
6228
+ lastObserved?: string | undefined;
6229
+ callCount?: number | undefined;
6230
+ evidence?: {
6231
+ file: string;
6232
+ line?: number | undefined;
6233
+ snippet?: string | undefined;
6234
+ method?: string | undefined;
6235
+ pathTemplate?: string | undefined;
6236
+ hostSource?: "literal" | "config" | undefined;
6237
+ approximate?: boolean | undefined;
6238
+ reason?: string | undefined;
6239
+ } | undefined;
6240
+ signal?: {
6241
+ spanCount: number;
6242
+ errorCount: number;
6243
+ lastObservedAgeMs?: number | undefined;
6244
+ latencyMs?: {
6245
+ p50: number;
6246
+ p95: number;
6247
+ } | undefined;
6248
+ latencyHist?: Record<string, number> | undefined;
6249
+ anomalous?: boolean | {
6250
+ source: string;
6251
+ rule: string;
6252
+ } | undefined;
6253
+ } | undefined;
6254
+ grain?: "file" | "service" | undefined;
6255
+ }, {
6256
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
6257
+ source: string;
6258
+ id: string;
6259
+ target: string;
6260
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6261
+ confidence?: number | undefined;
6262
+ lastObserved?: string | undefined;
6263
+ callCount?: number | undefined;
6264
+ evidence?: {
6265
+ file: string;
6266
+ line?: number | undefined;
6267
+ snippet?: string | undefined;
6268
+ method?: string | undefined;
6269
+ pathTemplate?: string | undefined;
6270
+ hostSource?: "literal" | "config" | undefined;
6271
+ approximate?: boolean | undefined;
6272
+ reason?: string | undefined;
6273
+ } | undefined;
6274
+ signal?: {
6275
+ spanCount: number;
6276
+ errorCount: number;
6277
+ lastObservedAgeMs?: number | undefined;
6278
+ latencyMs?: {
6279
+ p50: number;
6280
+ p95: number;
6281
+ } | undefined;
6282
+ latencyHist?: Record<string, number> | undefined;
6283
+ anomalous?: boolean | {
6284
+ source: string;
6285
+ rule: string;
6286
+ } | undefined;
6287
+ } | undefined;
6288
+ grain?: "file" | "service" | undefined;
6289
+ }>>;
6290
+ table: z.ZodOptional<z.ZodString>;
6291
+ column: z.ZodOptional<z.ZodString>;
6292
+ source: z.ZodString;
6293
+ target: z.ZodString;
6294
+ confidence: z.ZodNumber;
6295
+ reason: z.ZodString;
6296
+ recommendation: z.ZodString;
6297
+ type: z.ZodLiteral<"missing-observed">;
6298
+ }, "strip", z.ZodTypeAny, {
6299
+ reason: string;
6300
+ type: "missing-observed";
6301
+ source: string;
6302
+ target: string;
6303
+ confidence: number;
6304
+ recommendation: string;
6305
+ edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
6306
+ extracted?: {
6307
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
6308
+ source: string;
6309
+ id: string;
6310
+ target: string;
6311
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6312
+ confidence?: number | undefined;
6313
+ lastObserved?: string | undefined;
6314
+ callCount?: number | undefined;
6315
+ evidence?: {
6316
+ file: string;
6317
+ line?: number | undefined;
6318
+ snippet?: string | undefined;
6319
+ method?: string | undefined;
6320
+ pathTemplate?: string | undefined;
6321
+ hostSource?: "literal" | "config" | undefined;
6322
+ approximate?: boolean | undefined;
6323
+ reason?: string | undefined;
6324
+ } | undefined;
6325
+ signal?: {
6326
+ spanCount: number;
6327
+ errorCount: number;
6328
+ lastObservedAgeMs?: number | undefined;
6329
+ latencyMs?: {
6330
+ p50: number;
6331
+ p95: number;
6332
+ } | undefined;
6333
+ latencyHist?: Record<string, number> | undefined;
6334
+ anomalous?: boolean | {
6335
+ source: string;
6336
+ rule: string;
6337
+ } | undefined;
6338
+ } | undefined;
6339
+ grain?: "file" | "service" | undefined;
6340
+ } | undefined;
6341
+ table?: string | undefined;
6342
+ column?: string | undefined;
6343
+ }, {
6344
+ reason: string;
6345
+ type: "missing-observed";
6346
+ source: string;
6347
+ target: string;
6348
+ confidence: number;
6349
+ recommendation: string;
6350
+ edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
6351
+ extracted?: {
6352
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
6353
+ source: string;
6354
+ id: string;
6355
+ target: string;
6356
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6357
+ confidence?: number | undefined;
6358
+ lastObserved?: string | undefined;
6359
+ callCount?: number | undefined;
6360
+ evidence?: {
6361
+ file: string;
6362
+ line?: number | undefined;
6363
+ snippet?: string | undefined;
6364
+ method?: string | undefined;
6365
+ pathTemplate?: string | undefined;
6366
+ hostSource?: "literal" | "config" | undefined;
6367
+ approximate?: boolean | undefined;
6368
+ reason?: string | undefined;
6369
+ } | undefined;
6370
+ signal?: {
6371
+ spanCount: number;
6372
+ errorCount: number;
6373
+ lastObservedAgeMs?: number | undefined;
6374
+ latencyMs?: {
6375
+ p50: number;
6376
+ p95: number;
6377
+ } | undefined;
6378
+ latencyHist?: Record<string, number> | undefined;
6379
+ anomalous?: boolean | {
6380
+ source: string;
6381
+ rule: string;
6382
+ } | undefined;
6383
+ } | undefined;
6384
+ grain?: "file" | "service" | undefined;
6385
+ } | undefined;
6386
+ table?: string | undefined;
6387
+ column?: string | undefined;
6388
+ }>, z.ZodObject<{
6389
+ edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
6390
+ observed: z.ZodOptional<z.ZodObject<{
6391
+ id: z.ZodString;
6392
+ source: z.ZodString;
6393
+ target: z.ZodString;
6394
+ type: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>;
6395
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
6396
+ confidence: z.ZodOptional<z.ZodNumber>;
6397
+ lastObserved: z.ZodOptional<z.ZodString>;
6398
+ callCount: z.ZodOptional<z.ZodNumber>;
6399
+ evidence: z.ZodOptional<z.ZodObject<{
6400
+ file: z.ZodString;
6401
+ line: z.ZodOptional<z.ZodNumber>;
6402
+ snippet: z.ZodOptional<z.ZodString>;
6403
+ method: z.ZodOptional<z.ZodString>;
6404
+ pathTemplate: z.ZodOptional<z.ZodString>;
6405
+ hostSource: z.ZodOptional<z.ZodEnum<["literal", "config"]>>;
6406
+ approximate: z.ZodOptional<z.ZodBoolean>;
6407
+ reason: z.ZodOptional<z.ZodString>;
6408
+ }, "strip", z.ZodTypeAny, {
6409
+ file: string;
6410
+ line?: number | undefined;
6411
+ snippet?: string | undefined;
6412
+ method?: string | undefined;
6413
+ pathTemplate?: string | undefined;
6414
+ hostSource?: "literal" | "config" | undefined;
5586
6415
  approximate?: boolean | undefined;
5587
6416
  reason?: string | undefined;
5588
6417
  }, {
@@ -5724,16 +6553,16 @@ declare const DivergenceResultSchema: z.ZodObject<{
5724
6553
  confidence: z.ZodNumber;
5725
6554
  reason: z.ZodString;
5726
6555
  recommendation: z.ZodString;
5727
- type: z.ZodLiteral<"missing-observed">;
6556
+ type: z.ZodLiteral<"missing-extracted">;
5728
6557
  }, "strip", z.ZodTypeAny, {
5729
6558
  reason: string;
5730
- type: "missing-observed";
6559
+ type: "missing-extracted";
5731
6560
  source: string;
5732
6561
  target: string;
5733
6562
  confidence: number;
5734
6563
  recommendation: string;
5735
6564
  edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
5736
- extracted?: {
6565
+ observed?: {
5737
6566
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5738
6567
  source: string;
5739
6568
  id: string;
@@ -5772,13 +6601,13 @@ declare const DivergenceResultSchema: z.ZodObject<{
5772
6601
  column?: string | undefined;
5773
6602
  }, {
5774
6603
  reason: string;
5775
- type: "missing-observed";
6604
+ type: "missing-extracted";
5776
6605
  source: string;
5777
6606
  target: string;
5778
6607
  confidence: number;
5779
6608
  recommendation: string;
5780
6609
  edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
5781
- extracted?: {
6610
+ observed?: {
5782
6611
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5783
6612
  source: string;
5784
6613
  id: string;
@@ -5816,8 +6645,83 @@ declare const DivergenceResultSchema: z.ZodObject<{
5816
6645
  table?: string | undefined;
5817
6646
  column?: string | undefined;
5818
6647
  }>, z.ZodObject<{
5819
- edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
5820
- observed: z.ZodOptional<z.ZodObject<{
6648
+ extractedVersion: z.ZodString;
6649
+ observedVersion: z.ZodString;
6650
+ compatibility: z.ZodEnum<["incompatible", "deprecated", "unknown"]>;
6651
+ source: z.ZodString;
6652
+ target: z.ZodString;
6653
+ confidence: z.ZodNumber;
6654
+ reason: z.ZodString;
6655
+ recommendation: z.ZodString;
6656
+ type: z.ZodLiteral<"version-mismatch">;
6657
+ }, "strip", z.ZodTypeAny, {
6658
+ reason: string;
6659
+ type: "version-mismatch";
6660
+ source: string;
6661
+ target: string;
6662
+ confidence: number;
6663
+ compatibility: "unknown" | "incompatible" | "deprecated";
6664
+ recommendation: string;
6665
+ extractedVersion: string;
6666
+ observedVersion: string;
6667
+ }, {
6668
+ reason: string;
6669
+ type: "version-mismatch";
6670
+ source: string;
6671
+ target: string;
6672
+ confidence: number;
6673
+ compatibility: "unknown" | "incompatible" | "deprecated";
6674
+ recommendation: string;
6675
+ extractedVersion: string;
6676
+ observedVersion: string;
6677
+ }>, z.ZodObject<{
6678
+ extractedHost: z.ZodString;
6679
+ observedHost: z.ZodString;
6680
+ source: z.ZodString;
6681
+ target: z.ZodString;
6682
+ confidence: z.ZodNumber;
6683
+ reason: z.ZodString;
6684
+ recommendation: z.ZodString;
6685
+ type: z.ZodLiteral<"host-mismatch">;
6686
+ }, "strip", z.ZodTypeAny, {
6687
+ reason: string;
6688
+ type: "host-mismatch";
6689
+ source: string;
6690
+ target: string;
6691
+ confidence: number;
6692
+ recommendation: string;
6693
+ extractedHost: string;
6694
+ observedHost: string;
6695
+ }, {
6696
+ reason: string;
6697
+ type: "host-mismatch";
6698
+ source: string;
6699
+ target: string;
6700
+ confidence: number;
6701
+ recommendation: string;
6702
+ extractedHost: string;
6703
+ observedHost: string;
6704
+ }>, z.ZodObject<{
6705
+ rule: z.ZodObject<{
6706
+ kind: z.ZodString;
6707
+ reason: z.ZodString;
6708
+ package: z.ZodOptional<z.ZodString>;
6709
+ driver: z.ZodOptional<z.ZodString>;
6710
+ engine: z.ZodOptional<z.ZodString>;
6711
+ }, "strip", z.ZodTypeAny, {
6712
+ reason: string;
6713
+ kind: string;
6714
+ driver?: string | undefined;
6715
+ engine?: string | undefined;
6716
+ package?: string | undefined;
6717
+ }, {
6718
+ reason: string;
6719
+ kind: string;
6720
+ driver?: string | undefined;
6721
+ engine?: string | undefined;
6722
+ package?: string | undefined;
6723
+ }>;
6724
+ observed: z.ZodObject<{
5821
6725
  id: z.ZodString;
5822
6726
  source: z.ZodString;
5823
6727
  target: z.ZodString;
@@ -5975,24 +6879,27 @@ declare const DivergenceResultSchema: z.ZodObject<{
5975
6879
  } | undefined;
5976
6880
  } | undefined;
5977
6881
  grain?: "file" | "service" | undefined;
5978
- }>>;
5979
- table: z.ZodOptional<z.ZodString>;
5980
- column: z.ZodOptional<z.ZodString>;
6882
+ }>;
5981
6883
  source: z.ZodString;
5982
6884
  target: z.ZodString;
5983
6885
  confidence: z.ZodNumber;
5984
6886
  reason: z.ZodString;
5985
6887
  recommendation: z.ZodString;
5986
- type: z.ZodLiteral<"missing-extracted">;
6888
+ type: z.ZodLiteral<"compat-violation">;
5987
6889
  }, "strip", z.ZodTypeAny, {
5988
6890
  reason: string;
5989
- type: "missing-extracted";
6891
+ type: "compat-violation";
5990
6892
  source: string;
6893
+ rule: {
6894
+ reason: string;
6895
+ kind: string;
6896
+ driver?: string | undefined;
6897
+ engine?: string | undefined;
6898
+ package?: string | undefined;
6899
+ };
5991
6900
  target: string;
5992
6901
  confidence: number;
5993
- recommendation: string;
5994
- edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
5995
- observed?: {
6902
+ observed: {
5996
6903
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
5997
6904
  source: string;
5998
6905
  id: string;
@@ -6026,18 +6933,22 @@ declare const DivergenceResultSchema: z.ZodObject<{
6026
6933
  } | undefined;
6027
6934
  } | undefined;
6028
6935
  grain?: "file" | "service" | undefined;
6029
- } | undefined;
6030
- table?: string | undefined;
6031
- column?: string | undefined;
6936
+ };
6937
+ recommendation: string;
6032
6938
  }, {
6033
6939
  reason: string;
6034
- type: "missing-extracted";
6940
+ type: "compat-violation";
6035
6941
  source: string;
6942
+ rule: {
6943
+ reason: string;
6944
+ kind: string;
6945
+ driver?: string | undefined;
6946
+ engine?: string | undefined;
6947
+ package?: string | undefined;
6948
+ };
6036
6949
  target: string;
6037
6950
  confidence: number;
6038
- recommendation: string;
6039
- edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
6040
- observed?: {
6951
+ observed: {
6041
6952
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
6042
6953
  source: string;
6043
6954
  id: string;
@@ -6053,105 +6964,73 @@ declare const DivergenceResultSchema: z.ZodObject<{
6053
6964
  method?: string | undefined;
6054
6965
  pathTemplate?: string | undefined;
6055
6966
  hostSource?: "literal" | "config" | undefined;
6056
- approximate?: boolean | undefined;
6057
- reason?: string | undefined;
6058
- } | undefined;
6059
- signal?: {
6060
- spanCount: number;
6061
- errorCount: number;
6062
- lastObservedAgeMs?: number | undefined;
6063
- latencyMs?: {
6064
- p50: number;
6065
- p95: number;
6066
- } | undefined;
6067
- latencyHist?: Record<string, number> | undefined;
6068
- anomalous?: boolean | {
6069
- source: string;
6070
- rule: string;
6071
- } | undefined;
6072
- } | undefined;
6073
- grain?: "file" | "service" | undefined;
6074
- } | undefined;
6075
- table?: string | undefined;
6076
- column?: string | undefined;
6077
- }>, z.ZodObject<{
6078
- extractedVersion: z.ZodString;
6079
- observedVersion: z.ZodString;
6080
- compatibility: z.ZodEnum<["incompatible", "deprecated", "unknown"]>;
6081
- source: z.ZodString;
6082
- target: z.ZodString;
6083
- confidence: z.ZodNumber;
6084
- reason: z.ZodString;
6085
- recommendation: z.ZodString;
6086
- type: z.ZodLiteral<"version-mismatch">;
6087
- }, "strip", z.ZodTypeAny, {
6088
- reason: string;
6089
- type: "version-mismatch";
6090
- source: string;
6091
- target: string;
6092
- confidence: number;
6093
- compatibility: "unknown" | "incompatible" | "deprecated";
6094
- recommendation: string;
6095
- extractedVersion: string;
6096
- observedVersion: string;
6097
- }, {
6098
- reason: string;
6099
- type: "version-mismatch";
6100
- source: string;
6101
- target: string;
6102
- confidence: number;
6103
- compatibility: "unknown" | "incompatible" | "deprecated";
6967
+ approximate?: boolean | undefined;
6968
+ reason?: string | undefined;
6969
+ } | undefined;
6970
+ signal?: {
6971
+ spanCount: number;
6972
+ errorCount: number;
6973
+ lastObservedAgeMs?: number | undefined;
6974
+ latencyMs?: {
6975
+ p50: number;
6976
+ p95: number;
6977
+ } | undefined;
6978
+ latencyHist?: Record<string, number> | undefined;
6979
+ anomalous?: boolean | {
6980
+ source: string;
6981
+ rule: string;
6982
+ } | undefined;
6983
+ } | undefined;
6984
+ grain?: "file" | "service" | undefined;
6985
+ };
6104
6986
  recommendation: string;
6105
- extractedVersion: string;
6106
- observedVersion: string;
6107
6987
  }>, z.ZodObject<{
6108
- extractedHost: z.ZodString;
6109
- observedHost: z.ZodString;
6988
+ mismatchKind: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
6989
+ symbol: z.ZodOptional<z.ZodString>;
6990
+ location: z.ZodOptional<z.ZodString>;
6991
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
6992
+ incidentId: z.ZodOptional<z.ZodString>;
6993
+ errorMessage: z.ZodString;
6994
+ incidentCount: z.ZodOptional<z.ZodNumber>;
6110
6995
  source: z.ZodString;
6111
6996
  target: z.ZodString;
6112
6997
  confidence: z.ZodNumber;
6113
6998
  reason: z.ZodString;
6114
6999
  recommendation: z.ZodString;
6115
- type: z.ZodLiteral<"host-mismatch">;
7000
+ type: z.ZodLiteral<"observed-symbol-mismatch">;
6116
7001
  }, "strip", z.ZodTypeAny, {
6117
7002
  reason: string;
6118
- type: "host-mismatch";
7003
+ type: "observed-symbol-mismatch";
6119
7004
  source: string;
6120
7005
  target: string;
7006
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6121
7007
  confidence: number;
7008
+ errorMessage: string;
6122
7009
  recommendation: string;
6123
- extractedHost: string;
6124
- observedHost: string;
7010
+ mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
7011
+ symbol?: string | undefined;
7012
+ incidentCount?: number | undefined;
7013
+ location?: string | undefined;
7014
+ incidentId?: string | undefined;
6125
7015
  }, {
6126
7016
  reason: string;
6127
- type: "host-mismatch";
7017
+ type: "observed-symbol-mismatch";
6128
7018
  source: string;
6129
7019
  target: string;
7020
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6130
7021
  confidence: number;
7022
+ errorMessage: string;
6131
7023
  recommendation: string;
6132
- extractedHost: string;
6133
- observedHost: string;
7024
+ mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
7025
+ symbol?: string | undefined;
7026
+ incidentCount?: number | undefined;
7027
+ location?: string | undefined;
7028
+ incidentId?: string | undefined;
6134
7029
  }>, z.ZodObject<{
6135
- rule: z.ZodObject<{
6136
- kind: z.ZodString;
6137
- reason: z.ZodString;
6138
- package: z.ZodOptional<z.ZodString>;
6139
- driver: z.ZodOptional<z.ZodString>;
6140
- engine: z.ZodOptional<z.ZodString>;
6141
- }, "strip", z.ZodTypeAny, {
6142
- reason: string;
6143
- kind: string;
6144
- driver?: string | undefined;
6145
- engine?: string | undefined;
6146
- package?: string | undefined;
6147
- }, {
6148
- reason: string;
6149
- kind: string;
6150
- driver?: string | undefined;
6151
- engine?: string | undefined;
6152
- package?: string | undefined;
6153
- }>;
6154
- observed: z.ZodObject<{
7030
+ failureKind: z.ZodEnum<["error-rate", "connection-refused", "deadline-exceeded", "timeout", "unavailable", "server-error"]>;
7031
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
7032
+ edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
7033
+ observed: z.ZodOptional<z.ZodObject<{
6155
7034
  id: z.ZodString;
6156
7035
  source: z.ZodString;
6157
7036
  target: z.ZodString;
@@ -6309,27 +7188,37 @@ declare const DivergenceResultSchema: z.ZodObject<{
6309
7188
  } | undefined;
6310
7189
  } | undefined;
6311
7190
  grain?: "file" | "service" | undefined;
6312
- }>;
7191
+ }>>;
7192
+ spanCount: z.ZodOptional<z.ZodNumber>;
7193
+ errorCount: z.ZodOptional<z.ZodNumber>;
7194
+ errorRate: z.ZodOptional<z.ZodNumber>;
7195
+ location: z.ZodOptional<z.ZodString>;
7196
+ incidentId: z.ZodOptional<z.ZodString>;
7197
+ errorMessage: z.ZodOptional<z.ZodString>;
7198
+ incidentCount: z.ZodOptional<z.ZodNumber>;
7199
+ httpStatusCode: z.ZodOptional<z.ZodNumber>;
6313
7200
  source: z.ZodString;
6314
7201
  target: z.ZodString;
6315
7202
  confidence: z.ZodNumber;
6316
7203
  reason: z.ZodString;
6317
7204
  recommendation: z.ZodString;
6318
- type: z.ZodLiteral<"compat-violation">;
7205
+ type: z.ZodLiteral<"observed-failing">;
6319
7206
  }, "strip", z.ZodTypeAny, {
6320
7207
  reason: string;
6321
- type: "compat-violation";
7208
+ type: "observed-failing";
6322
7209
  source: string;
6323
- rule: {
6324
- reason: string;
6325
- kind: string;
6326
- driver?: string | undefined;
6327
- engine?: string | undefined;
6328
- package?: string | undefined;
6329
- };
6330
7210
  target: string;
7211
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6331
7212
  confidence: number;
6332
- observed: {
7213
+ recommendation: string;
7214
+ failureKind: "error-rate" | "connection-refused" | "deadline-exceeded" | "timeout" | "unavailable" | "server-error";
7215
+ spanCount?: number | undefined;
7216
+ errorCount?: number | undefined;
7217
+ errorMessage?: string | undefined;
7218
+ httpStatusCode?: number | undefined;
7219
+ incidentCount?: number | undefined;
7220
+ edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
7221
+ observed?: {
6333
7222
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
6334
7223
  source: string;
6335
7224
  id: string;
@@ -6363,22 +7252,26 @@ declare const DivergenceResultSchema: z.ZodObject<{
6363
7252
  } | undefined;
6364
7253
  } | undefined;
6365
7254
  grain?: "file" | "service" | undefined;
6366
- };
6367
- recommendation: string;
7255
+ } | undefined;
7256
+ location?: string | undefined;
7257
+ incidentId?: string | undefined;
7258
+ errorRate?: number | undefined;
6368
7259
  }, {
6369
7260
  reason: string;
6370
- type: "compat-violation";
7261
+ type: "observed-failing";
6371
7262
  source: string;
6372
- rule: {
6373
- reason: string;
6374
- kind: string;
6375
- driver?: string | undefined;
6376
- engine?: string | undefined;
6377
- package?: string | undefined;
6378
- };
6379
7263
  target: string;
7264
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6380
7265
  confidence: number;
6381
- observed: {
7266
+ recommendation: string;
7267
+ failureKind: "error-rate" | "connection-refused" | "deadline-exceeded" | "timeout" | "unavailable" | "server-error";
7268
+ spanCount?: number | undefined;
7269
+ errorCount?: number | undefined;
7270
+ errorMessage?: string | undefined;
7271
+ httpStatusCode?: number | undefined;
7272
+ incidentCount?: number | undefined;
7273
+ edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
7274
+ observed?: {
6382
7275
  type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
6383
7276
  source: string;
6384
7277
  id: string;
@@ -6412,50 +7305,10 @@ declare const DivergenceResultSchema: z.ZodObject<{
6412
7305
  } | undefined;
6413
7306
  } | undefined;
6414
7307
  grain?: "file" | "service" | undefined;
6415
- };
6416
- recommendation: string;
6417
- }>, z.ZodObject<{
6418
- mismatchKind: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
6419
- symbol: z.ZodOptional<z.ZodString>;
6420
- location: z.ZodOptional<z.ZodString>;
6421
- provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
6422
- incidentId: z.ZodOptional<z.ZodString>;
6423
- errorMessage: z.ZodString;
6424
- incidentCount: z.ZodOptional<z.ZodNumber>;
6425
- source: z.ZodString;
6426
- target: z.ZodString;
6427
- confidence: z.ZodNumber;
6428
- reason: z.ZodString;
6429
- recommendation: z.ZodString;
6430
- type: z.ZodLiteral<"observed-symbol-mismatch">;
6431
- }, "strip", z.ZodTypeAny, {
6432
- reason: string;
6433
- type: "observed-symbol-mismatch";
6434
- source: string;
6435
- target: string;
6436
- provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6437
- confidence: number;
6438
- errorMessage: string;
6439
- recommendation: string;
6440
- mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
6441
- symbol?: string | undefined;
6442
- incidentCount?: number | undefined;
6443
- location?: string | undefined;
6444
- incidentId?: string | undefined;
6445
- }, {
6446
- reason: string;
6447
- type: "observed-symbol-mismatch";
6448
- source: string;
6449
- target: string;
6450
- provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
6451
- confidence: number;
6452
- errorMessage: string;
6453
- recommendation: string;
6454
- mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
6455
- symbol?: string | undefined;
6456
- incidentCount?: number | undefined;
7308
+ } | undefined;
6457
7309
  location?: string | undefined;
6458
7310
  incidentId?: string | undefined;
7311
+ errorRate?: number | undefined;
6459
7312
  }>]>, "many">;
6460
7313
  totalAffected: z.ZodNumber;
6461
7314
  computedAt: z.ZodString;
@@ -6633,6 +7486,59 @@ declare const DivergenceResultSchema: z.ZodObject<{
6633
7486
  incidentCount?: number | undefined;
6634
7487
  location?: string | undefined;
6635
7488
  incidentId?: string | undefined;
7489
+ } | {
7490
+ reason: string;
7491
+ type: "observed-failing";
7492
+ source: string;
7493
+ target: string;
7494
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
7495
+ confidence: number;
7496
+ recommendation: string;
7497
+ failureKind: "error-rate" | "connection-refused" | "deadline-exceeded" | "timeout" | "unavailable" | "server-error";
7498
+ spanCount?: number | undefined;
7499
+ errorCount?: number | undefined;
7500
+ errorMessage?: string | undefined;
7501
+ httpStatusCode?: number | undefined;
7502
+ incidentCount?: number | undefined;
7503
+ edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
7504
+ observed?: {
7505
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
7506
+ source: string;
7507
+ id: string;
7508
+ target: string;
7509
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
7510
+ confidence?: number | undefined;
7511
+ lastObserved?: string | undefined;
7512
+ callCount?: number | undefined;
7513
+ evidence?: {
7514
+ file: string;
7515
+ line?: number | undefined;
7516
+ snippet?: string | undefined;
7517
+ method?: string | undefined;
7518
+ pathTemplate?: string | undefined;
7519
+ hostSource?: "literal" | "config" | undefined;
7520
+ approximate?: boolean | undefined;
7521
+ reason?: string | undefined;
7522
+ } | undefined;
7523
+ signal?: {
7524
+ spanCount: number;
7525
+ errorCount: number;
7526
+ lastObservedAgeMs?: number | undefined;
7527
+ latencyMs?: {
7528
+ p50: number;
7529
+ p95: number;
7530
+ } | undefined;
7531
+ latencyHist?: Record<string, number> | undefined;
7532
+ anomalous?: boolean | {
7533
+ source: string;
7534
+ rule: string;
7535
+ } | undefined;
7536
+ } | undefined;
7537
+ grain?: "file" | "service" | undefined;
7538
+ } | undefined;
7539
+ location?: string | undefined;
7540
+ incidentId?: string | undefined;
7541
+ errorRate?: number | undefined;
6636
7542
  })[];
6637
7543
  computedAt: string;
6638
7544
  }, {
@@ -6809,11 +7715,64 @@ declare const DivergenceResultSchema: z.ZodObject<{
6809
7715
  incidentCount?: number | undefined;
6810
7716
  location?: string | undefined;
6811
7717
  incidentId?: string | undefined;
7718
+ } | {
7719
+ reason: string;
7720
+ type: "observed-failing";
7721
+ source: string;
7722
+ target: string;
7723
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
7724
+ confidence: number;
7725
+ recommendation: string;
7726
+ failureKind: "error-rate" | "connection-refused" | "deadline-exceeded" | "timeout" | "unavailable" | "server-error";
7727
+ spanCount?: number | undefined;
7728
+ errorCount?: number | undefined;
7729
+ errorMessage?: string | undefined;
7730
+ httpStatusCode?: number | undefined;
7731
+ incidentCount?: number | undefined;
7732
+ edgeType?: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES" | undefined;
7733
+ observed?: {
7734
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS" | "IMPORTS" | "INHERITS" | "IMPLEMENTS" | "REFERENCES";
7735
+ source: string;
7736
+ id: string;
7737
+ target: string;
7738
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
7739
+ confidence?: number | undefined;
7740
+ lastObserved?: string | undefined;
7741
+ callCount?: number | undefined;
7742
+ evidence?: {
7743
+ file: string;
7744
+ line?: number | undefined;
7745
+ snippet?: string | undefined;
7746
+ method?: string | undefined;
7747
+ pathTemplate?: string | undefined;
7748
+ hostSource?: "literal" | "config" | undefined;
7749
+ approximate?: boolean | undefined;
7750
+ reason?: string | undefined;
7751
+ } | undefined;
7752
+ signal?: {
7753
+ spanCount: number;
7754
+ errorCount: number;
7755
+ lastObservedAgeMs?: number | undefined;
7756
+ latencyMs?: {
7757
+ p50: number;
7758
+ p95: number;
7759
+ } | undefined;
7760
+ latencyHist?: Record<string, number> | undefined;
7761
+ anomalous?: boolean | {
7762
+ source: string;
7763
+ rule: string;
7764
+ } | undefined;
7765
+ } | undefined;
7766
+ grain?: "file" | "service" | undefined;
7767
+ } | undefined;
7768
+ location?: string | undefined;
7769
+ incidentId?: string | undefined;
7770
+ errorRate?: number | undefined;
6812
7771
  })[];
6813
7772
  computedAt: string;
6814
7773
  }>;
6815
7774
  type DivergenceResult = z.infer<typeof DivergenceResultSchema>;
6816
- declare const DivergenceTypeSchema: z.ZodEnum<["missing-observed", "missing-extracted", "version-mismatch", "host-mismatch", "compat-violation", "observed-symbol-mismatch"]>;
7775
+ declare const DivergenceTypeSchema: z.ZodEnum<["missing-observed", "missing-extracted", "version-mismatch", "host-mismatch", "compat-violation", "observed-symbol-mismatch", "observed-failing"]>;
6817
7776
  type DivergenceType = z.infer<typeof DivergenceTypeSchema>;
6818
7777
 
6819
7778
  declare const MCP_TOOL_NAMES: readonly ["get_root_cause", "get_blast_radius", "get_dependencies", "get_observed_dependencies", "get_incident_history", "semantic_search", "get_graph_diff", "get_recent_stale_edges", "check_policies", "get_divergences", "expand", "relate", "ask", "neat_list_uninstrumented", "neat_lookup_instrumentation", "neat_describe_project_instrumentation", "neat_apply_extension", "neat_dry_run_extension", "neat_rollback_extension"];
@@ -16828,4 +17787,4 @@ declare const DEFAULT_EXTRACTED_PRECISION_FLOOR = 0.7;
16828
17787
  declare function extractedPrecisionFloor(): number;
16829
17788
  declare function passesExtractedFloor(confidence: number): boolean;
16830
17789
 
16831
- export { type ApplicablePoliciesResponse, ApplicablePoliciesResponseSchema, type ApplicablePolicy, ApplicablePolicySchema, type AskFact, AskFactSchema, type AskIntent, AskIntentSchema, type AskMatch, AskMatchSchema, type AskResult, AskResultSchema, type AskSection, AskSectionSchema, type BlastRadiusAffectedNode, BlastRadiusAffectedNodeSchema, type BlastRadiusResult, BlastRadiusResultSchema, type BlastRadiusRule, BlastRadiusRuleSchema, type CheckPoliciesScope, CheckPoliciesScopeSchema, type ColumnAttr, ColumnAttrSchema, type CompatRuleRef, CompatRuleRefSchema, type CompatViolationDivergence, CompatViolationDivergenceSchema, type CompatibilityRule, CompatibilityRuleSchema, type CompatibilityVerdict, CompatibilityVerdictSchema, type CompatibleDriver, CompatibleDriverSchema, type ConfigNode, ConfigNodeSchema, type ConnectorPollState, ConnectorPollStateSchema, type ConnectorPollState as ConnectorState, ConnectorPollStateSchema as ConnectorStateSchema, type ConnectorStatus, type ConnectorStatusEntry, ConnectorStatusEntrySchema, ConnectorStatusSchema, type ConnectorStatusEntry as ConnectorSummary, ConnectorStatusEntrySchema as ConnectorSummarySchema, type ConnectorsStatusResponse as ConnectorsResponse, ConnectorsStatusResponseSchema as ConnectorsResponseSchema, type ConnectorsStatusResponse, ConnectorsStatusResponseSchema, DEFAULT_EXTRACTED_PRECISION_FLOOR, type DaemonHealthResponse, DaemonHealthResponseSchema, type DatabaseNode, DatabaseNodeSchema, type DiscoveredVia, DiscoveredViaSchema, type Divergence, type DivergenceResult, DivergenceResultSchema, DivergenceSchema, type DivergenceType, DivergenceTypeSchema, EMPTY_REGISTRY, EXTRACTED_CONFIDENCE, type EdgeAnomaly, EdgeAnomalySchema, type EdgeEvidence, EdgeEvidenceSchema, type EdgeSignal, EdgeSignalSchema, EdgeType, EdgeTypeSchema, type EdgeTypeValue, type ErrorEvent, ErrorEventSchema, type ExpandNeighbour, ExpandNeighbourSchema, type ExpandResult, ExpandResultSchema, type ExtractedConfidenceKind, type ExtractionCoverage, ExtractionCoverageSchema, type FieldGuardRule, FieldGuardRuleSchema, type FileNode, FileNodeSchema, type FrontierNode, FrontierNodeSchema, type GraphDiffResult, GraphDiffResultSchema, type GraphEdge, GraphEdgeSchema, type GraphEdgesResponse, GraphEdgesResponseSchema, type GraphNode, type GraphNodeResponse, GraphNodeResponseSchema, GraphNodeSchema, type GraphQLOperationNode, GraphQLOperationNodeSchema, type GrpcMethodNode, GrpcMethodNodeSchema, type HealthResponse, HealthResponseSchema, type HostMismatchDivergence, HostMismatchDivergenceSchema, type HypotheticalAction, HypotheticalActionSchema, type IncidentsResponse, IncidentsResponseSchema, type InfraNode, InfraNodeSchema, type LatencyMs, LatencyMsSchema, type LogEntry, LogEntrySchema, type LogSource, LogSourceSchema, type LogsResponse, LogsResponseSchema, type MCPToolName, MCP_TOOL_NAMES, type MissingExtractedDivergence, MissingExtractedDivergenceSchema, type MissingObservedDivergence, MissingObservedDivergenceSchema, type NodeClassification, NodeClassificationSchema, type NodeContext, NodeContextSchema, NodeType, NodeTypeSchema, type NodeTypeValue, type ObservedDependenciesResult, ObservedDependenciesResultSchema, type ObservedSymbolMismatchDivergence, ObservedSymbolMismatchDivergenceSchema, type OwnershipRule, OwnershipRuleSchema, PROV_RANK, type PoliciesCheckBody, PoliciesCheckBodySchema, type PoliciesViolationsResponse, PoliciesViolationsResponseSchema, type Policy, type PolicyAction, PolicyActionSchema, type PolicyFile, PolicyFileSchema, type PolicyRule, PolicyRuleSchema, PolicySchema, type PolicySeverity, PolicySeveritySchema, type PolicyViolation, PolicyViolationSchema, type ProjectListEntry, ProjectListEntrySchema, type ProjectServedBy, ProjectServedBySchema, Provenance, type ProvenanceRule, ProvenanceRuleSchema, ProvenanceSchema, type ProvenanceValue, type RegistryEntry, RegistryEntrySchema, type RegistryFile, RegistryFileSchema, type RegistryStatus, RegistryStatusSchema, type RelatePath, RelatePathSchema, type RelateResult, RelateResultSchema, type RootCauseCandidate, RootCauseCandidateSchema, type RootCauseResult, RootCauseResultSchema, type RouteNode, RouteNodeSchema, type SearchMatch, SearchMatchSchema, type SearchResponse, SearchResponseSchema, type SerializedGraph, SerializedGraphSchema, type ServerActionNode, ServerActionNodeSchema, type ServiceNode, ServiceNodeSchema, type SingleProjectResponse, SingleProjectResponseSchema, type SpanAttributes, SpanAttributesSchema, type StaleEvent, StaleEventSchema, type StaleEventsResponse, StaleEventsResponseSchema, type StructuralRule, StructuralRuleSchema, type SymbolKind, SymbolKindSchema, type SymbolMismatchKind, SymbolMismatchKindSchema, type SymbolNode, SymbolNodeSchema, type SymbolSpan, SymbolSpanSchema, type TransitiveDependenciesResult, TransitiveDependenciesResultSchema, type TransitiveDependency, TransitiveDependencySchema, type VersionMismatchDivergence, VersionMismatchDivergenceSchema, type WebSocketChannelNode, WebSocketChannelNodeSchema, confidenceForExtracted, confidenceForObservedSignal, configId, databaseId, extractedEdgeId, extractedPrecisionFloor, fileId, frontierId, graphqlOperationId, grpcMethodId, inferredEdgeId, infraId, localDatabaseId, observedEdgeId, parseConfigId, parseDatabaseId, parseEdgeId, parseFileId, parseFrontierId, parseGraphqlOperationId, parseGrpcMethodId, parseInfraId, parseRouteId, parseServerActionId, parseServiceId, parseSymbolId, parseWebsocketChannelId, passesExtractedFloor, routeId, serverActionId, serviceId, symbolId, websocketChannelId };
17790
+ export { type ApplicablePoliciesResponse, ApplicablePoliciesResponseSchema, type ApplicablePolicy, ApplicablePolicySchema, type AskFact, AskFactSchema, type AskIntent, AskIntentSchema, type AskMatch, AskMatchSchema, type AskResult, AskResultSchema, type AskSection, AskSectionSchema, type BlastRadiusAffectedNode, BlastRadiusAffectedNodeSchema, type BlastRadiusResult, BlastRadiusResultSchema, type BlastRadiusRule, BlastRadiusRuleSchema, type CheckPoliciesScope, CheckPoliciesScopeSchema, type ColumnAttr, ColumnAttrSchema, type CompatRuleRef, CompatRuleRefSchema, type CompatViolationDivergence, CompatViolationDivergenceSchema, type CompatibilityRule, CompatibilityRuleSchema, type CompatibilityVerdict, CompatibilityVerdictSchema, type CompatibleDriver, CompatibleDriverSchema, type ConfigNode, ConfigNodeSchema, type ConnectorPollState, ConnectorPollStateSchema, type ConnectorPollState as ConnectorState, ConnectorPollStateSchema as ConnectorStateSchema, type ConnectorStatus, type ConnectorStatusEntry, ConnectorStatusEntrySchema, ConnectorStatusSchema, type ConnectorStatusEntry as ConnectorSummary, ConnectorStatusEntrySchema as ConnectorSummarySchema, type ConnectorsStatusResponse as ConnectorsResponse, ConnectorsStatusResponseSchema as ConnectorsResponseSchema, type ConnectorsStatusResponse, ConnectorsStatusResponseSchema, DEFAULT_EXTRACTED_PRECISION_FLOOR, type DaemonHealthResponse, DaemonHealthResponseSchema, type DatabaseNode, DatabaseNodeSchema, type DiscoveredVia, DiscoveredViaSchema, type Divergence, type DivergenceResult, DivergenceResultSchema, DivergenceSchema, type DivergenceType, DivergenceTypeSchema, EMPTY_REGISTRY, EXTRACTED_CONFIDENCE, type EdgeAnomaly, EdgeAnomalySchema, type EdgeEvidence, EdgeEvidenceSchema, type EdgeSignal, EdgeSignalSchema, EdgeType, EdgeTypeSchema, type EdgeTypeValue, type ErrorEvent, ErrorEventSchema, type ExpandNeighbour, ExpandNeighbourSchema, type ExpandResult, ExpandResultSchema, type ExtractedConfidenceKind, type ExtractionCoverage, ExtractionCoverageSchema, type FieldGuardRule, FieldGuardRuleSchema, type FileNode, FileNodeSchema, type FrontierNode, FrontierNodeSchema, type GraphDiffResult, GraphDiffResultSchema, type GraphEdge, GraphEdgeSchema, type GraphEdgesResponse, GraphEdgesResponseSchema, type GraphNode, type GraphNodeResponse, GraphNodeResponseSchema, GraphNodeSchema, type GraphQLOperationNode, GraphQLOperationNodeSchema, type GrpcMethodNode, GrpcMethodNodeSchema, type HealthResponse, HealthResponseSchema, type HostMismatchDivergence, HostMismatchDivergenceSchema, type HypotheticalAction, HypotheticalActionSchema, type IncidentsResponse, IncidentsResponseSchema, type InfraNode, InfraNodeSchema, type LatencyMs, LatencyMsSchema, type LogEntry, LogEntrySchema, type LogSource, LogSourceSchema, type LogsResponse, LogsResponseSchema, type MCPToolName, MCP_TOOL_NAMES, type MissingExtractedDivergence, MissingExtractedDivergenceSchema, type MissingObservedDivergence, MissingObservedDivergenceSchema, type NodeClassification, NodeClassificationSchema, type NodeContext, NodeContextSchema, NodeType, NodeTypeSchema, type NodeTypeValue, type ObservedDependenciesResult, ObservedDependenciesResultSchema, type ObservedFailingDivergence, ObservedFailingDivergenceSchema, type ObservedFailureKind, ObservedFailureKindSchema, type ObservedSymbolMismatchDivergence, ObservedSymbolMismatchDivergenceSchema, type OwnershipRule, OwnershipRuleSchema, PROV_RANK, type PoliciesCheckBody, PoliciesCheckBodySchema, type PoliciesViolationsResponse, PoliciesViolationsResponseSchema, type Policy, type PolicyAction, PolicyActionSchema, type PolicyFile, PolicyFileSchema, type PolicyRule, PolicyRuleSchema, PolicySchema, type PolicySeverity, PolicySeveritySchema, type PolicyViolation, PolicyViolationSchema, type ProjectListEntry, ProjectListEntrySchema, type ProjectServedBy, ProjectServedBySchema, Provenance, type ProvenanceRule, ProvenanceRuleSchema, ProvenanceSchema, type ProvenanceValue, type RegistryEntry, RegistryEntrySchema, type RegistryFile, RegistryFileSchema, type RegistryStatus, RegistryStatusSchema, type RelatePath, RelatePathSchema, type RelateResult, RelateResultSchema, type RootCauseCandidate, RootCauseCandidateSchema, type RootCauseResult, RootCauseResultSchema, type RouteNode, RouteNodeSchema, type SearchMatch, SearchMatchSchema, type SearchResponse, SearchResponseSchema, type SerializedGraph, SerializedGraphSchema, type ServerActionNode, ServerActionNodeSchema, type ServiceNode, ServiceNodeSchema, type SingleProjectResponse, SingleProjectResponseSchema, type SpanAttributes, SpanAttributesSchema, type StaleEvent, StaleEventSchema, type StaleEventsResponse, StaleEventsResponseSchema, type StructuralRule, StructuralRuleSchema, type SymbolKind, SymbolKindSchema, type SymbolMismatchKind, SymbolMismatchKindSchema, type SymbolNode, SymbolNodeSchema, type SymbolSpan, SymbolSpanSchema, type TransitiveDependenciesResult, TransitiveDependenciesResultSchema, type TransitiveDependency, TransitiveDependencySchema, type VersionMismatchDivergence, VersionMismatchDivergenceSchema, type WebSocketChannelNode, WebSocketChannelNodeSchema, confidenceForExtracted, confidenceForObservedSignal, configId, databaseId, extractedEdgeId, extractedPrecisionFloor, fileId, frontierId, graphqlOperationId, grpcMethodId, inferredEdgeId, infraId, localDatabaseId, observedEdgeId, parseConfigId, parseDatabaseId, parseEdgeId, parseFileId, parseFrontierId, parseGraphqlOperationId, parseGrpcMethodId, parseInfraId, parseRouteId, parseServerActionId, parseServiceId, parseSymbolId, parseWebsocketChannelId, passesExtractedFloor, routeId, serverActionId, serviceId, symbolId, websocketChannelId };