diff options
| author | Claude <noreply@anthropic.com> | 2026-11-06 00:54:48 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-11-06 00:54:48 +0000 |
| commit | 7aba3deae3ff17d032c37e07d2929d1426b34278 (patch) | |
| tree | 9c482f9acda1599bd2f9bed95a6a46b75e634e80 /plugins/code-modernization/tests/fixtures/inputs.ts | |
| parent | 5472f5f56e0070feeeb464318b316714fe3e9105 (diff) | |
| parent | b8331dd69ab3e132bbf8cd6e89b5d8c1747e21b1 (diff) | |
Merge remote-tracking branch 'origin/main' into add-plugin/xcodeadd-plugin/xcode
Diffstat (limited to 'plugins/code-modernization/tests/fixtures/inputs.ts')
| -rw-r--r-- | plugins/code-modernization/tests/fixtures/inputs.ts | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/plugins/code-modernization/tests/fixtures/inputs.ts b/plugins/code-modernization/tests/fixtures/inputs.ts new file mode 100644 index 00000000..ad1bd6e1 --- /dev/null +++ b/plugins/code-modernization/tests/fixtures/inputs.ts @@ -0,0 +1,55 @@ +import type { RenderInput, SessionStartInput } from 'claude-code' + +export const SESSION: SessionStartInput = { surface: 'terminal', isInteractive: true, cwd: '/work' } + +export const HINT: RenderInput<'PromptHint'> = { + component: 'PromptHint', + surface: 'terminal', + requestId: 'hint', + viewport: { columns: 180, rows: 48, isFullscreen: true }, + props: { isDraft: false, isWorking: false, hint: '' }, +} + +export const MAIN_SCREEN_HINT: RenderInput<'PromptHint'> = { + ...HINT, + viewport: { columns: 180, rows: 48, isFullscreen: false }, +} + +export const PANE: RenderInput<'Pane'> = { + component: 'Pane', + surface: 'terminal', + requestId: 'modernize', + viewport: { columns: 180, rows: 48, isFullscreen: true }, + props: { + title: 'Modernization', + isFocused: false, + bodyColumns: 72, + placement: 'dock', + scroll: { offset: 0, bodyRows: 44 }, + view: {}, + }, +} + +export const SIGN_PANE: RenderInput<'Pane'> = { ...PANE, requestId: 'modernize-sign', props: { ...PANE.props, placement: 'inline' } } + +export const BAND: RenderInput<'AbovePrompt'> = { + component: 'AbovePrompt', + surface: 'terminal', + requestId: 'band', + viewport: { columns: 180, rows: 48, isFullscreen: true }, + props: { + hasSurvey: false, + isWorking: false, + maxRows: 20, + bodyColumns: 100, + scroll: { offset: 0, bodyRows: 19 }, + view: {}, + }, +} + +export const command = (name: string, args = '') => ({ + command: name, + args, + origin: { kind: 'composer' as const }, + presentation: { isFullscreen: true, columns: 180 }, +}) |
