@winmatrix/protocol 1.0.0

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.
@@ -0,0 +1,978 @@
1
+ /**
2
+ * @winmatrix/protocol — Zod schemas for External Agent JSON-RPC frames.
3
+ */
4
+ import { z } from 'zod';
5
+ export declare const BaseRequestSchema: z.ZodObject<{
6
+ type: z.ZodLiteral<"req">;
7
+ id: z.ZodString;
8
+ method: z.ZodString;
9
+ params: z.ZodOptional<z.ZodUnknown>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ type: "req";
12
+ id: string;
13
+ method: string;
14
+ params?: unknown;
15
+ }, {
16
+ type: "req";
17
+ id: string;
18
+ method: string;
19
+ params?: unknown;
20
+ }>;
21
+ export declare const BaseResponseSchema: z.ZodObject<{
22
+ type: z.ZodLiteral<"res">;
23
+ id: z.ZodString;
24
+ ok: z.ZodBoolean;
25
+ payload: z.ZodOptional<z.ZodUnknown>;
26
+ error: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: "res";
29
+ id: string;
30
+ ok: boolean;
31
+ payload?: unknown;
32
+ error?: string | undefined;
33
+ }, {
34
+ type: "res";
35
+ id: string;
36
+ ok: boolean;
37
+ payload?: unknown;
38
+ error?: string | undefined;
39
+ }>;
40
+ export declare const BaseEventSchema: z.ZodObject<{
41
+ type: z.ZodLiteral<"event">;
42
+ event: z.ZodString;
43
+ payload: z.ZodOptional<z.ZodUnknown>;
44
+ /** Daemon multiplex: identifies owning agent */
45
+ agentId: z.ZodOptional<z.ZodString>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: "event";
48
+ event: string;
49
+ payload?: unknown;
50
+ agentId?: string | undefined;
51
+ }, {
52
+ type: "event";
53
+ event: string;
54
+ payload?: unknown;
55
+ agentId?: string | undefined;
56
+ }>;
57
+ export declare const InboundFrameSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
58
+ type: z.ZodLiteral<"res">;
59
+ id: z.ZodString;
60
+ ok: z.ZodBoolean;
61
+ payload: z.ZodOptional<z.ZodUnknown>;
62
+ error: z.ZodOptional<z.ZodString>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ type: "res";
65
+ id: string;
66
+ ok: boolean;
67
+ payload?: unknown;
68
+ error?: string | undefined;
69
+ }, {
70
+ type: "res";
71
+ id: string;
72
+ ok: boolean;
73
+ payload?: unknown;
74
+ error?: string | undefined;
75
+ }>, z.ZodObject<{
76
+ type: z.ZodLiteral<"event">;
77
+ event: z.ZodString;
78
+ payload: z.ZodOptional<z.ZodUnknown>;
79
+ /** Daemon multiplex: identifies owning agent */
80
+ agentId: z.ZodOptional<z.ZodString>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ type: "event";
83
+ event: string;
84
+ payload?: unknown;
85
+ agentId?: string | undefined;
86
+ }, {
87
+ type: "event";
88
+ event: string;
89
+ payload?: unknown;
90
+ agentId?: string | undefined;
91
+ }>]>;
92
+ export type BaseRequest = z.infer<typeof BaseRequestSchema>;
93
+ export type BaseResponse = z.infer<typeof BaseResponseSchema>;
94
+ export type BaseEvent = z.infer<typeof BaseEventSchema>;
95
+ export type InboundFrame = z.infer<typeof InboundFrameSchema>;
96
+ export declare const RegisterParamsSchema: z.ZodObject<{
97
+ agentId: z.ZodString;
98
+ apiKey: z.ZodString;
99
+ name: z.ZodString;
100
+ agentType: z.ZodString;
101
+ capabilities: z.ZodObject<{
102
+ streaming: z.ZodBoolean;
103
+ toolCall: z.ZodBoolean;
104
+ cancellation: z.ZodBoolean;
105
+ maxConcurrentTasks: z.ZodOptional<z.ZodNumber>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ streaming: boolean;
108
+ toolCall: boolean;
109
+ cancellation: boolean;
110
+ maxConcurrentTasks?: number | undefined;
111
+ }, {
112
+ streaming: boolean;
113
+ toolCall: boolean;
114
+ cancellation: boolean;
115
+ maxConcurrentTasks?: number | undefined;
116
+ }>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ agentId: string;
119
+ apiKey: string;
120
+ name: string;
121
+ agentType: string;
122
+ capabilities: {
123
+ streaming: boolean;
124
+ toolCall: boolean;
125
+ cancellation: boolean;
126
+ maxConcurrentTasks?: number | undefined;
127
+ };
128
+ }, {
129
+ agentId: string;
130
+ apiKey: string;
131
+ name: string;
132
+ agentType: string;
133
+ capabilities: {
134
+ streaming: boolean;
135
+ toolCall: boolean;
136
+ cancellation: boolean;
137
+ maxConcurrentTasks?: number | undefined;
138
+ };
139
+ }>;
140
+ export declare const RegisterResponsePayloadSchema: z.ZodObject<{
141
+ connectionSessionToken: z.ZodString;
142
+ config: z.ZodObject<{
143
+ heartbeatInterval: z.ZodNumber;
144
+ taskTimeout: z.ZodNumber;
145
+ }, "strip", z.ZodTypeAny, {
146
+ heartbeatInterval: number;
147
+ taskTimeout: number;
148
+ }, {
149
+ heartbeatInterval: number;
150
+ taskTimeout: number;
151
+ }>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ connectionSessionToken: string;
154
+ config: {
155
+ heartbeatInterval: number;
156
+ taskTimeout: number;
157
+ };
158
+ }, {
159
+ connectionSessionToken: string;
160
+ config: {
161
+ heartbeatInterval: number;
162
+ taskTimeout: number;
163
+ };
164
+ }>;
165
+ export type RegisterParams = z.infer<typeof RegisterParamsSchema>;
166
+ export type RegisterResponsePayload = z.infer<typeof RegisterResponsePayloadSchema>;
167
+ export declare const PingParamsSchema: z.ZodUndefined;
168
+ export type PingParams = undefined;
169
+ export declare const TaskConstraintsSchema: z.ZodObject<{
170
+ timeout: z.ZodOptional<z.ZodNumber>;
171
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ timeout?: number | undefined;
174
+ allowedTools?: string[] | undefined;
175
+ }, {
176
+ timeout?: number | undefined;
177
+ allowedTools?: string[] | undefined;
178
+ }>;
179
+ export declare const TaskContextSchema: z.ZodObject<{
180
+ roleId: z.ZodString;
181
+ roleName: z.ZodString;
182
+ rolePersonality: z.ZodOptional<z.ZodString>;
183
+ projectId: z.ZodOptional<z.ZodString>;
184
+ projectName: z.ZodOptional<z.ZodString>;
185
+ projectCode: z.ZodOptional<z.ZodString>;
186
+ operatorName: z.ZodOptional<z.ZodString>;
187
+ conversationSummary: z.ZodOptional<z.ZodString>;
188
+ constraints: z.ZodOptional<z.ZodObject<{
189
+ timeout: z.ZodOptional<z.ZodNumber>;
190
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ timeout?: number | undefined;
193
+ allowedTools?: string[] | undefined;
194
+ }, {
195
+ timeout?: number | undefined;
196
+ allowedTools?: string[] | undefined;
197
+ }>>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ roleId: string;
200
+ roleName: string;
201
+ rolePersonality?: string | undefined;
202
+ projectId?: string | undefined;
203
+ projectName?: string | undefined;
204
+ projectCode?: string | undefined;
205
+ operatorName?: string | undefined;
206
+ conversationSummary?: string | undefined;
207
+ constraints?: {
208
+ timeout?: number | undefined;
209
+ allowedTools?: string[] | undefined;
210
+ } | undefined;
211
+ }, {
212
+ roleId: string;
213
+ roleName: string;
214
+ rolePersonality?: string | undefined;
215
+ projectId?: string | undefined;
216
+ projectName?: string | undefined;
217
+ projectCode?: string | undefined;
218
+ operatorName?: string | undefined;
219
+ conversationSummary?: string | undefined;
220
+ constraints?: {
221
+ timeout?: number | undefined;
222
+ allowedTools?: string[] | undefined;
223
+ } | undefined;
224
+ }>;
225
+ export declare const TaskAssignParamsSchema: z.ZodObject<{
226
+ taskId: z.ZodString;
227
+ input: z.ZodString;
228
+ context: z.ZodObject<{
229
+ roleId: z.ZodString;
230
+ roleName: z.ZodString;
231
+ rolePersonality: z.ZodOptional<z.ZodString>;
232
+ projectId: z.ZodOptional<z.ZodString>;
233
+ projectName: z.ZodOptional<z.ZodString>;
234
+ projectCode: z.ZodOptional<z.ZodString>;
235
+ operatorName: z.ZodOptional<z.ZodString>;
236
+ conversationSummary: z.ZodOptional<z.ZodString>;
237
+ constraints: z.ZodOptional<z.ZodObject<{
238
+ timeout: z.ZodOptional<z.ZodNumber>;
239
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ timeout?: number | undefined;
242
+ allowedTools?: string[] | undefined;
243
+ }, {
244
+ timeout?: number | undefined;
245
+ allowedTools?: string[] | undefined;
246
+ }>>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ roleId: string;
249
+ roleName: string;
250
+ rolePersonality?: string | undefined;
251
+ projectId?: string | undefined;
252
+ projectName?: string | undefined;
253
+ projectCode?: string | undefined;
254
+ operatorName?: string | undefined;
255
+ conversationSummary?: string | undefined;
256
+ constraints?: {
257
+ timeout?: number | undefined;
258
+ allowedTools?: string[] | undefined;
259
+ } | undefined;
260
+ }, {
261
+ roleId: string;
262
+ roleName: string;
263
+ rolePersonality?: string | undefined;
264
+ projectId?: string | undefined;
265
+ projectName?: string | undefined;
266
+ projectCode?: string | undefined;
267
+ operatorName?: string | undefined;
268
+ conversationSummary?: string | undefined;
269
+ constraints?: {
270
+ timeout?: number | undefined;
271
+ allowedTools?: string[] | undefined;
272
+ } | undefined;
273
+ }>;
274
+ streaming: z.ZodBoolean;
275
+ systemPrompt: z.ZodOptional<z.ZodString>;
276
+ mcpToken: z.ZodOptional<z.ZodString>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ streaming: boolean;
279
+ taskId: string;
280
+ input: string;
281
+ context: {
282
+ roleId: string;
283
+ roleName: string;
284
+ rolePersonality?: string | undefined;
285
+ projectId?: string | undefined;
286
+ projectName?: string | undefined;
287
+ projectCode?: string | undefined;
288
+ operatorName?: string | undefined;
289
+ conversationSummary?: string | undefined;
290
+ constraints?: {
291
+ timeout?: number | undefined;
292
+ allowedTools?: string[] | undefined;
293
+ } | undefined;
294
+ };
295
+ systemPrompt?: string | undefined;
296
+ mcpToken?: string | undefined;
297
+ }, {
298
+ streaming: boolean;
299
+ taskId: string;
300
+ input: string;
301
+ context: {
302
+ roleId: string;
303
+ roleName: string;
304
+ rolePersonality?: string | undefined;
305
+ projectId?: string | undefined;
306
+ projectName?: string | undefined;
307
+ projectCode?: string | undefined;
308
+ operatorName?: string | undefined;
309
+ conversationSummary?: string | undefined;
310
+ constraints?: {
311
+ timeout?: number | undefined;
312
+ allowedTools?: string[] | undefined;
313
+ } | undefined;
314
+ };
315
+ systemPrompt?: string | undefined;
316
+ mcpToken?: string | undefined;
317
+ }>;
318
+ export type TaskContext = z.infer<typeof TaskContextSchema>;
319
+ export type TaskConstraints = z.infer<typeof TaskConstraintsSchema>;
320
+ export type TaskAssignParams = z.infer<typeof TaskAssignParamsSchema>;
321
+ export declare const TaskDeltaEventSchema: z.ZodObject<{
322
+ taskId: z.ZodString;
323
+ content: z.ZodString;
324
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ taskId: string;
327
+ content: string;
328
+ meta?: Record<string, unknown> | undefined;
329
+ }, {
330
+ taskId: string;
331
+ content: string;
332
+ meta?: Record<string, unknown> | undefined;
333
+ }>;
334
+ export declare const TaskThinkingEventSchema: z.ZodObject<{
335
+ taskId: z.ZodString;
336
+ content: z.ZodString;
337
+ }, "strip", z.ZodTypeAny, {
338
+ taskId: string;
339
+ content: string;
340
+ }, {
341
+ taskId: string;
342
+ content: string;
343
+ }>;
344
+ export declare const TaskCompleteEventSchema: z.ZodObject<{
345
+ taskId: z.ZodString;
346
+ result: z.ZodUnknown;
347
+ sessionId: z.ZodOptional<z.ZodString>;
348
+ usage: z.ZodOptional<z.ZodObject<{
349
+ input: z.ZodNumber;
350
+ output: z.ZodNumber;
351
+ }, "strip", z.ZodTypeAny, {
352
+ input: number;
353
+ output: number;
354
+ }, {
355
+ input: number;
356
+ output: number;
357
+ }>>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ taskId: string;
360
+ result?: unknown;
361
+ sessionId?: string | undefined;
362
+ usage?: {
363
+ input: number;
364
+ output: number;
365
+ } | undefined;
366
+ }, {
367
+ taskId: string;
368
+ result?: unknown;
369
+ sessionId?: string | undefined;
370
+ usage?: {
371
+ input: number;
372
+ output: number;
373
+ } | undefined;
374
+ }>;
375
+ export declare const TaskErrorEventSchema: z.ZodObject<{
376
+ taskId: z.ZodString;
377
+ error: z.ZodString;
378
+ code: z.ZodOptional<z.ZodString>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ error: string;
381
+ taskId: string;
382
+ code?: string | undefined;
383
+ }, {
384
+ error: string;
385
+ taskId: string;
386
+ code?: string | undefined;
387
+ }>;
388
+ export declare const TaskCancelEventSchema: z.ZodObject<{
389
+ taskId: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ taskId: string;
392
+ }, {
393
+ taskId: string;
394
+ }>;
395
+ export declare const TaskCancelledEventSchema: z.ZodObject<{
396
+ taskId: z.ZodString;
397
+ }, "strip", z.ZodTypeAny, {
398
+ taskId: string;
399
+ }, {
400
+ taskId: string;
401
+ }>;
402
+ export declare const TaskResumeEventSchema: z.ZodObject<{
403
+ taskId: z.ZodString;
404
+ }, "strip", z.ZodTypeAny, {
405
+ taskId: string;
406
+ }, {
407
+ taskId: string;
408
+ }>;
409
+ export type TaskDeltaPayload = z.infer<typeof TaskDeltaEventSchema>;
410
+ export type TaskThinkingPayload = z.infer<typeof TaskThinkingEventSchema>;
411
+ export type TaskCompletePayload = z.infer<typeof TaskCompleteEventSchema>;
412
+ export type TaskErrorPayload = z.infer<typeof TaskErrorEventSchema>;
413
+ export type TaskCancelPayload = z.infer<typeof TaskCancelEventSchema>;
414
+ export type TaskCancelledPayload = z.infer<typeof TaskCancelledEventSchema>;
415
+ export type TaskResumePayload = z.infer<typeof TaskResumeEventSchema>;
416
+ export declare const ToolCallParamsSchema: z.ZodObject<{
417
+ callId: z.ZodString;
418
+ toolName: z.ZodString;
419
+ args: z.ZodUnknown;
420
+ taskId: z.ZodOptional<z.ZodString>;
421
+ }, "strip", z.ZodTypeAny, {
422
+ callId: string;
423
+ toolName: string;
424
+ taskId?: string | undefined;
425
+ args?: unknown;
426
+ }, {
427
+ callId: string;
428
+ toolName: string;
429
+ taskId?: string | undefined;
430
+ args?: unknown;
431
+ }>;
432
+ export type ToolCallParams = z.infer<typeof ToolCallParamsSchema>;
433
+ export declare const RuntimeAvailabilityPayloadSchema: z.ZodObject<{
434
+ runtimeKind: z.ZodEnum<["hermes", "openclaw"]>;
435
+ reachable: z.ZodBoolean;
436
+ checkedAtIso: z.ZodString;
437
+ mode: z.ZodEnum<["endpoint", "command"]>;
438
+ error: z.ZodOptional<z.ZodString>;
439
+ }, "strip", z.ZodTypeAny, {
440
+ runtimeKind: "hermes" | "openclaw";
441
+ reachable: boolean;
442
+ checkedAtIso: string;
443
+ mode: "endpoint" | "command";
444
+ error?: string | undefined;
445
+ }, {
446
+ runtimeKind: "hermes" | "openclaw";
447
+ reachable: boolean;
448
+ checkedAtIso: string;
449
+ mode: "endpoint" | "command";
450
+ error?: string | undefined;
451
+ }>;
452
+ export type RuntimeAvailabilityPayload = z.infer<typeof RuntimeAvailabilityPayloadSchema>;
453
+ export declare const AgentCreateParamsSchema: z.ZodObject<{
454
+ agentId: z.ZodString;
455
+ name: z.ZodString;
456
+ agentType: z.ZodString;
457
+ runtime: z.ZodString;
458
+ apiKey: z.ZodString;
459
+ workDir: z.ZodOptional<z.ZodString>;
460
+ endpoint: z.ZodOptional<z.ZodString>;
461
+ endpointToken: z.ZodOptional<z.ZodString>;
462
+ hermesEndpoint: z.ZodOptional<z.ZodString>;
463
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
464
+ mcpBridgeUrl: z.ZodOptional<z.ZodString>;
465
+ mcpApiKey: z.ZodOptional<z.ZodString>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ agentId: string;
468
+ apiKey: string;
469
+ name: string;
470
+ agentType: string;
471
+ runtime: string;
472
+ endpoint?: string | undefined;
473
+ workDir?: string | undefined;
474
+ endpointToken?: string | undefined;
475
+ hermesEndpoint?: string | undefined;
476
+ tools?: string[] | undefined;
477
+ mcpBridgeUrl?: string | undefined;
478
+ mcpApiKey?: string | undefined;
479
+ }, {
480
+ agentId: string;
481
+ apiKey: string;
482
+ name: string;
483
+ agentType: string;
484
+ runtime: string;
485
+ endpoint?: string | undefined;
486
+ workDir?: string | undefined;
487
+ endpointToken?: string | undefined;
488
+ hermesEndpoint?: string | undefined;
489
+ tools?: string[] | undefined;
490
+ mcpBridgeUrl?: string | undefined;
491
+ mcpApiKey?: string | undefined;
492
+ }>;
493
+ export type AgentCreateParams = z.infer<typeof AgentCreateParamsSchema>;
494
+ export declare const ComputerRegisterParamsSchema: z.ZodEffects<z.ZodObject<{
495
+ installationId: z.ZodString;
496
+ token: z.ZodOptional<z.ZodString>;
497
+ apiKey: z.ZodOptional<z.ZodString>;
498
+ hostname: z.ZodString;
499
+ os: z.ZodString;
500
+ arch: z.ZodString;
501
+ daemonVersion: z.ZodOptional<z.ZodString>;
502
+ runtimes: z.ZodArray<z.ZodObject<{
503
+ name: z.ZodString;
504
+ version: z.ZodOptional<z.ZodString>;
505
+ available: z.ZodBoolean;
506
+ }, "strip", z.ZodTypeAny, {
507
+ name: string;
508
+ available: boolean;
509
+ version?: string | undefined;
510
+ }, {
511
+ name: string;
512
+ available: boolean;
513
+ version?: string | undefined;
514
+ }>, "many">;
515
+ supportedAgentTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ installationId: string;
518
+ hostname: string;
519
+ os: string;
520
+ arch: string;
521
+ runtimes: {
522
+ name: string;
523
+ available: boolean;
524
+ version?: string | undefined;
525
+ }[];
526
+ apiKey?: string | undefined;
527
+ token?: string | undefined;
528
+ daemonVersion?: string | undefined;
529
+ supportedAgentTypes?: string[] | undefined;
530
+ }, {
531
+ installationId: string;
532
+ hostname: string;
533
+ os: string;
534
+ arch: string;
535
+ runtimes: {
536
+ name: string;
537
+ available: boolean;
538
+ version?: string | undefined;
539
+ }[];
540
+ apiKey?: string | undefined;
541
+ token?: string | undefined;
542
+ daemonVersion?: string | undefined;
543
+ supportedAgentTypes?: string[] | undefined;
544
+ }>, {
545
+ installationId: string;
546
+ hostname: string;
547
+ os: string;
548
+ arch: string;
549
+ runtimes: {
550
+ name: string;
551
+ available: boolean;
552
+ version?: string | undefined;
553
+ }[];
554
+ apiKey?: string | undefined;
555
+ token?: string | undefined;
556
+ daemonVersion?: string | undefined;
557
+ supportedAgentTypes?: string[] | undefined;
558
+ }, {
559
+ installationId: string;
560
+ hostname: string;
561
+ os: string;
562
+ arch: string;
563
+ runtimes: {
564
+ name: string;
565
+ available: boolean;
566
+ version?: string | undefined;
567
+ }[];
568
+ apiKey?: string | undefined;
569
+ token?: string | undefined;
570
+ daemonVersion?: string | undefined;
571
+ supportedAgentTypes?: string[] | undefined;
572
+ }>;
573
+ export type ComputerRegisterParams = z.infer<typeof ComputerRegisterParamsSchema>;
574
+ export declare const SessionListParamsSchema: z.ZodObject<{
575
+ dir: z.ZodOptional<z.ZodString>;
576
+ limit: z.ZodOptional<z.ZodNumber>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ dir?: string | undefined;
579
+ limit?: number | undefined;
580
+ }, {
581
+ dir?: string | undefined;
582
+ limit?: number | undefined;
583
+ }>;
584
+ export declare const SessionEntrySchema: z.ZodObject<{
585
+ sessionId: z.ZodString;
586
+ title: z.ZodString;
587
+ createdAt: z.ZodString;
588
+ updatedAt: z.ZodString;
589
+ messageCount: z.ZodOptional<z.ZodNumber>;
590
+ agentType: z.ZodOptional<z.ZodString>;
591
+ lastActivity: z.ZodOptional<z.ZodString>;
592
+ projectName: z.ZodOptional<z.ZodString>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ sessionId: string;
595
+ title: string;
596
+ createdAt: string;
597
+ updatedAt: string;
598
+ agentType?: string | undefined;
599
+ projectName?: string | undefined;
600
+ messageCount?: number | undefined;
601
+ lastActivity?: string | undefined;
602
+ }, {
603
+ sessionId: string;
604
+ title: string;
605
+ createdAt: string;
606
+ updatedAt: string;
607
+ agentType?: string | undefined;
608
+ projectName?: string | undefined;
609
+ messageCount?: number | undefined;
610
+ lastActivity?: string | undefined;
611
+ }>;
612
+ export declare const SessionListResponseSchema: z.ZodObject<{
613
+ sessions: z.ZodArray<z.ZodObject<{
614
+ sessionId: z.ZodString;
615
+ title: z.ZodString;
616
+ createdAt: z.ZodString;
617
+ updatedAt: z.ZodString;
618
+ messageCount: z.ZodOptional<z.ZodNumber>;
619
+ agentType: z.ZodOptional<z.ZodString>;
620
+ lastActivity: z.ZodOptional<z.ZodString>;
621
+ projectName: z.ZodOptional<z.ZodString>;
622
+ }, "strip", z.ZodTypeAny, {
623
+ sessionId: string;
624
+ title: string;
625
+ createdAt: string;
626
+ updatedAt: string;
627
+ agentType?: string | undefined;
628
+ projectName?: string | undefined;
629
+ messageCount?: number | undefined;
630
+ lastActivity?: string | undefined;
631
+ }, {
632
+ sessionId: string;
633
+ title: string;
634
+ createdAt: string;
635
+ updatedAt: string;
636
+ agentType?: string | undefined;
637
+ projectName?: string | undefined;
638
+ messageCount?: number | undefined;
639
+ lastActivity?: string | undefined;
640
+ }>, "many">;
641
+ total: z.ZodOptional<z.ZodNumber>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ sessions: {
644
+ sessionId: string;
645
+ title: string;
646
+ createdAt: string;
647
+ updatedAt: string;
648
+ agentType?: string | undefined;
649
+ projectName?: string | undefined;
650
+ messageCount?: number | undefined;
651
+ lastActivity?: string | undefined;
652
+ }[];
653
+ total?: number | undefined;
654
+ }, {
655
+ sessions: {
656
+ sessionId: string;
657
+ title: string;
658
+ createdAt: string;
659
+ updatedAt: string;
660
+ agentType?: string | undefined;
661
+ projectName?: string | undefined;
662
+ messageCount?: number | undefined;
663
+ lastActivity?: string | undefined;
664
+ }[];
665
+ total?: number | undefined;
666
+ }>;
667
+ export declare const SessionGetParamsSchema: z.ZodObject<{
668
+ sessionId: z.ZodString;
669
+ dir: z.ZodOptional<z.ZodString>;
670
+ messageLimit: z.ZodOptional<z.ZodNumber>;
671
+ messageOffset: z.ZodOptional<z.ZodNumber>;
672
+ includeRawMessages: z.ZodOptional<z.ZodBoolean>;
673
+ }, "strip", z.ZodTypeAny, {
674
+ sessionId: string;
675
+ dir?: string | undefined;
676
+ messageLimit?: number | undefined;
677
+ messageOffset?: number | undefined;
678
+ includeRawMessages?: boolean | undefined;
679
+ }, {
680
+ sessionId: string;
681
+ dir?: string | undefined;
682
+ messageLimit?: number | undefined;
683
+ messageOffset?: number | undefined;
684
+ includeRawMessages?: boolean | undefined;
685
+ }>;
686
+ export declare const SessionMessageSchema: z.ZodObject<{
687
+ role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
688
+ content: z.ZodString;
689
+ timestamp: z.ZodOptional<z.ZodString>;
690
+ toolUse: z.ZodOptional<z.ZodUnknown>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ content: string;
693
+ role: "user" | "assistant" | "system" | "tool";
694
+ timestamp?: string | undefined;
695
+ toolUse?: unknown;
696
+ }, {
697
+ content: string;
698
+ role: "user" | "assistant" | "system" | "tool";
699
+ timestamp?: string | undefined;
700
+ toolUse?: unknown;
701
+ }>;
702
+ export declare const SessionDetailResponseSchema: z.ZodObject<{
703
+ sessionId: z.ZodString;
704
+ title: z.ZodString;
705
+ createdAt: z.ZodString;
706
+ updatedAt: z.ZodString;
707
+ messageCount: z.ZodOptional<z.ZodNumber>;
708
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
709
+ role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
710
+ content: z.ZodString;
711
+ timestamp: z.ZodOptional<z.ZodString>;
712
+ toolUse: z.ZodOptional<z.ZodUnknown>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ content: string;
715
+ role: "user" | "assistant" | "system" | "tool";
716
+ timestamp?: string | undefined;
717
+ toolUse?: unknown;
718
+ }, {
719
+ content: string;
720
+ role: "user" | "assistant" | "system" | "tool";
721
+ timestamp?: string | undefined;
722
+ toolUse?: unknown;
723
+ }>, "many">>;
724
+ replayGuide: z.ZodOptional<z.ZodString>;
725
+ metadata: z.ZodOptional<z.ZodUnknown>;
726
+ }, "strip", z.ZodTypeAny, {
727
+ sessionId: string;
728
+ title: string;
729
+ createdAt: string;
730
+ updatedAt: string;
731
+ messageCount?: number | undefined;
732
+ messages?: {
733
+ content: string;
734
+ role: "user" | "assistant" | "system" | "tool";
735
+ timestamp?: string | undefined;
736
+ toolUse?: unknown;
737
+ }[] | undefined;
738
+ replayGuide?: string | undefined;
739
+ metadata?: unknown;
740
+ }, {
741
+ sessionId: string;
742
+ title: string;
743
+ createdAt: string;
744
+ updatedAt: string;
745
+ messageCount?: number | undefined;
746
+ messages?: {
747
+ content: string;
748
+ role: "user" | "assistant" | "system" | "tool";
749
+ timestamp?: string | undefined;
750
+ toolUse?: unknown;
751
+ }[] | undefined;
752
+ replayGuide?: string | undefined;
753
+ metadata?: unknown;
754
+ }>;
755
+ export type SessionListParams = z.infer<typeof SessionListParamsSchema>;
756
+ export type SessionListResponse = z.infer<typeof SessionListResponseSchema>;
757
+ export type SessionGetParams = z.infer<typeof SessionGetParamsSchema>;
758
+ export type SessionDetailResponse = z.infer<typeof SessionDetailResponseSchema>;
759
+ export declare const ClaudeTaskConfigSchema: z.ZodObject<{
760
+ model: z.ZodOptional<z.ZodString>;
761
+ permissionMode: z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "bypassPermissions", "plan"]>>;
762
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
763
+ systemPrompt: z.ZodOptional<z.ZodString>;
764
+ cwd: z.ZodOptional<z.ZodString>;
765
+ }, "strip", z.ZodTypeAny, {
766
+ allowedTools?: string[] | undefined;
767
+ systemPrompt?: string | undefined;
768
+ model?: string | undefined;
769
+ permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
770
+ cwd?: string | undefined;
771
+ }, {
772
+ allowedTools?: string[] | undefined;
773
+ systemPrompt?: string | undefined;
774
+ model?: string | undefined;
775
+ permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
776
+ cwd?: string | undefined;
777
+ }>;
778
+ export declare const HermesTaskConfigSchema: z.ZodObject<{
779
+ model: z.ZodOptional<z.ZodString>;
780
+ mcpBridgeUrl: z.ZodOptional<z.ZodString>;
781
+ mcpApiKey: z.ZodOptional<z.ZodString>;
782
+ cwd: z.ZodOptional<z.ZodString>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ mcpBridgeUrl?: string | undefined;
785
+ mcpApiKey?: string | undefined;
786
+ model?: string | undefined;
787
+ cwd?: string | undefined;
788
+ }, {
789
+ mcpBridgeUrl?: string | undefined;
790
+ mcpApiKey?: string | undefined;
791
+ model?: string | undefined;
792
+ cwd?: string | undefined;
793
+ }>;
794
+ export type ClaudeTaskConfig = z.infer<typeof ClaudeTaskConfigSchema>;
795
+ export type HermesTaskConfig = z.infer<typeof HermesTaskConfigSchema>;
796
+ export declare const WorkspaceReportPayloadSchema: z.ZodObject<{
797
+ agentId: z.ZodString;
798
+ workdir: z.ZodOptional<z.ZodObject<{
799
+ pathSummary: z.ZodString;
800
+ gitRemote: z.ZodOptional<z.ZodString>;
801
+ gitBranch: z.ZodOptional<z.ZodString>;
802
+ techStack: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
803
+ scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
804
+ installedCli: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ pathSummary: string;
807
+ gitRemote?: string | undefined;
808
+ gitBranch?: string | undefined;
809
+ techStack?: Record<string, string> | undefined;
810
+ scripts?: Record<string, string> | undefined;
811
+ installedCli?: string[] | undefined;
812
+ }, {
813
+ pathSummary: string;
814
+ gitRemote?: string | undefined;
815
+ gitBranch?: string | undefined;
816
+ techStack?: Record<string, string> | undefined;
817
+ scripts?: Record<string, string> | undefined;
818
+ installedCli?: string[] | undefined;
819
+ }>>;
820
+ runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
821
+ version: z.ZodString;
822
+ available: z.ZodBoolean;
823
+ }, "strip", z.ZodTypeAny, {
824
+ version: string;
825
+ available: boolean;
826
+ }, {
827
+ version: string;
828
+ available: boolean;
829
+ }>>>;
830
+ }, "strip", z.ZodTypeAny, {
831
+ agentId: string;
832
+ runtimes?: Record<string, {
833
+ version: string;
834
+ available: boolean;
835
+ }> | undefined;
836
+ workdir?: {
837
+ pathSummary: string;
838
+ gitRemote?: string | undefined;
839
+ gitBranch?: string | undefined;
840
+ techStack?: Record<string, string> | undefined;
841
+ scripts?: Record<string, string> | undefined;
842
+ installedCli?: string[] | undefined;
843
+ } | undefined;
844
+ }, {
845
+ agentId: string;
846
+ runtimes?: Record<string, {
847
+ version: string;
848
+ available: boolean;
849
+ }> | undefined;
850
+ workdir?: {
851
+ pathSummary: string;
852
+ gitRemote?: string | undefined;
853
+ gitBranch?: string | undefined;
854
+ techStack?: Record<string, string> | undefined;
855
+ scripts?: Record<string, string> | undefined;
856
+ installedCli?: string[] | undefined;
857
+ } | undefined;
858
+ }>;
859
+ export type WorkspaceReportPayload = z.infer<typeof WorkspaceReportPayloadSchema>;
860
+ export declare const AgentProfileSchema: z.ZodObject<{
861
+ agentId: z.ZodString;
862
+ agentType: z.ZodString;
863
+ tools: z.ZodArray<z.ZodString, "many">;
864
+ skills: z.ZodArray<z.ZodObject<{
865
+ name: z.ZodString;
866
+ description: z.ZodOptional<z.ZodString>;
867
+ source: z.ZodOptional<z.ZodString>;
868
+ category: z.ZodOptional<z.ZodString>;
869
+ }, "strip", z.ZodTypeAny, {
870
+ name: string;
871
+ description?: string | undefined;
872
+ source?: string | undefined;
873
+ category?: string | undefined;
874
+ }, {
875
+ name: string;
876
+ description?: string | undefined;
877
+ source?: string | undefined;
878
+ category?: string | undefined;
879
+ }>, "many">;
880
+ toolCategories: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
881
+ }, "strip", z.ZodTypeAny, {
882
+ agentId: string;
883
+ agentType: string;
884
+ tools: string[];
885
+ skills: {
886
+ name: string;
887
+ description?: string | undefined;
888
+ source?: string | undefined;
889
+ category?: string | undefined;
890
+ }[];
891
+ toolCategories: Record<string, string[]>;
892
+ }, {
893
+ agentId: string;
894
+ agentType: string;
895
+ tools: string[];
896
+ skills: {
897
+ name: string;
898
+ description?: string | undefined;
899
+ source?: string | undefined;
900
+ category?: string | undefined;
901
+ }[];
902
+ toolCategories: Record<string, string[]>;
903
+ }>;
904
+ export type AgentProfile = z.infer<typeof AgentProfileSchema>;
905
+ export declare const ComputerHeartbeatPayloadSchema: z.ZodOptional<z.ZodObject<{
906
+ agentProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
907
+ agentId: z.ZodString;
908
+ agentType: z.ZodString;
909
+ tools: z.ZodArray<z.ZodString, "many">;
910
+ skills: z.ZodArray<z.ZodObject<{
911
+ name: z.ZodString;
912
+ description: z.ZodOptional<z.ZodString>;
913
+ source: z.ZodOptional<z.ZodString>;
914
+ category: z.ZodOptional<z.ZodString>;
915
+ }, "strip", z.ZodTypeAny, {
916
+ name: string;
917
+ description?: string | undefined;
918
+ source?: string | undefined;
919
+ category?: string | undefined;
920
+ }, {
921
+ name: string;
922
+ description?: string | undefined;
923
+ source?: string | undefined;
924
+ category?: string | undefined;
925
+ }>, "many">;
926
+ toolCategories: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
927
+ }, "strip", z.ZodTypeAny, {
928
+ agentId: string;
929
+ agentType: string;
930
+ tools: string[];
931
+ skills: {
932
+ name: string;
933
+ description?: string | undefined;
934
+ source?: string | undefined;
935
+ category?: string | undefined;
936
+ }[];
937
+ toolCategories: Record<string, string[]>;
938
+ }, {
939
+ agentId: string;
940
+ agentType: string;
941
+ tools: string[];
942
+ skills: {
943
+ name: string;
944
+ description?: string | undefined;
945
+ source?: string | undefined;
946
+ category?: string | undefined;
947
+ }[];
948
+ toolCategories: Record<string, string[]>;
949
+ }>, "many">>;
950
+ }, "strip", z.ZodTypeAny, {
951
+ agentProfiles?: {
952
+ agentId: string;
953
+ agentType: string;
954
+ tools: string[];
955
+ skills: {
956
+ name: string;
957
+ description?: string | undefined;
958
+ source?: string | undefined;
959
+ category?: string | undefined;
960
+ }[];
961
+ toolCategories: Record<string, string[]>;
962
+ }[] | undefined;
963
+ }, {
964
+ agentProfiles?: {
965
+ agentId: string;
966
+ agentType: string;
967
+ tools: string[];
968
+ skills: {
969
+ name: string;
970
+ description?: string | undefined;
971
+ source?: string | undefined;
972
+ category?: string | undefined;
973
+ }[];
974
+ toolCategories: Record<string, string[]>;
975
+ }[] | undefined;
976
+ }>>;
977
+ export type ComputerHeartbeatPayload = z.infer<typeof ComputerHeartbeatPayloadSchema>;
978
+ //# sourceMappingURL=schemas.d.ts.map