core: expose tool arguments in shell hook for plugin visibility
This commit is contained in:
@@ -454,6 +454,7 @@ export namespace SessionPrompt {
|
|||||||
tool: "task",
|
tool: "task",
|
||||||
sessionID,
|
sessionID,
|
||||||
callID: part.id,
|
callID: part.id,
|
||||||
|
args: taskArgs,
|
||||||
},
|
},
|
||||||
result,
|
result,
|
||||||
)
|
)
|
||||||
@@ -805,6 +806,7 @@ export namespace SessionPrompt {
|
|||||||
tool: item.id,
|
tool: item.id,
|
||||||
sessionID: ctx.sessionID,
|
sessionID: ctx.sessionID,
|
||||||
callID: ctx.callID,
|
callID: ctx.callID,
|
||||||
|
args,
|
||||||
},
|
},
|
||||||
result,
|
result,
|
||||||
)
|
)
|
||||||
@@ -850,6 +852,7 @@ export namespace SessionPrompt {
|
|||||||
tool: key,
|
tool: key,
|
||||||
sessionID: ctx.sessionID,
|
sessionID: ctx.sessionID,
|
||||||
callID: opts.toolCallId,
|
callID: opts.toolCallId,
|
||||||
|
args,
|
||||||
},
|
},
|
||||||
result,
|
result,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ export interface Hooks {
|
|||||||
) => Promise<void>
|
) => Promise<void>
|
||||||
"shell.env"?: (input: { cwd: string }, output: { env: Record<string, string> }) => Promise<void>
|
"shell.env"?: (input: { cwd: string }, output: { env: Record<string, string> }) => Promise<void>
|
||||||
"tool.execute.after"?: (
|
"tool.execute.after"?: (
|
||||||
input: { tool: string; sessionID: string; callID: string },
|
input: { tool: string; sessionID: string; callID: string; args: any },
|
||||||
output: {
|
output: {
|
||||||
title: string
|
title: string
|
||||||
output: string
|
output: string
|
||||||
|
|||||||
Reference in New Issue
Block a user