mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 21:16:06 +00:00
core: remove shell execution and server URL from plugin API
Plugins no longer receive shell access or server URL to prevent unauthorized execution and limit plugin sandbox surface area.
This commit is contained in:
parent
d4e51e04b3
commit
d67e877e28
1 changed files with 0 additions and 3 deletions
|
|
@ -12,7 +12,6 @@ import type {
|
|||
Config,
|
||||
} from "@opencode-ai/sdk"
|
||||
|
||||
import type { BunShell } from "./shell.js"
|
||||
import { type ToolDefinition } from "./tool.js"
|
||||
|
||||
export * from "./tool.js"
|
||||
|
|
@ -28,8 +27,6 @@ export type PluginInput = {
|
|||
project: Project
|
||||
directory: string
|
||||
worktree: string
|
||||
serverUrl: URL
|
||||
$: BunShell
|
||||
}
|
||||
|
||||
export type Plugin = (input: PluginInput) => Promise<Hooks>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue