tool rework

This commit is contained in:
Dax Raad
2025-05-31 17:12:16 -04:00
parent 33109bac4d
commit b4f809559e
19 changed files with 142 additions and 110 deletions

View File

@@ -170,8 +170,8 @@ Important:
- Return an empty response - the user will see the gh output directly
- Never update git config`
export const bash = Tool.define({
name: "opencode.bash",
export const BashTool = Tool.define({
id: "opencode.bash",
description: DESCRIPTION,
parameters: z.object({
command: z.string(),
@@ -193,6 +193,7 @@ export const bash = Tool.define({
timeout: timeout,
})
return {
metadata: {},
output: process.stdout.toString("utf-8"),
}
},