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
18 lines · 560 BRaw
1import type { SessionAppendInput } from 'claude-code'
2
3/**
4 * The context an organization's settings hook attached for the model, as the
5 * engine raises the row before keeping it.
6 */
7export const HOOK_CONTEXT_ROW: SessionAppendInput = {
8 message: {
9 type: 'attachment',
10 name: 'hook_additional_context',
11 role: 'user',
12 isMeta: true,
13 content: [{ type: 'text', text: 'the org says: ask before deploying' }],
14 },
15 door: 'hook-context',
16 origin: { kind: 'hook', event: 'UserPromptSubmit' },
17 uuid: '6f0d3c1e-5b7a-4c2e-9a41-2d8e7f3b9c10',
18}