@nestr/mcp 0.1.73 → 0.1.90

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.
Files changed (45) hide show
  1. package/build/api/client.d.ts +39 -3
  2. package/build/api/client.d.ts.map +1 -1
  3. package/build/api/client.js +57 -5
  4. package/build/api/client.js.map +1 -1
  5. package/build/help/articles.d.ts +146 -0
  6. package/build/help/articles.d.ts.map +1 -0
  7. package/build/help/articles.js +574 -0
  8. package/build/help/articles.js.map +1 -0
  9. package/build/help/cross-links.d.ts +21 -0
  10. package/build/help/cross-links.d.ts.map +1 -0
  11. package/build/help/cross-links.js +61 -0
  12. package/build/help/cross-links.js.map +1 -0
  13. package/build/help/topics.d.ts.map +1 -1
  14. package/build/help/topics.js +315 -15
  15. package/build/help/topics.js.map +1 -1
  16. package/build/http.d.ts +4 -13
  17. package/build/http.d.ts.map +1 -1
  18. package/build/http.js +341 -89
  19. package/build/http.js.map +1 -1
  20. package/build/oauth/client-info.d.ts +58 -0
  21. package/build/oauth/client-info.d.ts.map +1 -0
  22. package/build/oauth/client-info.js +68 -0
  23. package/build/oauth/client-info.js.map +1 -0
  24. package/build/oauth/config.d.ts +19 -0
  25. package/build/oauth/config.d.ts.map +1 -1
  26. package/build/oauth/config.js +12 -0
  27. package/build/oauth/config.js.map +1 -1
  28. package/build/server.d.ts +7 -0
  29. package/build/server.d.ts.map +1 -1
  30. package/build/server.js +23 -4
  31. package/build/server.js.map +1 -1
  32. package/build/skills/tension-processing.d.ts.map +1 -1
  33. package/build/skills/tension-processing.js +11 -1
  34. package/build/skills/tension-processing.js.map +1 -1
  35. package/build/tools/index.d.ts +612 -68
  36. package/build/tools/index.d.ts.map +1 -1
  37. package/build/tools/index.js +592 -63
  38. package/build/tools/index.js.map +1 -1
  39. package/build/tools/validation.d.ts +42 -0
  40. package/build/tools/validation.d.ts.map +1 -0
  41. package/build/tools/validation.js +97 -0
  42. package/build/tools/validation.js.map +1 -0
  43. package/package.json +2 -1
  44. package/web/index.html +25 -0
  45. package/web/styles.css +62 -0
@@ -5,6 +5,13 @@
5
5
  import { z } from "zod";
6
6
  import { type NestrClient } from "../api/client.js";
7
7
  import type { DiagnoseSnapshot } from "../util/diagnose.js";
8
+ export declare const PUBLIC_TOOL_NAMES: ReadonlySet<string>;
9
+ export declare const PUBLIC_GUEST_ME: {
10
+ readonly authMode: "public";
11
+ readonly user: null;
12
+ readonly mode: "guest";
13
+ readonly hint: "Guest mode: product help only. Add AI credit / sign in for workspace tools.";
14
+ };
8
15
  type CompletableSource = "inbox" | "daily-plan" | "children" | "projects" | "search";
9
16
  export declare function completableResponse(data: unknown, source: CompletableSource, title: string): {
10
17
  title: string;
@@ -20,18 +27,47 @@ export declare function compactResponse<T>(data: T[] | {
20
27
  meta?: unknown;
21
28
  data: Partial<T>[];
22
29
  } | T;
30
+ /**
31
+ * Single endpoint object the API returns inside hint.endpoints.
32
+ * `body_example` is intentionally snake_case — it's a passthrough from the API.
33
+ */
34
+ export interface ApiHintEndpoint {
35
+ purpose: string;
36
+ method: string;
37
+ path: string;
38
+ body_example?: Record<string, unknown>;
39
+ }
40
+ /**
41
+ * Per-endpoint MCP-tool guidance produced by translateEndpoint.
42
+ * Field names follow this codebase's camelCase convention (e.g. `toolCall`).
43
+ */
44
+ export interface EnrichedToolCall {
45
+ tool: string;
46
+ purpose: string;
47
+ parametersExample: Record<string, unknown>;
48
+ notes?: string;
49
+ }
50
+ /**
51
+ * Translate one API hint endpoint into an MCP tool-call suggestion.
52
+ * Returns null for routes we don't have a mapping for — never guesses a tool.
53
+ */
54
+ export declare function translateEndpoint(endpoint: ApiHintEndpoint): EnrichedToolCall | null;
23
55
  export declare function enrichHints<T>(data: T): T;
56
+ export declare function addNestUrls<T>(data: T): T;
24
57
  export declare const schemas: {
25
58
  listWorkspaces: z.ZodObject<{
26
59
  search: z.ZodOptional<z.ZodString>;
60
+ sort: z.ZodOptional<z.ZodString>;
27
61
  limit: z.ZodOptional<z.ZodNumber>;
28
62
  page: z.ZodOptional<z.ZodNumber>;
29
63
  }, "strip", z.ZodTypeAny, {
30
64
  search?: string | undefined;
65
+ sort?: string | undefined;
31
66
  limit?: number | undefined;
32
67
  page?: number | undefined;
33
68
  }, {
34
69
  search?: string | undefined;
70
+ sort?: string | undefined;
35
71
  limit?: number | undefined;
36
72
  page?: number | undefined;
37
73
  }>;
@@ -70,18 +106,21 @@ export declare const schemas: {
70
106
  search: z.ZodObject<{
71
107
  workspaceId: z.ZodString;
72
108
  query: z.ZodString;
109
+ sort: z.ZodOptional<z.ZodString>;
73
110
  limit: z.ZodOptional<z.ZodNumber>;
74
111
  page: z.ZodOptional<z.ZodNumber>;
75
112
  _listTitle: z.ZodOptional<z.ZodString>;
76
113
  }, "strip", z.ZodTypeAny, {
77
114
  workspaceId: string;
78
115
  query: string;
116
+ sort?: string | undefined;
79
117
  limit?: number | undefined;
80
118
  page?: number | undefined;
81
119
  _listTitle?: string | undefined;
82
120
  }, {
83
121
  workspaceId: string;
84
122
  query: string;
123
+ sort?: string | undefined;
85
124
  limit?: number | undefined;
86
125
  page?: number | undefined;
87
126
  _listTitle?: string | undefined;
@@ -101,18 +140,21 @@ export declare const schemas: {
101
140
  }>;
102
141
  getNestChildren: z.ZodObject<{
103
142
  nestId: z.ZodString;
143
+ sort: z.ZodOptional<z.ZodString>;
104
144
  limit: z.ZodOptional<z.ZodNumber>;
105
145
  page: z.ZodOptional<z.ZodNumber>;
106
146
  hints: z.ZodOptional<z.ZodBoolean>;
107
147
  _listTitle: z.ZodOptional<z.ZodString>;
108
148
  }, "strip", z.ZodTypeAny, {
109
149
  nestId: string;
150
+ sort?: string | undefined;
110
151
  limit?: number | undefined;
111
152
  page?: number | undefined;
112
153
  hints?: boolean | undefined;
113
154
  _listTitle?: string | undefined;
114
155
  }, {
115
156
  nestId: string;
157
+ sort?: string | undefined;
116
158
  limit?: number | undefined;
117
159
  page?: number | undefined;
118
160
  hints?: boolean | undefined;
@@ -208,22 +250,28 @@ export declare const schemas: {
208
250
  addComment: z.ZodObject<{
209
251
  nestId: z.ZodString;
210
252
  body: z.ZodString;
253
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
211
254
  }, "strip", z.ZodTypeAny, {
212
255
  nestId: string;
213
256
  body: string;
257
+ labels?: string[] | undefined;
214
258
  }, {
215
259
  nestId: string;
216
260
  body: string;
261
+ labels?: string[] | undefined;
217
262
  }>;
218
263
  updateComment: z.ZodObject<{
219
264
  commentId: z.ZodString;
220
265
  body: z.ZodString;
266
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
221
267
  }, "strip", z.ZodTypeAny, {
222
268
  body: string;
223
269
  commentId: string;
270
+ labels?: string[] | undefined;
224
271
  }, {
225
272
  body: string;
226
273
  commentId: string;
274
+ labels?: string[] | undefined;
227
275
  }>;
228
276
  deleteComment: z.ZodObject<{
229
277
  commentId: z.ZodString;
@@ -234,43 +282,52 @@ export declare const schemas: {
234
282
  }>;
235
283
  listCircles: z.ZodObject<{
236
284
  workspaceId: z.ZodString;
285
+ sort: z.ZodOptional<z.ZodString>;
237
286
  limit: z.ZodOptional<z.ZodNumber>;
238
287
  page: z.ZodOptional<z.ZodNumber>;
239
288
  }, "strip", z.ZodTypeAny, {
240
289
  workspaceId: string;
290
+ sort?: string | undefined;
241
291
  limit?: number | undefined;
242
292
  page?: number | undefined;
243
293
  }, {
244
294
  workspaceId: string;
295
+ sort?: string | undefined;
245
296
  limit?: number | undefined;
246
297
  page?: number | undefined;
247
298
  }>;
248
299
  getCircleRoles: z.ZodObject<{
249
300
  workspaceId: z.ZodString;
250
301
  circleId: z.ZodString;
302
+ sort: z.ZodOptional<z.ZodString>;
251
303
  limit: z.ZodOptional<z.ZodNumber>;
252
304
  page: z.ZodOptional<z.ZodNumber>;
253
305
  }, "strip", z.ZodTypeAny, {
254
306
  workspaceId: string;
255
307
  circleId: string;
308
+ sort?: string | undefined;
256
309
  limit?: number | undefined;
257
310
  page?: number | undefined;
258
311
  }, {
259
312
  workspaceId: string;
260
313
  circleId: string;
314
+ sort?: string | undefined;
261
315
  limit?: number | undefined;
262
316
  page?: number | undefined;
263
317
  }>;
264
318
  listRoles: z.ZodObject<{
265
319
  workspaceId: z.ZodString;
320
+ sort: z.ZodOptional<z.ZodString>;
266
321
  limit: z.ZodOptional<z.ZodNumber>;
267
322
  page: z.ZodOptional<z.ZodNumber>;
268
323
  }, "strip", z.ZodTypeAny, {
269
324
  workspaceId: string;
325
+ sort?: string | undefined;
270
326
  limit?: number | undefined;
271
327
  page?: number | undefined;
272
328
  }, {
273
329
  workspaceId: string;
330
+ sort?: string | undefined;
274
331
  limit?: number | undefined;
275
332
  page?: number | undefined;
276
333
  }>;
@@ -337,29 +394,32 @@ export declare const schemas: {
337
394
  }>;
338
395
  getProjects: z.ZodObject<{
339
396
  workspaceId: z.ZodString;
397
+ sort: z.ZodOptional<z.ZodString>;
340
398
  limit: z.ZodOptional<z.ZodNumber>;
341
399
  page: z.ZodOptional<z.ZodNumber>;
342
400
  _listTitle: z.ZodOptional<z.ZodString>;
343
401
  }, "strip", z.ZodTypeAny, {
344
402
  workspaceId: string;
403
+ sort?: string | undefined;
345
404
  limit?: number | undefined;
346
405
  page?: number | undefined;
347
406
  _listTitle?: string | undefined;
348
407
  }, {
349
408
  workspaceId: string;
409
+ sort?: string | undefined;
350
410
  limit?: number | undefined;
351
411
  page?: number | undefined;
352
412
  _listTitle?: string | undefined;
353
413
  }>;
354
414
  getComments: z.ZodObject<{
355
415
  nestId: z.ZodString;
356
- depth: z.ZodOptional<z.ZodNumber>;
416
+ depth: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"all">]>>;
357
417
  }, "strip", z.ZodTypeAny, {
358
418
  nestId: string;
359
- depth?: number | undefined;
419
+ depth?: number | "all" | undefined;
360
420
  }, {
361
421
  nestId: string;
362
- depth?: number | undefined;
422
+ depth?: number | "all" | undefined;
363
423
  }>;
364
424
  getCircle: z.ZodObject<{
365
425
  workspaceId: z.ZodString;
@@ -644,17 +704,23 @@ export declare const schemas: {
644
704
  listTensions: z.ZodObject<{
645
705
  nestId: z.ZodString;
646
706
  search: z.ZodOptional<z.ZodString>;
707
+ sort: z.ZodOptional<z.ZodString>;
647
708
  limit: z.ZodOptional<z.ZodNumber>;
709
+ page: z.ZodOptional<z.ZodNumber>;
648
710
  order: z.ZodOptional<z.ZodString>;
649
711
  }, "strip", z.ZodTypeAny, {
650
712
  nestId: string;
651
713
  search?: string | undefined;
714
+ sort?: string | undefined;
652
715
  limit?: number | undefined;
716
+ page?: number | undefined;
653
717
  order?: string | undefined;
654
718
  }, {
655
719
  nestId: string;
656
720
  search?: string | undefined;
721
+ sort?: string | undefined;
657
722
  limit?: number | undefined;
723
+ page?: number | undefined;
658
724
  order?: string | undefined;
659
725
  }>;
660
726
  updateTension: z.ZodObject<{
@@ -699,7 +765,7 @@ export declare const schemas: {
699
765
  nestId: string;
700
766
  tensionId: string;
701
767
  }>;
702
- addTensionPart: z.ZodObject<{
768
+ addTensionPart: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
703
769
  nestId: z.ZodString;
704
770
  tensionId: z.ZodString;
705
771
  _id: z.ZodOptional<z.ZodString>;
@@ -712,6 +778,8 @@ export declare const schemas: {
712
778
  due: z.ZodOptional<z.ZodString>;
713
779
  accountabilities: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
714
780
  domains: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
781
+ roleId: z.ZodOptional<z.ZodString>;
782
+ removeNest: z.ZodOptional<z.ZodBoolean>;
715
783
  }, "strip", z.ZodTypeAny, {
716
784
  nestId: string;
717
785
  tensionId: string;
@@ -725,6 +793,98 @@ export declare const schemas: {
725
793
  users?: string[] | undefined;
726
794
  accountabilities?: string[] | undefined;
727
795
  domains?: string[] | undefined;
796
+ roleId?: string | undefined;
797
+ removeNest?: boolean | undefined;
798
+ }, {
799
+ nestId: string;
800
+ tensionId: string;
801
+ _id?: string | undefined;
802
+ title?: string | undefined;
803
+ purpose?: string | undefined;
804
+ description?: string | undefined;
805
+ parentId?: string | undefined;
806
+ labels?: unknown;
807
+ due?: string | undefined;
808
+ users?: unknown;
809
+ accountabilities?: unknown;
810
+ domains?: unknown;
811
+ roleId?: string | undefined;
812
+ removeNest?: boolean | undefined;
813
+ }>, {
814
+ nestId: string;
815
+ tensionId: string;
816
+ _id?: string | undefined;
817
+ title?: string | undefined;
818
+ purpose?: string | undefined;
819
+ description?: string | undefined;
820
+ parentId?: string | undefined;
821
+ labels?: string[] | undefined;
822
+ due?: string | undefined;
823
+ users?: string[] | undefined;
824
+ accountabilities?: string[] | undefined;
825
+ domains?: string[] | undefined;
826
+ roleId?: string | undefined;
827
+ removeNest?: boolean | undefined;
828
+ }, {
829
+ nestId: string;
830
+ tensionId: string;
831
+ _id?: string | undefined;
832
+ title?: string | undefined;
833
+ purpose?: string | undefined;
834
+ description?: string | undefined;
835
+ parentId?: string | undefined;
836
+ labels?: unknown;
837
+ due?: string | undefined;
838
+ users?: unknown;
839
+ accountabilities?: unknown;
840
+ domains?: unknown;
841
+ roleId?: string | undefined;
842
+ removeNest?: boolean | undefined;
843
+ }>, {
844
+ nestId: string;
845
+ tensionId: string;
846
+ _id?: string | undefined;
847
+ title?: string | undefined;
848
+ purpose?: string | undefined;
849
+ description?: string | undefined;
850
+ parentId?: string | undefined;
851
+ labels?: string[] | undefined;
852
+ due?: string | undefined;
853
+ users?: string[] | undefined;
854
+ accountabilities?: string[] | undefined;
855
+ domains?: string[] | undefined;
856
+ roleId?: string | undefined;
857
+ removeNest?: boolean | undefined;
858
+ }, {
859
+ nestId: string;
860
+ tensionId: string;
861
+ _id?: string | undefined;
862
+ title?: string | undefined;
863
+ purpose?: string | undefined;
864
+ description?: string | undefined;
865
+ parentId?: string | undefined;
866
+ labels?: unknown;
867
+ due?: string | undefined;
868
+ users?: unknown;
869
+ accountabilities?: unknown;
870
+ domains?: unknown;
871
+ roleId?: string | undefined;
872
+ removeNest?: boolean | undefined;
873
+ }>, {
874
+ nestId: string;
875
+ tensionId: string;
876
+ _id?: string | undefined;
877
+ title?: string | undefined;
878
+ purpose?: string | undefined;
879
+ description?: string | undefined;
880
+ parentId?: string | undefined;
881
+ labels?: string[] | undefined;
882
+ due?: string | undefined;
883
+ users?: string[] | undefined;
884
+ accountabilities?: string[] | undefined;
885
+ domains?: string[] | undefined;
886
+ roleId?: string | undefined;
887
+ removeNest?: boolean | undefined;
728
888
  }, {
729
889
  nestId: string;
730
890
  tensionId: string;
@@ -738,6 +898,8 @@ export declare const schemas: {
738
898
  users?: unknown;
739
899
  accountabilities?: unknown;
740
900
  domains?: unknown;
901
+ roleId?: string | undefined;
902
+ removeNest?: boolean | undefined;
741
903
  }>;
742
904
  modifyTensionPart: z.ZodObject<{
743
905
  nestId: z.ZodString;
@@ -940,12 +1102,36 @@ export declare const schemas: {
940
1102
  relation: string;
941
1103
  targetId: string;
942
1104
  }>;
943
- help: z.ZodObject<{
944
- topic: z.ZodString;
1105
+ help: z.ZodEffects<z.ZodObject<{
1106
+ topic: z.ZodOptional<z.ZodString>;
1107
+ search: z.ZodOptional<z.ZodString>;
1108
+ includeImages: z.ZodOptional<z.ZodBoolean>;
1109
+ imageIndexes: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>, number[] | undefined, unknown>;
1110
+ maxImages: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
945
1111
  }, "strip", z.ZodTypeAny, {
946
- topic: string;
1112
+ search?: string | undefined;
1113
+ topic?: string | undefined;
1114
+ includeImages?: boolean | undefined;
1115
+ imageIndexes?: number[] | undefined;
1116
+ maxImages?: number | undefined;
947
1117
  }, {
948
- topic: string;
1118
+ search?: string | undefined;
1119
+ topic?: string | undefined;
1120
+ includeImages?: boolean | undefined;
1121
+ imageIndexes?: unknown;
1122
+ maxImages?: unknown;
1123
+ }>, {
1124
+ search?: string | undefined;
1125
+ topic?: string | undefined;
1126
+ includeImages?: boolean | undefined;
1127
+ imageIndexes?: number[] | undefined;
1128
+ maxImages?: number | undefined;
1129
+ }, {
1130
+ search?: string | undefined;
1131
+ topic?: string | undefined;
1132
+ includeImages?: boolean | undefined;
1133
+ imageIndexes?: unknown;
1134
+ maxImages?: unknown;
949
1135
  }>;
950
1136
  diagnose: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
951
1137
  };
@@ -963,7 +1149,28 @@ export declare const toolDefinitions: ({
963
1149
  type: string;
964
1150
  description: string;
965
1151
  };
966
- search?: undefined;
1152
+ search: {
1153
+ type: string;
1154
+ description: string;
1155
+ };
1156
+ includeImages: {
1157
+ type: string;
1158
+ description: string;
1159
+ };
1160
+ imageIndexes: {
1161
+ type: string;
1162
+ items: {
1163
+ type: string;
1164
+ minimum: number;
1165
+ };
1166
+ description: string;
1167
+ };
1168
+ maxImages: {
1169
+ type: string;
1170
+ minimum: number;
1171
+ description: string;
1172
+ };
1173
+ sort?: undefined;
967
1174
  limit?: undefined;
968
1175
  page?: undefined;
969
1176
  stripDescription?: undefined;
@@ -1018,8 +1225,9 @@ export declare const toolDefinitions: ({
1018
1225
  feeling?: undefined;
1019
1226
  needs?: undefined;
1020
1227
  tensionId?: undefined;
1021
- order?: undefined;
1022
1228
  _id?: undefined;
1229
+ roleId?: undefined;
1230
+ removeNest?: undefined;
1023
1231
  partId?: undefined;
1024
1232
  childId?: undefined;
1025
1233
  status?: undefined;
@@ -1027,7 +1235,7 @@ export declare const toolDefinitions: ({
1027
1235
  direction?: undefined;
1028
1236
  targetId?: undefined;
1029
1237
  };
1030
- required: string[];
1238
+ required?: undefined;
1031
1239
  };
1032
1240
  } | {
1033
1241
  annotations: {
@@ -1041,6 +1249,10 @@ export declare const toolDefinitions: ({
1041
1249
  properties: {
1042
1250
  topic?: undefined;
1043
1251
  search?: undefined;
1252
+ includeImages?: undefined;
1253
+ imageIndexes?: undefined;
1254
+ maxImages?: undefined;
1255
+ sort?: undefined;
1044
1256
  limit?: undefined;
1045
1257
  page?: undefined;
1046
1258
  stripDescription?: undefined;
@@ -1095,8 +1307,9 @@ export declare const toolDefinitions: ({
1095
1307
  feeling?: undefined;
1096
1308
  needs?: undefined;
1097
1309
  tensionId?: undefined;
1098
- order?: undefined;
1099
1310
  _id?: undefined;
1311
+ roleId?: undefined;
1312
+ removeNest?: undefined;
1100
1313
  partId?: undefined;
1101
1314
  childId?: undefined;
1102
1315
  status?: undefined;
@@ -1120,6 +1333,10 @@ export declare const toolDefinitions: ({
1120
1333
  type: string;
1121
1334
  description: string;
1122
1335
  };
1336
+ sort: {
1337
+ type: string;
1338
+ description: string;
1339
+ };
1123
1340
  limit: {
1124
1341
  type: string;
1125
1342
  description: string;
@@ -1133,6 +1350,9 @@ export declare const toolDefinitions: ({
1133
1350
  description: string;
1134
1351
  };
1135
1352
  topic?: undefined;
1353
+ includeImages?: undefined;
1354
+ imageIndexes?: undefined;
1355
+ maxImages?: undefined;
1136
1356
  workspaceId?: undefined;
1137
1357
  title?: undefined;
1138
1358
  purpose?: undefined;
@@ -1184,8 +1404,9 @@ export declare const toolDefinitions: ({
1184
1404
  feeling?: undefined;
1185
1405
  needs?: undefined;
1186
1406
  tensionId?: undefined;
1187
- order?: undefined;
1188
1407
  _id?: undefined;
1408
+ roleId?: undefined;
1409
+ removeNest?: undefined;
1189
1410
  partId?: undefined;
1190
1411
  childId?: undefined;
1191
1412
  status?: undefined;
@@ -1215,6 +1436,10 @@ export declare const toolDefinitions: ({
1215
1436
  };
1216
1437
  topic?: undefined;
1217
1438
  search?: undefined;
1439
+ includeImages?: undefined;
1440
+ imageIndexes?: undefined;
1441
+ maxImages?: undefined;
1442
+ sort?: undefined;
1218
1443
  limit?: undefined;
1219
1444
  page?: undefined;
1220
1445
  title?: undefined;
@@ -1267,8 +1492,9 @@ export declare const toolDefinitions: ({
1267
1492
  feeling?: undefined;
1268
1493
  needs?: undefined;
1269
1494
  tensionId?: undefined;
1270
- order?: undefined;
1271
1495
  _id?: undefined;
1496
+ roleId?: undefined;
1497
+ removeNest?: undefined;
1272
1498
  partId?: undefined;
1273
1499
  childId?: undefined;
1274
1500
  status?: undefined;
@@ -1326,6 +1552,10 @@ export declare const toolDefinitions: ({
1326
1552
  };
1327
1553
  topic?: undefined;
1328
1554
  search?: undefined;
1555
+ includeImages?: undefined;
1556
+ imageIndexes?: undefined;
1557
+ maxImages?: undefined;
1558
+ sort?: undefined;
1329
1559
  limit?: undefined;
1330
1560
  page?: undefined;
1331
1561
  stripDescription?: undefined;
@@ -1373,8 +1603,9 @@ export declare const toolDefinitions: ({
1373
1603
  feeling?: undefined;
1374
1604
  needs?: undefined;
1375
1605
  tensionId?: undefined;
1376
- order?: undefined;
1377
1606
  _id?: undefined;
1607
+ roleId?: undefined;
1608
+ removeNest?: undefined;
1378
1609
  partId?: undefined;
1379
1610
  childId?: undefined;
1380
1611
  status?: undefined;
@@ -1402,6 +1633,10 @@ export declare const toolDefinitions: ({
1402
1633
  type: string;
1403
1634
  description: string;
1404
1635
  };
1636
+ sort: {
1637
+ type: string;
1638
+ description: string;
1639
+ };
1405
1640
  limit: {
1406
1641
  type: string;
1407
1642
  description: string;
@@ -1420,6 +1655,9 @@ export declare const toolDefinitions: ({
1420
1655
  };
1421
1656
  topic?: undefined;
1422
1657
  search?: undefined;
1658
+ includeImages?: undefined;
1659
+ imageIndexes?: undefined;
1660
+ maxImages?: undefined;
1423
1661
  title?: undefined;
1424
1662
  purpose?: undefined;
1425
1663
  type?: undefined;
@@ -1468,8 +1706,9 @@ export declare const toolDefinitions: ({
1468
1706
  feeling?: undefined;
1469
1707
  needs?: undefined;
1470
1708
  tensionId?: undefined;
1471
- order?: undefined;
1472
1709
  _id?: undefined;
1710
+ roleId?: undefined;
1711
+ removeNest?: undefined;
1473
1712
  partId?: undefined;
1474
1713
  childId?: undefined;
1475
1714
  status?: undefined;
@@ -1507,6 +1746,10 @@ export declare const toolDefinitions: ({
1507
1746
  };
1508
1747
  topic?: undefined;
1509
1748
  search?: undefined;
1749
+ includeImages?: undefined;
1750
+ imageIndexes?: undefined;
1751
+ maxImages?: undefined;
1752
+ sort?: undefined;
1510
1753
  limit?: undefined;
1511
1754
  page?: undefined;
1512
1755
  workspaceId?: undefined;
@@ -1557,8 +1800,9 @@ export declare const toolDefinitions: ({
1557
1800
  feeling?: undefined;
1558
1801
  needs?: undefined;
1559
1802
  tensionId?: undefined;
1560
- order?: undefined;
1561
1803
  _id?: undefined;
1804
+ roleId?: undefined;
1805
+ removeNest?: undefined;
1562
1806
  partId?: undefined;
1563
1807
  childId?: undefined;
1564
1808
  status?: undefined;
@@ -1582,6 +1826,10 @@ export declare const toolDefinitions: ({
1582
1826
  type: string;
1583
1827
  description: string;
1584
1828
  };
1829
+ sort: {
1830
+ type: string;
1831
+ description: string;
1832
+ };
1585
1833
  limit: {
1586
1834
  type: string;
1587
1835
  description: string;
@@ -1604,6 +1852,9 @@ export declare const toolDefinitions: ({
1604
1852
  };
1605
1853
  topic?: undefined;
1606
1854
  search?: undefined;
1855
+ includeImages?: undefined;
1856
+ imageIndexes?: undefined;
1857
+ maxImages?: undefined;
1607
1858
  workspaceId?: undefined;
1608
1859
  title?: undefined;
1609
1860
  purpose?: undefined;
@@ -1652,8 +1903,9 @@ export declare const toolDefinitions: ({
1652
1903
  feeling?: undefined;
1653
1904
  needs?: undefined;
1654
1905
  tensionId?: undefined;
1655
- order?: undefined;
1656
1906
  _id?: undefined;
1907
+ roleId?: undefined;
1908
+ removeNest?: undefined;
1657
1909
  partId?: undefined;
1658
1910
  childId?: undefined;
1659
1911
  status?: undefined;
@@ -1727,6 +1979,10 @@ export declare const toolDefinitions: ({
1727
1979
  };
1728
1980
  topic?: undefined;
1729
1981
  search?: undefined;
1982
+ includeImages?: undefined;
1983
+ imageIndexes?: undefined;
1984
+ maxImages?: undefined;
1985
+ sort?: undefined;
1730
1986
  limit?: undefined;
1731
1987
  page?: undefined;
1732
1988
  stripDescription?: undefined;
@@ -1771,8 +2027,9 @@ export declare const toolDefinitions: ({
1771
2027
  feeling?: undefined;
1772
2028
  needs?: undefined;
1773
2029
  tensionId?: undefined;
1774
- order?: undefined;
1775
2030
  _id?: undefined;
2031
+ roleId?: undefined;
2032
+ removeNest?: undefined;
1776
2033
  partId?: undefined;
1777
2034
  childId?: undefined;
1778
2035
  status?: undefined;
@@ -1862,6 +2119,10 @@ export declare const toolDefinitions: ({
1862
2119
  };
1863
2120
  topic?: undefined;
1864
2121
  search?: undefined;
2122
+ includeImages?: undefined;
2123
+ imageIndexes?: undefined;
2124
+ maxImages?: undefined;
2125
+ sort?: undefined;
1865
2126
  limit?: undefined;
1866
2127
  page?: undefined;
1867
2128
  stripDescription?: undefined;
@@ -1902,8 +2163,9 @@ export declare const toolDefinitions: ({
1902
2163
  feeling?: undefined;
1903
2164
  needs?: undefined;
1904
2165
  tensionId?: undefined;
1905
- order?: undefined;
1906
2166
  _id?: undefined;
2167
+ roleId?: undefined;
2168
+ removeNest?: undefined;
1907
2169
  partId?: undefined;
1908
2170
  childId?: undefined;
1909
2171
  status?: undefined;
@@ -1929,6 +2191,10 @@ export declare const toolDefinitions: ({
1929
2191
  };
1930
2192
  topic?: undefined;
1931
2193
  search?: undefined;
2194
+ includeImages?: undefined;
2195
+ imageIndexes?: undefined;
2196
+ maxImages?: undefined;
2197
+ sort?: undefined;
1932
2198
  limit?: undefined;
1933
2199
  page?: undefined;
1934
2200
  stripDescription?: undefined;
@@ -1982,8 +2248,9 @@ export declare const toolDefinitions: ({
1982
2248
  feeling?: undefined;
1983
2249
  needs?: undefined;
1984
2250
  tensionId?: undefined;
1985
- order?: undefined;
1986
2251
  _id?: undefined;
2252
+ roleId?: undefined;
2253
+ removeNest?: undefined;
1987
2254
  partId?: undefined;
1988
2255
  childId?: undefined;
1989
2256
  status?: undefined;
@@ -2011,8 +2278,19 @@ export declare const toolDefinitions: ({
2011
2278
  type: string;
2012
2279
  description: string;
2013
2280
  };
2281
+ labels: {
2282
+ type: string;
2283
+ items: {
2284
+ type: string;
2285
+ };
2286
+ description: string;
2287
+ };
2014
2288
  topic?: undefined;
2015
2289
  search?: undefined;
2290
+ includeImages?: undefined;
2291
+ imageIndexes?: undefined;
2292
+ maxImages?: undefined;
2293
+ sort?: undefined;
2016
2294
  limit?: undefined;
2017
2295
  page?: undefined;
2018
2296
  stripDescription?: undefined;
@@ -2030,7 +2308,6 @@ export declare const toolDefinitions: ({
2030
2308
  hints?: undefined;
2031
2309
  parentId?: undefined;
2032
2310
  description?: undefined;
2033
- labels?: undefined;
2034
2311
  fields?: undefined;
2035
2312
  users?: undefined;
2036
2313
  accountabilities?: undefined;
@@ -2065,8 +2342,9 @@ export declare const toolDefinitions: ({
2065
2342
  feeling?: undefined;
2066
2343
  needs?: undefined;
2067
2344
  tensionId?: undefined;
2068
- order?: undefined;
2069
2345
  _id?: undefined;
2346
+ roleId?: undefined;
2347
+ removeNest?: undefined;
2070
2348
  partId?: undefined;
2071
2349
  childId?: undefined;
2072
2350
  status?: undefined;
@@ -2094,8 +2372,19 @@ export declare const toolDefinitions: ({
2094
2372
  type: string;
2095
2373
  description: string;
2096
2374
  };
2375
+ labels: {
2376
+ type: string;
2377
+ items: {
2378
+ type: string;
2379
+ };
2380
+ description: string;
2381
+ };
2097
2382
  topic?: undefined;
2098
2383
  search?: undefined;
2384
+ includeImages?: undefined;
2385
+ imageIndexes?: undefined;
2386
+ maxImages?: undefined;
2387
+ sort?: undefined;
2099
2388
  limit?: undefined;
2100
2389
  page?: undefined;
2101
2390
  stripDescription?: undefined;
@@ -2114,7 +2403,6 @@ export declare const toolDefinitions: ({
2114
2403
  hints?: undefined;
2115
2404
  parentId?: undefined;
2116
2405
  description?: undefined;
2117
- labels?: undefined;
2118
2406
  fields?: undefined;
2119
2407
  users?: undefined;
2120
2408
  accountabilities?: undefined;
@@ -2148,8 +2436,9 @@ export declare const toolDefinitions: ({
2148
2436
  feeling?: undefined;
2149
2437
  needs?: undefined;
2150
2438
  tensionId?: undefined;
2151
- order?: undefined;
2152
2439
  _id?: undefined;
2440
+ roleId?: undefined;
2441
+ removeNest?: undefined;
2153
2442
  partId?: undefined;
2154
2443
  childId?: undefined;
2155
2444
  status?: undefined;
@@ -2175,6 +2464,10 @@ export declare const toolDefinitions: ({
2175
2464
  };
2176
2465
  topic?: undefined;
2177
2466
  search?: undefined;
2467
+ includeImages?: undefined;
2468
+ imageIndexes?: undefined;
2469
+ maxImages?: undefined;
2470
+ sort?: undefined;
2178
2471
  limit?: undefined;
2179
2472
  page?: undefined;
2180
2473
  stripDescription?: undefined;
@@ -2228,8 +2521,9 @@ export declare const toolDefinitions: ({
2228
2521
  feeling?: undefined;
2229
2522
  needs?: undefined;
2230
2523
  tensionId?: undefined;
2231
- order?: undefined;
2232
2524
  _id?: undefined;
2525
+ roleId?: undefined;
2526
+ removeNest?: undefined;
2233
2527
  partId?: undefined;
2234
2528
  childId?: undefined;
2235
2529
  status?: undefined;
@@ -2253,6 +2547,10 @@ export declare const toolDefinitions: ({
2253
2547
  type: string;
2254
2548
  description: string;
2255
2549
  };
2550
+ sort: {
2551
+ type: string;
2552
+ description: string;
2553
+ };
2256
2554
  limit: {
2257
2555
  type: string;
2258
2556
  description: string;
@@ -2267,6 +2565,9 @@ export declare const toolDefinitions: ({
2267
2565
  };
2268
2566
  topic?: undefined;
2269
2567
  search?: undefined;
2568
+ includeImages?: undefined;
2569
+ imageIndexes?: undefined;
2570
+ maxImages?: undefined;
2270
2571
  title?: undefined;
2271
2572
  purpose?: undefined;
2272
2573
  type?: undefined;
@@ -2317,8 +2618,9 @@ export declare const toolDefinitions: ({
2317
2618
  feeling?: undefined;
2318
2619
  needs?: undefined;
2319
2620
  tensionId?: undefined;
2320
- order?: undefined;
2321
2621
  _id?: undefined;
2622
+ roleId?: undefined;
2623
+ removeNest?: undefined;
2322
2624
  partId?: undefined;
2323
2625
  childId?: undefined;
2324
2626
  status?: undefined;
@@ -2346,6 +2648,10 @@ export declare const toolDefinitions: ({
2346
2648
  type: string;
2347
2649
  description: string;
2348
2650
  };
2651
+ sort: {
2652
+ type: string;
2653
+ description: string;
2654
+ };
2349
2655
  limit: {
2350
2656
  type: string;
2351
2657
  description: string;
@@ -2360,6 +2666,9 @@ export declare const toolDefinitions: ({
2360
2666
  };
2361
2667
  topic?: undefined;
2362
2668
  search?: undefined;
2669
+ includeImages?: undefined;
2670
+ imageIndexes?: undefined;
2671
+ maxImages?: undefined;
2363
2672
  title?: undefined;
2364
2673
  purpose?: undefined;
2365
2674
  type?: undefined;
@@ -2409,8 +2718,9 @@ export declare const toolDefinitions: ({
2409
2718
  feeling?: undefined;
2410
2719
  needs?: undefined;
2411
2720
  tensionId?: undefined;
2412
- order?: undefined;
2413
2721
  _id?: undefined;
2722
+ roleId?: undefined;
2723
+ removeNest?: undefined;
2414
2724
  partId?: undefined;
2415
2725
  childId?: undefined;
2416
2726
  status?: undefined;
@@ -2452,6 +2762,10 @@ export declare const toolDefinitions: ({
2452
2762
  };
2453
2763
  topic?: undefined;
2454
2764
  search?: undefined;
2765
+ includeImages?: undefined;
2766
+ imageIndexes?: undefined;
2767
+ maxImages?: undefined;
2768
+ sort?: undefined;
2455
2769
  limit?: undefined;
2456
2770
  page?: undefined;
2457
2771
  stripDescription?: undefined;
@@ -2501,8 +2815,9 @@ export declare const toolDefinitions: ({
2501
2815
  feeling?: undefined;
2502
2816
  needs?: undefined;
2503
2817
  tensionId?: undefined;
2504
- order?: undefined;
2505
2818
  _id?: undefined;
2819
+ roleId?: undefined;
2820
+ removeNest?: undefined;
2506
2821
  partId?: undefined;
2507
2822
  childId?: undefined;
2508
2823
  status?: undefined;
@@ -2532,6 +2847,10 @@ export declare const toolDefinitions: ({
2532
2847
  };
2533
2848
  topic?: undefined;
2534
2849
  search?: undefined;
2850
+ includeImages?: undefined;
2851
+ imageIndexes?: undefined;
2852
+ maxImages?: undefined;
2853
+ sort?: undefined;
2535
2854
  limit?: undefined;
2536
2855
  page?: undefined;
2537
2856
  stripDescription?: undefined;
@@ -2584,8 +2903,9 @@ export declare const toolDefinitions: ({
2584
2903
  feeling?: undefined;
2585
2904
  needs?: undefined;
2586
2905
  tensionId?: undefined;
2587
- order?: undefined;
2588
2906
  _id?: undefined;
2907
+ roleId?: undefined;
2908
+ removeNest?: undefined;
2589
2909
  partId?: undefined;
2590
2910
  childId?: undefined;
2591
2911
  status?: undefined;
@@ -2622,6 +2942,10 @@ export declare const toolDefinitions: ({
2622
2942
  description: string;
2623
2943
  };
2624
2944
  topic?: undefined;
2945
+ includeImages?: undefined;
2946
+ imageIndexes?: undefined;
2947
+ maxImages?: undefined;
2948
+ sort?: undefined;
2625
2949
  stripDescription?: undefined;
2626
2950
  title?: undefined;
2627
2951
  purpose?: undefined;
@@ -2673,8 +2997,9 @@ export declare const toolDefinitions: ({
2673
2997
  feeling?: undefined;
2674
2998
  needs?: undefined;
2675
2999
  tensionId?: undefined;
2676
- order?: undefined;
2677
3000
  _id?: undefined;
3001
+ roleId?: undefined;
3002
+ removeNest?: undefined;
2678
3003
  partId?: undefined;
2679
3004
  childId?: undefined;
2680
3005
  status?: undefined;
@@ -2698,6 +3023,10 @@ export declare const toolDefinitions: ({
2698
3023
  type: string;
2699
3024
  description: string;
2700
3025
  };
3026
+ sort: {
3027
+ type: string;
3028
+ description: string;
3029
+ };
2701
3030
  limit: {
2702
3031
  type: string;
2703
3032
  description: string;
@@ -2716,6 +3045,9 @@ export declare const toolDefinitions: ({
2716
3045
  };
2717
3046
  topic?: undefined;
2718
3047
  search?: undefined;
3048
+ includeImages?: undefined;
3049
+ imageIndexes?: undefined;
3050
+ maxImages?: undefined;
2719
3051
  title?: undefined;
2720
3052
  purpose?: undefined;
2721
3053
  type?: undefined;
@@ -2765,8 +3097,9 @@ export declare const toolDefinitions: ({
2765
3097
  feeling?: undefined;
2766
3098
  needs?: undefined;
2767
3099
  tensionId?: undefined;
2768
- order?: undefined;
2769
3100
  _id?: undefined;
3101
+ roleId?: undefined;
3102
+ removeNest?: undefined;
2770
3103
  partId?: undefined;
2771
3104
  childId?: undefined;
2772
3105
  status?: undefined;
@@ -2796,11 +3129,21 @@ export declare const toolDefinitions: ({
2796
3129
  description: string;
2797
3130
  };
2798
3131
  depth: {
2799
- type: string;
3132
+ oneOf: ({
3133
+ type: string;
3134
+ enum?: undefined;
3135
+ } | {
3136
+ type: string;
3137
+ enum: string[];
3138
+ })[];
2800
3139
  description: string;
2801
3140
  };
2802
3141
  topic?: undefined;
2803
3142
  search?: undefined;
3143
+ includeImages?: undefined;
3144
+ imageIndexes?: undefined;
3145
+ maxImages?: undefined;
3146
+ sort?: undefined;
2804
3147
  limit?: undefined;
2805
3148
  page?: undefined;
2806
3149
  stripDescription?: undefined;
@@ -2853,8 +3196,9 @@ export declare const toolDefinitions: ({
2853
3196
  feeling?: undefined;
2854
3197
  needs?: undefined;
2855
3198
  tensionId?: undefined;
2856
- order?: undefined;
2857
3199
  _id?: undefined;
3200
+ roleId?: undefined;
3201
+ removeNest?: undefined;
2858
3202
  partId?: undefined;
2859
3203
  childId?: undefined;
2860
3204
  status?: undefined;
@@ -2888,6 +3232,10 @@ export declare const toolDefinitions: ({
2888
3232
  };
2889
3233
  topic?: undefined;
2890
3234
  search?: undefined;
3235
+ includeImages?: undefined;
3236
+ imageIndexes?: undefined;
3237
+ maxImages?: undefined;
3238
+ sort?: undefined;
2891
3239
  limit?: undefined;
2892
3240
  page?: undefined;
2893
3241
  title?: undefined;
@@ -2939,8 +3287,9 @@ export declare const toolDefinitions: ({
2939
3287
  feeling?: undefined;
2940
3288
  needs?: undefined;
2941
3289
  tensionId?: undefined;
2942
- order?: undefined;
2943
3290
  _id?: undefined;
3291
+ roleId?: undefined;
3292
+ removeNest?: undefined;
2944
3293
  partId?: undefined;
2945
3294
  childId?: undefined;
2946
3295
  status?: undefined;
@@ -2970,6 +3319,10 @@ export declare const toolDefinitions: ({
2970
3319
  };
2971
3320
  topic?: undefined;
2972
3321
  search?: undefined;
3322
+ includeImages?: undefined;
3323
+ imageIndexes?: undefined;
3324
+ maxImages?: undefined;
3325
+ sort?: undefined;
2973
3326
  limit?: undefined;
2974
3327
  page?: undefined;
2975
3328
  stripDescription?: undefined;
@@ -3022,8 +3375,9 @@ export declare const toolDefinitions: ({
3022
3375
  feeling?: undefined;
3023
3376
  needs?: undefined;
3024
3377
  tensionId?: undefined;
3025
- order?: undefined;
3026
3378
  _id?: undefined;
3379
+ roleId?: undefined;
3380
+ removeNest?: undefined;
3027
3381
  partId?: undefined;
3028
3382
  childId?: undefined;
3029
3383
  status?: undefined;
@@ -3061,6 +3415,10 @@ export declare const toolDefinitions: ({
3061
3415
  };
3062
3416
  topic?: undefined;
3063
3417
  search?: undefined;
3418
+ includeImages?: undefined;
3419
+ imageIndexes?: undefined;
3420
+ maxImages?: undefined;
3421
+ sort?: undefined;
3064
3422
  limit?: undefined;
3065
3423
  page?: undefined;
3066
3424
  stripDescription?: undefined;
@@ -3111,8 +3469,9 @@ export declare const toolDefinitions: ({
3111
3469
  feeling?: undefined;
3112
3470
  needs?: undefined;
3113
3471
  tensionId?: undefined;
3114
- order?: undefined;
3115
3472
  _id?: undefined;
3473
+ roleId?: undefined;
3474
+ removeNest?: undefined;
3116
3475
  partId?: undefined;
3117
3476
  childId?: undefined;
3118
3477
  status?: undefined;
@@ -3142,6 +3501,10 @@ export declare const toolDefinitions: ({
3142
3501
  };
3143
3502
  topic?: undefined;
3144
3503
  search?: undefined;
3504
+ includeImages?: undefined;
3505
+ imageIndexes?: undefined;
3506
+ maxImages?: undefined;
3507
+ sort?: undefined;
3145
3508
  limit?: undefined;
3146
3509
  page?: undefined;
3147
3510
  stripDescription?: undefined;
@@ -3194,8 +3557,9 @@ export declare const toolDefinitions: ({
3194
3557
  feeling?: undefined;
3195
3558
  needs?: undefined;
3196
3559
  tensionId?: undefined;
3197
- order?: undefined;
3198
3560
  _id?: undefined;
3561
+ roleId?: undefined;
3562
+ removeNest?: undefined;
3199
3563
  partId?: undefined;
3200
3564
  childId?: undefined;
3201
3565
  status?: undefined;
@@ -3237,6 +3601,10 @@ export declare const toolDefinitions: ({
3237
3601
  };
3238
3602
  topic?: undefined;
3239
3603
  search?: undefined;
3604
+ includeImages?: undefined;
3605
+ imageIndexes?: undefined;
3606
+ maxImages?: undefined;
3607
+ sort?: undefined;
3240
3608
  page?: undefined;
3241
3609
  stripDescription?: undefined;
3242
3610
  title?: undefined;
@@ -3286,8 +3654,9 @@ export declare const toolDefinitions: ({
3286
3654
  feeling?: undefined;
3287
3655
  needs?: undefined;
3288
3656
  tensionId?: undefined;
3289
- order?: undefined;
3290
3657
  _id?: undefined;
3658
+ roleId?: undefined;
3659
+ removeNest?: undefined;
3291
3660
  partId?: undefined;
3292
3661
  childId?: undefined;
3293
3662
  status?: undefined;
@@ -3313,6 +3682,10 @@ export declare const toolDefinitions: ({
3313
3682
  };
3314
3683
  topic?: undefined;
3315
3684
  search?: undefined;
3685
+ includeImages?: undefined;
3686
+ imageIndexes?: undefined;
3687
+ maxImages?: undefined;
3688
+ sort?: undefined;
3316
3689
  limit?: undefined;
3317
3690
  page?: undefined;
3318
3691
  stripDescription?: undefined;
@@ -3366,8 +3739,9 @@ export declare const toolDefinitions: ({
3366
3739
  feeling?: undefined;
3367
3740
  needs?: undefined;
3368
3741
  tensionId?: undefined;
3369
- order?: undefined;
3370
3742
  _id?: undefined;
3743
+ roleId?: undefined;
3744
+ removeNest?: undefined;
3371
3745
  partId?: undefined;
3372
3746
  childId?: undefined;
3373
3747
  status?: undefined;
@@ -3397,6 +3771,10 @@ export declare const toolDefinitions: ({
3397
3771
  };
3398
3772
  topic?: undefined;
3399
3773
  search?: undefined;
3774
+ includeImages?: undefined;
3775
+ imageIndexes?: undefined;
3776
+ maxImages?: undefined;
3777
+ sort?: undefined;
3400
3778
  limit?: undefined;
3401
3779
  page?: undefined;
3402
3780
  workspaceId?: undefined;
@@ -3449,8 +3827,9 @@ export declare const toolDefinitions: ({
3449
3827
  feeling?: undefined;
3450
3828
  needs?: undefined;
3451
3829
  tensionId?: undefined;
3452
- order?: undefined;
3453
3830
  _id?: undefined;
3831
+ roleId?: undefined;
3832
+ removeNest?: undefined;
3454
3833
  partId?: undefined;
3455
3834
  childId?: undefined;
3456
3835
  status?: undefined;
@@ -3485,6 +3864,10 @@ export declare const toolDefinitions: ({
3485
3864
  };
3486
3865
  topic?: undefined;
3487
3866
  search?: undefined;
3867
+ includeImages?: undefined;
3868
+ imageIndexes?: undefined;
3869
+ maxImages?: undefined;
3870
+ sort?: undefined;
3488
3871
  limit?: undefined;
3489
3872
  page?: undefined;
3490
3873
  stripDescription?: undefined;
@@ -3537,8 +3920,9 @@ export declare const toolDefinitions: ({
3537
3920
  feeling?: undefined;
3538
3921
  needs?: undefined;
3539
3922
  tensionId?: undefined;
3540
- order?: undefined;
3541
3923
  _id?: undefined;
3924
+ roleId?: undefined;
3925
+ removeNest?: undefined;
3542
3926
  partId?: undefined;
3543
3927
  childId?: undefined;
3544
3928
  status?: undefined;
@@ -3568,6 +3952,10 @@ export declare const toolDefinitions: ({
3568
3952
  };
3569
3953
  topic?: undefined;
3570
3954
  search?: undefined;
3955
+ includeImages?: undefined;
3956
+ imageIndexes?: undefined;
3957
+ maxImages?: undefined;
3958
+ sort?: undefined;
3571
3959
  limit?: undefined;
3572
3960
  page?: undefined;
3573
3961
  workspaceId?: undefined;
@@ -3620,8 +4008,9 @@ export declare const toolDefinitions: ({
3620
4008
  feeling?: undefined;
3621
4009
  needs?: undefined;
3622
4010
  tensionId?: undefined;
3623
- order?: undefined;
3624
4011
  _id?: undefined;
4012
+ roleId?: undefined;
4013
+ removeNest?: undefined;
3625
4014
  partId?: undefined;
3626
4015
  childId?: undefined;
3627
4016
  status?: undefined;
@@ -3663,6 +4052,10 @@ export declare const toolDefinitions: ({
3663
4052
  };
3664
4053
  topic?: undefined;
3665
4054
  search?: undefined;
4055
+ includeImages?: undefined;
4056
+ imageIndexes?: undefined;
4057
+ maxImages?: undefined;
4058
+ sort?: undefined;
3666
4059
  limit?: undefined;
3667
4060
  page?: undefined;
3668
4061
  stripDescription?: undefined;
@@ -3712,8 +4105,9 @@ export declare const toolDefinitions: ({
3712
4105
  feeling?: undefined;
3713
4106
  needs?: undefined;
3714
4107
  tensionId?: undefined;
3715
- order?: undefined;
3716
4108
  _id?: undefined;
4109
+ roleId?: undefined;
4110
+ removeNest?: undefined;
3717
4111
  partId?: undefined;
3718
4112
  childId?: undefined;
3719
4113
  status?: undefined;
@@ -3742,6 +4136,10 @@ export declare const toolDefinitions: ({
3742
4136
  };
3743
4137
  topic?: undefined;
3744
4138
  search?: undefined;
4139
+ includeImages?: undefined;
4140
+ imageIndexes?: undefined;
4141
+ maxImages?: undefined;
4142
+ sort?: undefined;
3745
4143
  limit?: undefined;
3746
4144
  page?: undefined;
3747
4145
  stripDescription?: undefined;
@@ -3795,8 +4193,9 @@ export declare const toolDefinitions: ({
3795
4193
  feeling?: undefined;
3796
4194
  needs?: undefined;
3797
4195
  tensionId?: undefined;
3798
- order?: undefined;
3799
4196
  _id?: undefined;
4197
+ roleId?: undefined;
4198
+ removeNest?: undefined;
3800
4199
  partId?: undefined;
3801
4200
  childId?: undefined;
3802
4201
  status?: undefined;
@@ -3831,6 +4230,10 @@ export declare const toolDefinitions: ({
3831
4230
  };
3832
4231
  topic?: undefined;
3833
4232
  search?: undefined;
4233
+ includeImages?: undefined;
4234
+ imageIndexes?: undefined;
4235
+ maxImages?: undefined;
4236
+ sort?: undefined;
3834
4237
  limit?: undefined;
3835
4238
  page?: undefined;
3836
4239
  stripDescription?: undefined;
@@ -3882,8 +4285,9 @@ export declare const toolDefinitions: ({
3882
4285
  feeling?: undefined;
3883
4286
  needs?: undefined;
3884
4287
  tensionId?: undefined;
3885
- order?: undefined;
3886
4288
  _id?: undefined;
4289
+ roleId?: undefined;
4290
+ removeNest?: undefined;
3887
4291
  partId?: undefined;
3888
4292
  childId?: undefined;
3889
4293
  status?: undefined;
@@ -3921,6 +4325,10 @@ export declare const toolDefinitions: ({
3921
4325
  };
3922
4326
  topic?: undefined;
3923
4327
  search?: undefined;
4328
+ includeImages?: undefined;
4329
+ imageIndexes?: undefined;
4330
+ maxImages?: undefined;
4331
+ sort?: undefined;
3924
4332
  limit?: undefined;
3925
4333
  page?: undefined;
3926
4334
  stripDescription?: undefined;
@@ -3971,8 +4379,9 @@ export declare const toolDefinitions: ({
3971
4379
  feeling?: undefined;
3972
4380
  needs?: undefined;
3973
4381
  tensionId?: undefined;
3974
- order?: undefined;
3975
4382
  _id?: undefined;
4383
+ roleId?: undefined;
4384
+ removeNest?: undefined;
3976
4385
  partId?: undefined;
3977
4386
  childId?: undefined;
3978
4387
  status?: undefined;
@@ -4005,6 +4414,10 @@ export declare const toolDefinitions: ({
4005
4414
  };
4006
4415
  topic?: undefined;
4007
4416
  search?: undefined;
4417
+ includeImages?: undefined;
4418
+ imageIndexes?: undefined;
4419
+ maxImages?: undefined;
4420
+ sort?: undefined;
4008
4421
  limit?: undefined;
4009
4422
  page?: undefined;
4010
4423
  stripDescription?: undefined;
@@ -4057,8 +4470,9 @@ export declare const toolDefinitions: ({
4057
4470
  feeling?: undefined;
4058
4471
  needs?: undefined;
4059
4472
  tensionId?: undefined;
4060
- order?: undefined;
4061
4473
  _id?: undefined;
4474
+ roleId?: undefined;
4475
+ removeNest?: undefined;
4062
4476
  partId?: undefined;
4063
4477
  childId?: undefined;
4064
4478
  status?: undefined;
@@ -4084,6 +4498,10 @@ export declare const toolDefinitions: ({
4084
4498
  };
4085
4499
  topic?: undefined;
4086
4500
  search?: undefined;
4501
+ includeImages?: undefined;
4502
+ imageIndexes?: undefined;
4503
+ maxImages?: undefined;
4504
+ sort?: undefined;
4087
4505
  limit?: undefined;
4088
4506
  page?: undefined;
4089
4507
  workspaceId?: undefined;
@@ -4137,8 +4555,9 @@ export declare const toolDefinitions: ({
4137
4555
  feeling?: undefined;
4138
4556
  needs?: undefined;
4139
4557
  tensionId?: undefined;
4140
- order?: undefined;
4141
4558
  _id?: undefined;
4559
+ roleId?: undefined;
4560
+ removeNest?: undefined;
4142
4561
  partId?: undefined;
4143
4562
  childId?: undefined;
4144
4563
  status?: undefined;
@@ -4173,6 +4592,10 @@ export declare const toolDefinitions: ({
4173
4592
  };
4174
4593
  topic?: undefined;
4175
4594
  search?: undefined;
4595
+ includeImages?: undefined;
4596
+ imageIndexes?: undefined;
4597
+ maxImages?: undefined;
4598
+ sort?: undefined;
4176
4599
  limit?: undefined;
4177
4600
  page?: undefined;
4178
4601
  stripDescription?: undefined;
@@ -4225,8 +4648,9 @@ export declare const toolDefinitions: ({
4225
4648
  feeling?: undefined;
4226
4649
  needs?: undefined;
4227
4650
  tensionId?: undefined;
4228
- order?: undefined;
4229
4651
  _id?: undefined;
4652
+ roleId?: undefined;
4653
+ removeNest?: undefined;
4230
4654
  partId?: undefined;
4231
4655
  childId?: undefined;
4232
4656
  status?: undefined;
@@ -4252,6 +4676,10 @@ export declare const toolDefinitions: ({
4252
4676
  };
4253
4677
  topic?: undefined;
4254
4678
  search?: undefined;
4679
+ includeImages?: undefined;
4680
+ imageIndexes?: undefined;
4681
+ maxImages?: undefined;
4682
+ sort?: undefined;
4255
4683
  limit?: undefined;
4256
4684
  page?: undefined;
4257
4685
  stripDescription?: undefined;
@@ -4305,8 +4733,9 @@ export declare const toolDefinitions: ({
4305
4733
  feeling?: undefined;
4306
4734
  needs?: undefined;
4307
4735
  tensionId?: undefined;
4308
- order?: undefined;
4309
4736
  _id?: undefined;
4737
+ roleId?: undefined;
4738
+ removeNest?: undefined;
4310
4739
  partId?: undefined;
4311
4740
  childId?: undefined;
4312
4741
  status?: undefined;
@@ -4332,6 +4761,10 @@ export declare const toolDefinitions: ({
4332
4761
  };
4333
4762
  topic?: undefined;
4334
4763
  search?: undefined;
4764
+ includeImages?: undefined;
4765
+ imageIndexes?: undefined;
4766
+ maxImages?: undefined;
4767
+ sort?: undefined;
4335
4768
  limit?: undefined;
4336
4769
  page?: undefined;
4337
4770
  stripDescription?: undefined;
@@ -4385,8 +4818,9 @@ export declare const toolDefinitions: ({
4385
4818
  feeling?: undefined;
4386
4819
  needs?: undefined;
4387
4820
  tensionId?: undefined;
4388
- order?: undefined;
4389
4821
  _id?: undefined;
4822
+ roleId?: undefined;
4823
+ removeNest?: undefined;
4390
4824
  partId?: undefined;
4391
4825
  childId?: undefined;
4392
4826
  status?: undefined;
@@ -4429,6 +4863,10 @@ export declare const toolDefinitions: ({
4429
4863
  };
4430
4864
  topic?: undefined;
4431
4865
  search?: undefined;
4866
+ includeImages?: undefined;
4867
+ imageIndexes?: undefined;
4868
+ maxImages?: undefined;
4869
+ sort?: undefined;
4432
4870
  page?: undefined;
4433
4871
  stripDescription?: undefined;
4434
4872
  workspaceId?: undefined;
@@ -4478,8 +4916,9 @@ export declare const toolDefinitions: ({
4478
4916
  feeling?: undefined;
4479
4917
  needs?: undefined;
4480
4918
  tensionId?: undefined;
4481
- order?: undefined;
4482
4919
  _id?: undefined;
4920
+ roleId?: undefined;
4921
+ removeNest?: undefined;
4483
4922
  partId?: undefined;
4484
4923
  childId?: undefined;
4485
4924
  status?: undefined;
@@ -4521,6 +4960,10 @@ export declare const toolDefinitions: ({
4521
4960
  };
4522
4961
  topic?: undefined;
4523
4962
  search?: undefined;
4963
+ includeImages?: undefined;
4964
+ imageIndexes?: undefined;
4965
+ maxImages?: undefined;
4966
+ sort?: undefined;
4524
4967
  limit?: undefined;
4525
4968
  page?: undefined;
4526
4969
  stripDescription?: undefined;
@@ -4570,8 +5013,9 @@ export declare const toolDefinitions: ({
4570
5013
  showRead?: undefined;
4571
5014
  group?: undefined;
4572
5015
  tensionId?: undefined;
4573
- order?: undefined;
4574
5016
  _id?: undefined;
5017
+ roleId?: undefined;
5018
+ removeNest?: undefined;
4575
5019
  partId?: undefined;
4576
5020
  childId?: undefined;
4577
5021
  status?: undefined;
@@ -4601,6 +5045,10 @@ export declare const toolDefinitions: ({
4601
5045
  };
4602
5046
  topic?: undefined;
4603
5047
  search?: undefined;
5048
+ includeImages?: undefined;
5049
+ imageIndexes?: undefined;
5050
+ maxImages?: undefined;
5051
+ sort?: undefined;
4604
5052
  limit?: undefined;
4605
5053
  page?: undefined;
4606
5054
  stripDescription?: undefined;
@@ -4653,8 +5101,9 @@ export declare const toolDefinitions: ({
4653
5101
  group?: undefined;
4654
5102
  feeling?: undefined;
4655
5103
  needs?: undefined;
4656
- order?: undefined;
4657
5104
  _id?: undefined;
5105
+ roleId?: undefined;
5106
+ removeNest?: undefined;
4658
5107
  partId?: undefined;
4659
5108
  childId?: undefined;
4660
5109
  status?: undefined;
@@ -4682,16 +5131,22 @@ export declare const toolDefinitions: ({
4682
5131
  type: string;
4683
5132
  description: string;
4684
5133
  };
5134
+ sort: {
5135
+ type: string;
5136
+ description: string;
5137
+ };
4685
5138
  limit: {
4686
5139
  type: string;
4687
5140
  description: string;
4688
5141
  };
4689
- order: {
5142
+ page: {
4690
5143
  type: string;
4691
5144
  description: string;
4692
5145
  };
4693
5146
  topic?: undefined;
4694
- page?: undefined;
5147
+ includeImages?: undefined;
5148
+ imageIndexes?: undefined;
5149
+ maxImages?: undefined;
4695
5150
  stripDescription?: undefined;
4696
5151
  workspaceId?: undefined;
4697
5152
  title?: undefined;
@@ -4744,6 +5199,8 @@ export declare const toolDefinitions: ({
4744
5199
  needs?: undefined;
4745
5200
  tensionId?: undefined;
4746
5201
  _id?: undefined;
5202
+ roleId?: undefined;
5203
+ removeNest?: undefined;
4747
5204
  partId?: undefined;
4748
5205
  childId?: undefined;
4749
5206
  status?: undefined;
@@ -4789,6 +5246,10 @@ export declare const toolDefinitions: ({
4789
5246
  };
4790
5247
  topic?: undefined;
4791
5248
  search?: undefined;
5249
+ includeImages?: undefined;
5250
+ imageIndexes?: undefined;
5251
+ maxImages?: undefined;
5252
+ sort?: undefined;
4792
5253
  limit?: undefined;
4793
5254
  page?: undefined;
4794
5255
  stripDescription?: undefined;
@@ -4837,8 +5298,9 @@ export declare const toolDefinitions: ({
4837
5298
  skip?: undefined;
4838
5299
  showRead?: undefined;
4839
5300
  group?: undefined;
4840
- order?: undefined;
4841
5301
  _id?: undefined;
5302
+ roleId?: undefined;
5303
+ removeNest?: undefined;
4842
5304
  partId?: undefined;
4843
5305
  childId?: undefined;
4844
5306
  status?: undefined;
@@ -4918,8 +5380,20 @@ export declare const toolDefinitions: ({
4918
5380
  };
4919
5381
  description: string;
4920
5382
  };
5383
+ roleId: {
5384
+ type: string;
5385
+ description: string;
5386
+ };
5387
+ removeNest: {
5388
+ type: string;
5389
+ description: string;
5390
+ };
4921
5391
  topic?: undefined;
4922
5392
  search?: undefined;
5393
+ includeImages?: undefined;
5394
+ imageIndexes?: undefined;
5395
+ maxImages?: undefined;
5396
+ sort?: undefined;
4923
5397
  limit?: undefined;
4924
5398
  page?: undefined;
4925
5399
  stripDescription?: undefined;
@@ -4963,7 +5437,6 @@ export declare const toolDefinitions: ({
4963
5437
  group?: undefined;
4964
5438
  feeling?: undefined;
4965
5439
  needs?: undefined;
4966
- order?: undefined;
4967
5440
  partId?: undefined;
4968
5441
  childId?: undefined;
4969
5442
  status?: undefined;
@@ -5045,6 +5518,10 @@ export declare const toolDefinitions: ({
5045
5518
  };
5046
5519
  topic?: undefined;
5047
5520
  search?: undefined;
5521
+ includeImages?: undefined;
5522
+ imageIndexes?: undefined;
5523
+ maxImages?: undefined;
5524
+ sort?: undefined;
5048
5525
  limit?: undefined;
5049
5526
  page?: undefined;
5050
5527
  stripDescription?: undefined;
@@ -5088,8 +5565,9 @@ export declare const toolDefinitions: ({
5088
5565
  group?: undefined;
5089
5566
  feeling?: undefined;
5090
5567
  needs?: undefined;
5091
- order?: undefined;
5092
5568
  _id?: undefined;
5569
+ roleId?: undefined;
5570
+ removeNest?: undefined;
5093
5571
  childId?: undefined;
5094
5572
  status?: undefined;
5095
5573
  relation?: undefined;
@@ -5122,6 +5600,10 @@ export declare const toolDefinitions: ({
5122
5600
  };
5123
5601
  topic?: undefined;
5124
5602
  search?: undefined;
5603
+ includeImages?: undefined;
5604
+ imageIndexes?: undefined;
5605
+ maxImages?: undefined;
5606
+ sort?: undefined;
5125
5607
  limit?: undefined;
5126
5608
  page?: undefined;
5127
5609
  stripDescription?: undefined;
@@ -5174,8 +5656,9 @@ export declare const toolDefinitions: ({
5174
5656
  group?: undefined;
5175
5657
  feeling?: undefined;
5176
5658
  needs?: undefined;
5177
- order?: undefined;
5178
5659
  _id?: undefined;
5660
+ roleId?: undefined;
5661
+ removeNest?: undefined;
5179
5662
  childId?: undefined;
5180
5663
  status?: undefined;
5181
5664
  relation?: undefined;
@@ -5204,6 +5687,10 @@ export declare const toolDefinitions: ({
5204
5687
  };
5205
5688
  topic?: undefined;
5206
5689
  search?: undefined;
5690
+ includeImages?: undefined;
5691
+ imageIndexes?: undefined;
5692
+ maxImages?: undefined;
5693
+ sort?: undefined;
5207
5694
  limit?: undefined;
5208
5695
  page?: undefined;
5209
5696
  stripDescription?: undefined;
@@ -5256,8 +5743,9 @@ export declare const toolDefinitions: ({
5256
5743
  group?: undefined;
5257
5744
  feeling?: undefined;
5258
5745
  needs?: undefined;
5259
- order?: undefined;
5260
5746
  _id?: undefined;
5747
+ roleId?: undefined;
5748
+ removeNest?: undefined;
5261
5749
  childId?: undefined;
5262
5750
  status?: undefined;
5263
5751
  relation?: undefined;
@@ -5297,6 +5785,10 @@ export declare const toolDefinitions: ({
5297
5785
  };
5298
5786
  topic?: undefined;
5299
5787
  search?: undefined;
5788
+ includeImages?: undefined;
5789
+ imageIndexes?: undefined;
5790
+ maxImages?: undefined;
5791
+ sort?: undefined;
5300
5792
  limit?: undefined;
5301
5793
  page?: undefined;
5302
5794
  stripDescription?: undefined;
@@ -5347,8 +5839,9 @@ export declare const toolDefinitions: ({
5347
5839
  group?: undefined;
5348
5840
  feeling?: undefined;
5349
5841
  needs?: undefined;
5350
- order?: undefined;
5351
5842
  _id?: undefined;
5843
+ roleId?: undefined;
5844
+ removeNest?: undefined;
5352
5845
  childId?: undefined;
5353
5846
  status?: undefined;
5354
5847
  relation?: undefined;
@@ -5385,6 +5878,10 @@ export declare const toolDefinitions: ({
5385
5878
  };
5386
5879
  topic?: undefined;
5387
5880
  search?: undefined;
5881
+ includeImages?: undefined;
5882
+ imageIndexes?: undefined;
5883
+ maxImages?: undefined;
5884
+ sort?: undefined;
5388
5885
  limit?: undefined;
5389
5886
  page?: undefined;
5390
5887
  stripDescription?: undefined;
@@ -5436,8 +5933,9 @@ export declare const toolDefinitions: ({
5436
5933
  group?: undefined;
5437
5934
  feeling?: undefined;
5438
5935
  needs?: undefined;
5439
- order?: undefined;
5440
5936
  _id?: undefined;
5937
+ roleId?: undefined;
5938
+ removeNest?: undefined;
5441
5939
  status?: undefined;
5442
5940
  relation?: undefined;
5443
5941
  direction?: undefined;
@@ -5469,6 +5967,10 @@ export declare const toolDefinitions: ({
5469
5967
  };
5470
5968
  topic?: undefined;
5471
5969
  search?: undefined;
5970
+ includeImages?: undefined;
5971
+ imageIndexes?: undefined;
5972
+ maxImages?: undefined;
5973
+ sort?: undefined;
5472
5974
  limit?: undefined;
5473
5975
  page?: undefined;
5474
5976
  stripDescription?: undefined;
@@ -5521,8 +6023,9 @@ export declare const toolDefinitions: ({
5521
6023
  group?: undefined;
5522
6024
  feeling?: undefined;
5523
6025
  needs?: undefined;
5524
- order?: undefined;
5525
6026
  _id?: undefined;
6027
+ roleId?: undefined;
6028
+ removeNest?: undefined;
5526
6029
  status?: undefined;
5527
6030
  relation?: undefined;
5528
6031
  direction?: undefined;
@@ -5555,6 +6058,10 @@ export declare const toolDefinitions: ({
5555
6058
  };
5556
6059
  topic?: undefined;
5557
6060
  search?: undefined;
6061
+ includeImages?: undefined;
6062
+ imageIndexes?: undefined;
6063
+ maxImages?: undefined;
6064
+ sort?: undefined;
5558
6065
  limit?: undefined;
5559
6066
  page?: undefined;
5560
6067
  stripDescription?: undefined;
@@ -5607,8 +6114,9 @@ export declare const toolDefinitions: ({
5607
6114
  group?: undefined;
5608
6115
  feeling?: undefined;
5609
6116
  needs?: undefined;
5610
- order?: undefined;
5611
6117
  _id?: undefined;
6118
+ roleId?: undefined;
6119
+ removeNest?: undefined;
5612
6120
  partId?: undefined;
5613
6121
  childId?: undefined;
5614
6122
  relation?: undefined;
@@ -5650,6 +6158,10 @@ export declare const toolDefinitions: ({
5650
6158
  };
5651
6159
  topic?: undefined;
5652
6160
  search?: undefined;
6161
+ includeImages?: undefined;
6162
+ imageIndexes?: undefined;
6163
+ maxImages?: undefined;
6164
+ sort?: undefined;
5653
6165
  stripDescription?: undefined;
5654
6166
  workspaceId?: undefined;
5655
6167
  title?: undefined;
@@ -5701,8 +6213,9 @@ export declare const toolDefinitions: ({
5701
6213
  feeling?: undefined;
5702
6214
  needs?: undefined;
5703
6215
  tensionId?: undefined;
5704
- order?: undefined;
5705
6216
  _id?: undefined;
6217
+ roleId?: undefined;
6218
+ removeNest?: undefined;
5706
6219
  partId?: undefined;
5707
6220
  childId?: undefined;
5708
6221
  status?: undefined;
@@ -5734,6 +6247,10 @@ export declare const toolDefinitions: ({
5734
6247
  };
5735
6248
  topic?: undefined;
5736
6249
  search?: undefined;
6250
+ includeImages?: undefined;
6251
+ imageIndexes?: undefined;
6252
+ maxImages?: undefined;
6253
+ sort?: undefined;
5737
6254
  limit?: undefined;
5738
6255
  page?: undefined;
5739
6256
  stripDescription?: undefined;
@@ -5787,8 +6304,9 @@ export declare const toolDefinitions: ({
5787
6304
  feeling?: undefined;
5788
6305
  needs?: undefined;
5789
6306
  tensionId?: undefined;
5790
- order?: undefined;
5791
6307
  _id?: undefined;
6308
+ roleId?: undefined;
6309
+ removeNest?: undefined;
5792
6310
  partId?: undefined;
5793
6311
  childId?: undefined;
5794
6312
  status?: undefined;
@@ -5801,11 +6319,31 @@ export type ToolResult = {
5801
6319
  content: Array<{
5802
6320
  type: "text";
5803
6321
  text: string;
6322
+ } | {
6323
+ type: "image";
6324
+ data: string;
6325
+ mimeType: string;
5804
6326
  }>;
5805
6327
  isError?: boolean;
5806
6328
  };
5807
6329
  export declare function stripDescriptionFields(data: unknown): unknown;
5808
6330
  export declare function unescapeRichTextFields(args: Record<string, unknown>): Record<string, unknown>;
6331
+ /**
6332
+ * Extract sort:/sort-order:/limit: directives from a search query string.
6333
+ *
6334
+ * The REST API only honors sorting and limits via the `sort`/`limit` query
6335
+ * params — these operators inside the search string are dropped from free-text
6336
+ * matching and otherwise ignored. Translating them here keeps the documented
6337
+ * search syntax (see nestr_help('search')) working. The query string itself is
6338
+ * sent unmodified: the server strips operator terms from text matching anyway.
6339
+ *
6340
+ * First occurrence wins for each directive, matching the server-side parsing
6341
+ * of these operators elsewhere in Nestr.
6342
+ */
6343
+ export declare function extractSearchDirectives(query: string): {
6344
+ sort?: string;
6345
+ limit?: number;
6346
+ };
5809
6347
  /**
5810
6348
  * Per-tool-call context. Carries session-level info that diagnose-style
5811
6349
  * tools need but ordinary tools don't. Optional so tests/callers that don't
@@ -5813,6 +6351,12 @@ export declare function unescapeRichTextFields(args: Record<string, unknown>): R
5813
6351
  */
5814
6352
  export interface ToolCallContext {
5815
6353
  getDiagnose?: () => DiagnoseSnapshot;
6354
+ /**
6355
+ * When true, this call came in on the PUBLIC (unauthenticated) MCP surface.
6356
+ * Only PUBLIC_TOOL_NAMES are permitted, and nestr_get_me returns a guest
6357
+ * payload without contacting the Nestr API. Any other tool is refused.
6358
+ */
6359
+ isPublic?: boolean;
5816
6360
  }
5817
6361
  export declare function handleToolCall(client: NestrClient, name: string, args: Record<string, unknown>, context?: ToolCallContext): Promise<ToolResult>;
5818
6362
  export {};