@easbot/types 0.3.28 → 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,231 +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: 'running' | '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 SessionInfo {
399
- id: string;
400
- title: string;
401
- description?: string;
402
- status: SessionStatus;
403
- agentId?: string;
404
- userId?: string;
405
- createdAt: string;
406
- updatedAt: string;
407
- lastActivityAt: string;
408
- closedAt?: string;
409
- metadata: Record<string, any>;
410
- config: Record<string, any>;
411
- statistics?: SessionStatistics;
412
- }
413
- interface SessionStatistics {
414
- messageCount: number;
415
- totalTokens: number;
416
- averageResponseTime: number;
417
- duration: number;
418
- errorCount: number;
419
- }
420
- declare enum MessageType$1 {
421
- TEXT = "text",
422
- IMAGE = "image",
423
- FILE = "file",
424
- AUDIO = "audio",
425
- VIDEO = "video",
426
- SYSTEM = "system"
427
- }
428
- declare enum MessageSender {
429
- USER = "user",
430
- AGENT = "agent",
431
- SYSTEM = "system"
432
- }
433
- interface MessageSend {
434
- content: string;
435
- type?: MessageType$1;
436
- metadata?: Record<string, any>;
437
- attachments?: MessageAttachment[];
438
- }
439
- interface MessageAttachment {
440
- id: string;
441
- name: string;
442
- type: string;
443
- size: number;
444
- url: string;
445
- metadata?: Record<string, any>;
446
- }
447
- interface SessionMessage {
448
- id: string;
449
- sessionId: string;
450
- sender: MessageSender;
451
- senderId?: string;
452
- content: string;
453
- type: MessageType$1;
454
- timestamp: string | number;
455
- metadata: Record<string, any>;
456
- attachments?: MessageAttachment[];
457
- reactions?: MessageReaction[];
458
- replyTo?: string;
459
- }
460
- interface MessageReaction {
461
- emoji: string;
462
- count: number;
463
- userIds: string[];
464
- }
465
- interface MessageQuery {
466
- type?: MessageType$1;
467
- sender?: MessageSender;
468
- startDate?: string;
469
- endDate?: string;
470
- page?: number;
471
- limit?: number;
472
- search?: string;
473
- }
474
-
475
272
  interface TaskQuery {
476
273
  status?: TaskStatus | 'all';
477
274
  priority?: TaskPriority;
@@ -528,7 +325,7 @@ interface TaskStep {
528
325
  id: string;
529
326
  taskId: string;
530
327
  name: string;
531
- status: 'pending' | 'running' | 'completed' | 'failed';
328
+ status: 'pending' | 'in_progress' | 'completed' | 'failed';
532
329
  startTime?: string;
533
330
  endTime?: string;
534
331
  output?: any;
@@ -561,957 +358,1024 @@ declare const Brand: {
561
358
  type Brand = typeof Brand;
562
359
  declare function brandEnv(suffix: string): string;
563
360
 
564
- declare const PermissionAction: z.ZodEnum<{
361
+ declare const PermissionActionSchema: z__default.ZodEnum<{
362
+ ask: "ask";
565
363
  allow: "allow";
566
364
  deny: "deny";
567
- ask: "ask";
568
365
  }>;
569
- type PermissionAction = z.infer<typeof PermissionAction>;
570
- declare const PermissionObject: 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";
571
369
  allow: "allow";
572
370
  deny: "deny";
573
- ask: "ask";
574
371
  }>>;
575
- type PermissionObject = z.infer<typeof PermissionObject>;
576
- declare const PermissionRule: 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";
577
375
  allow: "allow";
578
376
  deny: "deny";
377
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
579
378
  ask: "ask";
580
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
581
379
  allow: "allow";
582
380
  deny: "deny";
583
- ask: "ask";
584
381
  }>>]>;
585
- type PermissionRule = z.infer<typeof PermissionRule>;
586
- declare const Config: z.ZodPipe<z.ZodPreprocess<z.ZodUnion<[z.ZodObject<{
587
- __originalKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
588
- 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";
589
387
  allow: "allow";
590
388
  deny: "deny";
389
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
591
390
  ask: "ask";
592
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
593
391
  allow: "allow";
594
392
  deny: "deny";
595
- ask: "ask";
596
393
  }>>]>>;
597
- edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
394
+ edit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
395
+ ask: "ask";
598
396
  allow: "allow";
599
397
  deny: "deny";
398
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
600
399
  ask: "ask";
601
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
602
400
  allow: "allow";
603
401
  deny: "deny";
604
- ask: "ask";
605
402
  }>>]>>;
606
- glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
403
+ glob: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
404
+ ask: "ask";
607
405
  allow: "allow";
608
406
  deny: "deny";
407
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
609
408
  ask: "ask";
610
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
611
409
  allow: "allow";
612
410
  deny: "deny";
613
- ask: "ask";
614
411
  }>>]>>;
615
- grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
412
+ grep: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
413
+ ask: "ask";
616
414
  allow: "allow";
617
415
  deny: "deny";
416
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
618
417
  ask: "ask";
619
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
620
418
  allow: "allow";
621
419
  deny: "deny";
622
- ask: "ask";
623
420
  }>>]>>;
624
- list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
421
+ list: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
422
+ ask: "ask";
625
423
  allow: "allow";
626
424
  deny: "deny";
425
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
627
426
  ask: "ask";
628
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
629
427
  allow: "allow";
630
428
  deny: "deny";
631
- ask: "ask";
632
429
  }>>]>>;
633
- bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
430
+ bash: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
431
+ ask: "ask";
634
432
  allow: "allow";
635
433
  deny: "deny";
434
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
636
435
  ask: "ask";
637
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
638
436
  allow: "allow";
639
437
  deny: "deny";
640
- ask: "ask";
641
438
  }>>]>>;
642
- task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
439
+ task: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
440
+ ask: "ask";
643
441
  allow: "allow";
644
442
  deny: "deny";
443
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
645
444
  ask: "ask";
646
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
647
445
  allow: "allow";
648
446
  deny: "deny";
649
- ask: "ask";
650
447
  }>>]>>;
651
- 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";
652
450
  allow: "allow";
653
451
  deny: "deny";
452
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
654
453
  ask: "ask";
655
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
656
454
  allow: "allow";
657
455
  deny: "deny";
658
- ask: "ask";
659
456
  }>>]>>;
660
- todo: z.ZodOptional<z.ZodEnum<{
457
+ todo: z__default.ZodOptional<z__default.ZodEnum<{
458
+ ask: "ask";
661
459
  allow: "allow";
662
460
  deny: "deny";
461
+ }>>;
462
+ question: z__default.ZodOptional<z__default.ZodEnum<{
663
463
  ask: "ask";
464
+ allow: "allow";
465
+ deny: "deny";
664
466
  }>>;
665
- question: z.ZodOptional<z.ZodEnum<{
467
+ webfetch: z__default.ZodOptional<z__default.ZodEnum<{
468
+ ask: "ask";
666
469
  allow: "allow";
667
470
  deny: "deny";
471
+ }>>;
472
+ websearch: z__default.ZodOptional<z__default.ZodEnum<{
668
473
  ask: "ask";
474
+ allow: "allow";
475
+ deny: "deny";
669
476
  }>>;
670
- webfetch: z.ZodOptional<z.ZodEnum<{
477
+ codesearch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
478
+ ask: "ask";
671
479
  allow: "allow";
672
480
  deny: "deny";
481
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
673
482
  ask: "ask";
674
- }>>;
675
- websearch: z.ZodOptional<z.ZodEnum<{
676
483
  allow: "allow";
677
484
  deny: "deny";
485
+ }>>]>>;
486
+ lsp: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
678
487
  ask: "ask";
679
- }>>;
680
- codesearch: z.ZodOptional<z.ZodEnum<{
681
488
  allow: "allow";
682
489
  deny: "deny";
490
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
683
491
  ask: "ask";
684
- }>>;
685
- lsp: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
686
492
  allow: "allow";
687
493
  deny: "deny";
494
+ }>>]>>;
495
+ doom_loop: z__default.ZodOptional<z__default.ZodEnum<{
688
496
  ask: "ask";
689
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
690
497
  allow: "allow";
691
498
  deny: "deny";
499
+ }>>;
500
+ skill: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
692
501
  ask: "ask";
693
- }>>]>>;
694
- doom_loop: z.ZodOptional<z.ZodEnum<{
695
502
  allow: "allow";
696
503
  deny: "deny";
504
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
697
505
  ask: "ask";
698
- }>>;
699
- skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
700
506
  allow: "allow";
701
507
  deny: "deny";
508
+ }>>]>>;
509
+ pty_session: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
702
510
  ask: "ask";
703
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
704
511
  allow: "allow";
705
512
  deny: "deny";
513
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
706
514
  ask: "ask";
707
- }>>]>>;
708
- pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
709
515
  allow: "allow";
710
516
  deny: "deny";
517
+ }>>]>>;
518
+ pty_manage: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
711
519
  ask: "ask";
712
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
713
520
  allow: "allow";
714
521
  deny: "deny";
522
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
715
523
  ask: "ask";
716
- }>>]>>;
717
- pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
718
524
  allow: "allow";
719
525
  deny: "deny";
526
+ }>>]>>;
527
+ write: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
720
528
  ask: "ask";
721
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
722
529
  allow: "allow";
723
530
  deny: "deny";
531
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
724
532
  ask: "ask";
725
- }>>]>>;
726
- write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
727
533
  allow: "allow";
728
534
  deny: "deny";
535
+ }>>]>>;
536
+ multiedit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
729
537
  ask: "ask";
730
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
731
538
  allow: "allow";
732
539
  deny: "deny";
540
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
733
541
  ask: "ask";
734
- }>>]>>;
735
- multiedit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
736
542
  allow: "allow";
737
543
  deny: "deny";
544
+ }>>]>>;
545
+ note: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
738
546
  ask: "ask";
739
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
740
547
  allow: "allow";
741
548
  deny: "deny";
549
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
742
550
  ask: "ask";
743
- }>>]>>;
744
- note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
745
551
  allow: "allow";
746
552
  deny: "deny";
553
+ }>>]>>;
554
+ memory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
747
555
  ask: "ask";
748
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
749
556
  allow: "allow";
750
557
  deny: "deny";
558
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
751
559
  ask: "ask";
752
- }>>]>>;
753
- memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
754
560
  allow: "allow";
755
561
  deny: "deny";
562
+ }>>]>>;
563
+ codebase: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
756
564
  ask: "ask";
757
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
758
565
  allow: "allow";
759
566
  deny: "deny";
567
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
760
568
  ask: "ask";
761
- }>>]>>;
762
- codebase: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
763
569
  allow: "allow";
764
570
  deny: "deny";
571
+ }>>]>>;
572
+ agent_client: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
765
573
  ask: "ask";
766
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
767
574
  allow: "allow";
768
575
  deny: "deny";
576
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
769
577
  ask: "ask";
770
- }>>]>>;
771
- agent_client: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
772
578
  allow: "allow";
773
579
  deny: "deny";
580
+ }>>]>>;
581
+ gateway: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
774
582
  ask: "ask";
775
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
776
583
  allow: "allow";
777
584
  deny: "deny";
585
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
778
586
  ask: "ask";
779
- }>>]>>;
780
- gateway: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
781
587
  allow: "allow";
782
588
  deny: "deny";
589
+ }>>]>>;
590
+ apply_patch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
783
591
  ask: "ask";
784
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
785
592
  allow: "allow";
786
593
  deny: "deny";
594
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
787
595
  ask: "ask";
788
- }>>]>>;
789
- apply_patch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
790
596
  allow: "allow";
791
597
  deny: "deny";
598
+ }>>]>>;
599
+ batch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
792
600
  ask: "ask";
793
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
794
601
  allow: "allow";
795
602
  deny: "deny";
603
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
796
604
  ask: "ask";
797
- }>>]>>;
798
- batch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
799
605
  allow: "allow";
800
606
  deny: "deny";
607
+ }>>]>>;
608
+ plan: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
801
609
  ask: "ask";
802
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
803
610
  allow: "allow";
804
611
  deny: "deny";
612
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
805
613
  ask: "ask";
614
+ allow: "allow";
615
+ deny: "deny";
806
616
  }>>]>>;
807
- plan: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
617
+ scheduler: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
618
+ ask: "ask";
619
+ allow: "allow";
620
+ deny: "deny";
621
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
622
+ ask: "ask";
808
623
  allow: "allow";
809
624
  deny: "deny";
625
+ }>>]>>;
626
+ worktree: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
810
627
  ask: "ask";
811
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
812
628
  allow: "allow";
813
629
  deny: "deny";
630
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
814
631
  ask: "ask";
632
+ allow: "allow";
633
+ deny: "deny";
815
634
  }>>]>>;
816
- }, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
635
+ }, z__default.core.$catchall<z__default.ZodUnion<readonly [z__default.ZodEnum<{
636
+ ask: "ask";
817
637
  allow: "allow";
818
638
  deny: "deny";
639
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
819
640
  ask: "ask";
820
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
821
641
  allow: "allow";
822
642
  deny: "deny";
643
+ }>>]>>>, z__default.ZodEnum<{
823
644
  ask: "ask";
824
- }>>]>>>, z.ZodEnum<{
825
645
  allow: "allow";
826
646
  deny: "deny";
827
- ask: "ask";
828
- }>]>>, z.ZodTransform<Record<string, "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask">>, "allow" | "deny" | "ask" | {
829
- [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">;
830
649
  __originalKeys?: string[] | undefined;
831
- read?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
832
- edit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
833
- glob?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
834
- grep?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
835
- list?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
836
- bash?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
837
- task?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
838
- external_directory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
839
- todo?: "allow" | "deny" | "ask" | undefined;
840
- question?: "allow" | "deny" | "ask" | undefined;
841
- webfetch?: "allow" | "deny" | "ask" | undefined;
842
- websearch?: "allow" | "deny" | "ask" | undefined;
843
- codesearch?: "allow" | "deny" | "ask" | undefined;
844
- lsp?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
845
- doom_loop?: "allow" | "deny" | "ask" | undefined;
846
- skill?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
847
- pty_session?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
848
- pty_manage?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
849
- write?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
850
- multiedit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
851
- note?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
852
- memory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
853
- codebase?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
854
- agent_client?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
855
- gateway?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
856
- apply_patch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
857
- batch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
858
- 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;
859
680
  }>>;
860
- type Config = z.infer<typeof Config>;
861
- declare const AgentPermissionSchema: z.ZodObject<{
862
- 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";
863
685
  allow: "allow";
864
686
  deny: "deny";
687
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
865
688
  ask: "ask";
866
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
867
689
  allow: "allow";
868
690
  deny: "deny";
869
- ask: "ask";
870
691
  }>>]>>;
871
- edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
692
+ edit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
693
+ ask: "ask";
872
694
  allow: "allow";
873
695
  deny: "deny";
696
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
874
697
  ask: "ask";
875
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
876
698
  allow: "allow";
877
699
  deny: "deny";
878
- ask: "ask";
879
700
  }>>]>>;
880
- write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
701
+ write: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
702
+ ask: "ask";
881
703
  allow: "allow";
882
704
  deny: "deny";
705
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
883
706
  ask: "ask";
884
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
885
707
  allow: "allow";
886
708
  deny: "deny";
887
- ask: "ask";
888
709
  }>>]>>;
889
- glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
710
+ glob: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
711
+ ask: "ask";
890
712
  allow: "allow";
891
713
  deny: "deny";
714
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
892
715
  ask: "ask";
893
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
894
716
  allow: "allow";
895
717
  deny: "deny";
896
- ask: "ask";
897
718
  }>>]>>;
898
- grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
719
+ grep: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
720
+ ask: "ask";
899
721
  allow: "allow";
900
722
  deny: "deny";
723
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
901
724
  ask: "ask";
902
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
903
725
  allow: "allow";
904
726
  deny: "deny";
905
- ask: "ask";
906
727
  }>>]>>;
907
- list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
728
+ list: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
729
+ ask: "ask";
908
730
  allow: "allow";
909
731
  deny: "deny";
732
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
910
733
  ask: "ask";
911
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
912
734
  allow: "allow";
913
735
  deny: "deny";
914
- ask: "ask";
915
736
  }>>]>>;
916
- bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
737
+ bash: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
738
+ ask: "ask";
917
739
  allow: "allow";
918
740
  deny: "deny";
741
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
919
742
  ask: "ask";
920
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
921
743
  allow: "allow";
922
744
  deny: "deny";
923
- ask: "ask";
924
745
  }>>]>>;
925
- webfetch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
746
+ webfetch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
747
+ ask: "ask";
926
748
  allow: "allow";
927
749
  deny: "deny";
750
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
928
751
  ask: "ask";
929
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
930
752
  allow: "allow";
931
753
  deny: "deny";
932
- ask: "ask";
933
754
  }>>]>>;
934
- websearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
755
+ websearch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
756
+ ask: "ask";
935
757
  allow: "allow";
936
758
  deny: "deny";
759
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
937
760
  ask: "ask";
938
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
939
761
  allow: "allow";
940
762
  deny: "deny";
941
- ask: "ask";
942
763
  }>>]>>;
943
- task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
764
+ task: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
765
+ ask: "ask";
944
766
  allow: "allow";
945
767
  deny: "deny";
768
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
946
769
  ask: "ask";
947
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
948
770
  allow: "allow";
949
771
  deny: "deny";
950
- ask: "ask";
951
772
  }>>]>>;
952
- todo: z.ZodOptional<z.ZodEnum<{
773
+ todo: z__default.ZodOptional<z__default.ZodEnum<{
774
+ ask: "ask";
953
775
  allow: "allow";
954
776
  deny: "deny";
777
+ }>>;
778
+ question: z__default.ZodOptional<z__default.ZodEnum<{
955
779
  ask: "ask";
780
+ allow: "allow";
781
+ deny: "deny";
956
782
  }>>;
957
- question: z.ZodOptional<z.ZodEnum<{
783
+ skill: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
784
+ ask: "ask";
958
785
  allow: "allow";
959
786
  deny: "deny";
787
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
960
788
  ask: "ask";
961
- }>>;
962
- skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
963
789
  allow: "allow";
964
790
  deny: "deny";
791
+ }>>]>>;
792
+ memory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
965
793
  ask: "ask";
966
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
967
794
  allow: "allow";
968
795
  deny: "deny";
796
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
969
797
  ask: "ask";
970
- }>>]>>;
971
- memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
972
798
  allow: "allow";
973
799
  deny: "deny";
800
+ }>>]>>;
801
+ note: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
974
802
  ask: "ask";
975
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
976
803
  allow: "allow";
977
804
  deny: "deny";
805
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
978
806
  ask: "ask";
979
- }>>]>>;
980
- note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
981
807
  allow: "allow";
982
808
  deny: "deny";
809
+ }>>]>>;
810
+ pty_session: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
983
811
  ask: "ask";
984
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
985
812
  allow: "allow";
986
813
  deny: "deny";
814
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
987
815
  ask: "ask";
988
- }>>]>>;
989
- pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
990
816
  allow: "allow";
991
817
  deny: "deny";
818
+ }>>]>>;
819
+ pty_manage: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
992
820
  ask: "ask";
993
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
994
821
  allow: "allow";
995
822
  deny: "deny";
823
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
996
824
  ask: "ask";
997
- }>>]>>;
998
- pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
999
825
  allow: "allow";
1000
826
  deny: "deny";
827
+ }>>]>>;
828
+ external_directory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1001
829
  ask: "ask";
1002
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1003
830
  allow: "allow";
1004
831
  deny: "deny";
832
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1005
833
  ask: "ask";
834
+ allow: "allow";
835
+ deny: "deny";
1006
836
  }>>]>>;
1007
- external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
837
+ doom_loop: z__default.ZodOptional<z__default.ZodEnum<{
838
+ ask: "ask";
1008
839
  allow: "allow";
1009
840
  deny: "deny";
841
+ }>>;
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<{
1010
848
  ask: "ask";
1011
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1012
849
  allow: "allow";
1013
850
  deny: "deny";
851
+ }>;
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";
859
+ allow: "allow";
860
+ deny: "deny";
861
+ }>;
862
+ }, z__default.core.$strip>>;
863
+ type PermissionRulesetType = z__default.infer<typeof PermissionRulesetSchema>;
864
+ declare const Permission: {
865
+ readonly Action: z__default.ZodEnum<{
1014
866
  ask: "ask";
1015
- }>>]>>;
1016
- doom_loop: z.ZodOptional<z.ZodEnum<{
1017
867
  allow: "allow";
1018
868
  deny: "deny";
869
+ }>;
870
+ readonly Object: z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1019
871
  ask: "ask";
872
+ allow: "allow";
873
+ deny: "deny";
1020
874
  }>>;
1021
- }, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
1022
- allow: "allow";
1023
- deny: "deny";
1024
- ask: "ask";
1025
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1026
- allow: "allow";
1027
- deny: "deny";
1028
- ask: "ask";
1029
- }>>]>>>;
1030
- type AgentPermission = z.infer<typeof AgentPermissionSchema>;
1031
- declare const PermissionActionSchema: z.ZodEnum<{
1032
- allow: "allow";
1033
- deny: "deny";
1034
- ask: "ask";
1035
- }>;
1036
- declare const PermissionRuleSchema: z.ZodUnion<readonly [z.ZodEnum<{
1037
- allow: "allow";
1038
- deny: "deny";
1039
- ask: "ask";
1040
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1041
- allow: "allow";
1042
- deny: "deny";
1043
- ask: "ask";
1044
- }>>]>;
1045
- declare const Permission: {
1046
- readonly Action: z.ZodEnum<{
1047
- allow: "allow";
1048
- deny: "deny";
875
+ readonly Rule: z__default.ZodUnion<readonly [z__default.ZodEnum<{
1049
876
  ask: "ask";
1050
- }>;
1051
- readonly Object: z.ZodRecord<z.ZodString, z.ZodEnum<{
1052
877
  allow: "allow";
1053
878
  deny: "deny";
879
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1054
880
  ask: "ask";
1055
- }>>;
1056
- readonly Rule: z.ZodUnion<readonly [z.ZodEnum<{
1057
881
  allow: "allow";
1058
882
  deny: "deny";
1059
- ask: "ask";
1060
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1061
- allow: "allow";
1062
- deny: "deny";
1063
- ask: "ask";
1064
883
  }>>]>;
1065
- readonly AgentPermissionSchema: z.ZodObject<{
1066
- 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";
1067
887
  allow: "allow";
1068
888
  deny: "deny";
889
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1069
890
  ask: "ask";
1070
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1071
891
  allow: "allow";
1072
892
  deny: "deny";
1073
- ask: "ask";
1074
893
  }>>]>>;
1075
- edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
894
+ edit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
895
+ ask: "ask";
1076
896
  allow: "allow";
1077
897
  deny: "deny";
898
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1078
899
  ask: "ask";
1079
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1080
900
  allow: "allow";
1081
901
  deny: "deny";
1082
- ask: "ask";
1083
902
  }>>]>>;
1084
- write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
903
+ write: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
904
+ ask: "ask";
1085
905
  allow: "allow";
1086
906
  deny: "deny";
907
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1087
908
  ask: "ask";
1088
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1089
909
  allow: "allow";
1090
910
  deny: "deny";
1091
- ask: "ask";
1092
911
  }>>]>>;
1093
- glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
912
+ glob: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
913
+ ask: "ask";
1094
914
  allow: "allow";
1095
915
  deny: "deny";
916
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1096
917
  ask: "ask";
1097
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1098
918
  allow: "allow";
1099
919
  deny: "deny";
1100
- ask: "ask";
1101
920
  }>>]>>;
1102
- grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
921
+ grep: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
922
+ ask: "ask";
1103
923
  allow: "allow";
1104
924
  deny: "deny";
925
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1105
926
  ask: "ask";
1106
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1107
927
  allow: "allow";
1108
928
  deny: "deny";
1109
- ask: "ask";
1110
929
  }>>]>>;
1111
- list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
930
+ list: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
931
+ ask: "ask";
1112
932
  allow: "allow";
1113
933
  deny: "deny";
934
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1114
935
  ask: "ask";
1115
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1116
936
  allow: "allow";
1117
937
  deny: "deny";
1118
- ask: "ask";
1119
938
  }>>]>>;
1120
- bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
939
+ bash: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
940
+ ask: "ask";
1121
941
  allow: "allow";
1122
942
  deny: "deny";
943
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1123
944
  ask: "ask";
1124
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1125
945
  allow: "allow";
1126
946
  deny: "deny";
1127
- ask: "ask";
1128
947
  }>>]>>;
1129
- webfetch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
948
+ webfetch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
949
+ ask: "ask";
1130
950
  allow: "allow";
1131
951
  deny: "deny";
952
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1132
953
  ask: "ask";
1133
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1134
954
  allow: "allow";
1135
955
  deny: "deny";
1136
- ask: "ask";
1137
956
  }>>]>>;
1138
- websearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
957
+ websearch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
958
+ ask: "ask";
1139
959
  allow: "allow";
1140
960
  deny: "deny";
961
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1141
962
  ask: "ask";
1142
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1143
963
  allow: "allow";
1144
964
  deny: "deny";
1145
- ask: "ask";
1146
965
  }>>]>>;
1147
- task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
966
+ task: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
967
+ ask: "ask";
1148
968
  allow: "allow";
1149
969
  deny: "deny";
970
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1150
971
  ask: "ask";
1151
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1152
972
  allow: "allow";
1153
973
  deny: "deny";
1154
- ask: "ask";
1155
974
  }>>]>>;
1156
- todo: z.ZodOptional<z.ZodEnum<{
975
+ todo: z__default.ZodOptional<z__default.ZodEnum<{
976
+ ask: "ask";
1157
977
  allow: "allow";
1158
978
  deny: "deny";
979
+ }>>;
980
+ question: z__default.ZodOptional<z__default.ZodEnum<{
1159
981
  ask: "ask";
982
+ allow: "allow";
983
+ deny: "deny";
1160
984
  }>>;
1161
- question: z.ZodOptional<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
- }>>;
1166
- skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1167
991
  allow: "allow";
1168
992
  deny: "deny";
993
+ }>>]>>;
994
+ memory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1169
995
  ask: "ask";
1170
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1171
996
  allow: "allow";
1172
997
  deny: "deny";
998
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1173
999
  ask: "ask";
1174
- }>>]>>;
1175
- memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1176
1000
  allow: "allow";
1177
1001
  deny: "deny";
1002
+ }>>]>>;
1003
+ note: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1178
1004
  ask: "ask";
1179
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1180
1005
  allow: "allow";
1181
1006
  deny: "deny";
1007
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1182
1008
  ask: "ask";
1183
- }>>]>>;
1184
- note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1185
1009
  allow: "allow";
1186
1010
  deny: "deny";
1011
+ }>>]>>;
1012
+ pty_session: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1187
1013
  ask: "ask";
1188
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1189
1014
  allow: "allow";
1190
1015
  deny: "deny";
1016
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1191
1017
  ask: "ask";
1192
- }>>]>>;
1193
- pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1194
1018
  allow: "allow";
1195
1019
  deny: "deny";
1020
+ }>>]>>;
1021
+ pty_manage: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1196
1022
  ask: "ask";
1197
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1198
1023
  allow: "allow";
1199
1024
  deny: "deny";
1025
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1200
1026
  ask: "ask";
1201
- }>>]>>;
1202
- pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1203
1027
  allow: "allow";
1204
1028
  deny: "deny";
1029
+ }>>]>>;
1030
+ external_directory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1205
1031
  ask: "ask";
1206
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1207
1032
  allow: "allow";
1208
1033
  deny: "deny";
1034
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1209
1035
  ask: "ask";
1210
- }>>]>>;
1211
- external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1212
1036
  allow: "allow";
1213
1037
  deny: "deny";
1038
+ }>>]>>;
1039
+ doom_loop: z__default.ZodOptional<z__default.ZodEnum<{
1214
1040
  ask: "ask";
1215
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1216
1041
  allow: "allow";
1217
1042
  deny: "deny";
1043
+ }>>;
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<{
1218
1048
  ask: "ask";
1219
- }>>]>>;
1220
- doom_loop: z.ZodOptional<z.ZodEnum<{
1221
1049
  allow: "allow";
1222
1050
  deny: "deny";
1051
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1223
1052
  ask: "ask";
1224
- }>>;
1225
- }, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
1226
- allow: "allow";
1227
- deny: "deny";
1228
- ask: "ask";
1229
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1230
- allow: "allow";
1231
- deny: "deny";
1232
- ask: "ask";
1233
- }>>]>>>;
1234
- readonly Config: z.ZodPipe<z.ZodPreprocess<z.ZodUnion<[z.ZodObject<{
1235
- __originalKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
1236
- read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1237
1053
  allow: "allow";
1238
1054
  deny: "deny";
1055
+ }>>]>>;
1056
+ edit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1239
1057
  ask: "ask";
1240
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1241
1058
  allow: "allow";
1242
1059
  deny: "deny";
1060
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1243
1061
  ask: "ask";
1244
- }>>]>>;
1245
- edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1246
1062
  allow: "allow";
1247
1063
  deny: "deny";
1064
+ }>>]>>;
1065
+ glob: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1248
1066
  ask: "ask";
1249
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1250
1067
  allow: "allow";
1251
1068
  deny: "deny";
1069
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1252
1070
  ask: "ask";
1253
- }>>]>>;
1254
- glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1255
1071
  allow: "allow";
1256
1072
  deny: "deny";
1073
+ }>>]>>;
1074
+ grep: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1257
1075
  ask: "ask";
1258
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1259
1076
  allow: "allow";
1260
1077
  deny: "deny";
1078
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1261
1079
  ask: "ask";
1262
- }>>]>>;
1263
- grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1264
1080
  allow: "allow";
1265
1081
  deny: "deny";
1082
+ }>>]>>;
1083
+ list: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1266
1084
  ask: "ask";
1267
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1268
1085
  allow: "allow";
1269
1086
  deny: "deny";
1087
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1270
1088
  ask: "ask";
1271
- }>>]>>;
1272
- list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1273
1089
  allow: "allow";
1274
1090
  deny: "deny";
1091
+ }>>]>>;
1092
+ bash: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1275
1093
  ask: "ask";
1276
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1277
1094
  allow: "allow";
1278
1095
  deny: "deny";
1096
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1279
1097
  ask: "ask";
1280
- }>>]>>;
1281
- bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1282
1098
  allow: "allow";
1283
1099
  deny: "deny";
1100
+ }>>]>>;
1101
+ task: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1284
1102
  ask: "ask";
1285
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1286
1103
  allow: "allow";
1287
1104
  deny: "deny";
1105
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1288
1106
  ask: "ask";
1289
- }>>]>>;
1290
- task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1291
1107
  allow: "allow";
1292
1108
  deny: "deny";
1109
+ }>>]>>;
1110
+ external_directory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1293
1111
  ask: "ask";
1294
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1295
1112
  allow: "allow";
1296
1113
  deny: "deny";
1114
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1297
1115
  ask: "ask";
1116
+ allow: "allow";
1117
+ deny: "deny";
1298
1118
  }>>]>>;
1299
- external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1119
+ todo: z__default.ZodOptional<z__default.ZodEnum<{
1120
+ ask: "ask";
1300
1121
  allow: "allow";
1301
1122
  deny: "deny";
1123
+ }>>;
1124
+ question: z__default.ZodOptional<z__default.ZodEnum<{
1302
1125
  ask: "ask";
1303
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1304
1126
  allow: "allow";
1305
1127
  deny: "deny";
1128
+ }>>;
1129
+ webfetch: z__default.ZodOptional<z__default.ZodEnum<{
1306
1130
  ask: "ask";
1307
- }>>]>>;
1308
- todo: z.ZodOptional<z.ZodEnum<{
1309
1131
  allow: "allow";
1310
1132
  deny: "deny";
1133
+ }>>;
1134
+ websearch: z__default.ZodOptional<z__default.ZodEnum<{
1311
1135
  ask: "ask";
1136
+ allow: "allow";
1137
+ deny: "deny";
1312
1138
  }>>;
1313
- question: z.ZodOptional<z.ZodEnum<{
1139
+ codesearch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1140
+ ask: "ask";
1314
1141
  allow: "allow";
1315
1142
  deny: "deny";
1143
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1316
1144
  ask: "ask";
1317
- }>>;
1318
- webfetch: z.ZodOptional<z.ZodEnum<{
1319
1145
  allow: "allow";
1320
1146
  deny: "deny";
1147
+ }>>]>>;
1148
+ lsp: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1321
1149
  ask: "ask";
1322
- }>>;
1323
- websearch: z.ZodOptional<z.ZodEnum<{
1324
1150
  allow: "allow";
1325
1151
  deny: "deny";
1152
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1326
1153
  ask: "ask";
1327
- }>>;
1328
- codesearch: z.ZodOptional<z.ZodEnum<{
1329
1154
  allow: "allow";
1330
1155
  deny: "deny";
1156
+ }>>]>>;
1157
+ doom_loop: z__default.ZodOptional<z__default.ZodEnum<{
1331
1158
  ask: "ask";
1332
- }>>;
1333
- lsp: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1334
1159
  allow: "allow";
1335
1160
  deny: "deny";
1161
+ }>>;
1162
+ skill: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1336
1163
  ask: "ask";
1337
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1338
1164
  allow: "allow";
1339
1165
  deny: "deny";
1166
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1340
1167
  ask: "ask";
1168
+ allow: "allow";
1169
+ deny: "deny";
1341
1170
  }>>]>>;
1342
- doom_loop: z.ZodOptional<z.ZodEnum<{
1171
+ pty_session: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1172
+ ask: "ask";
1343
1173
  allow: "allow";
1344
1174
  deny: "deny";
1175
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1345
1176
  ask: "ask";
1346
- }>>;
1347
- skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1348
1177
  allow: "allow";
1349
1178
  deny: "deny";
1179
+ }>>]>>;
1180
+ pty_manage: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1350
1181
  ask: "ask";
1351
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1352
1182
  allow: "allow";
1353
1183
  deny: "deny";
1184
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1354
1185
  ask: "ask";
1355
- }>>]>>;
1356
- pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1357
1186
  allow: "allow";
1358
1187
  deny: "deny";
1188
+ }>>]>>;
1189
+ write: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1359
1190
  ask: "ask";
1360
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1361
1191
  allow: "allow";
1362
1192
  deny: "deny";
1193
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1363
1194
  ask: "ask";
1364
- }>>]>>;
1365
- pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1366
1195
  allow: "allow";
1367
1196
  deny: "deny";
1197
+ }>>]>>;
1198
+ multiedit: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1368
1199
  ask: "ask";
1369
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1370
1200
  allow: "allow";
1371
1201
  deny: "deny";
1202
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1372
1203
  ask: "ask";
1373
- }>>]>>;
1374
- write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1375
1204
  allow: "allow";
1376
1205
  deny: "deny";
1206
+ }>>]>>;
1207
+ note: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1377
1208
  ask: "ask";
1378
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1379
1209
  allow: "allow";
1380
1210
  deny: "deny";
1211
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1381
1212
  ask: "ask";
1382
- }>>]>>;
1383
- multiedit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1384
1213
  allow: "allow";
1385
1214
  deny: "deny";
1215
+ }>>]>>;
1216
+ memory: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1386
1217
  ask: "ask";
1387
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1388
1218
  allow: "allow";
1389
1219
  deny: "deny";
1220
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1390
1221
  ask: "ask";
1391
- }>>]>>;
1392
- note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1393
1222
  allow: "allow";
1394
1223
  deny: "deny";
1224
+ }>>]>>;
1225
+ codebase: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1395
1226
  ask: "ask";
1396
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1397
1227
  allow: "allow";
1398
1228
  deny: "deny";
1229
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1399
1230
  ask: "ask";
1400
- }>>]>>;
1401
- memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1402
1231
  allow: "allow";
1403
1232
  deny: "deny";
1233
+ }>>]>>;
1234
+ agent_client: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1404
1235
  ask: "ask";
1405
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1406
1236
  allow: "allow";
1407
1237
  deny: "deny";
1238
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1408
1239
  ask: "ask";
1409
- }>>]>>;
1410
- codebase: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1411
1240
  allow: "allow";
1412
1241
  deny: "deny";
1242
+ }>>]>>;
1243
+ gateway: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1413
1244
  ask: "ask";
1414
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1415
1245
  allow: "allow";
1416
1246
  deny: "deny";
1247
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1417
1248
  ask: "ask";
1418
- }>>]>>;
1419
- agent_client: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1420
1249
  allow: "allow";
1421
1250
  deny: "deny";
1251
+ }>>]>>;
1252
+ apply_patch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1422
1253
  ask: "ask";
1423
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1424
1254
  allow: "allow";
1425
1255
  deny: "deny";
1256
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1426
1257
  ask: "ask";
1427
- }>>]>>;
1428
- gateway: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1429
1258
  allow: "allow";
1430
1259
  deny: "deny";
1260
+ }>>]>>;
1261
+ batch: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1431
1262
  ask: "ask";
1432
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1433
1263
  allow: "allow";
1434
1264
  deny: "deny";
1265
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1435
1266
  ask: "ask";
1436
- }>>]>>;
1437
- apply_patch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1438
1267
  allow: "allow";
1439
1268
  deny: "deny";
1269
+ }>>]>>;
1270
+ plan: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1440
1271
  ask: "ask";
1441
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1442
1272
  allow: "allow";
1443
1273
  deny: "deny";
1274
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1444
1275
  ask: "ask";
1445
- }>>]>>;
1446
- batch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1447
1276
  allow: "allow";
1448
1277
  deny: "deny";
1278
+ }>>]>>;
1279
+ scheduler: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1449
1280
  ask: "ask";
1450
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1451
1281
  allow: "allow";
1452
1282
  deny: "deny";
1283
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1453
1284
  ask: "ask";
1454
- }>>]>>;
1455
- plan: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1456
1285
  allow: "allow";
1457
1286
  deny: "deny";
1287
+ }>>]>>;
1288
+ worktree: z__default.ZodOptional<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1458
1289
  ask: "ask";
1459
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1460
1290
  allow: "allow";
1461
1291
  deny: "deny";
1292
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1462
1293
  ask: "ask";
1294
+ allow: "allow";
1295
+ deny: "deny";
1463
1296
  }>>]>>;
1464
- }, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
1297
+ }, z__default.core.$catchall<z__default.ZodUnion<readonly [z__default.ZodEnum<{
1298
+ ask: "ask";
1465
1299
  allow: "allow";
1466
1300
  deny: "deny";
1301
+ }>, z__default.ZodRecord<z__default.ZodString, z__default.ZodEnum<{
1467
1302
  ask: "ask";
1468
- }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
1469
1303
  allow: "allow";
1470
1304
  deny: "deny";
1305
+ }>>]>>>, z__default.ZodEnum<{
1471
1306
  ask: "ask";
1472
- }>>]>>>, z.ZodEnum<{
1473
1307
  allow: "allow";
1474
1308
  deny: "deny";
1475
- ask: "ask";
1476
- }>]>>, z.ZodTransform<Record<string, "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask">>, "allow" | "deny" | "ask" | {
1477
- [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">;
1478
1311
  __originalKeys?: string[] | undefined;
1479
- read?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1480
- edit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1481
- glob?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1482
- grep?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1483
- list?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1484
- bash?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1485
- task?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1486
- external_directory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1487
- todo?: "allow" | "deny" | "ask" | undefined;
1488
- question?: "allow" | "deny" | "ask" | undefined;
1489
- webfetch?: "allow" | "deny" | "ask" | undefined;
1490
- websearch?: "allow" | "deny" | "ask" | undefined;
1491
- codesearch?: "allow" | "deny" | "ask" | undefined;
1492
- lsp?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1493
- doom_loop?: "allow" | "deny" | "ask" | undefined;
1494
- skill?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1495
- pty_session?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1496
- pty_manage?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1497
- write?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1498
- multiedit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1499
- note?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1500
- memory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1501
- codebase?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1502
- agent_client?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1503
- gateway?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1504
- apply_patch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1505
- batch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
1506
- 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;
1507
1342
  }>>;
1343
+ readonly RuntimeRule: z__default.ZodObject<{
1344
+ permission: z__default.ZodString;
1345
+ pattern: z__default.ZodString;
1346
+ action: z__default.ZodEnum<{
1347
+ ask: "ask";
1348
+ allow: "allow";
1349
+ deny: "deny";
1350
+ }>;
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";
1357
+ allow: "allow";
1358
+ deny: "deny";
1359
+ }>;
1360
+ }, z__default.core.$strip>>;
1508
1361
  };
1509
1362
  type Permission = typeof Permission;
1510
1363
 
1511
- interface AgentModel {
1512
- modelId: string;
1513
- providerId: string;
1514
- }
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>;
1515
1379
  type AgentPromptPart = {
1516
1380
  type: 'text';
1517
1381
  text: string;
@@ -1525,7 +1389,7 @@ type AgentPromptPart = {
1525
1389
  mime?: string;
1526
1390
  } | {
1527
1391
  type: 'memory';
1528
- status: 'pending' | 'processing' | 'completed' | 'failed' | 'skipped';
1392
+ status: 'pending' | 'in_progress' | 'completed' | 'failed' | 'skipped';
1529
1393
  time: {
1530
1394
  start: number;
1531
1395
  end?: number;
@@ -1545,10 +1409,10 @@ interface AgentInput {
1545
1409
  title: string;
1546
1410
  agent?: string;
1547
1411
  model?: AgentModel;
1548
- tools?: Record<string, boolean>;
1549
1412
  system?: string;
1550
1413
  parts: AgentPromptPart[];
1551
1414
  metadata?: Record<string, unknown>;
1415
+ temperature?: number;
1552
1416
  }
1553
1417
  interface AgentResult {
1554
1418
  title: string;
@@ -1562,7 +1426,7 @@ interface AgentResultMetadata {
1562
1426
  type AgentCallback = (result: AgentResult) => Promise<void>;
1563
1427
  interface AgentToolCall {
1564
1428
  name: string;
1565
- status: 'completed' | 'error';
1429
+ status: 'completed' | 'failed';
1566
1430
  output?: unknown;
1567
1431
  error?: string;
1568
1432
  }
@@ -1584,99 +1448,72 @@ interface AgentMessage {
1584
1448
  error?: string;
1585
1449
  };
1586
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>;
1587
1497
 
1588
- type RunMode = 'ephemeral' | 'persistent';
1589
- type TransportType = 'stdio' | 'http' | 'websocket' | 'cli';
1590
- type SubAgentStatus = 'idle' | 'starting' | 'running' | 'busy' | 'stopping' | 'stopped' | 'error';
1591
- interface SubAgentInput extends AgentInput {
1592
- agent: string;
1593
- sessionId?: string;
1594
- syncMessages?: boolean;
1595
- config?: Partial<SubAgentConfig>;
1596
- }
1597
- interface SubAgentResult extends AgentResult {
1598
- userMessage?: unknown;
1599
- assistantMessage?: unknown;
1600
- }
1601
- interface ISubAgentRunner {
1602
- run(input: SubAgentInput): Promise<SubAgentResult>;
1603
- }
1604
- interface SubAgentConfig {
1605
- name: string;
1606
- role: string;
1607
- transport: TransportType;
1608
- runMode: RunMode;
1609
- uri?: string;
1610
- command?: string;
1611
- args?: string[];
1612
- env?: Record<string, string | undefined>;
1613
- timeout?: number;
1614
- maxConcurrent?: number;
1615
- cwd?: string;
1616
- mcpServers?: string[];
1617
- agentConfig?: {
1618
- model?: AgentModel;
1619
- system?: string;
1620
- tools?: Record<string, boolean>;
1621
- };
1622
- }
1623
- interface SubAgentInstance {
1624
- id: string;
1625
- config: SubAgentConfig;
1626
- status: SubAgentStatus;
1627
- sessionId?: string;
1628
- process?: unknown;
1629
- createdAt: number;
1630
- lastActiveAt: number;
1631
- error?: string;
1632
- }
1633
- interface SubAgentEvent {
1634
- type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
1635
- instanceId: string;
1636
- data?: unknown;
1637
- error?: Error;
1638
- timestamp: number;
1639
- }
1640
- interface SubAgentEvent {
1641
- type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
1642
- instanceId: string;
1643
- data?: unknown;
1644
- error?: Error;
1645
- timestamp: number;
1646
- }
1647
- interface SubAgentExecuteOptions {
1648
- onMessage?: (message: AgentMessage) => Promise<void> | void;
1649
- }
1650
- interface SubAgentHandler {
1651
- start(config: SubAgentConfig): Promise<void>;
1652
- stop(): Promise<void>;
1653
- isRunning(): boolean;
1654
- execute(input: SubAgentInput, options?: SubAgentExecuteOptions): Promise<SubAgentResult>;
1655
- interrupt(): Promise<void>;
1656
- checkHealth?(): Promise<boolean>;
1657
- }
1658
-
1659
- type LocalAgentInput = AgentInput;
1660
- type LocalAgentResult = AgentResult;
1661
1498
  type GatewayMessagePromptPart = AgentPromptPart;
1662
- type MessageType = 'input' | 'output' | 'system' | 'control';
1663
- 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';
1664
1501
  interface GatewayMessage {
1665
1502
  id: string;
1666
1503
  sessionId: string;
1667
- type: MessageType;
1504
+ type: GatewayMessageType;
1668
1505
  content: GatewayMessagePromptPart[];
1669
- metadata: MessageMetadata;
1506
+ metadata: GatewayMessageMetadata;
1670
1507
  timestamp: number;
1671
1508
  }
1672
- interface MessageMetadata {
1673
- channel: ChannelInfo;
1674
- context?: MessageContext;
1509
+ interface GatewayMessageMetadata {
1510
+ channel: GatewayChannelInfo;
1511
+ context?: GatewayMessageContext;
1675
1512
  agent?: string;
1676
1513
  [key: string]: unknown;
1677
1514
  }
1678
- interface ChannelInfo {
1679
- platform: PlatformType;
1515
+ interface GatewayChannelInfo {
1516
+ platform: GatewayPlatformType;
1680
1517
  channelId: string;
1681
1518
  userId?: string;
1682
1519
  chatId?: string;
@@ -1684,32 +1521,26 @@ interface ChannelInfo {
1684
1521
  chatTitle?: string;
1685
1522
  [key: string]: unknown;
1686
1523
  }
1687
- interface ChannelPluginInfo {
1524
+ interface GatewayChannelPluginInfo {
1688
1525
  id: string;
1689
- platform: PlatformType;
1526
+ platform: GatewayPlatformType;
1690
1527
  name: string;
1691
1528
  version?: string;
1692
1529
  }
1693
- interface ChannelListResponse {
1694
- channels: ChannelPluginInfo[];
1530
+ interface GatewayChannelListResponse {
1531
+ channels: GatewayChannelPluginInfo[];
1695
1532
  total: number;
1696
1533
  }
1697
- interface MessageContext {
1534
+ interface GatewayMessageContext {
1698
1535
  replyTo?: string;
1699
1536
  threadId?: string;
1700
1537
  conversationId?: string;
1701
1538
  [key: string]: unknown;
1702
1539
  }
1703
- interface AgentInfo {
1704
- id?: string;
1705
- name?: string;
1706
- model?: string;
1707
- [key: string]: unknown;
1708
- }
1709
1540
  interface GatewayMessageReceiveInput {
1710
1541
  id: string;
1711
1542
  sessionId: string;
1712
- type: MessageType;
1543
+ type: GatewayMessageType;
1713
1544
  content: string | GatewayMessagePromptPart[];
1714
1545
  channel?: {
1715
1546
  platform?: string;
@@ -1727,7 +1558,7 @@ interface GatewayMessageReceiveInput {
1727
1558
  interface GatewayMessageSendInput {
1728
1559
  id: string;
1729
1560
  sessionId: string;
1730
- type: MessageType;
1561
+ type: GatewayMessageType;
1731
1562
  content?: GatewayMessagePromptPart[];
1732
1563
  channel: {
1733
1564
  platform: string;
@@ -1757,10 +1588,1277 @@ interface GatewayMessageReadInput {
1757
1588
  };
1758
1589
  timestamp: number;
1759
1590
  }
1760
- interface MessageStorage {
1591
+ interface GatewayMessageStorage {
1761
1592
  store(msg: GatewayMessageReceiveInput): Promise<void>;
1762
1593
  updateStatus(id: string, status: string, metadata?: Record<string, unknown>): Promise<void>;
1763
1594
  }
1595
+ interface IGatewayServer {
1596
+ start(): Promise<void>;
1597
+ stop(): Promise<void>;
1598
+ getStatus(): {
1599
+ running: boolean;
1600
+ port?: number;
1601
+ hostname?: string;
1602
+ connections?: number;
1603
+ };
1604
+ }
1605
+ type GatewayAgentHealthStatus = 'healthy' | 'unhealthy' | 'offline';
1606
+ interface GatewayAgentRegistration {
1607
+ id: string;
1608
+ name: string;
1609
+ capabilities: string[];
1610
+ address: string;
1611
+ status: GatewayAgentHealthStatus;
1612
+ lastHeartbeat: number;
1613
+ registeredAt: number;
1614
+ connectionCount: number;
1615
+ metadata?: Record<string, unknown>;
1616
+ }
1617
+ type GatewayAgentRegistrationRequest = Omit<GatewayAgentRegistration, 'registeredAt' | 'lastHeartbeat' | 'connectionCount' | 'status'>;
1618
+ type GatewayAgentSelectionStrategy = 'random' | 'round-robin' | 'least-connections';
1619
+ interface GatewayAgentSelectionOptions {
1620
+ strategy: GatewayAgentSelectionStrategy;
1621
+ capabilities?: string[];
1622
+ healthyOnly?: boolean;
1623
+ }
1624
+ interface GatewayAgentHeartbeat {
1625
+ agentId: string;
1626
+ timestamp: number;
1627
+ status: GatewayAgentHealthStatus;
1628
+ metrics?: {
1629
+ cpuUsage?: number;
1630
+ memoryUsage?: number;
1631
+ connectionCount?: number;
1632
+ messageQueueLength?: number;
1633
+ };
1634
+ }
1635
+ interface GatewayAgentSelectionRecord {
1636
+ sessionId: string;
1637
+ messageId: string;
1638
+ agentId: string;
1639
+ selectedAt: number;
1640
+ strategy: GatewayAgentSelectionStrategy;
1641
+ }
1642
+ interface GatewayAgentRegistryStats {
1643
+ totalAgents: number;
1644
+ healthyAgents: number;
1645
+ unhealthyAgents: number;
1646
+ offlineAgents: number;
1647
+ totalConnections: number;
1648
+ }
1649
+ interface GatewayAgentSyncInfo {
1650
+ id: string;
1651
+ name: string;
1652
+ sourceGatewayId: string;
1653
+ address: string;
1654
+ capabilities: string[];
1655
+ status: GatewayAgentHealthStatus;
1656
+ updatedAt: number;
1657
+ metadata?: Record<string, unknown>;
1658
+ }
1659
+ type GatewayAgentSyncMode = 'pull' | 'push' | 'both';
1660
+ type GatewayAgentSyncPushEventType = 'register' | 'deregister' | 'heartbeat' | 'status_change';
1661
+ type GatewayAgentSyncConflictResolutionStrategy = 'latest' | 'local' | 'remote';
1662
+ interface GatewayAgentListRequestMessage {
1663
+ type: 'agent_list_request';
1664
+ requestId: string;
1665
+ sourceNodeId: string;
1666
+ timestamp: number;
1667
+ incremental?: boolean;
1668
+ lastSyncAt?: number;
1669
+ }
1670
+ interface GatewayAgentListResponseMessage {
1671
+ type: 'agent_list_response';
1672
+ requestId: string;
1673
+ sourceNodeId: string;
1674
+ timestamp: number;
1675
+ agents: GatewayAgentSyncInfo[];
1676
+ fullList: boolean;
1677
+ syncAt: number;
1678
+ }
1679
+ interface GatewayAgentRegisterMessage {
1680
+ type: 'agent_register';
1681
+ sourceNodeId: string;
1682
+ timestamp: number;
1683
+ agent: GatewayAgentSyncInfo;
1684
+ }
1685
+ interface GatewayAgentDeregisterMessage {
1686
+ type: 'agent_deregister';
1687
+ sourceNodeId: string;
1688
+ timestamp: number;
1689
+ agentId: string;
1690
+ }
1691
+ interface GatewayAgentHeartbeatSyncMessage {
1692
+ type: 'agent_heartbeat';
1693
+ sourceNodeId: string;
1694
+ timestamp: number;
1695
+ agentId: string;
1696
+ heartbeatAt: number;
1697
+ status: GatewayAgentHealthStatus;
1698
+ }
1699
+ interface GatewayAgentStatusChangeMessage {
1700
+ type: 'agent_status_change';
1701
+ sourceNodeId: string;
1702
+ timestamp: number;
1703
+ agentId: string;
1704
+ oldStatus: GatewayAgentHealthStatus;
1705
+ newStatus: GatewayAgentHealthStatus;
1706
+ changedAt: number;
1707
+ }
1708
+ type GatewayAgentSyncMessage = GatewayAgentListRequestMessage | GatewayAgentListResponseMessage | GatewayAgentRegisterMessage | GatewayAgentDeregisterMessage | GatewayAgentHeartbeatSyncMessage | GatewayAgentStatusChangeMessage;
1709
+ interface GatewayNodeInfo {
1710
+ id: string;
1711
+ name: string;
1712
+ address: string;
1713
+ port: number;
1714
+ lastSyncAt: number;
1715
+ status: 'online' | 'offline' | 'unknown';
1716
+ metadata?: Record<string, unknown>;
1717
+ }
1718
+ interface GatewayAgentSyncState {
1719
+ localNodeId: string;
1720
+ remoteNodes: Map<string, {
1721
+ info: GatewayNodeInfo;
1722
+ lastSyncAt: number;
1723
+ status: 'syncing' | 'synced' | 'error';
1724
+ error?: string;
1725
+ }>;
1726
+ localAgents: Map<string, GatewayAgentSyncInfo>;
1727
+ remoteAgents: Map<string, GatewayAgentSyncInfo>;
1728
+ }
1729
+ interface GatewayAgentSyncStats {
1730
+ localAgentCount: number;
1731
+ remoteAgentCount: number;
1732
+ totalAgentCount: number;
1733
+ onlineNodeCount: number;
1734
+ offlineNodeCount: number;
1735
+ lastSyncAt: number | null;
1736
+ }
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>;
2470
+
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>;
2508
+
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<{
2520
+ general: "general";
2521
+ coder: "coder";
2522
+ }>>;
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<{
2534
+ added: "added";
2535
+ deleted: "deleted";
2536
+ modified: "modified";
2537
+ renamed: "renamed";
2538
+ }>>;
2539
+ oldPath: z__default.ZodOptional<z__default.ZodString>;
2540
+ }, z__default.core.$strip>>>;
2541
+ noSnapshotReason: z__default.ZodOptional<z__default.ZodEnum<{
2542
+ "no-messages": "no-messages";
2543
+ "missing-from": "missing-from";
2544
+ "missing-to": "missing-to";
2545
+ }>>;
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";
2563
+ allow: "allow";
2564
+ deny: "deny";
2565
+ }>;
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<{
2586
+ general: "general";
2587
+ coder: "coder";
2588
+ }>>;
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<{
2600
+ added: "added";
2601
+ deleted: "deleted";
2602
+ modified: "modified";
2603
+ renamed: "renamed";
2604
+ }>>;
2605
+ oldPath: z__default.ZodOptional<z__default.ZodString>;
2606
+ }, z__default.core.$strip>>>;
2607
+ noSnapshotReason: z__default.ZodOptional<z__default.ZodEnum<{
2608
+ "no-messages": "no-messages";
2609
+ "missing-from": "missing-from";
2610
+ "missing-to": "missing-to";
2611
+ }>>;
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";
2629
+ allow: "allow";
2630
+ deny: "deny";
2631
+ }>;
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>;
2670
+ declare const Session: {
2671
+ readonly ContextModeValues: ("general" | "coder")[];
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<{
2679
+ general: "general";
2680
+ coder: "coder";
2681
+ }>>;
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<{
2693
+ added: "added";
2694
+ deleted: "deleted";
2695
+ modified: "modified";
2696
+ renamed: "renamed";
2697
+ }>>;
2698
+ oldPath: z__default.ZodOptional<z__default.ZodString>;
2699
+ }, z__default.core.$strip>>>;
2700
+ noSnapshotReason: z__default.ZodOptional<z__default.ZodEnum<{
2701
+ "no-messages": "no-messages";
2702
+ "missing-from": "missing-from";
2703
+ "missing-to": "missing-to";
2704
+ }>>;
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";
2722
+ allow: "allow";
2723
+ deny: "deny";
2724
+ }>;
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<{
2744
+ general: "general";
2745
+ coder: "coder";
2746
+ }>>;
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<{
2758
+ added: "added";
2759
+ deleted: "deleted";
2760
+ modified: "modified";
2761
+ renamed: "renamed";
2762
+ }>>;
2763
+ oldPath: z__default.ZodOptional<z__default.ZodString>;
2764
+ }, z__default.core.$strip>>>;
2765
+ noSnapshotReason: z__default.ZodOptional<z__default.ZodEnum<{
2766
+ "no-messages": "no-messages";
2767
+ "missing-from": "missing-from";
2768
+ "missing-to": "missing-to";
2769
+ }>>;
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";
2787
+ allow: "allow";
2788
+ deny: "deny";
2789
+ }>;
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>;
2826
+ };
2827
+
2828
+ type ContextMode = 'general' | 'coder';
2829
+ declare const ContextModeEnum: {
2830
+ readonly General: "general";
2831
+ readonly Coder: "coder";
2832
+ };
2833
+ declare const ContextModeValues: ContextMode[];
2834
+ declare const DefaultContextMode: ContextMode;
2835
+ declare const ScopeEnum: {
2836
+ readonly General: "general";
2837
+ readonly Coder: "coder";
2838
+ readonly All: "all";
2839
+ };
2840
+ type Scope = (typeof ScopeEnum)[keyof typeof ScopeEnum];
2841
+ declare const ScopeValues: Scope[];
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
+ }
1764
2862
  interface IGlobal {
1765
2863
  Path: {
1766
2864
  home: string;
@@ -1770,136 +2868,13 @@ interface IGlobal {
1770
2868
  state: string;
1771
2869
  log: string;
1772
2870
  bin: string;
2871
+ temp?: string;
1773
2872
  };
1774
2873
  }
1775
- interface GatewayConfig {
1776
- server?: {
1777
- enabled?: boolean;
1778
- port?: number;
1779
- hostname?: string;
1780
- [key: string]: unknown;
1781
- };
1782
- [key: string]: unknown;
1783
- }
1784
- interface GatewayServerConfig {
1785
- port: number;
1786
- hostname: string;
1787
- [key: string]: unknown;
1788
- }
1789
2874
  interface IInstance {
1790
2875
  directory: string;
1791
2876
  worktree: string;
1792
2877
  }
1793
- type GatewayHookHandler = (event: {
1794
- name: string;
1795
- data?: unknown;
1796
- }) => Promise<void> | void;
1797
- interface IHookRegistry {
1798
- on(event: string, handler: GatewayHookHandler): void;
1799
- off(event: string, handler: GatewayHookHandler): void;
1800
- emit(event: {
1801
- name: string;
1802
- data?: unknown;
1803
- }): Promise<void>;
1804
- }
1805
- interface ILocalAgentRunner {
1806
- run(input: AgentInput): Promise<AgentResult>;
1807
- }
1808
- interface ILocalAgentRunner {
1809
- run(input: LocalAgentInput): Promise<LocalAgentResult>;
1810
- }
1811
- interface AgentAdapter {
1812
- subAgentRunner: ISubAgentRunner;
1813
- localAgentRunner: ILocalAgentRunner;
1814
- hookRegistry: {
1815
- triggerEvent<T = unknown>(event: string, input: T, context?: Record<string, unknown>): Promise<{
1816
- success: boolean;
1817
- output: T;
1818
- modified: boolean;
1819
- }>;
1820
- };
1821
- global: IGlobal;
1822
- instance: IInstance;
1823
- sdk: EasbotClient;
1824
- }
1825
- interface IGatewayServer {
1826
- start(): Promise<void>;
1827
- stop(): Promise<void>;
1828
- getStatus(): {
1829
- running: boolean;
1830
- port?: number;
1831
- hostname?: string;
1832
- connections?: number;
1833
- };
1834
- }
1835
-
1836
- type gateway_AgentAdapter = AgentAdapter;
1837
- type gateway_AgentInfo = AgentInfo;
1838
- type gateway_ChannelInfo = ChannelInfo;
1839
- type gateway_ChannelListResponse = ChannelListResponse;
1840
- type gateway_ChannelPluginInfo = ChannelPluginInfo;
1841
- type gateway_GatewayConfig = GatewayConfig;
1842
- type gateway_GatewayHookHandler = GatewayHookHandler;
1843
- type gateway_GatewayMessage = GatewayMessage;
1844
- type gateway_GatewayMessageDeliveredInput = GatewayMessageDeliveredInput;
1845
- type gateway_GatewayMessagePromptPart = GatewayMessagePromptPart;
1846
- type gateway_GatewayMessageReadInput = GatewayMessageReadInput;
1847
- type gateway_GatewayMessageReceiveInput = GatewayMessageReceiveInput;
1848
- type gateway_GatewayMessageSendInput = GatewayMessageSendInput;
1849
- type gateway_GatewayServerConfig = GatewayServerConfig;
1850
- type gateway_IGatewayServer = IGatewayServer;
1851
- type gateway_IGlobal = IGlobal;
1852
- type gateway_IHookRegistry = IHookRegistry;
1853
- type gateway_IInstance = IInstance;
1854
- type gateway_ILocalAgentRunner = ILocalAgentRunner;
1855
- type gateway_LocalAgentInput = LocalAgentInput;
1856
- type gateway_LocalAgentResult = LocalAgentResult;
1857
- type gateway_MessageContext = MessageContext;
1858
- type gateway_MessageMetadata = MessageMetadata;
1859
- type gateway_MessageStorage = MessageStorage;
1860
- type gateway_MessageType = MessageType;
1861
- type gateway_PlatformType = PlatformType;
1862
- declare namespace gateway {
1863
- export type { gateway_AgentAdapter as AgentAdapter, gateway_AgentInfo as AgentInfo, 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_GatewayServerConfig as GatewayServerConfig, 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 };
1864
- }
1865
-
1866
- declare const ProjectIconSchema: z.ZodObject<{
1867
- url: z.ZodOptional<z.ZodString>;
1868
- override: z.ZodOptional<z.ZodString>;
1869
- color: z.ZodOptional<z.ZodString>;
1870
- }, z.core.$strip>;
1871
- type ProjectIcon = z.infer<typeof ProjectIconSchema>;
1872
- declare const ProjectCommandsSchema: z.ZodObject<{
1873
- start: z.ZodOptional<z.ZodString>;
1874
- }, z.core.$strip>;
1875
- type ProjectCommands = z.infer<typeof ProjectCommandsSchema>;
1876
- declare const ProjectTimeSchema: z.ZodObject<{
1877
- created: z.ZodNumber;
1878
- updated: z.ZodNumber;
1879
- initialized: z.ZodOptional<z.ZodNumber>;
1880
- }, z.core.$strip>;
1881
- type ProjectTime = z.infer<typeof ProjectTimeSchema>;
1882
- declare const ProjectInfoSchema: z.ZodObject<{
1883
- id: z.ZodString;
1884
- worktree: z.ZodString;
1885
- vcs: z.ZodOptional<z.ZodLiteral<"git">>;
1886
- name: z.ZodOptional<z.ZodString>;
1887
- icon: z.ZodOptional<z.ZodObject<{
1888
- url: z.ZodOptional<z.ZodString>;
1889
- override: z.ZodOptional<z.ZodString>;
1890
- color: z.ZodOptional<z.ZodString>;
1891
- }, z.core.$strip>>;
1892
- commands: z.ZodOptional<z.ZodObject<{
1893
- start: z.ZodOptional<z.ZodString>;
1894
- }, z.core.$strip>>;
1895
- time: z.ZodObject<{
1896
- created: z.ZodNumber;
1897
- updated: z.ZodNumber;
1898
- initialized: z.ZodOptional<z.ZodNumber>;
1899
- }, z.core.$strip>;
1900
- sandboxes: z.ZodArray<z.ZodString>;
1901
- }, z.core.$strip>;
1902
- type ProjectInfo = z.infer<typeof ProjectInfoSchema>;
1903
2878
 
1904
2879
  type ShellFunction = (input: Uint8Array) => Uint8Array;
1905
2880
  type ShellExpression = {
@@ -1926,6 +2901,7 @@ interface EasbotShellPromise extends Promise<EasbotShellOutput> {
1926
2901
  json(): Promise<unknown>;
1927
2902
  arrayBuffer(): Promise<ArrayBuffer>;
1928
2903
  blob(): Promise<Blob>;
2904
+ stdinData(data: string | Buffer): this;
1929
2905
  nothrow(): this;
1930
2906
  throws(shouldThrow: boolean): this;
1931
2907
  }
@@ -1987,6 +2963,239 @@ interface ITool {
1987
2963
  execute(args: Record<string, unknown>, context: ToolContext): Promise<string>;
1988
2964
  }
1989
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
+
1990
3199
  interface EmbeddingConfig {
1991
3200
  provider: 'easbot-local' | 'local' | 'openai' | 'ollama';
1992
3201
  model: string;
@@ -2059,8 +3268,8 @@ interface MemoryKnowledgeConfig extends BaseKnowledgeConfig {
2059
3268
  shortTermMaxRounds?: number;
2060
3269
  }
2061
3270
  interface MemoryKnowledgeConfigWithModels extends MemoryKnowledgeConfig {
2062
- embeddingLlm?: EmbeddingModel;
2063
- graphLlm?: LanguageModel;
3271
+ embeddingLlm?: EmbeddingModelRef;
3272
+ graphLlm?: LanguageModelRef;
2064
3273
  }
2065
3274
  type NoteKnowledgeSource = string;
2066
3275
  interface NoteKnowledgeConfig extends BaseKnowledgeConfig {
@@ -2074,15 +3283,10 @@ interface NoteKnowledgeConfig extends BaseKnowledgeConfig {
2074
3283
  graph?: GraphLlmConfig;
2075
3284
  rerank?: RerankLlmConfig;
2076
3285
  }
2077
- declare const DEFAULT_NOTE_CHUNK_CONFIG: {
2078
- readonly chunkSize: 1024;
2079
- readonly chunkOverlap: 102;
2080
- readonly minChunkLength: 100;
2081
- };
2082
3286
  interface NoteKnowledgeConfigWithModels extends NoteKnowledgeConfig {
2083
- embeddingLlm?: EmbeddingModel;
2084
- graphLlm?: LanguageModel;
2085
- rerankLlm?: RerankingModel;
3287
+ embeddingLlm?: EmbeddingModelRef;
3288
+ graphLlm?: LanguageModelRef;
3289
+ rerankLlm?: RerankingModelRef;
2086
3290
  }
2087
3291
  interface CodebaseKnowledgeConfig extends BaseKnowledgeConfig {
2088
3292
  parser: ParserConfig;
@@ -2090,11 +3294,9 @@ interface CodebaseKnowledgeConfig extends BaseKnowledgeConfig {
2090
3294
  sync?: SyncConfig;
2091
3295
  }
2092
3296
  interface CodebaseKnowledgeConfigWithModels extends CodebaseKnowledgeConfig {
2093
- embeddingLlm: EmbeddingModel;
2094
- graphLlm?: LanguageModel;
3297
+ embeddingLlm: EmbeddingModelRef;
3298
+ evaluationLlm?: LanguageModelRef;
2095
3299
  }
2096
- declare function getDefaultDatabasePath(xdgData: string, dbName: string): string;
2097
- declare function getWorkspaceDatabasePath(workspaceDir: string, dbName: string): string;
2098
3300
  type KnowledgeSearchSource = 'vector' | 'fts' | 'graph' | 'hybrid' | 'reranked';
2099
3301
  interface KnowledgeSearchOptions {
2100
3302
  maxResults?: number;
@@ -2219,15 +3421,17 @@ interface KnowledgeDoctorResult {
2219
3421
  }
2220
3422
  interface KnowledgeLlmCapabilities {
2221
3423
  embedding?: boolean;
2222
- graphLlm?: boolean;
2223
- rerankLlm?: boolean;
3424
+ evaluation?: boolean;
3425
+ rerank?: boolean;
3426
+ language?: boolean;
2224
3427
  }
2225
3428
  interface KnowledgeLlmStatus {
2226
3429
  initialized: boolean;
2227
3430
  capabilities: KnowledgeLlmCapabilities;
2228
3431
  embeddingModel?: string;
2229
- graphModel?: string;
3432
+ evaluationModel?: string;
2230
3433
  rerankModel?: string;
3434
+ languageModel?: string;
2231
3435
  providerId?: string;
2232
3436
  }
2233
3437
  interface KnowledgeStatus {
@@ -2269,15 +3473,656 @@ declare const KNOWLEDGE_DOCTOR_PUBLIC_CHECKS: readonly ["database", "fts", "vect
2269
3473
  type KnowledgeDoctorPublicCheck = (typeof KNOWLEDGE_DOCTOR_PUBLIC_CHECKS)[number];
2270
3474
  declare const EMBEDDING_DIMS_CONSISTENCY_CHECK: "embeddingDims_consistency";
2271
3475
 
2272
- type PromptPart = {
2273
- type: 'text';
2274
- text: string;
2275
- } | {
2276
- type: 'file';
2277
- url: string;
2278
- filename?: string;
2279
- source?: string;
2280
- mime?: string;
3476
+ type RunMode = 'ephemeral' | 'persistent';
3477
+ type TransportType = 'stdio' | 'http' | 'websocket' | 'cli';
3478
+ type SubAgentStatus = 'idle' | 'starting' | 'running' | 'busy' | 'stopping' | 'stopped' | 'error';
3479
+ interface SubAgentInput extends AgentInput {
3480
+ agent: string;
3481
+ sessionId?: string;
3482
+ syncMessages?: boolean;
3483
+ config?: Partial<SubAgentConfig>;
3484
+ }
3485
+ interface SubAgentResult extends AgentResult {
3486
+ userMessage?: unknown;
3487
+ assistantMessage?: unknown;
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
+ }
3496
+ interface ISubAgentRunner {
3497
+ run(input: SubAgentInput): Promise<SubAgentResult>;
3498
+ }
3499
+ interface SubAgentConfig {
3500
+ name: string;
3501
+ role: string;
3502
+ transport: TransportType;
3503
+ runMode: RunMode;
3504
+ uri?: string;
3505
+ command?: string;
3506
+ args?: string[];
3507
+ env?: Record<string, string | undefined>;
3508
+ timeout?: number;
3509
+ maxConcurrent?: number;
3510
+ cwd?: string;
3511
+ mcpServers?: string[];
3512
+ agentConfig?: {
3513
+ agent?: string;
3514
+ model?: string;
3515
+ system?: string;
3516
+ tools?: Record<string, boolean>;
3517
+ };
3518
+ }
3519
+ interface SubAgentInstance {
3520
+ id: string;
3521
+ config: SubAgentConfig;
3522
+ status: SubAgentStatus;
3523
+ sessionId?: string;
3524
+ process?: unknown;
3525
+ createdAt: number;
3526
+ lastActiveAt: number;
3527
+ error?: string;
3528
+ }
3529
+ interface SubAgentExecuteOptions {
3530
+ onMessage?: (message: AgentMessage) => Promise<void> | void;
3531
+ }
3532
+ interface SubAgentHandler {
3533
+ start(config: SubAgentConfig): Promise<void>;
3534
+ stop(): Promise<void>;
3535
+ isRunning(): boolean;
3536
+ execute(input: SubAgentInput, options?: SubAgentExecuteOptions): Promise<SubAgentResult>;
3537
+ interrupt(): Promise<void>;
3538
+ checkHealth?(): Promise<boolean>;
3539
+ }
3540
+
3541
+ declare const ChannelType: {
3542
+ readonly STDIO: "stdio";
3543
+ readonly HTTP: "http";
3544
+ readonly WS: "websocket";
2281
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
+ }>;
3552
+ declare const ACPStdioConnectionConfigSchema: z$1.ZodObject<{
3553
+ command: z$1.ZodString;
3554
+ args: z$1.ZodArray<z$1.ZodString>;
3555
+ }, z$1.core.$strip>;
3556
+ declare const ACPHttpConnectionConfigSchema: z$1.ZodObject<{
3557
+ baseUrl: z$1.ZodString;
3558
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3559
+ }, z$1.core.$strip>;
3560
+ declare const ACPWebSocketConnectionConfigSchema: z$1.ZodObject<{
3561
+ url: z$1.ZodString;
3562
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3563
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
3564
+ batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
3565
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
3566
+ }, z$1.core.$strip>;
3567
+ declare const ACPConnectionConfigSchema: z$1.ZodObject<{
3568
+ stdio: z$1.ZodOptional<z$1.ZodObject<{
3569
+ command: z$1.ZodString;
3570
+ args: z$1.ZodArray<z$1.ZodString>;
3571
+ }, z$1.core.$strip>>;
3572
+ http: z$1.ZodOptional<z$1.ZodObject<{
3573
+ baseUrl: z$1.ZodString;
3574
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3575
+ }, z$1.core.$strip>>;
3576
+ ws: z$1.ZodOptional<z$1.ZodObject<{
3577
+ url: z$1.ZodString;
3578
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3579
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
3580
+ batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
3581
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
3582
+ }, z$1.core.$strip>>;
3583
+ }, z$1.core.$strip>;
3584
+ declare const ACPModelConfigSchema: z$1.ZodObject<{
3585
+ id: z$1.ZodString;
3586
+ options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3587
+ }, z$1.core.$strip>;
3588
+ declare const ACPAgentRuntimeConfigSchema: z$1.ZodObject<{
3589
+ agent: z$1.ZodOptional<z$1.ZodString>;
3590
+ model: z$1.ZodOptional<z$1.ZodObject<{
3591
+ id: z$1.ZodString;
3592
+ options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3593
+ }, z$1.core.$strip>>;
3594
+ }, z$1.core.$strip>;
3595
+ declare const ACPServerConfigSchema: z$1.ZodObject<{
3596
+ directory: z$1.ZodDefault<z$1.ZodString>;
3597
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
3598
+ channel: z$1.ZodDefault<z$1.ZodEnum<{
3599
+ http: "http";
3600
+ websocket: "websocket";
3601
+ stdio: "stdio";
3602
+ }>>;
3603
+ port: z$1.ZodDefault<z$1.ZodNumber>;
3604
+ hostname: z$1.ZodDefault<z$1.ZodCustomStringFormat<"hostname">>;
3605
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3606
+ name: z$1.ZodOptional<z$1.ZodString>;
3607
+ agentId: z$1.ZodOptional<z$1.ZodString>;
3608
+ stdio: z$1.ZodOptional<z$1.ZodObject<{
3609
+ command: z$1.ZodString;
3610
+ args: z$1.ZodArray<z$1.ZodString>;
3611
+ }, z$1.core.$strip>>;
3612
+ http: z$1.ZodOptional<z$1.ZodObject<{
3613
+ baseUrl: z$1.ZodString;
3614
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3615
+ }, z$1.core.$strip>>;
3616
+ ws: z$1.ZodOptional<z$1.ZodObject<{
3617
+ url: z$1.ZodString;
3618
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3619
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
3620
+ batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
3621
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
3622
+ }, z$1.core.$strip>>;
3623
+ agent: z$1.ZodOptional<z$1.ZodObject<{
3624
+ agent: z$1.ZodOptional<z$1.ZodString>;
3625
+ model: z$1.ZodOptional<z$1.ZodObject<{
3626
+ id: z$1.ZodString;
3627
+ options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3628
+ }, z$1.core.$strip>>;
3629
+ }, z$1.core.$strip>>;
3630
+ }, z$1.core.$strip>;
3631
+ declare const ACPClientConfigSchema: z$1.ZodObject<{
3632
+ id: z$1.ZodString;
3633
+ type: z$1.ZodEnum<{
3634
+ custom: "custom";
3635
+ easbot: "easbot";
3636
+ }>;
3637
+ name: z$1.ZodOptional<z$1.ZodString>;
3638
+ agentId: z$1.ZodOptional<z$1.ZodString>;
3639
+ channel: z$1.ZodOptional<z$1.ZodEnum<{
3640
+ http: "http";
3641
+ websocket: "websocket";
3642
+ stdio: "stdio";
3643
+ }>>;
3644
+ connection: z$1.ZodObject<{
3645
+ stdio: z$1.ZodOptional<z$1.ZodObject<{
3646
+ command: z$1.ZodString;
3647
+ args: z$1.ZodArray<z$1.ZodString>;
3648
+ }, z$1.core.$strip>>;
3649
+ http: z$1.ZodOptional<z$1.ZodObject<{
3650
+ baseUrl: z$1.ZodString;
3651
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3652
+ }, z$1.core.$strip>>;
3653
+ ws: z$1.ZodOptional<z$1.ZodObject<{
3654
+ url: z$1.ZodString;
3655
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3656
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
3657
+ batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
3658
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
3659
+ }, z$1.core.$strip>>;
3660
+ }, z$1.core.$strip>;
3661
+ autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
3662
+ priority: z$1.ZodDefault<z$1.ZodNumber>;
3663
+ }, z$1.core.$strip>;
3664
+ declare const ACPClientsConfigSchema: z$1.ZodObject<{
3665
+ clients: z$1.ZodArray<z$1.ZodObject<{
3666
+ id: z$1.ZodString;
3667
+ type: z$1.ZodEnum<{
3668
+ custom: "custom";
3669
+ easbot: "easbot";
3670
+ }>;
3671
+ name: z$1.ZodOptional<z$1.ZodString>;
3672
+ agentId: z$1.ZodOptional<z$1.ZodString>;
3673
+ channel: z$1.ZodOptional<z$1.ZodEnum<{
3674
+ http: "http";
3675
+ websocket: "websocket";
3676
+ stdio: "stdio";
3677
+ }>>;
3678
+ connection: z$1.ZodObject<{
3679
+ stdio: z$1.ZodOptional<z$1.ZodObject<{
3680
+ command: z$1.ZodString;
3681
+ args: z$1.ZodArray<z$1.ZodString>;
3682
+ }, z$1.core.$strip>>;
3683
+ http: z$1.ZodOptional<z$1.ZodObject<{
3684
+ baseUrl: z$1.ZodString;
3685
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3686
+ }, z$1.core.$strip>>;
3687
+ ws: z$1.ZodOptional<z$1.ZodObject<{
3688
+ url: z$1.ZodString;
3689
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3690
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
3691
+ batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
3692
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
3693
+ }, z$1.core.$strip>>;
3694
+ }, z$1.core.$strip>;
3695
+ autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
3696
+ priority: z$1.ZodDefault<z$1.ZodNumber>;
3697
+ }, z$1.core.$strip>>;
3698
+ defaultClientId: z$1.ZodOptional<z$1.ZodString>;
3699
+ }, z$1.core.$strip>;
3700
+ declare const ACPInfoACPServerConfigSchema: z$1.ZodObject<{
3701
+ server: z$1.ZodObject<{
3702
+ directory: z$1.ZodDefault<z$1.ZodString>;
3703
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
3704
+ channel: z$1.ZodDefault<z$1.ZodEnum<{
3705
+ http: "http";
3706
+ websocket: "websocket";
3707
+ stdio: "stdio";
3708
+ }>>;
3709
+ port: z$1.ZodDefault<z$1.ZodNumber>;
3710
+ hostname: z$1.ZodDefault<z$1.ZodCustomStringFormat<"hostname">>;
3711
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3712
+ name: z$1.ZodOptional<z$1.ZodString>;
3713
+ agentId: z$1.ZodOptional<z$1.ZodString>;
3714
+ stdio: z$1.ZodOptional<z$1.ZodObject<{
3715
+ command: z$1.ZodString;
3716
+ args: z$1.ZodArray<z$1.ZodString>;
3717
+ }, z$1.core.$strip>>;
3718
+ http: z$1.ZodOptional<z$1.ZodObject<{
3719
+ baseUrl: z$1.ZodString;
3720
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3721
+ }, z$1.core.$strip>>;
3722
+ ws: z$1.ZodOptional<z$1.ZodObject<{
3723
+ url: z$1.ZodString;
3724
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3725
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
3726
+ batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
3727
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
3728
+ }, z$1.core.$strip>>;
3729
+ agent: z$1.ZodOptional<z$1.ZodObject<{
3730
+ agent: z$1.ZodOptional<z$1.ZodString>;
3731
+ model: z$1.ZodOptional<z$1.ZodObject<{
3732
+ id: z$1.ZodString;
3733
+ options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3734
+ }, z$1.core.$strip>>;
3735
+ }, z$1.core.$strip>>;
3736
+ }, z$1.core.$strip>;
3737
+ }, z$1.core.$strip>;
3738
+ declare const ACPInfoACPClientsConfigSchema: z$1.ZodObject<{
3739
+ clients: z$1.ZodObject<{
3740
+ clients: z$1.ZodArray<z$1.ZodObject<{
3741
+ id: z$1.ZodString;
3742
+ type: z$1.ZodEnum<{
3743
+ custom: "custom";
3744
+ easbot: "easbot";
3745
+ }>;
3746
+ name: z$1.ZodOptional<z$1.ZodString>;
3747
+ agentId: z$1.ZodOptional<z$1.ZodString>;
3748
+ channel: z$1.ZodOptional<z$1.ZodEnum<{
3749
+ http: "http";
3750
+ websocket: "websocket";
3751
+ stdio: "stdio";
3752
+ }>>;
3753
+ connection: z$1.ZodObject<{
3754
+ stdio: z$1.ZodOptional<z$1.ZodObject<{
3755
+ command: z$1.ZodString;
3756
+ args: z$1.ZodArray<z$1.ZodString>;
3757
+ }, z$1.core.$strip>>;
3758
+ http: z$1.ZodOptional<z$1.ZodObject<{
3759
+ baseUrl: z$1.ZodString;
3760
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3761
+ }, z$1.core.$strip>>;
3762
+ ws: z$1.ZodOptional<z$1.ZodObject<{
3763
+ url: z$1.ZodString;
3764
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3765
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
3766
+ batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
3767
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
3768
+ }, z$1.core.$strip>>;
3769
+ }, z$1.core.$strip>;
3770
+ autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
3771
+ priority: z$1.ZodDefault<z$1.ZodNumber>;
3772
+ }, z$1.core.$strip>>;
3773
+ defaultClientId: z$1.ZodOptional<z$1.ZodString>;
3774
+ }, z$1.core.$strip>;
3775
+ }, z$1.core.$strip>;
3776
+ declare const ACPClientRegisterConfigSchema: z$1.ZodOptional<z$1.ZodObject<{
3777
+ autoRegister: z$1.ZodDefault<z$1.ZodBoolean>;
3778
+ gatewayUrl: z$1.ZodOptional<z$1.ZodURL>;
3779
+ }, z$1.core.$strip>>;
3780
+ declare const ACPInfoACPConfigSchema: z$1.ZodObject<{
3781
+ server: z$1.ZodOptional<z$1.ZodObject<{
3782
+ directory: z$1.ZodDefault<z$1.ZodString>;
3783
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
3784
+ channel: z$1.ZodDefault<z$1.ZodEnum<{
3785
+ http: "http";
3786
+ websocket: "websocket";
3787
+ stdio: "stdio";
3788
+ }>>;
3789
+ port: z$1.ZodDefault<z$1.ZodNumber>;
3790
+ hostname: z$1.ZodDefault<z$1.ZodCustomStringFormat<"hostname">>;
3791
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3792
+ name: z$1.ZodOptional<z$1.ZodString>;
3793
+ agentId: z$1.ZodOptional<z$1.ZodString>;
3794
+ stdio: z$1.ZodOptional<z$1.ZodObject<{
3795
+ command: z$1.ZodString;
3796
+ args: z$1.ZodArray<z$1.ZodString>;
3797
+ }, z$1.core.$strip>>;
3798
+ http: z$1.ZodOptional<z$1.ZodObject<{
3799
+ baseUrl: z$1.ZodString;
3800
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3801
+ }, z$1.core.$strip>>;
3802
+ ws: z$1.ZodOptional<z$1.ZodObject<{
3803
+ url: z$1.ZodString;
3804
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3805
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
3806
+ batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
3807
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
3808
+ }, z$1.core.$strip>>;
3809
+ agent: z$1.ZodOptional<z$1.ZodObject<{
3810
+ agent: z$1.ZodOptional<z$1.ZodString>;
3811
+ model: z$1.ZodOptional<z$1.ZodObject<{
3812
+ id: z$1.ZodString;
3813
+ options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3814
+ }, z$1.core.$strip>>;
3815
+ }, z$1.core.$strip>>;
3816
+ }, z$1.core.$strip>>;
3817
+ clients: z$1.ZodOptional<z$1.ZodObject<{
3818
+ clients: z$1.ZodArray<z$1.ZodObject<{
3819
+ id: z$1.ZodString;
3820
+ type: z$1.ZodEnum<{
3821
+ custom: "custom";
3822
+ easbot: "easbot";
3823
+ }>;
3824
+ name: z$1.ZodOptional<z$1.ZodString>;
3825
+ agentId: z$1.ZodOptional<z$1.ZodString>;
3826
+ channel: z$1.ZodOptional<z$1.ZodEnum<{
3827
+ http: "http";
3828
+ websocket: "websocket";
3829
+ stdio: "stdio";
3830
+ }>>;
3831
+ connection: z$1.ZodObject<{
3832
+ stdio: z$1.ZodOptional<z$1.ZodObject<{
3833
+ command: z$1.ZodString;
3834
+ args: z$1.ZodArray<z$1.ZodString>;
3835
+ }, z$1.core.$strip>>;
3836
+ http: z$1.ZodOptional<z$1.ZodObject<{
3837
+ baseUrl: z$1.ZodString;
3838
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3839
+ }, z$1.core.$strip>>;
3840
+ ws: z$1.ZodOptional<z$1.ZodObject<{
3841
+ url: z$1.ZodString;
3842
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
3843
+ batchSize: z$1.ZodDefault<z$1.ZodNumber>;
3844
+ batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
3845
+ heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
3846
+ }, z$1.core.$strip>>;
3847
+ }, z$1.core.$strip>;
3848
+ autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
3849
+ priority: z$1.ZodDefault<z$1.ZodNumber>;
3850
+ }, z$1.core.$strip>>;
3851
+ defaultClientId: z$1.ZodOptional<z$1.ZodString>;
3852
+ }, z$1.core.$strip>>;
3853
+ client: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
3854
+ autoRegister: z$1.ZodDefault<z$1.ZodBoolean>;
3855
+ gatewayUrl: z$1.ZodOptional<z$1.ZodURL>;
3856
+ }, z$1.core.$strip>>>;
3857
+ }, z$1.core.$strip>;
3858
+ type ACPChannelType = ChannelType;
3859
+ type ACPStdioConnectionConfig = z$1.infer<typeof ACPStdioConnectionConfigSchema>;
3860
+ type ACPHttpConnectionConfig = z$1.infer<typeof ACPHttpConnectionConfigSchema>;
3861
+ type ACPWebSocketConnectionConfig = z$1.infer<typeof ACPWebSocketConnectionConfigSchema>;
3862
+ type ACPConnectionConfig = z$1.infer<typeof ACPConnectionConfigSchema>;
3863
+ type ACPModelConfig = z$1.infer<typeof ACPModelConfigSchema>;
3864
+ type ACPAgentRuntimeConfig = z$1.infer<typeof ACPAgentRuntimeConfigSchema>;
3865
+ type ACPServerConfig = z$1.infer<typeof ACPServerConfigSchema>;
3866
+ type ACPClientConfig = z$1.infer<typeof ACPClientConfigSchema>;
3867
+ type ACPClientsConfig = z$1.infer<typeof ACPClientsConfigSchema>;
3868
+ type ACPInfoACPServerConfig = z$1.infer<typeof ACPInfoACPServerConfigSchema>;
3869
+ type ACPInfoACPClientsConfig = z$1.infer<typeof ACPInfoACPClientsConfigSchema>;
3870
+ type ACPClientRegisterConfig = z$1.infer<typeof ACPClientRegisterConfigSchema>;
3871
+ type ACPInfoACPConfig = z$1.infer<typeof ACPInfoACPConfigSchema>;
3872
+ declare const ACP_DEFAULT_SERVER_CONFIG: ACPServerConfig;
3873
+ declare const ACP_DEFAULT_CLIENT_CONFIG: Partial<ACPClientConfig>;
3874
+
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";
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>;
2282
4127
 
2283
- export { type AgentAction, type AgentAdapter, type AgentCallback, AgentCapability, type AgentCreate, type AgentExecute, type AgentExecutionResult, type AgentInfo, type AgentInput, type AgentMessage, type AgentModel, type AgentPermission, AgentPermissionSchema, type AgentPromptPart, type AgentQuery, type AgentResult, type AgentResultMetadata, AgentState, type AgentStatistics, type AgentStatusInfo, 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, type CodebaseKnowledgeConfig, type CodebaseKnowledgeConfigWithModels, type CodebaseStatus, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_NOTE_CHUNK_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_SEARCH_CONFIG, DEFAULT_SYNC_CONFIG, type DatabaseConfig, 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 GatewayServerConfig, gateway as GatewayTypes, 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, PermissionAction, PermissionActionSchema, PermissionAction as PermissionActionType, Config as PermissionConfig, Config as PermissionConfigType, PermissionObject, PermissionObject as PermissionObjectType, PermissionRule, PermissionRuleSchema, PermissionRule as PermissionRuleType, 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 SearchConfig, type SessionCreate, type SessionInfo, type SessionMessage, type SessionQuery, type SessionStatistics, SessionStatus, 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, getDefaultDatabasePath, getWorkspaceDatabasePath, 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 };