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 / telemetry / hooks / entries / batch-stamp / batch-stamp.ts
17 lines · 540 BRaw
1import type { Context } from '../../context'
2
3/**
4 * What one batch stamps on each of its rows beside the row's own fields:
5 * the session as read when the batch went out, and its context.
6 *
7 * `userType` is `ant` or `external` as USER_TYPE says of the build;
8 * `isClaudeAiAuth` follows the credential the batch is sent with.
9 */
10export type BatchStamp = {
11 readonly sessionId: string
12 readonly model: string
13 readonly userType: string
14 readonly isInteractive: boolean
15 readonly isClaudeAiAuth: boolean
16 readonly context: Context
17}