summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin
diff options
context:
space:
mode:
authorDax <[email protected]>2025-10-31 15:07:36 -0400
committerGitHub <[email protected]>2025-10-31 15:07:36 -0400
commit96bdeb3c7b04e95ecabaa0253deddd2a22e14afe (patch)
treec37898ee62e8c4f84f5d9abd4c644b1ec7066963 /packages/plugin
parent81c617770d8595978b497a9cf3c0a5316b108352 (diff)
downloadopencode-96bdeb3c7b04e95ecabaa0253deddd2a22e14afe.tar.gz
opencode-96bdeb3c7b04e95ecabaa0253deddd2a22e14afe.zip
OpenTUI is here (#2685)
Diffstat (limited to 'packages/plugin')
-rw-r--r--packages/plugin/package.json2
-rw-r--r--packages/plugin/src/example.ts6
2 files changed, 2 insertions, 6 deletions
diff --git a/packages/plugin/package.json b/packages/plugin/package.json
index 81d90cbab..87d472e55 100644
--- a/packages/plugin/package.json
+++ b/packages/plugin/package.json
@@ -24,4 +24,4 @@
"typescript": "catalog:",
"@typescript/native-preview": "catalog:"
}
-} \ No newline at end of file
+}
diff --git a/packages/plugin/src/example.ts b/packages/plugin/src/example.ts
index 1e4557a68..94745a37b 100644
--- a/packages/plugin/src/example.ts
+++ b/packages/plugin/src/example.ts
@@ -3,10 +3,9 @@ import { tool } from "./tool"
export const ExamplePlugin: Plugin = async (ctx) => {
return {
- permission: {},
tool: {
mytool: tool({
- description: "This is a custom tool tool",
+ description: "This is a custom tool",
args: {
foo: tool.schema.string().describe("foo"),
},
@@ -15,8 +14,5 @@ export const ExamplePlugin: Plugin = async (ctx) => {
},
}),
},
- async "chat.params"(_input, output) {
- output.topP = 1
- },
}
}