feat(hook): command execute before hook (#9267)

This commit is contained in:
Spoon
2026-01-18 20:11:22 +01:00
committed by GitHub
parent dac099a489
commit bfd2f91d5b
2 changed files with 14 additions and 0 deletions

View File

@@ -1702,6 +1702,16 @@ NOTE: At any point in time through this workflow you should feel free to ask the
: await lastModel(input.sessionID)
: taskModel
await Plugin.trigger(
"command.execute.before",
{
command: input.command,
sessionID: input.sessionID,
arguments: input.arguments,
},
{ parts },
)
const result = (await prompt({
sessionID: input.sessionID,
messageID: input.messageID,