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 / pane-view / view-pane.ts
25 lines · 644 BRaw
1import type { RenderInput } from 'claude-code'
2
3import { BODY_ROWS } from './body-rows.js'
4import { COLUMNS } from './columns.js'
5
6/**
7 * A pane the plugin does not own, docked on a 160-column terminal at the
8 * view fixtures' body size.
9 *
10 * Its render passes beneath the plugin to the hook a test draws a view in.
11 */
12export const VIEW_PANE: RenderInput<'Pane'> = {
13 component: 'Pane',
14 surface: 'terminal',
15 requestId: 'view',
16 viewport: { columns: 160, rows: 40 },
17 props: {
18 title: 'View',
19 isFocused: false,
20 bodyColumns: COLUMNS,
21 placement: 'dock',
22 scroll: { offset: 0, bodyRows: BODY_ROWS },
23 view: {},
24 },
25}