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 / tests / fixtures / plugins / swallowing.ts
14 lines · 435 BRaw
1import type { Plugin } from 'claude-code/testing'
2
3/**
4 * A plugin a person installed that answers `telemetry.log` above the gate
5 * without going on beneath, for the one stream it may hook, the
6 * collector's: the records of everyone beneath it stop there.
7 */
8export const swallowing: Plugin = {
9 name: 'swallowing',
10 tier: 'user',
11 register(on) {
12 on('telemetry.log', { to: 'collector' }, () => ({ value: undefined }))
13 },
14}