mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Plugin tool updates (#2670)
This commit is contained in:
parent
3b6c0ec0b3
commit
65baf76df6
3 changed files with 109 additions and 3 deletions
|
|
@ -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!"
|
||||
},
|
||||
}
|
||||
}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue