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 / sender / sender.ts
14 lines · 350 BRaw
1import type { Telemetry } from '../../types'
2
3/**
4 * What `telemetryOf` builds: the `$.telemetry` noun, and the flush the
5 * plugin's session.end hook calls to send what still waits.
6 */
7export type Sender = {
8 telemetry: Telemetry
9
10 /**
11 * Sends every queued row now, in one batch; resolves once it settled.
12 */
13 flush: () => Promise<void>
14}