diff options
| author | Helge Tesdal <[email protected]> | 2026-02-18 21:14:18 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-18 14:14:18 -0600 |
| commit | 1aa18c6cd64412db89ccfb58c2641ab3e49233e4 (patch) | |
| tree | 986296ee868076a65cbbb2a9f546ab94039a3fca /packages/plugin | |
| parent | de25703e9dd33df4dff6b5b8ae9a722f6ca2aa81 (diff) | |
| download | opencode-1aa18c6cd64412db89ccfb58c2641ab3e49233e4.tar.gz opencode-1aa18c6cd64412db89ccfb58c2641ab3e49233e4.zip | |
feat(plugin): pass sessionID and callID to shell.env hook input (#13662)
Diffstat (limited to 'packages/plugin')
| -rw-r--r-- | packages/plugin/src/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts index bd4ba5304..76370d1d5 100644 --- a/packages/plugin/src/index.ts +++ b/packages/plugin/src/index.ts @@ -185,7 +185,10 @@ 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> + "shell.env"?: ( + input: { cwd: string; sessionID?: string; callID?: string }, + output: { env: Record<string, string> }, + ) => Promise<void> "tool.execute.after"?: ( input: { tool: string; sessionID: string; callID: string; args: any }, output: { |
