agent-communication-mcp 0.4.1 → 0.5.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/README.md +76 -5
- package/dist/adapters/MessagingAdapter.d.ts +8 -1
- package/dist/adapters/MessagingAdapter.d.ts.map +1 -1
- package/dist/adapters/MessagingAdapter.js +14 -2
- package/dist/adapters/MessagingAdapter.js.map +1 -1
- package/dist/cloud/CloudApiClient.d.ts +25 -1
- package/dist/cloud/CloudApiClient.d.ts.map +1 -1
- package/dist/cloud/CloudApiClient.js +184 -11
- package/dist/cloud/CloudApiClient.js.map +1 -1
- package/dist/cloud/CloudMessagingService.d.ts +14 -1
- package/dist/cloud/CloudMessagingService.d.ts.map +1 -1
- package/dist/cloud/CloudMessagingService.js +52 -3
- package/dist/cloud/CloudMessagingService.js.map +1 -1
- package/dist/cloud/attachments.d.ts +27 -0
- package/dist/cloud/attachments.d.ts.map +1 -0
- package/dist/cloud/attachments.js +257 -0
- package/dist/cloud/attachments.js.map +1 -0
- package/dist/cloud/errors.d.ts +3 -0
- package/dist/cloud/errors.d.ts.map +1 -1
- package/dist/cloud/errors.js +11 -3
- package/dist/cloud/errors.js.map +1 -1
- package/dist/cloud/index.d.ts +3 -0
- package/dist/cloud/index.d.ts.map +1 -1
- package/dist/cloud/index.js +5 -1
- package/dist/cloud/index.js.map +1 -1
- package/dist/cloud/mappers.d.ts.map +1 -1
- package/dist/cloud/mappers.js +5 -0
- package/dist/cloud/mappers.js.map +1 -1
- package/dist/cloud/types.d.ts +18 -0
- package/dist/cloud/types.d.ts.map +1 -1
- package/dist/cloud/validation.d.ts +2 -0
- package/dist/cloud/validation.d.ts.map +1 -1
- package/dist/cloud/validation.js +12 -1
- package/dist/cloud/validation.js.map +1 -1
- package/dist/errors/AppError.d.ts +13 -0
- package/dist/errors/AppError.d.ts.map +1 -1
- package/dist/errors/AppError.js +23 -1
- package/dist/errors/AppError.js.map +1 -1
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +4 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/features/messaging/MessageCache.js +1 -1
- package/dist/features/messaging/MessageStorage.js +1 -1
- package/dist/features/messaging/MessageValidator.d.ts +3 -3
- package/dist/features/messaging/MessageValidator.d.ts.map +1 -1
- package/dist/features/messaging/MessageValidator.js +3 -2
- package/dist/features/messaging/MessageValidator.js.map +1 -1
- package/dist/features/messaging/tools/messaging.tools.d.ts +2 -2
- package/dist/features/messaging/tools/messaging.tools.js +2 -2
- package/dist/features/messaging/tools/messaging.tools.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +3 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/management.schema.d.ts +6 -6
- package/dist/schemas/message.schema.d.ts +154 -22
- package/dist/schemas/message.schema.d.ts.map +1 -1
- package/dist/schemas/message.schema.js +40 -3
- package/dist/schemas/message.schema.js.map +1 -1
- package/dist/schemas/room.schema.d.ts +8 -8
- package/dist/server/ToolRegistry.d.ts.map +1 -1
- package/dist/server/ToolRegistry.js +6 -1
- package/dist/server/ToolRegistry.js.map +1 -1
- package/dist/tools/index.d.ts +32 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +9 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/messaging.d.ts +9 -1
- package/dist/tools/messaging.d.ts.map +1 -1
- package/dist/tools/messaging.js +54 -4
- package/dist/tools/messaging.js.map +1 -1
- package/dist/types/entities.d.ts +7 -0
- package/dist/types/entities.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const MESSAGE_MAX_LENGTH = 10000;
|
|
3
|
+
export declare function maxCodePoints(maximum: number, message?: string): (value: string, ctx: z.RefinementCtx) => void;
|
|
2
4
|
export declare const sendMessageInputSchema: z.ZodObject<{
|
|
3
5
|
agentName: z.ZodString;
|
|
4
6
|
roomName: z.ZodString;
|
|
5
|
-
message: z.ZodString
|
|
7
|
+
message: z.ZodEffects<z.ZodString, string, string>;
|
|
6
8
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
message: string;
|
|
8
12
|
agentName: string;
|
|
9
13
|
roomName: string;
|
|
10
|
-
message: string;
|
|
11
14
|
metadata?: Record<string, any> | undefined;
|
|
15
|
+
attachments?: string[] | undefined;
|
|
12
16
|
}, {
|
|
17
|
+
message: string;
|
|
13
18
|
agentName: string;
|
|
14
19
|
roomName: string;
|
|
15
|
-
message: string;
|
|
16
20
|
metadata?: Record<string, any> | undefined;
|
|
21
|
+
attachments?: string[] | undefined;
|
|
17
22
|
}>;
|
|
18
23
|
export declare const sendMessageOutputSchema: z.ZodObject<{
|
|
19
24
|
success: z.ZodBoolean;
|
|
@@ -63,48 +68,88 @@ export declare const getMessagesOutputSchema: z.ZodObject<{
|
|
|
63
68
|
timestamp: z.ZodString;
|
|
64
69
|
mentions: z.ZodArray<z.ZodString, "many">;
|
|
65
70
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
71
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
size: z.ZodNumber;
|
|
75
|
+
contentType: z.ZodString;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
size: number;
|
|
80
|
+
contentType: string;
|
|
81
|
+
}, {
|
|
82
|
+
id: string;
|
|
83
|
+
name: string;
|
|
84
|
+
size: number;
|
|
85
|
+
contentType: string;
|
|
86
|
+
}>, "many">>;
|
|
66
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
id: string;
|
|
89
|
+
message: string;
|
|
67
90
|
agentName: string;
|
|
68
91
|
roomName: string;
|
|
69
|
-
message: string;
|
|
70
92
|
timestamp: string;
|
|
71
93
|
mentions: string[];
|
|
72
|
-
id: string;
|
|
73
94
|
metadata?: Record<string, any> | undefined;
|
|
95
|
+
attachments?: {
|
|
96
|
+
id: string;
|
|
97
|
+
name: string;
|
|
98
|
+
size: number;
|
|
99
|
+
contentType: string;
|
|
100
|
+
}[] | undefined;
|
|
74
101
|
}, {
|
|
102
|
+
id: string;
|
|
103
|
+
message: string;
|
|
75
104
|
agentName: string;
|
|
76
105
|
roomName: string;
|
|
77
|
-
message: string;
|
|
78
106
|
timestamp: string;
|
|
79
107
|
mentions: string[];
|
|
80
|
-
id: string;
|
|
81
108
|
metadata?: Record<string, any> | undefined;
|
|
109
|
+
attachments?: {
|
|
110
|
+
id: string;
|
|
111
|
+
name: string;
|
|
112
|
+
size: number;
|
|
113
|
+
contentType: string;
|
|
114
|
+
}[] | undefined;
|
|
82
115
|
}>, "many">;
|
|
83
116
|
count: z.ZodNumber;
|
|
84
117
|
hasMore: z.ZodBoolean;
|
|
85
118
|
}, "strip", z.ZodTypeAny, {
|
|
86
119
|
hasMore: boolean;
|
|
87
120
|
messages: {
|
|
121
|
+
id: string;
|
|
122
|
+
message: string;
|
|
88
123
|
agentName: string;
|
|
89
124
|
roomName: string;
|
|
90
|
-
message: string;
|
|
91
125
|
timestamp: string;
|
|
92
126
|
mentions: string[];
|
|
93
|
-
id: string;
|
|
94
127
|
metadata?: Record<string, any> | undefined;
|
|
128
|
+
attachments?: {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
size: number;
|
|
132
|
+
contentType: string;
|
|
133
|
+
}[] | undefined;
|
|
95
134
|
}[];
|
|
96
135
|
roomName: string;
|
|
97
136
|
count: number;
|
|
98
137
|
}, {
|
|
99
138
|
hasMore: boolean;
|
|
100
139
|
messages: {
|
|
140
|
+
id: string;
|
|
141
|
+
message: string;
|
|
101
142
|
agentName: string;
|
|
102
143
|
roomName: string;
|
|
103
|
-
message: string;
|
|
104
144
|
timestamp: string;
|
|
105
145
|
mentions: string[];
|
|
106
|
-
id: string;
|
|
107
146
|
metadata?: Record<string, any> | undefined;
|
|
147
|
+
attachments?: {
|
|
148
|
+
id: string;
|
|
149
|
+
name: string;
|
|
150
|
+
size: number;
|
|
151
|
+
contentType: string;
|
|
152
|
+
}[] | undefined;
|
|
108
153
|
}[];
|
|
109
154
|
roomName: string;
|
|
110
155
|
count: number;
|
|
@@ -131,22 +176,50 @@ export declare const waitForMessagesOutputSchema: z.ZodObject<{
|
|
|
131
176
|
timestamp: z.ZodString;
|
|
132
177
|
mentions: z.ZodArray<z.ZodString, "many">;
|
|
133
178
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
179
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
size: z.ZodNumber;
|
|
183
|
+
contentType: z.ZodString;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
id: string;
|
|
186
|
+
name: string;
|
|
187
|
+
size: number;
|
|
188
|
+
contentType: string;
|
|
189
|
+
}, {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
size: number;
|
|
193
|
+
contentType: string;
|
|
194
|
+
}>, "many">>;
|
|
134
195
|
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
id: string;
|
|
197
|
+
message: string;
|
|
135
198
|
agentName: string;
|
|
136
199
|
roomName: string;
|
|
137
|
-
message: string;
|
|
138
200
|
timestamp: string;
|
|
139
201
|
mentions: string[];
|
|
140
|
-
id: string;
|
|
141
202
|
metadata?: Record<string, any> | undefined;
|
|
203
|
+
attachments?: {
|
|
204
|
+
id: string;
|
|
205
|
+
name: string;
|
|
206
|
+
size: number;
|
|
207
|
+
contentType: string;
|
|
208
|
+
}[] | undefined;
|
|
142
209
|
}, {
|
|
210
|
+
id: string;
|
|
211
|
+
message: string;
|
|
143
212
|
agentName: string;
|
|
144
213
|
roomName: string;
|
|
145
|
-
message: string;
|
|
146
214
|
timestamp: string;
|
|
147
215
|
mentions: string[];
|
|
148
|
-
id: string;
|
|
149
216
|
metadata?: Record<string, any> | undefined;
|
|
217
|
+
attachments?: {
|
|
218
|
+
id: string;
|
|
219
|
+
name: string;
|
|
220
|
+
size: number;
|
|
221
|
+
contentType: string;
|
|
222
|
+
}[] | undefined;
|
|
150
223
|
}>, "many">;
|
|
151
224
|
hasNewMessages: z.ZodBoolean;
|
|
152
225
|
timedOut: z.ZodBoolean;
|
|
@@ -154,13 +227,19 @@ export declare const waitForMessagesOutputSchema: z.ZodObject<{
|
|
|
154
227
|
waitingAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
155
228
|
}, "strip", z.ZodTypeAny, {
|
|
156
229
|
messages: {
|
|
230
|
+
id: string;
|
|
231
|
+
message: string;
|
|
157
232
|
agentName: string;
|
|
158
233
|
roomName: string;
|
|
159
|
-
message: string;
|
|
160
234
|
timestamp: string;
|
|
161
235
|
mentions: string[];
|
|
162
|
-
id: string;
|
|
163
236
|
metadata?: Record<string, any> | undefined;
|
|
237
|
+
attachments?: {
|
|
238
|
+
id: string;
|
|
239
|
+
name: string;
|
|
240
|
+
size: number;
|
|
241
|
+
contentType: string;
|
|
242
|
+
}[] | undefined;
|
|
164
243
|
}[];
|
|
165
244
|
hasNewMessages: boolean;
|
|
166
245
|
timedOut: boolean;
|
|
@@ -168,34 +247,72 @@ export declare const waitForMessagesOutputSchema: z.ZodObject<{
|
|
|
168
247
|
waitingAgents?: string[] | undefined;
|
|
169
248
|
}, {
|
|
170
249
|
messages: {
|
|
250
|
+
id: string;
|
|
251
|
+
message: string;
|
|
171
252
|
agentName: string;
|
|
172
253
|
roomName: string;
|
|
173
|
-
message: string;
|
|
174
254
|
timestamp: string;
|
|
175
255
|
mentions: string[];
|
|
176
|
-
id: string;
|
|
177
256
|
metadata?: Record<string, any> | undefined;
|
|
257
|
+
attachments?: {
|
|
258
|
+
id: string;
|
|
259
|
+
name: string;
|
|
260
|
+
size: number;
|
|
261
|
+
contentType: string;
|
|
262
|
+
}[] | undefined;
|
|
178
263
|
}[];
|
|
179
264
|
hasNewMessages: boolean;
|
|
180
265
|
timedOut: boolean;
|
|
181
266
|
warning?: string | undefined;
|
|
182
267
|
waitingAgents?: string[] | undefined;
|
|
183
268
|
}>;
|
|
269
|
+
export declare const downloadAttachmentInputSchema: z.ZodObject<{
|
|
270
|
+
roomName: z.ZodString;
|
|
271
|
+
attachmentId: z.ZodString;
|
|
272
|
+
savePath: z.ZodString;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
roomName: string;
|
|
275
|
+
attachmentId: string;
|
|
276
|
+
savePath: string;
|
|
277
|
+
}, {
|
|
278
|
+
roomName: string;
|
|
279
|
+
attachmentId: string;
|
|
280
|
+
savePath: string;
|
|
281
|
+
}>;
|
|
282
|
+
export declare const downloadAttachmentOutputSchema: z.ZodObject<{
|
|
283
|
+
path: z.ZodString;
|
|
284
|
+
name: z.ZodString;
|
|
285
|
+
size: z.ZodNumber;
|
|
286
|
+
contentType: z.ZodString;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
name: string;
|
|
289
|
+
size: number;
|
|
290
|
+
contentType: string;
|
|
291
|
+
path: string;
|
|
292
|
+
}, {
|
|
293
|
+
name: string;
|
|
294
|
+
size: number;
|
|
295
|
+
contentType: string;
|
|
296
|
+
path: string;
|
|
297
|
+
}>;
|
|
184
298
|
export declare const sendMessageSchema: z.ZodObject<{
|
|
185
299
|
agentName: z.ZodString;
|
|
186
300
|
roomName: z.ZodString;
|
|
187
|
-
message: z.ZodString
|
|
301
|
+
message: z.ZodEffects<z.ZodString, string, string>;
|
|
188
302
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
303
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
189
304
|
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
message: string;
|
|
190
306
|
agentName: string;
|
|
191
307
|
roomName: string;
|
|
192
|
-
message: string;
|
|
193
308
|
metadata?: Record<string, any> | undefined;
|
|
309
|
+
attachments?: string[] | undefined;
|
|
194
310
|
}, {
|
|
311
|
+
message: string;
|
|
195
312
|
agentName: string;
|
|
196
313
|
roomName: string;
|
|
197
|
-
message: string;
|
|
198
314
|
metadata?: Record<string, any> | undefined;
|
|
315
|
+
attachments?: string[] | undefined;
|
|
199
316
|
}>;
|
|
200
317
|
export declare const getMessagesSchema: z.ZodObject<{
|
|
201
318
|
roomName: z.ZodString;
|
|
@@ -216,10 +333,25 @@ export declare const getMessagesSchema: z.ZodObject<{
|
|
|
216
333
|
offset?: number | undefined;
|
|
217
334
|
mentionsOnly?: boolean | undefined;
|
|
218
335
|
}>;
|
|
336
|
+
export declare const downloadAttachmentSchema: z.ZodObject<{
|
|
337
|
+
roomName: z.ZodString;
|
|
338
|
+
attachmentId: z.ZodString;
|
|
339
|
+
savePath: z.ZodString;
|
|
340
|
+
}, "strip", z.ZodTypeAny, {
|
|
341
|
+
roomName: string;
|
|
342
|
+
attachmentId: string;
|
|
343
|
+
savePath: string;
|
|
344
|
+
}, {
|
|
345
|
+
roomName: string;
|
|
346
|
+
attachmentId: string;
|
|
347
|
+
savePath: string;
|
|
348
|
+
}>;
|
|
219
349
|
export type SendMessageInput = z.infer<typeof sendMessageInputSchema>;
|
|
220
350
|
export type SendMessageOutput = z.infer<typeof sendMessageOutputSchema>;
|
|
221
351
|
export type GetMessagesInput = z.infer<typeof getMessagesInputSchema>;
|
|
222
352
|
export type GetMessagesOutput = z.infer<typeof getMessagesOutputSchema>;
|
|
223
353
|
export type WaitForMessagesInput = z.infer<typeof waitForMessagesInputSchema>;
|
|
224
354
|
export type WaitForMessagesOutput = z.infer<typeof waitForMessagesOutputSchema>;
|
|
355
|
+
export type DownloadAttachmentInput = z.infer<typeof downloadAttachmentInputSchema>;
|
|
356
|
+
export type DownloadAttachmentOutput = z.infer<typeof downloadAttachmentOutputSchema>;
|
|
225
357
|
//# sourceMappingURL=message.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/message.schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"message.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/message.schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AAGxC,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,IACrD,OAAO,MAAM,EAAE,KAAK,CAAC,CAAC,aAAa,KAAG,IAAI,CAYnD;AAiBD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;EAMlC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAclC,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EASrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetC,CAAC;AAGH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAIxC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;EAKzC,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAAyB,CAAC;AACxD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAAyB,CAAC;AACxD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAAgC,CAAC;AAGtE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMessagesSchema = exports.sendMessageSchema = exports.waitForMessagesOutputSchema = exports.waitForMessagesInputSchema = exports.getMessagesOutputSchema = exports.getMessagesInputSchema = exports.sendMessageOutputSchema = exports.sendMessageInputSchema = void 0;
|
|
3
|
+
exports.downloadAttachmentSchema = exports.getMessagesSchema = exports.sendMessageSchema = exports.downloadAttachmentOutputSchema = exports.downloadAttachmentInputSchema = exports.waitForMessagesOutputSchema = exports.waitForMessagesInputSchema = exports.getMessagesOutputSchema = exports.getMessagesInputSchema = exports.sendMessageOutputSchema = exports.sendMessageInputSchema = exports.MESSAGE_MAX_LENGTH = void 0;
|
|
4
|
+
exports.maxCodePoints = maxCodePoints;
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
6
|
const roomNameSchema = zod_1.z
|
|
6
7
|
.string()
|
|
@@ -11,15 +12,37 @@ const agentNameSchema = zod_1.z
|
|
|
11
12
|
.string()
|
|
12
13
|
.min(1, 'Agent name cannot be empty')
|
|
13
14
|
.max(50, 'Agent name cannot exceed 50 characters');
|
|
15
|
+
exports.MESSAGE_MAX_LENGTH = 10000;
|
|
16
|
+
function maxCodePoints(maximum, message) {
|
|
17
|
+
return (value, ctx) => {
|
|
18
|
+
if (Array.from(value).length > maximum) {
|
|
19
|
+
ctx.addIssue({
|
|
20
|
+
code: zod_1.z.ZodIssueCode.too_big,
|
|
21
|
+
maximum,
|
|
22
|
+
type: 'string',
|
|
23
|
+
inclusive: true,
|
|
24
|
+
exact: false,
|
|
25
|
+
...(message === undefined ? {} : { message }),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
14
30
|
const messageContentSchema = zod_1.z
|
|
15
31
|
.string()
|
|
16
32
|
.min(1, 'Message cannot be empty')
|
|
17
|
-
.
|
|
33
|
+
.superRefine(maxCodePoints(exports.MESSAGE_MAX_LENGTH, `Message cannot exceed ${exports.MESSAGE_MAX_LENGTH} characters`));
|
|
34
|
+
const attachmentInfoSchema = zod_1.z.object({
|
|
35
|
+
id: zod_1.z.string(),
|
|
36
|
+
name: zod_1.z.string(),
|
|
37
|
+
size: zod_1.z.number(),
|
|
38
|
+
contentType: zod_1.z.string(),
|
|
39
|
+
});
|
|
18
40
|
exports.sendMessageInputSchema = zod_1.z.object({
|
|
19
41
|
agentName: agentNameSchema,
|
|
20
42
|
roomName: roomNameSchema,
|
|
21
43
|
message: messageContentSchema,
|
|
22
44
|
metadata: zod_1.z.record(zod_1.z.any()).optional(),
|
|
45
|
+
attachments: zod_1.z.array(zod_1.z.string()).optional(),
|
|
23
46
|
});
|
|
24
47
|
exports.sendMessageOutputSchema = zod_1.z.object({
|
|
25
48
|
success: zod_1.z.boolean(),
|
|
@@ -31,7 +54,7 @@ exports.sendMessageOutputSchema = zod_1.z.object({
|
|
|
31
54
|
exports.getMessagesInputSchema = zod_1.z.object({
|
|
32
55
|
roomName: roomNameSchema,
|
|
33
56
|
agentName: agentNameSchema.optional(),
|
|
34
|
-
limit: zod_1.z.number().int().min(1).max(1000).optional().default(
|
|
57
|
+
limit: zod_1.z.number().int().min(1).max(1000).optional().default(20),
|
|
35
58
|
offset: zod_1.z.number().int().min(0).optional().default(0),
|
|
36
59
|
mentionsOnly: zod_1.z.boolean().optional().default(false),
|
|
37
60
|
});
|
|
@@ -45,6 +68,7 @@ exports.getMessagesOutputSchema = zod_1.z.object({
|
|
|
45
68
|
timestamp: zod_1.z.string(),
|
|
46
69
|
mentions: zod_1.z.array(zod_1.z.string()),
|
|
47
70
|
metadata: zod_1.z.record(zod_1.z.any()).optional(),
|
|
71
|
+
attachments: zod_1.z.array(attachmentInfoSchema).optional(),
|
|
48
72
|
})),
|
|
49
73
|
count: zod_1.z.number(),
|
|
50
74
|
hasMore: zod_1.z.boolean(),
|
|
@@ -68,12 +92,25 @@ exports.waitForMessagesOutputSchema = zod_1.z.object({
|
|
|
68
92
|
timestamp: zod_1.z.string(),
|
|
69
93
|
mentions: zod_1.z.array(zod_1.z.string()),
|
|
70
94
|
metadata: zod_1.z.record(zod_1.z.any()).optional(),
|
|
95
|
+
attachments: zod_1.z.array(attachmentInfoSchema).optional(),
|
|
71
96
|
})),
|
|
72
97
|
hasNewMessages: zod_1.z.boolean(),
|
|
73
98
|
timedOut: zod_1.z.boolean(),
|
|
74
99
|
warning: zod_1.z.string().optional(),
|
|
75
100
|
waitingAgents: zod_1.z.array(zod_1.z.string()).optional(),
|
|
76
101
|
});
|
|
102
|
+
exports.downloadAttachmentInputSchema = zod_1.z.object({
|
|
103
|
+
roomName: roomNameSchema,
|
|
104
|
+
attachmentId: zod_1.z.string(),
|
|
105
|
+
savePath: zod_1.z.string(),
|
|
106
|
+
});
|
|
107
|
+
exports.downloadAttachmentOutputSchema = zod_1.z.object({
|
|
108
|
+
path: zod_1.z.string(),
|
|
109
|
+
name: zod_1.z.string(),
|
|
110
|
+
size: zod_1.z.number(),
|
|
111
|
+
contentType: zod_1.z.string(),
|
|
112
|
+
});
|
|
77
113
|
exports.sendMessageSchema = exports.sendMessageInputSchema;
|
|
78
114
|
exports.getMessagesSchema = exports.getMessagesInputSchema;
|
|
115
|
+
exports.downloadAttachmentSchema = exports.downloadAttachmentInputSchema;
|
|
79
116
|
//# sourceMappingURL=message.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.schema.js","sourceRoot":"","sources":["../../src/schemas/message.schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"message.schema.js","sourceRoot":"","sources":["../../src/schemas/message.schema.ts"],"names":[],"mappings":";;;AAqBA,sCAaC;AA/BD,6BAAwB;AAGxB,MAAM,cAAc,GAAG,OAAC;KACrB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,2BAA2B,CAAC;KACnC,GAAG,CAAC,EAAE,EAAE,uCAAuC,CAAC;KAChD,KAAK,CAAC,kBAAkB,EAAE,+EAA+E,CAAC,CAAC;AAE9G,MAAM,eAAe,GAAG,OAAC;KACtB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,4BAA4B,CAAC;KACpC,GAAG,CAAC,EAAE,EAAE,wCAAwC,CAAC,CAAC;AAGxC,QAAA,kBAAkB,GAAG,KAAK,CAAC;AAGxC,SAAgB,aAAa,CAAC,OAAe,EAAE,OAAgB;IAC7D,OAAO,CAAC,KAA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EAAE;QACtC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE;KACtD,CAAC,CAAC;IACH,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE;IAC3B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAGU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,QAAQ,EAAE,cAAc;IACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,8BAAsB,CAAC;AAC3C,QAAA,iBAAiB,GAAG,8BAAsB,CAAC;AAC3C,QAAA,wBAAwB,GAAG,qCAA6B,CAAC"}
|
|
@@ -40,14 +40,14 @@ export declare const listRoomsOutputSchema: z.ZodObject<{
|
|
|
40
40
|
messageCount: z.ZodNumber;
|
|
41
41
|
userCount: z.ZodNumber;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
messageCount: number;
|
|
44
43
|
name: string;
|
|
44
|
+
messageCount: number;
|
|
45
45
|
userCount: number;
|
|
46
46
|
createdAt: string;
|
|
47
47
|
description?: string | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
messageCount: number;
|
|
50
49
|
name: string;
|
|
50
|
+
messageCount: number;
|
|
51
51
|
userCount: number;
|
|
52
52
|
createdAt: string;
|
|
53
53
|
description?: string | undefined;
|
|
@@ -55,8 +55,8 @@ export declare const listRoomsOutputSchema: z.ZodObject<{
|
|
|
55
55
|
total: z.ZodNumber;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
rooms: {
|
|
58
|
-
messageCount: number;
|
|
59
58
|
name: string;
|
|
59
|
+
messageCount: number;
|
|
60
60
|
userCount: number;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
description?: string | undefined;
|
|
@@ -64,8 +64,8 @@ export declare const listRoomsOutputSchema: z.ZodObject<{
|
|
|
64
64
|
total: number;
|
|
65
65
|
}, {
|
|
66
66
|
rooms: {
|
|
67
|
-
messageCount: number;
|
|
68
67
|
name: string;
|
|
68
|
+
messageCount: number;
|
|
69
69
|
userCount: number;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
description?: string | undefined;
|
|
@@ -183,8 +183,8 @@ export declare const listRoomUsersOutputSchema: z.ZodObject<{
|
|
|
183
183
|
capabilities?: string[] | undefined;
|
|
184
184
|
}>>;
|
|
185
185
|
}, "strip", z.ZodTypeAny, {
|
|
186
|
-
agentName: string;
|
|
187
186
|
status: "online" | "offline";
|
|
187
|
+
agentName: string;
|
|
188
188
|
messageCount: number;
|
|
189
189
|
joinedAt: string;
|
|
190
190
|
profile?: {
|
|
@@ -194,8 +194,8 @@ export declare const listRoomUsersOutputSchema: z.ZodObject<{
|
|
|
194
194
|
capabilities?: string[] | undefined;
|
|
195
195
|
} | undefined;
|
|
196
196
|
}, {
|
|
197
|
-
agentName: string;
|
|
198
197
|
status: "online" | "offline";
|
|
198
|
+
agentName: string;
|
|
199
199
|
messageCount: number;
|
|
200
200
|
joinedAt: string;
|
|
201
201
|
profile?: {
|
|
@@ -210,8 +210,8 @@ export declare const listRoomUsersOutputSchema: z.ZodObject<{
|
|
|
210
210
|
roomName: string;
|
|
211
211
|
total: number;
|
|
212
212
|
users: {
|
|
213
|
-
agentName: string;
|
|
214
213
|
status: "online" | "offline";
|
|
214
|
+
agentName: string;
|
|
215
215
|
messageCount: number;
|
|
216
216
|
joinedAt: string;
|
|
217
217
|
profile?: {
|
|
@@ -225,8 +225,8 @@ export declare const listRoomUsersOutputSchema: z.ZodObject<{
|
|
|
225
225
|
roomName: string;
|
|
226
226
|
total: number;
|
|
227
227
|
users: {
|
|
228
|
-
agentName: string;
|
|
229
228
|
status: "online" | "offline";
|
|
229
|
+
agentName: string;
|
|
230
230
|
messageCount: number;
|
|
231
231
|
joinedAt: string;
|
|
232
232
|
profile?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolRegistry.d.ts","sourceRoot":"","sources":["../../src/server/ToolRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AASnE,OAAO,EAAsC,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAWxF,qBAAa,YAAY;IACvB,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,iBAAiB,CAAoB;IAE7C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA0C;IAEhE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8E;gBAExF,OAAO,CAAC,EAAE,MAAM;IAYtB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolRegistry.d.ts","sourceRoot":"","sources":["../../src/server/ToolRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AASnE,OAAO,EAAsC,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAWxF,qBAAa,YAAY;IACvB,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,iBAAiB,CAAoB;IAE7C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA0C;IAEhE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8E;gBAExF,OAAO,CAAC,EAAE,MAAM;IAYtB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0HhD,IAAI,IAAI,IAAI,aAAa,CAExB;IAEK,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YAYjB,eAAe;CAY9B"}
|
|
@@ -53,7 +53,7 @@ class ToolRegistry {
|
|
|
53
53
|
})
|
|
54
54
|
});
|
|
55
55
|
server.setRequestHandler(listToolsRequestSchema, async () => ({
|
|
56
|
-
tools: index_1.allTools
|
|
56
|
+
tools: this.cloud ? index_1.cloudTools : index_1.allTools
|
|
57
57
|
}));
|
|
58
58
|
server.setRequestHandler(callToolRequestSchema, async (request, extra) => {
|
|
59
59
|
const { name, arguments: args } = request.params;
|
|
@@ -72,9 +72,14 @@ class ToolRegistry {
|
|
|
72
72
|
result = await handler(args, this.roomsAdapter);
|
|
73
73
|
break;
|
|
74
74
|
case 'agent_communication_send_message':
|
|
75
|
+
result = await (0, index_1.handleSendMessage)(args, this.messagingAdapter, extra.signal);
|
|
76
|
+
break;
|
|
75
77
|
case 'agent_communication_get_messages':
|
|
76
78
|
result = await handler(args, this.messagingAdapter);
|
|
77
79
|
break;
|
|
80
|
+
case 'agent_communication_download_attachment':
|
|
81
|
+
result = await (0, index_1.handleDownloadAttachment)(args, this.messagingAdapter, extra.signal);
|
|
82
|
+
break;
|
|
78
83
|
case 'agent_communication_wait_for_messages':
|
|
79
84
|
result = await this.waitForMessages(args, extra.signal);
|
|
80
85
|
break;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolRegistry.js","sourceRoot":"","sources":["../../src/server/ToolRegistry.ts"],"names":[],"mappings":";;;AACA,iEAAyE;AACz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@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { listRoomsTool, createRoomTool, enterRoomTool, leaveRoomTool, listRoomUsersTool, handleListRooms, handleCreateRoom, handleEnterRoom, handleLeaveRoom, handleListRoomUsers } from './room';
|
|
2
2
|
export { listRoomsTool, createRoomTool, enterRoomTool, leaveRoomTool, listRoomUsersTool, handleListRooms, handleCreateRoom, handleEnterRoom, handleLeaveRoom, handleListRoomUsers };
|
|
3
|
-
import { sendMessageTool, getMessagesTool, waitForMessagesTool, handleSendMessage, handleGetMessages, handleWaitForMessages } from './messaging';
|
|
4
|
-
export { sendMessageTool, getMessagesTool, waitForMessagesTool, handleSendMessage, handleGetMessages, handleWaitForMessages };
|
|
3
|
+
import { sendMessageTool, cloudSendMessageTool, getMessagesTool, waitForMessagesTool, downloadAttachmentTool, handleSendMessage, handleGetMessages, handleWaitForMessages, handleDownloadAttachment } from './messaging';
|
|
4
|
+
export { sendMessageTool, cloudSendMessageTool, getMessagesTool, waitForMessagesTool, downloadAttachmentTool, handleSendMessage, handleGetMessages, handleWaitForMessages, handleDownloadAttachment };
|
|
5
5
|
import { getStatusTool, clearRoomMessagesTool, handleGetStatus, handleClearRoomMessages } from './management';
|
|
6
6
|
export { getStatusTool, clearRoomMessagesTool, handleGetStatus, handleClearRoomMessages };
|
|
7
7
|
export declare const allTools: {
|
|
@@ -33,6 +33,35 @@ export declare const allTools: {
|
|
|
33
33
|
openWorldHint?: boolean | undefined;
|
|
34
34
|
} | undefined;
|
|
35
35
|
}[];
|
|
36
|
+
export declare const cloudTools: {
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
name: string;
|
|
39
|
+
inputSchema: {
|
|
40
|
+
[x: string]: unknown;
|
|
41
|
+
type: "object";
|
|
42
|
+
properties?: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
} | undefined;
|
|
45
|
+
required?: string[] | undefined;
|
|
46
|
+
};
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
outputSchema?: {
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
type: "object";
|
|
51
|
+
properties?: {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
} | undefined;
|
|
54
|
+
required?: string[] | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
annotations?: {
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
title?: string | undefined;
|
|
59
|
+
readOnlyHint?: boolean | undefined;
|
|
60
|
+
destructiveHint?: boolean | undefined;
|
|
61
|
+
idempotentHint?: boolean | undefined;
|
|
62
|
+
openWorldHint?: boolean | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
}[];
|
|
36
65
|
export declare const toolHandlers: {
|
|
37
66
|
agent_communication_list_rooms: typeof handleListRooms;
|
|
38
67
|
agent_communication_create_room: typeof handleCreateRoom;
|
|
@@ -42,6 +71,7 @@ export declare const toolHandlers: {
|
|
|
42
71
|
agent_communication_send_message: typeof handleSendMessage;
|
|
43
72
|
agent_communication_get_messages: typeof handleGetMessages;
|
|
44
73
|
agent_communication_wait_for_messages: typeof handleWaitForMessages;
|
|
74
|
+
agent_communication_download_attachment: typeof handleDownloadAttachment;
|
|
45
75
|
agent_communication_get_status: typeof handleGetStatus;
|
|
46
76
|
agent_communication_clear_room_messages: typeof handleClearRoomMessages;
|
|
47
77
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,cAAc,EACd,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACpB,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACL,aAAa,EACb,cAAc,EACd,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACpB,CAAC;AAGF,OAAO,EACL,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,cAAc,EACd,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACpB,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACL,aAAa,EACb,cAAc,EACd,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACpB,CAAC;AAGF,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACzB,CAAC;AAGF,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACxB,CAAC;AAGF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBpB,CAAC;AAIF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGtB,CAAC;AAGF,eAAO,MAAM,YAAY;;;;;;;;;;;;CAYxB,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toolHandlers = exports.allTools = exports.handleClearRoomMessages = exports.handleGetStatus = exports.clearRoomMessagesTool = exports.getStatusTool = exports.handleWaitForMessages = exports.handleGetMessages = exports.handleSendMessage = exports.waitForMessagesTool = exports.getMessagesTool = exports.sendMessageTool = exports.handleListRoomUsers = exports.handleLeaveRoom = exports.handleEnterRoom = exports.handleCreateRoom = exports.handleListRooms = exports.listRoomUsersTool = exports.leaveRoomTool = exports.enterRoomTool = exports.createRoomTool = exports.listRoomsTool = void 0;
|
|
3
|
+
exports.toolHandlers = exports.cloudTools = exports.allTools = exports.handleClearRoomMessages = exports.handleGetStatus = exports.clearRoomMessagesTool = exports.getStatusTool = exports.handleDownloadAttachment = exports.handleWaitForMessages = exports.handleGetMessages = exports.handleSendMessage = exports.downloadAttachmentTool = exports.waitForMessagesTool = exports.getMessagesTool = exports.cloudSendMessageTool = exports.sendMessageTool = exports.handleListRoomUsers = exports.handleLeaveRoom = exports.handleEnterRoom = exports.handleCreateRoom = exports.handleListRooms = exports.listRoomUsersTool = exports.leaveRoomTool = exports.enterRoomTool = exports.createRoomTool = exports.listRoomsTool = void 0;
|
|
4
4
|
const room_1 = require("./room");
|
|
5
5
|
Object.defineProperty(exports, "listRoomsTool", { enumerable: true, get: function () { return room_1.listRoomsTool; } });
|
|
6
6
|
Object.defineProperty(exports, "createRoomTool", { enumerable: true, get: function () { return room_1.createRoomTool; } });
|
|
@@ -14,11 +14,14 @@ Object.defineProperty(exports, "handleLeaveRoom", { enumerable: true, get: funct
|
|
|
14
14
|
Object.defineProperty(exports, "handleListRoomUsers", { enumerable: true, get: function () { return room_1.handleListRoomUsers; } });
|
|
15
15
|
const messaging_1 = require("./messaging");
|
|
16
16
|
Object.defineProperty(exports, "sendMessageTool", { enumerable: true, get: function () { return messaging_1.sendMessageTool; } });
|
|
17
|
+
Object.defineProperty(exports, "cloudSendMessageTool", { enumerable: true, get: function () { return messaging_1.cloudSendMessageTool; } });
|
|
17
18
|
Object.defineProperty(exports, "getMessagesTool", { enumerable: true, get: function () { return messaging_1.getMessagesTool; } });
|
|
18
19
|
Object.defineProperty(exports, "waitForMessagesTool", { enumerable: true, get: function () { return messaging_1.waitForMessagesTool; } });
|
|
20
|
+
Object.defineProperty(exports, "downloadAttachmentTool", { enumerable: true, get: function () { return messaging_1.downloadAttachmentTool; } });
|
|
19
21
|
Object.defineProperty(exports, "handleSendMessage", { enumerable: true, get: function () { return messaging_1.handleSendMessage; } });
|
|
20
22
|
Object.defineProperty(exports, "handleGetMessages", { enumerable: true, get: function () { return messaging_1.handleGetMessages; } });
|
|
21
23
|
Object.defineProperty(exports, "handleWaitForMessages", { enumerable: true, get: function () { return messaging_1.handleWaitForMessages; } });
|
|
24
|
+
Object.defineProperty(exports, "handleDownloadAttachment", { enumerable: true, get: function () { return messaging_1.handleDownloadAttachment; } });
|
|
22
25
|
const management_1 = require("./management");
|
|
23
26
|
Object.defineProperty(exports, "getStatusTool", { enumerable: true, get: function () { return management_1.getStatusTool; } });
|
|
24
27
|
Object.defineProperty(exports, "clearRoomMessagesTool", { enumerable: true, get: function () { return management_1.clearRoomMessagesTool; } });
|
|
@@ -36,6 +39,10 @@ exports.allTools = [
|
|
|
36
39
|
management_1.getStatusTool,
|
|
37
40
|
management_1.clearRoomMessagesTool
|
|
38
41
|
];
|
|
42
|
+
exports.cloudTools = [
|
|
43
|
+
...exports.allTools.map(tool => tool === messaging_1.sendMessageTool ? messaging_1.cloudSendMessageTool : tool),
|
|
44
|
+
messaging_1.downloadAttachmentTool
|
|
45
|
+
];
|
|
39
46
|
exports.toolHandlers = {
|
|
40
47
|
'agent_communication_list_rooms': room_1.handleListRooms,
|
|
41
48
|
'agent_communication_create_room': room_1.handleCreateRoom,
|
|
@@ -45,6 +52,7 @@ exports.toolHandlers = {
|
|
|
45
52
|
'agent_communication_send_message': messaging_1.handleSendMessage,
|
|
46
53
|
'agent_communication_get_messages': messaging_1.handleGetMessages,
|
|
47
54
|
'agent_communication_wait_for_messages': messaging_1.handleWaitForMessages,
|
|
55
|
+
'agent_communication_download_attachment': messaging_1.handleDownloadAttachment,
|
|
48
56
|
'agent_communication_get_status': management_1.handleGetStatus,
|
|
49
57
|
'agent_communication_clear_room_messages': management_1.handleClearRoomMessages
|
|
50
58
|
};
|