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 / checked.ts
GitHub Actions (publish-mods)chore: Update mods/ 5a2676e · 5 days ago History
18 lines · 457 BRaw
1import type { Args } from 'claude-code'
2
3/**
4 * The question the engine puts to `tool.check`: may Bash run `echo x`.
5 */
6export const CHECKED: Args<'tool.check'> = {
7 tool: 'Bash',
8 input: { command: 'echo x' },
9}
10
11/**
12 * The same question where a host answers the asks: the engine's `approver`,
13 * which the released declarations do not name yet.
14 */
15export const CHECKED_BY_HOST: Args<'tool.check'> = Object.assign(
16 { approver: 'host' },
17 CHECKED,
18)