@crewx/sdk 0.8.0-rc.69 → 0.8.0-rc.70
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/LICENSE +201 -201
- package/README.md +1022 -1022
- package/dist/core/providers/base-ai.provider.js +10 -10
- package/dist/services/layout-renderer.service.js +16 -16
- package/dist/tools/find.tool.d.ts +1 -65
- package/dist/tools/glob.tool.d.ts +1 -77
- package/dist/tools/grep.tool.d.ts +1 -30
- package/dist/tools/ls.tool.d.ts +1 -24
- package/dist/tools/read-file.tool.d.ts +1 -30
- package/dist/tools/replace.tool.d.ts +1 -36
- package/dist/tools/run-shell-command.tool.d.ts +1 -24
- package/dist/tools/tree.tool.d.ts +1 -24
- package/dist/tools/write-file.tool.d.ts +1 -24
- package/package.json +135 -135
- package/schema/api-provider-config.json +138 -138
- package/schema/crewx-config.json +224 -224
- package/schema/skills-config.json +306 -306
|
@@ -498,9 +498,9 @@ class BaseAIProvider {
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
wrapUserQueryWithSecurity(userQuery, securityKey) {
|
|
501
|
-
return `
|
|
502
|
-
<user_query key="${securityKey}">
|
|
503
|
-
${userQuery}
|
|
501
|
+
return `
|
|
502
|
+
<user_query key="${securityKey}">
|
|
503
|
+
${userQuery}
|
|
504
504
|
</user_query>`;
|
|
505
505
|
}
|
|
506
506
|
extractUserQuery(wrappedQuery, securityKey) {
|
|
@@ -525,13 +525,13 @@ ${userQuery}
|
|
|
525
525
|
const logFile = (0, path_1.join)(this.logsDir, `${ts}_${safeTaskId}.log`);
|
|
526
526
|
const safeAgentId = agentId ? agentId.replace(/[\\/]/g, '_') : 'N/A';
|
|
527
527
|
const timestamp = now.toLocaleString();
|
|
528
|
-
const header = `=== TASK LOG: ${taskId} ===
|
|
529
|
-
CrewX Version: ${this.crewxVersion}
|
|
530
|
-
Provider: ${provider}
|
|
531
|
-
Agent: ${safeAgentId}
|
|
532
|
-
${model ? `Model: ${model}\n` : ''}Command: ${command}
|
|
533
|
-
Started: ${timestamp}
|
|
534
|
-
|
|
528
|
+
const header = `=== TASK LOG: ${taskId} ===
|
|
529
|
+
CrewX Version: ${this.crewxVersion}
|
|
530
|
+
Provider: ${provider}
|
|
531
|
+
Agent: ${safeAgentId}
|
|
532
|
+
${model ? `Model: ${model}\n` : ''}Command: ${command}
|
|
533
|
+
Started: ${timestamp}
|
|
534
|
+
|
|
535
535
|
`;
|
|
536
536
|
(0, fs_1.writeFileSync)(logFile, header, 'utf8');
|
|
537
537
|
return logFile;
|
|
@@ -147,22 +147,22 @@ class LayoutRenderer {
|
|
|
147
147
|
catch {
|
|
148
148
|
}
|
|
149
149
|
if (!templateContent) {
|
|
150
|
-
templateContent = `{{#if messages}}
|
|
151
|
-
{{#if primaryAgentId}}Primary agent: @{{primaryAgentId}}
|
|
152
|
-
{{else}}Primary agent: (unknown)
|
|
153
|
-
{{/if}}
|
|
154
|
-
Previous conversation ({{messagesCount}} messages):
|
|
155
|
-
{{#each messages}}
|
|
156
|
-
{{#if isAssistant}}
|
|
157
|
-
**Assistant{{#if metadata.agent_id}} (@{{metadata.agent_id}}){{/if}}**
|
|
158
|
-
{{else}}
|
|
159
|
-
**{{#if metadata.slack}}{{#with metadata.slack}}{{#if user_profile.display_name}}{{user_profile.display_name}}{{else if username}}{{username}}{{else if user_id}}User ({{user_id}}){{else}}User{{/if}}{{/with}}{{else}}User{{/if}}**
|
|
160
|
-
{{/if}}: {{{escapeHandlebars text}}}
|
|
161
|
-
{{#if files}}
|
|
162
|
-
{{#each files}}
|
|
163
|
-
📎 {{name}} ({{formatFileSize size}}) - Local: {{localPath}}
|
|
164
|
-
{{/each}}
|
|
165
|
-
{{/if}}
|
|
150
|
+
templateContent = `{{#if messages}}
|
|
151
|
+
{{#if primaryAgentId}}Primary agent: @{{primaryAgentId}}
|
|
152
|
+
{{else}}Primary agent: (unknown)
|
|
153
|
+
{{/if}}
|
|
154
|
+
Previous conversation ({{messagesCount}} messages):
|
|
155
|
+
{{#each messages}}
|
|
156
|
+
{{#if isAssistant}}
|
|
157
|
+
**Assistant{{#if metadata.agent_id}} (@{{metadata.agent_id}}){{/if}}**
|
|
158
|
+
{{else}}
|
|
159
|
+
**{{#if metadata.slack}}{{#with metadata.slack}}{{#if user_profile.display_name}}{{user_profile.display_name}}{{else if username}}{{username}}{{else if user_id}}User ({{user_id}}){{else}}User{{/if}}{{/with}}{{else}}User{{/if}}**
|
|
160
|
+
{{/if}}: {{{escapeHandlebars text}}}
|
|
161
|
+
{{#if files}}
|
|
162
|
+
{{#each files}}
|
|
163
|
+
📎 {{name}} ({{formatFileSize size}}) - Local: {{localPath}}
|
|
164
|
+
{{/each}}
|
|
165
|
+
{{/if}}
|
|
166
166
|
{{/each}}{{/if}}`;
|
|
167
167
|
}
|
|
168
168
|
const template = handlebarsInstance.compile(templateContent, { noEscape: true });
|
|
@@ -18,68 +18,4 @@ export declare const findToolInputSchema: z.ZodObject<{
|
|
|
18
18
|
export declare const findToolOutputSchema: z.ZodString;
|
|
19
19
|
export type FindToolInput = z.infer<typeof findToolInputSchema>;
|
|
20
20
|
export type FindToolOutput = z.infer<typeof findToolOutputSchema>;
|
|
21
|
-
export declare const findTool:
|
|
22
|
-
pattern: z.ZodString;
|
|
23
|
-
dir_path: z.ZodOptional<z.ZodString>;
|
|
24
|
-
case_sensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
25
|
-
max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
pattern: string;
|
|
28
|
-
case_sensitive: boolean;
|
|
29
|
-
max_results: number;
|
|
30
|
-
dir_path?: string | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
pattern: string;
|
|
33
|
-
dir_path?: string | undefined;
|
|
34
|
-
case_sensitive?: boolean | undefined;
|
|
35
|
-
max_results?: number | undefined;
|
|
36
|
-
}>, z.ZodString, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
37
|
-
pattern: z.ZodString;
|
|
38
|
-
dir_path: z.ZodOptional<z.ZodString>;
|
|
39
|
-
case_sensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
40
|
-
max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
pattern: string;
|
|
43
|
-
case_sensitive: boolean;
|
|
44
|
-
max_results: number;
|
|
45
|
-
dir_path?: string | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
pattern: string;
|
|
48
|
-
dir_path?: string | undefined;
|
|
49
|
-
case_sensitive?: boolean | undefined;
|
|
50
|
-
max_results?: number | undefined;
|
|
51
|
-
}>, any, any>> & {
|
|
52
|
-
inputSchema: z.ZodObject<{
|
|
53
|
-
pattern: z.ZodString;
|
|
54
|
-
dir_path: z.ZodOptional<z.ZodString>;
|
|
55
|
-
case_sensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
56
|
-
max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
57
|
-
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
pattern: string;
|
|
59
|
-
case_sensitive: boolean;
|
|
60
|
-
max_results: number;
|
|
61
|
-
dir_path?: string | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
pattern: string;
|
|
64
|
-
dir_path?: string | undefined;
|
|
65
|
-
case_sensitive?: boolean | undefined;
|
|
66
|
-
max_results?: number | undefined;
|
|
67
|
-
}>;
|
|
68
|
-
outputSchema: z.ZodString;
|
|
69
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
70
|
-
pattern: z.ZodString;
|
|
71
|
-
dir_path: z.ZodOptional<z.ZodString>;
|
|
72
|
-
case_sensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
73
|
-
max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
74
|
-
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
pattern: string;
|
|
76
|
-
case_sensitive: boolean;
|
|
77
|
-
max_results: number;
|
|
78
|
-
dir_path?: string | undefined;
|
|
79
|
-
}, {
|
|
80
|
-
pattern: string;
|
|
81
|
-
dir_path?: string | undefined;
|
|
82
|
-
case_sensitive?: boolean | undefined;
|
|
83
|
-
max_results?: number | undefined;
|
|
84
|
-
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
85
|
-
};
|
|
21
|
+
export declare const findTool: any;
|
|
@@ -21,80 +21,4 @@ export declare const globToolInputSchema: z.ZodObject<{
|
|
|
21
21
|
export declare const globToolOutputSchema: z.ZodString;
|
|
22
22
|
export type GlobToolInput = z.infer<typeof globToolInputSchema>;
|
|
23
23
|
export type GlobToolOutput = z.infer<typeof globToolOutputSchema>;
|
|
24
|
-
export declare const globTool:
|
|
25
|
-
pattern: z.ZodString;
|
|
26
|
-
dir_path: z.ZodOptional<z.ZodString>;
|
|
27
|
-
case_sensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
28
|
-
respect_git_ignore: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
29
|
-
max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
30
|
-
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
pattern: string;
|
|
32
|
-
case_sensitive: boolean;
|
|
33
|
-
max_results: number;
|
|
34
|
-
respect_git_ignore: boolean;
|
|
35
|
-
dir_path?: string | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
pattern: string;
|
|
38
|
-
dir_path?: string | undefined;
|
|
39
|
-
case_sensitive?: boolean | undefined;
|
|
40
|
-
max_results?: number | undefined;
|
|
41
|
-
respect_git_ignore?: boolean | undefined;
|
|
42
|
-
}>, z.ZodString, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
43
|
-
pattern: z.ZodString;
|
|
44
|
-
dir_path: z.ZodOptional<z.ZodString>;
|
|
45
|
-
case_sensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
46
|
-
respect_git_ignore: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
47
|
-
max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
pattern: string;
|
|
50
|
-
case_sensitive: boolean;
|
|
51
|
-
max_results: number;
|
|
52
|
-
respect_git_ignore: boolean;
|
|
53
|
-
dir_path?: string | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
pattern: string;
|
|
56
|
-
dir_path?: string | undefined;
|
|
57
|
-
case_sensitive?: boolean | undefined;
|
|
58
|
-
max_results?: number | undefined;
|
|
59
|
-
respect_git_ignore?: boolean | undefined;
|
|
60
|
-
}>, any, any>> & {
|
|
61
|
-
inputSchema: z.ZodObject<{
|
|
62
|
-
pattern: z.ZodString;
|
|
63
|
-
dir_path: z.ZodOptional<z.ZodString>;
|
|
64
|
-
case_sensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
65
|
-
respect_git_ignore: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
66
|
-
max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
pattern: string;
|
|
69
|
-
case_sensitive: boolean;
|
|
70
|
-
max_results: number;
|
|
71
|
-
respect_git_ignore: boolean;
|
|
72
|
-
dir_path?: string | undefined;
|
|
73
|
-
}, {
|
|
74
|
-
pattern: string;
|
|
75
|
-
dir_path?: string | undefined;
|
|
76
|
-
case_sensitive?: boolean | undefined;
|
|
77
|
-
max_results?: number | undefined;
|
|
78
|
-
respect_git_ignore?: boolean | undefined;
|
|
79
|
-
}>;
|
|
80
|
-
outputSchema: z.ZodString;
|
|
81
|
-
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
82
|
-
pattern: z.ZodString;
|
|
83
|
-
dir_path: z.ZodOptional<z.ZodString>;
|
|
84
|
-
case_sensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
85
|
-
respect_git_ignore: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
86
|
-
max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
pattern: string;
|
|
89
|
-
case_sensitive: boolean;
|
|
90
|
-
max_results: number;
|
|
91
|
-
respect_git_ignore: boolean;
|
|
92
|
-
dir_path?: string | undefined;
|
|
93
|
-
}, {
|
|
94
|
-
pattern: string;
|
|
95
|
-
dir_path?: string | undefined;
|
|
96
|
-
case_sensitive?: boolean | undefined;
|
|
97
|
-
max_results?: number | undefined;
|
|
98
|
-
respect_git_ignore?: boolean | undefined;
|
|
99
|
-
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
100
|
-
};
|
|
24
|
+
export declare const globTool: any;
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const grepTool: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3
|
-
pattern: z.ZodString;
|
|
4
|
-
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
5
|
-
recursive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
path: string;
|
|
8
|
-
pattern: string;
|
|
9
|
-
recursive: boolean;
|
|
10
|
-
}, {
|
|
11
|
-
pattern: string;
|
|
12
|
-
path?: string | undefined;
|
|
13
|
-
recursive?: boolean | undefined;
|
|
14
|
-
}>, z.ZodString, any, any, any> & {
|
|
15
|
-
inputSchema: z.ZodObject<{
|
|
16
|
-
pattern: z.ZodString;
|
|
17
|
-
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
18
|
-
recursive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
path: string;
|
|
21
|
-
pattern: string;
|
|
22
|
-
recursive: boolean;
|
|
23
|
-
}, {
|
|
24
|
-
pattern: string;
|
|
25
|
-
path?: string | undefined;
|
|
26
|
-
recursive?: boolean | undefined;
|
|
27
|
-
}>;
|
|
28
|
-
outputSchema: z.ZodString;
|
|
29
|
-
execute: (context: any, options: import("@mastra/core/tools").MastraToolInvocationOptions) => Promise<any>;
|
|
30
|
-
};
|
|
1
|
+
export declare const grepTool: any;
|
package/dist/tools/ls.tool.d.ts
CHANGED
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const lsTool: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3
|
-
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
4
|
-
recursive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
path: string;
|
|
7
|
-
recursive: boolean;
|
|
8
|
-
}, {
|
|
9
|
-
path?: string | undefined;
|
|
10
|
-
recursive?: boolean | undefined;
|
|
11
|
-
}>, z.ZodString, any, any, any> & {
|
|
12
|
-
inputSchema: z.ZodObject<{
|
|
13
|
-
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14
|
-
recursive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
path: string;
|
|
17
|
-
recursive: boolean;
|
|
18
|
-
}, {
|
|
19
|
-
path?: string | undefined;
|
|
20
|
-
recursive?: boolean | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
outputSchema: z.ZodString;
|
|
23
|
-
execute: (context: any, options: import("@mastra/core/tools").MastraToolInvocationOptions) => Promise<any>;
|
|
24
|
-
};
|
|
1
|
+
export declare const lsTool: any;
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const readFileTool: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3
|
-
file_path: z.ZodString;
|
|
4
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
5
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
file_path: string;
|
|
8
|
-
offset?: number | undefined;
|
|
9
|
-
limit?: number | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
file_path: string;
|
|
12
|
-
offset?: number | undefined;
|
|
13
|
-
limit?: number | undefined;
|
|
14
|
-
}>, z.ZodString, any, any, any> & {
|
|
15
|
-
inputSchema: z.ZodObject<{
|
|
16
|
-
file_path: z.ZodString;
|
|
17
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
file_path: string;
|
|
21
|
-
offset?: number | undefined;
|
|
22
|
-
limit?: number | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
file_path: string;
|
|
25
|
-
offset?: number | undefined;
|
|
26
|
-
limit?: number | undefined;
|
|
27
|
-
}>;
|
|
28
|
-
outputSchema: z.ZodString;
|
|
29
|
-
execute: (context: any, options: import("@mastra/core/tools").MastraToolInvocationOptions) => Promise<any>;
|
|
30
|
-
};
|
|
1
|
+
export declare const readFileTool: any;
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const replaceTool: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3
|
-
file_path: z.ZodString;
|
|
4
|
-
start_line: z.ZodNumber;
|
|
5
|
-
end_line: z.ZodNumber;
|
|
6
|
-
new_text: z.ZodString;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
file_path: string;
|
|
9
|
-
start_line: number;
|
|
10
|
-
end_line: number;
|
|
11
|
-
new_text: string;
|
|
12
|
-
}, {
|
|
13
|
-
file_path: string;
|
|
14
|
-
start_line: number;
|
|
15
|
-
end_line: number;
|
|
16
|
-
new_text: string;
|
|
17
|
-
}>, z.ZodString, any, any, any> & {
|
|
18
|
-
inputSchema: z.ZodObject<{
|
|
19
|
-
file_path: z.ZodString;
|
|
20
|
-
start_line: z.ZodNumber;
|
|
21
|
-
end_line: z.ZodNumber;
|
|
22
|
-
new_text: z.ZodString;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
file_path: string;
|
|
25
|
-
start_line: number;
|
|
26
|
-
end_line: number;
|
|
27
|
-
new_text: string;
|
|
28
|
-
}, {
|
|
29
|
-
file_path: string;
|
|
30
|
-
start_line: number;
|
|
31
|
-
end_line: number;
|
|
32
|
-
new_text: string;
|
|
33
|
-
}>;
|
|
34
|
-
outputSchema: z.ZodString;
|
|
35
|
-
execute: (context: any, options: import("@mastra/core/tools").MastraToolInvocationOptions) => Promise<any>;
|
|
36
|
-
};
|
|
1
|
+
export declare const replaceTool: any;
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const runShellCommandTool: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3
|
-
command: z.ZodString;
|
|
4
|
-
timeout_seconds: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
command: string;
|
|
7
|
-
timeout_seconds: number;
|
|
8
|
-
}, {
|
|
9
|
-
command: string;
|
|
10
|
-
timeout_seconds?: number | undefined;
|
|
11
|
-
}>, z.ZodString, any, any, any> & {
|
|
12
|
-
inputSchema: z.ZodObject<{
|
|
13
|
-
command: z.ZodString;
|
|
14
|
-
timeout_seconds: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
command: string;
|
|
17
|
-
timeout_seconds: number;
|
|
18
|
-
}, {
|
|
19
|
-
command: string;
|
|
20
|
-
timeout_seconds?: number | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
outputSchema: z.ZodString;
|
|
23
|
-
execute: (context: any, options: import("@mastra/core/tools").MastraToolInvocationOptions) => Promise<any>;
|
|
24
|
-
};
|
|
1
|
+
export declare const runShellCommandTool: any;
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const treeTool: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3
|
-
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
4
|
-
max_depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
path: string;
|
|
7
|
-
max_depth: number;
|
|
8
|
-
}, {
|
|
9
|
-
path?: string | undefined;
|
|
10
|
-
max_depth?: number | undefined;
|
|
11
|
-
}>, z.ZodString, any, any, any> & {
|
|
12
|
-
inputSchema: z.ZodObject<{
|
|
13
|
-
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14
|
-
max_depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
path: string;
|
|
17
|
-
max_depth: number;
|
|
18
|
-
}, {
|
|
19
|
-
path?: string | undefined;
|
|
20
|
-
max_depth?: number | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
outputSchema: z.ZodString;
|
|
23
|
-
execute: (context: any, options: import("@mastra/core/tools").MastraToolInvocationOptions) => Promise<any>;
|
|
24
|
-
};
|
|
1
|
+
export declare const treeTool: any;
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const writeFileTool: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3
|
-
file_path: z.ZodString;
|
|
4
|
-
content: z.ZodString;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
content: string;
|
|
7
|
-
file_path: string;
|
|
8
|
-
}, {
|
|
9
|
-
content: string;
|
|
10
|
-
file_path: string;
|
|
11
|
-
}>, z.ZodString, any, any, any> & {
|
|
12
|
-
inputSchema: z.ZodObject<{
|
|
13
|
-
file_path: z.ZodString;
|
|
14
|
-
content: z.ZodString;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
content: string;
|
|
17
|
-
file_path: string;
|
|
18
|
-
}, {
|
|
19
|
-
content: string;
|
|
20
|
-
file_path: string;
|
|
21
|
-
}>;
|
|
22
|
-
outputSchema: z.ZodString;
|
|
23
|
-
execute: (context: any, options: import("@mastra/core/tools").MastraToolInvocationOptions) => Promise<any>;
|
|
24
|
-
};
|
|
1
|
+
export declare const writeFileTool: any;
|