Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 1–22why, one step back
1import { Schema } from "effect";
23export const HookEvent = Schema.Literals([4 "session-start",5 "pre-tool-use",6 "stop",7]);89export type HookEvent = typeof HookEvent.Type;1011export const claudeEventOf = {12 "pre-tool-use": "PreToolUse",13 "session-start": "SessionStart",14 stop: "Stop",15} as const satisfies Record<HookEvent, "SessionStart" | "PreToolUse" | "Stop">;1617export const guardedTools = [18 "Edit",19 "Write",20 "MultiEdit",21 "NotebookEdit",22] as const;