zilmate 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/manager.d.ts +187 -0
- package/dist/agents/manager.d.ts.map +1 -1
- package/dist/agents/manager.js +21 -26
- package/dist/agents/manager.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/runtime/confirm.d.ts +1 -1
- package/dist/runtime/confirm.d.ts.map +1 -1
- package/dist/runtime/confirm.js +17 -1
- package/dist/runtime/confirm.js.map +1 -1
- package/dist/tools/desktop.tool.d.ts +70 -0
- package/dist/tools/desktop.tool.d.ts.map +1 -1
- package/dist/tools/desktop.tool.js +192 -16
- package/dist/tools/desktop.tool.js.map +1 -1
- package/dist/tools/filesystem.tool.d.ts +49 -0
- package/dist/tools/filesystem.tool.d.ts.map +1 -1
- package/dist/tools/filesystem.tool.js +97 -0
- package/dist/tools/filesystem.tool.js.map +1 -1
- package/dist/tools/shell.tool.d.ts +91 -0
- package/dist/tools/shell.tool.d.ts.map +1 -0
- package/dist/tools/shell.tool.js +332 -0
- package/dist/tools/shell.tool.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare const shellTools: {
|
|
2
|
+
executeCommand: import("ai").Tool<{
|
|
3
|
+
command: string;
|
|
4
|
+
cwd?: string | undefined;
|
|
5
|
+
timeout?: number | undefined;
|
|
6
|
+
env?: Record<string, string> | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
success: boolean;
|
|
9
|
+
exit: any;
|
|
10
|
+
stdout: any;
|
|
11
|
+
stderr: any;
|
|
12
|
+
command: string;
|
|
13
|
+
}>;
|
|
14
|
+
installDependencies: import("ai").Tool<{
|
|
15
|
+
command: string;
|
|
16
|
+
manager?: "npm" | "pnpm" | "yarn" | undefined;
|
|
17
|
+
cwd?: string | undefined;
|
|
18
|
+
timeout?: number | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
success: boolean;
|
|
21
|
+
exit: any;
|
|
22
|
+
manager: string;
|
|
23
|
+
stdout: any;
|
|
24
|
+
stderr: any;
|
|
25
|
+
}>;
|
|
26
|
+
runPipeline: import("ai").Tool<{
|
|
27
|
+
commands: string[];
|
|
28
|
+
cwd?: string | undefined;
|
|
29
|
+
timeout?: number | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
success: boolean;
|
|
32
|
+
exit: any;
|
|
33
|
+
stdout: any;
|
|
34
|
+
stderr: any;
|
|
35
|
+
pipeline: string;
|
|
36
|
+
}>;
|
|
37
|
+
pythonScript: import("ai").Tool<{
|
|
38
|
+
code: string;
|
|
39
|
+
cwd?: string | undefined;
|
|
40
|
+
timeout?: number | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
success: boolean;
|
|
43
|
+
exit: any;
|
|
44
|
+
stdout: any;
|
|
45
|
+
stderr: any;
|
|
46
|
+
}>;
|
|
47
|
+
getSystemInfo: import("ai").Tool<Record<string, never>, {
|
|
48
|
+
platform: NodeJS.Platform;
|
|
49
|
+
arch: NodeJS.Architecture;
|
|
50
|
+
release: string;
|
|
51
|
+
cpuCores: number;
|
|
52
|
+
totalMemoryGB: string;
|
|
53
|
+
freeMemoryGB: string;
|
|
54
|
+
nodeVersion: string;
|
|
55
|
+
currentUser: string;
|
|
56
|
+
uptime: string;
|
|
57
|
+
homeDir: string;
|
|
58
|
+
} | {
|
|
59
|
+
platform: NodeJS.Platform;
|
|
60
|
+
arch: NodeJS.Architecture;
|
|
61
|
+
error: any;
|
|
62
|
+
}>;
|
|
63
|
+
listProcesses: import("ai").Tool<{
|
|
64
|
+
filter?: string | undefined;
|
|
65
|
+
limit?: number | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
processes: string[];
|
|
68
|
+
count: number;
|
|
69
|
+
filtered: boolean;
|
|
70
|
+
error?: never;
|
|
71
|
+
} | {
|
|
72
|
+
error: any;
|
|
73
|
+
processes: never[];
|
|
74
|
+
count: number;
|
|
75
|
+
filtered?: never;
|
|
76
|
+
}>;
|
|
77
|
+
findInPath: import("ai").Tool<{
|
|
78
|
+
command: string;
|
|
79
|
+
}, {
|
|
80
|
+
found: boolean;
|
|
81
|
+
command: string;
|
|
82
|
+
path: string;
|
|
83
|
+
suggestion?: never;
|
|
84
|
+
} | {
|
|
85
|
+
found: boolean;
|
|
86
|
+
command: string;
|
|
87
|
+
suggestion: string;
|
|
88
|
+
path?: never;
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=shell.tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell.tool.d.ts","sourceRoot":"","sources":["../../src/tools/shell.tool.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwWtB,CAAC"}
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { tool } from 'ai';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { execFile, exec } from 'node:child_process';
|
|
4
|
+
import { promisify } from 'node:util';
|
|
5
|
+
import { emitProgress } from '../runtime/progress.js';
|
|
6
|
+
import { cpus, totalmem, freemem, platform, arch, release } from 'node:os';
|
|
7
|
+
const execFileAsync = promisify(execFile);
|
|
8
|
+
const execAsync = promisify(exec);
|
|
9
|
+
export const shellTools = {
|
|
10
|
+
executeCommand: tool({
|
|
11
|
+
description: 'Execute any shell/PowerShell command. Handles npm, pnpm, yarn, pip, node, python, builds, tests, and any CLI tool. Cross-platform (Windows PowerShell/Unix sh).',
|
|
12
|
+
inputSchema: z.object({
|
|
13
|
+
command: z.string().min(1).describe('Command to run (e.g., "npm install", "python test_suite.py", "pnpm build", "dir", "ls -la")'),
|
|
14
|
+
cwd: z.string().optional().describe('Working directory. Default: current directory'),
|
|
15
|
+
timeout: z.number().int().min(1000).max(1800000).optional().describe('Timeout milliseconds (default: 300000 = 5 min, max: 30 min)'),
|
|
16
|
+
env: z.record(z.string(), z.string()).optional().describe('Environment variables to set (e.g., {DEBUG: "true", NODE_ENV: "production"})'),
|
|
17
|
+
}),
|
|
18
|
+
execute: async ({ command, cwd, timeout, env }) => {
|
|
19
|
+
emitProgress({ type: 'tool:start', label: 'Executing command', detail: command });
|
|
20
|
+
try {
|
|
21
|
+
const shell = process.platform === 'win32' ? 'powershell.exe' : '/bin/sh';
|
|
22
|
+
const args = process.platform === 'win32'
|
|
23
|
+
? ['-NoProfile', '-Command', command]
|
|
24
|
+
: ['-c', command];
|
|
25
|
+
const mergedEnv = env ? { ...process.env, ...env } : process.env;
|
|
26
|
+
const { stdout, stderr } = await execFileAsync(shell, args, {
|
|
27
|
+
cwd: cwd || process.cwd(),
|
|
28
|
+
timeout: timeout ?? 300000,
|
|
29
|
+
maxBuffer: 50 * 1024 * 1024, // 50MB buffer for large outputs
|
|
30
|
+
windowsHide: true,
|
|
31
|
+
env: mergedEnv,
|
|
32
|
+
});
|
|
33
|
+
emitProgress({ type: 'tool:end', label: 'Command executed', detail: command });
|
|
34
|
+
return {
|
|
35
|
+
success: true,
|
|
36
|
+
exit: 0,
|
|
37
|
+
stdout: stdout.trim(),
|
|
38
|
+
stderr: stderr.trim(),
|
|
39
|
+
command,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
const stdout = error.stdout?.toString().trim() ?? '';
|
|
44
|
+
const stderr = error.stderr?.toString().trim() ?? '';
|
|
45
|
+
const exit = error.code ?? 1;
|
|
46
|
+
emitProgress({
|
|
47
|
+
type: 'tool:error',
|
|
48
|
+
label: 'Command failed',
|
|
49
|
+
detail: `Exit ${exit}: ${stderr || 'No error message'}`
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
success: false,
|
|
53
|
+
exit,
|
|
54
|
+
stdout,
|
|
55
|
+
stderr,
|
|
56
|
+
command,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
}),
|
|
61
|
+
installDependencies: tool({
|
|
62
|
+
description: 'Install dependencies using npm, pnpm, or yarn. Auto-detects package manager. Great for "npm install", "pnpm add react", "yarn add --dev typescript".',
|
|
63
|
+
inputSchema: z.object({
|
|
64
|
+
command: z.string().min(1).describe('Install command (e.g., "install", "add react", "add -D typescript")'),
|
|
65
|
+
manager: z.enum(['npm', 'pnpm', 'yarn']).optional().describe('Package manager to use. Auto-detect: pnpm if pnpm-lock.yaml exists, yarn if yarn.lock exists, else npm.'),
|
|
66
|
+
cwd: z.string().optional().describe('Project directory. Default: current directory'),
|
|
67
|
+
timeout: z.number().int().min(5000).max(1800000).optional().describe('Timeout in milliseconds. Default: 600000 (10 minutes)'),
|
|
68
|
+
}),
|
|
69
|
+
execute: async ({ command, manager, cwd, timeout }) => {
|
|
70
|
+
emitProgress({ type: 'tool:start', label: 'Installing dependencies', detail: `${manager || 'auto-detect'} ${command}` });
|
|
71
|
+
try {
|
|
72
|
+
let pm = manager;
|
|
73
|
+
if (!pm) {
|
|
74
|
+
// Auto-detect based on lock files
|
|
75
|
+
const fs = await import('node:fs/promises');
|
|
76
|
+
const path = await import('node:path');
|
|
77
|
+
const workDir = cwd || process.cwd();
|
|
78
|
+
try {
|
|
79
|
+
await fs.access(path.join(workDir, 'pnpm-lock.yaml'));
|
|
80
|
+
pm = 'pnpm';
|
|
81
|
+
}
|
|
82
|
+
catch {
|
|
83
|
+
try {
|
|
84
|
+
await fs.access(path.join(workDir, 'yarn.lock'));
|
|
85
|
+
pm = 'yarn';
|
|
86
|
+
}
|
|
87
|
+
catch {
|
|
88
|
+
pm = 'npm';
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const fullCommand = `${pm} ${command}`;
|
|
93
|
+
const shell = process.platform === 'win32' ? 'powershell.exe' : '/bin/sh';
|
|
94
|
+
const args = process.platform === 'win32'
|
|
95
|
+
? ['-NoProfile', '-Command', fullCommand]
|
|
96
|
+
: ['-c', fullCommand];
|
|
97
|
+
const { stdout, stderr } = await execFileAsync(shell, args, {
|
|
98
|
+
cwd: cwd || process.cwd(),
|
|
99
|
+
timeout: timeout ?? 600000,
|
|
100
|
+
maxBuffer: 50 * 1024 * 1024,
|
|
101
|
+
windowsHide: true,
|
|
102
|
+
});
|
|
103
|
+
emitProgress({ type: 'tool:end', label: 'Dependencies installed', detail: `${pm} ${command}` });
|
|
104
|
+
return {
|
|
105
|
+
success: true,
|
|
106
|
+
exit: 0,
|
|
107
|
+
manager: pm,
|
|
108
|
+
stdout: stdout.trim(),
|
|
109
|
+
stderr: stderr.trim(),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
const stdout = error.stdout?.toString().trim() ?? '';
|
|
114
|
+
const stderr = error.stderr?.toString().trim() ?? '';
|
|
115
|
+
const exit = error.code ?? 1;
|
|
116
|
+
emitProgress({
|
|
117
|
+
type: 'tool:error',
|
|
118
|
+
label: 'Install failed',
|
|
119
|
+
detail: `Exit ${exit}`
|
|
120
|
+
});
|
|
121
|
+
return {
|
|
122
|
+
success: false,
|
|
123
|
+
exit,
|
|
124
|
+
manager: manager || 'auto',
|
|
125
|
+
stdout,
|
|
126
|
+
stderr,
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
}),
|
|
131
|
+
runPipeline: tool({
|
|
132
|
+
description: 'Run piped/chained commands (cmd1 | cmd2 | cmd3). Execute command pipelines, filters, and chains for complex CLI operations.',
|
|
133
|
+
inputSchema: z.object({
|
|
134
|
+
commands: z.array(z.string()).min(2).describe('Array of commands to pipe together (e.g., ["find . -type f", "grep test", "wc -l"])'),
|
|
135
|
+
cwd: z.string().optional().describe('Working directory'),
|
|
136
|
+
timeout: z.number().int().min(1000).max(600000).optional().describe('Timeout in milliseconds (default: 300000)'),
|
|
137
|
+
}),
|
|
138
|
+
execute: async ({ commands, cwd, timeout }) => {
|
|
139
|
+
const pipelineStr = commands.join(' | ');
|
|
140
|
+
emitProgress({ type: 'tool:start', label: 'Running pipeline', detail: pipelineStr });
|
|
141
|
+
try {
|
|
142
|
+
const shell = process.platform === 'win32' ? 'powershell.exe' : '/bin/sh';
|
|
143
|
+
const args = process.platform === 'win32'
|
|
144
|
+
? ['-NoProfile', '-Command', pipelineStr]
|
|
145
|
+
: ['-c', pipelineStr];
|
|
146
|
+
const { stdout, stderr } = await execFileAsync(shell, args, {
|
|
147
|
+
cwd: cwd || process.cwd(),
|
|
148
|
+
timeout: timeout ?? 300000,
|
|
149
|
+
maxBuffer: 50 * 1024 * 1024,
|
|
150
|
+
windowsHide: true,
|
|
151
|
+
});
|
|
152
|
+
emitProgress({ type: 'tool:end', label: 'Pipeline completed' });
|
|
153
|
+
return {
|
|
154
|
+
success: true,
|
|
155
|
+
exit: 0,
|
|
156
|
+
stdout: stdout.trim(),
|
|
157
|
+
stderr: stderr.trim(),
|
|
158
|
+
pipeline: pipelineStr,
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
catch (error) {
|
|
162
|
+
const stdout = error.stdout?.toString().trim() ?? '';
|
|
163
|
+
const stderr = error.stderr?.toString().trim() ?? '';
|
|
164
|
+
const exit = error.code ?? 1;
|
|
165
|
+
emitProgress({
|
|
166
|
+
type: 'tool:error',
|
|
167
|
+
label: 'Pipeline failed',
|
|
168
|
+
detail: `Exit ${exit}`
|
|
169
|
+
});
|
|
170
|
+
return {
|
|
171
|
+
success: false,
|
|
172
|
+
exit,
|
|
173
|
+
stdout,
|
|
174
|
+
stderr,
|
|
175
|
+
pipeline: pipelineStr,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
}),
|
|
180
|
+
pythonScript: tool({
|
|
181
|
+
description: 'Execute Python code or scripts. Perfect for testing, data processing, running test suites, or any Python automation.',
|
|
182
|
+
inputSchema: z.object({
|
|
183
|
+
code: z.string().min(1).describe('Python code (e.g., "print(\'hello\')" or multi-line script)'),
|
|
184
|
+
cwd: z.string().optional().describe('Working directory'),
|
|
185
|
+
timeout: z.number().int().min(1000).max(600000).optional().describe('Timeout in milliseconds (default: 300000)'),
|
|
186
|
+
}),
|
|
187
|
+
execute: async ({ code, cwd, timeout }) => {
|
|
188
|
+
emitProgress({ type: 'tool:start', label: 'Running Python', detail: code.slice(0, 50) });
|
|
189
|
+
try {
|
|
190
|
+
const { stdout, stderr } = await execFileAsync('python', ['-c', code], {
|
|
191
|
+
cwd: cwd || process.cwd(),
|
|
192
|
+
timeout: timeout ?? 300000,
|
|
193
|
+
maxBuffer: 50 * 1024 * 1024,
|
|
194
|
+
windowsHide: true,
|
|
195
|
+
});
|
|
196
|
+
emitProgress({ type: 'tool:end', label: 'Python executed successfully' });
|
|
197
|
+
return {
|
|
198
|
+
success: true,
|
|
199
|
+
exit: 0,
|
|
200
|
+
stdout: stdout.trim(),
|
|
201
|
+
stderr: stderr.trim(),
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
catch (error) {
|
|
205
|
+
const stdout = error.stdout?.toString().trim() ?? '';
|
|
206
|
+
const stderr = error.stderr?.toString().trim() ?? '';
|
|
207
|
+
const exit = error.code ?? 1;
|
|
208
|
+
emitProgress({
|
|
209
|
+
type: 'tool:error',
|
|
210
|
+
label: 'Python failed',
|
|
211
|
+
detail: stderr || 'Execution error'
|
|
212
|
+
});
|
|
213
|
+
return {
|
|
214
|
+
success: false,
|
|
215
|
+
exit,
|
|
216
|
+
stdout,
|
|
217
|
+
stderr,
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
}),
|
|
222
|
+
getSystemInfo: tool({
|
|
223
|
+
description: 'Get detailed system information: CPU cores, memory, OS, architecture, node version, current user, uptime.',
|
|
224
|
+
inputSchema: z.object({}),
|
|
225
|
+
execute: async () => {
|
|
226
|
+
emitProgress({ type: 'tool:start', label: 'Fetching system info' });
|
|
227
|
+
try {
|
|
228
|
+
const os = await import('node:os');
|
|
229
|
+
const { execSync } = await import('node:child_process');
|
|
230
|
+
let currentUser = 'unknown';
|
|
231
|
+
try {
|
|
232
|
+
currentUser = process.platform === 'win32'
|
|
233
|
+
? (execSync('whoami', { encoding: 'utf-8', windowsHide: true }).trim().split('\\').pop() || 'unknown')
|
|
234
|
+
: (execSync('whoami', { encoding: 'utf-8' }).trim());
|
|
235
|
+
}
|
|
236
|
+
catch {
|
|
237
|
+
// Fallback
|
|
238
|
+
}
|
|
239
|
+
const systemInfo = {
|
|
240
|
+
platform: platform(),
|
|
241
|
+
arch: arch(),
|
|
242
|
+
release: release(),
|
|
243
|
+
cpuCores: cpus().length,
|
|
244
|
+
totalMemoryGB: (totalmem() / (1024 ** 3)).toFixed(2),
|
|
245
|
+
freeMemoryGB: (freemem() / (1024 ** 3)).toFixed(2),
|
|
246
|
+
nodeVersion: process.version,
|
|
247
|
+
currentUser,
|
|
248
|
+
uptime: `${Math.floor(os.uptime() / 3600)} hours`,
|
|
249
|
+
homeDir: os.homedir(),
|
|
250
|
+
};
|
|
251
|
+
emitProgress({ type: 'tool:end', label: 'System info retrieved' });
|
|
252
|
+
return systemInfo;
|
|
253
|
+
}
|
|
254
|
+
catch (error) {
|
|
255
|
+
return {
|
|
256
|
+
platform: platform(),
|
|
257
|
+
arch: arch(),
|
|
258
|
+
error: error.message,
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
}),
|
|
263
|
+
listProcesses: tool({
|
|
264
|
+
description: 'List running processes (Windows: tasklist, Unix: ps aux). Filter by name if needed.',
|
|
265
|
+
inputSchema: z.object({
|
|
266
|
+
filter: z.string().optional().describe('Filter processes by name (partial match, case-insensitive)'),
|
|
267
|
+
limit: z.number().int().min(1).max(500).optional().describe('Max processes to return (default: 100)'),
|
|
268
|
+
}),
|
|
269
|
+
execute: async ({ filter, limit }) => {
|
|
270
|
+
emitProgress({ type: 'tool:start', label: 'Listing processes' });
|
|
271
|
+
try {
|
|
272
|
+
let command = process.platform === 'win32'
|
|
273
|
+
? 'tasklist /FO CSV /V'
|
|
274
|
+
: 'ps aux';
|
|
275
|
+
const { stdout } = await execFileAsync(process.platform === 'win32' ? 'tasklist' : 'ps', process.platform === 'win32' ? ['/FO', 'CSV', '/V'] : ['aux'], { timeout: 10000, maxBuffer: 10 * 1024 * 1024 });
|
|
276
|
+
const lines = stdout.trim().split('\n');
|
|
277
|
+
const maxResults = limit ?? 100;
|
|
278
|
+
let processes = lines.slice(0, maxResults);
|
|
279
|
+
if (filter) {
|
|
280
|
+
const lowerFilter = filter.toLowerCase();
|
|
281
|
+
processes = processes.filter(line => line.toLowerCase().includes(lowerFilter));
|
|
282
|
+
}
|
|
283
|
+
emitProgress({ type: 'tool:end', label: `Found ${processes.length} processes` });
|
|
284
|
+
return {
|
|
285
|
+
processes: processes.slice(0, maxResults),
|
|
286
|
+
count: processes.length,
|
|
287
|
+
filtered: !!filter,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
catch (error) {
|
|
291
|
+
emitProgress({ type: 'tool:error', label: 'Failed to list processes', detail: error.message });
|
|
292
|
+
return {
|
|
293
|
+
error: error.message,
|
|
294
|
+
processes: [],
|
|
295
|
+
count: 0,
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
}),
|
|
300
|
+
findInPath: tool({
|
|
301
|
+
description: 'Find or check if a command/executable exists in system PATH. Useful to verify if node, python, npm, pnpm, etc. are installed.',
|
|
302
|
+
inputSchema: z.object({
|
|
303
|
+
command: z.string().min(1).describe('Command name to find (e.g., "python", "npm", "git", "node")'),
|
|
304
|
+
}),
|
|
305
|
+
execute: async ({ command }) => {
|
|
306
|
+
emitProgress({ type: 'tool:start', label: 'Searching PATH', detail: command });
|
|
307
|
+
try {
|
|
308
|
+
const probe = process.platform === 'win32' ? 'where.exe' : 'which';
|
|
309
|
+
const { stdout } = await execFileAsync(probe, [command], {
|
|
310
|
+
windowsHide: true,
|
|
311
|
+
timeout: 5000
|
|
312
|
+
});
|
|
313
|
+
const foundPath = stdout.trim().split('\n')[0] || '';
|
|
314
|
+
emitProgress({ type: 'tool:end', label: 'Found in PATH', detail: foundPath || command });
|
|
315
|
+
return {
|
|
316
|
+
found: true,
|
|
317
|
+
command,
|
|
318
|
+
path: foundPath,
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
catch (error) {
|
|
322
|
+
emitProgress({ type: 'tool:error', label: 'Command not found', detail: command });
|
|
323
|
+
return {
|
|
324
|
+
found: false,
|
|
325
|
+
command,
|
|
326
|
+
suggestion: `Install ${command} or add it to PATH`,
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
}),
|
|
331
|
+
};
|
|
332
|
+
//# sourceMappingURL=shell.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell.tool.js","sourceRoot":"","sources":["../../src/tools/shell.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE3E,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAC1C,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;AAElC,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,cAAc,EAAE,IAAI,CAAC;QACnB,WAAW,EAAE,iKAAiK;QAC9K,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC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