mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 22:32:28 +00:00
tool rework
This commit is contained in:
@@ -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"),
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user