summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin/src
diff options
context:
space:
mode:
authorTyler Gannon <[email protected]>2026-02-03 15:18:41 -0600
committerGitHub <[email protected]>2026-02-03 15:18:41 -0600
commita30696f9bfefc58d640316c6a864c9bb255de690 (patch)
tree3c2579e57db3e5a7f235b9b20296a4a3bc01bb2e /packages/plugin/src
parent25bdd77b1d765a9cac5d02ede93c075f25d6ca6f (diff)
downloadopencode-a30696f9bfefc58d640316c6a864c9bb255de690.tar.gz
opencode-a30696f9bfefc58d640316c6a864c9bb255de690.zip
feat(plugin): add shell.env hook for manipulating environment in tools and shell (#12012)
Diffstat (limited to 'packages/plugin/src')
-rw-r--r--packages/plugin/src/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts
index 86e7ae934..4cc84a5f3 100644
--- a/packages/plugin/src/index.ts
+++ b/packages/plugin/src/index.ts
@@ -185,6 +185,7 @@ export interface Hooks {
input: { tool: string; sessionID: string; callID: string },
output: { args: any },
) => Promise<void>
+ "shell.env"?: (input: { cwd: string }, output: { env: Record<string, string> }) => Promise<void>
"tool.execute.after"?: (
input: { tool: string; sessionID: string; callID: string },
output: {