@herdctl/core 2.1.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/config/__tests__/agent.test.js +67 -48
  2. package/dist/config/__tests__/agent.test.js.map +1 -1
  3. package/dist/config/__tests__/loader.test.js +22 -26
  4. package/dist/config/__tests__/loader.test.js.map +1 -1
  5. package/dist/config/__tests__/merge.test.js +32 -77
  6. package/dist/config/__tests__/merge.test.js.map +1 -1
  7. package/dist/config/__tests__/parser.test.js +30 -48
  8. package/dist/config/__tests__/parser.test.js.map +1 -1
  9. package/dist/config/__tests__/schema.test.js +8 -36
  10. package/dist/config/__tests__/schema.test.js.map +1 -1
  11. package/dist/config/index.d.ts +2 -2
  12. package/dist/config/index.d.ts.map +1 -1
  13. package/dist/config/index.js +1 -1
  14. package/dist/config/index.js.map +1 -1
  15. package/dist/config/merge.d.ts +8 -14
  16. package/dist/config/merge.d.ts.map +1 -1
  17. package/dist/config/merge.js +11 -6
  18. package/dist/config/merge.js.map +1 -1
  19. package/dist/config/schema.d.ts +91 -271
  20. package/dist/config/schema.d.ts.map +1 -1
  21. package/dist/config/schema.js +13 -13
  22. package/dist/config/schema.js.map +1 -1
  23. package/dist/runner/__tests__/sdk-adapter.test.js +25 -159
  24. package/dist/runner/__tests__/sdk-adapter.test.js.map +1 -1
  25. package/dist/runner/runtime/cli-runtime.d.ts.map +1 -1
  26. package/dist/runner/runtime/cli-runtime.js +6 -28
  27. package/dist/runner/runtime/cli-runtime.js.map +1 -1
  28. package/dist/runner/runtime/container-manager.d.ts.map +1 -1
  29. package/dist/runner/runtime/container-manager.js +9 -1
  30. package/dist/runner/runtime/container-manager.js.map +1 -1
  31. package/dist/runner/sdk-adapter.d.ts.map +1 -1
  32. package/dist/runner/sdk-adapter.js +7 -21
  33. package/dist/runner/sdk-adapter.js.map +1 -1
  34. package/dist/state/job-metadata.d.ts.map +1 -1
  35. package/dist/state/job-metadata.js +6 -1
  36. package/dist/state/job-metadata.js.map +1 -1
  37. package/dist/state/session.d.ts.map +1 -1
  38. package/dist/state/session.js +6 -2
  39. package/dist/state/session.js.map +1 -1
  40. package/dist/state/utils/__tests__/path-safety.test.d.ts +2 -0
  41. package/dist/state/utils/__tests__/path-safety.test.d.ts.map +1 -0
  42. package/dist/state/utils/__tests__/path-safety.test.js +182 -0
  43. package/dist/state/utils/__tests__/path-safety.test.js.map +1 -0
  44. package/dist/state/utils/index.d.ts +1 -0
  45. package/dist/state/utils/index.d.ts.map +1 -1
  46. package/dist/state/utils/index.js +1 -0
  47. package/dist/state/utils/index.js.map +1 -1
  48. package/dist/state/utils/path-safety.d.ts +51 -0
  49. package/dist/state/utils/path-safety.d.ts.map +1 -0
  50. package/dist/state/utils/path-safety.js +75 -0
  51. package/dist/state/utils/path-safety.js.map +1 -0
  52. package/package.json +2 -2
@@ -6,47 +6,6 @@
6
6
  import { z } from "zod";
7
7
  import type { HostConfig } from "dockerode";
8
8
  export declare const PermissionModeSchema: z.ZodEnum<["default", "acceptEdits", "bypassPermissions", "plan", "delegate", "dontAsk"]>;
9
- export declare const BashPermissionsSchema: z.ZodObject<{
10
- allowed_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11
- denied_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
- }, "strip", z.ZodTypeAny, {
13
- allowed_commands?: string[] | undefined;
14
- denied_patterns?: string[] | undefined;
15
- }, {
16
- allowed_commands?: string[] | undefined;
17
- denied_patterns?: string[] | undefined;
18
- }>;
19
- export declare const PermissionsSchema: z.ZodObject<{
20
- mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "bypassPermissions", "plan", "delegate", "dontAsk"]>>>;
21
- allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22
- denied_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
- bash: z.ZodOptional<z.ZodObject<{
24
- allowed_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
- denied_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
26
- }, "strip", z.ZodTypeAny, {
27
- allowed_commands?: string[] | undefined;
28
- denied_patterns?: string[] | undefined;
29
- }, {
30
- allowed_commands?: string[] | undefined;
31
- denied_patterns?: string[] | undefined;
32
- }>>;
33
- }, "strip", z.ZodTypeAny, {
34
- mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk";
35
- allowed_tools?: string[] | undefined;
36
- denied_tools?: string[] | undefined;
37
- bash?: {
38
- allowed_commands?: string[] | undefined;
39
- denied_patterns?: string[] | undefined;
40
- } | undefined;
41
- }, {
42
- mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
43
- allowed_tools?: string[] | undefined;
44
- denied_tools?: string[] | undefined;
45
- bash?: {
46
- allowed_commands?: string[] | undefined;
47
- denied_patterns?: string[] | undefined;
48
- } | undefined;
49
- }>;
50
9
  export declare const WorkSourceTypeSchema: z.ZodEnum<["github"]>;
51
10
  export declare const WorkSourceLabelsSchema: z.ZodObject<{
52
11
  ready: z.ZodOptional<z.ZodString>;
@@ -1300,37 +1259,6 @@ export declare const DefaultsSchema: z.ZodObject<{
1300
1259
  base_image?: string | undefined;
1301
1260
  host_config?: HostConfig | undefined;
1302
1261
  }>>;
1303
- permissions: z.ZodOptional<z.ZodObject<{
1304
- mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "bypassPermissions", "plan", "delegate", "dontAsk"]>>>;
1305
- allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1306
- denied_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1307
- bash: z.ZodOptional<z.ZodObject<{
1308
- allowed_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1309
- denied_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1310
- }, "strip", z.ZodTypeAny, {
1311
- allowed_commands?: string[] | undefined;
1312
- denied_patterns?: string[] | undefined;
1313
- }, {
1314
- allowed_commands?: string[] | undefined;
1315
- denied_patterns?: string[] | undefined;
1316
- }>>;
1317
- }, "strip", z.ZodTypeAny, {
1318
- mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk";
1319
- allowed_tools?: string[] | undefined;
1320
- denied_tools?: string[] | undefined;
1321
- bash?: {
1322
- allowed_commands?: string[] | undefined;
1323
- denied_patterns?: string[] | undefined;
1324
- } | undefined;
1325
- }, {
1326
- mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
1327
- allowed_tools?: string[] | undefined;
1328
- denied_tools?: string[] | undefined;
1329
- bash?: {
1330
- allowed_commands?: string[] | undefined;
1331
- denied_patterns?: string[] | undefined;
1332
- } | undefined;
1333
- }>>;
1334
1262
  work_source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1335
1263
  type: z.ZodLiteral<"github">;
1336
1264
  /** GitHub repository in owner/repo format (required) */
@@ -1456,6 +1384,8 @@ export declare const DefaultsSchema: z.ZodObject<{
1456
1384
  model: z.ZodOptional<z.ZodString>;
1457
1385
  max_turns: z.ZodOptional<z.ZodNumber>;
1458
1386
  permission_mode: z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "bypassPermissions", "plan", "delegate", "dontAsk"]>>;
1387
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1388
+ denied_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1459
1389
  }, "strip", z.ZodTypeAny, {
1460
1390
  max_turns?: number | undefined;
1461
1391
  model?: string | undefined;
@@ -1480,15 +1410,6 @@ export declare const DefaultsSchema: z.ZodObject<{
1480
1410
  base_image?: string | undefined;
1481
1411
  host_config?: HostConfig | undefined;
1482
1412
  } | undefined;
1483
- permissions?: {
1484
- mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk";
1485
- allowed_tools?: string[] | undefined;
1486
- denied_tools?: string[] | undefined;
1487
- bash?: {
1488
- allowed_commands?: string[] | undefined;
1489
- denied_patterns?: string[] | undefined;
1490
- } | undefined;
1491
- } | undefined;
1492
1413
  work_source?: {
1493
1414
  type: "github";
1494
1415
  repo: string;
@@ -1525,6 +1446,8 @@ export declare const DefaultsSchema: z.ZodObject<{
1525
1446
  model?: string | undefined;
1526
1447
  } | undefined;
1527
1448
  permission_mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
1449
+ allowed_tools?: string[] | undefined;
1450
+ denied_tools?: string[] | undefined;
1528
1451
  }, {
1529
1452
  max_turns?: number | undefined;
1530
1453
  model?: string | undefined;
@@ -1549,15 +1472,6 @@ export declare const DefaultsSchema: z.ZodObject<{
1549
1472
  base_image?: string | undefined;
1550
1473
  host_config?: HostConfig | undefined;
1551
1474
  } | undefined;
1552
- permissions?: {
1553
- mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
1554
- allowed_tools?: string[] | undefined;
1555
- denied_tools?: string[] | undefined;
1556
- bash?: {
1557
- allowed_commands?: string[] | undefined;
1558
- denied_patterns?: string[] | undefined;
1559
- } | undefined;
1560
- } | undefined;
1561
1475
  work_source?: {
1562
1476
  type: "github";
1563
1477
  repo: string;
@@ -1594,6 +1508,8 @@ export declare const DefaultsSchema: z.ZodObject<{
1594
1508
  model?: string | undefined;
1595
1509
  } | undefined;
1596
1510
  permission_mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
1511
+ allowed_tools?: string[] | undefined;
1512
+ denied_tools?: string[] | undefined;
1597
1513
  }>;
1598
1514
  export declare const WorkingDirectorySchema: z.ZodObject<{
1599
1515
  root: z.ZodString;
@@ -1850,13 +1766,13 @@ export declare const DiscordDMSchema: z.ZodObject<{
1850
1766
  allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1851
1767
  blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1852
1768
  }, "strip", z.ZodTypeAny, {
1853
- mode: "mention" | "auto";
1854
1769
  enabled: boolean;
1770
+ mode: "mention" | "auto";
1855
1771
  allowlist?: string[] | undefined;
1856
1772
  blocklist?: string[] | undefined;
1857
1773
  }, {
1858
- mode?: "mention" | "auto" | undefined;
1859
1774
  enabled?: boolean | undefined;
1775
+ mode?: "mention" | "auto" | undefined;
1860
1776
  allowlist?: string[] | undefined;
1861
1777
  blocklist?: string[] | undefined;
1862
1778
  }>;
@@ -1884,8 +1800,8 @@ export declare const DiscordChannelSchema: z.ZodObject<{
1884
1800
  name?: string | undefined;
1885
1801
  }, {
1886
1802
  id: string;
1887
- mode?: "mention" | "auto" | undefined;
1888
1803
  name?: string | undefined;
1804
+ mode?: "mention" | "auto" | undefined;
1889
1805
  context_messages?: number | undefined;
1890
1806
  }>;
1891
1807
  /**
@@ -1918,8 +1834,8 @@ export declare const DiscordGuildSchema: z.ZodObject<{
1918
1834
  name?: string | undefined;
1919
1835
  }, {
1920
1836
  id: string;
1921
- mode?: "mention" | "auto" | undefined;
1922
1837
  name?: string | undefined;
1838
+ mode?: "mention" | "auto" | undefined;
1923
1839
  context_messages?: number | undefined;
1924
1840
  }>, "many">>;
1925
1841
  dm: z.ZodOptional<z.ZodObject<{
@@ -1928,13 +1844,13 @@ export declare const DiscordGuildSchema: z.ZodObject<{
1928
1844
  allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1929
1845
  blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1930
1846
  }, "strip", z.ZodTypeAny, {
1931
- mode: "mention" | "auto";
1932
1847
  enabled: boolean;
1848
+ mode: "mention" | "auto";
1933
1849
  allowlist?: string[] | undefined;
1934
1850
  blocklist?: string[] | undefined;
1935
1851
  }, {
1936
- mode?: "mention" | "auto" | undefined;
1937
1852
  enabled?: boolean | undefined;
1853
+ mode?: "mention" | "auto" | undefined;
1938
1854
  allowlist?: string[] | undefined;
1939
1855
  blocklist?: string[] | undefined;
1940
1856
  }>>;
@@ -1947,8 +1863,8 @@ export declare const DiscordGuildSchema: z.ZodObject<{
1947
1863
  name?: string | undefined;
1948
1864
  }[] | undefined;
1949
1865
  dm?: {
1950
- mode: "mention" | "auto";
1951
1866
  enabled: boolean;
1867
+ mode: "mention" | "auto";
1952
1868
  allowlist?: string[] | undefined;
1953
1869
  blocklist?: string[] | undefined;
1954
1870
  } | undefined;
@@ -1956,13 +1872,13 @@ export declare const DiscordGuildSchema: z.ZodObject<{
1956
1872
  id: string;
1957
1873
  channels?: {
1958
1874
  id: string;
1959
- mode?: "mention" | "auto" | undefined;
1960
1875
  name?: string | undefined;
1876
+ mode?: "mention" | "auto" | undefined;
1961
1877
  context_messages?: number | undefined;
1962
1878
  }[] | undefined;
1963
1879
  dm?: {
1964
- mode?: "mention" | "auto" | undefined;
1965
1880
  enabled?: boolean | undefined;
1881
+ mode?: "mention" | "auto" | undefined;
1966
1882
  allowlist?: string[] | undefined;
1967
1883
  blocklist?: string[] | undefined;
1968
1884
  } | undefined;
@@ -2024,8 +1940,8 @@ export declare const AgentChatDiscordSchema: z.ZodObject<{
2024
1940
  name?: string | undefined;
2025
1941
  }, {
2026
1942
  id: string;
2027
- mode?: "mention" | "auto" | undefined;
2028
1943
  name?: string | undefined;
1944
+ mode?: "mention" | "auto" | undefined;
2029
1945
  context_messages?: number | undefined;
2030
1946
  }>, "many">>;
2031
1947
  dm: z.ZodOptional<z.ZodObject<{
@@ -2034,13 +1950,13 @@ export declare const AgentChatDiscordSchema: z.ZodObject<{
2034
1950
  allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2035
1951
  blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2036
1952
  }, "strip", z.ZodTypeAny, {
2037
- mode: "mention" | "auto";
2038
1953
  enabled: boolean;
1954
+ mode: "mention" | "auto";
2039
1955
  allowlist?: string[] | undefined;
2040
1956
  blocklist?: string[] | undefined;
2041
1957
  }, {
2042
- mode?: "mention" | "auto" | undefined;
2043
1958
  enabled?: boolean | undefined;
1959
+ mode?: "mention" | "auto" | undefined;
2044
1960
  allowlist?: string[] | undefined;
2045
1961
  blocklist?: string[] | undefined;
2046
1962
  }>>;
@@ -2053,8 +1969,8 @@ export declare const AgentChatDiscordSchema: z.ZodObject<{
2053
1969
  name?: string | undefined;
2054
1970
  }[] | undefined;
2055
1971
  dm?: {
2056
- mode: "mention" | "auto";
2057
1972
  enabled: boolean;
1973
+ mode: "mention" | "auto";
2058
1974
  allowlist?: string[] | undefined;
2059
1975
  blocklist?: string[] | undefined;
2060
1976
  } | undefined;
@@ -2062,13 +1978,13 @@ export declare const AgentChatDiscordSchema: z.ZodObject<{
2062
1978
  id: string;
2063
1979
  channels?: {
2064
1980
  id: string;
2065
- mode?: "mention" | "auto" | undefined;
2066
1981
  name?: string | undefined;
1982
+ mode?: "mention" | "auto" | undefined;
2067
1983
  context_messages?: number | undefined;
2068
1984
  }[] | undefined;
2069
1985
  dm?: {
2070
- mode?: "mention" | "auto" | undefined;
2071
1986
  enabled?: boolean | undefined;
1987
+ mode?: "mention" | "auto" | undefined;
2072
1988
  allowlist?: string[] | undefined;
2073
1989
  blocklist?: string[] | undefined;
2074
1990
  } | undefined;
@@ -2080,13 +1996,13 @@ export declare const AgentChatDiscordSchema: z.ZodObject<{
2080
1996
  allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2081
1997
  blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2082
1998
  }, "strip", z.ZodTypeAny, {
2083
- mode: "mention" | "auto";
2084
1999
  enabled: boolean;
2000
+ mode: "mention" | "auto";
2085
2001
  allowlist?: string[] | undefined;
2086
2002
  blocklist?: string[] | undefined;
2087
2003
  }, {
2088
- mode?: "mention" | "auto" | undefined;
2089
2004
  enabled?: boolean | undefined;
2005
+ mode?: "mention" | "auto" | undefined;
2090
2006
  allowlist?: string[] | undefined;
2091
2007
  blocklist?: string[] | undefined;
2092
2008
  }>>;
@@ -2103,15 +2019,15 @@ export declare const AgentChatDiscordSchema: z.ZodObject<{
2103
2019
  name?: string | undefined;
2104
2020
  }[] | undefined;
2105
2021
  dm?: {
2106
- mode: "mention" | "auto";
2107
2022
  enabled: boolean;
2023
+ mode: "mention" | "auto";
2108
2024
  allowlist?: string[] | undefined;
2109
2025
  blocklist?: string[] | undefined;
2110
2026
  } | undefined;
2111
2027
  }[];
2112
2028
  dm?: {
2113
- mode: "mention" | "auto";
2114
2029
  enabled: boolean;
2030
+ mode: "mention" | "auto";
2115
2031
  allowlist?: string[] | undefined;
2116
2032
  blocklist?: string[] | undefined;
2117
2033
  } | undefined;
@@ -2125,20 +2041,20 @@ export declare const AgentChatDiscordSchema: z.ZodObject<{
2125
2041
  id: string;
2126
2042
  channels?: {
2127
2043
  id: string;
2128
- mode?: "mention" | "auto" | undefined;
2129
2044
  name?: string | undefined;
2045
+ mode?: "mention" | "auto" | undefined;
2130
2046
  context_messages?: number | undefined;
2131
2047
  }[] | undefined;
2132
2048
  dm?: {
2133
- mode?: "mention" | "auto" | undefined;
2134
2049
  enabled?: boolean | undefined;
2050
+ mode?: "mention" | "auto" | undefined;
2135
2051
  allowlist?: string[] | undefined;
2136
2052
  blocklist?: string[] | undefined;
2137
2053
  } | undefined;
2138
2054
  }[];
2139
2055
  dm?: {
2140
- mode?: "mention" | "auto" | undefined;
2141
2056
  enabled?: boolean | undefined;
2057
+ mode?: "mention" | "auto" | undefined;
2142
2058
  allowlist?: string[] | undefined;
2143
2059
  blocklist?: string[] | undefined;
2144
2060
  } | undefined;
@@ -2183,8 +2099,8 @@ export declare const AgentChatSchema: z.ZodObject<{
2183
2099
  name?: string | undefined;
2184
2100
  }, {
2185
2101
  id: string;
2186
- mode?: "mention" | "auto" | undefined;
2187
2102
  name?: string | undefined;
2103
+ mode?: "mention" | "auto" | undefined;
2188
2104
  context_messages?: number | undefined;
2189
2105
  }>, "many">>;
2190
2106
  dm: z.ZodOptional<z.ZodObject<{
@@ -2193,13 +2109,13 @@ export declare const AgentChatSchema: z.ZodObject<{
2193
2109
  allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2194
2110
  blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2195
2111
  }, "strip", z.ZodTypeAny, {
2196
- mode: "mention" | "auto";
2197
2112
  enabled: boolean;
2113
+ mode: "mention" | "auto";
2198
2114
  allowlist?: string[] | undefined;
2199
2115
  blocklist?: string[] | undefined;
2200
2116
  }, {
2201
- mode?: "mention" | "auto" | undefined;
2202
2117
  enabled?: boolean | undefined;
2118
+ mode?: "mention" | "auto" | undefined;
2203
2119
  allowlist?: string[] | undefined;
2204
2120
  blocklist?: string[] | undefined;
2205
2121
  }>>;
@@ -2212,8 +2128,8 @@ export declare const AgentChatSchema: z.ZodObject<{
2212
2128
  name?: string | undefined;
2213
2129
  }[] | undefined;
2214
2130
  dm?: {
2215
- mode: "mention" | "auto";
2216
2131
  enabled: boolean;
2132
+ mode: "mention" | "auto";
2217
2133
  allowlist?: string[] | undefined;
2218
2134
  blocklist?: string[] | undefined;
2219
2135
  } | undefined;
@@ -2221,13 +2137,13 @@ export declare const AgentChatSchema: z.ZodObject<{
2221
2137
  id: string;
2222
2138
  channels?: {
2223
2139
  id: string;
2224
- mode?: "mention" | "auto" | undefined;
2225
2140
  name?: string | undefined;
2141
+ mode?: "mention" | "auto" | undefined;
2226
2142
  context_messages?: number | undefined;
2227
2143
  }[] | undefined;
2228
2144
  dm?: {
2229
- mode?: "mention" | "auto" | undefined;
2230
2145
  enabled?: boolean | undefined;
2146
+ mode?: "mention" | "auto" | undefined;
2231
2147
  allowlist?: string[] | undefined;
2232
2148
  blocklist?: string[] | undefined;
2233
2149
  } | undefined;
@@ -2239,13 +2155,13 @@ export declare const AgentChatSchema: z.ZodObject<{
2239
2155
  allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2240
2156
  blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2241
2157
  }, "strip", z.ZodTypeAny, {
2242
- mode: "mention" | "auto";
2243
2158
  enabled: boolean;
2159
+ mode: "mention" | "auto";
2244
2160
  allowlist?: string[] | undefined;
2245
2161
  blocklist?: string[] | undefined;
2246
2162
  }, {
2247
- mode?: "mention" | "auto" | undefined;
2248
2163
  enabled?: boolean | undefined;
2164
+ mode?: "mention" | "auto" | undefined;
2249
2165
  allowlist?: string[] | undefined;
2250
2166
  blocklist?: string[] | undefined;
2251
2167
  }>>;
@@ -2262,15 +2178,15 @@ export declare const AgentChatSchema: z.ZodObject<{
2262
2178
  name?: string | undefined;
2263
2179
  }[] | undefined;
2264
2180
  dm?: {
2265
- mode: "mention" | "auto";
2266
2181
  enabled: boolean;
2182
+ mode: "mention" | "auto";
2267
2183
  allowlist?: string[] | undefined;
2268
2184
  blocklist?: string[] | undefined;
2269
2185
  } | undefined;
2270
2186
  }[];
2271
2187
  dm?: {
2272
- mode: "mention" | "auto";
2273
2188
  enabled: boolean;
2189
+ mode: "mention" | "auto";
2274
2190
  allowlist?: string[] | undefined;
2275
2191
  blocklist?: string[] | undefined;
2276
2192
  } | undefined;
@@ -2284,20 +2200,20 @@ export declare const AgentChatSchema: z.ZodObject<{
2284
2200
  id: string;
2285
2201
  channels?: {
2286
2202
  id: string;
2287
- mode?: "mention" | "auto" | undefined;
2288
2203
  name?: string | undefined;
2204
+ mode?: "mention" | "auto" | undefined;
2289
2205
  context_messages?: number | undefined;
2290
2206
  }[] | undefined;
2291
2207
  dm?: {
2292
- mode?: "mention" | "auto" | undefined;
2293
2208
  enabled?: boolean | undefined;
2209
+ mode?: "mention" | "auto" | undefined;
2294
2210
  allowlist?: string[] | undefined;
2295
2211
  blocklist?: string[] | undefined;
2296
2212
  } | undefined;
2297
2213
  }[];
2298
2214
  dm?: {
2299
- mode?: "mention" | "auto" | undefined;
2300
2215
  enabled?: boolean | undefined;
2216
+ mode?: "mention" | "auto" | undefined;
2301
2217
  allowlist?: string[] | undefined;
2302
2218
  blocklist?: string[] | undefined;
2303
2219
  } | undefined;
@@ -2322,15 +2238,15 @@ export declare const AgentChatSchema: z.ZodObject<{
2322
2238
  name?: string | undefined;
2323
2239
  }[] | undefined;
2324
2240
  dm?: {
2325
- mode: "mention" | "auto";
2326
2241
  enabled: boolean;
2242
+ mode: "mention" | "auto";
2327
2243
  allowlist?: string[] | undefined;
2328
2244
  blocklist?: string[] | undefined;
2329
2245
  } | undefined;
2330
2246
  }[];
2331
2247
  dm?: {
2332
- mode: "mention" | "auto";
2333
2248
  enabled: boolean;
2249
+ mode: "mention" | "auto";
2334
2250
  allowlist?: string[] | undefined;
2335
2251
  blocklist?: string[] | undefined;
2336
2252
  } | undefined;
@@ -2346,20 +2262,20 @@ export declare const AgentChatSchema: z.ZodObject<{
2346
2262
  id: string;
2347
2263
  channels?: {
2348
2264
  id: string;
2349
- mode?: "mention" | "auto" | undefined;
2350
2265
  name?: string | undefined;
2266
+ mode?: "mention" | "auto" | undefined;
2351
2267
  context_messages?: number | undefined;
2352
2268
  }[] | undefined;
2353
2269
  dm?: {
2354
- mode?: "mention" | "auto" | undefined;
2355
2270
  enabled?: boolean | undefined;
2271
+ mode?: "mention" | "auto" | undefined;
2356
2272
  allowlist?: string[] | undefined;
2357
2273
  blocklist?: string[] | undefined;
2358
2274
  } | undefined;
2359
2275
  }[];
2360
2276
  dm?: {
2361
- mode?: "mention" | "auto" | undefined;
2362
2277
  enabled?: boolean | undefined;
2278
+ mode?: "mention" | "auto" | undefined;
2363
2279
  allowlist?: string[] | undefined;
2364
2280
  blocklist?: string[] | undefined;
2365
2281
  } | undefined;
@@ -2930,6 +2846,12 @@ export declare const AgentWorkingDirectorySchema: z.ZodUnion<[z.ZodString, z.Zod
2930
2846
  clone_depth?: number | undefined;
2931
2847
  default_branch?: string | undefined;
2932
2848
  }>]>;
2849
+ /**
2850
+ * Regex for valid agent names - alphanumeric with underscores and hyphens.
2851
+ * Must start with alphanumeric character.
2852
+ * This prevents path traversal attacks (../) when names are used in file paths.
2853
+ */
2854
+ export declare const AGENT_NAME_PATTERN: RegExp;
2933
2855
  export declare const AgentConfigSchema: z.ZodObject<{
2934
2856
  name: z.ZodString;
2935
2857
  description: z.ZodOptional<z.ZodString>;
@@ -3221,37 +3143,6 @@ export declare const AgentConfigSchema: z.ZodObject<{
3221
3143
  timeout?: string | undefined;
3222
3144
  model?: string | undefined;
3223
3145
  }>>;
3224
- permissions: z.ZodOptional<z.ZodObject<{
3225
- mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "bypassPermissions", "plan", "delegate", "dontAsk"]>>>;
3226
- allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3227
- denied_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3228
- bash: z.ZodOptional<z.ZodObject<{
3229
- allowed_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3230
- denied_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3231
- }, "strip", z.ZodTypeAny, {
3232
- allowed_commands?: string[] | undefined;
3233
- denied_patterns?: string[] | undefined;
3234
- }, {
3235
- allowed_commands?: string[] | undefined;
3236
- denied_patterns?: string[] | undefined;
3237
- }>>;
3238
- }, "strip", z.ZodTypeAny, {
3239
- mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk";
3240
- allowed_tools?: string[] | undefined;
3241
- denied_tools?: string[] | undefined;
3242
- bash?: {
3243
- allowed_commands?: string[] | undefined;
3244
- denied_patterns?: string[] | undefined;
3245
- } | undefined;
3246
- }, {
3247
- mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
3248
- allowed_tools?: string[] | undefined;
3249
- denied_tools?: string[] | undefined;
3250
- bash?: {
3251
- allowed_commands?: string[] | undefined;
3252
- denied_patterns?: string[] | undefined;
3253
- } | undefined;
3254
- }>>;
3255
3146
  mcp_servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3256
3147
  command: z.ZodOptional<z.ZodString>;
3257
3148
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3302,8 +3193,8 @@ export declare const AgentConfigSchema: z.ZodObject<{
3302
3193
  name?: string | undefined;
3303
3194
  }, {
3304
3195
  id: string;
3305
- mode?: "mention" | "auto" | undefined;
3306
3196
  name?: string | undefined;
3197
+ mode?: "mention" | "auto" | undefined;
3307
3198
  context_messages?: number | undefined;
3308
3199
  }>, "many">>;
3309
3200
  dm: z.ZodOptional<z.ZodObject<{
@@ -3312,13 +3203,13 @@ export declare const AgentConfigSchema: z.ZodObject<{
3312
3203
  allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3313
3204
  blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3314
3205
  }, "strip", z.ZodTypeAny, {
3315
- mode: "mention" | "auto";
3316
3206
  enabled: boolean;
3207
+ mode: "mention" | "auto";
3317
3208
  allowlist?: string[] | undefined;
3318
3209
  blocklist?: string[] | undefined;
3319
3210
  }, {
3320
- mode?: "mention" | "auto" | undefined;
3321
3211
  enabled?: boolean | undefined;
3212
+ mode?: "mention" | "auto" | undefined;
3322
3213
  allowlist?: string[] | undefined;
3323
3214
  blocklist?: string[] | undefined;
3324
3215
  }>>;
@@ -3331,8 +3222,8 @@ export declare const AgentConfigSchema: z.ZodObject<{
3331
3222
  name?: string | undefined;
3332
3223
  }[] | undefined;
3333
3224
  dm?: {
3334
- mode: "mention" | "auto";
3335
3225
  enabled: boolean;
3226
+ mode: "mention" | "auto";
3336
3227
  allowlist?: string[] | undefined;
3337
3228
  blocklist?: string[] | undefined;
3338
3229
  } | undefined;
@@ -3340,13 +3231,13 @@ export declare const AgentConfigSchema: z.ZodObject<{
3340
3231
  id: string;
3341
3232
  channels?: {
3342
3233
  id: string;
3343
- mode?: "mention" | "auto" | undefined;
3344
3234
  name?: string | undefined;
3235
+ mode?: "mention" | "auto" | undefined;
3345
3236
  context_messages?: number | undefined;
3346
3237
  }[] | undefined;
3347
3238
  dm?: {
3348
- mode?: "mention" | "auto" | undefined;
3349
3239
  enabled?: boolean | undefined;
3240
+ mode?: "mention" | "auto" | undefined;
3350
3241
  allowlist?: string[] | undefined;
3351
3242
  blocklist?: string[] | undefined;
3352
3243
  } | undefined;
@@ -3358,13 +3249,13 @@ export declare const AgentConfigSchema: z.ZodObject<{
3358
3249
  allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3359
3250
  blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3360
3251
  }, "strip", z.ZodTypeAny, {
3361
- mode: "mention" | "auto";
3362
3252
  enabled: boolean;
3253
+ mode: "mention" | "auto";
3363
3254
  allowlist?: string[] | undefined;
3364
3255
  blocklist?: string[] | undefined;
3365
3256
  }, {
3366
- mode?: "mention" | "auto" | undefined;
3367
3257
  enabled?: boolean | undefined;
3258
+ mode?: "mention" | "auto" | undefined;
3368
3259
  allowlist?: string[] | undefined;
3369
3260
  blocklist?: string[] | undefined;
3370
3261
  }>>;
@@ -3381,15 +3272,15 @@ export declare const AgentConfigSchema: z.ZodObject<{
3381
3272
  name?: string | undefined;
3382
3273
  }[] | undefined;
3383
3274
  dm?: {
3384
- mode: "mention" | "auto";
3385
3275
  enabled: boolean;
3276
+ mode: "mention" | "auto";
3386
3277
  allowlist?: string[] | undefined;
3387
3278
  blocklist?: string[] | undefined;
3388
3279
  } | undefined;
3389
3280
  }[];
3390
3281
  dm?: {
3391
- mode: "mention" | "auto";
3392
3282
  enabled: boolean;
3283
+ mode: "mention" | "auto";
3393
3284
  allowlist?: string[] | undefined;
3394
3285
  blocklist?: string[] | undefined;
3395
3286
  } | undefined;
@@ -3403,20 +3294,20 @@ export declare const AgentConfigSchema: z.ZodObject<{
3403
3294
  id: string;
3404
3295
  channels?: {
3405
3296
  id: string;
3406
- mode?: "mention" | "auto" | undefined;
3407
3297
  name?: string | undefined;
3298
+ mode?: "mention" | "auto" | undefined;
3408
3299
  context_messages?: number | undefined;
3409
3300
  }[] | undefined;
3410
3301
  dm?: {
3411
- mode?: "mention" | "auto" | undefined;
3412
3302
  enabled?: boolean | undefined;
3303
+ mode?: "mention" | "auto" | undefined;
3413
3304
  allowlist?: string[] | undefined;
3414
3305
  blocklist?: string[] | undefined;
3415
3306
  } | undefined;
3416
3307
  }[];
3417
3308
  dm?: {
3418
- mode?: "mention" | "auto" | undefined;
3419
3309
  enabled?: boolean | undefined;
3310
+ mode?: "mention" | "auto" | undefined;
3420
3311
  allowlist?: string[] | undefined;
3421
3312
  blocklist?: string[] | undefined;
3422
3313
  } | undefined;
@@ -3441,15 +3332,15 @@ export declare const AgentConfigSchema: z.ZodObject<{
3441
3332
  name?: string | undefined;
3442
3333
  }[] | undefined;
3443
3334
  dm?: {
3444
- mode: "mention" | "auto";
3445
3335
  enabled: boolean;
3336
+ mode: "mention" | "auto";
3446
3337
  allowlist?: string[] | undefined;
3447
3338
  blocklist?: string[] | undefined;
3448
3339
  } | undefined;
3449
3340
  }[];
3450
3341
  dm?: {
3451
- mode: "mention" | "auto";
3452
3342
  enabled: boolean;
3343
+ mode: "mention" | "auto";
3453
3344
  allowlist?: string[] | undefined;
3454
3345
  blocklist?: string[] | undefined;
3455
3346
  } | undefined;
@@ -3465,20 +3356,20 @@ export declare const AgentConfigSchema: z.ZodObject<{
3465
3356
  id: string;
3466
3357
  channels?: {
3467
3358
  id: string;
3468
- mode?: "mention" | "auto" | undefined;
3469
3359
  name?: string | undefined;
3360
+ mode?: "mention" | "auto" | undefined;
3470
3361
  context_messages?: number | undefined;
3471
3362
  }[] | undefined;
3472
3363
  dm?: {
3473
- mode?: "mention" | "auto" | undefined;
3474
3364
  enabled?: boolean | undefined;
3365
+ mode?: "mention" | "auto" | undefined;
3475
3366
  allowlist?: string[] | undefined;
3476
3367
  blocklist?: string[] | undefined;
3477
3368
  } | undefined;
3478
3369
  }[];
3479
3370
  dm?: {
3480
- mode?: "mention" | "auto" | undefined;
3481
3371
  enabled?: boolean | undefined;
3372
+ mode?: "mention" | "auto" | undefined;
3482
3373
  allowlist?: string[] | undefined;
3483
3374
  blocklist?: string[] | undefined;
3484
3375
  } | undefined;
@@ -3914,6 +3805,8 @@ export declare const AgentConfigSchema: z.ZodObject<{
3914
3805
  model: z.ZodOptional<z.ZodString>;
3915
3806
  max_turns: z.ZodOptional<z.ZodNumber>;
3916
3807
  permission_mode: z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "bypassPermissions", "plan", "delegate", "dontAsk"]>>;
3808
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3809
+ denied_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3917
3810
  /** Path to metadata JSON file written by agent (default: metadata.json in workspace) */
3918
3811
  metadata_file: z.ZodOptional<z.ZodString>;
3919
3812
  /**
@@ -3952,15 +3845,6 @@ export declare const AgentConfigSchema: z.ZodObject<{
3952
3845
  cpu_period?: number | undefined;
3953
3846
  cpu_quota?: number | undefined;
3954
3847
  } | undefined;
3955
- permissions?: {
3956
- mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk";
3957
- allowed_tools?: string[] | undefined;
3958
- denied_tools?: string[] | undefined;
3959
- bash?: {
3960
- allowed_commands?: string[] | undefined;
3961
- denied_patterns?: string[] | undefined;
3962
- } | undefined;
3963
- } | undefined;
3964
3848
  work_source?: {
3965
3849
  type: "github";
3966
3850
  repo: string;
@@ -3997,6 +3881,8 @@ export declare const AgentConfigSchema: z.ZodObject<{
3997
3881
  model?: string | undefined;
3998
3882
  } | undefined;
3999
3883
  permission_mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
3884
+ allowed_tools?: string[] | undefined;
3885
+ denied_tools?: string[] | undefined;
4000
3886
  chat?: {
4001
3887
  discord?: {
4002
3888
  bot_token_env: string;
@@ -4011,15 +3897,15 @@ export declare const AgentConfigSchema: z.ZodObject<{
4011
3897
  name?: string | undefined;
4012
3898
  }[] | undefined;
4013
3899
  dm?: {
4014
- mode: "mention" | "auto";
4015
3900
  enabled: boolean;
3901
+ mode: "mention" | "auto";
4016
3902
  allowlist?: string[] | undefined;
4017
3903
  blocklist?: string[] | undefined;
4018
3904
  } | undefined;
4019
3905
  }[];
4020
3906
  dm?: {
4021
- mode: "mention" | "auto";
4022
3907
  enabled: boolean;
3908
+ mode: "mention" | "auto";
4023
3909
  allowlist?: string[] | undefined;
4024
3910
  blocklist?: string[] | undefined;
4025
3911
  } | undefined;
@@ -4150,15 +4036,6 @@ export declare const AgentConfigSchema: z.ZodObject<{
4150
4036
  cpu_period?: number | undefined;
4151
4037
  cpu_quota?: number | undefined;
4152
4038
  } | undefined;
4153
- permissions?: {
4154
- mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
4155
- allowed_tools?: string[] | undefined;
4156
- denied_tools?: string[] | undefined;
4157
- bash?: {
4158
- allowed_commands?: string[] | undefined;
4159
- denied_patterns?: string[] | undefined;
4160
- } | undefined;
4161
- } | undefined;
4162
4039
  work_source?: {
4163
4040
  type: "github";
4164
4041
  repo: string;
@@ -4195,6 +4072,8 @@ export declare const AgentConfigSchema: z.ZodObject<{
4195
4072
  model?: string | undefined;
4196
4073
  } | undefined;
4197
4074
  permission_mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
4075
+ allowed_tools?: string[] | undefined;
4076
+ denied_tools?: string[] | undefined;
4198
4077
  chat?: {
4199
4078
  discord?: {
4200
4079
  bot_token_env: string;
@@ -4202,20 +4081,20 @@ export declare const AgentConfigSchema: z.ZodObject<{
4202
4081
  id: string;
4203
4082
  channels?: {
4204
4083
  id: string;
4205
- mode?: "mention" | "auto" | undefined;
4206
4084
  name?: string | undefined;
4085
+ mode?: "mention" | "auto" | undefined;
4207
4086
  context_messages?: number | undefined;
4208
4087
  }[] | undefined;
4209
4088
  dm?: {
4210
- mode?: "mention" | "auto" | undefined;
4211
4089
  enabled?: boolean | undefined;
4090
+ mode?: "mention" | "auto" | undefined;
4212
4091
  allowlist?: string[] | undefined;
4213
4092
  blocklist?: string[] | undefined;
4214
4093
  } | undefined;
4215
4094
  }[];
4216
4095
  dm?: {
4217
- mode?: "mention" | "auto" | undefined;
4218
4096
  enabled?: boolean | undefined;
4097
+ mode?: "mention" | "auto" | undefined;
4219
4098
  allowlist?: string[] | undefined;
4220
4099
  blocklist?: string[] | undefined;
4221
4100
  } | undefined;
@@ -4683,37 +4562,6 @@ export declare const FleetConfigSchema: z.ZodObject<{
4683
4562
  base_image?: string | undefined;
4684
4563
  host_config?: HostConfig | undefined;
4685
4564
  }>>;
4686
- permissions: z.ZodOptional<z.ZodObject<{
4687
- mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "bypassPermissions", "plan", "delegate", "dontAsk"]>>>;
4688
- allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4689
- denied_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4690
- bash: z.ZodOptional<z.ZodObject<{
4691
- allowed_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4692
- denied_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4693
- }, "strip", z.ZodTypeAny, {
4694
- allowed_commands?: string[] | undefined;
4695
- denied_patterns?: string[] | undefined;
4696
- }, {
4697
- allowed_commands?: string[] | undefined;
4698
- denied_patterns?: string[] | undefined;
4699
- }>>;
4700
- }, "strip", z.ZodTypeAny, {
4701
- mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk";
4702
- allowed_tools?: string[] | undefined;
4703
- denied_tools?: string[] | undefined;
4704
- bash?: {
4705
- allowed_commands?: string[] | undefined;
4706
- denied_patterns?: string[] | undefined;
4707
- } | undefined;
4708
- }, {
4709
- mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
4710
- allowed_tools?: string[] | undefined;
4711
- denied_tools?: string[] | undefined;
4712
- bash?: {
4713
- allowed_commands?: string[] | undefined;
4714
- denied_patterns?: string[] | undefined;
4715
- } | undefined;
4716
- }>>;
4717
4565
  work_source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4718
4566
  type: z.ZodLiteral<"github">;
4719
4567
  /** GitHub repository in owner/repo format (required) */
@@ -4839,6 +4687,8 @@ export declare const FleetConfigSchema: z.ZodObject<{
4839
4687
  model: z.ZodOptional<z.ZodString>;
4840
4688
  max_turns: z.ZodOptional<z.ZodNumber>;
4841
4689
  permission_mode: z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "bypassPermissions", "plan", "delegate", "dontAsk"]>>;
4690
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4691
+ denied_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4842
4692
  }, "strip", z.ZodTypeAny, {
4843
4693
  max_turns?: number | undefined;
4844
4694
  model?: string | undefined;
@@ -4863,15 +4713,6 @@ export declare const FleetConfigSchema: z.ZodObject<{
4863
4713
  base_image?: string | undefined;
4864
4714
  host_config?: HostConfig | undefined;
4865
4715
  } | undefined;
4866
- permissions?: {
4867
- mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk";
4868
- allowed_tools?: string[] | undefined;
4869
- denied_tools?: string[] | undefined;
4870
- bash?: {
4871
- allowed_commands?: string[] | undefined;
4872
- denied_patterns?: string[] | undefined;
4873
- } | undefined;
4874
- } | undefined;
4875
4716
  work_source?: {
4876
4717
  type: "github";
4877
4718
  repo: string;
@@ -4908,6 +4749,8 @@ export declare const FleetConfigSchema: z.ZodObject<{
4908
4749
  model?: string | undefined;
4909
4750
  } | undefined;
4910
4751
  permission_mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
4752
+ allowed_tools?: string[] | undefined;
4753
+ denied_tools?: string[] | undefined;
4911
4754
  }, {
4912
4755
  max_turns?: number | undefined;
4913
4756
  model?: string | undefined;
@@ -4932,15 +4775,6 @@ export declare const FleetConfigSchema: z.ZodObject<{
4932
4775
  base_image?: string | undefined;
4933
4776
  host_config?: HostConfig | undefined;
4934
4777
  } | undefined;
4935
- permissions?: {
4936
- mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
4937
- allowed_tools?: string[] | undefined;
4938
- denied_tools?: string[] | undefined;
4939
- bash?: {
4940
- allowed_commands?: string[] | undefined;
4941
- denied_patterns?: string[] | undefined;
4942
- } | undefined;
4943
- } | undefined;
4944
4778
  work_source?: {
4945
4779
  type: "github";
4946
4780
  repo: string;
@@ -4977,6 +4811,8 @@ export declare const FleetConfigSchema: z.ZodObject<{
4977
4811
  model?: string | undefined;
4978
4812
  } | undefined;
4979
4813
  permission_mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
4814
+ allowed_tools?: string[] | undefined;
4815
+ denied_tools?: string[] | undefined;
4980
4816
  }>>;
4981
4817
  working_directory: z.ZodOptional<z.ZodObject<{
4982
4818
  root: z.ZodString;
@@ -5395,15 +5231,6 @@ export declare const FleetConfigSchema: z.ZodObject<{
5395
5231
  base_image?: string | undefined;
5396
5232
  host_config?: HostConfig | undefined;
5397
5233
  } | undefined;
5398
- permissions?: {
5399
- mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk";
5400
- allowed_tools?: string[] | undefined;
5401
- denied_tools?: string[] | undefined;
5402
- bash?: {
5403
- allowed_commands?: string[] | undefined;
5404
- denied_patterns?: string[] | undefined;
5405
- } | undefined;
5406
- } | undefined;
5407
5234
  work_source?: {
5408
5235
  type: "github";
5409
5236
  repo: string;
@@ -5440,6 +5267,8 @@ export declare const FleetConfigSchema: z.ZodObject<{
5440
5267
  model?: string | undefined;
5441
5268
  } | undefined;
5442
5269
  permission_mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
5270
+ allowed_tools?: string[] | undefined;
5271
+ denied_tools?: string[] | undefined;
5443
5272
  } | undefined;
5444
5273
  webhooks?: {
5445
5274
  enabled: boolean;
@@ -5509,15 +5338,6 @@ export declare const FleetConfigSchema: z.ZodObject<{
5509
5338
  base_image?: string | undefined;
5510
5339
  host_config?: HostConfig | undefined;
5511
5340
  } | undefined;
5512
- permissions?: {
5513
- mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
5514
- allowed_tools?: string[] | undefined;
5515
- denied_tools?: string[] | undefined;
5516
- bash?: {
5517
- allowed_commands?: string[] | undefined;
5518
- denied_patterns?: string[] | undefined;
5519
- } | undefined;
5520
- } | undefined;
5521
5341
  work_source?: {
5522
5342
  type: "github";
5523
5343
  repo: string;
@@ -5554,6 +5374,8 @@ export declare const FleetConfigSchema: z.ZodObject<{
5554
5374
  model?: string | undefined;
5555
5375
  } | undefined;
5556
5376
  permission_mode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk" | undefined;
5377
+ allowed_tools?: string[] | undefined;
5378
+ denied_tools?: string[] | undefined;
5557
5379
  } | undefined;
5558
5380
  agents?: {
5559
5381
  path: string;
@@ -5566,8 +5388,6 @@ export declare const FleetConfigSchema: z.ZodObject<{
5566
5388
  } | undefined;
5567
5389
  }>;
5568
5390
  export type PermissionMode = z.infer<typeof PermissionModeSchema>;
5569
- export type BashPermissions = z.infer<typeof BashPermissionsSchema>;
5570
- export type Permissions = z.infer<typeof PermissionsSchema>;
5571
5391
  export type WorkSourceType = z.infer<typeof WorkSourceTypeSchema>;
5572
5392
  export type WorkSourceLabels = z.infer<typeof WorkSourceLabelsSchema>;
5573
5393
  export type GitHubAuth = z.infer<typeof GitHubAuthSchema>;