hook-events.ts
This file
Path
packages/agent-kit/src/hook-events.ts
22 lines · 468 bytes · TypeScript
Last changed by
Merge build/comments-packages-rest into mainoscabrielbefore adoption38cd503
History of this fileTake it
1234567891011121314151617181920212223import { Schema } from "effect";
export const HookEvent = Schema.Literals([ "session-start", "pre-tool-use", "stop",]);
export type HookEvent = typeof HookEvent.Type;
export const claudeEventOf = { "pre-tool-use": "PreToolUse", "session-start": "SessionStart", stop: "Stop",} as const satisfies Record<HookEvent, "SessionStart" | "PreToolUse" | "Stop">;
export const guardedTools = [ "Edit", "Write", "MultiEdit", "NotebookEdit",] as const;