re-export shell $ for plugin

This commit is contained in:
Dax Raad 2025-08-04 23:06:49 -04:00
parent 5536b14347
commit b824809605
4 changed files with 144 additions and 7 deletions

View file

@ -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>