@mastra/agent-builder 0.0.1 → 0.0.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +3 -3
- package/dist/agent/index.d.ts +9 -5863
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/defaults.d.ts +126 -3107
- package/dist/defaults.d.ts.map +1 -1
- package/dist/index.js +870 -840
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +24 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +9 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/workflows/task-planning/schema.d.ts +10 -10
- package/dist/workflows/task-planning/task-planning.d.ts +20 -20
- package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
- package/dist/workflows/template-builder/template-builder.d.ts +64 -6
- package/dist/workflows/template-builder/template-builder.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/schema.d.ts +22 -22
- package/dist/workflows/workflow-builder/workflow-builder.d.ts +56 -56
- package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
- package/dist/workflows/workflow-map.d.ts +93 -60
- package/dist/workflows/workflow-map.d.ts.map +1 -1
- package/package.json +15 -7
package/dist/defaults.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class AgentBuilderDefaults {
|
|
|
11
11
|
'mcp-server': string;
|
|
12
12
|
network: string;
|
|
13
13
|
};
|
|
14
|
-
static DEFAULT_TOOLS: (projectPath: string
|
|
14
|
+
static DEFAULT_TOOLS: (projectPath: string) => Promise<{
|
|
15
15
|
readFile: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
16
16
|
filePath: z.ZodString;
|
|
17
17
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -473,19 +473,19 @@ export declare class AgentBuilderDefaults {
|
|
|
473
473
|
shell: z.ZodOptional<z.ZodString>;
|
|
474
474
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
475
475
|
}, "strip", z.ZodTypeAny, {
|
|
476
|
-
timeout: number;
|
|
477
476
|
command: string;
|
|
477
|
+
timeout: number;
|
|
478
478
|
captureOutput: boolean;
|
|
479
|
-
env?: Record<string, string> | undefined;
|
|
480
479
|
workingDirectory?: string | undefined;
|
|
481
480
|
shell?: string | undefined;
|
|
481
|
+
env?: Record<string, string> | undefined;
|
|
482
482
|
}, {
|
|
483
483
|
command: string;
|
|
484
|
-
env?: Record<string, string> | undefined;
|
|
485
|
-
timeout?: number | undefined;
|
|
486
484
|
workingDirectory?: string | undefined;
|
|
485
|
+
timeout?: number | undefined;
|
|
487
486
|
captureOutput?: boolean | undefined;
|
|
488
487
|
shell?: string | undefined;
|
|
488
|
+
env?: Record<string, string> | undefined;
|
|
489
489
|
}>, z.ZodObject<{
|
|
490
490
|
success: z.ZodBoolean;
|
|
491
491
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
@@ -521,19 +521,19 @@ export declare class AgentBuilderDefaults {
|
|
|
521
521
|
shell: z.ZodOptional<z.ZodString>;
|
|
522
522
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
523
523
|
}, "strip", z.ZodTypeAny, {
|
|
524
|
-
timeout: number;
|
|
525
524
|
command: string;
|
|
525
|
+
timeout: number;
|
|
526
526
|
captureOutput: boolean;
|
|
527
|
-
env?: Record<string, string> | undefined;
|
|
528
527
|
workingDirectory?: string | undefined;
|
|
529
528
|
shell?: string | undefined;
|
|
529
|
+
env?: Record<string, string> | undefined;
|
|
530
530
|
}, {
|
|
531
531
|
command: string;
|
|
532
|
-
env?: Record<string, string> | undefined;
|
|
533
|
-
timeout?: number | undefined;
|
|
534
532
|
workingDirectory?: string | undefined;
|
|
533
|
+
timeout?: number | undefined;
|
|
535
534
|
captureOutput?: boolean | undefined;
|
|
536
535
|
shell?: string | undefined;
|
|
536
|
+
env?: Record<string, string> | undefined;
|
|
537
537
|
}>>> & {
|
|
538
538
|
inputSchema: z.ZodObject<{
|
|
539
539
|
command: z.ZodString;
|
|
@@ -543,19 +543,19 @@ export declare class AgentBuilderDefaults {
|
|
|
543
543
|
shell: z.ZodOptional<z.ZodString>;
|
|
544
544
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
545
545
|
}, "strip", z.ZodTypeAny, {
|
|
546
|
-
timeout: number;
|
|
547
546
|
command: string;
|
|
547
|
+
timeout: number;
|
|
548
548
|
captureOutput: boolean;
|
|
549
|
-
env?: Record<string, string> | undefined;
|
|
550
549
|
workingDirectory?: string | undefined;
|
|
551
550
|
shell?: string | undefined;
|
|
551
|
+
env?: Record<string, string> | undefined;
|
|
552
552
|
}, {
|
|
553
553
|
command: string;
|
|
554
|
-
env?: Record<string, string> | undefined;
|
|
555
|
-
timeout?: number | undefined;
|
|
556
554
|
workingDirectory?: string | undefined;
|
|
555
|
+
timeout?: number | undefined;
|
|
557
556
|
captureOutput?: boolean | undefined;
|
|
558
557
|
shell?: string | undefined;
|
|
558
|
+
env?: Record<string, string> | undefined;
|
|
559
559
|
}>;
|
|
560
560
|
outputSchema: z.ZodObject<{
|
|
561
561
|
success: z.ZodBoolean;
|
|
@@ -593,19 +593,19 @@ export declare class AgentBuilderDefaults {
|
|
|
593
593
|
shell: z.ZodOptional<z.ZodString>;
|
|
594
594
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
595
595
|
}, "strip", z.ZodTypeAny, {
|
|
596
|
-
timeout: number;
|
|
597
596
|
command: string;
|
|
597
|
+
timeout: number;
|
|
598
598
|
captureOutput: boolean;
|
|
599
|
-
env?: Record<string, string> | undefined;
|
|
600
599
|
workingDirectory?: string | undefined;
|
|
601
600
|
shell?: string | undefined;
|
|
601
|
+
env?: Record<string, string> | undefined;
|
|
602
602
|
}, {
|
|
603
603
|
command: string;
|
|
604
|
-
env?: Record<string, string> | undefined;
|
|
605
|
-
timeout?: number | undefined;
|
|
606
604
|
workingDirectory?: string | undefined;
|
|
605
|
+
timeout?: number | undefined;
|
|
607
606
|
captureOutput?: boolean | undefined;
|
|
608
607
|
shell?: string | undefined;
|
|
608
|
+
env?: Record<string, string> | undefined;
|
|
609
609
|
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
610
610
|
};
|
|
611
611
|
taskManager: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
@@ -1209,10 +1209,10 @@ export declare class AgentBuilderDefaults {
|
|
|
1209
1209
|
newContent: z.ZodString;
|
|
1210
1210
|
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
1211
1211
|
}, "strip", z.ZodTypeAny, {
|
|
1212
|
-
createBackup: boolean;
|
|
1213
1212
|
filePath: string;
|
|
1214
1213
|
startLine: number;
|
|
1215
1214
|
endLine: number;
|
|
1215
|
+
createBackup: boolean;
|
|
1216
1216
|
newContent: string;
|
|
1217
1217
|
}, {
|
|
1218
1218
|
filePath: string;
|
|
@@ -1230,14 +1230,14 @@ export declare class AgentBuilderDefaults {
|
|
|
1230
1230
|
message: string;
|
|
1231
1231
|
success: boolean;
|
|
1232
1232
|
error?: string | undefined;
|
|
1233
|
-
linesReplaced?: number | undefined;
|
|
1234
1233
|
backup?: string | undefined;
|
|
1234
|
+
linesReplaced?: number | undefined;
|
|
1235
1235
|
}, {
|
|
1236
1236
|
message: string;
|
|
1237
1237
|
success: boolean;
|
|
1238
1238
|
error?: string | undefined;
|
|
1239
|
-
linesReplaced?: number | undefined;
|
|
1240
1239
|
backup?: string | undefined;
|
|
1240
|
+
linesReplaced?: number | undefined;
|
|
1241
1241
|
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1242
1242
|
filePath: z.ZodString;
|
|
1243
1243
|
startLine: z.ZodNumber;
|
|
@@ -1245,10 +1245,10 @@ export declare class AgentBuilderDefaults {
|
|
|
1245
1245
|
newContent: z.ZodString;
|
|
1246
1246
|
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
1247
1247
|
}, "strip", z.ZodTypeAny, {
|
|
1248
|
-
createBackup: boolean;
|
|
1249
1248
|
filePath: string;
|
|
1250
1249
|
startLine: number;
|
|
1251
1250
|
endLine: number;
|
|
1251
|
+
createBackup: boolean;
|
|
1252
1252
|
newContent: string;
|
|
1253
1253
|
}, {
|
|
1254
1254
|
filePath: string;
|
|
@@ -1264,10 +1264,10 @@ export declare class AgentBuilderDefaults {
|
|
|
1264
1264
|
newContent: z.ZodString;
|
|
1265
1265
|
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
1266
1266
|
}, "strip", z.ZodTypeAny, {
|
|
1267
|
-
createBackup: boolean;
|
|
1268
1267
|
filePath: string;
|
|
1269
1268
|
startLine: number;
|
|
1270
1269
|
endLine: number;
|
|
1270
|
+
createBackup: boolean;
|
|
1271
1271
|
newContent: string;
|
|
1272
1272
|
}, {
|
|
1273
1273
|
filePath: string;
|
|
@@ -1286,14 +1286,14 @@ export declare class AgentBuilderDefaults {
|
|
|
1286
1286
|
message: string;
|
|
1287
1287
|
success: boolean;
|
|
1288
1288
|
error?: string | undefined;
|
|
1289
|
-
linesReplaced?: number | undefined;
|
|
1290
1289
|
backup?: string | undefined;
|
|
1290
|
+
linesReplaced?: number | undefined;
|
|
1291
1291
|
}, {
|
|
1292
1292
|
message: string;
|
|
1293
1293
|
success: boolean;
|
|
1294
1294
|
error?: string | undefined;
|
|
1295
|
-
linesReplaced?: number | undefined;
|
|
1296
1295
|
backup?: string | undefined;
|
|
1296
|
+
linesReplaced?: number | undefined;
|
|
1297
1297
|
}>;
|
|
1298
1298
|
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1299
1299
|
filePath: z.ZodString;
|
|
@@ -1302,10 +1302,10 @@ export declare class AgentBuilderDefaults {
|
|
|
1302
1302
|
newContent: z.ZodString;
|
|
1303
1303
|
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
1304
1304
|
}, "strip", z.ZodTypeAny, {
|
|
1305
|
-
createBackup: boolean;
|
|
1306
1305
|
filePath: string;
|
|
1307
1306
|
startLine: number;
|
|
1308
1307
|
endLine: number;
|
|
1308
|
+
createBackup: boolean;
|
|
1309
1309
|
newContent: string;
|
|
1310
1310
|
}, {
|
|
1311
1311
|
filePath: string;
|
|
@@ -1456,211 +1456,6 @@ export declare class AgentBuilderDefaults {
|
|
|
1456
1456
|
context?: number | undefined;
|
|
1457
1457
|
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
1458
1458
|
};
|
|
1459
|
-
askClarification: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1460
|
-
question: z.ZodString;
|
|
1461
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1462
|
-
id: z.ZodString;
|
|
1463
|
-
description: z.ZodString;
|
|
1464
|
-
implications: z.ZodOptional<z.ZodString>;
|
|
1465
|
-
}, "strip", z.ZodTypeAny, {
|
|
1466
|
-
id: string;
|
|
1467
|
-
description: string;
|
|
1468
|
-
implications?: string | undefined;
|
|
1469
|
-
}, {
|
|
1470
|
-
id: string;
|
|
1471
|
-
description: string;
|
|
1472
|
-
implications?: string | undefined;
|
|
1473
|
-
}>, "many">>;
|
|
1474
|
-
context: z.ZodOptional<z.ZodString>;
|
|
1475
|
-
urgency: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1476
|
-
}, "strip", z.ZodTypeAny, {
|
|
1477
|
-
question: string;
|
|
1478
|
-
urgency: "high" | "medium" | "low";
|
|
1479
|
-
options?: {
|
|
1480
|
-
id: string;
|
|
1481
|
-
description: string;
|
|
1482
|
-
implications?: string | undefined;
|
|
1483
|
-
}[] | undefined;
|
|
1484
|
-
context?: string | undefined;
|
|
1485
|
-
}, {
|
|
1486
|
-
question: string;
|
|
1487
|
-
options?: {
|
|
1488
|
-
id: string;
|
|
1489
|
-
description: string;
|
|
1490
|
-
implications?: string | undefined;
|
|
1491
|
-
}[] | undefined;
|
|
1492
|
-
context?: string | undefined;
|
|
1493
|
-
urgency?: "high" | "medium" | "low" | undefined;
|
|
1494
|
-
}>, z.ZodObject<{
|
|
1495
|
-
questionId: z.ZodString;
|
|
1496
|
-
question: z.ZodString;
|
|
1497
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1498
|
-
id: z.ZodString;
|
|
1499
|
-
description: z.ZodString;
|
|
1500
|
-
}, "strip", z.ZodTypeAny, {
|
|
1501
|
-
id: string;
|
|
1502
|
-
description: string;
|
|
1503
|
-
}, {
|
|
1504
|
-
id: string;
|
|
1505
|
-
description: string;
|
|
1506
|
-
}>, "many">>;
|
|
1507
|
-
awaitingResponse: z.ZodBoolean;
|
|
1508
|
-
}, "strip", z.ZodTypeAny, {
|
|
1509
|
-
question: string;
|
|
1510
|
-
questionId: string;
|
|
1511
|
-
awaitingResponse: boolean;
|
|
1512
|
-
options?: {
|
|
1513
|
-
id: string;
|
|
1514
|
-
description: string;
|
|
1515
|
-
}[] | undefined;
|
|
1516
|
-
}, {
|
|
1517
|
-
question: string;
|
|
1518
|
-
questionId: string;
|
|
1519
|
-
awaitingResponse: boolean;
|
|
1520
|
-
options?: {
|
|
1521
|
-
id: string;
|
|
1522
|
-
description: string;
|
|
1523
|
-
}[] | undefined;
|
|
1524
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1525
|
-
question: z.ZodString;
|
|
1526
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1527
|
-
id: z.ZodString;
|
|
1528
|
-
description: z.ZodString;
|
|
1529
|
-
implications: z.ZodOptional<z.ZodString>;
|
|
1530
|
-
}, "strip", z.ZodTypeAny, {
|
|
1531
|
-
id: string;
|
|
1532
|
-
description: string;
|
|
1533
|
-
implications?: string | undefined;
|
|
1534
|
-
}, {
|
|
1535
|
-
id: string;
|
|
1536
|
-
description: string;
|
|
1537
|
-
implications?: string | undefined;
|
|
1538
|
-
}>, "many">>;
|
|
1539
|
-
context: z.ZodOptional<z.ZodString>;
|
|
1540
|
-
urgency: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1541
|
-
}, "strip", z.ZodTypeAny, {
|
|
1542
|
-
question: string;
|
|
1543
|
-
urgency: "high" | "medium" | "low";
|
|
1544
|
-
options?: {
|
|
1545
|
-
id: string;
|
|
1546
|
-
description: string;
|
|
1547
|
-
implications?: string | undefined;
|
|
1548
|
-
}[] | undefined;
|
|
1549
|
-
context?: string | undefined;
|
|
1550
|
-
}, {
|
|
1551
|
-
question: string;
|
|
1552
|
-
options?: {
|
|
1553
|
-
id: string;
|
|
1554
|
-
description: string;
|
|
1555
|
-
implications?: string | undefined;
|
|
1556
|
-
}[] | undefined;
|
|
1557
|
-
context?: string | undefined;
|
|
1558
|
-
urgency?: "high" | "medium" | "low" | undefined;
|
|
1559
|
-
}>>> & {
|
|
1560
|
-
inputSchema: z.ZodObject<{
|
|
1561
|
-
question: z.ZodString;
|
|
1562
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1563
|
-
id: z.ZodString;
|
|
1564
|
-
description: z.ZodString;
|
|
1565
|
-
implications: z.ZodOptional<z.ZodString>;
|
|
1566
|
-
}, "strip", z.ZodTypeAny, {
|
|
1567
|
-
id: string;
|
|
1568
|
-
description: string;
|
|
1569
|
-
implications?: string | undefined;
|
|
1570
|
-
}, {
|
|
1571
|
-
id: string;
|
|
1572
|
-
description: string;
|
|
1573
|
-
implications?: string | undefined;
|
|
1574
|
-
}>, "many">>;
|
|
1575
|
-
context: z.ZodOptional<z.ZodString>;
|
|
1576
|
-
urgency: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1577
|
-
}, "strip", z.ZodTypeAny, {
|
|
1578
|
-
question: string;
|
|
1579
|
-
urgency: "high" | "medium" | "low";
|
|
1580
|
-
options?: {
|
|
1581
|
-
id: string;
|
|
1582
|
-
description: string;
|
|
1583
|
-
implications?: string | undefined;
|
|
1584
|
-
}[] | undefined;
|
|
1585
|
-
context?: string | undefined;
|
|
1586
|
-
}, {
|
|
1587
|
-
question: string;
|
|
1588
|
-
options?: {
|
|
1589
|
-
id: string;
|
|
1590
|
-
description: string;
|
|
1591
|
-
implications?: string | undefined;
|
|
1592
|
-
}[] | undefined;
|
|
1593
|
-
context?: string | undefined;
|
|
1594
|
-
urgency?: "high" | "medium" | "low" | undefined;
|
|
1595
|
-
}>;
|
|
1596
|
-
outputSchema: z.ZodObject<{
|
|
1597
|
-
questionId: z.ZodString;
|
|
1598
|
-
question: z.ZodString;
|
|
1599
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1600
|
-
id: z.ZodString;
|
|
1601
|
-
description: z.ZodString;
|
|
1602
|
-
}, "strip", z.ZodTypeAny, {
|
|
1603
|
-
id: string;
|
|
1604
|
-
description: string;
|
|
1605
|
-
}, {
|
|
1606
|
-
id: string;
|
|
1607
|
-
description: string;
|
|
1608
|
-
}>, "many">>;
|
|
1609
|
-
awaitingResponse: z.ZodBoolean;
|
|
1610
|
-
}, "strip", z.ZodTypeAny, {
|
|
1611
|
-
question: string;
|
|
1612
|
-
questionId: string;
|
|
1613
|
-
awaitingResponse: boolean;
|
|
1614
|
-
options?: {
|
|
1615
|
-
id: string;
|
|
1616
|
-
description: string;
|
|
1617
|
-
}[] | undefined;
|
|
1618
|
-
}, {
|
|
1619
|
-
question: string;
|
|
1620
|
-
questionId: string;
|
|
1621
|
-
awaitingResponse: boolean;
|
|
1622
|
-
options?: {
|
|
1623
|
-
id: string;
|
|
1624
|
-
description: string;
|
|
1625
|
-
}[] | undefined;
|
|
1626
|
-
}>;
|
|
1627
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1628
|
-
question: z.ZodString;
|
|
1629
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1630
|
-
id: z.ZodString;
|
|
1631
|
-
description: z.ZodString;
|
|
1632
|
-
implications: z.ZodOptional<z.ZodString>;
|
|
1633
|
-
}, "strip", z.ZodTypeAny, {
|
|
1634
|
-
id: string;
|
|
1635
|
-
description: string;
|
|
1636
|
-
implications?: string | undefined;
|
|
1637
|
-
}, {
|
|
1638
|
-
id: string;
|
|
1639
|
-
description: string;
|
|
1640
|
-
implications?: string | undefined;
|
|
1641
|
-
}>, "many">>;
|
|
1642
|
-
context: z.ZodOptional<z.ZodString>;
|
|
1643
|
-
urgency: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1644
|
-
}, "strip", z.ZodTypeAny, {
|
|
1645
|
-
question: string;
|
|
1646
|
-
urgency: "high" | "medium" | "low";
|
|
1647
|
-
options?: {
|
|
1648
|
-
id: string;
|
|
1649
|
-
description: string;
|
|
1650
|
-
implications?: string | undefined;
|
|
1651
|
-
}[] | undefined;
|
|
1652
|
-
context?: string | undefined;
|
|
1653
|
-
}, {
|
|
1654
|
-
question: string;
|
|
1655
|
-
options?: {
|
|
1656
|
-
id: string;
|
|
1657
|
-
description: string;
|
|
1658
|
-
implications?: string | undefined;
|
|
1659
|
-
}[] | undefined;
|
|
1660
|
-
context?: string | undefined;
|
|
1661
|
-
urgency?: "high" | "medium" | "low" | undefined;
|
|
1662
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
1663
|
-
};
|
|
1664
1459
|
smartSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1665
1460
|
query: z.ZodString;
|
|
1666
1461
|
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
@@ -1765,13 +1560,13 @@ export declare class AgentBuilderDefaults {
|
|
|
1765
1560
|
filesSearched: z.ZodNumber;
|
|
1766
1561
|
patterns: z.ZodArray<z.ZodString, "many">;
|
|
1767
1562
|
}, "strip", z.ZodTypeAny, {
|
|
1768
|
-
patterns: string[];
|
|
1769
1563
|
totalMatches: number;
|
|
1770
1564
|
filesSearched: number;
|
|
1771
|
-
}, {
|
|
1772
1565
|
patterns: string[];
|
|
1566
|
+
}, {
|
|
1773
1567
|
totalMatches: number;
|
|
1774
1568
|
filesSearched: number;
|
|
1569
|
+
patterns: string[];
|
|
1775
1570
|
}>;
|
|
1776
1571
|
}, "strip", z.ZodTypeAny, {
|
|
1777
1572
|
success: boolean;
|
|
@@ -1787,9 +1582,9 @@ export declare class AgentBuilderDefaults {
|
|
|
1787
1582
|
relevance?: number | undefined;
|
|
1788
1583
|
}[];
|
|
1789
1584
|
summary: {
|
|
1790
|
-
patterns: string[];
|
|
1791
1585
|
totalMatches: number;
|
|
1792
1586
|
filesSearched: number;
|
|
1587
|
+
patterns: string[];
|
|
1793
1588
|
};
|
|
1794
1589
|
}, {
|
|
1795
1590
|
success: boolean;
|
|
@@ -1805,9 +1600,9 @@ export declare class AgentBuilderDefaults {
|
|
|
1805
1600
|
relevance?: number | undefined;
|
|
1806
1601
|
}[];
|
|
1807
1602
|
summary: {
|
|
1808
|
-
patterns: string[];
|
|
1809
1603
|
totalMatches: number;
|
|
1810
1604
|
filesSearched: number;
|
|
1605
|
+
patterns: string[];
|
|
1811
1606
|
};
|
|
1812
1607
|
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1813
1608
|
query: z.ZodString;
|
|
@@ -1975,13 +1770,13 @@ export declare class AgentBuilderDefaults {
|
|
|
1975
1770
|
filesSearched: z.ZodNumber;
|
|
1976
1771
|
patterns: z.ZodArray<z.ZodString, "many">;
|
|
1977
1772
|
}, "strip", z.ZodTypeAny, {
|
|
1978
|
-
patterns: string[];
|
|
1979
1773
|
totalMatches: number;
|
|
1980
1774
|
filesSearched: number;
|
|
1981
|
-
}, {
|
|
1982
1775
|
patterns: string[];
|
|
1776
|
+
}, {
|
|
1983
1777
|
totalMatches: number;
|
|
1984
1778
|
filesSearched: number;
|
|
1779
|
+
patterns: string[];
|
|
1985
1780
|
}>;
|
|
1986
1781
|
}, "strip", z.ZodTypeAny, {
|
|
1987
1782
|
success: boolean;
|
|
@@ -1997,9 +1792,9 @@ export declare class AgentBuilderDefaults {
|
|
|
1997
1792
|
relevance?: number | undefined;
|
|
1998
1793
|
}[];
|
|
1999
1794
|
summary: {
|
|
2000
|
-
patterns: string[];
|
|
2001
1795
|
totalMatches: number;
|
|
2002
1796
|
filesSearched: number;
|
|
1797
|
+
patterns: string[];
|
|
2003
1798
|
};
|
|
2004
1799
|
}, {
|
|
2005
1800
|
success: boolean;
|
|
@@ -2015,9 +1810,9 @@ export declare class AgentBuilderDefaults {
|
|
|
2015
1810
|
relevance?: number | undefined;
|
|
2016
1811
|
}[];
|
|
2017
1812
|
summary: {
|
|
2018
|
-
patterns: string[];
|
|
2019
1813
|
totalMatches: number;
|
|
2020
1814
|
filesSearched: number;
|
|
1815
|
+
patterns: string[];
|
|
2021
1816
|
};
|
|
2022
1817
|
}>;
|
|
2023
1818
|
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
@@ -2289,7 +2084,6 @@ export declare class AgentBuilderDefaults {
|
|
|
2289
2084
|
files?: string[] | undefined;
|
|
2290
2085
|
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
2291
2086
|
};
|
|
2292
|
-
} | {
|
|
2293
2087
|
webSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2294
2088
|
query: z.ZodString;
|
|
2295
2089
|
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2298,17 +2092,17 @@ export declare class AgentBuilderDefaults {
|
|
|
2298
2092
|
includeImages: z.ZodDefault<z.ZodBoolean>;
|
|
2299
2093
|
dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
|
|
2300
2094
|
}, "strip", z.ZodTypeAny, {
|
|
2301
|
-
language: string;
|
|
2302
2095
|
query: string;
|
|
2303
2096
|
maxResults: number;
|
|
2304
2097
|
region: string;
|
|
2098
|
+
language: string;
|
|
2305
2099
|
includeImages: boolean;
|
|
2306
2100
|
dateRange: "day" | "week" | "month" | "year" | "all";
|
|
2307
2101
|
}, {
|
|
2308
2102
|
query: string;
|
|
2309
|
-
language?: string | undefined;
|
|
2310
2103
|
maxResults?: number | undefined;
|
|
2311
2104
|
region?: string | undefined;
|
|
2105
|
+
language?: string | undefined;
|
|
2312
2106
|
includeImages?: boolean | undefined;
|
|
2313
2107
|
dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
|
|
2314
2108
|
}>, z.ZodObject<{
|
|
@@ -2322,15 +2116,15 @@ export declare class AgentBuilderDefaults {
|
|
|
2322
2116
|
publishDate: z.ZodOptional<z.ZodString>;
|
|
2323
2117
|
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
2324
2118
|
}, "strip", z.ZodTypeAny, {
|
|
2325
|
-
url: string;
|
|
2326
2119
|
title: string;
|
|
2120
|
+
url: string;
|
|
2327
2121
|
snippet: string;
|
|
2328
2122
|
domain: string;
|
|
2329
2123
|
publishDate?: string | undefined;
|
|
2330
2124
|
relevanceScore?: number | undefined;
|
|
2331
2125
|
}, {
|
|
2332
|
-
url: string;
|
|
2333
2126
|
title: string;
|
|
2127
|
+
url: string;
|
|
2334
2128
|
snippet: string;
|
|
2335
2129
|
domain: string;
|
|
2336
2130
|
publishDate?: string | undefined;
|
|
@@ -2342,30 +2136,30 @@ export declare class AgentBuilderDefaults {
|
|
|
2342
2136
|
error: z.ZodOptional<z.ZodString>;
|
|
2343
2137
|
}, "strip", z.ZodTypeAny, {
|
|
2344
2138
|
success: boolean;
|
|
2345
|
-
query: string;
|
|
2346
2139
|
results: {
|
|
2347
|
-
url: string;
|
|
2348
2140
|
title: string;
|
|
2141
|
+
url: string;
|
|
2349
2142
|
snippet: string;
|
|
2350
2143
|
domain: string;
|
|
2351
2144
|
publishDate?: string | undefined;
|
|
2352
2145
|
relevanceScore?: number | undefined;
|
|
2353
2146
|
}[];
|
|
2147
|
+
query: string;
|
|
2354
2148
|
totalResults: number;
|
|
2355
2149
|
searchTime: number;
|
|
2356
2150
|
error?: string | undefined;
|
|
2357
2151
|
suggestions?: string[] | undefined;
|
|
2358
2152
|
}, {
|
|
2359
2153
|
success: boolean;
|
|
2360
|
-
query: string;
|
|
2361
2154
|
results: {
|
|
2362
|
-
url: string;
|
|
2363
2155
|
title: string;
|
|
2156
|
+
url: string;
|
|
2364
2157
|
snippet: string;
|
|
2365
2158
|
domain: string;
|
|
2366
2159
|
publishDate?: string | undefined;
|
|
2367
2160
|
relevanceScore?: number | undefined;
|
|
2368
2161
|
}[];
|
|
2162
|
+
query: string;
|
|
2369
2163
|
totalResults: number;
|
|
2370
2164
|
searchTime: number;
|
|
2371
2165
|
error?: string | undefined;
|
|
@@ -2378,17 +2172,17 @@ export declare class AgentBuilderDefaults {
|
|
|
2378
2172
|
includeImages: z.ZodDefault<z.ZodBoolean>;
|
|
2379
2173
|
dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
|
|
2380
2174
|
}, "strip", z.ZodTypeAny, {
|
|
2381
|
-
language: string;
|
|
2382
2175
|
query: string;
|
|
2383
2176
|
maxResults: number;
|
|
2384
2177
|
region: string;
|
|
2178
|
+
language: string;
|
|
2385
2179
|
includeImages: boolean;
|
|
2386
2180
|
dateRange: "day" | "week" | "month" | "year" | "all";
|
|
2387
2181
|
}, {
|
|
2388
2182
|
query: string;
|
|
2389
|
-
language?: string | undefined;
|
|
2390
2183
|
maxResults?: number | undefined;
|
|
2391
2184
|
region?: string | undefined;
|
|
2185
|
+
language?: string | undefined;
|
|
2392
2186
|
includeImages?: boolean | undefined;
|
|
2393
2187
|
dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
|
|
2394
2188
|
}>>> & {
|
|
@@ -2400,17 +2194,17 @@ export declare class AgentBuilderDefaults {
|
|
|
2400
2194
|
includeImages: z.ZodDefault<z.ZodBoolean>;
|
|
2401
2195
|
dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
|
|
2402
2196
|
}, "strip", z.ZodTypeAny, {
|
|
2403
|
-
language: string;
|
|
2404
2197
|
query: string;
|
|
2405
2198
|
maxResults: number;
|
|
2406
2199
|
region: string;
|
|
2200
|
+
language: string;
|
|
2407
2201
|
includeImages: boolean;
|
|
2408
2202
|
dateRange: "day" | "week" | "month" | "year" | "all";
|
|
2409
2203
|
}, {
|
|
2410
2204
|
query: string;
|
|
2411
|
-
language?: string | undefined;
|
|
2412
2205
|
maxResults?: number | undefined;
|
|
2413
2206
|
region?: string | undefined;
|
|
2207
|
+
language?: string | undefined;
|
|
2414
2208
|
includeImages?: boolean | undefined;
|
|
2415
2209
|
dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
|
|
2416
2210
|
}>;
|
|
@@ -2425,15 +2219,15 @@ export declare class AgentBuilderDefaults {
|
|
|
2425
2219
|
publishDate: z.ZodOptional<z.ZodString>;
|
|
2426
2220
|
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
2427
2221
|
}, "strip", z.ZodTypeAny, {
|
|
2428
|
-
url: string;
|
|
2429
2222
|
title: string;
|
|
2223
|
+
url: string;
|
|
2430
2224
|
snippet: string;
|
|
2431
2225
|
domain: string;
|
|
2432
2226
|
publishDate?: string | undefined;
|
|
2433
2227
|
relevanceScore?: number | undefined;
|
|
2434
2228
|
}, {
|
|
2435
|
-
url: string;
|
|
2436
2229
|
title: string;
|
|
2230
|
+
url: string;
|
|
2437
2231
|
snippet: string;
|
|
2438
2232
|
domain: string;
|
|
2439
2233
|
publishDate?: string | undefined;
|
|
@@ -2445,30 +2239,30 @@ export declare class AgentBuilderDefaults {
|
|
|
2445
2239
|
error: z.ZodOptional<z.ZodString>;
|
|
2446
2240
|
}, "strip", z.ZodTypeAny, {
|
|
2447
2241
|
success: boolean;
|
|
2448
|
-
query: string;
|
|
2449
2242
|
results: {
|
|
2450
|
-
url: string;
|
|
2451
2243
|
title: string;
|
|
2244
|
+
url: string;
|
|
2452
2245
|
snippet: string;
|
|
2453
2246
|
domain: string;
|
|
2454
2247
|
publishDate?: string | undefined;
|
|
2455
2248
|
relevanceScore?: number | undefined;
|
|
2456
2249
|
}[];
|
|
2250
|
+
query: string;
|
|
2457
2251
|
totalResults: number;
|
|
2458
2252
|
searchTime: number;
|
|
2459
2253
|
error?: string | undefined;
|
|
2460
2254
|
suggestions?: string[] | undefined;
|
|
2461
2255
|
}, {
|
|
2462
2256
|
success: boolean;
|
|
2463
|
-
query: string;
|
|
2464
2257
|
results: {
|
|
2465
|
-
url: string;
|
|
2466
2258
|
title: string;
|
|
2259
|
+
url: string;
|
|
2467
2260
|
snippet: string;
|
|
2468
2261
|
domain: string;
|
|
2469
2262
|
publishDate?: string | undefined;
|
|
2470
2263
|
relevanceScore?: number | undefined;
|
|
2471
2264
|
}[];
|
|
2265
|
+
query: string;
|
|
2472
2266
|
totalResults: number;
|
|
2473
2267
|
searchTime: number;
|
|
2474
2268
|
error?: string | undefined;
|
|
@@ -2482,481 +2276,50 @@ export declare class AgentBuilderDefaults {
|
|
|
2482
2276
|
includeImages: z.ZodDefault<z.ZodBoolean>;
|
|
2483
2277
|
dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
|
|
2484
2278
|
}, "strip", z.ZodTypeAny, {
|
|
2485
|
-
language: string;
|
|
2486
2279
|
query: string;
|
|
2487
2280
|
maxResults: number;
|
|
2488
2281
|
region: string;
|
|
2282
|
+
language: string;
|
|
2489
2283
|
includeImages: boolean;
|
|
2490
2284
|
dateRange: "day" | "week" | "month" | "year" | "all";
|
|
2491
2285
|
}, {
|
|
2492
2286
|
query: string;
|
|
2493
|
-
language?: string | undefined;
|
|
2494
2287
|
maxResults?: number | undefined;
|
|
2495
2288
|
region?: string | undefined;
|
|
2289
|
+
language?: string | undefined;
|
|
2496
2290
|
includeImages?: boolean | undefined;
|
|
2497
2291
|
dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
|
|
2498
2292
|
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
2499
2293
|
};
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
file: string;
|
|
2530
|
-
name: string;
|
|
2531
|
-
scope?: string | undefined;
|
|
2532
|
-
line?: number | undefined;
|
|
2533
|
-
}, {
|
|
2534
|
-
type: string;
|
|
2535
|
-
file: string;
|
|
2536
|
-
name: string;
|
|
2537
|
-
scope?: string | undefined;
|
|
2538
|
-
line?: number | undefined;
|
|
2539
|
-
}>, "many">>;
|
|
2540
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2541
|
-
name: z.ZodString;
|
|
2542
|
-
type: z.ZodEnum<["import", "require", "include"]>;
|
|
2543
|
-
source: z.ZodString;
|
|
2544
|
-
target: z.ZodString;
|
|
2545
|
-
}, "strip", z.ZodTypeAny, {
|
|
2546
|
-
type: "import" | "require" | "include";
|
|
2547
|
-
source: string;
|
|
2548
|
-
name: string;
|
|
2549
|
-
target: string;
|
|
2550
|
-
}, {
|
|
2551
|
-
type: "import" | "require" | "include";
|
|
2552
|
-
source: string;
|
|
2553
|
-
name: string;
|
|
2554
|
-
target: string;
|
|
2555
|
-
}>, "many">>;
|
|
2556
|
-
patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2557
|
-
pattern: z.ZodString;
|
|
2558
|
-
description: z.ZodString;
|
|
2559
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
2560
|
-
}, "strip", z.ZodTypeAny, {
|
|
2561
|
-
description: string;
|
|
2562
|
-
files: string[];
|
|
2563
|
-
pattern: string;
|
|
2564
|
-
}, {
|
|
2565
|
-
description: string;
|
|
2566
|
-
files: string[];
|
|
2567
|
-
pattern: string;
|
|
2568
|
-
}>, "many">>;
|
|
2569
|
-
structure: z.ZodOptional<z.ZodObject<{
|
|
2570
|
-
directories: z.ZodNumber;
|
|
2571
|
-
files: z.ZodNumber;
|
|
2572
|
-
languages: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2573
|
-
complexity: z.ZodString;
|
|
2574
|
-
}, "strip", z.ZodTypeAny, {
|
|
2575
|
-
files: number;
|
|
2576
|
-
directories: number;
|
|
2577
|
-
languages: Record<string, number>;
|
|
2578
|
-
complexity: string;
|
|
2579
|
-
}, {
|
|
2580
|
-
files: number;
|
|
2581
|
-
directories: number;
|
|
2582
|
-
languages: Record<string, number>;
|
|
2583
|
-
complexity: string;
|
|
2584
|
-
}>>;
|
|
2585
|
-
}, "strip", z.ZodTypeAny, {
|
|
2586
|
-
dependencies?: {
|
|
2587
|
-
type: "import" | "require" | "include";
|
|
2588
|
-
source: string;
|
|
2589
|
-
name: string;
|
|
2590
|
-
target: string;
|
|
2591
|
-
}[] | undefined;
|
|
2592
|
-
definitions?: {
|
|
2593
|
-
type: string;
|
|
2594
|
-
file: string;
|
|
2595
|
-
name: string;
|
|
2596
|
-
scope?: string | undefined;
|
|
2597
|
-
line?: number | undefined;
|
|
2598
|
-
}[] | undefined;
|
|
2599
|
-
patterns?: {
|
|
2600
|
-
description: string;
|
|
2601
|
-
files: string[];
|
|
2602
|
-
pattern: string;
|
|
2603
|
-
}[] | undefined;
|
|
2604
|
-
structure?: {
|
|
2605
|
-
files: number;
|
|
2606
|
-
directories: number;
|
|
2607
|
-
languages: Record<string, number>;
|
|
2608
|
-
complexity: string;
|
|
2609
|
-
} | undefined;
|
|
2610
|
-
}, {
|
|
2611
|
-
dependencies?: {
|
|
2612
|
-
type: "import" | "require" | "include";
|
|
2613
|
-
source: string;
|
|
2614
|
-
name: string;
|
|
2615
|
-
target: string;
|
|
2616
|
-
}[] | undefined;
|
|
2617
|
-
definitions?: {
|
|
2618
|
-
type: string;
|
|
2619
|
-
file: string;
|
|
2620
|
-
name: string;
|
|
2621
|
-
scope?: string | undefined;
|
|
2622
|
-
line?: number | undefined;
|
|
2623
|
-
}[] | undefined;
|
|
2624
|
-
patterns?: {
|
|
2625
|
-
description: string;
|
|
2626
|
-
files: string[];
|
|
2627
|
-
pattern: string;
|
|
2628
|
-
}[] | undefined;
|
|
2629
|
-
structure?: {
|
|
2630
|
-
files: number;
|
|
2631
|
-
directories: number;
|
|
2632
|
-
languages: Record<string, number>;
|
|
2633
|
-
complexity: string;
|
|
2634
|
-
} | undefined;
|
|
2635
|
-
}>;
|
|
2636
|
-
message: z.ZodString;
|
|
2637
|
-
}, "strip", z.ZodTypeAny, {
|
|
2638
|
-
message: string;
|
|
2639
|
-
success: boolean;
|
|
2640
|
-
analysis: {
|
|
2641
|
-
dependencies?: {
|
|
2642
|
-
type: "import" | "require" | "include";
|
|
2643
|
-
source: string;
|
|
2644
|
-
name: string;
|
|
2645
|
-
target: string;
|
|
2646
|
-
}[] | undefined;
|
|
2647
|
-
definitions?: {
|
|
2648
|
-
type: string;
|
|
2649
|
-
file: string;
|
|
2650
|
-
name: string;
|
|
2651
|
-
scope?: string | undefined;
|
|
2652
|
-
line?: number | undefined;
|
|
2653
|
-
}[] | undefined;
|
|
2654
|
-
patterns?: {
|
|
2655
|
-
description: string;
|
|
2656
|
-
files: string[];
|
|
2657
|
-
pattern: string;
|
|
2658
|
-
}[] | undefined;
|
|
2659
|
-
structure?: {
|
|
2660
|
-
files: number;
|
|
2661
|
-
directories: number;
|
|
2662
|
-
languages: Record<string, number>;
|
|
2663
|
-
complexity: string;
|
|
2664
|
-
} | undefined;
|
|
2665
|
-
};
|
|
2666
|
-
}, {
|
|
2667
|
-
message: string;
|
|
2668
|
-
success: boolean;
|
|
2669
|
-
analysis: {
|
|
2670
|
-
dependencies?: {
|
|
2671
|
-
type: "import" | "require" | "include";
|
|
2672
|
-
source: string;
|
|
2673
|
-
name: string;
|
|
2674
|
-
target: string;
|
|
2675
|
-
}[] | undefined;
|
|
2676
|
-
definitions?: {
|
|
2677
|
-
type: string;
|
|
2678
|
-
file: string;
|
|
2679
|
-
name: string;
|
|
2680
|
-
scope?: string | undefined;
|
|
2681
|
-
line?: number | undefined;
|
|
2682
|
-
}[] | undefined;
|
|
2683
|
-
patterns?: {
|
|
2684
|
-
description: string;
|
|
2685
|
-
files: string[];
|
|
2686
|
-
pattern: string;
|
|
2687
|
-
}[] | undefined;
|
|
2688
|
-
structure?: {
|
|
2689
|
-
files: number;
|
|
2690
|
-
directories: number;
|
|
2691
|
-
languages: Record<string, number>;
|
|
2692
|
-
complexity: string;
|
|
2693
|
-
} | undefined;
|
|
2694
|
-
};
|
|
2695
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2696
|
-
action: z.ZodEnum<["definitions", "dependencies", "patterns", "structure"]>;
|
|
2697
|
-
path: z.ZodString;
|
|
2698
|
-
language: z.ZodOptional<z.ZodString>;
|
|
2699
|
-
depth: z.ZodDefault<z.ZodNumber>;
|
|
2700
|
-
includeTests: z.ZodDefault<z.ZodBoolean>;
|
|
2701
|
-
}, "strip", z.ZodTypeAny, {
|
|
2702
|
-
path: string;
|
|
2703
|
-
action: "dependencies" | "definitions" | "patterns" | "structure";
|
|
2704
|
-
depth: number;
|
|
2705
|
-
includeTests: boolean;
|
|
2706
|
-
language?: string | undefined;
|
|
2707
|
-
}, {
|
|
2708
|
-
path: string;
|
|
2709
|
-
action: "dependencies" | "definitions" | "patterns" | "structure";
|
|
2710
|
-
language?: string | undefined;
|
|
2711
|
-
depth?: number | undefined;
|
|
2712
|
-
includeTests?: boolean | undefined;
|
|
2713
|
-
}>>> & {
|
|
2714
|
-
inputSchema: z.ZodObject<{
|
|
2715
|
-
action: z.ZodEnum<["definitions", "dependencies", "patterns", "structure"]>;
|
|
2716
|
-
path: z.ZodString;
|
|
2717
|
-
language: z.ZodOptional<z.ZodString>;
|
|
2718
|
-
depth: z.ZodDefault<z.ZodNumber>;
|
|
2719
|
-
includeTests: z.ZodDefault<z.ZodBoolean>;
|
|
2720
|
-
}, "strip", z.ZodTypeAny, {
|
|
2721
|
-
path: string;
|
|
2722
|
-
action: "dependencies" | "definitions" | "patterns" | "structure";
|
|
2723
|
-
depth: number;
|
|
2724
|
-
includeTests: boolean;
|
|
2725
|
-
language?: string | undefined;
|
|
2726
|
-
}, {
|
|
2727
|
-
path: string;
|
|
2728
|
-
action: "dependencies" | "definitions" | "patterns" | "structure";
|
|
2729
|
-
language?: string | undefined;
|
|
2730
|
-
depth?: number | undefined;
|
|
2731
|
-
includeTests?: boolean | undefined;
|
|
2732
|
-
}>;
|
|
2733
|
-
outputSchema: z.ZodObject<{
|
|
2734
|
-
success: z.ZodBoolean;
|
|
2735
|
-
analysis: z.ZodObject<{
|
|
2736
|
-
definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2737
|
-
name: z.ZodString;
|
|
2738
|
-
type: z.ZodString;
|
|
2739
|
-
file: z.ZodString;
|
|
2740
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
2741
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
2742
|
-
}, "strip", z.ZodTypeAny, {
|
|
2743
|
-
type: string;
|
|
2744
|
-
file: string;
|
|
2745
|
-
name: string;
|
|
2746
|
-
scope?: string | undefined;
|
|
2747
|
-
line?: number | undefined;
|
|
2748
|
-
}, {
|
|
2749
|
-
type: string;
|
|
2750
|
-
file: string;
|
|
2751
|
-
name: string;
|
|
2752
|
-
scope?: string | undefined;
|
|
2753
|
-
line?: number | undefined;
|
|
2754
|
-
}>, "many">>;
|
|
2755
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2756
|
-
name: z.ZodString;
|
|
2757
|
-
type: z.ZodEnum<["import", "require", "include"]>;
|
|
2758
|
-
source: z.ZodString;
|
|
2759
|
-
target: z.ZodString;
|
|
2760
|
-
}, "strip", z.ZodTypeAny, {
|
|
2761
|
-
type: "import" | "require" | "include";
|
|
2762
|
-
source: string;
|
|
2763
|
-
name: string;
|
|
2764
|
-
target: string;
|
|
2765
|
-
}, {
|
|
2766
|
-
type: "import" | "require" | "include";
|
|
2767
|
-
source: string;
|
|
2768
|
-
name: string;
|
|
2769
|
-
target: string;
|
|
2770
|
-
}>, "many">>;
|
|
2771
|
-
patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2772
|
-
pattern: z.ZodString;
|
|
2773
|
-
description: z.ZodString;
|
|
2774
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
2775
|
-
}, "strip", z.ZodTypeAny, {
|
|
2776
|
-
description: string;
|
|
2777
|
-
files: string[];
|
|
2778
|
-
pattern: string;
|
|
2779
|
-
}, {
|
|
2780
|
-
description: string;
|
|
2781
|
-
files: string[];
|
|
2782
|
-
pattern: string;
|
|
2783
|
-
}>, "many">>;
|
|
2784
|
-
structure: z.ZodOptional<z.ZodObject<{
|
|
2785
|
-
directories: z.ZodNumber;
|
|
2786
|
-
files: z.ZodNumber;
|
|
2787
|
-
languages: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2788
|
-
complexity: z.ZodString;
|
|
2789
|
-
}, "strip", z.ZodTypeAny, {
|
|
2790
|
-
files: number;
|
|
2791
|
-
directories: number;
|
|
2792
|
-
languages: Record<string, number>;
|
|
2793
|
-
complexity: string;
|
|
2794
|
-
}, {
|
|
2795
|
-
files: number;
|
|
2796
|
-
directories: number;
|
|
2797
|
-
languages: Record<string, number>;
|
|
2798
|
-
complexity: string;
|
|
2799
|
-
}>>;
|
|
2800
|
-
}, "strip", z.ZodTypeAny, {
|
|
2801
|
-
dependencies?: {
|
|
2802
|
-
type: "import" | "require" | "include";
|
|
2803
|
-
source: string;
|
|
2804
|
-
name: string;
|
|
2805
|
-
target: string;
|
|
2806
|
-
}[] | undefined;
|
|
2807
|
-
definitions?: {
|
|
2808
|
-
type: string;
|
|
2809
|
-
file: string;
|
|
2810
|
-
name: string;
|
|
2811
|
-
scope?: string | undefined;
|
|
2812
|
-
line?: number | undefined;
|
|
2813
|
-
}[] | undefined;
|
|
2814
|
-
patterns?: {
|
|
2815
|
-
description: string;
|
|
2816
|
-
files: string[];
|
|
2817
|
-
pattern: string;
|
|
2818
|
-
}[] | undefined;
|
|
2819
|
-
structure?: {
|
|
2820
|
-
files: number;
|
|
2821
|
-
directories: number;
|
|
2822
|
-
languages: Record<string, number>;
|
|
2823
|
-
complexity: string;
|
|
2824
|
-
} | undefined;
|
|
2825
|
-
}, {
|
|
2826
|
-
dependencies?: {
|
|
2827
|
-
type: "import" | "require" | "include";
|
|
2828
|
-
source: string;
|
|
2829
|
-
name: string;
|
|
2830
|
-
target: string;
|
|
2831
|
-
}[] | undefined;
|
|
2832
|
-
definitions?: {
|
|
2833
|
-
type: string;
|
|
2834
|
-
file: string;
|
|
2835
|
-
name: string;
|
|
2836
|
-
scope?: string | undefined;
|
|
2837
|
-
line?: number | undefined;
|
|
2838
|
-
}[] | undefined;
|
|
2839
|
-
patterns?: {
|
|
2840
|
-
description: string;
|
|
2841
|
-
files: string[];
|
|
2842
|
-
pattern: string;
|
|
2843
|
-
}[] | undefined;
|
|
2844
|
-
structure?: {
|
|
2845
|
-
files: number;
|
|
2846
|
-
directories: number;
|
|
2847
|
-
languages: Record<string, number>;
|
|
2848
|
-
complexity: string;
|
|
2849
|
-
} | undefined;
|
|
2850
|
-
}>;
|
|
2851
|
-
message: z.ZodString;
|
|
2852
|
-
}, "strip", z.ZodTypeAny, {
|
|
2853
|
-
message: string;
|
|
2854
|
-
success: boolean;
|
|
2855
|
-
analysis: {
|
|
2856
|
-
dependencies?: {
|
|
2857
|
-
type: "import" | "require" | "include";
|
|
2858
|
-
source: string;
|
|
2859
|
-
name: string;
|
|
2860
|
-
target: string;
|
|
2861
|
-
}[] | undefined;
|
|
2862
|
-
definitions?: {
|
|
2863
|
-
type: string;
|
|
2864
|
-
file: string;
|
|
2865
|
-
name: string;
|
|
2866
|
-
scope?: string | undefined;
|
|
2867
|
-
line?: number | undefined;
|
|
2868
|
-
}[] | undefined;
|
|
2869
|
-
patterns?: {
|
|
2870
|
-
description: string;
|
|
2871
|
-
files: string[];
|
|
2872
|
-
pattern: string;
|
|
2873
|
-
}[] | undefined;
|
|
2874
|
-
structure?: {
|
|
2875
|
-
files: number;
|
|
2876
|
-
directories: number;
|
|
2877
|
-
languages: Record<string, number>;
|
|
2878
|
-
complexity: string;
|
|
2879
|
-
} | undefined;
|
|
2880
|
-
};
|
|
2881
|
-
}, {
|
|
2882
|
-
message: string;
|
|
2883
|
-
success: boolean;
|
|
2884
|
-
analysis: {
|
|
2885
|
-
dependencies?: {
|
|
2886
|
-
type: "import" | "require" | "include";
|
|
2887
|
-
source: string;
|
|
2888
|
-
name: string;
|
|
2889
|
-
target: string;
|
|
2890
|
-
}[] | undefined;
|
|
2891
|
-
definitions?: {
|
|
2892
|
-
type: string;
|
|
2893
|
-
file: string;
|
|
2894
|
-
name: string;
|
|
2895
|
-
scope?: string | undefined;
|
|
2896
|
-
line?: number | undefined;
|
|
2897
|
-
}[] | undefined;
|
|
2898
|
-
patterns?: {
|
|
2899
|
-
description: string;
|
|
2900
|
-
files: string[];
|
|
2901
|
-
pattern: string;
|
|
2902
|
-
}[] | undefined;
|
|
2903
|
-
structure?: {
|
|
2904
|
-
files: number;
|
|
2905
|
-
directories: number;
|
|
2906
|
-
languages: Record<string, number>;
|
|
2907
|
-
complexity: string;
|
|
2908
|
-
} | undefined;
|
|
2909
|
-
};
|
|
2910
|
-
}>;
|
|
2911
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2912
|
-
action: z.ZodEnum<["definitions", "dependencies", "patterns", "structure"]>;
|
|
2913
|
-
path: z.ZodString;
|
|
2914
|
-
language: z.ZodOptional<z.ZodString>;
|
|
2915
|
-
depth: z.ZodDefault<z.ZodNumber>;
|
|
2916
|
-
includeTests: z.ZodDefault<z.ZodBoolean>;
|
|
2917
|
-
}, "strip", z.ZodTypeAny, {
|
|
2918
|
-
path: string;
|
|
2919
|
-
action: "dependencies" | "definitions" | "patterns" | "structure";
|
|
2920
|
-
depth: number;
|
|
2921
|
-
includeTests: boolean;
|
|
2922
|
-
language?: string | undefined;
|
|
2923
|
-
}, {
|
|
2924
|
-
path: string;
|
|
2925
|
-
action: "dependencies" | "definitions" | "patterns" | "structure";
|
|
2926
|
-
language?: string | undefined;
|
|
2927
|
-
depth?: number | undefined;
|
|
2928
|
-
includeTests?: boolean | undefined;
|
|
2929
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
2930
|
-
};
|
|
2931
|
-
attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2932
|
-
summary: z.ZodString;
|
|
2933
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
2934
|
-
type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
|
|
2935
|
-
description: z.ZodString;
|
|
2936
|
-
path: z.ZodOptional<z.ZodString>;
|
|
2937
|
-
}, "strip", z.ZodTypeAny, {
|
|
2938
|
-
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2939
|
-
description: string;
|
|
2940
|
-
path?: string | undefined;
|
|
2941
|
-
}, {
|
|
2942
|
-
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2943
|
-
description: string;
|
|
2944
|
-
path?: string | undefined;
|
|
2945
|
-
}>, "many">;
|
|
2946
|
-
validation: z.ZodObject<{
|
|
2947
|
-
testsRun: z.ZodDefault<z.ZodBoolean>;
|
|
2948
|
-
buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
|
|
2949
|
-
manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
|
|
2950
|
-
}, "strip", z.ZodTypeAny, {
|
|
2951
|
-
testsRun: boolean;
|
|
2952
|
-
buildsSuccessfully: boolean;
|
|
2953
|
-
manualTestingRequired: boolean;
|
|
2954
|
-
}, {
|
|
2955
|
-
testsRun?: boolean | undefined;
|
|
2956
|
-
buildsSuccessfully?: boolean | undefined;
|
|
2957
|
-
manualTestingRequired?: boolean | undefined;
|
|
2958
|
-
}>;
|
|
2959
|
-
nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2294
|
+
attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2295
|
+
summary: z.ZodString;
|
|
2296
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2297
|
+
type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
|
|
2298
|
+
description: z.ZodString;
|
|
2299
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2300
|
+
}, "strip", z.ZodTypeAny, {
|
|
2301
|
+
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2302
|
+
description: string;
|
|
2303
|
+
path?: string | undefined;
|
|
2304
|
+
}, {
|
|
2305
|
+
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2306
|
+
description: string;
|
|
2307
|
+
path?: string | undefined;
|
|
2308
|
+
}>, "many">;
|
|
2309
|
+
validation: z.ZodObject<{
|
|
2310
|
+
testsRun: z.ZodDefault<z.ZodBoolean>;
|
|
2311
|
+
buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
|
|
2312
|
+
manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
|
|
2313
|
+
}, "strip", z.ZodTypeAny, {
|
|
2314
|
+
testsRun: boolean;
|
|
2315
|
+
buildsSuccessfully: boolean;
|
|
2316
|
+
manualTestingRequired: boolean;
|
|
2317
|
+
}, {
|
|
2318
|
+
testsRun?: boolean | undefined;
|
|
2319
|
+
buildsSuccessfully?: boolean | undefined;
|
|
2320
|
+
manualTestingRequired?: boolean | undefined;
|
|
2321
|
+
}>;
|
|
2322
|
+
nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2960
2323
|
}, "strip", z.ZodTypeAny, {
|
|
2961
2324
|
validation: {
|
|
2962
2325
|
testsRun: boolean;
|
|
@@ -3348,8 +2711,8 @@ export declare class AgentBuilderDefaults {
|
|
|
3348
2711
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
3349
2712
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3350
2713
|
}, "strip", z.ZodTypeAny, {
|
|
3351
|
-
port: number;
|
|
3352
2714
|
action: "status" | "start" | "stop" | "restart";
|
|
2715
|
+
port: number;
|
|
3353
2716
|
}, {
|
|
3354
2717
|
action: "status" | "start" | "stop" | "restart";
|
|
3355
2718
|
port?: number | undefined;
|
|
@@ -3363,29 +2726,29 @@ export declare class AgentBuilderDefaults {
|
|
|
3363
2726
|
stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3364
2727
|
error: z.ZodOptional<z.ZodString>;
|
|
3365
2728
|
}, "strip", z.ZodTypeAny, {
|
|
3366
|
-
status: "unknown" | "
|
|
2729
|
+
status: "unknown" | "running" | "stopped" | "starting" | "stopping";
|
|
3367
2730
|
success: boolean;
|
|
3368
2731
|
message?: string | undefined;
|
|
3369
2732
|
error?: string | undefined;
|
|
3370
2733
|
stdout?: string[] | undefined;
|
|
3371
|
-
port?: number | undefined;
|
|
3372
2734
|
url?: string | undefined;
|
|
2735
|
+
port?: number | undefined;
|
|
3373
2736
|
pid?: number | undefined;
|
|
3374
2737
|
}, {
|
|
3375
|
-
status: "unknown" | "
|
|
2738
|
+
status: "unknown" | "running" | "stopped" | "starting" | "stopping";
|
|
3376
2739
|
success: boolean;
|
|
3377
2740
|
message?: string | undefined;
|
|
3378
2741
|
error?: string | undefined;
|
|
3379
2742
|
stdout?: string[] | undefined;
|
|
3380
|
-
port?: number | undefined;
|
|
3381
2743
|
url?: string | undefined;
|
|
2744
|
+
port?: number | undefined;
|
|
3382
2745
|
pid?: number | undefined;
|
|
3383
2746
|
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
3384
2747
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
3385
2748
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3386
2749
|
}, "strip", z.ZodTypeAny, {
|
|
3387
|
-
port: number;
|
|
3388
2750
|
action: "status" | "start" | "stop" | "restart";
|
|
2751
|
+
port: number;
|
|
3389
2752
|
}, {
|
|
3390
2753
|
action: "status" | "start" | "stop" | "restart";
|
|
3391
2754
|
port?: number | undefined;
|
|
@@ -3394,8 +2757,8 @@ export declare class AgentBuilderDefaults {
|
|
|
3394
2757
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
3395
2758
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3396
2759
|
}, "strip", z.ZodTypeAny, {
|
|
3397
|
-
port: number;
|
|
3398
2760
|
action: "status" | "start" | "stop" | "restart";
|
|
2761
|
+
port: number;
|
|
3399
2762
|
}, {
|
|
3400
2763
|
action: "status" | "start" | "stop" | "restart";
|
|
3401
2764
|
port?: number | undefined;
|
|
@@ -3410,30 +2773,30 @@ export declare class AgentBuilderDefaults {
|
|
|
3410
2773
|
stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3411
2774
|
error: z.ZodOptional<z.ZodString>;
|
|
3412
2775
|
}, "strip", z.ZodTypeAny, {
|
|
3413
|
-
status: "unknown" | "
|
|
2776
|
+
status: "unknown" | "running" | "stopped" | "starting" | "stopping";
|
|
3414
2777
|
success: boolean;
|
|
3415
2778
|
message?: string | undefined;
|
|
3416
2779
|
error?: string | undefined;
|
|
3417
2780
|
stdout?: string[] | undefined;
|
|
3418
|
-
port?: number | undefined;
|
|
3419
2781
|
url?: string | undefined;
|
|
2782
|
+
port?: number | undefined;
|
|
3420
2783
|
pid?: number | undefined;
|
|
3421
2784
|
}, {
|
|
3422
|
-
status: "unknown" | "
|
|
2785
|
+
status: "unknown" | "running" | "stopped" | "starting" | "stopping";
|
|
3423
2786
|
success: boolean;
|
|
3424
2787
|
message?: string | undefined;
|
|
3425
2788
|
error?: string | undefined;
|
|
3426
2789
|
stdout?: string[] | undefined;
|
|
3427
|
-
port?: number | undefined;
|
|
3428
2790
|
url?: string | undefined;
|
|
2791
|
+
port?: number | undefined;
|
|
3429
2792
|
pid?: number | undefined;
|
|
3430
2793
|
}>;
|
|
3431
2794
|
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
3432
2795
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
3433
2796
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3434
2797
|
}, "strip", z.ZodTypeAny, {
|
|
3435
|
-
port: number;
|
|
3436
2798
|
action: "status" | "start" | "stop" | "restart";
|
|
2799
|
+
port: number;
|
|
3437
2800
|
}, {
|
|
3438
2801
|
action: "status" | "start" | "stop" | "restart";
|
|
3439
2802
|
port?: number | undefined;
|
|
@@ -3447,19 +2810,19 @@ export declare class AgentBuilderDefaults {
|
|
|
3447
2810
|
body: z.ZodOptional<z.ZodAny>;
|
|
3448
2811
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3449
2812
|
}, "strip", z.ZodTypeAny, {
|
|
3450
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3451
|
-
url: string;
|
|
3452
2813
|
timeout: number;
|
|
2814
|
+
url: string;
|
|
2815
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3453
2816
|
baseUrl?: string | undefined;
|
|
3454
2817
|
headers?: Record<string, string> | undefined;
|
|
3455
2818
|
body?: any;
|
|
3456
2819
|
}, {
|
|
3457
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3458
2820
|
url: string;
|
|
2821
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2822
|
+
timeout?: number | undefined;
|
|
3459
2823
|
baseUrl?: string | undefined;
|
|
3460
2824
|
headers?: Record<string, string> | undefined;
|
|
3461
2825
|
body?: any;
|
|
3462
|
-
timeout?: number | undefined;
|
|
3463
2826
|
}>, z.ZodObject<{
|
|
3464
2827
|
success: z.ZodBoolean;
|
|
3465
2828
|
status: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3471,8 +2834,8 @@ export declare class AgentBuilderDefaults {
|
|
|
3471
2834
|
method: z.ZodString;
|
|
3472
2835
|
}, "strip", z.ZodTypeAny, {
|
|
3473
2836
|
success: boolean;
|
|
3474
|
-
method: string;
|
|
3475
2837
|
url: string;
|
|
2838
|
+
method: string;
|
|
3476
2839
|
status?: number | undefined;
|
|
3477
2840
|
error?: string | undefined;
|
|
3478
2841
|
data?: any;
|
|
@@ -3480,8 +2843,8 @@ export declare class AgentBuilderDefaults {
|
|
|
3480
2843
|
statusText?: string | undefined;
|
|
3481
2844
|
}, {
|
|
3482
2845
|
success: boolean;
|
|
3483
|
-
method: string;
|
|
3484
2846
|
url: string;
|
|
2847
|
+
method: string;
|
|
3485
2848
|
status?: number | undefined;
|
|
3486
2849
|
error?: string | undefined;
|
|
3487
2850
|
data?: any;
|
|
@@ -3495,19 +2858,19 @@ export declare class AgentBuilderDefaults {
|
|
|
3495
2858
|
body: z.ZodOptional<z.ZodAny>;
|
|
3496
2859
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3497
2860
|
}, "strip", z.ZodTypeAny, {
|
|
3498
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3499
|
-
url: string;
|
|
3500
2861
|
timeout: number;
|
|
2862
|
+
url: string;
|
|
2863
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3501
2864
|
baseUrl?: string | undefined;
|
|
3502
2865
|
headers?: Record<string, string> | undefined;
|
|
3503
2866
|
body?: any;
|
|
3504
2867
|
}, {
|
|
3505
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3506
2868
|
url: string;
|
|
2869
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2870
|
+
timeout?: number | undefined;
|
|
3507
2871
|
baseUrl?: string | undefined;
|
|
3508
2872
|
headers?: Record<string, string> | undefined;
|
|
3509
2873
|
body?: any;
|
|
3510
|
-
timeout?: number | undefined;
|
|
3511
2874
|
}>>> & {
|
|
3512
2875
|
inputSchema: z.ZodObject<{
|
|
3513
2876
|
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
@@ -3517,19 +2880,19 @@ export declare class AgentBuilderDefaults {
|
|
|
3517
2880
|
body: z.ZodOptional<z.ZodAny>;
|
|
3518
2881
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3519
2882
|
}, "strip", z.ZodTypeAny, {
|
|
3520
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3521
|
-
url: string;
|
|
3522
2883
|
timeout: number;
|
|
2884
|
+
url: string;
|
|
2885
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3523
2886
|
baseUrl?: string | undefined;
|
|
3524
2887
|
headers?: Record<string, string> | undefined;
|
|
3525
2888
|
body?: any;
|
|
3526
2889
|
}, {
|
|
3527
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3528
2890
|
url: string;
|
|
2891
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2892
|
+
timeout?: number | undefined;
|
|
3529
2893
|
baseUrl?: string | undefined;
|
|
3530
2894
|
headers?: Record<string, string> | undefined;
|
|
3531
2895
|
body?: any;
|
|
3532
|
-
timeout?: number | undefined;
|
|
3533
2896
|
}>;
|
|
3534
2897
|
outputSchema: z.ZodObject<{
|
|
3535
2898
|
success: z.ZodBoolean;
|
|
@@ -3542,8 +2905,8 @@ export declare class AgentBuilderDefaults {
|
|
|
3542
2905
|
method: z.ZodString;
|
|
3543
2906
|
}, "strip", z.ZodTypeAny, {
|
|
3544
2907
|
success: boolean;
|
|
3545
|
-
method: string;
|
|
3546
2908
|
url: string;
|
|
2909
|
+
method: string;
|
|
3547
2910
|
status?: number | undefined;
|
|
3548
2911
|
error?: string | undefined;
|
|
3549
2912
|
data?: any;
|
|
@@ -3551,8 +2914,8 @@ export declare class AgentBuilderDefaults {
|
|
|
3551
2914
|
statusText?: string | undefined;
|
|
3552
2915
|
}, {
|
|
3553
2916
|
success: boolean;
|
|
3554
|
-
method: string;
|
|
3555
2917
|
url: string;
|
|
2918
|
+
method: string;
|
|
3556
2919
|
status?: number | undefined;
|
|
3557
2920
|
error?: string | undefined;
|
|
3558
2921
|
data?: any;
|
|
@@ -3567,2299 +2930,34 @@ export declare class AgentBuilderDefaults {
|
|
|
3567
2930
|
body: z.ZodOptional<z.ZodAny>;
|
|
3568
2931
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3569
2932
|
}, "strip", z.ZodTypeAny, {
|
|
3570
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3571
|
-
url: string;
|
|
3572
2933
|
timeout: number;
|
|
2934
|
+
url: string;
|
|
2935
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3573
2936
|
baseUrl?: string | undefined;
|
|
3574
2937
|
headers?: Record<string, string> | undefined;
|
|
3575
2938
|
body?: any;
|
|
3576
2939
|
}, {
|
|
3577
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3578
2940
|
url: string;
|
|
2941
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2942
|
+
timeout?: number | undefined;
|
|
3579
2943
|
baseUrl?: string | undefined;
|
|
3580
2944
|
headers?: Record<string, string> | undefined;
|
|
3581
2945
|
body?: any;
|
|
3582
|
-
timeout?: number | undefined;
|
|
3583
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
3584
|
-
};
|
|
3585
|
-
readFile: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3586
|
-
filePath: z.ZodString;
|
|
3587
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
3588
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
3589
|
-
encoding: z.ZodDefault<z.ZodString>;
|
|
3590
|
-
}, "strip", z.ZodTypeAny, {
|
|
3591
|
-
filePath: string;
|
|
3592
|
-
encoding: string;
|
|
3593
|
-
startLine?: number | undefined;
|
|
3594
|
-
endLine?: number | undefined;
|
|
3595
|
-
}, {
|
|
3596
|
-
filePath: string;
|
|
3597
|
-
startLine?: number | undefined;
|
|
3598
|
-
endLine?: number | undefined;
|
|
3599
|
-
encoding?: string | undefined;
|
|
3600
|
-
}>, z.ZodObject<{
|
|
3601
|
-
success: z.ZodBoolean;
|
|
3602
|
-
content: z.ZodOptional<z.ZodString>;
|
|
3603
|
-
lines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3604
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
3605
|
-
size: z.ZodNumber;
|
|
3606
|
-
totalLines: z.ZodNumber;
|
|
3607
|
-
encoding: z.ZodString;
|
|
3608
|
-
lastModified: z.ZodString;
|
|
3609
|
-
}, "strip", z.ZodTypeAny, {
|
|
3610
|
-
encoding: string;
|
|
3611
|
-
size: number;
|
|
3612
|
-
totalLines: number;
|
|
3613
|
-
lastModified: string;
|
|
3614
|
-
}, {
|
|
3615
|
-
encoding: string;
|
|
3616
|
-
size: number;
|
|
3617
|
-
totalLines: number;
|
|
3618
|
-
lastModified: string;
|
|
3619
|
-
}>>;
|
|
3620
|
-
error: z.ZodOptional<z.ZodString>;
|
|
3621
|
-
}, "strip", z.ZodTypeAny, {
|
|
3622
|
-
success: boolean;
|
|
3623
|
-
error?: string | undefined;
|
|
3624
|
-
content?: string | undefined;
|
|
3625
|
-
lines?: string[] | undefined;
|
|
3626
|
-
metadata?: {
|
|
3627
|
-
encoding: string;
|
|
3628
|
-
size: number;
|
|
3629
|
-
totalLines: number;
|
|
3630
|
-
lastModified: string;
|
|
3631
|
-
} | undefined;
|
|
3632
|
-
}, {
|
|
3633
|
-
success: boolean;
|
|
3634
|
-
error?: string | undefined;
|
|
3635
|
-
content?: string | undefined;
|
|
3636
|
-
lines?: string[] | undefined;
|
|
3637
|
-
metadata?: {
|
|
3638
|
-
encoding: string;
|
|
3639
|
-
size: number;
|
|
3640
|
-
totalLines: number;
|
|
3641
|
-
lastModified: string;
|
|
3642
|
-
} | undefined;
|
|
3643
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
3644
|
-
filePath: z.ZodString;
|
|
3645
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
3646
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
3647
|
-
encoding: z.ZodDefault<z.ZodString>;
|
|
3648
|
-
}, "strip", z.ZodTypeAny, {
|
|
3649
|
-
filePath: string;
|
|
3650
|
-
encoding: string;
|
|
3651
|
-
startLine?: number | undefined;
|
|
3652
|
-
endLine?: number | undefined;
|
|
3653
|
-
}, {
|
|
3654
|
-
filePath: string;
|
|
3655
|
-
startLine?: number | undefined;
|
|
3656
|
-
endLine?: number | undefined;
|
|
3657
|
-
encoding?: string | undefined;
|
|
3658
|
-
}>>> & {
|
|
3659
|
-
inputSchema: z.ZodObject<{
|
|
3660
|
-
filePath: z.ZodString;
|
|
3661
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
3662
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
3663
|
-
encoding: z.ZodDefault<z.ZodString>;
|
|
3664
|
-
}, "strip", z.ZodTypeAny, {
|
|
3665
|
-
filePath: string;
|
|
3666
|
-
encoding: string;
|
|
3667
|
-
startLine?: number | undefined;
|
|
3668
|
-
endLine?: number | undefined;
|
|
3669
|
-
}, {
|
|
3670
|
-
filePath: string;
|
|
3671
|
-
startLine?: number | undefined;
|
|
3672
|
-
endLine?: number | undefined;
|
|
3673
|
-
encoding?: string | undefined;
|
|
3674
|
-
}>;
|
|
3675
|
-
outputSchema: z.ZodObject<{
|
|
3676
|
-
success: z.ZodBoolean;
|
|
3677
|
-
content: z.ZodOptional<z.ZodString>;
|
|
3678
|
-
lines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3679
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
3680
|
-
size: z.ZodNumber;
|
|
3681
|
-
totalLines: z.ZodNumber;
|
|
3682
|
-
encoding: z.ZodString;
|
|
3683
|
-
lastModified: z.ZodString;
|
|
3684
|
-
}, "strip", z.ZodTypeAny, {
|
|
3685
|
-
encoding: string;
|
|
3686
|
-
size: number;
|
|
3687
|
-
totalLines: number;
|
|
3688
|
-
lastModified: string;
|
|
3689
|
-
}, {
|
|
3690
|
-
encoding: string;
|
|
3691
|
-
size: number;
|
|
3692
|
-
totalLines: number;
|
|
3693
|
-
lastModified: string;
|
|
3694
|
-
}>>;
|
|
3695
|
-
error: z.ZodOptional<z.ZodString>;
|
|
3696
|
-
}, "strip", z.ZodTypeAny, {
|
|
3697
|
-
success: boolean;
|
|
3698
|
-
error?: string | undefined;
|
|
3699
|
-
content?: string | undefined;
|
|
3700
|
-
lines?: string[] | undefined;
|
|
3701
|
-
metadata?: {
|
|
3702
|
-
encoding: string;
|
|
3703
|
-
size: number;
|
|
3704
|
-
totalLines: number;
|
|
3705
|
-
lastModified: string;
|
|
3706
|
-
} | undefined;
|
|
3707
|
-
}, {
|
|
3708
|
-
success: boolean;
|
|
3709
|
-
error?: string | undefined;
|
|
3710
|
-
content?: string | undefined;
|
|
3711
|
-
lines?: string[] | undefined;
|
|
3712
|
-
metadata?: {
|
|
3713
|
-
encoding: string;
|
|
3714
|
-
size: number;
|
|
3715
|
-
totalLines: number;
|
|
3716
|
-
lastModified: string;
|
|
3717
|
-
} | undefined;
|
|
3718
|
-
}>;
|
|
3719
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
3720
|
-
filePath: z.ZodString;
|
|
3721
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
3722
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
3723
|
-
encoding: z.ZodDefault<z.ZodString>;
|
|
3724
|
-
}, "strip", z.ZodTypeAny, {
|
|
3725
|
-
filePath: string;
|
|
3726
|
-
encoding: string;
|
|
3727
|
-
startLine?: number | undefined;
|
|
3728
|
-
endLine?: number | undefined;
|
|
3729
|
-
}, {
|
|
3730
|
-
filePath: string;
|
|
3731
|
-
startLine?: number | undefined;
|
|
3732
|
-
endLine?: number | undefined;
|
|
3733
|
-
encoding?: string | undefined;
|
|
3734
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
3735
|
-
};
|
|
3736
|
-
writeFile: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3737
|
-
filePath: z.ZodString;
|
|
3738
|
-
content: z.ZodString;
|
|
3739
|
-
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
3740
|
-
encoding: z.ZodDefault<z.ZodString>;
|
|
3741
|
-
}, "strip", z.ZodTypeAny, {
|
|
3742
|
-
filePath: string;
|
|
3743
|
-
encoding: string;
|
|
3744
|
-
content: string;
|
|
3745
|
-
createDirs: boolean;
|
|
3746
|
-
}, {
|
|
3747
|
-
filePath: string;
|
|
3748
|
-
content: string;
|
|
3749
|
-
encoding?: string | undefined;
|
|
3750
|
-
createDirs?: boolean | undefined;
|
|
3751
|
-
}>, z.ZodObject<{
|
|
3752
|
-
success: z.ZodBoolean;
|
|
3753
|
-
filePath: z.ZodString;
|
|
3754
|
-
bytesWritten: z.ZodOptional<z.ZodNumber>;
|
|
3755
|
-
message: z.ZodString;
|
|
3756
|
-
error: z.ZodOptional<z.ZodString>;
|
|
3757
|
-
}, "strip", z.ZodTypeAny, {
|
|
3758
|
-
message: string;
|
|
3759
|
-
success: boolean;
|
|
3760
|
-
filePath: string;
|
|
3761
|
-
error?: string | undefined;
|
|
3762
|
-
bytesWritten?: number | undefined;
|
|
3763
|
-
}, {
|
|
3764
|
-
message: string;
|
|
3765
|
-
success: boolean;
|
|
3766
|
-
filePath: string;
|
|
3767
|
-
error?: string | undefined;
|
|
3768
|
-
bytesWritten?: number | undefined;
|
|
3769
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
3770
|
-
filePath: z.ZodString;
|
|
3771
|
-
content: z.ZodString;
|
|
3772
|
-
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
3773
|
-
encoding: z.ZodDefault<z.ZodString>;
|
|
3774
|
-
}, "strip", z.ZodTypeAny, {
|
|
3775
|
-
filePath: string;
|
|
3776
|
-
encoding: string;
|
|
3777
|
-
content: string;
|
|
3778
|
-
createDirs: boolean;
|
|
3779
|
-
}, {
|
|
3780
|
-
filePath: string;
|
|
3781
|
-
content: string;
|
|
3782
|
-
encoding?: string | undefined;
|
|
3783
|
-
createDirs?: boolean | undefined;
|
|
3784
|
-
}>>> & {
|
|
3785
|
-
inputSchema: z.ZodObject<{
|
|
3786
|
-
filePath: z.ZodString;
|
|
3787
|
-
content: z.ZodString;
|
|
3788
|
-
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
3789
|
-
encoding: z.ZodDefault<z.ZodString>;
|
|
3790
|
-
}, "strip", z.ZodTypeAny, {
|
|
3791
|
-
filePath: string;
|
|
3792
|
-
encoding: string;
|
|
3793
|
-
content: string;
|
|
3794
|
-
createDirs: boolean;
|
|
3795
|
-
}, {
|
|
3796
|
-
filePath: string;
|
|
3797
|
-
content: string;
|
|
3798
|
-
encoding?: string | undefined;
|
|
3799
|
-
createDirs?: boolean | undefined;
|
|
3800
|
-
}>;
|
|
3801
|
-
outputSchema: z.ZodObject<{
|
|
3802
|
-
success: z.ZodBoolean;
|
|
3803
|
-
filePath: z.ZodString;
|
|
3804
|
-
bytesWritten: z.ZodOptional<z.ZodNumber>;
|
|
3805
|
-
message: z.ZodString;
|
|
3806
|
-
error: z.ZodOptional<z.ZodString>;
|
|
3807
|
-
}, "strip", z.ZodTypeAny, {
|
|
3808
|
-
message: string;
|
|
3809
|
-
success: boolean;
|
|
3810
|
-
filePath: string;
|
|
3811
|
-
error?: string | undefined;
|
|
3812
|
-
bytesWritten?: number | undefined;
|
|
3813
|
-
}, {
|
|
3814
|
-
message: string;
|
|
3815
|
-
success: boolean;
|
|
3816
|
-
filePath: string;
|
|
3817
|
-
error?: string | undefined;
|
|
3818
|
-
bytesWritten?: number | undefined;
|
|
3819
|
-
}>;
|
|
3820
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
3821
|
-
filePath: z.ZodString;
|
|
3822
|
-
content: z.ZodString;
|
|
3823
|
-
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
3824
|
-
encoding: z.ZodDefault<z.ZodString>;
|
|
3825
|
-
}, "strip", z.ZodTypeAny, {
|
|
3826
|
-
filePath: string;
|
|
3827
|
-
encoding: string;
|
|
3828
|
-
content: string;
|
|
3829
|
-
createDirs: boolean;
|
|
3830
|
-
}, {
|
|
3831
|
-
filePath: string;
|
|
3832
|
-
content: string;
|
|
3833
|
-
encoding?: string | undefined;
|
|
3834
|
-
createDirs?: boolean | undefined;
|
|
3835
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
3836
|
-
};
|
|
3837
|
-
listDirectory: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3838
|
-
path: z.ZodString;
|
|
3839
|
-
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
3840
|
-
includeHidden: z.ZodDefault<z.ZodBoolean>;
|
|
3841
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
3842
|
-
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
3843
|
-
includeMetadata: z.ZodDefault<z.ZodBoolean>;
|
|
3844
|
-
}, "strip", z.ZodTypeAny, {
|
|
3845
|
-
path: string;
|
|
3846
|
-
recursive: boolean;
|
|
3847
|
-
includeHidden: boolean;
|
|
3848
|
-
pattern: string;
|
|
3849
|
-
maxDepth: number;
|
|
3850
|
-
includeMetadata: boolean;
|
|
3851
|
-
}, {
|
|
3852
|
-
path: string;
|
|
3853
|
-
recursive?: boolean | undefined;
|
|
3854
|
-
includeHidden?: boolean | undefined;
|
|
3855
|
-
pattern?: string | undefined;
|
|
3856
|
-
maxDepth?: number | undefined;
|
|
3857
|
-
includeMetadata?: boolean | undefined;
|
|
3858
|
-
}>, z.ZodObject<{
|
|
3859
|
-
success: z.ZodBoolean;
|
|
3860
|
-
items: z.ZodArray<z.ZodObject<{
|
|
3861
|
-
name: z.ZodString;
|
|
3862
|
-
path: z.ZodString;
|
|
3863
|
-
type: z.ZodEnum<["file", "directory", "symlink"]>;
|
|
3864
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
3865
|
-
lastModified: z.ZodOptional<z.ZodString>;
|
|
3866
|
-
permissions: z.ZodOptional<z.ZodString>;
|
|
3867
|
-
}, "strip", z.ZodTypeAny, {
|
|
3868
|
-
path: string;
|
|
3869
|
-
type: "file" | "directory" | "symlink";
|
|
3870
|
-
name: string;
|
|
3871
|
-
size?: number | undefined;
|
|
3872
|
-
lastModified?: string | undefined;
|
|
3873
|
-
permissions?: string | undefined;
|
|
3874
|
-
}, {
|
|
3875
|
-
path: string;
|
|
3876
|
-
type: "file" | "directory" | "symlink";
|
|
3877
|
-
name: string;
|
|
3878
|
-
size?: number | undefined;
|
|
3879
|
-
lastModified?: string | undefined;
|
|
3880
|
-
permissions?: string | undefined;
|
|
3881
|
-
}>, "many">;
|
|
3882
|
-
totalItems: z.ZodNumber;
|
|
3883
|
-
path: z.ZodString;
|
|
3884
|
-
message: z.ZodString;
|
|
3885
|
-
error: z.ZodOptional<z.ZodString>;
|
|
3886
|
-
}, "strip", z.ZodTypeAny, {
|
|
3887
|
-
path: string;
|
|
3888
|
-
message: string;
|
|
3889
|
-
success: boolean;
|
|
3890
|
-
items: {
|
|
3891
|
-
path: string;
|
|
3892
|
-
type: "file" | "directory" | "symlink";
|
|
3893
|
-
name: string;
|
|
3894
|
-
size?: number | undefined;
|
|
3895
|
-
lastModified?: string | undefined;
|
|
3896
|
-
permissions?: string | undefined;
|
|
3897
|
-
}[];
|
|
3898
|
-
totalItems: number;
|
|
3899
|
-
error?: string | undefined;
|
|
3900
|
-
}, {
|
|
3901
|
-
path: string;
|
|
3902
|
-
message: string;
|
|
3903
|
-
success: boolean;
|
|
3904
|
-
items: {
|
|
3905
|
-
path: string;
|
|
3906
|
-
type: "file" | "directory" | "symlink";
|
|
3907
|
-
name: string;
|
|
3908
|
-
size?: number | undefined;
|
|
3909
|
-
lastModified?: string | undefined;
|
|
3910
|
-
permissions?: string | undefined;
|
|
3911
|
-
}[];
|
|
3912
|
-
totalItems: number;
|
|
3913
|
-
error?: string | undefined;
|
|
3914
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
3915
|
-
path: z.ZodString;
|
|
3916
|
-
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
3917
|
-
includeHidden: z.ZodDefault<z.ZodBoolean>;
|
|
3918
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
3919
|
-
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
3920
|
-
includeMetadata: z.ZodDefault<z.ZodBoolean>;
|
|
3921
|
-
}, "strip", z.ZodTypeAny, {
|
|
3922
|
-
path: string;
|
|
3923
|
-
recursive: boolean;
|
|
3924
|
-
includeHidden: boolean;
|
|
3925
|
-
pattern: string;
|
|
3926
|
-
maxDepth: number;
|
|
3927
|
-
includeMetadata: boolean;
|
|
3928
|
-
}, {
|
|
3929
|
-
path: string;
|
|
3930
|
-
recursive?: boolean | undefined;
|
|
3931
|
-
includeHidden?: boolean | undefined;
|
|
3932
|
-
pattern?: string | undefined;
|
|
3933
|
-
maxDepth?: number | undefined;
|
|
3934
|
-
includeMetadata?: boolean | undefined;
|
|
3935
|
-
}>>> & {
|
|
3936
|
-
inputSchema: z.ZodObject<{
|
|
3937
|
-
path: z.ZodString;
|
|
3938
|
-
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
3939
|
-
includeHidden: z.ZodDefault<z.ZodBoolean>;
|
|
3940
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
3941
|
-
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
3942
|
-
includeMetadata: z.ZodDefault<z.ZodBoolean>;
|
|
3943
|
-
}, "strip", z.ZodTypeAny, {
|
|
3944
|
-
path: string;
|
|
3945
|
-
recursive: boolean;
|
|
3946
|
-
includeHidden: boolean;
|
|
3947
|
-
pattern: string;
|
|
3948
|
-
maxDepth: number;
|
|
3949
|
-
includeMetadata: boolean;
|
|
3950
|
-
}, {
|
|
3951
|
-
path: string;
|
|
3952
|
-
recursive?: boolean | undefined;
|
|
3953
|
-
includeHidden?: boolean | undefined;
|
|
3954
|
-
pattern?: string | undefined;
|
|
3955
|
-
maxDepth?: number | undefined;
|
|
3956
|
-
includeMetadata?: boolean | undefined;
|
|
3957
|
-
}>;
|
|
3958
|
-
outputSchema: z.ZodObject<{
|
|
3959
|
-
success: z.ZodBoolean;
|
|
3960
|
-
items: z.ZodArray<z.ZodObject<{
|
|
3961
|
-
name: z.ZodString;
|
|
3962
|
-
path: z.ZodString;
|
|
3963
|
-
type: z.ZodEnum<["file", "directory", "symlink"]>;
|
|
3964
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
3965
|
-
lastModified: z.ZodOptional<z.ZodString>;
|
|
3966
|
-
permissions: z.ZodOptional<z.ZodString>;
|
|
3967
|
-
}, "strip", z.ZodTypeAny, {
|
|
3968
|
-
path: string;
|
|
3969
|
-
type: "file" | "directory" | "symlink";
|
|
3970
|
-
name: string;
|
|
3971
|
-
size?: number | undefined;
|
|
3972
|
-
lastModified?: string | undefined;
|
|
3973
|
-
permissions?: string | undefined;
|
|
3974
|
-
}, {
|
|
3975
|
-
path: string;
|
|
3976
|
-
type: "file" | "directory" | "symlink";
|
|
3977
|
-
name: string;
|
|
3978
|
-
size?: number | undefined;
|
|
3979
|
-
lastModified?: string | undefined;
|
|
3980
|
-
permissions?: string | undefined;
|
|
3981
|
-
}>, "many">;
|
|
3982
|
-
totalItems: z.ZodNumber;
|
|
3983
|
-
path: z.ZodString;
|
|
3984
|
-
message: z.ZodString;
|
|
3985
|
-
error: z.ZodOptional<z.ZodString>;
|
|
3986
|
-
}, "strip", z.ZodTypeAny, {
|
|
3987
|
-
path: string;
|
|
3988
|
-
message: string;
|
|
3989
|
-
success: boolean;
|
|
3990
|
-
items: {
|
|
3991
|
-
path: string;
|
|
3992
|
-
type: "file" | "directory" | "symlink";
|
|
3993
|
-
name: string;
|
|
3994
|
-
size?: number | undefined;
|
|
3995
|
-
lastModified?: string | undefined;
|
|
3996
|
-
permissions?: string | undefined;
|
|
3997
|
-
}[];
|
|
3998
|
-
totalItems: number;
|
|
3999
|
-
error?: string | undefined;
|
|
4000
|
-
}, {
|
|
4001
|
-
path: string;
|
|
4002
|
-
message: string;
|
|
4003
|
-
success: boolean;
|
|
4004
|
-
items: {
|
|
4005
|
-
path: string;
|
|
4006
|
-
type: "file" | "directory" | "symlink";
|
|
4007
|
-
name: string;
|
|
4008
|
-
size?: number | undefined;
|
|
4009
|
-
lastModified?: string | undefined;
|
|
4010
|
-
permissions?: string | undefined;
|
|
4011
|
-
}[];
|
|
4012
|
-
totalItems: number;
|
|
4013
|
-
error?: string | undefined;
|
|
4014
|
-
}>;
|
|
4015
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
4016
|
-
path: z.ZodString;
|
|
4017
|
-
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
4018
|
-
includeHidden: z.ZodDefault<z.ZodBoolean>;
|
|
4019
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
4020
|
-
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
4021
|
-
includeMetadata: z.ZodDefault<z.ZodBoolean>;
|
|
4022
|
-
}, "strip", z.ZodTypeAny, {
|
|
4023
|
-
path: string;
|
|
4024
|
-
recursive: boolean;
|
|
4025
|
-
includeHidden: boolean;
|
|
4026
|
-
pattern: string;
|
|
4027
|
-
maxDepth: number;
|
|
4028
|
-
includeMetadata: boolean;
|
|
4029
|
-
}, {
|
|
4030
|
-
path: string;
|
|
4031
|
-
recursive?: boolean | undefined;
|
|
4032
|
-
includeHidden?: boolean | undefined;
|
|
4033
|
-
pattern?: string | undefined;
|
|
4034
|
-
maxDepth?: number | undefined;
|
|
4035
|
-
includeMetadata?: boolean | undefined;
|
|
4036
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
4037
|
-
};
|
|
4038
|
-
executeCommand: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
4039
|
-
command: z.ZodString;
|
|
4040
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
4041
|
-
timeout: z.ZodDefault<z.ZodNumber>;
|
|
4042
|
-
captureOutput: z.ZodDefault<z.ZodBoolean>;
|
|
4043
|
-
shell: z.ZodOptional<z.ZodString>;
|
|
4044
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4045
|
-
}, "strip", z.ZodTypeAny, {
|
|
4046
|
-
timeout: number;
|
|
4047
|
-
command: string;
|
|
4048
|
-
captureOutput: boolean;
|
|
4049
|
-
env?: Record<string, string> | undefined;
|
|
4050
|
-
workingDirectory?: string | undefined;
|
|
4051
|
-
shell?: string | undefined;
|
|
4052
|
-
}, {
|
|
4053
|
-
command: string;
|
|
4054
|
-
env?: Record<string, string> | undefined;
|
|
4055
|
-
timeout?: number | undefined;
|
|
4056
|
-
workingDirectory?: string | undefined;
|
|
4057
|
-
captureOutput?: boolean | undefined;
|
|
4058
|
-
shell?: string | undefined;
|
|
4059
|
-
}>, z.ZodObject<{
|
|
4060
|
-
success: z.ZodBoolean;
|
|
4061
|
-
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
4062
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
4063
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
4064
|
-
command: z.ZodString;
|
|
4065
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
4066
|
-
executionTime: z.ZodOptional<z.ZodNumber>;
|
|
4067
|
-
error: z.ZodOptional<z.ZodString>;
|
|
4068
|
-
}, "strip", z.ZodTypeAny, {
|
|
4069
|
-
success: boolean;
|
|
4070
|
-
command: string;
|
|
4071
|
-
error?: string | undefined;
|
|
4072
|
-
stdout?: string | undefined;
|
|
4073
|
-
stderr?: string | undefined;
|
|
4074
|
-
workingDirectory?: string | undefined;
|
|
4075
|
-
exitCode?: number | undefined;
|
|
4076
|
-
executionTime?: number | undefined;
|
|
4077
|
-
}, {
|
|
4078
|
-
success: boolean;
|
|
4079
|
-
command: string;
|
|
4080
|
-
error?: string | undefined;
|
|
4081
|
-
stdout?: string | undefined;
|
|
4082
|
-
stderr?: string | undefined;
|
|
4083
|
-
workingDirectory?: string | undefined;
|
|
4084
|
-
exitCode?: number | undefined;
|
|
4085
|
-
executionTime?: number | undefined;
|
|
4086
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
4087
|
-
command: z.ZodString;
|
|
4088
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
4089
|
-
timeout: z.ZodDefault<z.ZodNumber>;
|
|
4090
|
-
captureOutput: z.ZodDefault<z.ZodBoolean>;
|
|
4091
|
-
shell: z.ZodOptional<z.ZodString>;
|
|
4092
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4093
|
-
}, "strip", z.ZodTypeAny, {
|
|
4094
|
-
timeout: number;
|
|
4095
|
-
command: string;
|
|
4096
|
-
captureOutput: boolean;
|
|
4097
|
-
env?: Record<string, string> | undefined;
|
|
4098
|
-
workingDirectory?: string | undefined;
|
|
4099
|
-
shell?: string | undefined;
|
|
4100
|
-
}, {
|
|
4101
|
-
command: string;
|
|
4102
|
-
env?: Record<string, string> | undefined;
|
|
4103
|
-
timeout?: number | undefined;
|
|
4104
|
-
workingDirectory?: string | undefined;
|
|
4105
|
-
captureOutput?: boolean | undefined;
|
|
4106
|
-
shell?: string | undefined;
|
|
4107
|
-
}>>> & {
|
|
4108
|
-
inputSchema: z.ZodObject<{
|
|
4109
|
-
command: z.ZodString;
|
|
4110
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
4111
|
-
timeout: z.ZodDefault<z.ZodNumber>;
|
|
4112
|
-
captureOutput: z.ZodDefault<z.ZodBoolean>;
|
|
4113
|
-
shell: z.ZodOptional<z.ZodString>;
|
|
4114
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4115
|
-
}, "strip", z.ZodTypeAny, {
|
|
4116
|
-
timeout: number;
|
|
4117
|
-
command: string;
|
|
4118
|
-
captureOutput: boolean;
|
|
4119
|
-
env?: Record<string, string> | undefined;
|
|
4120
|
-
workingDirectory?: string | undefined;
|
|
4121
|
-
shell?: string | undefined;
|
|
4122
|
-
}, {
|
|
4123
|
-
command: string;
|
|
4124
|
-
env?: Record<string, string> | undefined;
|
|
4125
|
-
timeout?: number | undefined;
|
|
4126
|
-
workingDirectory?: string | undefined;
|
|
4127
|
-
captureOutput?: boolean | undefined;
|
|
4128
|
-
shell?: string | undefined;
|
|
4129
|
-
}>;
|
|
4130
|
-
outputSchema: z.ZodObject<{
|
|
4131
|
-
success: z.ZodBoolean;
|
|
4132
|
-
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
4133
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
4134
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
4135
|
-
command: z.ZodString;
|
|
4136
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
4137
|
-
executionTime: z.ZodOptional<z.ZodNumber>;
|
|
4138
|
-
error: z.ZodOptional<z.ZodString>;
|
|
4139
|
-
}, "strip", z.ZodTypeAny, {
|
|
4140
|
-
success: boolean;
|
|
4141
|
-
command: string;
|
|
4142
|
-
error?: string | undefined;
|
|
4143
|
-
stdout?: string | undefined;
|
|
4144
|
-
stderr?: string | undefined;
|
|
4145
|
-
workingDirectory?: string | undefined;
|
|
4146
|
-
exitCode?: number | undefined;
|
|
4147
|
-
executionTime?: number | undefined;
|
|
4148
|
-
}, {
|
|
4149
|
-
success: boolean;
|
|
4150
|
-
command: string;
|
|
4151
|
-
error?: string | undefined;
|
|
4152
|
-
stdout?: string | undefined;
|
|
4153
|
-
stderr?: string | undefined;
|
|
4154
|
-
workingDirectory?: string | undefined;
|
|
4155
|
-
exitCode?: number | undefined;
|
|
4156
|
-
executionTime?: number | undefined;
|
|
4157
|
-
}>;
|
|
4158
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
4159
|
-
command: z.ZodString;
|
|
4160
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
4161
|
-
timeout: z.ZodDefault<z.ZodNumber>;
|
|
4162
|
-
captureOutput: z.ZodDefault<z.ZodBoolean>;
|
|
4163
|
-
shell: z.ZodOptional<z.ZodString>;
|
|
4164
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4165
|
-
}, "strip", z.ZodTypeAny, {
|
|
4166
|
-
timeout: number;
|
|
4167
|
-
command: string;
|
|
4168
|
-
captureOutput: boolean;
|
|
4169
|
-
env?: Record<string, string> | undefined;
|
|
4170
|
-
workingDirectory?: string | undefined;
|
|
4171
|
-
shell?: string | undefined;
|
|
4172
|
-
}, {
|
|
4173
|
-
command: string;
|
|
4174
|
-
env?: Record<string, string> | undefined;
|
|
4175
|
-
timeout?: number | undefined;
|
|
4176
|
-
workingDirectory?: string | undefined;
|
|
4177
|
-
captureOutput?: boolean | undefined;
|
|
4178
|
-
shell?: string | undefined;
|
|
4179
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
4180
|
-
};
|
|
4181
|
-
taskManager: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
4182
|
-
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
4183
|
-
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4184
|
-
id: z.ZodString;
|
|
4185
|
-
content: z.ZodOptional<z.ZodString>;
|
|
4186
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
|
|
4187
|
-
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
4188
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4189
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
4190
|
-
}, "strip", z.ZodTypeAny, {
|
|
4191
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4192
|
-
id: string;
|
|
4193
|
-
priority: "high" | "medium" | "low";
|
|
4194
|
-
dependencies?: string[] | undefined;
|
|
4195
|
-
content?: string | undefined;
|
|
4196
|
-
notes?: string | undefined;
|
|
4197
|
-
}, {
|
|
4198
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4199
|
-
id: string;
|
|
4200
|
-
dependencies?: string[] | undefined;
|
|
4201
|
-
content?: string | undefined;
|
|
4202
|
-
priority?: "high" | "medium" | "low" | undefined;
|
|
4203
|
-
notes?: string | undefined;
|
|
4204
|
-
}>, "many">>;
|
|
4205
|
-
taskId: z.ZodOptional<z.ZodString>;
|
|
4206
|
-
}, "strip", z.ZodTypeAny, {
|
|
4207
|
-
action: "create" | "update" | "list" | "complete" | "remove";
|
|
4208
|
-
tasks?: {
|
|
4209
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4210
|
-
id: string;
|
|
4211
|
-
priority: "high" | "medium" | "low";
|
|
4212
|
-
dependencies?: string[] | undefined;
|
|
4213
|
-
content?: string | undefined;
|
|
4214
|
-
notes?: string | undefined;
|
|
4215
|
-
}[] | undefined;
|
|
4216
|
-
taskId?: string | undefined;
|
|
4217
|
-
}, {
|
|
4218
|
-
action: "create" | "update" | "list" | "complete" | "remove";
|
|
4219
|
-
tasks?: {
|
|
4220
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4221
|
-
id: string;
|
|
4222
|
-
dependencies?: string[] | undefined;
|
|
4223
|
-
content?: string | undefined;
|
|
4224
|
-
priority?: "high" | "medium" | "low" | undefined;
|
|
4225
|
-
notes?: string | undefined;
|
|
4226
|
-
}[] | undefined;
|
|
4227
|
-
taskId?: string | undefined;
|
|
4228
|
-
}>, z.ZodObject<{
|
|
4229
|
-
success: z.ZodBoolean;
|
|
4230
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
4231
|
-
id: z.ZodString;
|
|
4232
|
-
content: z.ZodString;
|
|
4233
|
-
status: z.ZodString;
|
|
4234
|
-
priority: z.ZodString;
|
|
4235
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4236
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
4237
|
-
createdAt: z.ZodString;
|
|
4238
|
-
updatedAt: z.ZodString;
|
|
4239
|
-
}, "strip", z.ZodTypeAny, {
|
|
4240
|
-
status: string;
|
|
4241
|
-
id: string;
|
|
4242
|
-
content: string;
|
|
4243
|
-
priority: string;
|
|
4244
|
-
createdAt: string;
|
|
4245
|
-
updatedAt: string;
|
|
4246
|
-
dependencies?: string[] | undefined;
|
|
4247
|
-
notes?: string | undefined;
|
|
4248
|
-
}, {
|
|
4249
|
-
status: string;
|
|
4250
|
-
id: string;
|
|
4251
|
-
content: string;
|
|
4252
|
-
priority: string;
|
|
4253
|
-
createdAt: string;
|
|
4254
|
-
updatedAt: string;
|
|
4255
|
-
dependencies?: string[] | undefined;
|
|
4256
|
-
notes?: string | undefined;
|
|
4257
|
-
}>, "many">;
|
|
4258
|
-
message: z.ZodString;
|
|
4259
|
-
}, "strip", z.ZodTypeAny, {
|
|
4260
|
-
message: string;
|
|
4261
|
-
success: boolean;
|
|
4262
|
-
tasks: {
|
|
4263
|
-
status: string;
|
|
4264
|
-
id: string;
|
|
4265
|
-
content: string;
|
|
4266
|
-
priority: string;
|
|
4267
|
-
createdAt: string;
|
|
4268
|
-
updatedAt: string;
|
|
4269
|
-
dependencies?: string[] | undefined;
|
|
4270
|
-
notes?: string | undefined;
|
|
4271
|
-
}[];
|
|
4272
|
-
}, {
|
|
4273
|
-
message: string;
|
|
4274
|
-
success: boolean;
|
|
4275
|
-
tasks: {
|
|
4276
|
-
status: string;
|
|
4277
|
-
id: string;
|
|
4278
|
-
content: string;
|
|
4279
|
-
priority: string;
|
|
4280
|
-
createdAt: string;
|
|
4281
|
-
updatedAt: string;
|
|
4282
|
-
dependencies?: string[] | undefined;
|
|
4283
|
-
notes?: string | undefined;
|
|
4284
|
-
}[];
|
|
4285
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
4286
|
-
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
4287
|
-
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4288
|
-
id: z.ZodString;
|
|
4289
|
-
content: z.ZodOptional<z.ZodString>;
|
|
4290
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
|
|
4291
|
-
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
4292
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4293
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
4294
|
-
}, "strip", z.ZodTypeAny, {
|
|
4295
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4296
|
-
id: string;
|
|
4297
|
-
priority: "high" | "medium" | "low";
|
|
4298
|
-
dependencies?: string[] | undefined;
|
|
4299
|
-
content?: string | undefined;
|
|
4300
|
-
notes?: string | undefined;
|
|
4301
|
-
}, {
|
|
4302
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4303
|
-
id: string;
|
|
4304
|
-
dependencies?: string[] | undefined;
|
|
4305
|
-
content?: string | undefined;
|
|
4306
|
-
priority?: "high" | "medium" | "low" | undefined;
|
|
4307
|
-
notes?: string | undefined;
|
|
4308
|
-
}>, "many">>;
|
|
4309
|
-
taskId: z.ZodOptional<z.ZodString>;
|
|
4310
|
-
}, "strip", z.ZodTypeAny, {
|
|
4311
|
-
action: "create" | "update" | "list" | "complete" | "remove";
|
|
4312
|
-
tasks?: {
|
|
4313
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4314
|
-
id: string;
|
|
4315
|
-
priority: "high" | "medium" | "low";
|
|
4316
|
-
dependencies?: string[] | undefined;
|
|
4317
|
-
content?: string | undefined;
|
|
4318
|
-
notes?: string | undefined;
|
|
4319
|
-
}[] | undefined;
|
|
4320
|
-
taskId?: string | undefined;
|
|
4321
|
-
}, {
|
|
4322
|
-
action: "create" | "update" | "list" | "complete" | "remove";
|
|
4323
|
-
tasks?: {
|
|
4324
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4325
|
-
id: string;
|
|
4326
|
-
dependencies?: string[] | undefined;
|
|
4327
|
-
content?: string | undefined;
|
|
4328
|
-
priority?: "high" | "medium" | "low" | undefined;
|
|
4329
|
-
notes?: string | undefined;
|
|
4330
|
-
}[] | undefined;
|
|
4331
|
-
taskId?: string | undefined;
|
|
4332
|
-
}>>> & {
|
|
4333
|
-
inputSchema: z.ZodObject<{
|
|
4334
|
-
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
4335
|
-
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4336
|
-
id: z.ZodString;
|
|
4337
|
-
content: z.ZodOptional<z.ZodString>;
|
|
4338
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
|
|
4339
|
-
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
4340
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4341
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
4342
|
-
}, "strip", z.ZodTypeAny, {
|
|
4343
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4344
|
-
id: string;
|
|
4345
|
-
priority: "high" | "medium" | "low";
|
|
4346
|
-
dependencies?: string[] | undefined;
|
|
4347
|
-
content?: string | undefined;
|
|
4348
|
-
notes?: string | undefined;
|
|
4349
|
-
}, {
|
|
4350
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4351
|
-
id: string;
|
|
4352
|
-
dependencies?: string[] | undefined;
|
|
4353
|
-
content?: string | undefined;
|
|
4354
|
-
priority?: "high" | "medium" | "low" | undefined;
|
|
4355
|
-
notes?: string | undefined;
|
|
4356
|
-
}>, "many">>;
|
|
4357
|
-
taskId: z.ZodOptional<z.ZodString>;
|
|
4358
|
-
}, "strip", z.ZodTypeAny, {
|
|
4359
|
-
action: "create" | "update" | "list" | "complete" | "remove";
|
|
4360
|
-
tasks?: {
|
|
4361
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4362
|
-
id: string;
|
|
4363
|
-
priority: "high" | "medium" | "low";
|
|
4364
|
-
dependencies?: string[] | undefined;
|
|
4365
|
-
content?: string | undefined;
|
|
4366
|
-
notes?: string | undefined;
|
|
4367
|
-
}[] | undefined;
|
|
4368
|
-
taskId?: string | undefined;
|
|
4369
|
-
}, {
|
|
4370
|
-
action: "create" | "update" | "list" | "complete" | "remove";
|
|
4371
|
-
tasks?: {
|
|
4372
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4373
|
-
id: string;
|
|
4374
|
-
dependencies?: string[] | undefined;
|
|
4375
|
-
content?: string | undefined;
|
|
4376
|
-
priority?: "high" | "medium" | "low" | undefined;
|
|
4377
|
-
notes?: string | undefined;
|
|
4378
|
-
}[] | undefined;
|
|
4379
|
-
taskId?: string | undefined;
|
|
4380
|
-
}>;
|
|
4381
|
-
outputSchema: z.ZodObject<{
|
|
4382
|
-
success: z.ZodBoolean;
|
|
4383
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
4384
|
-
id: z.ZodString;
|
|
4385
|
-
content: z.ZodString;
|
|
4386
|
-
status: z.ZodString;
|
|
4387
|
-
priority: z.ZodString;
|
|
4388
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4389
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
4390
|
-
createdAt: z.ZodString;
|
|
4391
|
-
updatedAt: z.ZodString;
|
|
4392
|
-
}, "strip", z.ZodTypeAny, {
|
|
4393
|
-
status: string;
|
|
4394
|
-
id: string;
|
|
4395
|
-
content: string;
|
|
4396
|
-
priority: string;
|
|
4397
|
-
createdAt: string;
|
|
4398
|
-
updatedAt: string;
|
|
4399
|
-
dependencies?: string[] | undefined;
|
|
4400
|
-
notes?: string | undefined;
|
|
4401
|
-
}, {
|
|
4402
|
-
status: string;
|
|
4403
|
-
id: string;
|
|
4404
|
-
content: string;
|
|
4405
|
-
priority: string;
|
|
4406
|
-
createdAt: string;
|
|
4407
|
-
updatedAt: string;
|
|
4408
|
-
dependencies?: string[] | undefined;
|
|
4409
|
-
notes?: string | undefined;
|
|
4410
|
-
}>, "many">;
|
|
4411
|
-
message: z.ZodString;
|
|
4412
|
-
}, "strip", z.ZodTypeAny, {
|
|
4413
|
-
message: string;
|
|
4414
|
-
success: boolean;
|
|
4415
|
-
tasks: {
|
|
4416
|
-
status: string;
|
|
4417
|
-
id: string;
|
|
4418
|
-
content: string;
|
|
4419
|
-
priority: string;
|
|
4420
|
-
createdAt: string;
|
|
4421
|
-
updatedAt: string;
|
|
4422
|
-
dependencies?: string[] | undefined;
|
|
4423
|
-
notes?: string | undefined;
|
|
4424
|
-
}[];
|
|
4425
|
-
}, {
|
|
4426
|
-
message: string;
|
|
4427
|
-
success: boolean;
|
|
4428
|
-
tasks: {
|
|
4429
|
-
status: string;
|
|
4430
|
-
id: string;
|
|
4431
|
-
content: string;
|
|
4432
|
-
priority: string;
|
|
4433
|
-
createdAt: string;
|
|
4434
|
-
updatedAt: string;
|
|
4435
|
-
dependencies?: string[] | undefined;
|
|
4436
|
-
notes?: string | undefined;
|
|
4437
|
-
}[];
|
|
4438
|
-
}>;
|
|
4439
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
4440
|
-
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
4441
|
-
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4442
|
-
id: z.ZodString;
|
|
4443
|
-
content: z.ZodOptional<z.ZodString>;
|
|
4444
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
|
|
4445
|
-
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
4446
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4447
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
4448
|
-
}, "strip", z.ZodTypeAny, {
|
|
4449
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4450
|
-
id: string;
|
|
4451
|
-
priority: "high" | "medium" | "low";
|
|
4452
|
-
dependencies?: string[] | undefined;
|
|
4453
|
-
content?: string | undefined;
|
|
4454
|
-
notes?: string | undefined;
|
|
4455
|
-
}, {
|
|
4456
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4457
|
-
id: string;
|
|
4458
|
-
dependencies?: string[] | undefined;
|
|
4459
|
-
content?: string | undefined;
|
|
4460
|
-
priority?: "high" | "medium" | "low" | undefined;
|
|
4461
|
-
notes?: string | undefined;
|
|
4462
|
-
}>, "many">>;
|
|
4463
|
-
taskId: z.ZodOptional<z.ZodString>;
|
|
4464
|
-
}, "strip", z.ZodTypeAny, {
|
|
4465
|
-
action: "create" | "update" | "list" | "complete" | "remove";
|
|
4466
|
-
tasks?: {
|
|
4467
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4468
|
-
id: string;
|
|
4469
|
-
priority: "high" | "medium" | "low";
|
|
4470
|
-
dependencies?: string[] | undefined;
|
|
4471
|
-
content?: string | undefined;
|
|
4472
|
-
notes?: string | undefined;
|
|
4473
|
-
}[] | undefined;
|
|
4474
|
-
taskId?: string | undefined;
|
|
4475
|
-
}, {
|
|
4476
|
-
action: "create" | "update" | "list" | "complete" | "remove";
|
|
4477
|
-
tasks?: {
|
|
4478
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
4479
|
-
id: string;
|
|
4480
|
-
dependencies?: string[] | undefined;
|
|
4481
|
-
content?: string | undefined;
|
|
4482
|
-
priority?: "high" | "medium" | "low" | undefined;
|
|
4483
|
-
notes?: string | undefined;
|
|
4484
|
-
}[] | undefined;
|
|
4485
|
-
taskId?: string | undefined;
|
|
4486
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
4487
|
-
};
|
|
4488
|
-
multiEdit: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
4489
|
-
operations: z.ZodArray<z.ZodObject<{
|
|
4490
|
-
filePath: z.ZodString;
|
|
4491
|
-
edits: z.ZodArray<z.ZodObject<{
|
|
4492
|
-
oldString: z.ZodString;
|
|
4493
|
-
newString: z.ZodString;
|
|
4494
|
-
replaceAll: z.ZodDefault<z.ZodBoolean>;
|
|
4495
|
-
}, "strip", z.ZodTypeAny, {
|
|
4496
|
-
replaceAll: boolean;
|
|
4497
|
-
oldString: string;
|
|
4498
|
-
newString: string;
|
|
4499
|
-
}, {
|
|
4500
|
-
oldString: string;
|
|
4501
|
-
newString: string;
|
|
4502
|
-
replaceAll?: boolean | undefined;
|
|
4503
|
-
}>, "many">;
|
|
4504
|
-
}, "strip", z.ZodTypeAny, {
|
|
4505
|
-
filePath: string;
|
|
4506
|
-
edits: {
|
|
4507
|
-
replaceAll: boolean;
|
|
4508
|
-
oldString: string;
|
|
4509
|
-
newString: string;
|
|
4510
|
-
}[];
|
|
4511
|
-
}, {
|
|
4512
|
-
filePath: string;
|
|
4513
|
-
edits: {
|
|
4514
|
-
oldString: string;
|
|
4515
|
-
newString: string;
|
|
4516
|
-
replaceAll?: boolean | undefined;
|
|
4517
|
-
}[];
|
|
4518
|
-
}>, "many">;
|
|
4519
|
-
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
4520
|
-
}, "strip", z.ZodTypeAny, {
|
|
4521
|
-
operations: {
|
|
4522
|
-
filePath: string;
|
|
4523
|
-
edits: {
|
|
4524
|
-
replaceAll: boolean;
|
|
4525
|
-
oldString: string;
|
|
4526
|
-
newString: string;
|
|
4527
|
-
}[];
|
|
4528
|
-
}[];
|
|
4529
|
-
createBackup: boolean;
|
|
4530
|
-
}, {
|
|
4531
|
-
operations: {
|
|
4532
|
-
filePath: string;
|
|
4533
|
-
edits: {
|
|
4534
|
-
oldString: string;
|
|
4535
|
-
newString: string;
|
|
4536
|
-
replaceAll?: boolean | undefined;
|
|
4537
|
-
}[];
|
|
4538
|
-
}[];
|
|
4539
|
-
createBackup?: boolean | undefined;
|
|
4540
|
-
}>, z.ZodObject<{
|
|
4541
|
-
success: z.ZodBoolean;
|
|
4542
|
-
results: z.ZodArray<z.ZodObject<{
|
|
4543
|
-
filePath: z.ZodString;
|
|
4544
|
-
editsApplied: z.ZodNumber;
|
|
4545
|
-
errors: z.ZodArray<z.ZodString, "many">;
|
|
4546
|
-
backup: z.ZodOptional<z.ZodString>;
|
|
4547
|
-
}, "strip", z.ZodTypeAny, {
|
|
4548
|
-
errors: string[];
|
|
4549
|
-
filePath: string;
|
|
4550
|
-
editsApplied: number;
|
|
4551
|
-
backup?: string | undefined;
|
|
4552
|
-
}, {
|
|
4553
|
-
errors: string[];
|
|
4554
|
-
filePath: string;
|
|
4555
|
-
editsApplied: number;
|
|
4556
|
-
backup?: string | undefined;
|
|
4557
|
-
}>, "many">;
|
|
4558
|
-
message: z.ZodString;
|
|
4559
|
-
}, "strip", z.ZodTypeAny, {
|
|
4560
|
-
message: string;
|
|
4561
|
-
success: boolean;
|
|
4562
|
-
results: {
|
|
4563
|
-
errors: string[];
|
|
4564
|
-
filePath: string;
|
|
4565
|
-
editsApplied: number;
|
|
4566
|
-
backup?: string | undefined;
|
|
4567
|
-
}[];
|
|
4568
|
-
}, {
|
|
4569
|
-
message: string;
|
|
4570
|
-
success: boolean;
|
|
4571
|
-
results: {
|
|
4572
|
-
errors: string[];
|
|
4573
|
-
filePath: string;
|
|
4574
|
-
editsApplied: number;
|
|
4575
|
-
backup?: string | undefined;
|
|
4576
|
-
}[];
|
|
4577
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
4578
|
-
operations: z.ZodArray<z.ZodObject<{
|
|
4579
|
-
filePath: z.ZodString;
|
|
4580
|
-
edits: z.ZodArray<z.ZodObject<{
|
|
4581
|
-
oldString: z.ZodString;
|
|
4582
|
-
newString: z.ZodString;
|
|
4583
|
-
replaceAll: z.ZodDefault<z.ZodBoolean>;
|
|
4584
|
-
}, "strip", z.ZodTypeAny, {
|
|
4585
|
-
replaceAll: boolean;
|
|
4586
|
-
oldString: string;
|
|
4587
|
-
newString: string;
|
|
4588
|
-
}, {
|
|
4589
|
-
oldString: string;
|
|
4590
|
-
newString: string;
|
|
4591
|
-
replaceAll?: boolean | undefined;
|
|
4592
|
-
}>, "many">;
|
|
4593
|
-
}, "strip", z.ZodTypeAny, {
|
|
4594
|
-
filePath: string;
|
|
4595
|
-
edits: {
|
|
4596
|
-
replaceAll: boolean;
|
|
4597
|
-
oldString: string;
|
|
4598
|
-
newString: string;
|
|
4599
|
-
}[];
|
|
4600
|
-
}, {
|
|
4601
|
-
filePath: string;
|
|
4602
|
-
edits: {
|
|
4603
|
-
oldString: string;
|
|
4604
|
-
newString: string;
|
|
4605
|
-
replaceAll?: boolean | undefined;
|
|
4606
|
-
}[];
|
|
4607
|
-
}>, "many">;
|
|
4608
|
-
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
4609
|
-
}, "strip", z.ZodTypeAny, {
|
|
4610
|
-
operations: {
|
|
4611
|
-
filePath: string;
|
|
4612
|
-
edits: {
|
|
4613
|
-
replaceAll: boolean;
|
|
4614
|
-
oldString: string;
|
|
4615
|
-
newString: string;
|
|
4616
|
-
}[];
|
|
4617
|
-
}[];
|
|
4618
|
-
createBackup: boolean;
|
|
4619
|
-
}, {
|
|
4620
|
-
operations: {
|
|
4621
|
-
filePath: string;
|
|
4622
|
-
edits: {
|
|
4623
|
-
oldString: string;
|
|
4624
|
-
newString: string;
|
|
4625
|
-
replaceAll?: boolean | undefined;
|
|
4626
|
-
}[];
|
|
4627
|
-
}[];
|
|
4628
|
-
createBackup?: boolean | undefined;
|
|
4629
|
-
}>>> & {
|
|
4630
|
-
inputSchema: z.ZodObject<{
|
|
4631
|
-
operations: z.ZodArray<z.ZodObject<{
|
|
4632
|
-
filePath: z.ZodString;
|
|
4633
|
-
edits: z.ZodArray<z.ZodObject<{
|
|
4634
|
-
oldString: z.ZodString;
|
|
4635
|
-
newString: z.ZodString;
|
|
4636
|
-
replaceAll: z.ZodDefault<z.ZodBoolean>;
|
|
4637
|
-
}, "strip", z.ZodTypeAny, {
|
|
4638
|
-
replaceAll: boolean;
|
|
4639
|
-
oldString: string;
|
|
4640
|
-
newString: string;
|
|
4641
|
-
}, {
|
|
4642
|
-
oldString: string;
|
|
4643
|
-
newString: string;
|
|
4644
|
-
replaceAll?: boolean | undefined;
|
|
4645
|
-
}>, "many">;
|
|
4646
|
-
}, "strip", z.ZodTypeAny, {
|
|
4647
|
-
filePath: string;
|
|
4648
|
-
edits: {
|
|
4649
|
-
replaceAll: boolean;
|
|
4650
|
-
oldString: string;
|
|
4651
|
-
newString: string;
|
|
4652
|
-
}[];
|
|
4653
|
-
}, {
|
|
4654
|
-
filePath: string;
|
|
4655
|
-
edits: {
|
|
4656
|
-
oldString: string;
|
|
4657
|
-
newString: string;
|
|
4658
|
-
replaceAll?: boolean | undefined;
|
|
4659
|
-
}[];
|
|
4660
|
-
}>, "many">;
|
|
4661
|
-
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
4662
|
-
}, "strip", z.ZodTypeAny, {
|
|
4663
|
-
operations: {
|
|
4664
|
-
filePath: string;
|
|
4665
|
-
edits: {
|
|
4666
|
-
replaceAll: boolean;
|
|
4667
|
-
oldString: string;
|
|
4668
|
-
newString: string;
|
|
4669
|
-
}[];
|
|
4670
|
-
}[];
|
|
4671
|
-
createBackup: boolean;
|
|
4672
|
-
}, {
|
|
4673
|
-
operations: {
|
|
4674
|
-
filePath: string;
|
|
4675
|
-
edits: {
|
|
4676
|
-
oldString: string;
|
|
4677
|
-
newString: string;
|
|
4678
|
-
replaceAll?: boolean | undefined;
|
|
4679
|
-
}[];
|
|
4680
|
-
}[];
|
|
4681
|
-
createBackup?: boolean | undefined;
|
|
4682
|
-
}>;
|
|
4683
|
-
outputSchema: z.ZodObject<{
|
|
4684
|
-
success: z.ZodBoolean;
|
|
4685
|
-
results: z.ZodArray<z.ZodObject<{
|
|
4686
|
-
filePath: z.ZodString;
|
|
4687
|
-
editsApplied: z.ZodNumber;
|
|
4688
|
-
errors: z.ZodArray<z.ZodString, "many">;
|
|
4689
|
-
backup: z.ZodOptional<z.ZodString>;
|
|
4690
|
-
}, "strip", z.ZodTypeAny, {
|
|
4691
|
-
errors: string[];
|
|
4692
|
-
filePath: string;
|
|
4693
|
-
editsApplied: number;
|
|
4694
|
-
backup?: string | undefined;
|
|
4695
|
-
}, {
|
|
4696
|
-
errors: string[];
|
|
4697
|
-
filePath: string;
|
|
4698
|
-
editsApplied: number;
|
|
4699
|
-
backup?: string | undefined;
|
|
4700
|
-
}>, "many">;
|
|
4701
|
-
message: z.ZodString;
|
|
4702
|
-
}, "strip", z.ZodTypeAny, {
|
|
4703
|
-
message: string;
|
|
4704
|
-
success: boolean;
|
|
4705
|
-
results: {
|
|
4706
|
-
errors: string[];
|
|
4707
|
-
filePath: string;
|
|
4708
|
-
editsApplied: number;
|
|
4709
|
-
backup?: string | undefined;
|
|
4710
|
-
}[];
|
|
4711
|
-
}, {
|
|
4712
|
-
message: string;
|
|
4713
|
-
success: boolean;
|
|
4714
|
-
results: {
|
|
4715
|
-
errors: string[];
|
|
4716
|
-
filePath: string;
|
|
4717
|
-
editsApplied: number;
|
|
4718
|
-
backup?: string | undefined;
|
|
4719
|
-
}[];
|
|
4720
|
-
}>;
|
|
4721
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
4722
|
-
operations: z.ZodArray<z.ZodObject<{
|
|
4723
|
-
filePath: z.ZodString;
|
|
4724
|
-
edits: z.ZodArray<z.ZodObject<{
|
|
4725
|
-
oldString: z.ZodString;
|
|
4726
|
-
newString: z.ZodString;
|
|
4727
|
-
replaceAll: z.ZodDefault<z.ZodBoolean>;
|
|
4728
|
-
}, "strip", z.ZodTypeAny, {
|
|
4729
|
-
replaceAll: boolean;
|
|
4730
|
-
oldString: string;
|
|
4731
|
-
newString: string;
|
|
4732
|
-
}, {
|
|
4733
|
-
oldString: string;
|
|
4734
|
-
newString: string;
|
|
4735
|
-
replaceAll?: boolean | undefined;
|
|
4736
|
-
}>, "many">;
|
|
4737
|
-
}, "strip", z.ZodTypeAny, {
|
|
4738
|
-
filePath: string;
|
|
4739
|
-
edits: {
|
|
4740
|
-
replaceAll: boolean;
|
|
4741
|
-
oldString: string;
|
|
4742
|
-
newString: string;
|
|
4743
|
-
}[];
|
|
4744
|
-
}, {
|
|
4745
|
-
filePath: string;
|
|
4746
|
-
edits: {
|
|
4747
|
-
oldString: string;
|
|
4748
|
-
newString: string;
|
|
4749
|
-
replaceAll?: boolean | undefined;
|
|
4750
|
-
}[];
|
|
4751
|
-
}>, "many">;
|
|
4752
|
-
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
4753
|
-
}, "strip", z.ZodTypeAny, {
|
|
4754
|
-
operations: {
|
|
4755
|
-
filePath: string;
|
|
4756
|
-
edits: {
|
|
4757
|
-
replaceAll: boolean;
|
|
4758
|
-
oldString: string;
|
|
4759
|
-
newString: string;
|
|
4760
|
-
}[];
|
|
4761
|
-
}[];
|
|
4762
|
-
createBackup: boolean;
|
|
4763
|
-
}, {
|
|
4764
|
-
operations: {
|
|
4765
|
-
filePath: string;
|
|
4766
|
-
edits: {
|
|
4767
|
-
oldString: string;
|
|
4768
|
-
newString: string;
|
|
4769
|
-
replaceAll?: boolean | undefined;
|
|
4770
|
-
}[];
|
|
4771
|
-
}[];
|
|
4772
|
-
createBackup?: boolean | undefined;
|
|
4773
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
4774
|
-
};
|
|
4775
|
-
replaceLines: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
4776
|
-
filePath: z.ZodString;
|
|
4777
|
-
startLine: z.ZodNumber;
|
|
4778
|
-
endLine: z.ZodNumber;
|
|
4779
|
-
newContent: z.ZodString;
|
|
4780
|
-
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
4781
|
-
}, "strip", z.ZodTypeAny, {
|
|
4782
|
-
createBackup: boolean;
|
|
4783
|
-
filePath: string;
|
|
4784
|
-
startLine: number;
|
|
4785
|
-
endLine: number;
|
|
4786
|
-
newContent: string;
|
|
4787
|
-
}, {
|
|
4788
|
-
filePath: string;
|
|
4789
|
-
startLine: number;
|
|
4790
|
-
endLine: number;
|
|
4791
|
-
newContent: string;
|
|
4792
|
-
createBackup?: boolean | undefined;
|
|
4793
|
-
}>, z.ZodObject<{
|
|
4794
|
-
success: z.ZodBoolean;
|
|
4795
|
-
message: z.ZodString;
|
|
4796
|
-
linesReplaced: z.ZodOptional<z.ZodNumber>;
|
|
4797
|
-
backup: z.ZodOptional<z.ZodString>;
|
|
4798
|
-
error: z.ZodOptional<z.ZodString>;
|
|
4799
|
-
}, "strip", z.ZodTypeAny, {
|
|
4800
|
-
message: string;
|
|
4801
|
-
success: boolean;
|
|
4802
|
-
error?: string | undefined;
|
|
4803
|
-
linesReplaced?: number | undefined;
|
|
4804
|
-
backup?: string | undefined;
|
|
4805
|
-
}, {
|
|
4806
|
-
message: string;
|
|
4807
|
-
success: boolean;
|
|
4808
|
-
error?: string | undefined;
|
|
4809
|
-
linesReplaced?: number | undefined;
|
|
4810
|
-
backup?: string | undefined;
|
|
4811
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
4812
|
-
filePath: z.ZodString;
|
|
4813
|
-
startLine: z.ZodNumber;
|
|
4814
|
-
endLine: z.ZodNumber;
|
|
4815
|
-
newContent: z.ZodString;
|
|
4816
|
-
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
4817
|
-
}, "strip", z.ZodTypeAny, {
|
|
4818
|
-
createBackup: boolean;
|
|
4819
|
-
filePath: string;
|
|
4820
|
-
startLine: number;
|
|
4821
|
-
endLine: number;
|
|
4822
|
-
newContent: string;
|
|
4823
|
-
}, {
|
|
4824
|
-
filePath: string;
|
|
4825
|
-
startLine: number;
|
|
4826
|
-
endLine: number;
|
|
4827
|
-
newContent: string;
|
|
4828
|
-
createBackup?: boolean | undefined;
|
|
4829
|
-
}>>> & {
|
|
4830
|
-
inputSchema: z.ZodObject<{
|
|
4831
|
-
filePath: z.ZodString;
|
|
4832
|
-
startLine: z.ZodNumber;
|
|
4833
|
-
endLine: z.ZodNumber;
|
|
4834
|
-
newContent: z.ZodString;
|
|
4835
|
-
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
4836
|
-
}, "strip", z.ZodTypeAny, {
|
|
4837
|
-
createBackup: boolean;
|
|
4838
|
-
filePath: string;
|
|
4839
|
-
startLine: number;
|
|
4840
|
-
endLine: number;
|
|
4841
|
-
newContent: string;
|
|
4842
|
-
}, {
|
|
4843
|
-
filePath: string;
|
|
4844
|
-
startLine: number;
|
|
4845
|
-
endLine: number;
|
|
4846
|
-
newContent: string;
|
|
4847
|
-
createBackup?: boolean | undefined;
|
|
4848
|
-
}>;
|
|
4849
|
-
outputSchema: z.ZodObject<{
|
|
4850
|
-
success: z.ZodBoolean;
|
|
4851
|
-
message: z.ZodString;
|
|
4852
|
-
linesReplaced: z.ZodOptional<z.ZodNumber>;
|
|
4853
|
-
backup: z.ZodOptional<z.ZodString>;
|
|
4854
|
-
error: z.ZodOptional<z.ZodString>;
|
|
4855
|
-
}, "strip", z.ZodTypeAny, {
|
|
4856
|
-
message: string;
|
|
4857
|
-
success: boolean;
|
|
4858
|
-
error?: string | undefined;
|
|
4859
|
-
linesReplaced?: number | undefined;
|
|
4860
|
-
backup?: string | undefined;
|
|
4861
|
-
}, {
|
|
4862
|
-
message: string;
|
|
4863
|
-
success: boolean;
|
|
4864
|
-
error?: string | undefined;
|
|
4865
|
-
linesReplaced?: number | undefined;
|
|
4866
|
-
backup?: string | undefined;
|
|
4867
|
-
}>;
|
|
4868
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
4869
|
-
filePath: z.ZodString;
|
|
4870
|
-
startLine: z.ZodNumber;
|
|
4871
|
-
endLine: z.ZodNumber;
|
|
4872
|
-
newContent: z.ZodString;
|
|
4873
|
-
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
4874
|
-
}, "strip", z.ZodTypeAny, {
|
|
4875
|
-
createBackup: boolean;
|
|
4876
|
-
filePath: string;
|
|
4877
|
-
startLine: number;
|
|
4878
|
-
endLine: number;
|
|
4879
|
-
newContent: string;
|
|
4880
|
-
}, {
|
|
4881
|
-
filePath: string;
|
|
4882
|
-
startLine: number;
|
|
4883
|
-
endLine: number;
|
|
4884
|
-
newContent: string;
|
|
4885
|
-
createBackup?: boolean | undefined;
|
|
4886
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
4887
|
-
};
|
|
4888
|
-
showFileLines: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
4889
|
-
filePath: z.ZodString;
|
|
4890
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
4891
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
4892
|
-
context: z.ZodDefault<z.ZodNumber>;
|
|
4893
|
-
}, "strip", z.ZodTypeAny, {
|
|
4894
|
-
filePath: string;
|
|
4895
|
-
context: number;
|
|
4896
|
-
startLine?: number | undefined;
|
|
4897
|
-
endLine?: number | undefined;
|
|
4898
|
-
}, {
|
|
4899
|
-
filePath: string;
|
|
4900
|
-
startLine?: number | undefined;
|
|
4901
|
-
endLine?: number | undefined;
|
|
4902
|
-
context?: number | undefined;
|
|
4903
|
-
}>, z.ZodObject<{
|
|
4904
|
-
success: z.ZodBoolean;
|
|
4905
|
-
lines: z.ZodArray<z.ZodObject<{
|
|
4906
|
-
lineNumber: z.ZodNumber;
|
|
4907
|
-
content: z.ZodString;
|
|
4908
|
-
isTarget: z.ZodBoolean;
|
|
4909
|
-
}, "strip", z.ZodTypeAny, {
|
|
4910
|
-
content: string;
|
|
4911
|
-
lineNumber: number;
|
|
4912
|
-
isTarget: boolean;
|
|
4913
|
-
}, {
|
|
4914
|
-
content: string;
|
|
4915
|
-
lineNumber: number;
|
|
4916
|
-
isTarget: boolean;
|
|
4917
|
-
}>, "many">;
|
|
4918
|
-
totalLines: z.ZodNumber;
|
|
4919
|
-
message: z.ZodString;
|
|
4920
|
-
error: z.ZodOptional<z.ZodString>;
|
|
4921
|
-
}, "strip", z.ZodTypeAny, {
|
|
4922
|
-
message: string;
|
|
4923
|
-
success: boolean;
|
|
4924
|
-
lines: {
|
|
4925
|
-
content: string;
|
|
4926
|
-
lineNumber: number;
|
|
4927
|
-
isTarget: boolean;
|
|
4928
|
-
}[];
|
|
4929
|
-
totalLines: number;
|
|
4930
|
-
error?: string | undefined;
|
|
4931
|
-
}, {
|
|
4932
|
-
message: string;
|
|
4933
|
-
success: boolean;
|
|
4934
|
-
lines: {
|
|
4935
|
-
content: string;
|
|
4936
|
-
lineNumber: number;
|
|
4937
|
-
isTarget: boolean;
|
|
4938
|
-
}[];
|
|
4939
|
-
totalLines: number;
|
|
4940
|
-
error?: string | undefined;
|
|
4941
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
4942
|
-
filePath: z.ZodString;
|
|
4943
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
4944
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
4945
|
-
context: z.ZodDefault<z.ZodNumber>;
|
|
4946
|
-
}, "strip", z.ZodTypeAny, {
|
|
4947
|
-
filePath: string;
|
|
4948
|
-
context: number;
|
|
4949
|
-
startLine?: number | undefined;
|
|
4950
|
-
endLine?: number | undefined;
|
|
4951
|
-
}, {
|
|
4952
|
-
filePath: string;
|
|
4953
|
-
startLine?: number | undefined;
|
|
4954
|
-
endLine?: number | undefined;
|
|
4955
|
-
context?: number | undefined;
|
|
4956
|
-
}>>> & {
|
|
4957
|
-
inputSchema: z.ZodObject<{
|
|
4958
|
-
filePath: z.ZodString;
|
|
4959
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
4960
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
4961
|
-
context: z.ZodDefault<z.ZodNumber>;
|
|
4962
|
-
}, "strip", z.ZodTypeAny, {
|
|
4963
|
-
filePath: string;
|
|
4964
|
-
context: number;
|
|
4965
|
-
startLine?: number | undefined;
|
|
4966
|
-
endLine?: number | undefined;
|
|
4967
|
-
}, {
|
|
4968
|
-
filePath: string;
|
|
4969
|
-
startLine?: number | undefined;
|
|
4970
|
-
endLine?: number | undefined;
|
|
4971
|
-
context?: number | undefined;
|
|
4972
|
-
}>;
|
|
4973
|
-
outputSchema: z.ZodObject<{
|
|
4974
|
-
success: z.ZodBoolean;
|
|
4975
|
-
lines: z.ZodArray<z.ZodObject<{
|
|
4976
|
-
lineNumber: z.ZodNumber;
|
|
4977
|
-
content: z.ZodString;
|
|
4978
|
-
isTarget: z.ZodBoolean;
|
|
4979
|
-
}, "strip", z.ZodTypeAny, {
|
|
4980
|
-
content: string;
|
|
4981
|
-
lineNumber: number;
|
|
4982
|
-
isTarget: boolean;
|
|
4983
|
-
}, {
|
|
4984
|
-
content: string;
|
|
4985
|
-
lineNumber: number;
|
|
4986
|
-
isTarget: boolean;
|
|
4987
|
-
}>, "many">;
|
|
4988
|
-
totalLines: z.ZodNumber;
|
|
4989
|
-
message: z.ZodString;
|
|
4990
|
-
error: z.ZodOptional<z.ZodString>;
|
|
4991
|
-
}, "strip", z.ZodTypeAny, {
|
|
4992
|
-
message: string;
|
|
4993
|
-
success: boolean;
|
|
4994
|
-
lines: {
|
|
4995
|
-
content: string;
|
|
4996
|
-
lineNumber: number;
|
|
4997
|
-
isTarget: boolean;
|
|
4998
|
-
}[];
|
|
4999
|
-
totalLines: number;
|
|
5000
|
-
error?: string | undefined;
|
|
5001
|
-
}, {
|
|
5002
|
-
message: string;
|
|
5003
|
-
success: boolean;
|
|
5004
|
-
lines: {
|
|
5005
|
-
content: string;
|
|
5006
|
-
lineNumber: number;
|
|
5007
|
-
isTarget: boolean;
|
|
5008
|
-
}[];
|
|
5009
|
-
totalLines: number;
|
|
5010
|
-
error?: string | undefined;
|
|
5011
|
-
}>;
|
|
5012
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
5013
|
-
filePath: z.ZodString;
|
|
5014
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
5015
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
5016
|
-
context: z.ZodDefault<z.ZodNumber>;
|
|
5017
|
-
}, "strip", z.ZodTypeAny, {
|
|
5018
|
-
filePath: string;
|
|
5019
|
-
context: number;
|
|
5020
|
-
startLine?: number | undefined;
|
|
5021
|
-
endLine?: number | undefined;
|
|
5022
|
-
}, {
|
|
5023
|
-
filePath: string;
|
|
5024
|
-
startLine?: number | undefined;
|
|
5025
|
-
endLine?: number | undefined;
|
|
5026
|
-
context?: number | undefined;
|
|
5027
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
5028
|
-
};
|
|
5029
|
-
askClarification: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
5030
|
-
question: z.ZodString;
|
|
5031
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5032
|
-
id: z.ZodString;
|
|
5033
|
-
description: z.ZodString;
|
|
5034
|
-
implications: z.ZodOptional<z.ZodString>;
|
|
5035
|
-
}, "strip", z.ZodTypeAny, {
|
|
5036
|
-
id: string;
|
|
5037
|
-
description: string;
|
|
5038
|
-
implications?: string | undefined;
|
|
5039
|
-
}, {
|
|
5040
|
-
id: string;
|
|
5041
|
-
description: string;
|
|
5042
|
-
implications?: string | undefined;
|
|
5043
|
-
}>, "many">>;
|
|
5044
|
-
context: z.ZodOptional<z.ZodString>;
|
|
5045
|
-
urgency: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
5046
|
-
}, "strip", z.ZodTypeAny, {
|
|
5047
|
-
question: string;
|
|
5048
|
-
urgency: "high" | "medium" | "low";
|
|
5049
|
-
options?: {
|
|
5050
|
-
id: string;
|
|
5051
|
-
description: string;
|
|
5052
|
-
implications?: string | undefined;
|
|
5053
|
-
}[] | undefined;
|
|
5054
|
-
context?: string | undefined;
|
|
5055
|
-
}, {
|
|
5056
|
-
question: string;
|
|
5057
|
-
options?: {
|
|
5058
|
-
id: string;
|
|
5059
|
-
description: string;
|
|
5060
|
-
implications?: string | undefined;
|
|
5061
|
-
}[] | undefined;
|
|
5062
|
-
context?: string | undefined;
|
|
5063
|
-
urgency?: "high" | "medium" | "low" | undefined;
|
|
5064
|
-
}>, z.ZodObject<{
|
|
5065
|
-
questionId: z.ZodString;
|
|
5066
|
-
question: z.ZodString;
|
|
5067
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5068
|
-
id: z.ZodString;
|
|
5069
|
-
description: z.ZodString;
|
|
5070
|
-
}, "strip", z.ZodTypeAny, {
|
|
5071
|
-
id: string;
|
|
5072
|
-
description: string;
|
|
5073
|
-
}, {
|
|
5074
|
-
id: string;
|
|
5075
|
-
description: string;
|
|
5076
|
-
}>, "many">>;
|
|
5077
|
-
awaitingResponse: z.ZodBoolean;
|
|
5078
|
-
}, "strip", z.ZodTypeAny, {
|
|
5079
|
-
question: string;
|
|
5080
|
-
questionId: string;
|
|
5081
|
-
awaitingResponse: boolean;
|
|
5082
|
-
options?: {
|
|
5083
|
-
id: string;
|
|
5084
|
-
description: string;
|
|
5085
|
-
}[] | undefined;
|
|
5086
|
-
}, {
|
|
5087
|
-
question: string;
|
|
5088
|
-
questionId: string;
|
|
5089
|
-
awaitingResponse: boolean;
|
|
5090
|
-
options?: {
|
|
5091
|
-
id: string;
|
|
5092
|
-
description: string;
|
|
5093
|
-
}[] | undefined;
|
|
5094
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
5095
|
-
question: z.ZodString;
|
|
5096
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5097
|
-
id: z.ZodString;
|
|
5098
|
-
description: z.ZodString;
|
|
5099
|
-
implications: z.ZodOptional<z.ZodString>;
|
|
5100
|
-
}, "strip", z.ZodTypeAny, {
|
|
5101
|
-
id: string;
|
|
5102
|
-
description: string;
|
|
5103
|
-
implications?: string | undefined;
|
|
5104
|
-
}, {
|
|
5105
|
-
id: string;
|
|
5106
|
-
description: string;
|
|
5107
|
-
implications?: string | undefined;
|
|
5108
|
-
}>, "many">>;
|
|
5109
|
-
context: z.ZodOptional<z.ZodString>;
|
|
5110
|
-
urgency: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
5111
|
-
}, "strip", z.ZodTypeAny, {
|
|
5112
|
-
question: string;
|
|
5113
|
-
urgency: "high" | "medium" | "low";
|
|
5114
|
-
options?: {
|
|
5115
|
-
id: string;
|
|
5116
|
-
description: string;
|
|
5117
|
-
implications?: string | undefined;
|
|
5118
|
-
}[] | undefined;
|
|
5119
|
-
context?: string | undefined;
|
|
5120
|
-
}, {
|
|
5121
|
-
question: string;
|
|
5122
|
-
options?: {
|
|
5123
|
-
id: string;
|
|
5124
|
-
description: string;
|
|
5125
|
-
implications?: string | undefined;
|
|
5126
|
-
}[] | undefined;
|
|
5127
|
-
context?: string | undefined;
|
|
5128
|
-
urgency?: "high" | "medium" | "low" | undefined;
|
|
5129
|
-
}>>> & {
|
|
5130
|
-
inputSchema: z.ZodObject<{
|
|
5131
|
-
question: z.ZodString;
|
|
5132
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5133
|
-
id: z.ZodString;
|
|
5134
|
-
description: z.ZodString;
|
|
5135
|
-
implications: z.ZodOptional<z.ZodString>;
|
|
5136
|
-
}, "strip", z.ZodTypeAny, {
|
|
5137
|
-
id: string;
|
|
5138
|
-
description: string;
|
|
5139
|
-
implications?: string | undefined;
|
|
5140
|
-
}, {
|
|
5141
|
-
id: string;
|
|
5142
|
-
description: string;
|
|
5143
|
-
implications?: string | undefined;
|
|
5144
|
-
}>, "many">>;
|
|
5145
|
-
context: z.ZodOptional<z.ZodString>;
|
|
5146
|
-
urgency: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
5147
|
-
}, "strip", z.ZodTypeAny, {
|
|
5148
|
-
question: string;
|
|
5149
|
-
urgency: "high" | "medium" | "low";
|
|
5150
|
-
options?: {
|
|
5151
|
-
id: string;
|
|
5152
|
-
description: string;
|
|
5153
|
-
implications?: string | undefined;
|
|
5154
|
-
}[] | undefined;
|
|
5155
|
-
context?: string | undefined;
|
|
5156
|
-
}, {
|
|
5157
|
-
question: string;
|
|
5158
|
-
options?: {
|
|
5159
|
-
id: string;
|
|
5160
|
-
description: string;
|
|
5161
|
-
implications?: string | undefined;
|
|
5162
|
-
}[] | undefined;
|
|
5163
|
-
context?: string | undefined;
|
|
5164
|
-
urgency?: "high" | "medium" | "low" | undefined;
|
|
5165
|
-
}>;
|
|
5166
|
-
outputSchema: z.ZodObject<{
|
|
5167
|
-
questionId: z.ZodString;
|
|
5168
|
-
question: z.ZodString;
|
|
5169
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5170
|
-
id: z.ZodString;
|
|
5171
|
-
description: z.ZodString;
|
|
5172
|
-
}, "strip", z.ZodTypeAny, {
|
|
5173
|
-
id: string;
|
|
5174
|
-
description: string;
|
|
5175
|
-
}, {
|
|
5176
|
-
id: string;
|
|
5177
|
-
description: string;
|
|
5178
|
-
}>, "many">>;
|
|
5179
|
-
awaitingResponse: z.ZodBoolean;
|
|
5180
|
-
}, "strip", z.ZodTypeAny, {
|
|
5181
|
-
question: string;
|
|
5182
|
-
questionId: string;
|
|
5183
|
-
awaitingResponse: boolean;
|
|
5184
|
-
options?: {
|
|
5185
|
-
id: string;
|
|
5186
|
-
description: string;
|
|
5187
|
-
}[] | undefined;
|
|
5188
|
-
}, {
|
|
5189
|
-
question: string;
|
|
5190
|
-
questionId: string;
|
|
5191
|
-
awaitingResponse: boolean;
|
|
5192
|
-
options?: {
|
|
5193
|
-
id: string;
|
|
5194
|
-
description: string;
|
|
5195
|
-
}[] | undefined;
|
|
5196
|
-
}>;
|
|
5197
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
5198
|
-
question: z.ZodString;
|
|
5199
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5200
|
-
id: z.ZodString;
|
|
5201
|
-
description: z.ZodString;
|
|
5202
|
-
implications: z.ZodOptional<z.ZodString>;
|
|
5203
|
-
}, "strip", z.ZodTypeAny, {
|
|
5204
|
-
id: string;
|
|
5205
|
-
description: string;
|
|
5206
|
-
implications?: string | undefined;
|
|
5207
|
-
}, {
|
|
5208
|
-
id: string;
|
|
5209
|
-
description: string;
|
|
5210
|
-
implications?: string | undefined;
|
|
5211
|
-
}>, "many">>;
|
|
5212
|
-
context: z.ZodOptional<z.ZodString>;
|
|
5213
|
-
urgency: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
5214
|
-
}, "strip", z.ZodTypeAny, {
|
|
5215
|
-
question: string;
|
|
5216
|
-
urgency: "high" | "medium" | "low";
|
|
5217
|
-
options?: {
|
|
5218
|
-
id: string;
|
|
5219
|
-
description: string;
|
|
5220
|
-
implications?: string | undefined;
|
|
5221
|
-
}[] | undefined;
|
|
5222
|
-
context?: string | undefined;
|
|
5223
|
-
}, {
|
|
5224
|
-
question: string;
|
|
5225
|
-
options?: {
|
|
5226
|
-
id: string;
|
|
5227
|
-
description: string;
|
|
5228
|
-
implications?: string | undefined;
|
|
5229
|
-
}[] | undefined;
|
|
5230
|
-
context?: string | undefined;
|
|
5231
|
-
urgency?: "high" | "medium" | "low" | undefined;
|
|
5232
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
5233
|
-
};
|
|
5234
|
-
smartSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
5235
|
-
query: z.ZodString;
|
|
5236
|
-
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
5237
|
-
scope: z.ZodOptional<z.ZodObject<{
|
|
5238
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5239
|
-
fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5240
|
-
excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5241
|
-
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
5242
|
-
}, "strip", z.ZodTypeAny, {
|
|
5243
|
-
maxResults: number;
|
|
5244
|
-
paths?: string[] | undefined;
|
|
5245
|
-
fileTypes?: string[] | undefined;
|
|
5246
|
-
excludePaths?: string[] | undefined;
|
|
5247
|
-
}, {
|
|
5248
|
-
paths?: string[] | undefined;
|
|
5249
|
-
fileTypes?: string[] | undefined;
|
|
5250
|
-
excludePaths?: string[] | undefined;
|
|
5251
|
-
maxResults?: number | undefined;
|
|
5252
|
-
}>>;
|
|
5253
|
-
context: z.ZodOptional<z.ZodObject<{
|
|
5254
|
-
beforeLines: z.ZodDefault<z.ZodNumber>;
|
|
5255
|
-
afterLines: z.ZodDefault<z.ZodNumber>;
|
|
5256
|
-
includeDefinitions: z.ZodDefault<z.ZodBoolean>;
|
|
5257
|
-
}, "strip", z.ZodTypeAny, {
|
|
5258
|
-
beforeLines: number;
|
|
5259
|
-
afterLines: number;
|
|
5260
|
-
includeDefinitions: boolean;
|
|
5261
|
-
}, {
|
|
5262
|
-
beforeLines?: number | undefined;
|
|
5263
|
-
afterLines?: number | undefined;
|
|
5264
|
-
includeDefinitions?: boolean | undefined;
|
|
5265
|
-
}>>;
|
|
5266
|
-
}, "strip", z.ZodTypeAny, {
|
|
5267
|
-
type: "text" | "regex" | "fuzzy" | "semantic";
|
|
5268
|
-
query: string;
|
|
5269
|
-
context?: {
|
|
5270
|
-
beforeLines: number;
|
|
5271
|
-
afterLines: number;
|
|
5272
|
-
includeDefinitions: boolean;
|
|
5273
|
-
} | undefined;
|
|
5274
|
-
scope?: {
|
|
5275
|
-
maxResults: number;
|
|
5276
|
-
paths?: string[] | undefined;
|
|
5277
|
-
fileTypes?: string[] | undefined;
|
|
5278
|
-
excludePaths?: string[] | undefined;
|
|
5279
|
-
} | undefined;
|
|
5280
|
-
}, {
|
|
5281
|
-
query: string;
|
|
5282
|
-
type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
|
|
5283
|
-
context?: {
|
|
5284
|
-
beforeLines?: number | undefined;
|
|
5285
|
-
afterLines?: number | undefined;
|
|
5286
|
-
includeDefinitions?: boolean | undefined;
|
|
5287
|
-
} | undefined;
|
|
5288
|
-
scope?: {
|
|
5289
|
-
paths?: string[] | undefined;
|
|
5290
|
-
fileTypes?: string[] | undefined;
|
|
5291
|
-
excludePaths?: string[] | undefined;
|
|
5292
|
-
maxResults?: number | undefined;
|
|
5293
|
-
} | undefined;
|
|
5294
|
-
}>, z.ZodObject<{
|
|
5295
|
-
success: z.ZodBoolean;
|
|
5296
|
-
matches: z.ZodArray<z.ZodObject<{
|
|
5297
|
-
file: z.ZodString;
|
|
5298
|
-
line: z.ZodNumber;
|
|
5299
|
-
column: z.ZodOptional<z.ZodNumber>;
|
|
5300
|
-
match: z.ZodString;
|
|
5301
|
-
context: z.ZodObject<{
|
|
5302
|
-
before: z.ZodArray<z.ZodString, "many">;
|
|
5303
|
-
after: z.ZodArray<z.ZodString, "many">;
|
|
5304
|
-
}, "strip", z.ZodTypeAny, {
|
|
5305
|
-
before: string[];
|
|
5306
|
-
after: string[];
|
|
5307
|
-
}, {
|
|
5308
|
-
before: string[];
|
|
5309
|
-
after: string[];
|
|
5310
|
-
}>;
|
|
5311
|
-
relevance: z.ZodOptional<z.ZodNumber>;
|
|
5312
|
-
}, "strip", z.ZodTypeAny, {
|
|
5313
|
-
file: string;
|
|
5314
|
-
match: string;
|
|
5315
|
-
context: {
|
|
5316
|
-
before: string[];
|
|
5317
|
-
after: string[];
|
|
5318
|
-
};
|
|
5319
|
-
line: number;
|
|
5320
|
-
column?: number | undefined;
|
|
5321
|
-
relevance?: number | undefined;
|
|
5322
|
-
}, {
|
|
5323
|
-
file: string;
|
|
5324
|
-
match: string;
|
|
5325
|
-
context: {
|
|
5326
|
-
before: string[];
|
|
5327
|
-
after: string[];
|
|
5328
|
-
};
|
|
5329
|
-
line: number;
|
|
5330
|
-
column?: number | undefined;
|
|
5331
|
-
relevance?: number | undefined;
|
|
5332
|
-
}>, "many">;
|
|
5333
|
-
summary: z.ZodObject<{
|
|
5334
|
-
totalMatches: z.ZodNumber;
|
|
5335
|
-
filesSearched: z.ZodNumber;
|
|
5336
|
-
patterns: z.ZodArray<z.ZodString, "many">;
|
|
5337
|
-
}, "strip", z.ZodTypeAny, {
|
|
5338
|
-
patterns: string[];
|
|
5339
|
-
totalMatches: number;
|
|
5340
|
-
filesSearched: number;
|
|
5341
|
-
}, {
|
|
5342
|
-
patterns: string[];
|
|
5343
|
-
totalMatches: number;
|
|
5344
|
-
filesSearched: number;
|
|
5345
|
-
}>;
|
|
5346
|
-
}, "strip", z.ZodTypeAny, {
|
|
5347
|
-
success: boolean;
|
|
5348
|
-
matches: {
|
|
5349
|
-
file: string;
|
|
5350
|
-
match: string;
|
|
5351
|
-
context: {
|
|
5352
|
-
before: string[];
|
|
5353
|
-
after: string[];
|
|
5354
|
-
};
|
|
5355
|
-
line: number;
|
|
5356
|
-
column?: number | undefined;
|
|
5357
|
-
relevance?: number | undefined;
|
|
5358
|
-
}[];
|
|
5359
|
-
summary: {
|
|
5360
|
-
patterns: string[];
|
|
5361
|
-
totalMatches: number;
|
|
5362
|
-
filesSearched: number;
|
|
5363
|
-
};
|
|
5364
|
-
}, {
|
|
5365
|
-
success: boolean;
|
|
5366
|
-
matches: {
|
|
5367
|
-
file: string;
|
|
5368
|
-
match: string;
|
|
5369
|
-
context: {
|
|
5370
|
-
before: string[];
|
|
5371
|
-
after: string[];
|
|
5372
|
-
};
|
|
5373
|
-
line: number;
|
|
5374
|
-
column?: number | undefined;
|
|
5375
|
-
relevance?: number | undefined;
|
|
5376
|
-
}[];
|
|
5377
|
-
summary: {
|
|
5378
|
-
patterns: string[];
|
|
5379
|
-
totalMatches: number;
|
|
5380
|
-
filesSearched: number;
|
|
5381
|
-
};
|
|
5382
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
5383
|
-
query: z.ZodString;
|
|
5384
|
-
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
5385
|
-
scope: z.ZodOptional<z.ZodObject<{
|
|
5386
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5387
|
-
fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5388
|
-
excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5389
|
-
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
5390
|
-
}, "strip", z.ZodTypeAny, {
|
|
5391
|
-
maxResults: number;
|
|
5392
|
-
paths?: string[] | undefined;
|
|
5393
|
-
fileTypes?: string[] | undefined;
|
|
5394
|
-
excludePaths?: string[] | undefined;
|
|
5395
|
-
}, {
|
|
5396
|
-
paths?: string[] | undefined;
|
|
5397
|
-
fileTypes?: string[] | undefined;
|
|
5398
|
-
excludePaths?: string[] | undefined;
|
|
5399
|
-
maxResults?: number | undefined;
|
|
5400
|
-
}>>;
|
|
5401
|
-
context: z.ZodOptional<z.ZodObject<{
|
|
5402
|
-
beforeLines: z.ZodDefault<z.ZodNumber>;
|
|
5403
|
-
afterLines: z.ZodDefault<z.ZodNumber>;
|
|
5404
|
-
includeDefinitions: z.ZodDefault<z.ZodBoolean>;
|
|
5405
|
-
}, "strip", z.ZodTypeAny, {
|
|
5406
|
-
beforeLines: number;
|
|
5407
|
-
afterLines: number;
|
|
5408
|
-
includeDefinitions: boolean;
|
|
5409
|
-
}, {
|
|
5410
|
-
beforeLines?: number | undefined;
|
|
5411
|
-
afterLines?: number | undefined;
|
|
5412
|
-
includeDefinitions?: boolean | undefined;
|
|
5413
|
-
}>>;
|
|
5414
|
-
}, "strip", z.ZodTypeAny, {
|
|
5415
|
-
type: "text" | "regex" | "fuzzy" | "semantic";
|
|
5416
|
-
query: string;
|
|
5417
|
-
context?: {
|
|
5418
|
-
beforeLines: number;
|
|
5419
|
-
afterLines: number;
|
|
5420
|
-
includeDefinitions: boolean;
|
|
5421
|
-
} | undefined;
|
|
5422
|
-
scope?: {
|
|
5423
|
-
maxResults: number;
|
|
5424
|
-
paths?: string[] | undefined;
|
|
5425
|
-
fileTypes?: string[] | undefined;
|
|
5426
|
-
excludePaths?: string[] | undefined;
|
|
5427
|
-
} | undefined;
|
|
5428
|
-
}, {
|
|
5429
|
-
query: string;
|
|
5430
|
-
type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
|
|
5431
|
-
context?: {
|
|
5432
|
-
beforeLines?: number | undefined;
|
|
5433
|
-
afterLines?: number | undefined;
|
|
5434
|
-
includeDefinitions?: boolean | undefined;
|
|
5435
|
-
} | undefined;
|
|
5436
|
-
scope?: {
|
|
5437
|
-
paths?: string[] | undefined;
|
|
5438
|
-
fileTypes?: string[] | undefined;
|
|
5439
|
-
excludePaths?: string[] | undefined;
|
|
5440
|
-
maxResults?: number | undefined;
|
|
5441
|
-
} | undefined;
|
|
5442
|
-
}>>> & {
|
|
5443
|
-
inputSchema: z.ZodObject<{
|
|
5444
|
-
query: z.ZodString;
|
|
5445
|
-
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
5446
|
-
scope: z.ZodOptional<z.ZodObject<{
|
|
5447
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5448
|
-
fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5449
|
-
excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5450
|
-
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
5451
|
-
}, "strip", z.ZodTypeAny, {
|
|
5452
|
-
maxResults: number;
|
|
5453
|
-
paths?: string[] | undefined;
|
|
5454
|
-
fileTypes?: string[] | undefined;
|
|
5455
|
-
excludePaths?: string[] | undefined;
|
|
5456
|
-
}, {
|
|
5457
|
-
paths?: string[] | undefined;
|
|
5458
|
-
fileTypes?: string[] | undefined;
|
|
5459
|
-
excludePaths?: string[] | undefined;
|
|
5460
|
-
maxResults?: number | undefined;
|
|
5461
|
-
}>>;
|
|
5462
|
-
context: z.ZodOptional<z.ZodObject<{
|
|
5463
|
-
beforeLines: z.ZodDefault<z.ZodNumber>;
|
|
5464
|
-
afterLines: z.ZodDefault<z.ZodNumber>;
|
|
5465
|
-
includeDefinitions: z.ZodDefault<z.ZodBoolean>;
|
|
5466
|
-
}, "strip", z.ZodTypeAny, {
|
|
5467
|
-
beforeLines: number;
|
|
5468
|
-
afterLines: number;
|
|
5469
|
-
includeDefinitions: boolean;
|
|
5470
|
-
}, {
|
|
5471
|
-
beforeLines?: number | undefined;
|
|
5472
|
-
afterLines?: number | undefined;
|
|
5473
|
-
includeDefinitions?: boolean | undefined;
|
|
5474
|
-
}>>;
|
|
5475
|
-
}, "strip", z.ZodTypeAny, {
|
|
5476
|
-
type: "text" | "regex" | "fuzzy" | "semantic";
|
|
5477
|
-
query: string;
|
|
5478
|
-
context?: {
|
|
5479
|
-
beforeLines: number;
|
|
5480
|
-
afterLines: number;
|
|
5481
|
-
includeDefinitions: boolean;
|
|
5482
|
-
} | undefined;
|
|
5483
|
-
scope?: {
|
|
5484
|
-
maxResults: number;
|
|
5485
|
-
paths?: string[] | undefined;
|
|
5486
|
-
fileTypes?: string[] | undefined;
|
|
5487
|
-
excludePaths?: string[] | undefined;
|
|
5488
|
-
} | undefined;
|
|
5489
|
-
}, {
|
|
5490
|
-
query: string;
|
|
5491
|
-
type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
|
|
5492
|
-
context?: {
|
|
5493
|
-
beforeLines?: number | undefined;
|
|
5494
|
-
afterLines?: number | undefined;
|
|
5495
|
-
includeDefinitions?: boolean | undefined;
|
|
5496
|
-
} | undefined;
|
|
5497
|
-
scope?: {
|
|
5498
|
-
paths?: string[] | undefined;
|
|
5499
|
-
fileTypes?: string[] | undefined;
|
|
5500
|
-
excludePaths?: string[] | undefined;
|
|
5501
|
-
maxResults?: number | undefined;
|
|
5502
|
-
} | undefined;
|
|
5503
|
-
}>;
|
|
5504
|
-
outputSchema: z.ZodObject<{
|
|
5505
|
-
success: z.ZodBoolean;
|
|
5506
|
-
matches: z.ZodArray<z.ZodObject<{
|
|
5507
|
-
file: z.ZodString;
|
|
5508
|
-
line: z.ZodNumber;
|
|
5509
|
-
column: z.ZodOptional<z.ZodNumber>;
|
|
5510
|
-
match: z.ZodString;
|
|
5511
|
-
context: z.ZodObject<{
|
|
5512
|
-
before: z.ZodArray<z.ZodString, "many">;
|
|
5513
|
-
after: z.ZodArray<z.ZodString, "many">;
|
|
5514
|
-
}, "strip", z.ZodTypeAny, {
|
|
5515
|
-
before: string[];
|
|
5516
|
-
after: string[];
|
|
5517
|
-
}, {
|
|
5518
|
-
before: string[];
|
|
5519
|
-
after: string[];
|
|
5520
|
-
}>;
|
|
5521
|
-
relevance: z.ZodOptional<z.ZodNumber>;
|
|
5522
|
-
}, "strip", z.ZodTypeAny, {
|
|
5523
|
-
file: string;
|
|
5524
|
-
match: string;
|
|
5525
|
-
context: {
|
|
5526
|
-
before: string[];
|
|
5527
|
-
after: string[];
|
|
5528
|
-
};
|
|
5529
|
-
line: number;
|
|
5530
|
-
column?: number | undefined;
|
|
5531
|
-
relevance?: number | undefined;
|
|
5532
|
-
}, {
|
|
5533
|
-
file: string;
|
|
5534
|
-
match: string;
|
|
5535
|
-
context: {
|
|
5536
|
-
before: string[];
|
|
5537
|
-
after: string[];
|
|
5538
|
-
};
|
|
5539
|
-
line: number;
|
|
5540
|
-
column?: number | undefined;
|
|
5541
|
-
relevance?: number | undefined;
|
|
5542
|
-
}>, "many">;
|
|
5543
|
-
summary: z.ZodObject<{
|
|
5544
|
-
totalMatches: z.ZodNumber;
|
|
5545
|
-
filesSearched: z.ZodNumber;
|
|
5546
|
-
patterns: z.ZodArray<z.ZodString, "many">;
|
|
5547
|
-
}, "strip", z.ZodTypeAny, {
|
|
5548
|
-
patterns: string[];
|
|
5549
|
-
totalMatches: number;
|
|
5550
|
-
filesSearched: number;
|
|
5551
|
-
}, {
|
|
5552
|
-
patterns: string[];
|
|
5553
|
-
totalMatches: number;
|
|
5554
|
-
filesSearched: number;
|
|
5555
|
-
}>;
|
|
5556
|
-
}, "strip", z.ZodTypeAny, {
|
|
5557
|
-
success: boolean;
|
|
5558
|
-
matches: {
|
|
5559
|
-
file: string;
|
|
5560
|
-
match: string;
|
|
5561
|
-
context: {
|
|
5562
|
-
before: string[];
|
|
5563
|
-
after: string[];
|
|
5564
|
-
};
|
|
5565
|
-
line: number;
|
|
5566
|
-
column?: number | undefined;
|
|
5567
|
-
relevance?: number | undefined;
|
|
5568
|
-
}[];
|
|
5569
|
-
summary: {
|
|
5570
|
-
patterns: string[];
|
|
5571
|
-
totalMatches: number;
|
|
5572
|
-
filesSearched: number;
|
|
5573
|
-
};
|
|
5574
|
-
}, {
|
|
5575
|
-
success: boolean;
|
|
5576
|
-
matches: {
|
|
5577
|
-
file: string;
|
|
5578
|
-
match: string;
|
|
5579
|
-
context: {
|
|
5580
|
-
before: string[];
|
|
5581
|
-
after: string[];
|
|
5582
|
-
};
|
|
5583
|
-
line: number;
|
|
5584
|
-
column?: number | undefined;
|
|
5585
|
-
relevance?: number | undefined;
|
|
5586
|
-
}[];
|
|
5587
|
-
summary: {
|
|
5588
|
-
patterns: string[];
|
|
5589
|
-
totalMatches: number;
|
|
5590
|
-
filesSearched: number;
|
|
5591
|
-
};
|
|
5592
|
-
}>;
|
|
5593
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
5594
|
-
query: z.ZodString;
|
|
5595
|
-
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
5596
|
-
scope: z.ZodOptional<z.ZodObject<{
|
|
5597
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5598
|
-
fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5599
|
-
excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5600
|
-
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
5601
|
-
}, "strip", z.ZodTypeAny, {
|
|
5602
|
-
maxResults: number;
|
|
5603
|
-
paths?: string[] | undefined;
|
|
5604
|
-
fileTypes?: string[] | undefined;
|
|
5605
|
-
excludePaths?: string[] | undefined;
|
|
5606
|
-
}, {
|
|
5607
|
-
paths?: string[] | undefined;
|
|
5608
|
-
fileTypes?: string[] | undefined;
|
|
5609
|
-
excludePaths?: string[] | undefined;
|
|
5610
|
-
maxResults?: number | undefined;
|
|
5611
|
-
}>>;
|
|
5612
|
-
context: z.ZodOptional<z.ZodObject<{
|
|
5613
|
-
beforeLines: z.ZodDefault<z.ZodNumber>;
|
|
5614
|
-
afterLines: z.ZodDefault<z.ZodNumber>;
|
|
5615
|
-
includeDefinitions: z.ZodDefault<z.ZodBoolean>;
|
|
5616
|
-
}, "strip", z.ZodTypeAny, {
|
|
5617
|
-
beforeLines: number;
|
|
5618
|
-
afterLines: number;
|
|
5619
|
-
includeDefinitions: boolean;
|
|
5620
|
-
}, {
|
|
5621
|
-
beforeLines?: number | undefined;
|
|
5622
|
-
afterLines?: number | undefined;
|
|
5623
|
-
includeDefinitions?: boolean | undefined;
|
|
5624
|
-
}>>;
|
|
5625
|
-
}, "strip", z.ZodTypeAny, {
|
|
5626
|
-
type: "text" | "regex" | "fuzzy" | "semantic";
|
|
5627
|
-
query: string;
|
|
5628
|
-
context?: {
|
|
5629
|
-
beforeLines: number;
|
|
5630
|
-
afterLines: number;
|
|
5631
|
-
includeDefinitions: boolean;
|
|
5632
|
-
} | undefined;
|
|
5633
|
-
scope?: {
|
|
5634
|
-
maxResults: number;
|
|
5635
|
-
paths?: string[] | undefined;
|
|
5636
|
-
fileTypes?: string[] | undefined;
|
|
5637
|
-
excludePaths?: string[] | undefined;
|
|
5638
|
-
} | undefined;
|
|
5639
|
-
}, {
|
|
5640
|
-
query: string;
|
|
5641
|
-
type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
|
|
5642
|
-
context?: {
|
|
5643
|
-
beforeLines?: number | undefined;
|
|
5644
|
-
afterLines?: number | undefined;
|
|
5645
|
-
includeDefinitions?: boolean | undefined;
|
|
5646
|
-
} | undefined;
|
|
5647
|
-
scope?: {
|
|
5648
|
-
paths?: string[] | undefined;
|
|
5649
|
-
fileTypes?: string[] | undefined;
|
|
5650
|
-
excludePaths?: string[] | undefined;
|
|
5651
|
-
maxResults?: number | undefined;
|
|
5652
|
-
} | undefined;
|
|
5653
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
5654
|
-
};
|
|
5655
|
-
validateCode: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
5656
|
-
projectPath: z.ZodOptional<z.ZodString>;
|
|
5657
|
-
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
5658
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5659
|
-
}, "strip", z.ZodTypeAny, {
|
|
5660
|
-
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
5661
|
-
projectPath?: string | undefined;
|
|
5662
|
-
files?: string[] | undefined;
|
|
5663
|
-
}, {
|
|
5664
|
-
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
5665
|
-
projectPath?: string | undefined;
|
|
5666
|
-
files?: string[] | undefined;
|
|
5667
|
-
}>, z.ZodObject<{
|
|
5668
|
-
valid: z.ZodBoolean;
|
|
5669
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
5670
|
-
type: z.ZodEnum<["typescript", "eslint", "schema", "test", "build"]>;
|
|
5671
|
-
severity: z.ZodEnum<["error", "warning", "info"]>;
|
|
5672
|
-
message: z.ZodString;
|
|
5673
|
-
file: z.ZodOptional<z.ZodString>;
|
|
5674
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
5675
|
-
column: z.ZodOptional<z.ZodNumber>;
|
|
5676
|
-
code: z.ZodOptional<z.ZodString>;
|
|
5677
|
-
}, "strip", z.ZodTypeAny, {
|
|
5678
|
-
message: string;
|
|
5679
|
-
type: "build" | "typescript" | "eslint" | "schema" | "test";
|
|
5680
|
-
severity: "error" | "warning" | "info";
|
|
5681
|
-
code?: string | undefined;
|
|
5682
|
-
file?: string | undefined;
|
|
5683
|
-
line?: number | undefined;
|
|
5684
|
-
column?: number | undefined;
|
|
5685
|
-
}, {
|
|
5686
|
-
message: string;
|
|
5687
|
-
type: "build" | "typescript" | "eslint" | "schema" | "test";
|
|
5688
|
-
severity: "error" | "warning" | "info";
|
|
5689
|
-
code?: string | undefined;
|
|
5690
|
-
file?: string | undefined;
|
|
5691
|
-
line?: number | undefined;
|
|
5692
|
-
column?: number | undefined;
|
|
5693
|
-
}>, "many">;
|
|
5694
|
-
summary: z.ZodObject<{
|
|
5695
|
-
totalErrors: z.ZodNumber;
|
|
5696
|
-
totalWarnings: z.ZodNumber;
|
|
5697
|
-
validationsPassed: z.ZodArray<z.ZodString, "many">;
|
|
5698
|
-
validationsFailed: z.ZodArray<z.ZodString, "many">;
|
|
5699
|
-
}, "strip", z.ZodTypeAny, {
|
|
5700
|
-
totalErrors: number;
|
|
5701
|
-
totalWarnings: number;
|
|
5702
|
-
validationsPassed: string[];
|
|
5703
|
-
validationsFailed: string[];
|
|
5704
|
-
}, {
|
|
5705
|
-
totalErrors: number;
|
|
5706
|
-
totalWarnings: number;
|
|
5707
|
-
validationsPassed: string[];
|
|
5708
|
-
validationsFailed: string[];
|
|
5709
|
-
}>;
|
|
5710
|
-
}, "strip", z.ZodTypeAny, {
|
|
5711
|
-
valid: boolean;
|
|
5712
|
-
errors: {
|
|
5713
|
-
message: string;
|
|
5714
|
-
type: "build" | "typescript" | "eslint" | "schema" | "test";
|
|
5715
|
-
severity: "error" | "warning" | "info";
|
|
5716
|
-
code?: string | undefined;
|
|
5717
|
-
file?: string | undefined;
|
|
5718
|
-
line?: number | undefined;
|
|
5719
|
-
column?: number | undefined;
|
|
5720
|
-
}[];
|
|
5721
|
-
summary: {
|
|
5722
|
-
totalErrors: number;
|
|
5723
|
-
totalWarnings: number;
|
|
5724
|
-
validationsPassed: string[];
|
|
5725
|
-
validationsFailed: string[];
|
|
5726
|
-
};
|
|
5727
|
-
}, {
|
|
5728
|
-
valid: boolean;
|
|
5729
|
-
errors: {
|
|
5730
|
-
message: string;
|
|
5731
|
-
type: "build" | "typescript" | "eslint" | "schema" | "test";
|
|
5732
|
-
severity: "error" | "warning" | "info";
|
|
5733
|
-
code?: string | undefined;
|
|
5734
|
-
file?: string | undefined;
|
|
5735
|
-
line?: number | undefined;
|
|
5736
|
-
column?: number | undefined;
|
|
5737
|
-
}[];
|
|
5738
|
-
summary: {
|
|
5739
|
-
totalErrors: number;
|
|
5740
|
-
totalWarnings: number;
|
|
5741
|
-
validationsPassed: string[];
|
|
5742
|
-
validationsFailed: string[];
|
|
5743
|
-
};
|
|
5744
|
-
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
5745
|
-
projectPath: z.ZodOptional<z.ZodString>;
|
|
5746
|
-
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
5747
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5748
|
-
}, "strip", z.ZodTypeAny, {
|
|
5749
|
-
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
5750
|
-
projectPath?: string | undefined;
|
|
5751
|
-
files?: string[] | undefined;
|
|
5752
|
-
}, {
|
|
5753
|
-
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
5754
|
-
projectPath?: string | undefined;
|
|
5755
|
-
files?: string[] | undefined;
|
|
5756
|
-
}>>> & {
|
|
5757
|
-
inputSchema: z.ZodObject<{
|
|
5758
|
-
projectPath: z.ZodOptional<z.ZodString>;
|
|
5759
|
-
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
5760
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5761
|
-
}, "strip", z.ZodTypeAny, {
|
|
5762
|
-
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
5763
|
-
projectPath?: string | undefined;
|
|
5764
|
-
files?: string[] | undefined;
|
|
5765
|
-
}, {
|
|
5766
|
-
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
5767
|
-
projectPath?: string | undefined;
|
|
5768
|
-
files?: string[] | undefined;
|
|
5769
|
-
}>;
|
|
5770
|
-
outputSchema: z.ZodObject<{
|
|
5771
|
-
valid: z.ZodBoolean;
|
|
5772
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
5773
|
-
type: z.ZodEnum<["typescript", "eslint", "schema", "test", "build"]>;
|
|
5774
|
-
severity: z.ZodEnum<["error", "warning", "info"]>;
|
|
5775
|
-
message: z.ZodString;
|
|
5776
|
-
file: z.ZodOptional<z.ZodString>;
|
|
5777
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
5778
|
-
column: z.ZodOptional<z.ZodNumber>;
|
|
5779
|
-
code: z.ZodOptional<z.ZodString>;
|
|
5780
|
-
}, "strip", z.ZodTypeAny, {
|
|
5781
|
-
message: string;
|
|
5782
|
-
type: "build" | "typescript" | "eslint" | "schema" | "test";
|
|
5783
|
-
severity: "error" | "warning" | "info";
|
|
5784
|
-
code?: string | undefined;
|
|
5785
|
-
file?: string | undefined;
|
|
5786
|
-
line?: number | undefined;
|
|
5787
|
-
column?: number | undefined;
|
|
5788
|
-
}, {
|
|
5789
|
-
message: string;
|
|
5790
|
-
type: "build" | "typescript" | "eslint" | "schema" | "test";
|
|
5791
|
-
severity: "error" | "warning" | "info";
|
|
5792
|
-
code?: string | undefined;
|
|
5793
|
-
file?: string | undefined;
|
|
5794
|
-
line?: number | undefined;
|
|
5795
|
-
column?: number | undefined;
|
|
5796
|
-
}>, "many">;
|
|
5797
|
-
summary: z.ZodObject<{
|
|
5798
|
-
totalErrors: z.ZodNumber;
|
|
5799
|
-
totalWarnings: z.ZodNumber;
|
|
5800
|
-
validationsPassed: z.ZodArray<z.ZodString, "many">;
|
|
5801
|
-
validationsFailed: z.ZodArray<z.ZodString, "many">;
|
|
5802
|
-
}, "strip", z.ZodTypeAny, {
|
|
5803
|
-
totalErrors: number;
|
|
5804
|
-
totalWarnings: number;
|
|
5805
|
-
validationsPassed: string[];
|
|
5806
|
-
validationsFailed: string[];
|
|
5807
|
-
}, {
|
|
5808
|
-
totalErrors: number;
|
|
5809
|
-
totalWarnings: number;
|
|
5810
|
-
validationsPassed: string[];
|
|
5811
|
-
validationsFailed: string[];
|
|
5812
|
-
}>;
|
|
5813
|
-
}, "strip", z.ZodTypeAny, {
|
|
5814
|
-
valid: boolean;
|
|
5815
|
-
errors: {
|
|
5816
|
-
message: string;
|
|
5817
|
-
type: "build" | "typescript" | "eslint" | "schema" | "test";
|
|
5818
|
-
severity: "error" | "warning" | "info";
|
|
5819
|
-
code?: string | undefined;
|
|
5820
|
-
file?: string | undefined;
|
|
5821
|
-
line?: number | undefined;
|
|
5822
|
-
column?: number | undefined;
|
|
5823
|
-
}[];
|
|
5824
|
-
summary: {
|
|
5825
|
-
totalErrors: number;
|
|
5826
|
-
totalWarnings: number;
|
|
5827
|
-
validationsPassed: string[];
|
|
5828
|
-
validationsFailed: string[];
|
|
5829
|
-
};
|
|
5830
|
-
}, {
|
|
5831
|
-
valid: boolean;
|
|
5832
|
-
errors: {
|
|
5833
|
-
message: string;
|
|
5834
|
-
type: "build" | "typescript" | "eslint" | "schema" | "test";
|
|
5835
|
-
severity: "error" | "warning" | "info";
|
|
5836
|
-
code?: string | undefined;
|
|
5837
|
-
file?: string | undefined;
|
|
5838
|
-
line?: number | undefined;
|
|
5839
|
-
column?: number | undefined;
|
|
5840
|
-
}[];
|
|
5841
|
-
summary: {
|
|
5842
|
-
totalErrors: number;
|
|
5843
|
-
totalWarnings: number;
|
|
5844
|
-
validationsPassed: string[];
|
|
5845
|
-
validationsFailed: string[];
|
|
5846
|
-
};
|
|
5847
|
-
}>;
|
|
5848
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
5849
|
-
projectPath: z.ZodOptional<z.ZodString>;
|
|
5850
|
-
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
5851
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5852
|
-
}, "strip", z.ZodTypeAny, {
|
|
5853
|
-
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
5854
|
-
projectPath?: string | undefined;
|
|
5855
|
-
files?: string[] | undefined;
|
|
5856
|
-
}, {
|
|
5857
|
-
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
5858
|
-
projectPath?: string | undefined;
|
|
5859
|
-
files?: string[] | undefined;
|
|
5860
2946
|
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
5861
2947
|
};
|
|
5862
2948
|
}>;
|
|
2949
|
+
/**
|
|
2950
|
+
* Filter tools for template builder mode (excludes web search and other advanced tools)
|
|
2951
|
+
*/
|
|
2952
|
+
static filterToolsForTemplateBuilder(tools: Record<string, any>): Record<string, any>;
|
|
2953
|
+
/**
|
|
2954
|
+
* Filter tools for code editor mode (includes all tools)
|
|
2955
|
+
*/
|
|
2956
|
+
static filterToolsForCodeEditor(tools: Record<string, any>): Record<string, any>;
|
|
2957
|
+
/**
|
|
2958
|
+
* Get tools for a specific mode
|
|
2959
|
+
*/
|
|
2960
|
+
static getToolsForMode(projectPath: string, mode?: 'template' | 'code-editor'): Promise<Record<string, any>>;
|
|
5863
2961
|
/**
|
|
5864
2962
|
* Create a new Mastra project using create-mastra CLI
|
|
5865
2963
|
*/
|
|
@@ -6168,64 +3266,6 @@ export declare class AgentBuilderDefaults {
|
|
|
6168
3266
|
tasks: any[];
|
|
6169
3267
|
message: string;
|
|
6170
3268
|
}>;
|
|
6171
|
-
/**
|
|
6172
|
-
* Analyze codebase structure and patterns
|
|
6173
|
-
*/
|
|
6174
|
-
static analyzeCode(context: {
|
|
6175
|
-
action: 'definitions' | 'dependencies' | 'patterns' | 'structure';
|
|
6176
|
-
path: string;
|
|
6177
|
-
language?: string;
|
|
6178
|
-
depth?: number;
|
|
6179
|
-
includeTests?: boolean;
|
|
6180
|
-
}): Promise<{
|
|
6181
|
-
success: boolean;
|
|
6182
|
-
analysis: {
|
|
6183
|
-
definitions: {
|
|
6184
|
-
name: string;
|
|
6185
|
-
type: string;
|
|
6186
|
-
file: string;
|
|
6187
|
-
line?: number;
|
|
6188
|
-
scope?: string;
|
|
6189
|
-
}[];
|
|
6190
|
-
dependencies?: undefined;
|
|
6191
|
-
structure?: undefined;
|
|
6192
|
-
};
|
|
6193
|
-
message: string;
|
|
6194
|
-
} | {
|
|
6195
|
-
success: boolean;
|
|
6196
|
-
analysis: {
|
|
6197
|
-
dependencies: {
|
|
6198
|
-
name: string;
|
|
6199
|
-
type: "import" | "require" | "include";
|
|
6200
|
-
source: string;
|
|
6201
|
-
target: string;
|
|
6202
|
-
}[];
|
|
6203
|
-
definitions?: undefined;
|
|
6204
|
-
structure?: undefined;
|
|
6205
|
-
};
|
|
6206
|
-
message: string;
|
|
6207
|
-
} | {
|
|
6208
|
-
success: boolean;
|
|
6209
|
-
analysis: {
|
|
6210
|
-
structure: {
|
|
6211
|
-
directories: number;
|
|
6212
|
-
files: number;
|
|
6213
|
-
languages: Record<string, number>;
|
|
6214
|
-
complexity: string;
|
|
6215
|
-
};
|
|
6216
|
-
definitions?: undefined;
|
|
6217
|
-
dependencies?: undefined;
|
|
6218
|
-
};
|
|
6219
|
-
message: string;
|
|
6220
|
-
} | {
|
|
6221
|
-
success: boolean;
|
|
6222
|
-
analysis: {
|
|
6223
|
-
definitions?: undefined;
|
|
6224
|
-
dependencies?: undefined;
|
|
6225
|
-
structure?: undefined;
|
|
6226
|
-
};
|
|
6227
|
-
message: string;
|
|
6228
|
-
}>;
|
|
6229
3269
|
/**
|
|
6230
3270
|
* Perform multiple edits across files atomically
|
|
6231
3271
|
*/
|
|
@@ -6299,27 +3339,6 @@ export declare class AgentBuilderDefaults {
|
|
|
6299
3339
|
message: string;
|
|
6300
3340
|
error: string;
|
|
6301
3341
|
}>;
|
|
6302
|
-
/**
|
|
6303
|
-
* Ask user for clarification
|
|
6304
|
-
*/
|
|
6305
|
-
static askClarification(context: {
|
|
6306
|
-
question: string;
|
|
6307
|
-
options?: Array<{
|
|
6308
|
-
id: string;
|
|
6309
|
-
description: string;
|
|
6310
|
-
implications?: string;
|
|
6311
|
-
}>;
|
|
6312
|
-
context?: string;
|
|
6313
|
-
urgency?: 'low' | 'medium' | 'high';
|
|
6314
|
-
}): Promise<{
|
|
6315
|
-
questionId: string;
|
|
6316
|
-
question: string;
|
|
6317
|
-
options: {
|
|
6318
|
-
id: string;
|
|
6319
|
-
description: string;
|
|
6320
|
-
}[] | undefined;
|
|
6321
|
-
awaitingResponse: boolean;
|
|
6322
|
-
}>;
|
|
6323
3342
|
/**
|
|
6324
3343
|
* Signal task completion
|
|
6325
3344
|
*/
|