@neat.is/types 0.9.3-dev.20260823 → 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.cjs +30 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +160 -2
- package/dist/index.d.ts +160 -2
- package/dist/index.js +28 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4535,6 +4535,52 @@ declare const CompatViolationDivergenceSchema: z.ZodObject<{
|
|
|
4535
4535
|
recommendation: string;
|
|
4536
4536
|
}>;
|
|
4537
4537
|
type CompatViolationDivergence = z.infer<typeof CompatViolationDivergenceSchema>;
|
|
4538
|
+
declare const SymbolMismatchKindSchema: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
|
|
4539
|
+
type SymbolMismatchKind = z.infer<typeof SymbolMismatchKindSchema>;
|
|
4540
|
+
declare const ObservedSymbolMismatchDivergenceSchema: z.ZodObject<{
|
|
4541
|
+
mismatchKind: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
|
|
4542
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
4543
|
+
location: z.ZodOptional<z.ZodString>;
|
|
4544
|
+
provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
|
|
4545
|
+
incidentId: z.ZodOptional<z.ZodString>;
|
|
4546
|
+
errorMessage: z.ZodString;
|
|
4547
|
+
incidentCount: z.ZodOptional<z.ZodNumber>;
|
|
4548
|
+
source: z.ZodString;
|
|
4549
|
+
target: z.ZodString;
|
|
4550
|
+
confidence: z.ZodNumber;
|
|
4551
|
+
reason: z.ZodString;
|
|
4552
|
+
recommendation: z.ZodString;
|
|
4553
|
+
type: z.ZodLiteral<"observed-symbol-mismatch">;
|
|
4554
|
+
}, "strip", z.ZodTypeAny, {
|
|
4555
|
+
type: "observed-symbol-mismatch";
|
|
4556
|
+
source: string;
|
|
4557
|
+
target: string;
|
|
4558
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
4559
|
+
confidence: number;
|
|
4560
|
+
reason: string;
|
|
4561
|
+
errorMessage: string;
|
|
4562
|
+
recommendation: string;
|
|
4563
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
4564
|
+
symbol?: string | undefined;
|
|
4565
|
+
incidentCount?: number | undefined;
|
|
4566
|
+
location?: string | undefined;
|
|
4567
|
+
incidentId?: string | undefined;
|
|
4568
|
+
}, {
|
|
4569
|
+
type: "observed-symbol-mismatch";
|
|
4570
|
+
source: string;
|
|
4571
|
+
target: string;
|
|
4572
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
4573
|
+
confidence: number;
|
|
4574
|
+
reason: string;
|
|
4575
|
+
errorMessage: string;
|
|
4576
|
+
recommendation: string;
|
|
4577
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
4578
|
+
symbol?: string | undefined;
|
|
4579
|
+
incidentCount?: number | undefined;
|
|
4580
|
+
location?: string | undefined;
|
|
4581
|
+
incidentId?: string | undefined;
|
|
4582
|
+
}>;
|
|
4583
|
+
type ObservedSymbolMismatchDivergence = z.infer<typeof ObservedSymbolMismatchDivergenceSchema>;
|
|
4538
4584
|
declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4539
4585
|
edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
|
|
4540
4586
|
extracted: z.ZodOptional<z.ZodObject<{
|
|
@@ -5351,6 +5397,48 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5351
5397
|
grain?: "file" | "service" | undefined;
|
|
5352
5398
|
};
|
|
5353
5399
|
recommendation: string;
|
|
5400
|
+
}>, z.ZodObject<{
|
|
5401
|
+
mismatchKind: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
|
|
5402
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
5403
|
+
location: z.ZodOptional<z.ZodString>;
|
|
5404
|
+
provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
|
|
5405
|
+
incidentId: z.ZodOptional<z.ZodString>;
|
|
5406
|
+
errorMessage: z.ZodString;
|
|
5407
|
+
incidentCount: z.ZodOptional<z.ZodNumber>;
|
|
5408
|
+
source: z.ZodString;
|
|
5409
|
+
target: z.ZodString;
|
|
5410
|
+
confidence: z.ZodNumber;
|
|
5411
|
+
reason: z.ZodString;
|
|
5412
|
+
recommendation: z.ZodString;
|
|
5413
|
+
type: z.ZodLiteral<"observed-symbol-mismatch">;
|
|
5414
|
+
}, "strip", z.ZodTypeAny, {
|
|
5415
|
+
type: "observed-symbol-mismatch";
|
|
5416
|
+
source: string;
|
|
5417
|
+
target: string;
|
|
5418
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
5419
|
+
confidence: number;
|
|
5420
|
+
reason: string;
|
|
5421
|
+
errorMessage: string;
|
|
5422
|
+
recommendation: string;
|
|
5423
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
5424
|
+
symbol?: string | undefined;
|
|
5425
|
+
incidentCount?: number | undefined;
|
|
5426
|
+
location?: string | undefined;
|
|
5427
|
+
incidentId?: string | undefined;
|
|
5428
|
+
}, {
|
|
5429
|
+
type: "observed-symbol-mismatch";
|
|
5430
|
+
source: string;
|
|
5431
|
+
target: string;
|
|
5432
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
5433
|
+
confidence: number;
|
|
5434
|
+
reason: string;
|
|
5435
|
+
errorMessage: string;
|
|
5436
|
+
recommendation: string;
|
|
5437
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
5438
|
+
symbol?: string | undefined;
|
|
5439
|
+
incidentCount?: number | undefined;
|
|
5440
|
+
location?: string | undefined;
|
|
5441
|
+
incidentId?: string | undefined;
|
|
5354
5442
|
}>]>;
|
|
5355
5443
|
type Divergence = z.infer<typeof DivergenceSchema>;
|
|
5356
5444
|
declare const DivergenceResultSchema: z.ZodObject<{
|
|
@@ -6170,6 +6258,48 @@ declare const DivergenceResultSchema: z.ZodObject<{
|
|
|
6170
6258
|
grain?: "file" | "service" | undefined;
|
|
6171
6259
|
};
|
|
6172
6260
|
recommendation: string;
|
|
6261
|
+
}>, z.ZodObject<{
|
|
6262
|
+
mismatchKind: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
|
|
6263
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
6264
|
+
location: z.ZodOptional<z.ZodString>;
|
|
6265
|
+
provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
|
|
6266
|
+
incidentId: z.ZodOptional<z.ZodString>;
|
|
6267
|
+
errorMessage: z.ZodString;
|
|
6268
|
+
incidentCount: z.ZodOptional<z.ZodNumber>;
|
|
6269
|
+
source: z.ZodString;
|
|
6270
|
+
target: z.ZodString;
|
|
6271
|
+
confidence: z.ZodNumber;
|
|
6272
|
+
reason: z.ZodString;
|
|
6273
|
+
recommendation: z.ZodString;
|
|
6274
|
+
type: z.ZodLiteral<"observed-symbol-mismatch">;
|
|
6275
|
+
}, "strip", z.ZodTypeAny, {
|
|
6276
|
+
type: "observed-symbol-mismatch";
|
|
6277
|
+
source: string;
|
|
6278
|
+
target: string;
|
|
6279
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
6280
|
+
confidence: number;
|
|
6281
|
+
reason: string;
|
|
6282
|
+
errorMessage: string;
|
|
6283
|
+
recommendation: string;
|
|
6284
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
6285
|
+
symbol?: string | undefined;
|
|
6286
|
+
incidentCount?: number | undefined;
|
|
6287
|
+
location?: string | undefined;
|
|
6288
|
+
incidentId?: string | undefined;
|
|
6289
|
+
}, {
|
|
6290
|
+
type: "observed-symbol-mismatch";
|
|
6291
|
+
source: string;
|
|
6292
|
+
target: string;
|
|
6293
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
6294
|
+
confidence: number;
|
|
6295
|
+
reason: string;
|
|
6296
|
+
errorMessage: string;
|
|
6297
|
+
recommendation: string;
|
|
6298
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
6299
|
+
symbol?: string | undefined;
|
|
6300
|
+
incidentCount?: number | undefined;
|
|
6301
|
+
location?: string | undefined;
|
|
6302
|
+
incidentId?: string | undefined;
|
|
6173
6303
|
}>]>, "many">;
|
|
6174
6304
|
totalAffected: z.ZodNumber;
|
|
6175
6305
|
computedAt: z.ZodString;
|
|
@@ -6327,6 +6457,20 @@ declare const DivergenceResultSchema: z.ZodObject<{
|
|
|
6327
6457
|
grain?: "file" | "service" | undefined;
|
|
6328
6458
|
};
|
|
6329
6459
|
recommendation: string;
|
|
6460
|
+
} | {
|
|
6461
|
+
type: "observed-symbol-mismatch";
|
|
6462
|
+
source: string;
|
|
6463
|
+
target: string;
|
|
6464
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
6465
|
+
confidence: number;
|
|
6466
|
+
reason: string;
|
|
6467
|
+
errorMessage: string;
|
|
6468
|
+
recommendation: string;
|
|
6469
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
6470
|
+
symbol?: string | undefined;
|
|
6471
|
+
incidentCount?: number | undefined;
|
|
6472
|
+
location?: string | undefined;
|
|
6473
|
+
incidentId?: string | undefined;
|
|
6330
6474
|
})[];
|
|
6331
6475
|
computedAt: string;
|
|
6332
6476
|
}, {
|
|
@@ -6483,11 +6627,25 @@ declare const DivergenceResultSchema: z.ZodObject<{
|
|
|
6483
6627
|
grain?: "file" | "service" | undefined;
|
|
6484
6628
|
};
|
|
6485
6629
|
recommendation: string;
|
|
6630
|
+
} | {
|
|
6631
|
+
type: "observed-symbol-mismatch";
|
|
6632
|
+
source: string;
|
|
6633
|
+
target: string;
|
|
6634
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
6635
|
+
confidence: number;
|
|
6636
|
+
reason: string;
|
|
6637
|
+
errorMessage: string;
|
|
6638
|
+
recommendation: string;
|
|
6639
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
6640
|
+
symbol?: string | undefined;
|
|
6641
|
+
incidentCount?: number | undefined;
|
|
6642
|
+
location?: string | undefined;
|
|
6643
|
+
incidentId?: string | undefined;
|
|
6486
6644
|
})[];
|
|
6487
6645
|
computedAt: string;
|
|
6488
6646
|
}>;
|
|
6489
6647
|
type DivergenceResult = z.infer<typeof DivergenceResultSchema>;
|
|
6490
|
-
declare const DivergenceTypeSchema: z.ZodEnum<["missing-observed", "missing-extracted", "version-mismatch", "host-mismatch", "compat-violation"]>;
|
|
6648
|
+
declare const DivergenceTypeSchema: z.ZodEnum<["missing-observed", "missing-extracted", "version-mismatch", "host-mismatch", "compat-violation", "observed-symbol-mismatch"]>;
|
|
6491
6649
|
type DivergenceType = z.infer<typeof DivergenceTypeSchema>;
|
|
6492
6650
|
|
|
6493
6651
|
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"];
|
|
@@ -16380,4 +16538,4 @@ declare const DEFAULT_EXTRACTED_PRECISION_FLOOR = 0.7;
|
|
|
16380
16538
|
declare function extractedPrecisionFloor(): number;
|
|
16381
16539
|
declare function passesExtractedFloor(confidence: number): boolean;
|
|
16382
16540
|
|
|
16383
|
-
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 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 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 };
|
|
16541
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -4535,6 +4535,52 @@ declare const CompatViolationDivergenceSchema: z.ZodObject<{
|
|
|
4535
4535
|
recommendation: string;
|
|
4536
4536
|
}>;
|
|
4537
4537
|
type CompatViolationDivergence = z.infer<typeof CompatViolationDivergenceSchema>;
|
|
4538
|
+
declare const SymbolMismatchKindSchema: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
|
|
4539
|
+
type SymbolMismatchKind = z.infer<typeof SymbolMismatchKindSchema>;
|
|
4540
|
+
declare const ObservedSymbolMismatchDivergenceSchema: z.ZodObject<{
|
|
4541
|
+
mismatchKind: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
|
|
4542
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
4543
|
+
location: z.ZodOptional<z.ZodString>;
|
|
4544
|
+
provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
|
|
4545
|
+
incidentId: z.ZodOptional<z.ZodString>;
|
|
4546
|
+
errorMessage: z.ZodString;
|
|
4547
|
+
incidentCount: z.ZodOptional<z.ZodNumber>;
|
|
4548
|
+
source: z.ZodString;
|
|
4549
|
+
target: z.ZodString;
|
|
4550
|
+
confidence: z.ZodNumber;
|
|
4551
|
+
reason: z.ZodString;
|
|
4552
|
+
recommendation: z.ZodString;
|
|
4553
|
+
type: z.ZodLiteral<"observed-symbol-mismatch">;
|
|
4554
|
+
}, "strip", z.ZodTypeAny, {
|
|
4555
|
+
type: "observed-symbol-mismatch";
|
|
4556
|
+
source: string;
|
|
4557
|
+
target: string;
|
|
4558
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
4559
|
+
confidence: number;
|
|
4560
|
+
reason: string;
|
|
4561
|
+
errorMessage: string;
|
|
4562
|
+
recommendation: string;
|
|
4563
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
4564
|
+
symbol?: string | undefined;
|
|
4565
|
+
incidentCount?: number | undefined;
|
|
4566
|
+
location?: string | undefined;
|
|
4567
|
+
incidentId?: string | undefined;
|
|
4568
|
+
}, {
|
|
4569
|
+
type: "observed-symbol-mismatch";
|
|
4570
|
+
source: string;
|
|
4571
|
+
target: string;
|
|
4572
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
4573
|
+
confidence: number;
|
|
4574
|
+
reason: string;
|
|
4575
|
+
errorMessage: string;
|
|
4576
|
+
recommendation: string;
|
|
4577
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
4578
|
+
symbol?: string | undefined;
|
|
4579
|
+
incidentCount?: number | undefined;
|
|
4580
|
+
location?: string | undefined;
|
|
4581
|
+
incidentId?: string | undefined;
|
|
4582
|
+
}>;
|
|
4583
|
+
type ObservedSymbolMismatchDivergence = z.infer<typeof ObservedSymbolMismatchDivergenceSchema>;
|
|
4538
4584
|
declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4539
4585
|
edgeType: z.ZodOptional<z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON", "CONTAINS", "IMPORTS", "INHERITS", "IMPLEMENTS", "REFERENCES"]>>;
|
|
4540
4586
|
extracted: z.ZodOptional<z.ZodObject<{
|
|
@@ -5351,6 +5397,48 @@ declare const DivergenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5351
5397
|
grain?: "file" | "service" | undefined;
|
|
5352
5398
|
};
|
|
5353
5399
|
recommendation: string;
|
|
5400
|
+
}>, z.ZodObject<{
|
|
5401
|
+
mismatchKind: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
|
|
5402
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
5403
|
+
location: z.ZodOptional<z.ZodString>;
|
|
5404
|
+
provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
|
|
5405
|
+
incidentId: z.ZodOptional<z.ZodString>;
|
|
5406
|
+
errorMessage: z.ZodString;
|
|
5407
|
+
incidentCount: z.ZodOptional<z.ZodNumber>;
|
|
5408
|
+
source: z.ZodString;
|
|
5409
|
+
target: z.ZodString;
|
|
5410
|
+
confidence: z.ZodNumber;
|
|
5411
|
+
reason: z.ZodString;
|
|
5412
|
+
recommendation: z.ZodString;
|
|
5413
|
+
type: z.ZodLiteral<"observed-symbol-mismatch">;
|
|
5414
|
+
}, "strip", z.ZodTypeAny, {
|
|
5415
|
+
type: "observed-symbol-mismatch";
|
|
5416
|
+
source: string;
|
|
5417
|
+
target: string;
|
|
5418
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
5419
|
+
confidence: number;
|
|
5420
|
+
reason: string;
|
|
5421
|
+
errorMessage: string;
|
|
5422
|
+
recommendation: string;
|
|
5423
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
5424
|
+
symbol?: string | undefined;
|
|
5425
|
+
incidentCount?: number | undefined;
|
|
5426
|
+
location?: string | undefined;
|
|
5427
|
+
incidentId?: string | undefined;
|
|
5428
|
+
}, {
|
|
5429
|
+
type: "observed-symbol-mismatch";
|
|
5430
|
+
source: string;
|
|
5431
|
+
target: string;
|
|
5432
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
5433
|
+
confidence: number;
|
|
5434
|
+
reason: string;
|
|
5435
|
+
errorMessage: string;
|
|
5436
|
+
recommendation: string;
|
|
5437
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
5438
|
+
symbol?: string | undefined;
|
|
5439
|
+
incidentCount?: number | undefined;
|
|
5440
|
+
location?: string | undefined;
|
|
5441
|
+
incidentId?: string | undefined;
|
|
5354
5442
|
}>]>;
|
|
5355
5443
|
type Divergence = z.infer<typeof DivergenceSchema>;
|
|
5356
5444
|
declare const DivergenceResultSchema: z.ZodObject<{
|
|
@@ -6170,6 +6258,48 @@ declare const DivergenceResultSchema: z.ZodObject<{
|
|
|
6170
6258
|
grain?: "file" | "service" | undefined;
|
|
6171
6259
|
};
|
|
6172
6260
|
recommendation: string;
|
|
6261
|
+
}>, z.ZodObject<{
|
|
6262
|
+
mismatchKind: z.ZodEnum<["missing-attribute", "missing-field", "missing-property", "missing-column", "undefined-method"]>;
|
|
6263
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
6264
|
+
location: z.ZodOptional<z.ZodString>;
|
|
6265
|
+
provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>;
|
|
6266
|
+
incidentId: z.ZodOptional<z.ZodString>;
|
|
6267
|
+
errorMessage: z.ZodString;
|
|
6268
|
+
incidentCount: z.ZodOptional<z.ZodNumber>;
|
|
6269
|
+
source: z.ZodString;
|
|
6270
|
+
target: z.ZodString;
|
|
6271
|
+
confidence: z.ZodNumber;
|
|
6272
|
+
reason: z.ZodString;
|
|
6273
|
+
recommendation: z.ZodString;
|
|
6274
|
+
type: z.ZodLiteral<"observed-symbol-mismatch">;
|
|
6275
|
+
}, "strip", z.ZodTypeAny, {
|
|
6276
|
+
type: "observed-symbol-mismatch";
|
|
6277
|
+
source: string;
|
|
6278
|
+
target: string;
|
|
6279
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
6280
|
+
confidence: number;
|
|
6281
|
+
reason: string;
|
|
6282
|
+
errorMessage: string;
|
|
6283
|
+
recommendation: string;
|
|
6284
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
6285
|
+
symbol?: string | undefined;
|
|
6286
|
+
incidentCount?: number | undefined;
|
|
6287
|
+
location?: string | undefined;
|
|
6288
|
+
incidentId?: string | undefined;
|
|
6289
|
+
}, {
|
|
6290
|
+
type: "observed-symbol-mismatch";
|
|
6291
|
+
source: string;
|
|
6292
|
+
target: string;
|
|
6293
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
6294
|
+
confidence: number;
|
|
6295
|
+
reason: string;
|
|
6296
|
+
errorMessage: string;
|
|
6297
|
+
recommendation: string;
|
|
6298
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
6299
|
+
symbol?: string | undefined;
|
|
6300
|
+
incidentCount?: number | undefined;
|
|
6301
|
+
location?: string | undefined;
|
|
6302
|
+
incidentId?: string | undefined;
|
|
6173
6303
|
}>]>, "many">;
|
|
6174
6304
|
totalAffected: z.ZodNumber;
|
|
6175
6305
|
computedAt: z.ZodString;
|
|
@@ -6327,6 +6457,20 @@ declare const DivergenceResultSchema: z.ZodObject<{
|
|
|
6327
6457
|
grain?: "file" | "service" | undefined;
|
|
6328
6458
|
};
|
|
6329
6459
|
recommendation: string;
|
|
6460
|
+
} | {
|
|
6461
|
+
type: "observed-symbol-mismatch";
|
|
6462
|
+
source: string;
|
|
6463
|
+
target: string;
|
|
6464
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
6465
|
+
confidence: number;
|
|
6466
|
+
reason: string;
|
|
6467
|
+
errorMessage: string;
|
|
6468
|
+
recommendation: string;
|
|
6469
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
6470
|
+
symbol?: string | undefined;
|
|
6471
|
+
incidentCount?: number | undefined;
|
|
6472
|
+
location?: string | undefined;
|
|
6473
|
+
incidentId?: string | undefined;
|
|
6330
6474
|
})[];
|
|
6331
6475
|
computedAt: string;
|
|
6332
6476
|
}, {
|
|
@@ -6483,11 +6627,25 @@ declare const DivergenceResultSchema: z.ZodObject<{
|
|
|
6483
6627
|
grain?: "file" | "service" | undefined;
|
|
6484
6628
|
};
|
|
6485
6629
|
recommendation: string;
|
|
6630
|
+
} | {
|
|
6631
|
+
type: "observed-symbol-mismatch";
|
|
6632
|
+
source: string;
|
|
6633
|
+
target: string;
|
|
6634
|
+
provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE";
|
|
6635
|
+
confidence: number;
|
|
6636
|
+
reason: string;
|
|
6637
|
+
errorMessage: string;
|
|
6638
|
+
recommendation: string;
|
|
6639
|
+
mismatchKind: "missing-attribute" | "missing-field" | "missing-property" | "missing-column" | "undefined-method";
|
|
6640
|
+
symbol?: string | undefined;
|
|
6641
|
+
incidentCount?: number | undefined;
|
|
6642
|
+
location?: string | undefined;
|
|
6643
|
+
incidentId?: string | undefined;
|
|
6486
6644
|
})[];
|
|
6487
6645
|
computedAt: string;
|
|
6488
6646
|
}>;
|
|
6489
6647
|
type DivergenceResult = z.infer<typeof DivergenceResultSchema>;
|
|
6490
|
-
declare const DivergenceTypeSchema: z.ZodEnum<["missing-observed", "missing-extracted", "version-mismatch", "host-mismatch", "compat-violation"]>;
|
|
6648
|
+
declare const DivergenceTypeSchema: z.ZodEnum<["missing-observed", "missing-extracted", "version-mismatch", "host-mismatch", "compat-violation", "observed-symbol-mismatch"]>;
|
|
6491
6649
|
type DivergenceType = z.infer<typeof DivergenceTypeSchema>;
|
|
6492
6650
|
|
|
6493
6651
|
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"];
|
|
@@ -16380,4 +16538,4 @@ declare const DEFAULT_EXTRACTED_PRECISION_FLOOR = 0.7;
|
|
|
16380
16538
|
declare function extractedPrecisionFloor(): number;
|
|
16381
16539
|
declare function passesExtractedFloor(confidence: number): boolean;
|
|
16382
16540
|
|
|
16383
|
-
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 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 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 };
|
|
16541
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -1227,12 +1227,35 @@ var CompatViolationDivergenceSchema = z8.object({
|
|
|
1227
1227
|
rule: CompatRuleRefSchema,
|
|
1228
1228
|
observed: GraphEdgeSchema
|
|
1229
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
|
+
});
|
|
1230
1252
|
var DivergenceSchema = z8.discriminatedUnion("type", [
|
|
1231
1253
|
MissingObservedDivergenceSchema,
|
|
1232
1254
|
MissingExtractedDivergenceSchema,
|
|
1233
1255
|
VersionMismatchDivergenceSchema,
|
|
1234
1256
|
HostMismatchDivergenceSchema,
|
|
1235
|
-
CompatViolationDivergenceSchema
|
|
1257
|
+
CompatViolationDivergenceSchema,
|
|
1258
|
+
ObservedSymbolMismatchDivergenceSchema
|
|
1236
1259
|
]);
|
|
1237
1260
|
var DivergenceResultSchema = z8.object({
|
|
1238
1261
|
divergences: z8.array(DivergenceSchema),
|
|
@@ -1246,7 +1269,8 @@ var DivergenceTypeSchema = z8.enum([
|
|
|
1246
1269
|
"missing-extracted",
|
|
1247
1270
|
"version-mismatch",
|
|
1248
1271
|
"host-mismatch",
|
|
1249
|
-
"compat-violation"
|
|
1272
|
+
"compat-violation",
|
|
1273
|
+
"observed-symbol-mismatch"
|
|
1250
1274
|
]);
|
|
1251
1275
|
|
|
1252
1276
|
// src/mcp-tools.ts
|
|
@@ -1521,6 +1545,7 @@ export {
|
|
|
1521
1545
|
NodeType,
|
|
1522
1546
|
NodeTypeSchema,
|
|
1523
1547
|
ObservedDependenciesResultSchema,
|
|
1548
|
+
ObservedSymbolMismatchDivergenceSchema,
|
|
1524
1549
|
OwnershipRuleSchema,
|
|
1525
1550
|
PROV_RANK,
|
|
1526
1551
|
PoliciesCheckBodySchema,
|
|
@@ -1555,6 +1580,7 @@ export {
|
|
|
1555
1580
|
StaleEventsResponseSchema,
|
|
1556
1581
|
StructuralRuleSchema,
|
|
1557
1582
|
SymbolKindSchema,
|
|
1583
|
+
SymbolMismatchKindSchema,
|
|
1558
1584
|
SymbolNodeSchema,
|
|
1559
1585
|
SymbolSpanSchema,
|
|
1560
1586
|
TransitiveDependenciesResultSchema,
|