|
|
@@ -57,9 +57,10 @@ export const BashTool = Tool.define("bash", async () => {
|
|
|
log.info("bash tool using shell", { shell })
|
|
|
|
|
|
return {
|
|
|
- description: DESCRIPTION.replaceAll("${directory}", Instance.directory)
|
|
|
- .replaceAll("${maxLines}", String(Truncate.MAX_LINES))
|
|
|
- .replaceAll("${maxBytes}", String(Truncate.MAX_BYTES)),
|
|
|
+ description: DESCRIPTION.replaceAll("${maxLines}", String(Truncate.MAX_LINES)).replaceAll(
|
|
|
+ "${maxBytes}",
|
|
|
+ String(Truncate.MAX_BYTES),
|
|
|
+ ),
|
|
|
parameters: z.object({
|
|
|
command: z.string().describe("The command to execute"),
|
|
|
timeout: z.number().describe("Optional timeout in milliseconds").optional(),
|