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
import type { UiFocusInput } from 'claude-code'
import { PANE } from './pane.js'
/**
* The person walking the pane's focus ring onto one of the plugin's
* elements, as the engine raises it before the ring moves.
*
* @param key the element's key
* @param plugin the name the engine stamped on the element
* @returns the `ui.focus` input
*/
export const ringOnto = (key: string, plugin = 'diff'): UiFocusInput => ({
component: 'Pane',
requestId: PANE.requestId,
plugin,
element: key,
origin: { kind: 'person' },
})