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 e3027e33dd
commit 7b4cea2a95
2 changed files with 14 additions and 0 deletions
+4
View File
@@ -173,6 +173,10 @@ export interface Hooks {
output: { temperature: number; topP: number; topK: number; options: Record<string, any> },
) => Promise<void>
"permission.ask"?: (input: Permission, output: { status: "ask" | "deny" | "allow" }) => Promise<void>
"command.execute.before"?: (
input: { command: string; sessionID: string; arguments: string },
output: { parts: Part[] },
) => Promise<void>
"tool.execute.before"?: (
input: { tool: string; sessionID: string; callID: string },
output: { args: any },