sweagent 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -3,6 +3,7 @@ import pino from 'pino';
3
3
  import * as ai from 'ai';
4
4
  import { LanguageModelUsage, ModelMessage, Tool, FinishReason } from 'ai';
5
5
  export { FinishReason, LanguageModelUsage, ModelMessage, Tool, ToolExecutionOptions, jsonSchema, tool } from 'ai';
6
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
6
7
 
7
8
  /**
8
9
  * Custom error classes for the library
@@ -725,6 +726,40 @@ declare class BaseMcpClient {
725
726
  close(): Promise<void>;
726
727
  }
727
728
 
729
+ /**
730
+ * MCP server - exposes all sweagent agent modules as MCP tools via McpServer.
731
+ */
732
+
733
+ /** Create and return a configured McpServer with all agent tools registered. */
734
+ declare function createSweagentServer(): McpServer;
735
+
736
+ /**
737
+ * MCP server types - shared Zod schema for agent tool inputs.
738
+ */
739
+
740
+ /** Parsed tool input type. */
741
+ interface AgentToolInput {
742
+ input: string;
743
+ provider?: 'openai' | 'anthropic' | 'google';
744
+ model?: string;
745
+ temperature?: number;
746
+ }
747
+ /** A registered agent tool entry. */
748
+ interface AgentToolEntry {
749
+ name: string;
750
+ description: string;
751
+ handler: (input: string, model?: ModelConfig, onStep?: (step: AgentStep) => void) => Promise<AgentResult>;
752
+ }
753
+
754
+ /**
755
+ * MCP server tool registry - maps every sweagent module to an MCP tool entry.
756
+ */
757
+
758
+ /** All registered agent tools, keyed by tool name. */
759
+ declare const TOOL_REGISTRY: AgentToolEntry[];
760
+ /** Lookup a tool by name. Returns undefined if not found. */
761
+ declare function findTool(name: string): AgentToolEntry | undefined;
762
+
728
763
  /**
729
764
  * Hello World tool
730
765
  */
@@ -802,12 +837,12 @@ declare const FormFieldSchema: z.ZodObject<{
802
837
  date: "date";
803
838
  text: "text";
804
839
  image: "image";
840
+ multiSelect: "multiSelect";
805
841
  email: "email";
806
842
  password: "password";
807
- multiSelect: "multiSelect";
843
+ select: "select";
808
844
  textarea: "textarea";
809
845
  hidden: "hidden";
810
- select: "select";
811
846
  }>;
812
847
  required: z.ZodOptional<z.ZodBoolean>;
813
848
  validation: z.ZodOptional<z.ZodObject<{
@@ -884,12 +919,12 @@ declare const DrawerSchema: z.ZodObject<{
884
919
  date: "date";
885
920
  text: "text";
886
921
  image: "image";
922
+ multiSelect: "multiSelect";
887
923
  email: "email";
888
924
  password: "password";
889
- multiSelect: "multiSelect";
925
+ select: "select";
890
926
  textarea: "textarea";
891
927
  hidden: "hidden";
892
- select: "select";
893
928
  }>;
894
929
  required: z.ZodOptional<z.ZodBoolean>;
895
930
  validation: z.ZodOptional<z.ZodObject<{
@@ -942,12 +977,12 @@ declare const AuthPageSchema: z.ZodObject<{
942
977
  date: "date";
943
978
  text: "text";
944
979
  image: "image";
980
+ multiSelect: "multiSelect";
945
981
  email: "email";
946
982
  password: "password";
947
- multiSelect: "multiSelect";
983
+ select: "select";
948
984
  textarea: "textarea";
949
985
  hidden: "hidden";
950
- select: "select";
951
986
  }>;
952
987
  required: z.ZodOptional<z.ZodBoolean>;
953
988
  validation: z.ZodOptional<z.ZodObject<{
@@ -1001,12 +1036,12 @@ declare const ListingPageSchema: z.ZodObject<{
1001
1036
  date: "date";
1002
1037
  text: "text";
1003
1038
  image: "image";
1039
+ multiSelect: "multiSelect";
1004
1040
  email: "email";
1005
1041
  password: "password";
1006
- multiSelect: "multiSelect";
1042
+ select: "select";
1007
1043
  textarea: "textarea";
1008
1044
  hidden: "hidden";
1009
- select: "select";
1010
1045
  }>;
1011
1046
  required: z.ZodOptional<z.ZodBoolean>;
1012
1047
  validation: z.ZodOptional<z.ZodObject<{
@@ -1033,12 +1068,12 @@ declare const ListingPageSchema: z.ZodObject<{
1033
1068
  date: "date";
1034
1069
  text: "text";
1035
1070
  image: "image";
1071
+ multiSelect: "multiSelect";
1036
1072
  email: "email";
1037
1073
  password: "password";
1038
- multiSelect: "multiSelect";
1074
+ select: "select";
1039
1075
  textarea: "textarea";
1040
1076
  hidden: "hidden";
1041
- select: "select";
1042
1077
  }>;
1043
1078
  required: z.ZodOptional<z.ZodBoolean>;
1044
1079
  validation: z.ZodOptional<z.ZodObject<{
@@ -1092,12 +1127,12 @@ declare const PageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1092
1127
  date: "date";
1093
1128
  text: "text";
1094
1129
  image: "image";
1130
+ multiSelect: "multiSelect";
1095
1131
  email: "email";
1096
1132
  password: "password";
1097
- multiSelect: "multiSelect";
1133
+ select: "select";
1098
1134
  textarea: "textarea";
1099
1135
  hidden: "hidden";
1100
- select: "select";
1101
1136
  }>;
1102
1137
  required: z.ZodOptional<z.ZodBoolean>;
1103
1138
  validation: z.ZodOptional<z.ZodObject<{
@@ -1150,12 +1185,12 @@ declare const PageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1150
1185
  date: "date";
1151
1186
  text: "text";
1152
1187
  image: "image";
1188
+ multiSelect: "multiSelect";
1153
1189
  email: "email";
1154
1190
  password: "password";
1155
- multiSelect: "multiSelect";
1191
+ select: "select";
1156
1192
  textarea: "textarea";
1157
1193
  hidden: "hidden";
1158
- select: "select";
1159
1194
  }>;
1160
1195
  required: z.ZodOptional<z.ZodBoolean>;
1161
1196
  validation: z.ZodOptional<z.ZodObject<{
@@ -1182,12 +1217,12 @@ declare const PageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1182
1217
  date: "date";
1183
1218
  text: "text";
1184
1219
  image: "image";
1220
+ multiSelect: "multiSelect";
1185
1221
  email: "email";
1186
1222
  password: "password";
1187
- multiSelect: "multiSelect";
1223
+ select: "select";
1188
1224
  textarea: "textarea";
1189
1225
  hidden: "hidden";
1190
- select: "select";
1191
1226
  }>;
1192
1227
  required: z.ZodOptional<z.ZodBoolean>;
1193
1228
  validation: z.ZodOptional<z.ZodObject<{
@@ -1249,12 +1284,12 @@ declare const ModuleSchema: z.ZodObject<{
1249
1284
  date: "date";
1250
1285
  text: "text";
1251
1286
  image: "image";
1287
+ multiSelect: "multiSelect";
1252
1288
  email: "email";
1253
1289
  password: "password";
1254
- multiSelect: "multiSelect";
1290
+ select: "select";
1255
1291
  textarea: "textarea";
1256
1292
  hidden: "hidden";
1257
- select: "select";
1258
1293
  }>;
1259
1294
  required: z.ZodOptional<z.ZodBoolean>;
1260
1295
  validation: z.ZodOptional<z.ZodObject<{
@@ -1307,12 +1342,12 @@ declare const ModuleSchema: z.ZodObject<{
1307
1342
  date: "date";
1308
1343
  text: "text";
1309
1344
  image: "image";
1345
+ multiSelect: "multiSelect";
1310
1346
  email: "email";
1311
1347
  password: "password";
1312
- multiSelect: "multiSelect";
1348
+ select: "select";
1313
1349
  textarea: "textarea";
1314
1350
  hidden: "hidden";
1315
- select: "select";
1316
1351
  }>;
1317
1352
  required: z.ZodOptional<z.ZodBoolean>;
1318
1353
  validation: z.ZodOptional<z.ZodObject<{
@@ -1339,12 +1374,12 @@ declare const ModuleSchema: z.ZodObject<{
1339
1374
  date: "date";
1340
1375
  text: "text";
1341
1376
  image: "image";
1377
+ multiSelect: "multiSelect";
1342
1378
  email: "email";
1343
1379
  password: "password";
1344
- multiSelect: "multiSelect";
1380
+ select: "select";
1345
1381
  textarea: "textarea";
1346
1382
  hidden: "hidden";
1347
- select: "select";
1348
1383
  }>;
1349
1384
  required: z.ZodOptional<z.ZodBoolean>;
1350
1385
  validation: z.ZodOptional<z.ZodObject<{
@@ -1414,12 +1449,12 @@ declare const ApplicationSchema: z.ZodObject<{
1414
1449
  date: "date";
1415
1450
  text: "text";
1416
1451
  image: "image";
1452
+ multiSelect: "multiSelect";
1417
1453
  email: "email";
1418
1454
  password: "password";
1419
- multiSelect: "multiSelect";
1455
+ select: "select";
1420
1456
  textarea: "textarea";
1421
1457
  hidden: "hidden";
1422
- select: "select";
1423
1458
  }>;
1424
1459
  required: z.ZodOptional<z.ZodBoolean>;
1425
1460
  validation: z.ZodOptional<z.ZodObject<{
@@ -1472,12 +1507,12 @@ declare const ApplicationSchema: z.ZodObject<{
1472
1507
  date: "date";
1473
1508
  text: "text";
1474
1509
  image: "image";
1510
+ multiSelect: "multiSelect";
1475
1511
  email: "email";
1476
1512
  password: "password";
1477
- multiSelect: "multiSelect";
1513
+ select: "select";
1478
1514
  textarea: "textarea";
1479
1515
  hidden: "hidden";
1480
- select: "select";
1481
1516
  }>;
1482
1517
  required: z.ZodOptional<z.ZodBoolean>;
1483
1518
  validation: z.ZodOptional<z.ZodObject<{
@@ -1504,12 +1539,12 @@ declare const ApplicationSchema: z.ZodObject<{
1504
1539
  date: "date";
1505
1540
  text: "text";
1506
1541
  image: "image";
1542
+ multiSelect: "multiSelect";
1507
1543
  email: "email";
1508
1544
  password: "password";
1509
- multiSelect: "multiSelect";
1545
+ select: "select";
1510
1546
  textarea: "textarea";
1511
1547
  hidden: "hidden";
1512
- select: "select";
1513
1548
  }>;
1514
1549
  required: z.ZodOptional<z.ZodBoolean>;
1515
1550
  validation: z.ZodOptional<z.ZodObject<{
@@ -1636,6 +1671,8 @@ interface ReactBuilderAgentConfig {
1636
1671
  onStep?: (step: AgentStep) => void;
1637
1672
  /** Optional logger for execution logs */
1638
1673
  logger?: Logger;
1674
+ /** When true, exclude scaffold tools that write files to disk (used in MCP mode) */
1675
+ disableScaffold?: boolean;
1639
1676
  }
1640
1677
 
1641
1678
  /**
@@ -1676,7 +1713,15 @@ interface FeatureBreakdownResult {
1676
1713
  }
1677
1714
  declare function createGenerateFeatureBreakdownTool(model: Model): ai.Tool;
1678
1715
 
1679
- declare function createReactBuilderTools(model: Model): ToolSet;
1716
+ /**
1717
+ * react-builder tools
1718
+ */
1719
+
1720
+ interface ReactBuilderToolsOptions {
1721
+ /** When true, exclude scaffold tools that write files to disk */
1722
+ disableScaffold?: boolean;
1723
+ }
1724
+ declare function createReactBuilderTools(model: Model, options?: ReactBuilderToolsOptions): ToolSet;
1680
1725
 
1681
1726
  /**
1682
1727
  * graphql-analyzer subagent - analyzes GraphQL schemas (no tools)
@@ -1789,10 +1834,10 @@ declare const requirementContextSchema: z.ZodObject<{
1789
1834
  name: z.ZodString;
1790
1835
  operation: z.ZodEnum<{
1791
1836
  create: "create";
1792
- update: "update";
1793
- delete: "delete";
1794
1837
  read: "read";
1795
1838
  readAll: "readAll";
1839
+ update: "update";
1840
+ delete: "delete";
1796
1841
  }>;
1797
1842
  description: z.ZodString;
1798
1843
  inputs: z.ZodArray<z.ZodString>;
@@ -1989,10 +2034,10 @@ declare const finalRequirementSchema: z.ZodObject<{
1989
2034
  name: z.ZodString;
1990
2035
  operation: z.ZodEnum<{
1991
2036
  create: "create";
1992
- update: "update";
1993
- delete: "delete";
1994
2037
  read: "read";
1995
2038
  readAll: "readAll";
2039
+ update: "update";
2040
+ delete: "delete";
1996
2041
  }>;
1997
2042
  description: z.ZodString;
1998
2043
  inputs: z.ZodArray<z.ZodString>;
@@ -2123,10 +2168,10 @@ declare const crudApiSchema: z.ZodObject<{
2123
2168
  name: z.ZodString;
2124
2169
  operation: z.ZodEnum<{
2125
2170
  create: "create";
2126
- update: "update";
2127
- delete: "delete";
2128
2171
  read: "read";
2129
2172
  readAll: "readAll";
2173
+ update: "update";
2174
+ delete: "delete";
2130
2175
  }>;
2131
2176
  description: z.ZodString;
2132
2177
  inputs: z.ZodArray<z.ZodString>;
@@ -2142,10 +2187,10 @@ declare const extractedModuleSchema: z.ZodObject<{
2142
2187
  name: z.ZodString;
2143
2188
  operation: z.ZodEnum<{
2144
2189
  create: "create";
2145
- update: "update";
2146
- delete: "delete";
2147
2190
  read: "read";
2148
2191
  readAll: "readAll";
2192
+ update: "update";
2193
+ delete: "delete";
2149
2194
  }>;
2150
2195
  description: z.ZodString;
2151
2196
  inputs: z.ZodArray<z.ZodString>;
@@ -2163,10 +2208,10 @@ declare const modulesResultSchema: z.ZodObject<{
2163
2208
  name: z.ZodString;
2164
2209
  operation: z.ZodEnum<{
2165
2210
  create: "create";
2166
- update: "update";
2167
- delete: "delete";
2168
2211
  read: "read";
2169
2212
  readAll: "readAll";
2213
+ update: "update";
2214
+ delete: "delete";
2170
2215
  }>;
2171
2216
  description: z.ZodString;
2172
2217
  inputs: z.ZodArray<z.ZodString>;
@@ -2715,7 +2760,7 @@ type TDataModelDesign = z.infer<typeof dataModelDesignSchema>;
2715
2760
 
2716
2761
  declare const mongoFieldSchema: z.ZodObject<{
2717
2762
  fieldName: z.ZodString;
2718
- fieldType: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<"string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "password" | "Types.ObjectId", string>>, z.ZodEnum<{
2763
+ fieldType: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<"string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "Types.ObjectId" | "password", string>>, z.ZodEnum<{
2719
2764
  string: "string";
2720
2765
  number: "number";
2721
2766
  boolean: "boolean";
@@ -2723,8 +2768,8 @@ declare const mongoFieldSchema: z.ZodObject<{
2723
2768
  enum: "enum";
2724
2769
  Date: "Date";
2725
2770
  email: "email";
2726
- password: "password";
2727
2771
  "Types.ObjectId": "Types.ObjectId";
2772
+ password: "password";
2728
2773
  }>>;
2729
2774
  isArray: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
2730
2775
  isRequired: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
@@ -2765,7 +2810,7 @@ declare const mongoModuleSchema: z.ZodObject<{
2765
2810
  }>>>>;
2766
2811
  fields: z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
2767
2812
  fieldName: z.ZodString;
2768
- fieldType: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<"string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "password" | "Types.ObjectId", string>>, z.ZodEnum<{
2813
+ fieldType: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<"string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "Types.ObjectId" | "password", string>>, z.ZodEnum<{
2769
2814
  string: "string";
2770
2815
  number: "number";
2771
2816
  boolean: "boolean";
@@ -2773,8 +2818,8 @@ declare const mongoModuleSchema: z.ZodObject<{
2773
2818
  enum: "enum";
2774
2819
  Date: "Date";
2775
2820
  email: "email";
2776
- password: "password";
2777
2821
  "Types.ObjectId": "Types.ObjectId";
2822
+ password: "password";
2778
2823
  }>>;
2779
2824
  isArray: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
2780
2825
  isRequired: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
@@ -2790,7 +2835,7 @@ declare const mongoModuleSchema: z.ZodObject<{
2790
2835
  isPrivate: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
2791
2836
  }, z.core.$strip>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>, z.ZodTransform<{
2792
2837
  fieldName: string;
2793
- fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "password" | "Types.ObjectId";
2838
+ fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "Types.ObjectId" | "password";
2794
2839
  isArray: boolean;
2795
2840
  isRequired: boolean;
2796
2841
  isUnique: boolean;
@@ -2801,7 +2846,7 @@ declare const mongoModuleSchema: z.ZodObject<{
2801
2846
  relationType?: "" | "one-to-one" | "many-to-one" | undefined;
2802
2847
  }[], Record<string, unknown> | {
2803
2848
  fieldName: string;
2804
- fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "password" | "Types.ObjectId";
2849
+ fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "Types.ObjectId" | "password";
2805
2850
  isArray: boolean;
2806
2851
  isRequired: boolean;
2807
2852
  isUnique: boolean;
@@ -2841,7 +2886,7 @@ declare const mongoProjectSchema: z.ZodObject<{
2841
2886
  }>>>>;
2842
2887
  fields: z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
2843
2888
  fieldName: z.ZodString;
2844
- fieldType: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<"string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "password" | "Types.ObjectId", string>>, z.ZodEnum<{
2889
+ fieldType: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<"string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "Types.ObjectId" | "password", string>>, z.ZodEnum<{
2845
2890
  string: "string";
2846
2891
  number: "number";
2847
2892
  boolean: "boolean";
@@ -2849,8 +2894,8 @@ declare const mongoProjectSchema: z.ZodObject<{
2849
2894
  enum: "enum";
2850
2895
  Date: "Date";
2851
2896
  email: "email";
2852
- password: "password";
2853
2897
  "Types.ObjectId": "Types.ObjectId";
2898
+ password: "password";
2854
2899
  }>>;
2855
2900
  isArray: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
2856
2901
  isRequired: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
@@ -2866,7 +2911,7 @@ declare const mongoProjectSchema: z.ZodObject<{
2866
2911
  isPrivate: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
2867
2912
  }, z.core.$strip>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>, z.ZodTransform<{
2868
2913
  fieldName: string;
2869
- fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "password" | "Types.ObjectId";
2914
+ fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "Types.ObjectId" | "password";
2870
2915
  isArray: boolean;
2871
2916
  isRequired: boolean;
2872
2917
  isUnique: boolean;
@@ -2877,7 +2922,7 @@ declare const mongoProjectSchema: z.ZodObject<{
2877
2922
  relationType?: "" | "one-to-one" | "many-to-one" | undefined;
2878
2923
  }[], Record<string, unknown> | {
2879
2924
  fieldName: string;
2880
- fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "password" | "Types.ObjectId";
2925
+ fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "Types.ObjectId" | "password";
2881
2926
  isArray: boolean;
2882
2927
  isRequired: boolean;
2883
2928
  isUnique: boolean;
@@ -2892,7 +2937,7 @@ declare const mongoProjectSchema: z.ZodObject<{
2892
2937
  isUserModule: boolean;
2893
2938
  fields: {
2894
2939
  fieldName: string;
2895
- fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "password" | "Types.ObjectId";
2940
+ fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "Types.ObjectId" | "password";
2896
2941
  isArray: boolean;
2897
2942
  isRequired: boolean;
2898
2943
  isUnique: boolean;
@@ -2913,7 +2958,7 @@ declare const mongoProjectSchema: z.ZodObject<{
2913
2958
  isUserModule: boolean;
2914
2959
  fields: {
2915
2960
  fieldName: string;
2916
- fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "password" | "Types.ObjectId";
2961
+ fieldType: "string" | "number" | "boolean" | "object" | "enum" | "Date" | "email" | "Types.ObjectId" | "password";
2917
2962
  isArray: boolean;
2918
2963
  isRequired: boolean;
2919
2964
  isUnique: boolean;
@@ -3024,8 +3069,6 @@ interface MongoStructuredInput {
3024
3069
  stories: MongoExtractedStory[];
3025
3070
  technicalRequirements?: MongoTechnicalRequirements;
3026
3071
  }
3027
- /** @deprecated Use MongoDbDesignerAgentConfig */
3028
- type DbDesignerAgentConfig = MongoDbDesignerAgentConfig;
3029
3072
  interface MongoDbDesignerAgentConfig {
3030
3073
  /** User input: natural language requirement or instruction */
3031
3074
  input: string;
@@ -3880,9 +3923,9 @@ declare const middlewareSchema: z.ZodObject<{
3880
3923
  name: z.ZodString;
3881
3924
  purpose: z.ZodString;
3882
3925
  appliesTo: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<"global" | "route" | "resource", string>>, z.ZodEnum<{
3883
- route: "route";
3884
3926
  resource: "resource";
3885
3927
  global: "global";
3928
+ route: "route";
3886
3929
  }>>;
3887
3930
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3888
3931
  }, z.core.$strip>;
@@ -3930,9 +3973,9 @@ declare const backendDesignSchema: z.ZodObject<{
3930
3973
  name: z.ZodString;
3931
3974
  purpose: z.ZodString;
3932
3975
  appliesTo: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<"global" | "route" | "resource", string>>, z.ZodEnum<{
3933
- route: "route";
3934
3976
  resource: "resource";
3935
3977
  global: "global";
3978
+ route: "route";
3936
3979
  }>>;
3937
3980
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3938
3981
  }, z.core.$strip>>>;
@@ -4211,6 +4254,8 @@ interface ApolloBuilderAgentConfig {
4211
4254
  onStep?: (step: AgentStep) => void;
4212
4255
  /** Optional logger for execution logs */
4213
4256
  logger?: Logger;
4257
+ /** When true, exclude scaffold tools that write files to disk (used in MCP mode) */
4258
+ disableScaffold?: boolean;
4214
4259
  }
4215
4260
 
4216
4261
  /**
@@ -4239,10 +4284,18 @@ declare function createGenerateSubgraphTool(model: Model): ai.Tool;
4239
4284
  */
4240
4285
  declare const scaffoldSubgraphTool: ai.Tool;
4241
4286
 
4287
+ /**
4288
+ * apollo-builder tools
4289
+ */
4290
+
4291
+ interface ApolloBuilderToolsOptions {
4292
+ /** When true, exclude scaffold tools that write files to disk */
4293
+ disableScaffold?: boolean;
4294
+ }
4242
4295
  /**
4243
4296
  * Create all apollo-builder tools. Pass the model for AI-backed tools.
4244
4297
  */
4245
- declare function createApolloBuilderTools(model: Model): ToolSet;
4298
+ declare function createApolloBuilderTools(model: Model, options?: ApolloBuilderToolsOptions): ToolSet;
4246
4299
 
4247
4300
  /**
4248
4301
  * schema-generator subagent - generates GraphQL type definitions from data model
@@ -4407,6 +4460,8 @@ interface ExpressBuilderAgentConfig {
4407
4460
  onStep?: (step: AgentStep) => void;
4408
4461
  /** Optional logger for execution logs */
4409
4462
  logger?: Logger;
4463
+ /** When true, exclude scaffold tools that write files to disk (used in MCP mode) */
4464
+ disableScaffold?: boolean;
4410
4465
  }
4411
4466
 
4412
4467
  /**
@@ -4435,10 +4490,18 @@ declare function createGenerateExpressTool(model: Model): ai.Tool;
4435
4490
  */
4436
4491
  declare const scaffoldExpressTool: ai.Tool;
4437
4492
 
4493
+ /**
4494
+ * express-builder tools
4495
+ */
4496
+
4497
+ interface ExpressBuilderToolsOptions {
4498
+ /** When true, exclude scaffold tools that write files to disk */
4499
+ disableScaffold?: boolean;
4500
+ }
4438
4501
  /**
4439
4502
  * Create all express-builder tools. Pass the model for AI-backed tools.
4440
4503
  */
4441
- declare function createExpressBuilderTools(model: Model): ToolSet;
4504
+ declare function createExpressBuilderTools(model: Model, options?: ExpressBuilderToolsOptions): ToolSet;
4442
4505
 
4443
4506
  /**
4444
4507
  * route-generator subagent - generates route files from API design
@@ -4619,4 +4682,4 @@ declare const apiRouteGeneratorSubagent: SubagentDefinition;
4619
4682
  */
4620
4683
  declare function runNextjsBuilderAgent(config: NextjsBuilderAgentConfig): Promise<AgentResult>;
4621
4684
 
4622
- export { API_DESIGNER_SYSTEM_PROMPT, APOLLO_BUILDER_SYSTEM_PROMPT, AUTH_DESIGNER_SYSTEM_PROMPT, type ActorResult, type ApiDesign as AdApiDesign, type GraphqlOperation as AdGraphqlOperation, type RestEndpoint as AdRestEndpoint, type AgentConfig, AgentError, type AgentObserver, type AgentResult, type AgentStep, type AgentTool, type AgentToolResult, type ApiDesignerAgentConfig, ApiResponseTypeSchema, type ApiStyle, type ApolloBuilderAgentConfig, AppConfigSchema, type AppInfo, ApplicationSchema, type AuthDesign, type AuthDesignerAgentConfig, type AuthFlow, type AuthFlowStep, type AuthMiddleware, AuthPageApiSchema, AuthPageSchema, type AuthStrategy, BACKEND_ARCHITECT_SYSTEM_PROMPT, type BackendArchitectAgentConfig, BaseMcpClient, type BasicProjectInfo, BrandingSchema, CREATE_EXECUTION_PLAN_PROMPT, type ChatEntry$2 as ChatEntry, type ChatTurnResult, ColumnSchema, type ComponentDesign, type CreateSubagentToolOptions, CreateUserInputSchema, type CrudApi, DATA_MODELER_SYSTEM_PROMPT, MONGODB_SYSTEM_PROMPT as DB_DESIGN_SYSTEM_PROMPT, DESIGN_AUTH_PROMPT, DESIGN_BACKEND_PROMPT, DESIGN_DATABASE_SYSTEM_PROMPT, DESIGN_EXPRESS_PROMPT, DESIGN_FRONTEND_PROMPT, DESIGN_NEXTJS_PROMPT, DESIGN_SUBGRAPH_PROMPT, DISCOVERY_SYSTEM_FRAGMENT, DISCOVERY_USER_PROMPT, type DataEntity, type DataModelDesign, type DataModelerAgentConfig, type DatabaseDesign$1 as DatabaseDesign, type DatabaseEntity$1 as DatabaseEntity, type DatabaseType, type DbDesignerAgentConfig, type EntityField as DmEntityField, type EntityIndex as DmEntityIndex, type EntityRelation as DmEntityRelation, DrawerSchema, EXAMPLE_GRAPHQL_SCHEMA, EXAMPLE_JSON_OUTPUT, EXECUTION_PLANNER_SYSTEM_PROMPT, EXPRESS_BUILDER_SYSTEM_PROMPT, EXTRACT_ACTORS_PROMPT, EXTRACT_MODULES_PROMPT, type EdgeCase, type EditPlanConfig, type EntityField$2 as EntityField, type EntityIndex$2 as EntityIndex, type EntityRelation$2 as EntityRelation, type ExecutionPlan, type ExecutionPlannerAgentConfig, type ExpressBuilderAgentConfig, type ExtractedModule, FRONTEND_ARCHITECT_SYSTEM_PROMPT, type FeatureBreakdownResult, FieldOptionsSchema, type FinalRequirement, type FlowsResult, ForgotPasswordSchema, type FormField, FormFieldSchema, type FrontendArchitectAgentConfig, type FrontendDesign, GENERATE_FLOWS_PROMPT, GENERATE_STORIES_PROMPT, type HelloWorldAgentConfig, type HttpMethod, type ImageInput, type ImplementationPhase, type InvokeObjectOptions, type InvokeObjectResult, type InvokeOptions, LibraryError, ListingPageApiSchema, ListingPageSchema, type LogLevel, type Logger, type LoggerConfig, LoginInputSchema, MONGODB_SYSTEM_PROMPT, type McpClientConfig, type McpClientInfo, type McpResolveOptions, type McpToolContent, type McpTransport, type Model, type ModelConfig, ModelError, type ModelProvider, type ModelResponse, type ModelTool, type ModelToolCall, type Module, ModuleSchema, type ModulesResult, type MongoActor, type MongoDbDesignerAgentConfig, type MongoExtractedFlow, type MongoExtractedStory, type MongoStructuredInput, type MongoTechnicalRequirements, NEXTJS_BUILDER_SYSTEM_PROMPT, type NextjsBuilderAgentConfig, PLANNING_SYSTEM_PROMPT, type PageAccess, type PageDesign, PageSchema, type PhaseStep, type PlanChatTurnResult, type PlanFromRequirementsConfig, type PlanSections, type PlanStageResult, type PlanningAgentConfig, type PlanningChatConfig, type ChatEntry as PlanningChatEntry, type PlanningContext, PlanningContextBuilder, type Stage as PlanningStage, type ProjectBrief, type Question$1 as Question, REACT_BUILDER_INSTRUCTION, REACT_BUILDER_SYSTEM_PROMPT, REQUIREMENT_GATHERER_SYSTEM_PROMPT, type ReactBuilderAgentConfig, type RequirementChatConfig, type RequirementContext, RequirementContextBuilder, type RequirementGathererAgentConfig, type RequirementSummary$1 as RequirementSummary, ResetPasswordSchema, type RoleDefinition, type RunSubagentOptions, SYNTHESIS_SYSTEM_FRAGMENT, SYNTHESIS_USER_PROMPT, type ScaffoldConfig, type ScaffoldError, type ScaffoldResult, type SecurityPolicy, SpecializationSchema, type Stage$1 as Stage, type StageInput, type StoriesResult, type SubagentConfig, type SubagentDefinition, SubagentError, type SubagentResult, type TApiDesign, type TApiResponseTypeSchema, type TAppConfigSchema, type TApplicationSchema, type TAuthDesign, type TBackendDesign, type TMongoProjectSchema as TBackendProjectSchema, type TBrandingSchema, type TColumnSchema, type TCreateUserInputSchema, type TDataModelDesign, type TExecutionPlan, type TExpressConfig, type TForgotPasswordSchema, type TFormFieldSchema, type TFrontendDesign, type TLoginInputSchema, type TMongoFieldSchema, type TMongoModuleSchema, type TMongoProjectSchema, type TNextjsConfig, type TPageSchema, type TModuleSchema as TReactModuleSchema, type TResetPasswordSchema, type TSpecializationSchema, type TSubgraphConfig, type TUpdateUserInputSchema, type TUserSchema, type TemplateAuth, type TemplateBranding, type TemplateContext, type TemplateField, type TemplateModule, type TemplateOperation, type TestChecklistItem, type ToolConfig, type ToolContext, ToolError, type ToolExecutionResult, type ToolLogger, type ToolSet, UpdateUserInputSchema, UserSchema, ValidationError, ValidationSchema, type VisionOptions, actorSchema, actorsResultSchema, apiDesignSchema as adApiDesignSchema, graphqlOperationSchema as adGraphqlOperationSchema, restEndpointSchema as adRestEndpointSchema, addChatEntry, advanceStage, apiRouteGeneratorSubagent, assemblePlan, authDesignSchema, authFlowSchema, authFlowStepSchema, authMiddlewareSchema, backendDesignSchema, buildCreateExecutionPlanPrompt, buildDesignAuthPrompt, buildDesignBackendPrompt, buildDesignDatabasePrompt, buildDesignExpressPrompt, buildDesignFrontendPrompt, buildDesignNextjsPrompt, buildDesignSubgraphPrompt, buildDiscoveryPrompt, buildExampleShotPrompt, buildExtractActorsPrompt, buildExtractModulesPrompt, buildFeedbackPrompt, buildGenerateFlowsPrompt, buildGenerateStoriesPrompt, buildInstructionPrompt, buildPromptVariables, buildSynthesisPrompt, chatEntrySchema, compileTemplate, componentAnalyzerSubagent, componentDesignSchema, contractDesignerSubagent, convertRequirementToContext, createAnthropicModel, createApiDesignerTools, createApolloBuilderTools, createAuthDesignerTools, createBackendArchitectTools, createConfigValidatorSubagent, createDataModelerTools, createMongoDesignPrompt as createDbDesignPrompt, createDbDesignerTools, createDesignApiProTool, createDesignApiTool, createDesignAuthTool, createDesignBackendTool, createDesignDatabaseProTool, createDesignDatabaseTool, createDesignFrontendTool, createDesignSchemaProTool, createDesignSchemaTool, createExecutionPlanTool, createExecutionPlannerTools, createExpressBuilderTools, createFrontendArchitectTools, createGenerateExpressTool, createGenerateFeatureBreakdownTool, createGenerateFrontendTool, createGenerateNextjsTool, createGenerateSubgraphTool, createGoogleModel, createInitialContext, createLogger, createModel, createMongoDesignPrompt, createMongoProDesignPrompt, createMongoRedesignPrompt, createNextjsBuilderTools, createOpenAIModel, createPlanningContextBuilder, createMongoProDesignPrompt as createProDbDesignPrompt, createReactBuilderTools, createRedesignDatabaseTool, createMongoRedesignPrompt as createRedesignPrompt, createRefineSchemaTools, createRequirementContextBuilder, createSchemaRefinerSubagent, createSubagentTool, createSubagentToolSet, createToolSet, crudApiSchema, databaseDesignSchema, databaseEntitySchema, defineSubagent, defineTool, createSchemaRefinerSubagent as dmCreateSchemaRefinerSubagent, dataEntitySchema as dmDataEntitySchema, dataModelDesignSchema as dmDataModelDesignSchema, entityAnalyzerSubagent as dmEntityAnalyzerSubagent, validateSchemaTool as dmValidateSchemaTool, edgeCaseAnalyzerSubagent, edgeCaseSchema, editPlan, endpointAnalyzerSubagent, entityAnalyzerSubagent, entityFieldSchema, entityIndexSchema, entityRelationSchema, executeTool, executeToolByName, executionPlanSchema, expressConfigSchema, extractDataEntities, extractJson, extractRoles, extractedModuleSchema, mongoFieldSchema as fieldSchema, finalRequirementSchema, flowDesignerSubagent, flowSchema, flowsResultSchema, formFieldSchema, formatTechnicalRequirements, formatUserFlows, formatUserStories, formatUserTypes, frameworkSelectorSubagent, frontendDesignSchema, getTool, getTools, graphqlAnalyzerSubagent, graphqlFieldSchema, graphqlTypeSchema, helloWorldTool, implementationPhaseSchema, loggerConfigFromEnv, mergeStageResult, middlewareConfigSchema, middlewareConfiguratorSubagent, middlewareSchema, modelFieldSchema, modelSchema, mongoModuleSchema as moduleSchema, modulesResultSchema, mongoFieldSchema, mongoModuleSchema, mongoProjectSchema, nextjsApiRouteSchema, nextjsConfigSchema, nextjsLayoutSchema, nextjsPageSchema, pageDesignSchema, pagePlannerSubagent, parseModelJsonResponse, phaseStepSchema, processPlanningChat, processRequirementChat, projectBriefSchema, mongoProjectSchema as projectSchema, questionSchema, registerHelpers, relationshipMapperSubagent, requirementContextSchema, requirementSummarySchema, resolverOperationSchema, resolverPlannerSubagent, roleDefinitionSchema, routeGeneratorSubagent, routeGroupSchema, routePlannerSubagent, routerMethodSchema, routerSchema, runAgent, runApiDesignerAgent, runApolloBuilderAgent, runAuthDesignerAgent, runBackendArchitectAgent, runDataModelerAgent, runDbDesignerAgent, runExecutionPlannerAgent, runExpressBuilderAgent, runFrontendArchitectAgent, runHelloWorldAgent, runNextjsBuilderAgent, runPlanningAgent, runPlanningFromRequirements, runReactBuilderAgent, runRequirementGathererAgent, runSubagent, safeJsonParse, scaffoldExpressTool, scaffoldProject, scaffoldSubgraphTool, schemaGeneratorSubagent, securityAnalyzerSubagent, securityPolicySchema, serverActionSchema, servicePlannerSubagent, serviceSchema, storiesResultSchema, storySchema, subgraphConfigSchema, subgraphModuleSchema, sumTokenUsage, testChecklistItemSchema, testingStrategistSubagent, validateApiTool, validateAuthTool, validateBackendTool, validateExecutionPlanTool, validateExpressTool, validateFrontendConfigTool, validateFrontendTool, validateNextjsTool, validateMongoSchemaTool as validateSchemaTool, validateSubgraphTool, writePlanToFile };
4685
+ export { API_DESIGNER_SYSTEM_PROMPT, APOLLO_BUILDER_SYSTEM_PROMPT, AUTH_DESIGNER_SYSTEM_PROMPT, type ActorResult, type ApiDesign as AdApiDesign, type GraphqlOperation as AdGraphqlOperation, type RestEndpoint as AdRestEndpoint, type AgentConfig, AgentError, type AgentObserver, type AgentResult, type AgentStep, type AgentTool, type AgentToolEntry, type AgentToolInput, type AgentToolResult, type ApiDesignerAgentConfig, ApiResponseTypeSchema, type ApiStyle, type ApolloBuilderAgentConfig, AppConfigSchema, type AppInfo, ApplicationSchema, type AuthDesign, type AuthDesignerAgentConfig, type AuthFlow, type AuthFlowStep, type AuthMiddleware, AuthPageApiSchema, AuthPageSchema, type AuthStrategy, BACKEND_ARCHITECT_SYSTEM_PROMPT, type BackendArchitectAgentConfig, BaseMcpClient, type BasicProjectInfo, BrandingSchema, CREATE_EXECUTION_PLAN_PROMPT, type ChatEntry$2 as ChatEntry, type ChatTurnResult, ColumnSchema, type ComponentDesign, type CreateSubagentToolOptions, CreateUserInputSchema, type CrudApi, DATA_MODELER_SYSTEM_PROMPT, MONGODB_SYSTEM_PROMPT as DB_DESIGN_SYSTEM_PROMPT, DESIGN_AUTH_PROMPT, DESIGN_BACKEND_PROMPT, DESIGN_DATABASE_SYSTEM_PROMPT, DESIGN_EXPRESS_PROMPT, DESIGN_FRONTEND_PROMPT, DESIGN_NEXTJS_PROMPT, DESIGN_SUBGRAPH_PROMPT, DISCOVERY_SYSTEM_FRAGMENT, DISCOVERY_USER_PROMPT, type DataEntity, type DataModelDesign, type DataModelerAgentConfig, type DatabaseDesign$1 as DatabaseDesign, type DatabaseEntity$1 as DatabaseEntity, type DatabaseType, type MongoDbDesignerAgentConfig as DbDesignerAgentConfig, type EntityField as DmEntityField, type EntityIndex as DmEntityIndex, type EntityRelation as DmEntityRelation, DrawerSchema, EXAMPLE_GRAPHQL_SCHEMA, EXAMPLE_JSON_OUTPUT, EXECUTION_PLANNER_SYSTEM_PROMPT, EXPRESS_BUILDER_SYSTEM_PROMPT, EXTRACT_ACTORS_PROMPT, EXTRACT_MODULES_PROMPT, type EdgeCase, type EditPlanConfig, type EntityField$2 as EntityField, type EntityIndex$2 as EntityIndex, type EntityRelation$2 as EntityRelation, type ExecutionPlan, type ExecutionPlannerAgentConfig, type ExpressBuilderAgentConfig, type ExtractedModule, FRONTEND_ARCHITECT_SYSTEM_PROMPT, type FeatureBreakdownResult, FieldOptionsSchema, type FinalRequirement, type FlowsResult, ForgotPasswordSchema, type FormField, FormFieldSchema, type FrontendArchitectAgentConfig, type FrontendDesign, GENERATE_FLOWS_PROMPT, GENERATE_STORIES_PROMPT, type HelloWorldAgentConfig, type HttpMethod, type ImageInput, type ImplementationPhase, type InvokeObjectOptions, type InvokeObjectResult, type InvokeOptions, LibraryError, ListingPageApiSchema, ListingPageSchema, type LogLevel, type Logger, type LoggerConfig, LoginInputSchema, MONGODB_SYSTEM_PROMPT, type McpClientConfig, type McpClientInfo, type McpResolveOptions, type McpToolContent, type McpTransport, type Model, type ModelConfig, ModelError, type ModelProvider, type ModelResponse, type ModelTool, type ModelToolCall, type Module, ModuleSchema, type ModulesResult, type MongoActor, type MongoDbDesignerAgentConfig, type MongoExtractedFlow, type MongoExtractedStory, type MongoStructuredInput, type MongoTechnicalRequirements, NEXTJS_BUILDER_SYSTEM_PROMPT, type NextjsBuilderAgentConfig, PLANNING_SYSTEM_PROMPT, type PageAccess, type PageDesign, PageSchema, type PhaseStep, type PlanChatTurnResult, type PlanFromRequirementsConfig, type PlanSections, type PlanStageResult, type PlanningAgentConfig, type PlanningChatConfig, type ChatEntry as PlanningChatEntry, type PlanningContext, PlanningContextBuilder, type Stage as PlanningStage, type ProjectBrief, type Question$1 as Question, REACT_BUILDER_INSTRUCTION, REACT_BUILDER_SYSTEM_PROMPT, REQUIREMENT_GATHERER_SYSTEM_PROMPT, type ReactBuilderAgentConfig, type RequirementChatConfig, type RequirementContext, RequirementContextBuilder, type RequirementGathererAgentConfig, type RequirementSummary$1 as RequirementSummary, ResetPasswordSchema, type RoleDefinition, type RunSubagentOptions, SYNTHESIS_SYSTEM_FRAGMENT, SYNTHESIS_USER_PROMPT, type ScaffoldConfig, type ScaffoldError, type ScaffoldResult, type SecurityPolicy, SpecializationSchema, type Stage$1 as Stage, type StageInput, type StoriesResult, type SubagentConfig, type SubagentDefinition, SubagentError, type SubagentResult, type TApiDesign, type TApiResponseTypeSchema, type TAppConfigSchema, type TApplicationSchema, type TAuthDesign, type TBackendDesign, type TMongoProjectSchema as TBackendProjectSchema, type TBrandingSchema, type TColumnSchema, type TCreateUserInputSchema, type TDataModelDesign, type TExecutionPlan, type TExpressConfig, type TForgotPasswordSchema, type TFormFieldSchema, type TFrontendDesign, type TLoginInputSchema, type TMongoFieldSchema, type TMongoModuleSchema, type TMongoProjectSchema, type TNextjsConfig, TOOL_REGISTRY, type TPageSchema, type TModuleSchema as TReactModuleSchema, type TResetPasswordSchema, type TSpecializationSchema, type TSubgraphConfig, type TUpdateUserInputSchema, type TUserSchema, type TemplateAuth, type TemplateBranding, type TemplateContext, type TemplateField, type TemplateModule, type TemplateOperation, type TestChecklistItem, type ToolConfig, type ToolContext, ToolError, type ToolExecutionResult, type ToolLogger, type ToolSet, UpdateUserInputSchema, UserSchema, ValidationError, ValidationSchema, type VisionOptions, actorSchema, actorsResultSchema, apiDesignSchema as adApiDesignSchema, graphqlOperationSchema as adGraphqlOperationSchema, restEndpointSchema as adRestEndpointSchema, addChatEntry, advanceStage, apiRouteGeneratorSubagent, assemblePlan, authDesignSchema, authFlowSchema, authFlowStepSchema, authMiddlewareSchema, backendDesignSchema, buildCreateExecutionPlanPrompt, buildDesignAuthPrompt, buildDesignBackendPrompt, buildDesignDatabasePrompt, buildDesignExpressPrompt, buildDesignFrontendPrompt, buildDesignNextjsPrompt, buildDesignSubgraphPrompt, buildDiscoveryPrompt, buildExampleShotPrompt, buildExtractActorsPrompt, buildExtractModulesPrompt, buildFeedbackPrompt, buildGenerateFlowsPrompt, buildGenerateStoriesPrompt, buildInstructionPrompt, buildPromptVariables, buildSynthesisPrompt, chatEntrySchema, compileTemplate, componentAnalyzerSubagent, componentDesignSchema, contractDesignerSubagent, convertRequirementToContext, createAnthropicModel, createApiDesignerTools, createApolloBuilderTools, createAuthDesignerTools, createBackendArchitectTools, createConfigValidatorSubagent, createDataModelerTools, createMongoDesignPrompt as createDbDesignPrompt, createDbDesignerTools, createDesignApiProTool, createDesignApiTool, createDesignAuthTool, createDesignBackendTool, createDesignDatabaseProTool, createDesignDatabaseTool, createDesignFrontendTool, createDesignSchemaProTool, createDesignSchemaTool, createExecutionPlanTool, createExecutionPlannerTools, createExpressBuilderTools, createFrontendArchitectTools, createGenerateExpressTool, createGenerateFeatureBreakdownTool, createGenerateFrontendTool, createGenerateNextjsTool, createGenerateSubgraphTool, createGoogleModel, createInitialContext, createLogger, createModel, createMongoDesignPrompt, createMongoProDesignPrompt, createMongoRedesignPrompt, createNextjsBuilderTools, createOpenAIModel, createPlanningContextBuilder, createMongoProDesignPrompt as createProDbDesignPrompt, createReactBuilderTools, createRedesignDatabaseTool, createMongoRedesignPrompt as createRedesignPrompt, createRefineSchemaTools, createRequirementContextBuilder, createSchemaRefinerSubagent, createSubagentTool, createSubagentToolSet, createSweagentServer, createToolSet, crudApiSchema, databaseDesignSchema, databaseEntitySchema, defineSubagent, defineTool, createSchemaRefinerSubagent as dmCreateSchemaRefinerSubagent, dataEntitySchema as dmDataEntitySchema, dataModelDesignSchema as dmDataModelDesignSchema, entityAnalyzerSubagent as dmEntityAnalyzerSubagent, validateSchemaTool as dmValidateSchemaTool, edgeCaseAnalyzerSubagent, edgeCaseSchema, editPlan, endpointAnalyzerSubagent, entityAnalyzerSubagent, entityFieldSchema, entityIndexSchema, entityRelationSchema, executeTool, executeToolByName, executionPlanSchema, expressConfigSchema, extractDataEntities, extractJson, extractRoles, extractedModuleSchema, mongoFieldSchema as fieldSchema, finalRequirementSchema, findTool, flowDesignerSubagent, flowSchema, flowsResultSchema, formFieldSchema, formatTechnicalRequirements, formatUserFlows, formatUserStories, formatUserTypes, frameworkSelectorSubagent, frontendDesignSchema, getTool, getTools, graphqlAnalyzerSubagent, graphqlFieldSchema, graphqlTypeSchema, helloWorldTool, implementationPhaseSchema, loggerConfigFromEnv, mergeStageResult, middlewareConfigSchema, middlewareConfiguratorSubagent, middlewareSchema, modelFieldSchema, modelSchema, mongoModuleSchema as moduleSchema, modulesResultSchema, mongoFieldSchema, mongoModuleSchema, mongoProjectSchema, nextjsApiRouteSchema, nextjsConfigSchema, nextjsLayoutSchema, nextjsPageSchema, pageDesignSchema, pagePlannerSubagent, parseModelJsonResponse, phaseStepSchema, processPlanningChat, processRequirementChat, projectBriefSchema, mongoProjectSchema as projectSchema, questionSchema, registerHelpers, relationshipMapperSubagent, requirementContextSchema, requirementSummarySchema, resolverOperationSchema, resolverPlannerSubagent, roleDefinitionSchema, routeGeneratorSubagent, routeGroupSchema, routePlannerSubagent, routerMethodSchema, routerSchema, runAgent, runApiDesignerAgent, runApolloBuilderAgent, runAuthDesignerAgent, runBackendArchitectAgent, runDataModelerAgent, runDbDesignerAgent, runExecutionPlannerAgent, runExpressBuilderAgent, runFrontendArchitectAgent, runHelloWorldAgent, runNextjsBuilderAgent, runPlanningAgent, runPlanningFromRequirements, runReactBuilderAgent, runRequirementGathererAgent, runSubagent, safeJsonParse, scaffoldExpressTool, scaffoldProject, scaffoldSubgraphTool, schemaGeneratorSubagent, securityAnalyzerSubagent, securityPolicySchema, serverActionSchema, servicePlannerSubagent, serviceSchema, storiesResultSchema, storySchema, subgraphConfigSchema, subgraphModuleSchema, sumTokenUsage, testChecklistItemSchema, testingStrategistSubagent, validateApiTool, validateAuthTool, validateBackendTool, validateExecutionPlanTool, validateExpressTool, validateFrontendConfigTool, validateFrontendTool, validateNextjsTool, validateMongoSchemaTool as validateSchemaTool, validateSubgraphTool, writePlanToFile };