@zhin.js/runtime 1.1.7 → 1.1.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.
@@ -59,6 +59,186 @@ export declare const HOST_CONFIG_SCHEMA: {
59
59
  };
60
60
  };
61
61
  };
62
+ host: {
63
+ type: string[];
64
+ description: string;
65
+ };
66
+ port: {
67
+ type: string[];
68
+ description: string;
69
+ };
70
+ token: {
71
+ type: string[];
72
+ description: string;
73
+ writeOnly: boolean;
74
+ "x-zhin-config": {
75
+ secret: boolean;
76
+ };
77
+ };
78
+ tokens: {
79
+ type: string[];
80
+ items: {
81
+ type: string[];
82
+ additionalProperties: boolean;
83
+ properties: {
84
+ token: {
85
+ type: string[];
86
+ description: string;
87
+ writeOnly: boolean;
88
+ "x-zhin-config": {
89
+ secret: boolean;
90
+ };
91
+ };
92
+ scope: {
93
+ type: string[];
94
+ description: string;
95
+ "x-zhin-config": {
96
+ options: {
97
+ label: string;
98
+ value: string;
99
+ }[];
100
+ };
101
+ };
102
+ principalId: {
103
+ type: string[];
104
+ description: string;
105
+ };
106
+ };
107
+ };
108
+ };
109
+ corsOrigins: {
110
+ type: string[];
111
+ items: {
112
+ type: string[];
113
+ };
114
+ };
115
+ base: {
116
+ type: string[];
117
+ description: string;
118
+ };
119
+ tls: {
120
+ anyOf: ({
121
+ const: boolean;
122
+ type?: undefined;
123
+ additionalProperties?: undefined;
124
+ properties?: undefined;
125
+ } | {
126
+ type: string;
127
+ const?: undefined;
128
+ additionalProperties?: undefined;
129
+ properties?: undefined;
130
+ } | {
131
+ type: string;
132
+ additionalProperties: boolean;
133
+ properties: {
134
+ enabled: {
135
+ type: string[];
136
+ description: string;
137
+ };
138
+ keyFile: {
139
+ type: string;
140
+ description: string;
141
+ };
142
+ certFile: {
143
+ type: string;
144
+ description: string;
145
+ };
146
+ caFile: {
147
+ type: string;
148
+ description: string;
149
+ };
150
+ passphrase: {
151
+ type: string;
152
+ description: string;
153
+ writeOnly: boolean;
154
+ "x-zhin-config": {
155
+ secret: boolean;
156
+ };
157
+ };
158
+ minVersion: {
159
+ type: string;
160
+ description: string;
161
+ };
162
+ ciphers: {
163
+ type: string;
164
+ description: string;
165
+ };
166
+ };
167
+ const?: undefined;
168
+ })[];
169
+ };
170
+ listeners: {
171
+ type: string;
172
+ items: {
173
+ type: string;
174
+ additionalProperties: boolean;
175
+ properties: {
176
+ enabled: {
177
+ type: string[];
178
+ description: string;
179
+ };
180
+ host: {
181
+ type: string;
182
+ description: string;
183
+ };
184
+ port: {
185
+ type: string[];
186
+ description: string;
187
+ };
188
+ tls: {
189
+ anyOf: ({
190
+ const: boolean;
191
+ type?: undefined;
192
+ additionalProperties?: undefined;
193
+ properties?: undefined;
194
+ } | {
195
+ type: string;
196
+ const?: undefined;
197
+ additionalProperties?: undefined;
198
+ properties?: undefined;
199
+ } | {
200
+ type: string;
201
+ additionalProperties: boolean;
202
+ properties: {
203
+ enabled: {
204
+ type: string[];
205
+ description: string;
206
+ };
207
+ keyFile: {
208
+ type: string;
209
+ description: string;
210
+ };
211
+ certFile: {
212
+ type: string;
213
+ description: string;
214
+ };
215
+ caFile: {
216
+ type: string;
217
+ description: string;
218
+ };
219
+ passphrase: {
220
+ type: string;
221
+ description: string;
222
+ writeOnly: boolean;
223
+ "x-zhin-config": {
224
+ secret: boolean;
225
+ };
226
+ };
227
+ minVersion: {
228
+ type: string;
229
+ description: string;
230
+ };
231
+ ciphers: {
232
+ type: string;
233
+ description: string;
234
+ };
235
+ };
236
+ const?: undefined;
237
+ })[];
238
+ };
239
+ };
240
+ };
241
+ };
62
242
  };
63
243
  };
64
244
  database: {
@@ -66,114 +246,423 @@ export declare const HOST_CONFIG_SCHEMA: {
66
246
  additionalProperties: boolean;
67
247
  description: string;
68
248
  "x-descriptionZh": string;
69
- };
70
- ai: {
71
- type: string;
72
- additionalProperties: boolean;
73
- description: string;
74
- "x-descriptionZh": string;
75
249
  properties: {
76
- decisions: {
250
+ dialect: {
77
251
  type: string;
78
- additionalProperties: boolean;
79
- required: string[];
80
252
  description: string;
81
- "x-descriptionZh": string;
253
+ "x-zhin-config": {
254
+ options: {
255
+ value: string;
256
+ label: string;
257
+ }[];
258
+ };
259
+ };
260
+ filename: {
261
+ type: string;
262
+ description: string;
263
+ };
264
+ mode: {
265
+ type: string;
266
+ description: string;
267
+ };
268
+ host: {
269
+ type: string;
270
+ description: string;
271
+ };
272
+ port: {
273
+ type: string[];
274
+ description: string;
275
+ };
276
+ user: {
277
+ type: string;
278
+ description: string;
279
+ };
280
+ username: {
281
+ type: string;
282
+ description: string;
283
+ };
284
+ password: {
285
+ type: string;
286
+ description: string;
287
+ writeOnly: boolean;
288
+ "x-zhin-config": {
289
+ secret: boolean;
290
+ };
291
+ };
292
+ database: {
293
+ type: string[];
294
+ description: string;
295
+ };
296
+ uri: {
297
+ type: string;
298
+ description: string;
299
+ writeOnly: boolean;
300
+ "x-zhin-config": {
301
+ secret: boolean;
302
+ };
303
+ };
304
+ connectionString: {
305
+ type: string;
306
+ description: string;
307
+ writeOnly: boolean;
308
+ "x-zhin-config": {
309
+ secret: boolean;
310
+ };
311
+ };
312
+ url: {
313
+ type: string;
314
+ description: string;
315
+ writeOnly: boolean;
316
+ "x-zhin-config": {
317
+ secret: boolean;
318
+ };
319
+ };
320
+ dbName: {
321
+ type: string;
322
+ description: string;
323
+ };
324
+ pool: {
325
+ type: string[];
326
+ additionalProperties: boolean;
82
327
  properties: {
83
- provider: {
84
- type: string;
85
- pattern: string;
328
+ min: {
329
+ type: string[];
86
330
  description: string;
87
- "x-descriptionZh": string;
88
- };
89
- skills: {
90
- $ref: string;
91
- };
92
- tools: {
93
- $ref: string;
94
331
  };
95
- memory: {
96
- $ref: string;
332
+ max: {
333
+ type: string[];
334
+ description: string;
97
335
  };
98
- agents: {
99
- $ref: string;
336
+ acquireTimeoutMillis: {
337
+ type: string[];
338
+ description: string;
100
339
  };
101
- approval: {
102
- $ref: string;
340
+ idleTimeoutMillis: {
341
+ type: string[];
342
+ description: string;
103
343
  };
104
344
  };
105
345
  };
106
- workroom: {
346
+ socket: {
107
347
  type: string;
108
348
  additionalProperties: boolean;
109
- description: string;
110
- "x-descriptionZh": string;
111
349
  properties: {
112
- trustedPackPublishers: {
350
+ host: {
113
351
  type: string;
114
- items: {
115
- type: string;
116
- minLength: number;
117
- };
118
- uniqueItems: boolean;
119
352
  description: string;
120
- "x-descriptionZh": string;
121
353
  };
122
- disclosure: {
354
+ port: {
355
+ type: string[];
356
+ description: string;
357
+ };
358
+ path: {
123
359
  type: string;
124
- additionalProperties: boolean;
125
360
  description: string;
126
- "x-descriptionZh": string;
127
- properties: {
128
- tenantId: {
361
+ };
362
+ connectTimeout: {
363
+ type: string[];
364
+ description: string;
365
+ };
366
+ tls: {
367
+ type: string[];
368
+ description: string;
369
+ };
370
+ keepAlive: {
371
+ type: string[];
372
+ description: string;
373
+ };
374
+ noDelay: {
375
+ type: string[];
376
+ description: string;
377
+ };
378
+ };
379
+ };
380
+ ssl: {
381
+ anyOf: ({
382
+ type: string[];
383
+ additionalProperties?: undefined;
384
+ properties?: undefined;
385
+ } | {
386
+ type: string;
387
+ additionalProperties: boolean;
388
+ properties: {
389
+ rejectUnauthorized: {
390
+ type: string[];
391
+ description: string;
392
+ };
393
+ ca: {
394
+ anyOf: ({
129
395
  type: string;
130
- minLength: number;
131
- };
132
- modelProviders: {
396
+ items?: undefined;
397
+ additionalProperties?: undefined;
398
+ description?: undefined;
399
+ } | {
133
400
  type: string;
134
- additionalProperties: {
401
+ items: {
135
402
  type: string;
136
- additionalProperties: boolean;
137
- required: string[];
138
- properties: {
139
- endpoint: {
140
- type: string;
141
- minLength: number;
142
- };
143
- owner: {
144
- type: string;
145
- minLength: number;
146
- };
147
- trustDomain: {
148
- type: string;
149
- minLength: number;
150
- };
151
- processingRegions: {
152
- type: string;
153
- minItems: number;
154
- uniqueItems: boolean;
155
- items: {
156
- type: string;
157
- minLength: number;
158
- };
159
- };
160
- maxConfidentiality: {
161
- type: string;
162
- enum: string[];
163
- };
164
- external: {
165
- type: string;
166
- };
167
- noTraining: {
168
- type: string;
169
- };
170
- loggingMode: {
171
- type: string;
172
- enum: string[];
173
- };
174
- maximumRetentionSeconds: {
175
- type: string;
176
- minimum: number;
403
+ };
404
+ additionalProperties?: undefined;
405
+ description?: undefined;
406
+ } | {
407
+ type: string;
408
+ additionalProperties: boolean;
409
+ description: string;
410
+ items?: undefined;
411
+ })[];
412
+ description: string;
413
+ };
414
+ cert: {
415
+ anyOf: ({
416
+ type: string;
417
+ items?: undefined;
418
+ additionalProperties?: undefined;
419
+ description?: undefined;
420
+ } | {
421
+ type: string;
422
+ items: {
423
+ type: string;
424
+ };
425
+ additionalProperties?: undefined;
426
+ description?: undefined;
427
+ } | {
428
+ type: string;
429
+ additionalProperties: boolean;
430
+ description: string;
431
+ items?: undefined;
432
+ })[];
433
+ description: string;
434
+ };
435
+ key: {
436
+ anyOf: ({
437
+ type: string;
438
+ items?: undefined;
439
+ additionalProperties?: undefined;
440
+ description?: undefined;
441
+ } | {
442
+ type: string;
443
+ items: {
444
+ type: string;
445
+ };
446
+ additionalProperties?: undefined;
447
+ description?: undefined;
448
+ } | {
449
+ type: string;
450
+ additionalProperties: boolean;
451
+ description: string;
452
+ items?: undefined;
453
+ })[];
454
+ description: string;
455
+ writeOnly: boolean;
456
+ "x-zhin-config": {
457
+ secret: boolean;
458
+ };
459
+ };
460
+ passphrase: {
461
+ type: string;
462
+ description: string;
463
+ writeOnly: boolean;
464
+ "x-zhin-config": {
465
+ secret: boolean;
466
+ };
467
+ };
468
+ servername: {
469
+ type: string;
470
+ description: string;
471
+ };
472
+ };
473
+ })[];
474
+ };
475
+ charset: {
476
+ type: string;
477
+ description: string;
478
+ };
479
+ timezone: {
480
+ type: string;
481
+ description: string;
482
+ };
483
+ connectTimeout: {
484
+ type: string[];
485
+ description: string;
486
+ };
487
+ connectionTimeoutMillis: {
488
+ type: string[];
489
+ description: string;
490
+ };
491
+ query_timeout: {
492
+ type: string[];
493
+ description: string;
494
+ };
495
+ statement_timeout: {
496
+ type: string[];
497
+ description: string;
498
+ };
499
+ application_name: {
500
+ type: string;
501
+ description: string;
502
+ };
503
+ maxPoolSize: {
504
+ type: string[];
505
+ description: string;
506
+ };
507
+ minPoolSize: {
508
+ type: string[];
509
+ description: string;
510
+ };
511
+ serverSelectionTimeoutMS: {
512
+ type: string[];
513
+ description: string;
514
+ };
515
+ connectTimeoutMS: {
516
+ type: string[];
517
+ description: string;
518
+ };
519
+ socketTimeoutMS: {
520
+ type: string[];
521
+ description: string;
522
+ };
523
+ authSource: {
524
+ type: string;
525
+ description: string;
526
+ };
527
+ replicaSet: {
528
+ type: string;
529
+ description: string;
530
+ };
531
+ auth: {
532
+ type: string;
533
+ additionalProperties: boolean;
534
+ properties: {
535
+ username: {
536
+ type: string;
537
+ description: string;
538
+ };
539
+ password: {
540
+ type: string;
541
+ description: string;
542
+ writeOnly: boolean;
543
+ "x-zhin-config": {
544
+ secret: boolean;
545
+ };
546
+ };
547
+ };
548
+ };
549
+ disableOfflineQueue: {
550
+ type: string[];
551
+ description: string;
552
+ };
553
+ pingInterval: {
554
+ type: string[];
555
+ description: string;
556
+ };
557
+ };
558
+ };
559
+ ai: {
560
+ type: string;
561
+ additionalProperties: boolean;
562
+ description: string;
563
+ "x-descriptionZh": string;
564
+ properties: {
565
+ decisions: {
566
+ type: string;
567
+ additionalProperties: boolean;
568
+ required: string[];
569
+ description: string;
570
+ "x-descriptionZh": string;
571
+ properties: {
572
+ provider: {
573
+ type: string;
574
+ pattern: string;
575
+ description: string;
576
+ "x-descriptionZh": string;
577
+ };
578
+ skills: {
579
+ $ref: string;
580
+ };
581
+ tools: {
582
+ $ref: string;
583
+ };
584
+ memory: {
585
+ $ref: string;
586
+ };
587
+ agents: {
588
+ $ref: string;
589
+ };
590
+ approval: {
591
+ $ref: string;
592
+ };
593
+ };
594
+ };
595
+ workroom: {
596
+ type: string;
597
+ additionalProperties: boolean;
598
+ description: string;
599
+ "x-descriptionZh": string;
600
+ properties: {
601
+ trustedPackPublishers: {
602
+ type: string;
603
+ items: {
604
+ type: string;
605
+ minLength: number;
606
+ };
607
+ uniqueItems: boolean;
608
+ description: string;
609
+ "x-descriptionZh": string;
610
+ };
611
+ disclosure: {
612
+ type: string;
613
+ additionalProperties: boolean;
614
+ description: string;
615
+ "x-descriptionZh": string;
616
+ properties: {
617
+ tenantId: {
618
+ type: string;
619
+ minLength: number;
620
+ };
621
+ modelProviders: {
622
+ type: string;
623
+ additionalProperties: {
624
+ type: string;
625
+ additionalProperties: boolean;
626
+ required: string[];
627
+ properties: {
628
+ endpoint: {
629
+ type: string;
630
+ minLength: number;
631
+ };
632
+ owner: {
633
+ type: string;
634
+ minLength: number;
635
+ };
636
+ trustDomain: {
637
+ type: string;
638
+ minLength: number;
639
+ };
640
+ processingRegions: {
641
+ type: string;
642
+ minItems: number;
643
+ uniqueItems: boolean;
644
+ items: {
645
+ type: string;
646
+ minLength: number;
647
+ };
648
+ };
649
+ maxConfidentiality: {
650
+ type: string;
651
+ enum: string[];
652
+ };
653
+ external: {
654
+ type: string;
655
+ };
656
+ noTraining: {
657
+ type: string;
658
+ };
659
+ loggingMode: {
660
+ type: string;
661
+ enum: string[];
662
+ };
663
+ maximumRetentionSeconds: {
664
+ type: string;
665
+ minimum: number;
177
666
  };
178
667
  allowsRedisclosure: {
179
668
  type: string;
@@ -220,6 +709,9 @@ export declare const HOST_CONFIG_SCHEMA: {
220
709
  description: string;
221
710
  "x-descriptionZh": string;
222
711
  };
712
+ coalesceWindowMs: {
713
+ type: string[];
714
+ };
223
715
  };
224
716
  };
225
717
  execSecurity: {
@@ -432,116 +924,1575 @@ export declare const HOST_CONFIG_SCHEMA: {
432
924
  };
433
925
  };
434
926
  };
435
- subagentTurnMode: {
927
+ subagentTurnMode: {
928
+ type: string;
929
+ enum: string[];
930
+ default: string;
931
+ description: string;
932
+ "x-descriptionZh": string;
933
+ };
934
+ execApprovalMode: {
935
+ type: string;
936
+ enum: string[];
937
+ description: string;
938
+ "x-descriptionZh": string;
939
+ };
940
+ subagentExecApprovalMode: {
941
+ type: string;
942
+ enum: string[];
943
+ description: string;
944
+ "x-descriptionZh": string;
945
+ };
946
+ workerExecApprovalMode: {
947
+ type: string;
948
+ enum: string[];
949
+ description: string;
950
+ "x-descriptionZh": string;
951
+ };
952
+ toolExecution: {
953
+ type: string;
954
+ enum: string[];
955
+ description: string;
956
+ "x-descriptionZh": string;
957
+ };
958
+ modelSizeHint: {
959
+ type: string;
960
+ enum: string[];
961
+ description: string;
962
+ "x-descriptionZh": string;
963
+ };
964
+ promptCacheRetention: {
965
+ type: string;
966
+ enum: string[];
967
+ description: string;
968
+ "x-descriptionZh": string;
969
+ };
970
+ steeringMode: {
971
+ type: string;
972
+ enum: string[];
973
+ description: string;
974
+ "x-descriptionZh": string;
975
+ };
976
+ followUpMode: {
977
+ type: string;
978
+ enum: string[];
979
+ description: string;
980
+ "x-descriptionZh": string;
981
+ };
982
+ outputSchema: {
983
+ anyOf: ({
984
+ type: string;
985
+ enum?: undefined;
986
+ } | {
987
+ type: string;
988
+ enum: string[];
989
+ })[];
990
+ description: string;
991
+ "x-descriptionZh": string;
992
+ };
993
+ schedule: {
994
+ type: string;
995
+ additionalProperties: boolean;
996
+ description: string;
997
+ "x-descriptionZh": string;
998
+ properties: {
999
+ security: {
1000
+ type: string;
1001
+ additionalProperties: boolean;
1002
+ description: string;
1003
+ "x-descriptionZh": string;
1004
+ properties: {
1005
+ execPreset: {
1006
+ type: string;
1007
+ enum: string[];
1008
+ description: string;
1009
+ "x-descriptionZh": string;
1010
+ };
1011
+ allowedDomains: {
1012
+ type: string;
1013
+ items: {
1014
+ type: string;
1015
+ };
1016
+ };
1017
+ };
1018
+ };
1019
+ budget: {
1020
+ type: string;
1021
+ additionalProperties: boolean;
1022
+ properties: {
1023
+ maxTokens: {
1024
+ type: string[];
1025
+ };
1026
+ maxToolCalls: {
1027
+ type: string[];
1028
+ };
1029
+ timeoutMs: {
1030
+ type: string[];
1031
+ };
1032
+ };
1033
+ };
1034
+ };
1035
+ };
1036
+ execAllowlist: {
1037
+ type: string;
1038
+ items: {
1039
+ type: string;
1040
+ };
1041
+ description: string;
1042
+ };
1043
+ phaseTrace: {
1044
+ type: string[];
1045
+ description: string;
1046
+ };
1047
+ modelHarness: {
1048
+ type: string;
1049
+ additionalProperties: boolean;
1050
+ properties: {
1051
+ models: {
1052
+ type: string;
1053
+ additionalProperties: {
1054
+ type: string;
1055
+ additionalProperties: boolean;
1056
+ properties: {
1057
+ maxIterations: {
1058
+ type: string[];
1059
+ };
1060
+ explorationBudget: {
1061
+ type: string[];
1062
+ description: string;
1063
+ };
1064
+ explorationGuidance: {
1065
+ type: string[];
1066
+ description: string;
1067
+ };
1068
+ iterationExtension: {
1069
+ type: string[];
1070
+ description: string;
1071
+ };
1072
+ maxTotalIterations: {
1073
+ type: string[];
1074
+ description: string;
1075
+ };
1076
+ emptyReplyRetries: {
1077
+ type: string[];
1078
+ description: string;
1079
+ };
1080
+ requestTimeoutMs: {
1081
+ type: string[];
1082
+ description: string;
1083
+ };
1084
+ };
1085
+ };
1086
+ description: string;
1087
+ };
1088
+ providerPatterns: {
1089
+ type: string;
1090
+ additionalProperties: {
1091
+ type: string;
1092
+ additionalProperties: boolean;
1093
+ properties: {
1094
+ maxIterations: {
1095
+ type: string[];
1096
+ };
1097
+ explorationBudget: {
1098
+ type: string[];
1099
+ description: string;
1100
+ };
1101
+ explorationGuidance: {
1102
+ type: string[];
1103
+ description: string;
1104
+ };
1105
+ iterationExtension: {
1106
+ type: string[];
1107
+ description: string;
1108
+ };
1109
+ maxTotalIterations: {
1110
+ type: string[];
1111
+ description: string;
1112
+ };
1113
+ emptyReplyRetries: {
1114
+ type: string[];
1115
+ description: string;
1116
+ };
1117
+ requestTimeoutMs: {
1118
+ type: string[];
1119
+ description: string;
1120
+ };
1121
+ };
1122
+ };
1123
+ description: string;
1124
+ };
1125
+ };
1126
+ description: string;
1127
+ };
1128
+ providerResilience: {
1129
+ type: string;
1130
+ additionalProperties: boolean;
1131
+ properties: {
1132
+ maxRetries: {
1133
+ type: string[];
1134
+ description: string;
1135
+ };
1136
+ baseDelayMs: {
1137
+ type: string[];
1138
+ description: string;
1139
+ };
1140
+ maxDelayMs: {
1141
+ type: string[];
1142
+ description: string;
1143
+ };
1144
+ maxRetryAfterMs: {
1145
+ type: string[];
1146
+ description: string;
1147
+ };
1148
+ requestTimeoutMs: {
1149
+ type: string[];
1150
+ description: string;
1151
+ };
1152
+ emptyReplyRetries: {
1153
+ type: string[];
1154
+ description: string;
1155
+ };
1156
+ fallback: {
1157
+ type: string[];
1158
+ description: string;
1159
+ };
1160
+ };
1161
+ description: string;
1162
+ };
1163
+ deferredTools: {
1164
+ type: string;
1165
+ additionalProperties: boolean;
1166
+ properties: {
1167
+ maxLoadedPerSession: {
1168
+ type: string[];
1169
+ };
1170
+ discoverTopK: {
1171
+ type: string[];
1172
+ };
1173
+ alwaysLoadedTools: {
1174
+ type: string;
1175
+ items: {
1176
+ type: string;
1177
+ };
1178
+ description: string;
1179
+ };
1180
+ alwaysLoadedMode: {
1181
+ type: string;
1182
+ "x-zhin-config": {
1183
+ options: {
1184
+ label: string;
1185
+ value: string;
1186
+ }[];
1187
+ };
1188
+ description: string;
1189
+ };
1190
+ mcpServers: {
1191
+ type: string;
1192
+ additionalProperties: {
1193
+ type: string;
1194
+ additionalProperties: boolean;
1195
+ properties: {
1196
+ alwaysLoaded: {
1197
+ type: string;
1198
+ items: {
1199
+ type: string;
1200
+ };
1201
+ };
1202
+ };
1203
+ };
1204
+ };
1205
+ };
1206
+ description: string;
1207
+ };
1208
+ workerBaseTools: {
1209
+ type: string;
1210
+ items: {
1211
+ type: string;
1212
+ };
1213
+ description: string;
1214
+ };
1215
+ persona: {
1216
+ type: string;
1217
+ };
1218
+ maxIterations: {
1219
+ type: string[];
1220
+ };
1221
+ timeout: {
1222
+ type: string[];
1223
+ };
1224
+ preExecTimeout: {
1225
+ type: string[];
1226
+ };
1227
+ maxTools: {
1228
+ type: string[];
1229
+ };
1230
+ contextTailMessageLimit: {
1231
+ type: string[];
1232
+ };
1233
+ rateLimit: {
1234
+ type: string;
1235
+ additionalProperties: boolean;
1236
+ properties: {
1237
+ maxRequestsPerMinute: {
1238
+ type: string[];
1239
+ description: string;
1240
+ };
1241
+ cooldownSeconds: {
1242
+ type: string[];
1243
+ description: string;
1244
+ };
1245
+ };
1246
+ };
1247
+ toneAwareness: {
1248
+ type: string[];
1249
+ };
1250
+ contextTokens: {
1251
+ type: string[];
1252
+ };
1253
+ maxHistoryShare: {
1254
+ type: string[];
1255
+ };
1256
+ compaction: {
1257
+ type: string;
1258
+ additionalProperties: boolean;
1259
+ properties: {
1260
+ enabled: {
1261
+ type: string[];
1262
+ };
1263
+ auto: {
1264
+ type: string[];
1265
+ };
1266
+ keepRecentTokens: {
1267
+ type: string[];
1268
+ };
1269
+ minKeepCount: {
1270
+ type: string[];
1271
+ };
1272
+ thresholdRatio: {
1273
+ type: string[];
1274
+ description: string;
1275
+ };
1276
+ };
1277
+ };
1278
+ disabledTools: {
1279
+ type: string;
1280
+ items: {
1281
+ type: string;
1282
+ };
1283
+ };
1284
+ allowedTools: {
1285
+ type: string;
1286
+ items: {
1287
+ type: string;
1288
+ };
1289
+ };
1290
+ maxParallelSubagents: {
1291
+ type: string[];
1292
+ };
1293
+ subagentAutoContinue: {
1294
+ type: string[];
1295
+ };
1296
+ subagentDirectImDelivery: {
1297
+ type: string[];
1298
+ };
1299
+ maxSubagentIterations: {
1300
+ type: string[];
1301
+ };
1302
+ subagentTools: {
1303
+ type: string;
1304
+ items: {
1305
+ type: string;
1306
+ };
1307
+ };
1308
+ subagentTurnWaitMs: {
1309
+ type: string[];
1310
+ };
1311
+ skillInstructionMaxChars: {
1312
+ type: string[];
1313
+ };
1314
+ promptTrace: {
1315
+ type: string[];
1316
+ };
1317
+ promptTraceVerbose: {
1318
+ type: string[];
1319
+ };
1320
+ promptCache: {
1321
+ type: string[];
1322
+ };
1323
+ promptCacheKeyPrefix: {
1324
+ type: string;
1325
+ };
1326
+ deferredAutoContinue: {
1327
+ type: string[];
1328
+ };
1329
+ deferredAutoContinueMaxDepth: {
1330
+ type: string[];
1331
+ };
1332
+ gitStatus: {
1333
+ type: string[];
1334
+ description: string;
1335
+ };
1336
+ contextPaths: {
1337
+ type: string;
1338
+ items: {
1339
+ type: string;
1340
+ };
1341
+ description: string;
1342
+ };
1343
+ systemPromptMaxChars: {
1344
+ type: string[];
1345
+ description: string;
1346
+ };
1347
+ thinkingPreview: {
1348
+ type: string[];
1349
+ description: string;
1350
+ };
1351
+ thinkingPreviewMaxLength: {
1352
+ type: string[];
1353
+ description: string;
1354
+ };
1355
+ };
1356
+ };
1357
+ enabled: {
1358
+ type: string[];
1359
+ };
1360
+ providers: {
1361
+ type: string[];
1362
+ additionalProperties: {
1363
+ type: string[];
1364
+ additionalProperties: boolean;
1365
+ properties: {
1366
+ sdk: {
1367
+ type: string;
1368
+ "x-zhin-config": {
1369
+ options: {
1370
+ label: string;
1371
+ value: string;
1372
+ }[];
1373
+ };
1374
+ };
1375
+ apiKey: {
1376
+ type: string;
1377
+ writeOnly: boolean;
1378
+ "x-zhin-config": {
1379
+ secret: boolean;
1380
+ };
1381
+ };
1382
+ authScheme: {
1383
+ type: string;
1384
+ description: string;
1385
+ };
1386
+ baseUrl: {
1387
+ type: string;
1388
+ };
1389
+ defaultModel: {
1390
+ type: string;
1391
+ };
1392
+ models: {
1393
+ type: string;
1394
+ items: {
1395
+ type: string;
1396
+ };
1397
+ };
1398
+ timeout: {
1399
+ type: string[];
1400
+ description: string;
1401
+ };
1402
+ maxRetries: {
1403
+ type: string[];
1404
+ description: string;
1405
+ };
1406
+ firstChunkTimeoutMs: {
1407
+ type: string[];
1408
+ description: string;
1409
+ };
1410
+ chunkTimeoutMs: {
1411
+ type: string[];
1412
+ description: string;
1413
+ };
1414
+ headers: {
1415
+ type: string;
1416
+ additionalProperties: {
1417
+ type: string;
1418
+ writeOnly: boolean;
1419
+ "x-zhin-config": {
1420
+ secret: boolean;
1421
+ };
1422
+ };
1423
+ };
1424
+ contextWindow: {
1425
+ type: string[];
1426
+ description: string;
1427
+ };
1428
+ maxOutputTokens: {
1429
+ type: string[];
1430
+ description: string;
1431
+ };
1432
+ thinkingLevel: {
1433
+ type: string;
1434
+ "x-zhin-config": {
1435
+ options: {
1436
+ label: string;
1437
+ value: string;
1438
+ }[];
1439
+ };
1440
+ description: string;
1441
+ };
1442
+ capabilities: {
1443
+ type: string;
1444
+ additionalProperties: boolean;
1445
+ properties: {
1446
+ input: {
1447
+ type: string;
1448
+ items: {
1449
+ type: string;
1450
+ "x-zhin-config": {
1451
+ options: {
1452
+ label: string;
1453
+ value: string;
1454
+ }[];
1455
+ };
1456
+ };
1457
+ description: string;
1458
+ };
1459
+ streaming: {
1460
+ type: string[];
1461
+ };
1462
+ toolCalling: {
1463
+ type: string[];
1464
+ };
1465
+ thinking: {
1466
+ type: string[];
1467
+ };
1468
+ };
1469
+ description: string;
1470
+ };
1471
+ input: {
1472
+ type: string;
1473
+ items: {
1474
+ type: string;
1475
+ "x-zhin-config": {
1476
+ options: {
1477
+ label: string;
1478
+ value: string;
1479
+ }[];
1480
+ };
1481
+ };
1482
+ description: string;
1483
+ };
1484
+ providerOptions: {
1485
+ type: string;
1486
+ additionalProperties: {
1487
+ type: string;
1488
+ additionalProperties: {
1489
+ anyOf: ({
1490
+ type: string;
1491
+ additionalProperties?: undefined;
1492
+ items?: undefined;
1493
+ } | {
1494
+ type: string[];
1495
+ additionalProperties?: undefined;
1496
+ items?: undefined;
1497
+ } | {
1498
+ type: string;
1499
+ additionalProperties: {
1500
+ anyOf: ({
1501
+ type: string;
1502
+ description?: undefined;
1503
+ items?: undefined;
1504
+ } | {
1505
+ type: string[];
1506
+ description?: undefined;
1507
+ items?: undefined;
1508
+ } | {
1509
+ description: string;
1510
+ type?: undefined;
1511
+ items?: undefined;
1512
+ } | {
1513
+ type: string;
1514
+ items: {
1515
+ description: string;
1516
+ };
1517
+ description?: undefined;
1518
+ })[];
1519
+ };
1520
+ items?: undefined;
1521
+ } | {
1522
+ type: string;
1523
+ items: {
1524
+ description: string;
1525
+ };
1526
+ additionalProperties?: undefined;
1527
+ })[];
1528
+ };
1529
+ };
1530
+ description: string;
1531
+ };
1532
+ contextCache: {
1533
+ type: string;
1534
+ additionalProperties: boolean;
1535
+ properties: {
1536
+ mode: {
1537
+ type: string;
1538
+ "x-zhin-config": {
1539
+ options: {
1540
+ label: string;
1541
+ value: string;
1542
+ }[];
1543
+ };
1544
+ description: string;
1545
+ };
1546
+ ttlSeconds: {
1547
+ type: string[];
1548
+ description: string;
1549
+ };
1550
+ minPrefixChars: {
1551
+ type: string[];
1552
+ description: string;
1553
+ };
1554
+ };
1555
+ description: string;
1556
+ };
1557
+ imageGeneration: {
1558
+ type: string;
1559
+ additionalProperties: boolean;
1560
+ properties: {
1561
+ watermarkEnabled: {
1562
+ type: string[];
1563
+ description: string;
1564
+ };
1565
+ defaultModel: {
1566
+ type: string;
1567
+ };
1568
+ defaultSize: {
1569
+ type: string;
1570
+ description: string;
1571
+ };
1572
+ numSteps: {
1573
+ type: string[];
1574
+ description: string;
1575
+ };
1576
+ quality: {
1577
+ type: string;
1578
+ description: string;
1579
+ };
1580
+ aspectRatio: {
1581
+ type: string;
1582
+ description: string;
1583
+ };
1584
+ imageSize: {
1585
+ type: string;
1586
+ description: string;
1587
+ };
1588
+ promptSuffix: {
1589
+ type: string;
1590
+ description: string;
1591
+ };
1592
+ };
1593
+ description: string;
1594
+ };
1595
+ host: {
1596
+ type: string;
1597
+ };
1598
+ num_ctx: {
1599
+ type: string[];
1600
+ };
1601
+ };
1602
+ };
1603
+ description: string;
1604
+ };
1605
+ agents: {
1606
+ type: string[];
1607
+ additionalProperties: {
1608
+ type: string;
1609
+ additionalProperties: boolean;
1610
+ properties: {
1611
+ provider: {
1612
+ type: string;
1613
+ };
1614
+ model: {
1615
+ type: string;
1616
+ };
1617
+ mcpServers: {
1618
+ type: string[];
1619
+ items: {
1620
+ type: string;
1621
+ };
1622
+ };
1623
+ nickname: {
1624
+ type: string;
1625
+ description: string;
1626
+ };
1627
+ };
1628
+ };
1629
+ description: string;
1630
+ };
1631
+ sessions: {
1632
+ type: string[];
1633
+ additionalProperties: boolean;
1634
+ properties: {
1635
+ maxHistory: {
1636
+ type: string[];
1637
+ description: string;
1638
+ };
1639
+ expireMs: {
1640
+ type: string[];
1641
+ description: string;
1642
+ };
1643
+ useDatabase: {
1644
+ type: string[];
1645
+ description: string;
1646
+ };
1647
+ coldStartMaxMessages: {
1648
+ type: string[];
1649
+ description: string;
1650
+ };
1651
+ coldStartMaxAgeMs: {
1652
+ type: string[];
1653
+ description: string;
1654
+ };
1655
+ sessionIdleArchiveMs: {
1656
+ type: string[];
1657
+ description: string;
1658
+ };
1659
+ };
1660
+ };
1661
+ context: {
1662
+ type: string[];
1663
+ additionalProperties: boolean;
1664
+ properties: {
1665
+ enabled: {
1666
+ type: string[];
1667
+ description: string;
1668
+ };
1669
+ maxRecentMessages: {
1670
+ type: string[];
1671
+ description: string;
1672
+ };
1673
+ summaryThreshold: {
1674
+ type: string[];
1675
+ description: string;
1676
+ };
1677
+ keepAfterSummary: {
1678
+ type: string[];
1679
+ description: string;
1680
+ };
1681
+ maxContextTokens: {
1682
+ type: string[];
1683
+ description: string;
1684
+ };
1685
+ summaryPrompt: {
1686
+ type: string;
1687
+ description: string;
1688
+ };
1689
+ };
1690
+ };
1691
+ imageGeneration: {
1692
+ type: string[];
1693
+ additionalProperties: boolean;
1694
+ properties: {
1695
+ watermarkEnabled: {
1696
+ type: string[];
1697
+ description: string;
1698
+ };
1699
+ defaultModel: {
1700
+ type: string;
1701
+ };
1702
+ defaultSize: {
1703
+ type: string;
1704
+ description: string;
1705
+ };
1706
+ numSteps: {
1707
+ type: string[];
1708
+ description: string;
1709
+ };
1710
+ quality: {
1711
+ type: string;
1712
+ description: string;
1713
+ };
1714
+ aspectRatio: {
1715
+ type: string;
1716
+ description: string;
1717
+ };
1718
+ imageSize: {
1719
+ type: string;
1720
+ description: string;
1721
+ };
1722
+ promptSuffix: {
1723
+ type: string;
1724
+ description: string;
1725
+ };
1726
+ };
1727
+ description: string;
1728
+ };
1729
+ multimodal: {
1730
+ type: string[];
1731
+ additionalProperties: boolean;
1732
+ properties: {
1733
+ enabled: {
1734
+ type: string[];
1735
+ };
1736
+ maxFileBytes: {
1737
+ type: string[];
1738
+ };
1739
+ inboundDir: {
1740
+ type: string;
1741
+ };
1742
+ outboundDir: {
1743
+ type: string;
1744
+ };
1745
+ image: {
1746
+ type: string;
1747
+ additionalProperties: boolean;
1748
+ properties: {
1749
+ maxDimension: {
1750
+ type: string[];
1751
+ };
1752
+ preferNativeVision: {
1753
+ type: string[];
1754
+ };
1755
+ };
1756
+ };
1757
+ audio: {
1758
+ type: string;
1759
+ additionalProperties: boolean;
1760
+ properties: {
1761
+ strategy: {
1762
+ type: string;
1763
+ "x-zhin-config": {
1764
+ options: {
1765
+ label: string;
1766
+ value: string;
1767
+ }[];
1768
+ };
1769
+ };
1770
+ };
1771
+ };
1772
+ video: {
1773
+ type: string;
1774
+ additionalProperties: boolean;
1775
+ properties: {
1776
+ strategy: {
1777
+ type: string;
1778
+ "x-zhin-config": {
1779
+ options: {
1780
+ label: string;
1781
+ value: string;
1782
+ }[];
1783
+ };
1784
+ };
1785
+ mcpServer: {
1786
+ type: string;
1787
+ };
1788
+ maxFrames: {
1789
+ type: string[];
1790
+ };
1791
+ };
1792
+ };
1793
+ outbound: {
1794
+ type: string;
1795
+ additionalProperties: boolean;
1796
+ properties: {
1797
+ splitMessages: {
1798
+ type: string;
1799
+ "x-zhin-config": {
1800
+ options: {
1801
+ label: string;
1802
+ value: string;
1803
+ }[];
1804
+ };
1805
+ };
1806
+ };
1807
+ };
1808
+ perception: {
1809
+ type: string[];
1810
+ additionalProperties: boolean;
1811
+ properties: {
1812
+ provider: {
1813
+ type: string;
1814
+ description: string;
1815
+ };
1816
+ model: {
1817
+ type: string;
1818
+ };
1819
+ kinds: {
1820
+ type: string;
1821
+ items: {
1822
+ type: string;
1823
+ "x-zhin-config": {
1824
+ options: {
1825
+ label: string;
1826
+ value: string;
1827
+ }[];
1828
+ };
1829
+ };
1830
+ description: string;
1831
+ };
1832
+ maxChars: {
1833
+ type: string[];
1834
+ description: string;
1835
+ };
1836
+ timeoutMs: {
1837
+ type: string[];
1838
+ description: string;
1839
+ };
1840
+ maxItemsPerTurn: {
1841
+ type: string[];
1842
+ description: string;
1843
+ };
1844
+ };
1845
+ description: string;
1846
+ };
1847
+ };
1848
+ description: string;
1849
+ };
1850
+ memory: {
1851
+ type: string[];
1852
+ additionalProperties: boolean;
1853
+ properties: {
1854
+ enabled: {
1855
+ type: string[];
1856
+ };
1857
+ semantic: {
1858
+ type: string[];
1859
+ additionalProperties: boolean;
1860
+ properties: {
1861
+ enabled: {
1862
+ type: string[];
1863
+ };
1864
+ autoConsolidate: {
1865
+ type: string[];
1866
+ };
1867
+ recall: {
1868
+ type: string[];
1869
+ additionalProperties: boolean;
1870
+ properties: {
1871
+ enabled: {
1872
+ type: string[];
1873
+ };
1874
+ topK: {
1875
+ type: string[];
1876
+ };
1877
+ maxTokens: {
1878
+ type: string[];
1879
+ };
1880
+ };
1881
+ description: string;
1882
+ };
1883
+ };
1884
+ description: string;
1885
+ };
1886
+ budgets: {
1887
+ type: string;
1888
+ additionalProperties: boolean;
1889
+ properties: {
1890
+ session: {
1891
+ type: string[];
1892
+ };
1893
+ platform: {
1894
+ type: string[];
1895
+ };
1896
+ global: {
1897
+ type: string[];
1898
+ };
1899
+ daily: {
1900
+ type: string[];
1901
+ };
1902
+ };
1903
+ };
1904
+ };
1905
+ description: string;
1906
+ };
1907
+ knowledge: {
1908
+ type: string;
1909
+ additionalProperties: boolean;
1910
+ properties: {
1911
+ baseDir: {
1912
+ type: string;
1913
+ description: string;
1914
+ };
1915
+ };
1916
+ description: string;
1917
+ };
1918
+ githubMcp: {
1919
+ type: string;
1920
+ additionalProperties: boolean;
1921
+ properties: {
1922
+ token: {
1923
+ type: string;
1924
+ writeOnly: boolean;
1925
+ "x-zhin-config": {
1926
+ secret: boolean;
1927
+ };
1928
+ };
1929
+ enabled: {
1930
+ type: string[];
1931
+ description: string;
1932
+ };
1933
+ };
1934
+ description: string;
1935
+ };
1936
+ mcpServers: {
1937
+ type: string[];
1938
+ items: {
1939
+ type: string;
1940
+ additionalProperties: boolean;
1941
+ properties: {
1942
+ name: {
1943
+ type: string;
1944
+ };
1945
+ transport: {
1946
+ type: string;
1947
+ "x-zhin-config": {
1948
+ options: {
1949
+ label: string;
1950
+ value: string;
1951
+ }[];
1952
+ };
1953
+ };
1954
+ url: {
1955
+ type: string;
1956
+ };
1957
+ command: {
1958
+ type: string;
1959
+ };
1960
+ args: {
1961
+ type: string;
1962
+ items: {
1963
+ type: string;
1964
+ };
1965
+ };
1966
+ env: {
1967
+ type: string;
1968
+ additionalProperties: {
1969
+ type: string;
1970
+ writeOnly: boolean;
1971
+ "x-zhin-config": {
1972
+ secret: boolean;
1973
+ };
1974
+ };
1975
+ };
1976
+ headers: {
1977
+ type: string;
1978
+ additionalProperties: {
1979
+ type: string;
1980
+ writeOnly: boolean;
1981
+ "x-zhin-config": {
1982
+ secret: boolean;
1983
+ };
1984
+ };
1985
+ };
1986
+ };
1987
+ };
1988
+ description: string;
1989
+ };
1990
+ access: {
1991
+ type: string[];
1992
+ additionalProperties: boolean;
1993
+ properties: {
1994
+ mode: {
1995
+ type: string;
1996
+ "x-zhin-config": {
1997
+ options: {
1998
+ label: string;
1999
+ value: string;
2000
+ }[];
2001
+ };
2002
+ description: string;
2003
+ };
2004
+ users: {
2005
+ type: string;
2006
+ items: {
2007
+ type: string;
2008
+ };
2009
+ description: string;
2010
+ };
2011
+ groups: {
2012
+ type: string;
2013
+ items: {
2014
+ type: string;
2015
+ };
2016
+ description: string;
2017
+ };
2018
+ denyMessage: {
2019
+ type: string;
2020
+ description: string;
2021
+ };
2022
+ };
2023
+ description: string;
2024
+ };
2025
+ trigger: {
2026
+ type: string[];
2027
+ additionalProperties: boolean;
2028
+ properties: {
2029
+ enabled: {
2030
+ type: string[];
2031
+ description: string;
2032
+ };
2033
+ prefixes: {
2034
+ type: string;
2035
+ items: {
2036
+ type: string;
2037
+ };
2038
+ description: string;
2039
+ };
2040
+ respondToAt: {
2041
+ type: string[];
2042
+ description: string;
2043
+ };
2044
+ respondToPrivate: {
2045
+ type: string[];
2046
+ description: string;
2047
+ };
2048
+ keywords: {
2049
+ type: string;
2050
+ items: {
2051
+ type: string;
2052
+ };
2053
+ description: string;
2054
+ };
2055
+ ignorePrefixes: {
2056
+ type: string;
2057
+ items: {
2058
+ type: string;
2059
+ };
2060
+ description: string;
2061
+ };
2062
+ timeout: {
2063
+ type: string[];
2064
+ description: string;
2065
+ };
2066
+ thinkingMessage: {
2067
+ type: string;
2068
+ description: string;
2069
+ };
2070
+ errorTemplate: {
2071
+ type: string;
2072
+ description: string;
2073
+ };
2074
+ };
2075
+ description: string;
2076
+ };
2077
+ };
2078
+ };
2079
+ menuKeyword: {
2080
+ type: string[];
2081
+ anyOf: ({
2082
+ type: string;
2083
+ const?: undefined;
2084
+ } | {
2085
+ const: boolean;
2086
+ type?: undefined;
2087
+ })[];
2088
+ description: string;
2089
+ "x-descriptionZh": string;
2090
+ };
2091
+ menuStyle: {
2092
+ type: string;
2093
+ additionalProperties: boolean;
2094
+ description: string;
2095
+ "x-descriptionZh": string;
2096
+ properties: {
2097
+ title: {
2098
+ type: string;
2099
+ description: string;
2100
+ "x-descriptionZh": string;
2101
+ };
2102
+ subtitle: {
2103
+ type: string;
2104
+ description: string;
2105
+ "x-descriptionZh": string;
2106
+ };
2107
+ accentColor: {
2108
+ type: string;
2109
+ description: string;
2110
+ "x-descriptionZh": string;
2111
+ };
2112
+ backgroundImage: {
2113
+ type: string;
2114
+ description: string;
2115
+ "x-descriptionZh": string;
2116
+ };
2117
+ };
2118
+ };
2119
+ mcp: {
2120
+ type: string;
2121
+ additionalProperties: boolean;
2122
+ description: string;
2123
+ "x-descriptionZh": string;
2124
+ properties: {
2125
+ enabled: {
2126
+ type: string[];
2127
+ };
2128
+ path: {
2129
+ type: string[];
2130
+ };
2131
+ token: {
2132
+ type: string[];
2133
+ writeOnly: boolean;
2134
+ "x-zhin-config": {
2135
+ secret: boolean;
2136
+ };
2137
+ };
2138
+ allowUnauthenticatedLocalhost: {
2139
+ type: string[];
2140
+ };
2141
+ };
2142
+ };
2143
+ a2a: {
2144
+ type: string;
2145
+ additionalProperties: boolean;
2146
+ description: string;
2147
+ "x-descriptionZh": string;
2148
+ properties: {
2149
+ enabled: {
2150
+ type: string[];
2151
+ };
2152
+ path: {
2153
+ type: string[];
2154
+ };
2155
+ token: {
2156
+ type: string[];
2157
+ writeOnly: boolean;
2158
+ "x-zhin-config": {
2159
+ secret: boolean;
2160
+ };
2161
+ };
2162
+ publicUrl: {
2163
+ type: string[];
2164
+ };
2165
+ workroomCallbacks: {
2166
+ type: string[];
2167
+ additionalProperties: boolean;
2168
+ properties: {
2169
+ enabled: {
2170
+ type: string[];
2171
+ };
2172
+ path: {
2173
+ type: string;
2174
+ description: string;
2175
+ };
2176
+ maxBodyBytes: {
2177
+ type: string[];
2178
+ };
2179
+ maxSequenceGap: {
2180
+ type: string[];
2181
+ };
2182
+ bindings: {
2183
+ type: string;
2184
+ items: {
2185
+ type: string;
2186
+ additionalProperties: boolean;
2187
+ properties: {
2188
+ endpointId: {
2189
+ type: string;
2190
+ };
2191
+ tenantId: {
2192
+ type: string;
2193
+ };
2194
+ cardDigest: {
2195
+ type: string;
2196
+ };
2197
+ authBindingId: {
2198
+ type: string;
2199
+ };
2200
+ trustDomain: {
2201
+ type: string;
2202
+ };
2203
+ extensionDigest: {
2204
+ type: string;
2205
+ };
2206
+ credentialId: {
2207
+ type: string;
2208
+ };
2209
+ credential: {
2210
+ anyOf: ({
2211
+ type: string;
2212
+ additionalProperties: boolean;
2213
+ properties: {
2214
+ source: {
2215
+ anyOf: ({
2216
+ const: string;
2217
+ type?: undefined;
2218
+ pattern?: undefined;
2219
+ } | {
2220
+ type: string;
2221
+ pattern: string;
2222
+ const?: undefined;
2223
+ })[];
2224
+ };
2225
+ value: {
2226
+ type: string;
2227
+ writeOnly: boolean;
2228
+ "x-zhin-config": {
2229
+ secret: boolean;
2230
+ };
2231
+ };
2232
+ secretRef?: undefined;
2233
+ };
2234
+ } | {
2235
+ type: string;
2236
+ additionalProperties: boolean;
2237
+ properties: {
2238
+ source: {
2239
+ anyOf: ({
2240
+ const: string;
2241
+ type?: undefined;
2242
+ pattern?: undefined;
2243
+ } | {
2244
+ type: string;
2245
+ pattern: string;
2246
+ const?: undefined;
2247
+ })[];
2248
+ };
2249
+ secretRef: {
2250
+ type: string;
2251
+ };
2252
+ value?: undefined;
2253
+ };
2254
+ })[];
2255
+ };
2256
+ enabled: {
2257
+ type: string[];
2258
+ };
2259
+ expiresAt: {
2260
+ type: string[];
2261
+ };
2262
+ };
2263
+ };
2264
+ };
2265
+ };
2266
+ };
2267
+ workroomRemoteExecutors: {
2268
+ type: string[];
2269
+ additionalProperties: boolean;
2270
+ properties: {
2271
+ enabled: {
2272
+ type: string[];
2273
+ };
2274
+ maxResponseBytes: {
2275
+ type: string[];
2276
+ };
2277
+ bindings: {
2278
+ type: string;
2279
+ items: {
2280
+ type: string;
2281
+ additionalProperties: boolean;
2282
+ properties: {
2283
+ endpointId: {
2284
+ type: string;
2285
+ };
2286
+ cardDigest: {
2287
+ type: string;
2288
+ };
2289
+ authBindingId: {
2290
+ type: string;
2291
+ };
2292
+ dispatchUrl: {
2293
+ type: string;
2294
+ };
2295
+ pollUrl: {
2296
+ type: string;
2297
+ };
2298
+ credential: {
2299
+ anyOf: ({
2300
+ type: string;
2301
+ additionalProperties: boolean;
2302
+ properties: {
2303
+ source: {
2304
+ anyOf: ({
2305
+ const: string;
2306
+ type?: undefined;
2307
+ pattern?: undefined;
2308
+ } | {
2309
+ type: string;
2310
+ pattern: string;
2311
+ const?: undefined;
2312
+ })[];
2313
+ };
2314
+ value: {
2315
+ type: string;
2316
+ writeOnly: boolean;
2317
+ "x-zhin-config": {
2318
+ secret: boolean;
2319
+ };
2320
+ };
2321
+ secretRef?: undefined;
2322
+ };
2323
+ } | {
2324
+ type: string;
2325
+ additionalProperties: boolean;
2326
+ properties: {
2327
+ source: {
2328
+ anyOf: ({
2329
+ const: string;
2330
+ type?: undefined;
2331
+ pattern?: undefined;
2332
+ } | {
2333
+ type: string;
2334
+ pattern: string;
2335
+ const?: undefined;
2336
+ })[];
2337
+ };
2338
+ secretRef: {
2339
+ type: string;
2340
+ };
2341
+ value?: undefined;
2342
+ };
2343
+ })[];
2344
+ };
2345
+ authority: {
2346
+ type: string;
2347
+ additionalProperties: boolean;
2348
+ properties: {
2349
+ workroomExtension: {
2350
+ anyOf: ({
2351
+ const: string;
2352
+ type?: undefined;
2353
+ pattern?: undefined;
2354
+ } | {
2355
+ type: string;
2356
+ pattern: string;
2357
+ const?: undefined;
2358
+ })[];
2359
+ };
2360
+ idempotentDispatch: {
2361
+ type: string[];
2362
+ };
2363
+ typedCompletionEnvelope: {
2364
+ type: string[];
2365
+ };
2366
+ workspaceProviders: {
2367
+ type: string;
2368
+ items: {
2369
+ type: string;
2370
+ };
2371
+ };
2372
+ };
2373
+ };
2374
+ enabled: {
2375
+ type: string[];
2376
+ };
2377
+ };
2378
+ };
2379
+ };
2380
+ };
2381
+ description: string;
2382
+ };
2383
+ };
2384
+ };
2385
+ speech: {
2386
+ type: string;
2387
+ additionalProperties: boolean;
2388
+ description: string;
2389
+ "x-descriptionZh": string;
2390
+ properties: {
2391
+ stt: {
2392
+ type: string[];
2393
+ additionalProperties: boolean;
2394
+ properties: {
2395
+ enabled: {
2396
+ type: string[];
2397
+ };
2398
+ provider: {
436
2399
  type: string;
437
- enum: string[];
438
- default: string;
439
- description: string;
440
- "x-descriptionZh": string;
2400
+ "x-zhin-config": {
2401
+ options: {
2402
+ label: string;
2403
+ value: string;
2404
+ }[];
2405
+ };
441
2406
  };
442
- execApprovalMode: {
2407
+ model: {
443
2408
  type: string;
444
- enum: string[];
445
- description: string;
446
- "x-descriptionZh": string;
447
2409
  };
448
- subagentExecApprovalMode: {
2410
+ host: {
449
2411
  type: string;
450
- enum: string[];
451
- description: string;
452
- "x-descriptionZh": string;
453
2412
  };
454
- workerExecApprovalMode: {
2413
+ apiKey: {
455
2414
  type: string;
456
- enum: string[];
457
- description: string;
458
- "x-descriptionZh": string;
2415
+ writeOnly: boolean;
2416
+ "x-zhin-config": {
2417
+ secret: boolean;
2418
+ };
459
2419
  };
460
- toolExecution: {
2420
+ };
2421
+ };
2422
+ tts: {
2423
+ type: string[];
2424
+ additionalProperties: boolean;
2425
+ properties: {
2426
+ enabled: {
2427
+ type: string[];
2428
+ };
2429
+ provider: {
461
2430
  type: string;
462
- enum: string[];
463
- description: string;
464
- "x-descriptionZh": string;
2431
+ "x-zhin-config": {
2432
+ options: {
2433
+ label: string;
2434
+ value: string;
2435
+ }[];
2436
+ };
465
2437
  };
466
- modelSizeHint: {
2438
+ voice: {
467
2439
  type: string;
468
- enum: string[];
469
- description: string;
470
- "x-descriptionZh": string;
471
2440
  };
472
- promptCacheRetention: {
2441
+ model: {
473
2442
  type: string;
474
- enum: string[];
475
- description: string;
476
- "x-descriptionZh": string;
477
2443
  };
478
- steeringMode: {
2444
+ host: {
479
2445
  type: string;
480
- enum: string[];
481
- description: string;
482
- "x-descriptionZh": string;
483
2446
  };
484
- followUpMode: {
2447
+ apiKey: {
2448
+ type: string;
2449
+ writeOnly: boolean;
2450
+ "x-zhin-config": {
2451
+ secret: boolean;
2452
+ };
2453
+ };
2454
+ rate: {
485
2455
  type: string;
486
- enum: string[];
487
2456
  description: string;
488
- "x-descriptionZh": string;
489
2457
  };
490
- outputSchema: {
491
- anyOf: ({
492
- type: string;
493
- enum?: undefined;
494
- } | {
495
- type: string;
496
- enum: string[];
497
- })[];
2458
+ pitch: {
2459
+ type: string;
2460
+ };
2461
+ edgeTtsCommand: {
2462
+ type: string;
2463
+ };
2464
+ region: {
2465
+ type: string;
498
2466
  description: string;
499
- "x-descriptionZh": string;
500
2467
  };
501
- schedule: {
2468
+ subscriptionKey: {
2469
+ type: string;
2470
+ writeOnly: boolean;
2471
+ "x-zhin-config": {
2472
+ secret: boolean;
2473
+ };
2474
+ };
2475
+ baseUrl: {
502
2476
  type: string;
503
- additionalProperties: boolean;
504
2477
  description: string;
505
- "x-descriptionZh": string;
506
- properties: {
507
- security: {
508
- type: string;
509
- additionalProperties: boolean;
510
- description: string;
511
- "x-descriptionZh": string;
512
- properties: {
513
- execPreset: {
514
- type: string;
515
- enum: string[];
516
- description: string;
517
- "x-descriptionZh": string;
518
- };
519
- };
2478
+ };
2479
+ headers: {
2480
+ type: string;
2481
+ additionalProperties: {
2482
+ type: string;
2483
+ writeOnly: boolean;
2484
+ "x-zhin-config": {
2485
+ secret: boolean;
520
2486
  };
521
2487
  };
522
2488
  };
2489
+ speed: {
2490
+ type: string[];
2491
+ };
523
2492
  };
524
2493
  };
525
2494
  };
526
2495
  };
527
- mcp: {
528
- type: string;
529
- additionalProperties: boolean;
530
- description: string;
531
- "x-descriptionZh": string;
532
- };
533
- a2a: {
534
- type: string;
535
- additionalProperties: boolean;
536
- description: string;
537
- "x-descriptionZh": string;
538
- };
539
- speech: {
540
- type: string;
541
- additionalProperties: boolean;
542
- description: string;
543
- "x-descriptionZh": string;
544
- };
545
2496
  htmlRenderer: {
546
2497
  type: string;
547
2498
  additionalProperties: boolean;
@@ -796,6 +2747,292 @@ export declare const HOST_CONFIG_SCHEMA: {
796
2747
  additionalProperties: boolean;
797
2748
  description: string;
798
2749
  "x-descriptionZh": string;
2750
+ properties: {
2751
+ enabled: {
2752
+ type: string[];
2753
+ description: string;
2754
+ };
2755
+ queue: {
2756
+ type: string[];
2757
+ additionalProperties: boolean;
2758
+ properties: {
2759
+ maxConcurrency: {
2760
+ type: string[];
2761
+ description: string;
2762
+ };
2763
+ maxRetries: {
2764
+ type: string[];
2765
+ };
2766
+ defaultTimeoutMs: {
2767
+ type: string[];
2768
+ };
2769
+ };
2770
+ description: string;
2771
+ };
2772
+ defaults: {
2773
+ type: string[];
2774
+ additionalProperties: boolean;
2775
+ properties: {
2776
+ notify: {
2777
+ anyOf: ({
2778
+ type: string;
2779
+ additionalProperties: boolean;
2780
+ properties: {
2781
+ channel: {
2782
+ anyOf: ({
2783
+ const: string;
2784
+ type?: undefined;
2785
+ pattern?: undefined;
2786
+ } | {
2787
+ type: string;
2788
+ pattern: string;
2789
+ const?: undefined;
2790
+ })[];
2791
+ };
2792
+ target: {
2793
+ type: string;
2794
+ additionalProperties: boolean;
2795
+ properties: {
2796
+ channel: {
2797
+ anyOf: ({
2798
+ const: string;
2799
+ type?: undefined;
2800
+ pattern?: undefined;
2801
+ } | {
2802
+ type: string;
2803
+ pattern: string;
2804
+ const?: undefined;
2805
+ })[];
2806
+ };
2807
+ scene: {
2808
+ type: string;
2809
+ additionalProperties: boolean;
2810
+ properties: {
2811
+ platform: {
2812
+ type: string;
2813
+ };
2814
+ endpointKey: {
2815
+ type: string;
2816
+ };
2817
+ sceneId: {
2818
+ type: string;
2819
+ };
2820
+ kind: {
2821
+ type: string;
2822
+ "x-zhin-config": {
2823
+ options: {
2824
+ label: string;
2825
+ value: string;
2826
+ }[];
2827
+ };
2828
+ };
2829
+ senderId: {
2830
+ type: string;
2831
+ };
2832
+ parent: {
2833
+ type: string;
2834
+ additionalProperties: boolean;
2835
+ properties: {
2836
+ kind: {
2837
+ type: string;
2838
+ "x-zhin-config": {
2839
+ options: {
2840
+ label: string;
2841
+ value: string;
2842
+ }[];
2843
+ };
2844
+ };
2845
+ sceneId: {
2846
+ type: string;
2847
+ };
2848
+ };
2849
+ };
2850
+ };
2851
+ };
2852
+ threadId: {
2853
+ type: string;
2854
+ };
2855
+ quoteId: {
2856
+ type: string;
2857
+ };
2858
+ };
2859
+ };
2860
+ service?: undefined;
2861
+ data?: undefined;
2862
+ };
2863
+ } | {
2864
+ type: string;
2865
+ additionalProperties: boolean;
2866
+ properties: {
2867
+ channel: {
2868
+ anyOf: ({
2869
+ const: string;
2870
+ type?: undefined;
2871
+ pattern?: undefined;
2872
+ } | {
2873
+ type: string;
2874
+ pattern: string;
2875
+ const?: undefined;
2876
+ })[];
2877
+ };
2878
+ target?: undefined;
2879
+ service?: undefined;
2880
+ data?: undefined;
2881
+ };
2882
+ } | {
2883
+ type: string;
2884
+ additionalProperties: boolean;
2885
+ properties: {
2886
+ channel: {
2887
+ anyOf: ({
2888
+ const: string;
2889
+ type?: undefined;
2890
+ pattern?: undefined;
2891
+ } | {
2892
+ type: string;
2893
+ pattern: string;
2894
+ const?: undefined;
2895
+ })[];
2896
+ };
2897
+ service: {
2898
+ type: string;
2899
+ };
2900
+ target: {
2901
+ type: string;
2902
+ additionalProperties?: undefined;
2903
+ properties?: undefined;
2904
+ };
2905
+ data: {
2906
+ type: string;
2907
+ additionalProperties: {
2908
+ description: string;
2909
+ };
2910
+ };
2911
+ };
2912
+ } | {
2913
+ type: string;
2914
+ additionalProperties?: undefined;
2915
+ properties?: undefined;
2916
+ })[];
2917
+ description: string;
2918
+ };
2919
+ notifyOnFailure: {
2920
+ type: string[];
2921
+ description: string;
2922
+ };
2923
+ };
2924
+ };
2925
+ profile: {
2926
+ type: string[];
2927
+ additionalProperties: boolean;
2928
+ properties: {
2929
+ enabled: {
2930
+ type: string[];
2931
+ description: string;
2932
+ };
2933
+ file: {
2934
+ type: string[];
2935
+ description: string;
2936
+ };
2937
+ };
2938
+ };
2939
+ home: {
2940
+ type: string[];
2941
+ additionalProperties: boolean;
2942
+ properties: {
2943
+ enabled: {
2944
+ type: string[];
2945
+ };
2946
+ restUrl: {
2947
+ type: string;
2948
+ description: string;
2949
+ };
2950
+ restToken: {
2951
+ type: string;
2952
+ description: string;
2953
+ writeOnly: boolean;
2954
+ "x-zhin-config": {
2955
+ secret: boolean;
2956
+ };
2957
+ };
2958
+ mcpServer: {
2959
+ type: string;
2960
+ description: string;
2961
+ };
2962
+ aliases: {
2963
+ type: string[];
2964
+ additionalProperties: {
2965
+ type: string;
2966
+ };
2967
+ description: string;
2968
+ };
2969
+ policy: {
2970
+ type: string[];
2971
+ additionalProperties: boolean;
2972
+ properties: {
2973
+ requireMaster: {
2974
+ type: string[];
2975
+ description: string;
2976
+ };
2977
+ confirmServices: {
2978
+ type: string[];
2979
+ items: {
2980
+ type: string;
2981
+ };
2982
+ description: string;
2983
+ };
2984
+ allowedServiceDomains: {
2985
+ type: string[];
2986
+ items: {
2987
+ type: string;
2988
+ };
2989
+ description: string;
2990
+ };
2991
+ };
2992
+ };
2993
+ watch: {
2994
+ type: string[];
2995
+ items: {
2996
+ type: string;
2997
+ };
2998
+ description: string;
2999
+ };
3000
+ debounceMs: {
3001
+ type: string[];
3002
+ description: string;
3003
+ };
3004
+ };
3005
+ };
3006
+ events: {
3007
+ type: string[];
3008
+ additionalProperties: boolean;
3009
+ properties: {
3010
+ enabled: {
3011
+ type: string[];
3012
+ description: string;
3013
+ };
3014
+ token: {
3015
+ type: string;
3016
+ description: string;
3017
+ writeOnly: boolean;
3018
+ "x-zhin-config": {
3019
+ secret: boolean;
3020
+ };
3021
+ };
3022
+ allowedSources: {
3023
+ type: string;
3024
+ items: {
3025
+ type: string;
3026
+ };
3027
+ description: string;
3028
+ };
3029
+ rateLimitPerMinute: {
3030
+ type: string[];
3031
+ description: string;
3032
+ };
3033
+ };
3034
+ };
3035
+ };
799
3036
  };
800
3037
  log_level: {
801
3038
  type: string[];
@@ -872,7 +3109,11 @@ export declare class ConfigValidationError extends Error {
872
3109
  export declare class ConfigComposer {
873
3110
  private readonly inactivePluginInstanceKeys;
874
3111
  private readonly modules?;
875
- constructor(inactivePluginInstanceKeys?: readonly string[], modules?: Pick<ModuleRuntime, "load"> | undefined);
3112
+ /** Previously validated generation declarations; never import retired owners just to compare inputs. */
3113
+ private readonly validatedSchemas?;
3114
+ constructor(inactivePluginInstanceKeys?: readonly string[], modules?: Pick<ModuleRuntime, "load"> | undefined,
3115
+ /** Previously validated generation declarations; never import retired owners just to compare inputs. */
3116
+ validatedSchemas?: ReadonlyMap<PluginId, JsonSchema> | undefined);
876
3117
  compose(graph: ProjectGraph, input?: RuntimeConfigDocument,
877
3118
  /** Source config file name, annotated on ConfigValidationError. */
878
3119
  source?: string): Promise<ComposedConfig>;