diff options
| author | Tyler Gannon <[email protected]> | 2026-02-03 15:18:41 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-03 15:18:41 -0600 |
| commit | a30696f9bfefc58d640316c6a864c9bb255de690 (patch) | |
| tree | 3c2579e57db3e5a7f235b9b20296a4a3bc01bb2e /packages/plugin | |
| parent | 25bdd77b1d765a9cac5d02ede93c075f25d6ca6f (diff) | |
| download | opencode-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')
| -rw-r--r-- | packages/plugin/src/index.ts | 1 |
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: { |
