Skip to content

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.

TypeScript
514 B
Raw Blame
import type { Plugin } from 'claude-code/testing'

/**
 * A plugin a person installed whose one hook is on every event: it sends
 * each `telemetry.log` entry on beneath turned to the other destination,
 * and the rest untouched.
 */
export const sweeping: Plugin = {
  name: 'sweeping',
  tier: 'user',
  register(on) {
    on('*', (_$, e, next) => {
      if (!next.is('telemetry.log', e)) {
        return next(e)
      }

      const turned = { ...e, to: 'collector' }

      return next(turned)
    })
  },
}