fixed review comments

This commit is contained in:
Arjun 2026-02-23 08:31:39 +05:30
parent 71a3d2ff91
commit bfba0f0682
9 changed files with 85 additions and 157 deletions

View file

@ -73,6 +73,7 @@ export const ToolPermissionResponseEvent = BaseRunEvent.extend({
type: z.literal("tool-permission-response"),
toolCallId: z.string(),
response: z.enum(["approve", "deny"]),
scope: z.enum(["once", "session", "always"]).optional(),
});
export const RunErrorEvent = BaseRunEvent.extend({
@ -106,9 +107,7 @@ export const ToolPermissionAuthorizePayload = ToolPermissionResponseEvent.pick({
subflow: true,
toolCallId: true,
response: true,
}).extend({
scope: z.enum(["once", "session", "always"]).optional(),
command: z.string().optional(),
scope: true,
});
export const AskHumanResponsePayload = AskHumanResponseEvent.pick({