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 an administrator prepended whose `/manage <entry>` marks the
 * entry through `$.telemetry`, answering "queued", or why it was refused.
 */
export const managing: Plugin = {
  name: 'managing',
  tier: 'prepend',
  register(on) {
    on('command.run', { command: 'manage' }, ($, e) =>
      $.telemetry.mark(JSON.parse(e.args)).then(
        () => ({ text: 'queued' }),
        (error: unknown) => ({ text: String(error) }),
      ),
    )
  },
}