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 / diff / hooks / record / safely / safely.ts
11 lines · 304 BRaw
1/**
2 * Sends one telemetry row and forgets it: a missing `$.telemetry` (no
3 * telemetry built-in) throws synchronously, a refused row rejects; both drop.
4 *
5 * @param send posts the row
6 */
7export function safely(send: () => Promise<void>) {
8 try {
9 void send().catch(() => undefined)
10 } catch {}
11}