mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-11 09:03:30 +00:00
feat(tui): discover project plugins
This commit is contained in:
parent
a2885d1662
commit
068c32df39
4 changed files with 61 additions and 1 deletions
16
.opencode/plugins/tui/discovery-smoke.ts
Normal file
16
.opencode/plugins/tui/discovery-smoke.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import type { Context } from "../../../packages/plugin/src/tui/context"
|
||||
|
||||
export default {
|
||||
id: "test.tui-discovery-smoke",
|
||||
setup(context: Context) {
|
||||
const timer = setTimeout(() => {
|
||||
context.ui.toast.show({
|
||||
title: "TUI plugin discovery works",
|
||||
message: "Loaded .opencode/plugins/tui/discovery-smoke.ts",
|
||||
variant: "success",
|
||||
duration: 30_000,
|
||||
})
|
||||
}, 1_000)
|
||||
return () => clearTimeout(timer)
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue