spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / telemetry / hooks / gate / gate-next / gate-next.ts
7 lines · 265 BRaw
1import type { Origin } from 'claude-code'
2
3/**
4 * What the gate reads of the continuation it is handed: the hooks beneath
5 * to go on to, and who raised the call, as the host stamped it.
6 */
7export type GateNext<E, R> = ((e: E) => R) & { readonly origin?: Origin }