@ganju/utils 0.0.10 → 0.0.11
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/constants.d.ts +9 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +63 -0
- package/dist/index.d.ts +140 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/schema.d.ts +67 -2
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +30 -4
- package/dist/syncableResource.d.ts +5 -0
- package/dist/syncableResource.d.ts.map +1 -1
- package/dist/syncableResource.js +13 -1
- package/dist/toolCatalog.d.ts +69 -0
- package/dist/toolCatalog.d.ts.map +1 -1
- package/dist/toolCatalog.js +150 -62
- package/dist/toolConfirmation.d.ts +47 -0
- package/dist/toolConfirmation.d.ts.map +1 -0
- package/dist/toolConfirmation.js +217 -0
- package/package.json +1 -1
- package/src/constants.ts +68 -0
- package/src/index.ts +34 -1
- package/src/schema.ts +41 -6
- package/src/syncableResource.ts +20 -0
- package/src/toolCatalog.ts +169 -62
- package/src/toolConfirmation.ts +261 -0
package/dist/toolCatalog.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
export interface ToolAnnotations {
|
|
2
|
+
readOnlyHint: boolean;
|
|
3
|
+
destructiveHint: boolean;
|
|
4
|
+
openWorldHint: boolean;
|
|
5
|
+
}
|
|
1
6
|
export interface CatalogTool {
|
|
2
7
|
key: string;
|
|
3
8
|
title: string;
|
|
4
9
|
description: string | null;
|
|
5
10
|
requiredScopes: string | null;
|
|
11
|
+
annotations: ToolAnnotations | null;
|
|
6
12
|
}
|
|
7
13
|
export interface CatalogGroup {
|
|
8
14
|
key: string;
|
|
@@ -23,91 +29,109 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
23
29
|
readonly title: "Batch Modify Labels";
|
|
24
30
|
readonly description: "Add or remove labels on many emails at once (archive, mark read, etc.).";
|
|
25
31
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.modify";
|
|
32
|
+
readonly annotations: ToolAnnotations;
|
|
26
33
|
}, {
|
|
27
34
|
readonly key: "gmail-create-draft";
|
|
28
35
|
readonly title: "Create Draft";
|
|
29
36
|
readonly description: "Save a new draft in Gmail without sending it yet.";
|
|
30
37
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.compose";
|
|
38
|
+
readonly annotations: ToolAnnotations;
|
|
31
39
|
}, {
|
|
32
40
|
readonly key: "gmail-delete-draft";
|
|
33
41
|
readonly title: "Delete Draft";
|
|
34
42
|
readonly description: "Permanently delete a draft.";
|
|
35
43
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.compose";
|
|
44
|
+
readonly annotations: ToolAnnotations;
|
|
36
45
|
}, {
|
|
37
46
|
readonly key: "gmail-forward-email";
|
|
38
47
|
readonly title: "Forward Email";
|
|
39
48
|
readonly description: "Forward an email to a new recipient.";
|
|
40
49
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.send";
|
|
50
|
+
readonly annotations: ToolAnnotations;
|
|
41
51
|
}, {
|
|
42
52
|
readonly key: "gmail-get-draft";
|
|
43
53
|
readonly title: "Get Draft";
|
|
44
54
|
readonly description: "Open a saved draft to review its contents.";
|
|
45
55
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.compose";
|
|
56
|
+
readonly annotations: ToolAnnotations;
|
|
46
57
|
}, {
|
|
47
58
|
readonly key: "gmail-get-profile";
|
|
48
59
|
readonly title: "Get Profile";
|
|
49
60
|
readonly description: "Show the email address and inbox stats for the connected Gmail account.";
|
|
50
61
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.readonly";
|
|
62
|
+
readonly annotations: ToolAnnotations;
|
|
51
63
|
}, {
|
|
52
64
|
readonly key: "gmail-get-thread";
|
|
53
65
|
readonly title: "Get Thread";
|
|
54
66
|
readonly description: "See every message inside one conversation.";
|
|
55
67
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.readonly";
|
|
68
|
+
readonly annotations: ToolAnnotations;
|
|
56
69
|
}, {
|
|
57
70
|
readonly key: "gmail-list-drafts";
|
|
58
71
|
readonly title: "List Drafts";
|
|
59
72
|
readonly description: "Browse your saved drafts.";
|
|
60
73
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.compose";
|
|
74
|
+
readonly annotations: ToolAnnotations;
|
|
61
75
|
}, {
|
|
62
76
|
readonly key: "gmail-list-emails";
|
|
63
77
|
readonly title: "List Emails";
|
|
64
78
|
readonly description: "Browse your Gmail inbox, with optional search filters.";
|
|
65
79
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.readonly";
|
|
80
|
+
readonly annotations: ToolAnnotations;
|
|
66
81
|
}, {
|
|
67
82
|
readonly key: "gmail-list-labels";
|
|
68
83
|
readonly title: "List Labels";
|
|
69
84
|
readonly description: "See all of your Gmail labels and folders.";
|
|
70
85
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.labels";
|
|
86
|
+
readonly annotations: ToolAnnotations;
|
|
71
87
|
}, {
|
|
72
88
|
readonly key: "gmail-list-threads";
|
|
73
89
|
readonly title: "List Threads";
|
|
74
90
|
readonly description: "List your Gmail conversations.";
|
|
75
91
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.readonly";
|
|
92
|
+
readonly annotations: ToolAnnotations;
|
|
76
93
|
}, {
|
|
77
94
|
readonly key: "gmail-modify-labels";
|
|
78
95
|
readonly title: "Modify Labels";
|
|
79
96
|
readonly description: "Add or remove labels on a single email — archive it, mark it read, star it, and more.";
|
|
80
97
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.modify";
|
|
98
|
+
readonly annotations: ToolAnnotations;
|
|
81
99
|
}, {
|
|
82
100
|
readonly key: "gmail-read-email";
|
|
83
101
|
readonly title: "Read Email";
|
|
84
102
|
readonly description: "Open and read a specific email.";
|
|
85
103
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.readonly";
|
|
104
|
+
readonly annotations: ToolAnnotations;
|
|
86
105
|
}, {
|
|
87
106
|
readonly key: "gmail-reply-email";
|
|
88
107
|
readonly title: "Reply Email";
|
|
89
108
|
readonly description: "Reply to an email so the response stays in the same conversation.";
|
|
90
109
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.send";
|
|
110
|
+
readonly annotations: ToolAnnotations;
|
|
91
111
|
}, {
|
|
92
112
|
readonly key: "gmail-send-draft";
|
|
93
113
|
readonly title: "Send Draft";
|
|
94
114
|
readonly description: "Send a draft you've already saved.";
|
|
95
115
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.send";
|
|
116
|
+
readonly annotations: ToolAnnotations;
|
|
96
117
|
}, {
|
|
97
118
|
readonly key: "gmail-send-email";
|
|
98
119
|
readonly title: "Send Email";
|
|
99
120
|
readonly description: "Compose and send a new email from your connected Gmail account.";
|
|
100
121
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.send";
|
|
122
|
+
readonly annotations: ToolAnnotations;
|
|
101
123
|
}, {
|
|
102
124
|
readonly key: "gmail-trash-email";
|
|
103
125
|
readonly title: "Move to Trash";
|
|
104
126
|
readonly description: "Move an email to Trash. It stays recoverable for 30 days.";
|
|
105
127
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.modify";
|
|
128
|
+
readonly annotations: ToolAnnotations;
|
|
106
129
|
}, {
|
|
107
130
|
readonly key: "gmail-update-draft";
|
|
108
131
|
readonly title: "Update Draft";
|
|
109
132
|
readonly description: "Edit the contents of a saved draft.";
|
|
110
133
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.compose";
|
|
134
|
+
readonly annotations: ToolAnnotations;
|
|
111
135
|
}];
|
|
112
136
|
}, {
|
|
113
137
|
readonly key: "outlook";
|
|
@@ -120,91 +144,109 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
120
144
|
readonly title: "Batch Move Messages";
|
|
121
145
|
readonly description: "Move up to 20 messages to the same folder.";
|
|
122
146
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
147
|
+
readonly annotations: ToolAnnotations;
|
|
123
148
|
}, {
|
|
124
149
|
readonly key: "outlook-create-draft";
|
|
125
150
|
readonly title: "Create Draft";
|
|
126
151
|
readonly description: "Create a draft email saved in Drafts.";
|
|
127
152
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
153
|
+
readonly annotations: ToolAnnotations;
|
|
128
154
|
}, {
|
|
129
155
|
readonly key: "outlook-delete-draft";
|
|
130
156
|
readonly title: "Delete Draft";
|
|
131
157
|
readonly description: "Permanently delete a draft.";
|
|
132
158
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
159
|
+
readonly annotations: ToolAnnotations;
|
|
133
160
|
}, {
|
|
134
161
|
readonly key: "outlook-forward-email";
|
|
135
162
|
readonly title: "Forward";
|
|
136
163
|
readonly description: "Forward an existing message to a new recipient.";
|
|
137
164
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Send";
|
|
165
|
+
readonly annotations: ToolAnnotations;
|
|
138
166
|
}, {
|
|
139
167
|
readonly key: "outlook-get-draft";
|
|
140
168
|
readonly title: "Get Draft";
|
|
141
169
|
readonly description: "Read the full contents of a draft.";
|
|
142
170
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
171
|
+
readonly annotations: ToolAnnotations;
|
|
143
172
|
}, {
|
|
144
173
|
readonly key: "outlook-get-profile";
|
|
145
174
|
readonly title: "Get Profile";
|
|
146
175
|
readonly description: "Get the connected account's profile and inbox totals.";
|
|
147
176
|
readonly requiredScopes: "https://graph.microsoft.com/User.Read";
|
|
177
|
+
readonly annotations: ToolAnnotations;
|
|
148
178
|
}, {
|
|
149
179
|
readonly key: "outlook-get-thread";
|
|
150
180
|
readonly title: "Get Thread";
|
|
151
181
|
readonly description: "Get summaries of every message in a conversation.";
|
|
152
182
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
183
|
+
readonly annotations: ToolAnnotations;
|
|
153
184
|
}, {
|
|
154
185
|
readonly key: "outlook-list-drafts";
|
|
155
186
|
readonly title: "List Drafts";
|
|
156
187
|
readonly description: "List drafts in the Drafts folder.";
|
|
157
188
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
189
|
+
readonly annotations: ToolAnnotations;
|
|
158
190
|
}, {
|
|
159
191
|
readonly key: "outlook-list-emails";
|
|
160
192
|
readonly title: "List Emails";
|
|
161
193
|
readonly description: "List inbox messages, optionally filtered by search.";
|
|
162
194
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
195
|
+
readonly annotations: ToolAnnotations;
|
|
163
196
|
}, {
|
|
164
197
|
readonly key: "outlook-list-folders";
|
|
165
198
|
readonly title: "List Folders";
|
|
166
199
|
readonly description: "List every mail folder on the account.";
|
|
167
200
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
201
|
+
readonly annotations: ToolAnnotations;
|
|
168
202
|
}, {
|
|
169
203
|
readonly key: "outlook-list-threads";
|
|
170
204
|
readonly title: "List Threads";
|
|
171
205
|
readonly description: "List inbox conversation threads.";
|
|
172
206
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
207
|
+
readonly annotations: ToolAnnotations;
|
|
173
208
|
}, {
|
|
174
209
|
readonly key: "outlook-move-message";
|
|
175
210
|
readonly title: "Move Message";
|
|
176
211
|
readonly description: "Move a message to a different folder.";
|
|
177
212
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
213
|
+
readonly annotations: ToolAnnotations;
|
|
178
214
|
}, {
|
|
179
215
|
readonly key: "outlook-read-email";
|
|
180
216
|
readonly title: "Read Email";
|
|
181
217
|
readonly description: "Read the full contents of one message by ID.";
|
|
182
218
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
219
|
+
readonly annotations: ToolAnnotations;
|
|
183
220
|
}, {
|
|
184
221
|
readonly key: "outlook-reply-email";
|
|
185
222
|
readonly title: "Reply";
|
|
186
223
|
readonly description: "Reply to an existing message, preserving the conversation.";
|
|
187
224
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Send";
|
|
225
|
+
readonly annotations: ToolAnnotations;
|
|
188
226
|
}, {
|
|
189
227
|
readonly key: "outlook-send-draft";
|
|
190
228
|
readonly title: "Send Draft";
|
|
191
229
|
readonly description: "Send an existing draft as-is.";
|
|
192
230
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Send";
|
|
231
|
+
readonly annotations: ToolAnnotations;
|
|
193
232
|
}, {
|
|
194
233
|
readonly key: "outlook-send-email";
|
|
195
234
|
readonly title: "Send Email";
|
|
196
235
|
readonly description: "Send a brand-new email from the connected account.";
|
|
197
236
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Send";
|
|
237
|
+
readonly annotations: ToolAnnotations;
|
|
198
238
|
}, {
|
|
199
239
|
readonly key: "outlook-trash-email";
|
|
200
240
|
readonly title: "Move to Trash";
|
|
201
241
|
readonly description: "Move a message to the Deleted Items folder.";
|
|
202
242
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
243
|
+
readonly annotations: ToolAnnotations;
|
|
203
244
|
}, {
|
|
204
245
|
readonly key: "outlook-update-draft";
|
|
205
246
|
readonly title: "Update Draft";
|
|
206
247
|
readonly description: "Replace the contents of an existing draft.";
|
|
207
248
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
249
|
+
readonly annotations: ToolAnnotations;
|
|
208
250
|
}];
|
|
209
251
|
}, {
|
|
210
252
|
readonly key: "slack";
|
|
@@ -217,21 +259,25 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
217
259
|
readonly title: "Get User";
|
|
218
260
|
readonly description: "Look up a Slack user by ID or email.";
|
|
219
261
|
readonly requiredScopes: "users:read,users:read.email";
|
|
262
|
+
readonly annotations: ToolAnnotations;
|
|
220
263
|
}, {
|
|
221
264
|
readonly key: "slack-list-channels";
|
|
222
265
|
readonly title: "List Channels";
|
|
223
266
|
readonly description: "Browse the channels and DMs the agent can see.";
|
|
224
267
|
readonly requiredScopes: "channels:read,groups:read,mpim:read,im:read";
|
|
268
|
+
readonly annotations: ToolAnnotations;
|
|
225
269
|
}, {
|
|
226
270
|
readonly key: "slack-send-message";
|
|
227
271
|
readonly title: "Send Message";
|
|
228
272
|
readonly description: "Post a message to a Slack channel, DM, or thread.";
|
|
229
273
|
readonly requiredScopes: "chat:write";
|
|
274
|
+
readonly annotations: ToolAnnotations;
|
|
230
275
|
}, {
|
|
231
276
|
readonly key: "slack-upload-file";
|
|
232
277
|
readonly title: "Upload File";
|
|
233
278
|
readonly description: "Upload a stored resource into a Slack channel.";
|
|
234
279
|
readonly requiredScopes: "files:write,chat:write";
|
|
280
|
+
readonly annotations: ToolAnnotations;
|
|
235
281
|
}];
|
|
236
282
|
}, {
|
|
237
283
|
readonly key: "slack-user";
|
|
@@ -244,6 +290,7 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
244
290
|
readonly title: "Search Messages";
|
|
245
291
|
readonly description: "Search messages across the workspace. Requires a Slack user token (xoxp).";
|
|
246
292
|
readonly requiredScopes: "search:read";
|
|
293
|
+
readonly annotations: ToolAnnotations;
|
|
247
294
|
}];
|
|
248
295
|
}, {
|
|
249
296
|
readonly key: "google-calendar";
|
|
@@ -256,31 +303,37 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
256
303
|
readonly title: "Create Event";
|
|
257
304
|
readonly description: "Add a new event to a calendar.";
|
|
258
305
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.events";
|
|
306
|
+
readonly annotations: ToolAnnotations;
|
|
259
307
|
}, {
|
|
260
308
|
readonly key: "calendar-delete-event";
|
|
261
309
|
readonly title: "Delete Event";
|
|
262
310
|
readonly description: "Permanently remove an event from a calendar.";
|
|
263
311
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.events";
|
|
312
|
+
readonly annotations: ToolAnnotations;
|
|
264
313
|
}, {
|
|
265
314
|
readonly key: "calendar-find-free-slots";
|
|
266
315
|
readonly title: "Find Free Slots";
|
|
267
316
|
readonly description: "Find open time gaps on a calendar.";
|
|
268
317
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.readonly";
|
|
318
|
+
readonly annotations: ToolAnnotations;
|
|
269
319
|
}, {
|
|
270
320
|
readonly key: "calendar-list-calendars";
|
|
271
321
|
readonly title: "List Calendars";
|
|
272
322
|
readonly description: "See all calendars on the connected Google account.";
|
|
273
323
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.readonly";
|
|
324
|
+
readonly annotations: ToolAnnotations;
|
|
274
325
|
}, {
|
|
275
326
|
readonly key: "calendar-list-events";
|
|
276
327
|
readonly title: "List Events";
|
|
277
328
|
readonly description: "Browse events on a calendar within a time range.";
|
|
278
329
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.readonly";
|
|
330
|
+
readonly annotations: ToolAnnotations;
|
|
279
331
|
}, {
|
|
280
332
|
readonly key: "calendar-update-event";
|
|
281
333
|
readonly title: "Update Event";
|
|
282
334
|
readonly description: "Change the details of an existing event.";
|
|
283
335
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.events";
|
|
336
|
+
readonly annotations: ToolAnnotations;
|
|
284
337
|
}];
|
|
285
338
|
}, {
|
|
286
339
|
readonly key: "calcom";
|
|
@@ -293,21 +346,25 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
293
346
|
readonly title: "Cancel Booking";
|
|
294
347
|
readonly description: "Cancel an existing booking by its UID.";
|
|
295
348
|
readonly requiredScopes: null;
|
|
349
|
+
readonly annotations: ToolAnnotations;
|
|
296
350
|
}, {
|
|
297
351
|
readonly key: "calcom-create-booking";
|
|
298
352
|
readonly title: "Create Booking";
|
|
299
353
|
readonly description: "Book an available slot for an attendee.";
|
|
300
354
|
readonly requiredScopes: null;
|
|
355
|
+
readonly annotations: ToolAnnotations;
|
|
301
356
|
}, {
|
|
302
357
|
readonly key: "calcom-list-available-slots";
|
|
303
358
|
readonly title: "List Available Slots";
|
|
304
359
|
readonly description: "Find open booking times for an event type in a date range.";
|
|
305
360
|
readonly requiredScopes: null;
|
|
361
|
+
readonly annotations: ToolAnnotations;
|
|
306
362
|
}, {
|
|
307
363
|
readonly key: "calcom-list-event-types";
|
|
308
364
|
readonly title: "List Event Types";
|
|
309
365
|
readonly description: "See the bookable meeting types on the connected Cal.com account.";
|
|
310
366
|
readonly requiredScopes: null;
|
|
367
|
+
readonly annotations: ToolAnnotations;
|
|
311
368
|
}];
|
|
312
369
|
}, {
|
|
313
370
|
readonly key: "web";
|
|
@@ -320,11 +377,13 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
320
377
|
readonly title: "Web Extract";
|
|
321
378
|
readonly description: "Fetch the full cleaned text of specific web pages by URL for in-depth reading.";
|
|
322
379
|
readonly requiredScopes: null;
|
|
380
|
+
readonly annotations: ToolAnnotations;
|
|
323
381
|
}, {
|
|
324
382
|
readonly key: "web-search";
|
|
325
383
|
readonly title: "Web Search";
|
|
326
384
|
readonly description: "Search the live web and return the top results plus a synthesized answer so the model can cite sources.";
|
|
327
385
|
readonly requiredScopes: null;
|
|
386
|
+
readonly annotations: ToolAnnotations;
|
|
328
387
|
}];
|
|
329
388
|
}, {
|
|
330
389
|
readonly key: "builtin";
|
|
@@ -337,26 +396,31 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
337
396
|
readonly title: "List Prompts";
|
|
338
397
|
readonly description: "List the prompts and commands this assistant exposes, and how to run them on the current channel.";
|
|
339
398
|
readonly requiredScopes: null;
|
|
399
|
+
readonly annotations: ToolAnnotations;
|
|
340
400
|
}, {
|
|
341
401
|
readonly key: "list-resources";
|
|
342
402
|
readonly title: "List Resources";
|
|
343
403
|
readonly description: "List every resource available to this assistant.";
|
|
344
404
|
readonly requiredScopes: null;
|
|
405
|
+
readonly annotations: ToolAnnotations;
|
|
345
406
|
}, {
|
|
346
407
|
readonly key: "read-resource";
|
|
347
408
|
readonly title: "Read Resource";
|
|
348
409
|
readonly description: "Read the contents of a stored resource.";
|
|
349
410
|
readonly requiredScopes: null;
|
|
411
|
+
readonly annotations: ToolAnnotations;
|
|
350
412
|
}, {
|
|
351
413
|
readonly key: "search-resources";
|
|
352
414
|
readonly title: "Search Resources";
|
|
353
415
|
readonly description: "Find the resources most relevant to a question, by meaning and by exact keywords.";
|
|
354
416
|
readonly requiredScopes: null;
|
|
417
|
+
readonly annotations: ToolAnnotations;
|
|
355
418
|
}, {
|
|
356
419
|
readonly key: "send-resource";
|
|
357
420
|
readonly title: "Send Resource";
|
|
358
421
|
readonly description: "Deliver a resource to the user as a chat attachment.";
|
|
359
422
|
readonly requiredScopes: null;
|
|
423
|
+
readonly annotations: ToolAnnotations;
|
|
360
424
|
}];
|
|
361
425
|
}, {
|
|
362
426
|
readonly key: "greeting";
|
|
@@ -369,6 +433,7 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
369
433
|
readonly title: "Greeting";
|
|
370
434
|
readonly description: "Reply with a friendly hello in English or Spanish (demo tool).";
|
|
371
435
|
readonly requiredScopes: null;
|
|
436
|
+
readonly annotations: ToolAnnotations;
|
|
372
437
|
}];
|
|
373
438
|
}, {
|
|
374
439
|
readonly key: "http-endpoint";
|
|
@@ -381,6 +446,7 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
381
446
|
readonly title: "HTTP Endpoint";
|
|
382
447
|
readonly description: "A user-configured HTTP request exposed to the agent as its own named tool.";
|
|
383
448
|
readonly requiredScopes: null;
|
|
449
|
+
readonly annotations: null;
|
|
384
450
|
}];
|
|
385
451
|
}, {
|
|
386
452
|
readonly key: "mcp-proxy";
|
|
@@ -393,6 +459,7 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
393
459
|
readonly title: "MCP Server";
|
|
394
460
|
readonly description: "A connected remote MCP server. Each server you add exposes its tools to the agent under a vendor prefix.";
|
|
395
461
|
readonly requiredScopes: null;
|
|
462
|
+
readonly annotations: null;
|
|
396
463
|
}];
|
|
397
464
|
}, {
|
|
398
465
|
readonly key: "custom-code";
|
|
@@ -405,6 +472,7 @@ export declare const TOOL_CATALOG: readonly [{
|
|
|
405
472
|
readonly title: "Custom code";
|
|
406
473
|
readonly description: "Tools implemented by your own code. One script per artifact; names and schemas come from the published version.";
|
|
407
474
|
readonly requiredScopes: null;
|
|
475
|
+
readonly annotations: null;
|
|
408
476
|
}];
|
|
409
477
|
}];
|
|
410
478
|
export type ToolKey = (typeof TOOL_CATALOG)[number]['tools'][number]['key'];
|
|
@@ -446,6 +514,7 @@ export interface CatalogToolDescriptor {
|
|
|
446
514
|
title: string;
|
|
447
515
|
description: string | null;
|
|
448
516
|
requiredScopes: string | null;
|
|
517
|
+
annotations: ToolAnnotations | null;
|
|
449
518
|
group: Omit<CatalogGroup, 'tools'>;
|
|
450
519
|
}
|
|
451
520
|
export declare const describeCatalogTool: (key: string) => CatalogToolDescriptor | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolCatalog.d.ts","sourceRoot":"","sources":["../src/toolCatalog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolCatalog.d.ts","sourceRoot":"","sources":["../src/toolCatalog.ts"],"names":[],"mappings":"AAwBA,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;CACxB;AA4BD,MAAM,WAAW,WAAW;IAG1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAI3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAI9B,WAAW,EAAE,eAAe,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAGpB,QAAQ,EAAE,MA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