Merge branch 'dev' into black-page-transitions-design-updates
This commit is contained in:
parent
2cb1c4cd6d
commit
6b63ea98d8
112 changed files with 6269 additions and 654 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"name": "@opencode-ai/plugin",
|
||||
"version": "1.1.16",
|
||||
"version": "1.1.20",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,15 @@ export type ToolContext = {
|
|||
messageID: string
|
||||
agent: string
|
||||
abort: AbortSignal
|
||||
metadata(input: { title?: string; metadata?: { [key: string]: any } }): void
|
||||
ask(input: AskInput): Promise<void>
|
||||
}
|
||||
|
||||
type AskInput = {
|
||||
permission: string
|
||||
patterns: string[]
|
||||
always: string[]
|
||||
metadata: { [key: string]: any }
|
||||
}
|
||||
|
||||
export function tool<Args extends z.ZodRawShape>(input: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue