@onlyflows/servicenow-mcp 2.3.0-dev.2 → 2.3.0-rc.1
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/CHANGELOG.md +0 -253
- package/README.md +7 -141
- package/dist/client.d.ts +2 -14
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -40
- package/dist/client.js.map +1 -1
- package/dist/encoded-query-policy.d.ts +0 -9
- package/dist/encoded-query-policy.d.ts.map +1 -1
- package/dist/encoded-query-policy.js +1 -19
- package/dist/encoded-query-policy.js.map +1 -1
- package/dist/http-runtime.js +0 -16
- package/dist/http-runtime.js.map +1 -1
- package/dist/metadata-cache.d.ts +7 -97
- package/dist/metadata-cache.d.ts.map +1 -1
- package/dist/metadata-cache.js +21 -283
- package/dist/metadata-cache.js.map +1 -1
- package/dist/setup-prompts.js +1 -1
- package/dist/setup-prompts.js.map +1 -1
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +1 -10
- package/dist/setup.js.map +1 -1
- package/dist/structured-query.d.ts +2 -61
- package/dist/structured-query.d.ts.map +1 -1
- package/dist/structured-query.js +35 -376
- package/dist/structured-query.js.map +1 -1
- package/dist/tools/codesearch.d.ts.map +1 -1
- package/dist/tools/codesearch.js +4 -24
- package/dist/tools/codesearch.js.map +1 -1
- package/dist/tools/flow-view-module.js +1 -1
- package/dist/tools/flow-view-module.js.map +1 -1
- package/dist/tools/get-module.js +1 -1
- package/dist/tools/get-module.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +11 -24
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/query-module.d.ts.map +1 -1
- package/dist/tools/query-module.js +59 -205
- package/dist/tools/query-module.js.map +1 -1
- package/dist/tools/result-envelope.d.ts +0 -311
- package/dist/tools/result-envelope.d.ts.map +1 -1
- package/dist/tools/result-envelope.js +31 -314
- package/dist/tools/result-envelope.js.map +1 -1
- package/dist/tools/schema-module.d.ts.map +1 -1
- package/dist/tools/schema-module.js +1 -1
- package/dist/tools/schema-module.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/docs/CLIENT-SETUP.md +1 -11
- package/docs/PRODUCTION-SECURITY.md +1 -17
- package/package.json +1 -1
- package/server.json +2 -2
- package/dist/call-metrics.d.ts +0 -42
- package/dist/call-metrics.d.ts.map +0 -1
- package/dist/call-metrics.js +0 -89
- package/dist/call-metrics.js.map +0 -1
- package/dist/tools/truncation-hint.d.ts +0 -125
- package/dist/tools/truncation-hint.d.ts.map +0 -1
- package/dist/tools/truncation-hint.js +0 -298
- package/dist/tools/truncation-hint.js.map +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** Shared SNSDK-33 structured-result contracts and compatibility adapter. */
|
|
2
2
|
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import type { CallMetricsSnapshot } from "../call-metrics.js";
|
|
5
4
|
export declare const DEFAULT_RESULT_RECORD_LIMIT = 1000;
|
|
6
5
|
export declare const DEFAULT_RESULT_BYTE_LIMIT = 100000;
|
|
7
6
|
export declare const ATTACHMENT_RESULT_BYTE_LIMIT: number;
|
|
@@ -19,17 +18,6 @@ export declare const resultPaginationSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
19
18
|
order_by: z.ZodArray<z.ZodString>;
|
|
20
19
|
}, z.core.$strict>]>;
|
|
21
20
|
export declare const resultMetadataSchema: z.ZodObject<{
|
|
22
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
23
|
-
hit: "hit";
|
|
24
|
-
miss: "miss";
|
|
25
|
-
bypass: "bypass";
|
|
26
|
-
mixed: "mixed";
|
|
27
|
-
}>>;
|
|
28
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
29
|
-
total_ms: z.ZodNumber;
|
|
30
|
-
upstream_ms: z.ZodNumber;
|
|
31
|
-
watermark_ms: z.ZodNumber;
|
|
32
|
-
}, z.core.$strict>>;
|
|
33
21
|
kind: z.ZodEnum<{
|
|
34
22
|
collection: "collection";
|
|
35
23
|
operation: "operation";
|
|
@@ -64,17 +52,6 @@ export declare const resultMetadataSchema: z.ZodObject<{
|
|
|
64
52
|
export declare function withStructuredResultEnvelope<TSchema extends z.ZodType>(dataSchema: TSchema): z.ZodObject<Omit<{
|
|
65
53
|
data: TSchema;
|
|
66
54
|
metadata: z.ZodObject<{
|
|
67
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
68
|
-
hit: "hit";
|
|
69
|
-
miss: "miss";
|
|
70
|
-
bypass: "bypass";
|
|
71
|
-
mixed: "mixed";
|
|
72
|
-
}>>;
|
|
73
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
74
|
-
total_ms: z.ZodNumber;
|
|
75
|
-
upstream_ms: z.ZodNumber;
|
|
76
|
-
watermark_ms: z.ZodNumber;
|
|
77
|
-
}, z.core.$strict>>;
|
|
78
55
|
kind: z.ZodEnum<{
|
|
79
56
|
collection: "collection";
|
|
80
57
|
operation: "operation";
|
|
@@ -868,17 +845,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
868
845
|
results: z.ZodArray<z.ZodUnknown>;
|
|
869
846
|
}, z.core.$strict>;
|
|
870
847
|
metadata: z.ZodObject<{
|
|
871
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
872
|
-
hit: "hit";
|
|
873
|
-
miss: "miss";
|
|
874
|
-
bypass: "bypass";
|
|
875
|
-
mixed: "mixed";
|
|
876
|
-
}>>;
|
|
877
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
878
|
-
total_ms: z.ZodNumber;
|
|
879
|
-
upstream_ms: z.ZodNumber;
|
|
880
|
-
watermark_ms: z.ZodNumber;
|
|
881
|
-
}, z.core.$strict>>;
|
|
882
848
|
kind: z.ZodEnum<{
|
|
883
849
|
collection: "collection";
|
|
884
850
|
operation: "operation";
|
|
@@ -921,17 +887,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
921
887
|
hint: z.ZodOptional<z.ZodString>;
|
|
922
888
|
}, z.core.$strict>;
|
|
923
889
|
metadata: z.ZodObject<{
|
|
924
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
925
|
-
hit: "hit";
|
|
926
|
-
miss: "miss";
|
|
927
|
-
bypass: "bypass";
|
|
928
|
-
mixed: "mixed";
|
|
929
|
-
}>>;
|
|
930
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
931
|
-
total_ms: z.ZodNumber;
|
|
932
|
-
upstream_ms: z.ZodNumber;
|
|
933
|
-
watermark_ms: z.ZodNumber;
|
|
934
|
-
}, z.core.$strict>>;
|
|
935
890
|
kind: z.ZodEnum<{
|
|
936
891
|
collection: "collection";
|
|
937
892
|
operation: "operation";
|
|
@@ -976,17 +931,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
976
931
|
record: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
977
932
|
}, z.core.$strict>;
|
|
978
933
|
metadata: z.ZodObject<{
|
|
979
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
980
|
-
hit: "hit";
|
|
981
|
-
miss: "miss";
|
|
982
|
-
bypass: "bypass";
|
|
983
|
-
mixed: "mixed";
|
|
984
|
-
}>>;
|
|
985
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
986
|
-
total_ms: z.ZodNumber;
|
|
987
|
-
upstream_ms: z.ZodNumber;
|
|
988
|
-
watermark_ms: z.ZodNumber;
|
|
989
|
-
}, z.core.$strict>>;
|
|
990
934
|
kind: z.ZodEnum<{
|
|
991
935
|
collection: "collection";
|
|
992
936
|
operation: "operation";
|
|
@@ -1029,17 +973,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1029
973
|
record: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1030
974
|
}, z.core.$strict>;
|
|
1031
975
|
metadata: z.ZodObject<{
|
|
1032
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1033
|
-
hit: "hit";
|
|
1034
|
-
miss: "miss";
|
|
1035
|
-
bypass: "bypass";
|
|
1036
|
-
mixed: "mixed";
|
|
1037
|
-
}>>;
|
|
1038
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1039
|
-
total_ms: z.ZodNumber;
|
|
1040
|
-
upstream_ms: z.ZodNumber;
|
|
1041
|
-
watermark_ms: z.ZodNumber;
|
|
1042
|
-
}, z.core.$strict>>;
|
|
1043
976
|
kind: z.ZodEnum<{
|
|
1044
977
|
collection: "collection";
|
|
1045
978
|
operation: "operation";
|
|
@@ -1086,17 +1019,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1086
1019
|
}>;
|
|
1087
1020
|
}, z.core.$strict>;
|
|
1088
1021
|
metadata: z.ZodObject<{
|
|
1089
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1090
|
-
hit: "hit";
|
|
1091
|
-
miss: "miss";
|
|
1092
|
-
bypass: "bypass";
|
|
1093
|
-
mixed: "mixed";
|
|
1094
|
-
}>>;
|
|
1095
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1096
|
-
total_ms: z.ZodNumber;
|
|
1097
|
-
upstream_ms: z.ZodNumber;
|
|
1098
|
-
watermark_ms: z.ZodNumber;
|
|
1099
|
-
}, z.core.$strict>>;
|
|
1100
1022
|
kind: z.ZodEnum<{
|
|
1101
1023
|
collection: "collection";
|
|
1102
1024
|
operation: "operation";
|
|
@@ -1143,17 +1065,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1143
1065
|
}>;
|
|
1144
1066
|
}, z.core.$strict>;
|
|
1145
1067
|
metadata: z.ZodObject<{
|
|
1146
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1147
|
-
hit: "hit";
|
|
1148
|
-
miss: "miss";
|
|
1149
|
-
bypass: "bypass";
|
|
1150
|
-
mixed: "mixed";
|
|
1151
|
-
}>>;
|
|
1152
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1153
|
-
total_ms: z.ZodNumber;
|
|
1154
|
-
upstream_ms: z.ZodNumber;
|
|
1155
|
-
watermark_ms: z.ZodNumber;
|
|
1156
|
-
}, z.core.$strict>>;
|
|
1157
1068
|
kind: z.ZodEnum<{
|
|
1158
1069
|
collection: "collection";
|
|
1159
1070
|
operation: "operation";
|
|
@@ -1197,17 +1108,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1197
1108
|
table: z.ZodString;
|
|
1198
1109
|
}, z.core.$strict>;
|
|
1199
1110
|
metadata: z.ZodObject<{
|
|
1200
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1201
|
-
hit: "hit";
|
|
1202
|
-
miss: "miss";
|
|
1203
|
-
bypass: "bypass";
|
|
1204
|
-
mixed: "mixed";
|
|
1205
|
-
}>>;
|
|
1206
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1207
|
-
total_ms: z.ZodNumber;
|
|
1208
|
-
upstream_ms: z.ZodNumber;
|
|
1209
|
-
watermark_ms: z.ZodNumber;
|
|
1210
|
-
}, z.core.$strict>>;
|
|
1211
1111
|
kind: z.ZodEnum<{
|
|
1212
1112
|
collection: "collection";
|
|
1213
1113
|
operation: "operation";
|
|
@@ -1264,17 +1164,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1264
1164
|
failed: z.ZodOptional<z.ZodNumber>;
|
|
1265
1165
|
}, z.core.$strict>;
|
|
1266
1166
|
metadata: z.ZodObject<{
|
|
1267
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1268
|
-
hit: "hit";
|
|
1269
|
-
miss: "miss";
|
|
1270
|
-
bypass: "bypass";
|
|
1271
|
-
mixed: "mixed";
|
|
1272
|
-
}>>;
|
|
1273
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1274
|
-
total_ms: z.ZodNumber;
|
|
1275
|
-
upstream_ms: z.ZodNumber;
|
|
1276
|
-
watermark_ms: z.ZodNumber;
|
|
1277
|
-
}, z.core.$strict>>;
|
|
1278
1167
|
kind: z.ZodEnum<{
|
|
1279
1168
|
collection: "collection";
|
|
1280
1169
|
operation: "operation";
|
|
@@ -1316,17 +1205,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1316
1205
|
result: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
|
|
1317
1206
|
}, z.core.$strict>;
|
|
1318
1207
|
metadata: z.ZodObject<{
|
|
1319
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1320
|
-
hit: "hit";
|
|
1321
|
-
miss: "miss";
|
|
1322
|
-
bypass: "bypass";
|
|
1323
|
-
mixed: "mixed";
|
|
1324
|
-
}>>;
|
|
1325
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1326
|
-
total_ms: z.ZodNumber;
|
|
1327
|
-
upstream_ms: z.ZodNumber;
|
|
1328
|
-
watermark_ms: z.ZodNumber;
|
|
1329
|
-
}, z.core.$strict>>;
|
|
1330
1208
|
kind: z.ZodEnum<{
|
|
1331
1209
|
collection: "collection";
|
|
1332
1210
|
operation: "operation";
|
|
@@ -1368,17 +1246,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1368
1246
|
fields: z.ZodArray<z.ZodUnknown>;
|
|
1369
1247
|
}, z.core.$strict>;
|
|
1370
1248
|
metadata: z.ZodObject<{
|
|
1371
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1372
|
-
hit: "hit";
|
|
1373
|
-
miss: "miss";
|
|
1374
|
-
bypass: "bypass";
|
|
1375
|
-
mixed: "mixed";
|
|
1376
|
-
}>>;
|
|
1377
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1378
|
-
total_ms: z.ZodNumber;
|
|
1379
|
-
upstream_ms: z.ZodNumber;
|
|
1380
|
-
watermark_ms: z.ZodNumber;
|
|
1381
|
-
}, z.core.$strict>>;
|
|
1382
1249
|
kind: z.ZodEnum<{
|
|
1383
1250
|
collection: "collection";
|
|
1384
1251
|
operation: "operation";
|
|
@@ -1420,17 +1287,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1420
1287
|
health: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1421
1288
|
}, z.core.$strict>;
|
|
1422
1289
|
metadata: z.ZodObject<{
|
|
1423
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1424
|
-
hit: "hit";
|
|
1425
|
-
miss: "miss";
|
|
1426
|
-
bypass: "bypass";
|
|
1427
|
-
mixed: "mixed";
|
|
1428
|
-
}>>;
|
|
1429
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1430
|
-
total_ms: z.ZodNumber;
|
|
1431
|
-
upstream_ms: z.ZodNumber;
|
|
1432
|
-
watermark_ms: z.ZodNumber;
|
|
1433
|
-
}, z.core.$strict>>;
|
|
1434
1290
|
kind: z.ZodEnum<{
|
|
1435
1291
|
collection: "collection";
|
|
1436
1292
|
operation: "operation";
|
|
@@ -1477,17 +1333,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1477
1333
|
result: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
|
|
1478
1334
|
}, z.core.$strict>;
|
|
1479
1335
|
metadata: z.ZodObject<{
|
|
1480
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1481
|
-
hit: "hit";
|
|
1482
|
-
miss: "miss";
|
|
1483
|
-
bypass: "bypass";
|
|
1484
|
-
mixed: "mixed";
|
|
1485
|
-
}>>;
|
|
1486
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1487
|
-
total_ms: z.ZodNumber;
|
|
1488
|
-
upstream_ms: z.ZodNumber;
|
|
1489
|
-
watermark_ms: z.ZodNumber;
|
|
1490
|
-
}, z.core.$strict>>;
|
|
1491
1336
|
kind: z.ZodEnum<{
|
|
1492
1337
|
collection: "collection";
|
|
1493
1338
|
operation: "operation";
|
|
@@ -1532,17 +1377,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1532
1377
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1533
1378
|
}, z.core.$strict>;
|
|
1534
1379
|
metadata: z.ZodObject<{
|
|
1535
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1536
|
-
hit: "hit";
|
|
1537
|
-
miss: "miss";
|
|
1538
|
-
bypass: "bypass";
|
|
1539
|
-
mixed: "mixed";
|
|
1540
|
-
}>>;
|
|
1541
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1542
|
-
total_ms: z.ZodNumber;
|
|
1543
|
-
upstream_ms: z.ZodNumber;
|
|
1544
|
-
watermark_ms: z.ZodNumber;
|
|
1545
|
-
}, z.core.$strict>>;
|
|
1546
1380
|
kind: z.ZodEnum<{
|
|
1547
1381
|
collection: "collection";
|
|
1548
1382
|
operation: "operation";
|
|
@@ -1591,17 +1425,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1591
1425
|
results: z.ZodArray<z.ZodUnknown>;
|
|
1592
1426
|
}, z.core.$strict>;
|
|
1593
1427
|
metadata: z.ZodObject<{
|
|
1594
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1595
|
-
hit: "hit";
|
|
1596
|
-
miss: "miss";
|
|
1597
|
-
bypass: "bypass";
|
|
1598
|
-
mixed: "mixed";
|
|
1599
|
-
}>>;
|
|
1600
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1601
|
-
total_ms: z.ZodNumber;
|
|
1602
|
-
upstream_ms: z.ZodNumber;
|
|
1603
|
-
watermark_ms: z.ZodNumber;
|
|
1604
|
-
}, z.core.$strict>>;
|
|
1605
1428
|
kind: z.ZodEnum<{
|
|
1606
1429
|
collection: "collection";
|
|
1607
1430
|
operation: "operation";
|
|
@@ -1644,17 +1467,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1644
1467
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1645
1468
|
}, z.core.$strict>;
|
|
1646
1469
|
metadata: z.ZodObject<{
|
|
1647
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1648
|
-
hit: "hit";
|
|
1649
|
-
miss: "miss";
|
|
1650
|
-
bypass: "bypass";
|
|
1651
|
-
mixed: "mixed";
|
|
1652
|
-
}>>;
|
|
1653
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1654
|
-
total_ms: z.ZodNumber;
|
|
1655
|
-
upstream_ms: z.ZodNumber;
|
|
1656
|
-
watermark_ms: z.ZodNumber;
|
|
1657
|
-
}, z.core.$strict>>;
|
|
1658
1470
|
kind: z.ZodEnum<{
|
|
1659
1471
|
collection: "collection";
|
|
1660
1472
|
operation: "operation";
|
|
@@ -1697,17 +1509,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1697
1509
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1698
1510
|
}, z.core.$strict>;
|
|
1699
1511
|
metadata: z.ZodObject<{
|
|
1700
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1701
|
-
hit: "hit";
|
|
1702
|
-
miss: "miss";
|
|
1703
|
-
bypass: "bypass";
|
|
1704
|
-
mixed: "mixed";
|
|
1705
|
-
}>>;
|
|
1706
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1707
|
-
total_ms: z.ZodNumber;
|
|
1708
|
-
upstream_ms: z.ZodNumber;
|
|
1709
|
-
watermark_ms: z.ZodNumber;
|
|
1710
|
-
}, z.core.$strict>>;
|
|
1711
1512
|
kind: z.ZodEnum<{
|
|
1712
1513
|
collection: "collection";
|
|
1713
1514
|
operation: "operation";
|
|
@@ -1756,17 +1557,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1756
1557
|
result: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
|
|
1757
1558
|
}, z.core.$strict>;
|
|
1758
1559
|
metadata: z.ZodObject<{
|
|
1759
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1760
|
-
hit: "hit";
|
|
1761
|
-
miss: "miss";
|
|
1762
|
-
bypass: "bypass";
|
|
1763
|
-
mixed: "mixed";
|
|
1764
|
-
}>>;
|
|
1765
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1766
|
-
total_ms: z.ZodNumber;
|
|
1767
|
-
upstream_ms: z.ZodNumber;
|
|
1768
|
-
watermark_ms: z.ZodNumber;
|
|
1769
|
-
}, z.core.$strict>>;
|
|
1770
1560
|
kind: z.ZodEnum<{
|
|
1771
1561
|
collection: "collection";
|
|
1772
1562
|
operation: "operation";
|
|
@@ -1883,17 +1673,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
1883
1673
|
warnings: z.ZodArray<z.ZodString>;
|
|
1884
1674
|
}, z.core.$strict>;
|
|
1885
1675
|
metadata: z.ZodObject<{
|
|
1886
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
1887
|
-
hit: "hit";
|
|
1888
|
-
miss: "miss";
|
|
1889
|
-
bypass: "bypass";
|
|
1890
|
-
mixed: "mixed";
|
|
1891
|
-
}>>;
|
|
1892
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1893
|
-
total_ms: z.ZodNumber;
|
|
1894
|
-
upstream_ms: z.ZodNumber;
|
|
1895
|
-
watermark_ms: z.ZodNumber;
|
|
1896
|
-
}, z.core.$strict>>;
|
|
1897
1676
|
kind: z.ZodEnum<{
|
|
1898
1677
|
collection: "collection";
|
|
1899
1678
|
operation: "operation";
|
|
@@ -2082,17 +1861,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
2082
1861
|
message: z.ZodOptional<z.ZodString>;
|
|
2083
1862
|
}, z.core.$strict>;
|
|
2084
1863
|
metadata: z.ZodObject<{
|
|
2085
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
2086
|
-
hit: "hit";
|
|
2087
|
-
miss: "miss";
|
|
2088
|
-
bypass: "bypass";
|
|
2089
|
-
mixed: "mixed";
|
|
2090
|
-
}>>;
|
|
2091
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
2092
|
-
total_ms: z.ZodNumber;
|
|
2093
|
-
upstream_ms: z.ZodNumber;
|
|
2094
|
-
watermark_ms: z.ZodNumber;
|
|
2095
|
-
}, z.core.$strict>>;
|
|
2096
1864
|
kind: z.ZodEnum<{
|
|
2097
1865
|
collection: "collection";
|
|
2098
1866
|
operation: "operation";
|
|
@@ -2147,17 +1915,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
2147
1915
|
}, z.core.$strict>>;
|
|
2148
1916
|
}, z.core.$strict>;
|
|
2149
1917
|
metadata: z.ZodObject<{
|
|
2150
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
2151
|
-
hit: "hit";
|
|
2152
|
-
miss: "miss";
|
|
2153
|
-
bypass: "bypass";
|
|
2154
|
-
mixed: "mixed";
|
|
2155
|
-
}>>;
|
|
2156
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
2157
|
-
total_ms: z.ZodNumber;
|
|
2158
|
-
upstream_ms: z.ZodNumber;
|
|
2159
|
-
watermark_ms: z.ZodNumber;
|
|
2160
|
-
}, z.core.$strict>>;
|
|
2161
1918
|
kind: z.ZodEnum<{
|
|
2162
1919
|
collection: "collection";
|
|
2163
1920
|
operation: "operation";
|
|
@@ -2224,17 +1981,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
2224
1981
|
message: z.ZodOptional<z.ZodString>;
|
|
2225
1982
|
}, z.core.$strict>;
|
|
2226
1983
|
metadata: z.ZodObject<{
|
|
2227
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
2228
|
-
hit: "hit";
|
|
2229
|
-
miss: "miss";
|
|
2230
|
-
bypass: "bypass";
|
|
2231
|
-
mixed: "mixed";
|
|
2232
|
-
}>>;
|
|
2233
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
2234
|
-
total_ms: z.ZodNumber;
|
|
2235
|
-
upstream_ms: z.ZodNumber;
|
|
2236
|
-
watermark_ms: z.ZodNumber;
|
|
2237
|
-
}, z.core.$strict>>;
|
|
2238
1984
|
kind: z.ZodEnum<{
|
|
2239
1985
|
collection: "collection";
|
|
2240
1986
|
operation: "operation";
|
|
@@ -2605,17 +2351,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
2605
2351
|
}, z.core.$strict>;
|
|
2606
2352
|
}, z.core.$strict>;
|
|
2607
2353
|
metadata: z.ZodObject<{
|
|
2608
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
2609
|
-
hit: "hit";
|
|
2610
|
-
miss: "miss";
|
|
2611
|
-
bypass: "bypass";
|
|
2612
|
-
mixed: "mixed";
|
|
2613
|
-
}>>;
|
|
2614
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
2615
|
-
total_ms: z.ZodNumber;
|
|
2616
|
-
upstream_ms: z.ZodNumber;
|
|
2617
|
-
watermark_ms: z.ZodNumber;
|
|
2618
|
-
}, z.core.$strict>>;
|
|
2619
2354
|
kind: z.ZodEnum<{
|
|
2620
2355
|
collection: "collection";
|
|
2621
2356
|
operation: "operation";
|
|
@@ -2657,17 +2392,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
2657
2392
|
request: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2658
2393
|
}, z.core.$strict>;
|
|
2659
2394
|
metadata: z.ZodObject<{
|
|
2660
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
2661
|
-
hit: "hit";
|
|
2662
|
-
miss: "miss";
|
|
2663
|
-
bypass: "bypass";
|
|
2664
|
-
mixed: "mixed";
|
|
2665
|
-
}>>;
|
|
2666
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
2667
|
-
total_ms: z.ZodNumber;
|
|
2668
|
-
upstream_ms: z.ZodNumber;
|
|
2669
|
-
watermark_ms: z.ZodNumber;
|
|
2670
|
-
}, z.core.$strict>>;
|
|
2671
2395
|
kind: z.ZodEnum<{
|
|
2672
2396
|
collection: "collection";
|
|
2673
2397
|
operation: "operation";
|
|
@@ -2717,17 +2441,6 @@ export declare const productionToolOutputSchemas: Readonly<{
|
|
|
2717
2441
|
policy_card: z.ZodOptional<z.ZodString>;
|
|
2718
2442
|
}, z.core.$strict>;
|
|
2719
2443
|
metadata: z.ZodObject<{
|
|
2720
|
-
cache: z.ZodOptional<z.ZodEnum<{
|
|
2721
|
-
hit: "hit";
|
|
2722
|
-
miss: "miss";
|
|
2723
|
-
bypass: "bypass";
|
|
2724
|
-
mixed: "mixed";
|
|
2725
|
-
}>>;
|
|
2726
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
2727
|
-
total_ms: z.ZodNumber;
|
|
2728
|
-
upstream_ms: z.ZodNumber;
|
|
2729
|
-
watermark_ms: z.ZodNumber;
|
|
2730
|
-
}, z.core.$strict>>;
|
|
2731
2444
|
kind: z.ZodEnum<{
|
|
2732
2445
|
collection: "collection";
|
|
2733
2446
|
operation: "operation";
|
|
@@ -2785,11 +2498,6 @@ export interface EnvelopeTextRenderContext {
|
|
|
2785
2498
|
/** Trusted coordinator inputs to text rendering; never part of structuredContent. */
|
|
2786
2499
|
export interface EnvelopeTextRenderOptions {
|
|
2787
2500
|
readonly instanceOrigin?: string;
|
|
2788
|
-
/**
|
|
2789
|
-
* The most `max_response_bytes` this call may use when a raw-read rule holds
|
|
2790
|
-
* it below the schema maximum; a truncation hint never offers more.
|
|
2791
|
-
*/
|
|
2792
|
-
readonly maxResponseBytesCap?: number;
|
|
2793
2501
|
}
|
|
2794
2502
|
/**
|
|
2795
2503
|
* Human-readable text for one tool's successful result. It receives a deeply
|
|
@@ -2799,25 +2507,6 @@ export interface EnvelopeTextRenderOptions {
|
|
|
2799
2507
|
export type EnvelopeTextRenderer = (envelope: RenderableEnvelope, context: EnvelopeTextRenderContext) => string;
|
|
2800
2508
|
/** Register the text renderer for one production tool, once, before first use. */
|
|
2801
2509
|
export declare function registerEnvelopeTextRenderer(tool: ProductionToolName, renderer: EnvelopeTextRenderer): void;
|
|
2802
|
-
/**
|
|
2803
|
-
* Remove `metadata.cache` and `metadata.timing` from a handler's result. Only
|
|
2804
|
-
* the dispatcher reports them, from what it observed, so a value a handler
|
|
2805
|
-
* sets is never passed on, whether or not the dispatcher adds its own.
|
|
2806
|
-
*/
|
|
2807
|
-
export declare function withoutCallMetadata(result: CallToolResult): CallToolResult;
|
|
2808
|
-
/**
|
|
2809
|
-
* Add what the call reports about itself to a finished result's envelope
|
|
2810
|
-
* metadata. The two fields are not counted against the result's byte limit.
|
|
2811
|
-
*
|
|
2812
|
-
* They are diagnostics, so they never cost the caller anything: the result is
|
|
2813
|
-
* fitted to its limit first, exactly as before, with the fit, the paging
|
|
2814
|
-
* fields and the truncation hint knowing nothing about them, and the fields
|
|
2815
|
-
* are added after. A successful response therefore carries them always, on the
|
|
2816
|
-
* calls where the timing matters most (a truncated one is often fitted to
|
|
2817
|
-
* within a few bytes of the limit), and may exceed the limit by their size,
|
|
2818
|
-
* under 100 bytes. A result that is not an envelope comes back untouched.
|
|
2819
|
-
*/
|
|
2820
|
-
export declare function withCallMetadata(handlerResult: CallToolResult, snapshot: CallMetricsSnapshot): CallToolResult;
|
|
2821
2510
|
export declare function envelopeCompatibilityResult(name: ProductionToolName, args: Readonly<Record<string, unknown>>, result: CallToolResult): CallToolResult;
|
|
2822
2511
|
/**
|
|
2823
2512
|
* Replace handler text with coordinator-rendered text and enforce the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result-envelope.d.ts","sourceRoot":"","sources":["../../src/tools/result-envelope.ts"],"names":[],"mappings":"AAEA,6EAA6E;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,O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