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 / sec-default / tests / fixtures / tool-check / hook-ask.ts
GitHub Actions (publish-mods)chore: Update mods/ 3deb873 · 13 days ago History
11 lines · 316 BRaw
1import type { EventResult } from 'claude-code'
2
3/**
4 * The engine's verdict when a PreToolUse hook asked for a person: the ask,
5 * the hook's sentence, and the hook's event.
6 */
7export const HOOK_ASK: EventResult<'tool.check'> = {
8 decision: 'ask',
9 reason: 'a person approves every echo',
10 hook: 'PreToolUse',
11}