@agent-earth/shared 0.0.4

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 (43) hide show
  1. package/dist/index.d.ts +10 -0
  2. package/dist/index.js +1 -0
  3. package/dist/schemas/agent-system.schema.d.ts +11661 -0
  4. package/dist/schemas/agent-system.schema.js +1 -0
  5. package/dist/schemas/agent.schema.d.ts +901 -0
  6. package/dist/schemas/agent.schema.js +1 -0
  7. package/dist/schemas/cesium.schema.d.ts +517 -0
  8. package/dist/schemas/cesium.schema.js +1 -0
  9. package/dist/schemas/index.d.ts +10 -0
  10. package/dist/schemas/index.js +1 -0
  11. package/dist/schemas/mcp.schema.d.ts +1791 -0
  12. package/dist/schemas/mcp.schema.js +1 -0
  13. package/dist/schemas/service-config.schema.d.ts +1302 -0
  14. package/dist/schemas/service-config.schema.js +1 -0
  15. package/dist/schemas/skill.schema.d.ts +392 -0
  16. package/dist/schemas/skill.schema.js +1 -0
  17. package/dist/schemas/store.schema.d.ts +1242 -0
  18. package/dist/schemas/store.schema.js +1 -0
  19. package/dist/schemas/user.schema.d.ts +541 -0
  20. package/dist/schemas/user.schema.js +1 -0
  21. package/dist/schemas/websocket.schema.d.ts +1186 -0
  22. package/dist/schemas/websocket.schema.js +1 -0
  23. package/dist/schemas/wiki.schema.d.ts +865 -0
  24. package/dist/schemas/wiki.schema.js +1 -0
  25. package/dist/types/agent.d.ts +45 -0
  26. package/dist/types/agent.js +1 -0
  27. package/dist/types/at-file.d.ts +42 -0
  28. package/dist/types/at-file.js +1 -0
  29. package/dist/types/cesium.d.ts +116 -0
  30. package/dist/types/cesium.js +1 -0
  31. package/dist/types/hermes.d.ts +95 -0
  32. package/dist/types/hermes.js +1 -0
  33. package/dist/types/mcp.d.ts +202 -0
  34. package/dist/types/mcp.js +1 -0
  35. package/dist/types/skill.d.ts +29 -0
  36. package/dist/types/skill.js +1 -0
  37. package/dist/types/slash-command.d.ts +26 -0
  38. package/dist/types/slash-command.js +1 -0
  39. package/dist/types/websocket.d.ts +301 -0
  40. package/dist/types/websocket.js +1 -0
  41. package/dist/types/wiki.d.ts +66 -0
  42. package/dist/types/wiki.js +1 -0
  43. package/package.json +33 -0
@@ -0,0 +1,1186 @@
1
+ import { z } from 'zod';
2
+ export declare const WebSocketConfigSchema: z.ZodObject<{
3
+ enabled: z.ZodBoolean;
4
+ port: z.ZodNumber;
5
+ host: z.ZodString;
6
+ path: z.ZodString;
7
+ messageFormat: z.ZodEnum<["json", "binary"]>;
8
+ heartbeatInterval: z.ZodNumber;
9
+ maxConnections: z.ZodNumber;
10
+ }, "strip", z.ZodTypeAny, {
11
+ path: string;
12
+ enabled: boolean;
13
+ port: number;
14
+ host: string;
15
+ messageFormat: "json" | "binary";
16
+ heartbeatInterval: number;
17
+ maxConnections: number;
18
+ }, {
19
+ path: string;
20
+ enabled: boolean;
21
+ port: number;
22
+ host: string;
23
+ messageFormat: "json" | "binary";
24
+ heartbeatInterval: number;
25
+ maxConnections: number;
26
+ }>;
27
+ export declare const WSMessageSchema: z.ZodObject<{
28
+ type: z.ZodEnum<["client_register", "user_input", "text_reply", "tool_choice_required", "cesium_command", "workspace_command", "workspace_connector_request", "workspace_connector_result", "command_result", "action_feedback", "agent_status", "error", "heartbeat", "status", "workspace_mode_change", "workspace_mode_changed", "profile_switched"]>;
29
+ id: z.ZodString;
30
+ timestamp: z.ZodString;
31
+ payload: z.ZodAny;
32
+ }, "strip", z.ZodTypeAny, {
33
+ id: string;
34
+ type: "cesium_command" | "error" | "client_register" | "user_input" | "text_reply" | "tool_choice_required" | "workspace_command" | "workspace_connector_request" | "workspace_connector_result" | "command_result" | "action_feedback" | "agent_status" | "heartbeat" | "status" | "workspace_mode_change" | "workspace_mode_changed" | "profile_switched";
35
+ timestamp: string;
36
+ payload?: any;
37
+ }, {
38
+ id: string;
39
+ type: "cesium_command" | "error" | "client_register" | "user_input" | "text_reply" | "tool_choice_required" | "workspace_command" | "workspace_connector_request" | "workspace_connector_result" | "command_result" | "action_feedback" | "agent_status" | "heartbeat" | "status" | "workspace_mode_change" | "workspace_mode_changed" | "profile_switched";
40
+ timestamp: string;
41
+ payload?: any;
42
+ }>;
43
+ export declare const AgentRoleSchema: z.ZodEnum<["default", "sub-agent", "orchestrator"]>;
44
+ export declare const ProfileSwitchTriggerSchema: z.ZodEnum<["intent-gate", "mention", "manual"]>;
45
+ export declare const ClientRegisterPayloadSchema: z.ZodObject<{
46
+ clientType: z.ZodEnum<["nl_component", "smart_earth", "workspace_ui", "workspace_connector"]>;
47
+ sessionId: z.ZodOptional<z.ZodString>;
48
+ userId: z.ZodOptional<z.ZodString>;
49
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ clientType: "nl_component" | "smart_earth" | "workspace_ui" | "workspace_connector";
52
+ sessionId?: string | undefined;
53
+ metadata?: Record<string, any> | undefined;
54
+ userId?: string | undefined;
55
+ }, {
56
+ clientType: "nl_component" | "smart_earth" | "workspace_ui" | "workspace_connector";
57
+ sessionId?: string | undefined;
58
+ metadata?: Record<string, any> | undefined;
59
+ userId?: string | undefined;
60
+ }>;
61
+ export declare const ClientRegisterMessageSchema: z.ZodObject<{
62
+ id: z.ZodString;
63
+ timestamp: z.ZodString;
64
+ } & {
65
+ type: z.ZodLiteral<"client_register">;
66
+ payload: z.ZodObject<{
67
+ clientType: z.ZodEnum<["nl_component", "smart_earth", "workspace_ui", "workspace_connector"]>;
68
+ sessionId: z.ZodOptional<z.ZodString>;
69
+ userId: z.ZodOptional<z.ZodString>;
70
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ clientType: "nl_component" | "smart_earth" | "workspace_ui" | "workspace_connector";
73
+ sessionId?: string | undefined;
74
+ metadata?: Record<string, any> | undefined;
75
+ userId?: string | undefined;
76
+ }, {
77
+ clientType: "nl_component" | "smart_earth" | "workspace_ui" | "workspace_connector";
78
+ sessionId?: string | undefined;
79
+ metadata?: Record<string, any> | undefined;
80
+ userId?: string | undefined;
81
+ }>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ id: string;
84
+ type: "client_register";
85
+ timestamp: string;
86
+ payload: {
87
+ clientType: "nl_component" | "smart_earth" | "workspace_ui" | "workspace_connector";
88
+ sessionId?: string | undefined;
89
+ metadata?: Record<string, any> | undefined;
90
+ userId?: string | undefined;
91
+ };
92
+ }, {
93
+ id: string;
94
+ type: "client_register";
95
+ timestamp: string;
96
+ payload: {
97
+ clientType: "nl_component" | "smart_earth" | "workspace_ui" | "workspace_connector";
98
+ sessionId?: string | undefined;
99
+ metadata?: Record<string, any> | undefined;
100
+ userId?: string | undefined;
101
+ };
102
+ }>;
103
+ export declare const UserInputPayloadSchema: z.ZodObject<{
104
+ text: z.ZodString;
105
+ sessionId: z.ZodString;
106
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
107
+ voiceInput: z.ZodOptional<z.ZodBoolean>;
108
+ targetProfile: z.ZodOptional<z.ZodString>;
109
+ orchestratorMode: z.ZodOptional<z.ZodBoolean>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ text: string;
112
+ sessionId: string;
113
+ context?: Record<string, any> | undefined;
114
+ voiceInput?: boolean | undefined;
115
+ targetProfile?: string | undefined;
116
+ orchestratorMode?: boolean | undefined;
117
+ }, {
118
+ text: string;
119
+ sessionId: string;
120
+ context?: Record<string, any> | undefined;
121
+ voiceInput?: boolean | undefined;
122
+ targetProfile?: string | undefined;
123
+ orchestratorMode?: boolean | undefined;
124
+ }>;
125
+ export declare const UserInputMessageSchema: z.ZodObject<{
126
+ id: z.ZodString;
127
+ timestamp: z.ZodString;
128
+ } & {
129
+ type: z.ZodLiteral<"user_input">;
130
+ payload: z.ZodObject<{
131
+ text: z.ZodString;
132
+ sessionId: z.ZodString;
133
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
134
+ voiceInput: z.ZodOptional<z.ZodBoolean>;
135
+ targetProfile: z.ZodOptional<z.ZodString>;
136
+ orchestratorMode: z.ZodOptional<z.ZodBoolean>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ text: string;
139
+ sessionId: string;
140
+ context?: Record<string, any> | undefined;
141
+ voiceInput?: boolean | undefined;
142
+ targetProfile?: string | undefined;
143
+ orchestratorMode?: boolean | undefined;
144
+ }, {
145
+ text: string;
146
+ sessionId: string;
147
+ context?: Record<string, any> | undefined;
148
+ voiceInput?: boolean | undefined;
149
+ targetProfile?: string | undefined;
150
+ orchestratorMode?: boolean | undefined;
151
+ }>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ id: string;
154
+ type: "user_input";
155
+ timestamp: string;
156
+ payload: {
157
+ text: string;
158
+ sessionId: string;
159
+ context?: Record<string, any> | undefined;
160
+ voiceInput?: boolean | undefined;
161
+ targetProfile?: string | undefined;
162
+ orchestratorMode?: boolean | undefined;
163
+ };
164
+ }, {
165
+ id: string;
166
+ type: "user_input";
167
+ timestamp: string;
168
+ payload: {
169
+ text: string;
170
+ sessionId: string;
171
+ context?: Record<string, any> | undefined;
172
+ voiceInput?: boolean | undefined;
173
+ targetProfile?: string | undefined;
174
+ orchestratorMode?: boolean | undefined;
175
+ };
176
+ }>;
177
+ export declare const HermesActionSchema: z.ZodObject<{
178
+ type: z.ZodString;
179
+ interface: z.ZodOptional<z.ZodString>;
180
+ params: z.ZodRecord<z.ZodString, z.ZodAny>;
181
+ id: z.ZodOptional<z.ZodString>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ type: string;
184
+ params: Record<string, any>;
185
+ id?: string | undefined;
186
+ interface?: string | undefined;
187
+ }, {
188
+ type: string;
189
+ params: Record<string, any>;
190
+ id?: string | undefined;
191
+ interface?: string | undefined;
192
+ }>;
193
+ export declare const TextReplyPayloadSchema: z.ZodObject<{
194
+ text: z.ZodString;
195
+ agentId: z.ZodString;
196
+ sessionId: z.ZodString;
197
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
198
+ type: z.ZodString;
199
+ interface: z.ZodOptional<z.ZodString>;
200
+ params: z.ZodRecord<z.ZodString, z.ZodAny>;
201
+ id: z.ZodOptional<z.ZodString>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ type: string;
204
+ params: Record<string, any>;
205
+ id?: string | undefined;
206
+ interface?: string | undefined;
207
+ }, {
208
+ type: string;
209
+ params: Record<string, any>;
210
+ id?: string | undefined;
211
+ interface?: string | undefined;
212
+ }>, "many">>;
213
+ isStreaming: z.ZodOptional<z.ZodBoolean>;
214
+ isFinal: z.ZodOptional<z.ZodBoolean>;
215
+ agentDisplayName: z.ZodOptional<z.ZodString>;
216
+ agentRole: z.ZodOptional<z.ZodEnum<["default", "sub-agent", "orchestrator"]>>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ text: string;
219
+ sessionId: string;
220
+ agentId: string;
221
+ actions?: {
222
+ type: string;
223
+ params: Record<string, any>;
224
+ id?: string | undefined;
225
+ interface?: string | undefined;
226
+ }[] | undefined;
227
+ isStreaming?: boolean | undefined;
228
+ isFinal?: boolean | undefined;
229
+ agentDisplayName?: string | undefined;
230
+ agentRole?: "default" | "sub-agent" | "orchestrator" | undefined;
231
+ }, {
232
+ text: string;
233
+ sessionId: string;
234
+ agentId: string;
235
+ actions?: {
236
+ type: string;
237
+ params: Record<string, any>;
238
+ id?: string | undefined;
239
+ interface?: string | undefined;
240
+ }[] | undefined;
241
+ isStreaming?: boolean | undefined;
242
+ isFinal?: boolean | undefined;
243
+ agentDisplayName?: string | undefined;
244
+ agentRole?: "default" | "sub-agent" | "orchestrator" | undefined;
245
+ }>;
246
+ export declare const TextReplyMessageSchema: z.ZodObject<{
247
+ id: z.ZodString;
248
+ timestamp: z.ZodString;
249
+ } & {
250
+ type: z.ZodLiteral<"text_reply">;
251
+ payload: z.ZodObject<{
252
+ text: z.ZodString;
253
+ agentId: z.ZodString;
254
+ sessionId: z.ZodString;
255
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
256
+ type: z.ZodString;
257
+ interface: z.ZodOptional<z.ZodString>;
258
+ params: z.ZodRecord<z.ZodString, z.ZodAny>;
259
+ id: z.ZodOptional<z.ZodString>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ type: string;
262
+ params: Record<string, any>;
263
+ id?: string | undefined;
264
+ interface?: string | undefined;
265
+ }, {
266
+ type: string;
267
+ params: Record<string, any>;
268
+ id?: string | undefined;
269
+ interface?: string | undefined;
270
+ }>, "many">>;
271
+ isStreaming: z.ZodOptional<z.ZodBoolean>;
272
+ isFinal: z.ZodOptional<z.ZodBoolean>;
273
+ agentDisplayName: z.ZodOptional<z.ZodString>;
274
+ agentRole: z.ZodOptional<z.ZodEnum<["default", "sub-agent", "orchestrator"]>>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ text: string;
277
+ sessionId: string;
278
+ agentId: string;
279
+ actions?: {
280
+ type: string;
281
+ params: Record<string, any>;
282
+ id?: string | undefined;
283
+ interface?: string | undefined;
284
+ }[] | undefined;
285
+ isStreaming?: boolean | undefined;
286
+ isFinal?: boolean | undefined;
287
+ agentDisplayName?: string | undefined;
288
+ agentRole?: "default" | "sub-agent" | "orchestrator" | undefined;
289
+ }, {
290
+ text: string;
291
+ sessionId: string;
292
+ agentId: string;
293
+ actions?: {
294
+ type: string;
295
+ params: Record<string, any>;
296
+ id?: string | undefined;
297
+ interface?: string | undefined;
298
+ }[] | undefined;
299
+ isStreaming?: boolean | undefined;
300
+ isFinal?: boolean | undefined;
301
+ agentDisplayName?: string | undefined;
302
+ agentRole?: "default" | "sub-agent" | "orchestrator" | undefined;
303
+ }>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ id: string;
306
+ type: "text_reply";
307
+ timestamp: string;
308
+ payload: {
309
+ text: string;
310
+ sessionId: string;
311
+ agentId: string;
312
+ actions?: {
313
+ type: string;
314
+ params: Record<string, any>;
315
+ id?: string | undefined;
316
+ interface?: string | undefined;
317
+ }[] | undefined;
318
+ isStreaming?: boolean | undefined;
319
+ isFinal?: boolean | undefined;
320
+ agentDisplayName?: string | undefined;
321
+ agentRole?: "default" | "sub-agent" | "orchestrator" | undefined;
322
+ };
323
+ }, {
324
+ id: string;
325
+ type: "text_reply";
326
+ timestamp: string;
327
+ payload: {
328
+ text: string;
329
+ sessionId: string;
330
+ agentId: string;
331
+ actions?: {
332
+ type: string;
333
+ params: Record<string, any>;
334
+ id?: string | undefined;
335
+ interface?: string | undefined;
336
+ }[] | undefined;
337
+ isStreaming?: boolean | undefined;
338
+ isFinal?: boolean | undefined;
339
+ agentDisplayName?: string | undefined;
340
+ agentRole?: "default" | "sub-agent" | "orchestrator" | undefined;
341
+ };
342
+ }>;
343
+ export declare const ToolChoiceRequiredPayloadSchema: z.ZodObject<{
344
+ agentId: z.ZodString;
345
+ sessionId: z.ZodString;
346
+ conflict: z.ZodObject<{
347
+ id: z.ZodString;
348
+ originalMessage: z.ZodString;
349
+ options: z.ZodArray<z.ZodObject<{
350
+ index: z.ZodNumber;
351
+ source: z.ZodEnum<["mcp", "skill", "flowise", "auto"]>;
352
+ toolName: z.ZodOptional<z.ZodString>;
353
+ label: z.ZodString;
354
+ description: z.ZodOptional<z.ZodString>;
355
+ }, "strip", z.ZodTypeAny, {
356
+ source: "auto" | "skill" | "mcp" | "flowise";
357
+ label: string;
358
+ index: number;
359
+ description?: string | undefined;
360
+ toolName?: string | undefined;
361
+ }, {
362
+ source: "auto" | "skill" | "mcp" | "flowise";
363
+ label: string;
364
+ index: number;
365
+ description?: string | undefined;
366
+ toolName?: string | undefined;
367
+ }>, "many">;
368
+ conflictingToolNames: z.ZodArray<z.ZodString, "many">;
369
+ prompt: z.ZodString;
370
+ }, "strip", z.ZodTypeAny, {
371
+ id: string;
372
+ options: {
373
+ source: "auto" | "skill" | "mcp" | "flowise";
374
+ label: string;
375
+ index: number;
376
+ description?: string | undefined;
377
+ toolName?: string | undefined;
378
+ }[];
379
+ originalMessage: string;
380
+ conflictingToolNames: string[];
381
+ prompt: string;
382
+ }, {
383
+ id: string;
384
+ options: {
385
+ source: "auto" | "skill" | "mcp" | "flowise";
386
+ label: string;
387
+ index: number;
388
+ description?: string | undefined;
389
+ toolName?: string | undefined;
390
+ }[];
391
+ originalMessage: string;
392
+ conflictingToolNames: string[];
393
+ prompt: string;
394
+ }>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ sessionId: string;
397
+ agentId: string;
398
+ conflict: {
399
+ id: string;
400
+ options: {
401
+ source: "auto" | "skill" | "mcp" | "flowise";
402
+ label: string;
403
+ index: number;
404
+ description?: string | undefined;
405
+ toolName?: string | undefined;
406
+ }[];
407
+ originalMessage: string;
408
+ conflictingToolNames: string[];
409
+ prompt: string;
410
+ };
411
+ }, {
412
+ sessionId: string;
413
+ agentId: string;
414
+ conflict: {
415
+ id: string;
416
+ options: {
417
+ source: "auto" | "skill" | "mcp" | "flowise";
418
+ label: string;
419
+ index: number;
420
+ description?: string | undefined;
421
+ toolName?: string | undefined;
422
+ }[];
423
+ originalMessage: string;
424
+ conflictingToolNames: string[];
425
+ prompt: string;
426
+ };
427
+ }>;
428
+ export declare const ToolChoiceRequiredMessageSchema: z.ZodObject<{
429
+ id: z.ZodString;
430
+ timestamp: z.ZodString;
431
+ } & {
432
+ type: z.ZodLiteral<"tool_choice_required">;
433
+ payload: z.ZodObject<{
434
+ agentId: z.ZodString;
435
+ sessionId: z.ZodString;
436
+ conflict: z.ZodObject<{
437
+ id: z.ZodString;
438
+ originalMessage: z.ZodString;
439
+ options: z.ZodArray<z.ZodObject<{
440
+ index: z.ZodNumber;
441
+ source: z.ZodEnum<["mcp", "skill", "flowise", "auto"]>;
442
+ toolName: z.ZodOptional<z.ZodString>;
443
+ label: z.ZodString;
444
+ description: z.ZodOptional<z.ZodString>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ source: "auto" | "skill" | "mcp" | "flowise";
447
+ label: string;
448
+ index: number;
449
+ description?: string | undefined;
450
+ toolName?: string | undefined;
451
+ }, {
452
+ source: "auto" | "skill" | "mcp" | "flowise";
453
+ label: string;
454
+ index: number;
455
+ description?: string | undefined;
456
+ toolName?: string | undefined;
457
+ }>, "many">;
458
+ conflictingToolNames: z.ZodArray<z.ZodString, "many">;
459
+ prompt: z.ZodString;
460
+ }, "strip", z.ZodTypeAny, {
461
+ id: string;
462
+ options: {
463
+ source: "auto" | "skill" | "mcp" | "flowise";
464
+ label: string;
465
+ index: number;
466
+ description?: string | undefined;
467
+ toolName?: string | undefined;
468
+ }[];
469
+ originalMessage: string;
470
+ conflictingToolNames: string[];
471
+ prompt: string;
472
+ }, {
473
+ id: string;
474
+ options: {
475
+ source: "auto" | "skill" | "mcp" | "flowise";
476
+ label: string;
477
+ index: number;
478
+ description?: string | undefined;
479
+ toolName?: string | undefined;
480
+ }[];
481
+ originalMessage: string;
482
+ conflictingToolNames: string[];
483
+ prompt: string;
484
+ }>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ sessionId: string;
487
+ agentId: string;
488
+ conflict: {
489
+ id: string;
490
+ options: {
491
+ source: "auto" | "skill" | "mcp" | "flowise";
492
+ label: string;
493
+ index: number;
494
+ description?: string | undefined;
495
+ toolName?: string | undefined;
496
+ }[];
497
+ originalMessage: string;
498
+ conflictingToolNames: string[];
499
+ prompt: string;
500
+ };
501
+ }, {
502
+ sessionId: string;
503
+ agentId: string;
504
+ conflict: {
505
+ id: string;
506
+ options: {
507
+ source: "auto" | "skill" | "mcp" | "flowise";
508
+ label: string;
509
+ index: number;
510
+ description?: string | undefined;
511
+ toolName?: string | undefined;
512
+ }[];
513
+ originalMessage: string;
514
+ conflictingToolNames: string[];
515
+ prompt: string;
516
+ };
517
+ }>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ id: string;
520
+ type: "tool_choice_required";
521
+ timestamp: string;
522
+ payload: {
523
+ sessionId: string;
524
+ agentId: string;
525
+ conflict: {
526
+ id: string;
527
+ options: {
528
+ source: "auto" | "skill" | "mcp" | "flowise";
529
+ label: string;
530
+ index: number;
531
+ description?: string | undefined;
532
+ toolName?: string | undefined;
533
+ }[];
534
+ originalMessage: string;
535
+ conflictingToolNames: string[];
536
+ prompt: string;
537
+ };
538
+ };
539
+ }, {
540
+ id: string;
541
+ type: "tool_choice_required";
542
+ timestamp: string;
543
+ payload: {
544
+ sessionId: string;
545
+ agentId: string;
546
+ conflict: {
547
+ id: string;
548
+ options: {
549
+ source: "auto" | "skill" | "mcp" | "flowise";
550
+ label: string;
551
+ index: number;
552
+ description?: string | undefined;
553
+ toolName?: string | undefined;
554
+ }[];
555
+ originalMessage: string;
556
+ conflictingToolNames: string[];
557
+ prompt: string;
558
+ };
559
+ };
560
+ }>;
561
+ export declare const CesiumCommandPayloadSchema: z.ZodObject<{
562
+ command: z.ZodAny;
563
+ agentId: z.ZodString;
564
+ sessionId: z.ZodString;
565
+ }, "strip", z.ZodTypeAny, {
566
+ sessionId: string;
567
+ agentId: string;
568
+ command?: any;
569
+ }, {
570
+ sessionId: string;
571
+ agentId: string;
572
+ command?: any;
573
+ }>;
574
+ export declare const CesiumCommandMessageSchema: z.ZodObject<{
575
+ id: z.ZodString;
576
+ timestamp: z.ZodString;
577
+ } & {
578
+ type: z.ZodLiteral<"cesium_command">;
579
+ payload: z.ZodObject<{
580
+ command: z.ZodAny;
581
+ agentId: z.ZodString;
582
+ sessionId: z.ZodString;
583
+ }, "strip", z.ZodTypeAny, {
584
+ sessionId: string;
585
+ agentId: string;
586
+ command?: any;
587
+ }, {
588
+ sessionId: string;
589
+ agentId: string;
590
+ command?: any;
591
+ }>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ id: string;
594
+ type: "cesium_command";
595
+ timestamp: string;
596
+ payload: {
597
+ sessionId: string;
598
+ agentId: string;
599
+ command?: any;
600
+ };
601
+ }, {
602
+ id: string;
603
+ type: "cesium_command";
604
+ timestamp: string;
605
+ payload: {
606
+ sessionId: string;
607
+ agentId: string;
608
+ command?: any;
609
+ };
610
+ }>;
611
+ export declare const WorkspaceCommandPayloadSchema: z.ZodObject<{
612
+ command: z.ZodString;
613
+ targetMessageId: z.ZodOptional<z.ZodString>;
614
+ workspaceId: z.ZodOptional<z.ZodString>;
615
+ sessionId: z.ZodOptional<z.ZodString>;
616
+ agentId: z.ZodOptional<z.ZodString>;
617
+ }, "strip", z.ZodAny, z.objectOutputType<{
618
+ command: z.ZodString;
619
+ targetMessageId: z.ZodOptional<z.ZodString>;
620
+ workspaceId: z.ZodOptional<z.ZodString>;
621
+ sessionId: z.ZodOptional<z.ZodString>;
622
+ agentId: z.ZodOptional<z.ZodString>;
623
+ }, z.ZodAny, "strip">, z.objectInputType<{
624
+ command: z.ZodString;
625
+ targetMessageId: z.ZodOptional<z.ZodString>;
626
+ workspaceId: z.ZodOptional<z.ZodString>;
627
+ sessionId: z.ZodOptional<z.ZodString>;
628
+ agentId: z.ZodOptional<z.ZodString>;
629
+ }, z.ZodAny, "strip">>;
630
+ export declare const WorkspaceCommandMessageSchema: z.ZodObject<{
631
+ id: z.ZodString;
632
+ timestamp: z.ZodString;
633
+ } & {
634
+ type: z.ZodLiteral<"workspace_command">;
635
+ payload: z.ZodObject<{
636
+ command: z.ZodString;
637
+ targetMessageId: z.ZodOptional<z.ZodString>;
638
+ workspaceId: z.ZodOptional<z.ZodString>;
639
+ sessionId: z.ZodOptional<z.ZodString>;
640
+ agentId: z.ZodOptional<z.ZodString>;
641
+ }, "strip", z.ZodAny, z.objectOutputType<{
642
+ command: z.ZodString;
643
+ targetMessageId: z.ZodOptional<z.ZodString>;
644
+ workspaceId: z.ZodOptional<z.ZodString>;
645
+ sessionId: z.ZodOptional<z.ZodString>;
646
+ agentId: z.ZodOptional<z.ZodString>;
647
+ }, z.ZodAny, "strip">, z.objectInputType<{
648
+ command: z.ZodString;
649
+ targetMessageId: z.ZodOptional<z.ZodString>;
650
+ workspaceId: z.ZodOptional<z.ZodString>;
651
+ sessionId: z.ZodOptional<z.ZodString>;
652
+ agentId: z.ZodOptional<z.ZodString>;
653
+ }, z.ZodAny, "strip">>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ id: string;
656
+ type: "workspace_command";
657
+ timestamp: string;
658
+ payload: {
659
+ command: string;
660
+ targetMessageId?: string | undefined;
661
+ workspaceId?: string | undefined;
662
+ sessionId?: string | undefined;
663
+ agentId?: string | undefined;
664
+ } & {
665
+ [k: string]: any;
666
+ };
667
+ }, {
668
+ id: string;
669
+ type: "workspace_command";
670
+ timestamp: string;
671
+ payload: {
672
+ command: string;
673
+ targetMessageId?: string | undefined;
674
+ workspaceId?: string | undefined;
675
+ sessionId?: string | undefined;
676
+ agentId?: string | undefined;
677
+ } & {
678
+ [k: string]: any;
679
+ };
680
+ }>;
681
+ export declare const CommandResultPayloadSchema: z.ZodObject<{
682
+ targetMessageId: z.ZodString;
683
+ commandType: z.ZodString;
684
+ success: z.ZodBoolean;
685
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
686
+ error: z.ZodOptional<z.ZodString>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ targetMessageId: string;
689
+ success: boolean;
690
+ commandType: string;
691
+ error?: string | undefined;
692
+ data?: Record<string, any> | undefined;
693
+ }, {
694
+ targetMessageId: string;
695
+ success: boolean;
696
+ commandType: string;
697
+ error?: string | undefined;
698
+ data?: Record<string, any> | undefined;
699
+ }>;
700
+ export declare const CommandResultMessageSchema: z.ZodObject<{
701
+ id: z.ZodString;
702
+ timestamp: z.ZodString;
703
+ } & {
704
+ type: z.ZodLiteral<"command_result">;
705
+ payload: z.ZodObject<{
706
+ targetMessageId: z.ZodString;
707
+ commandType: z.ZodString;
708
+ success: z.ZodBoolean;
709
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
710
+ error: z.ZodOptional<z.ZodString>;
711
+ }, "strip", z.ZodTypeAny, {
712
+ targetMessageId: string;
713
+ success: boolean;
714
+ commandType: string;
715
+ error?: string | undefined;
716
+ data?: Record<string, any> | undefined;
717
+ }, {
718
+ targetMessageId: string;
719
+ success: boolean;
720
+ commandType: string;
721
+ error?: string | undefined;
722
+ data?: Record<string, any> | undefined;
723
+ }>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ id: string;
726
+ type: "command_result";
727
+ timestamp: string;
728
+ payload: {
729
+ targetMessageId: string;
730
+ success: boolean;
731
+ commandType: string;
732
+ error?: string | undefined;
733
+ data?: Record<string, any> | undefined;
734
+ };
735
+ }, {
736
+ id: string;
737
+ type: "command_result";
738
+ timestamp: string;
739
+ payload: {
740
+ targetMessageId: string;
741
+ success: boolean;
742
+ commandType: string;
743
+ error?: string | undefined;
744
+ data?: Record<string, any> | undefined;
745
+ };
746
+ }>;
747
+ export declare const ActionFeedbackPayloadSchema: z.ZodObject<{
748
+ targetMessageId: z.ZodString;
749
+ actionId: z.ZodOptional<z.ZodString>;
750
+ actionType: z.ZodOptional<z.ZodString>;
751
+ result: z.ZodEnum<["success", "failure", "partial"]>;
752
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
753
+ error: z.ZodOptional<z.ZodString>;
754
+ }, "strip", z.ZodTypeAny, {
755
+ targetMessageId: string;
756
+ result: "success" | "failure" | "partial";
757
+ error?: string | undefined;
758
+ data?: Record<string, any> | undefined;
759
+ actionId?: string | undefined;
760
+ actionType?: string | undefined;
761
+ }, {
762
+ targetMessageId: string;
763
+ result: "success" | "failure" | "partial";
764
+ error?: string | undefined;
765
+ data?: Record<string, any> | undefined;
766
+ actionId?: string | undefined;
767
+ actionType?: string | undefined;
768
+ }>;
769
+ export declare const ActionFeedbackMessageSchema: z.ZodObject<{
770
+ id: z.ZodString;
771
+ timestamp: z.ZodString;
772
+ } & {
773
+ type: z.ZodLiteral<"action_feedback">;
774
+ payload: z.ZodObject<{
775
+ targetMessageId: z.ZodString;
776
+ actionId: z.ZodOptional<z.ZodString>;
777
+ actionType: z.ZodOptional<z.ZodString>;
778
+ result: z.ZodEnum<["success", "failure", "partial"]>;
779
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
780
+ error: z.ZodOptional<z.ZodString>;
781
+ }, "strip", z.ZodTypeAny, {
782
+ targetMessageId: string;
783
+ result: "success" | "failure" | "partial";
784
+ error?: string | undefined;
785
+ data?: Record<string, any> | undefined;
786
+ actionId?: string | undefined;
787
+ actionType?: string | undefined;
788
+ }, {
789
+ targetMessageId: string;
790
+ result: "success" | "failure" | "partial";
791
+ error?: string | undefined;
792
+ data?: Record<string, any> | undefined;
793
+ actionId?: string | undefined;
794
+ actionType?: string | undefined;
795
+ }>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ id: string;
798
+ type: "action_feedback";
799
+ timestamp: string;
800
+ payload: {
801
+ targetMessageId: string;
802
+ result: "success" | "failure" | "partial";
803
+ error?: string | undefined;
804
+ data?: Record<string, any> | undefined;
805
+ actionId?: string | undefined;
806
+ actionType?: string | undefined;
807
+ };
808
+ }, {
809
+ id: string;
810
+ type: "action_feedback";
811
+ timestamp: string;
812
+ payload: {
813
+ targetMessageId: string;
814
+ result: "success" | "failure" | "partial";
815
+ error?: string | undefined;
816
+ data?: Record<string, any> | undefined;
817
+ actionId?: string | undefined;
818
+ actionType?: string | undefined;
819
+ };
820
+ }>;
821
+ export declare const AgentStatusPayloadSchema: z.ZodObject<{
822
+ agentId: z.ZodString;
823
+ status: z.ZodEnum<["idle", "processing", "waiting_for_tool", "error"]>;
824
+ sessionId: z.ZodOptional<z.ZodString>;
825
+ currentActivity: z.ZodOptional<z.ZodString>;
826
+ processingTime: z.ZodOptional<z.ZodNumber>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ status: "error" | "idle" | "processing" | "waiting_for_tool";
829
+ agentId: string;
830
+ sessionId?: string | undefined;
831
+ currentActivity?: string | undefined;
832
+ processingTime?: number | undefined;
833
+ }, {
834
+ status: "error" | "idle" | "processing" | "waiting_for_tool";
835
+ agentId: string;
836
+ sessionId?: string | undefined;
837
+ currentActivity?: string | undefined;
838
+ processingTime?: number | undefined;
839
+ }>;
840
+ export declare const AgentStatusMessageSchema: z.ZodObject<{
841
+ id: z.ZodString;
842
+ timestamp: z.ZodString;
843
+ } & {
844
+ type: z.ZodLiteral<"agent_status">;
845
+ payload: z.ZodObject<{
846
+ agentId: z.ZodString;
847
+ status: z.ZodEnum<["idle", "processing", "waiting_for_tool", "error"]>;
848
+ sessionId: z.ZodOptional<z.ZodString>;
849
+ currentActivity: z.ZodOptional<z.ZodString>;
850
+ processingTime: z.ZodOptional<z.ZodNumber>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ status: "error" | "idle" | "processing" | "waiting_for_tool";
853
+ agentId: string;
854
+ sessionId?: string | undefined;
855
+ currentActivity?: string | undefined;
856
+ processingTime?: number | undefined;
857
+ }, {
858
+ status: "error" | "idle" | "processing" | "waiting_for_tool";
859
+ agentId: string;
860
+ sessionId?: string | undefined;
861
+ currentActivity?: string | undefined;
862
+ processingTime?: number | undefined;
863
+ }>;
864
+ }, "strip", z.ZodTypeAny, {
865
+ id: string;
866
+ type: "agent_status";
867
+ timestamp: string;
868
+ payload: {
869
+ status: "error" | "idle" | "processing" | "waiting_for_tool";
870
+ agentId: string;
871
+ sessionId?: string | undefined;
872
+ currentActivity?: string | undefined;
873
+ processingTime?: number | undefined;
874
+ };
875
+ }, {
876
+ id: string;
877
+ type: "agent_status";
878
+ timestamp: string;
879
+ payload: {
880
+ status: "error" | "idle" | "processing" | "waiting_for_tool";
881
+ agentId: string;
882
+ sessionId?: string | undefined;
883
+ currentActivity?: string | undefined;
884
+ processingTime?: number | undefined;
885
+ };
886
+ }>;
887
+ export declare const ErrorPayloadSchema: z.ZodObject<{
888
+ code: z.ZodString;
889
+ message: z.ZodString;
890
+ details: z.ZodOptional<z.ZodAny>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ code: string;
893
+ message: string;
894
+ details?: any;
895
+ }, {
896
+ code: string;
897
+ message: string;
898
+ details?: any;
899
+ }>;
900
+ export declare const ErrorMessageSchema: z.ZodObject<{
901
+ id: z.ZodString;
902
+ timestamp: z.ZodString;
903
+ } & {
904
+ type: z.ZodLiteral<"error">;
905
+ payload: z.ZodObject<{
906
+ code: z.ZodString;
907
+ message: z.ZodString;
908
+ details: z.ZodOptional<z.ZodAny>;
909
+ }, "strip", z.ZodTypeAny, {
910
+ code: string;
911
+ message: string;
912
+ details?: any;
913
+ }, {
914
+ code: string;
915
+ message: string;
916
+ details?: any;
917
+ }>;
918
+ }, "strip", z.ZodTypeAny, {
919
+ id: string;
920
+ type: "error";
921
+ timestamp: string;
922
+ payload: {
923
+ code: string;
924
+ message: string;
925
+ details?: any;
926
+ };
927
+ }, {
928
+ id: string;
929
+ type: "error";
930
+ timestamp: string;
931
+ payload: {
932
+ code: string;
933
+ message: string;
934
+ details?: any;
935
+ };
936
+ }>;
937
+ export declare const HeartbeatPayloadSchema: z.ZodObject<{
938
+ status: z.ZodEnum<["alive", "busy", "idle"]>;
939
+ activeAgents: z.ZodArray<z.ZodString, "many">;
940
+ memoryUsage: z.ZodOptional<z.ZodNumber>;
941
+ }, "strip", z.ZodTypeAny, {
942
+ status: "idle" | "alive" | "busy";
943
+ activeAgents: string[];
944
+ memoryUsage?: number | undefined;
945
+ }, {
946
+ status: "idle" | "alive" | "busy";
947
+ activeAgents: string[];
948
+ memoryUsage?: number | undefined;
949
+ }>;
950
+ export declare const HeartbeatMessageSchema: z.ZodObject<{
951
+ id: z.ZodString;
952
+ timestamp: z.ZodString;
953
+ } & {
954
+ type: z.ZodLiteral<"heartbeat">;
955
+ payload: z.ZodObject<{
956
+ status: z.ZodEnum<["alive", "busy", "idle"]>;
957
+ activeAgents: z.ZodArray<z.ZodString, "many">;
958
+ memoryUsage: z.ZodOptional<z.ZodNumber>;
959
+ }, "strip", z.ZodTypeAny, {
960
+ status: "idle" | "alive" | "busy";
961
+ activeAgents: string[];
962
+ memoryUsage?: number | undefined;
963
+ }, {
964
+ status: "idle" | "alive" | "busy";
965
+ activeAgents: string[];
966
+ memoryUsage?: number | undefined;
967
+ }>;
968
+ }, "strip", z.ZodTypeAny, {
969
+ id: string;
970
+ type: "heartbeat";
971
+ timestamp: string;
972
+ payload: {
973
+ status: "idle" | "alive" | "busy";
974
+ activeAgents: string[];
975
+ memoryUsage?: number | undefined;
976
+ };
977
+ }, {
978
+ id: string;
979
+ type: "heartbeat";
980
+ timestamp: string;
981
+ payload: {
982
+ status: "idle" | "alive" | "busy";
983
+ activeAgents: string[];
984
+ memoryUsage?: number | undefined;
985
+ };
986
+ }>;
987
+ export declare const StatusPayloadSchema: z.ZodObject<{
988
+ instanceId: z.ZodString;
989
+ status: z.ZodEnum<["running", "stopped", "error"]>;
990
+ activeConnections: z.ZodNumber;
991
+ activeSessions: z.ZodNumber;
992
+ version: z.ZodString;
993
+ }, "strip", z.ZodTypeAny, {
994
+ status: "error" | "running" | "stopped";
995
+ version: string;
996
+ instanceId: string;
997
+ activeConnections: number;
998
+ activeSessions: number;
999
+ }, {
1000
+ status: "error" | "running" | "stopped";
1001
+ version: string;
1002
+ instanceId: string;
1003
+ activeConnections: number;
1004
+ activeSessions: number;
1005
+ }>;
1006
+ export declare const StatusMessageSchema: z.ZodObject<{
1007
+ id: z.ZodString;
1008
+ timestamp: z.ZodString;
1009
+ } & {
1010
+ type: z.ZodLiteral<"status">;
1011
+ payload: z.ZodObject<{
1012
+ instanceId: z.ZodString;
1013
+ status: z.ZodEnum<["running", "stopped", "error"]>;
1014
+ activeConnections: z.ZodNumber;
1015
+ activeSessions: z.ZodNumber;
1016
+ version: z.ZodString;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ status: "error" | "running" | "stopped";
1019
+ version: string;
1020
+ instanceId: string;
1021
+ activeConnections: number;
1022
+ activeSessions: number;
1023
+ }, {
1024
+ status: "error" | "running" | "stopped";
1025
+ version: string;
1026
+ instanceId: string;
1027
+ activeConnections: number;
1028
+ activeSessions: number;
1029
+ }>;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ id: string;
1032
+ type: "status";
1033
+ timestamp: string;
1034
+ payload: {
1035
+ status: "error" | "running" | "stopped";
1036
+ version: string;
1037
+ instanceId: string;
1038
+ activeConnections: number;
1039
+ activeSessions: number;
1040
+ };
1041
+ }, {
1042
+ id: string;
1043
+ type: "status";
1044
+ timestamp: string;
1045
+ payload: {
1046
+ status: "error" | "running" | "stopped";
1047
+ version: string;
1048
+ instanceId: string;
1049
+ activeConnections: number;
1050
+ activeSessions: number;
1051
+ };
1052
+ }>;
1053
+ export declare const WorkspaceModeChangePayloadSchema: z.ZodObject<{
1054
+ mode: z.ZodEnum<["mcp", "llm-direct"]>;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ mode: "mcp" | "llm-direct";
1057
+ }, {
1058
+ mode: "mcp" | "llm-direct";
1059
+ }>;
1060
+ export declare const WorkspaceModeChangeMessageSchema: z.ZodObject<{
1061
+ id: z.ZodString;
1062
+ timestamp: z.ZodString;
1063
+ } & {
1064
+ type: z.ZodLiteral<"workspace_mode_change">;
1065
+ payload: z.ZodObject<{
1066
+ mode: z.ZodEnum<["mcp", "llm-direct"]>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ mode: "mcp" | "llm-direct";
1069
+ }, {
1070
+ mode: "mcp" | "llm-direct";
1071
+ }>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ id: string;
1074
+ type: "workspace_mode_change";
1075
+ timestamp: string;
1076
+ payload: {
1077
+ mode: "mcp" | "llm-direct";
1078
+ };
1079
+ }, {
1080
+ id: string;
1081
+ type: "workspace_mode_change";
1082
+ timestamp: string;
1083
+ payload: {
1084
+ mode: "mcp" | "llm-direct";
1085
+ };
1086
+ }>;
1087
+ export declare const WorkspaceModeChangedPayloadSchema: z.ZodObject<{
1088
+ mode: z.ZodEnum<["mcp", "llm-direct"]>;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ mode: "mcp" | "llm-direct";
1091
+ }, {
1092
+ mode: "mcp" | "llm-direct";
1093
+ }>;
1094
+ export declare const WorkspaceModeChangedMessageSchema: z.ZodObject<{
1095
+ id: z.ZodString;
1096
+ timestamp: z.ZodString;
1097
+ } & {
1098
+ type: z.ZodLiteral<"workspace_mode_changed">;
1099
+ payload: z.ZodObject<{
1100
+ mode: z.ZodEnum<["mcp", "llm-direct"]>;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ mode: "mcp" | "llm-direct";
1103
+ }, {
1104
+ mode: "mcp" | "llm-direct";
1105
+ }>;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ id: string;
1108
+ type: "workspace_mode_changed";
1109
+ timestamp: string;
1110
+ payload: {
1111
+ mode: "mcp" | "llm-direct";
1112
+ };
1113
+ }, {
1114
+ id: string;
1115
+ type: "workspace_mode_changed";
1116
+ timestamp: string;
1117
+ payload: {
1118
+ mode: "mcp" | "llm-direct";
1119
+ };
1120
+ }>;
1121
+ export declare const ProfileSwitchedPayloadSchema: z.ZodObject<{
1122
+ activeProfile: z.ZodString;
1123
+ displayName: z.ZodString;
1124
+ role: z.ZodEnum<["default", "sub-agent", "orchestrator"]>;
1125
+ trigger: z.ZodEnum<["intent-gate", "mention", "manual"]>;
1126
+ sessionId: z.ZodString;
1127
+ }, "strip", z.ZodTypeAny, {
1128
+ sessionId: string;
1129
+ displayName: string;
1130
+ activeProfile: string;
1131
+ role: "default" | "sub-agent" | "orchestrator";
1132
+ trigger: "intent-gate" | "mention" | "manual";
1133
+ }, {
1134
+ sessionId: string;
1135
+ displayName: string;
1136
+ activeProfile: string;
1137
+ role: "default" | "sub-agent" | "orchestrator";
1138
+ trigger: "intent-gate" | "mention" | "manual";
1139
+ }>;
1140
+ export declare const ProfileSwitchedMessageSchema: z.ZodObject<{
1141
+ id: z.ZodString;
1142
+ timestamp: z.ZodString;
1143
+ } & {
1144
+ type: z.ZodLiteral<"profile_switched">;
1145
+ payload: z.ZodObject<{
1146
+ activeProfile: z.ZodString;
1147
+ displayName: z.ZodString;
1148
+ role: z.ZodEnum<["default", "sub-agent", "orchestrator"]>;
1149
+ trigger: z.ZodEnum<["intent-gate", "mention", "manual"]>;
1150
+ sessionId: z.ZodString;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ sessionId: string;
1153
+ displayName: string;
1154
+ activeProfile: string;
1155
+ role: "default" | "sub-agent" | "orchestrator";
1156
+ trigger: "intent-gate" | "mention" | "manual";
1157
+ }, {
1158
+ sessionId: string;
1159
+ displayName: string;
1160
+ activeProfile: string;
1161
+ role: "default" | "sub-agent" | "orchestrator";
1162
+ trigger: "intent-gate" | "mention" | "manual";
1163
+ }>;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ id: string;
1166
+ type: "profile_switched";
1167
+ timestamp: string;
1168
+ payload: {
1169
+ sessionId: string;
1170
+ displayName: string;
1171
+ activeProfile: string;
1172
+ role: "default" | "sub-agent" | "orchestrator";
1173
+ trigger: "intent-gate" | "mention" | "manual";
1174
+ };
1175
+ }, {
1176
+ id: string;
1177
+ type: "profile_switched";
1178
+ timestamp: string;
1179
+ payload: {
1180
+ sessionId: string;
1181
+ displayName: string;
1182
+ activeProfile: string;
1183
+ role: "default" | "sub-agent" | "orchestrator";
1184
+ trigger: "intent-gate" | "mention" | "manual";
1185
+ };
1186
+ }>;