mirror of
https://github.com/sst/opencode.git
synced 2025-08-27 16:34:09 +00:00
re-export shell $ for plugin
This commit is contained in:
parent
5536b14347
commit
b824809605
4 changed files with 144 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
|||
import type { Event, createOpencodeClient, App, Model, Provider, Permission, UserMessage, Part } from "@opencode-ai/sdk"
|
||||
import { $ } from "bun"
|
||||
import type { BunShell } from "./shell"
|
||||
|
||||
export type PluginInput = {
|
||||
client: ReturnType<typeof createOpencodeClient>
|
||||
app: App
|
||||
$: $
|
||||
$: BunShell
|
||||
}
|
||||
export type Plugin = (input: PluginInput) => Promise<Hooks>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue