mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
Plugin tool updates (#2670)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import z from "zod/v4"
|
||||
import { tool } from "@opencode-ai/plugin"
|
||||
|
||||
export default {
|
||||
export default tool((z) => ({
|
||||
description: "foo tool for fooing",
|
||||
args: {
|
||||
foo: z.string().describe("foo"),
|
||||
@@ -8,4 +8,4 @@ export default {
|
||||
async execute() {
|
||||
return "Hey fuck you!"
|
||||
},
|
||||
}
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user