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
18 lines · 463 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 * @returns the `ui.focus` input
11 */
12export const ringOnto = (key: string): UiFocusInput => ({
13 component: 'Pane',
14 requestId: PANE.requestId,
15 plugin: 'diff',
16 element: key,
17 origin: { kind: 'person' },
18})