@itphx/synth-shared 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +3 -1
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/defaults.test.js +0 -1
- package/dist/config/defaults.test.js.map +1 -1
- package/dist/config/types.d.ts +176 -133
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +5 -0
- package/dist/config/types.js.map +1 -1
- package/dist/i18n/index.d.ts +20 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +435 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/index.test.d.ts +2 -0
- package/dist/i18n/index.test.d.ts.map +1 -0
- package/dist/i18n/index.test.js +41 -0
- package/dist/i18n/index.test.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +120 -154
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +6 -19
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.d.ts +65 -28
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -7
- package/dist/types/index.js.map +1 -1
- package/dist/types/permission.d.ts +4 -0
- package/dist/types/permission.d.ts.map +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +9 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -1
- package/dist/data/model-metadata.d.ts +0 -16
- package/dist/data/model-metadata.d.ts.map +0 -1
- package/dist/data/model-metadata.js +0 -137
- package/dist/data/model-metadata.js.map +0 -1
package/dist/config/types.d.ts
CHANGED
|
@@ -87,8 +87,8 @@ export declare const authConfigSchema: z.ZodObject<{
|
|
|
87
87
|
redirectUri: string;
|
|
88
88
|
} | undefined;
|
|
89
89
|
}, {
|
|
90
|
-
debugMode?: boolean | undefined;
|
|
91
90
|
apiKey?: string | undefined;
|
|
91
|
+
debugMode?: boolean | undefined;
|
|
92
92
|
testUsers?: {
|
|
93
93
|
apiKey: string;
|
|
94
94
|
username: string;
|
|
@@ -124,11 +124,11 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
124
124
|
port: z.ZodDefault<z.ZodNumber>;
|
|
125
125
|
apiKey: z.ZodDefault<z.ZodString>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
port: number;
|
|
128
127
|
apiKey: string;
|
|
128
|
+
port: number;
|
|
129
129
|
}, {
|
|
130
|
-
port?: number | undefined;
|
|
131
130
|
apiKey?: string | undefined;
|
|
131
|
+
port?: number | undefined;
|
|
132
132
|
}>;
|
|
133
133
|
export declare const runnerConfigSchema: z.ZodObject<{
|
|
134
134
|
port: z.ZodDefault<z.ZodNumber>;
|
|
@@ -138,31 +138,31 @@ export declare const runnerConfigSchema: z.ZodObject<{
|
|
|
138
138
|
cline: z.ZodDefault<z.ZodNumber>;
|
|
139
139
|
synth: z.ZodDefault<z.ZodNumber>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
synth: number;
|
|
141
142
|
opencode: number;
|
|
142
143
|
cline: number;
|
|
143
|
-
synth: number;
|
|
144
144
|
}, {
|
|
145
|
+
synth?: number | undefined;
|
|
145
146
|
opencode?: number | undefined;
|
|
146
147
|
cline?: number | undefined;
|
|
147
|
-
synth?: number | undefined;
|
|
148
148
|
}>>;
|
|
149
149
|
proxyPort: z.ZodDefault<z.ZodNumber>;
|
|
150
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
151
|
port: number;
|
|
152
152
|
backendUrl: string;
|
|
153
153
|
enginePorts: {
|
|
154
|
+
synth: number;
|
|
154
155
|
opencode: number;
|
|
155
156
|
cline: number;
|
|
156
|
-
synth: number;
|
|
157
157
|
};
|
|
158
158
|
proxyPort: number;
|
|
159
159
|
}, {
|
|
160
160
|
port?: number | undefined;
|
|
161
161
|
backendUrl?: string | undefined;
|
|
162
162
|
enginePorts?: {
|
|
163
|
+
synth?: number | undefined;
|
|
163
164
|
opencode?: number | undefined;
|
|
164
165
|
cline?: number | undefined;
|
|
165
|
-
synth?: number | undefined;
|
|
166
166
|
} | undefined;
|
|
167
167
|
proxyPort?: number | undefined;
|
|
168
168
|
}>;
|
|
@@ -256,22 +256,22 @@ export declare const mcpServerConfigSchema: z.ZodObject<{
|
|
|
256
256
|
connectTimeout: z.ZodOptional<z.ZodNumber>;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
258
|
type: "stdio" | "sse";
|
|
259
|
-
enabled?: boolean | undefined;
|
|
260
|
-
timeout?: number | undefined;
|
|
261
259
|
url?: string | undefined;
|
|
262
260
|
command?: string | undefined;
|
|
263
261
|
args?: string[] | undefined;
|
|
262
|
+
enabled?: boolean | undefined;
|
|
263
|
+
timeout?: number | undefined;
|
|
264
264
|
env?: Record<string, string> | undefined;
|
|
265
265
|
headers?: Record<string, string> | undefined;
|
|
266
266
|
enabledByDefault?: boolean | undefined;
|
|
267
267
|
connectTimeout?: number | undefined;
|
|
268
268
|
}, {
|
|
269
269
|
type: "stdio" | "sse";
|
|
270
|
-
enabled?: boolean | undefined;
|
|
271
|
-
timeout?: number | undefined;
|
|
272
270
|
url?: string | undefined;
|
|
273
271
|
command?: string | undefined;
|
|
274
272
|
args?: string[] | undefined;
|
|
273
|
+
enabled?: boolean | undefined;
|
|
274
|
+
timeout?: number | undefined;
|
|
275
275
|
env?: Record<string, string> | undefined;
|
|
276
276
|
headers?: Record<string, string> | undefined;
|
|
277
277
|
enabledByDefault?: boolean | undefined;
|
|
@@ -291,22 +291,22 @@ export declare const mcpConfigSchema: z.ZodObject<{
|
|
|
291
291
|
connectTimeout: z.ZodOptional<z.ZodNumber>;
|
|
292
292
|
}, "strip", z.ZodTypeAny, {
|
|
293
293
|
type: "stdio" | "sse";
|
|
294
|
-
enabled?: boolean | undefined;
|
|
295
|
-
timeout?: number | undefined;
|
|
296
294
|
url?: string | undefined;
|
|
297
295
|
command?: string | undefined;
|
|
298
296
|
args?: string[] | undefined;
|
|
297
|
+
enabled?: boolean | undefined;
|
|
298
|
+
timeout?: number | undefined;
|
|
299
299
|
env?: Record<string, string> | undefined;
|
|
300
300
|
headers?: Record<string, string> | undefined;
|
|
301
301
|
enabledByDefault?: boolean | undefined;
|
|
302
302
|
connectTimeout?: number | undefined;
|
|
303
303
|
}, {
|
|
304
304
|
type: "stdio" | "sse";
|
|
305
|
-
enabled?: boolean | undefined;
|
|
306
|
-
timeout?: number | undefined;
|
|
307
305
|
url?: string | undefined;
|
|
308
306
|
command?: string | undefined;
|
|
309
307
|
args?: string[] | undefined;
|
|
308
|
+
enabled?: boolean | undefined;
|
|
309
|
+
timeout?: number | undefined;
|
|
310
310
|
env?: Record<string, string> | undefined;
|
|
311
311
|
headers?: Record<string, string> | undefined;
|
|
312
312
|
enabledByDefault?: boolean | undefined;
|
|
@@ -315,11 +315,11 @@ export declare const mcpConfigSchema: z.ZodObject<{
|
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
316
|
servers: Record<string, {
|
|
317
317
|
type: "stdio" | "sse";
|
|
318
|
-
enabled?: boolean | undefined;
|
|
319
|
-
timeout?: number | undefined;
|
|
320
318
|
url?: string | undefined;
|
|
321
319
|
command?: string | undefined;
|
|
322
320
|
args?: string[] | undefined;
|
|
321
|
+
enabled?: boolean | undefined;
|
|
322
|
+
timeout?: number | undefined;
|
|
323
323
|
env?: Record<string, string> | undefined;
|
|
324
324
|
headers?: Record<string, string> | undefined;
|
|
325
325
|
enabledByDefault?: boolean | undefined;
|
|
@@ -328,11 +328,11 @@ export declare const mcpConfigSchema: z.ZodObject<{
|
|
|
328
328
|
}, {
|
|
329
329
|
servers?: Record<string, {
|
|
330
330
|
type: "stdio" | "sse";
|
|
331
|
-
enabled?: boolean | undefined;
|
|
332
|
-
timeout?: number | undefined;
|
|
333
331
|
url?: string | undefined;
|
|
334
332
|
command?: string | undefined;
|
|
335
333
|
args?: string[] | undefined;
|
|
334
|
+
enabled?: boolean | undefined;
|
|
335
|
+
timeout?: number | undefined;
|
|
336
336
|
env?: Record<string, string> | undefined;
|
|
337
337
|
headers?: Record<string, string> | undefined;
|
|
338
338
|
enabledByDefault?: boolean | undefined;
|
|
@@ -347,13 +347,21 @@ export declare const promptInjectionConfigSchema: z.ZodObject<{
|
|
|
347
347
|
/** Режим детекции подозрительных паттернов: flag (пометить), sanitize (заменить), block (заблокировать). */
|
|
348
348
|
mode: z.ZodDefault<z.ZodEnum<["flag", "sanitize", "block"]>>;
|
|
349
349
|
}, "strip", z.ZodTypeAny, {
|
|
350
|
+
mode: "flag" | "sanitize" | "block";
|
|
350
351
|
enabled: boolean;
|
|
351
352
|
wrapContent: boolean;
|
|
352
|
-
mode: "flag" | "sanitize" | "block";
|
|
353
353
|
}, {
|
|
354
|
+
mode?: "flag" | "sanitize" | "block" | undefined;
|
|
354
355
|
enabled?: boolean | undefined;
|
|
355
356
|
wrapContent?: boolean | undefined;
|
|
356
|
-
|
|
357
|
+
}>;
|
|
358
|
+
export declare const protectedPathsConfigSchema: z.ZodObject<{
|
|
359
|
+
/** Глобальный выключатель защиты защищённых путей (сквозная проверка файловых тулов). */
|
|
360
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
enabled: boolean;
|
|
363
|
+
}, {
|
|
364
|
+
enabled?: boolean | undefined;
|
|
357
365
|
}>;
|
|
358
366
|
export declare const securityConfigSchema: z.ZodObject<{
|
|
359
367
|
promptInjection: z.ZodDefault<z.ZodObject<{
|
|
@@ -364,25 +372,39 @@ export declare const securityConfigSchema: z.ZodObject<{
|
|
|
364
372
|
/** Режим детекции подозрительных паттернов: flag (пометить), sanitize (заменить), block (заблокировать). */
|
|
365
373
|
mode: z.ZodDefault<z.ZodEnum<["flag", "sanitize", "block"]>>;
|
|
366
374
|
}, "strip", z.ZodTypeAny, {
|
|
375
|
+
mode: "flag" | "sanitize" | "block";
|
|
367
376
|
enabled: boolean;
|
|
368
377
|
wrapContent: boolean;
|
|
369
|
-
mode: "flag" | "sanitize" | "block";
|
|
370
378
|
}, {
|
|
379
|
+
mode?: "flag" | "sanitize" | "block" | undefined;
|
|
371
380
|
enabled?: boolean | undefined;
|
|
372
381
|
wrapContent?: boolean | undefined;
|
|
373
|
-
|
|
382
|
+
}>>;
|
|
383
|
+
protectedPaths: z.ZodDefault<z.ZodObject<{
|
|
384
|
+
/** Глобальный выключатель защиты защищённых путей (сквозная проверка файловых тулов). */
|
|
385
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
enabled: boolean;
|
|
388
|
+
}, {
|
|
389
|
+
enabled?: boolean | undefined;
|
|
374
390
|
}>>;
|
|
375
391
|
}, "strip", z.ZodTypeAny, {
|
|
376
392
|
promptInjection: {
|
|
393
|
+
mode: "flag" | "sanitize" | "block";
|
|
377
394
|
enabled: boolean;
|
|
378
395
|
wrapContent: boolean;
|
|
379
|
-
|
|
396
|
+
};
|
|
397
|
+
protectedPaths: {
|
|
398
|
+
enabled: boolean;
|
|
380
399
|
};
|
|
381
400
|
}, {
|
|
382
401
|
promptInjection?: {
|
|
402
|
+
mode?: "flag" | "sanitize" | "block" | undefined;
|
|
383
403
|
enabled?: boolean | undefined;
|
|
384
404
|
wrapContent?: boolean | undefined;
|
|
385
|
-
|
|
405
|
+
} | undefined;
|
|
406
|
+
protectedPaths?: {
|
|
407
|
+
enabled?: boolean | undefined;
|
|
386
408
|
} | undefined;
|
|
387
409
|
}>;
|
|
388
410
|
export declare const llmGatewayRateLimitConfigSchema: z.ZodObject<{
|
|
@@ -568,13 +590,13 @@ export declare const routerSubagentConfigSchema: z.ZodObject<{
|
|
|
568
590
|
model: z.ZodDefault<z.ZodString>;
|
|
569
591
|
provider: z.ZodDefault<z.ZodString>;
|
|
570
592
|
}, "strip", z.ZodTypeAny, {
|
|
571
|
-
enabled: boolean;
|
|
572
593
|
provider: string;
|
|
573
594
|
model: string;
|
|
595
|
+
enabled: boolean;
|
|
574
596
|
}, {
|
|
575
|
-
enabled?: boolean | undefined;
|
|
576
597
|
provider?: string | undefined;
|
|
577
598
|
model?: string | undefined;
|
|
599
|
+
enabled?: boolean | undefined;
|
|
578
600
|
}>;
|
|
579
601
|
export declare const microFirstConfigSchema: z.ZodObject<{
|
|
580
602
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -717,16 +739,20 @@ export declare const routerConfigSchema: z.ZodObject<{
|
|
|
717
739
|
model: z.ZodDefault<z.ZodString>;
|
|
718
740
|
provider: z.ZodDefault<z.ZodString>;
|
|
719
741
|
}, "strip", z.ZodTypeAny, {
|
|
720
|
-
enabled: boolean;
|
|
721
742
|
provider: string;
|
|
722
743
|
model: string;
|
|
744
|
+
enabled: boolean;
|
|
723
745
|
}, {
|
|
724
|
-
enabled?: boolean | undefined;
|
|
725
746
|
provider?: string | undefined;
|
|
726
747
|
model?: string | undefined;
|
|
748
|
+
enabled?: boolean | undefined;
|
|
727
749
|
}>>;
|
|
728
750
|
}, "strip", z.ZodTypeAny, {
|
|
729
|
-
|
|
751
|
+
subagent: {
|
|
752
|
+
provider: string;
|
|
753
|
+
model: string;
|
|
754
|
+
enabled: boolean;
|
|
755
|
+
};
|
|
730
756
|
content: {
|
|
731
757
|
coding: {
|
|
732
758
|
provider: string;
|
|
@@ -749,6 +775,7 @@ export declare const routerConfigSchema: z.ZodObject<{
|
|
|
749
775
|
expensiveModel: string;
|
|
750
776
|
maxCheapTokens: number;
|
|
751
777
|
};
|
|
778
|
+
enabled: boolean;
|
|
752
779
|
strategy: "auto" | "content" | "cost" | "content+cost";
|
|
753
780
|
escalation: {
|
|
754
781
|
enabled: boolean;
|
|
@@ -758,13 +785,12 @@ export declare const routerConfigSchema: z.ZodObject<{
|
|
|
758
785
|
fallbackModel: string;
|
|
759
786
|
checks: ("min_length" | "constraint" | "self_check")[];
|
|
760
787
|
};
|
|
761
|
-
subagent: {
|
|
762
|
-
enabled: boolean;
|
|
763
|
-
provider: string;
|
|
764
|
-
model: string;
|
|
765
|
-
};
|
|
766
788
|
}, {
|
|
767
|
-
|
|
789
|
+
subagent?: {
|
|
790
|
+
provider?: string | undefined;
|
|
791
|
+
model?: string | undefined;
|
|
792
|
+
enabled?: boolean | undefined;
|
|
793
|
+
} | undefined;
|
|
768
794
|
content?: {
|
|
769
795
|
coding?: {
|
|
770
796
|
provider?: string | undefined;
|
|
@@ -787,6 +813,7 @@ export declare const routerConfigSchema: z.ZodObject<{
|
|
|
787
813
|
expensiveModel?: string | undefined;
|
|
788
814
|
maxCheapTokens?: number | undefined;
|
|
789
815
|
} | undefined;
|
|
816
|
+
enabled?: boolean | undefined;
|
|
790
817
|
strategy?: "auto" | "content" | "cost" | "content+cost" | undefined;
|
|
791
818
|
escalation?: {
|
|
792
819
|
enabled?: boolean | undefined;
|
|
@@ -796,11 +823,6 @@ export declare const routerConfigSchema: z.ZodObject<{
|
|
|
796
823
|
fallbackModel?: string | undefined;
|
|
797
824
|
checks?: ("min_length" | "constraint" | "self_check")[] | undefined;
|
|
798
825
|
} | undefined;
|
|
799
|
-
subagent?: {
|
|
800
|
-
enabled?: boolean | undefined;
|
|
801
|
-
provider?: string | undefined;
|
|
802
|
-
model?: string | undefined;
|
|
803
|
-
} | undefined;
|
|
804
826
|
}>;
|
|
805
827
|
export declare const synthConfigSchema: z.ZodObject<{
|
|
806
828
|
server: z.ZodDefault<z.ZodObject<{
|
|
@@ -890,8 +912,8 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
890
912
|
redirectUri: string;
|
|
891
913
|
} | undefined;
|
|
892
914
|
}, {
|
|
893
|
-
debugMode?: boolean | undefined;
|
|
894
915
|
apiKey?: string | undefined;
|
|
916
|
+
debugMode?: boolean | undefined;
|
|
895
917
|
testUsers?: {
|
|
896
918
|
apiKey: string;
|
|
897
919
|
username: string;
|
|
@@ -927,11 +949,11 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
927
949
|
port: z.ZodDefault<z.ZodNumber>;
|
|
928
950
|
apiKey: z.ZodDefault<z.ZodString>;
|
|
929
951
|
}, "strip", z.ZodTypeAny, {
|
|
930
|
-
port: number;
|
|
931
952
|
apiKey: string;
|
|
953
|
+
port: number;
|
|
932
954
|
}, {
|
|
933
|
-
port?: number | undefined;
|
|
934
955
|
apiKey?: string | undefined;
|
|
956
|
+
port?: number | undefined;
|
|
935
957
|
}>>;
|
|
936
958
|
runner: z.ZodDefault<z.ZodObject<{
|
|
937
959
|
port: z.ZodDefault<z.ZodNumber>;
|
|
@@ -941,31 +963,31 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
941
963
|
cline: z.ZodDefault<z.ZodNumber>;
|
|
942
964
|
synth: z.ZodDefault<z.ZodNumber>;
|
|
943
965
|
}, "strip", z.ZodTypeAny, {
|
|
966
|
+
synth: number;
|
|
944
967
|
opencode: number;
|
|
945
968
|
cline: number;
|
|
946
|
-
synth: number;
|
|
947
969
|
}, {
|
|
970
|
+
synth?: number | undefined;
|
|
948
971
|
opencode?: number | undefined;
|
|
949
972
|
cline?: number | undefined;
|
|
950
|
-
synth?: number | undefined;
|
|
951
973
|
}>>;
|
|
952
974
|
proxyPort: z.ZodDefault<z.ZodNumber>;
|
|
953
975
|
}, "strip", z.ZodTypeAny, {
|
|
954
976
|
port: number;
|
|
955
977
|
backendUrl: string;
|
|
956
978
|
enginePorts: {
|
|
979
|
+
synth: number;
|
|
957
980
|
opencode: number;
|
|
958
981
|
cline: number;
|
|
959
|
-
synth: number;
|
|
960
982
|
};
|
|
961
983
|
proxyPort: number;
|
|
962
984
|
}, {
|
|
963
985
|
port?: number | undefined;
|
|
964
986
|
backendUrl?: string | undefined;
|
|
965
987
|
enginePorts?: {
|
|
988
|
+
synth?: number | undefined;
|
|
966
989
|
opencode?: number | undefined;
|
|
967
990
|
cline?: number | undefined;
|
|
968
|
-
synth?: number | undefined;
|
|
969
991
|
} | undefined;
|
|
970
992
|
proxyPort?: number | undefined;
|
|
971
993
|
}>>;
|
|
@@ -1060,22 +1082,22 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1060
1082
|
connectTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1061
1083
|
}, "strip", z.ZodTypeAny, {
|
|
1062
1084
|
type: "stdio" | "sse";
|
|
1063
|
-
enabled?: boolean | undefined;
|
|
1064
|
-
timeout?: number | undefined;
|
|
1065
1085
|
url?: string | undefined;
|
|
1066
1086
|
command?: string | undefined;
|
|
1067
1087
|
args?: string[] | undefined;
|
|
1088
|
+
enabled?: boolean | undefined;
|
|
1089
|
+
timeout?: number | undefined;
|
|
1068
1090
|
env?: Record<string, string> | undefined;
|
|
1069
1091
|
headers?: Record<string, string> | undefined;
|
|
1070
1092
|
enabledByDefault?: boolean | undefined;
|
|
1071
1093
|
connectTimeout?: number | undefined;
|
|
1072
1094
|
}, {
|
|
1073
1095
|
type: "stdio" | "sse";
|
|
1074
|
-
enabled?: boolean | undefined;
|
|
1075
|
-
timeout?: number | undefined;
|
|
1076
1096
|
url?: string | undefined;
|
|
1077
1097
|
command?: string | undefined;
|
|
1078
1098
|
args?: string[] | undefined;
|
|
1099
|
+
enabled?: boolean | undefined;
|
|
1100
|
+
timeout?: number | undefined;
|
|
1079
1101
|
env?: Record<string, string> | undefined;
|
|
1080
1102
|
headers?: Record<string, string> | undefined;
|
|
1081
1103
|
enabledByDefault?: boolean | undefined;
|
|
@@ -1084,11 +1106,11 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1084
1106
|
}, "strip", z.ZodTypeAny, {
|
|
1085
1107
|
servers: Record<string, {
|
|
1086
1108
|
type: "stdio" | "sse";
|
|
1087
|
-
enabled?: boolean | undefined;
|
|
1088
|
-
timeout?: number | undefined;
|
|
1089
1109
|
url?: string | undefined;
|
|
1090
1110
|
command?: string | undefined;
|
|
1091
1111
|
args?: string[] | undefined;
|
|
1112
|
+
enabled?: boolean | undefined;
|
|
1113
|
+
timeout?: number | undefined;
|
|
1092
1114
|
env?: Record<string, string> | undefined;
|
|
1093
1115
|
headers?: Record<string, string> | undefined;
|
|
1094
1116
|
enabledByDefault?: boolean | undefined;
|
|
@@ -1097,11 +1119,11 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1097
1119
|
}, {
|
|
1098
1120
|
servers?: Record<string, {
|
|
1099
1121
|
type: "stdio" | "sse";
|
|
1100
|
-
enabled?: boolean | undefined;
|
|
1101
|
-
timeout?: number | undefined;
|
|
1102
1122
|
url?: string | undefined;
|
|
1103
1123
|
command?: string | undefined;
|
|
1104
1124
|
args?: string[] | undefined;
|
|
1125
|
+
enabled?: boolean | undefined;
|
|
1126
|
+
timeout?: number | undefined;
|
|
1105
1127
|
env?: Record<string, string> | undefined;
|
|
1106
1128
|
headers?: Record<string, string> | undefined;
|
|
1107
1129
|
enabledByDefault?: boolean | undefined;
|
|
@@ -1218,16 +1240,20 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1218
1240
|
model: z.ZodDefault<z.ZodString>;
|
|
1219
1241
|
provider: z.ZodDefault<z.ZodString>;
|
|
1220
1242
|
}, "strip", z.ZodTypeAny, {
|
|
1221
|
-
enabled: boolean;
|
|
1222
1243
|
provider: string;
|
|
1223
1244
|
model: string;
|
|
1245
|
+
enabled: boolean;
|
|
1224
1246
|
}, {
|
|
1225
|
-
enabled?: boolean | undefined;
|
|
1226
1247
|
provider?: string | undefined;
|
|
1227
1248
|
model?: string | undefined;
|
|
1249
|
+
enabled?: boolean | undefined;
|
|
1228
1250
|
}>>;
|
|
1229
1251
|
}, "strip", z.ZodTypeAny, {
|
|
1230
|
-
|
|
1252
|
+
subagent: {
|
|
1253
|
+
provider: string;
|
|
1254
|
+
model: string;
|
|
1255
|
+
enabled: boolean;
|
|
1256
|
+
};
|
|
1231
1257
|
content: {
|
|
1232
1258
|
coding: {
|
|
1233
1259
|
provider: string;
|
|
@@ -1250,6 +1276,7 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1250
1276
|
expensiveModel: string;
|
|
1251
1277
|
maxCheapTokens: number;
|
|
1252
1278
|
};
|
|
1279
|
+
enabled: boolean;
|
|
1253
1280
|
strategy: "auto" | "content" | "cost" | "content+cost";
|
|
1254
1281
|
escalation: {
|
|
1255
1282
|
enabled: boolean;
|
|
@@ -1259,13 +1286,12 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1259
1286
|
fallbackModel: string;
|
|
1260
1287
|
checks: ("min_length" | "constraint" | "self_check")[];
|
|
1261
1288
|
};
|
|
1262
|
-
subagent: {
|
|
1263
|
-
enabled: boolean;
|
|
1264
|
-
provider: string;
|
|
1265
|
-
model: string;
|
|
1266
|
-
};
|
|
1267
1289
|
}, {
|
|
1268
|
-
|
|
1290
|
+
subagent?: {
|
|
1291
|
+
provider?: string | undefined;
|
|
1292
|
+
model?: string | undefined;
|
|
1293
|
+
enabled?: boolean | undefined;
|
|
1294
|
+
} | undefined;
|
|
1269
1295
|
content?: {
|
|
1270
1296
|
coding?: {
|
|
1271
1297
|
provider?: string | undefined;
|
|
@@ -1288,6 +1314,7 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1288
1314
|
expensiveModel?: string | undefined;
|
|
1289
1315
|
maxCheapTokens?: number | undefined;
|
|
1290
1316
|
} | undefined;
|
|
1317
|
+
enabled?: boolean | undefined;
|
|
1291
1318
|
strategy?: "auto" | "content" | "cost" | "content+cost" | undefined;
|
|
1292
1319
|
escalation?: {
|
|
1293
1320
|
enabled?: boolean | undefined;
|
|
@@ -1297,11 +1324,6 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1297
1324
|
fallbackModel?: string | undefined;
|
|
1298
1325
|
checks?: ("min_length" | "constraint" | "self_check")[] | undefined;
|
|
1299
1326
|
} | undefined;
|
|
1300
|
-
subagent?: {
|
|
1301
|
-
enabled?: boolean | undefined;
|
|
1302
|
-
provider?: string | undefined;
|
|
1303
|
-
model?: string | undefined;
|
|
1304
|
-
} | undefined;
|
|
1305
1327
|
}>>;
|
|
1306
1328
|
microFirst: z.ZodDefault<z.ZodObject<{
|
|
1307
1329
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1409,28 +1431,62 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1409
1431
|
/** Режим детекции подозрительных паттернов: flag (пометить), sanitize (заменить), block (заблокировать). */
|
|
1410
1432
|
mode: z.ZodDefault<z.ZodEnum<["flag", "sanitize", "block"]>>;
|
|
1411
1433
|
}, "strip", z.ZodTypeAny, {
|
|
1434
|
+
mode: "flag" | "sanitize" | "block";
|
|
1412
1435
|
enabled: boolean;
|
|
1413
1436
|
wrapContent: boolean;
|
|
1414
|
-
mode: "flag" | "sanitize" | "block";
|
|
1415
1437
|
}, {
|
|
1438
|
+
mode?: "flag" | "sanitize" | "block" | undefined;
|
|
1416
1439
|
enabled?: boolean | undefined;
|
|
1417
1440
|
wrapContent?: boolean | undefined;
|
|
1418
|
-
|
|
1441
|
+
}>>;
|
|
1442
|
+
protectedPaths: z.ZodDefault<z.ZodObject<{
|
|
1443
|
+
/** Глобальный выключатель защиты защищённых путей (сквозная проверка файловых тулов). */
|
|
1444
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1445
|
+
}, "strip", z.ZodTypeAny, {
|
|
1446
|
+
enabled: boolean;
|
|
1447
|
+
}, {
|
|
1448
|
+
enabled?: boolean | undefined;
|
|
1419
1449
|
}>>;
|
|
1420
1450
|
}, "strip", z.ZodTypeAny, {
|
|
1421
1451
|
promptInjection: {
|
|
1452
|
+
mode: "flag" | "sanitize" | "block";
|
|
1422
1453
|
enabled: boolean;
|
|
1423
1454
|
wrapContent: boolean;
|
|
1424
|
-
|
|
1455
|
+
};
|
|
1456
|
+
protectedPaths: {
|
|
1457
|
+
enabled: boolean;
|
|
1425
1458
|
};
|
|
1426
1459
|
}, {
|
|
1427
1460
|
promptInjection?: {
|
|
1461
|
+
mode?: "flag" | "sanitize" | "block" | undefined;
|
|
1428
1462
|
enabled?: boolean | undefined;
|
|
1429
1463
|
wrapContent?: boolean | undefined;
|
|
1430
|
-
|
|
1464
|
+
} | undefined;
|
|
1465
|
+
protectedPaths?: {
|
|
1466
|
+
enabled?: boolean | undefined;
|
|
1431
1467
|
} | undefined;
|
|
1432
1468
|
}>>;
|
|
1433
1469
|
}, "strip", z.ZodTypeAny, {
|
|
1470
|
+
mcp: {
|
|
1471
|
+
servers: Record<string, {
|
|
1472
|
+
type: "stdio" | "sse";
|
|
1473
|
+
url?: string | undefined;
|
|
1474
|
+
command?: string | undefined;
|
|
1475
|
+
args?: string[] | undefined;
|
|
1476
|
+
enabled?: boolean | undefined;
|
|
1477
|
+
timeout?: number | undefined;
|
|
1478
|
+
env?: Record<string, string> | undefined;
|
|
1479
|
+
headers?: Record<string, string> | undefined;
|
|
1480
|
+
enabledByDefault?: boolean | undefined;
|
|
1481
|
+
connectTimeout?: number | undefined;
|
|
1482
|
+
}>;
|
|
1483
|
+
};
|
|
1484
|
+
summarization: {
|
|
1485
|
+
provider: string;
|
|
1486
|
+
model: string;
|
|
1487
|
+
temperature: number;
|
|
1488
|
+
promptFile: string;
|
|
1489
|
+
};
|
|
1434
1490
|
server: {
|
|
1435
1491
|
host: string;
|
|
1436
1492
|
port: number;
|
|
@@ -1467,16 +1523,16 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1467
1523
|
timeout: number;
|
|
1468
1524
|
};
|
|
1469
1525
|
core: {
|
|
1470
|
-
port: number;
|
|
1471
1526
|
apiKey: string;
|
|
1527
|
+
port: number;
|
|
1472
1528
|
};
|
|
1473
1529
|
runner: {
|
|
1474
1530
|
port: number;
|
|
1475
1531
|
backendUrl: string;
|
|
1476
1532
|
enginePorts: {
|
|
1533
|
+
synth: number;
|
|
1477
1534
|
opencode: number;
|
|
1478
1535
|
cline: number;
|
|
1479
|
-
synth: number;
|
|
1480
1536
|
};
|
|
1481
1537
|
proxyPort: number;
|
|
1482
1538
|
};
|
|
@@ -1504,28 +1560,12 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1504
1560
|
context: {
|
|
1505
1561
|
enabledFiles: string[];
|
|
1506
1562
|
};
|
|
1507
|
-
summarization: {
|
|
1508
|
-
provider: string;
|
|
1509
|
-
model: string;
|
|
1510
|
-
temperature: number;
|
|
1511
|
-
promptFile: string;
|
|
1512
|
-
};
|
|
1513
|
-
mcp: {
|
|
1514
|
-
servers: Record<string, {
|
|
1515
|
-
type: "stdio" | "sse";
|
|
1516
|
-
enabled?: boolean | undefined;
|
|
1517
|
-
timeout?: number | undefined;
|
|
1518
|
-
url?: string | undefined;
|
|
1519
|
-
command?: string | undefined;
|
|
1520
|
-
args?: string[] | undefined;
|
|
1521
|
-
env?: Record<string, string> | undefined;
|
|
1522
|
-
headers?: Record<string, string> | undefined;
|
|
1523
|
-
enabledByDefault?: boolean | undefined;
|
|
1524
|
-
connectTimeout?: number | undefined;
|
|
1525
|
-
}>;
|
|
1526
|
-
};
|
|
1527
1563
|
router: {
|
|
1528
|
-
|
|
1564
|
+
subagent: {
|
|
1565
|
+
provider: string;
|
|
1566
|
+
model: string;
|
|
1567
|
+
enabled: boolean;
|
|
1568
|
+
};
|
|
1529
1569
|
content: {
|
|
1530
1570
|
coding: {
|
|
1531
1571
|
provider: string;
|
|
@@ -1548,6 +1588,7 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1548
1588
|
expensiveModel: string;
|
|
1549
1589
|
maxCheapTokens: number;
|
|
1550
1590
|
};
|
|
1591
|
+
enabled: boolean;
|
|
1551
1592
|
strategy: "auto" | "content" | "cost" | "content+cost";
|
|
1552
1593
|
escalation: {
|
|
1553
1594
|
enabled: boolean;
|
|
@@ -1557,11 +1598,6 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1557
1598
|
fallbackModel: string;
|
|
1558
1599
|
checks: ("min_length" | "constraint" | "self_check")[];
|
|
1559
1600
|
};
|
|
1560
|
-
subagent: {
|
|
1561
|
-
enabled: boolean;
|
|
1562
|
-
provider: string;
|
|
1563
|
-
model: string;
|
|
1564
|
-
};
|
|
1565
1601
|
};
|
|
1566
1602
|
microFirst: {
|
|
1567
1603
|
enabled: boolean;
|
|
@@ -1594,12 +1630,35 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1594
1630
|
};
|
|
1595
1631
|
security: {
|
|
1596
1632
|
promptInjection: {
|
|
1633
|
+
mode: "flag" | "sanitize" | "block";
|
|
1597
1634
|
enabled: boolean;
|
|
1598
1635
|
wrapContent: boolean;
|
|
1599
|
-
|
|
1636
|
+
};
|
|
1637
|
+
protectedPaths: {
|
|
1638
|
+
enabled: boolean;
|
|
1600
1639
|
};
|
|
1601
1640
|
};
|
|
1602
1641
|
}, {
|
|
1642
|
+
mcp?: {
|
|
1643
|
+
servers?: Record<string, {
|
|
1644
|
+
type: "stdio" | "sse";
|
|
1645
|
+
url?: string | undefined;
|
|
1646
|
+
command?: string | undefined;
|
|
1647
|
+
args?: string[] | undefined;
|
|
1648
|
+
enabled?: boolean | undefined;
|
|
1649
|
+
timeout?: number | undefined;
|
|
1650
|
+
env?: Record<string, string> | undefined;
|
|
1651
|
+
headers?: Record<string, string> | undefined;
|
|
1652
|
+
enabledByDefault?: boolean | undefined;
|
|
1653
|
+
connectTimeout?: number | undefined;
|
|
1654
|
+
}> | undefined;
|
|
1655
|
+
} | undefined;
|
|
1656
|
+
summarization?: {
|
|
1657
|
+
provider?: string | undefined;
|
|
1658
|
+
model?: string | undefined;
|
|
1659
|
+
temperature?: number | undefined;
|
|
1660
|
+
promptFile?: string | undefined;
|
|
1661
|
+
} | undefined;
|
|
1603
1662
|
server?: {
|
|
1604
1663
|
host?: string | undefined;
|
|
1605
1664
|
port?: number | undefined;
|
|
@@ -1612,8 +1671,8 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1612
1671
|
defaultWorkspace?: string | undefined;
|
|
1613
1672
|
} | undefined;
|
|
1614
1673
|
auth?: {
|
|
1615
|
-
debugMode?: boolean | undefined;
|
|
1616
1674
|
apiKey?: string | undefined;
|
|
1675
|
+
debugMode?: boolean | undefined;
|
|
1617
1676
|
testUsers?: {
|
|
1618
1677
|
apiKey: string;
|
|
1619
1678
|
username: string;
|
|
@@ -1636,16 +1695,16 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1636
1695
|
timeout?: number | undefined;
|
|
1637
1696
|
} | undefined;
|
|
1638
1697
|
core?: {
|
|
1639
|
-
port?: number | undefined;
|
|
1640
1698
|
apiKey?: string | undefined;
|
|
1699
|
+
port?: number | undefined;
|
|
1641
1700
|
} | undefined;
|
|
1642
1701
|
runner?: {
|
|
1643
1702
|
port?: number | undefined;
|
|
1644
1703
|
backendUrl?: string | undefined;
|
|
1645
1704
|
enginePorts?: {
|
|
1705
|
+
synth?: number | undefined;
|
|
1646
1706
|
opencode?: number | undefined;
|
|
1647
1707
|
cline?: number | undefined;
|
|
1648
|
-
synth?: number | undefined;
|
|
1649
1708
|
} | undefined;
|
|
1650
1709
|
proxyPort?: number | undefined;
|
|
1651
1710
|
} | undefined;
|
|
@@ -1673,28 +1732,12 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1673
1732
|
context?: {
|
|
1674
1733
|
enabledFiles?: string[] | undefined;
|
|
1675
1734
|
} | undefined;
|
|
1676
|
-
summarization?: {
|
|
1677
|
-
provider?: string | undefined;
|
|
1678
|
-
model?: string | undefined;
|
|
1679
|
-
temperature?: number | undefined;
|
|
1680
|
-
promptFile?: string | undefined;
|
|
1681
|
-
} | undefined;
|
|
1682
|
-
mcp?: {
|
|
1683
|
-
servers?: Record<string, {
|
|
1684
|
-
type: "stdio" | "sse";
|
|
1685
|
-
enabled?: boolean | undefined;
|
|
1686
|
-
timeout?: number | undefined;
|
|
1687
|
-
url?: string | undefined;
|
|
1688
|
-
command?: string | undefined;
|
|
1689
|
-
args?: string[] | undefined;
|
|
1690
|
-
env?: Record<string, string> | undefined;
|
|
1691
|
-
headers?: Record<string, string> | undefined;
|
|
1692
|
-
enabledByDefault?: boolean | undefined;
|
|
1693
|
-
connectTimeout?: number | undefined;
|
|
1694
|
-
}> | undefined;
|
|
1695
|
-
} | undefined;
|
|
1696
1735
|
router?: {
|
|
1697
|
-
|
|
1736
|
+
subagent?: {
|
|
1737
|
+
provider?: string | undefined;
|
|
1738
|
+
model?: string | undefined;
|
|
1739
|
+
enabled?: boolean | undefined;
|
|
1740
|
+
} | undefined;
|
|
1698
1741
|
content?: {
|
|
1699
1742
|
coding?: {
|
|
1700
1743
|
provider?: string | undefined;
|
|
@@ -1717,6 +1760,7 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1717
1760
|
expensiveModel?: string | undefined;
|
|
1718
1761
|
maxCheapTokens?: number | undefined;
|
|
1719
1762
|
} | undefined;
|
|
1763
|
+
enabled?: boolean | undefined;
|
|
1720
1764
|
strategy?: "auto" | "content" | "cost" | "content+cost" | undefined;
|
|
1721
1765
|
escalation?: {
|
|
1722
1766
|
enabled?: boolean | undefined;
|
|
@@ -1726,11 +1770,6 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1726
1770
|
fallbackModel?: string | undefined;
|
|
1727
1771
|
checks?: ("min_length" | "constraint" | "self_check")[] | undefined;
|
|
1728
1772
|
} | undefined;
|
|
1729
|
-
subagent?: {
|
|
1730
|
-
enabled?: boolean | undefined;
|
|
1731
|
-
provider?: string | undefined;
|
|
1732
|
-
model?: string | undefined;
|
|
1733
|
-
} | undefined;
|
|
1734
1773
|
} | undefined;
|
|
1735
1774
|
microFirst?: {
|
|
1736
1775
|
enabled?: boolean | undefined;
|
|
@@ -1763,9 +1802,12 @@ export declare const synthConfigSchema: z.ZodObject<{
|
|
|
1763
1802
|
} | undefined;
|
|
1764
1803
|
security?: {
|
|
1765
1804
|
promptInjection?: {
|
|
1805
|
+
mode?: "flag" | "sanitize" | "block" | undefined;
|
|
1766
1806
|
enabled?: boolean | undefined;
|
|
1767
1807
|
wrapContent?: boolean | undefined;
|
|
1768
|
-
|
|
1808
|
+
} | undefined;
|
|
1809
|
+
protectedPaths?: {
|
|
1810
|
+
enabled?: boolean | undefined;
|
|
1769
1811
|
} | undefined;
|
|
1770
1812
|
} | undefined;
|
|
1771
1813
|
}>;
|
|
@@ -1793,6 +1835,7 @@ export type MicroFirstConfig = z.infer<typeof microFirstConfigSchema>;
|
|
|
1793
1835
|
export type SynthConfig = z.infer<typeof synthConfigSchema>;
|
|
1794
1836
|
export type PermissionConfig = z.infer<typeof permissionConfigSchema>;
|
|
1795
1837
|
export type PromptInjectionConfig = z.infer<typeof promptInjectionConfigSchema>;
|
|
1838
|
+
export type ProtectedPathsConfig = z.infer<typeof protectedPathsConfigSchema>;
|
|
1796
1839
|
export type SecurityConfig = z.infer<typeof securityConfigSchema>;
|
|
1797
1840
|
export type LLMGatewayRateLimitConfig = z.infer<typeof llmGatewayRateLimitConfigSchema>;
|
|
1798
1841
|
export type LLMGatewayAuditConfig = z.infer<typeof llmGatewayAuditConfigSchema>;
|