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.
TypeScript
/**
* A continuation as the gate's catch is handed it after a failure: going
* on throws what beneath refused with.
*
* @param isCalled whether the failed hook had called next before it failed
* @returns the continuation
*/
export const failingNext = (isCalled: boolean) =>
Object.assign(
() => {
throw new Error('beneath refused the entry')
},
{ called: isCalled, error: { kind: 'throw' as const, budget: 0 } },
)