@neat.is/types 0.4.10 → 0.4.12
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 +29 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -1
- package/dist/index.d.ts +52 -1
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -364,6 +364,7 @@ declare const FileNodeSchema: z.ZodObject<{
|
|
|
364
364
|
path: z.ZodString;
|
|
365
365
|
language: z.ZodOptional<z.ZodString>;
|
|
366
366
|
discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
|
|
367
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
367
368
|
}, "strip", z.ZodTypeAny, {
|
|
368
369
|
path: string;
|
|
369
370
|
type: "FileNode";
|
|
@@ -371,6 +372,7 @@ declare const FileNodeSchema: z.ZodObject<{
|
|
|
371
372
|
service: string;
|
|
372
373
|
language?: string | undefined;
|
|
373
374
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
375
|
+
originalPath?: string | undefined;
|
|
374
376
|
}, {
|
|
375
377
|
path: string;
|
|
376
378
|
type: "FileNode";
|
|
@@ -378,6 +380,7 @@ declare const FileNodeSchema: z.ZodObject<{
|
|
|
378
380
|
service: string;
|
|
379
381
|
language?: string | undefined;
|
|
380
382
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
383
|
+
originalPath?: string | undefined;
|
|
381
384
|
}>;
|
|
382
385
|
type FileNode = z.infer<typeof FileNodeSchema>;
|
|
383
386
|
declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -691,6 +694,7 @@ declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
691
694
|
path: z.ZodString;
|
|
692
695
|
language: z.ZodOptional<z.ZodString>;
|
|
693
696
|
discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
|
|
697
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
694
698
|
}, "strip", z.ZodTypeAny, {
|
|
695
699
|
path: string;
|
|
696
700
|
type: "FileNode";
|
|
@@ -698,6 +702,7 @@ declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
698
702
|
service: string;
|
|
699
703
|
language?: string | undefined;
|
|
700
704
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
705
|
+
originalPath?: string | undefined;
|
|
701
706
|
}, {
|
|
702
707
|
path: string;
|
|
703
708
|
type: "FileNode";
|
|
@@ -705,6 +710,7 @@ declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
705
710
|
service: string;
|
|
706
711
|
language?: string | undefined;
|
|
707
712
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
713
|
+
originalPath?: string | undefined;
|
|
708
714
|
}>]>;
|
|
709
715
|
type GraphNode = z.infer<typeof GraphNodeSchema>;
|
|
710
716
|
|
|
@@ -3604,6 +3610,9 @@ type DivergenceResult = z.infer<typeof DivergenceResultSchema>;
|
|
|
3604
3610
|
declare const DivergenceTypeSchema: z.ZodEnum<["missing-observed", "missing-extracted", "version-mismatch", "host-mismatch", "compat-violation"]>;
|
|
3605
3611
|
type DivergenceType = z.infer<typeof DivergenceTypeSchema>;
|
|
3606
3612
|
|
|
3613
|
+
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", "neat_list_uninstrumented", "neat_lookup_instrumentation", "neat_describe_project_instrumentation", "neat_apply_extension", "neat_dry_run_extension", "neat_rollback_extension"];
|
|
3614
|
+
type MCPToolName = (typeof MCP_TOOL_NAMES)[number];
|
|
3615
|
+
|
|
3607
3616
|
declare const IncidentsResponseSchema: z.ZodObject<{
|
|
3608
3617
|
count: z.ZodNumber;
|
|
3609
3618
|
total: z.ZodNumber;
|
|
@@ -4143,6 +4152,7 @@ declare const GraphNodeResponseSchema: z.ZodObject<{
|
|
|
4143
4152
|
path: z.ZodString;
|
|
4144
4153
|
language: z.ZodOptional<z.ZodString>;
|
|
4145
4154
|
discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
|
|
4155
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
4146
4156
|
}, "strip", z.ZodTypeAny, {
|
|
4147
4157
|
path: string;
|
|
4148
4158
|
type: "FileNode";
|
|
@@ -4150,6 +4160,7 @@ declare const GraphNodeResponseSchema: z.ZodObject<{
|
|
|
4150
4160
|
service: string;
|
|
4151
4161
|
language?: string | undefined;
|
|
4152
4162
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
4163
|
+
originalPath?: string | undefined;
|
|
4153
4164
|
}, {
|
|
4154
4165
|
path: string;
|
|
4155
4166
|
type: "FileNode";
|
|
@@ -4157,6 +4168,7 @@ declare const GraphNodeResponseSchema: z.ZodObject<{
|
|
|
4157
4168
|
service: string;
|
|
4158
4169
|
language?: string | undefined;
|
|
4159
4170
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
4171
|
+
originalPath?: string | undefined;
|
|
4160
4172
|
}>]>;
|
|
4161
4173
|
}, "strip", z.ZodTypeAny, {
|
|
4162
4174
|
node: {
|
|
@@ -4244,6 +4256,7 @@ declare const GraphNodeResponseSchema: z.ZodObject<{
|
|
|
4244
4256
|
service: string;
|
|
4245
4257
|
language?: string | undefined;
|
|
4246
4258
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
4259
|
+
originalPath?: string | undefined;
|
|
4247
4260
|
};
|
|
4248
4261
|
}, {
|
|
4249
4262
|
node: {
|
|
@@ -4331,6 +4344,7 @@ declare const GraphNodeResponseSchema: z.ZodObject<{
|
|
|
4331
4344
|
service: string;
|
|
4332
4345
|
language?: string | undefined;
|
|
4333
4346
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
4347
|
+
originalPath?: string | undefined;
|
|
4334
4348
|
};
|
|
4335
4349
|
}>;
|
|
4336
4350
|
type GraphNodeResponse = z.infer<typeof GraphNodeResponseSchema>;
|
|
@@ -5018,6 +5032,7 @@ declare const SerializedGraphSchema: z.ZodObject<{
|
|
|
5018
5032
|
path: z.ZodString;
|
|
5019
5033
|
language: z.ZodOptional<z.ZodString>;
|
|
5020
5034
|
discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
|
|
5035
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
5021
5036
|
}, "strip", z.ZodTypeAny, {
|
|
5022
5037
|
path: string;
|
|
5023
5038
|
type: "FileNode";
|
|
@@ -5025,6 +5040,7 @@ declare const SerializedGraphSchema: z.ZodObject<{
|
|
|
5025
5040
|
service: string;
|
|
5026
5041
|
language?: string | undefined;
|
|
5027
5042
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
5043
|
+
originalPath?: string | undefined;
|
|
5028
5044
|
}, {
|
|
5029
5045
|
path: string;
|
|
5030
5046
|
type: "FileNode";
|
|
@@ -5032,6 +5048,7 @@ declare const SerializedGraphSchema: z.ZodObject<{
|
|
|
5032
5048
|
service: string;
|
|
5033
5049
|
language?: string | undefined;
|
|
5034
5050
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
5051
|
+
originalPath?: string | undefined;
|
|
5035
5052
|
}>]>, "many">;
|
|
5036
5053
|
edges: z.ZodArray<z.ZodObject<{
|
|
5037
5054
|
id: z.ZodString;
|
|
@@ -5193,6 +5210,7 @@ declare const SerializedGraphSchema: z.ZodObject<{
|
|
|
5193
5210
|
service: string;
|
|
5194
5211
|
language?: string | undefined;
|
|
5195
5212
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
5213
|
+
originalPath?: string | undefined;
|
|
5196
5214
|
})[];
|
|
5197
5215
|
edges: {
|
|
5198
5216
|
type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS";
|
|
@@ -5300,6 +5318,7 @@ declare const SerializedGraphSchema: z.ZodObject<{
|
|
|
5300
5318
|
service: string;
|
|
5301
5319
|
language?: string | undefined;
|
|
5302
5320
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
5321
|
+
originalPath?: string | undefined;
|
|
5303
5322
|
})[];
|
|
5304
5323
|
edges: {
|
|
5305
5324
|
type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS";
|
|
@@ -5650,6 +5669,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
5650
5669
|
path: z.ZodString;
|
|
5651
5670
|
language: z.ZodOptional<z.ZodString>;
|
|
5652
5671
|
discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
|
|
5672
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
5653
5673
|
}, "strip", z.ZodTypeAny, {
|
|
5654
5674
|
path: string;
|
|
5655
5675
|
type: "FileNode";
|
|
@@ -5657,6 +5677,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
5657
5677
|
service: string;
|
|
5658
5678
|
language?: string | undefined;
|
|
5659
5679
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
5680
|
+
originalPath?: string | undefined;
|
|
5660
5681
|
}, {
|
|
5661
5682
|
path: string;
|
|
5662
5683
|
type: "FileNode";
|
|
@@ -5664,6 +5685,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
5664
5685
|
service: string;
|
|
5665
5686
|
language?: string | undefined;
|
|
5666
5687
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
5688
|
+
originalPath?: string | undefined;
|
|
5667
5689
|
}>]>, "many">;
|
|
5668
5690
|
edges: z.ZodArray<z.ZodObject<{
|
|
5669
5691
|
id: z.ZodString;
|
|
@@ -5825,6 +5847,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
5825
5847
|
service: string;
|
|
5826
5848
|
language?: string | undefined;
|
|
5827
5849
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
5850
|
+
originalPath?: string | undefined;
|
|
5828
5851
|
})[];
|
|
5829
5852
|
edges: {
|
|
5830
5853
|
type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS";
|
|
@@ -5932,6 +5955,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
5932
5955
|
service: string;
|
|
5933
5956
|
language?: string | undefined;
|
|
5934
5957
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
5958
|
+
originalPath?: string | undefined;
|
|
5935
5959
|
})[];
|
|
5936
5960
|
edges: {
|
|
5937
5961
|
type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS";
|
|
@@ -6266,6 +6290,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
6266
6290
|
path: z.ZodString;
|
|
6267
6291
|
language: z.ZodOptional<z.ZodString>;
|
|
6268
6292
|
discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
|
|
6293
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
6269
6294
|
}, "strip", z.ZodTypeAny, {
|
|
6270
6295
|
path: string;
|
|
6271
6296
|
type: "FileNode";
|
|
@@ -6273,6 +6298,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
6273
6298
|
service: string;
|
|
6274
6299
|
language?: string | undefined;
|
|
6275
6300
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
6301
|
+
originalPath?: string | undefined;
|
|
6276
6302
|
}, {
|
|
6277
6303
|
path: string;
|
|
6278
6304
|
type: "FileNode";
|
|
@@ -6280,6 +6306,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
6280
6306
|
service: string;
|
|
6281
6307
|
language?: string | undefined;
|
|
6282
6308
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
6309
|
+
originalPath?: string | undefined;
|
|
6283
6310
|
}>]>, "many">;
|
|
6284
6311
|
edges: z.ZodArray<z.ZodObject<{
|
|
6285
6312
|
id: z.ZodString;
|
|
@@ -6441,6 +6468,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
6441
6468
|
service: string;
|
|
6442
6469
|
language?: string | undefined;
|
|
6443
6470
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
6471
|
+
originalPath?: string | undefined;
|
|
6444
6472
|
})[];
|
|
6445
6473
|
edges: {
|
|
6446
6474
|
type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS";
|
|
@@ -6548,6 +6576,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
6548
6576
|
service: string;
|
|
6549
6577
|
language?: string | undefined;
|
|
6550
6578
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
6579
|
+
originalPath?: string | undefined;
|
|
6551
6580
|
})[];
|
|
6552
6581
|
edges: {
|
|
6553
6582
|
type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS";
|
|
@@ -6884,6 +6913,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
6884
6913
|
path: z.ZodString;
|
|
6885
6914
|
language: z.ZodOptional<z.ZodString>;
|
|
6886
6915
|
discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
|
|
6916
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
6887
6917
|
}, "strip", z.ZodTypeAny, {
|
|
6888
6918
|
path: string;
|
|
6889
6919
|
type: "FileNode";
|
|
@@ -6891,6 +6921,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
6891
6921
|
service: string;
|
|
6892
6922
|
language?: string | undefined;
|
|
6893
6923
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
6924
|
+
originalPath?: string | undefined;
|
|
6894
6925
|
}, {
|
|
6895
6926
|
path: string;
|
|
6896
6927
|
type: "FileNode";
|
|
@@ -6898,6 +6929,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
6898
6929
|
service: string;
|
|
6899
6930
|
language?: string | undefined;
|
|
6900
6931
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
6932
|
+
originalPath?: string | undefined;
|
|
6901
6933
|
}>]>;
|
|
6902
6934
|
after: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
6903
6935
|
id: z.ZodString;
|
|
@@ -7210,6 +7242,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
7210
7242
|
path: z.ZodString;
|
|
7211
7243
|
language: z.ZodOptional<z.ZodString>;
|
|
7212
7244
|
discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
|
|
7245
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
7213
7246
|
}, "strip", z.ZodTypeAny, {
|
|
7214
7247
|
path: string;
|
|
7215
7248
|
type: "FileNode";
|
|
@@ -7217,6 +7250,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
7217
7250
|
service: string;
|
|
7218
7251
|
language?: string | undefined;
|
|
7219
7252
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
7253
|
+
originalPath?: string | undefined;
|
|
7220
7254
|
}, {
|
|
7221
7255
|
path: string;
|
|
7222
7256
|
type: "FileNode";
|
|
@@ -7224,6 +7258,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
7224
7258
|
service: string;
|
|
7225
7259
|
language?: string | undefined;
|
|
7226
7260
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
7261
|
+
originalPath?: string | undefined;
|
|
7227
7262
|
}>]>;
|
|
7228
7263
|
}, "strip", z.ZodTypeAny, {
|
|
7229
7264
|
id: string;
|
|
@@ -7312,6 +7347,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
7312
7347
|
service: string;
|
|
7313
7348
|
language?: string | undefined;
|
|
7314
7349
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
7350
|
+
originalPath?: string | undefined;
|
|
7315
7351
|
};
|
|
7316
7352
|
after: {
|
|
7317
7353
|
name: string;
|
|
@@ -7398,6 +7434,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
7398
7434
|
service: string;
|
|
7399
7435
|
language?: string | undefined;
|
|
7400
7436
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
7437
|
+
originalPath?: string | undefined;
|
|
7401
7438
|
};
|
|
7402
7439
|
}, {
|
|
7403
7440
|
id: string;
|
|
@@ -7486,6 +7523,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
7486
7523
|
service: string;
|
|
7487
7524
|
language?: string | undefined;
|
|
7488
7525
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
7526
|
+
originalPath?: string | undefined;
|
|
7489
7527
|
};
|
|
7490
7528
|
after: {
|
|
7491
7529
|
name: string;
|
|
@@ -7572,6 +7610,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
7572
7610
|
service: string;
|
|
7573
7611
|
language?: string | undefined;
|
|
7574
7612
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
7613
|
+
originalPath?: string | undefined;
|
|
7575
7614
|
};
|
|
7576
7615
|
}>, "many">;
|
|
7577
7616
|
edges: z.ZodArray<z.ZodObject<{
|
|
@@ -7897,6 +7936,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
7897
7936
|
service: string;
|
|
7898
7937
|
language?: string | undefined;
|
|
7899
7938
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
7939
|
+
originalPath?: string | undefined;
|
|
7900
7940
|
};
|
|
7901
7941
|
after: {
|
|
7902
7942
|
name: string;
|
|
@@ -7983,6 +8023,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
7983
8023
|
service: string;
|
|
7984
8024
|
language?: string | undefined;
|
|
7985
8025
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
8026
|
+
originalPath?: string | undefined;
|
|
7986
8027
|
};
|
|
7987
8028
|
}[];
|
|
7988
8029
|
edges: {
|
|
@@ -8116,6 +8157,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
8116
8157
|
service: string;
|
|
8117
8158
|
language?: string | undefined;
|
|
8118
8159
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
8160
|
+
originalPath?: string | undefined;
|
|
8119
8161
|
};
|
|
8120
8162
|
after: {
|
|
8121
8163
|
name: string;
|
|
@@ -8202,6 +8244,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
8202
8244
|
service: string;
|
|
8203
8245
|
language?: string | undefined;
|
|
8204
8246
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
8247
|
+
originalPath?: string | undefined;
|
|
8205
8248
|
};
|
|
8206
8249
|
}[];
|
|
8207
8250
|
edges: {
|
|
@@ -8341,6 +8384,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
8341
8384
|
service: string;
|
|
8342
8385
|
language?: string | undefined;
|
|
8343
8386
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
8387
|
+
originalPath?: string | undefined;
|
|
8344
8388
|
})[];
|
|
8345
8389
|
edges: {
|
|
8346
8390
|
type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS";
|
|
@@ -8449,6 +8493,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
8449
8493
|
service: string;
|
|
8450
8494
|
language?: string | undefined;
|
|
8451
8495
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
8496
|
+
originalPath?: string | undefined;
|
|
8452
8497
|
})[];
|
|
8453
8498
|
edges: {
|
|
8454
8499
|
type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS";
|
|
@@ -8559,6 +8604,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
8559
8604
|
service: string;
|
|
8560
8605
|
language?: string | undefined;
|
|
8561
8606
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
8607
|
+
originalPath?: string | undefined;
|
|
8562
8608
|
};
|
|
8563
8609
|
after: {
|
|
8564
8610
|
name: string;
|
|
@@ -8645,6 +8691,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
8645
8691
|
service: string;
|
|
8646
8692
|
language?: string | undefined;
|
|
8647
8693
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
8694
|
+
originalPath?: string | undefined;
|
|
8648
8695
|
};
|
|
8649
8696
|
}[];
|
|
8650
8697
|
edges: {
|
|
@@ -8784,6 +8831,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
8784
8831
|
service: string;
|
|
8785
8832
|
language?: string | undefined;
|
|
8786
8833
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
8834
|
+
originalPath?: string | undefined;
|
|
8787
8835
|
})[];
|
|
8788
8836
|
edges: {
|
|
8789
8837
|
type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS";
|
|
@@ -8892,6 +8940,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
8892
8940
|
service: string;
|
|
8893
8941
|
language?: string | undefined;
|
|
8894
8942
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
8943
|
+
originalPath?: string | undefined;
|
|
8895
8944
|
})[];
|
|
8896
8945
|
edges: {
|
|
8897
8946
|
type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON" | "CONTAINS";
|
|
@@ -9002,6 +9051,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
9002
9051
|
service: string;
|
|
9003
9052
|
language?: string | undefined;
|
|
9004
9053
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
9054
|
+
originalPath?: string | undefined;
|
|
9005
9055
|
};
|
|
9006
9056
|
after: {
|
|
9007
9057
|
name: string;
|
|
@@ -9088,6 +9138,7 @@ declare const GraphDiffResultSchema: z.ZodObject<{
|
|
|
9088
9138
|
service: string;
|
|
9089
9139
|
language?: string | undefined;
|
|
9090
9140
|
discoveredVia?: "static" | "otel" | "merged" | undefined;
|
|
9141
|
+
originalPath?: string | undefined;
|
|
9091
9142
|
};
|
|
9092
9143
|
}[];
|
|
9093
9144
|
edges: {
|
|
@@ -9145,4 +9196,4 @@ declare const DEFAULT_EXTRACTED_PRECISION_FLOOR = 0.7;
|
|
|
9145
9196
|
declare function extractedPrecisionFloor(): number;
|
|
9146
9197
|
declare function passesExtractedFloor(confidence: number): boolean;
|
|
9147
9198
|
|
|
9148
|
-
export { type BlastRadiusAffectedNode, BlastRadiusAffectedNodeSchema, type BlastRadiusResult, BlastRadiusResultSchema, type BlastRadiusRule, BlastRadiusRuleSchema, type CheckPoliciesScope, CheckPoliciesScopeSchema, type CompatRuleRef, CompatRuleRefSchema, type CompatViolationDivergence, CompatViolationDivergenceSchema, type CompatibilityRule, CompatibilityRuleSchema, type CompatibilityVerdict, CompatibilityVerdictSchema, type CompatibleDriver, CompatibleDriverSchema, type ConfigNode, ConfigNodeSchema, 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 EdgeEvidence, EdgeEvidenceSchema, type EdgeSignal, EdgeSignalSchema, EdgeType, EdgeTypeSchema, type EdgeTypeValue, type ErrorEvent, ErrorEventSchema, type ExtractedConfidenceKind, type FileNode, FileNodeSchema, type FrontierNode, FrontierNodeSchema, type GraphDiffResult, GraphDiffResultSchema, type GraphEdge, GraphEdgeSchema, type GraphEdgesResponse, GraphEdgesResponseSchema, type GraphNode, type GraphNodeResponse, GraphNodeResponseSchema, GraphNodeSchema, type HealthResponse, HealthResponseSchema, type HostMismatchDivergence, HostMismatchDivergenceSchema, type HypotheticalAction, HypotheticalActionSchema, type IncidentsResponse, IncidentsResponseSchema, type InfraNode, InfraNodeSchema, type MissingExtractedDivergence, MissingExtractedDivergenceSchema, type MissingObservedDivergence, MissingObservedDivergenceSchema, NodeType, NodeTypeSchema, type NodeTypeValue, 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, Provenance, type ProvenanceRule, ProvenanceRuleSchema, ProvenanceSchema, type ProvenanceValue, type RegistryEntry, RegistryEntrySchema, type RegistryFile, RegistryFileSchema, type RegistryStatus, RegistryStatusSchema, type RootCauseResult, RootCauseResultSchema, type SearchMatch, SearchMatchSchema, type SearchResponse, SearchResponseSchema, type SerializedGraph, SerializedGraphSchema, type ServiceNode, ServiceNodeSchema, type SingleProjectResponse, SingleProjectResponseSchema, type SpanAttributes, SpanAttributesSchema, type StaleEvent, StaleEventSchema, type StaleEventsResponse, StaleEventsResponseSchema, type StructuralRule, StructuralRuleSchema, type TransitiveDependenciesResult, TransitiveDependenciesResultSchema, type TransitiveDependency, TransitiveDependencySchema, type VersionMismatchDivergence, VersionMismatchDivergenceSchema, confidenceForExtracted, confidenceForObservedSignal, configId, databaseId, extractedEdgeId, extractedPrecisionFloor, fileId, frontierId, inferredEdgeId, infraId, observedEdgeId, parseConfigId, parseDatabaseId, parseEdgeId, parseFileId, parseFrontierId, parseInfraId, parseServiceId, passesExtractedFloor, serviceId };
|
|
9199
|
+
export { type BlastRadiusAffectedNode, BlastRadiusAffectedNodeSchema, type BlastRadiusResult, BlastRadiusResultSchema, type BlastRadiusRule, BlastRadiusRuleSchema, type CheckPoliciesScope, CheckPoliciesScopeSchema, type CompatRuleRef, CompatRuleRefSchema, type CompatViolationDivergence, CompatViolationDivergenceSchema, type CompatibilityRule, CompatibilityRuleSchema, type CompatibilityVerdict, CompatibilityVerdictSchema, type CompatibleDriver, CompatibleDriverSchema, type ConfigNode, ConfigNodeSchema, 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 EdgeEvidence, EdgeEvidenceSchema, type EdgeSignal, EdgeSignalSchema, EdgeType, EdgeTypeSchema, type EdgeTypeValue, type ErrorEvent, ErrorEventSchema, type ExtractedConfidenceKind, type FileNode, FileNodeSchema, type FrontierNode, FrontierNodeSchema, type GraphDiffResult, GraphDiffResultSchema, type GraphEdge, GraphEdgeSchema, type GraphEdgesResponse, GraphEdgesResponseSchema, type GraphNode, type GraphNodeResponse, GraphNodeResponseSchema, GraphNodeSchema, type HealthResponse, HealthResponseSchema, type HostMismatchDivergence, HostMismatchDivergenceSchema, type HypotheticalAction, HypotheticalActionSchema, type IncidentsResponse, IncidentsResponseSchema, type InfraNode, InfraNodeSchema, type MCPToolName, MCP_TOOL_NAMES, type MissingExtractedDivergence, MissingExtractedDivergenceSchema, type MissingObservedDivergence, MissingObservedDivergenceSchema, NodeType, NodeTypeSchema, type NodeTypeValue, 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, Provenance, type ProvenanceRule, ProvenanceRuleSchema, ProvenanceSchema, type ProvenanceValue, type RegistryEntry, RegistryEntrySchema, type RegistryFile, RegistryFileSchema, type RegistryStatus, RegistryStatusSchema, type RootCauseResult, RootCauseResultSchema, type SearchMatch, SearchMatchSchema, type SearchResponse, SearchResponseSchema, type SerializedGraph, SerializedGraphSchema, type ServiceNode, ServiceNodeSchema, type SingleProjectResponse, SingleProjectResponseSchema, type SpanAttributes, SpanAttributesSchema, type StaleEvent, StaleEventSchema, type StaleEventsResponse, StaleEventsResponseSchema, type StructuralRule, StructuralRuleSchema, type TransitiveDependenciesResult, TransitiveDependenciesResultSchema, type TransitiveDependency, TransitiveDependencySchema, type VersionMismatchDivergence, VersionMismatchDivergenceSchema, confidenceForExtracted, confidenceForObservedSignal, configId, databaseId, extractedEdgeId, extractedPrecisionFloor, fileId, frontierId, inferredEdgeId, infraId, observedEdgeId, parseConfigId, parseDatabaseId, parseEdgeId, parseFileId, parseFrontierId, parseInfraId, parseServiceId, passesExtractedFloor, serviceId };
|
package/dist/index.js
CHANGED
|
@@ -160,7 +160,12 @@ var FileNodeSchema = z2.object({
|
|
|
160
160
|
service: z2.string(),
|
|
161
161
|
path: z2.string(),
|
|
162
162
|
language: z2.string().optional(),
|
|
163
|
-
discoveredVia: DiscoveredViaSchema.optional()
|
|
163
|
+
discoveredVia: DiscoveredViaSchema.optional(),
|
|
164
|
+
// The raw compiled `dist/...js` frame an OBSERVED call site was captured on,
|
|
165
|
+
// preserved for diagnostic when ingest resolved it through a source map to
|
|
166
|
+
// this original `src/...ts` (file-awareness.md §4 / `code.original_filepath`).
|
|
167
|
+
// Absent when the call site was already source-grained.
|
|
168
|
+
originalPath: z2.string().optional()
|
|
164
169
|
});
|
|
165
170
|
var GraphNodeSchema = z2.discriminatedUnion("type", [
|
|
166
171
|
ServiceNodeSchema,
|
|
@@ -621,6 +626,27 @@ var DivergenceTypeSchema = z8.enum([
|
|
|
621
626
|
"compat-violation"
|
|
622
627
|
]);
|
|
623
628
|
|
|
629
|
+
// src/mcp-tools.ts
|
|
630
|
+
var MCP_TOOL_NAMES = [
|
|
631
|
+
"get_root_cause",
|
|
632
|
+
"get_blast_radius",
|
|
633
|
+
"get_dependencies",
|
|
634
|
+
"get_observed_dependencies",
|
|
635
|
+
"get_incident_history",
|
|
636
|
+
"semantic_search",
|
|
637
|
+
"get_graph_diff",
|
|
638
|
+
"get_recent_stale_edges",
|
|
639
|
+
"check_policies",
|
|
640
|
+
"get_divergences",
|
|
641
|
+
// Six /neat extend tools (ADR-081, ADR-086, #387).
|
|
642
|
+
"neat_list_uninstrumented",
|
|
643
|
+
"neat_lookup_instrumentation",
|
|
644
|
+
"neat_describe_project_instrumentation",
|
|
645
|
+
"neat_apply_extension",
|
|
646
|
+
"neat_dry_run_extension",
|
|
647
|
+
"neat_rollback_extension"
|
|
648
|
+
];
|
|
649
|
+
|
|
624
650
|
// src/responses.ts
|
|
625
651
|
import { z as z9 } from "zod";
|
|
626
652
|
var listEnvelope = (itemSchema) => z9.object({
|
|
@@ -789,6 +815,7 @@ export {
|
|
|
789
815
|
HypotheticalActionSchema,
|
|
790
816
|
IncidentsResponseSchema,
|
|
791
817
|
InfraNodeSchema,
|
|
818
|
+
MCP_TOOL_NAMES,
|
|
792
819
|
MissingExtractedDivergenceSchema,
|
|
793
820
|
MissingObservedDivergenceSchema,
|
|
794
821
|
NodeType,
|