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
496 B
Raw Blame
import type { Plugin } from 'claude-code/testing'

/**
 * A built-in plugin whose `/mark <entry>` marks the entry through
 * `$.telemetry`, answering "queued", or why the mark was refused.
 */
export const marking: Plugin = {
  name: 'marking',
  tier: 'builtin',
  register(on) {
    on('command.run', { command: 'mark' }, ($, e) =>
      $.telemetry.mark(JSON.parse(e.args)).then(
        () => ({ text: 'queued' }),
        (error: unknown) => ({ text: String(error) }),
      ),
    )
  },
}