@crewhaus/spec 0.1.4 → 0.1.6

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.
@@ -8,13 +8,13 @@ declare const mcpServerConfigSchema: z.ZodDiscriminatedUnion<"transport", [z.Zod
8
8
  }, "strict", z.ZodTypeAny, {
9
9
  transport: "stdio";
10
10
  command: string;
11
- env?: Record<string, string> | undefined;
12
11
  args?: string[] | undefined;
12
+ env?: Record<string, string> | undefined;
13
13
  }, {
14
14
  transport: "stdio";
15
15
  command: string;
16
- env?: Record<string, string> | undefined;
17
16
  args?: string[] | undefined;
17
+ env?: Record<string, string> | undefined;
18
18
  }>, z.ZodObject<{
19
19
  transport: z.ZodLiteral<"sse">;
20
20
  url: z.ZodString;
@@ -47,22 +47,22 @@ declare const subAgentDefinitionSchema: z.ZodObject<{
47
47
  }, "strict", z.ZodTypeAny, {
48
48
  description: string;
49
49
  instructions: string;
50
+ tools?: string[] | undefined;
51
+ model?: string | undefined;
50
52
  permissions?: "inherit" | "scoped" | {
51
53
  allow: string[];
52
54
  deny: string[];
53
55
  } | undefined;
54
- tools?: string[] | undefined;
55
- model?: string | undefined;
56
56
  inherit_bypass?: boolean | undefined;
57
57
  }, {
58
58
  description: string;
59
59
  instructions: string;
60
+ tools?: string[] | undefined;
61
+ model?: string | undefined;
60
62
  permissions?: "inherit" | "scoped" | {
61
63
  allow: string[];
62
64
  deny: string[];
63
65
  } | undefined;
64
- tools?: string[] | undefined;
65
- model?: string | undefined;
66
66
  inherit_bypass?: boolean | undefined;
67
67
  }>;
68
68
  /**
@@ -220,6 +220,7 @@ declare const cliSchema: z.ZodObject<{
220
220
  agent: z.ZodObject<{
221
221
  model: z.ZodString;
222
222
  instructions: z.ZodString;
223
+ max_tokens: z.ZodOptional<z.ZodNumber>;
223
224
  sub_agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
224
225
  description: z.ZodString;
225
226
  instructions: z.ZodString;
@@ -239,50 +240,52 @@ declare const cliSchema: z.ZodObject<{
239
240
  }, "strict", z.ZodTypeAny, {
240
241
  description: string;
241
242
  instructions: string;
243
+ tools?: string[] | undefined;
244
+ model?: string | undefined;
242
245
  permissions?: "inherit" | "scoped" | {
243
246
  allow: string[];
244
247
  deny: string[];
245
248
  } | undefined;
246
- tools?: string[] | undefined;
247
- model?: string | undefined;
248
249
  inherit_bypass?: boolean | undefined;
249
250
  }, {
250
251
  description: string;
251
252
  instructions: string;
253
+ tools?: string[] | undefined;
254
+ model?: string | undefined;
252
255
  permissions?: "inherit" | "scoped" | {
253
256
  allow: string[];
254
257
  deny: string[];
255
258
  } | undefined;
256
- tools?: string[] | undefined;
257
- model?: string | undefined;
258
259
  inherit_bypass?: boolean | undefined;
259
260
  }>>>;
260
261
  }, "strict", z.ZodTypeAny, {
261
262
  instructions: string;
262
263
  model: string;
264
+ max_tokens?: number | undefined;
263
265
  sub_agents?: Record<string, {
264
266
  description: string;
265
267
  instructions: string;
268
+ tools?: string[] | undefined;
269
+ model?: string | undefined;
266
270
  permissions?: "inherit" | "scoped" | {
267
271
  allow: string[];
268
272
  deny: string[];
269
273
  } | undefined;
270
- tools?: string[] | undefined;
271
- model?: string | undefined;
272
274
  inherit_bypass?: boolean | undefined;
273
275
  }> | undefined;
274
276
  }, {
275
277
  instructions: string;
276
278
  model: string;
279
+ max_tokens?: number | undefined;
277
280
  sub_agents?: Record<string, {
278
281
  description: string;
279
282
  instructions: string;
283
+ tools?: string[] | undefined;
284
+ model?: string | undefined;
280
285
  permissions?: "inherit" | "scoped" | {
281
286
  allow: string[];
282
287
  deny: string[];
283
288
  } | undefined;
284
- tools?: string[] | undefined;
285
- model?: string | undefined;
286
289
  inherit_bypass?: boolean | undefined;
287
290
  }> | undefined;
288
291
  }>;
@@ -296,13 +299,13 @@ declare const cliSchema: z.ZodObject<{
296
299
  }, "strict", z.ZodTypeAny, {
297
300
  transport: "stdio";
298
301
  command: string;
299
- env?: Record<string, string> | undefined;
300
302
  args?: string[] | undefined;
303
+ env?: Record<string, string> | undefined;
301
304
  }, {
302
305
  transport: "stdio";
303
306
  command: string;
304
- env?: Record<string, string> | undefined;
305
307
  args?: string[] | undefined;
308
+ env?: Record<string, string> | undefined;
306
309
  }>, z.ZodObject<{
307
310
  transport: z.ZodLiteral<"sse">;
308
311
  url: z.ZodString;
@@ -549,14 +552,14 @@ declare const cliSchema: z.ZodObject<{
549
552
  address: z.ZodString;
550
553
  abiRef: z.ZodString;
551
554
  }, "strict", z.ZodTypeAny, {
552
- address: string;
553
555
  id: string;
554
556
  chainId: string;
557
+ address: string;
555
558
  abiRef: string;
556
559
  }, {
557
- address: string;
558
560
  id: string;
559
561
  chainId: string;
562
+ address: string;
560
563
  abiRef: string;
561
564
  }>, "many">>;
562
565
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -584,25 +587,20 @@ declare const cliSchema: z.ZodObject<{
584
587
  agent: {
585
588
  instructions: string;
586
589
  model: string;
590
+ max_tokens?: number | undefined;
587
591
  sub_agents?: Record<string, {
588
592
  description: string;
589
593
  instructions: string;
594
+ tools?: string[] | undefined;
595
+ model?: string | undefined;
590
596
  permissions?: "inherit" | "scoped" | {
591
597
  allow: string[];
592
598
  deny: string[];
593
599
  } | undefined;
594
- tools?: string[] | undefined;
595
- model?: string | undefined;
596
600
  inherit_bypass?: boolean | undefined;
597
601
  }> | undefined;
598
602
  };
599
- cli?: {
600
- tui: "basic" | "rich";
601
- banner?: {
602
- taglineMode: "static" | "random";
603
- taglines: string[];
604
- } | undefined;
605
- } | undefined;
603
+ tools?: string[] | undefined;
606
604
  permissions?: {
607
605
  mode?: "default" | "plan" | "auto" | undefined;
608
606
  rules?: {
@@ -610,13 +608,19 @@ declare const cliSchema: z.ZodObject<{
610
608
  pattern: string;
611
609
  }[] | undefined;
612
610
  } | undefined;
613
- tools?: string[] | undefined;
611
+ cli?: {
612
+ tui: "basic" | "rich";
613
+ banner?: {
614
+ taglineMode: "static" | "random";
615
+ taglines: string[];
616
+ } | undefined;
617
+ } | undefined;
614
618
  tool_config?: Record<string, unknown> | undefined;
615
619
  mcp_servers?: Record<string, {
616
620
  transport: "stdio";
617
621
  command: string;
618
- env?: Record<string, string> | undefined;
619
622
  args?: string[] | undefined;
623
+ env?: Record<string, string> | undefined;
620
624
  } | {
621
625
  transport: "sse";
622
626
  url: string;
@@ -664,9 +668,9 @@ declare const cliSchema: z.ZodObject<{
664
668
  keyRef?: string | undefined;
665
669
  }[] | undefined;
666
670
  contracts?: {
667
- address: string;
668
671
  id: string;
669
672
  chainId: string;
673
+ address: string;
670
674
  abiRef: string;
671
675
  }[] | undefined;
672
676
  transaction_policy?: {
@@ -682,25 +686,20 @@ declare const cliSchema: z.ZodObject<{
682
686
  agent: {
683
687
  instructions: string;
684
688
  model: string;
689
+ max_tokens?: number | undefined;
685
690
  sub_agents?: Record<string, {
686
691
  description: string;
687
692
  instructions: string;
693
+ tools?: string[] | undefined;
694
+ model?: string | undefined;
688
695
  permissions?: "inherit" | "scoped" | {
689
696
  allow: string[];
690
697
  deny: string[];
691
698
  } | undefined;
692
- tools?: string[] | undefined;
693
- model?: string | undefined;
694
699
  inherit_bypass?: boolean | undefined;
695
700
  }> | undefined;
696
701
  };
697
- cli?: {
698
- banner?: {
699
- taglines: string[];
700
- taglineMode?: "static" | "random" | undefined;
701
- } | undefined;
702
- tui?: "basic" | "rich" | undefined;
703
- } | undefined;
702
+ tools?: string[] | undefined;
704
703
  permissions?: {
705
704
  mode?: "default" | "plan" | "auto" | undefined;
706
705
  rules?: {
@@ -708,13 +707,19 @@ declare const cliSchema: z.ZodObject<{
708
707
  pattern: string;
709
708
  }[] | undefined;
710
709
  } | undefined;
711
- tools?: string[] | undefined;
710
+ cli?: {
711
+ banner?: {
712
+ taglines: string[];
713
+ taglineMode?: "static" | "random" | undefined;
714
+ } | undefined;
715
+ tui?: "basic" | "rich" | undefined;
716
+ } | undefined;
712
717
  tool_config?: Record<string, unknown> | undefined;
713
718
  mcp_servers?: Record<string, {
714
719
  transport: "stdio";
715
720
  command: string;
716
- env?: Record<string, string> | undefined;
717
721
  args?: string[] | undefined;
722
+ env?: Record<string, string> | undefined;
718
723
  } | {
719
724
  transport: "sse";
720
725
  url: string;
@@ -762,9 +767,9 @@ declare const cliSchema: z.ZodObject<{
762
767
  keyRef?: string | undefined;
763
768
  }[] | undefined;
764
769
  contracts?: {
765
- address: string;
766
770
  id: string;
767
771
  chainId: string;
772
+ address: string;
768
773
  abiRef: string;
769
774
  }[] | undefined;
770
775
  transaction_policy?: {
@@ -782,14 +787,14 @@ declare const workflowStepSchema: z.ZodObject<{
782
787
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
783
788
  tool_config: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
784
789
  }, "strict", z.ZodTypeAny, {
785
- name: string;
786
790
  instructions: string;
791
+ name: string;
787
792
  tools?: string[] | undefined;
788
793
  model?: string | undefined;
789
794
  tool_config?: Record<string, unknown> | undefined;
790
795
  }, {
791
- name: string;
792
796
  instructions: string;
797
+ name: string;
793
798
  tools?: string[] | undefined;
794
799
  model?: string | undefined;
795
800
  tool_config?: Record<string, unknown> | undefined;
@@ -805,14 +810,14 @@ declare const workflowSchema: z.ZodObject<{
805
810
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
806
811
  tool_config: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
807
812
  }, "strict", z.ZodTypeAny, {
808
- name: string;
809
813
  instructions: string;
814
+ name: string;
810
815
  tools?: string[] | undefined;
811
816
  model?: string | undefined;
812
817
  tool_config?: Record<string, unknown> | undefined;
813
818
  }, {
814
- name: string;
815
819
  instructions: string;
820
+ name: string;
816
821
  tools?: string[] | undefined;
817
822
  model?: string | undefined;
818
823
  tool_config?: Record<string, unknown> | undefined;
@@ -825,13 +830,13 @@ declare const workflowSchema: z.ZodObject<{
825
830
  }, "strict", z.ZodTypeAny, {
826
831
  transport: "stdio";
827
832
  command: string;
828
- env?: Record<string, string> | undefined;
829
833
  args?: string[] | undefined;
834
+ env?: Record<string, string> | undefined;
830
835
  }, {
831
836
  transport: "stdio";
832
837
  command: string;
833
- env?: Record<string, string> | undefined;
834
838
  args?: string[] | undefined;
839
+ env?: Record<string, string> | undefined;
835
840
  }>, z.ZodObject<{
836
841
  transport: z.ZodLiteral<"sse">;
837
842
  url: z.ZodString;
@@ -996,14 +1001,14 @@ declare const workflowSchema: z.ZodObject<{
996
1001
  address: z.ZodString;
997
1002
  abiRef: z.ZodString;
998
1003
  }, "strict", z.ZodTypeAny, {
999
- address: string;
1000
1004
  id: string;
1001
1005
  chainId: string;
1006
+ address: string;
1002
1007
  abiRef: string;
1003
1008
  }, {
1004
- address: string;
1005
1009
  id: string;
1006
1010
  chainId: string;
1011
+ address: string;
1007
1012
  abiRef: string;
1008
1013
  }>, "many">>;
1009
1014
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -1026,12 +1031,12 @@ declare const workflowSchema: z.ZodObject<{
1026
1031
  simulationRequired?: boolean | undefined;
1027
1032
  }>>;
1028
1033
  }, "strict", z.ZodTypeAny, {
1029
- name: string;
1030
1034
  model: string;
1035
+ name: string;
1031
1036
  target: "workflow";
1032
1037
  steps: {
1033
- name: string;
1034
1038
  instructions: string;
1039
+ name: string;
1035
1040
  tools?: string[] | undefined;
1036
1041
  model?: string | undefined;
1037
1042
  tool_config?: Record<string, unknown> | undefined;
@@ -1046,8 +1051,8 @@ declare const workflowSchema: z.ZodObject<{
1046
1051
  mcp_servers?: Record<string, {
1047
1052
  transport: "stdio";
1048
1053
  command: string;
1049
- env?: Record<string, string> | undefined;
1050
1054
  args?: string[] | undefined;
1055
+ env?: Record<string, string> | undefined;
1051
1056
  } | {
1052
1057
  transport: "sse";
1053
1058
  url: string;
@@ -1088,9 +1093,9 @@ declare const workflowSchema: z.ZodObject<{
1088
1093
  keyRef?: string | undefined;
1089
1094
  }[] | undefined;
1090
1095
  contracts?: {
1091
- address: string;
1092
1096
  id: string;
1093
1097
  chainId: string;
1098
+ address: string;
1094
1099
  abiRef: string;
1095
1100
  }[] | undefined;
1096
1101
  transaction_policy?: {
@@ -1101,12 +1106,12 @@ declare const workflowSchema: z.ZodObject<{
1101
1106
  maxValueWei?: string | undefined;
1102
1107
  } | undefined;
1103
1108
  }, {
1104
- name: string;
1105
1109
  model: string;
1110
+ name: string;
1106
1111
  target: "workflow";
1107
1112
  steps: {
1108
- name: string;
1109
1113
  instructions: string;
1114
+ name: string;
1110
1115
  tools?: string[] | undefined;
1111
1116
  model?: string | undefined;
1112
1117
  tool_config?: Record<string, unknown> | undefined;
@@ -1121,8 +1126,8 @@ declare const workflowSchema: z.ZodObject<{
1121
1126
  mcp_servers?: Record<string, {
1122
1127
  transport: "stdio";
1123
1128
  command: string;
1124
- env?: Record<string, string> | undefined;
1125
1129
  args?: string[] | undefined;
1130
+ env?: Record<string, string> | undefined;
1126
1131
  } | {
1127
1132
  transport: "sse";
1128
1133
  url: string;
@@ -1163,9 +1168,9 @@ declare const workflowSchema: z.ZodObject<{
1163
1168
  keyRef?: string | undefined;
1164
1169
  }[] | undefined;
1165
1170
  contracts?: {
1166
- address: string;
1167
1171
  id: string;
1168
1172
  chainId: string;
1173
+ address: string;
1169
1174
  abiRef: string;
1170
1175
  }[] | undefined;
1171
1176
  transaction_policy?: {
@@ -1259,22 +1264,22 @@ declare const channelAgentSchema: z.ZodObject<{
1259
1264
  }, "strict", z.ZodTypeAny, {
1260
1265
  description: string;
1261
1266
  instructions: string;
1267
+ tools?: string[] | undefined;
1268
+ model?: string | undefined;
1262
1269
  permissions?: "inherit" | "scoped" | {
1263
1270
  allow: string[];
1264
1271
  deny: string[];
1265
1272
  } | undefined;
1266
- tools?: string[] | undefined;
1267
- model?: string | undefined;
1268
1273
  inherit_bypass?: boolean | undefined;
1269
1274
  }, {
1270
1275
  description: string;
1271
1276
  instructions: string;
1277
+ tools?: string[] | undefined;
1278
+ model?: string | undefined;
1272
1279
  permissions?: "inherit" | "scoped" | {
1273
1280
  allow: string[];
1274
1281
  deny: string[];
1275
1282
  } | undefined;
1276
- tools?: string[] | undefined;
1277
- model?: string | undefined;
1278
1283
  inherit_bypass?: boolean | undefined;
1279
1284
  }>>>;
1280
1285
  }, "strict", z.ZodTypeAny, {
@@ -1284,12 +1289,12 @@ declare const channelAgentSchema: z.ZodObject<{
1284
1289
  sub_agents?: Record<string, {
1285
1290
  description: string;
1286
1291
  instructions: string;
1292
+ tools?: string[] | undefined;
1293
+ model?: string | undefined;
1287
1294
  permissions?: "inherit" | "scoped" | {
1288
1295
  allow: string[];
1289
1296
  deny: string[];
1290
1297
  } | undefined;
1291
- tools?: string[] | undefined;
1292
- model?: string | undefined;
1293
1298
  inherit_bypass?: boolean | undefined;
1294
1299
  }> | undefined;
1295
1300
  tool_config?: Record<string, unknown> | undefined;
@@ -1300,12 +1305,12 @@ declare const channelAgentSchema: z.ZodObject<{
1300
1305
  sub_agents?: Record<string, {
1301
1306
  description: string;
1302
1307
  instructions: string;
1308
+ tools?: string[] | undefined;
1309
+ model?: string | undefined;
1303
1310
  permissions?: "inherit" | "scoped" | {
1304
1311
  allow: string[];
1305
1312
  deny: string[];
1306
1313
  } | undefined;
1307
- tools?: string[] | undefined;
1308
- model?: string | undefined;
1309
1314
  inherit_bypass?: boolean | undefined;
1310
1315
  }> | undefined;
1311
1316
  tool_config?: Record<string, unknown> | undefined;
@@ -1337,22 +1342,22 @@ declare const channelSchema: z.ZodObject<{
1337
1342
  }, "strict", z.ZodTypeAny, {
1338
1343
  description: string;
1339
1344
  instructions: string;
1345
+ tools?: string[] | undefined;
1346
+ model?: string | undefined;
1340
1347
  permissions?: "inherit" | "scoped" | {
1341
1348
  allow: string[];
1342
1349
  deny: string[];
1343
1350
  } | undefined;
1344
- tools?: string[] | undefined;
1345
- model?: string | undefined;
1346
1351
  inherit_bypass?: boolean | undefined;
1347
1352
  }, {
1348
1353
  description: string;
1349
1354
  instructions: string;
1355
+ tools?: string[] | undefined;
1356
+ model?: string | undefined;
1350
1357
  permissions?: "inherit" | "scoped" | {
1351
1358
  allow: string[];
1352
1359
  deny: string[];
1353
1360
  } | undefined;
1354
- tools?: string[] | undefined;
1355
- model?: string | undefined;
1356
1361
  inherit_bypass?: boolean | undefined;
1357
1362
  }>>>;
1358
1363
  }, "strict", z.ZodTypeAny, {
@@ -1362,12 +1367,12 @@ declare const channelSchema: z.ZodObject<{
1362
1367
  sub_agents?: Record<string, {
1363
1368
  description: string;
1364
1369
  instructions: string;
1370
+ tools?: string[] | undefined;
1371
+ model?: string | undefined;
1365
1372
  permissions?: "inherit" | "scoped" | {
1366
1373
  allow: string[];
1367
1374
  deny: string[];
1368
1375
  } | undefined;
1369
- tools?: string[] | undefined;
1370
- model?: string | undefined;
1371
1376
  inherit_bypass?: boolean | undefined;
1372
1377
  }> | undefined;
1373
1378
  tool_config?: Record<string, unknown> | undefined;
@@ -1378,12 +1383,12 @@ declare const channelSchema: z.ZodObject<{
1378
1383
  sub_agents?: Record<string, {
1379
1384
  description: string;
1380
1385
  instructions: string;
1386
+ tools?: string[] | undefined;
1387
+ model?: string | undefined;
1381
1388
  permissions?: "inherit" | "scoped" | {
1382
1389
  allow: string[];
1383
1390
  deny: string[];
1384
1391
  } | undefined;
1385
- tools?: string[] | undefined;
1386
- model?: string | undefined;
1387
1392
  inherit_bypass?: boolean | undefined;
1388
1393
  }> | undefined;
1389
1394
  tool_config?: Record<string, unknown> | undefined;
@@ -1548,9 +1553,9 @@ declare const channelSchema: z.ZodObject<{
1548
1553
  routing: z.ZodObject<{
1549
1554
  sessionKey: z.ZodEnum<["thread", "user", "channel"]>;
1550
1555
  }, "strict", z.ZodTypeAny, {
1551
- sessionKey: "channel" | "thread" | "user";
1556
+ sessionKey: "thread" | "user" | "channel";
1552
1557
  }, {
1553
- sessionKey: "channel" | "thread" | "user";
1558
+ sessionKey: "thread" | "user" | "channel";
1554
1559
  }>;
1555
1560
  mcp_servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
1556
1561
  transport: z.ZodLiteral<"stdio">;
@@ -1560,13 +1565,13 @@ declare const channelSchema: z.ZodObject<{
1560
1565
  }, "strict", z.ZodTypeAny, {
1561
1566
  transport: "stdio";
1562
1567
  command: string;
1563
- env?: Record<string, string> | undefined;
1564
1568
  args?: string[] | undefined;
1569
+ env?: Record<string, string> | undefined;
1565
1570
  }, {
1566
1571
  transport: "stdio";
1567
1572
  command: string;
1568
- env?: Record<string, string> | undefined;
1569
1573
  args?: string[] | undefined;
1574
+ env?: Record<string, string> | undefined;
1570
1575
  }>, z.ZodObject<{
1571
1576
  transport: z.ZodLiteral<"sse">;
1572
1577
  url: z.ZodString;
@@ -1751,14 +1756,14 @@ declare const channelSchema: z.ZodObject<{
1751
1756
  address: z.ZodString;
1752
1757
  abiRef: z.ZodString;
1753
1758
  }, "strict", z.ZodTypeAny, {
1754
- address: string;
1755
1759
  id: string;
1756
1760
  chainId: string;
1761
+ address: string;
1757
1762
  abiRef: string;
1758
1763
  }, {
1759
- address: string;
1760
1764
  id: string;
1761
1765
  chainId: string;
1766
+ address: string;
1762
1767
  abiRef: string;
1763
1768
  }>, "many">>;
1764
1769
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -1790,12 +1795,12 @@ declare const channelSchema: z.ZodObject<{
1790
1795
  sub_agents?: Record<string, {
1791
1796
  description: string;
1792
1797
  instructions: string;
1798
+ tools?: string[] | undefined;
1799
+ model?: string | undefined;
1793
1800
  permissions?: "inherit" | "scoped" | {
1794
1801
  allow: string[];
1795
1802
  deny: string[];
1796
1803
  } | undefined;
1797
- tools?: string[] | undefined;
1798
- model?: string | undefined;
1799
1804
  inherit_bypass?: boolean | undefined;
1800
1805
  }> | undefined;
1801
1806
  tool_config?: Record<string, unknown> | undefined;
@@ -1826,7 +1831,7 @@ declare const channelSchema: z.ZodObject<{
1826
1831
  } | undefined;
1827
1832
  };
1828
1833
  routing: {
1829
- sessionKey: "channel" | "thread" | "user";
1834
+ sessionKey: "thread" | "user" | "channel";
1830
1835
  };
1831
1836
  permissions?: {
1832
1837
  mode?: "default" | "plan" | "auto" | undefined;
@@ -1838,8 +1843,8 @@ declare const channelSchema: z.ZodObject<{
1838
1843
  mcp_servers?: Record<string, {
1839
1844
  transport: "stdio";
1840
1845
  command: string;
1841
- env?: Record<string, string> | undefined;
1842
1846
  args?: string[] | undefined;
1847
+ env?: Record<string, string> | undefined;
1843
1848
  } | {
1844
1849
  transport: "sse";
1845
1850
  url: string;
@@ -1880,9 +1885,9 @@ declare const channelSchema: z.ZodObject<{
1880
1885
  keyRef?: string | undefined;
1881
1886
  }[] | undefined;
1882
1887
  contracts?: {
1883
- address: string;
1884
1888
  id: string;
1885
1889
  chainId: string;
1890
+ address: string;
1886
1891
  abiRef: string;
1887
1892
  }[] | undefined;
1888
1893
  transaction_policy?: {
@@ -1910,12 +1915,12 @@ declare const channelSchema: z.ZodObject<{
1910
1915
  sub_agents?: Record<string, {
1911
1916
  description: string;
1912
1917
  instructions: string;
1918
+ tools?: string[] | undefined;
1919
+ model?: string | undefined;
1913
1920
  permissions?: "inherit" | "scoped" | {
1914
1921
  allow: string[];
1915
1922
  deny: string[];
1916
1923
  } | undefined;
1917
- tools?: string[] | undefined;
1918
- model?: string | undefined;
1919
1924
  inherit_bypass?: boolean | undefined;
1920
1925
  }> | undefined;
1921
1926
  tool_config?: Record<string, unknown> | undefined;
@@ -1946,7 +1951,7 @@ declare const channelSchema: z.ZodObject<{
1946
1951
  } | undefined;
1947
1952
  };
1948
1953
  routing: {
1949
- sessionKey: "channel" | "thread" | "user";
1954
+ sessionKey: "thread" | "user" | "channel";
1950
1955
  };
1951
1956
  permissions?: {
1952
1957
  mode?: "default" | "plan" | "auto" | undefined;
@@ -1958,8 +1963,8 @@ declare const channelSchema: z.ZodObject<{
1958
1963
  mcp_servers?: Record<string, {
1959
1964
  transport: "stdio";
1960
1965
  command: string;
1961
- env?: Record<string, string> | undefined;
1962
1966
  args?: string[] | undefined;
1967
+ env?: Record<string, string> | undefined;
1963
1968
  } | {
1964
1969
  transport: "sse";
1965
1970
  url: string;
@@ -2000,9 +2005,9 @@ declare const channelSchema: z.ZodObject<{
2000
2005
  keyRef?: string | undefined;
2001
2006
  }[] | undefined;
2002
2007
  contracts?: {
2003
- address: string;
2004
2008
  id: string;
2005
2009
  chainId: string;
2010
+ address: string;
2006
2011
  abiRef: string;
2007
2012
  }[] | undefined;
2008
2013
  transaction_policy?: {
@@ -2265,14 +2270,14 @@ declare const graphSchema: z.ZodObject<{
2265
2270
  address: z.ZodString;
2266
2271
  abiRef: z.ZodString;
2267
2272
  }, "strict", z.ZodTypeAny, {
2268
- address: string;
2269
2273
  id: string;
2270
2274
  chainId: string;
2275
+ address: string;
2271
2276
  abiRef: string;
2272
2277
  }, {
2273
- address: string;
2274
2278
  id: string;
2275
2279
  chainId: string;
2280
+ address: string;
2276
2281
  abiRef: string;
2277
2282
  }>, "many">>;
2278
2283
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -2295,8 +2300,8 @@ declare const graphSchema: z.ZodObject<{
2295
2300
  simulationRequired?: boolean | undefined;
2296
2301
  }>>;
2297
2302
  }, "strict", z.ZodTypeAny, {
2298
- name: string;
2299
2303
  model: string;
2304
+ name: string;
2300
2305
  target: "graph";
2301
2306
  entry: string;
2302
2307
  nodes: Record<string, {
@@ -2354,9 +2359,9 @@ declare const graphSchema: z.ZodObject<{
2354
2359
  keyRef?: string | undefined;
2355
2360
  }[] | undefined;
2356
2361
  contracts?: {
2357
- address: string;
2358
2362
  id: string;
2359
2363
  chainId: string;
2364
+ address: string;
2360
2365
  abiRef: string;
2361
2366
  }[] | undefined;
2362
2367
  transaction_policy?: {
@@ -2367,8 +2372,8 @@ declare const graphSchema: z.ZodObject<{
2367
2372
  maxValueWei?: string | undefined;
2368
2373
  } | undefined;
2369
2374
  }, {
2370
- name: string;
2371
2375
  model: string;
2376
+ name: string;
2372
2377
  target: "graph";
2373
2378
  entry: string;
2374
2379
  nodes: Record<string, {
@@ -2422,9 +2427,9 @@ declare const graphSchema: z.ZodObject<{
2422
2427
  keyRef?: string | undefined;
2423
2428
  }[] | undefined;
2424
2429
  contracts?: {
2425
- address: string;
2426
2430
  id: string;
2427
2431
  chainId: string;
2432
+ address: string;
2428
2433
  abiRef: string;
2429
2434
  }[] | undefined;
2430
2435
  transaction_policy?: {
@@ -2904,22 +2909,22 @@ declare const crewRoleSchema: z.ZodObject<{
2904
2909
  }, "strict", z.ZodTypeAny, {
2905
2910
  description: string;
2906
2911
  instructions: string;
2912
+ tools?: string[] | undefined;
2913
+ model?: string | undefined;
2907
2914
  permissions?: "inherit" | "scoped" | {
2908
2915
  allow: string[];
2909
2916
  deny: string[];
2910
2917
  } | undefined;
2911
- tools?: string[] | undefined;
2912
- model?: string | undefined;
2913
2918
  inherit_bypass?: boolean | undefined;
2914
2919
  }, {
2915
2920
  description: string;
2916
2921
  instructions: string;
2922
+ tools?: string[] | undefined;
2923
+ model?: string | undefined;
2917
2924
  permissions?: "inherit" | "scoped" | {
2918
2925
  allow: string[];
2919
2926
  deny: string[];
2920
2927
  } | undefined;
2921
- tools?: string[] | undefined;
2922
- model?: string | undefined;
2923
2928
  inherit_bypass?: boolean | undefined;
2924
2929
  }>>>;
2925
2930
  }, "strict", z.ZodTypeAny, {
@@ -2929,12 +2934,12 @@ declare const crewRoleSchema: z.ZodObject<{
2929
2934
  sub_agents?: Record<string, {
2930
2935
  description: string;
2931
2936
  instructions: string;
2937
+ tools?: string[] | undefined;
2938
+ model?: string | undefined;
2932
2939
  permissions?: "inherit" | "scoped" | {
2933
2940
  allow: string[];
2934
2941
  deny: string[];
2935
2942
  } | undefined;
2936
- tools?: string[] | undefined;
2937
- model?: string | undefined;
2938
2943
  inherit_bypass?: boolean | undefined;
2939
2944
  }> | undefined;
2940
2945
  tool_config?: Record<string, unknown> | undefined;
@@ -2945,12 +2950,12 @@ declare const crewRoleSchema: z.ZodObject<{
2945
2950
  sub_agents?: Record<string, {
2946
2951
  description: string;
2947
2952
  instructions: string;
2953
+ tools?: string[] | undefined;
2954
+ model?: string | undefined;
2948
2955
  permissions?: "inherit" | "scoped" | {
2949
2956
  allow: string[];
2950
2957
  deny: string[];
2951
2958
  } | undefined;
2952
- tools?: string[] | undefined;
2953
- model?: string | undefined;
2954
2959
  inherit_bypass?: boolean | undefined;
2955
2960
  }> | undefined;
2956
2961
  tool_config?: Record<string, unknown> | undefined;
@@ -3010,22 +3015,22 @@ declare const crewSchema: z.ZodObject<{
3010
3015
  }, "strict", z.ZodTypeAny, {
3011
3016
  description: string;
3012
3017
  instructions: string;
3018
+ tools?: string[] | undefined;
3019
+ model?: string | undefined;
3013
3020
  permissions?: "inherit" | "scoped" | {
3014
3021
  allow: string[];
3015
3022
  deny: string[];
3016
3023
  } | undefined;
3017
- tools?: string[] | undefined;
3018
- model?: string | undefined;
3019
3024
  inherit_bypass?: boolean | undefined;
3020
3025
  }, {
3021
3026
  description: string;
3022
3027
  instructions: string;
3028
+ tools?: string[] | undefined;
3029
+ model?: string | undefined;
3023
3030
  permissions?: "inherit" | "scoped" | {
3024
3031
  allow: string[];
3025
3032
  deny: string[];
3026
3033
  } | undefined;
3027
- tools?: string[] | undefined;
3028
- model?: string | undefined;
3029
3034
  inherit_bypass?: boolean | undefined;
3030
3035
  }>>>;
3031
3036
  }, "strict", z.ZodTypeAny, {
@@ -3035,12 +3040,12 @@ declare const crewSchema: z.ZodObject<{
3035
3040
  sub_agents?: Record<string, {
3036
3041
  description: string;
3037
3042
  instructions: string;
3043
+ tools?: string[] | undefined;
3044
+ model?: string | undefined;
3038
3045
  permissions?: "inherit" | "scoped" | {
3039
3046
  allow: string[];
3040
3047
  deny: string[];
3041
3048
  } | undefined;
3042
- tools?: string[] | undefined;
3043
- model?: string | undefined;
3044
3049
  inherit_bypass?: boolean | undefined;
3045
3050
  }> | undefined;
3046
3051
  tool_config?: Record<string, unknown> | undefined;
@@ -3051,12 +3056,12 @@ declare const crewSchema: z.ZodObject<{
3051
3056
  sub_agents?: Record<string, {
3052
3057
  description: string;
3053
3058
  instructions: string;
3059
+ tools?: string[] | undefined;
3060
+ model?: string | undefined;
3054
3061
  permissions?: "inherit" | "scoped" | {
3055
3062
  allow: string[];
3056
3063
  deny: string[];
3057
3064
  } | undefined;
3058
- tools?: string[] | undefined;
3059
- model?: string | undefined;
3060
3065
  inherit_bypass?: boolean | undefined;
3061
3066
  }> | undefined;
3062
3067
  tool_config?: Record<string, unknown> | undefined;
@@ -3094,13 +3099,13 @@ declare const crewSchema: z.ZodObject<{
3094
3099
  }, "strict", z.ZodTypeAny, {
3095
3100
  transport: "stdio";
3096
3101
  command: string;
3097
- env?: Record<string, string> | undefined;
3098
3102
  args?: string[] | undefined;
3103
+ env?: Record<string, string> | undefined;
3099
3104
  }, {
3100
3105
  transport: "stdio";
3101
3106
  command: string;
3102
- env?: Record<string, string> | undefined;
3103
3107
  args?: string[] | undefined;
3108
+ env?: Record<string, string> | undefined;
3104
3109
  }>, z.ZodObject<{
3105
3110
  transport: z.ZodLiteral<"sse">;
3106
3111
  url: z.ZodString;
@@ -3265,14 +3270,14 @@ declare const crewSchema: z.ZodObject<{
3265
3270
  address: z.ZodString;
3266
3271
  abiRef: z.ZodString;
3267
3272
  }, "strict", z.ZodTypeAny, {
3268
- address: string;
3269
3273
  id: string;
3270
3274
  chainId: string;
3275
+ address: string;
3271
3276
  abiRef: string;
3272
3277
  }, {
3273
- address: string;
3274
3278
  id: string;
3275
3279
  chainId: string;
3280
+ address: string;
3276
3281
  abiRef: string;
3277
3282
  }>, "many">>;
3278
3283
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -3295,8 +3300,8 @@ declare const crewSchema: z.ZodObject<{
3295
3300
  simulationRequired?: boolean | undefined;
3296
3301
  }>>;
3297
3302
  }, "strict", z.ZodTypeAny, {
3298
- name: string;
3299
3303
  model: string;
3304
+ name: string;
3300
3305
  target: "crew";
3301
3306
  entry: string;
3302
3307
  roles: Record<string, {
@@ -3306,12 +3311,12 @@ declare const crewSchema: z.ZodObject<{
3306
3311
  sub_agents?: Record<string, {
3307
3312
  description: string;
3308
3313
  instructions: string;
3314
+ tools?: string[] | undefined;
3315
+ model?: string | undefined;
3309
3316
  permissions?: "inherit" | "scoped" | {
3310
3317
  allow: string[];
3311
3318
  deny: string[];
3312
3319
  } | undefined;
3313
- tools?: string[] | undefined;
3314
- model?: string | undefined;
3315
3320
  inherit_bypass?: boolean | undefined;
3316
3321
  }> | undefined;
3317
3322
  tool_config?: Record<string, unknown> | undefined;
@@ -3326,8 +3331,8 @@ declare const crewSchema: z.ZodObject<{
3326
3331
  mcp_servers?: Record<string, {
3327
3332
  transport: "stdio";
3328
3333
  command: string;
3329
- env?: Record<string, string> | undefined;
3330
3334
  args?: string[] | undefined;
3335
+ env?: Record<string, string> | undefined;
3331
3336
  } | {
3332
3337
  transport: "sse";
3333
3338
  url: string;
@@ -3368,9 +3373,9 @@ declare const crewSchema: z.ZodObject<{
3368
3373
  keyRef?: string | undefined;
3369
3374
  }[] | undefined;
3370
3375
  contracts?: {
3371
- address: string;
3372
3376
  id: string;
3373
3377
  chainId: string;
3378
+ address: string;
3374
3379
  abiRef: string;
3375
3380
  }[] | undefined;
3376
3381
  transaction_policy?: {
@@ -3388,8 +3393,8 @@ declare const crewSchema: z.ZodObject<{
3388
3393
  }[]> | undefined;
3389
3394
  } | undefined;
3390
3395
  }, {
3391
- name: string;
3392
3396
  model: string;
3397
+ name: string;
3393
3398
  target: "crew";
3394
3399
  entry: string;
3395
3400
  roles: Record<string, {
@@ -3399,12 +3404,12 @@ declare const crewSchema: z.ZodObject<{
3399
3404
  sub_agents?: Record<string, {
3400
3405
  description: string;
3401
3406
  instructions: string;
3407
+ tools?: string[] | undefined;
3408
+ model?: string | undefined;
3402
3409
  permissions?: "inherit" | "scoped" | {
3403
3410
  allow: string[];
3404
3411
  deny: string[];
3405
3412
  } | undefined;
3406
- tools?: string[] | undefined;
3407
- model?: string | undefined;
3408
3413
  inherit_bypass?: boolean | undefined;
3409
3414
  }> | undefined;
3410
3415
  tool_config?: Record<string, unknown> | undefined;
@@ -3419,8 +3424,8 @@ declare const crewSchema: z.ZodObject<{
3419
3424
  mcp_servers?: Record<string, {
3420
3425
  transport: "stdio";
3421
3426
  command: string;
3422
- env?: Record<string, string> | undefined;
3423
3427
  args?: string[] | undefined;
3428
+ env?: Record<string, string> | undefined;
3424
3429
  } | {
3425
3430
  transport: "sse";
3426
3431
  url: string;
@@ -3461,9 +3466,9 @@ declare const crewSchema: z.ZodObject<{
3461
3466
  keyRef?: string | undefined;
3462
3467
  }[] | undefined;
3463
3468
  contracts?: {
3464
- address: string;
3465
3469
  id: string;
3466
3470
  chainId: string;
3471
+ address: string;
3467
3472
  abiRef: string;
3468
3473
  }[] | undefined;
3469
3474
  transaction_policy?: {
@@ -3533,13 +3538,13 @@ declare const researchSchema: z.ZodObject<{
3533
3538
  }, "strict", z.ZodTypeAny, {
3534
3539
  transport: "stdio";
3535
3540
  command: string;
3536
- env?: Record<string, string> | undefined;
3537
3541
  args?: string[] | undefined;
3542
+ env?: Record<string, string> | undefined;
3538
3543
  }, {
3539
3544
  transport: "stdio";
3540
3545
  command: string;
3541
- env?: Record<string, string> | undefined;
3542
3546
  args?: string[] | undefined;
3547
+ env?: Record<string, string> | undefined;
3543
3548
  }>, z.ZodObject<{
3544
3549
  transport: z.ZodLiteral<"sse">;
3545
3550
  url: z.ZodString;
@@ -3704,14 +3709,14 @@ declare const researchSchema: z.ZodObject<{
3704
3709
  address: z.ZodString;
3705
3710
  abiRef: z.ZodString;
3706
3711
  }, "strict", z.ZodTypeAny, {
3707
- address: string;
3708
3712
  id: string;
3709
3713
  chainId: string;
3714
+ address: string;
3710
3715
  abiRef: string;
3711
3716
  }, {
3712
- address: string;
3713
3717
  id: string;
3714
3718
  chainId: string;
3719
+ address: string;
3715
3720
  abiRef: string;
3716
3721
  }>, "many">>;
3717
3722
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -3748,6 +3753,7 @@ declare const researchSchema: z.ZodObject<{
3748
3753
  goal: string;
3749
3754
  branchingFactor: number;
3750
3755
  maxDurationMs: number;
3756
+ tools?: string[] | undefined;
3751
3757
  permissions?: {
3752
3758
  mode?: "default" | "plan" | "auto" | undefined;
3753
3759
  rules?: {
@@ -3755,13 +3761,12 @@ declare const researchSchema: z.ZodObject<{
3755
3761
  pattern: string;
3756
3762
  }[] | undefined;
3757
3763
  } | undefined;
3758
- tools?: string[] | undefined;
3759
3764
  tool_config?: Record<string, unknown> | undefined;
3760
3765
  mcp_servers?: Record<string, {
3761
3766
  transport: "stdio";
3762
3767
  command: string;
3763
- env?: Record<string, string> | undefined;
3764
3768
  args?: string[] | undefined;
3769
+ env?: Record<string, string> | undefined;
3765
3770
  } | {
3766
3771
  transport: "sse";
3767
3772
  url: string;
@@ -3802,9 +3807,9 @@ declare const researchSchema: z.ZodObject<{
3802
3807
  keyRef?: string | undefined;
3803
3808
  }[] | undefined;
3804
3809
  contracts?: {
3805
- address: string;
3806
3810
  id: string;
3807
3811
  chainId: string;
3812
+ address: string;
3808
3813
  abiRef: string;
3809
3814
  }[] | undefined;
3810
3815
  transaction_policy?: {
@@ -3822,6 +3827,7 @@ declare const researchSchema: z.ZodObject<{
3822
3827
  model: string;
3823
3828
  };
3824
3829
  goal: string;
3830
+ tools?: string[] | undefined;
3825
3831
  permissions?: {
3826
3832
  mode?: "default" | "plan" | "auto" | undefined;
3827
3833
  rules?: {
@@ -3829,13 +3835,12 @@ declare const researchSchema: z.ZodObject<{
3829
3835
  pattern: string;
3830
3836
  }[] | undefined;
3831
3837
  } | undefined;
3832
- tools?: string[] | undefined;
3833
3838
  tool_config?: Record<string, unknown> | undefined;
3834
3839
  mcp_servers?: Record<string, {
3835
3840
  transport: "stdio";
3836
3841
  command: string;
3837
- env?: Record<string, string> | undefined;
3838
3842
  args?: string[] | undefined;
3843
+ env?: Record<string, string> | undefined;
3839
3844
  } | {
3840
3845
  transport: "sse";
3841
3846
  url: string;
@@ -3876,9 +3881,9 @@ declare const researchSchema: z.ZodObject<{
3876
3881
  keyRef?: string | undefined;
3877
3882
  }[] | undefined;
3878
3883
  contracts?: {
3879
- address: string;
3880
3884
  id: string;
3881
3885
  chainId: string;
3886
+ address: string;
3882
3887
  abiRef: string;
3883
3888
  }[] | undefined;
3884
3889
  transaction_policy?: {
@@ -3959,13 +3964,13 @@ declare const batchSchema: z.ZodObject<{
3959
3964
  }, "strict", z.ZodTypeAny, {
3960
3965
  transport: "stdio";
3961
3966
  command: string;
3962
- env?: Record<string, string> | undefined;
3963
3967
  args?: string[] | undefined;
3968
+ env?: Record<string, string> | undefined;
3964
3969
  }, {
3965
3970
  transport: "stdio";
3966
3971
  command: string;
3967
- env?: Record<string, string> | undefined;
3968
3972
  args?: string[] | undefined;
3973
+ env?: Record<string, string> | undefined;
3969
3974
  }>, z.ZodObject<{
3970
3975
  transport: z.ZodLiteral<"sse">;
3971
3976
  url: z.ZodString;
@@ -4130,14 +4135,14 @@ declare const batchSchema: z.ZodObject<{
4130
4135
  address: z.ZodString;
4131
4136
  abiRef: z.ZodString;
4132
4137
  }, "strict", z.ZodTypeAny, {
4133
- address: string;
4134
4138
  id: string;
4135
4139
  chainId: string;
4140
+ address: string;
4136
4141
  abiRef: string;
4137
4142
  }, {
4138
- address: string;
4139
4143
  id: string;
4140
4144
  chainId: string;
4145
+ address: string;
4141
4146
  abiRef: string;
4142
4147
  }>, "many">>;
4143
4148
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -4175,6 +4180,7 @@ declare const batchSchema: z.ZodObject<{
4175
4180
  };
4176
4181
  concurrency: number;
4177
4182
  idempotencyWindowMs: number;
4183
+ tools?: string[] | undefined;
4178
4184
  permissions?: {
4179
4185
  mode?: "default" | "plan" | "auto" | undefined;
4180
4186
  rules?: {
@@ -4182,13 +4188,12 @@ declare const batchSchema: z.ZodObject<{
4182
4188
  pattern: string;
4183
4189
  }[] | undefined;
4184
4190
  } | undefined;
4185
- tools?: string[] | undefined;
4186
4191
  tool_config?: Record<string, unknown> | undefined;
4187
4192
  mcp_servers?: Record<string, {
4188
4193
  transport: "stdio";
4189
4194
  command: string;
4190
- env?: Record<string, string> | undefined;
4191
4195
  args?: string[] | undefined;
4196
+ env?: Record<string, string> | undefined;
4192
4197
  } | {
4193
4198
  transport: "sse";
4194
4199
  url: string;
@@ -4229,9 +4234,9 @@ declare const batchSchema: z.ZodObject<{
4229
4234
  keyRef?: string | undefined;
4230
4235
  }[] | undefined;
4231
4236
  contracts?: {
4232
- address: string;
4233
4237
  id: string;
4234
4238
  chainId: string;
4239
+ address: string;
4235
4240
  abiRef: string;
4236
4241
  }[] | undefined;
4237
4242
  transaction_policy?: {
@@ -4255,6 +4260,7 @@ declare const batchSchema: z.ZodObject<{
4255
4260
  maxRetries?: number | undefined;
4256
4261
  seedJobs?: string[] | undefined;
4257
4262
  };
4263
+ tools?: string[] | undefined;
4258
4264
  permissions?: {
4259
4265
  mode?: "default" | "plan" | "auto" | undefined;
4260
4266
  rules?: {
@@ -4262,13 +4268,12 @@ declare const batchSchema: z.ZodObject<{
4262
4268
  pattern: string;
4263
4269
  }[] | undefined;
4264
4270
  } | undefined;
4265
- tools?: string[] | undefined;
4266
4271
  tool_config?: Record<string, unknown> | undefined;
4267
4272
  mcp_servers?: Record<string, {
4268
4273
  transport: "stdio";
4269
4274
  command: string;
4270
- env?: Record<string, string> | undefined;
4271
4275
  args?: string[] | undefined;
4276
+ env?: Record<string, string> | undefined;
4272
4277
  } | {
4273
4278
  transport: "sse";
4274
4279
  url: string;
@@ -4309,9 +4314,9 @@ declare const batchSchema: z.ZodObject<{
4309
4314
  keyRef?: string | undefined;
4310
4315
  }[] | undefined;
4311
4316
  contracts?: {
4312
- address: string;
4313
4317
  id: string;
4314
4318
  chainId: string;
4319
+ address: string;
4315
4320
  abiRef: string;
4316
4321
  }[] | undefined;
4317
4322
  transaction_policy?: {
@@ -4399,13 +4404,13 @@ declare const voiceSchema: z.ZodObject<{
4399
4404
  }, "strict", z.ZodTypeAny, {
4400
4405
  transport: "stdio";
4401
4406
  command: string;
4402
- env?: Record<string, string> | undefined;
4403
4407
  args?: string[] | undefined;
4408
+ env?: Record<string, string> | undefined;
4404
4409
  }, {
4405
4410
  transport: "stdio";
4406
4411
  command: string;
4407
- env?: Record<string, string> | undefined;
4408
4412
  args?: string[] | undefined;
4413
+ env?: Record<string, string> | undefined;
4409
4414
  }>, z.ZodObject<{
4410
4415
  transport: z.ZodLiteral<"sse">;
4411
4416
  url: z.ZodString;
@@ -4490,6 +4495,11 @@ declare const voiceSchema: z.ZodObject<{
4490
4495
  }>, "many">>;
4491
4496
  }, "strict", z.ZodTypeAny, {
4492
4497
  name: string;
4498
+ target: "voice";
4499
+ agent: {
4500
+ instructions: string;
4501
+ model: string;
4502
+ };
4493
4503
  voice: {
4494
4504
  provider: "openai" | "vapi";
4495
4505
  voiceId: string;
@@ -4497,11 +4507,7 @@ declare const voiceSchema: z.ZodObject<{
4497
4507
  bargeInTriggerFrames: number;
4498
4508
  bargeInWindowMs: number;
4499
4509
  };
4500
- target: "voice";
4501
- agent: {
4502
- instructions: string;
4503
- model: string;
4504
- };
4510
+ tools?: string[] | undefined;
4505
4511
  permissions?: {
4506
4512
  mode?: "default" | "plan" | "auto" | undefined;
4507
4513
  rules?: {
@@ -4509,13 +4515,12 @@ declare const voiceSchema: z.ZodObject<{
4509
4515
  pattern: string;
4510
4516
  }[] | undefined;
4511
4517
  } | undefined;
4512
- tools?: string[] | undefined;
4513
4518
  tool_config?: Record<string, unknown> | undefined;
4514
4519
  mcp_servers?: Record<string, {
4515
4520
  transport: "stdio";
4516
4521
  command: string;
4517
- env?: Record<string, string> | undefined;
4518
4522
  args?: string[] | undefined;
4523
+ env?: Record<string, string> | undefined;
4519
4524
  } | {
4520
4525
  transport: "sse";
4521
4526
  url: string;
@@ -4538,6 +4543,11 @@ declare const voiceSchema: z.ZodObject<{
4538
4543
  } | undefined;
4539
4544
  }, {
4540
4545
  name: string;
4546
+ target: "voice";
4547
+ agent: {
4548
+ instructions: string;
4549
+ model: string;
4550
+ };
4541
4551
  voice: {
4542
4552
  provider: "openai" | "vapi";
4543
4553
  voiceId?: string | undefined;
@@ -4545,11 +4555,7 @@ declare const voiceSchema: z.ZodObject<{
4545
4555
  bargeInTriggerFrames?: number | undefined;
4546
4556
  bargeInWindowMs?: number | undefined;
4547
4557
  };
4548
- target: "voice";
4549
- agent: {
4550
- instructions: string;
4551
- model: string;
4552
- };
4558
+ tools?: string[] | undefined;
4553
4559
  permissions?: {
4554
4560
  mode?: "default" | "plan" | "auto" | undefined;
4555
4561
  rules?: {
@@ -4557,13 +4563,12 @@ declare const voiceSchema: z.ZodObject<{
4557
4563
  pattern: string;
4558
4564
  }[] | undefined;
4559
4565
  } | undefined;
4560
- tools?: string[] | undefined;
4561
4566
  tool_config?: Record<string, unknown> | undefined;
4562
4567
  mcp_servers?: Record<string, {
4563
4568
  transport: "stdio";
4564
4569
  command: string;
4565
- env?: Record<string, string> | undefined;
4566
4570
  args?: string[] | undefined;
4571
+ env?: Record<string, string> | undefined;
4567
4572
  } | {
4568
4573
  transport: "sse";
4569
4574
  url: string;
@@ -4666,13 +4671,13 @@ declare const browserSchema: z.ZodObject<{
4666
4671
  }, "strict", z.ZodTypeAny, {
4667
4672
  transport: "stdio";
4668
4673
  command: string;
4669
- env?: Record<string, string> | undefined;
4670
4674
  args?: string[] | undefined;
4675
+ env?: Record<string, string> | undefined;
4671
4676
  }, {
4672
4677
  transport: "stdio";
4673
4678
  command: string;
4674
- env?: Record<string, string> | undefined;
4675
4679
  args?: string[] | undefined;
4680
+ env?: Record<string, string> | undefined;
4676
4681
  }>, z.ZodObject<{
4677
4682
  transport: z.ZodLiteral<"sse">;
4678
4683
  url: z.ZodString;
@@ -4770,6 +4775,7 @@ declare const browserSchema: z.ZodObject<{
4770
4775
  };
4771
4776
  startUrl?: string | undefined;
4772
4777
  };
4778
+ tools?: string[] | undefined;
4773
4779
  permissions?: {
4774
4780
  mode?: "default" | "plan" | "auto" | undefined;
4775
4781
  rules?: {
@@ -4777,13 +4783,12 @@ declare const browserSchema: z.ZodObject<{
4777
4783
  pattern: string;
4778
4784
  }[] | undefined;
4779
4785
  } | undefined;
4780
- tools?: string[] | undefined;
4781
4786
  tool_config?: Record<string, unknown> | undefined;
4782
4787
  mcp_servers?: Record<string, {
4783
4788
  transport: "stdio";
4784
4789
  command: string;
4785
- env?: Record<string, string> | undefined;
4786
4790
  args?: string[] | undefined;
4791
+ env?: Record<string, string> | undefined;
4787
4792
  } | {
4788
4793
  transport: "sse";
4789
4794
  url: string;
@@ -4809,6 +4814,7 @@ declare const browserSchema: z.ZodObject<{
4809
4814
  instructions: string;
4810
4815
  model: string;
4811
4816
  };
4817
+ tools?: string[] | undefined;
4812
4818
  permissions?: {
4813
4819
  mode?: "default" | "plan" | "auto" | undefined;
4814
4820
  rules?: {
@@ -4816,13 +4822,12 @@ declare const browserSchema: z.ZodObject<{
4816
4822
  pattern: string;
4817
4823
  }[] | undefined;
4818
4824
  } | undefined;
4819
- tools?: string[] | undefined;
4820
4825
  tool_config?: Record<string, unknown> | undefined;
4821
4826
  mcp_servers?: Record<string, {
4822
4827
  transport: "stdio";
4823
4828
  command: string;
4824
- env?: Record<string, string> | undefined;
4825
4829
  args?: string[] | undefined;
4830
+ env?: Record<string, string> | undefined;
4826
4831
  } | {
4827
4832
  transport: "sse";
4828
4833
  url: string;
@@ -4980,15 +4985,15 @@ declare const onchainTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject
4980
4985
  event: z.ZodString;
4981
4986
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4982
4987
  }, "strict", z.ZodTypeAny, {
4983
- event: string;
4984
4988
  kind: "event";
4985
4989
  chainId: string;
4990
+ event: string;
4986
4991
  contract: string;
4987
4992
  filter?: Record<string, unknown> | undefined;
4988
4993
  }, {
4989
- event: string;
4990
4994
  kind: "event";
4991
4995
  chainId: string;
4996
+ event: string;
4992
4997
  contract: string;
4993
4998
  filter?: Record<string, unknown> | undefined;
4994
4999
  }>, z.ZodObject<{
@@ -5009,14 +5014,14 @@ declare const onchainTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject
5009
5014
  address: z.ZodString;
5010
5015
  direction: z.ZodDefault<z.ZodEnum<["in", "out", "both"]>>;
5011
5016
  }, "strict", z.ZodTypeAny, {
5012
- address: string;
5013
5017
  kind: "address";
5014
5018
  chainId: string;
5019
+ address: string;
5015
5020
  direction: "in" | "out" | "both";
5016
5021
  }, {
5017
- address: string;
5018
5022
  kind: "address";
5019
5023
  chainId: string;
5024
+ address: string;
5020
5025
  direction?: "in" | "out" | "both" | undefined;
5021
5026
  }>]>;
5022
5027
  declare const onchainSchema: z.ZodObject<{
@@ -5114,14 +5119,14 @@ declare const onchainSchema: z.ZodObject<{
5114
5119
  address: z.ZodString;
5115
5120
  abiRef: z.ZodString;
5116
5121
  }, "strict", z.ZodTypeAny, {
5117
- address: string;
5118
5122
  id: string;
5119
5123
  chainId: string;
5124
+ address: string;
5120
5125
  abiRef: string;
5121
5126
  }, {
5122
- address: string;
5123
5127
  id: string;
5124
5128
  chainId: string;
5129
+ address: string;
5125
5130
  abiRef: string;
5126
5131
  }>, "many">>;
5127
5132
  transaction_policy: z.ZodDefault<z.ZodObject<{
@@ -5150,15 +5155,15 @@ declare const onchainSchema: z.ZodObject<{
5150
5155
  event: z.ZodString;
5151
5156
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5152
5157
  }, "strict", z.ZodTypeAny, {
5153
- event: string;
5154
5158
  kind: "event";
5155
5159
  chainId: string;
5160
+ event: string;
5156
5161
  contract: string;
5157
5162
  filter?: Record<string, unknown> | undefined;
5158
5163
  }, {
5159
- event: string;
5160
5164
  kind: "event";
5161
5165
  chainId: string;
5166
+ event: string;
5162
5167
  contract: string;
5163
5168
  filter?: Record<string, unknown> | undefined;
5164
5169
  }>, z.ZodObject<{
@@ -5179,14 +5184,14 @@ declare const onchainSchema: z.ZodObject<{
5179
5184
  address: z.ZodString;
5180
5185
  direction: z.ZodDefault<z.ZodEnum<["in", "out", "both"]>>;
5181
5186
  }, "strict", z.ZodTypeAny, {
5182
- address: string;
5183
5187
  kind: "address";
5184
5188
  chainId: string;
5189
+ address: string;
5185
5190
  direction: "in" | "out" | "both";
5186
5191
  }, {
5187
- address: string;
5188
5192
  kind: "address";
5189
5193
  chainId: string;
5194
+ address: string;
5190
5195
  direction?: "in" | "out" | "both" | undefined;
5191
5196
  }>]>, "many">;
5192
5197
  idempotencyWindowMs: z.ZodDefault<z.ZodNumber>;
@@ -5200,13 +5205,13 @@ declare const onchainSchema: z.ZodObject<{
5200
5205
  }, "strict", z.ZodTypeAny, {
5201
5206
  transport: "stdio";
5202
5207
  command: string;
5203
- env?: Record<string, string> | undefined;
5204
5208
  args?: string[] | undefined;
5209
+ env?: Record<string, string> | undefined;
5205
5210
  }, {
5206
5211
  transport: "stdio";
5207
5212
  command: string;
5208
- env?: Record<string, string> | undefined;
5209
5213
  args?: string[] | undefined;
5214
+ env?: Record<string, string> | undefined;
5210
5215
  }>, z.ZodObject<{
5211
5216
  transport: z.ZodLiteral<"sse">;
5212
5217
  url: z.ZodString;
@@ -5319,9 +5324,9 @@ declare const onchainSchema: z.ZodObject<{
5319
5324
  keyRef?: string | undefined;
5320
5325
  }[];
5321
5326
  contracts: {
5322
- address: string;
5323
5327
  id: string;
5324
5328
  chainId: string;
5329
+ address: string;
5325
5330
  abiRef: string;
5326
5331
  }[];
5327
5332
  transaction_policy: {
@@ -5333,9 +5338,9 @@ declare const onchainSchema: z.ZodObject<{
5333
5338
  };
5334
5339
  idempotencyWindowMs: number;
5335
5340
  triggers: ({
5336
- event: string;
5337
5341
  kind: "event";
5338
5342
  chainId: string;
5343
+ event: string;
5339
5344
  contract: string;
5340
5345
  filter?: Record<string, unknown> | undefined;
5341
5346
  } | {
@@ -5343,11 +5348,12 @@ declare const onchainSchema: z.ZodObject<{
5343
5348
  chainId: string;
5344
5349
  scanIntervalMs: number;
5345
5350
  } | {
5346
- address: string;
5347
5351
  kind: "address";
5348
5352
  chainId: string;
5353
+ address: string;
5349
5354
  direction: "in" | "out" | "both";
5350
5355
  })[];
5356
+ tools?: string[] | undefined;
5351
5357
  permissions?: {
5352
5358
  mode?: "default" | "plan" | "auto" | undefined;
5353
5359
  rules?: {
@@ -5355,13 +5361,12 @@ declare const onchainSchema: z.ZodObject<{
5355
5361
  pattern: string;
5356
5362
  }[] | undefined;
5357
5363
  } | undefined;
5358
- tools?: string[] | undefined;
5359
5364
  tool_config?: Record<string, unknown> | undefined;
5360
5365
  mcp_servers?: Record<string, {
5361
5366
  transport: "stdio";
5362
5367
  command: string;
5363
- env?: Record<string, string> | undefined;
5364
5368
  args?: string[] | undefined;
5369
+ env?: Record<string, string> | undefined;
5365
5370
  } | {
5366
5371
  transport: "sse";
5367
5372
  url: string;
@@ -5402,9 +5407,9 @@ declare const onchainSchema: z.ZodObject<{
5402
5407
  reorgTolerant?: boolean | undefined;
5403
5408
  }[];
5404
5409
  triggers: ({
5405
- event: string;
5406
5410
  kind: "event";
5407
5411
  chainId: string;
5412
+ event: string;
5408
5413
  contract: string;
5409
5414
  filter?: Record<string, unknown> | undefined;
5410
5415
  } | {
@@ -5412,11 +5417,12 @@ declare const onchainSchema: z.ZodObject<{
5412
5417
  chainId: string;
5413
5418
  scanIntervalMs: number;
5414
5419
  } | {
5415
- address: string;
5416
5420
  kind: "address";
5417
5421
  chainId: string;
5422
+ address: string;
5418
5423
  direction?: "in" | "out" | "both" | undefined;
5419
5424
  })[];
5425
+ tools?: string[] | undefined;
5420
5426
  permissions?: {
5421
5427
  mode?: "default" | "plan" | "auto" | undefined;
5422
5428
  rules?: {
@@ -5424,13 +5430,12 @@ declare const onchainSchema: z.ZodObject<{
5424
5430
  pattern: string;
5425
5431
  }[] | undefined;
5426
5432
  } | undefined;
5427
- tools?: string[] | undefined;
5428
5433
  tool_config?: Record<string, unknown> | undefined;
5429
5434
  mcp_servers?: Record<string, {
5430
5435
  transport: "stdio";
5431
5436
  command: string;
5432
- env?: Record<string, string> | undefined;
5433
5437
  args?: string[] | undefined;
5438
+ env?: Record<string, string> | undefined;
5434
5439
  } | {
5435
5440
  transport: "sse";
5436
5441
  url: string;
@@ -5456,9 +5461,9 @@ declare const onchainSchema: z.ZodObject<{
5456
5461
  keyRef?: string | undefined;
5457
5462
  }[] | undefined;
5458
5463
  contracts?: {
5459
- address: string;
5460
5464
  id: string;
5461
5465
  chainId: string;
5466
+ address: string;
5462
5467
  abiRef: string;
5463
5468
  }[] | undefined;
5464
5469
  transaction_policy?: {
@@ -5572,14 +5577,14 @@ declare const onchainGameSchema: z.ZodObject<{
5572
5577
  address: z.ZodString;
5573
5578
  abiRef: z.ZodString;
5574
5579
  }, "strict", z.ZodTypeAny, {
5575
- address: string;
5576
5580
  id: string;
5577
5581
  chainId: string;
5582
+ address: string;
5578
5583
  abiRef: string;
5579
5584
  }, {
5580
- address: string;
5581
5585
  id: string;
5582
5586
  chainId: string;
5587
+ address: string;
5583
5588
  abiRef: string;
5584
5589
  }>;
5585
5590
  stateReader: z.ZodString;
@@ -5589,9 +5594,9 @@ declare const onchainGameSchema: z.ZodObject<{
5589
5594
  objective: z.ZodOptional<z.ZodString>;
5590
5595
  }, "strict", z.ZodTypeAny, {
5591
5596
  contract: {
5592
- address: string;
5593
5597
  id: string;
5594
5598
  chainId: string;
5599
+ address: string;
5595
5600
  abiRef: string;
5596
5601
  };
5597
5602
  stateReader: string;
@@ -5601,9 +5606,9 @@ declare const onchainGameSchema: z.ZodObject<{
5601
5606
  objective?: string | undefined;
5602
5607
  }, {
5603
5608
  contract: {
5604
- address: string;
5605
5609
  id: string;
5606
5610
  chainId: string;
5611
+ address: string;
5607
5612
  abiRef: string;
5608
5613
  };
5609
5614
  stateReader: string;
@@ -5641,13 +5646,13 @@ declare const onchainGameSchema: z.ZodObject<{
5641
5646
  }, "strict", z.ZodTypeAny, {
5642
5647
  transport: "stdio";
5643
5648
  command: string;
5644
- env?: Record<string, string> | undefined;
5645
5649
  args?: string[] | undefined;
5650
+ env?: Record<string, string> | undefined;
5646
5651
  }, {
5647
5652
  transport: "stdio";
5648
5653
  command: string;
5649
- env?: Record<string, string> | undefined;
5650
5654
  args?: string[] | undefined;
5655
+ env?: Record<string, string> | undefined;
5651
5656
  }>, z.ZodObject<{
5652
5657
  transport: z.ZodLiteral<"sse">;
5653
5658
  url: z.ZodString;
@@ -5768,9 +5773,9 @@ declare const onchainGameSchema: z.ZodObject<{
5768
5773
  };
5769
5774
  game: {
5770
5775
  contract: {
5771
- address: string;
5772
5776
  id: string;
5773
5777
  chainId: string;
5778
+ address: string;
5774
5779
  abiRef: string;
5775
5780
  };
5776
5781
  stateReader: string;
@@ -5779,6 +5784,7 @@ declare const onchainGameSchema: z.ZodObject<{
5779
5784
  moveTimeoutMs?: number | undefined;
5780
5785
  objective?: string | undefined;
5781
5786
  };
5787
+ tools?: string[] | undefined;
5782
5788
  permissions?: {
5783
5789
  mode?: "default" | "plan" | "auto" | undefined;
5784
5790
  rules?: {
@@ -5786,13 +5792,12 @@ declare const onchainGameSchema: z.ZodObject<{
5786
5792
  pattern: string;
5787
5793
  }[] | undefined;
5788
5794
  } | undefined;
5789
- tools?: string[] | undefined;
5790
5795
  tool_config?: Record<string, unknown> | undefined;
5791
5796
  mcp_servers?: Record<string, {
5792
5797
  transport: "stdio";
5793
5798
  command: string;
5794
- env?: Record<string, string> | undefined;
5795
5799
  args?: string[] | undefined;
5800
+ env?: Record<string, string> | undefined;
5796
5801
  } | {
5797
5802
  transport: "sse";
5798
5803
  url: string;
@@ -5841,9 +5846,9 @@ declare const onchainGameSchema: z.ZodObject<{
5841
5846
  };
5842
5847
  game: {
5843
5848
  contract: {
5844
- address: string;
5845
5849
  id: string;
5846
5850
  chainId: string;
5851
+ address: string;
5847
5852
  abiRef: string;
5848
5853
  };
5849
5854
  stateReader: string;
@@ -5852,6 +5857,7 @@ declare const onchainGameSchema: z.ZodObject<{
5852
5857
  moveTimeoutMs?: number | undefined;
5853
5858
  objective?: string | undefined;
5854
5859
  };
5860
+ tools?: string[] | undefined;
5855
5861
  permissions?: {
5856
5862
  mode?: "default" | "plan" | "auto" | undefined;
5857
5863
  rules?: {
@@ -5859,13 +5865,12 @@ declare const onchainGameSchema: z.ZodObject<{
5859
5865
  pattern: string;
5860
5866
  }[] | undefined;
5861
5867
  } | undefined;
5862
- tools?: string[] | undefined;
5863
5868
  tool_config?: Record<string, unknown> | undefined;
5864
5869
  mcp_servers?: Record<string, {
5865
5870
  transport: "stdio";
5866
5871
  command: string;
5867
- env?: Record<string, string> | undefined;
5868
5872
  args?: string[] | undefined;
5873
+ env?: Record<string, string> | undefined;
5869
5874
  } | {
5870
5875
  transport: "sse";
5871
5876
  url: string;
@@ -5897,6 +5902,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
5897
5902
  agent: z.ZodObject<{
5898
5903
  model: z.ZodString;
5899
5904
  instructions: z.ZodString;
5905
+ max_tokens: z.ZodOptional<z.ZodNumber>;
5900
5906
  sub_agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5901
5907
  description: z.ZodString;
5902
5908
  instructions: z.ZodString;
@@ -5916,50 +5922,52 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
5916
5922
  }, "strict", z.ZodTypeAny, {
5917
5923
  description: string;
5918
5924
  instructions: string;
5925
+ tools?: string[] | undefined;
5926
+ model?: string | undefined;
5919
5927
  permissions?: "inherit" | "scoped" | {
5920
5928
  allow: string[];
5921
5929
  deny: string[];
5922
5930
  } | undefined;
5923
- tools?: string[] | undefined;
5924
- model?: string | undefined;
5925
5931
  inherit_bypass?: boolean | undefined;
5926
5932
  }, {
5927
5933
  description: string;
5928
5934
  instructions: string;
5935
+ tools?: string[] | undefined;
5936
+ model?: string | undefined;
5929
5937
  permissions?: "inherit" | "scoped" | {
5930
5938
  allow: string[];
5931
5939
  deny: string[];
5932
5940
  } | undefined;
5933
- tools?: string[] | undefined;
5934
- model?: string | undefined;
5935
5941
  inherit_bypass?: boolean | undefined;
5936
5942
  }>>>;
5937
5943
  }, "strict", z.ZodTypeAny, {
5938
5944
  instructions: string;
5939
5945
  model: string;
5946
+ max_tokens?: number | undefined;
5940
5947
  sub_agents?: Record<string, {
5941
5948
  description: string;
5942
5949
  instructions: string;
5950
+ tools?: string[] | undefined;
5951
+ model?: string | undefined;
5943
5952
  permissions?: "inherit" | "scoped" | {
5944
5953
  allow: string[];
5945
5954
  deny: string[];
5946
5955
  } | undefined;
5947
- tools?: string[] | undefined;
5948
- model?: string | undefined;
5949
5956
  inherit_bypass?: boolean | undefined;
5950
5957
  }> | undefined;
5951
5958
  }, {
5952
5959
  instructions: string;
5953
5960
  model: string;
5961
+ max_tokens?: number | undefined;
5954
5962
  sub_agents?: Record<string, {
5955
5963
  description: string;
5956
5964
  instructions: string;
5965
+ tools?: string[] | undefined;
5966
+ model?: string | undefined;
5957
5967
  permissions?: "inherit" | "scoped" | {
5958
5968
  allow: string[];
5959
5969
  deny: string[];
5960
5970
  } | undefined;
5961
- tools?: string[] | undefined;
5962
- model?: string | undefined;
5963
5971
  inherit_bypass?: boolean | undefined;
5964
5972
  }> | undefined;
5965
5973
  }>;
@@ -5973,13 +5981,13 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
5973
5981
  }, "strict", z.ZodTypeAny, {
5974
5982
  transport: "stdio";
5975
5983
  command: string;
5976
- env?: Record<string, string> | undefined;
5977
5984
  args?: string[] | undefined;
5985
+ env?: Record<string, string> | undefined;
5978
5986
  }, {
5979
5987
  transport: "stdio";
5980
5988
  command: string;
5981
- env?: Record<string, string> | undefined;
5982
5989
  args?: string[] | undefined;
5990
+ env?: Record<string, string> | undefined;
5983
5991
  }>, z.ZodObject<{
5984
5992
  transport: z.ZodLiteral<"sse">;
5985
5993
  url: z.ZodString;
@@ -6226,14 +6234,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6226
6234
  address: z.ZodString;
6227
6235
  abiRef: z.ZodString;
6228
6236
  }, "strict", z.ZodTypeAny, {
6229
- address: string;
6230
6237
  id: string;
6231
6238
  chainId: string;
6239
+ address: string;
6232
6240
  abiRef: string;
6233
6241
  }, {
6234
- address: string;
6235
6242
  id: string;
6236
6243
  chainId: string;
6244
+ address: string;
6237
6245
  abiRef: string;
6238
6246
  }>, "many">>;
6239
6247
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -6261,25 +6269,20 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6261
6269
  agent: {
6262
6270
  instructions: string;
6263
6271
  model: string;
6272
+ max_tokens?: number | undefined;
6264
6273
  sub_agents?: Record<string, {
6265
6274
  description: string;
6266
6275
  instructions: string;
6276
+ tools?: string[] | undefined;
6277
+ model?: string | undefined;
6267
6278
  permissions?: "inherit" | "scoped" | {
6268
6279
  allow: string[];
6269
6280
  deny: string[];
6270
6281
  } | undefined;
6271
- tools?: string[] | undefined;
6272
- model?: string | undefined;
6273
6282
  inherit_bypass?: boolean | undefined;
6274
6283
  }> | undefined;
6275
6284
  };
6276
- cli?: {
6277
- tui: "basic" | "rich";
6278
- banner?: {
6279
- taglineMode: "static" | "random";
6280
- taglines: string[];
6281
- } | undefined;
6282
- } | undefined;
6285
+ tools?: string[] | undefined;
6283
6286
  permissions?: {
6284
6287
  mode?: "default" | "plan" | "auto" | undefined;
6285
6288
  rules?: {
@@ -6287,13 +6290,19 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6287
6290
  pattern: string;
6288
6291
  }[] | undefined;
6289
6292
  } | undefined;
6290
- tools?: string[] | undefined;
6293
+ cli?: {
6294
+ tui: "basic" | "rich";
6295
+ banner?: {
6296
+ taglineMode: "static" | "random";
6297
+ taglines: string[];
6298
+ } | undefined;
6299
+ } | undefined;
6291
6300
  tool_config?: Record<string, unknown> | undefined;
6292
6301
  mcp_servers?: Record<string, {
6293
6302
  transport: "stdio";
6294
6303
  command: string;
6295
- env?: Record<string, string> | undefined;
6296
6304
  args?: string[] | undefined;
6305
+ env?: Record<string, string> | undefined;
6297
6306
  } | {
6298
6307
  transport: "sse";
6299
6308
  url: string;
@@ -6341,9 +6350,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6341
6350
  keyRef?: string | undefined;
6342
6351
  }[] | undefined;
6343
6352
  contracts?: {
6344
- address: string;
6345
6353
  id: string;
6346
6354
  chainId: string;
6355
+ address: string;
6347
6356
  abiRef: string;
6348
6357
  }[] | undefined;
6349
6358
  transaction_policy?: {
@@ -6359,25 +6368,20 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6359
6368
  agent: {
6360
6369
  instructions: string;
6361
6370
  model: string;
6371
+ max_tokens?: number | undefined;
6362
6372
  sub_agents?: Record<string, {
6363
6373
  description: string;
6364
6374
  instructions: string;
6375
+ tools?: string[] | undefined;
6376
+ model?: string | undefined;
6365
6377
  permissions?: "inherit" | "scoped" | {
6366
6378
  allow: string[];
6367
6379
  deny: string[];
6368
6380
  } | undefined;
6369
- tools?: string[] | undefined;
6370
- model?: string | undefined;
6371
6381
  inherit_bypass?: boolean | undefined;
6372
6382
  }> | undefined;
6373
6383
  };
6374
- cli?: {
6375
- banner?: {
6376
- taglines: string[];
6377
- taglineMode?: "static" | "random" | undefined;
6378
- } | undefined;
6379
- tui?: "basic" | "rich" | undefined;
6380
- } | undefined;
6384
+ tools?: string[] | undefined;
6381
6385
  permissions?: {
6382
6386
  mode?: "default" | "plan" | "auto" | undefined;
6383
6387
  rules?: {
@@ -6385,13 +6389,19 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6385
6389
  pattern: string;
6386
6390
  }[] | undefined;
6387
6391
  } | undefined;
6388
- tools?: string[] | undefined;
6392
+ cli?: {
6393
+ banner?: {
6394
+ taglines: string[];
6395
+ taglineMode?: "static" | "random" | undefined;
6396
+ } | undefined;
6397
+ tui?: "basic" | "rich" | undefined;
6398
+ } | undefined;
6389
6399
  tool_config?: Record<string, unknown> | undefined;
6390
6400
  mcp_servers?: Record<string, {
6391
6401
  transport: "stdio";
6392
6402
  command: string;
6393
- env?: Record<string, string> | undefined;
6394
6403
  args?: string[] | undefined;
6404
+ env?: Record<string, string> | undefined;
6395
6405
  } | {
6396
6406
  transport: "sse";
6397
6407
  url: string;
@@ -6439,9 +6449,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6439
6449
  keyRef?: string | undefined;
6440
6450
  }[] | undefined;
6441
6451
  contracts?: {
6442
- address: string;
6443
6452
  id: string;
6444
6453
  chainId: string;
6454
+ address: string;
6445
6455
  abiRef: string;
6446
6456
  }[] | undefined;
6447
6457
  transaction_policy?: {
@@ -6462,14 +6472,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6462
6472
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6463
6473
  tool_config: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
6464
6474
  }, "strict", z.ZodTypeAny, {
6465
- name: string;
6466
6475
  instructions: string;
6476
+ name: string;
6467
6477
  tools?: string[] | undefined;
6468
6478
  model?: string | undefined;
6469
6479
  tool_config?: Record<string, unknown> | undefined;
6470
6480
  }, {
6471
- name: string;
6472
6481
  instructions: string;
6482
+ name: string;
6473
6483
  tools?: string[] | undefined;
6474
6484
  model?: string | undefined;
6475
6485
  tool_config?: Record<string, unknown> | undefined;
@@ -6482,13 +6492,13 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6482
6492
  }, "strict", z.ZodTypeAny, {
6483
6493
  transport: "stdio";
6484
6494
  command: string;
6485
- env?: Record<string, string> | undefined;
6486
6495
  args?: string[] | undefined;
6496
+ env?: Record<string, string> | undefined;
6487
6497
  }, {
6488
6498
  transport: "stdio";
6489
6499
  command: string;
6490
- env?: Record<string, string> | undefined;
6491
6500
  args?: string[] | undefined;
6501
+ env?: Record<string, string> | undefined;
6492
6502
  }>, z.ZodObject<{
6493
6503
  transport: z.ZodLiteral<"sse">;
6494
6504
  url: z.ZodString;
@@ -6653,14 +6663,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6653
6663
  address: z.ZodString;
6654
6664
  abiRef: z.ZodString;
6655
6665
  }, "strict", z.ZodTypeAny, {
6656
- address: string;
6657
6666
  id: string;
6658
6667
  chainId: string;
6668
+ address: string;
6659
6669
  abiRef: string;
6660
6670
  }, {
6661
- address: string;
6662
6671
  id: string;
6663
6672
  chainId: string;
6673
+ address: string;
6664
6674
  abiRef: string;
6665
6675
  }>, "many">>;
6666
6676
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -6683,12 +6693,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6683
6693
  simulationRequired?: boolean | undefined;
6684
6694
  }>>;
6685
6695
  }, "strict", z.ZodTypeAny, {
6686
- name: string;
6687
6696
  model: string;
6697
+ name: string;
6688
6698
  target: "workflow";
6689
6699
  steps: {
6690
- name: string;
6691
6700
  instructions: string;
6701
+ name: string;
6692
6702
  tools?: string[] | undefined;
6693
6703
  model?: string | undefined;
6694
6704
  tool_config?: Record<string, unknown> | undefined;
@@ -6703,8 +6713,8 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6703
6713
  mcp_servers?: Record<string, {
6704
6714
  transport: "stdio";
6705
6715
  command: string;
6706
- env?: Record<string, string> | undefined;
6707
6716
  args?: string[] | undefined;
6717
+ env?: Record<string, string> | undefined;
6708
6718
  } | {
6709
6719
  transport: "sse";
6710
6720
  url: string;
@@ -6745,9 +6755,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6745
6755
  keyRef?: string | undefined;
6746
6756
  }[] | undefined;
6747
6757
  contracts?: {
6748
- address: string;
6749
6758
  id: string;
6750
6759
  chainId: string;
6760
+ address: string;
6751
6761
  abiRef: string;
6752
6762
  }[] | undefined;
6753
6763
  transaction_policy?: {
@@ -6758,12 +6768,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6758
6768
  maxValueWei?: string | undefined;
6759
6769
  } | undefined;
6760
6770
  }, {
6761
- name: string;
6762
6771
  model: string;
6772
+ name: string;
6763
6773
  target: "workflow";
6764
6774
  steps: {
6765
- name: string;
6766
6775
  instructions: string;
6776
+ name: string;
6767
6777
  tools?: string[] | undefined;
6768
6778
  model?: string | undefined;
6769
6779
  tool_config?: Record<string, unknown> | undefined;
@@ -6778,8 +6788,8 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6778
6788
  mcp_servers?: Record<string, {
6779
6789
  transport: "stdio";
6780
6790
  command: string;
6781
- env?: Record<string, string> | undefined;
6782
6791
  args?: string[] | undefined;
6792
+ env?: Record<string, string> | undefined;
6783
6793
  } | {
6784
6794
  transport: "sse";
6785
6795
  url: string;
@@ -6820,9 +6830,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6820
6830
  keyRef?: string | undefined;
6821
6831
  }[] | undefined;
6822
6832
  contracts?: {
6823
- address: string;
6824
6833
  id: string;
6825
6834
  chainId: string;
6835
+ address: string;
6826
6836
  abiRef: string;
6827
6837
  }[] | undefined;
6828
6838
  transaction_policy?: {
@@ -6859,22 +6869,22 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6859
6869
  }, "strict", z.ZodTypeAny, {
6860
6870
  description: string;
6861
6871
  instructions: string;
6872
+ tools?: string[] | undefined;
6873
+ model?: string | undefined;
6862
6874
  permissions?: "inherit" | "scoped" | {
6863
6875
  allow: string[];
6864
6876
  deny: string[];
6865
6877
  } | undefined;
6866
- tools?: string[] | undefined;
6867
- model?: string | undefined;
6868
6878
  inherit_bypass?: boolean | undefined;
6869
6879
  }, {
6870
6880
  description: string;
6871
6881
  instructions: string;
6882
+ tools?: string[] | undefined;
6883
+ model?: string | undefined;
6872
6884
  permissions?: "inherit" | "scoped" | {
6873
6885
  allow: string[];
6874
6886
  deny: string[];
6875
6887
  } | undefined;
6876
- tools?: string[] | undefined;
6877
- model?: string | undefined;
6878
6888
  inherit_bypass?: boolean | undefined;
6879
6889
  }>>>;
6880
6890
  }, "strict", z.ZodTypeAny, {
@@ -6884,12 +6894,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6884
6894
  sub_agents?: Record<string, {
6885
6895
  description: string;
6886
6896
  instructions: string;
6897
+ tools?: string[] | undefined;
6898
+ model?: string | undefined;
6887
6899
  permissions?: "inherit" | "scoped" | {
6888
6900
  allow: string[];
6889
6901
  deny: string[];
6890
6902
  } | undefined;
6891
- tools?: string[] | undefined;
6892
- model?: string | undefined;
6893
6903
  inherit_bypass?: boolean | undefined;
6894
6904
  }> | undefined;
6895
6905
  tool_config?: Record<string, unknown> | undefined;
@@ -6900,12 +6910,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
6900
6910
  sub_agents?: Record<string, {
6901
6911
  description: string;
6902
6912
  instructions: string;
6913
+ tools?: string[] | undefined;
6914
+ model?: string | undefined;
6903
6915
  permissions?: "inherit" | "scoped" | {
6904
6916
  allow: string[];
6905
6917
  deny: string[];
6906
6918
  } | undefined;
6907
- tools?: string[] | undefined;
6908
- model?: string | undefined;
6909
6919
  inherit_bypass?: boolean | undefined;
6910
6920
  }> | undefined;
6911
6921
  tool_config?: Record<string, unknown> | undefined;
@@ -7070,9 +7080,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7070
7080
  routing: z.ZodObject<{
7071
7081
  sessionKey: z.ZodEnum<["thread", "user", "channel"]>;
7072
7082
  }, "strict", z.ZodTypeAny, {
7073
- sessionKey: "channel" | "thread" | "user";
7083
+ sessionKey: "thread" | "user" | "channel";
7074
7084
  }, {
7075
- sessionKey: "channel" | "thread" | "user";
7085
+ sessionKey: "thread" | "user" | "channel";
7076
7086
  }>;
7077
7087
  mcp_servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
7078
7088
  transport: z.ZodLiteral<"stdio">;
@@ -7082,13 +7092,13 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7082
7092
  }, "strict", z.ZodTypeAny, {
7083
7093
  transport: "stdio";
7084
7094
  command: string;
7085
- env?: Record<string, string> | undefined;
7086
7095
  args?: string[] | undefined;
7096
+ env?: Record<string, string> | undefined;
7087
7097
  }, {
7088
7098
  transport: "stdio";
7089
7099
  command: string;
7090
- env?: Record<string, string> | undefined;
7091
7100
  args?: string[] | undefined;
7101
+ env?: Record<string, string> | undefined;
7092
7102
  }>, z.ZodObject<{
7093
7103
  transport: z.ZodLiteral<"sse">;
7094
7104
  url: z.ZodString;
@@ -7273,14 +7283,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7273
7283
  address: z.ZodString;
7274
7284
  abiRef: z.ZodString;
7275
7285
  }, "strict", z.ZodTypeAny, {
7276
- address: string;
7277
7286
  id: string;
7278
7287
  chainId: string;
7288
+ address: string;
7279
7289
  abiRef: string;
7280
7290
  }, {
7281
- address: string;
7282
7291
  id: string;
7283
7292
  chainId: string;
7293
+ address: string;
7284
7294
  abiRef: string;
7285
7295
  }>, "many">>;
7286
7296
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -7312,12 +7322,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7312
7322
  sub_agents?: Record<string, {
7313
7323
  description: string;
7314
7324
  instructions: string;
7325
+ tools?: string[] | undefined;
7326
+ model?: string | undefined;
7315
7327
  permissions?: "inherit" | "scoped" | {
7316
7328
  allow: string[];
7317
7329
  deny: string[];
7318
7330
  } | undefined;
7319
- tools?: string[] | undefined;
7320
- model?: string | undefined;
7321
7331
  inherit_bypass?: boolean | undefined;
7322
7332
  }> | undefined;
7323
7333
  tool_config?: Record<string, unknown> | undefined;
@@ -7348,7 +7358,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7348
7358
  } | undefined;
7349
7359
  };
7350
7360
  routing: {
7351
- sessionKey: "channel" | "thread" | "user";
7361
+ sessionKey: "thread" | "user" | "channel";
7352
7362
  };
7353
7363
  permissions?: {
7354
7364
  mode?: "default" | "plan" | "auto" | undefined;
@@ -7360,8 +7370,8 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7360
7370
  mcp_servers?: Record<string, {
7361
7371
  transport: "stdio";
7362
7372
  command: string;
7363
- env?: Record<string, string> | undefined;
7364
7373
  args?: string[] | undefined;
7374
+ env?: Record<string, string> | undefined;
7365
7375
  } | {
7366
7376
  transport: "sse";
7367
7377
  url: string;
@@ -7402,9 +7412,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7402
7412
  keyRef?: string | undefined;
7403
7413
  }[] | undefined;
7404
7414
  contracts?: {
7405
- address: string;
7406
7415
  id: string;
7407
7416
  chainId: string;
7417
+ address: string;
7408
7418
  abiRef: string;
7409
7419
  }[] | undefined;
7410
7420
  transaction_policy?: {
@@ -7432,12 +7442,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7432
7442
  sub_agents?: Record<string, {
7433
7443
  description: string;
7434
7444
  instructions: string;
7445
+ tools?: string[] | undefined;
7446
+ model?: string | undefined;
7435
7447
  permissions?: "inherit" | "scoped" | {
7436
7448
  allow: string[];
7437
7449
  deny: string[];
7438
7450
  } | undefined;
7439
- tools?: string[] | undefined;
7440
- model?: string | undefined;
7441
7451
  inherit_bypass?: boolean | undefined;
7442
7452
  }> | undefined;
7443
7453
  tool_config?: Record<string, unknown> | undefined;
@@ -7468,7 +7478,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7468
7478
  } | undefined;
7469
7479
  };
7470
7480
  routing: {
7471
- sessionKey: "channel" | "thread" | "user";
7481
+ sessionKey: "thread" | "user" | "channel";
7472
7482
  };
7473
7483
  permissions?: {
7474
7484
  mode?: "default" | "plan" | "auto" | undefined;
@@ -7480,8 +7490,8 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7480
7490
  mcp_servers?: Record<string, {
7481
7491
  transport: "stdio";
7482
7492
  command: string;
7483
- env?: Record<string, string> | undefined;
7484
7493
  args?: string[] | undefined;
7494
+ env?: Record<string, string> | undefined;
7485
7495
  } | {
7486
7496
  transport: "sse";
7487
7497
  url: string;
@@ -7522,9 +7532,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7522
7532
  keyRef?: string | undefined;
7523
7533
  }[] | undefined;
7524
7534
  contracts?: {
7525
- address: string;
7526
7535
  id: string;
7527
7536
  chainId: string;
7537
+ address: string;
7528
7538
  abiRef: string;
7529
7539
  }[] | undefined;
7530
7540
  transaction_policy?: {
@@ -7742,14 +7752,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7742
7752
  address: z.ZodString;
7743
7753
  abiRef: z.ZodString;
7744
7754
  }, "strict", z.ZodTypeAny, {
7745
- address: string;
7746
7755
  id: string;
7747
7756
  chainId: string;
7757
+ address: string;
7748
7758
  abiRef: string;
7749
7759
  }, {
7750
- address: string;
7751
7760
  id: string;
7752
7761
  chainId: string;
7762
+ address: string;
7753
7763
  abiRef: string;
7754
7764
  }>, "many">>;
7755
7765
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -7772,8 +7782,8 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7772
7782
  simulationRequired?: boolean | undefined;
7773
7783
  }>>;
7774
7784
  }, "strict", z.ZodTypeAny, {
7775
- name: string;
7776
7785
  model: string;
7786
+ name: string;
7777
7787
  target: "graph";
7778
7788
  entry: string;
7779
7789
  nodes: Record<string, {
@@ -7831,9 +7841,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7831
7841
  keyRef?: string | undefined;
7832
7842
  }[] | undefined;
7833
7843
  contracts?: {
7834
- address: string;
7835
7844
  id: string;
7836
7845
  chainId: string;
7846
+ address: string;
7837
7847
  abiRef: string;
7838
7848
  }[] | undefined;
7839
7849
  transaction_policy?: {
@@ -7844,8 +7854,8 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7844
7854
  maxValueWei?: string | undefined;
7845
7855
  } | undefined;
7846
7856
  }, {
7847
- name: string;
7848
7857
  model: string;
7858
+ name: string;
7849
7859
  target: "graph";
7850
7860
  entry: string;
7851
7861
  nodes: Record<string, {
@@ -7899,9 +7909,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
7899
7909
  keyRef?: string | undefined;
7900
7910
  }[] | undefined;
7901
7911
  contracts?: {
7902
- address: string;
7903
7912
  id: string;
7904
7913
  chainId: string;
7914
+ address: string;
7905
7915
  abiRef: string;
7906
7916
  }[] | undefined;
7907
7917
  transaction_policy?: {
@@ -8346,22 +8356,22 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8346
8356
  }, "strict", z.ZodTypeAny, {
8347
8357
  description: string;
8348
8358
  instructions: string;
8359
+ tools?: string[] | undefined;
8360
+ model?: string | undefined;
8349
8361
  permissions?: "inherit" | "scoped" | {
8350
8362
  allow: string[];
8351
8363
  deny: string[];
8352
8364
  } | undefined;
8353
- tools?: string[] | undefined;
8354
- model?: string | undefined;
8355
8365
  inherit_bypass?: boolean | undefined;
8356
8366
  }, {
8357
8367
  description: string;
8358
8368
  instructions: string;
8369
+ tools?: string[] | undefined;
8370
+ model?: string | undefined;
8359
8371
  permissions?: "inherit" | "scoped" | {
8360
8372
  allow: string[];
8361
8373
  deny: string[];
8362
8374
  } | undefined;
8363
- tools?: string[] | undefined;
8364
- model?: string | undefined;
8365
8375
  inherit_bypass?: boolean | undefined;
8366
8376
  }>>>;
8367
8377
  }, "strict", z.ZodTypeAny, {
@@ -8371,12 +8381,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8371
8381
  sub_agents?: Record<string, {
8372
8382
  description: string;
8373
8383
  instructions: string;
8384
+ tools?: string[] | undefined;
8385
+ model?: string | undefined;
8374
8386
  permissions?: "inherit" | "scoped" | {
8375
8387
  allow: string[];
8376
8388
  deny: string[];
8377
8389
  } | undefined;
8378
- tools?: string[] | undefined;
8379
- model?: string | undefined;
8380
8390
  inherit_bypass?: boolean | undefined;
8381
8391
  }> | undefined;
8382
8392
  tool_config?: Record<string, unknown> | undefined;
@@ -8387,12 +8397,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8387
8397
  sub_agents?: Record<string, {
8388
8398
  description: string;
8389
8399
  instructions: string;
8400
+ tools?: string[] | undefined;
8401
+ model?: string | undefined;
8390
8402
  permissions?: "inherit" | "scoped" | {
8391
8403
  allow: string[];
8392
8404
  deny: string[];
8393
8405
  } | undefined;
8394
- tools?: string[] | undefined;
8395
- model?: string | undefined;
8396
8406
  inherit_bypass?: boolean | undefined;
8397
8407
  }> | undefined;
8398
8408
  tool_config?: Record<string, unknown> | undefined;
@@ -8430,13 +8440,13 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8430
8440
  }, "strict", z.ZodTypeAny, {
8431
8441
  transport: "stdio";
8432
8442
  command: string;
8433
- env?: Record<string, string> | undefined;
8434
8443
  args?: string[] | undefined;
8444
+ env?: Record<string, string> | undefined;
8435
8445
  }, {
8436
8446
  transport: "stdio";
8437
8447
  command: string;
8438
- env?: Record<string, string> | undefined;
8439
8448
  args?: string[] | undefined;
8449
+ env?: Record<string, string> | undefined;
8440
8450
  }>, z.ZodObject<{
8441
8451
  transport: z.ZodLiteral<"sse">;
8442
8452
  url: z.ZodString;
@@ -8601,14 +8611,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8601
8611
  address: z.ZodString;
8602
8612
  abiRef: z.ZodString;
8603
8613
  }, "strict", z.ZodTypeAny, {
8604
- address: string;
8605
8614
  id: string;
8606
8615
  chainId: string;
8616
+ address: string;
8607
8617
  abiRef: string;
8608
8618
  }, {
8609
- address: string;
8610
8619
  id: string;
8611
8620
  chainId: string;
8621
+ address: string;
8612
8622
  abiRef: string;
8613
8623
  }>, "many">>;
8614
8624
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -8631,8 +8641,8 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8631
8641
  simulationRequired?: boolean | undefined;
8632
8642
  }>>;
8633
8643
  }, "strict", z.ZodTypeAny, {
8634
- name: string;
8635
8644
  model: string;
8645
+ name: string;
8636
8646
  target: "crew";
8637
8647
  entry: string;
8638
8648
  roles: Record<string, {
@@ -8642,12 +8652,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8642
8652
  sub_agents?: Record<string, {
8643
8653
  description: string;
8644
8654
  instructions: string;
8655
+ tools?: string[] | undefined;
8656
+ model?: string | undefined;
8645
8657
  permissions?: "inherit" | "scoped" | {
8646
8658
  allow: string[];
8647
8659
  deny: string[];
8648
8660
  } | undefined;
8649
- tools?: string[] | undefined;
8650
- model?: string | undefined;
8651
8661
  inherit_bypass?: boolean | undefined;
8652
8662
  }> | undefined;
8653
8663
  tool_config?: Record<string, unknown> | undefined;
@@ -8662,8 +8672,8 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8662
8672
  mcp_servers?: Record<string, {
8663
8673
  transport: "stdio";
8664
8674
  command: string;
8665
- env?: Record<string, string> | undefined;
8666
8675
  args?: string[] | undefined;
8676
+ env?: Record<string, string> | undefined;
8667
8677
  } | {
8668
8678
  transport: "sse";
8669
8679
  url: string;
@@ -8704,9 +8714,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8704
8714
  keyRef?: string | undefined;
8705
8715
  }[] | undefined;
8706
8716
  contracts?: {
8707
- address: string;
8708
8717
  id: string;
8709
8718
  chainId: string;
8719
+ address: string;
8710
8720
  abiRef: string;
8711
8721
  }[] | undefined;
8712
8722
  transaction_policy?: {
@@ -8724,8 +8734,8 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8724
8734
  }[]> | undefined;
8725
8735
  } | undefined;
8726
8736
  }, {
8727
- name: string;
8728
8737
  model: string;
8738
+ name: string;
8729
8739
  target: "crew";
8730
8740
  entry: string;
8731
8741
  roles: Record<string, {
@@ -8735,12 +8745,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8735
8745
  sub_agents?: Record<string, {
8736
8746
  description: string;
8737
8747
  instructions: string;
8748
+ tools?: string[] | undefined;
8749
+ model?: string | undefined;
8738
8750
  permissions?: "inherit" | "scoped" | {
8739
8751
  allow: string[];
8740
8752
  deny: string[];
8741
8753
  } | undefined;
8742
- tools?: string[] | undefined;
8743
- model?: string | undefined;
8744
8754
  inherit_bypass?: boolean | undefined;
8745
8755
  }> | undefined;
8746
8756
  tool_config?: Record<string, unknown> | undefined;
@@ -8755,8 +8765,8 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8755
8765
  mcp_servers?: Record<string, {
8756
8766
  transport: "stdio";
8757
8767
  command: string;
8758
- env?: Record<string, string> | undefined;
8759
8768
  args?: string[] | undefined;
8769
+ env?: Record<string, string> | undefined;
8760
8770
  } | {
8761
8771
  transport: "sse";
8762
8772
  url: string;
@@ -8797,9 +8807,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8797
8807
  keyRef?: string | undefined;
8798
8808
  }[] | undefined;
8799
8809
  contracts?: {
8800
- address: string;
8801
8810
  id: string;
8802
8811
  chainId: string;
8812
+ address: string;
8803
8813
  abiRef: string;
8804
8814
  }[] | undefined;
8805
8815
  transaction_policy?: {
@@ -8855,13 +8865,13 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
8855
8865
  }, "strict", z.ZodTypeAny, {
8856
8866
  transport: "stdio";
8857
8867
  command: string;
8858
- env?: Record<string, string> | undefined;
8859
8868
  args?: string[] | undefined;
8869
+ env?: Record<string, string> | undefined;
8860
8870
  }, {
8861
8871
  transport: "stdio";
8862
8872
  command: string;
8863
- env?: Record<string, string> | undefined;
8864
8873
  args?: string[] | undefined;
8874
+ env?: Record<string, string> | undefined;
8865
8875
  }>, z.ZodObject<{
8866
8876
  transport: z.ZodLiteral<"sse">;
8867
8877
  url: z.ZodString;
@@ -9026,14 +9036,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9026
9036
  address: z.ZodString;
9027
9037
  abiRef: z.ZodString;
9028
9038
  }, "strict", z.ZodTypeAny, {
9029
- address: string;
9030
9039
  id: string;
9031
9040
  chainId: string;
9041
+ address: string;
9032
9042
  abiRef: string;
9033
9043
  }, {
9034
- address: string;
9035
9044
  id: string;
9036
9045
  chainId: string;
9046
+ address: string;
9037
9047
  abiRef: string;
9038
9048
  }>, "many">>;
9039
9049
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -9070,6 +9080,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9070
9080
  goal: string;
9071
9081
  branchingFactor: number;
9072
9082
  maxDurationMs: number;
9083
+ tools?: string[] | undefined;
9073
9084
  permissions?: {
9074
9085
  mode?: "default" | "plan" | "auto" | undefined;
9075
9086
  rules?: {
@@ -9077,13 +9088,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9077
9088
  pattern: string;
9078
9089
  }[] | undefined;
9079
9090
  } | undefined;
9080
- tools?: string[] | undefined;
9081
9091
  tool_config?: Record<string, unknown> | undefined;
9082
9092
  mcp_servers?: Record<string, {
9083
9093
  transport: "stdio";
9084
9094
  command: string;
9085
- env?: Record<string, string> | undefined;
9086
9095
  args?: string[] | undefined;
9096
+ env?: Record<string, string> | undefined;
9087
9097
  } | {
9088
9098
  transport: "sse";
9089
9099
  url: string;
@@ -9124,9 +9134,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9124
9134
  keyRef?: string | undefined;
9125
9135
  }[] | undefined;
9126
9136
  contracts?: {
9127
- address: string;
9128
9137
  id: string;
9129
9138
  chainId: string;
9139
+ address: string;
9130
9140
  abiRef: string;
9131
9141
  }[] | undefined;
9132
9142
  transaction_policy?: {
@@ -9144,6 +9154,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9144
9154
  model: string;
9145
9155
  };
9146
9156
  goal: string;
9157
+ tools?: string[] | undefined;
9147
9158
  permissions?: {
9148
9159
  mode?: "default" | "plan" | "auto" | undefined;
9149
9160
  rules?: {
@@ -9151,13 +9162,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9151
9162
  pattern: string;
9152
9163
  }[] | undefined;
9153
9164
  } | undefined;
9154
- tools?: string[] | undefined;
9155
9165
  tool_config?: Record<string, unknown> | undefined;
9156
9166
  mcp_servers?: Record<string, {
9157
9167
  transport: "stdio";
9158
9168
  command: string;
9159
- env?: Record<string, string> | undefined;
9160
9169
  args?: string[] | undefined;
9170
+ env?: Record<string, string> | undefined;
9161
9171
  } | {
9162
9172
  transport: "sse";
9163
9173
  url: string;
@@ -9198,9 +9208,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9198
9208
  keyRef?: string | undefined;
9199
9209
  }[] | undefined;
9200
9210
  contracts?: {
9201
- address: string;
9202
9211
  id: string;
9203
9212
  chainId: string;
9213
+ address: string;
9204
9214
  abiRef: string;
9205
9215
  }[] | undefined;
9206
9216
  transaction_policy?: {
@@ -9261,13 +9271,13 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9261
9271
  }, "strict", z.ZodTypeAny, {
9262
9272
  transport: "stdio";
9263
9273
  command: string;
9264
- env?: Record<string, string> | undefined;
9265
9274
  args?: string[] | undefined;
9275
+ env?: Record<string, string> | undefined;
9266
9276
  }, {
9267
9277
  transport: "stdio";
9268
9278
  command: string;
9269
- env?: Record<string, string> | undefined;
9270
9279
  args?: string[] | undefined;
9280
+ env?: Record<string, string> | undefined;
9271
9281
  }>, z.ZodObject<{
9272
9282
  transport: z.ZodLiteral<"sse">;
9273
9283
  url: z.ZodString;
@@ -9432,14 +9442,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9432
9442
  address: z.ZodString;
9433
9443
  abiRef: z.ZodString;
9434
9444
  }, "strict", z.ZodTypeAny, {
9435
- address: string;
9436
9445
  id: string;
9437
9446
  chainId: string;
9447
+ address: string;
9438
9448
  abiRef: string;
9439
9449
  }, {
9440
- address: string;
9441
9450
  id: string;
9442
9451
  chainId: string;
9452
+ address: string;
9443
9453
  abiRef: string;
9444
9454
  }>, "many">>;
9445
9455
  transaction_policy: z.ZodOptional<z.ZodObject<{
@@ -9477,6 +9487,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9477
9487
  };
9478
9488
  concurrency: number;
9479
9489
  idempotencyWindowMs: number;
9490
+ tools?: string[] | undefined;
9480
9491
  permissions?: {
9481
9492
  mode?: "default" | "plan" | "auto" | undefined;
9482
9493
  rules?: {
@@ -9484,13 +9495,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9484
9495
  pattern: string;
9485
9496
  }[] | undefined;
9486
9497
  } | undefined;
9487
- tools?: string[] | undefined;
9488
9498
  tool_config?: Record<string, unknown> | undefined;
9489
9499
  mcp_servers?: Record<string, {
9490
9500
  transport: "stdio";
9491
9501
  command: string;
9492
- env?: Record<string, string> | undefined;
9493
9502
  args?: string[] | undefined;
9503
+ env?: Record<string, string> | undefined;
9494
9504
  } | {
9495
9505
  transport: "sse";
9496
9506
  url: string;
@@ -9531,9 +9541,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9531
9541
  keyRef?: string | undefined;
9532
9542
  }[] | undefined;
9533
9543
  contracts?: {
9534
- address: string;
9535
9544
  id: string;
9536
9545
  chainId: string;
9546
+ address: string;
9537
9547
  abiRef: string;
9538
9548
  }[] | undefined;
9539
9549
  transaction_policy?: {
@@ -9557,6 +9567,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9557
9567
  maxRetries?: number | undefined;
9558
9568
  seedJobs?: string[] | undefined;
9559
9569
  };
9570
+ tools?: string[] | undefined;
9560
9571
  permissions?: {
9561
9572
  mode?: "default" | "plan" | "auto" | undefined;
9562
9573
  rules?: {
@@ -9564,13 +9575,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9564
9575
  pattern: string;
9565
9576
  }[] | undefined;
9566
9577
  } | undefined;
9567
- tools?: string[] | undefined;
9568
9578
  tool_config?: Record<string, unknown> | undefined;
9569
9579
  mcp_servers?: Record<string, {
9570
9580
  transport: "stdio";
9571
9581
  command: string;
9572
- env?: Record<string, string> | undefined;
9573
9582
  args?: string[] | undefined;
9583
+ env?: Record<string, string> | undefined;
9574
9584
  } | {
9575
9585
  transport: "sse";
9576
9586
  url: string;
@@ -9611,9 +9621,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9611
9621
  keyRef?: string | undefined;
9612
9622
  }[] | undefined;
9613
9623
  contracts?: {
9614
- address: string;
9615
9624
  id: string;
9616
9625
  chainId: string;
9626
+ address: string;
9617
9627
  abiRef: string;
9618
9628
  }[] | undefined;
9619
9629
  transaction_policy?: {
@@ -9674,13 +9684,13 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9674
9684
  }, "strict", z.ZodTypeAny, {
9675
9685
  transport: "stdio";
9676
9686
  command: string;
9677
- env?: Record<string, string> | undefined;
9678
9687
  args?: string[] | undefined;
9688
+ env?: Record<string, string> | undefined;
9679
9689
  }, {
9680
9690
  transport: "stdio";
9681
9691
  command: string;
9682
- env?: Record<string, string> | undefined;
9683
9692
  args?: string[] | undefined;
9693
+ env?: Record<string, string> | undefined;
9684
9694
  }>, z.ZodObject<{
9685
9695
  transport: z.ZodLiteral<"sse">;
9686
9696
  url: z.ZodString;
@@ -9765,6 +9775,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9765
9775
  }>, "many">>;
9766
9776
  }, "strict", z.ZodTypeAny, {
9767
9777
  name: string;
9778
+ target: "voice";
9779
+ agent: {
9780
+ instructions: string;
9781
+ model: string;
9782
+ };
9768
9783
  voice: {
9769
9784
  provider: "openai" | "vapi";
9770
9785
  voiceId: string;
@@ -9772,11 +9787,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9772
9787
  bargeInTriggerFrames: number;
9773
9788
  bargeInWindowMs: number;
9774
9789
  };
9775
- target: "voice";
9776
- agent: {
9777
- instructions: string;
9778
- model: string;
9779
- };
9790
+ tools?: string[] | undefined;
9780
9791
  permissions?: {
9781
9792
  mode?: "default" | "plan" | "auto" | undefined;
9782
9793
  rules?: {
@@ -9784,13 +9795,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9784
9795
  pattern: string;
9785
9796
  }[] | undefined;
9786
9797
  } | undefined;
9787
- tools?: string[] | undefined;
9788
9798
  tool_config?: Record<string, unknown> | undefined;
9789
9799
  mcp_servers?: Record<string, {
9790
9800
  transport: "stdio";
9791
9801
  command: string;
9792
- env?: Record<string, string> | undefined;
9793
9802
  args?: string[] | undefined;
9803
+ env?: Record<string, string> | undefined;
9794
9804
  } | {
9795
9805
  transport: "sse";
9796
9806
  url: string;
@@ -9813,6 +9823,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9813
9823
  } | undefined;
9814
9824
  }, {
9815
9825
  name: string;
9826
+ target: "voice";
9827
+ agent: {
9828
+ instructions: string;
9829
+ model: string;
9830
+ };
9816
9831
  voice: {
9817
9832
  provider: "openai" | "vapi";
9818
9833
  voiceId?: string | undefined;
@@ -9820,11 +9835,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9820
9835
  bargeInTriggerFrames?: number | undefined;
9821
9836
  bargeInWindowMs?: number | undefined;
9822
9837
  };
9823
- target: "voice";
9824
- agent: {
9825
- instructions: string;
9826
- model: string;
9827
- };
9838
+ tools?: string[] | undefined;
9828
9839
  permissions?: {
9829
9840
  mode?: "default" | "plan" | "auto" | undefined;
9830
9841
  rules?: {
@@ -9832,13 +9843,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9832
9843
  pattern: string;
9833
9844
  }[] | undefined;
9834
9845
  } | undefined;
9835
- tools?: string[] | undefined;
9836
9846
  tool_config?: Record<string, unknown> | undefined;
9837
9847
  mcp_servers?: Record<string, {
9838
9848
  transport: "stdio";
9839
9849
  command: string;
9840
- env?: Record<string, string> | undefined;
9841
9850
  args?: string[] | undefined;
9851
+ env?: Record<string, string> | undefined;
9842
9852
  } | {
9843
9853
  transport: "sse";
9844
9854
  url: string;
@@ -9912,13 +9922,13 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
9912
9922
  }, "strict", z.ZodTypeAny, {
9913
9923
  transport: "stdio";
9914
9924
  command: string;
9915
- env?: Record<string, string> | undefined;
9916
9925
  args?: string[] | undefined;
9926
+ env?: Record<string, string> | undefined;
9917
9927
  }, {
9918
9928
  transport: "stdio";
9919
9929
  command: string;
9920
- env?: Record<string, string> | undefined;
9921
9930
  args?: string[] | undefined;
9931
+ env?: Record<string, string> | undefined;
9922
9932
  }>, z.ZodObject<{
9923
9933
  transport: z.ZodLiteral<"sse">;
9924
9934
  url: z.ZodString;
@@ -10016,6 +10026,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10016
10026
  };
10017
10027
  startUrl?: string | undefined;
10018
10028
  };
10029
+ tools?: string[] | undefined;
10019
10030
  permissions?: {
10020
10031
  mode?: "default" | "plan" | "auto" | undefined;
10021
10032
  rules?: {
@@ -10023,13 +10034,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10023
10034
  pattern: string;
10024
10035
  }[] | undefined;
10025
10036
  } | undefined;
10026
- tools?: string[] | undefined;
10027
10037
  tool_config?: Record<string, unknown> | undefined;
10028
10038
  mcp_servers?: Record<string, {
10029
10039
  transport: "stdio";
10030
10040
  command: string;
10031
- env?: Record<string, string> | undefined;
10032
10041
  args?: string[] | undefined;
10042
+ env?: Record<string, string> | undefined;
10033
10043
  } | {
10034
10044
  transport: "sse";
10035
10045
  url: string;
@@ -10055,6 +10065,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10055
10065
  instructions: string;
10056
10066
  model: string;
10057
10067
  };
10068
+ tools?: string[] | undefined;
10058
10069
  permissions?: {
10059
10070
  mode?: "default" | "plan" | "auto" | undefined;
10060
10071
  rules?: {
@@ -10062,13 +10073,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10062
10073
  pattern: string;
10063
10074
  }[] | undefined;
10064
10075
  } | undefined;
10065
- tools?: string[] | undefined;
10066
10076
  tool_config?: Record<string, unknown> | undefined;
10067
10077
  mcp_servers?: Record<string, {
10068
10078
  transport: "stdio";
10069
10079
  command: string;
10070
- env?: Record<string, string> | undefined;
10071
10080
  args?: string[] | undefined;
10081
+ env?: Record<string, string> | undefined;
10072
10082
  } | {
10073
10083
  transport: "sse";
10074
10084
  url: string;
@@ -10297,14 +10307,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10297
10307
  address: z.ZodString;
10298
10308
  abiRef: z.ZodString;
10299
10309
  }, "strict", z.ZodTypeAny, {
10300
- address: string;
10301
10310
  id: string;
10302
10311
  chainId: string;
10312
+ address: string;
10303
10313
  abiRef: string;
10304
10314
  }, {
10305
- address: string;
10306
10315
  id: string;
10307
10316
  chainId: string;
10317
+ address: string;
10308
10318
  abiRef: string;
10309
10319
  }>, "many">>;
10310
10320
  transaction_policy: z.ZodDefault<z.ZodObject<{
@@ -10333,15 +10343,15 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10333
10343
  event: z.ZodString;
10334
10344
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10335
10345
  }, "strict", z.ZodTypeAny, {
10336
- event: string;
10337
10346
  kind: "event";
10338
10347
  chainId: string;
10348
+ event: string;
10339
10349
  contract: string;
10340
10350
  filter?: Record<string, unknown> | undefined;
10341
10351
  }, {
10342
- event: string;
10343
10352
  kind: "event";
10344
10353
  chainId: string;
10354
+ event: string;
10345
10355
  contract: string;
10346
10356
  filter?: Record<string, unknown> | undefined;
10347
10357
  }>, z.ZodObject<{
@@ -10362,14 +10372,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10362
10372
  address: z.ZodString;
10363
10373
  direction: z.ZodDefault<z.ZodEnum<["in", "out", "both"]>>;
10364
10374
  }, "strict", z.ZodTypeAny, {
10365
- address: string;
10366
10375
  kind: "address";
10367
10376
  chainId: string;
10377
+ address: string;
10368
10378
  direction: "in" | "out" | "both";
10369
10379
  }, {
10370
- address: string;
10371
10380
  kind: "address";
10372
10381
  chainId: string;
10382
+ address: string;
10373
10383
  direction?: "in" | "out" | "both" | undefined;
10374
10384
  }>]>, "many">;
10375
10385
  idempotencyWindowMs: z.ZodDefault<z.ZodNumber>;
@@ -10383,13 +10393,13 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10383
10393
  }, "strict", z.ZodTypeAny, {
10384
10394
  transport: "stdio";
10385
10395
  command: string;
10386
- env?: Record<string, string> | undefined;
10387
10396
  args?: string[] | undefined;
10397
+ env?: Record<string, string> | undefined;
10388
10398
  }, {
10389
10399
  transport: "stdio";
10390
10400
  command: string;
10391
- env?: Record<string, string> | undefined;
10392
10401
  args?: string[] | undefined;
10402
+ env?: Record<string, string> | undefined;
10393
10403
  }>, z.ZodObject<{
10394
10404
  transport: z.ZodLiteral<"sse">;
10395
10405
  url: z.ZodString;
@@ -10502,9 +10512,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10502
10512
  keyRef?: string | undefined;
10503
10513
  }[];
10504
10514
  contracts: {
10505
- address: string;
10506
10515
  id: string;
10507
10516
  chainId: string;
10517
+ address: string;
10508
10518
  abiRef: string;
10509
10519
  }[];
10510
10520
  transaction_policy: {
@@ -10516,9 +10526,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10516
10526
  };
10517
10527
  idempotencyWindowMs: number;
10518
10528
  triggers: ({
10519
- event: string;
10520
10529
  kind: "event";
10521
10530
  chainId: string;
10531
+ event: string;
10522
10532
  contract: string;
10523
10533
  filter?: Record<string, unknown> | undefined;
10524
10534
  } | {
@@ -10526,11 +10536,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10526
10536
  chainId: string;
10527
10537
  scanIntervalMs: number;
10528
10538
  } | {
10529
- address: string;
10530
10539
  kind: "address";
10531
10540
  chainId: string;
10541
+ address: string;
10532
10542
  direction: "in" | "out" | "both";
10533
10543
  })[];
10544
+ tools?: string[] | undefined;
10534
10545
  permissions?: {
10535
10546
  mode?: "default" | "plan" | "auto" | undefined;
10536
10547
  rules?: {
@@ -10538,13 +10549,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10538
10549
  pattern: string;
10539
10550
  }[] | undefined;
10540
10551
  } | undefined;
10541
- tools?: string[] | undefined;
10542
10552
  tool_config?: Record<string, unknown> | undefined;
10543
10553
  mcp_servers?: Record<string, {
10544
10554
  transport: "stdio";
10545
10555
  command: string;
10546
- env?: Record<string, string> | undefined;
10547
10556
  args?: string[] | undefined;
10557
+ env?: Record<string, string> | undefined;
10548
10558
  } | {
10549
10559
  transport: "sse";
10550
10560
  url: string;
@@ -10585,9 +10595,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10585
10595
  reorgTolerant?: boolean | undefined;
10586
10596
  }[];
10587
10597
  triggers: ({
10588
- event: string;
10589
10598
  kind: "event";
10590
10599
  chainId: string;
10600
+ event: string;
10591
10601
  contract: string;
10592
10602
  filter?: Record<string, unknown> | undefined;
10593
10603
  } | {
@@ -10595,11 +10605,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10595
10605
  chainId: string;
10596
10606
  scanIntervalMs: number;
10597
10607
  } | {
10598
- address: string;
10599
10608
  kind: "address";
10600
10609
  chainId: string;
10610
+ address: string;
10601
10611
  direction?: "in" | "out" | "both" | undefined;
10602
10612
  })[];
10613
+ tools?: string[] | undefined;
10603
10614
  permissions?: {
10604
10615
  mode?: "default" | "plan" | "auto" | undefined;
10605
10616
  rules?: {
@@ -10607,13 +10618,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10607
10618
  pattern: string;
10608
10619
  }[] | undefined;
10609
10620
  } | undefined;
10610
- tools?: string[] | undefined;
10611
10621
  tool_config?: Record<string, unknown> | undefined;
10612
10622
  mcp_servers?: Record<string, {
10613
10623
  transport: "stdio";
10614
10624
  command: string;
10615
- env?: Record<string, string> | undefined;
10616
10625
  args?: string[] | undefined;
10626
+ env?: Record<string, string> | undefined;
10617
10627
  } | {
10618
10628
  transport: "sse";
10619
10629
  url: string;
@@ -10639,9 +10649,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10639
10649
  keyRef?: string | undefined;
10640
10650
  }[] | undefined;
10641
10651
  contracts?: {
10642
- address: string;
10643
10652
  id: string;
10644
10653
  chainId: string;
10654
+ address: string;
10645
10655
  abiRef: string;
10646
10656
  }[] | undefined;
10647
10657
  transaction_policy?: {
@@ -10748,14 +10758,14 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10748
10758
  address: z.ZodString;
10749
10759
  abiRef: z.ZodString;
10750
10760
  }, "strict", z.ZodTypeAny, {
10751
- address: string;
10752
10761
  id: string;
10753
10762
  chainId: string;
10763
+ address: string;
10754
10764
  abiRef: string;
10755
10765
  }, {
10756
- address: string;
10757
10766
  id: string;
10758
10767
  chainId: string;
10768
+ address: string;
10759
10769
  abiRef: string;
10760
10770
  }>;
10761
10771
  stateReader: z.ZodString;
@@ -10765,9 +10775,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10765
10775
  objective: z.ZodOptional<z.ZodString>;
10766
10776
  }, "strict", z.ZodTypeAny, {
10767
10777
  contract: {
10768
- address: string;
10769
10778
  id: string;
10770
10779
  chainId: string;
10780
+ address: string;
10771
10781
  abiRef: string;
10772
10782
  };
10773
10783
  stateReader: string;
@@ -10777,9 +10787,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10777
10787
  objective?: string | undefined;
10778
10788
  }, {
10779
10789
  contract: {
10780
- address: string;
10781
10790
  id: string;
10782
10791
  chainId: string;
10792
+ address: string;
10783
10793
  abiRef: string;
10784
10794
  };
10785
10795
  stateReader: string;
@@ -10817,13 +10827,13 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10817
10827
  }, "strict", z.ZodTypeAny, {
10818
10828
  transport: "stdio";
10819
10829
  command: string;
10820
- env?: Record<string, string> | undefined;
10821
10830
  args?: string[] | undefined;
10831
+ env?: Record<string, string> | undefined;
10822
10832
  }, {
10823
10833
  transport: "stdio";
10824
10834
  command: string;
10825
- env?: Record<string, string> | undefined;
10826
10835
  args?: string[] | undefined;
10836
+ env?: Record<string, string> | undefined;
10827
10837
  }>, z.ZodObject<{
10828
10838
  transport: z.ZodLiteral<"sse">;
10829
10839
  url: z.ZodString;
@@ -10944,9 +10954,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10944
10954
  };
10945
10955
  game: {
10946
10956
  contract: {
10947
- address: string;
10948
10957
  id: string;
10949
10958
  chainId: string;
10959
+ address: string;
10950
10960
  abiRef: string;
10951
10961
  };
10952
10962
  stateReader: string;
@@ -10955,6 +10965,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10955
10965
  moveTimeoutMs?: number | undefined;
10956
10966
  objective?: string | undefined;
10957
10967
  };
10968
+ tools?: string[] | undefined;
10958
10969
  permissions?: {
10959
10970
  mode?: "default" | "plan" | "auto" | undefined;
10960
10971
  rules?: {
@@ -10962,13 +10973,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
10962
10973
  pattern: string;
10963
10974
  }[] | undefined;
10964
10975
  } | undefined;
10965
- tools?: string[] | undefined;
10966
10976
  tool_config?: Record<string, unknown> | undefined;
10967
10977
  mcp_servers?: Record<string, {
10968
10978
  transport: "stdio";
10969
10979
  command: string;
10970
- env?: Record<string, string> | undefined;
10971
10980
  args?: string[] | undefined;
10981
+ env?: Record<string, string> | undefined;
10972
10982
  } | {
10973
10983
  transport: "sse";
10974
10984
  url: string;
@@ -11017,9 +11027,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
11017
11027
  };
11018
11028
  game: {
11019
11029
  contract: {
11020
- address: string;
11021
11030
  id: string;
11022
11031
  chainId: string;
11032
+ address: string;
11023
11033
  abiRef: string;
11024
11034
  };
11025
11035
  stateReader: string;
@@ -11028,6 +11038,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
11028
11038
  moveTimeoutMs?: number | undefined;
11029
11039
  objective?: string | undefined;
11030
11040
  };
11041
+ tools?: string[] | undefined;
11031
11042
  permissions?: {
11032
11043
  mode?: "default" | "plan" | "auto" | undefined;
11033
11044
  rules?: {
@@ -11035,13 +11046,12 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
11035
11046
  pattern: string;
11036
11047
  }[] | undefined;
11037
11048
  } | undefined;
11038
- tools?: string[] | undefined;
11039
11049
  tool_config?: Record<string, unknown> | undefined;
11040
11050
  mcp_servers?: Record<string, {
11041
11051
  transport: "stdio";
11042
11052
  command: string;
11043
- env?: Record<string, string> | undefined;
11044
11053
  args?: string[] | undefined;
11054
+ env?: Record<string, string> | undefined;
11045
11055
  } | {
11046
11056
  transport: "sse";
11047
11057
  url: string;
@@ -11109,4 +11119,3 @@ export type SpecFailureTaxonomyEntry = z.infer<typeof failureTaxonomyEntrySchema
11109
11119
  export type SpecFailureTaxonomy = z.infer<typeof failureTaxonomyBlock>;
11110
11120
  export { SpecParseError };
11111
11121
  export declare function parseSpec(yamlText: string): Spec;
11112
- //# sourceMappingURL=index.d.ts.map