veryfront 0.1.62 → 0.1.64

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 (73) hide show
  1. package/esm/cli/templates/manifest.js +37 -37
  2. package/esm/deno.d.ts +3 -0
  3. package/esm/deno.js +6 -3
  4. package/esm/src/agent/composition/composition.d.ts.map +1 -1
  5. package/esm/src/agent/composition/composition.js +13 -3
  6. package/esm/src/agent/factory.d.ts.map +1 -1
  7. package/esm/src/agent/factory.js +3 -3
  8. package/esm/src/agent/middleware/security/validator.d.ts +92 -0
  9. package/esm/src/agent/middleware/security/validator.d.ts.map +1 -0
  10. package/esm/src/agent/middleware/security/validator.js +187 -0
  11. package/esm/src/agent/runtime/index.d.ts +3 -2
  12. package/esm/src/agent/runtime/index.d.ts.map +1 -1
  13. package/esm/src/agent/runtime/index.js +16 -8
  14. package/esm/src/agent/types.d.ts +4 -0
  15. package/esm/src/agent/types.d.ts.map +1 -1
  16. package/esm/src/channels/invoke.d.ts +491 -0
  17. package/esm/src/channels/invoke.d.ts.map +1 -0
  18. package/esm/src/channels/invoke.js +417 -0
  19. package/esm/src/embedding/embedding.js +2 -2
  20. package/esm/src/integrations/endpoint-executor.d.ts +1 -0
  21. package/esm/src/integrations/endpoint-executor.d.ts.map +1 -1
  22. package/esm/src/integrations/endpoint-executor.js +44 -0
  23. package/esm/src/integrations/schema.d.ts +2 -2
  24. package/esm/src/oauth/handlers/init-handler.d.ts +6 -2
  25. package/esm/src/oauth/handlers/init-handler.d.ts.map +1 -1
  26. package/esm/src/oauth/handlers/init-handler.js +8 -2
  27. package/esm/src/platform/compat/opaque-deps.d.ts.map +1 -1
  28. package/esm/src/platform/compat/opaque-deps.js +10 -1
  29. package/esm/src/prompt/factory.d.ts.map +1 -1
  30. package/esm/src/prompt/factory.js +9 -1
  31. package/esm/src/react/components/ai/markdown.d.ts.map +1 -1
  32. package/esm/src/react/components/ai/markdown.js +4 -4
  33. package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
  34. package/esm/src/server/handlers/dev/framework-candidates.generated.js +5 -4
  35. package/esm/src/server/handlers/preview/markdown-html-generator.js +1 -1
  36. package/esm/src/server/handlers/request/api/api-handler-wrapper.d.ts.map +1 -1
  37. package/esm/src/server/handlers/request/api/api-handler-wrapper.js +1 -74
  38. package/esm/src/server/handlers/request/api/project-discovery.d.ts +9 -0
  39. package/esm/src/server/handlers/request/api/project-discovery.d.ts.map +1 -0
  40. package/esm/src/server/handlers/request/api/project-discovery.js +74 -0
  41. package/esm/src/server/handlers/request/channel-assistants.handler.d.ts +11 -0
  42. package/esm/src/server/handlers/request/channel-assistants.handler.d.ts.map +1 -0
  43. package/esm/src/server/handlers/request/channel-assistants.handler.js +71 -0
  44. package/esm/src/server/handlers/request/channel-invoke.handler.d.ts +11 -0
  45. package/esm/src/server/handlers/request/channel-invoke.handler.d.ts.map +1 -0
  46. package/esm/src/server/handlers/request/channel-invoke.handler.js +72 -0
  47. package/esm/src/server/runtime-handler/index.d.ts.map +1 -1
  48. package/esm/src/server/runtime-handler/index.js +4 -0
  49. package/esm/src/transforms/md/compiler/md-compiler.d.ts.map +1 -1
  50. package/esm/src/transforms/md/compiler/md-compiler.js +25 -1
  51. package/package.json +3 -1
  52. package/src/cli/templates/manifest.js +37 -37
  53. package/src/deno.js +6 -3
  54. package/src/src/agent/composition/composition.ts +15 -3
  55. package/src/src/agent/factory.ts +19 -6
  56. package/src/src/agent/middleware/security/validator.ts +288 -0
  57. package/src/src/agent/runtime/index.ts +26 -3
  58. package/src/src/agent/types.ts +4 -0
  59. package/src/src/channels/invoke.ts +546 -0
  60. package/src/src/embedding/embedding.ts +2 -2
  61. package/src/src/integrations/endpoint-executor.ts +51 -0
  62. package/src/src/oauth/handlers/init-handler.ts +20 -5
  63. package/src/src/platform/compat/opaque-deps.ts +19 -4
  64. package/src/src/prompt/factory.ts +10 -1
  65. package/src/src/react/components/ai/markdown.tsx +5 -4
  66. package/src/src/server/handlers/dev/framework-candidates.generated.ts +5 -4
  67. package/src/src/server/handlers/preview/markdown-html-generator.ts +1 -1
  68. package/src/src/server/handlers/request/api/api-handler-wrapper.ts +1 -85
  69. package/src/src/server/handlers/request/api/project-discovery.ts +86 -0
  70. package/src/src/server/handlers/request/channel-assistants.handler.ts +94 -0
  71. package/src/src/server/handlers/request/channel-invoke.handler.ts +95 -0
  72. package/src/src/server/runtime-handler/index.ts +4 -0
  73. package/src/src/transforms/md/compiler/md-compiler.ts +27 -1
@@ -0,0 +1,491 @@
1
+ import type { Agent, AgentMessage as Message, AgentResponse } from "../agent/index.js";
2
+ import type { HandlerContext } from "../types/index.js";
3
+ import { z } from "zod";
4
+ export declare const ChannelInvokeRequestSchema: z.ZodObject<{
5
+ dispatchId: z.ZodString;
6
+ conversationId: z.ZodString;
7
+ projectId: z.ZodString;
8
+ assistantId: z.ZodString;
9
+ platform: z.ZodLiteral<"slack">;
10
+ inboundMessage: z.ZodObject<{
11
+ text: z.ZodString;
12
+ userId: z.ZodString;
13
+ userName: z.ZodString;
14
+ isDirectMessage: z.ZodBoolean;
15
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
16
+ id: z.ZodString;
17
+ kind: z.ZodEnum<["image", "file"]>;
18
+ filename: z.ZodOptional<z.ZodString>;
19
+ mediaType: z.ZodOptional<z.ZodString>;
20
+ privateUrl: z.ZodOptional<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ kind: "file" | "image";
23
+ id: string;
24
+ filename?: string | undefined;
25
+ mediaType?: string | undefined;
26
+ privateUrl?: string | undefined;
27
+ }, {
28
+ kind: "file" | "image";
29
+ id: string;
30
+ filename?: string | undefined;
31
+ mediaType?: string | undefined;
32
+ privateUrl?: string | undefined;
33
+ }>, "many">>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ text: string;
36
+ userId: string;
37
+ userName: string;
38
+ isDirectMessage: boolean;
39
+ attachments?: {
40
+ kind: "file" | "image";
41
+ id: string;
42
+ filename?: string | undefined;
43
+ mediaType?: string | undefined;
44
+ privateUrl?: string | undefined;
45
+ }[] | undefined;
46
+ }, {
47
+ text: string;
48
+ userId: string;
49
+ userName: string;
50
+ isDirectMessage: boolean;
51
+ attachments?: {
52
+ kind: "file" | "image";
53
+ id: string;
54
+ filename?: string | undefined;
55
+ mediaType?: string | undefined;
56
+ privateUrl?: string | undefined;
57
+ }[] | undefined;
58
+ }>;
59
+ conversationHistory: z.ZodArray<z.ZodObject<{
60
+ id: z.ZodString;
61
+ role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
62
+ parts: z.ZodArray<z.ZodObject<{
63
+ type: z.ZodString;
64
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
65
+ type: z.ZodString;
66
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
67
+ type: z.ZodString;
68
+ }, z.ZodTypeAny, "passthrough">>, "many">;
69
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
70
+ createdAt: z.ZodOptional<z.ZodString>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ id: string;
73
+ role: "tool" | "user" | "assistant" | "system";
74
+ parts: z.objectOutputType<{
75
+ type: z.ZodString;
76
+ }, z.ZodTypeAny, "passthrough">[];
77
+ metadata?: Record<string, unknown> | undefined;
78
+ createdAt?: string | undefined;
79
+ }, {
80
+ id: string;
81
+ role: "tool" | "user" | "assistant" | "system";
82
+ parts: z.objectInputType<{
83
+ type: z.ZodString;
84
+ }, z.ZodTypeAny, "passthrough">[];
85
+ metadata?: Record<string, unknown> | undefined;
86
+ createdAt?: string | undefined;
87
+ }>, "many">;
88
+ generation: z.ZodOptional<z.ZodObject<{
89
+ maxResponseTokens: z.ZodOptional<z.ZodNumber>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ maxResponseTokens?: number | undefined;
92
+ }, {
93
+ maxResponseTokens?: number | undefined;
94
+ }>>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ platform: "slack";
97
+ projectId: string;
98
+ dispatchId: string;
99
+ conversationId: string;
100
+ assistantId: string;
101
+ inboundMessage: {
102
+ text: string;
103
+ userId: string;
104
+ userName: string;
105
+ isDirectMessage: boolean;
106
+ attachments?: {
107
+ kind: "file" | "image";
108
+ id: string;
109
+ filename?: string | undefined;
110
+ mediaType?: string | undefined;
111
+ privateUrl?: string | undefined;
112
+ }[] | undefined;
113
+ };
114
+ conversationHistory: {
115
+ id: string;
116
+ role: "tool" | "user" | "assistant" | "system";
117
+ parts: z.objectOutputType<{
118
+ type: z.ZodString;
119
+ }, z.ZodTypeAny, "passthrough">[];
120
+ metadata?: Record<string, unknown> | undefined;
121
+ createdAt?: string | undefined;
122
+ }[];
123
+ generation?: {
124
+ maxResponseTokens?: number | undefined;
125
+ } | undefined;
126
+ }, {
127
+ platform: "slack";
128
+ projectId: string;
129
+ dispatchId: string;
130
+ conversationId: string;
131
+ assistantId: string;
132
+ inboundMessage: {
133
+ text: string;
134
+ userId: string;
135
+ userName: string;
136
+ isDirectMessage: boolean;
137
+ attachments?: {
138
+ kind: "file" | "image";
139
+ id: string;
140
+ filename?: string | undefined;
141
+ mediaType?: string | undefined;
142
+ privateUrl?: string | undefined;
143
+ }[] | undefined;
144
+ };
145
+ conversationHistory: {
146
+ id: string;
147
+ role: "tool" | "user" | "assistant" | "system";
148
+ parts: z.objectInputType<{
149
+ type: z.ZodString;
150
+ }, z.ZodTypeAny, "passthrough">[];
151
+ metadata?: Record<string, unknown> | undefined;
152
+ createdAt?: string | undefined;
153
+ }[];
154
+ generation?: {
155
+ maxResponseTokens?: number | undefined;
156
+ } | undefined;
157
+ }>;
158
+ export declare const ChannelAssistantsRequestSchema: z.ZodObject<{
159
+ requestId: z.ZodString;
160
+ projectId: z.ZodString;
161
+ platform: z.ZodLiteral<"slack">;
162
+ }, "strip", z.ZodTypeAny, {
163
+ requestId: string;
164
+ platform: "slack";
165
+ projectId: string;
166
+ }, {
167
+ requestId: string;
168
+ platform: "slack";
169
+ projectId: string;
170
+ }>;
171
+ export declare const ChannelAssistantSchema: z.ZodObject<{
172
+ id: z.ZodString;
173
+ name: z.ZodString;
174
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
175
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ name: string;
178
+ id: string;
179
+ description?: string | null | undefined;
180
+ model?: string | null | undefined;
181
+ }, {
182
+ name: string;
183
+ id: string;
184
+ description?: string | null | undefined;
185
+ model?: string | null | undefined;
186
+ }>;
187
+ export declare const ChannelAssistantsResponseSchema: z.ZodObject<{
188
+ assistants: z.ZodArray<z.ZodObject<{
189
+ id: z.ZodString;
190
+ name: z.ZodString;
191
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ name: string;
195
+ id: string;
196
+ description?: string | null | undefined;
197
+ model?: string | null | undefined;
198
+ }, {
199
+ name: string;
200
+ id: string;
201
+ description?: string | null | undefined;
202
+ model?: string | null | undefined;
203
+ }>, "many">;
204
+ }, "strip", z.ZodTypeAny, {
205
+ assistants: {
206
+ name: string;
207
+ id: string;
208
+ description?: string | null | undefined;
209
+ model?: string | null | undefined;
210
+ }[];
211
+ }, {
212
+ assistants: {
213
+ name: string;
214
+ id: string;
215
+ description?: string | null | undefined;
216
+ model?: string | null | undefined;
217
+ }[];
218
+ }>;
219
+ export declare const ChannelResponsePartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
220
+ type: z.ZodLiteral<"text">;
221
+ text: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ type: "text";
224
+ text: string;
225
+ }, {
226
+ type: "text";
227
+ text: string;
228
+ }>, z.ZodObject<{
229
+ type: z.ZodLiteral<"tool_call">;
230
+ id: z.ZodString;
231
+ name: z.ZodString;
232
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
233
+ state: z.ZodEnum<["streaming", "pending", "completed", "error"]>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ type: "tool_call";
236
+ name: string;
237
+ input: Record<string, unknown>;
238
+ id: string;
239
+ state: "error" | "streaming" | "completed" | "pending";
240
+ }, {
241
+ type: "tool_call";
242
+ name: string;
243
+ input: Record<string, unknown>;
244
+ id: string;
245
+ state: "error" | "streaming" | "completed" | "pending";
246
+ }>, z.ZodObject<{
247
+ type: z.ZodLiteral<"tool_result">;
248
+ tool_call_id: z.ZodString;
249
+ output: z.ZodUnknown;
250
+ is_error: z.ZodOptional<z.ZodBoolean>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ type: "tool_result";
253
+ tool_call_id: string;
254
+ output?: unknown;
255
+ is_error?: boolean | undefined;
256
+ }, {
257
+ type: "tool_result";
258
+ tool_call_id: string;
259
+ output?: unknown;
260
+ is_error?: boolean | undefined;
261
+ }>, z.ZodObject<{
262
+ type: z.ZodLiteral<"reasoning">;
263
+ text: z.ZodString;
264
+ }, "strip", z.ZodTypeAny, {
265
+ type: "reasoning";
266
+ text: string;
267
+ }, {
268
+ type: "reasoning";
269
+ text: string;
270
+ }>, z.ZodObject<{
271
+ type: z.ZodLiteral<"error">;
272
+ code: z.ZodString;
273
+ message: z.ZodString;
274
+ }, "strip", z.ZodTypeAny, {
275
+ type: "error";
276
+ message: string;
277
+ code: string;
278
+ }, {
279
+ type: "error";
280
+ message: string;
281
+ code: string;
282
+ }>]>;
283
+ export declare const ChannelInvokeResponseSchema: z.ZodObject<{
284
+ ignored: z.ZodBoolean;
285
+ responseParts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
286
+ type: z.ZodLiteral<"text">;
287
+ text: z.ZodString;
288
+ }, "strip", z.ZodTypeAny, {
289
+ type: "text";
290
+ text: string;
291
+ }, {
292
+ type: "text";
293
+ text: string;
294
+ }>, z.ZodObject<{
295
+ type: z.ZodLiteral<"tool_call">;
296
+ id: z.ZodString;
297
+ name: z.ZodString;
298
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
299
+ state: z.ZodEnum<["streaming", "pending", "completed", "error"]>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ type: "tool_call";
302
+ name: string;
303
+ input: Record<string, unknown>;
304
+ id: string;
305
+ state: "error" | "streaming" | "completed" | "pending";
306
+ }, {
307
+ type: "tool_call";
308
+ name: string;
309
+ input: Record<string, unknown>;
310
+ id: string;
311
+ state: "error" | "streaming" | "completed" | "pending";
312
+ }>, z.ZodObject<{
313
+ type: z.ZodLiteral<"tool_result">;
314
+ tool_call_id: z.ZodString;
315
+ output: z.ZodUnknown;
316
+ is_error: z.ZodOptional<z.ZodBoolean>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ type: "tool_result";
319
+ tool_call_id: string;
320
+ output?: unknown;
321
+ is_error?: boolean | undefined;
322
+ }, {
323
+ type: "tool_result";
324
+ tool_call_id: string;
325
+ output?: unknown;
326
+ is_error?: boolean | undefined;
327
+ }>, z.ZodObject<{
328
+ type: z.ZodLiteral<"reasoning">;
329
+ text: z.ZodString;
330
+ }, "strip", z.ZodTypeAny, {
331
+ type: "reasoning";
332
+ text: string;
333
+ }, {
334
+ type: "reasoning";
335
+ text: string;
336
+ }>, z.ZodObject<{
337
+ type: z.ZodLiteral<"error">;
338
+ code: z.ZodString;
339
+ message: z.ZodString;
340
+ }, "strip", z.ZodTypeAny, {
341
+ type: "error";
342
+ message: string;
343
+ code: string;
344
+ }, {
345
+ type: "error";
346
+ message: string;
347
+ code: string;
348
+ }>]>, "many">>;
349
+ tokenUsage: z.ZodOptional<z.ZodObject<{
350
+ inputTokens: z.ZodOptional<z.ZodNumber>;
351
+ outputTokens: z.ZodOptional<z.ZodNumber>;
352
+ totalTokens: z.ZodOptional<z.ZodNumber>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ totalTokens?: number | undefined;
355
+ inputTokens?: number | undefined;
356
+ outputTokens?: number | undefined;
357
+ }, {
358
+ totalTokens?: number | undefined;
359
+ inputTokens?: number | undefined;
360
+ outputTokens?: number | undefined;
361
+ }>>;
362
+ error: z.ZodOptional<z.ZodObject<{
363
+ code: z.ZodEnum<["provider_error", "internal_error"]>;
364
+ retryable: z.ZodBoolean;
365
+ }, "strip", z.ZodTypeAny, {
366
+ code: "provider_error" | "internal_error";
367
+ retryable: boolean;
368
+ }, {
369
+ code: "provider_error" | "internal_error";
370
+ retryable: boolean;
371
+ }>>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ ignored: boolean;
374
+ error?: {
375
+ code: "provider_error" | "internal_error";
376
+ retryable: boolean;
377
+ } | undefined;
378
+ responseParts?: ({
379
+ type: "text";
380
+ text: string;
381
+ } | {
382
+ type: "tool_call";
383
+ name: string;
384
+ input: Record<string, unknown>;
385
+ id: string;
386
+ state: "error" | "streaming" | "completed" | "pending";
387
+ } | {
388
+ type: "tool_result";
389
+ tool_call_id: string;
390
+ output?: unknown;
391
+ is_error?: boolean | undefined;
392
+ } | {
393
+ type: "reasoning";
394
+ text: string;
395
+ } | {
396
+ type: "error";
397
+ message: string;
398
+ code: string;
399
+ })[] | undefined;
400
+ tokenUsage?: {
401
+ totalTokens?: number | undefined;
402
+ inputTokens?: number | undefined;
403
+ outputTokens?: number | undefined;
404
+ } | undefined;
405
+ }, {
406
+ ignored: boolean;
407
+ error?: {
408
+ code: "provider_error" | "internal_error";
409
+ retryable: boolean;
410
+ } | undefined;
411
+ responseParts?: ({
412
+ type: "text";
413
+ text: string;
414
+ } | {
415
+ type: "tool_call";
416
+ name: string;
417
+ input: Record<string, unknown>;
418
+ id: string;
419
+ state: "error" | "streaming" | "completed" | "pending";
420
+ } | {
421
+ type: "tool_result";
422
+ tool_call_id: string;
423
+ output?: unknown;
424
+ is_error?: boolean | undefined;
425
+ } | {
426
+ type: "reasoning";
427
+ text: string;
428
+ } | {
429
+ type: "error";
430
+ message: string;
431
+ code: string;
432
+ })[] | undefined;
433
+ tokenUsage?: {
434
+ totalTokens?: number | undefined;
435
+ inputTokens?: number | undefined;
436
+ outputTokens?: number | undefined;
437
+ } | undefined;
438
+ }>;
439
+ declare const dispatchClaimsSchema: z.ZodObject<{
440
+ iss: z.ZodString;
441
+ aud: z.ZodString;
442
+ sub: z.ZodString;
443
+ project_id: z.ZodString;
444
+ platform: z.ZodString;
445
+ body_sha256: z.ZodString;
446
+ iat: z.ZodNumber;
447
+ exp: z.ZodNumber;
448
+ }, "strip", z.ZodTypeAny, {
449
+ project_id: string;
450
+ platform: string;
451
+ sub: string;
452
+ iss: string;
453
+ aud: string;
454
+ body_sha256: string;
455
+ iat: number;
456
+ exp: number;
457
+ }, {
458
+ project_id: string;
459
+ platform: string;
460
+ sub: string;
461
+ iss: string;
462
+ aud: string;
463
+ body_sha256: string;
464
+ iat: number;
465
+ exp: number;
466
+ }>;
467
+ export type ChannelInvokeRequest = z.infer<typeof ChannelInvokeRequestSchema>;
468
+ export type ChannelInvokeResponse = z.infer<typeof ChannelInvokeResponseSchema>;
469
+ export type ChannelAssistantsRequest = z.infer<typeof ChannelAssistantsRequestSchema>;
470
+ export type ChannelAssistantsResponse = z.infer<typeof ChannelAssistantsResponseSchema>;
471
+ type ChannelResponsePart = z.infer<typeof ChannelResponsePartSchema>;
472
+ type DispatchClaims = z.infer<typeof dispatchClaimsSchema>;
473
+ export interface ChannelInvokeDeps {
474
+ ensureProjectDiscovery: (ctx: HandlerContext) => Promise<void>;
475
+ getAgent: (id: string) => Agent | undefined;
476
+ getAllAgentIds: () => string[];
477
+ }
478
+ export declare const defaultChannelInvokeDeps: ChannelInvokeDeps;
479
+ export declare function listChannelAssistants(ctx: HandlerContext, deps: ChannelInvokeDeps): Promise<ChannelAssistantsResponse>;
480
+ export declare function verifyDispatchJws(jws: string, body: string, options: {
481
+ audience: string;
482
+ publicKeyPem: string;
483
+ maxAgeSeconds: number;
484
+ expectedProjectId?: string;
485
+ }): Promise<DispatchClaims>;
486
+ export declare function normalizeConversationHistoryForRuntime(messages: ChannelInvokeRequest["conversationHistory"]): Message[];
487
+ export declare function resolveChannelInvokeAgent(assistantId: string, deps: Pick<ChannelInvokeDeps, "getAgent" | "getAllAgentIds">): Agent | undefined;
488
+ export declare function buildChannelResponseParts(response: AgentResponse): ChannelResponsePart[];
489
+ export declare function executeChannelInvoke(payload: ChannelInvokeRequest, ctx: HandlerContext, deps: ChannelInvokeDeps): Promise<ChannelInvokeResponse>;
490
+ export {};
491
+ //# sourceMappingURL=invoke.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoke.d.ts","sourceRoot":"","sources":["../../../src/src/channels/invoke.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,IAAI,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiDxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAC;AAEzE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;EAIzC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE1C,CAAC;AAiCH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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