@easbot/types 0.3.29 → 0.3.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,33 +1,39 @@
1
- import z, { z as z$1 } from 'zod';
2
- import { EasbotClient } from '@easbot/sdk';
3
- import { EmbeddingModel, LanguageModel, RerankingModel } from 'ai';
1
+ import * as z from 'zod';
2
+ import z__default, { z as z$1 } from 'zod';
3
+ import { EmbeddingModelV3, LanguageModelV3, RerankingModelV3 } from '@ai-sdk/provider';
4
4
 
5
- interface ErrorInfo {
6
- name?: string;
7
- code: string;
8
- message: string;
9
- source?: string;
10
- details?: Record<string, any>;
11
- timestamp: string | number;
12
- stack?: string;
13
- }
14
- declare enum AgentCapability {
15
- TEXT_PROCESSING = "text_processing",
16
- CODE_GENERATION = "code_generation",
17
- DATA_ANALYSIS = "data_analysis",
18
- TASK_EXECUTION = "task_execution",
19
- WORKFLOW_MANAGEMENT = "workflow_management",
20
- MONITORING = "monitoring",
21
- COMMUNICATION = "communication"
22
- }
23
-
24
- declare enum TaskPriority {
25
- LOW = 0,
26
- NORMAL = 1,
27
- HIGH = 2,
28
- URGENT = 3,
29
- CRITICAL = 4
30
- }
5
+ declare const SchedulerTaskSchema: z__default.ZodObject<{
6
+ id: z__default.ZodString;
7
+ name: z__default.ZodString;
8
+ cron: z__default.ZodString;
9
+ enabled: z__default.ZodBoolean;
10
+ createdAt: z__default.ZodNumber;
11
+ updatedAt: z__default.ZodNumber;
12
+ lastFiredAt: z__default.ZodOptional<z__default.ZodNumber>;
13
+ nextFireAt: z__default.ZodOptional<z__default.ZodNumber>;
14
+ timezone: z__default.ZodOptional<z__default.ZodString>;
15
+ }, z__default.core.$strip>;
16
+ type SchedulerTask = z__default.infer<typeof SchedulerTaskSchema>;
17
+ declare const SchedulerTaskListSchema: z__default.ZodArray<z__default.ZodObject<{
18
+ id: z__default.ZodString;
19
+ name: z__default.ZodString;
20
+ cron: z__default.ZodString;
21
+ enabled: z__default.ZodBoolean;
22
+ createdAt: z__default.ZodNumber;
23
+ updatedAt: z__default.ZodNumber;
24
+ lastFiredAt: z__default.ZodOptional<z__default.ZodNumber>;
25
+ nextFireAt: z__default.ZodOptional<z__default.ZodNumber>;
26
+ timezone: z__default.ZodOptional<z__default.ZodString>;
27
+ }, z__default.core.$strip>>;
28
+ type SchedulerTaskList = z__default.infer<typeof SchedulerTaskListSchema>;
29
+ declare const SchedulerStatusSchema: z__default.ZodObject<{
30
+ status: z__default.ZodString;
31
+ }, z__default.core.$strip>;
32
+ type SchedulerStatus = z__default.infer<typeof SchedulerStatusSchema>;
33
+ declare const SchedulerInitializedSchema: z__default.ZodObject<{
34
+ initialized: z__default.ZodBoolean;
35
+ }, z__default.core.$strip>;
36
+ type SchedulerInitialized = z__default.infer<typeof SchedulerInitializedSchema>;
31
37
  declare enum TaskStatus {
32
38
  PENDING = "pending",
33
39
  RUNNING = "running",
@@ -38,7 +44,23 @@ declare enum TaskStatus {
38
44
  TIMEOUT = "timeout",
39
45
  SKIPPED = "skipped"
40
46
  }
47
+ declare enum TaskPriority {
48
+ LOW = 0,
49
+ NORMAL = 1,
50
+ HIGH = 2,
51
+ URGENT = 3,
52
+ CRITICAL = 4
53
+ }
41
54
 
55
+ interface ErrorInfo {
56
+ name?: string;
57
+ code: string;
58
+ message: string;
59
+ source?: string;
60
+ details?: Record<string, any>;
61
+ timestamp: string | number;
62
+ stack?: string;
63
+ }
42
64
  declare enum Protocol {
43
65
  HTTP = "http",
44
66
  WEBSOCKET = "websocket",
@@ -247,216 +269,6 @@ declare class ApiResponseBuilder {
247
269
  static error(code: number, message: string, error?: ErrorInfo): ErrorResponse;
248
270
  static businessError(businessCode: string, message: string, httpCode?: number): ErrorResponse;
249
271
  }
250
- declare enum AgentState {
251
- INITIALIZING = "initializing",
252
- IDLE = "idle",
253
- RUNNING = "running",
254
- SUSPENDED = "suspended",
255
- STOPPING = "stopping",
256
- STOPPED = "stopped",
257
- ERROR = "error"
258
- }
259
- interface AgentQuery {
260
- state?: AgentState | 'all';
261
- page?: number;
262
- limit?: number;
263
- search?: string;
264
- }
265
- interface AgentCreate {
266
- name: string;
267
- description?: string;
268
- config?: Record<string, any>;
269
- capabilities?: AgentCapability[];
270
- enabled?: boolean;
271
- }
272
- interface AgentUpdate {
273
- name?: string;
274
- description?: string;
275
- config?: Record<string, any>;
276
- capabilities?: AgentCapability[];
277
- enabled?: boolean;
278
- }
279
- interface AgentExecute {
280
- task: string;
281
- parameters?: Record<string, any>;
282
- context?: Record<string, any>;
283
- timeout?: number;
284
- priority?: 'low' | 'normal' | 'high' | 'urgent';
285
- }
286
- interface AgentStatistics {
287
- totalExecutions: number;
288
- successfulExecutions: number;
289
- failedExecutions: number;
290
- averageExecutionTime: number;
291
- totalExecutionTime: number;
292
- uptime: number;
293
- memoryUsage: {
294
- used: number;
295
- total: number;
296
- peak: number;
297
- };
298
- lastExecution?: {
299
- task: string;
300
- status: 'success' | 'failed' | 'timeout';
301
- duration: number;
302
- timestamp: string | number;
303
- };
304
- }
305
- interface AgentExecutionResult extends ApiResult<any> {
306
- agentId: string;
307
- task: string;
308
- status: 'in_progress' | 'completed' | 'failed' | 'timeout' | 'cancelled';
309
- result?: any;
310
- error?: string;
311
- startTime: string;
312
- endTime?: string;
313
- duration?: number;
314
- logs?: string[];
315
- metadata?: Record<string, any>;
316
- }
317
- interface AgentStatusInfo {
318
- id: string;
319
- name: string;
320
- state: AgentState;
321
- uptime: number;
322
- currentTask?: {
323
- id: string;
324
- name: string;
325
- state: string;
326
- progress: number;
327
- startTime: string;
328
- };
329
- timestamp: string | number;
330
- }
331
- interface AgentStatusInfo {
332
- id: string;
333
- name: string;
334
- status: AgentState;
335
- uptime: number;
336
- currentTask?: {
337
- id: string;
338
- name: string;
339
- state: string;
340
- progress: number;
341
- startTime: string;
342
- };
343
- resourceUsage: {
344
- cpu: number;
345
- memory: {
346
- used: number;
347
- total: number;
348
- percentage: number;
349
- };
350
- network?: {
351
- bytesIn: number;
352
- bytesOut: number;
353
- };
354
- };
355
- health: {
356
- overall: 'healthy' | 'degraded' | 'unhealthy';
357
- checks: {
358
- connectivity: boolean;
359
- responsiveness: boolean;
360
- errorRate: number;
361
- };
362
- };
363
- lastActivity: string;
364
- }
365
- interface AgentAction {
366
- force?: boolean;
367
- graceful?: boolean;
368
- timeout?: number;
369
- }
370
- declare enum SessionStatus {
371
- ACTIVE = "active",
372
- INACTIVE = "inactive",
373
- CLOSED = "closed"
374
- }
375
- interface SessionQuery {
376
- status?: SessionStatus | 'all';
377
- agentId?: string;
378
- userId?: string;
379
- page?: number;
380
- limit?: number;
381
- search?: string;
382
- startDate?: string;
383
- endDate?: string;
384
- }
385
- interface SessionCreate {
386
- agentId?: string;
387
- title: string;
388
- description?: string;
389
- metadata?: Record<string, any>;
390
- config?: Record<string, any>;
391
- }
392
- interface SessionUpdate {
393
- title?: string;
394
- description?: string;
395
- metadata?: Record<string, any>;
396
- config?: Record<string, any>;
397
- }
398
- interface SessionStatistics {
399
- messageCount: number;
400
- totalTokens: number;
401
- averageResponseTime: number;
402
- duration: number;
403
- errorCount: number;
404
- }
405
- declare enum MessageType$1 {
406
- TEXT = "text",
407
- IMAGE = "image",
408
- FILE = "file",
409
- AUDIO = "audio",
410
- VIDEO = "video",
411
- SYSTEM = "system"
412
- }
413
- declare enum MessageSender {
414
- USER = "user",
415
- AGENT = "agent",
416
- SYSTEM = "system"
417
- }
418
- interface MessageSend {
419
- content: string;
420
- type?: MessageType$1;
421
- metadata?: Record<string, any>;
422
- attachments?: MessageAttachment[];
423
- }
424
- interface MessageAttachment {
425
- id: string;
426
- name: string;
427
- type: string;
428
- size: number;
429
- url: string;
430
- metadata?: Record<string, any>;
431
- }
432
- interface SessionMessage {
433
- id: string;
434
- sessionId: string;
435
- sender: MessageSender;
436
- senderId?: string;
437
- content: string;
438
- type: MessageType$1;
439
- timestamp: string | number;
440
- metadata: Record<string, any>;
441
- attachments?: MessageAttachment[];
442
- reactions?: MessageReaction[];
443
- replyTo?: string;
444
- }
445
- interface MessageReaction {
446
- emoji: string;
447
- count: number;
448
- userIds: string[];
449
- }
450
- interface MessageQuery {
451
- type?: MessageType$1;
452
- sender?: MessageSender;
453
- startDate?: string;
454
- endDate?: string;
455
- page?: number;
456
- limit?: number;
457
- search?: string;
458
- }
459
-
460
272
  interface TaskQuery {
461
273
  status?: TaskStatus | 'all';
462
274
  priority?: TaskPriority;
@@ -546,989 +358,1024 @@ declare const Brand: {
546
358
  type Brand = typeof Brand;
547
359
  declare function brandEnv(suffix: string): string;
548
360
 
549
- declare const PermissionActionSchema: z.ZodEnum<{
361
+ declare const PermissionActionSchema: z__default.ZodEnum<{
362
+ ask: "ask";
550
363
  allow: "allow";
551
364
  deny: "deny";
552
- ask: "ask";
553
365
  }>;
554
- type PermissionActionType = z.infer<typeof PermissionActionSchema>;
555
- declare const PermissionObjectSchema: z.ZodRecord<z.ZodString, z.ZodEnum<{
366
+ type PermissionActionType = z__default.infer<typeof PermissionActionSchema>;
367
+ declare const PermissionObjectSchema: z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
368
+ ask: "ask";
556
369
  allow: "allow";
557
370
  deny: "deny";
558
- ask: "ask";
559
371
  }>>;
560
- type PermissionObjectType = z.infer<typeof PermissionObjectSchema>;
561
- declare const PermissionRuleSchema: z.ZodUnion<readonly [z.ZodEnum<{
372
+ type PermissionObjectType = z__default.infer<typeof PermissionObjectSchema>;
373
+ declare const PermissionRuleSchema: z__default.ZodUnion<readonly [z__default.ZodEnum<{
374
+ ask: "ask";
562
375
  allow: "allow";
563
376
  deny: "deny";
377
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
564
378
  ask: "ask";
565
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
566
379
  allow: "allow";
567
380
  deny: "deny";
568
- ask: "ask";
569
381
  }>>]>;
570
- type PermissionRuleType = z.infer<typeof PermissionRuleSchema>;
571
- declare const PermissionConfigSchema: z.ZodPipe<z.ZodPreprocess<z.ZodUnion<[z.ZodObject<{
572
- __originalKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
573
- read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
382
+ type PermissionRuleType = z__default.infer<typeof PermissionRuleSchema>;
383
+ declare const PermissionConfigSchema: z__default.ZodPipe<z__default.ZodPreprocess<z__default.ZodUnion<[z__default.ZodObject<{
384
+ __originalKeys: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
385
+ read: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
386
+ ask: "ask";
574
387
  allow: "allow";
575
388
  deny: "deny";
389
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
576
390
  ask: "ask";
577
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
578
391
  allow: "allow";
579
392
  deny: "deny";
580
- ask: "ask";
581
393
  }>>]>>;
582
- edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
394
+ edit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
395
+ ask: "ask";
583
396
  allow: "allow";
584
397
  deny: "deny";
398
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
585
399
  ask: "ask";
586
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
587
400
  allow: "allow";
588
401
  deny: "deny";
589
- ask: "ask";
590
402
  }>>]>>;
591
- glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
403
+ glob: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
404
+ ask: "ask";
592
405
  allow: "allow";
593
406
  deny: "deny";
407
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
594
408
  ask: "ask";
595
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
596
409
  allow: "allow";
597
410
  deny: "deny";
598
- ask: "ask";
599
411
  }>>]>>;
600
- grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
412
+ grep: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
413
+ ask: "ask";
601
414
  allow: "allow";
602
415
  deny: "deny";
416
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
603
417
  ask: "ask";
604
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
605
418
  allow: "allow";
606
419
  deny: "deny";
607
- ask: "ask";
608
420
  }>>]>>;
609
- list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
421
+ list: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
422
+ ask: "ask";
610
423
  allow: "allow";
611
424
  deny: "deny";
425
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
612
426
  ask: "ask";
613
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
614
427
  allow: "allow";
615
428
  deny: "deny";
616
- ask: "ask";
617
429
  }>>]>>;
618
- bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
430
+ bash: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
431
+ ask: "ask";
619
432
  allow: "allow";
620
433
  deny: "deny";
434
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
621
435
  ask: "ask";
622
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
623
436
  allow: "allow";
624
437
  deny: "deny";
625
- ask: "ask";
626
438
  }>>]>>;
627
- task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
439
+ task: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
440
+ ask: "ask";
628
441
  allow: "allow";
629
442
  deny: "deny";
443
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
630
444
  ask: "ask";
631
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
632
445
  allow: "allow";
633
446
  deny: "deny";
634
- ask: "ask";
635
447
  }>>]>>;
636
- external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
448
+ external_directory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
449
+ ask: "ask";
637
450
  allow: "allow";
638
451
  deny: "deny";
452
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
639
453
  ask: "ask";
640
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
641
454
  allow: "allow";
642
455
  deny: "deny";
643
- ask: "ask";
644
456
  }>>]>>;
645
- todo: z.ZodOptional<z.ZodEnum<{
457
+ todo: z__default.ZodOptional<z__default.ZodEnum<{
458
+ ask: "ask";
646
459
  allow: "allow";
647
460
  deny: "deny";
648
- ask: "ask";
649
461
  }>>;
650
- question: z.ZodOptional<z.ZodEnum<{
462
+ question: z__default.ZodOptional<z__default.ZodEnum<{
463
+ ask: "ask";
651
464
  allow: "allow";
652
465
  deny: "deny";
653
- ask: "ask";
654
466
  }>>;
655
- webfetch: z.ZodOptional<z.ZodEnum<{
467
+ webfetch: z__default.ZodOptional<z__default.ZodEnum<{
468
+ ask: "ask";
656
469
  allow: "allow";
657
470
  deny: "deny";
471
+ }>>;
472
+ websearch: z__default.ZodOptional<z__default.ZodEnum<{
658
473
  ask: "ask";
474
+ allow: "allow";
475
+ deny: "deny";
659
476
  }>>;
660
- websearch: z.ZodOptional<z.ZodEnum<{
477
+ codesearch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
478
+ ask: "ask";
661
479
  allow: "allow";
662
480
  deny: "deny";
481
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
663
482
  ask: "ask";
664
- }>>;
665
- codesearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
666
483
  allow: "allow";
667
484
  deny: "deny";
485
+ }>>]>>;
486
+ lsp: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
668
487
  ask: "ask";
669
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
670
488
  allow: "allow";
671
489
  deny: "deny";
490
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
672
491
  ask: "ask";
492
+ allow: "allow";
493
+ deny: "deny";
673
494
  }>>]>>;
674
- lsp: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
495
+ doom_loop: z__default.ZodOptional<z__default.ZodEnum<{
496
+ ask: "ask";
675
497
  allow: "allow";
676
498
  deny: "deny";
499
+ }>>;
500
+ skill: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
677
501
  ask: "ask";
678
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
679
502
  allow: "allow";
680
503
  deny: "deny";
504
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
681
505
  ask: "ask";
506
+ allow: "allow";
507
+ deny: "deny";
682
508
  }>>]>>;
683
- doom_loop: z.ZodOptional<z.ZodEnum<{
509
+ pty_session: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
510
+ ask: "ask";
684
511
  allow: "allow";
685
512
  deny: "deny";
513
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
686
514
  ask: "ask";
687
- }>>;
688
- skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
689
515
  allow: "allow";
690
516
  deny: "deny";
517
+ }>>]>>;
518
+ pty_manage: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
691
519
  ask: "ask";
692
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
693
520
  allow: "allow";
694
521
  deny: "deny";
522
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
695
523
  ask: "ask";
696
- }>>]>>;
697
- pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
698
524
  allow: "allow";
699
525
  deny: "deny";
526
+ }>>]>>;
527
+ write: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
700
528
  ask: "ask";
701
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
702
529
  allow: "allow";
703
530
  deny: "deny";
531
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
704
532
  ask: "ask";
705
- }>>]>>;
706
- pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
707
533
  allow: "allow";
708
534
  deny: "deny";
535
+ }>>]>>;
536
+ multiedit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
709
537
  ask: "ask";
710
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
711
538
  allow: "allow";
712
539
  deny: "deny";
540
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
713
541
  ask: "ask";
714
- }>>]>>;
715
- write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
716
542
  allow: "allow";
717
543
  deny: "deny";
544
+ }>>]>>;
545
+ note: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
718
546
  ask: "ask";
719
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
720
547
  allow: "allow";
721
548
  deny: "deny";
549
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
722
550
  ask: "ask";
723
- }>>]>>;
724
- multiedit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
725
551
  allow: "allow";
726
552
  deny: "deny";
553
+ }>>]>>;
554
+ memory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
727
555
  ask: "ask";
728
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
729
556
  allow: "allow";
730
557
  deny: "deny";
558
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
731
559
  ask: "ask";
732
- }>>]>>;
733
- note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
734
560
  allow: "allow";
735
561
  deny: "deny";
562
+ }>>]>>;
563
+ codebase: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
736
564
  ask: "ask";
737
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
738
565
  allow: "allow";
739
566
  deny: "deny";
567
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
740
568
  ask: "ask";
741
- }>>]>>;
742
- memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
743
569
  allow: "allow";
744
570
  deny: "deny";
571
+ }>>]>>;
572
+ agent_client: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
745
573
  ask: "ask";
746
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
747
574
  allow: "allow";
748
575
  deny: "deny";
576
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
749
577
  ask: "ask";
750
- }>>]>>;
751
- codebase: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
752
578
  allow: "allow";
753
579
  deny: "deny";
580
+ }>>]>>;
581
+ gateway: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
754
582
  ask: "ask";
755
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
756
583
  allow: "allow";
757
584
  deny: "deny";
585
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
758
586
  ask: "ask";
759
- }>>]>>;
760
- agent_client: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
761
587
  allow: "allow";
762
588
  deny: "deny";
589
+ }>>]>>;
590
+ apply_patch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
763
591
  ask: "ask";
764
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
765
592
  allow: "allow";
766
593
  deny: "deny";
594
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
767
595
  ask: "ask";
768
- }>>]>>;
769
- gateway: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
770
596
  allow: "allow";
771
597
  deny: "deny";
598
+ }>>]>>;
599
+ batch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
772
600
  ask: "ask";
773
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
774
601
  allow: "allow";
775
602
  deny: "deny";
603
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
776
604
  ask: "ask";
777
- }>>]>>;
778
- apply_patch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
779
605
  allow: "allow";
780
606
  deny: "deny";
607
+ }>>]>>;
608
+ plan: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
781
609
  ask: "ask";
782
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
783
610
  allow: "allow";
784
611
  deny: "deny";
612
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
785
613
  ask: "ask";
786
- }>>]>>;
787
- batch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
788
614
  allow: "allow";
789
615
  deny: "deny";
616
+ }>>]>>;
617
+ scheduler: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
790
618
  ask: "ask";
791
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
792
619
  allow: "allow";
793
620
  deny: "deny";
621
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
794
622
  ask: "ask";
795
- }>>]>>;
796
- plan: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
797
623
  allow: "allow";
798
624
  deny: "deny";
625
+ }>>]>>;
626
+ worktree: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
799
627
  ask: "ask";
800
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
801
628
  allow: "allow";
802
629
  deny: "deny";
630
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
803
631
  ask: "ask";
632
+ allow: "allow";
633
+ deny: "deny";
804
634
  }>>]>>;
805
- }, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
635
+ }, z__default.core.$catchall<z__default.ZodUnion<readonly [z__default.ZodEnum<{
636
+ ask: "ask";
806
637
  allow: "allow";
807
638
  deny: "deny";
639
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
808
640
  ask: "ask";
809
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
810
641
  allow: "allow";
811
642
  deny: "deny";
643
+ }>>]>>>, z__default.ZodEnum<{
812
644
  ask: "ask";
813
- }>>]>>>, z.ZodEnum<{
814
645
  allow: "allow";
815
646
  deny: "deny";
816
- ask: "ask";
817
- }>]>>, z.ZodTransform<Record<string, "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask">>, "allow" | "deny" | "ask" | {
818
- [x: string]: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask">;
647
+ }>]>>, z__default.ZodTransform<Record<string, "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny">>, "ask" | "allow" | "deny" | {
648
+ [x: string]: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny">;
819
649
  __originalKeys?: string[] | undefined;
820
- read?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
821
- edit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
822
- glob?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
823
- grep?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
824
- list?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
825
- bash?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
826
- task?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
827
- external_directory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
828
- todo?: "allow" | "deny" | "ask" | undefined;
829
- question?: "allow" | "deny" | "ask" | undefined;
830
- webfetch?: "allow" | "deny" | "ask" | undefined;
831
- websearch?: "allow" | "deny" | "ask" | undefined;
832
- codesearch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
833
- lsp?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
834
- doom_loop?: "allow" | "deny" | "ask" | undefined;
835
- skill?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
836
- pty_session?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
837
- pty_manage?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
838
- write?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
839
- multiedit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
840
- note?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
841
- memory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
842
- codebase?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
843
- agent_client?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
844
- gateway?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
845
- apply_patch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
846
- batch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
847
- plan?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
650
+ read?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
651
+ edit?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
652
+ glob?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
653
+ grep?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
654
+ list?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
655
+ bash?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
656
+ task?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
657
+ external_directory?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
658
+ todo?: "ask" | "allow" | "deny" | undefined;
659
+ question?: "ask" | "allow" | "deny" | undefined;
660
+ webfetch?: "ask" | "allow" | "deny" | undefined;
661
+ websearch?: "ask" | "allow" | "deny" | undefined;
662
+ codesearch?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
663
+ lsp?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
664
+ doom_loop?: "ask" | "allow" | "deny" | undefined;
665
+ skill?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
666
+ pty_session?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
667
+ pty_manage?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
668
+ write?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
669
+ multiedit?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
670
+ note?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
671
+ memory?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
672
+ codebase?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
673
+ agent_client?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
674
+ gateway?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
675
+ apply_patch?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
676
+ batch?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
677
+ plan?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
678
+ scheduler?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
679
+ worktree?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
848
680
  }>>;
849
- type PermissionConfigType = z.infer<typeof PermissionConfigSchema>;
850
- declare const AgentPermissionSchema: z.ZodObject<{
851
- read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
681
+ type PermissionConfigType = z__default.infer<typeof PermissionConfigSchema>;
682
+ declare const AgentPermissionSchema: z__default.ZodObject<{
683
+ read: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
684
+ ask: "ask";
852
685
  allow: "allow";
853
686
  deny: "deny";
687
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
854
688
  ask: "ask";
855
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
856
689
  allow: "allow";
857
690
  deny: "deny";
858
- ask: "ask";
859
691
  }>>]>>;
860
- edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
692
+ edit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
693
+ ask: "ask";
861
694
  allow: "allow";
862
695
  deny: "deny";
696
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
863
697
  ask: "ask";
864
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
865
698
  allow: "allow";
866
699
  deny: "deny";
867
- ask: "ask";
868
700
  }>>]>>;
869
- write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
701
+ write: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
702
+ ask: "ask";
870
703
  allow: "allow";
871
704
  deny: "deny";
705
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
872
706
  ask: "ask";
873
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
874
707
  allow: "allow";
875
708
  deny: "deny";
876
- ask: "ask";
877
709
  }>>]>>;
878
- glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
710
+ glob: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
711
+ ask: "ask";
879
712
  allow: "allow";
880
713
  deny: "deny";
714
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
881
715
  ask: "ask";
882
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
883
716
  allow: "allow";
884
717
  deny: "deny";
885
- ask: "ask";
886
718
  }>>]>>;
887
- grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
719
+ grep: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
720
+ ask: "ask";
888
721
  allow: "allow";
889
722
  deny: "deny";
723
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
890
724
  ask: "ask";
891
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
892
725
  allow: "allow";
893
726
  deny: "deny";
894
- ask: "ask";
895
727
  }>>]>>;
896
- list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
728
+ list: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
729
+ ask: "ask";
897
730
  allow: "allow";
898
731
  deny: "deny";
732
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
899
733
  ask: "ask";
900
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
901
734
  allow: "allow";
902
735
  deny: "deny";
903
- ask: "ask";
904
736
  }>>]>>;
905
- bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
737
+ bash: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
738
+ ask: "ask";
906
739
  allow: "allow";
907
740
  deny: "deny";
741
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
908
742
  ask: "ask";
909
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
910
743
  allow: "allow";
911
744
  deny: "deny";
912
- ask: "ask";
913
745
  }>>]>>;
914
- webfetch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
746
+ webfetch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
747
+ ask: "ask";
915
748
  allow: "allow";
916
749
  deny: "deny";
750
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
917
751
  ask: "ask";
918
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
919
752
  allow: "allow";
920
753
  deny: "deny";
921
- ask: "ask";
922
754
  }>>]>>;
923
- websearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
755
+ websearch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
756
+ ask: "ask";
924
757
  allow: "allow";
925
758
  deny: "deny";
759
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
926
760
  ask: "ask";
927
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
928
761
  allow: "allow";
929
762
  deny: "deny";
930
- ask: "ask";
931
763
  }>>]>>;
932
- task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
764
+ task: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
765
+ ask: "ask";
933
766
  allow: "allow";
934
767
  deny: "deny";
768
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
935
769
  ask: "ask";
936
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
937
770
  allow: "allow";
938
771
  deny: "deny";
939
- ask: "ask";
940
772
  }>>]>>;
941
- todo: z.ZodOptional<z.ZodEnum<{
773
+ todo: z__default.ZodOptional<z__default.ZodEnum<{
774
+ ask: "ask";
942
775
  allow: "allow";
943
776
  deny: "deny";
944
- ask: "ask";
945
777
  }>>;
946
- question: z.ZodOptional<z.ZodEnum<{
778
+ question: z__default.ZodOptional<z__default.ZodEnum<{
779
+ ask: "ask";
947
780
  allow: "allow";
948
781
  deny: "deny";
949
- ask: "ask";
950
782
  }>>;
951
- skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
783
+ skill: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
784
+ ask: "ask";
952
785
  allow: "allow";
953
786
  deny: "deny";
787
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
954
788
  ask: "ask";
955
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
956
789
  allow: "allow";
957
790
  deny: "deny";
958
- ask: "ask";
959
791
  }>>]>>;
960
- memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
792
+ memory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
793
+ ask: "ask";
961
794
  allow: "allow";
962
795
  deny: "deny";
796
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
963
797
  ask: "ask";
964
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
965
798
  allow: "allow";
966
799
  deny: "deny";
967
- ask: "ask";
968
800
  }>>]>>;
969
- note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
801
+ note: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
802
+ ask: "ask";
970
803
  allow: "allow";
971
804
  deny: "deny";
805
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
972
806
  ask: "ask";
973
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
974
807
  allow: "allow";
975
808
  deny: "deny";
976
- ask: "ask";
977
809
  }>>]>>;
978
- pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
810
+ pty_session: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
811
+ ask: "ask";
979
812
  allow: "allow";
980
813
  deny: "deny";
814
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
981
815
  ask: "ask";
982
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
983
816
  allow: "allow";
984
817
  deny: "deny";
985
- ask: "ask";
986
818
  }>>]>>;
987
- pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
819
+ pty_manage: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
820
+ ask: "ask";
988
821
  allow: "allow";
989
822
  deny: "deny";
823
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
990
824
  ask: "ask";
991
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
992
825
  allow: "allow";
993
826
  deny: "deny";
994
- ask: "ask";
995
827
  }>>]>>;
996
- external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
828
+ external_directory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
829
+ ask: "ask";
997
830
  allow: "allow";
998
831
  deny: "deny";
832
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
999
833
  ask: "ask";
1000
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1001
834
  allow: "allow";
1002
835
  deny: "deny";
1003
- ask: "ask";
1004
836
  }>>]>>;
1005
- doom_loop: z.ZodOptional<z.ZodEnum<{
837
+ doom_loop: z__default.ZodOptional<z__default.ZodEnum<{
838
+ ask: "ask";
1006
839
  allow: "allow";
1007
840
  deny: "deny";
1008
- ask: "ask";
1009
841
  }>>;
1010
- }, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
1011
- allow: "allow";
1012
- deny: "deny";
1013
- ask: "ask";
1014
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1015
- allow: "allow";
1016
- deny: "deny";
1017
- ask: "ask";
1018
- }>>]>>>;
1019
- type AgentPermissionType = z.infer<typeof AgentPermissionSchema>;
1020
- declare const PermissionRuntimeRuleSchema: z.ZodObject<{
1021
- permission: z.ZodString;
1022
- pattern: z.ZodString;
1023
- action: z.ZodEnum<{
842
+ }, z__default.core.$strict>;
843
+ type AgentPermissionType = z__default.infer<typeof AgentPermissionSchema>;
844
+ declare const PermissionRuntimeRuleSchema: z__default.ZodObject<{
845
+ permission: z__default.ZodString;
846
+ pattern: z__default.ZodString;
847
+ action: z__default.ZodEnum<{
848
+ ask: "ask";
1024
849
  allow: "allow";
1025
850
  deny: "deny";
1026
- ask: "ask";
1027
851
  }>;
1028
- }, z.core.$strip>;
1029
- type PermissionRuntimeRuleType = z.infer<typeof PermissionRuntimeRuleSchema>;
1030
- declare const PermissionRulesetSchema: z.ZodArray<z.ZodObject<{
1031
- permission: z.ZodString;
1032
- pattern: z.ZodString;
1033
- action: z.ZodEnum<{
852
+ }, z__default.core.$strip>;
853
+ type PermissionRuntimeRuleType = z__default.infer<typeof PermissionRuntimeRuleSchema>;
854
+ declare const PermissionRulesetSchema: z__default.ZodArray<z__default.ZodObject<{
855
+ permission: z__default.ZodString;
856
+ pattern: z__default.ZodString;
857
+ action: z__default.ZodEnum<{
858
+ ask: "ask";
1034
859
  allow: "allow";
1035
860
  deny: "deny";
1036
- ask: "ask";
1037
861
  }>;
1038
- }, z.core.$strip>>;
1039
- type PermissionRulesetType = z.infer<typeof PermissionRulesetSchema>;
862
+ }, z__default.core.$strip>>;
863
+ type PermissionRulesetType = z__default.infer<typeof PermissionRulesetSchema>;
1040
864
  declare const Permission: {
1041
- readonly Action: z.ZodEnum<{
865
+ readonly Action: z__default.ZodEnum<{
866
+ ask: "ask";
1042
867
  allow: "allow";
1043
868
  deny: "deny";
1044
- ask: "ask";
1045
869
  }>;
1046
- readonly Object: z.ZodRecord<z.ZodString, z.ZodEnum<{
870
+ readonly Object: z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
871
+ ask: "ask";
1047
872
  allow: "allow";
1048
873
  deny: "deny";
1049
- ask: "ask";
1050
874
  }>>;
1051
- readonly Rule: z.ZodUnion<readonly [z.ZodEnum<{
875
+ readonly Rule: z__default.ZodUnion<readonly [z__default.ZodEnum<{
876
+ ask: "ask";
1052
877
  allow: "allow";
1053
878
  deny: "deny";
879
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1054
880
  ask: "ask";
1055
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1056
881
  allow: "allow";
1057
882
  deny: "deny";
1058
- ask: "ask";
1059
883
  }>>]>;
1060
- readonly AgentPermissionSchema: z.ZodObject<{
1061
- read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
884
+ readonly AgentPermissionSchema: z__default.ZodObject<{
885
+ read: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
886
+ ask: "ask";
1062
887
  allow: "allow";
1063
888
  deny: "deny";
889
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1064
890
  ask: "ask";
1065
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1066
891
  allow: "allow";
1067
892
  deny: "deny";
1068
- ask: "ask";
1069
893
  }>>]>>;
1070
- edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
894
+ edit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
895
+ ask: "ask";
1071
896
  allow: "allow";
1072
897
  deny: "deny";
898
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1073
899
  ask: "ask";
1074
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1075
900
  allow: "allow";
1076
901
  deny: "deny";
1077
- ask: "ask";
1078
902
  }>>]>>;
1079
- write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
903
+ write: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
904
+ ask: "ask";
1080
905
  allow: "allow";
1081
906
  deny: "deny";
907
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1082
908
  ask: "ask";
1083
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1084
909
  allow: "allow";
1085
910
  deny: "deny";
1086
- ask: "ask";
1087
911
  }>>]>>;
1088
- glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
912
+ glob: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
913
+ ask: "ask";
1089
914
  allow: "allow";
1090
915
  deny: "deny";
916
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1091
917
  ask: "ask";
1092
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1093
918
  allow: "allow";
1094
919
  deny: "deny";
1095
- ask: "ask";
1096
920
  }>>]>>;
1097
- grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
921
+ grep: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
922
+ ask: "ask";
1098
923
  allow: "allow";
1099
924
  deny: "deny";
925
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1100
926
  ask: "ask";
1101
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1102
927
  allow: "allow";
1103
928
  deny: "deny";
1104
- ask: "ask";
1105
929
  }>>]>>;
1106
- list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
930
+ list: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
931
+ ask: "ask";
1107
932
  allow: "allow";
1108
933
  deny: "deny";
934
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1109
935
  ask: "ask";
1110
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1111
936
  allow: "allow";
1112
937
  deny: "deny";
1113
- ask: "ask";
1114
938
  }>>]>>;
1115
- bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
939
+ bash: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
940
+ ask: "ask";
1116
941
  allow: "allow";
1117
942
  deny: "deny";
943
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1118
944
  ask: "ask";
1119
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1120
945
  allow: "allow";
1121
946
  deny: "deny";
1122
- ask: "ask";
1123
947
  }>>]>>;
1124
- webfetch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
948
+ webfetch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
949
+ ask: "ask";
1125
950
  allow: "allow";
1126
951
  deny: "deny";
952
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1127
953
  ask: "ask";
1128
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1129
954
  allow: "allow";
1130
955
  deny: "deny";
1131
- ask: "ask";
1132
956
  }>>]>>;
1133
- websearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
957
+ websearch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
958
+ ask: "ask";
1134
959
  allow: "allow";
1135
960
  deny: "deny";
961
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1136
962
  ask: "ask";
1137
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1138
963
  allow: "allow";
1139
964
  deny: "deny";
1140
- ask: "ask";
1141
965
  }>>]>>;
1142
- task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
966
+ task: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
967
+ ask: "ask";
1143
968
  allow: "allow";
1144
969
  deny: "deny";
970
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1145
971
  ask: "ask";
1146
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1147
972
  allow: "allow";
1148
973
  deny: "deny";
1149
- ask: "ask";
1150
974
  }>>]>>;
1151
- todo: z.ZodOptional<z.ZodEnum<{
975
+ todo: z__default.ZodOptional<z__default.ZodEnum<{
976
+ ask: "ask";
1152
977
  allow: "allow";
1153
978
  deny: "deny";
1154
- ask: "ask";
1155
979
  }>>;
1156
- question: z.ZodOptional<z.ZodEnum<{
980
+ question: z__default.ZodOptional<z__default.ZodEnum<{
981
+ ask: "ask";
1157
982
  allow: "allow";
1158
983
  deny: "deny";
1159
- ask: "ask";
1160
984
  }>>;
1161
- skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
985
+ skill: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
986
+ ask: "ask";
1162
987
  allow: "allow";
1163
988
  deny: "deny";
989
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1164
990
  ask: "ask";
1165
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1166
991
  allow: "allow";
1167
992
  deny: "deny";
1168
- ask: "ask";
1169
993
  }>>]>>;
1170
- memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
994
+ memory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
995
+ ask: "ask";
1171
996
  allow: "allow";
1172
997
  deny: "deny";
998
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1173
999
  ask: "ask";
1174
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1175
1000
  allow: "allow";
1176
1001
  deny: "deny";
1177
- ask: "ask";
1178
1002
  }>>]>>;
1179
- note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1003
+ note: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1004
+ ask: "ask";
1180
1005
  allow: "allow";
1181
1006
  deny: "deny";
1007
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1182
1008
  ask: "ask";
1183
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1184
1009
  allow: "allow";
1185
1010
  deny: "deny";
1186
- ask: "ask";
1187
1011
  }>>]>>;
1188
- pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1012
+ pty_session: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1013
+ ask: "ask";
1189
1014
  allow: "allow";
1190
1015
  deny: "deny";
1016
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1191
1017
  ask: "ask";
1192
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1193
1018
  allow: "allow";
1194
1019
  deny: "deny";
1195
- ask: "ask";
1196
1020
  }>>]>>;
1197
- pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1021
+ pty_manage: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1022
+ ask: "ask";
1198
1023
  allow: "allow";
1199
1024
  deny: "deny";
1025
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1200
1026
  ask: "ask";
1201
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1202
1027
  allow: "allow";
1203
1028
  deny: "deny";
1204
- ask: "ask";
1205
1029
  }>>]>>;
1206
- external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1030
+ external_directory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1031
+ ask: "ask";
1207
1032
  allow: "allow";
1208
1033
  deny: "deny";
1034
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1209
1035
  ask: "ask";
1210
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1211
1036
  allow: "allow";
1212
1037
  deny: "deny";
1213
- ask: "ask";
1214
1038
  }>>]>>;
1215
- doom_loop: z.ZodOptional<z.ZodEnum<{
1039
+ doom_loop: z__default.ZodOptional<z__default.ZodEnum<{
1040
+ ask: "ask";
1216
1041
  allow: "allow";
1217
1042
  deny: "deny";
1218
- ask: "ask";
1219
1043
  }>>;
1220
- }, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
1221
- allow: "allow";
1222
- deny: "deny";
1223
- ask: "ask";
1224
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1225
- allow: "allow";
1226
- deny: "deny";
1227
- ask: "ask";
1228
- }>>]>>>;
1229
- readonly Config: z.ZodPipe<z.ZodPreprocess<z.ZodUnion<[z.ZodObject<{
1230
- __originalKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
1231
- read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1044
+ }, z__default.core.$strict>;
1045
+ readonly Config: z__default.ZodPipe<z__default.ZodPreprocess<z__default.ZodUnion<[z__default.ZodObject<{
1046
+ __originalKeys: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
1047
+ read: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1048
+ ask: "ask";
1232
1049
  allow: "allow";
1233
1050
  deny: "deny";
1051
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1234
1052
  ask: "ask";
1235
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1236
1053
  allow: "allow";
1237
1054
  deny: "deny";
1238
- ask: "ask";
1239
1055
  }>>]>>;
1240
- edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1056
+ edit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1057
+ ask: "ask";
1241
1058
  allow: "allow";
1242
1059
  deny: "deny";
1060
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1243
1061
  ask: "ask";
1244
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1245
1062
  allow: "allow";
1246
1063
  deny: "deny";
1247
- ask: "ask";
1248
1064
  }>>]>>;
1249
- glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1065
+ glob: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1066
+ ask: "ask";
1250
1067
  allow: "allow";
1251
1068
  deny: "deny";
1069
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1252
1070
  ask: "ask";
1253
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1254
1071
  allow: "allow";
1255
1072
  deny: "deny";
1256
- ask: "ask";
1257
1073
  }>>]>>;
1258
- grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1074
+ grep: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1075
+ ask: "ask";
1259
1076
  allow: "allow";
1260
1077
  deny: "deny";
1078
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1261
1079
  ask: "ask";
1262
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1263
1080
  allow: "allow";
1264
1081
  deny: "deny";
1265
- ask: "ask";
1266
1082
  }>>]>>;
1267
- list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1083
+ list: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1084
+ ask: "ask";
1268
1085
  allow: "allow";
1269
1086
  deny: "deny";
1087
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1270
1088
  ask: "ask";
1271
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1272
1089
  allow: "allow";
1273
1090
  deny: "deny";
1274
- ask: "ask";
1275
1091
  }>>]>>;
1276
- bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1092
+ bash: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1093
+ ask: "ask";
1277
1094
  allow: "allow";
1278
1095
  deny: "deny";
1096
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1279
1097
  ask: "ask";
1280
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1281
1098
  allow: "allow";
1282
1099
  deny: "deny";
1283
- ask: "ask";
1284
1100
  }>>]>>;
1285
- task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1101
+ task: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1102
+ ask: "ask";
1286
1103
  allow: "allow";
1287
1104
  deny: "deny";
1105
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1288
1106
  ask: "ask";
1289
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1290
1107
  allow: "allow";
1291
1108
  deny: "deny";
1292
- ask: "ask";
1293
1109
  }>>]>>;
1294
- external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1110
+ external_directory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1111
+ ask: "ask";
1295
1112
  allow: "allow";
1296
1113
  deny: "deny";
1114
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1297
1115
  ask: "ask";
1298
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1299
1116
  allow: "allow";
1300
1117
  deny: "deny";
1301
- ask: "ask";
1302
1118
  }>>]>>;
1303
- todo: z.ZodOptional<z.ZodEnum<{
1119
+ todo: z__default.ZodOptional<z__default.ZodEnum<{
1120
+ ask: "ask";
1304
1121
  allow: "allow";
1305
1122
  deny: "deny";
1306
- ask: "ask";
1307
1123
  }>>;
1308
- question: z.ZodOptional<z.ZodEnum<{
1124
+ question: z__default.ZodOptional<z__default.ZodEnum<{
1125
+ ask: "ask";
1309
1126
  allow: "allow";
1310
1127
  deny: "deny";
1311
- ask: "ask";
1312
1128
  }>>;
1313
- webfetch: z.ZodOptional<z.ZodEnum<{
1129
+ webfetch: z__default.ZodOptional<z__default.ZodEnum<{
1130
+ ask: "ask";
1314
1131
  allow: "allow";
1315
1132
  deny: "deny";
1133
+ }>>;
1134
+ websearch: z__default.ZodOptional<z__default.ZodEnum<{
1316
1135
  ask: "ask";
1136
+ allow: "allow";
1137
+ deny: "deny";
1317
1138
  }>>;
1318
- websearch: z.ZodOptional<z.ZodEnum<{
1139
+ codesearch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1140
+ ask: "ask";
1319
1141
  allow: "allow";
1320
1142
  deny: "deny";
1143
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1321
1144
  ask: "ask";
1322
- }>>;
1323
- codesearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1324
1145
  allow: "allow";
1325
1146
  deny: "deny";
1147
+ }>>]>>;
1148
+ lsp: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1326
1149
  ask: "ask";
1327
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1328
1150
  allow: "allow";
1329
1151
  deny: "deny";
1152
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1330
1153
  ask: "ask";
1154
+ allow: "allow";
1155
+ deny: "deny";
1331
1156
  }>>]>>;
1332
- lsp: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1157
+ doom_loop: z__default.ZodOptional<z__default.ZodEnum<{
1158
+ ask: "ask";
1333
1159
  allow: "allow";
1334
1160
  deny: "deny";
1161
+ }>>;
1162
+ skill: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1335
1163
  ask: "ask";
1336
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1337
1164
  allow: "allow";
1338
1165
  deny: "deny";
1166
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1339
1167
  ask: "ask";
1168
+ allow: "allow";
1169
+ deny: "deny";
1340
1170
  }>>]>>;
1341
- doom_loop: z.ZodOptional<z.ZodEnum<{
1171
+ pty_session: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1172
+ ask: "ask";
1342
1173
  allow: "allow";
1343
1174
  deny: "deny";
1175
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1344
1176
  ask: "ask";
1345
- }>>;
1346
- skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1347
1177
  allow: "allow";
1348
1178
  deny: "deny";
1179
+ }>>]>>;
1180
+ pty_manage: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1349
1181
  ask: "ask";
1350
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1351
1182
  allow: "allow";
1352
1183
  deny: "deny";
1184
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1353
1185
  ask: "ask";
1354
- }>>]>>;
1355
- pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1356
1186
  allow: "allow";
1357
1187
  deny: "deny";
1188
+ }>>]>>;
1189
+ write: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1358
1190
  ask: "ask";
1359
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1360
1191
  allow: "allow";
1361
1192
  deny: "deny";
1193
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1362
1194
  ask: "ask";
1363
- }>>]>>;
1364
- pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1365
1195
  allow: "allow";
1366
1196
  deny: "deny";
1197
+ }>>]>>;
1198
+ multiedit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1367
1199
  ask: "ask";
1368
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1369
1200
  allow: "allow";
1370
1201
  deny: "deny";
1202
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1371
1203
  ask: "ask";
1372
- }>>]>>;
1373
- write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1374
1204
  allow: "allow";
1375
1205
  deny: "deny";
1206
+ }>>]>>;
1207
+ note: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1376
1208
  ask: "ask";
1377
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1378
1209
  allow: "allow";
1379
1210
  deny: "deny";
1211
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1380
1212
  ask: "ask";
1381
- }>>]>>;
1382
- multiedit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1383
1213
  allow: "allow";
1384
1214
  deny: "deny";
1215
+ }>>]>>;
1216
+ memory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1385
1217
  ask: "ask";
1386
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1387
1218
  allow: "allow";
1388
1219
  deny: "deny";
1220
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1389
1221
  ask: "ask";
1390
- }>>]>>;
1391
- note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1392
1222
  allow: "allow";
1393
1223
  deny: "deny";
1224
+ }>>]>>;
1225
+ codebase: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1394
1226
  ask: "ask";
1395
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1396
1227
  allow: "allow";
1397
1228
  deny: "deny";
1229
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1398
1230
  ask: "ask";
1399
- }>>]>>;
1400
- memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1401
1231
  allow: "allow";
1402
1232
  deny: "deny";
1233
+ }>>]>>;
1234
+ agent_client: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1403
1235
  ask: "ask";
1404
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1405
1236
  allow: "allow";
1406
1237
  deny: "deny";
1238
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1407
1239
  ask: "ask";
1408
- }>>]>>;
1409
- codebase: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1410
1240
  allow: "allow";
1411
1241
  deny: "deny";
1242
+ }>>]>>;
1243
+ gateway: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1412
1244
  ask: "ask";
1413
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1414
1245
  allow: "allow";
1415
1246
  deny: "deny";
1247
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1416
1248
  ask: "ask";
1417
- }>>]>>;
1418
- agent_client: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1419
1249
  allow: "allow";
1420
1250
  deny: "deny";
1251
+ }>>]>>;
1252
+ apply_patch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1421
1253
  ask: "ask";
1422
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1423
1254
  allow: "allow";
1424
1255
  deny: "deny";
1256
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1425
1257
  ask: "ask";
1426
- }>>]>>;
1427
- gateway: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1428
1258
  allow: "allow";
1429
1259
  deny: "deny";
1260
+ }>>]>>;
1261
+ batch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1430
1262
  ask: "ask";
1431
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1432
1263
  allow: "allow";
1433
1264
  deny: "deny";
1265
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1434
1266
  ask: "ask";
1435
- }>>]>>;
1436
- apply_patch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1437
1267
  allow: "allow";
1438
1268
  deny: "deny";
1269
+ }>>]>>;
1270
+ plan: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1439
1271
  ask: "ask";
1440
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1441
1272
  allow: "allow";
1442
1273
  deny: "deny";
1274
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1443
1275
  ask: "ask";
1444
- }>>]>>;
1445
- batch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1446
1276
  allow: "allow";
1447
1277
  deny: "deny";
1278
+ }>>]>>;
1279
+ scheduler: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1448
1280
  ask: "ask";
1449
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1450
1281
  allow: "allow";
1451
1282
  deny: "deny";
1283
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1452
1284
  ask: "ask";
1453
- }>>]>>;
1454
- plan: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1455
1285
  allow: "allow";
1456
1286
  deny: "deny";
1287
+ }>>]>>;
1288
+ worktree: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1457
1289
  ask: "ask";
1458
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1459
1290
  allow: "allow";
1460
1291
  deny: "deny";
1292
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1461
1293
  ask: "ask";
1294
+ allow: "allow";
1295
+ deny: "deny";
1462
1296
  }>>]>>;
1463
- }, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
1297
+ }, z__default.core.$catchall<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1298
+ ask: "ask";
1464
1299
  allow: "allow";
1465
1300
  deny: "deny";
1301
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1466
1302
  ask: "ask";
1467
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1468
1303
  allow: "allow";
1469
1304
  deny: "deny";
1305
+ }>>]>>>, z__default.ZodEnum<{
1470
1306
  ask: "ask";
1471
- }>>]>>>, z.ZodEnum<{
1472
1307
  allow: "allow";
1473
1308
  deny: "deny";
1474
- ask: "ask";
1475
- }>]>>, z.ZodTransform<Record<string, "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask">>, "allow" | "deny" | "ask" | {
1476
- [x: string]: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask">;
1309
+ }>]>>, z__default.ZodTransform<Record<string, "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny">>, "ask" | "allow" | "deny" | {
1310
+ [x: string]: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny">;
1477
1311
  __originalKeys?: string[] | undefined;
1478
- read?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1479
- edit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1480
- glob?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1481
- grep?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1482
- list?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1483
- bash?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1484
- task?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1485
- external_directory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1486
- todo?: "allow" | "deny" | "ask" | undefined;
1487
- question?: "allow" | "deny" | "ask" | undefined;
1488
- webfetch?: "allow" | "deny" | "ask" | undefined;
1489
- websearch?: "allow" | "deny" | "ask" | undefined;
1490
- codesearch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1491
- lsp?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1492
- doom_loop?: "allow" | "deny" | "ask" | undefined;
1493
- skill?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1494
- pty_session?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1495
- pty_manage?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1496
- write?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1497
- multiedit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1498
- note?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1499
- memory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1500
- codebase?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1501
- agent_client?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1502
- gateway?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1503
- apply_patch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1504
- batch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1505
- plan?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1312
+ read?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1313
+ edit?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1314
+ glob?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1315
+ grep?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1316
+ list?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1317
+ bash?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1318
+ task?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1319
+ external_directory?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1320
+ todo?: "ask" | "allow" | "deny" | undefined;
1321
+ question?: "ask" | "allow" | "deny" | undefined;
1322
+ webfetch?: "ask" | "allow" | "deny" | undefined;
1323
+ websearch?: "ask" | "allow" | "deny" | undefined;
1324
+ codesearch?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1325
+ lsp?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1326
+ doom_loop?: "ask" | "allow" | "deny" | undefined;
1327
+ skill?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1328
+ pty_session?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1329
+ pty_manage?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1330
+ write?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1331
+ multiedit?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1332
+ note?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1333
+ memory?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1334
+ codebase?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1335
+ agent_client?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1336
+ gateway?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1337
+ apply_patch?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1338
+ batch?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1339
+ plan?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1340
+ scheduler?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1341
+ worktree?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
1506
1342
  }>>;
1507
- readonly RuntimeRule: z.ZodObject<{
1508
- permission: z.ZodString;
1509
- pattern: z.ZodString;
1510
- action: z.ZodEnum<{
1343
+ readonly RuntimeRule: z__default.ZodObject<{
1344
+ permission: z__default.ZodString;
1345
+ pattern: z__default.ZodString;
1346
+ action: z__default.ZodEnum<{
1347
+ ask: "ask";
1511
1348
  allow: "allow";
1512
1349
  deny: "deny";
1513
- ask: "ask";
1514
1350
  }>;
1515
- }, z.core.$strip>;
1516
- readonly Ruleset: z.ZodArray<z.ZodObject<{
1517
- permission: z.ZodString;
1518
- pattern: z.ZodString;
1519
- action: z.ZodEnum<{
1351
+ }, z__default.core.$strip>;
1352
+ readonly Ruleset: z__default.ZodArray<z__default.ZodObject<{
1353
+ permission: z__default.ZodString;
1354
+ pattern: z__default.ZodString;
1355
+ action: z__default.ZodEnum<{
1356
+ ask: "ask";
1520
1357
  allow: "allow";
1521
1358
  deny: "deny";
1522
- ask: "ask";
1523
1359
  }>;
1524
- }, z.core.$strip>>;
1360
+ }, z__default.core.$strip>>;
1525
1361
  };
1526
1362
  type Permission = typeof Permission;
1527
1363
 
1528
- interface AgentModel {
1529
- modelId: string;
1530
- providerId: string;
1531
- }
1364
+ declare const AgentCapabilitySchema: z__default.ZodEnum<{
1365
+ text_processing: "text_processing";
1366
+ code_generation: "code_generation";
1367
+ data_analysis: "data_analysis";
1368
+ task_execution: "task_execution";
1369
+ workflow_management: "workflow_management";
1370
+ monitoring: "monitoring";
1371
+ communication: "communication";
1372
+ }>;
1373
+ type AgentCapability = z__default.infer<typeof AgentCapabilitySchema>;
1374
+ declare const AgentModelSchema: z__default.ZodObject<{
1375
+ modelId: z__default.ZodString;
1376
+ providerId: z__default.ZodString;
1377
+ }, z__default.core.$strip>;
1378
+ type AgentModel = z__default.infer<typeof AgentModelSchema>;
1532
1379
  type AgentPromptPart = {
1533
1380
  type: 'text';
1534
1381
  text: string;
@@ -1601,28 +1448,72 @@ interface AgentMessage {
1601
1448
  error?: string;
1602
1449
  };
1603
1450
  }
1451
+ declare const AgentInfoSchema: z__default.ZodObject<{
1452
+ name: z__default.ZodString;
1453
+ description: z__default.ZodOptional<z__default.ZodString>;
1454
+ mode: z__default.ZodOptional<z__default.ZodEnum<{
1455
+ all: "all";
1456
+ subagent: "subagent";
1457
+ primary: "primary";
1458
+ }>>;
1459
+ native: z__default.ZodOptional<z__default.ZodBoolean>;
1460
+ hidden: z__default.ZodOptional<z__default.ZodBoolean>;
1461
+ topP: z__default.ZodOptional<z__default.ZodNumber>;
1462
+ temperature: z__default.ZodOptional<z__default.ZodNumber>;
1463
+ color: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodString, z__default.ZodEnum<{
1464
+ success: "success";
1465
+ error: "error";
1466
+ info: "info";
1467
+ primary: "primary";
1468
+ secondary: "secondary";
1469
+ accent: "accent";
1470
+ warning: "warning";
1471
+ }>]>>;
1472
+ permission: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
1473
+ permission: z__default.ZodString;
1474
+ pattern: z__default.ZodString;
1475
+ action: z__default.ZodEnum<{
1476
+ ask: "ask";
1477
+ allow: "allow";
1478
+ deny: "deny";
1479
+ }>;
1480
+ }, z__default.core.$strip>>>;
1481
+ scope: z__default.ZodOptional<z__default.ZodEnum<{
1482
+ all: "all";
1483
+ general: "general";
1484
+ coder: "coder";
1485
+ }>>;
1486
+ model: z__default.ZodOptional<z__default.ZodObject<{
1487
+ modelId: z__default.ZodString;
1488
+ providerId: z__default.ZodString;
1489
+ }, z__default.core.$strip>>;
1490
+ variant: z__default.ZodOptional<z__default.ZodString>;
1491
+ prompt: z__default.ZodOptional<z__default.ZodString>;
1492
+ options: z__default.ZodOptional<z__default.ZodRecord<z__default.ZodString, z__default.ZodAny>>;
1493
+ steps: z__default.ZodOptional<z__default.ZodNumber>;
1494
+ disable: z__default.ZodOptional<z__default.ZodBoolean>;
1495
+ }, z__default.core.$catchall<z__default.ZodUnknown>>;
1496
+ type AgentInfo = z__default.infer<typeof AgentInfoSchema>;
1604
1497
 
1605
- type LocalAgentInput = AgentInput;
1606
- type LocalAgentResult = AgentResult;
1607
1498
  type GatewayMessagePromptPart = AgentPromptPart;
1608
- type MessageType = 'input' | 'output' | 'system' | 'control';
1609
- type PlatformType = 'telegram' | 'discord' | 'slack' | 'feishu' | 'wechat' | 'weixin' | 'webchat' | 'signal' | 'nostr' | 'dingtalk' | 'whatsapp' | 'tui' | 'api' | 'web' | 'desktop';
1499
+ type GatewayMessageType = 'input' | 'output' | 'system' | 'control';
1500
+ type GatewayPlatformType = 'telegram' | 'discord' | 'slack' | 'feishu' | 'wechat' | 'weixin' | 'webchat' | 'signal' | 'nostr' | 'dingtalk' | 'whatsapp' | 'tui' | 'api' | 'web' | 'desktop';
1610
1501
  interface GatewayMessage {
1611
1502
  id: string;
1612
1503
  sessionId: string;
1613
- type: MessageType;
1504
+ type: GatewayMessageType;
1614
1505
  content: GatewayMessagePromptPart[];
1615
- metadata: MessageMetadata;
1506
+ metadata: GatewayMessageMetadata;
1616
1507
  timestamp: number;
1617
1508
  }
1618
- interface MessageMetadata {
1619
- channel: ChannelInfo;
1620
- context?: MessageContext;
1509
+ interface GatewayMessageMetadata {
1510
+ channel: GatewayChannelInfo;
1511
+ context?: GatewayMessageContext;
1621
1512
  agent?: string;
1622
1513
  [key: string]: unknown;
1623
1514
  }
1624
- interface ChannelInfo {
1625
- platform: PlatformType;
1515
+ interface GatewayChannelInfo {
1516
+ platform: GatewayPlatformType;
1626
1517
  channelId: string;
1627
1518
  userId?: string;
1628
1519
  chatId?: string;
@@ -1630,32 +1521,26 @@ interface ChannelInfo {
1630
1521
  chatTitle?: string;
1631
1522
  [key: string]: unknown;
1632
1523
  }
1633
- interface ChannelPluginInfo {
1524
+ interface GatewayChannelPluginInfo {
1634
1525
  id: string;
1635
- platform: PlatformType;
1526
+ platform: GatewayPlatformType;
1636
1527
  name: string;
1637
1528
  version?: string;
1638
1529
  }
1639
- interface ChannelListResponse {
1640
- channels: ChannelPluginInfo[];
1530
+ interface GatewayChannelListResponse {
1531
+ channels: GatewayChannelPluginInfo[];
1641
1532
  total: number;
1642
1533
  }
1643
- interface MessageContext {
1534
+ interface GatewayMessageContext {
1644
1535
  replyTo?: string;
1645
1536
  threadId?: string;
1646
1537
  conversationId?: string;
1647
1538
  [key: string]: unknown;
1648
1539
  }
1649
- interface AgentInfo {
1650
- id?: string;
1651
- name?: string;
1652
- model?: string;
1653
- [key: string]: unknown;
1654
- }
1655
1540
  interface GatewayMessageReceiveInput {
1656
1541
  id: string;
1657
1542
  sessionId: string;
1658
- type: MessageType;
1543
+ type: GatewayMessageType;
1659
1544
  content: string | GatewayMessagePromptPart[];
1660
1545
  channel?: {
1661
1546
  platform?: string;
@@ -1673,7 +1558,7 @@ interface GatewayMessageReceiveInput {
1673
1558
  interface GatewayMessageSendInput {
1674
1559
  id: string;
1675
1560
  sessionId: string;
1676
- type: MessageType;
1561
+ type: GatewayMessageType;
1677
1562
  content?: GatewayMessagePromptPart[];
1678
1563
  channel: {
1679
1564
  platform: string;
@@ -1703,62 +1588,10 @@ interface GatewayMessageReadInput {
1703
1588
  };
1704
1589
  timestamp: number;
1705
1590
  }
1706
- interface MessageStorage {
1591
+ interface GatewayMessageStorage {
1707
1592
  store(msg: GatewayMessageReceiveInput): Promise<void>;
1708
1593
  updateStatus(id: string, status: string, metadata?: Record<string, unknown>): Promise<void>;
1709
1594
  }
1710
- interface IGlobal {
1711
- Path: {
1712
- home: string;
1713
- data: string;
1714
- cache: string;
1715
- config: string;
1716
- state: string;
1717
- log: string;
1718
- bin: string;
1719
- };
1720
- }
1721
- interface GatewayConfig {
1722
- server?: {
1723
- enabled?: boolean;
1724
- port?: number;
1725
- hostname?: string;
1726
- [key: string]: unknown;
1727
- };
1728
- [key: string]: unknown;
1729
- }
1730
- interface GatewayServerConfig {
1731
- port: number;
1732
- hostname: string;
1733
- [key: string]: unknown;
1734
- }
1735
- interface IInstance {
1736
- directory: string;
1737
- worktree: string;
1738
- }
1739
- type GatewayHookHandler = (event: {
1740
- name: string;
1741
- data?: unknown;
1742
- }) => Promise<void> | void;
1743
- interface IHookRegistry {
1744
- on(event: string, handler: GatewayHookHandler): void;
1745
- off(event: string, handler: GatewayHookHandler): void;
1746
- emit(event: {
1747
- name: string;
1748
- data?: unknown;
1749
- }): Promise<void>;
1750
- }
1751
- interface ILocalAgentRunner {
1752
- run(input: AgentInput): Promise<AgentResult>;
1753
- }
1754
- interface ILocalAgentRunner {
1755
- run(input: LocalAgentInput): Promise<LocalAgentResult>;
1756
- }
1757
- interface AgentAdapter {
1758
- global: IGlobal;
1759
- instance: IInstance;
1760
- sdk: EasbotClient;
1761
- }
1762
1595
  interface IGatewayServer {
1763
1596
  start(): Promise<void>;
1764
1597
  stop(): Promise<void>;
@@ -1769,29 +1602,29 @@ interface IGatewayServer {
1769
1602
  connections?: number;
1770
1603
  };
1771
1604
  }
1772
- type AgentHealthStatus = 'healthy' | 'unhealthy' | 'offline';
1773
- interface AgentRegistration {
1605
+ type GatewayAgentHealthStatus = 'healthy' | 'unhealthy' | 'offline';
1606
+ interface GatewayAgentRegistration {
1774
1607
  id: string;
1775
1608
  name: string;
1776
1609
  capabilities: string[];
1777
1610
  address: string;
1778
- status: AgentHealthStatus;
1611
+ status: GatewayAgentHealthStatus;
1779
1612
  lastHeartbeat: number;
1780
1613
  registeredAt: number;
1781
1614
  connectionCount: number;
1782
1615
  metadata?: Record<string, unknown>;
1783
1616
  }
1784
- type AgentRegistrationRequest = Omit<AgentRegistration, 'registeredAt' | 'lastHeartbeat' | 'connectionCount' | 'status'>;
1785
- type AgentSelectionStrategy = 'random' | 'round-robin' | 'least-connections';
1786
- interface AgentSelectionOptions {
1787
- strategy: AgentSelectionStrategy;
1617
+ type GatewayAgentRegistrationRequest = Omit<GatewayAgentRegistration, 'registeredAt' | 'lastHeartbeat' | 'connectionCount' | 'status'>;
1618
+ type GatewayAgentSelectionStrategy = 'random' | 'round-robin' | 'least-connections';
1619
+ interface GatewayAgentSelectionOptions {
1620
+ strategy: GatewayAgentSelectionStrategy;
1788
1621
  capabilities?: string[];
1789
1622
  healthyOnly?: boolean;
1790
1623
  }
1791
- interface AgentHeartbeat {
1624
+ interface GatewayAgentHeartbeat {
1792
1625
  agentId: string;
1793
1626
  timestamp: number;
1794
- status: AgentHealthStatus;
1627
+ status: GatewayAgentHealthStatus;
1795
1628
  metrics?: {
1796
1629
  cpuUsage?: number;
1797
1630
  memoryUsage?: number;
@@ -1799,34 +1632,34 @@ interface AgentHeartbeat {
1799
1632
  messageQueueLength?: number;
1800
1633
  };
1801
1634
  }
1802
- interface AgentSelectionRecord {
1635
+ interface GatewayAgentSelectionRecord {
1803
1636
  sessionId: string;
1804
1637
  messageId: string;
1805
1638
  agentId: string;
1806
1639
  selectedAt: number;
1807
- strategy: AgentSelectionStrategy;
1640
+ strategy: GatewayAgentSelectionStrategy;
1808
1641
  }
1809
- interface AgentRegistryStats {
1642
+ interface GatewayAgentRegistryStats {
1810
1643
  totalAgents: number;
1811
1644
  healthyAgents: number;
1812
1645
  unhealthyAgents: number;
1813
1646
  offlineAgents: number;
1814
1647
  totalConnections: number;
1815
1648
  }
1816
- interface AgentSyncInfo {
1649
+ interface GatewayAgentSyncInfo {
1817
1650
  id: string;
1818
1651
  name: string;
1819
1652
  sourceGatewayId: string;
1820
1653
  address: string;
1821
1654
  capabilities: string[];
1822
- status: AgentHealthStatus;
1655
+ status: GatewayAgentHealthStatus;
1823
1656
  updatedAt: number;
1824
1657
  metadata?: Record<string, unknown>;
1825
1658
  }
1826
- type AgentSyncMode = 'pull' | 'push' | 'both';
1827
- type AgentSyncPushEventType = 'register' | 'deregister' | 'heartbeat' | 'status_change';
1828
- type AgentSyncConflictResolutionStrategy = 'latest' | 'local' | 'remote';
1829
- interface AgentListRequestMessage {
1659
+ type GatewayAgentSyncMode = 'pull' | 'push' | 'both';
1660
+ type GatewayAgentSyncPushEventType = 'register' | 'deregister' | 'heartbeat' | 'status_change';
1661
+ type GatewayAgentSyncConflictResolutionStrategy = 'latest' | 'local' | 'remote';
1662
+ interface GatewayAgentListRequestMessage {
1830
1663
  type: 'agent_list_request';
1831
1664
  requestId: string;
1832
1665
  sourceNodeId: string;
@@ -1834,45 +1667,45 @@ interface AgentListRequestMessage {
1834
1667
  incremental?: boolean;
1835
1668
  lastSyncAt?: number;
1836
1669
  }
1837
- interface AgentListResponseMessage {
1670
+ interface GatewayAgentListResponseMessage {
1838
1671
  type: 'agent_list_response';
1839
1672
  requestId: string;
1840
1673
  sourceNodeId: string;
1841
1674
  timestamp: number;
1842
- agents: AgentSyncInfo[];
1675
+ agents: GatewayAgentSyncInfo[];
1843
1676
  fullList: boolean;
1844
1677
  syncAt: number;
1845
1678
  }
1846
- interface AgentRegisterMessage {
1679
+ interface GatewayAgentRegisterMessage {
1847
1680
  type: 'agent_register';
1848
1681
  sourceNodeId: string;
1849
1682
  timestamp: number;
1850
- agent: AgentSyncInfo;
1683
+ agent: GatewayAgentSyncInfo;
1851
1684
  }
1852
- interface AgentDeregisterMessage {
1685
+ interface GatewayAgentDeregisterMessage {
1853
1686
  type: 'agent_deregister';
1854
1687
  sourceNodeId: string;
1855
1688
  timestamp: number;
1856
1689
  agentId: string;
1857
1690
  }
1858
- interface AgentHeartbeatSyncMessage {
1691
+ interface GatewayAgentHeartbeatSyncMessage {
1859
1692
  type: 'agent_heartbeat';
1860
1693
  sourceNodeId: string;
1861
1694
  timestamp: number;
1862
1695
  agentId: string;
1863
1696
  heartbeatAt: number;
1864
- status: AgentHealthStatus;
1697
+ status: GatewayAgentHealthStatus;
1865
1698
  }
1866
- interface AgentStatusChangeMessage {
1699
+ interface GatewayAgentStatusChangeMessage {
1867
1700
  type: 'agent_status_change';
1868
1701
  sourceNodeId: string;
1869
1702
  timestamp: number;
1870
1703
  agentId: string;
1871
- oldStatus: AgentHealthStatus;
1872
- newStatus: AgentHealthStatus;
1704
+ oldStatus: GatewayAgentHealthStatus;
1705
+ newStatus: GatewayAgentHealthStatus;
1873
1706
  changedAt: number;
1874
1707
  }
1875
- type AgentSyncMessage = AgentListRequestMessage | AgentListResponseMessage | AgentRegisterMessage | AgentDeregisterMessage | AgentHeartbeatSyncMessage | AgentStatusChangeMessage;
1708
+ type GatewayAgentSyncMessage = GatewayAgentListRequestMessage | GatewayAgentListResponseMessage | GatewayAgentRegisterMessage | GatewayAgentDeregisterMessage | GatewayAgentHeartbeatSyncMessage | GatewayAgentStatusChangeMessage;
1876
1709
  interface GatewayNodeInfo {
1877
1710
  id: string;
1878
1711
  name: string;
@@ -1882,7 +1715,7 @@ interface GatewayNodeInfo {
1882
1715
  status: 'online' | 'offline' | 'unknown';
1883
1716
  metadata?: Record<string, unknown>;
1884
1717
  }
1885
- interface AgentSyncState {
1718
+ interface GatewayAgentSyncState {
1886
1719
  localNodeId: string;
1887
1720
  remoteNodes: Map<string, {
1888
1721
  info: GatewayNodeInfo;
@@ -1890,10 +1723,10 @@ interface AgentSyncState {
1890
1723
  status: 'syncing' | 'synced' | 'error';
1891
1724
  error?: string;
1892
1725
  }>;
1893
- localAgents: Map<string, AgentSyncInfo>;
1894
- remoteAgents: Map<string, AgentSyncInfo>;
1726
+ localAgents: Map<string, GatewayAgentSyncInfo>;
1727
+ remoteAgents: Map<string, GatewayAgentSyncInfo>;
1895
1728
  }
1896
- interface AgentSyncStats {
1729
+ interface GatewayAgentSyncStats {
1897
1730
  localAgentCount: number;
1898
1731
  remoteAgentCount: number;
1899
1732
  totalAgentCount: number;
@@ -1902,411 +1735,1094 @@ interface AgentSyncStats {
1902
1735
  lastSyncAt: number | null;
1903
1736
  }
1904
1737
  type GatewaySubscriberType = 'subagent' | 'tui' | 'desktop' | 'browser' | 'mobile' | 'api' | 'acp';
1738
+ declare const GatewayChannelTypeSchema: z$1.ZodEnum<{
1739
+ telegram: "telegram";
1740
+ slack: "slack";
1741
+ feishu: "feishu";
1742
+ wechat: "wechat";
1743
+ weixin: "weixin";
1744
+ webchat: "webchat";
1745
+ signal: "signal";
1746
+ nostr: "nostr";
1747
+ dingtalk: "dingtalk";
1748
+ }>;
1749
+ type GatewayChannelType = z$1.infer<typeof GatewayChannelTypeSchema>;
1750
+ declare const GatewayMessagePrioritySchema: z$1.ZodEnum<{
1751
+ low: "low";
1752
+ medium: "medium";
1753
+ high: "high";
1754
+ critical: "critical";
1755
+ }>;
1756
+ type GatewayMessagePriority = z$1.infer<typeof GatewayMessagePrioritySchema>;
1757
+ declare const TelegramChannelConfigSchema: z$1.ZodObject<{
1758
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1759
+ botToken: z$1.ZodString;
1760
+ webhookUrl: z$1.ZodOptional<z$1.ZodString>;
1761
+ polling: z$1.ZodOptional<z$1.ZodObject<{
1762
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1763
+ interval: z$1.ZodOptional<z$1.ZodNumber>;
1764
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1765
+ }, z$1.core.$strip>>;
1766
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1767
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1768
+ }, z$1.core.$strip>;
1769
+ type TelegramChannelConfig = z$1.infer<typeof TelegramChannelConfigSchema>;
1770
+ declare const SlackChannelConfigSchema: z$1.ZodObject<{
1771
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1772
+ botToken: z$1.ZodString;
1773
+ appToken: z$1.ZodOptional<z$1.ZodString>;
1774
+ signingSecret: z$1.ZodOptional<z$1.ZodString>;
1775
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1776
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1777
+ }, z$1.core.$strip>;
1778
+ type SlackChannelConfig = z$1.infer<typeof SlackChannelConfigSchema>;
1779
+ declare const FeishuChannelConfigSchema: z$1.ZodObject<{
1780
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1781
+ appId: z$1.ZodString;
1782
+ appSecret: z$1.ZodString;
1783
+ encryptKey: z$1.ZodOptional<z$1.ZodString>;
1784
+ verificationToken: z$1.ZodOptional<z$1.ZodString>;
1785
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1786
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1787
+ }, z$1.core.$strip>;
1788
+ type FeishuChannelConfig = z$1.infer<typeof FeishuChannelConfigSchema>;
1789
+ declare const WeChatChannelConfigSchema: z$1.ZodObject<{
1790
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1791
+ mode: z$1.ZodDefault<z$1.ZodEnum<{
1792
+ official: "official";
1793
+ wecom: "wecom";
1794
+ }>>;
1795
+ appId: z$1.ZodString;
1796
+ appSecret: z$1.ZodString;
1797
+ token: z$1.ZodOptional<z$1.ZodString>;
1798
+ encodingAESKey: z$1.ZodOptional<z$1.ZodString>;
1799
+ agentId: z$1.ZodOptional<z$1.ZodString>;
1800
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1801
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1802
+ }, z$1.core.$strip>;
1803
+ type WeChatChannelConfig = z$1.infer<typeof WeChatChannelConfigSchema>;
1804
+ declare const WeixinChannelConfigSchema: z$1.ZodObject<{
1805
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1806
+ stateDir: z$1.ZodOptional<z$1.ZodString>;
1807
+ baseUrl: z$1.ZodOptional<z$1.ZodString>;
1808
+ cdnBaseUrl: z$1.ZodOptional<z$1.ZodString>;
1809
+ maxMessageLength: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1810
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1811
+ }, z$1.core.$strip>;
1812
+ type WeixinChannelConfig = z$1.infer<typeof WeixinChannelConfigSchema>;
1813
+ declare const WebChatChannelConfigSchema: z$1.ZodObject<{
1814
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1815
+ path: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
1816
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1817
+ connectionTimeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1818
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1819
+ cors: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
1820
+ }, z$1.core.$strip>;
1821
+ type WebChatChannelConfig = z$1.infer<typeof WebChatChannelConfigSchema>;
1822
+ declare const SignalChannelConfigSchema: z$1.ZodObject<{
1823
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1824
+ serviceUrl: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
1825
+ phoneNumber: z$1.ZodString;
1826
+ password: z$1.ZodOptional<z$1.ZodString>;
1827
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1828
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1829
+ }, z$1.core.$strip>;
1830
+ type SignalChannelConfig = z$1.infer<typeof SignalChannelConfigSchema>;
1831
+ declare const NostrChannelConfigSchema: z$1.ZodObject<{
1832
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1833
+ relays: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
1834
+ privateKey: z$1.ZodOptional<z$1.ZodString>;
1835
+ publicKey: z$1.ZodOptional<z$1.ZodString>;
1836
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1837
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1838
+ }, z$1.core.$strip>;
1839
+ type NostrChannelConfig = z$1.infer<typeof NostrChannelConfigSchema>;
1840
+ declare const DingTalkChannelConfigSchema: z$1.ZodObject<{
1841
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1842
+ appKey: z$1.ZodString;
1843
+ appSecret: z$1.ZodString;
1844
+ token: z$1.ZodOptional<z$1.ZodString>;
1845
+ encryptKey: z$1.ZodOptional<z$1.ZodString>;
1846
+ webhook: z$1.ZodOptional<z$1.ZodObject<{
1847
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1848
+ path: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
1849
+ port: z$1.ZodOptional<z$1.ZodNumber>;
1850
+ }, z$1.core.$strip>>;
1851
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1852
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1853
+ }, z$1.core.$strip>;
1854
+ type DingTalkChannelConfig = z$1.infer<typeof DingTalkChannelConfigSchema>;
1855
+ declare const ChannelConfigSchema: z$1.ZodObject<{
1856
+ telegram: z$1.ZodOptional<z$1.ZodObject<{
1857
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1858
+ botToken: z$1.ZodString;
1859
+ webhookUrl: z$1.ZodOptional<z$1.ZodString>;
1860
+ polling: z$1.ZodOptional<z$1.ZodObject<{
1861
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1862
+ interval: z$1.ZodOptional<z$1.ZodNumber>;
1863
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1864
+ }, z$1.core.$strip>>;
1865
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1866
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1867
+ }, z$1.core.$strip>>;
1868
+ slack: z$1.ZodOptional<z$1.ZodObject<{
1869
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1870
+ botToken: z$1.ZodString;
1871
+ appToken: z$1.ZodOptional<z$1.ZodString>;
1872
+ signingSecret: z$1.ZodOptional<z$1.ZodString>;
1873
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1874
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1875
+ }, z$1.core.$strip>>;
1876
+ feishu: z$1.ZodOptional<z$1.ZodObject<{
1877
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1878
+ appId: z$1.ZodString;
1879
+ appSecret: z$1.ZodString;
1880
+ encryptKey: z$1.ZodOptional<z$1.ZodString>;
1881
+ verificationToken: z$1.ZodOptional<z$1.ZodString>;
1882
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1883
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1884
+ }, z$1.core.$strip>>;
1885
+ wechat: z$1.ZodOptional<z$1.ZodObject<{
1886
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1887
+ mode: z$1.ZodDefault<z$1.ZodEnum<{
1888
+ official: "official";
1889
+ wecom: "wecom";
1890
+ }>>;
1891
+ appId: z$1.ZodString;
1892
+ appSecret: z$1.ZodString;
1893
+ token: z$1.ZodOptional<z$1.ZodString>;
1894
+ encodingAESKey: z$1.ZodOptional<z$1.ZodString>;
1895
+ agentId: z$1.ZodOptional<z$1.ZodString>;
1896
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1897
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1898
+ }, z$1.core.$strip>>;
1899
+ weixin: z$1.ZodOptional<z$1.ZodObject<{
1900
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1901
+ stateDir: z$1.ZodOptional<z$1.ZodString>;
1902
+ baseUrl: z$1.ZodOptional<z$1.ZodString>;
1903
+ cdnBaseUrl: z$1.ZodOptional<z$1.ZodString>;
1904
+ maxMessageLength: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1905
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1906
+ }, z$1.core.$strip>>;
1907
+ webchat: z$1.ZodOptional<z$1.ZodObject<{
1908
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1909
+ path: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
1910
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1911
+ connectionTimeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1912
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1913
+ cors: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
1914
+ }, z$1.core.$strip>>;
1915
+ signal: z$1.ZodOptional<z$1.ZodObject<{
1916
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1917
+ serviceUrl: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
1918
+ phoneNumber: z$1.ZodString;
1919
+ password: z$1.ZodOptional<z$1.ZodString>;
1920
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1921
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1922
+ }, z$1.core.$strip>>;
1923
+ nostr: z$1.ZodOptional<z$1.ZodObject<{
1924
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1925
+ relays: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
1926
+ privateKey: z$1.ZodOptional<z$1.ZodString>;
1927
+ publicKey: z$1.ZodOptional<z$1.ZodString>;
1928
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1929
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1930
+ }, z$1.core.$strip>>;
1931
+ dingtalk: z$1.ZodOptional<z$1.ZodObject<{
1932
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1933
+ appKey: z$1.ZodString;
1934
+ appSecret: z$1.ZodString;
1935
+ token: z$1.ZodOptional<z$1.ZodString>;
1936
+ encryptKey: z$1.ZodOptional<z$1.ZodString>;
1937
+ webhook: z$1.ZodOptional<z$1.ZodObject<{
1938
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1939
+ path: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
1940
+ port: z$1.ZodOptional<z$1.ZodNumber>;
1941
+ }, z$1.core.$strip>>;
1942
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1943
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1944
+ }, z$1.core.$strip>>;
1945
+ }, z$1.core.$strip>;
1946
+ type ChannelConfig = z$1.infer<typeof ChannelConfigSchema>;
1947
+ declare const HTTPSConfigSchema: z$1.ZodObject<{
1948
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1949
+ cert: z$1.ZodOptional<z$1.ZodString>;
1950
+ key: z$1.ZodOptional<z$1.ZodString>;
1951
+ certPath: z$1.ZodOptional<z$1.ZodString>;
1952
+ keyPath: z$1.ZodOptional<z$1.ZodString>;
1953
+ ca: z$1.ZodOptional<z$1.ZodString>;
1954
+ forceRedirect: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
1955
+ httpPort: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
1956
+ }, z$1.core.$strip>;
1957
+ type HTTPSConfig = z$1.infer<typeof HTTPSConfigSchema>;
1958
+ declare const TokenAuthItemSchema: z$1.ZodObject<{
1959
+ name: z$1.ZodString;
1960
+ value: z$1.ZodString;
1961
+ permissions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
1962
+ expiresAt: z$1.ZodOptional<z$1.ZodNumber>;
1963
+ description: z$1.ZodOptional<z$1.ZodString>;
1964
+ }, z$1.core.$strip>;
1965
+ type TokenAuthItem = z$1.infer<typeof TokenAuthItemSchema>;
1966
+ declare const TokenAuthConfigSchema: z$1.ZodObject<{
1967
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1968
+ tokens: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
1969
+ name: z$1.ZodString;
1970
+ value: z$1.ZodString;
1971
+ permissions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
1972
+ expiresAt: z$1.ZodOptional<z$1.ZodNumber>;
1973
+ description: z$1.ZodOptional<z$1.ZodString>;
1974
+ }, z$1.core.$strip>>>;
1975
+ onInvalid: z$1.ZodDefault<z$1.ZodEnum<{
1976
+ reject: "reject";
1977
+ anonymous: "anonymous";
1978
+ }>>;
1979
+ allowAnonymous: z$1.ZodDefault<z$1.ZodBoolean>;
1980
+ defaultPermissions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
1981
+ }, z$1.core.$strip>;
1982
+ type TokenAuthConfig = z$1.infer<typeof TokenAuthConfigSchema>;
1983
+ declare const OAuth2AuthConfigSchema: z$1.ZodObject<{
1984
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1985
+ authorizationServer: z$1.ZodString;
1986
+ clientId: z$1.ZodString;
1987
+ clientSecret: z$1.ZodString;
1988
+ tokenValidationEndpoint: z$1.ZodString;
1989
+ scope: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
1990
+ }, z$1.core.$strip>;
1991
+ type OAuth2AuthConfig = z$1.infer<typeof OAuth2AuthConfigSchema>;
1992
+ declare const AuthConfigSchema: z$1.ZodObject<{
1993
+ type: z$1.ZodDefault<z$1.ZodEnum<{
1994
+ token: "token";
1995
+ oauth2: "oauth2";
1996
+ }>>;
1997
+ token: z$1.ZodOptional<z$1.ZodObject<{
1998
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
1999
+ tokens: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
2000
+ name: z$1.ZodString;
2001
+ value: z$1.ZodString;
2002
+ permissions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
2003
+ expiresAt: z$1.ZodOptional<z$1.ZodNumber>;
2004
+ description: z$1.ZodOptional<z$1.ZodString>;
2005
+ }, z$1.core.$strip>>>;
2006
+ onInvalid: z$1.ZodDefault<z$1.ZodEnum<{
2007
+ reject: "reject";
2008
+ anonymous: "anonymous";
2009
+ }>>;
2010
+ allowAnonymous: z$1.ZodDefault<z$1.ZodBoolean>;
2011
+ defaultPermissions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
2012
+ }, z$1.core.$strip>>;
2013
+ oauth2: z$1.ZodOptional<z$1.ZodObject<{
2014
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2015
+ authorizationServer: z$1.ZodString;
2016
+ clientId: z$1.ZodString;
2017
+ clientSecret: z$1.ZodString;
2018
+ tokenValidationEndpoint: z$1.ZodString;
2019
+ scope: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
2020
+ }, z$1.core.$strip>>;
2021
+ }, z$1.core.$strip>;
2022
+ type AuthConfig = z$1.infer<typeof AuthConfigSchema>;
2023
+ declare const AgentSyncConfigSchema: z$1.ZodObject<{
2024
+ mode: z$1.ZodDefault<z$1.ZodEnum<{
2025
+ push: "push";
2026
+ pull: "pull";
2027
+ both: "both";
2028
+ }>>;
2029
+ interval: z$1.ZodDefault<z$1.ZodNumber>;
2030
+ pushEvents: z$1.ZodDefault<z$1.ZodArray<z$1.ZodEnum<{
2031
+ register: "register";
2032
+ deregister: "deregister";
2033
+ heartbeat: "heartbeat";
2034
+ status_change: "status_change";
2035
+ }>>>;
2036
+ conflictResolution: z$1.ZodDefault<z$1.ZodEnum<{
2037
+ latest: "latest";
2038
+ local: "local";
2039
+ remote: "remote";
2040
+ }>>;
2041
+ remoteNodes: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
2042
+ id: z$1.ZodString;
2043
+ address: z$1.ZodString;
2044
+ port: z$1.ZodNumber;
2045
+ }, z$1.core.$strip>>>;
2046
+ }, z$1.core.$strip>;
2047
+ type AgentSyncConfig = z$1.infer<typeof AgentSyncConfigSchema>;
2048
+ declare const GatewayNodeConfigSchema: z$1.ZodObject<{
2049
+ id: z$1.ZodString;
2050
+ address: z$1.ZodString;
2051
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2052
+ metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
2053
+ }, z$1.core.$strip>;
2054
+ type GatewayNodeConfig = z$1.infer<typeof GatewayNodeConfigSchema>;
2055
+ declare const GatewayClusterConfigSchema: z$1.ZodObject<{
2056
+ nodeId: z$1.ZodString;
2057
+ nodes: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
2058
+ id: z$1.ZodString;
2059
+ address: z$1.ZodString;
2060
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2061
+ metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
2062
+ }, z$1.core.$strip>>>;
2063
+ sync: z$1.ZodOptional<z$1.ZodObject<{
2064
+ mode: z$1.ZodDefault<z$1.ZodEnum<{
2065
+ push: "push";
2066
+ pull: "pull";
2067
+ both: "both";
2068
+ }>>;
2069
+ interval: z$1.ZodDefault<z$1.ZodNumber>;
2070
+ pushEvents: z$1.ZodDefault<z$1.ZodArray<z$1.ZodEnum<{
2071
+ register: "register";
2072
+ deregister: "deregister";
2073
+ heartbeat: "heartbeat";
2074
+ status_change: "status_change";
2075
+ }>>>;
2076
+ conflictResolution: z$1.ZodDefault<z$1.ZodEnum<{
2077
+ latest: "latest";
2078
+ local: "local";
2079
+ remote: "remote";
2080
+ }>>;
2081
+ remoteNodes: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
2082
+ id: z$1.ZodString;
2083
+ address: z$1.ZodString;
2084
+ port: z$1.ZodNumber;
2085
+ }, z$1.core.$strip>>>;
2086
+ }, z$1.core.$strip>>;
2087
+ }, z$1.core.$strip>;
2088
+ type GatewayClusterConfig = z$1.infer<typeof GatewayClusterConfigSchema>;
2089
+ declare const ConnectionPoolConfigSchema: z$1.ZodObject<{
2090
+ maxConnectionsPerChannel: z$1.ZodDefault<z$1.ZodNumber>;
2091
+ idleTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2092
+ reuseStrategy: z$1.ZodDefault<z$1.ZodEnum<{
2093
+ random: "random";
2094
+ lru: "lru";
2095
+ fifo: "fifo";
2096
+ }>>;
2097
+ healthCheckInterval: z$1.ZodDefault<z$1.ZodNumber>;
2098
+ acquireTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2099
+ warmupCount: z$1.ZodDefault<z$1.ZodNumber>;
2100
+ }, z$1.core.$strip>;
2101
+ type ConnectionPoolConfig = z$1.infer<typeof ConnectionPoolConfigSchema>;
2102
+ declare const MessageQueueConfigSchema: z$1.ZodObject<{
2103
+ maxLength: z$1.ZodDefault<z$1.ZodNumber>;
2104
+ concurrency: z$1.ZodDefault<z$1.ZodNumber>;
2105
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
2106
+ batchTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2107
+ priorityLevels: z$1.ZodDefault<z$1.ZodNumber>;
2108
+ }, z$1.core.$strip>;
2109
+ type MessageQueueConfig = z$1.infer<typeof MessageQueueConfigSchema>;
2110
+ declare const CircuitBreakerConfigSchema: z$1.ZodObject<{
2111
+ failureThreshold: z$1.ZodDefault<z$1.ZodNumber>;
2112
+ successThreshold: z$1.ZodDefault<z$1.ZodNumber>;
2113
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
2114
+ halfOpenDuration: z$1.ZodDefault<z$1.ZodNumber>;
2115
+ }, z$1.core.$strip>;
2116
+ type CircuitBreakerConfig = z$1.infer<typeof CircuitBreakerConfigSchema>;
2117
+ declare const AgentRegistryConfigSchema: z$1.ZodObject<{
2118
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
2119
+ heartbeatTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2120
+ heartbeatCheckInterval: z$1.ZodDefault<z$1.ZodNumber>;
2121
+ autoDeregisterTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2122
+ maxAgents: z$1.ZodDefault<z$1.ZodNumber>;
2123
+ persistenceFile: z$1.ZodOptional<z$1.ZodString>;
2124
+ maxRegistrations: z$1.ZodDefault<z$1.ZodNumber>;
2125
+ }, z$1.core.$strip>;
2126
+ type AgentRegistryConfig = z$1.infer<typeof AgentRegistryConfigSchema>;
2127
+ declare const SessionConfigSchema: z$1.ZodObject<{
2128
+ sessionTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2129
+ resumeGracePeriod: z$1.ZodDefault<z$1.ZodNumber>;
2130
+ maxSessions: z$1.ZodDefault<z$1.ZodNumber>;
2131
+ persistenceFile: z$1.ZodOptional<z$1.ZodString>;
2132
+ }, z$1.core.$strip>;
2133
+ type SessionConfig = z$1.infer<typeof SessionConfigSchema>;
2134
+ declare const GatewayServerConfigSchema: z$1.ZodObject<{
2135
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2136
+ port: z$1.ZodDefault<z$1.ZodNumber>;
2137
+ hostname: z$1.ZodDefault<z$1.ZodString>;
2138
+ path: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
2139
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2140
+ connectionTimeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2141
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2142
+ sessionExpireMs: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2143
+ https: z$1.ZodOptional<z$1.ZodObject<{
2144
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2145
+ cert: z$1.ZodOptional<z$1.ZodString>;
2146
+ key: z$1.ZodOptional<z$1.ZodString>;
2147
+ certPath: z$1.ZodOptional<z$1.ZodString>;
2148
+ keyPath: z$1.ZodOptional<z$1.ZodString>;
2149
+ ca: z$1.ZodOptional<z$1.ZodString>;
2150
+ forceRedirect: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
2151
+ httpPort: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2152
+ }, z$1.core.$strip>>;
2153
+ auth: z$1.ZodOptional<z$1.ZodObject<{
2154
+ type: z$1.ZodDefault<z$1.ZodEnum<{
2155
+ token: "token";
2156
+ oauth2: "oauth2";
2157
+ }>>;
2158
+ token: z$1.ZodOptional<z$1.ZodObject<{
2159
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2160
+ tokens: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
2161
+ name: z$1.ZodString;
2162
+ value: z$1.ZodString;
2163
+ permissions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
2164
+ expiresAt: z$1.ZodOptional<z$1.ZodNumber>;
2165
+ description: z$1.ZodOptional<z$1.ZodString>;
2166
+ }, z$1.core.$strip>>>;
2167
+ onInvalid: z$1.ZodDefault<z$1.ZodEnum<{
2168
+ reject: "reject";
2169
+ anonymous: "anonymous";
2170
+ }>>;
2171
+ allowAnonymous: z$1.ZodDefault<z$1.ZodBoolean>;
2172
+ defaultPermissions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
2173
+ }, z$1.core.$strip>>;
2174
+ oauth2: z$1.ZodOptional<z$1.ZodObject<{
2175
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2176
+ authorizationServer: z$1.ZodString;
2177
+ clientId: z$1.ZodString;
2178
+ clientSecret: z$1.ZodString;
2179
+ tokenValidationEndpoint: z$1.ZodString;
2180
+ scope: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
2181
+ }, z$1.core.$strip>>;
2182
+ }, z$1.core.$strip>>;
2183
+ cors: z$1.ZodDefault<z$1.ZodBoolean>;
2184
+ corsOrigins: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2185
+ mdns: z$1.ZodDefault<z$1.ZodBoolean>;
2186
+ mdnsDomain: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
2187
+ }, z$1.core.$strip>;
2188
+ type GatewayServerConfig = z$1.infer<typeof GatewayServerConfigSchema>;
2189
+ declare const DefaultsConfigSchema: z$1.ZodObject<{
2190
+ channel: z$1.ZodOptional<z$1.ZodString>;
2191
+ fallbackChannels: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2192
+ }, z$1.core.$strip>;
2193
+ type DefaultsConfig = z$1.infer<typeof DefaultsConfigSchema>;
2194
+ declare const AgentModeSchema: z$1.ZodEnum<{
2195
+ both: "both";
2196
+ localAgent: "localAgent";
2197
+ subAgent: "subAgent";
2198
+ }>;
2199
+ type AgentMode = z$1.infer<typeof AgentModeSchema>;
2200
+ declare const AgentProcessingConfigSchema: z$1.ZodObject<{
2201
+ mode: z$1.ZodDefault<z$1.ZodEnum<{
2202
+ both: "both";
2203
+ localAgent: "localAgent";
2204
+ subAgent: "subAgent";
2205
+ }>>;
2206
+ localAgentPriority: z$1.ZodDefault<z$1.ZodNumber>;
2207
+ subAgentPriority: z$1.ZodDefault<z$1.ZodNumber>;
2208
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2209
+ retryOnFailure: z$1.ZodDefault<z$1.ZodBoolean>;
2210
+ }, z$1.core.$strip>;
2211
+ type AgentProcessingConfig = z$1.infer<typeof AgentProcessingConfigSchema>;
2212
+ declare const GatewayClientConfigSchema: z$1.ZodObject<{
2213
+ autoRegister: z$1.ZodDefault<z$1.ZodBoolean>;
2214
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
2215
+ maxReconnectAttempts: z$1.ZodDefault<z$1.ZodNumber>;
2216
+ reconnectDelay: z$1.ZodDefault<z$1.ZodNumber>;
2217
+ heartbeatTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2218
+ }, z$1.core.$strip>;
2219
+ type GatewayClientConfig = z$1.infer<typeof GatewayClientConfigSchema>;
2220
+ declare const GatewayConfigSchema: z$1.ZodObject<{
2221
+ server: z$1.ZodOptional<z$1.ZodObject<{
2222
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2223
+ port: z$1.ZodDefault<z$1.ZodNumber>;
2224
+ hostname: z$1.ZodDefault<z$1.ZodString>;
2225
+ path: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
2226
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2227
+ connectionTimeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2228
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2229
+ sessionExpireMs: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2230
+ https: z$1.ZodOptional<z$1.ZodObject<{
2231
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2232
+ cert: z$1.ZodOptional<z$1.ZodString>;
2233
+ key: z$1.ZodOptional<z$1.ZodString>;
2234
+ certPath: z$1.ZodOptional<z$1.ZodString>;
2235
+ keyPath: z$1.ZodOptional<z$1.ZodString>;
2236
+ ca: z$1.ZodOptional<z$1.ZodString>;
2237
+ forceRedirect: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
2238
+ httpPort: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2239
+ }, z$1.core.$strip>>;
2240
+ auth: z$1.ZodOptional<z$1.ZodObject<{
2241
+ type: z$1.ZodDefault<z$1.ZodEnum<{
2242
+ token: "token";
2243
+ oauth2: "oauth2";
2244
+ }>>;
2245
+ token: z$1.ZodOptional<z$1.ZodObject<{
2246
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2247
+ tokens: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
2248
+ name: z$1.ZodString;
2249
+ value: z$1.ZodString;
2250
+ permissions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
2251
+ expiresAt: z$1.ZodOptional<z$1.ZodNumber>;
2252
+ description: z$1.ZodOptional<z$1.ZodString>;
2253
+ }, z$1.core.$strip>>>;
2254
+ onInvalid: z$1.ZodDefault<z$1.ZodEnum<{
2255
+ reject: "reject";
2256
+ anonymous: "anonymous";
2257
+ }>>;
2258
+ allowAnonymous: z$1.ZodDefault<z$1.ZodBoolean>;
2259
+ defaultPermissions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
2260
+ }, z$1.core.$strip>>;
2261
+ oauth2: z$1.ZodOptional<z$1.ZodObject<{
2262
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2263
+ authorizationServer: z$1.ZodString;
2264
+ clientId: z$1.ZodString;
2265
+ clientSecret: z$1.ZodString;
2266
+ tokenValidationEndpoint: z$1.ZodString;
2267
+ scope: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
2268
+ }, z$1.core.$strip>>;
2269
+ }, z$1.core.$strip>>;
2270
+ cors: z$1.ZodDefault<z$1.ZodBoolean>;
2271
+ corsOrigins: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2272
+ mdns: z$1.ZodDefault<z$1.ZodBoolean>;
2273
+ mdnsDomain: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
2274
+ }, z$1.core.$strip>>;
2275
+ channels: z$1.ZodOptional<z$1.ZodObject<{
2276
+ telegram: z$1.ZodOptional<z$1.ZodObject<{
2277
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2278
+ botToken: z$1.ZodString;
2279
+ webhookUrl: z$1.ZodOptional<z$1.ZodString>;
2280
+ polling: z$1.ZodOptional<z$1.ZodObject<{
2281
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2282
+ interval: z$1.ZodOptional<z$1.ZodNumber>;
2283
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2284
+ }, z$1.core.$strip>>;
2285
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2286
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2287
+ }, z$1.core.$strip>>;
2288
+ slack: z$1.ZodOptional<z$1.ZodObject<{
2289
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2290
+ botToken: z$1.ZodString;
2291
+ appToken: z$1.ZodOptional<z$1.ZodString>;
2292
+ signingSecret: z$1.ZodOptional<z$1.ZodString>;
2293
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2294
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2295
+ }, z$1.core.$strip>>;
2296
+ feishu: z$1.ZodOptional<z$1.ZodObject<{
2297
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2298
+ appId: z$1.ZodString;
2299
+ appSecret: z$1.ZodString;
2300
+ encryptKey: z$1.ZodOptional<z$1.ZodString>;
2301
+ verificationToken: z$1.ZodOptional<z$1.ZodString>;
2302
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2303
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2304
+ }, z$1.core.$strip>>;
2305
+ wechat: z$1.ZodOptional<z$1.ZodObject<{
2306
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2307
+ mode: z$1.ZodDefault<z$1.ZodEnum<{
2308
+ official: "official";
2309
+ wecom: "wecom";
2310
+ }>>;
2311
+ appId: z$1.ZodString;
2312
+ appSecret: z$1.ZodString;
2313
+ token: z$1.ZodOptional<z$1.ZodString>;
2314
+ encodingAESKey: z$1.ZodOptional<z$1.ZodString>;
2315
+ agentId: z$1.ZodOptional<z$1.ZodString>;
2316
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2317
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2318
+ }, z$1.core.$strip>>;
2319
+ weixin: z$1.ZodOptional<z$1.ZodObject<{
2320
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2321
+ stateDir: z$1.ZodOptional<z$1.ZodString>;
2322
+ baseUrl: z$1.ZodOptional<z$1.ZodString>;
2323
+ cdnBaseUrl: z$1.ZodOptional<z$1.ZodString>;
2324
+ maxMessageLength: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2325
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2326
+ }, z$1.core.$strip>>;
2327
+ webchat: z$1.ZodOptional<z$1.ZodObject<{
2328
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2329
+ path: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
2330
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2331
+ connectionTimeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2332
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2333
+ cors: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
2334
+ }, z$1.core.$strip>>;
2335
+ signal: z$1.ZodOptional<z$1.ZodObject<{
2336
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2337
+ serviceUrl: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
2338
+ phoneNumber: z$1.ZodString;
2339
+ password: z$1.ZodOptional<z$1.ZodString>;
2340
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2341
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2342
+ }, z$1.core.$strip>>;
2343
+ nostr: z$1.ZodOptional<z$1.ZodObject<{
2344
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2345
+ relays: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
2346
+ privateKey: z$1.ZodOptional<z$1.ZodString>;
2347
+ publicKey: z$1.ZodOptional<z$1.ZodString>;
2348
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2349
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2350
+ }, z$1.core.$strip>>;
2351
+ dingtalk: z$1.ZodOptional<z$1.ZodObject<{
2352
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2353
+ appKey: z$1.ZodString;
2354
+ appSecret: z$1.ZodString;
2355
+ token: z$1.ZodOptional<z$1.ZodString>;
2356
+ encryptKey: z$1.ZodOptional<z$1.ZodString>;
2357
+ webhook: z$1.ZodOptional<z$1.ZodObject<{
2358
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2359
+ path: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
2360
+ port: z$1.ZodOptional<z$1.ZodNumber>;
2361
+ }, z$1.core.$strip>>;
2362
+ maxConnections: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2363
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2364
+ }, z$1.core.$strip>>;
2365
+ }, z$1.core.$strip>>;
2366
+ cluster: z$1.ZodOptional<z$1.ZodObject<{
2367
+ nodeId: z$1.ZodString;
2368
+ nodes: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
2369
+ id: z$1.ZodString;
2370
+ address: z$1.ZodString;
2371
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2372
+ metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
2373
+ }, z$1.core.$strip>>>;
2374
+ sync: z$1.ZodOptional<z$1.ZodObject<{
2375
+ mode: z$1.ZodDefault<z$1.ZodEnum<{
2376
+ push: "push";
2377
+ pull: "pull";
2378
+ both: "both";
2379
+ }>>;
2380
+ interval: z$1.ZodDefault<z$1.ZodNumber>;
2381
+ pushEvents: z$1.ZodDefault<z$1.ZodArray<z$1.ZodEnum<{
2382
+ register: "register";
2383
+ deregister: "deregister";
2384
+ heartbeat: "heartbeat";
2385
+ status_change: "status_change";
2386
+ }>>>;
2387
+ conflictResolution: z$1.ZodDefault<z$1.ZodEnum<{
2388
+ latest: "latest";
2389
+ local: "local";
2390
+ remote: "remote";
2391
+ }>>;
2392
+ remoteNodes: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
2393
+ id: z$1.ZodString;
2394
+ address: z$1.ZodString;
2395
+ port: z$1.ZodNumber;
2396
+ }, z$1.core.$strip>>>;
2397
+ }, z$1.core.$strip>>;
2398
+ }, z$1.core.$strip>>;
2399
+ connectionPool: z$1.ZodOptional<z$1.ZodObject<{
2400
+ maxConnectionsPerChannel: z$1.ZodDefault<z$1.ZodNumber>;
2401
+ idleTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2402
+ reuseStrategy: z$1.ZodDefault<z$1.ZodEnum<{
2403
+ random: "random";
2404
+ lru: "lru";
2405
+ fifo: "fifo";
2406
+ }>>;
2407
+ healthCheckInterval: z$1.ZodDefault<z$1.ZodNumber>;
2408
+ acquireTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2409
+ warmupCount: z$1.ZodDefault<z$1.ZodNumber>;
2410
+ }, z$1.core.$strip>>;
2411
+ messageQueue: z$1.ZodOptional<z$1.ZodObject<{
2412
+ maxLength: z$1.ZodDefault<z$1.ZodNumber>;
2413
+ concurrency: z$1.ZodDefault<z$1.ZodNumber>;
2414
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
2415
+ batchTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2416
+ priorityLevels: z$1.ZodDefault<z$1.ZodNumber>;
2417
+ }, z$1.core.$strip>>;
2418
+ circuitBreaker: z$1.ZodOptional<z$1.ZodObject<{
2419
+ failureThreshold: z$1.ZodDefault<z$1.ZodNumber>;
2420
+ successThreshold: z$1.ZodDefault<z$1.ZodNumber>;
2421
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
2422
+ halfOpenDuration: z$1.ZodDefault<z$1.ZodNumber>;
2423
+ }, z$1.core.$strip>>;
2424
+ agentRegistry: z$1.ZodOptional<z$1.ZodObject<{
2425
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
2426
+ heartbeatTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2427
+ heartbeatCheckInterval: z$1.ZodDefault<z$1.ZodNumber>;
2428
+ autoDeregisterTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2429
+ maxAgents: z$1.ZodDefault<z$1.ZodNumber>;
2430
+ persistenceFile: z$1.ZodOptional<z$1.ZodString>;
2431
+ maxRegistrations: z$1.ZodDefault<z$1.ZodNumber>;
2432
+ }, z$1.core.$strip>>;
2433
+ session: z$1.ZodOptional<z$1.ZodObject<{
2434
+ sessionTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2435
+ resumeGracePeriod: z$1.ZodDefault<z$1.ZodNumber>;
2436
+ maxSessions: z$1.ZodDefault<z$1.ZodNumber>;
2437
+ persistenceFile: z$1.ZodOptional<z$1.ZodString>;
2438
+ }, z$1.core.$strip>>;
2439
+ defaults: z$1.ZodOptional<z$1.ZodObject<{
2440
+ channel: z$1.ZodOptional<z$1.ZodString>;
2441
+ fallbackChannels: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2442
+ }, z$1.core.$strip>>;
2443
+ agentProcessing: z$1.ZodOptional<z$1.ZodObject<{
2444
+ mode: z$1.ZodDefault<z$1.ZodEnum<{
2445
+ both: "both";
2446
+ localAgent: "localAgent";
2447
+ subAgent: "subAgent";
2448
+ }>>;
2449
+ localAgentPriority: z$1.ZodDefault<z$1.ZodNumber>;
2450
+ subAgentPriority: z$1.ZodDefault<z$1.ZodNumber>;
2451
+ timeout: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
2452
+ retryOnFailure: z$1.ZodDefault<z$1.ZodBoolean>;
2453
+ }, z$1.core.$strip>>;
2454
+ client: z$1.ZodOptional<z$1.ZodObject<{
2455
+ autoRegister: z$1.ZodDefault<z$1.ZodBoolean>;
2456
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
2457
+ maxReconnectAttempts: z$1.ZodDefault<z$1.ZodNumber>;
2458
+ reconnectDelay: z$1.ZodDefault<z$1.ZodNumber>;
2459
+ heartbeatTimeout: z$1.ZodDefault<z$1.ZodNumber>;
2460
+ }, z$1.core.$strip>>;
2461
+ defaultAgent: z$1.ZodOptional<z$1.ZodString>;
2462
+ logLevel: z$1.ZodOptional<z$1.ZodEnum<{
2463
+ DEBUG: "DEBUG";
2464
+ INFO: "INFO";
2465
+ WARN: "WARN";
2466
+ ERROR: "ERROR";
2467
+ }>>;
2468
+ }, z$1.core.$catchall<z$1.ZodUnknown>>;
2469
+ type GatewayConfig = z$1.infer<typeof GatewayConfigSchema>;
1905
2470
 
1906
- type gateway_AgentAdapter = AgentAdapter;
1907
- type gateway_AgentDeregisterMessage = AgentDeregisterMessage;
1908
- type gateway_AgentHealthStatus = AgentHealthStatus;
1909
- type gateway_AgentHeartbeat = AgentHeartbeat;
1910
- type gateway_AgentHeartbeatSyncMessage = AgentHeartbeatSyncMessage;
1911
- type gateway_AgentInfo = AgentInfo;
1912
- type gateway_AgentListRequestMessage = AgentListRequestMessage;
1913
- type gateway_AgentListResponseMessage = AgentListResponseMessage;
1914
- type gateway_AgentRegisterMessage = AgentRegisterMessage;
1915
- type gateway_AgentRegistration = AgentRegistration;
1916
- type gateway_AgentRegistrationRequest = AgentRegistrationRequest;
1917
- type gateway_AgentRegistryStats = AgentRegistryStats;
1918
- type gateway_AgentSelectionOptions = AgentSelectionOptions;
1919
- type gateway_AgentSelectionRecord = AgentSelectionRecord;
1920
- type gateway_AgentSelectionStrategy = AgentSelectionStrategy;
1921
- type gateway_AgentStatusChangeMessage = AgentStatusChangeMessage;
1922
- type gateway_AgentSyncConflictResolutionStrategy = AgentSyncConflictResolutionStrategy;
1923
- type gateway_AgentSyncInfo = AgentSyncInfo;
1924
- type gateway_AgentSyncMessage = AgentSyncMessage;
1925
- type gateway_AgentSyncMode = AgentSyncMode;
1926
- type gateway_AgentSyncPushEventType = AgentSyncPushEventType;
1927
- type gateway_AgentSyncState = AgentSyncState;
1928
- type gateway_AgentSyncStats = AgentSyncStats;
1929
- type gateway_ChannelInfo = ChannelInfo;
1930
- type gateway_ChannelListResponse = ChannelListResponse;
1931
- type gateway_ChannelPluginInfo = ChannelPluginInfo;
1932
- type gateway_GatewayConfig = GatewayConfig;
1933
- type gateway_GatewayHookHandler = GatewayHookHandler;
1934
- type gateway_GatewayMessage = GatewayMessage;
1935
- type gateway_GatewayMessageDeliveredInput = GatewayMessageDeliveredInput;
1936
- type gateway_GatewayMessagePromptPart = GatewayMessagePromptPart;
1937
- type gateway_GatewayMessageReadInput = GatewayMessageReadInput;
1938
- type gateway_GatewayMessageReceiveInput = GatewayMessageReceiveInput;
1939
- type gateway_GatewayMessageSendInput = GatewayMessageSendInput;
1940
- type gateway_GatewayNodeInfo = GatewayNodeInfo;
1941
- type gateway_GatewayServerConfig = GatewayServerConfig;
1942
- type gateway_GatewaySubscriberType = GatewaySubscriberType;
1943
- type gateway_IGatewayServer = IGatewayServer;
1944
- type gateway_IGlobal = IGlobal;
1945
- type gateway_IHookRegistry = IHookRegistry;
1946
- type gateway_IInstance = IInstance;
1947
- type gateway_ILocalAgentRunner = ILocalAgentRunner;
1948
- type gateway_LocalAgentInput = LocalAgentInput;
1949
- type gateway_LocalAgentResult = LocalAgentResult;
1950
- type gateway_MessageContext = MessageContext;
1951
- type gateway_MessageMetadata = MessageMetadata;
1952
- type gateway_MessageStorage = MessageStorage;
1953
- type gateway_MessageType = MessageType;
1954
- type gateway_PlatformType = PlatformType;
1955
- declare namespace gateway {
1956
- export type { gateway_AgentAdapter as AgentAdapter, gateway_AgentDeregisterMessage as AgentDeregisterMessage, gateway_AgentHealthStatus as AgentHealthStatus, gateway_AgentHeartbeat as AgentHeartbeat, gateway_AgentHeartbeatSyncMessage as AgentHeartbeatSyncMessage, gateway_AgentInfo as AgentInfo, gateway_AgentListRequestMessage as AgentListRequestMessage, gateway_AgentListResponseMessage as AgentListResponseMessage, gateway_AgentRegisterMessage as AgentRegisterMessage, gateway_AgentRegistration as AgentRegistration, gateway_AgentRegistrationRequest as AgentRegistrationRequest, gateway_AgentRegistryStats as AgentRegistryStats, gateway_AgentSelectionOptions as AgentSelectionOptions, gateway_AgentSelectionRecord as AgentSelectionRecord, gateway_AgentSelectionStrategy as AgentSelectionStrategy, gateway_AgentStatusChangeMessage as AgentStatusChangeMessage, gateway_AgentSyncConflictResolutionStrategy as AgentSyncConflictResolutionStrategy, gateway_AgentSyncInfo as AgentSyncInfo, gateway_AgentSyncMessage as AgentSyncMessage, gateway_AgentSyncMode as AgentSyncMode, gateway_AgentSyncPushEventType as AgentSyncPushEventType, gateway_AgentSyncState as AgentSyncState, gateway_AgentSyncStats as AgentSyncStats, gateway_ChannelInfo as ChannelInfo, gateway_ChannelListResponse as ChannelListResponse, gateway_ChannelPluginInfo as ChannelPluginInfo, gateway_GatewayConfig as GatewayConfig, gateway_GatewayHookHandler as GatewayHookHandler, gateway_GatewayMessage as GatewayMessage, gateway_GatewayMessageDeliveredInput as GatewayMessageDeliveredInput, gateway_GatewayMessagePromptPart as GatewayMessagePromptPart, gateway_GatewayMessageReadInput as GatewayMessageReadInput, gateway_GatewayMessageReceiveInput as GatewayMessageReceiveInput, gateway_GatewayMessageSendInput as GatewayMessageSendInput, gateway_GatewayNodeInfo as GatewayNodeInfo, gateway_GatewayServerConfig as GatewayServerConfig, gateway_GatewaySubscriberType as GatewaySubscriberType, gateway_IGatewayServer as IGatewayServer, gateway_IGlobal as IGlobal, gateway_IHookRegistry as IHookRegistry, gateway_IInstance as IInstance, gateway_ILocalAgentRunner as ILocalAgentRunner, gateway_LocalAgentInput as LocalAgentInput, gateway_LocalAgentResult as LocalAgentResult, gateway_MessageContext as MessageContext, gateway_MessageMetadata as MessageMetadata, gateway_MessageStorage as MessageStorage, gateway_MessageType as MessageType, gateway_PlatformType as PlatformType };
1957
- }
1958
-
1959
- declare const ProjectIconSchema: z.ZodObject<{
1960
- url: z.ZodOptional<z.ZodString>;
1961
- override: z.ZodOptional<z.ZodString>;
1962
- color: z.ZodOptional<z.ZodString>;
1963
- }, z.core.$strip>;
1964
- type ProjectIcon = z.infer<typeof ProjectIconSchema>;
1965
- declare const ProjectCommandsSchema: z.ZodObject<{
1966
- start: z.ZodOptional<z.ZodString>;
1967
- }, z.core.$strip>;
1968
- type ProjectCommands = z.infer<typeof ProjectCommandsSchema>;
1969
- declare const ProjectTimeSchema: z.ZodObject<{
1970
- created: z.ZodNumber;
1971
- updated: z.ZodNumber;
1972
- initialized: z.ZodOptional<z.ZodNumber>;
1973
- }, z.core.$strip>;
1974
- type ProjectTime = z.infer<typeof ProjectTimeSchema>;
1975
- declare const ProjectInfoSchema: z.ZodObject<{
1976
- id: z.ZodString;
1977
- worktree: z.ZodString;
1978
- vcs: z.ZodOptional<z.ZodLiteral<"git">>;
1979
- name: z.ZodOptional<z.ZodString>;
1980
- icon: z.ZodOptional<z.ZodObject<{
1981
- url: z.ZodOptional<z.ZodString>;
1982
- override: z.ZodOptional<z.ZodString>;
1983
- color: z.ZodOptional<z.ZodString>;
1984
- }, z.core.$strip>>;
1985
- commands: z.ZodOptional<z.ZodObject<{
1986
- start: z.ZodOptional<z.ZodString>;
1987
- }, z.core.$strip>>;
1988
- time: z.ZodObject<{
1989
- created: z.ZodNumber;
1990
- updated: z.ZodNumber;
1991
- initialized: z.ZodOptional<z.ZodNumber>;
1992
- }, z.core.$strip>;
1993
- sandboxes: z.ZodArray<z.ZodString>;
1994
- }, z.core.$strip>;
1995
- type ProjectInfo = z.infer<typeof ProjectInfoSchema>;
2471
+ declare const ProjectIconSchema: z__default.ZodObject<{
2472
+ url: z__default.ZodOptional<z__default.ZodString>;
2473
+ override: z__default.ZodOptional<z__default.ZodString>;
2474
+ color: z__default.ZodOptional<z__default.ZodString>;
2475
+ }, z__default.core.$strip>;
2476
+ type ProjectIcon = z__default.infer<typeof ProjectIconSchema>;
2477
+ declare const ProjectCommandsSchema: z__default.ZodObject<{
2478
+ start: z__default.ZodOptional<z__default.ZodString>;
2479
+ }, z__default.core.$strip>;
2480
+ type ProjectCommands = z__default.infer<typeof ProjectCommandsSchema>;
2481
+ declare const ProjectTimeSchema: z__default.ZodObject<{
2482
+ created: z__default.ZodNumber;
2483
+ updated: z__default.ZodNumber;
2484
+ initialized: z__default.ZodOptional<z__default.ZodNumber>;
2485
+ }, z__default.core.$strip>;
2486
+ type ProjectTime = z__default.infer<typeof ProjectTimeSchema>;
2487
+ declare const ProjectInfoSchema: z__default.ZodObject<{
2488
+ id: z__default.ZodString;
2489
+ worktree: z__default.ZodString;
2490
+ vcs: z__default.ZodOptional<z__default.ZodLiteral<"git">>;
2491
+ name: z__default.ZodOptional<z__default.ZodString>;
2492
+ icon: z__default.ZodOptional<z__default.ZodObject<{
2493
+ url: z__default.ZodOptional<z__default.ZodString>;
2494
+ override: z__default.ZodOptional<z__default.ZodString>;
2495
+ color: z__default.ZodOptional<z__default.ZodString>;
2496
+ }, z__default.core.$strip>>;
2497
+ commands: z__default.ZodOptional<z__default.ZodObject<{
2498
+ start: z__default.ZodOptional<z__default.ZodString>;
2499
+ }, z__default.core.$strip>>;
2500
+ time: z__default.ZodObject<{
2501
+ created: z__default.ZodNumber;
2502
+ updated: z__default.ZodNumber;
2503
+ initialized: z__default.ZodOptional<z__default.ZodNumber>;
2504
+ }, z__default.core.$strip>;
2505
+ sandboxes: z__default.ZodArray<z__default.ZodString>;
2506
+ }, z__default.core.$strip>;
2507
+ type ProjectInfo = z__default.infer<typeof ProjectInfoSchema>;
1996
2508
 
1997
- declare const SessionInfoSchema: z.ZodObject<{
1998
- id: z.ZodString;
1999
- slug: z.ZodString;
2000
- providerId: z.ZodString;
2001
- directory: z.ZodString;
2002
- parentId: z.ZodOptional<z.ZodString>;
2003
- contextMode: z.ZodOptional<z.ZodEnum<{
2509
+ declare const ContextModeSchema: z__default.ZodEnum<{
2510
+ general: "general";
2511
+ coder: "coder";
2512
+ }>;
2513
+ declare const SessionInfoSchema: z__default.ZodObject<{
2514
+ id: z__default.ZodString;
2515
+ slug: z__default.ZodString;
2516
+ providerId: z__default.ZodString;
2517
+ directory: z__default.ZodString;
2518
+ parentId: z__default.ZodOptional<z__default.ZodString>;
2519
+ contextMode: z__default.ZodOptional<z__default.ZodEnum<{
2004
2520
  general: "general";
2005
2521
  coder: "coder";
2006
2522
  }>>;
2007
- summary: z.ZodOptional<z.ZodObject<{
2008
- additions: z.ZodNumber;
2009
- deletions: z.ZodNumber;
2010
- files: z.ZodNumber;
2011
- diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2012
- file: z.ZodString;
2013
- before: z.ZodString;
2014
- after: z.ZodString;
2015
- additions: z.ZodNumber;
2016
- deletions: z.ZodNumber;
2017
- status: z.ZodOptional<z.ZodEnum<{
2523
+ summary: z__default.ZodOptional<z__default.ZodObject<{
2524
+ additions: z__default.ZodNumber;
2525
+ deletions: z__default.ZodNumber;
2526
+ files: z__default.ZodNumber;
2527
+ diffs: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2528
+ file: z__default.ZodString;
2529
+ before: z__default.ZodString;
2530
+ after: z__default.ZodString;
2531
+ additions: z__default.ZodNumber;
2532
+ deletions: z__default.ZodNumber;
2533
+ status: z__default.ZodOptional<z__default.ZodEnum<{
2018
2534
  added: "added";
2019
- modified: "modified";
2020
2535
  deleted: "deleted";
2536
+ modified: "modified";
2021
2537
  renamed: "renamed";
2022
2538
  }>>;
2023
- oldPath: z.ZodOptional<z.ZodString>;
2024
- }, z.core.$strip>>>;
2025
- noSnapshotReason: z.ZodOptional<z.ZodEnum<{
2539
+ oldPath: z__default.ZodOptional<z__default.ZodString>;
2540
+ }, z__default.core.$strip>>>;
2541
+ noSnapshotReason: z__default.ZodOptional<z__default.ZodEnum<{
2026
2542
  "no-messages": "no-messages";
2027
2543
  "missing-from": "missing-from";
2028
2544
  "missing-to": "missing-to";
2029
2545
  }>>;
2030
- }, z.core.$strip>>;
2031
- share: z.ZodOptional<z.ZodObject<{
2032
- url: z.ZodString;
2033
- }, z.core.$strip>>;
2034
- title: z.ZodString;
2035
- version: z.ZodString;
2036
- time: z.ZodObject<{
2037
- created: z.ZodNumber;
2038
- updated: z.ZodNumber;
2039
- compacting: z.ZodOptional<z.ZodNumber>;
2040
- archived: z.ZodOptional<z.ZodNumber>;
2041
- }, z.core.$strip>;
2042
- permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
2043
- permission: z.ZodString;
2044
- pattern: z.ZodString;
2045
- action: z.ZodEnum<{
2546
+ }, z__default.core.$strip>>;
2547
+ share: z__default.ZodOptional<z__default.ZodObject<{
2548
+ url: z__default.ZodString;
2549
+ }, z__default.core.$strip>>;
2550
+ title: z__default.ZodString;
2551
+ version: z__default.ZodString;
2552
+ time: z__default.ZodObject<{
2553
+ created: z__default.ZodNumber;
2554
+ updated: z__default.ZodNumber;
2555
+ compacting: z__default.ZodOptional<z__default.ZodNumber>;
2556
+ archived: z__default.ZodOptional<z__default.ZodNumber>;
2557
+ }, z__default.core.$strip>;
2558
+ permission: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2559
+ permission: z__default.ZodString;
2560
+ pattern: z__default.ZodString;
2561
+ action: z__default.ZodEnum<{
2562
+ ask: "ask";
2046
2563
  allow: "allow";
2047
2564
  deny: "deny";
2048
- ask: "ask";
2049
2565
  }>;
2050
- }, z.core.$strip>>>;
2051
- revert: z.ZodOptional<z.ZodObject<{
2052
- messageId: z.ZodString;
2053
- partId: z.ZodOptional<z.ZodString>;
2054
- snapshot: z.ZodOptional<z.ZodString>;
2055
- diff: z.ZodOptional<z.ZodString>;
2056
- backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
2057
- original: z.ZodString;
2058
- backup: z.ZodOptional<z.ZodString>;
2059
- }, z.core.$strip>>>;
2060
- }, z.core.$strip>>;
2061
- }, z.core.$strip>;
2062
- type SessionInfo = z.infer<typeof SessionInfoSchema>;
2063
- declare const GlobalSessionInfoSchema: z.ZodObject<{
2064
- id: z.ZodString;
2065
- slug: z.ZodString;
2066
- providerId: z.ZodString;
2067
- directory: z.ZodString;
2068
- parentId: z.ZodOptional<z.ZodString>;
2069
- contextMode: z.ZodOptional<z.ZodEnum<{
2566
+ }, z__default.core.$strip>>>;
2567
+ revert: z__default.ZodOptional<z__default.ZodObject<{
2568
+ messageId: z__default.ZodString;
2569
+ partId: z__default.ZodOptional<z__default.ZodString>;
2570
+ snapshot: z__default.ZodOptional<z__default.ZodString>;
2571
+ diff: z__default.ZodOptional<z__default.ZodString>;
2572
+ backups: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2573
+ original: z__default.ZodString;
2574
+ backup: z__default.ZodOptional<z__default.ZodString>;
2575
+ }, z__default.core.$strip>>>;
2576
+ }, z__default.core.$strip>>;
2577
+ }, z__default.core.$strip>;
2578
+ type SessionInfo = z__default.infer<typeof SessionInfoSchema>;
2579
+ declare const GlobalSessionInfoSchema: z__default.ZodObject<{
2580
+ id: z__default.ZodString;
2581
+ slug: z__default.ZodString;
2582
+ providerId: z__default.ZodString;
2583
+ directory: z__default.ZodString;
2584
+ parentId: z__default.ZodOptional<z__default.ZodString>;
2585
+ contextMode: z__default.ZodOptional<z__default.ZodEnum<{
2070
2586
  general: "general";
2071
2587
  coder: "coder";
2072
2588
  }>>;
2073
- summary: z.ZodOptional<z.ZodObject<{
2074
- additions: z.ZodNumber;
2075
- deletions: z.ZodNumber;
2076
- files: z.ZodNumber;
2077
- diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2078
- file: z.ZodString;
2079
- before: z.ZodString;
2080
- after: z.ZodString;
2081
- additions: z.ZodNumber;
2082
- deletions: z.ZodNumber;
2083
- status: z.ZodOptional<z.ZodEnum<{
2589
+ summary: z__default.ZodOptional<z__default.ZodObject<{
2590
+ additions: z__default.ZodNumber;
2591
+ deletions: z__default.ZodNumber;
2592
+ files: z__default.ZodNumber;
2593
+ diffs: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2594
+ file: z__default.ZodString;
2595
+ before: z__default.ZodString;
2596
+ after: z__default.ZodString;
2597
+ additions: z__default.ZodNumber;
2598
+ deletions: z__default.ZodNumber;
2599
+ status: z__default.ZodOptional<z__default.ZodEnum<{
2084
2600
  added: "added";
2085
- modified: "modified";
2086
2601
  deleted: "deleted";
2602
+ modified: "modified";
2087
2603
  renamed: "renamed";
2088
2604
  }>>;
2089
- oldPath: z.ZodOptional<z.ZodString>;
2090
- }, z.core.$strip>>>;
2091
- noSnapshotReason: z.ZodOptional<z.ZodEnum<{
2605
+ oldPath: z__default.ZodOptional<z__default.ZodString>;
2606
+ }, z__default.core.$strip>>>;
2607
+ noSnapshotReason: z__default.ZodOptional<z__default.ZodEnum<{
2092
2608
  "no-messages": "no-messages";
2093
2609
  "missing-from": "missing-from";
2094
2610
  "missing-to": "missing-to";
2095
2611
  }>>;
2096
- }, z.core.$strip>>;
2097
- share: z.ZodOptional<z.ZodObject<{
2098
- url: z.ZodString;
2099
- }, z.core.$strip>>;
2100
- title: z.ZodString;
2101
- version: z.ZodString;
2102
- time: z.ZodObject<{
2103
- created: z.ZodNumber;
2104
- updated: z.ZodNumber;
2105
- compacting: z.ZodOptional<z.ZodNumber>;
2106
- archived: z.ZodOptional<z.ZodNumber>;
2107
- }, z.core.$strip>;
2108
- permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
2109
- permission: z.ZodString;
2110
- pattern: z.ZodString;
2111
- action: z.ZodEnum<{
2612
+ }, z__default.core.$strip>>;
2613
+ share: z__default.ZodOptional<z__default.ZodObject<{
2614
+ url: z__default.ZodString;
2615
+ }, z__default.core.$strip>>;
2616
+ title: z__default.ZodString;
2617
+ version: z__default.ZodString;
2618
+ time: z__default.ZodObject<{
2619
+ created: z__default.ZodNumber;
2620
+ updated: z__default.ZodNumber;
2621
+ compacting: z__default.ZodOptional<z__default.ZodNumber>;
2622
+ archived: z__default.ZodOptional<z__default.ZodNumber>;
2623
+ }, z__default.core.$strip>;
2624
+ permission: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2625
+ permission: z__default.ZodString;
2626
+ pattern: z__default.ZodString;
2627
+ action: z__default.ZodEnum<{
2628
+ ask: "ask";
2112
2629
  allow: "allow";
2113
2630
  deny: "deny";
2114
- ask: "ask";
2115
2631
  }>;
2116
- }, z.core.$strip>>>;
2117
- revert: z.ZodOptional<z.ZodObject<{
2118
- messageId: z.ZodString;
2119
- partId: z.ZodOptional<z.ZodString>;
2120
- snapshot: z.ZodOptional<z.ZodString>;
2121
- diff: z.ZodOptional<z.ZodString>;
2122
- backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
2123
- original: z.ZodString;
2124
- backup: z.ZodOptional<z.ZodString>;
2125
- }, z.core.$strip>>>;
2126
- }, z.core.$strip>>;
2127
- project: z.ZodNullable<z.ZodObject<{
2128
- id: z.ZodString;
2129
- worktree: z.ZodString;
2130
- vcs: z.ZodOptional<z.ZodLiteral<"git">>;
2131
- name: z.ZodOptional<z.ZodString>;
2132
- icon: z.ZodOptional<z.ZodObject<{
2133
- url: z.ZodOptional<z.ZodString>;
2134
- override: z.ZodOptional<z.ZodString>;
2135
- color: z.ZodOptional<z.ZodString>;
2136
- }, z.core.$strip>>;
2137
- commands: z.ZodOptional<z.ZodObject<{
2138
- start: z.ZodOptional<z.ZodString>;
2139
- }, z.core.$strip>>;
2140
- time: z.ZodObject<{
2141
- created: z.ZodNumber;
2142
- updated: z.ZodNumber;
2143
- initialized: z.ZodOptional<z.ZodNumber>;
2144
- }, z.core.$strip>;
2145
- sandboxes: z.ZodArray<z.ZodString>;
2146
- }, z.core.$strip>>;
2147
- }, z.core.$strip>;
2148
- type GlobalSessionInfo = z.infer<typeof GlobalSessionInfoSchema>;
2149
- declare const SessionShareInfoSchema: z.ZodObject<{
2150
- secret: z.ZodString;
2151
- url: z.ZodString;
2152
- }, z.core.$strip>;
2153
- type SessionShareInfo = z.infer<typeof SessionShareInfoSchema>;
2632
+ }, z__default.core.$strip>>>;
2633
+ revert: z__default.ZodOptional<z__default.ZodObject<{
2634
+ messageId: z__default.ZodString;
2635
+ partId: z__default.ZodOptional<z__default.ZodString>;
2636
+ snapshot: z__default.ZodOptional<z__default.ZodString>;
2637
+ diff: z__default.ZodOptional<z__default.ZodString>;
2638
+ backups: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2639
+ original: z__default.ZodString;
2640
+ backup: z__default.ZodOptional<z__default.ZodString>;
2641
+ }, z__default.core.$strip>>>;
2642
+ }, z__default.core.$strip>>;
2643
+ project: z__default.ZodNullable<z__default.ZodObject<{
2644
+ id: z__default.ZodString;
2645
+ worktree: z__default.ZodString;
2646
+ vcs: z__default.ZodOptional<z__default.ZodLiteral<"git">>;
2647
+ name: z__default.ZodOptional<z__default.ZodString>;
2648
+ icon: z__default.ZodOptional<z__default.ZodObject<{
2649
+ url: z__default.ZodOptional<z__default.ZodString>;
2650
+ override: z__default.ZodOptional<z__default.ZodString>;
2651
+ color: z__default.ZodOptional<z__default.ZodString>;
2652
+ }, z__default.core.$strip>>;
2653
+ commands: z__default.ZodOptional<z__default.ZodObject<{
2654
+ start: z__default.ZodOptional<z__default.ZodString>;
2655
+ }, z__default.core.$strip>>;
2656
+ time: z__default.ZodObject<{
2657
+ created: z__default.ZodNumber;
2658
+ updated: z__default.ZodNumber;
2659
+ initialized: z__default.ZodOptional<z__default.ZodNumber>;
2660
+ }, z__default.core.$strip>;
2661
+ sandboxes: z__default.ZodArray<z__default.ZodString>;
2662
+ }, z__default.core.$strip>>;
2663
+ }, z__default.core.$strip>;
2664
+ type GlobalSessionInfo = z__default.infer<typeof GlobalSessionInfoSchema>;
2665
+ declare const SessionShareInfoSchema: z__default.ZodObject<{
2666
+ secret: z__default.ZodString;
2667
+ url: z__default.ZodString;
2668
+ }, z__default.core.$strip>;
2669
+ type SessionShareInfo = z__default.infer<typeof SessionShareInfoSchema>;
2154
2670
  declare const Session: {
2155
2671
  readonly ContextModeValues: ("general" | "coder")[];
2156
- readonly Info: z.ZodObject<{
2157
- id: z.ZodString;
2158
- slug: z.ZodString;
2159
- providerId: z.ZodString;
2160
- directory: z.ZodString;
2161
- parentId: z.ZodOptional<z.ZodString>;
2162
- contextMode: z.ZodOptional<z.ZodEnum<{
2672
+ readonly Info: z__default.ZodObject<{
2673
+ id: z__default.ZodString;
2674
+ slug: z__default.ZodString;
2675
+ providerId: z__default.ZodString;
2676
+ directory: z__default.ZodString;
2677
+ parentId: z__default.ZodOptional<z__default.ZodString>;
2678
+ contextMode: z__default.ZodOptional<z__default.ZodEnum<{
2163
2679
  general: "general";
2164
2680
  coder: "coder";
2165
2681
  }>>;
2166
- summary: z.ZodOptional<z.ZodObject<{
2167
- additions: z.ZodNumber;
2168
- deletions: z.ZodNumber;
2169
- files: z.ZodNumber;
2170
- diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2171
- file: z.ZodString;
2172
- before: z.ZodString;
2173
- after: z.ZodString;
2174
- additions: z.ZodNumber;
2175
- deletions: z.ZodNumber;
2176
- status: z.ZodOptional<z.ZodEnum<{
2682
+ summary: z__default.ZodOptional<z__default.ZodObject<{
2683
+ additions: z__default.ZodNumber;
2684
+ deletions: z__default.ZodNumber;
2685
+ files: z__default.ZodNumber;
2686
+ diffs: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2687
+ file: z__default.ZodString;
2688
+ before: z__default.ZodString;
2689
+ after: z__default.ZodString;
2690
+ additions: z__default.ZodNumber;
2691
+ deletions: z__default.ZodNumber;
2692
+ status: z__default.ZodOptional<z__default.ZodEnum<{
2177
2693
  added: "added";
2178
- modified: "modified";
2179
2694
  deleted: "deleted";
2695
+ modified: "modified";
2180
2696
  renamed: "renamed";
2181
2697
  }>>;
2182
- oldPath: z.ZodOptional<z.ZodString>;
2183
- }, z.core.$strip>>>;
2184
- noSnapshotReason: z.ZodOptional<z.ZodEnum<{
2698
+ oldPath: z__default.ZodOptional<z__default.ZodString>;
2699
+ }, z__default.core.$strip>>>;
2700
+ noSnapshotReason: z__default.ZodOptional<z__default.ZodEnum<{
2185
2701
  "no-messages": "no-messages";
2186
2702
  "missing-from": "missing-from";
2187
2703
  "missing-to": "missing-to";
2188
2704
  }>>;
2189
- }, z.core.$strip>>;
2190
- share: z.ZodOptional<z.ZodObject<{
2191
- url: z.ZodString;
2192
- }, z.core.$strip>>;
2193
- title: z.ZodString;
2194
- version: z.ZodString;
2195
- time: z.ZodObject<{
2196
- created: z.ZodNumber;
2197
- updated: z.ZodNumber;
2198
- compacting: z.ZodOptional<z.ZodNumber>;
2199
- archived: z.ZodOptional<z.ZodNumber>;
2200
- }, z.core.$strip>;
2201
- permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
2202
- permission: z.ZodString;
2203
- pattern: z.ZodString;
2204
- action: z.ZodEnum<{
2705
+ }, z__default.core.$strip>>;
2706
+ share: z__default.ZodOptional<z__default.ZodObject<{
2707
+ url: z__default.ZodString;
2708
+ }, z__default.core.$strip>>;
2709
+ title: z__default.ZodString;
2710
+ version: z__default.ZodString;
2711
+ time: z__default.ZodObject<{
2712
+ created: z__default.ZodNumber;
2713
+ updated: z__default.ZodNumber;
2714
+ compacting: z__default.ZodOptional<z__default.ZodNumber>;
2715
+ archived: z__default.ZodOptional<z__default.ZodNumber>;
2716
+ }, z__default.core.$strip>;
2717
+ permission: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2718
+ permission: z__default.ZodString;
2719
+ pattern: z__default.ZodString;
2720
+ action: z__default.ZodEnum<{
2721
+ ask: "ask";
2205
2722
  allow: "allow";
2206
2723
  deny: "deny";
2207
- ask: "ask";
2208
2724
  }>;
2209
- }, z.core.$strip>>>;
2210
- revert: z.ZodOptional<z.ZodObject<{
2211
- messageId: z.ZodString;
2212
- partId: z.ZodOptional<z.ZodString>;
2213
- snapshot: z.ZodOptional<z.ZodString>;
2214
- diff: z.ZodOptional<z.ZodString>;
2215
- backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
2216
- original: z.ZodString;
2217
- backup: z.ZodOptional<z.ZodString>;
2218
- }, z.core.$strip>>>;
2219
- }, z.core.$strip>>;
2220
- }, z.core.$strip>;
2221
- readonly GlobalInfo: z.ZodObject<{
2222
- id: z.ZodString;
2223
- slug: z.ZodString;
2224
- providerId: z.ZodString;
2225
- directory: z.ZodString;
2226
- parentId: z.ZodOptional<z.ZodString>;
2227
- contextMode: z.ZodOptional<z.ZodEnum<{
2725
+ }, z__default.core.$strip>>>;
2726
+ revert: z__default.ZodOptional<z__default.ZodObject<{
2727
+ messageId: z__default.ZodString;
2728
+ partId: z__default.ZodOptional<z__default.ZodString>;
2729
+ snapshot: z__default.ZodOptional<z__default.ZodString>;
2730
+ diff: z__default.ZodOptional<z__default.ZodString>;
2731
+ backups: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2732
+ original: z__default.ZodString;
2733
+ backup: z__default.ZodOptional<z__default.ZodString>;
2734
+ }, z__default.core.$strip>>>;
2735
+ }, z__default.core.$strip>>;
2736
+ }, z__default.core.$strip>;
2737
+ readonly GlobalInfo: z__default.ZodObject<{
2738
+ id: z__default.ZodString;
2739
+ slug: z__default.ZodString;
2740
+ providerId: z__default.ZodString;
2741
+ directory: z__default.ZodString;
2742
+ parentId: z__default.ZodOptional<z__default.ZodString>;
2743
+ contextMode: z__default.ZodOptional<z__default.ZodEnum<{
2228
2744
  general: "general";
2229
2745
  coder: "coder";
2230
2746
  }>>;
2231
- summary: z.ZodOptional<z.ZodObject<{
2232
- additions: z.ZodNumber;
2233
- deletions: z.ZodNumber;
2234
- files: z.ZodNumber;
2235
- diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2236
- file: z.ZodString;
2237
- before: z.ZodString;
2238
- after: z.ZodString;
2239
- additions: z.ZodNumber;
2240
- deletions: z.ZodNumber;
2241
- status: z.ZodOptional<z.ZodEnum<{
2747
+ summary: z__default.ZodOptional<z__default.ZodObject<{
2748
+ additions: z__default.ZodNumber;
2749
+ deletions: z__default.ZodNumber;
2750
+ files: z__default.ZodNumber;
2751
+ diffs: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2752
+ file: z__default.ZodString;
2753
+ before: z__default.ZodString;
2754
+ after: z__default.ZodString;
2755
+ additions: z__default.ZodNumber;
2756
+ deletions: z__default.ZodNumber;
2757
+ status: z__default.ZodOptional<z__default.ZodEnum<{
2242
2758
  added: "added";
2243
- modified: "modified";
2244
2759
  deleted: "deleted";
2760
+ modified: "modified";
2245
2761
  renamed: "renamed";
2246
2762
  }>>;
2247
- oldPath: z.ZodOptional<z.ZodString>;
2248
- }, z.core.$strip>>>;
2249
- noSnapshotReason: z.ZodOptional<z.ZodEnum<{
2763
+ oldPath: z__default.ZodOptional<z__default.ZodString>;
2764
+ }, z__default.core.$strip>>>;
2765
+ noSnapshotReason: z__default.ZodOptional<z__default.ZodEnum<{
2250
2766
  "no-messages": "no-messages";
2251
2767
  "missing-from": "missing-from";
2252
2768
  "missing-to": "missing-to";
2253
2769
  }>>;
2254
- }, z.core.$strip>>;
2255
- share: z.ZodOptional<z.ZodObject<{
2256
- url: z.ZodString;
2257
- }, z.core.$strip>>;
2258
- title: z.ZodString;
2259
- version: z.ZodString;
2260
- time: z.ZodObject<{
2261
- created: z.ZodNumber;
2262
- updated: z.ZodNumber;
2263
- compacting: z.ZodOptional<z.ZodNumber>;
2264
- archived: z.ZodOptional<z.ZodNumber>;
2265
- }, z.core.$strip>;
2266
- permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
2267
- permission: z.ZodString;
2268
- pattern: z.ZodString;
2269
- action: z.ZodEnum<{
2770
+ }, z__default.core.$strip>>;
2771
+ share: z__default.ZodOptional<z__default.ZodObject<{
2772
+ url: z__default.ZodString;
2773
+ }, z__default.core.$strip>>;
2774
+ title: z__default.ZodString;
2775
+ version: z__default.ZodString;
2776
+ time: z__default.ZodObject<{
2777
+ created: z__default.ZodNumber;
2778
+ updated: z__default.ZodNumber;
2779
+ compacting: z__default.ZodOptional<z__default.ZodNumber>;
2780
+ archived: z__default.ZodOptional<z__default.ZodNumber>;
2781
+ }, z__default.core.$strip>;
2782
+ permission: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2783
+ permission: z__default.ZodString;
2784
+ pattern: z__default.ZodString;
2785
+ action: z__default.ZodEnum<{
2786
+ ask: "ask";
2270
2787
  allow: "allow";
2271
2788
  deny: "deny";
2272
- ask: "ask";
2273
2789
  }>;
2274
- }, z.core.$strip>>>;
2275
- revert: z.ZodOptional<z.ZodObject<{
2276
- messageId: z.ZodString;
2277
- partId: z.ZodOptional<z.ZodString>;
2278
- snapshot: z.ZodOptional<z.ZodString>;
2279
- diff: z.ZodOptional<z.ZodString>;
2280
- backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
2281
- original: z.ZodString;
2282
- backup: z.ZodOptional<z.ZodString>;
2283
- }, z.core.$strip>>>;
2284
- }, z.core.$strip>>;
2285
- project: z.ZodNullable<z.ZodObject<{
2286
- id: z.ZodString;
2287
- worktree: z.ZodString;
2288
- vcs: z.ZodOptional<z.ZodLiteral<"git">>;
2289
- name: z.ZodOptional<z.ZodString>;
2290
- icon: z.ZodOptional<z.ZodObject<{
2291
- url: z.ZodOptional<z.ZodString>;
2292
- override: z.ZodOptional<z.ZodString>;
2293
- color: z.ZodOptional<z.ZodString>;
2294
- }, z.core.$strip>>;
2295
- commands: z.ZodOptional<z.ZodObject<{
2296
- start: z.ZodOptional<z.ZodString>;
2297
- }, z.core.$strip>>;
2298
- time: z.ZodObject<{
2299
- created: z.ZodNumber;
2300
- updated: z.ZodNumber;
2301
- initialized: z.ZodOptional<z.ZodNumber>;
2302
- }, z.core.$strip>;
2303
- sandboxes: z.ZodArray<z.ZodString>;
2304
- }, z.core.$strip>>;
2305
- }, z.core.$strip>;
2306
- readonly ShareInfo: z.ZodObject<{
2307
- secret: z.ZodString;
2308
- url: z.ZodString;
2309
- }, z.core.$strip>;
2790
+ }, z__default.core.$strip>>>;
2791
+ revert: z__default.ZodOptional<z__default.ZodObject<{
2792
+ messageId: z__default.ZodString;
2793
+ partId: z__default.ZodOptional<z__default.ZodString>;
2794
+ snapshot: z__default.ZodOptional<z__default.ZodString>;
2795
+ diff: z__default.ZodOptional<z__default.ZodString>;
2796
+ backups: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
2797
+ original: z__default.ZodString;
2798
+ backup: z__default.ZodOptional<z__default.ZodString>;
2799
+ }, z__default.core.$strip>>>;
2800
+ }, z__default.core.$strip>>;
2801
+ project: z__default.ZodNullable<z__default.ZodObject<{
2802
+ id: z__default.ZodString;
2803
+ worktree: z__default.ZodString;
2804
+ vcs: z__default.ZodOptional<z__default.ZodLiteral<"git">>;
2805
+ name: z__default.ZodOptional<z__default.ZodString>;
2806
+ icon: z__default.ZodOptional<z__default.ZodObject<{
2807
+ url: z__default.ZodOptional<z__default.ZodString>;
2808
+ override: z__default.ZodOptional<z__default.ZodString>;
2809
+ color: z__default.ZodOptional<z__default.ZodString>;
2810
+ }, z__default.core.$strip>>;
2811
+ commands: z__default.ZodOptional<z__default.ZodObject<{
2812
+ start: z__default.ZodOptional<z__default.ZodString>;
2813
+ }, z__default.core.$strip>>;
2814
+ time: z__default.ZodObject<{
2815
+ created: z__default.ZodNumber;
2816
+ updated: z__default.ZodNumber;
2817
+ initialized: z__default.ZodOptional<z__default.ZodNumber>;
2818
+ }, z__default.core.$strip>;
2819
+ sandboxes: z__default.ZodArray<z__default.ZodString>;
2820
+ }, z__default.core.$strip>>;
2821
+ }, z__default.core.$strip>;
2822
+ readonly ShareInfo: z__default.ZodObject<{
2823
+ secret: z__default.ZodString;
2824
+ url: z__default.ZodString;
2825
+ }, z__default.core.$strip>;
2310
2826
  };
2311
2827
 
2312
2828
  type ContextMode = 'general' | 'coder';
@@ -2324,6 +2840,41 @@ declare const ScopeEnum: {
2324
2840
  type Scope = (typeof ScopeEnum)[keyof typeof ScopeEnum];
2325
2841
  declare const ScopeValues: Scope[];
2326
2842
  declare const DefaultScope: Scope;
2843
+ interface ProtocolMetadata {
2844
+ agentId?: string;
2845
+ workspace: string;
2846
+ name: string;
2847
+ userName: string;
2848
+ mission: string;
2849
+ preferredName?: string;
2850
+ coreRelationship?: string;
2851
+ coreValues?: string[];
2852
+ behaviorStyle?: string;
2853
+ decisionPrinciples?: string[];
2854
+ [key: string]: unknown;
2855
+ }
2856
+ interface ProtocolConfig {
2857
+ version: number;
2858
+ bootstrapSeededAt: string;
2859
+ setupCompletedAt: string;
2860
+ metadata: ProtocolMetadata;
2861
+ }
2862
+ interface IGlobal {
2863
+ Path: {
2864
+ home: string;
2865
+ data: string;
2866
+ cache: string;
2867
+ config: string;
2868
+ state: string;
2869
+ log: string;
2870
+ bin: string;
2871
+ temp?: string;
2872
+ };
2873
+ }
2874
+ interface IInstance {
2875
+ directory: string;
2876
+ worktree: string;
2877
+ }
2327
2878
 
2328
2879
  type ShellFunction = (input: Uint8Array) => Uint8Array;
2329
2880
  type ShellExpression = {
@@ -2412,6 +2963,239 @@ interface ITool {
2412
2963
  execute(args: Record<string, unknown>, context: ToolContext): Promise<string>;
2413
2964
  }
2414
2965
 
2966
+ declare const McpLocalConfigSchema: z__default.ZodObject<{
2967
+ type: z__default.ZodLiteral<"local">;
2968
+ command: z__default.ZodString;
2969
+ args: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
2970
+ env: z__default.ZodOptional<z__default.ZodRecord<z__default.ZodString, z__default.ZodString>>;
2971
+ enabled: z__default.ZodOptional<z__default.ZodBoolean>;
2972
+ timeout: z__default.ZodOptional<z__default.ZodNumber>;
2973
+ description: z__default.ZodOptional<z__default.ZodString>;
2974
+ scope: z__default.ZodOptional<z__default.ZodEnum<{
2975
+ all: "all";
2976
+ general: "general";
2977
+ coder: "coder";
2978
+ }>>;
2979
+ }, z__default.core.$strict>;
2980
+ type McpLocalConfig = z__default.infer<typeof McpLocalConfigSchema>;
2981
+ declare const McpOAuthConfigSchema: z__default.ZodObject<{
2982
+ clientId: z__default.ZodOptional<z__default.ZodString>;
2983
+ clientSecret: z__default.ZodOptional<z__default.ZodString>;
2984
+ scope: z__default.ZodOptional<z__default.ZodString>;
2985
+ }, z__default.core.$strict>;
2986
+ type McpOAuthConfig = z__default.infer<typeof McpOAuthConfigSchema>;
2987
+ declare const McpRemoteConfigSchema: z__default.ZodObject<{
2988
+ type: z__default.ZodLiteral<"remote">;
2989
+ url: z__default.ZodString;
2990
+ enabled: z__default.ZodOptional<z__default.ZodBoolean>;
2991
+ headers: z__default.ZodOptional<z__default.ZodRecord<z__default.ZodString, z__default.ZodString>>;
2992
+ oauth: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodObject<{
2993
+ clientId: z__default.ZodOptional<z__default.ZodString>;
2994
+ clientSecret: z__default.ZodOptional<z__default.ZodString>;
2995
+ scope: z__default.ZodOptional<z__default.ZodString>;
2996
+ }, z__default.core.$strict>, z__default.ZodLiteral<false>]>>;
2997
+ timeout: z__default.ZodOptional<z__default.ZodNumber>;
2998
+ description: z__default.ZodOptional<z__default.ZodString>;
2999
+ scope: z__default.ZodOptional<z__default.ZodEnum<{
3000
+ all: "all";
3001
+ general: "general";
3002
+ coder: "coder";
3003
+ }>>;
3004
+ }, z__default.core.$strict>;
3005
+ type McpRemoteConfig = z__default.infer<typeof McpRemoteConfigSchema>;
3006
+ declare const McpSchema: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
3007
+ type: z__default.ZodLiteral<"local">;
3008
+ command: z__default.ZodString;
3009
+ args: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
3010
+ env: z__default.ZodOptional<z__default.ZodRecord<z__default.ZodString, z__default.ZodString>>;
3011
+ enabled: z__default.ZodOptional<z__default.ZodBoolean>;
3012
+ timeout: z__default.ZodOptional<z__default.ZodNumber>;
3013
+ description: z__default.ZodOptional<z__default.ZodString>;
3014
+ scope: z__default.ZodOptional<z__default.ZodEnum<{
3015
+ all: "all";
3016
+ general: "general";
3017
+ coder: "coder";
3018
+ }>>;
3019
+ }, z__default.core.$strict>, z__default.ZodObject<{
3020
+ type: z__default.ZodLiteral<"remote">;
3021
+ url: z__default.ZodString;
3022
+ enabled: z__default.ZodOptional<z__default.ZodBoolean>;
3023
+ headers: z__default.ZodOptional<z__default.ZodRecord<z__default.ZodString, z__default.ZodString>>;
3024
+ oauth: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodObject<{
3025
+ clientId: z__default.ZodOptional<z__default.ZodString>;
3026
+ clientSecret: z__default.ZodOptional<z__default.ZodString>;
3027
+ scope: z__default.ZodOptional<z__default.ZodString>;
3028
+ }, z__default.core.$strict>, z__default.ZodLiteral<false>]>>;
3029
+ timeout: z__default.ZodOptional<z__default.ZodNumber>;
3030
+ description: z__default.ZodOptional<z__default.ZodString>;
3031
+ scope: z__default.ZodOptional<z__default.ZodEnum<{
3032
+ all: "all";
3033
+ general: "general";
3034
+ coder: "coder";
3035
+ }>>;
3036
+ }, z__default.core.$strict>], "type">;
3037
+ type Mcp = z__default.infer<typeof McpSchema>;
3038
+
3039
+ declare const CommandConfigInfoSchema: z__default.ZodObject<{
3040
+ template: z__default.ZodString;
3041
+ description: z__default.ZodOptional<z__default.ZodString>;
3042
+ agent: z__default.ZodOptional<z__default.ZodString>;
3043
+ model: z__default.ZodOptional<z__default.ZodString>;
3044
+ subtask: z__default.ZodOptional<z__default.ZodBoolean>;
3045
+ scope: z__default.ZodOptional<z__default.ZodEnum<{
3046
+ all: "all";
3047
+ general: "general";
3048
+ coder: "coder";
3049
+ }>>;
3050
+ }, z__default.core.$strip>;
3051
+ type CommandConfigInfo = z__default.infer<typeof CommandConfigInfoSchema>;
3052
+ declare const CommandSourceSchema: z__default.ZodEnum<{
3053
+ skill: "skill";
3054
+ command: "command";
3055
+ mcp: "mcp";
3056
+ }>;
3057
+ type CommandSource = z__default.infer<typeof CommandSourceSchema>;
3058
+ declare const CommandMetadataSchema: z__default.ZodObject<{
3059
+ name: z__default.ZodString;
3060
+ description: z__default.ZodString;
3061
+ scope: z__default.ZodOptional<z__default.ZodEnum<{
3062
+ all: "all";
3063
+ general: "general";
3064
+ coder: "coder";
3065
+ }>>;
3066
+ agent: z__default.ZodOptional<z__default.ZodString>;
3067
+ model: z__default.ZodOptional<z__default.ZodString>;
3068
+ hints: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
3069
+ commandType: z__default.ZodOptional<z__default.ZodEnum<{
3070
+ prompt: "prompt";
3071
+ local: "local";
3072
+ }>>;
3073
+ hidden: z__default.ZodOptional<z__default.ZodBoolean>;
3074
+ }, z__default.core.$strip>;
3075
+ type CommandMetadata = z__default.infer<typeof CommandMetadataSchema>;
3076
+ declare const CommandArgumentsSchema: z__default.ZodUnion<readonly [z__default.ZodString, z__default.ZodRecord<z__default.ZodString, z__default.ZodUnknown>]>;
3077
+ type CommandArguments = z__default.infer<typeof CommandArgumentsSchema>;
3078
+ declare const CommandPromptPartSchema: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
3079
+ type: z__default.ZodLiteral<"text">;
3080
+ text: z__default.ZodString;
3081
+ }, z__default.core.$strip>, z__default.ZodObject<{
3082
+ type: z__default.ZodLiteral<"image">;
3083
+ source: z__default.ZodObject<{
3084
+ type: z__default.ZodEnum<{
3085
+ url: "url";
3086
+ base64: "base64";
3087
+ }>;
3088
+ mime: z__default.ZodString;
3089
+ data: z__default.ZodString;
3090
+ }, z__default.core.$strip>;
3091
+ }, z__default.core.$strip>, z__default.ZodObject<{
3092
+ type: z__default.ZodLiteral<"file">;
3093
+ url: z__default.ZodString;
3094
+ filename: z__default.ZodString;
3095
+ mime: z__default.ZodOptional<z__default.ZodString>;
3096
+ }, z__default.core.$strip>], "type">;
3097
+ type CommandPromptPart = z__default.infer<typeof CommandPromptPartSchema>;
3098
+ declare const CommandExecutionContextSchema: z__default.ZodObject<{
3099
+ sessionId: z__default.ZodString;
3100
+ directory: z__default.ZodString;
3101
+ model: z__default.ZodOptional<z__default.ZodString>;
3102
+ agent: z__default.ZodOptional<z__default.ZodString>;
3103
+ arguments: z__default.ZodUnion<readonly [z__default.ZodString, z__default.ZodRecord<z__default.ZodString, z__default.ZodUnknown>]>;
3104
+ }, z__default.core.$strip>;
3105
+ type CommandExecutionContext = z__default.infer<typeof CommandExecutionContextSchema>;
3106
+ declare const CommandExecuteResultMetadataSchema: z__default.ZodRecord<z__default.ZodString, z__default.ZodUnknown>;
3107
+ type CommandExecuteResultMetadata = z__default.infer<typeof CommandExecuteResultMetadataSchema>;
3108
+ declare const CommandExecuteResultSchema: z__default.ZodObject<{
3109
+ title: z__default.ZodString;
3110
+ metadata: z__default.ZodRecord<z__default.ZodString, z__default.ZodUnknown>;
3111
+ output: z__default.ZodString;
3112
+ parts: z__default.ZodOptional<z__default.ZodArray<z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
3113
+ type: z__default.ZodLiteral<"text">;
3114
+ text: z__default.ZodString;
3115
+ }, z__default.core.$strip>, z__default.ZodObject<{
3116
+ type: z__default.ZodLiteral<"image">;
3117
+ source: z__default.ZodObject<{
3118
+ type: z__default.ZodEnum<{
3119
+ url: "url";
3120
+ base64: "base64";
3121
+ }>;
3122
+ mime: z__default.ZodString;
3123
+ data: z__default.ZodString;
3124
+ }, z__default.core.$strip>;
3125
+ }, z__default.core.$strip>, z__default.ZodObject<{
3126
+ type: z__default.ZodLiteral<"file">;
3127
+ url: z__default.ZodString;
3128
+ filename: z__default.ZodString;
3129
+ mime: z__default.ZodOptional<z__default.ZodString>;
3130
+ }, z__default.core.$strip>], "type">>>;
3131
+ success: z__default.ZodBoolean;
3132
+ error: z__default.ZodOptional<z__default.ZodString>;
3133
+ }, z__default.core.$strip>;
3134
+ type CommandExecuteResult = z__default.infer<typeof CommandExecuteResultSchema>;
3135
+ declare const CommandInitContextSchema: z__default.ZodObject<{
3136
+ agent: z__default.ZodOptional<z__default.ZodObject<{
3137
+ name: z__default.ZodString;
3138
+ model: z__default.ZodOptional<z__default.ZodString>;
3139
+ }, z__default.core.$strip>>;
3140
+ }, z__default.core.$strip>;
3141
+ type CommandInitContext = z__default.infer<typeof CommandInitContextSchema>;
3142
+ declare const CommandInitResultSchema: z__default.ZodObject<{
3143
+ isEnabled: z__default.ZodOptional<z__default.ZodBoolean>;
3144
+ }, z__default.core.$strip>;
3145
+ type CommandInitResult = z__default.infer<typeof CommandInitResultSchema>;
3146
+ type CommandExecuteFn = (args: CommandArguments, context: CommandExecutionContext) => Promise<CommandExecuteResult>;
3147
+ type CommandIsEnabledFn = () => boolean | Promise<boolean>;
3148
+ type CommandInitFn = (context?: CommandInitContext) => Promise<CommandInitResult>;
3149
+ declare const CommandInfoSchema: z__default.ZodObject<{
3150
+ name: z__default.ZodString;
3151
+ description: z__default.ZodOptional<z__default.ZodString>;
3152
+ agent: z__default.ZodOptional<z__default.ZodString>;
3153
+ model: z__default.ZodOptional<z__default.ZodString>;
3154
+ source: z__default.ZodOptional<z__default.ZodEnum<{
3155
+ skill: "skill";
3156
+ command: "command";
3157
+ mcp: "mcp";
3158
+ }>>;
3159
+ subtask: z__default.ZodOptional<z__default.ZodBoolean>;
3160
+ hints: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
3161
+ commandType: z__default.ZodOptional<z__default.ZodEnum<{
3162
+ prompt: "prompt";
3163
+ local: "local";
3164
+ }>>;
3165
+ hidden: z__default.ZodOptional<z__default.ZodBoolean>;
3166
+ isEnabled: z__default.ZodOptional<z__default.ZodCustom<CommandIsEnabledFn, CommandIsEnabledFn>>;
3167
+ execute: z__default.ZodOptional<z__default.ZodCustom<CommandExecuteFn, CommandExecuteFn>>;
3168
+ }, z__default.core.$strip>;
3169
+ type CommandInfo = z__default.infer<typeof CommandInfoSchema>;
3170
+ interface CommandDefinition extends Omit<CommandInfo, 'execute'> {
3171
+ template?: string;
3172
+ scope?: 'general' | 'coder' | 'all';
3173
+ execute: CommandExecuteFn;
3174
+ init?: CommandInitFn;
3175
+ }
3176
+
3177
+ type ModelIdentifier = AgentModel;
3178
+ type EmbeddingModelRef = string | ModelIdentifier | EmbeddingModelV3;
3179
+ type LanguageModelRef = string | ModelIdentifier | LanguageModelV3;
3180
+ type RerankingModelRef = string | ModelIdentifier | RerankingModelV3;
3181
+ type ModelRef = EmbeddingModelRef | LanguageModelRef | RerankingModelRef;
3182
+ declare const UsageCacheSchema: z__default.ZodObject<{
3183
+ read: z__default.ZodNumber;
3184
+ write: z__default.ZodNumber;
3185
+ }, z__default.core.$strip>;
3186
+ type UsageCache = z__default.infer<typeof UsageCacheSchema>;
3187
+ declare const UsageSchema: z__default.ZodObject<{
3188
+ total: z__default.ZodOptional<z__default.ZodNumber>;
3189
+ input: z__default.ZodNumber;
3190
+ output: z__default.ZodNumber;
3191
+ reasoning: z__default.ZodNumber;
3192
+ cache: z__default.ZodObject<{
3193
+ read: z__default.ZodNumber;
3194
+ write: z__default.ZodNumber;
3195
+ }, z__default.core.$strip>;
3196
+ }, z__default.core.$strip>;
3197
+ type Usage = z__default.infer<typeof UsageSchema>;
3198
+
2415
3199
  interface EmbeddingConfig {
2416
3200
  provider: 'easbot-local' | 'local' | 'openai' | 'ollama';
2417
3201
  model: string;
@@ -2484,8 +3268,8 @@ interface MemoryKnowledgeConfig extends BaseKnowledgeConfig {
2484
3268
  shortTermMaxRounds?: number;
2485
3269
  }
2486
3270
  interface MemoryKnowledgeConfigWithModels extends MemoryKnowledgeConfig {
2487
- embeddingLlm?: EmbeddingModel;
2488
- graphLlm?: LanguageModel;
3271
+ embeddingLlm?: EmbeddingModelRef;
3272
+ graphLlm?: LanguageModelRef;
2489
3273
  }
2490
3274
  type NoteKnowledgeSource = string;
2491
3275
  interface NoteKnowledgeConfig extends BaseKnowledgeConfig {
@@ -2500,9 +3284,9 @@ interface NoteKnowledgeConfig extends BaseKnowledgeConfig {
2500
3284
  rerank?: RerankLlmConfig;
2501
3285
  }
2502
3286
  interface NoteKnowledgeConfigWithModels extends NoteKnowledgeConfig {
2503
- embeddingLlm?: EmbeddingModel;
2504
- graphLlm?: LanguageModel;
2505
- rerankLlm?: RerankingModel;
3287
+ embeddingLlm?: EmbeddingModelRef;
3288
+ graphLlm?: LanguageModelRef;
3289
+ rerankLlm?: RerankingModelRef;
2506
3290
  }
2507
3291
  interface CodebaseKnowledgeConfig extends BaseKnowledgeConfig {
2508
3292
  parser: ParserConfig;
@@ -2510,8 +3294,8 @@ interface CodebaseKnowledgeConfig extends BaseKnowledgeConfig {
2510
3294
  sync?: SyncConfig;
2511
3295
  }
2512
3296
  interface CodebaseKnowledgeConfigWithModels extends CodebaseKnowledgeConfig {
2513
- embeddingLlm: EmbeddingModel;
2514
- graphLlm?: LanguageModel;
3297
+ embeddingLlm: EmbeddingModelRef;
3298
+ evaluationLlm?: LanguageModelRef;
2515
3299
  }
2516
3300
  type KnowledgeSearchSource = 'vector' | 'fts' | 'graph' | 'hybrid' | 'reranked';
2517
3301
  interface KnowledgeSearchOptions {
@@ -2637,15 +3421,17 @@ interface KnowledgeDoctorResult {
2637
3421
  }
2638
3422
  interface KnowledgeLlmCapabilities {
2639
3423
  embedding?: boolean;
2640
- graphLlm?: boolean;
2641
- rerankLlm?: boolean;
3424
+ evaluation?: boolean;
3425
+ rerank?: boolean;
3426
+ language?: boolean;
2642
3427
  }
2643
3428
  interface KnowledgeLlmStatus {
2644
3429
  initialized: boolean;
2645
3430
  capabilities: KnowledgeLlmCapabilities;
2646
3431
  embeddingModel?: string;
2647
- graphModel?: string;
3432
+ evaluationModel?: string;
2648
3433
  rerankModel?: string;
3434
+ languageModel?: string;
2649
3435
  providerId?: string;
2650
3436
  }
2651
3437
  interface KnowledgeStatus {
@@ -2700,6 +3486,13 @@ interface SubAgentResult extends AgentResult {
2700
3486
  userMessage?: unknown;
2701
3487
  assistantMessage?: unknown;
2702
3488
  }
3489
+ interface SubAgentEvent {
3490
+ type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
3491
+ instanceId: string;
3492
+ data?: unknown;
3493
+ error?: Error;
3494
+ timestamp: number;
3495
+ }
2703
3496
  interface ISubAgentRunner {
2704
3497
  run(input: SubAgentInput): Promise<SubAgentResult>;
2705
3498
  }
@@ -2733,20 +3526,6 @@ interface SubAgentInstance {
2733
3526
  lastActiveAt: number;
2734
3527
  error?: string;
2735
3528
  }
2736
- interface SubAgentEvent {
2737
- type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
2738
- instanceId: string;
2739
- data?: unknown;
2740
- error?: Error;
2741
- timestamp: number;
2742
- }
2743
- interface SubAgentEvent {
2744
- type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
2745
- instanceId: string;
2746
- data?: unknown;
2747
- error?: Error;
2748
- timestamp: number;
2749
- }
2750
3529
  interface SubAgentExecuteOptions {
2751
3530
  onMessage?: (message: AgentMessage) => Promise<void> | void;
2752
3531
  }
@@ -2759,11 +3538,17 @@ interface SubAgentHandler {
2759
3538
  checkHealth?(): Promise<boolean>;
2760
3539
  }
2761
3540
 
2762
- declare enum ChannelType {
2763
- STDIO = "stdio",
2764
- HTTP = "http",
2765
- WS = "websocket"
2766
- }
3541
+ declare const ChannelType: {
3542
+ readonly STDIO: "stdio";
3543
+ readonly HTTP: "http";
3544
+ readonly WS: "websocket";
3545
+ };
3546
+ type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
3547
+ declare const ACPChannelTypeSchema: z$1.ZodEnum<{
3548
+ http: "http";
3549
+ websocket: "websocket";
3550
+ stdio: "stdio";
3551
+ }>;
2767
3552
  declare const ACPStdioConnectionConfigSchema: z$1.ZodObject<{
2768
3553
  command: z$1.ZodString;
2769
3554
  args: z$1.ZodArray<z$1.ZodString>;
@@ -2807,16 +3592,16 @@ declare const ACPAgentRuntimeConfigSchema: z$1.ZodObject<{
2807
3592
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2808
3593
  }, z$1.core.$strip>>;
2809
3594
  }, z$1.core.$strip>;
2810
- declare const ACPServerConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
3595
+ declare const ACPServerConfigSchema: z$1.ZodObject<{
2811
3596
  directory: z$1.ZodDefault<z$1.ZodString>;
2812
3597
  enabled: z$1.ZodDefault<z$1.ZodBoolean>;
2813
- channel: z$1.ZodDefault<z$1.ZodPreprocess<z$1.ZodEnum<{
3598
+ channel: z$1.ZodDefault<z$1.ZodEnum<{
2814
3599
  http: "http";
2815
3600
  websocket: "websocket";
2816
3601
  stdio: "stdio";
2817
- }>>>;
3602
+ }>>;
2818
3603
  port: z$1.ZodDefault<z$1.ZodNumber>;
2819
- hostname: z$1.ZodDefault<z$1.ZodString>;
3604
+ hostname: z$1.ZodDefault<z$1.ZodCustomStringFormat<"hostname">>;
2820
3605
  timeout: z$1.ZodDefault<z$1.ZodNumber>;
2821
3606
  name: z$1.ZodOptional<z$1.ZodString>;
2822
3607
  agentId: z$1.ZodOptional<z$1.ZodString>;
@@ -2842,70 +3627,8 @@ declare const ACPServerConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
2842
3627
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2843
3628
  }, z$1.core.$strip>>;
2844
3629
  }, z$1.core.$strip>>;
2845
- }, z$1.core.$strip>, z$1.ZodTransform<{
2846
- channel: ChannelType;
2847
- directory: string;
2848
- enabled: boolean;
2849
- port: number;
2850
- hostname: string;
2851
- timeout: number;
2852
- name?: string | undefined;
2853
- agentId?: string | undefined;
2854
- stdio?: {
2855
- command: string;
2856
- args: string[];
2857
- } | undefined;
2858
- http?: {
2859
- baseUrl: string;
2860
- timeout: number;
2861
- } | undefined;
2862
- ws?: {
2863
- url: string;
2864
- timeout: number;
2865
- batchSize: number;
2866
- batchInterval: number;
2867
- heartbeatInterval: number;
2868
- } | undefined;
2869
- agent?: {
2870
- agent?: string | undefined;
2871
- model?: {
2872
- id: string;
2873
- options?: Record<string, unknown> | undefined;
2874
- } | undefined;
2875
- } | undefined;
2876
- }, {
2877
- directory: string;
2878
- enabled: boolean;
2879
- channel: "http" | "websocket" | "stdio";
2880
- port: number;
2881
- hostname: string;
2882
- timeout: number;
2883
- name?: string | undefined;
2884
- agentId?: string | undefined;
2885
- stdio?: {
2886
- command: string;
2887
- args: string[];
2888
- } | undefined;
2889
- http?: {
2890
- baseUrl: string;
2891
- timeout: number;
2892
- } | undefined;
2893
- ws?: {
2894
- url: string;
2895
- timeout: number;
2896
- batchSize: number;
2897
- batchInterval: number;
2898
- heartbeatInterval: number;
2899
- } | undefined;
2900
- agent?: {
2901
- agent?: string | undefined;
2902
- model?: {
2903
- id: string;
2904
- options?: Record<string, unknown> | undefined;
2905
- } | undefined;
2906
- } | undefined;
2907
- }>>;
2908
- declare const ACPClientConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
3630
+ }, z$1.core.$strip>;
3631
+ declare const ACPClientConfigSchema: z$1.ZodObject<{
2909
3632
  id: z$1.ZodString;
2910
3633
  type: z$1.ZodEnum<{
2911
3634
  custom: "custom";
@@ -2937,59 +3660,9 @@ declare const ACPClientConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
2937
3660
  }, z$1.core.$strip>;
2938
3661
  autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
2939
3662
  priority: z$1.ZodDefault<z$1.ZodNumber>;
2940
- }, z$1.core.$strip>, z$1.ZodTransform<{
2941
- channel: ChannelType;
2942
- id: string;
2943
- type: "custom" | "easbot";
2944
- connection: {
2945
- stdio?: {
2946
- command: string;
2947
- args: string[];
2948
- } | undefined;
2949
- http?: {
2950
- baseUrl: string;
2951
- timeout: number;
2952
- } | undefined;
2953
- ws?: {
2954
- url: string;
2955
- timeout: number;
2956
- batchSize: number;
2957
- batchInterval: number;
2958
- heartbeatInterval: number;
2959
- } | undefined;
2960
- };
2961
- autoConnect: boolean;
2962
- priority: number;
2963
- name?: string | undefined;
2964
- agentId?: string | undefined;
2965
- }, {
2966
- id: string;
2967
- type: "custom" | "easbot";
2968
- connection: {
2969
- stdio?: {
2970
- command: string;
2971
- args: string[];
2972
- } | undefined;
2973
- http?: {
2974
- baseUrl: string;
2975
- timeout: number;
2976
- } | undefined;
2977
- ws?: {
2978
- url: string;
2979
- timeout: number;
2980
- batchSize: number;
2981
- batchInterval: number;
2982
- heartbeatInterval: number;
2983
- } | undefined;
2984
- };
2985
- autoConnect: boolean;
2986
- priority: number;
2987
- name?: string | undefined;
2988
- agentId?: string | undefined;
2989
- channel?: "http" | "websocket" | "stdio" | undefined;
2990
- }>>;
3663
+ }, z$1.core.$strip>;
2991
3664
  declare const ACPClientsConfigSchema: z$1.ZodObject<{
2992
- clients: z$1.ZodArray<z$1.ZodPipe<z$1.ZodObject<{
3665
+ clients: z$1.ZodArray<z$1.ZodObject<{
2993
3666
  id: z$1.ZodString;
2994
3667
  type: z$1.ZodEnum<{
2995
3668
  custom: "custom";
@@ -3021,70 +3694,20 @@ declare const ACPClientsConfigSchema: z$1.ZodObject<{
3021
3694
  }, z$1.core.$strip>;
3022
3695
  autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
3023
3696
  priority: z$1.ZodDefault<z$1.ZodNumber>;
3024
- }, z$1.core.$strip>, z$1.ZodTransform<{
3025
- channel: ChannelType;
3026
- id: string;
3027
- type: "custom" | "easbot";
3028
- connection: {
3029
- stdio?: {
3030
- command: string;
3031
- args: string[];
3032
- } | undefined;
3033
- http?: {
3034
- baseUrl: string;
3035
- timeout: number;
3036
- } | undefined;
3037
- ws?: {
3038
- url: string;
3039
- timeout: number;
3040
- batchSize: number;
3041
- batchInterval: number;
3042
- heartbeatInterval: number;
3043
- } | undefined;
3044
- };
3045
- autoConnect: boolean;
3046
- priority: number;
3047
- name?: string | undefined;
3048
- agentId?: string | undefined;
3049
- }, {
3050
- id: string;
3051
- type: "custom" | "easbot";
3052
- connection: {
3053
- stdio?: {
3054
- command: string;
3055
- args: string[];
3056
- } | undefined;
3057
- http?: {
3058
- baseUrl: string;
3059
- timeout: number;
3060
- } | undefined;
3061
- ws?: {
3062
- url: string;
3063
- timeout: number;
3064
- batchSize: number;
3065
- batchInterval: number;
3066
- heartbeatInterval: number;
3067
- } | undefined;
3068
- };
3069
- autoConnect: boolean;
3070
- priority: number;
3071
- name?: string | undefined;
3072
- agentId?: string | undefined;
3073
- channel?: "http" | "websocket" | "stdio" | undefined;
3074
- }>>>;
3697
+ }, z$1.core.$strip>>;
3075
3698
  defaultClientId: z$1.ZodOptional<z$1.ZodString>;
3076
3699
  }, z$1.core.$strip>;
3077
3700
  declare const ACPInfoACPServerConfigSchema: z$1.ZodObject<{
3078
- server: z$1.ZodPipe<z$1.ZodObject<{
3701
+ server: z$1.ZodObject<{
3079
3702
  directory: z$1.ZodDefault<z$1.ZodString>;
3080
3703
  enabled: z$1.ZodDefault<z$1.ZodBoolean>;
3081
- channel: z$1.ZodDefault<z$1.ZodPreprocess<z$1.ZodEnum<{
3704
+ channel: z$1.ZodDefault<z$1.ZodEnum<{
3082
3705
  http: "http";
3083
3706
  websocket: "websocket";
3084
3707
  stdio: "stdio";
3085
- }>>>;
3708
+ }>>;
3086
3709
  port: z$1.ZodDefault<z$1.ZodNumber>;
3087
- hostname: z$1.ZodDefault<z$1.ZodString>;
3710
+ hostname: z$1.ZodDefault<z$1.ZodCustomStringFormat<"hostname">>;
3088
3711
  timeout: z$1.ZodDefault<z$1.ZodNumber>;
3089
3712
  name: z$1.ZodOptional<z$1.ZodString>;
3090
3713
  agentId: z$1.ZodOptional<z$1.ZodString>;
@@ -3110,73 +3733,11 @@ declare const ACPInfoACPServerConfigSchema: z$1.ZodObject<{
3110
3733
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3111
3734
  }, z$1.core.$strip>>;
3112
3735
  }, z$1.core.$strip>>;
3113
- }, z$1.core.$strip>, z$1.ZodTransform<{
3114
- channel: ChannelType;
3115
- directory: string;
3116
- enabled: boolean;
3117
- port: number;
3118
- hostname: string;
3119
- timeout: number;
3120
- name?: string | undefined;
3121
- agentId?: string | undefined;
3122
- stdio?: {
3123
- command: string;
3124
- args: string[];
3125
- } | undefined;
3126
- http?: {
3127
- baseUrl: string;
3128
- timeout: number;
3129
- } | undefined;
3130
- ws?: {
3131
- url: string;
3132
- timeout: number;
3133
- batchSize: number;
3134
- batchInterval: number;
3135
- heartbeatInterval: number;
3136
- } | undefined;
3137
- agent?: {
3138
- agent?: string | undefined;
3139
- model?: {
3140
- id: string;
3141
- options?: Record<string, unknown> | undefined;
3142
- } | undefined;
3143
- } | undefined;
3144
- }, {
3145
- directory: string;
3146
- enabled: boolean;
3147
- channel: "http" | "websocket" | "stdio";
3148
- port: number;
3149
- hostname: string;
3150
- timeout: number;
3151
- name?: string | undefined;
3152
- agentId?: string | undefined;
3153
- stdio?: {
3154
- command: string;
3155
- args: string[];
3156
- } | undefined;
3157
- http?: {
3158
- baseUrl: string;
3159
- timeout: number;
3160
- } | undefined;
3161
- ws?: {
3162
- url: string;
3163
- timeout: number;
3164
- batchSize: number;
3165
- batchInterval: number;
3166
- heartbeatInterval: number;
3167
- } | undefined;
3168
- agent?: {
3169
- agent?: string | undefined;
3170
- model?: {
3171
- id: string;
3172
- options?: Record<string, unknown> | undefined;
3173
- } | undefined;
3174
- } | undefined;
3175
- }>>;
3736
+ }, z$1.core.$strip>;
3176
3737
  }, z$1.core.$strip>;
3177
3738
  declare const ACPInfoACPClientsConfigSchema: z$1.ZodObject<{
3178
3739
  clients: z$1.ZodObject<{
3179
- clients: z$1.ZodArray<z$1.ZodPipe<z$1.ZodObject<{
3740
+ clients: z$1.ZodArray<z$1.ZodObject<{
3180
3741
  id: z$1.ZodString;
3181
3742
  type: z$1.ZodEnum<{
3182
3743
  custom: "custom";
@@ -3208,57 +3769,7 @@ declare const ACPInfoACPClientsConfigSchema: z$1.ZodObject<{
3208
3769
  }, z$1.core.$strip>;
3209
3770
  autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
3210
3771
  priority: z$1.ZodDefault<z$1.ZodNumber>;
3211
- }, z$1.core.$strip>, z$1.ZodTransform<{
3212
- channel: ChannelType;
3213
- id: string;
3214
- type: "custom" | "easbot";
3215
- connection: {
3216
- stdio?: {
3217
- command: string;
3218
- args: string[];
3219
- } | undefined;
3220
- http?: {
3221
- baseUrl: string;
3222
- timeout: number;
3223
- } | undefined;
3224
- ws?: {
3225
- url: string;
3226
- timeout: number;
3227
- batchSize: number;
3228
- batchInterval: number;
3229
- heartbeatInterval: number;
3230
- } | undefined;
3231
- };
3232
- autoConnect: boolean;
3233
- priority: number;
3234
- name?: string | undefined;
3235
- agentId?: string | undefined;
3236
- }, {
3237
- id: string;
3238
- type: "custom" | "easbot";
3239
- connection: {
3240
- stdio?: {
3241
- command: string;
3242
- args: string[];
3243
- } | undefined;
3244
- http?: {
3245
- baseUrl: string;
3246
- timeout: number;
3247
- } | undefined;
3248
- ws?: {
3249
- url: string;
3250
- timeout: number;
3251
- batchSize: number;
3252
- batchInterval: number;
3253
- heartbeatInterval: number;
3254
- } | undefined;
3255
- };
3256
- autoConnect: boolean;
3257
- priority: number;
3258
- name?: string | undefined;
3259
- agentId?: string | undefined;
3260
- channel?: "http" | "websocket" | "stdio" | undefined;
3261
- }>>>;
3772
+ }, z$1.core.$strip>>;
3262
3773
  defaultClientId: z$1.ZodOptional<z$1.ZodString>;
3263
3774
  }, z$1.core.$strip>;
3264
3775
  }, z$1.core.$strip>;
@@ -3266,22 +3777,17 @@ declare const ACPClientRegisterConfigSchema: z$1.ZodOptional<z$1.ZodObject<{
3266
3777
  autoRegister: z$1.ZodDefault<z$1.ZodBoolean>;
3267
3778
  gatewayUrl: z$1.ZodOptional<z$1.ZodURL>;
3268
3779
  }, z$1.core.$strip>>;
3269
- type ACPInfoACPConfigInput = {
3270
- server: ACPServerConfig;
3271
- clients?: z$1.infer<typeof ACPClientsConfigSchema>;
3272
- client?: z$1.infer<typeof ACPClientRegisterConfigSchema>;
3273
- };
3274
- declare const ACPInfoACPConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
3275
- server: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodObject<{
3780
+ declare const ACPInfoACPConfigSchema: z$1.ZodObject<{
3781
+ server: z$1.ZodOptional<z$1.ZodObject<{
3276
3782
  directory: z$1.ZodDefault<z$1.ZodString>;
3277
3783
  enabled: z$1.ZodDefault<z$1.ZodBoolean>;
3278
- channel: z$1.ZodDefault<z$1.ZodPreprocess<z$1.ZodEnum<{
3784
+ channel: z$1.ZodDefault<z$1.ZodEnum<{
3279
3785
  http: "http";
3280
3786
  websocket: "websocket";
3281
3787
  stdio: "stdio";
3282
- }>>>;
3788
+ }>>;
3283
3789
  port: z$1.ZodDefault<z$1.ZodNumber>;
3284
- hostname: z$1.ZodDefault<z$1.ZodString>;
3790
+ hostname: z$1.ZodDefault<z$1.ZodCustomStringFormat<"hostname">>;
3285
3791
  timeout: z$1.ZodDefault<z$1.ZodNumber>;
3286
3792
  name: z$1.ZodOptional<z$1.ZodString>;
3287
3793
  agentId: z$1.ZodOptional<z$1.ZodString>;
@@ -3307,71 +3813,9 @@ declare const ACPInfoACPConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
3307
3813
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3308
3814
  }, z$1.core.$strip>>;
3309
3815
  }, z$1.core.$strip>>;
3310
- }, z$1.core.$strip>, z$1.ZodTransform<{
3311
- channel: ChannelType;
3312
- directory: string;
3313
- enabled: boolean;
3314
- port: number;
3315
- hostname: string;
3316
- timeout: number;
3317
- name?: string | undefined;
3318
- agentId?: string | undefined;
3319
- stdio?: {
3320
- command: string;
3321
- args: string[];
3322
- } | undefined;
3323
- http?: {
3324
- baseUrl: string;
3325
- timeout: number;
3326
- } | undefined;
3327
- ws?: {
3328
- url: string;
3329
- timeout: number;
3330
- batchSize: number;
3331
- batchInterval: number;
3332
- heartbeatInterval: number;
3333
- } | undefined;
3334
- agent?: {
3335
- agent?: string | undefined;
3336
- model?: {
3337
- id: string;
3338
- options?: Record<string, unknown> | undefined;
3339
- } | undefined;
3340
- } | undefined;
3341
- }, {
3342
- directory: string;
3343
- enabled: boolean;
3344
- channel: "http" | "websocket" | "stdio";
3345
- port: number;
3346
- hostname: string;
3347
- timeout: number;
3348
- name?: string | undefined;
3349
- agentId?: string | undefined;
3350
- stdio?: {
3351
- command: string;
3352
- args: string[];
3353
- } | undefined;
3354
- http?: {
3355
- baseUrl: string;
3356
- timeout: number;
3357
- } | undefined;
3358
- ws?: {
3359
- url: string;
3360
- timeout: number;
3361
- batchSize: number;
3362
- batchInterval: number;
3363
- heartbeatInterval: number;
3364
- } | undefined;
3365
- agent?: {
3366
- agent?: string | undefined;
3367
- model?: {
3368
- id: string;
3369
- options?: Record<string, unknown> | undefined;
3370
- } | undefined;
3371
- } | undefined;
3372
- }>>>;
3816
+ }, z$1.core.$strip>>;
3373
3817
  clients: z$1.ZodOptional<z$1.ZodObject<{
3374
- clients: z$1.ZodArray<z$1.ZodPipe<z$1.ZodObject<{
3818
+ clients: z$1.ZodArray<z$1.ZodObject<{
3375
3819
  id: z$1.ZodString;
3376
3820
  type: z$1.ZodEnum<{
3377
3821
  custom: "custom";
@@ -3403,130 +3847,14 @@ declare const ACPInfoACPConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
3403
3847
  }, z$1.core.$strip>;
3404
3848
  autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
3405
3849
  priority: z$1.ZodDefault<z$1.ZodNumber>;
3406
- }, z$1.core.$strip>, z$1.ZodTransform<{
3407
- channel: ChannelType;
3408
- id: string;
3409
- type: "custom" | "easbot";
3410
- connection: {
3411
- stdio?: {
3412
- command: string;
3413
- args: string[];
3414
- } | undefined;
3415
- http?: {
3416
- baseUrl: string;
3417
- timeout: number;
3418
- } | undefined;
3419
- ws?: {
3420
- url: string;
3421
- timeout: number;
3422
- batchSize: number;
3423
- batchInterval: number;
3424
- heartbeatInterval: number;
3425
- } | undefined;
3426
- };
3427
- autoConnect: boolean;
3428
- priority: number;
3429
- name?: string | undefined;
3430
- agentId?: string | undefined;
3431
- }, {
3432
- id: string;
3433
- type: "custom" | "easbot";
3434
- connection: {
3435
- stdio?: {
3436
- command: string;
3437
- args: string[];
3438
- } | undefined;
3439
- http?: {
3440
- baseUrl: string;
3441
- timeout: number;
3442
- } | undefined;
3443
- ws?: {
3444
- url: string;
3445
- timeout: number;
3446
- batchSize: number;
3447
- batchInterval: number;
3448
- heartbeatInterval: number;
3449
- } | undefined;
3450
- };
3451
- autoConnect: boolean;
3452
- priority: number;
3453
- name?: string | undefined;
3454
- agentId?: string | undefined;
3455
- channel?: "http" | "websocket" | "stdio" | undefined;
3456
- }>>>;
3850
+ }, z$1.core.$strip>>;
3457
3851
  defaultClientId: z$1.ZodOptional<z$1.ZodString>;
3458
3852
  }, z$1.core.$strip>>;
3459
3853
  client: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
3460
3854
  autoRegister: z$1.ZodDefault<z$1.ZodBoolean>;
3461
3855
  gatewayUrl: z$1.ZodOptional<z$1.ZodURL>;
3462
3856
  }, z$1.core.$strip>>>;
3463
- }, z$1.core.$strip>, z$1.ZodTransform<ACPInfoACPConfigInput, {
3464
- server?: {
3465
- channel: ChannelType;
3466
- directory: string;
3467
- enabled: boolean;
3468
- port: number;
3469
- hostname: string;
3470
- timeout: number;
3471
- name?: string | undefined;
3472
- agentId?: string | undefined;
3473
- stdio?: {
3474
- command: string;
3475
- args: string[];
3476
- } | undefined;
3477
- http?: {
3478
- baseUrl: string;
3479
- timeout: number;
3480
- } | undefined;
3481
- ws?: {
3482
- url: string;
3483
- timeout: number;
3484
- batchSize: number;
3485
- batchInterval: number;
3486
- heartbeatInterval: number;
3487
- } | undefined;
3488
- agent?: {
3489
- agent?: string | undefined;
3490
- model?: {
3491
- id: string;
3492
- options?: Record<string, unknown> | undefined;
3493
- } | undefined;
3494
- } | undefined;
3495
- } | undefined;
3496
- clients?: {
3497
- clients: {
3498
- channel: ChannelType;
3499
- id: string;
3500
- type: "custom" | "easbot";
3501
- connection: {
3502
- stdio?: {
3503
- command: string;
3504
- args: string[];
3505
- } | undefined;
3506
- http?: {
3507
- baseUrl: string;
3508
- timeout: number;
3509
- } | undefined;
3510
- ws?: {
3511
- url: string;
3512
- timeout: number;
3513
- batchSize: number;
3514
- batchInterval: number;
3515
- heartbeatInterval: number;
3516
- } | undefined;
3517
- };
3518
- autoConnect: boolean;
3519
- priority: number;
3520
- name?: string | undefined;
3521
- agentId?: string | undefined;
3522
- }[];
3523
- defaultClientId?: string | undefined;
3524
- } | undefined;
3525
- client?: {
3526
- autoRegister: boolean;
3527
- gatewayUrl?: string | undefined;
3528
- } | undefined;
3529
- }>>;
3857
+ }, z$1.core.$strip>;
3530
3858
  type ACPChannelType = ChannelType;
3531
3859
  type ACPStdioConnectionConfig = z$1.infer<typeof ACPStdioConnectionConfigSchema>;
3532
3860
  type ACPHttpConnectionConfig = z$1.infer<typeof ACPHttpConnectionConfigSchema>;
@@ -3540,21 +3868,261 @@ type ACPClientsConfig = z$1.infer<typeof ACPClientsConfigSchema>;
3540
3868
  type ACPInfoACPServerConfig = z$1.infer<typeof ACPInfoACPServerConfigSchema>;
3541
3869
  type ACPInfoACPClientsConfig = z$1.infer<typeof ACPInfoACPClientsConfigSchema>;
3542
3870
  type ACPClientRegisterConfig = z$1.infer<typeof ACPClientRegisterConfigSchema>;
3543
- type ACPInfoACPConfig = ACPInfoACPConfigInput;
3871
+ type ACPInfoACPConfig = z$1.infer<typeof ACPInfoACPConfigSchema>;
3544
3872
  declare const ACP_DEFAULT_SERVER_CONFIG: ACPServerConfig;
3545
3873
  declare const ACP_DEFAULT_CLIENT_CONFIG: Partial<ACPClientConfig>;
3546
- declare function ACPValidateConfig(config: unknown): ACPInfoACPConfig;
3547
- declare function ACPParsePartialConfig(partial: unknown): ACPInfoACPConfig;
3548
3874
 
3549
- type PromptPart = {
3550
- type: 'text';
3551
- text: string;
3552
- } | {
3553
- type: 'file';
3554
- url: string;
3555
- filename?: string;
3556
- source?: string;
3557
- mime?: string;
3875
+ declare const FileDiffSchema: z.ZodObject<{
3876
+ file: z.ZodString;
3877
+ before: z.ZodString;
3878
+ after: z.ZodString;
3879
+ additions: z.ZodNumber;
3880
+ deletions: z.ZodNumber;
3881
+ status: z.ZodOptional<z.ZodEnum<{
3882
+ added: "added";
3883
+ deleted: "deleted";
3884
+ modified: "modified";
3885
+ renamed: "renamed";
3886
+ }>>;
3887
+ oldPath: z.ZodOptional<z.ZodString>;
3888
+ }, z.core.$strip>;
3889
+ type FileDiff = z.infer<typeof FileDiffSchema>;
3890
+ declare const RangeSchema: z.ZodObject<{
3891
+ start: z.ZodObject<{
3892
+ line: z.ZodNumber;
3893
+ character: z.ZodNumber;
3894
+ }, z.core.$strip>;
3895
+ end: z.ZodObject<{
3896
+ line: z.ZodNumber;
3897
+ character: z.ZodNumber;
3898
+ }, z.core.$strip>;
3899
+ }, z.core.$strip>;
3900
+ type Range = z.infer<typeof RangeSchema>;
3901
+ declare const FileInfoSchema: z.ZodObject<{
3902
+ path: z.ZodString;
3903
+ added: z.ZodNumber;
3904
+ removed: z.ZodNumber;
3905
+ status: z.ZodEnum<{
3906
+ added: "added";
3907
+ deleted: "deleted";
3908
+ modified: "modified";
3909
+ }>;
3910
+ }, z.core.$strip>;
3911
+ type FileInfo = z.infer<typeof FileInfoSchema>;
3912
+ declare const FileNodeSchema: z.ZodObject<{
3913
+ name: z.ZodString;
3914
+ path: z.ZodString;
3915
+ absolute: z.ZodString;
3916
+ type: z.ZodEnum<{
3917
+ file: "file";
3918
+ directory: "directory";
3919
+ }>;
3920
+ ignored: z.ZodBoolean;
3921
+ }, z.core.$strip>;
3922
+ type FileNode = z.infer<typeof FileNodeSchema>;
3923
+ declare const FileContentSchema: z.ZodObject<{
3924
+ type: z.ZodEnum<{
3925
+ text: "text";
3926
+ binary: "binary";
3927
+ }>;
3928
+ content: z.ZodString;
3929
+ diff: z.ZodOptional<z.ZodString>;
3930
+ patch: z.ZodOptional<z.ZodObject<{
3931
+ oldFileName: z.ZodString;
3932
+ newFileName: z.ZodString;
3933
+ oldHeader: z.ZodOptional<z.ZodString>;
3934
+ newHeader: z.ZodOptional<z.ZodString>;
3935
+ hunks: z.ZodArray<z.ZodObject<{
3936
+ oldStart: z.ZodNumber;
3937
+ oldLines: z.ZodNumber;
3938
+ newStart: z.ZodNumber;
3939
+ newLines: z.ZodNumber;
3940
+ lines: z.ZodArray<z.ZodString>;
3941
+ }, z.core.$strip>>;
3942
+ index: z.ZodOptional<z.ZodString>;
3943
+ }, z.core.$strip>>;
3944
+ encoding: z.ZodOptional<z.ZodLiteral<"base64">>;
3945
+ mimeType: z.ZodOptional<z.ZodString>;
3946
+ }, z.core.$strip>;
3947
+ type FileContent = z.infer<typeof FileContentSchema>;
3948
+
3949
+ declare const PtyInfoSchema: z__default.ZodObject<{
3950
+ id: z__default.ZodString;
3951
+ title: z__default.ZodString;
3952
+ command: z__default.ZodString;
3953
+ args: z__default.ZodArray<z__default.ZodString>;
3954
+ cwd: z__default.ZodString;
3955
+ status: z__default.ZodEnum<{
3956
+ running: "running";
3957
+ exited: "exited";
3958
+ }>;
3959
+ pid: z__default.ZodNumber;
3960
+ }, z__default.core.$strip>;
3961
+ type PtyInfo = z__default.infer<typeof PtyInfoSchema>;
3962
+ declare const PtyCreateInputSchema: z__default.ZodObject<{
3963
+ command: z__default.ZodOptional<z__default.ZodString>;
3964
+ args: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
3965
+ cwd: z__default.ZodOptional<z__default.ZodString>;
3966
+ title: z__default.ZodOptional<z__default.ZodString>;
3967
+ env: z__default.ZodOptional<z__default.ZodRecord<z__default.ZodString, z__default.ZodString>>;
3968
+ persistent: z__default.ZodDefault<z__default.ZodOptional<z__default.ZodBoolean>>;
3969
+ }, z__default.core.$strip>;
3970
+ type PtyCreateInput = z__default.infer<typeof PtyCreateInputSchema>;
3971
+ declare const PtyUpdateInputSchema: z__default.ZodObject<{
3972
+ title: z__default.ZodOptional<z__default.ZodString>;
3973
+ size: z__default.ZodOptional<z__default.ZodObject<{
3974
+ rows: z__default.ZodNumber;
3975
+ cols: z__default.ZodNumber;
3976
+ }, z__default.core.$strip>>;
3977
+ }, z__default.core.$strip>;
3978
+ type PtyUpdateInput = z__default.infer<typeof PtyUpdateInputSchema>;
3979
+
3980
+ declare const QuestionOptionSchema: z__default.ZodObject<{
3981
+ label: z__default.ZodString;
3982
+ description: z__default.ZodString;
3983
+ }, z__default.core.$strip>;
3984
+ type QuestionOption = z__default.infer<typeof QuestionOptionSchema>;
3985
+ declare const QuestionInfoSchema: z__default.ZodObject<{
3986
+ question: z__default.ZodString;
3987
+ header: z__default.ZodString;
3988
+ options: z__default.ZodArray<z__default.ZodObject<{
3989
+ label: z__default.ZodString;
3990
+ description: z__default.ZodString;
3991
+ }, z__default.core.$strip>>;
3992
+ multiple: z__default.ZodOptional<z__default.ZodBoolean>;
3993
+ custom: z__default.ZodOptional<z__default.ZodBoolean>;
3994
+ }, z__default.core.$strip>;
3995
+ type QuestionInfo = z__default.infer<typeof QuestionInfoSchema>;
3996
+ declare const QuestionRequestSchema: z__default.ZodObject<{
3997
+ id: z__default.ZodString;
3998
+ sessionId: z__default.ZodString;
3999
+ questions: z__default.ZodArray<z__default.ZodObject<{
4000
+ question: z__default.ZodString;
4001
+ header: z__default.ZodString;
4002
+ options: z__default.ZodArray<z__default.ZodObject<{
4003
+ label: z__default.ZodString;
4004
+ description: z__default.ZodString;
4005
+ }, z__default.core.$strip>>;
4006
+ multiple: z__default.ZodOptional<z__default.ZodBoolean>;
4007
+ custom: z__default.ZodOptional<z__default.ZodBoolean>;
4008
+ }, z__default.core.$strip>>;
4009
+ tool: z__default.ZodOptional<z__default.ZodObject<{
4010
+ messageId: z__default.ZodString;
4011
+ callId: z__default.ZodString;
4012
+ }, z__default.core.$strip>>;
4013
+ }, z__default.core.$strip>;
4014
+ type QuestionRequest = z__default.infer<typeof QuestionRequestSchema>;
4015
+ declare const QuestionRequestListSchema: z__default.ZodArray<z__default.ZodObject<{
4016
+ id: z__default.ZodString;
4017
+ sessionId: z__default.ZodString;
4018
+ questions: z__default.ZodArray<z__default.ZodObject<{
4019
+ question: z__default.ZodString;
4020
+ header: z__default.ZodString;
4021
+ options: z__default.ZodArray<z__default.ZodObject<{
4022
+ label: z__default.ZodString;
4023
+ description: z__default.ZodString;
4024
+ }, z__default.core.$strip>>;
4025
+ multiple: z__default.ZodOptional<z__default.ZodBoolean>;
4026
+ custom: z__default.ZodOptional<z__default.ZodBoolean>;
4027
+ }, z__default.core.$strip>>;
4028
+ tool: z__default.ZodOptional<z__default.ZodObject<{
4029
+ messageId: z__default.ZodString;
4030
+ callId: z__default.ZodString;
4031
+ }, z__default.core.$strip>>;
4032
+ }, z__default.core.$strip>>;
4033
+ type QuestionRequestList = z__default.infer<typeof QuestionRequestListSchema>;
4034
+ declare const QuestionAnswerSchema: z__default.ZodArray<z__default.ZodString>;
4035
+ type QuestionAnswer = z__default.infer<typeof QuestionAnswerSchema>;
4036
+ declare const QuestionReplySchema: z__default.ZodObject<{
4037
+ answers: z__default.ZodArray<z__default.ZodArray<z__default.ZodString>>;
4038
+ }, z__default.core.$strip>;
4039
+ type QuestionReply = z__default.infer<typeof QuestionReplySchema>;
4040
+ declare const QuestionParamSchema: z__default.ZodObject<{
4041
+ requestId: z__default.ZodString;
4042
+ }, z__default.core.$strip>;
4043
+ type QuestionParam = z__default.infer<typeof QuestionParamSchema>;
4044
+ declare const QuestionReplySourceSchema: z__default.ZodEnum<{
4045
+ timeout: "timeout";
4046
+ user: "user";
4047
+ }>;
4048
+ type QuestionReplySource = z__default.infer<typeof QuestionReplySourceSchema>;
4049
+
4050
+ declare const idPrefixes: {
4051
+ readonly event: "evt";
4052
+ readonly session: "ses";
4053
+ readonly message: "msg";
4054
+ readonly permission: "per";
4055
+ readonly question: "que";
4056
+ readonly user: "usr";
4057
+ readonly part: "prt";
4058
+ readonly pty: "pty";
4059
+ readonly tool: "tool";
4060
+ readonly workspace: "wrk";
4061
+ readonly command: "cmd";
4062
+ readonly task: "task";
4063
+ readonly heartbeat: "hb";
4064
+ readonly agent: "ag";
4065
+ readonly subagent: "sub";
4066
+ readonly hook: "hok";
4067
+ readonly compaction: "cmp";
4068
+ readonly context: "ctx";
4069
+ readonly experience: "exp";
4070
+ readonly pattern: "pat";
4071
+ readonly knowledge: "knw";
4072
+ readonly evolution: "evo";
4073
+ readonly result: "res";
4074
+ readonly stream: "stm";
3558
4075
  };
4076
+ type IdPrefixName = keyof typeof idPrefixes;
4077
+ declare function idSchema(name: IdPrefixName): z__default.ZodString;
4078
+
4079
+ declare const BooleanQuerySchema: z$1.ZodPreprocess<z$1.ZodBoolean>;
4080
+ type BooleanQuery = z$1.output<typeof BooleanQuerySchema>;
4081
+
4082
+ declare const TodoStatusSchema: z__default.ZodEnum<{
4083
+ pending: "pending";
4084
+ completed: "completed";
4085
+ cancelled: "cancelled";
4086
+ in_progress: "in_progress";
4087
+ }>;
4088
+ type TodoStatus = z__default.infer<typeof TodoStatusSchema>;
4089
+ declare const TodoPrioritySchema: z__default.ZodEnum<{
4090
+ low: "low";
4091
+ medium: "medium";
4092
+ high: "high";
4093
+ }>;
4094
+ type TodoPriority = z__default.infer<typeof TodoPrioritySchema>;
4095
+ declare const TodoSchema: z__default.ZodObject<{
4096
+ content: z__default.ZodString;
4097
+ status: z__default.ZodEnum<{
4098
+ pending: "pending";
4099
+ completed: "completed";
4100
+ cancelled: "cancelled";
4101
+ in_progress: "in_progress";
4102
+ }>;
4103
+ priority: z__default.ZodEnum<{
4104
+ low: "low";
4105
+ medium: "medium";
4106
+ high: "high";
4107
+ }>;
4108
+ id: z__default.ZodString;
4109
+ }, z__default.core.$strip>;
4110
+ type Todo = z__default.infer<typeof TodoSchema>;
4111
+ declare const TodoListSchema: z__default.ZodArray<z__default.ZodObject<{
4112
+ content: z__default.ZodString;
4113
+ status: z__default.ZodEnum<{
4114
+ pending: "pending";
4115
+ completed: "completed";
4116
+ cancelled: "cancelled";
4117
+ in_progress: "in_progress";
4118
+ }>;
4119
+ priority: z__default.ZodEnum<{
4120
+ low: "low";
4121
+ medium: "medium";
4122
+ high: "high";
4123
+ }>;
4124
+ id: z__default.ZodString;
4125
+ }, z__default.core.$strip>>;
4126
+ type TodoList = z__default.infer<typeof TodoListSchema>;
3559
4127
 
3560
- export { type ACPAgentRuntimeConfig, ACPAgentRuntimeConfigSchema, type ACPChannelType, type ACPClientConfig, ACPClientConfigSchema, type ACPClientRegisterConfig, ACPClientRegisterConfigSchema, type ACPClientsConfig, ACPClientsConfigSchema, type ACPConnectionConfig, ACPConnectionConfigSchema, type ACPHttpConnectionConfig, ACPHttpConnectionConfigSchema, type ACPInfoACPClientsConfig, ACPInfoACPClientsConfigSchema, type ACPInfoACPConfig, ACPInfoACPConfigSchema, type ACPInfoACPServerConfig, ACPInfoACPServerConfigSchema, type ACPModelConfig, ACPModelConfigSchema, ACPParsePartialConfig, type ACPServerConfig, ACPServerConfigSchema, type ACPStdioConnectionConfig, ACPStdioConnectionConfigSchema, ACPValidateConfig, type ACPWebSocketConnectionConfig, ACPWebSocketConnectionConfigSchema, ACP_DEFAULT_CLIENT_CONFIG, ACP_DEFAULT_SERVER_CONFIG, type AgentAction, type AgentAdapter, type AgentCallback, AgentCapability, type AgentCreate, type AgentDeregisterMessage, type AgentExecute, type AgentExecutionResult, type AgentHealthStatus, type AgentHeartbeat, type AgentHeartbeatSyncMessage, type AgentInfo, type AgentInput, type AgentListRequestMessage, type AgentListResponseMessage, type AgentMessage, type AgentModel, AgentPermissionSchema as AgentPermission, AgentPermissionSchema, type AgentPermissionType, type AgentPromptPart, type AgentQuery, type AgentRegisterMessage, type AgentRegistration, type AgentRegistrationRequest, type AgentRegistryStats, type AgentResult, type AgentResultMetadata, type AgentSelectionOptions, type AgentSelectionRecord, type AgentSelectionStrategy, AgentState, type AgentStatistics, type AgentStatusChangeMessage, type AgentStatusInfo, type AgentSyncConflictResolutionStrategy, type AgentSyncInfo, type AgentSyncMessage, type AgentSyncMode, type AgentSyncPushEventType, type AgentSyncState, type AgentSyncStats, type AgentToolCall, type AgentUpdate, type ApiResponse, ApiResponseBuilder, type ApiResult, type AskInput, type AuthInfo, type BaseKnowledgeConfig, type BaseSearchResult, Brand, Brand as BrandType, type ChannelInfo, type ChannelListResponse, type ChannelPluginInfo, ChannelType, type CodebaseKnowledgeConfig, type CodebaseKnowledgeConfigWithModels, type CodebaseStatus, type ContextMode, ContextModeEnum, ContextModeValues, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_SEARCH_CONFIG, DEFAULT_SYNC_CONFIG, type DatabaseConfig, DefaultContextMode, DefaultScope, EMBEDDING_DIMS_CONSISTENCY_CHECK, type EasbotShell, type EasbotShellError, type EasbotShellOutput, type EasbotShellPromise, type EmbeddingConfig, type ErrorDetails, type ErrorMessageMode, type ErrorResponse, type FilterExpression, type FilterRule, GRAPH_ENTITY_TYPE_DEFINITIONS, GRAPH_RELATION_TYPE_DEFINITIONS, type GatewayConfig, type GatewayHookHandler, type GatewayMessage, type GatewayMessageDeliveredInput, type GatewayMessagePromptPart, type GatewayMessageReadInput, type GatewayMessageReceiveInput, type GatewayMessageSendInput, type GatewayNodeInfo, type GatewayServerConfig, type GatewaySubscriberType, gateway as GatewayTypes, type GlobalSessionInfo, type GraphLlmConfig, HTTPMethod, type HTTPRequestConfig, type HTTPResponseConfig, HTTPStatusCode, HttpStatus, type HybridSearchConfig, type IGatewayServer, type IGlobal, type IHookRegistry, type IInstance, type ISubAgentRunner, type ITool, type IndexerConfig, KNOWLEDGE_DOCTOR_PUBLIC_CHECKS, type KnowledgeBackend, type KnowledgeDoctorCheck, type KnowledgeDoctorPublicCheck, type KnowledgeDoctorResult, type KnowledgeIndexState, type KnowledgeIssue, type KnowledgeLlmCapabilities, type KnowledgeLlmStatus, type KnowledgeSearchOptions, type KnowledgeSearchSource, type KnowledgeSeverity, type KnowledgeStatus, type Language, type LlmConfig, type MemoryKnowledgeConfig, type MemoryKnowledgeConfigWithModels, type MemoryStatus, type MessageAttachment, type MessageContext, type MessageMetadata, type MessageQuery, type MessageReaction, type MessageSend, MessageSender, type MessageStorage, MessageType$1 as MessageType, type NoteKnowledgeConfig, type NoteKnowledgeConfigWithModels, type NoteKnowledgeSource, type NoteStatus, type OAuth2Token, type PageParams, type PageResult, type ParserConfig, Permission, PermissionActionSchema as PermissionAction, PermissionActionSchema, type PermissionActionType, PermissionConfigSchema as PermissionConfig, PermissionConfigSchema, type PermissionConfigType, PermissionObjectSchema as PermissionObject, PermissionObjectSchema, type PermissionObjectType, PermissionRuleSchema as PermissionRule, PermissionRuleSchema, type PermissionRuleType, PermissionRulesetSchema as PermissionRuleset, PermissionRulesetSchema, type PermissionRulesetType, PermissionRuntimeRuleSchema as PermissionRuntimeRule, PermissionRuntimeRuleSchema, type PermissionRuntimeRuleType, Permission as PermissionType, type PlatformType, type ProjectCommands, ProjectCommandsSchema, type ProjectIcon, ProjectIconSchema, type ProjectInfo, ProjectInfoSchema, type ProjectTime, ProjectTimeSchema, type PromptPart, Protocol, type RequestOptions, type RerankLlmConfig, type RetryRequest, type RunMode, type Scope, ScopeEnum, ScopeValues, type SearchConfig, type SessionCreate, type SessionInfo, type SessionMessage, type SessionQuery, type SessionShareInfo, type SessionStatistics, SessionStatus, Session as SessionTypes, type SessionUpdate, type ShellExpression, type ShellFunction, type SortingField, type SubAgentConfig, type SubAgentEvent, type SubAgentExecuteOptions, type SubAgentHandler, type SubAgentInput, type SubAgentInstance, type SubAgentResult, type SubAgentStatus, type SuccessMessageMode, type SyncConfig, type TaskCreate, type TaskExecutionResult, type TaskInfo, type TaskLog, TaskPriority, type TaskQuery, TaskStatus, type TaskStep, type TaskUpdate, type ToolContext, type ToolDefinition, type ToolFunction, type TransportType, type UploadFileParams, type UploadFileResult, type WebSocketConnectionConfig, type WebSocketEvent, type WebSocketMessage, WebSocketMessageType, WebSocketState, brandEnv, buildToolArgs, createTool, toolSchema };
4128
+ export { type ACPAgentRuntimeConfig, ACPAgentRuntimeConfigSchema, type ACPChannelType, ACPChannelTypeSchema, type ACPClientConfig, ACPClientConfigSchema, type ACPClientRegisterConfig, ACPClientRegisterConfigSchema, type ACPClientsConfig, ACPClientsConfigSchema, type ACPConnectionConfig, ACPConnectionConfigSchema, type ACPHttpConnectionConfig, ACPHttpConnectionConfigSchema, type ACPInfoACPClientsConfig, ACPInfoACPClientsConfigSchema, type ACPInfoACPConfig, ACPInfoACPConfigSchema, type ACPInfoACPServerConfig, ACPInfoACPServerConfigSchema, type ACPModelConfig, ACPModelConfigSchema, type ACPServerConfig, ACPServerConfigSchema, type ACPStdioConnectionConfig, ACPStdioConnectionConfigSchema, type ACPWebSocketConnectionConfig, ACPWebSocketConnectionConfigSchema, ACP_DEFAULT_CLIENT_CONFIG, ACP_DEFAULT_SERVER_CONFIG, type AgentCallback, type AgentCapability, AgentCapabilitySchema, type AgentInfo, AgentInfoSchema, type AgentInput, type AgentMessage, type AgentMode, AgentModeSchema, type AgentModel, AgentModelSchema, AgentPermissionSchema as AgentPermission, AgentPermissionSchema, type AgentPermissionType, type AgentProcessingConfig, AgentProcessingConfigSchema, type AgentPromptPart, type AgentRegistryConfig, AgentRegistryConfigSchema, type AgentResult, type AgentResultMetadata, type AgentSyncConfig, AgentSyncConfigSchema, type AgentToolCall, type ApiResponse, ApiResponseBuilder, type ApiResult, type AskInput, type AuthConfig, AuthConfigSchema, type AuthInfo, type BaseKnowledgeConfig, type BaseSearchResult, type BooleanQuery, BooleanQuerySchema, Brand, Brand as BrandType, type ChannelConfig, ChannelConfigSchema, ChannelType, type CircuitBreakerConfig, CircuitBreakerConfigSchema, type CodebaseKnowledgeConfig, type CodebaseKnowledgeConfigWithModels, type CodebaseStatus, type CommandArguments, CommandArgumentsSchema, type CommandConfigInfo, CommandConfigInfoSchema, type CommandDefinition, type CommandExecuteFn, type CommandExecuteResult, type CommandExecuteResultMetadata, CommandExecuteResultMetadataSchema, CommandExecuteResultSchema, type CommandExecutionContext, CommandExecutionContextSchema, type CommandInfo, CommandInfoSchema, type CommandInitContext, CommandInitContextSchema, type CommandInitFn, type CommandInitResult, CommandInitResultSchema, type CommandIsEnabledFn, type CommandMetadata, CommandMetadataSchema, type CommandPromptPart, CommandPromptPartSchema, type CommandSource, CommandSourceSchema, type ConnectionPoolConfig, ConnectionPoolConfigSchema, type ContextMode, ContextModeEnum, ContextModeSchema, ContextModeValues, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_SEARCH_CONFIG, DEFAULT_SYNC_CONFIG, type DatabaseConfig, DefaultContextMode, DefaultScope, type DefaultsConfig, DefaultsConfigSchema, type DingTalkChannelConfig, DingTalkChannelConfigSchema, EMBEDDING_DIMS_CONSISTENCY_CHECK, type EasbotShell, type EasbotShellError, type EasbotShellOutput, type EasbotShellPromise, type EmbeddingConfig, type EmbeddingModelRef, type ErrorDetails, type ErrorInfo, type ErrorMessageMode, type ErrorResponse, type FeishuChannelConfig, FeishuChannelConfigSchema, type FileContent, FileContentSchema, type FileDiff, FileDiffSchema, type FileInfo, FileInfoSchema, type FileNode, FileNodeSchema, type FilterExpression, type FilterRule, GRAPH_ENTITY_TYPE_DEFINITIONS, GRAPH_RELATION_TYPE_DEFINITIONS, type GatewayAgentDeregisterMessage, type GatewayAgentHealthStatus, type GatewayAgentHeartbeat, type GatewayAgentHeartbeatSyncMessage, type GatewayAgentListRequestMessage, type GatewayAgentListResponseMessage, type GatewayAgentRegisterMessage, type GatewayAgentRegistration, type GatewayAgentRegistrationRequest, type GatewayAgentRegistryStats, type GatewayAgentSelectionOptions, type GatewayAgentSelectionRecord, type GatewayAgentSelectionStrategy, type GatewayAgentStatusChangeMessage, type GatewayAgentSyncConflictResolutionStrategy, type GatewayAgentSyncInfo, type GatewayAgentSyncMessage, type GatewayAgentSyncMode, type GatewayAgentSyncPushEventType, type GatewayAgentSyncState, type GatewayAgentSyncStats, type GatewayChannelInfo, type GatewayChannelListResponse, type GatewayChannelPluginInfo, type GatewayChannelType, GatewayChannelTypeSchema, type GatewayClientConfig, GatewayClientConfigSchema, type GatewayClusterConfig, GatewayClusterConfigSchema, type GatewayConfig, GatewayConfigSchema, type GatewayMessage, type GatewayMessageContext, type GatewayMessageDeliveredInput, type GatewayMessageMetadata, type GatewayMessagePriority, GatewayMessagePrioritySchema, type GatewayMessagePromptPart, type GatewayMessageReadInput, type GatewayMessageReceiveInput, type GatewayMessageSendInput, type GatewayMessageStorage, type GatewayMessageType, type GatewayNodeConfig, GatewayNodeConfigSchema, type GatewayNodeInfo, type GatewayPlatformType, type GatewayServerConfig, GatewayServerConfigSchema, type GatewaySubscriberType, type GlobalSessionInfo, type GraphLlmConfig, HTTPMethod, type HTTPRequestConfig, type HTTPResponseConfig, type HTTPSConfig, HTTPSConfigSchema, HTTPStatusCode, HttpStatus, type HybridSearchConfig, type IGatewayServer, type IGlobal, type IInstance, type ISubAgentRunner, type ITool, type IdPrefixName, type IndexerConfig, KNOWLEDGE_DOCTOR_PUBLIC_CHECKS, type KnowledgeBackend, type KnowledgeDoctorCheck, type KnowledgeDoctorPublicCheck, type KnowledgeDoctorResult, type KnowledgeIndexState, type KnowledgeIssue, type KnowledgeLlmCapabilities, type KnowledgeLlmStatus, type KnowledgeSearchOptions, type KnowledgeSearchSource, type KnowledgeSeverity, type KnowledgeStatus, type Language, type LanguageModelRef, type LlmConfig, type Mcp, type McpLocalConfig, McpLocalConfigSchema, type McpOAuthConfig, McpOAuthConfigSchema, type McpRemoteConfig, McpRemoteConfigSchema, McpSchema, type MemoryKnowledgeConfig, type MemoryKnowledgeConfigWithModels, type MemoryStatus, type MessageQueueConfig, MessageQueueConfigSchema, type ModelIdentifier, type ModelRef, type NostrChannelConfig, NostrChannelConfigSchema, type NoteKnowledgeConfig, type NoteKnowledgeConfigWithModels, type NoteKnowledgeSource, type NoteStatus, type OAuth2AuthConfig, OAuth2AuthConfigSchema, type OAuth2Token, type PageParams, type PageResult, type ParserConfig, Permission, PermissionActionSchema as PermissionAction, PermissionActionSchema, type PermissionActionType, PermissionConfigSchema as PermissionConfig, PermissionConfigSchema, type PermissionConfigType, PermissionObjectSchema as PermissionObject, PermissionObjectSchema, type PermissionObjectType, PermissionRuleSchema as PermissionRule, PermissionRuleSchema, type PermissionRuleType, PermissionRulesetSchema as PermissionRuleset, PermissionRulesetSchema, type PermissionRulesetType, PermissionRuntimeRuleSchema as PermissionRuntimeRule, PermissionRuntimeRuleSchema, type PermissionRuntimeRuleType, Permission as PermissionType, type ProjectCommands, ProjectCommandsSchema, type ProjectIcon, ProjectIconSchema, type ProjectInfo, ProjectInfoSchema, type ProjectTime, ProjectTimeSchema, Protocol, type ProtocolConfig, type ProtocolMetadata, type PtyCreateInput, PtyCreateInputSchema, type PtyInfo, PtyInfoSchema, type PtyUpdateInput, PtyUpdateInputSchema, type QuestionAnswer, QuestionAnswerSchema, type QuestionInfo, QuestionInfoSchema, type QuestionOption, QuestionOptionSchema, type QuestionParam, QuestionParamSchema, type QuestionReply, QuestionReplySchema, type QuestionReplySource, QuestionReplySourceSchema, type QuestionRequest, type QuestionRequestList, QuestionRequestListSchema, QuestionRequestSchema, type Range, RangeSchema, type RequestOptions, type RerankLlmConfig, type RerankingModelRef, type RetryRequest, type RunMode, type SchedulerInitialized, SchedulerInitializedSchema, type SchedulerStatus, SchedulerStatusSchema, type SchedulerTask, type SchedulerTaskList, SchedulerTaskListSchema, SchedulerTaskSchema, type Scope, ScopeEnum, ScopeValues, type SearchConfig, type SessionConfig, SessionConfigSchema, type SessionInfo, type SessionShareInfo, Session as SessionTypes, type ShellExpression, type ShellFunction, type SignalChannelConfig, SignalChannelConfigSchema, type SlackChannelConfig, SlackChannelConfigSchema, type SortingField, type SubAgentConfig, type SubAgentEvent, type SubAgentExecuteOptions, type SubAgentHandler, type SubAgentInput, type SubAgentInstance, type SubAgentResult, type SubAgentStatus, type SuccessMessageMode, type SyncConfig, type TaskCreate, type TaskExecutionResult, type TaskInfo, type TaskLog, TaskPriority, type TaskQuery, TaskStatus, type TaskStep, type TaskUpdate, type TelegramChannelConfig, TelegramChannelConfigSchema, type Todo, type TodoList, TodoListSchema, type TodoPriority, TodoPrioritySchema, TodoSchema, type TodoStatus, TodoStatusSchema, type TokenAuthConfig, TokenAuthConfigSchema, type TokenAuthItem, TokenAuthItemSchema, type ToolContext, type ToolDefinition, type ToolFunction, type TransportType, type UploadFileParams, type UploadFileResult, type Usage, type UsageCache, UsageCacheSchema, UsageSchema, type WeChatChannelConfig, WeChatChannelConfigSchema, type WebChatChannelConfig, WebChatChannelConfigSchema, type WebSocketConnectionConfig, type WebSocketEvent, type WebSocketMessage, WebSocketMessageType, WebSocketState, type WeixinChannelConfig, WeixinChannelConfigSchema, brandEnv, buildToolArgs, createTool, idPrefixes, idSchema, toolSchema };