airlock-bot 0.2.35 → 0.2.37
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/README.md +31 -1
- package/dist/audit/api.d.ts +2 -0
- package/dist/audit/api.d.ts.map +1 -1
- package/dist/audit/api.js +3 -13
- package/dist/audit/api.js.map +1 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +41 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/config/profiles.d.ts +3 -6
- package/dist/config/profiles.d.ts.map +1 -1
- package/dist/config/profiles.js +52 -19
- package/dist/config/profiles.js.map +1 -1
- package/dist/config/schema.d.ts +368 -8
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +35 -0
- package/dist/config/schema.js.map +1 -1
- package/dist/configure-web/cli.d.ts +41 -2
- package/dist/configure-web/cli.d.ts.map +1 -1
- package/dist/configure-web/cli.js +1283 -55
- package/dist/configure-web/cli.js.map +1 -1
- package/dist/gateway.d.ts +7 -1
- package/dist/gateway.d.ts.map +1 -1
- package/dist/gateway.js +81 -26
- package/dist/gateway.js.map +1 -1
- package/dist/hitl/api.d.ts +2 -0
- package/dist/hitl/api.d.ts.map +1 -1
- package/dist/hitl/api.js +3 -13
- package/dist/hitl/api.js.map +1 -1
- package/dist/hitl/approval-dashboard.d.ts +19 -0
- package/dist/hitl/approval-dashboard.d.ts.map +1 -0
- package/dist/hitl/approval-dashboard.js +148 -0
- package/dist/hitl/approval-dashboard.js.map +1 -0
- package/dist/hitl/provider-factory.js +1 -1
- package/dist/hitl/provider-factory.js.map +1 -1
- package/dist/hitl/providers/dashboard.d.ts +4 -5
- package/dist/hitl/providers/dashboard.d.ts.map +1 -1
- package/dist/hitl/providers/dashboard.js +29 -469
- package/dist/hitl/providers/dashboard.js.map +1 -1
- package/dist/hook/api.d.ts +2 -0
- package/dist/hook/api.d.ts.map +1 -1
- package/dist/hook/api.js +3 -13
- package/dist/hook/api.js.map +1 -1
- package/dist/index.js +29 -4
- package/dist/index.js.map +1 -1
- package/dist/middleware/chain-builder.d.ts +1 -1
- package/dist/middleware/chain-builder.d.ts.map +1 -1
- package/dist/middleware/chain-builder.js +4 -2
- package/dist/middleware/chain-builder.js.map +1 -1
- package/dist/middleware/core/arg-policy.d.ts +12 -0
- package/dist/middleware/core/arg-policy.d.ts.map +1 -0
- package/dist/middleware/core/arg-policy.js +91 -0
- package/dist/middleware/core/arg-policy.js.map +1 -0
- package/dist/security/request.d.ts +14 -0
- package/dist/security/request.d.ts.map +1 -0
- package/dist/security/request.js +47 -0
- package/dist/security/request.js.map +1 -0
- package/dist/tools/api.d.ts +2 -0
- package/dist/tools/api.d.ts.map +1 -1
- package/dist/tools/api.js +3 -13
- package/dist/tools/api.js.map +1 -1
- package/dist/transport/http-server.d.ts +2 -0
- package/dist/transport/http-server.d.ts.map +1 -1
- package/dist/transport/http-server.js +9 -22
- package/dist/transport/http-server.js.map +1 -1
- package/dist/transport/sse-server.d.ts +2 -0
- package/dist/transport/sse-server.d.ts.map +1 -1
- package/dist/transport/sse-server.js +9 -26
- package/dist/transport/sse-server.js.map +1 -1
- package/examples/docker-compose.yaml +63 -0
- package/examples/docker-gateway.yaml +61 -0
- package/examples/gateway.yaml +7 -0
- package/examples/profiles.yaml +4 -2
- package/package.json +1 -1
- package/schema.json +79 -0
package/dist/config/schema.d.ts
CHANGED
|
@@ -365,6 +365,50 @@ export declare const SandboxConfig: z.ZodObject<{
|
|
|
365
365
|
}> | undefined;
|
|
366
366
|
}>;
|
|
367
367
|
export type SandboxConfig = z.infer<typeof SandboxConfig>;
|
|
368
|
+
export declare const ToolArgConstraintConfig: z.ZodEffects<z.ZodObject<{
|
|
369
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
370
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
371
|
+
label: z.ZodOptional<z.ZodString>;
|
|
372
|
+
}, "strict", z.ZodTypeAny, {
|
|
373
|
+
allow?: unknown[] | undefined;
|
|
374
|
+
equals?: unknown;
|
|
375
|
+
label?: string | undefined;
|
|
376
|
+
}, {
|
|
377
|
+
allow?: unknown[] | undefined;
|
|
378
|
+
equals?: unknown;
|
|
379
|
+
label?: string | undefined;
|
|
380
|
+
}>, {
|
|
381
|
+
allow?: unknown[] | undefined;
|
|
382
|
+
equals?: unknown;
|
|
383
|
+
label?: string | undefined;
|
|
384
|
+
}, {
|
|
385
|
+
allow?: unknown[] | undefined;
|
|
386
|
+
equals?: unknown;
|
|
387
|
+
label?: string | undefined;
|
|
388
|
+
}>;
|
|
389
|
+
export type ToolArgConstraintConfig = z.infer<typeof ToolArgConstraintConfig>;
|
|
390
|
+
export declare const ToolArgPolicyConfig: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
391
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
392
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
393
|
+
label: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, "strict", z.ZodTypeAny, {
|
|
395
|
+
allow?: unknown[] | undefined;
|
|
396
|
+
equals?: unknown;
|
|
397
|
+
label?: string | undefined;
|
|
398
|
+
}, {
|
|
399
|
+
allow?: unknown[] | undefined;
|
|
400
|
+
equals?: unknown;
|
|
401
|
+
label?: string | undefined;
|
|
402
|
+
}>, {
|
|
403
|
+
allow?: unknown[] | undefined;
|
|
404
|
+
equals?: unknown;
|
|
405
|
+
label?: string | undefined;
|
|
406
|
+
}, {
|
|
407
|
+
allow?: unknown[] | undefined;
|
|
408
|
+
equals?: unknown;
|
|
409
|
+
label?: string | undefined;
|
|
410
|
+
}>>>;
|
|
411
|
+
export type ToolArgPolicyConfig = z.infer<typeof ToolArgPolicyConfig>;
|
|
368
412
|
export declare const ToolOverride: z.ZodObject<{
|
|
369
413
|
description: z.ZodOptional<z.ZodString>;
|
|
370
414
|
alias_of: z.ZodOptional<z.ZodString>;
|
|
@@ -419,9 +463,35 @@ export declare const ToolOverride: z.ZodObject<{
|
|
|
419
463
|
denied_domains?: string[] | undefined;
|
|
420
464
|
} | undefined;
|
|
421
465
|
}>>;
|
|
466
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
467
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
468
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
469
|
+
label: z.ZodOptional<z.ZodString>;
|
|
470
|
+
}, "strict", z.ZodTypeAny, {
|
|
471
|
+
allow?: unknown[] | undefined;
|
|
472
|
+
equals?: unknown;
|
|
473
|
+
label?: string | undefined;
|
|
474
|
+
}, {
|
|
475
|
+
allow?: unknown[] | undefined;
|
|
476
|
+
equals?: unknown;
|
|
477
|
+
label?: string | undefined;
|
|
478
|
+
}>, {
|
|
479
|
+
allow?: unknown[] | undefined;
|
|
480
|
+
equals?: unknown;
|
|
481
|
+
label?: string | undefined;
|
|
482
|
+
}, {
|
|
483
|
+
allow?: unknown[] | undefined;
|
|
484
|
+
equals?: unknown;
|
|
485
|
+
label?: string | undefined;
|
|
486
|
+
}>>>;
|
|
422
487
|
}, "strip", z.ZodTypeAny, {
|
|
423
488
|
sandbox_presets: string[];
|
|
424
489
|
description?: string | undefined;
|
|
490
|
+
args?: Record<string, {
|
|
491
|
+
allow?: unknown[] | undefined;
|
|
492
|
+
equals?: unknown;
|
|
493
|
+
label?: string | undefined;
|
|
494
|
+
}> | undefined;
|
|
425
495
|
alias_of?: string | undefined;
|
|
426
496
|
sandbox?: {
|
|
427
497
|
filesystem?: {
|
|
@@ -437,6 +507,11 @@ export declare const ToolOverride: z.ZodObject<{
|
|
|
437
507
|
} | undefined;
|
|
438
508
|
}, {
|
|
439
509
|
description?: string | undefined;
|
|
510
|
+
args?: Record<string, {
|
|
511
|
+
allow?: unknown[] | undefined;
|
|
512
|
+
equals?: unknown;
|
|
513
|
+
label?: string | undefined;
|
|
514
|
+
}> | undefined;
|
|
440
515
|
alias_of?: string | undefined;
|
|
441
516
|
sandbox_presets?: string | string[] | undefined;
|
|
442
517
|
sandbox?: {
|
|
@@ -617,9 +692,35 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
617
692
|
denied_domains?: string[] | undefined;
|
|
618
693
|
} | undefined;
|
|
619
694
|
}>>;
|
|
695
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
696
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
697
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
698
|
+
label: z.ZodOptional<z.ZodString>;
|
|
699
|
+
}, "strict", z.ZodTypeAny, {
|
|
700
|
+
allow?: unknown[] | undefined;
|
|
701
|
+
equals?: unknown;
|
|
702
|
+
label?: string | undefined;
|
|
703
|
+
}, {
|
|
704
|
+
allow?: unknown[] | undefined;
|
|
705
|
+
equals?: unknown;
|
|
706
|
+
label?: string | undefined;
|
|
707
|
+
}>, {
|
|
708
|
+
allow?: unknown[] | undefined;
|
|
709
|
+
equals?: unknown;
|
|
710
|
+
label?: string | undefined;
|
|
711
|
+
}, {
|
|
712
|
+
allow?: unknown[] | undefined;
|
|
713
|
+
equals?: unknown;
|
|
714
|
+
label?: string | undefined;
|
|
715
|
+
}>>>;
|
|
620
716
|
}, "strip", z.ZodTypeAny, {
|
|
621
717
|
sandbox_presets: string[];
|
|
622
718
|
description?: string | undefined;
|
|
719
|
+
args?: Record<string, {
|
|
720
|
+
allow?: unknown[] | undefined;
|
|
721
|
+
equals?: unknown;
|
|
722
|
+
label?: string | undefined;
|
|
723
|
+
}> | undefined;
|
|
623
724
|
alias_of?: string | undefined;
|
|
624
725
|
sandbox?: {
|
|
625
726
|
filesystem?: {
|
|
@@ -635,6 +736,11 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
635
736
|
} | undefined;
|
|
636
737
|
}, {
|
|
637
738
|
description?: string | undefined;
|
|
739
|
+
args?: Record<string, {
|
|
740
|
+
allow?: unknown[] | undefined;
|
|
741
|
+
equals?: unknown;
|
|
742
|
+
label?: string | undefined;
|
|
743
|
+
}> | undefined;
|
|
638
744
|
alias_of?: string | undefined;
|
|
639
745
|
sandbox_presets?: string | string[] | undefined;
|
|
640
746
|
sandbox?: {
|
|
@@ -650,6 +756,27 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
650
756
|
} | undefined;
|
|
651
757
|
} | undefined;
|
|
652
758
|
}>>>;
|
|
759
|
+
arg_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
760
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
761
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
762
|
+
label: z.ZodOptional<z.ZodString>;
|
|
763
|
+
}, "strict", z.ZodTypeAny, {
|
|
764
|
+
allow?: unknown[] | undefined;
|
|
765
|
+
equals?: unknown;
|
|
766
|
+
label?: string | undefined;
|
|
767
|
+
}, {
|
|
768
|
+
allow?: unknown[] | undefined;
|
|
769
|
+
equals?: unknown;
|
|
770
|
+
label?: string | undefined;
|
|
771
|
+
}>, {
|
|
772
|
+
allow?: unknown[] | undefined;
|
|
773
|
+
equals?: unknown;
|
|
774
|
+
label?: string | undefined;
|
|
775
|
+
}, {
|
|
776
|
+
allow?: unknown[] | undefined;
|
|
777
|
+
equals?: unknown;
|
|
778
|
+
label?: string | undefined;
|
|
779
|
+
}>>>>;
|
|
653
780
|
exec: z.ZodDefault<z.ZodObject<{
|
|
654
781
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
655
782
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -867,6 +994,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
867
994
|
max_response_bytes: number;
|
|
868
995
|
timeout_ms: number;
|
|
869
996
|
};
|
|
997
|
+
allow: string[];
|
|
870
998
|
sandbox: {
|
|
871
999
|
enabled: boolean;
|
|
872
1000
|
filesystem: {
|
|
@@ -893,7 +1021,6 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
893
1021
|
} | undefined;
|
|
894
1022
|
}>;
|
|
895
1023
|
};
|
|
896
|
-
allow: string[];
|
|
897
1024
|
ask: string[];
|
|
898
1025
|
deny: string[];
|
|
899
1026
|
extends: string[];
|
|
@@ -904,6 +1031,11 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
904
1031
|
tool_overrides: Record<string, {
|
|
905
1032
|
sandbox_presets: string[];
|
|
906
1033
|
description?: string | undefined;
|
|
1034
|
+
args?: Record<string, {
|
|
1035
|
+
allow?: unknown[] | undefined;
|
|
1036
|
+
equals?: unknown;
|
|
1037
|
+
label?: string | undefined;
|
|
1038
|
+
}> | undefined;
|
|
907
1039
|
alias_of?: string | undefined;
|
|
908
1040
|
sandbox?: {
|
|
909
1041
|
filesystem?: {
|
|
@@ -926,6 +1058,11 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
926
1058
|
default_timeout_ms: number;
|
|
927
1059
|
};
|
|
928
1060
|
token?: string | undefined;
|
|
1061
|
+
arg_policy?: Record<string, Record<string, {
|
|
1062
|
+
allow?: unknown[] | undefined;
|
|
1063
|
+
equals?: unknown;
|
|
1064
|
+
label?: string | undefined;
|
|
1065
|
+
}>> | undefined;
|
|
929
1066
|
middleware?: {
|
|
930
1067
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
931
1068
|
enabled: boolean;
|
|
@@ -949,6 +1086,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
949
1086
|
max_response_bytes?: number | undefined;
|
|
950
1087
|
timeout_ms?: number | undefined;
|
|
951
1088
|
} | undefined;
|
|
1089
|
+
allow?: string[] | undefined;
|
|
952
1090
|
sandbox?: {
|
|
953
1091
|
enabled?: boolean | undefined;
|
|
954
1092
|
filesystem?: {
|
|
@@ -975,7 +1113,6 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
975
1113
|
} | undefined;
|
|
976
1114
|
}> | undefined;
|
|
977
1115
|
} | undefined;
|
|
978
|
-
allow?: string[] | undefined;
|
|
979
1116
|
ask?: string[] | undefined;
|
|
980
1117
|
deny?: string[] | undefined;
|
|
981
1118
|
token?: string | undefined;
|
|
@@ -986,6 +1123,11 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
986
1123
|
}[] | undefined;
|
|
987
1124
|
tool_overrides?: Record<string, {
|
|
988
1125
|
description?: string | undefined;
|
|
1126
|
+
args?: Record<string, {
|
|
1127
|
+
allow?: unknown[] | undefined;
|
|
1128
|
+
equals?: unknown;
|
|
1129
|
+
label?: string | undefined;
|
|
1130
|
+
}> | undefined;
|
|
989
1131
|
alias_of?: string | undefined;
|
|
990
1132
|
sandbox_presets?: string | string[] | undefined;
|
|
991
1133
|
sandbox?: {
|
|
@@ -1001,6 +1143,11 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
1001
1143
|
} | undefined;
|
|
1002
1144
|
} | undefined;
|
|
1003
1145
|
}> | undefined;
|
|
1146
|
+
arg_policy?: Record<string, Record<string, {
|
|
1147
|
+
allow?: unknown[] | undefined;
|
|
1148
|
+
equals?: unknown;
|
|
1149
|
+
label?: string | undefined;
|
|
1150
|
+
}>> | undefined;
|
|
1004
1151
|
exec?: {
|
|
1005
1152
|
env?: Record<string, string> | undefined;
|
|
1006
1153
|
allow?: string[] | undefined;
|
|
@@ -1028,6 +1175,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
1028
1175
|
}>;
|
|
1029
1176
|
export type AgentConfig = z.infer<typeof AgentConfig>;
|
|
1030
1177
|
export declare const ProfileConfig: z.ZodObject<{
|
|
1178
|
+
extends: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1031
1179
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1032
1180
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1033
1181
|
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1035,10 +1183,12 @@ export declare const ProfileConfig: z.ZodObject<{
|
|
|
1035
1183
|
allow: string[];
|
|
1036
1184
|
ask: string[];
|
|
1037
1185
|
deny: string[];
|
|
1186
|
+
extends: string[];
|
|
1038
1187
|
}, {
|
|
1039
1188
|
allow?: string[] | undefined;
|
|
1040
1189
|
ask?: string[] | undefined;
|
|
1041
1190
|
deny?: string[] | undefined;
|
|
1191
|
+
extends?: string[] | undefined;
|
|
1042
1192
|
}>;
|
|
1043
1193
|
export type ProfileConfig = z.infer<typeof ProfileConfig>;
|
|
1044
1194
|
export declare const ApprovalProviderConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -1106,13 +1256,16 @@ export declare const ApprovalProviderConfig: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1106
1256
|
sound?: string | undefined;
|
|
1107
1257
|
}>, z.ZodObject<{
|
|
1108
1258
|
type: z.ZodLiteral<"dashboard">;
|
|
1259
|
+
host: z.ZodDefault<z.ZodString>;
|
|
1109
1260
|
port: z.ZodDefault<z.ZodNumber>;
|
|
1110
1261
|
}, "strip", z.ZodTypeAny, {
|
|
1111
1262
|
type: "dashboard";
|
|
1112
1263
|
port: number;
|
|
1264
|
+
host: string;
|
|
1113
1265
|
}, {
|
|
1114
1266
|
type: "dashboard";
|
|
1115
1267
|
port?: number | undefined;
|
|
1268
|
+
host?: string | undefined;
|
|
1116
1269
|
}>, z.ZodObject<{
|
|
1117
1270
|
type: z.ZodLiteral<"stdio">;
|
|
1118
1271
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1188,13 +1341,16 @@ export declare const ApprovalsConfig: z.ZodObject<{
|
|
|
1188
1341
|
sound?: string | undefined;
|
|
1189
1342
|
}>, z.ZodObject<{
|
|
1190
1343
|
type: z.ZodLiteral<"dashboard">;
|
|
1344
|
+
host: z.ZodDefault<z.ZodString>;
|
|
1191
1345
|
port: z.ZodDefault<z.ZodNumber>;
|
|
1192
1346
|
}, "strip", z.ZodTypeAny, {
|
|
1193
1347
|
type: "dashboard";
|
|
1194
1348
|
port: number;
|
|
1349
|
+
host: string;
|
|
1195
1350
|
}, {
|
|
1196
1351
|
type: "dashboard";
|
|
1197
1352
|
port?: number | undefined;
|
|
1353
|
+
host?: string | undefined;
|
|
1198
1354
|
}>, z.ZodObject<{
|
|
1199
1355
|
type: z.ZodLiteral<"stdio">;
|
|
1200
1356
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1266,13 +1422,16 @@ export declare const ApprovalsConfig: z.ZodObject<{
|
|
|
1266
1422
|
sound?: string | undefined;
|
|
1267
1423
|
}>, z.ZodObject<{
|
|
1268
1424
|
type: z.ZodLiteral<"dashboard">;
|
|
1425
|
+
host: z.ZodDefault<z.ZodString>;
|
|
1269
1426
|
port: z.ZodDefault<z.ZodNumber>;
|
|
1270
1427
|
}, "strip", z.ZodTypeAny, {
|
|
1271
1428
|
type: "dashboard";
|
|
1272
1429
|
port: number;
|
|
1430
|
+
host: string;
|
|
1273
1431
|
}, {
|
|
1274
1432
|
type: "dashboard";
|
|
1275
1433
|
port?: number | undefined;
|
|
1434
|
+
host?: string | undefined;
|
|
1276
1435
|
}>, z.ZodObject<{
|
|
1277
1436
|
type: z.ZodLiteral<"stdio">;
|
|
1278
1437
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1308,6 +1467,7 @@ export declare const ApprovalsConfig: z.ZodObject<{
|
|
|
1308
1467
|
} | {
|
|
1309
1468
|
type: "dashboard";
|
|
1310
1469
|
port: number;
|
|
1470
|
+
host: string;
|
|
1311
1471
|
} | {
|
|
1312
1472
|
type: "stdio";
|
|
1313
1473
|
} | ({
|
|
@@ -1334,6 +1494,7 @@ export declare const ApprovalsConfig: z.ZodObject<{
|
|
|
1334
1494
|
} | {
|
|
1335
1495
|
type: "dashboard";
|
|
1336
1496
|
port: number;
|
|
1497
|
+
host: string;
|
|
1337
1498
|
} | {
|
|
1338
1499
|
type: "stdio";
|
|
1339
1500
|
})[];
|
|
@@ -1364,6 +1525,7 @@ export declare const ApprovalsConfig: z.ZodObject<{
|
|
|
1364
1525
|
} | {
|
|
1365
1526
|
type: "dashboard";
|
|
1366
1527
|
port?: number | undefined;
|
|
1528
|
+
host?: string | undefined;
|
|
1367
1529
|
} | {
|
|
1368
1530
|
type: "stdio";
|
|
1369
1531
|
} | ({
|
|
@@ -1390,6 +1552,7 @@ export declare const ApprovalsConfig: z.ZodObject<{
|
|
|
1390
1552
|
} | {
|
|
1391
1553
|
type: "dashboard";
|
|
1392
1554
|
port?: number | undefined;
|
|
1555
|
+
host?: string | undefined;
|
|
1393
1556
|
} | {
|
|
1394
1557
|
type: "stdio";
|
|
1395
1558
|
})[] | undefined;
|
|
@@ -1426,14 +1589,32 @@ export declare const ServerConfig: z.ZodObject<{
|
|
|
1426
1589
|
port: z.ZodDefault<z.ZodNumber>;
|
|
1427
1590
|
host: z.ZodDefault<z.ZodString>;
|
|
1428
1591
|
api_secret: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1592
|
+
auth_required: z.ZodDefault<z.ZodBoolean>;
|
|
1593
|
+
require_agent_tokens: z.ZodDefault<z.ZodBoolean>;
|
|
1594
|
+
allowed_origins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1595
|
+
expose_management_api: z.ZodDefault<z.ZodBoolean>;
|
|
1596
|
+
expose_tools_api: z.ZodDefault<z.ZodBoolean>;
|
|
1597
|
+
expose_hook_api: z.ZodDefault<z.ZodBoolean>;
|
|
1429
1598
|
}, "strip", z.ZodTypeAny, {
|
|
1430
1599
|
port: number;
|
|
1431
1600
|
host: string;
|
|
1601
|
+
auth_required: boolean;
|
|
1602
|
+
require_agent_tokens: boolean;
|
|
1603
|
+
allowed_origins: string[];
|
|
1604
|
+
expose_management_api: boolean;
|
|
1605
|
+
expose_tools_api: boolean;
|
|
1606
|
+
expose_hook_api: boolean;
|
|
1432
1607
|
api_secret?: string | undefined;
|
|
1433
1608
|
}, {
|
|
1434
1609
|
port?: number | undefined;
|
|
1435
1610
|
host?: string | undefined;
|
|
1436
1611
|
api_secret?: string | undefined;
|
|
1612
|
+
auth_required?: boolean | undefined;
|
|
1613
|
+
require_agent_tokens?: boolean | undefined;
|
|
1614
|
+
allowed_origins?: string[] | undefined;
|
|
1615
|
+
expose_management_api?: boolean | undefined;
|
|
1616
|
+
expose_tools_api?: boolean | undefined;
|
|
1617
|
+
expose_hook_api?: boolean | undefined;
|
|
1437
1618
|
}>;
|
|
1438
1619
|
export type ServerConfig = z.infer<typeof ServerConfig>;
|
|
1439
1620
|
export declare const CliParamConfig: z.ZodObject<{
|
|
@@ -1823,6 +2004,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1823
2004
|
oauth_callback_url?: string | undefined;
|
|
1824
2005
|
}>]>]>>>;
|
|
1825
2006
|
profiles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2007
|
+
extends: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1826
2008
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1827
2009
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1828
2010
|
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1830,10 +2012,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1830
2012
|
allow: string[];
|
|
1831
2013
|
ask: string[];
|
|
1832
2014
|
deny: string[];
|
|
2015
|
+
extends: string[];
|
|
1833
2016
|
}, {
|
|
1834
2017
|
allow?: string[] | undefined;
|
|
1835
2018
|
ask?: string[] | undefined;
|
|
1836
2019
|
deny?: string[] | undefined;
|
|
2020
|
+
extends?: string[] | undefined;
|
|
1837
2021
|
}>>>;
|
|
1838
2022
|
sandbox_presets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1839
2023
|
filesystem: z.ZodOptional<z.ZodObject<{
|
|
@@ -2113,9 +2297,35 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2113
2297
|
denied_domains?: string[] | undefined;
|
|
2114
2298
|
} | undefined;
|
|
2115
2299
|
}>>;
|
|
2300
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
2301
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
2302
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
2303
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2304
|
+
}, "strict", z.ZodTypeAny, {
|
|
2305
|
+
allow?: unknown[] | undefined;
|
|
2306
|
+
equals?: unknown;
|
|
2307
|
+
label?: string | undefined;
|
|
2308
|
+
}, {
|
|
2309
|
+
allow?: unknown[] | undefined;
|
|
2310
|
+
equals?: unknown;
|
|
2311
|
+
label?: string | undefined;
|
|
2312
|
+
}>, {
|
|
2313
|
+
allow?: unknown[] | undefined;
|
|
2314
|
+
equals?: unknown;
|
|
2315
|
+
label?: string | undefined;
|
|
2316
|
+
}, {
|
|
2317
|
+
allow?: unknown[] | undefined;
|
|
2318
|
+
equals?: unknown;
|
|
2319
|
+
label?: string | undefined;
|
|
2320
|
+
}>>>;
|
|
2116
2321
|
}, "strip", z.ZodTypeAny, {
|
|
2117
2322
|
sandbox_presets: string[];
|
|
2118
2323
|
description?: string | undefined;
|
|
2324
|
+
args?: Record<string, {
|
|
2325
|
+
allow?: unknown[] | undefined;
|
|
2326
|
+
equals?: unknown;
|
|
2327
|
+
label?: string | undefined;
|
|
2328
|
+
}> | undefined;
|
|
2119
2329
|
alias_of?: string | undefined;
|
|
2120
2330
|
sandbox?: {
|
|
2121
2331
|
filesystem?: {
|
|
@@ -2131,6 +2341,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2131
2341
|
} | undefined;
|
|
2132
2342
|
}, {
|
|
2133
2343
|
description?: string | undefined;
|
|
2344
|
+
args?: Record<string, {
|
|
2345
|
+
allow?: unknown[] | undefined;
|
|
2346
|
+
equals?: unknown;
|
|
2347
|
+
label?: string | undefined;
|
|
2348
|
+
}> | undefined;
|
|
2134
2349
|
alias_of?: string | undefined;
|
|
2135
2350
|
sandbox_presets?: string | string[] | undefined;
|
|
2136
2351
|
sandbox?: {
|
|
@@ -2146,6 +2361,27 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2146
2361
|
} | undefined;
|
|
2147
2362
|
} | undefined;
|
|
2148
2363
|
}>>>;
|
|
2364
|
+
arg_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
2365
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
2366
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
2367
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2368
|
+
}, "strict", z.ZodTypeAny, {
|
|
2369
|
+
allow?: unknown[] | undefined;
|
|
2370
|
+
equals?: unknown;
|
|
2371
|
+
label?: string | undefined;
|
|
2372
|
+
}, {
|
|
2373
|
+
allow?: unknown[] | undefined;
|
|
2374
|
+
equals?: unknown;
|
|
2375
|
+
label?: string | undefined;
|
|
2376
|
+
}>, {
|
|
2377
|
+
allow?: unknown[] | undefined;
|
|
2378
|
+
equals?: unknown;
|
|
2379
|
+
label?: string | undefined;
|
|
2380
|
+
}, {
|
|
2381
|
+
allow?: unknown[] | undefined;
|
|
2382
|
+
equals?: unknown;
|
|
2383
|
+
label?: string | undefined;
|
|
2384
|
+
}>>>>;
|
|
2149
2385
|
exec: z.ZodDefault<z.ZodObject<{
|
|
2150
2386
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2151
2387
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2363,6 +2599,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2363
2599
|
max_response_bytes: number;
|
|
2364
2600
|
timeout_ms: number;
|
|
2365
2601
|
};
|
|
2602
|
+
allow: string[];
|
|
2366
2603
|
sandbox: {
|
|
2367
2604
|
enabled: boolean;
|
|
2368
2605
|
filesystem: {
|
|
@@ -2389,7 +2626,6 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2389
2626
|
} | undefined;
|
|
2390
2627
|
}>;
|
|
2391
2628
|
};
|
|
2392
|
-
allow: string[];
|
|
2393
2629
|
ask: string[];
|
|
2394
2630
|
deny: string[];
|
|
2395
2631
|
extends: string[];
|
|
@@ -2400,6 +2636,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2400
2636
|
tool_overrides: Record<string, {
|
|
2401
2637
|
sandbox_presets: string[];
|
|
2402
2638
|
description?: string | undefined;
|
|
2639
|
+
args?: Record<string, {
|
|
2640
|
+
allow?: unknown[] | undefined;
|
|
2641
|
+
equals?: unknown;
|
|
2642
|
+
label?: string | undefined;
|
|
2643
|
+
}> | undefined;
|
|
2403
2644
|
alias_of?: string | undefined;
|
|
2404
2645
|
sandbox?: {
|
|
2405
2646
|
filesystem?: {
|
|
@@ -2422,6 +2663,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2422
2663
|
default_timeout_ms: number;
|
|
2423
2664
|
};
|
|
2424
2665
|
token?: string | undefined;
|
|
2666
|
+
arg_policy?: Record<string, Record<string, {
|
|
2667
|
+
allow?: unknown[] | undefined;
|
|
2668
|
+
equals?: unknown;
|
|
2669
|
+
label?: string | undefined;
|
|
2670
|
+
}>> | undefined;
|
|
2425
2671
|
middleware?: {
|
|
2426
2672
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
2427
2673
|
enabled: boolean;
|
|
@@ -2445,6 +2691,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2445
2691
|
max_response_bytes?: number | undefined;
|
|
2446
2692
|
timeout_ms?: number | undefined;
|
|
2447
2693
|
} | undefined;
|
|
2694
|
+
allow?: string[] | undefined;
|
|
2448
2695
|
sandbox?: {
|
|
2449
2696
|
enabled?: boolean | undefined;
|
|
2450
2697
|
filesystem?: {
|
|
@@ -2471,7 +2718,6 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2471
2718
|
} | undefined;
|
|
2472
2719
|
}> | undefined;
|
|
2473
2720
|
} | undefined;
|
|
2474
|
-
allow?: string[] | undefined;
|
|
2475
2721
|
ask?: string[] | undefined;
|
|
2476
2722
|
deny?: string[] | undefined;
|
|
2477
2723
|
token?: string | undefined;
|
|
@@ -2482,6 +2728,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2482
2728
|
}[] | undefined;
|
|
2483
2729
|
tool_overrides?: Record<string, {
|
|
2484
2730
|
description?: string | undefined;
|
|
2731
|
+
args?: Record<string, {
|
|
2732
|
+
allow?: unknown[] | undefined;
|
|
2733
|
+
equals?: unknown;
|
|
2734
|
+
label?: string | undefined;
|
|
2735
|
+
}> | undefined;
|
|
2485
2736
|
alias_of?: string | undefined;
|
|
2486
2737
|
sandbox_presets?: string | string[] | undefined;
|
|
2487
2738
|
sandbox?: {
|
|
@@ -2497,6 +2748,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2497
2748
|
} | undefined;
|
|
2498
2749
|
} | undefined;
|
|
2499
2750
|
}> | undefined;
|
|
2751
|
+
arg_policy?: Record<string, Record<string, {
|
|
2752
|
+
allow?: unknown[] | undefined;
|
|
2753
|
+
equals?: unknown;
|
|
2754
|
+
label?: string | undefined;
|
|
2755
|
+
}>> | undefined;
|
|
2500
2756
|
exec?: {
|
|
2501
2757
|
env?: Record<string, string> | undefined;
|
|
2502
2758
|
allow?: string[] | undefined;
|
|
@@ -2588,13 +2844,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2588
2844
|
sound?: string | undefined;
|
|
2589
2845
|
}>, z.ZodObject<{
|
|
2590
2846
|
type: z.ZodLiteral<"dashboard">;
|
|
2847
|
+
host: z.ZodDefault<z.ZodString>;
|
|
2591
2848
|
port: z.ZodDefault<z.ZodNumber>;
|
|
2592
2849
|
}, "strip", z.ZodTypeAny, {
|
|
2593
2850
|
type: "dashboard";
|
|
2594
2851
|
port: number;
|
|
2852
|
+
host: string;
|
|
2595
2853
|
}, {
|
|
2596
2854
|
type: "dashboard";
|
|
2597
2855
|
port?: number | undefined;
|
|
2856
|
+
host?: string | undefined;
|
|
2598
2857
|
}>, z.ZodObject<{
|
|
2599
2858
|
type: z.ZodLiteral<"stdio">;
|
|
2600
2859
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2666,13 +2925,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2666
2925
|
sound?: string | undefined;
|
|
2667
2926
|
}>, z.ZodObject<{
|
|
2668
2927
|
type: z.ZodLiteral<"dashboard">;
|
|
2928
|
+
host: z.ZodDefault<z.ZodString>;
|
|
2669
2929
|
port: z.ZodDefault<z.ZodNumber>;
|
|
2670
2930
|
}, "strip", z.ZodTypeAny, {
|
|
2671
2931
|
type: "dashboard";
|
|
2672
2932
|
port: number;
|
|
2933
|
+
host: string;
|
|
2673
2934
|
}, {
|
|
2674
2935
|
type: "dashboard";
|
|
2675
2936
|
port?: number | undefined;
|
|
2937
|
+
host?: string | undefined;
|
|
2676
2938
|
}>, z.ZodObject<{
|
|
2677
2939
|
type: z.ZodLiteral<"stdio">;
|
|
2678
2940
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2708,6 +2970,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2708
2970
|
} | {
|
|
2709
2971
|
type: "dashboard";
|
|
2710
2972
|
port: number;
|
|
2973
|
+
host: string;
|
|
2711
2974
|
} | {
|
|
2712
2975
|
type: "stdio";
|
|
2713
2976
|
} | ({
|
|
@@ -2734,6 +2997,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2734
2997
|
} | {
|
|
2735
2998
|
type: "dashboard";
|
|
2736
2999
|
port: number;
|
|
3000
|
+
host: string;
|
|
2737
3001
|
} | {
|
|
2738
3002
|
type: "stdio";
|
|
2739
3003
|
})[];
|
|
@@ -2764,6 +3028,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2764
3028
|
} | {
|
|
2765
3029
|
type: "dashboard";
|
|
2766
3030
|
port?: number | undefined;
|
|
3031
|
+
host?: string | undefined;
|
|
2767
3032
|
} | {
|
|
2768
3033
|
type: "stdio";
|
|
2769
3034
|
} | ({
|
|
@@ -2790,6 +3055,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2790
3055
|
} | {
|
|
2791
3056
|
type: "dashboard";
|
|
2792
3057
|
port?: number | undefined;
|
|
3058
|
+
host?: string | undefined;
|
|
2793
3059
|
} | {
|
|
2794
3060
|
type: "stdio";
|
|
2795
3061
|
})[] | undefined;
|
|
@@ -2822,14 +3088,32 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2822
3088
|
port: z.ZodDefault<z.ZodNumber>;
|
|
2823
3089
|
host: z.ZodDefault<z.ZodString>;
|
|
2824
3090
|
api_secret: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
3091
|
+
auth_required: z.ZodDefault<z.ZodBoolean>;
|
|
3092
|
+
require_agent_tokens: z.ZodDefault<z.ZodBoolean>;
|
|
3093
|
+
allowed_origins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3094
|
+
expose_management_api: z.ZodDefault<z.ZodBoolean>;
|
|
3095
|
+
expose_tools_api: z.ZodDefault<z.ZodBoolean>;
|
|
3096
|
+
expose_hook_api: z.ZodDefault<z.ZodBoolean>;
|
|
2825
3097
|
}, "strip", z.ZodTypeAny, {
|
|
2826
3098
|
port: number;
|
|
2827
3099
|
host: string;
|
|
3100
|
+
auth_required: boolean;
|
|
3101
|
+
require_agent_tokens: boolean;
|
|
3102
|
+
allowed_origins: string[];
|
|
3103
|
+
expose_management_api: boolean;
|
|
3104
|
+
expose_tools_api: boolean;
|
|
3105
|
+
expose_hook_api: boolean;
|
|
2828
3106
|
api_secret?: string | undefined;
|
|
2829
3107
|
}, {
|
|
2830
3108
|
port?: number | undefined;
|
|
2831
3109
|
host?: string | undefined;
|
|
2832
3110
|
api_secret?: string | undefined;
|
|
3111
|
+
auth_required?: boolean | undefined;
|
|
3112
|
+
require_agent_tokens?: boolean | undefined;
|
|
3113
|
+
allowed_origins?: string[] | undefined;
|
|
3114
|
+
expose_management_api?: boolean | undefined;
|
|
3115
|
+
expose_tools_api?: boolean | undefined;
|
|
3116
|
+
expose_hook_api?: boolean | undefined;
|
|
2833
3117
|
}>>;
|
|
2834
3118
|
}, "strip", z.ZodTypeAny, {
|
|
2835
3119
|
sandbox_presets: Record<string, {
|
|
@@ -2873,6 +3157,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2873
3157
|
allow: string[];
|
|
2874
3158
|
ask: string[];
|
|
2875
3159
|
deny: string[];
|
|
3160
|
+
extends: string[];
|
|
2876
3161
|
}>;
|
|
2877
3162
|
clis: Record<string, {
|
|
2878
3163
|
max_output_bytes: number;
|
|
@@ -2916,6 +3201,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2916
3201
|
max_response_bytes: number;
|
|
2917
3202
|
timeout_ms: number;
|
|
2918
3203
|
};
|
|
3204
|
+
allow: string[];
|
|
2919
3205
|
sandbox: {
|
|
2920
3206
|
enabled: boolean;
|
|
2921
3207
|
filesystem: {
|
|
@@ -2942,7 +3228,6 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2942
3228
|
} | undefined;
|
|
2943
3229
|
}>;
|
|
2944
3230
|
};
|
|
2945
|
-
allow: string[];
|
|
2946
3231
|
ask: string[];
|
|
2947
3232
|
deny: string[];
|
|
2948
3233
|
extends: string[];
|
|
@@ -2953,6 +3238,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2953
3238
|
tool_overrides: Record<string, {
|
|
2954
3239
|
sandbox_presets: string[];
|
|
2955
3240
|
description?: string | undefined;
|
|
3241
|
+
args?: Record<string, {
|
|
3242
|
+
allow?: unknown[] | undefined;
|
|
3243
|
+
equals?: unknown;
|
|
3244
|
+
label?: string | undefined;
|
|
3245
|
+
}> | undefined;
|
|
2956
3246
|
alias_of?: string | undefined;
|
|
2957
3247
|
sandbox?: {
|
|
2958
3248
|
filesystem?: {
|
|
@@ -2975,6 +3265,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2975
3265
|
default_timeout_ms: number;
|
|
2976
3266
|
};
|
|
2977
3267
|
token?: string | undefined;
|
|
3268
|
+
arg_policy?: Record<string, Record<string, {
|
|
3269
|
+
allow?: unknown[] | undefined;
|
|
3270
|
+
equals?: unknown;
|
|
3271
|
+
label?: string | undefined;
|
|
3272
|
+
}>> | undefined;
|
|
2978
3273
|
middleware?: {
|
|
2979
3274
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
2980
3275
|
enabled: boolean;
|
|
@@ -3019,6 +3314,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3019
3314
|
} | {
|
|
3020
3315
|
type: "dashboard";
|
|
3021
3316
|
port: number;
|
|
3317
|
+
host: string;
|
|
3022
3318
|
} | {
|
|
3023
3319
|
type: "stdio";
|
|
3024
3320
|
} | ({
|
|
@@ -3045,6 +3341,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3045
3341
|
} | {
|
|
3046
3342
|
type: "dashboard";
|
|
3047
3343
|
port: number;
|
|
3344
|
+
host: string;
|
|
3048
3345
|
} | {
|
|
3049
3346
|
type: "stdio";
|
|
3050
3347
|
})[];
|
|
@@ -3062,6 +3359,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3062
3359
|
server: {
|
|
3063
3360
|
port: number;
|
|
3064
3361
|
host: string;
|
|
3362
|
+
auth_required: boolean;
|
|
3363
|
+
require_agent_tokens: boolean;
|
|
3364
|
+
allowed_origins: string[];
|
|
3365
|
+
expose_management_api: boolean;
|
|
3366
|
+
expose_tools_api: boolean;
|
|
3367
|
+
expose_hook_api: boolean;
|
|
3065
3368
|
api_secret?: string | undefined;
|
|
3066
3369
|
};
|
|
3067
3370
|
}, {
|
|
@@ -3106,6 +3409,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3106
3409
|
allow?: string[] | undefined;
|
|
3107
3410
|
ask?: string[] | undefined;
|
|
3108
3411
|
deny?: string[] | undefined;
|
|
3412
|
+
extends?: string[] | undefined;
|
|
3109
3413
|
}> | undefined;
|
|
3110
3414
|
clis?: Record<string, {
|
|
3111
3415
|
cwd?: string | undefined;
|
|
@@ -3149,6 +3453,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3149
3453
|
max_response_bytes?: number | undefined;
|
|
3150
3454
|
timeout_ms?: number | undefined;
|
|
3151
3455
|
} | undefined;
|
|
3456
|
+
allow?: string[] | undefined;
|
|
3152
3457
|
sandbox?: {
|
|
3153
3458
|
enabled?: boolean | undefined;
|
|
3154
3459
|
filesystem?: {
|
|
@@ -3175,7 +3480,6 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3175
3480
|
} | undefined;
|
|
3176
3481
|
}> | undefined;
|
|
3177
3482
|
} | undefined;
|
|
3178
|
-
allow?: string[] | undefined;
|
|
3179
3483
|
ask?: string[] | undefined;
|
|
3180
3484
|
deny?: string[] | undefined;
|
|
3181
3485
|
token?: string | undefined;
|
|
@@ -3186,6 +3490,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3186
3490
|
}[] | undefined;
|
|
3187
3491
|
tool_overrides?: Record<string, {
|
|
3188
3492
|
description?: string | undefined;
|
|
3493
|
+
args?: Record<string, {
|
|
3494
|
+
allow?: unknown[] | undefined;
|
|
3495
|
+
equals?: unknown;
|
|
3496
|
+
label?: string | undefined;
|
|
3497
|
+
}> | undefined;
|
|
3189
3498
|
alias_of?: string | undefined;
|
|
3190
3499
|
sandbox_presets?: string | string[] | undefined;
|
|
3191
3500
|
sandbox?: {
|
|
@@ -3201,6 +3510,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3201
3510
|
} | undefined;
|
|
3202
3511
|
} | undefined;
|
|
3203
3512
|
}> | undefined;
|
|
3513
|
+
arg_policy?: Record<string, Record<string, {
|
|
3514
|
+
allow?: unknown[] | undefined;
|
|
3515
|
+
equals?: unknown;
|
|
3516
|
+
label?: string | undefined;
|
|
3517
|
+
}>> | undefined;
|
|
3204
3518
|
exec?: {
|
|
3205
3519
|
env?: Record<string, string> | undefined;
|
|
3206
3520
|
allow?: string[] | undefined;
|
|
@@ -3252,6 +3566,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3252
3566
|
} | {
|
|
3253
3567
|
type: "dashboard";
|
|
3254
3568
|
port?: number | undefined;
|
|
3569
|
+
host?: string | undefined;
|
|
3255
3570
|
} | {
|
|
3256
3571
|
type: "stdio";
|
|
3257
3572
|
} | ({
|
|
@@ -3278,6 +3593,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3278
3593
|
} | {
|
|
3279
3594
|
type: "dashboard";
|
|
3280
3595
|
port?: number | undefined;
|
|
3596
|
+
host?: string | undefined;
|
|
3281
3597
|
} | {
|
|
3282
3598
|
type: "stdio";
|
|
3283
3599
|
})[] | undefined;
|
|
@@ -3296,6 +3612,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3296
3612
|
port?: number | undefined;
|
|
3297
3613
|
host?: string | undefined;
|
|
3298
3614
|
api_secret?: string | undefined;
|
|
3615
|
+
auth_required?: boolean | undefined;
|
|
3616
|
+
require_agent_tokens?: boolean | undefined;
|
|
3617
|
+
allowed_origins?: string[] | undefined;
|
|
3618
|
+
expose_management_api?: boolean | undefined;
|
|
3619
|
+
expose_tools_api?: boolean | undefined;
|
|
3620
|
+
expose_hook_api?: boolean | undefined;
|
|
3299
3621
|
} | undefined;
|
|
3300
3622
|
}>, {
|
|
3301
3623
|
agents: {
|
|
@@ -3305,6 +3627,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3305
3627
|
max_response_bytes: number;
|
|
3306
3628
|
timeout_ms: number;
|
|
3307
3629
|
};
|
|
3630
|
+
allow: string[];
|
|
3308
3631
|
sandbox: {
|
|
3309
3632
|
enabled: boolean;
|
|
3310
3633
|
filesystem: {
|
|
@@ -3331,7 +3654,6 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3331
3654
|
} | undefined;
|
|
3332
3655
|
}>;
|
|
3333
3656
|
};
|
|
3334
|
-
allow: string[];
|
|
3335
3657
|
ask: string[];
|
|
3336
3658
|
deny: string[];
|
|
3337
3659
|
extends: string[];
|
|
@@ -3342,6 +3664,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3342
3664
|
tool_overrides: Record<string, {
|
|
3343
3665
|
sandbox_presets: string[];
|
|
3344
3666
|
description?: string | undefined;
|
|
3667
|
+
args?: Record<string, {
|
|
3668
|
+
allow?: unknown[] | undefined;
|
|
3669
|
+
equals?: unknown;
|
|
3670
|
+
label?: string | undefined;
|
|
3671
|
+
}> | undefined;
|
|
3345
3672
|
alias_of?: string | undefined;
|
|
3346
3673
|
sandbox?: {
|
|
3347
3674
|
filesystem?: {
|
|
@@ -3364,6 +3691,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3364
3691
|
default_timeout_ms: number;
|
|
3365
3692
|
};
|
|
3366
3693
|
token?: string | undefined;
|
|
3694
|
+
arg_policy?: Record<string, Record<string, {
|
|
3695
|
+
allow?: unknown[] | undefined;
|
|
3696
|
+
equals?: unknown;
|
|
3697
|
+
label?: string | undefined;
|
|
3698
|
+
}>> | undefined;
|
|
3367
3699
|
middleware?: {
|
|
3368
3700
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
3369
3701
|
enabled: boolean;
|
|
@@ -3424,6 +3756,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3424
3756
|
allow: string[];
|
|
3425
3757
|
ask: string[];
|
|
3426
3758
|
deny: string[];
|
|
3759
|
+
extends: string[];
|
|
3427
3760
|
}>;
|
|
3428
3761
|
clis: Record<string, {
|
|
3429
3762
|
max_output_bytes: number;
|
|
@@ -3487,6 +3820,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3487
3820
|
} | {
|
|
3488
3821
|
type: "dashboard";
|
|
3489
3822
|
port: number;
|
|
3823
|
+
host: string;
|
|
3490
3824
|
} | {
|
|
3491
3825
|
type: "stdio";
|
|
3492
3826
|
} | ({
|
|
@@ -3513,6 +3847,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3513
3847
|
} | {
|
|
3514
3848
|
type: "dashboard";
|
|
3515
3849
|
port: number;
|
|
3850
|
+
host: string;
|
|
3516
3851
|
} | {
|
|
3517
3852
|
type: "stdio";
|
|
3518
3853
|
})[];
|
|
@@ -3530,6 +3865,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3530
3865
|
server: {
|
|
3531
3866
|
port: number;
|
|
3532
3867
|
host: string;
|
|
3868
|
+
auth_required: boolean;
|
|
3869
|
+
require_agent_tokens: boolean;
|
|
3870
|
+
allowed_origins: string[];
|
|
3871
|
+
expose_management_api: boolean;
|
|
3872
|
+
expose_tools_api: boolean;
|
|
3873
|
+
expose_hook_api: boolean;
|
|
3533
3874
|
api_secret?: string | undefined;
|
|
3534
3875
|
};
|
|
3535
3876
|
}, {
|
|
@@ -3574,6 +3915,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3574
3915
|
allow?: string[] | undefined;
|
|
3575
3916
|
ask?: string[] | undefined;
|
|
3576
3917
|
deny?: string[] | undefined;
|
|
3918
|
+
extends?: string[] | undefined;
|
|
3577
3919
|
}> | undefined;
|
|
3578
3920
|
clis?: Record<string, {
|
|
3579
3921
|
cwd?: string | undefined;
|
|
@@ -3617,6 +3959,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3617
3959
|
max_response_bytes?: number | undefined;
|
|
3618
3960
|
timeout_ms?: number | undefined;
|
|
3619
3961
|
} | undefined;
|
|
3962
|
+
allow?: string[] | undefined;
|
|
3620
3963
|
sandbox?: {
|
|
3621
3964
|
enabled?: boolean | undefined;
|
|
3622
3965
|
filesystem?: {
|
|
@@ -3643,7 +3986,6 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3643
3986
|
} | undefined;
|
|
3644
3987
|
}> | undefined;
|
|
3645
3988
|
} | undefined;
|
|
3646
|
-
allow?: string[] | undefined;
|
|
3647
3989
|
ask?: string[] | undefined;
|
|
3648
3990
|
deny?: string[] | undefined;
|
|
3649
3991
|
token?: string | undefined;
|
|
@@ -3654,6 +3996,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3654
3996
|
}[] | undefined;
|
|
3655
3997
|
tool_overrides?: Record<string, {
|
|
3656
3998
|
description?: string | undefined;
|
|
3999
|
+
args?: Record<string, {
|
|
4000
|
+
allow?: unknown[] | undefined;
|
|
4001
|
+
equals?: unknown;
|
|
4002
|
+
label?: string | undefined;
|
|
4003
|
+
}> | undefined;
|
|
3657
4004
|
alias_of?: string | undefined;
|
|
3658
4005
|
sandbox_presets?: string | string[] | undefined;
|
|
3659
4006
|
sandbox?: {
|
|
@@ -3669,6 +4016,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3669
4016
|
} | undefined;
|
|
3670
4017
|
} | undefined;
|
|
3671
4018
|
}> | undefined;
|
|
4019
|
+
arg_policy?: Record<string, Record<string, {
|
|
4020
|
+
allow?: unknown[] | undefined;
|
|
4021
|
+
equals?: unknown;
|
|
4022
|
+
label?: string | undefined;
|
|
4023
|
+
}>> | undefined;
|
|
3672
4024
|
exec?: {
|
|
3673
4025
|
env?: Record<string, string> | undefined;
|
|
3674
4026
|
allow?: string[] | undefined;
|
|
@@ -3720,6 +4072,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3720
4072
|
} | {
|
|
3721
4073
|
type: "dashboard";
|
|
3722
4074
|
port?: number | undefined;
|
|
4075
|
+
host?: string | undefined;
|
|
3723
4076
|
} | {
|
|
3724
4077
|
type: "stdio";
|
|
3725
4078
|
} | ({
|
|
@@ -3746,6 +4099,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3746
4099
|
} | {
|
|
3747
4100
|
type: "dashboard";
|
|
3748
4101
|
port?: number | undefined;
|
|
4102
|
+
host?: string | undefined;
|
|
3749
4103
|
} | {
|
|
3750
4104
|
type: "stdio";
|
|
3751
4105
|
})[] | undefined;
|
|
@@ -3764,6 +4118,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3764
4118
|
port?: number | undefined;
|
|
3765
4119
|
host?: string | undefined;
|
|
3766
4120
|
api_secret?: string | undefined;
|
|
4121
|
+
auth_required?: boolean | undefined;
|
|
4122
|
+
require_agent_tokens?: boolean | undefined;
|
|
4123
|
+
allowed_origins?: string[] | undefined;
|
|
4124
|
+
expose_management_api?: boolean | undefined;
|
|
4125
|
+
expose_tools_api?: boolean | undefined;
|
|
4126
|
+
expose_hook_api?: boolean | undefined;
|
|
3767
4127
|
} | undefined;
|
|
3768
4128
|
}>;
|
|
3769
4129
|
export type GatewayConfig = z.infer<typeof GatewayConfig>;
|