ai-agent-test 0.1.10 → 0.2.0
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/tools/bash.d.ts +4 -12
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/bash.js +78 -19
- package/dist/tools/bash.js.map +1 -1
- package/dist/tools/compilation_check.d.ts +3 -3
- package/dist/tools/compilation_check.d.ts.map +1 -1
- package/dist/tools/compilation_check.js +8 -5
- package/dist/tools/compilation_check.js.map +1 -1
- package/dist/tools/index.d.ts +7 -15
- package/dist/tools/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/tools/bash.d.ts
CHANGED
|
@@ -3,19 +3,11 @@ export declare const bashTool: {
|
|
|
3
3
|
description: string;
|
|
4
4
|
inputSchema: z.ZodObject<{
|
|
5
5
|
command: z.ZodString;
|
|
6
|
+
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
6
7
|
}, z.core.$strip>;
|
|
7
|
-
execute: ({ command }: {
|
|
8
|
+
execute: ({ command, timeout, }: {
|
|
8
9
|
command: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
output: string;
|
|
12
|
-
error?: never;
|
|
13
|
-
stderr?: never;
|
|
14
|
-
} | {
|
|
15
|
-
success: boolean;
|
|
16
|
-
error: any;
|
|
17
|
-
stderr: any;
|
|
18
|
-
output?: never;
|
|
19
|
-
}>;
|
|
10
|
+
timeout?: number;
|
|
11
|
+
}) => Promise<unknown>;
|
|
20
12
|
};
|
|
21
13
|
//# sourceMappingURL=bash.d.ts.map
|
package/dist/tools/bash.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,QAAQ;;;;;;qCAgBhB;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CAyGF,CAAC"}
|
package/dist/tools/bash.js
CHANGED
|
@@ -1,31 +1,90 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { spawn } from "child_process";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
export const bashTool = {
|
|
5
5
|
description: "Execute a bash command and return its output. This should be useful to find which files to read when exploring the codebase, find variables, and run CLI tools or bash commands.",
|
|
6
6
|
inputSchema: z.object({
|
|
7
7
|
command: z.string().describe("The bash command to execute"),
|
|
8
|
+
timeout: z
|
|
9
|
+
.number()
|
|
10
|
+
.optional()
|
|
11
|
+
.default(10)
|
|
12
|
+
.describe("Timeout in seconds for the command execution (default: 10). Set to null or 0 for no timeout."),
|
|
8
13
|
}),
|
|
9
|
-
execute: async ({ command }) => {
|
|
10
|
-
console.log(chalk.yellow(`\n[tool calling - bash] Executing command: ${command}`));
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
stdio: "pipe",
|
|
14
|
+
execute: async ({ command, timeout, }) => {
|
|
15
|
+
console.log(chalk.yellow(`\n[tool calling - bash] Executing command (timeout: ${timeout}s): ${command}`));
|
|
16
|
+
return new Promise((resolve) => {
|
|
17
|
+
const process = spawn("bash", ["-c", command], {
|
|
18
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
15
19
|
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
let isResolved = false;
|
|
21
|
+
const markResolved = () => {
|
|
22
|
+
if (!isResolved) {
|
|
23
|
+
isResolved = true;
|
|
24
|
+
}
|
|
19
25
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
|
|
26
|
+
let output = "";
|
|
27
|
+
let stderrOutput = "";
|
|
28
|
+
process.stdout.on("data", (data) => {
|
|
29
|
+
output += data.toString();
|
|
30
|
+
});
|
|
31
|
+
process.stderr.on("data", (data) => {
|
|
32
|
+
stderrOutput += data.toString();
|
|
33
|
+
});
|
|
34
|
+
process.on("close", (code) => {
|
|
35
|
+
markResolved();
|
|
36
|
+
if (code === 0) {
|
|
37
|
+
// Print first 2 lines of output for visibility
|
|
38
|
+
const lines = output.trim().split("\n");
|
|
39
|
+
if (lines.length > 0) {
|
|
40
|
+
console.log(chalk.green(`[tool calling - bash] Output preview: ${lines[0]}...`));
|
|
41
|
+
if (lines.length > 1) {
|
|
42
|
+
console.log(chalk.green(`[tool calling - bash] ${lines[1]}...`));
|
|
43
|
+
if (lines.length > 2) {
|
|
44
|
+
console.log(chalk.green(`[tool calling - bash] and ${lines.length - 2} more line(s)`));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
resolve({
|
|
49
|
+
success: true,
|
|
50
|
+
output: `result: ${output}\n\nPrint this output as they are`,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
console.error(chalk.red(`[tool calling - bash] ⚠️ Command failed with code ${code}`));
|
|
55
|
+
resolve({
|
|
56
|
+
success: false,
|
|
57
|
+
error: `Command failed with code ${code}`,
|
|
58
|
+
stderr: stderrOutput || undefined,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
process.on("error", (error) => {
|
|
63
|
+
markResolved();
|
|
64
|
+
console.error(chalk.red(`[tool calling - bash] ⚠️ Command failed: ${error.message}`));
|
|
65
|
+
resolve({
|
|
66
|
+
success: false,
|
|
67
|
+
error: error.message,
|
|
68
|
+
stderr: undefined,
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
// Set timeout
|
|
72
|
+
let timeoutId = null;
|
|
73
|
+
if (timeout && timeout > 0) {
|
|
74
|
+
const timeoutMs = timeout * 1000;
|
|
75
|
+
timeoutId = setTimeout(() => {
|
|
76
|
+
if (!isResolved && !process.killed) {
|
|
77
|
+
process.kill("SIGTERM");
|
|
78
|
+
console.error(chalk.red(`[tool calling - bash] ⚠️ Command timed out after ${timeout} seconds`));
|
|
79
|
+
resolve({
|
|
80
|
+
success: false,
|
|
81
|
+
error: `Command timed out after ${timeout} seconds`,
|
|
82
|
+
stderr: "Process was terminated due to timeout.",
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}, timeoutMs);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
29
88
|
},
|
|
30
89
|
};
|
|
31
90
|
//# sourceMappingURL=bash.js.map
|
package/dist/tools/bash.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bash.js","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"bash.js","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,WAAW,EACT,kLAAkL;IACpL,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;QAC3D,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,OAAO,CAAC,EAAE,CAAC;aACX,QAAQ,CACP,8FAA8F,CAC/F;KACJ,CAAC;IACF,OAAO,EAAE,KAAK,EAAE,E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C5C,IAAI,OAAO,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;gBAC3B,MAAM,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC;gBACjC,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;oBAC1B,IAAI,CAAC,UAAU,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;wBACnC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;wBACxB,OAAO,CAAC,KAAK,CACX,KAAK,CAAC,GAAG,CACP,oDAAoD,OAAO,UAAU,CACtE,CACF,CAAC;wBACF,OAAO,CAAC;4BACN,OAAO,EAAE,KAAK;4BACd,KAAK,EAAE,2BAA2B,OAAO,UAAU;4BACnD,MAAM,EAAE,wCAAwC;yBACjD,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC,EAAE,SAAS,CAAC,CAAC;YAChB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -2,10 +2,10 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const compilationCheckTool: {
|
|
3
3
|
description: string;
|
|
4
4
|
inputSchema: z.ZodObject<{
|
|
5
|
-
|
|
5
|
+
commands: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
execute: ({
|
|
8
|
-
|
|
7
|
+
execute: ({ commands }: {
|
|
8
|
+
commands: string | string[];
|
|
9
9
|
}) => Promise<{
|
|
10
10
|
success: boolean;
|
|
11
11
|
output: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compilation_check.d.ts","sourceRoot":"","sources":["../../src/tools/compilation_check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;
|
|
1
|
+
{"version":3,"file":"compilation_check.d.ts","sourceRoot":"","sources":["../../src/tools/compilation_check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;4BAUD;QAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE;;;;;;;;;;;CA2C9D,CAAC"}
|
|
@@ -2,14 +2,17 @@ import { z } from "zod";
|
|
|
2
2
|
import { execSync } from "child_process";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
export const compilationCheckTool = {
|
|
5
|
-
description: "Run a compilation check command to verify code quality and catch errors. Useful for TypeScript (npx tsc --noEmit), JavaScript (npm run lint or similar), or other languages. This helps ensure changes don't break the build before committing.",
|
|
5
|
+
description: "Run a compilation check command to verify code quality and catch errors. Useful for TypeScript (npm run lint && npx tsc --noEmit), JavaScript (npm run lint or similar), or other languages. This helps ensure changes don't break the build before committing.",
|
|
6
6
|
inputSchema: z.object({
|
|
7
|
-
|
|
7
|
+
commands: z
|
|
8
|
+
.union([z.string(), z.array(z.string())])
|
|
9
|
+
.describe("A compilation check command or an array of commands to execute, e.g., 'npx tsc --noEmit' or ['npm run lint', 'npx tsc --noEmit'] for TypeScript or JavaScript projects"),
|
|
8
10
|
}),
|
|
9
|
-
execute: async ({
|
|
10
|
-
|
|
11
|
+
execute: async ({ commands }) => {
|
|
12
|
+
const commandList = Array.isArray(commands) ? commands : [commands];
|
|
13
|
+
console.log(chalk.yellow(`\n[tool calling - compilationCheck] Running compilation checks: ${commandList.join(" && ")}`));
|
|
11
14
|
try {
|
|
12
|
-
const result = execSync(
|
|
15
|
+
const result = execSync(commandList.join(" && "), {
|
|
13
16
|
encoding: "utf-8",
|
|
14
17
|
stdio: "pipe",
|
|
15
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compilation_check.js","sourceRoot":"","sources":["../../src/tools/compilation_check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,e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AAK,CAAC,MAAM,CACV,sEAAsE,CACvE,CACF,CAAC;gBACF,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,MAAM,EAAE,mCAAmC,GAAG,MAAM;iBACrD,CAAC;YACJ,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,0CAA0C,GAAG,MAAM;aAC5D,CAAC;QACJ,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,OAAO,CAAC,KAAK,CACX,KAAK,CAAC,GAAG,CACP,kEAAkE,KAAK,CAAC,OAAO,EAAE,CAClF,CACF,CAAC;YACF,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,KAAK,CAAC,OAAO;gBACpB,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;gBACtC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;aACvC,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -37,20 +37,12 @@ export declare const tools: {
|
|
|
37
37
|
description: string;
|
|
38
38
|
inputSchema: import("zod").ZodObject<{
|
|
39
39
|
command: import("zod").ZodString;
|
|
40
|
+
timeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
40
41
|
}, import("zod/v4/core").$strip>;
|
|
41
|
-
execute: ({ command }: {
|
|
42
|
+
execute: ({ command, timeout, }: {
|
|
42
43
|
command: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
output: string;
|
|
46
|
-
error?: never;
|
|
47
|
-
stderr?: never;
|
|
48
|
-
} | {
|
|
49
|
-
success: boolean;
|
|
50
|
-
error: any;
|
|
51
|
-
stderr: any;
|
|
52
|
-
output?: never;
|
|
53
|
-
}>;
|
|
44
|
+
timeout?: number;
|
|
45
|
+
}) => Promise<unknown>;
|
|
54
46
|
};
|
|
55
47
|
readonly internet_search: {
|
|
56
48
|
description: string;
|
|
@@ -153,10 +145,10 @@ export declare const tools: {
|
|
|
153
145
|
readonly compilation_check: {
|
|
154
146
|
description: string;
|
|
155
147
|
inputSchema: import("zod").ZodObject<{
|
|
156
|
-
|
|
148
|
+
commands: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>;
|
|
157
149
|
}, import("zod/v4/core").$strip>;
|
|
158
|
-
execute: ({
|
|
159
|
-
|
|
150
|
+
execute: ({ commands }: {
|
|
151
|
+
commands: string | string[];
|
|
160
152
|
}) => Promise<{
|
|
161
153
|
success: boolean;
|
|
162
154
|
output: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;CASZ,CAAC;AAEX,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;CASZ,CAAC;AAEX,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAH,CAAC;;;;;;;;;;;;;6BASF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;kBANb,CAAF;iBAAoB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMQ,CAAC"}
|