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
import type { HookFailure } from 'claude-code'
/**
* The debug line for a `plugin.register` hook of this plugin that failed:
* the module it was judging, how it failed, and what the failure said.
*
* @param name the judged plugin's name, as its own manifest gives it
* @param error why the hook failed, as its `.catch` reads it
* @returns the line
*/
export const admissionFailure = (name: string, error: HookFailure) =>
`plugin.register hook failed judging ${name} (${error.kind}): ` +
(error.message ?? 'no message')