Merge branch 'dev' into kit/fix-release-publish

This commit is contained in:
Kit Langton 2026-04-17 22:27:32 -04:00 committed by GitHub
commit 325d199089
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
271 changed files with 17168 additions and 13971 deletions

View file

@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/plugin",
"version": "1.4.7",
"version": "1.4.11",
"type": "module",
"license": "MIT",
"scripts": {
@ -22,8 +22,8 @@
"zod": "catalog:"
},
"peerDependencies": {
"@opentui/core": ">=0.1.99",
"@opentui/solid": ">=0.1.99"
"@opentui/core": ">=0.1.100",
"@opentui/solid": ">=0.1.100"
},
"peerDependenciesMeta": {
"@opentui/core": {
@ -34,8 +34,8 @@
}
},
"devDependencies": {
"@opentui/core": "0.1.99",
"@opentui/solid": "0.1.99",
"@opentui/core": "catalog:",
"@opentui/solid": "catalog:",
"@tsconfig/node22": "catalog:",
"@types/node": "catalog:",
"typescript": "catalog:",

View file

@ -27,10 +27,12 @@ type AskInput = {
metadata: { [key: string]: any }
}
export type ToolResult = string | { output: string; metadata?: { [key: string]: any } }
export function tool<Args extends z.ZodRawShape>(input: {
description: string
args: Args
execute(args: z.infer<z.ZodObject<Args>>, context: ToolContext): Promise<string>
execute(args: z.infer<z.ZodObject<Args>>, context: ToolContext): Promise<ToolResult>
}) {
return input
}

View file

@ -29,7 +29,7 @@ export type TuiRouteCurrent =
name: "session"
params: {
sessionID: string
initialPrompt?: unknown
prompt?: unknown
}
}
| {