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 / agents-md / hooks / telemetry / quietly.ts
13 lines · 368 BRaw
1/**
2 * Runs one `$.telemetry` call and drops whatever it throws or rejects with.
3 *
4 * A build with no telemetry noun, a refused row or an ingest that will not
5 * take it never disturbs the instructions.
6 *
7 * @param send the call
8 */
9export const quietly = (send: () => Promise<void>): void => {
10 void Promise.resolve()
11 .then(send)
12 .catch(() => undefined)
13}