agents-bridge 0.3.5 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +30 -0
  2. package/config.multi-agent.example.json +4 -1
  3. package/dist/agents/agent-resolver.d.ts.map +1 -1
  4. package/dist/agents/agent-resolver.js +8 -2
  5. package/dist/agents/agent-resolver.js.map +1 -1
  6. package/dist/agents/cli-runner.d.ts +3 -3
  7. package/dist/agents/cli-runner.d.ts.map +1 -1
  8. package/dist/agents/cli-runner.js +87 -76
  9. package/dist/agents/cli-runner.js.map +1 -1
  10. package/dist/agents/cli-session-store.d.ts +3 -0
  11. package/dist/agents/cli-session-store.d.ts.map +1 -1
  12. package/dist/agents/cli-session-store.js +31 -10
  13. package/dist/agents/cli-session-store.js.map +1 -1
  14. package/dist/agents/codex-app-server-runtime.d.ts +37 -1
  15. package/dist/agents/codex-app-server-runtime.d.ts.map +1 -1
  16. package/dist/agents/codex-app-server-runtime.js +37 -14
  17. package/dist/agents/codex-app-server-runtime.js.map +1 -1
  18. package/dist/agents/managed-backend.d.ts +4 -0
  19. package/dist/agents/managed-backend.d.ts.map +1 -0
  20. package/dist/agents/managed-backend.js +18 -0
  21. package/dist/agents/managed-backend.js.map +1 -0
  22. package/dist/agents/managed-role.d.ts +17 -0
  23. package/dist/agents/managed-role.d.ts.map +1 -0
  24. package/dist/agents/managed-role.js +13 -0
  25. package/dist/agents/managed-role.js.map +1 -0
  26. package/dist/agents/model-auto-binding.d.ts.map +1 -1
  27. package/dist/agents/model-auto-binding.js +15 -23
  28. package/dist/agents/model-auto-binding.js.map +1 -1
  29. package/dist/agents/model-control-files.d.ts +5 -0
  30. package/dist/agents/model-control-files.d.ts.map +1 -0
  31. package/dist/agents/model-control-files.js +101 -0
  32. package/dist/agents/model-control-files.js.map +1 -0
  33. package/dist/agents/model-controller.d.ts +39 -2
  34. package/dist/agents/model-controller.d.ts.map +1 -1
  35. package/dist/agents/model-controller.js +211 -66
  36. package/dist/agents/model-controller.js.map +1 -1
  37. package/dist/agents/trusted-launcher.js +5 -1
  38. package/dist/agents/trusted-launcher.js.map +1 -1
  39. package/dist/channels/bot-run-protocol.d.ts +13 -0
  40. package/dist/channels/bot-run-protocol.d.ts.map +1 -0
  41. package/dist/channels/bot-run-protocol.js +20 -0
  42. package/dist/channels/bot-run-protocol.js.map +1 -0
  43. package/dist/channels/bot-run-receipts.d.ts +14 -0
  44. package/dist/channels/bot-run-receipts.d.ts.map +1 -0
  45. package/dist/channels/bot-run-receipts.js +88 -0
  46. package/dist/channels/bot-run-receipts.js.map +1 -0
  47. package/dist/channels/botlink.d.ts +3 -0
  48. package/dist/channels/botlink.d.ts.map +1 -1
  49. package/dist/channels/botlink.js +95 -17
  50. package/dist/channels/botlink.js.map +1 -1
  51. package/dist/channels/managed-receipts.d.ts +14 -0
  52. package/dist/channels/managed-receipts.d.ts.map +1 -0
  53. package/dist/channels/managed-receipts.js +136 -0
  54. package/dist/channels/managed-receipts.js.map +1 -0
  55. package/dist/cli/cmd-start.d.ts.map +1 -1
  56. package/dist/cli/cmd-start.js +49 -7
  57. package/dist/cli/cmd-start.js.map +1 -1
  58. package/dist/cloud/main.d.ts +2 -0
  59. package/dist/cloud/main.d.ts.map +1 -0
  60. package/dist/cloud/main.js +14 -0
  61. package/dist/cloud/main.js.map +1 -0
  62. package/dist/cloud/worker.d.ts +98 -0
  63. package/dist/cloud/worker.d.ts.map +1 -0
  64. package/dist/cloud/worker.js +212 -0
  65. package/dist/cloud/worker.js.map +1 -0
  66. package/dist/config/agent-dirs.d.ts.map +1 -1
  67. package/dist/config/agent-dirs.js +2 -0
  68. package/dist/config/agent-dirs.js.map +1 -1
  69. package/dist/config/attachment-handoff.d.ts +5 -0
  70. package/dist/config/attachment-handoff.d.ts.map +1 -0
  71. package/dist/config/attachment-handoff.js +60 -0
  72. package/dist/config/attachment-handoff.js.map +1 -0
  73. package/dist/config/zod-schema.d.ts +447 -282
  74. package/dist/config/zod-schema.d.ts.map +1 -1
  75. package/dist/config/zod-schema.js +15 -1
  76. package/dist/config/zod-schema.js.map +1 -1
  77. package/dist/types/index.d.ts +12 -4
  78. package/dist/types/index.d.ts.map +1 -1
  79. package/package.json +1 -1
@@ -3,6 +3,7 @@ export declare const BotlinkAccountSchema: z.ZodObject<{
3
3
  gateway_url: z.ZodString;
4
4
  openapi_base_url: z.ZodOptional<z.ZodString>;
5
5
  bot_token: z.ZodString;
6
+ managed_runtime: z.ZodOptional<z.ZodBoolean>;
6
7
  poll_timeout: z.ZodDefault<z.ZodNumber>;
7
8
  retry_interval: z.ZodDefault<z.ZodNumber>;
8
9
  max_retry_interval: z.ZodDefault<z.ZodNumber>;
@@ -13,10 +14,12 @@ export declare const BotlinkAccountSchema: z.ZodObject<{
13
14
  retry_interval: number;
14
15
  max_retry_interval: number;
15
16
  openapi_base_url?: string | undefined;
17
+ managed_runtime?: boolean | undefined;
16
18
  }, {
17
19
  gateway_url: string;
18
20
  bot_token: string;
19
21
  openapi_base_url?: string | undefined;
22
+ managed_runtime?: boolean | undefined;
20
23
  poll_timeout?: number | undefined;
21
24
  retry_interval?: number | undefined;
22
25
  max_retry_interval?: number | undefined;
@@ -33,6 +36,7 @@ export declare const BotlinkChannelSchema: z.ZodEffects<z.ZodObject<{
33
36
  gateway_url: z.ZodString;
34
37
  openapi_base_url: z.ZodOptional<z.ZodString>;
35
38
  bot_token: z.ZodString;
39
+ managed_runtime: z.ZodOptional<z.ZodBoolean>;
36
40
  poll_timeout: z.ZodDefault<z.ZodNumber>;
37
41
  retry_interval: z.ZodDefault<z.ZodNumber>;
38
42
  max_retry_interval: z.ZodDefault<z.ZodNumber>;
@@ -43,10 +47,12 @@ export declare const BotlinkChannelSchema: z.ZodEffects<z.ZodObject<{
43
47
  retry_interval: number;
44
48
  max_retry_interval: number;
45
49
  openapi_base_url?: string | undefined;
50
+ managed_runtime?: boolean | undefined;
46
51
  }, {
47
52
  gateway_url: string;
48
53
  bot_token: string;
49
54
  openapi_base_url?: string | undefined;
55
+ managed_runtime?: boolean | undefined;
50
56
  poll_timeout?: number | undefined;
51
57
  retry_interval?: number | undefined;
52
58
  max_retry_interval?: number | undefined;
@@ -65,6 +71,7 @@ export declare const BotlinkChannelSchema: z.ZodEffects<z.ZodObject<{
65
71
  retry_interval: number;
66
72
  max_retry_interval: number;
67
73
  openapi_base_url?: string | undefined;
74
+ managed_runtime?: boolean | undefined;
68
75
  }> | undefined;
69
76
  }, {
70
77
  gateway_url?: string | undefined;
@@ -77,6 +84,7 @@ export declare const BotlinkChannelSchema: z.ZodEffects<z.ZodObject<{
77
84
  gateway_url: string;
78
85
  bot_token: string;
79
86
  openapi_base_url?: string | undefined;
87
+ managed_runtime?: boolean | undefined;
80
88
  poll_timeout?: number | undefined;
81
89
  retry_interval?: number | undefined;
82
90
  max_retry_interval?: number | undefined;
@@ -95,6 +103,7 @@ export declare const BotlinkChannelSchema: z.ZodEffects<z.ZodObject<{
95
103
  retry_interval: number;
96
104
  max_retry_interval: number;
97
105
  openapi_base_url?: string | undefined;
106
+ managed_runtime?: boolean | undefined;
98
107
  }> | undefined;
99
108
  }, {
100
109
  gateway_url?: string | undefined;
@@ -107,6 +116,7 @@ export declare const BotlinkChannelSchema: z.ZodEffects<z.ZodObject<{
107
116
  gateway_url: string;
108
117
  bot_token: string;
109
118
  openapi_base_url?: string | undefined;
119
+ managed_runtime?: boolean | undefined;
110
120
  poll_timeout?: number | undefined;
111
121
  retry_interval?: number | undefined;
112
122
  max_retry_interval?: number | undefined;
@@ -219,26 +229,26 @@ export declare const CliBackendConfigSchema: z.ZodObject<{
219
229
  maxMs?: number | undefined;
220
230
  }>>;
221
231
  }, "strip", z.ZodTypeAny, {
222
- fresh?: {
232
+ resume?: {
223
233
  noOutputTimeoutMs?: number | undefined;
224
234
  noOutputTimeoutRatio?: number | undefined;
225
235
  minMs?: number | undefined;
226
236
  maxMs?: number | undefined;
227
237
  } | undefined;
228
- resume?: {
238
+ fresh?: {
229
239
  noOutputTimeoutMs?: number | undefined;
230
240
  noOutputTimeoutRatio?: number | undefined;
231
241
  minMs?: number | undefined;
232
242
  maxMs?: number | undefined;
233
243
  } | undefined;
234
244
  }, {
235
- fresh?: {
245
+ resume?: {
236
246
  noOutputTimeoutMs?: number | undefined;
237
247
  noOutputTimeoutRatio?: number | undefined;
238
248
  minMs?: number | undefined;
239
249
  maxMs?: number | undefined;
240
250
  } | undefined;
241
- resume?: {
251
+ fresh?: {
242
252
  noOutputTimeoutMs?: number | undefined;
243
253
  noOutputTimeoutRatio?: number | undefined;
244
254
  minMs?: number | undefined;
@@ -247,13 +257,13 @@ export declare const CliBackendConfigSchema: z.ZodObject<{
247
257
  }>>;
248
258
  }, "strip", z.ZodTypeAny, {
249
259
  watchdog?: {
250
- fresh?: {
260
+ resume?: {
251
261
  noOutputTimeoutMs?: number | undefined;
252
262
  noOutputTimeoutRatio?: number | undefined;
253
263
  minMs?: number | undefined;
254
264
  maxMs?: number | undefined;
255
265
  } | undefined;
256
- resume?: {
266
+ fresh?: {
257
267
  noOutputTimeoutMs?: number | undefined;
258
268
  noOutputTimeoutRatio?: number | undefined;
259
269
  minMs?: number | undefined;
@@ -262,13 +272,13 @@ export declare const CliBackendConfigSchema: z.ZodObject<{
262
272
  } | undefined;
263
273
  }, {
264
274
  watchdog?: {
265
- fresh?: {
275
+ resume?: {
266
276
  noOutputTimeoutMs?: number | undefined;
267
277
  noOutputTimeoutRatio?: number | undefined;
268
278
  minMs?: number | undefined;
269
279
  maxMs?: number | undefined;
270
280
  } | undefined;
271
- resume?: {
281
+ fresh?: {
272
282
  noOutputTimeoutMs?: number | undefined;
273
283
  noOutputTimeoutRatio?: number | undefined;
274
284
  minMs?: number | undefined;
@@ -317,13 +327,13 @@ export declare const CliBackendConfigSchema: z.ZodObject<{
317
327
  serialize?: boolean | undefined;
318
328
  reliability?: {
319
329
  watchdog?: {
320
- fresh?: {
330
+ resume?: {
321
331
  noOutputTimeoutMs?: number | undefined;
322
332
  noOutputTimeoutRatio?: number | undefined;
323
333
  minMs?: number | undefined;
324
334
  maxMs?: number | undefined;
325
335
  } | undefined;
326
- resume?: {
336
+ fresh?: {
327
337
  noOutputTimeoutMs?: number | undefined;
328
338
  noOutputTimeoutRatio?: number | undefined;
329
339
  minMs?: number | undefined;
@@ -372,13 +382,13 @@ export declare const CliBackendConfigSchema: z.ZodObject<{
372
382
  serialize?: boolean | undefined;
373
383
  reliability?: {
374
384
  watchdog?: {
375
- fresh?: {
385
+ resume?: {
376
386
  noOutputTimeoutMs?: number | undefined;
377
387
  noOutputTimeoutRatio?: number | undefined;
378
388
  minMs?: number | undefined;
379
389
  maxMs?: number | undefined;
380
390
  } | undefined;
381
- resume?: {
391
+ fresh?: {
382
392
  noOutputTimeoutMs?: number | undefined;
383
393
  noOutputTimeoutRatio?: number | undefined;
384
394
  minMs?: number | undefined;
@@ -387,27 +397,82 @@ export declare const CliBackendConfigSchema: z.ZodObject<{
387
397
  } | undefined;
388
398
  } | undefined;
389
399
  }>;
400
+ export declare const ReasoningEffortSchema: z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>;
390
401
  export declare const ModelRefSchema: z.ZodObject<{
391
402
  primary: z.ZodString;
392
403
  fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
404
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>>;
393
405
  }, "strip", z.ZodTypeAny, {
394
406
  primary: string;
395
407
  fallbacks?: string[] | undefined;
408
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
396
409
  }, {
397
410
  primary: string;
398
411
  fallbacks?: string[] | undefined;
412
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
399
413
  }>;
414
+ export declare const ModelControlConfigSchema: z.ZodObject<{
415
+ endpoint: z.ZodEffects<z.ZodString, string, string>;
416
+ botToken: z.ZodString;
417
+ deviceSecret: z.ZodString;
418
+ models: z.ZodArray<z.ZodString, "many">;
419
+ }, "strip", z.ZodTypeAny, {
420
+ endpoint: string;
421
+ botToken: string;
422
+ deviceSecret: string;
423
+ models: string[];
424
+ }, {
425
+ endpoint: string;
426
+ botToken: string;
427
+ deviceSecret: string;
428
+ models: string[];
429
+ }>;
430
+ export declare const ModelControlSettingSchema: z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
431
+ endpoint: z.ZodEffects<z.ZodString, string, string>;
432
+ botToken: z.ZodString;
433
+ deviceSecret: z.ZodString;
434
+ models: z.ZodArray<z.ZodString, "many">;
435
+ }, "strip", z.ZodTypeAny, {
436
+ endpoint: string;
437
+ botToken: string;
438
+ deviceSecret: string;
439
+ models: string[];
440
+ }, {
441
+ endpoint: string;
442
+ botToken: string;
443
+ deviceSecret: string;
444
+ models: string[];
445
+ }>]>;
400
446
  export declare const AgentDefaultsSchema: z.ZodObject<{
401
447
  allowModelSwitch: z.ZodOptional<z.ZodBoolean>;
448
+ modelControl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
449
+ endpoint: z.ZodEffects<z.ZodString, string, string>;
450
+ botToken: z.ZodString;
451
+ deviceSecret: z.ZodString;
452
+ models: z.ZodArray<z.ZodString, "many">;
453
+ }, "strip", z.ZodTypeAny, {
454
+ endpoint: string;
455
+ botToken: string;
456
+ deviceSecret: string;
457
+ models: string[];
458
+ }, {
459
+ endpoint: string;
460
+ botToken: string;
461
+ deviceSecret: string;
462
+ models: string[];
463
+ }>]>>;
402
464
  model: z.ZodObject<{
403
465
  primary: z.ZodString;
404
466
  fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
467
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>>;
405
468
  }, "strip", z.ZodTypeAny, {
406
469
  primary: string;
407
470
  fallbacks?: string[] | undefined;
471
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
408
472
  }, {
409
473
  primary: string;
410
474
  fallbacks?: string[] | undefined;
475
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
411
476
  }>;
412
477
  cliBackends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
413
478
  command: z.ZodString;
@@ -509,26 +574,26 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
509
574
  maxMs?: number | undefined;
510
575
  }>>;
511
576
  }, "strip", z.ZodTypeAny, {
512
- fresh?: {
577
+ resume?: {
513
578
  noOutputTimeoutMs?: number | undefined;
514
579
  noOutputTimeoutRatio?: number | undefined;
515
580
  minMs?: number | undefined;
516
581
  maxMs?: number | undefined;
517
582
  } | undefined;
518
- resume?: {
583
+ fresh?: {
519
584
  noOutputTimeoutMs?: number | undefined;
520
585
  noOutputTimeoutRatio?: number | undefined;
521
586
  minMs?: number | undefined;
522
587
  maxMs?: number | undefined;
523
588
  } | undefined;
524
589
  }, {
525
- fresh?: {
590
+ resume?: {
526
591
  noOutputTimeoutMs?: number | undefined;
527
592
  noOutputTimeoutRatio?: number | undefined;
528
593
  minMs?: number | undefined;
529
594
  maxMs?: number | undefined;
530
595
  } | undefined;
531
- resume?: {
596
+ fresh?: {
532
597
  noOutputTimeoutMs?: number | undefined;
533
598
  noOutputTimeoutRatio?: number | undefined;
534
599
  minMs?: number | undefined;
@@ -537,13 +602,13 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
537
602
  }>>;
538
603
  }, "strip", z.ZodTypeAny, {
539
604
  watchdog?: {
540
- fresh?: {
605
+ resume?: {
541
606
  noOutputTimeoutMs?: number | undefined;
542
607
  noOutputTimeoutRatio?: number | undefined;
543
608
  minMs?: number | undefined;
544
609
  maxMs?: number | undefined;
545
610
  } | undefined;
546
- resume?: {
611
+ fresh?: {
547
612
  noOutputTimeoutMs?: number | undefined;
548
613
  noOutputTimeoutRatio?: number | undefined;
549
614
  minMs?: number | undefined;
@@ -552,13 +617,13 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
552
617
  } | undefined;
553
618
  }, {
554
619
  watchdog?: {
555
- fresh?: {
620
+ resume?: {
556
621
  noOutputTimeoutMs?: number | undefined;
557
622
  noOutputTimeoutRatio?: number | undefined;
558
623
  minMs?: number | undefined;
559
624
  maxMs?: number | undefined;
560
625
  } | undefined;
561
- resume?: {
626
+ fresh?: {
562
627
  noOutputTimeoutMs?: number | undefined;
563
628
  noOutputTimeoutRatio?: number | undefined;
564
629
  minMs?: number | undefined;
@@ -607,13 +672,13 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
607
672
  serialize?: boolean | undefined;
608
673
  reliability?: {
609
674
  watchdog?: {
610
- fresh?: {
675
+ resume?: {
611
676
  noOutputTimeoutMs?: number | undefined;
612
677
  noOutputTimeoutRatio?: number | undefined;
613
678
  minMs?: number | undefined;
614
679
  maxMs?: number | undefined;
615
680
  } | undefined;
616
- resume?: {
681
+ fresh?: {
617
682
  noOutputTimeoutMs?: number | undefined;
618
683
  noOutputTimeoutRatio?: number | undefined;
619
684
  minMs?: number | undefined;
@@ -662,13 +727,13 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
662
727
  serialize?: boolean | undefined;
663
728
  reliability?: {
664
729
  watchdog?: {
665
- fresh?: {
730
+ resume?: {
666
731
  noOutputTimeoutMs?: number | undefined;
667
732
  noOutputTimeoutRatio?: number | undefined;
668
733
  minMs?: number | undefined;
669
734
  maxMs?: number | undefined;
670
735
  } | undefined;
671
- resume?: {
736
+ fresh?: {
672
737
  noOutputTimeoutMs?: number | undefined;
673
738
  noOutputTimeoutRatio?: number | undefined;
674
739
  minMs?: number | undefined;
@@ -694,10 +759,21 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
694
759
  model: {
695
760
  primary: string;
696
761
  fallbacks?: string[] | undefined;
762
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
697
763
  };
764
+ tools?: {
765
+ allow?: string[] | undefined;
766
+ deny?: string[] | undefined;
767
+ } | undefined;
698
768
  env?: Record<string, string> | undefined;
699
769
  clearEnv?: string[] | undefined;
700
770
  allowModelSwitch?: boolean | undefined;
771
+ modelControl?: false | {
772
+ endpoint: string;
773
+ botToken: string;
774
+ deviceSecret: string;
775
+ models: string[];
776
+ } | undefined;
701
777
  cliBackends?: Record<string, {
702
778
  command: string;
703
779
  args?: string[] | undefined;
@@ -739,13 +815,13 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
739
815
  serialize?: boolean | undefined;
740
816
  reliability?: {
741
817
  watchdog?: {
742
- fresh?: {
818
+ resume?: {
743
819
  noOutputTimeoutMs?: number | undefined;
744
820
  noOutputTimeoutRatio?: number | undefined;
745
821
  minMs?: number | undefined;
746
822
  maxMs?: number | undefined;
747
823
  } | undefined;
748
- resume?: {
824
+ fresh?: {
749
825
  noOutputTimeoutMs?: number | undefined;
750
826
  noOutputTimeoutRatio?: number | undefined;
751
827
  minMs?: number | undefined;
@@ -754,19 +830,26 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
754
830
  } | undefined;
755
831
  } | undefined;
756
832
  }> | undefined;
757
- tools?: {
758
- allow?: string[] | undefined;
759
- deny?: string[] | undefined;
760
- } | undefined;
761
833
  max_tokens?: number | undefined;
762
834
  }, {
763
835
  model: {
764
836
  primary: string;
765
837
  fallbacks?: string[] | undefined;
838
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
766
839
  };
840
+ tools?: {
841
+ allow?: string[] | undefined;
842
+ deny?: string[] | undefined;
843
+ } | undefined;
767
844
  env?: Record<string, string> | undefined;
768
845
  clearEnv?: string[] | undefined;
769
846
  allowModelSwitch?: boolean | undefined;
847
+ modelControl?: false | {
848
+ endpoint: string;
849
+ botToken: string;
850
+ deviceSecret: string;
851
+ models: string[];
852
+ } | undefined;
770
853
  cliBackends?: Record<string, {
771
854
  command: string;
772
855
  args?: string[] | undefined;
@@ -808,13 +891,13 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
808
891
  serialize?: boolean | undefined;
809
892
  reliability?: {
810
893
  watchdog?: {
811
- fresh?: {
894
+ resume?: {
812
895
  noOutputTimeoutMs?: number | undefined;
813
896
  noOutputTimeoutRatio?: number | undefined;
814
897
  minMs?: number | undefined;
815
898
  maxMs?: number | undefined;
816
899
  } | undefined;
817
- resume?: {
900
+ fresh?: {
818
901
  noOutputTimeoutMs?: number | undefined;
819
902
  noOutputTimeoutRatio?: number | undefined;
820
903
  minMs?: number | undefined;
@@ -823,17 +906,13 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
823
906
  } | undefined;
824
907
  } | undefined;
825
908
  }> | undefined;
826
- tools?: {
827
- allow?: string[] | undefined;
828
- deny?: string[] | undefined;
829
- } | undefined;
830
909
  max_tokens?: number | undefined;
831
910
  }>;
832
911
  export type AgentDefaultsConfig = z.infer<typeof AgentDefaultsSchema>;
833
912
  export declare const AgentConfigSchema: z.ZodObject<{
834
913
  allowModelSwitch: z.ZodOptional<z.ZodBoolean>;
835
- modelControl: z.ZodOptional<z.ZodObject<{
836
- endpoint: z.ZodString;
914
+ modelControl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
915
+ endpoint: z.ZodEffects<z.ZodString, string, string>;
837
916
  botToken: z.ZodString;
838
917
  deviceSecret: z.ZodString;
839
918
  models: z.ZodArray<z.ZodString, "many">;
@@ -847,19 +926,22 @@ export declare const AgentConfigSchema: z.ZodObject<{
847
926
  botToken: string;
848
927
  deviceSecret: string;
849
928
  models: string[];
850
- }>>;
929
+ }>]>>;
851
930
  id: z.ZodString;
852
931
  default: z.ZodOptional<z.ZodBoolean>;
853
932
  name: z.ZodOptional<z.ZodString>;
854
933
  model: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
855
934
  primary: z.ZodString;
856
935
  fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
936
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>>;
857
937
  }, "strip", z.ZodTypeAny, {
858
938
  primary: string;
859
939
  fallbacks?: string[] | undefined;
940
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
860
941
  }, {
861
942
  primary: string;
862
943
  fallbacks?: string[] | undefined;
944
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
863
945
  }>, z.ZodString]>>;
864
946
  workspace: z.ZodOptional<z.ZodString>;
865
947
  cliSessionId: z.ZodOptional<z.ZodString>;
@@ -964,26 +1046,26 @@ export declare const AgentConfigSchema: z.ZodObject<{
964
1046
  maxMs?: number | undefined;
965
1047
  }>>;
966
1048
  }, "strip", z.ZodTypeAny, {
967
- fresh?: {
1049
+ resume?: {
968
1050
  noOutputTimeoutMs?: number | undefined;
969
1051
  noOutputTimeoutRatio?: number | undefined;
970
1052
  minMs?: number | undefined;
971
1053
  maxMs?: number | undefined;
972
1054
  } | undefined;
973
- resume?: {
1055
+ fresh?: {
974
1056
  noOutputTimeoutMs?: number | undefined;
975
1057
  noOutputTimeoutRatio?: number | undefined;
976
1058
  minMs?: number | undefined;
977
1059
  maxMs?: number | undefined;
978
1060
  } | undefined;
979
1061
  }, {
980
- fresh?: {
1062
+ resume?: {
981
1063
  noOutputTimeoutMs?: number | undefined;
982
1064
  noOutputTimeoutRatio?: number | undefined;
983
1065
  minMs?: number | undefined;
984
1066
  maxMs?: number | undefined;
985
1067
  } | undefined;
986
- resume?: {
1068
+ fresh?: {
987
1069
  noOutputTimeoutMs?: number | undefined;
988
1070
  noOutputTimeoutRatio?: number | undefined;
989
1071
  minMs?: number | undefined;
@@ -992,13 +1074,13 @@ export declare const AgentConfigSchema: z.ZodObject<{
992
1074
  }>>;
993
1075
  }, "strip", z.ZodTypeAny, {
994
1076
  watchdog?: {
995
- fresh?: {
1077
+ resume?: {
996
1078
  noOutputTimeoutMs?: number | undefined;
997
1079
  noOutputTimeoutRatio?: number | undefined;
998
1080
  minMs?: number | undefined;
999
1081
  maxMs?: number | undefined;
1000
1082
  } | undefined;
1001
- resume?: {
1083
+ fresh?: {
1002
1084
  noOutputTimeoutMs?: number | undefined;
1003
1085
  noOutputTimeoutRatio?: number | undefined;
1004
1086
  minMs?: number | undefined;
@@ -1007,13 +1089,13 @@ export declare const AgentConfigSchema: z.ZodObject<{
1007
1089
  } | undefined;
1008
1090
  }, {
1009
1091
  watchdog?: {
1010
- fresh?: {
1092
+ resume?: {
1011
1093
  noOutputTimeoutMs?: number | undefined;
1012
1094
  noOutputTimeoutRatio?: number | undefined;
1013
1095
  minMs?: number | undefined;
1014
1096
  maxMs?: number | undefined;
1015
1097
  } | undefined;
1016
- resume?: {
1098
+ fresh?: {
1017
1099
  noOutputTimeoutMs?: number | undefined;
1018
1100
  noOutputTimeoutRatio?: number | undefined;
1019
1101
  minMs?: number | undefined;
@@ -1062,13 +1144,13 @@ export declare const AgentConfigSchema: z.ZodObject<{
1062
1144
  serialize?: boolean | undefined;
1063
1145
  reliability?: {
1064
1146
  watchdog?: {
1065
- fresh?: {
1147
+ resume?: {
1066
1148
  noOutputTimeoutMs?: number | undefined;
1067
1149
  noOutputTimeoutRatio?: number | undefined;
1068
1150
  minMs?: number | undefined;
1069
1151
  maxMs?: number | undefined;
1070
1152
  } | undefined;
1071
- resume?: {
1153
+ fresh?: {
1072
1154
  noOutputTimeoutMs?: number | undefined;
1073
1155
  noOutputTimeoutRatio?: number | undefined;
1074
1156
  minMs?: number | undefined;
@@ -1117,13 +1199,13 @@ export declare const AgentConfigSchema: z.ZodObject<{
1117
1199
  serialize?: boolean | undefined;
1118
1200
  reliability?: {
1119
1201
  watchdog?: {
1120
- fresh?: {
1202
+ resume?: {
1121
1203
  noOutputTimeoutMs?: number | undefined;
1122
1204
  noOutputTimeoutRatio?: number | undefined;
1123
1205
  minMs?: number | undefined;
1124
1206
  maxMs?: number | undefined;
1125
1207
  } | undefined;
1126
- resume?: {
1208
+ fresh?: {
1127
1209
  noOutputTimeoutMs?: number | undefined;
1128
1210
  noOutputTimeoutRatio?: number | undefined;
1129
1211
  minMs?: number | undefined;
@@ -1160,13 +1242,26 @@ export declare const AgentConfigSchema: z.ZodObject<{
1160
1242
  model?: string | {
1161
1243
  primary: string;
1162
1244
  fallbacks?: string[] | undefined;
1245
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
1163
1246
  } | undefined;
1164
1247
  workspace?: string | undefined;
1165
1248
  default?: boolean | undefined;
1166
1249
  name?: string | undefined;
1250
+ systemPrompt?: string | undefined;
1251
+ tools?: {
1252
+ allow?: string[] | undefined;
1253
+ deny?: string[] | undefined;
1254
+ } | undefined;
1255
+ skills?: string[] | undefined;
1167
1256
  env?: Record<string, string> | undefined;
1168
1257
  clearEnv?: string[] | undefined;
1169
1258
  allowModelSwitch?: boolean | undefined;
1259
+ modelControl?: false | {
1260
+ endpoint: string;
1261
+ botToken: string;
1262
+ deviceSecret: string;
1263
+ models: string[];
1264
+ } | undefined;
1170
1265
  cliBackends?: Record<string, {
1171
1266
  args?: string[] | undefined;
1172
1267
  command?: string | undefined;
@@ -1208,13 +1303,13 @@ export declare const AgentConfigSchema: z.ZodObject<{
1208
1303
  serialize?: boolean | undefined;
1209
1304
  reliability?: {
1210
1305
  watchdog?: {
1211
- fresh?: {
1306
+ resume?: {
1212
1307
  noOutputTimeoutMs?: number | undefined;
1213
1308
  noOutputTimeoutRatio?: number | undefined;
1214
1309
  minMs?: number | undefined;
1215
1310
  maxMs?: number | undefined;
1216
1311
  } | undefined;
1217
- resume?: {
1312
+ fresh?: {
1218
1313
  noOutputTimeoutMs?: number | undefined;
1219
1314
  noOutputTimeoutRatio?: number | undefined;
1220
1315
  minMs?: number | undefined;
@@ -1223,19 +1318,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
1223
1318
  } | undefined;
1224
1319
  } | undefined;
1225
1320
  }> | undefined;
1226
- tools?: {
1227
- allow?: string[] | undefined;
1228
- deny?: string[] | undefined;
1229
- } | undefined;
1230
- modelControl?: {
1231
- endpoint: string;
1232
- botToken: string;
1233
- deviceSecret: string;
1234
- models: string[];
1235
- } | undefined;
1236
1321
  cliSessionId?: string | undefined;
1237
- systemPrompt?: string | undefined;
1238
- skills?: string[] | undefined;
1239
1322
  identity?: {
1240
1323
  name?: string | undefined;
1241
1324
  emoji?: string | undefined;
@@ -1245,13 +1328,26 @@ export declare const AgentConfigSchema: z.ZodObject<{
1245
1328
  model?: string | {
1246
1329
  primary: string;
1247
1330
  fallbacks?: string[] | undefined;
1331
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
1248
1332
  } | undefined;
1249
1333
  workspace?: string | undefined;
1250
1334
  default?: boolean | undefined;
1251
1335
  name?: string | undefined;
1336
+ systemPrompt?: string | undefined;
1337
+ tools?: {
1338
+ allow?: string[] | undefined;
1339
+ deny?: string[] | undefined;
1340
+ } | undefined;
1341
+ skills?: string[] | undefined;
1252
1342
  env?: Record<string, string> | undefined;
1253
1343
  clearEnv?: string[] | undefined;
1254
1344
  allowModelSwitch?: boolean | undefined;
1345
+ modelControl?: false | {
1346
+ endpoint: string;
1347
+ botToken: string;
1348
+ deviceSecret: string;
1349
+ models: string[];
1350
+ } | undefined;
1255
1351
  cliBackends?: Record<string, {
1256
1352
  args?: string[] | undefined;
1257
1353
  command?: string | undefined;
@@ -1293,13 +1389,13 @@ export declare const AgentConfigSchema: z.ZodObject<{
1293
1389
  serialize?: boolean | undefined;
1294
1390
  reliability?: {
1295
1391
  watchdog?: {
1296
- fresh?: {
1392
+ resume?: {
1297
1393
  noOutputTimeoutMs?: number | undefined;
1298
1394
  noOutputTimeoutRatio?: number | undefined;
1299
1395
  minMs?: number | undefined;
1300
1396
  maxMs?: number | undefined;
1301
1397
  } | undefined;
1302
- resume?: {
1398
+ fresh?: {
1303
1399
  noOutputTimeoutMs?: number | undefined;
1304
1400
  noOutputTimeoutRatio?: number | undefined;
1305
1401
  minMs?: number | undefined;
@@ -1308,19 +1404,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
1308
1404
  } | undefined;
1309
1405
  } | undefined;
1310
1406
  }> | undefined;
1311
- tools?: {
1312
- allow?: string[] | undefined;
1313
- deny?: string[] | undefined;
1314
- } | undefined;
1315
- modelControl?: {
1316
- endpoint: string;
1317
- botToken: string;
1318
- deviceSecret: string;
1319
- models: string[];
1320
- } | undefined;
1321
1407
  cliSessionId?: string | undefined;
1322
- systemPrompt?: string | undefined;
1323
- skills?: string[] | undefined;
1324
1408
  identity?: {
1325
1409
  name?: string | undefined;
1326
1410
  emoji?: string | undefined;
@@ -1393,7 +1477,6 @@ export declare const AgentBindingSchema: z.ZodObject<{
1393
1477
  userId?: string | undefined;
1394
1478
  }>;
1395
1479
  }, "strip", z.ZodTypeAny, {
1396
- agentId: string;
1397
1480
  match: {
1398
1481
  accountId?: string | undefined;
1399
1482
  channel?: string | undefined;
@@ -1403,9 +1486,9 @@ export declare const AgentBindingSchema: z.ZodObject<{
1403
1486
  } | undefined;
1404
1487
  userId?: string | undefined;
1405
1488
  };
1489
+ agentId: string;
1406
1490
  comment?: string | undefined;
1407
1491
  }, {
1408
- agentId: string;
1409
1492
  match: {
1410
1493
  accountId?: string | undefined;
1411
1494
  channel?: string | undefined;
@@ -1415,6 +1498,7 @@ export declare const AgentBindingSchema: z.ZodObject<{
1415
1498
  } | undefined;
1416
1499
  userId?: string | undefined;
1417
1500
  };
1501
+ agentId: string;
1418
1502
  comment?: string | undefined;
1419
1503
  }>;
1420
1504
  export type AgentBinding = z.infer<typeof AgentBindingSchema>;
@@ -1433,11 +1517,11 @@ export declare const LoggingConfigSchema: z.ZodObject<{
1433
1517
  pretty: z.ZodDefault<z.ZodBoolean>;
1434
1518
  retentionDays: z.ZodDefault<z.ZodNumber>;
1435
1519
  }, "strip", z.ZodTypeAny, {
1436
- level: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
1520
+ level: "error" | "fatal" | "warn" | "info" | "debug" | "trace";
1437
1521
  pretty: boolean;
1438
1522
  retentionDays: number;
1439
1523
  }, {
1440
- level?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | undefined;
1524
+ level?: "error" | "fatal" | "warn" | "info" | "debug" | "trace" | undefined;
1441
1525
  pretty?: boolean | undefined;
1442
1526
  retentionDays?: number | undefined;
1443
1527
  }>;
@@ -1471,6 +1555,7 @@ export declare const AppConfigSchema: z.ZodObject<{
1471
1555
  gateway_url: z.ZodString;
1472
1556
  openapi_base_url: z.ZodOptional<z.ZodString>;
1473
1557
  bot_token: z.ZodString;
1558
+ managed_runtime: z.ZodOptional<z.ZodBoolean>;
1474
1559
  poll_timeout: z.ZodDefault<z.ZodNumber>;
1475
1560
  retry_interval: z.ZodDefault<z.ZodNumber>;
1476
1561
  max_retry_interval: z.ZodDefault<z.ZodNumber>;
@@ -1481,10 +1566,12 @@ export declare const AppConfigSchema: z.ZodObject<{
1481
1566
  retry_interval: number;
1482
1567
  max_retry_interval: number;
1483
1568
  openapi_base_url?: string | undefined;
1569
+ managed_runtime?: boolean | undefined;
1484
1570
  }, {
1485
1571
  gateway_url: string;
1486
1572
  bot_token: string;
1487
1573
  openapi_base_url?: string | undefined;
1574
+ managed_runtime?: boolean | undefined;
1488
1575
  poll_timeout?: number | undefined;
1489
1576
  retry_interval?: number | undefined;
1490
1577
  max_retry_interval?: number | undefined;
@@ -1503,6 +1590,7 @@ export declare const AppConfigSchema: z.ZodObject<{
1503
1590
  retry_interval: number;
1504
1591
  max_retry_interval: number;
1505
1592
  openapi_base_url?: string | undefined;
1593
+ managed_runtime?: boolean | undefined;
1506
1594
  }> | undefined;
1507
1595
  }, {
1508
1596
  gateway_url?: string | undefined;
@@ -1515,6 +1603,7 @@ export declare const AppConfigSchema: z.ZodObject<{
1515
1603
  gateway_url: string;
1516
1604
  bot_token: string;
1517
1605
  openapi_base_url?: string | undefined;
1606
+ managed_runtime?: boolean | undefined;
1518
1607
  poll_timeout?: number | undefined;
1519
1608
  retry_interval?: number | undefined;
1520
1609
  max_retry_interval?: number | undefined;
@@ -1533,6 +1622,7 @@ export declare const AppConfigSchema: z.ZodObject<{
1533
1622
  retry_interval: number;
1534
1623
  max_retry_interval: number;
1535
1624
  openapi_base_url?: string | undefined;
1625
+ managed_runtime?: boolean | undefined;
1536
1626
  }> | undefined;
1537
1627
  }, {
1538
1628
  gateway_url?: string | undefined;
@@ -1545,6 +1635,7 @@ export declare const AppConfigSchema: z.ZodObject<{
1545
1635
  gateway_url: string;
1546
1636
  bot_token: string;
1547
1637
  openapi_base_url?: string | undefined;
1638
+ managed_runtime?: boolean | undefined;
1548
1639
  poll_timeout?: number | undefined;
1549
1640
  retry_interval?: number | undefined;
1550
1641
  max_retry_interval?: number | undefined;
@@ -1565,6 +1656,7 @@ export declare const AppConfigSchema: z.ZodObject<{
1565
1656
  retry_interval: number;
1566
1657
  max_retry_interval: number;
1567
1658
  openapi_base_url?: string | undefined;
1659
+ managed_runtime?: boolean | undefined;
1568
1660
  }> | undefined;
1569
1661
  };
1570
1662
  }, {
@@ -1579,6 +1671,7 @@ export declare const AppConfigSchema: z.ZodObject<{
1579
1671
  gateway_url: string;
1580
1672
  bot_token: string;
1581
1673
  openapi_base_url?: string | undefined;
1674
+ managed_runtime?: boolean | undefined;
1582
1675
  poll_timeout?: number | undefined;
1583
1676
  retry_interval?: number | undefined;
1584
1677
  max_retry_interval?: number | undefined;
@@ -1588,15 +1681,34 @@ export declare const AppConfigSchema: z.ZodObject<{
1588
1681
  agents: z.ZodObject<{
1589
1682
  defaults: z.ZodObject<{
1590
1683
  allowModelSwitch: z.ZodOptional<z.ZodBoolean>;
1684
+ modelControl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
1685
+ endpoint: z.ZodEffects<z.ZodString, string, string>;
1686
+ botToken: z.ZodString;
1687
+ deviceSecret: z.ZodString;
1688
+ models: z.ZodArray<z.ZodString, "many">;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ endpoint: string;
1691
+ botToken: string;
1692
+ deviceSecret: string;
1693
+ models: string[];
1694
+ }, {
1695
+ endpoint: string;
1696
+ botToken: string;
1697
+ deviceSecret: string;
1698
+ models: string[];
1699
+ }>]>>;
1591
1700
  model: z.ZodObject<{
1592
1701
  primary: z.ZodString;
1593
1702
  fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1703
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>>;
1594
1704
  }, "strip", z.ZodTypeAny, {
1595
1705
  primary: string;
1596
1706
  fallbacks?: string[] | undefined;
1707
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
1597
1708
  }, {
1598
1709
  primary: string;
1599
1710
  fallbacks?: string[] | undefined;
1711
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
1600
1712
  }>;
1601
1713
  cliBackends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1602
1714
  command: z.ZodString;
@@ -1698,26 +1810,26 @@ export declare const AppConfigSchema: z.ZodObject<{
1698
1810
  maxMs?: number | undefined;
1699
1811
  }>>;
1700
1812
  }, "strip", z.ZodTypeAny, {
1701
- fresh?: {
1813
+ resume?: {
1702
1814
  noOutputTimeoutMs?: number | undefined;
1703
1815
  noOutputTimeoutRatio?: number | undefined;
1704
1816
  minMs?: number | undefined;
1705
1817
  maxMs?: number | undefined;
1706
1818
  } | undefined;
1707
- resume?: {
1819
+ fresh?: {
1708
1820
  noOutputTimeoutMs?: number | undefined;
1709
1821
  noOutputTimeoutRatio?: number | undefined;
1710
1822
  minMs?: number | undefined;
1711
1823
  maxMs?: number | undefined;
1712
1824
  } | undefined;
1713
1825
  }, {
1714
- fresh?: {
1826
+ resume?: {
1715
1827
  noOutputTimeoutMs?: number | undefined;
1716
1828
  noOutputTimeoutRatio?: number | undefined;
1717
1829
  minMs?: number | undefined;
1718
1830
  maxMs?: number | undefined;
1719
1831
  } | undefined;
1720
- resume?: {
1832
+ fresh?: {
1721
1833
  noOutputTimeoutMs?: number | undefined;
1722
1834
  noOutputTimeoutRatio?: number | undefined;
1723
1835
  minMs?: number | undefined;
@@ -1726,13 +1838,13 @@ export declare const AppConfigSchema: z.ZodObject<{
1726
1838
  }>>;
1727
1839
  }, "strip", z.ZodTypeAny, {
1728
1840
  watchdog?: {
1729
- fresh?: {
1841
+ resume?: {
1730
1842
  noOutputTimeoutMs?: number | undefined;
1731
1843
  noOutputTimeoutRatio?: number | undefined;
1732
1844
  minMs?: number | undefined;
1733
1845
  maxMs?: number | undefined;
1734
1846
  } | undefined;
1735
- resume?: {
1847
+ fresh?: {
1736
1848
  noOutputTimeoutMs?: number | undefined;
1737
1849
  noOutputTimeoutRatio?: number | undefined;
1738
1850
  minMs?: number | undefined;
@@ -1741,13 +1853,13 @@ export declare const AppConfigSchema: z.ZodObject<{
1741
1853
  } | undefined;
1742
1854
  }, {
1743
1855
  watchdog?: {
1744
- fresh?: {
1856
+ resume?: {
1745
1857
  noOutputTimeoutMs?: number | undefined;
1746
1858
  noOutputTimeoutRatio?: number | undefined;
1747
1859
  minMs?: number | undefined;
1748
1860
  maxMs?: number | undefined;
1749
1861
  } | undefined;
1750
- resume?: {
1862
+ fresh?: {
1751
1863
  noOutputTimeoutMs?: number | undefined;
1752
1864
  noOutputTimeoutRatio?: number | undefined;
1753
1865
  minMs?: number | undefined;
@@ -1796,13 +1908,13 @@ export declare const AppConfigSchema: z.ZodObject<{
1796
1908
  serialize?: boolean | undefined;
1797
1909
  reliability?: {
1798
1910
  watchdog?: {
1799
- fresh?: {
1911
+ resume?: {
1800
1912
  noOutputTimeoutMs?: number | undefined;
1801
1913
  noOutputTimeoutRatio?: number | undefined;
1802
1914
  minMs?: number | undefined;
1803
1915
  maxMs?: number | undefined;
1804
1916
  } | undefined;
1805
- resume?: {
1917
+ fresh?: {
1806
1918
  noOutputTimeoutMs?: number | undefined;
1807
1919
  noOutputTimeoutRatio?: number | undefined;
1808
1920
  minMs?: number | undefined;
@@ -1851,13 +1963,13 @@ export declare const AppConfigSchema: z.ZodObject<{
1851
1963
  serialize?: boolean | undefined;
1852
1964
  reliability?: {
1853
1965
  watchdog?: {
1854
- fresh?: {
1966
+ resume?: {
1855
1967
  noOutputTimeoutMs?: number | undefined;
1856
1968
  noOutputTimeoutRatio?: number | undefined;
1857
1969
  minMs?: number | undefined;
1858
1970
  maxMs?: number | undefined;
1859
1971
  } | undefined;
1860
- resume?: {
1972
+ fresh?: {
1861
1973
  noOutputTimeoutMs?: number | undefined;
1862
1974
  noOutputTimeoutRatio?: number | undefined;
1863
1975
  minMs?: number | undefined;
@@ -1883,10 +1995,21 @@ export declare const AppConfigSchema: z.ZodObject<{
1883
1995
  model: {
1884
1996
  primary: string;
1885
1997
  fallbacks?: string[] | undefined;
1998
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
1886
1999
  };
2000
+ tools?: {
2001
+ allow?: string[] | undefined;
2002
+ deny?: string[] | undefined;
2003
+ } | undefined;
1887
2004
  env?: Record<string, string> | undefined;
1888
2005
  clearEnv?: string[] | undefined;
1889
2006
  allowModelSwitch?: boolean | undefined;
2007
+ modelControl?: false | {
2008
+ endpoint: string;
2009
+ botToken: string;
2010
+ deviceSecret: string;
2011
+ models: string[];
2012
+ } | undefined;
1890
2013
  cliBackends?: Record<string, {
1891
2014
  command: string;
1892
2015
  args?: string[] | undefined;
@@ -1928,13 +2051,13 @@ export declare const AppConfigSchema: z.ZodObject<{
1928
2051
  serialize?: boolean | undefined;
1929
2052
  reliability?: {
1930
2053
  watchdog?: {
1931
- fresh?: {
2054
+ resume?: {
1932
2055
  noOutputTimeoutMs?: number | undefined;
1933
2056
  noOutputTimeoutRatio?: number | undefined;
1934
2057
  minMs?: number | undefined;
1935
2058
  maxMs?: number | undefined;
1936
2059
  } | undefined;
1937
- resume?: {
2060
+ fresh?: {
1938
2061
  noOutputTimeoutMs?: number | undefined;
1939
2062
  noOutputTimeoutRatio?: number | undefined;
1940
2063
  minMs?: number | undefined;
@@ -1943,19 +2066,26 @@ export declare const AppConfigSchema: z.ZodObject<{
1943
2066
  } | undefined;
1944
2067
  } | undefined;
1945
2068
  }> | undefined;
1946
- tools?: {
1947
- allow?: string[] | undefined;
1948
- deny?: string[] | undefined;
1949
- } | undefined;
1950
2069
  max_tokens?: number | undefined;
1951
2070
  }, {
1952
2071
  model: {
1953
2072
  primary: string;
1954
2073
  fallbacks?: string[] | undefined;
2074
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
1955
2075
  };
2076
+ tools?: {
2077
+ allow?: string[] | undefined;
2078
+ deny?: string[] | undefined;
2079
+ } | undefined;
1956
2080
  env?: Record<string, string> | undefined;
1957
2081
  clearEnv?: string[] | undefined;
1958
2082
  allowModelSwitch?: boolean | undefined;
2083
+ modelControl?: false | {
2084
+ endpoint: string;
2085
+ botToken: string;
2086
+ deviceSecret: string;
2087
+ models: string[];
2088
+ } | undefined;
1959
2089
  cliBackends?: Record<string, {
1960
2090
  command: string;
1961
2091
  args?: string[] | undefined;
@@ -1997,13 +2127,13 @@ export declare const AppConfigSchema: z.ZodObject<{
1997
2127
  serialize?: boolean | undefined;
1998
2128
  reliability?: {
1999
2129
  watchdog?: {
2000
- fresh?: {
2130
+ resume?: {
2001
2131
  noOutputTimeoutMs?: number | undefined;
2002
2132
  noOutputTimeoutRatio?: number | undefined;
2003
2133
  minMs?: number | undefined;
2004
2134
  maxMs?: number | undefined;
2005
2135
  } | undefined;
2006
- resume?: {
2136
+ fresh?: {
2007
2137
  noOutputTimeoutMs?: number | undefined;
2008
2138
  noOutputTimeoutRatio?: number | undefined;
2009
2139
  minMs?: number | undefined;
@@ -2012,16 +2142,12 @@ export declare const AppConfigSchema: z.ZodObject<{
2012
2142
  } | undefined;
2013
2143
  } | undefined;
2014
2144
  }> | undefined;
2015
- tools?: {
2016
- allow?: string[] | undefined;
2017
- deny?: string[] | undefined;
2018
- } | undefined;
2019
2145
  max_tokens?: number | undefined;
2020
2146
  }>;
2021
2147
  list: z.ZodOptional<z.ZodArray<z.ZodObject<{
2022
2148
  allowModelSwitch: z.ZodOptional<z.ZodBoolean>;
2023
- modelControl: z.ZodOptional<z.ZodObject<{
2024
- endpoint: z.ZodString;
2149
+ modelControl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
2150
+ endpoint: z.ZodEffects<z.ZodString, string, string>;
2025
2151
  botToken: z.ZodString;
2026
2152
  deviceSecret: z.ZodString;
2027
2153
  models: z.ZodArray<z.ZodString, "many">;
@@ -2035,19 +2161,22 @@ export declare const AppConfigSchema: z.ZodObject<{
2035
2161
  botToken: string;
2036
2162
  deviceSecret: string;
2037
2163
  models: string[];
2038
- }>>;
2164
+ }>]>>;
2039
2165
  id: z.ZodString;
2040
2166
  default: z.ZodOptional<z.ZodBoolean>;
2041
2167
  name: z.ZodOptional<z.ZodString>;
2042
2168
  model: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2043
2169
  primary: z.ZodString;
2044
2170
  fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2171
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>>;
2045
2172
  }, "strip", z.ZodTypeAny, {
2046
2173
  primary: string;
2047
2174
  fallbacks?: string[] | undefined;
2175
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
2048
2176
  }, {
2049
2177
  primary: string;
2050
2178
  fallbacks?: string[] | undefined;
2179
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
2051
2180
  }>, z.ZodString]>>;
2052
2181
  workspace: z.ZodOptional<z.ZodString>;
2053
2182
  cliSessionId: z.ZodOptional<z.ZodString>;
@@ -2152,26 +2281,26 @@ export declare const AppConfigSchema: z.ZodObject<{
2152
2281
  maxMs?: number | undefined;
2153
2282
  }>>;
2154
2283
  }, "strip", z.ZodTypeAny, {
2155
- fresh?: {
2284
+ resume?: {
2156
2285
  noOutputTimeoutMs?: number | undefined;
2157
2286
  noOutputTimeoutRatio?: number | undefined;
2158
2287
  minMs?: number | undefined;
2159
2288
  maxMs?: number | undefined;
2160
2289
  } | undefined;
2161
- resume?: {
2290
+ fresh?: {
2162
2291
  noOutputTimeoutMs?: number | undefined;
2163
2292
  noOutputTimeoutRatio?: number | undefined;
2164
2293
  minMs?: number | undefined;
2165
2294
  maxMs?: number | undefined;
2166
2295
  } | undefined;
2167
2296
  }, {
2168
- fresh?: {
2297
+ resume?: {
2169
2298
  noOutputTimeoutMs?: number | undefined;
2170
2299
  noOutputTimeoutRatio?: number | undefined;
2171
2300
  minMs?: number | undefined;
2172
2301
  maxMs?: number | undefined;
2173
2302
  } | undefined;
2174
- resume?: {
2303
+ fresh?: {
2175
2304
  noOutputTimeoutMs?: number | undefined;
2176
2305
  noOutputTimeoutRatio?: number | undefined;
2177
2306
  minMs?: number | undefined;
@@ -2180,13 +2309,13 @@ export declare const AppConfigSchema: z.ZodObject<{
2180
2309
  }>>;
2181
2310
  }, "strip", z.ZodTypeAny, {
2182
2311
  watchdog?: {
2183
- fresh?: {
2312
+ resume?: {
2184
2313
  noOutputTimeoutMs?: number | undefined;
2185
2314
  noOutputTimeoutRatio?: number | undefined;
2186
2315
  minMs?: number | undefined;
2187
2316
  maxMs?: number | undefined;
2188
2317
  } | undefined;
2189
- resume?: {
2318
+ fresh?: {
2190
2319
  noOutputTimeoutMs?: number | undefined;
2191
2320
  noOutputTimeoutRatio?: number | undefined;
2192
2321
  minMs?: number | undefined;
@@ -2195,13 +2324,13 @@ export declare const AppConfigSchema: z.ZodObject<{
2195
2324
  } | undefined;
2196
2325
  }, {
2197
2326
  watchdog?: {
2198
- fresh?: {
2327
+ resume?: {
2199
2328
  noOutputTimeoutMs?: number | undefined;
2200
2329
  noOutputTimeoutRatio?: number | undefined;
2201
2330
  minMs?: number | undefined;
2202
2331
  maxMs?: number | undefined;
2203
2332
  } | undefined;
2204
- resume?: {
2333
+ fresh?: {
2205
2334
  noOutputTimeoutMs?: number | undefined;
2206
2335
  noOutputTimeoutRatio?: number | undefined;
2207
2336
  minMs?: number | undefined;
@@ -2250,13 +2379,13 @@ export declare const AppConfigSchema: z.ZodObject<{
2250
2379
  serialize?: boolean | undefined;
2251
2380
  reliability?: {
2252
2381
  watchdog?: {
2253
- fresh?: {
2382
+ resume?: {
2254
2383
  noOutputTimeoutMs?: number | undefined;
2255
2384
  noOutputTimeoutRatio?: number | undefined;
2256
2385
  minMs?: number | undefined;
2257
2386
  maxMs?: number | undefined;
2258
2387
  } | undefined;
2259
- resume?: {
2388
+ fresh?: {
2260
2389
  noOutputTimeoutMs?: number | undefined;
2261
2390
  noOutputTimeoutRatio?: number | undefined;
2262
2391
  minMs?: number | undefined;
@@ -2305,13 +2434,13 @@ export declare const AppConfigSchema: z.ZodObject<{
2305
2434
  serialize?: boolean | undefined;
2306
2435
  reliability?: {
2307
2436
  watchdog?: {
2308
- fresh?: {
2437
+ resume?: {
2309
2438
  noOutputTimeoutMs?: number | undefined;
2310
2439
  noOutputTimeoutRatio?: number | undefined;
2311
2440
  minMs?: number | undefined;
2312
2441
  maxMs?: number | undefined;
2313
2442
  } | undefined;
2314
- resume?: {
2443
+ fresh?: {
2315
2444
  noOutputTimeoutMs?: number | undefined;
2316
2445
  noOutputTimeoutRatio?: number | undefined;
2317
2446
  minMs?: number | undefined;
@@ -2348,13 +2477,26 @@ export declare const AppConfigSchema: z.ZodObject<{
2348
2477
  model?: string | {
2349
2478
  primary: string;
2350
2479
  fallbacks?: string[] | undefined;
2480
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
2351
2481
  } | undefined;
2352
2482
  workspace?: string | undefined;
2353
2483
  default?: boolean | undefined;
2354
2484
  name?: string | undefined;
2485
+ systemPrompt?: string | undefined;
2486
+ tools?: {
2487
+ allow?: string[] | undefined;
2488
+ deny?: string[] | undefined;
2489
+ } | undefined;
2490
+ skills?: string[] | undefined;
2355
2491
  env?: Record<string, string> | undefined;
2356
2492
  clearEnv?: string[] | undefined;
2357
2493
  allowModelSwitch?: boolean | undefined;
2494
+ modelControl?: false | {
2495
+ endpoint: string;
2496
+ botToken: string;
2497
+ deviceSecret: string;
2498
+ models: string[];
2499
+ } | undefined;
2358
2500
  cliBackends?: Record<string, {
2359
2501
  args?: string[] | undefined;
2360
2502
  command?: string | undefined;
@@ -2396,13 +2538,13 @@ export declare const AppConfigSchema: z.ZodObject<{
2396
2538
  serialize?: boolean | undefined;
2397
2539
  reliability?: {
2398
2540
  watchdog?: {
2399
- fresh?: {
2541
+ resume?: {
2400
2542
  noOutputTimeoutMs?: number | undefined;
2401
2543
  noOutputTimeoutRatio?: number | undefined;
2402
2544
  minMs?: number | undefined;
2403
2545
  maxMs?: number | undefined;
2404
2546
  } | undefined;
2405
- resume?: {
2547
+ fresh?: {
2406
2548
  noOutputTimeoutMs?: number | undefined;
2407
2549
  noOutputTimeoutRatio?: number | undefined;
2408
2550
  minMs?: number | undefined;
@@ -2411,19 +2553,7 @@ export declare const AppConfigSchema: z.ZodObject<{
2411
2553
  } | undefined;
2412
2554
  } | undefined;
2413
2555
  }> | undefined;
2414
- tools?: {
2415
- allow?: string[] | undefined;
2416
- deny?: string[] | undefined;
2417
- } | undefined;
2418
- modelControl?: {
2419
- endpoint: string;
2420
- botToken: string;
2421
- deviceSecret: string;
2422
- models: string[];
2423
- } | undefined;
2424
2556
  cliSessionId?: string | undefined;
2425
- systemPrompt?: string | undefined;
2426
- skills?: string[] | undefined;
2427
2557
  identity?: {
2428
2558
  name?: string | undefined;
2429
2559
  emoji?: string | undefined;
@@ -2433,13 +2563,26 @@ export declare const AppConfigSchema: z.ZodObject<{
2433
2563
  model?: string | {
2434
2564
  primary: string;
2435
2565
  fallbacks?: string[] | undefined;
2566
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
2436
2567
  } | undefined;
2437
2568
  workspace?: string | undefined;
2438
2569
  default?: boolean | undefined;
2439
2570
  name?: string | undefined;
2571
+ systemPrompt?: string | undefined;
2572
+ tools?: {
2573
+ allow?: string[] | undefined;
2574
+ deny?: string[] | undefined;
2575
+ } | undefined;
2576
+ skills?: string[] | undefined;
2440
2577
  env?: Record<string, string> | undefined;
2441
2578
  clearEnv?: string[] | undefined;
2442
2579
  allowModelSwitch?: boolean | undefined;
2580
+ modelControl?: false | {
2581
+ endpoint: string;
2582
+ botToken: string;
2583
+ deviceSecret: string;
2584
+ models: string[];
2585
+ } | undefined;
2443
2586
  cliBackends?: Record<string, {
2444
2587
  args?: string[] | undefined;
2445
2588
  command?: string | undefined;
@@ -2481,13 +2624,13 @@ export declare const AppConfigSchema: z.ZodObject<{
2481
2624
  serialize?: boolean | undefined;
2482
2625
  reliability?: {
2483
2626
  watchdog?: {
2484
- fresh?: {
2627
+ resume?: {
2485
2628
  noOutputTimeoutMs?: number | undefined;
2486
2629
  noOutputTimeoutRatio?: number | undefined;
2487
2630
  minMs?: number | undefined;
2488
2631
  maxMs?: number | undefined;
2489
2632
  } | undefined;
2490
- resume?: {
2633
+ fresh?: {
2491
2634
  noOutputTimeoutMs?: number | undefined;
2492
2635
  noOutputTimeoutRatio?: number | undefined;
2493
2636
  minMs?: number | undefined;
@@ -2496,19 +2639,7 @@ export declare const AppConfigSchema: z.ZodObject<{
2496
2639
  } | undefined;
2497
2640
  } | undefined;
2498
2641
  }> | undefined;
2499
- tools?: {
2500
- allow?: string[] | undefined;
2501
- deny?: string[] | undefined;
2502
- } | undefined;
2503
- modelControl?: {
2504
- endpoint: string;
2505
- botToken: string;
2506
- deviceSecret: string;
2507
- models: string[];
2508
- } | undefined;
2509
2642
  cliSessionId?: string | undefined;
2510
- systemPrompt?: string | undefined;
2511
- skills?: string[] | undefined;
2512
2643
  identity?: {
2513
2644
  name?: string | undefined;
2514
2645
  emoji?: string | undefined;
@@ -2519,10 +2650,21 @@ export declare const AppConfigSchema: z.ZodObject<{
2519
2650
  model: {
2520
2651
  primary: string;
2521
2652
  fallbacks?: string[] | undefined;
2653
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
2522
2654
  };
2655
+ tools?: {
2656
+ allow?: string[] | undefined;
2657
+ deny?: string[] | undefined;
2658
+ } | undefined;
2523
2659
  env?: Record<string, string> | undefined;
2524
2660
  clearEnv?: string[] | undefined;
2525
2661
  allowModelSwitch?: boolean | undefined;
2662
+ modelControl?: false | {
2663
+ endpoint: string;
2664
+ botToken: string;
2665
+ deviceSecret: string;
2666
+ models: string[];
2667
+ } | undefined;
2526
2668
  cliBackends?: Record<string, {
2527
2669
  command: string;
2528
2670
  args?: string[] | undefined;
@@ -2564,13 +2706,13 @@ export declare const AppConfigSchema: z.ZodObject<{
2564
2706
  serialize?: boolean | undefined;
2565
2707
  reliability?: {
2566
2708
  watchdog?: {
2567
- fresh?: {
2709
+ resume?: {
2568
2710
  noOutputTimeoutMs?: number | undefined;
2569
2711
  noOutputTimeoutRatio?: number | undefined;
2570
2712
  minMs?: number | undefined;
2571
2713
  maxMs?: number | undefined;
2572
2714
  } | undefined;
2573
- resume?: {
2715
+ fresh?: {
2574
2716
  noOutputTimeoutMs?: number | undefined;
2575
2717
  noOutputTimeoutRatio?: number | undefined;
2576
2718
  minMs?: number | undefined;
@@ -2579,10 +2721,6 @@ export declare const AppConfigSchema: z.ZodObject<{
2579
2721
  } | undefined;
2580
2722
  } | undefined;
2581
2723
  }> | undefined;
2582
- tools?: {
2583
- allow?: string[] | undefined;
2584
- deny?: string[] | undefined;
2585
- } | undefined;
2586
2724
  max_tokens?: number | undefined;
2587
2725
  };
2588
2726
  list?: {
@@ -2590,13 +2728,26 @@ export declare const AppConfigSchema: z.ZodObject<{
2590
2728
  model?: string | {
2591
2729
  primary: string;
2592
2730
  fallbacks?: string[] | undefined;
2731
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
2593
2732
  } | undefined;
2594
2733
  workspace?: string | undefined;
2595
2734
  default?: boolean | undefined;
2596
2735
  name?: string | undefined;
2736
+ systemPrompt?: string | undefined;
2737
+ tools?: {
2738
+ allow?: string[] | undefined;
2739
+ deny?: string[] | undefined;
2740
+ } | undefined;
2741
+ skills?: string[] | undefined;
2597
2742
  env?: Record<string, string> | undefined;
2598
2743
  clearEnv?: string[] | undefined;
2599
2744
  allowModelSwitch?: boolean | undefined;
2745
+ modelControl?: false | {
2746
+ endpoint: string;
2747
+ botToken: string;
2748
+ deviceSecret: string;
2749
+ models: string[];
2750
+ } | undefined;
2600
2751
  cliBackends?: Record<string, {
2601
2752
  args?: string[] | undefined;
2602
2753
  command?: string | undefined;
@@ -2638,13 +2789,13 @@ export declare const AppConfigSchema: z.ZodObject<{
2638
2789
  serialize?: boolean | undefined;
2639
2790
  reliability?: {
2640
2791
  watchdog?: {
2641
- fresh?: {
2792
+ resume?: {
2642
2793
  noOutputTimeoutMs?: number | undefined;
2643
2794
  noOutputTimeoutRatio?: number | undefined;
2644
2795
  minMs?: number | undefined;
2645
2796
  maxMs?: number | undefined;
2646
2797
  } | undefined;
2647
- resume?: {
2798
+ fresh?: {
2648
2799
  noOutputTimeoutMs?: number | undefined;
2649
2800
  noOutputTimeoutRatio?: number | undefined;
2650
2801
  minMs?: number | undefined;
@@ -2653,19 +2804,7 @@ export declare const AppConfigSchema: z.ZodObject<{
2653
2804
  } | undefined;
2654
2805
  } | undefined;
2655
2806
  }> | undefined;
2656
- tools?: {
2657
- allow?: string[] | undefined;
2658
- deny?: string[] | undefined;
2659
- } | undefined;
2660
- modelControl?: {
2661
- endpoint: string;
2662
- botToken: string;
2663
- deviceSecret: string;
2664
- models: string[];
2665
- } | undefined;
2666
2807
  cliSessionId?: string | undefined;
2667
- systemPrompt?: string | undefined;
2668
- skills?: string[] | undefined;
2669
2808
  identity?: {
2670
2809
  name?: string | undefined;
2671
2810
  emoji?: string | undefined;
@@ -2676,10 +2815,21 @@ export declare const AppConfigSchema: z.ZodObject<{
2676
2815
  model: {
2677
2816
  primary: string;
2678
2817
  fallbacks?: string[] | undefined;
2818
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
2679
2819
  };
2820
+ tools?: {
2821
+ allow?: string[] | undefined;
2822
+ deny?: string[] | undefined;
2823
+ } | undefined;
2680
2824
  env?: Record<string, string> | undefined;
2681
2825
  clearEnv?: string[] | undefined;
2682
2826
  allowModelSwitch?: boolean | undefined;
2827
+ modelControl?: false | {
2828
+ endpoint: string;
2829
+ botToken: string;
2830
+ deviceSecret: string;
2831
+ models: string[];
2832
+ } | undefined;
2683
2833
  cliBackends?: Record<string, {
2684
2834
  command: string;
2685
2835
  args?: string[] | undefined;
@@ -2721,13 +2871,13 @@ export declare const AppConfigSchema: z.ZodObject<{
2721
2871
  serialize?: boolean | undefined;
2722
2872
  reliability?: {
2723
2873
  watchdog?: {
2724
- fresh?: {
2874
+ resume?: {
2725
2875
  noOutputTimeoutMs?: number | undefined;
2726
2876
  noOutputTimeoutRatio?: number | undefined;
2727
2877
  minMs?: number | undefined;
2728
2878
  maxMs?: number | undefined;
2729
2879
  } | undefined;
2730
- resume?: {
2880
+ fresh?: {
2731
2881
  noOutputTimeoutMs?: number | undefined;
2732
2882
  noOutputTimeoutRatio?: number | undefined;
2733
2883
  minMs?: number | undefined;
@@ -2736,10 +2886,6 @@ export declare const AppConfigSchema: z.ZodObject<{
2736
2886
  } | undefined;
2737
2887
  } | undefined;
2738
2888
  }> | undefined;
2739
- tools?: {
2740
- allow?: string[] | undefined;
2741
- deny?: string[] | undefined;
2742
- } | undefined;
2743
2889
  max_tokens?: number | undefined;
2744
2890
  };
2745
2891
  list?: {
@@ -2747,13 +2893,26 @@ export declare const AppConfigSchema: z.ZodObject<{
2747
2893
  model?: string | {
2748
2894
  primary: string;
2749
2895
  fallbacks?: string[] | undefined;
2896
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
2750
2897
  } | undefined;
2751
2898
  workspace?: string | undefined;
2752
2899
  default?: boolean | undefined;
2753
2900
  name?: string | undefined;
2901
+ systemPrompt?: string | undefined;
2902
+ tools?: {
2903
+ allow?: string[] | undefined;
2904
+ deny?: string[] | undefined;
2905
+ } | undefined;
2906
+ skills?: string[] | undefined;
2754
2907
  env?: Record<string, string> | undefined;
2755
2908
  clearEnv?: string[] | undefined;
2756
2909
  allowModelSwitch?: boolean | undefined;
2910
+ modelControl?: false | {
2911
+ endpoint: string;
2912
+ botToken: string;
2913
+ deviceSecret: string;
2914
+ models: string[];
2915
+ } | undefined;
2757
2916
  cliBackends?: Record<string, {
2758
2917
  args?: string[] | undefined;
2759
2918
  command?: string | undefined;
@@ -2795,13 +2954,13 @@ export declare const AppConfigSchema: z.ZodObject<{
2795
2954
  serialize?: boolean | undefined;
2796
2955
  reliability?: {
2797
2956
  watchdog?: {
2798
- fresh?: {
2957
+ resume?: {
2799
2958
  noOutputTimeoutMs?: number | undefined;
2800
2959
  noOutputTimeoutRatio?: number | undefined;
2801
2960
  minMs?: number | undefined;
2802
2961
  maxMs?: number | undefined;
2803
2962
  } | undefined;
2804
- resume?: {
2963
+ fresh?: {
2805
2964
  noOutputTimeoutMs?: number | undefined;
2806
2965
  noOutputTimeoutRatio?: number | undefined;
2807
2966
  minMs?: number | undefined;
@@ -2810,19 +2969,7 @@ export declare const AppConfigSchema: z.ZodObject<{
2810
2969
  } | undefined;
2811
2970
  } | undefined;
2812
2971
  }> | undefined;
2813
- tools?: {
2814
- allow?: string[] | undefined;
2815
- deny?: string[] | undefined;
2816
- } | undefined;
2817
- modelControl?: {
2818
- endpoint: string;
2819
- botToken: string;
2820
- deviceSecret: string;
2821
- models: string[];
2822
- } | undefined;
2823
2972
  cliSessionId?: string | undefined;
2824
- systemPrompt?: string | undefined;
2825
- skills?: string[] | undefined;
2826
2973
  identity?: {
2827
2974
  name?: string | undefined;
2828
2975
  emoji?: string | undefined;
@@ -2864,7 +3011,6 @@ export declare const AppConfigSchema: z.ZodObject<{
2864
3011
  userId?: string | undefined;
2865
3012
  }>;
2866
3013
  }, "strip", z.ZodTypeAny, {
2867
- agentId: string;
2868
3014
  match: {
2869
3015
  accountId?: string | undefined;
2870
3016
  channel?: string | undefined;
@@ -2874,9 +3020,9 @@ export declare const AppConfigSchema: z.ZodObject<{
2874
3020
  } | undefined;
2875
3021
  userId?: string | undefined;
2876
3022
  };
3023
+ agentId: string;
2877
3024
  comment?: string | undefined;
2878
3025
  }, {
2879
- agentId: string;
2880
3026
  match: {
2881
3027
  accountId?: string | undefined;
2882
3028
  channel?: string | undefined;
@@ -2886,6 +3032,7 @@ export declare const AppConfigSchema: z.ZodObject<{
2886
3032
  } | undefined;
2887
3033
  userId?: string | undefined;
2888
3034
  };
3035
+ agentId: string;
2889
3036
  comment?: string | undefined;
2890
3037
  }>, "many">>;
2891
3038
  concurrency: z.ZodDefault<z.ZodObject<{
@@ -2920,45 +3067,42 @@ export declare const AppConfigSchema: z.ZodObject<{
2920
3067
  pretty: z.ZodDefault<z.ZodBoolean>;
2921
3068
  retentionDays: z.ZodDefault<z.ZodNumber>;
2922
3069
  }, "strip", z.ZodTypeAny, {
2923
- level: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
3070
+ level: "error" | "fatal" | "warn" | "info" | "debug" | "trace";
2924
3071
  pretty: boolean;
2925
3072
  retentionDays: number;
2926
3073
  }, {
2927
- level?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | undefined;
3074
+ level?: "error" | "fatal" | "warn" | "info" | "debug" | "trace" | undefined;
2928
3075
  pretty?: boolean | undefined;
2929
3076
  retentionDays?: number | undefined;
2930
3077
  }>>;
2931
3078
  }, "strip", z.ZodTypeAny, {
3079
+ files: {
3080
+ temp_dir: string;
3081
+ max_file_size: number;
3082
+ };
2932
3083
  skills: {
2933
3084
  dirs: string[];
2934
3085
  };
2935
- channels: {
2936
- botlink: {
2937
- poll_timeout: number;
2938
- retry_interval: number;
2939
- max_retry_interval: number;
2940
- gateway_url?: string | undefined;
2941
- openapi_base_url?: string | undefined;
2942
- bot_token?: string | undefined;
2943
- accounts?: Record<string, {
2944
- gateway_url: string;
2945
- bot_token: string;
2946
- poll_timeout: number;
2947
- retry_interval: number;
2948
- max_retry_interval: number;
2949
- openapi_base_url?: string | undefined;
2950
- }> | undefined;
2951
- };
2952
- };
2953
3086
  agents: {
2954
3087
  defaults: {
2955
3088
  model: {
2956
3089
  primary: string;
2957
3090
  fallbacks?: string[] | undefined;
3091
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
2958
3092
  };
3093
+ tools?: {
3094
+ allow?: string[] | undefined;
3095
+ deny?: string[] | undefined;
3096
+ } | undefined;
2959
3097
  env?: Record<string, string> | undefined;
2960
3098
  clearEnv?: string[] | undefined;
2961
3099
  allowModelSwitch?: boolean | undefined;
3100
+ modelControl?: false | {
3101
+ endpoint: string;
3102
+ botToken: string;
3103
+ deviceSecret: string;
3104
+ models: string[];
3105
+ } | undefined;
2962
3106
  cliBackends?: Record<string, {
2963
3107
  command: string;
2964
3108
  args?: string[] | undefined;
@@ -3000,13 +3144,13 @@ export declare const AppConfigSchema: z.ZodObject<{
3000
3144
  serialize?: boolean | undefined;
3001
3145
  reliability?: {
3002
3146
  watchdog?: {
3003
- fresh?: {
3147
+ resume?: {
3004
3148
  noOutputTimeoutMs?: number | undefined;
3005
3149
  noOutputTimeoutRatio?: number | undefined;
3006
3150
  minMs?: number | undefined;
3007
3151
  maxMs?: number | undefined;
3008
3152
  } | undefined;
3009
- resume?: {
3153
+ fresh?: {
3010
3154
  noOutputTimeoutMs?: number | undefined;
3011
3155
  noOutputTimeoutRatio?: number | undefined;
3012
3156
  minMs?: number | undefined;
@@ -3015,10 +3159,6 @@ export declare const AppConfigSchema: z.ZodObject<{
3015
3159
  } | undefined;
3016
3160
  } | undefined;
3017
3161
  }> | undefined;
3018
- tools?: {
3019
- allow?: string[] | undefined;
3020
- deny?: string[] | undefined;
3021
- } | undefined;
3022
3162
  max_tokens?: number | undefined;
3023
3163
  };
3024
3164
  list?: {
@@ -3026,13 +3166,26 @@ export declare const AppConfigSchema: z.ZodObject<{
3026
3166
  model?: string | {
3027
3167
  primary: string;
3028
3168
  fallbacks?: string[] | undefined;
3169
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3029
3170
  } | undefined;
3030
3171
  workspace?: string | undefined;
3031
3172
  default?: boolean | undefined;
3032
3173
  name?: string | undefined;
3174
+ systemPrompt?: string | undefined;
3175
+ tools?: {
3176
+ allow?: string[] | undefined;
3177
+ deny?: string[] | undefined;
3178
+ } | undefined;
3179
+ skills?: string[] | undefined;
3033
3180
  env?: Record<string, string> | undefined;
3034
3181
  clearEnv?: string[] | undefined;
3035
3182
  allowModelSwitch?: boolean | undefined;
3183
+ modelControl?: false | {
3184
+ endpoint: string;
3185
+ botToken: string;
3186
+ deviceSecret: string;
3187
+ models: string[];
3188
+ } | undefined;
3036
3189
  cliBackends?: Record<string, {
3037
3190
  args?: string[] | undefined;
3038
3191
  command?: string | undefined;
@@ -3074,13 +3227,13 @@ export declare const AppConfigSchema: z.ZodObject<{
3074
3227
  serialize?: boolean | undefined;
3075
3228
  reliability?: {
3076
3229
  watchdog?: {
3077
- fresh?: {
3230
+ resume?: {
3078
3231
  noOutputTimeoutMs?: number | undefined;
3079
3232
  noOutputTimeoutRatio?: number | undefined;
3080
3233
  minMs?: number | undefined;
3081
3234
  maxMs?: number | undefined;
3082
3235
  } | undefined;
3083
- resume?: {
3236
+ fresh?: {
3084
3237
  noOutputTimeoutMs?: number | undefined;
3085
3238
  noOutputTimeoutRatio?: number | undefined;
3086
3239
  minMs?: number | undefined;
@@ -3089,40 +3242,42 @@ export declare const AppConfigSchema: z.ZodObject<{
3089
3242
  } | undefined;
3090
3243
  } | undefined;
3091
3244
  }> | undefined;
3092
- tools?: {
3093
- allow?: string[] | undefined;
3094
- deny?: string[] | undefined;
3095
- } | undefined;
3096
- modelControl?: {
3097
- endpoint: string;
3098
- botToken: string;
3099
- deviceSecret: string;
3100
- models: string[];
3101
- } | undefined;
3102
3245
  cliSessionId?: string | undefined;
3103
- systemPrompt?: string | undefined;
3104
- skills?: string[] | undefined;
3105
3246
  identity?: {
3106
3247
  name?: string | undefined;
3107
3248
  emoji?: string | undefined;
3108
3249
  } | undefined;
3109
3250
  }[] | undefined;
3110
3251
  };
3252
+ channels: {
3253
+ botlink: {
3254
+ poll_timeout: number;
3255
+ retry_interval: number;
3256
+ max_retry_interval: number;
3257
+ gateway_url?: string | undefined;
3258
+ openapi_base_url?: string | undefined;
3259
+ bot_token?: string | undefined;
3260
+ accounts?: Record<string, {
3261
+ gateway_url: string;
3262
+ bot_token: string;
3263
+ poll_timeout: number;
3264
+ retry_interval: number;
3265
+ max_retry_interval: number;
3266
+ openapi_base_url?: string | undefined;
3267
+ managed_runtime?: boolean | undefined;
3268
+ }> | undefined;
3269
+ };
3270
+ };
3111
3271
  concurrency: {
3112
3272
  maxGlobal: number;
3113
3273
  maxPerAgent: number;
3114
3274
  };
3115
- files: {
3116
- temp_dir: string;
3117
- max_file_size: number;
3118
- };
3119
3275
  logging: {
3120
- level: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
3276
+ level: "error" | "fatal" | "warn" | "info" | "debug" | "trace";
3121
3277
  pretty: boolean;
3122
3278
  retentionDays: number;
3123
3279
  };
3124
3280
  bindings?: {
3125
- agentId: string;
3126
3281
  match: {
3127
3282
  accountId?: string | undefined;
3128
3283
  channel?: string | undefined;
@@ -3132,36 +3287,30 @@ export declare const AppConfigSchema: z.ZodObject<{
3132
3287
  } | undefined;
3133
3288
  userId?: string | undefined;
3134
3289
  };
3290
+ agentId: string;
3135
3291
  comment?: string | undefined;
3136
3292
  }[] | undefined;
3137
3293
  }, {
3138
- channels: {
3139
- botlink: {
3140
- gateway_url?: string | undefined;
3141
- openapi_base_url?: string | undefined;
3142
- bot_token?: string | undefined;
3143
- poll_timeout?: number | undefined;
3144
- retry_interval?: number | undefined;
3145
- max_retry_interval?: number | undefined;
3146
- accounts?: Record<string, {
3147
- gateway_url: string;
3148
- bot_token: string;
3149
- openapi_base_url?: string | undefined;
3150
- poll_timeout?: number | undefined;
3151
- retry_interval?: number | undefined;
3152
- max_retry_interval?: number | undefined;
3153
- }> | undefined;
3154
- };
3155
- };
3156
3294
  agents: {
3157
3295
  defaults: {
3158
3296
  model: {
3159
3297
  primary: string;
3160
3298
  fallbacks?: string[] | undefined;
3299
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3161
3300
  };
3301
+ tools?: {
3302
+ allow?: string[] | undefined;
3303
+ deny?: string[] | undefined;
3304
+ } | undefined;
3162
3305
  env?: Record<string, string> | undefined;
3163
3306
  clearEnv?: string[] | undefined;
3164
3307
  allowModelSwitch?: boolean | undefined;
3308
+ modelControl?: false | {
3309
+ endpoint: string;
3310
+ botToken: string;
3311
+ deviceSecret: string;
3312
+ models: string[];
3313
+ } | undefined;
3165
3314
  cliBackends?: Record<string, {
3166
3315
  command: string;
3167
3316
  args?: string[] | undefined;
@@ -3203,13 +3352,13 @@ export declare const AppConfigSchema: z.ZodObject<{
3203
3352
  serialize?: boolean | undefined;
3204
3353
  reliability?: {
3205
3354
  watchdog?: {
3206
- fresh?: {
3355
+ resume?: {
3207
3356
  noOutputTimeoutMs?: number | undefined;
3208
3357
  noOutputTimeoutRatio?: number | undefined;
3209
3358
  minMs?: number | undefined;
3210
3359
  maxMs?: number | undefined;
3211
3360
  } | undefined;
3212
- resume?: {
3361
+ fresh?: {
3213
3362
  noOutputTimeoutMs?: number | undefined;
3214
3363
  noOutputTimeoutRatio?: number | undefined;
3215
3364
  minMs?: number | undefined;
@@ -3218,10 +3367,6 @@ export declare const AppConfigSchema: z.ZodObject<{
3218
3367
  } | undefined;
3219
3368
  } | undefined;
3220
3369
  }> | undefined;
3221
- tools?: {
3222
- allow?: string[] | undefined;
3223
- deny?: string[] | undefined;
3224
- } | undefined;
3225
3370
  max_tokens?: number | undefined;
3226
3371
  };
3227
3372
  list?: {
@@ -3229,13 +3374,26 @@ export declare const AppConfigSchema: z.ZodObject<{
3229
3374
  model?: string | {
3230
3375
  primary: string;
3231
3376
  fallbacks?: string[] | undefined;
3377
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3232
3378
  } | undefined;
3233
3379
  workspace?: string | undefined;
3234
3380
  default?: boolean | undefined;
3235
3381
  name?: string | undefined;
3382
+ systemPrompt?: string | undefined;
3383
+ tools?: {
3384
+ allow?: string[] | undefined;
3385
+ deny?: string[] | undefined;
3386
+ } | undefined;
3387
+ skills?: string[] | undefined;
3236
3388
  env?: Record<string, string> | undefined;
3237
3389
  clearEnv?: string[] | undefined;
3238
3390
  allowModelSwitch?: boolean | undefined;
3391
+ modelControl?: false | {
3392
+ endpoint: string;
3393
+ botToken: string;
3394
+ deviceSecret: string;
3395
+ models: string[];
3396
+ } | undefined;
3239
3397
  cliBackends?: Record<string, {
3240
3398
  args?: string[] | undefined;
3241
3399
  command?: string | undefined;
@@ -3277,13 +3435,13 @@ export declare const AppConfigSchema: z.ZodObject<{
3277
3435
  serialize?: boolean | undefined;
3278
3436
  reliability?: {
3279
3437
  watchdog?: {
3280
- fresh?: {
3438
+ resume?: {
3281
3439
  noOutputTimeoutMs?: number | undefined;
3282
3440
  noOutputTimeoutRatio?: number | undefined;
3283
3441
  minMs?: number | undefined;
3284
3442
  maxMs?: number | undefined;
3285
3443
  } | undefined;
3286
- resume?: {
3444
+ fresh?: {
3287
3445
  noOutputTimeoutMs?: number | undefined;
3288
3446
  noOutputTimeoutRatio?: number | undefined;
3289
3447
  minMs?: number | undefined;
@@ -3292,30 +3450,40 @@ export declare const AppConfigSchema: z.ZodObject<{
3292
3450
  } | undefined;
3293
3451
  } | undefined;
3294
3452
  }> | undefined;
3295
- tools?: {
3296
- allow?: string[] | undefined;
3297
- deny?: string[] | undefined;
3298
- } | undefined;
3299
- modelControl?: {
3300
- endpoint: string;
3301
- botToken: string;
3302
- deviceSecret: string;
3303
- models: string[];
3304
- } | undefined;
3305
3453
  cliSessionId?: string | undefined;
3306
- systemPrompt?: string | undefined;
3307
- skills?: string[] | undefined;
3308
3454
  identity?: {
3309
3455
  name?: string | undefined;
3310
3456
  emoji?: string | undefined;
3311
3457
  } | undefined;
3312
3458
  }[] | undefined;
3313
3459
  };
3460
+ channels: {
3461
+ botlink: {
3462
+ gateway_url?: string | undefined;
3463
+ openapi_base_url?: string | undefined;
3464
+ bot_token?: string | undefined;
3465
+ poll_timeout?: number | undefined;
3466
+ retry_interval?: number | undefined;
3467
+ max_retry_interval?: number | undefined;
3468
+ accounts?: Record<string, {
3469
+ gateway_url: string;
3470
+ bot_token: string;
3471
+ openapi_base_url?: string | undefined;
3472
+ managed_runtime?: boolean | undefined;
3473
+ poll_timeout?: number | undefined;
3474
+ retry_interval?: number | undefined;
3475
+ max_retry_interval?: number | undefined;
3476
+ }> | undefined;
3477
+ };
3478
+ };
3479
+ files?: {
3480
+ temp_dir?: string | undefined;
3481
+ max_file_size?: number | undefined;
3482
+ } | undefined;
3314
3483
  skills?: {
3315
3484
  dirs?: string[] | undefined;
3316
3485
  } | undefined;
3317
3486
  bindings?: {
3318
- agentId: string;
3319
3487
  match: {
3320
3488
  accountId?: string | undefined;
3321
3489
  channel?: string | undefined;
@@ -3325,18 +3493,15 @@ export declare const AppConfigSchema: z.ZodObject<{
3325
3493
  } | undefined;
3326
3494
  userId?: string | undefined;
3327
3495
  };
3496
+ agentId: string;
3328
3497
  comment?: string | undefined;
3329
3498
  }[] | undefined;
3330
3499
  concurrency?: {
3331
3500
  maxGlobal?: number | undefined;
3332
3501
  maxPerAgent?: number | undefined;
3333
3502
  } | undefined;
3334
- files?: {
3335
- temp_dir?: string | undefined;
3336
- max_file_size?: number | undefined;
3337
- } | undefined;
3338
3503
  logging?: {
3339
- level?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | undefined;
3504
+ level?: "error" | "fatal" | "warn" | "info" | "debug" | "trace" | undefined;
3340
3505
  pretty?: boolean | undefined;
3341
3506
  retentionDays?: number | undefined;
3342
3507
  } | undefined;