@neat.is/types 0.9.2-dev.20260821 → 0.9.2
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 +64 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +178 -14
- package/dist/index.d.ts +178 -14
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2463,6 +2463,170 @@ declare const ObservedDependenciesResultSchema: z.ZodObject<{
|
|
|
2463
2463
|
inboundLastObserved?: string | undefined;
|
|
2464
2464
|
}>;
|
|
2465
2465
|
type ObservedDependenciesResult = z.infer<typeof ObservedDependenciesResultSchema>;
|
|
2466
|
+
declare const AskIntentSchema: z.ZodEnum<["root-cause", "blast-radius", "dependencies", "observed", "incidents", "divergence", "overview"]>;
|
|
2467
|
+
type AskIntent = z.infer<typeof AskIntentSchema>;
|
|
2468
|
+
declare const AskMatchSchema: z.ZodObject<{
|
|
2469
|
+
nodeId: z.ZodString;
|
|
2470
|
+
label: z.ZodString;
|
|
2471
|
+
via: z.ZodEnum<["id", "label", "token", "embedding"]>;
|
|
2472
|
+
score: z.ZodNumber;
|
|
2473
|
+
}, "strip", z.ZodTypeAny, {
|
|
2474
|
+
nodeId: string;
|
|
2475
|
+
label: string;
|
|
2476
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2477
|
+
score: number;
|
|
2478
|
+
}, {
|
|
2479
|
+
nodeId: string;
|
|
2480
|
+
label: string;
|
|
2481
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2482
|
+
score: number;
|
|
2483
|
+
}>;
|
|
2484
|
+
type AskMatch = z.infer<typeof AskMatchSchema>;
|
|
2485
|
+
declare const AskFactSchema: z.ZodObject<{
|
|
2486
|
+
text: z.ZodString;
|
|
2487
|
+
provenance: z.ZodOptional<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>>;
|
|
2488
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
2489
|
+
}, "strip", z.ZodTypeAny, {
|
|
2490
|
+
text: string;
|
|
2491
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2492
|
+
confidence?: number | undefined;
|
|
2493
|
+
}, {
|
|
2494
|
+
text: string;
|
|
2495
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2496
|
+
confidence?: number | undefined;
|
|
2497
|
+
}>;
|
|
2498
|
+
type AskFact = z.infer<typeof AskFactSchema>;
|
|
2499
|
+
declare const AskSectionSchema: z.ZodObject<{
|
|
2500
|
+
heading: z.ZodString;
|
|
2501
|
+
facts: z.ZodArray<z.ZodObject<{
|
|
2502
|
+
text: z.ZodString;
|
|
2503
|
+
provenance: z.ZodOptional<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>>;
|
|
2504
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
2505
|
+
}, "strip", z.ZodTypeAny, {
|
|
2506
|
+
text: string;
|
|
2507
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2508
|
+
confidence?: number | undefined;
|
|
2509
|
+
}, {
|
|
2510
|
+
text: string;
|
|
2511
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2512
|
+
confidence?: number | undefined;
|
|
2513
|
+
}>, "many">;
|
|
2514
|
+
}, "strip", z.ZodTypeAny, {
|
|
2515
|
+
heading: string;
|
|
2516
|
+
facts: {
|
|
2517
|
+
text: string;
|
|
2518
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2519
|
+
confidence?: number | undefined;
|
|
2520
|
+
}[];
|
|
2521
|
+
}, {
|
|
2522
|
+
heading: string;
|
|
2523
|
+
facts: {
|
|
2524
|
+
text: string;
|
|
2525
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2526
|
+
confidence?: number | undefined;
|
|
2527
|
+
}[];
|
|
2528
|
+
}>;
|
|
2529
|
+
type AskSection = z.infer<typeof AskSectionSchema>;
|
|
2530
|
+
declare const AskResultSchema: z.ZodObject<{
|
|
2531
|
+
question: z.ZodString;
|
|
2532
|
+
intent: z.ZodEnum<["root-cause", "blast-radius", "dependencies", "observed", "incidents", "divergence", "overview"]>;
|
|
2533
|
+
matched: z.ZodArray<z.ZodObject<{
|
|
2534
|
+
nodeId: z.ZodString;
|
|
2535
|
+
label: z.ZodString;
|
|
2536
|
+
via: z.ZodEnum<["id", "label", "token", "embedding"]>;
|
|
2537
|
+
score: z.ZodNumber;
|
|
2538
|
+
}, "strip", z.ZodTypeAny, {
|
|
2539
|
+
nodeId: string;
|
|
2540
|
+
label: string;
|
|
2541
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2542
|
+
score: number;
|
|
2543
|
+
}, {
|
|
2544
|
+
nodeId: string;
|
|
2545
|
+
label: string;
|
|
2546
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2547
|
+
score: number;
|
|
2548
|
+
}>, "many">;
|
|
2549
|
+
primaryNode: z.ZodOptional<z.ZodString>;
|
|
2550
|
+
scope: z.ZodOptional<z.ZodEnum<["global", "node"]>>;
|
|
2551
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
2552
|
+
heading: z.ZodString;
|
|
2553
|
+
facts: z.ZodArray<z.ZodObject<{
|
|
2554
|
+
text: z.ZodString;
|
|
2555
|
+
provenance: z.ZodOptional<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>>;
|
|
2556
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
2557
|
+
}, "strip", z.ZodTypeAny, {
|
|
2558
|
+
text: string;
|
|
2559
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2560
|
+
confidence?: number | undefined;
|
|
2561
|
+
}, {
|
|
2562
|
+
text: string;
|
|
2563
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2564
|
+
confidence?: number | undefined;
|
|
2565
|
+
}>, "many">;
|
|
2566
|
+
}, "strip", z.ZodTypeAny, {
|
|
2567
|
+
heading: string;
|
|
2568
|
+
facts: {
|
|
2569
|
+
text: string;
|
|
2570
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2571
|
+
confidence?: number | undefined;
|
|
2572
|
+
}[];
|
|
2573
|
+
}, {
|
|
2574
|
+
heading: string;
|
|
2575
|
+
facts: {
|
|
2576
|
+
text: string;
|
|
2577
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2578
|
+
confidence?: number | undefined;
|
|
2579
|
+
}[];
|
|
2580
|
+
}>, "many">;
|
|
2581
|
+
answer: z.ZodString;
|
|
2582
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
2583
|
+
provenance: z.ZodArray<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>, "many">;
|
|
2584
|
+
}, "strip", z.ZodTypeAny, {
|
|
2585
|
+
provenance: ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE")[];
|
|
2586
|
+
question: string;
|
|
2587
|
+
intent: "dependencies" | "observed" | "root-cause" | "blast-radius" | "incidents" | "divergence" | "overview";
|
|
2588
|
+
matched: {
|
|
2589
|
+
nodeId: string;
|
|
2590
|
+
label: string;
|
|
2591
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2592
|
+
score: number;
|
|
2593
|
+
}[];
|
|
2594
|
+
sections: {
|
|
2595
|
+
heading: string;
|
|
2596
|
+
facts: {
|
|
2597
|
+
text: string;
|
|
2598
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2599
|
+
confidence?: number | undefined;
|
|
2600
|
+
}[];
|
|
2601
|
+
}[];
|
|
2602
|
+
answer: string;
|
|
2603
|
+
confidence?: number | undefined;
|
|
2604
|
+
primaryNode?: string | undefined;
|
|
2605
|
+
scope?: "node" | "global" | undefined;
|
|
2606
|
+
}, {
|
|
2607
|
+
provenance: ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE")[];
|
|
2608
|
+
question: string;
|
|
2609
|
+
intent: "dependencies" | "observed" | "root-cause" | "blast-radius" | "incidents" | "divergence" | "overview";
|
|
2610
|
+
matched: {
|
|
2611
|
+
nodeId: string;
|
|
2612
|
+
label: string;
|
|
2613
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2614
|
+
score: number;
|
|
2615
|
+
}[];
|
|
2616
|
+
sections: {
|
|
2617
|
+
heading: string;
|
|
2618
|
+
facts: {
|
|
2619
|
+
text: string;
|
|
2620
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2621
|
+
confidence?: number | undefined;
|
|
2622
|
+
}[];
|
|
2623
|
+
}[];
|
|
2624
|
+
answer: string;
|
|
2625
|
+
confidence?: number | undefined;
|
|
2626
|
+
primaryNode?: string | undefined;
|
|
2627
|
+
scope?: "node" | "global" | undefined;
|
|
2628
|
+
}>;
|
|
2629
|
+
type AskResult = z.infer<typeof AskResultSchema>;
|
|
2466
2630
|
|
|
2467
2631
|
declare function serviceId(name: string, env?: string): string;
|
|
2468
2632
|
declare function parseServiceId(id: string): {
|
|
@@ -3304,7 +3468,7 @@ declare const ApplicablePolicySchema: z.ZodObject<{
|
|
|
3304
3468
|
onViolation: "log" | "alert" | "block";
|
|
3305
3469
|
policyId: string;
|
|
3306
3470
|
policyName: string;
|
|
3307
|
-
ruleType: "provenance" | "
|
|
3471
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3308
3472
|
match: "region" | "subject";
|
|
3309
3473
|
description?: string | undefined;
|
|
3310
3474
|
}, {
|
|
@@ -3313,7 +3477,7 @@ declare const ApplicablePolicySchema: z.ZodObject<{
|
|
|
3313
3477
|
onViolation: "log" | "alert" | "block";
|
|
3314
3478
|
policyId: string;
|
|
3315
3479
|
policyName: string;
|
|
3316
|
-
ruleType: "provenance" | "
|
|
3480
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3317
3481
|
match: "region" | "subject";
|
|
3318
3482
|
description?: string | undefined;
|
|
3319
3483
|
}>;
|
|
@@ -3335,7 +3499,7 @@ declare const ApplicablePoliciesResponseSchema: z.ZodObject<{
|
|
|
3335
3499
|
onViolation: "log" | "alert" | "block";
|
|
3336
3500
|
policyId: string;
|
|
3337
3501
|
policyName: string;
|
|
3338
|
-
ruleType: "provenance" | "
|
|
3502
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3339
3503
|
match: "region" | "subject";
|
|
3340
3504
|
description?: string | undefined;
|
|
3341
3505
|
}, {
|
|
@@ -3344,7 +3508,7 @@ declare const ApplicablePoliciesResponseSchema: z.ZodObject<{
|
|
|
3344
3508
|
onViolation: "log" | "alert" | "block";
|
|
3345
3509
|
policyId: string;
|
|
3346
3510
|
policyName: string;
|
|
3347
|
-
ruleType: "provenance" | "
|
|
3511
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3348
3512
|
match: "region" | "subject";
|
|
3349
3513
|
description?: string | undefined;
|
|
3350
3514
|
}>, "many">;
|
|
@@ -3356,7 +3520,7 @@ declare const ApplicablePoliciesResponseSchema: z.ZodObject<{
|
|
|
3356
3520
|
onViolation: "log" | "alert" | "block";
|
|
3357
3521
|
policyId: string;
|
|
3358
3522
|
policyName: string;
|
|
3359
|
-
ruleType: "provenance" | "
|
|
3523
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3360
3524
|
match: "region" | "subject";
|
|
3361
3525
|
description?: string | undefined;
|
|
3362
3526
|
}[];
|
|
@@ -3368,7 +3532,7 @@ declare const ApplicablePoliciesResponseSchema: z.ZodObject<{
|
|
|
3368
3532
|
onViolation: "log" | "alert" | "block";
|
|
3369
3533
|
policyId: string;
|
|
3370
3534
|
policyName: string;
|
|
3371
|
-
ruleType: "provenance" | "
|
|
3535
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3372
3536
|
match: "region" | "subject";
|
|
3373
3537
|
description?: string | undefined;
|
|
3374
3538
|
}[];
|
|
@@ -3411,7 +3575,7 @@ declare const PolicyViolationSchema: z.ZodObject<{
|
|
|
3411
3575
|
onViolation: "log" | "alert" | "block";
|
|
3412
3576
|
policyId: string;
|
|
3413
3577
|
policyName: string;
|
|
3414
|
-
ruleType: "provenance" | "
|
|
3578
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3415
3579
|
subject: {
|
|
3416
3580
|
path?: string[] | undefined;
|
|
3417
3581
|
edgeId?: string | undefined;
|
|
@@ -3425,7 +3589,7 @@ declare const PolicyViolationSchema: z.ZodObject<{
|
|
|
3425
3589
|
onViolation: "log" | "alert" | "block";
|
|
3426
3590
|
policyId: string;
|
|
3427
3591
|
policyName: string;
|
|
3428
|
-
ruleType: "provenance" | "
|
|
3592
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3429
3593
|
subject: {
|
|
3430
3594
|
path?: string[] | undefined;
|
|
3431
3595
|
edgeId?: string | undefined;
|
|
@@ -6242,7 +6406,7 @@ type DivergenceResult = z.infer<typeof DivergenceResultSchema>;
|
|
|
6242
6406
|
declare const DivergenceTypeSchema: z.ZodEnum<["missing-observed", "missing-extracted", "version-mismatch", "host-mismatch", "compat-violation"]>;
|
|
6243
6407
|
type DivergenceType = z.infer<typeof DivergenceTypeSchema>;
|
|
6244
6408
|
|
|
6245
|
-
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", "neat_list_uninstrumented", "neat_lookup_instrumentation", "neat_describe_project_instrumentation", "neat_apply_extension", "neat_dry_run_extension", "neat_rollback_extension"];
|
|
6409
|
+
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"];
|
|
6246
6410
|
type MCPToolName = (typeof MCP_TOOL_NAMES)[number];
|
|
6247
6411
|
|
|
6248
6412
|
declare const IncidentsResponseSchema: z.ZodObject<{
|
|
@@ -6500,7 +6664,7 @@ declare const PoliciesViolationsResponseSchema: z.ZodObject<{
|
|
|
6500
6664
|
onViolation: "log" | "alert" | "block";
|
|
6501
6665
|
policyId: string;
|
|
6502
6666
|
policyName: string;
|
|
6503
|
-
ruleType: "provenance" | "
|
|
6667
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
6504
6668
|
subject: {
|
|
6505
6669
|
path?: string[] | undefined;
|
|
6506
6670
|
edgeId?: string | undefined;
|
|
@@ -6514,7 +6678,7 @@ declare const PoliciesViolationsResponseSchema: z.ZodObject<{
|
|
|
6514
6678
|
onViolation: "log" | "alert" | "block";
|
|
6515
6679
|
policyId: string;
|
|
6516
6680
|
policyName: string;
|
|
6517
|
-
ruleType: "provenance" | "
|
|
6681
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
6518
6682
|
subject: {
|
|
6519
6683
|
path?: string[] | undefined;
|
|
6520
6684
|
edgeId?: string | undefined;
|
|
@@ -6530,7 +6694,7 @@ declare const PoliciesViolationsResponseSchema: z.ZodObject<{
|
|
|
6530
6694
|
onViolation: "log" | "alert" | "block";
|
|
6531
6695
|
policyId: string;
|
|
6532
6696
|
policyName: string;
|
|
6533
|
-
ruleType: "provenance" | "
|
|
6697
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
6534
6698
|
subject: {
|
|
6535
6699
|
path?: string[] | undefined;
|
|
6536
6700
|
edgeId?: string | undefined;
|
|
@@ -6546,7 +6710,7 @@ declare const PoliciesViolationsResponseSchema: z.ZodObject<{
|
|
|
6546
6710
|
onViolation: "log" | "alert" | "block";
|
|
6547
6711
|
policyId: string;
|
|
6548
6712
|
policyName: string;
|
|
6549
|
-
ruleType: "provenance" | "
|
|
6713
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
6550
6714
|
subject: {
|
|
6551
6715
|
path?: string[] | undefined;
|
|
6552
6716
|
edgeId?: string | undefined;
|
|
@@ -16071,4 +16235,4 @@ declare const DEFAULT_EXTRACTED_PRECISION_FLOOR = 0.7;
|
|
|
16071
16235
|
declare function extractedPrecisionFloor(): number;
|
|
16072
16236
|
declare function passesExtractedFloor(confidence: number): boolean;
|
|
16073
16237
|
|
|
16074
|
-
export { type ApplicablePoliciesResponse, ApplicablePoliciesResponseSchema, type ApplicablePolicy, ApplicablePolicySchema, 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 };
|
|
16238
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -2463,6 +2463,170 @@ declare const ObservedDependenciesResultSchema: z.ZodObject<{
|
|
|
2463
2463
|
inboundLastObserved?: string | undefined;
|
|
2464
2464
|
}>;
|
|
2465
2465
|
type ObservedDependenciesResult = z.infer<typeof ObservedDependenciesResultSchema>;
|
|
2466
|
+
declare const AskIntentSchema: z.ZodEnum<["root-cause", "blast-radius", "dependencies", "observed", "incidents", "divergence", "overview"]>;
|
|
2467
|
+
type AskIntent = z.infer<typeof AskIntentSchema>;
|
|
2468
|
+
declare const AskMatchSchema: z.ZodObject<{
|
|
2469
|
+
nodeId: z.ZodString;
|
|
2470
|
+
label: z.ZodString;
|
|
2471
|
+
via: z.ZodEnum<["id", "label", "token", "embedding"]>;
|
|
2472
|
+
score: z.ZodNumber;
|
|
2473
|
+
}, "strip", z.ZodTypeAny, {
|
|
2474
|
+
nodeId: string;
|
|
2475
|
+
label: string;
|
|
2476
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2477
|
+
score: number;
|
|
2478
|
+
}, {
|
|
2479
|
+
nodeId: string;
|
|
2480
|
+
label: string;
|
|
2481
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2482
|
+
score: number;
|
|
2483
|
+
}>;
|
|
2484
|
+
type AskMatch = z.infer<typeof AskMatchSchema>;
|
|
2485
|
+
declare const AskFactSchema: z.ZodObject<{
|
|
2486
|
+
text: z.ZodString;
|
|
2487
|
+
provenance: z.ZodOptional<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>>;
|
|
2488
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
2489
|
+
}, "strip", z.ZodTypeAny, {
|
|
2490
|
+
text: string;
|
|
2491
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2492
|
+
confidence?: number | undefined;
|
|
2493
|
+
}, {
|
|
2494
|
+
text: string;
|
|
2495
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2496
|
+
confidence?: number | undefined;
|
|
2497
|
+
}>;
|
|
2498
|
+
type AskFact = z.infer<typeof AskFactSchema>;
|
|
2499
|
+
declare const AskSectionSchema: z.ZodObject<{
|
|
2500
|
+
heading: z.ZodString;
|
|
2501
|
+
facts: z.ZodArray<z.ZodObject<{
|
|
2502
|
+
text: z.ZodString;
|
|
2503
|
+
provenance: z.ZodOptional<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>>;
|
|
2504
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
2505
|
+
}, "strip", z.ZodTypeAny, {
|
|
2506
|
+
text: string;
|
|
2507
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2508
|
+
confidence?: number | undefined;
|
|
2509
|
+
}, {
|
|
2510
|
+
text: string;
|
|
2511
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2512
|
+
confidence?: number | undefined;
|
|
2513
|
+
}>, "many">;
|
|
2514
|
+
}, "strip", z.ZodTypeAny, {
|
|
2515
|
+
heading: string;
|
|
2516
|
+
facts: {
|
|
2517
|
+
text: string;
|
|
2518
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2519
|
+
confidence?: number | undefined;
|
|
2520
|
+
}[];
|
|
2521
|
+
}, {
|
|
2522
|
+
heading: string;
|
|
2523
|
+
facts: {
|
|
2524
|
+
text: string;
|
|
2525
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2526
|
+
confidence?: number | undefined;
|
|
2527
|
+
}[];
|
|
2528
|
+
}>;
|
|
2529
|
+
type AskSection = z.infer<typeof AskSectionSchema>;
|
|
2530
|
+
declare const AskResultSchema: z.ZodObject<{
|
|
2531
|
+
question: z.ZodString;
|
|
2532
|
+
intent: z.ZodEnum<["root-cause", "blast-radius", "dependencies", "observed", "incidents", "divergence", "overview"]>;
|
|
2533
|
+
matched: z.ZodArray<z.ZodObject<{
|
|
2534
|
+
nodeId: z.ZodString;
|
|
2535
|
+
label: z.ZodString;
|
|
2536
|
+
via: z.ZodEnum<["id", "label", "token", "embedding"]>;
|
|
2537
|
+
score: z.ZodNumber;
|
|
2538
|
+
}, "strip", z.ZodTypeAny, {
|
|
2539
|
+
nodeId: string;
|
|
2540
|
+
label: string;
|
|
2541
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2542
|
+
score: number;
|
|
2543
|
+
}, {
|
|
2544
|
+
nodeId: string;
|
|
2545
|
+
label: string;
|
|
2546
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2547
|
+
score: number;
|
|
2548
|
+
}>, "many">;
|
|
2549
|
+
primaryNode: z.ZodOptional<z.ZodString>;
|
|
2550
|
+
scope: z.ZodOptional<z.ZodEnum<["global", "node"]>>;
|
|
2551
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
2552
|
+
heading: z.ZodString;
|
|
2553
|
+
facts: z.ZodArray<z.ZodObject<{
|
|
2554
|
+
text: z.ZodString;
|
|
2555
|
+
provenance: z.ZodOptional<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>>;
|
|
2556
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
2557
|
+
}, "strip", z.ZodTypeAny, {
|
|
2558
|
+
text: string;
|
|
2559
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2560
|
+
confidence?: number | undefined;
|
|
2561
|
+
}, {
|
|
2562
|
+
text: string;
|
|
2563
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2564
|
+
confidence?: number | undefined;
|
|
2565
|
+
}>, "many">;
|
|
2566
|
+
}, "strip", z.ZodTypeAny, {
|
|
2567
|
+
heading: string;
|
|
2568
|
+
facts: {
|
|
2569
|
+
text: string;
|
|
2570
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2571
|
+
confidence?: number | undefined;
|
|
2572
|
+
}[];
|
|
2573
|
+
}, {
|
|
2574
|
+
heading: string;
|
|
2575
|
+
facts: {
|
|
2576
|
+
text: string;
|
|
2577
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2578
|
+
confidence?: number | undefined;
|
|
2579
|
+
}[];
|
|
2580
|
+
}>, "many">;
|
|
2581
|
+
answer: z.ZodString;
|
|
2582
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
2583
|
+
provenance: z.ZodArray<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE"]>, "many">;
|
|
2584
|
+
}, "strip", z.ZodTypeAny, {
|
|
2585
|
+
provenance: ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE")[];
|
|
2586
|
+
question: string;
|
|
2587
|
+
intent: "dependencies" | "observed" | "root-cause" | "blast-radius" | "incidents" | "divergence" | "overview";
|
|
2588
|
+
matched: {
|
|
2589
|
+
nodeId: string;
|
|
2590
|
+
label: string;
|
|
2591
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2592
|
+
score: number;
|
|
2593
|
+
}[];
|
|
2594
|
+
sections: {
|
|
2595
|
+
heading: string;
|
|
2596
|
+
facts: {
|
|
2597
|
+
text: string;
|
|
2598
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2599
|
+
confidence?: number | undefined;
|
|
2600
|
+
}[];
|
|
2601
|
+
}[];
|
|
2602
|
+
answer: string;
|
|
2603
|
+
confidence?: number | undefined;
|
|
2604
|
+
primaryNode?: string | undefined;
|
|
2605
|
+
scope?: "node" | "global" | undefined;
|
|
2606
|
+
}, {
|
|
2607
|
+
provenance: ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE")[];
|
|
2608
|
+
question: string;
|
|
2609
|
+
intent: "dependencies" | "observed" | "root-cause" | "blast-radius" | "incidents" | "divergence" | "overview";
|
|
2610
|
+
matched: {
|
|
2611
|
+
nodeId: string;
|
|
2612
|
+
label: string;
|
|
2613
|
+
via: "id" | "label" | "token" | "embedding";
|
|
2614
|
+
score: number;
|
|
2615
|
+
}[];
|
|
2616
|
+
sections: {
|
|
2617
|
+
heading: string;
|
|
2618
|
+
facts: {
|
|
2619
|
+
text: string;
|
|
2620
|
+
provenance?: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | undefined;
|
|
2621
|
+
confidence?: number | undefined;
|
|
2622
|
+
}[];
|
|
2623
|
+
}[];
|
|
2624
|
+
answer: string;
|
|
2625
|
+
confidence?: number | undefined;
|
|
2626
|
+
primaryNode?: string | undefined;
|
|
2627
|
+
scope?: "node" | "global" | undefined;
|
|
2628
|
+
}>;
|
|
2629
|
+
type AskResult = z.infer<typeof AskResultSchema>;
|
|
2466
2630
|
|
|
2467
2631
|
declare function serviceId(name: string, env?: string): string;
|
|
2468
2632
|
declare function parseServiceId(id: string): {
|
|
@@ -3304,7 +3468,7 @@ declare const ApplicablePolicySchema: z.ZodObject<{
|
|
|
3304
3468
|
onViolation: "log" | "alert" | "block";
|
|
3305
3469
|
policyId: string;
|
|
3306
3470
|
policyName: string;
|
|
3307
|
-
ruleType: "provenance" | "
|
|
3471
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3308
3472
|
match: "region" | "subject";
|
|
3309
3473
|
description?: string | undefined;
|
|
3310
3474
|
}, {
|
|
@@ -3313,7 +3477,7 @@ declare const ApplicablePolicySchema: z.ZodObject<{
|
|
|
3313
3477
|
onViolation: "log" | "alert" | "block";
|
|
3314
3478
|
policyId: string;
|
|
3315
3479
|
policyName: string;
|
|
3316
|
-
ruleType: "provenance" | "
|
|
3480
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3317
3481
|
match: "region" | "subject";
|
|
3318
3482
|
description?: string | undefined;
|
|
3319
3483
|
}>;
|
|
@@ -3335,7 +3499,7 @@ declare const ApplicablePoliciesResponseSchema: z.ZodObject<{
|
|
|
3335
3499
|
onViolation: "log" | "alert" | "block";
|
|
3336
3500
|
policyId: string;
|
|
3337
3501
|
policyName: string;
|
|
3338
|
-
ruleType: "provenance" | "
|
|
3502
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3339
3503
|
match: "region" | "subject";
|
|
3340
3504
|
description?: string | undefined;
|
|
3341
3505
|
}, {
|
|
@@ -3344,7 +3508,7 @@ declare const ApplicablePoliciesResponseSchema: z.ZodObject<{
|
|
|
3344
3508
|
onViolation: "log" | "alert" | "block";
|
|
3345
3509
|
policyId: string;
|
|
3346
3510
|
policyName: string;
|
|
3347
|
-
ruleType: "provenance" | "
|
|
3511
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3348
3512
|
match: "region" | "subject";
|
|
3349
3513
|
description?: string | undefined;
|
|
3350
3514
|
}>, "many">;
|
|
@@ -3356,7 +3520,7 @@ declare const ApplicablePoliciesResponseSchema: z.ZodObject<{
|
|
|
3356
3520
|
onViolation: "log" | "alert" | "block";
|
|
3357
3521
|
policyId: string;
|
|
3358
3522
|
policyName: string;
|
|
3359
|
-
ruleType: "provenance" | "
|
|
3523
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3360
3524
|
match: "region" | "subject";
|
|
3361
3525
|
description?: string | undefined;
|
|
3362
3526
|
}[];
|
|
@@ -3368,7 +3532,7 @@ declare const ApplicablePoliciesResponseSchema: z.ZodObject<{
|
|
|
3368
3532
|
onViolation: "log" | "alert" | "block";
|
|
3369
3533
|
policyId: string;
|
|
3370
3534
|
policyName: string;
|
|
3371
|
-
ruleType: "provenance" | "
|
|
3535
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3372
3536
|
match: "region" | "subject";
|
|
3373
3537
|
description?: string | undefined;
|
|
3374
3538
|
}[];
|
|
@@ -3411,7 +3575,7 @@ declare const PolicyViolationSchema: z.ZodObject<{
|
|
|
3411
3575
|
onViolation: "log" | "alert" | "block";
|
|
3412
3576
|
policyId: string;
|
|
3413
3577
|
policyName: string;
|
|
3414
|
-
ruleType: "provenance" | "
|
|
3578
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3415
3579
|
subject: {
|
|
3416
3580
|
path?: string[] | undefined;
|
|
3417
3581
|
edgeId?: string | undefined;
|
|
@@ -3425,7 +3589,7 @@ declare const PolicyViolationSchema: z.ZodObject<{
|
|
|
3425
3589
|
onViolation: "log" | "alert" | "block";
|
|
3426
3590
|
policyId: string;
|
|
3427
3591
|
policyName: string;
|
|
3428
|
-
ruleType: "provenance" | "
|
|
3592
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
3429
3593
|
subject: {
|
|
3430
3594
|
path?: string[] | undefined;
|
|
3431
3595
|
edgeId?: string | undefined;
|
|
@@ -6242,7 +6406,7 @@ type DivergenceResult = z.infer<typeof DivergenceResultSchema>;
|
|
|
6242
6406
|
declare const DivergenceTypeSchema: z.ZodEnum<["missing-observed", "missing-extracted", "version-mismatch", "host-mismatch", "compat-violation"]>;
|
|
6243
6407
|
type DivergenceType = z.infer<typeof DivergenceTypeSchema>;
|
|
6244
6408
|
|
|
6245
|
-
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", "neat_list_uninstrumented", "neat_lookup_instrumentation", "neat_describe_project_instrumentation", "neat_apply_extension", "neat_dry_run_extension", "neat_rollback_extension"];
|
|
6409
|
+
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"];
|
|
6246
6410
|
type MCPToolName = (typeof MCP_TOOL_NAMES)[number];
|
|
6247
6411
|
|
|
6248
6412
|
declare const IncidentsResponseSchema: z.ZodObject<{
|
|
@@ -6500,7 +6664,7 @@ declare const PoliciesViolationsResponseSchema: z.ZodObject<{
|
|
|
6500
6664
|
onViolation: "log" | "alert" | "block";
|
|
6501
6665
|
policyId: string;
|
|
6502
6666
|
policyName: string;
|
|
6503
|
-
ruleType: "provenance" | "
|
|
6667
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
6504
6668
|
subject: {
|
|
6505
6669
|
path?: string[] | undefined;
|
|
6506
6670
|
edgeId?: string | undefined;
|
|
@@ -6514,7 +6678,7 @@ declare const PoliciesViolationsResponseSchema: z.ZodObject<{
|
|
|
6514
6678
|
onViolation: "log" | "alert" | "block";
|
|
6515
6679
|
policyId: string;
|
|
6516
6680
|
policyName: string;
|
|
6517
|
-
ruleType: "provenance" | "
|
|
6681
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
6518
6682
|
subject: {
|
|
6519
6683
|
path?: string[] | undefined;
|
|
6520
6684
|
edgeId?: string | undefined;
|
|
@@ -6530,7 +6694,7 @@ declare const PoliciesViolationsResponseSchema: z.ZodObject<{
|
|
|
6530
6694
|
onViolation: "log" | "alert" | "block";
|
|
6531
6695
|
policyId: string;
|
|
6532
6696
|
policyName: string;
|
|
6533
|
-
ruleType: "provenance" | "
|
|
6697
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
6534
6698
|
subject: {
|
|
6535
6699
|
path?: string[] | undefined;
|
|
6536
6700
|
edgeId?: string | undefined;
|
|
@@ -6546,7 +6710,7 @@ declare const PoliciesViolationsResponseSchema: z.ZodObject<{
|
|
|
6546
6710
|
onViolation: "log" | "alert" | "block";
|
|
6547
6711
|
policyId: string;
|
|
6548
6712
|
policyName: string;
|
|
6549
|
-
ruleType: "provenance" | "
|
|
6713
|
+
ruleType: "provenance" | "blast-radius" | "structural" | "compatibility" | "ownership" | "field-guard";
|
|
6550
6714
|
subject: {
|
|
6551
6715
|
path?: string[] | undefined;
|
|
6552
6716
|
edgeId?: string | undefined;
|
|
@@ -16071,4 +16235,4 @@ declare const DEFAULT_EXTRACTED_PRECISION_FLOOR = 0.7;
|
|
|
16071
16235
|
declare function extractedPrecisionFloor(): number;
|
|
16072
16236
|
declare function passesExtractedFloor(confidence: number): boolean;
|
|
16073
16237
|
|
|
16074
|
-
export { type ApplicablePoliciesResponse, ApplicablePoliciesResponseSchema, type ApplicablePolicy, ApplicablePolicySchema, 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 };
|
|
16238
|
+
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 };
|