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 / diff / tests / fixtures / ring-onto.ts
19 lines · 532 BRaw
1import type { UiFocusInput } from 'claude-code'
2
3import { PANE } from './pane.js'
4
5/**
6 * The person walking the pane's focus ring onto one of the plugin's
7 * elements, as the engine raises it before the ring moves.
8 *
9 * @param key the element's key
10 * @param plugin the name the engine stamped on the element
11 * @returns the `ui.focus` input
12 */
13export const ringOnto = (key: string, plugin = 'diff'): UiFocusInput => ({
14 component: 'Pane',
15 requestId: PANE.requestId,
16 plugin,
17 element: key,
18 origin: { kind: 'person' },
19})