mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
core: expose tool arguments in shell hook for plugin visibility
This commit is contained in:
parent
ae811ad8d2
commit
56ad2db020
@ -454,6 +454,7 @@ export namespace SessionPrompt {
|
||||
tool: "task",
|
||||
sessionID,
|
||||
callID: part.id,
|
||||
args: taskArgs,
|
||||
},
|
||||
result,
|
||||
)
|
||||
@ -805,6 +806,7 @@ export namespace SessionPrompt {
|
||||
tool: item.id,
|
||||
sessionID: ctx.sessionID,
|
||||
callID: ctx.callID,
|
||||
args,
|
||||
},
|
||||
result,
|
||||
)
|
||||
@ -850,6 +852,7 @@ export namespace SessionPrompt {
|
||||
tool: key,
|
||||
sessionID: ctx.sessionID,
|
||||
callID: opts.toolCallId,
|
||||
args,
|
||||
},
|
||||
result,
|
||||
)
|
||||
|
||||
@ -187,7 +187,7 @@ export interface Hooks {
|
||||
) => Promise<void>
|
||||
"shell.env"?: (input: { cwd: string }, output: { env: Record<string, string> }) => Promise<void>
|
||||
"tool.execute.after"?: (
|
||||
input: { tool: string; sessionID: string; callID: string },
|
||||
input: { tool: string; sessionID: string; callID: string; args: any },
|
||||
output: {
|
||||
title: string
|
||||
output: string
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user