@ikyyofc/gemini-cli 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/tools.js +2 -2
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -106,7 +106,7 @@ export const FUNCTION_DECLARATIONS = [
|
|
|
106
106
|
properties: {
|
|
107
107
|
command: { type: "STRING", description: "Shell command to execute" },
|
|
108
108
|
cwd: { type: "STRING", description: "Working directory (default: current)" },
|
|
109
|
-
timeout: { type: "NUMBER", description: "Timeout in milliseconds (default
|
|
109
|
+
timeout: { type: "NUMBER", description: "Timeout in milliseconds (default 600000)" }
|
|
110
110
|
},
|
|
111
111
|
required: ["command"]
|
|
112
112
|
}
|
|
@@ -275,7 +275,7 @@ export async function executeTool(name, args = {}, { autoApprove = false } = {})
|
|
|
275
275
|
|
|
276
276
|
case "run_shell": {
|
|
277
277
|
const cwd = args.cwd ? path.resolve(args.cwd) : process.cwd();
|
|
278
|
-
const timeout = args.timeout ||
|
|
278
|
+
const timeout = args.timeout || 600000;
|
|
279
279
|
try {
|
|
280
280
|
const { stdout, stderr } = await execAsync(args.command, { cwd, timeout, maxBuffer: 5*1024*1024 });
|
|
281
281
|
const out = [stdout?.trim(), stderr?.trim() ? `[stderr]\n${stderr.trim()}` : null].filter(Boolean).join("\n");
|