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 / hook-context-row.ts
GitHub Actions (publish-mods)chore: Update mods/ 3deb873 · 13 days ago History
17 lines · 480 BRaw
1import type { Args } from 'claude-code'
2
3/**
4 * A settings hook's additional context as the row a conversation is about
5 * to keep of it.
6 */
7export const HOOK_CONTEXT_ROW: Args<'session.append'> = {
8 message: {
9 type: 'attachment',
10 name: 'hook_additional_context',
11 role: 'user',
12 content: [{ type: 'text', text: 'the org hook says: never push to main' }],
13 },
14 door: 'hook-context',
15 origin: { kind: 'hook', event: 'PreToolUse' },
16 uuid: 'row-hook-context',
17}