feat(plugin): add shell.env hook for manipulating environment in tools and shell (#12012)
This commit is contained in:
parent
25bdd77b1d
commit
a30696f9bf
5 changed files with 32 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue