diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-09-25 16:12:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-25 16:12:23 -0700 |
| commit | fa59bc9037741ecfa131aa27938272605710d7b2 (patch) | |
| tree | 068d2fe6cb3f530c305d1e21bc129ab2c9b49dc6 /plugins/code-modernization/tests/fixtures/inputs.ts | |
| parent | ca08d5e47d6402db586d37780c559a0c4c7ded9a (diff) | |
| parent | c8874f5ad883e26428f483ffa4d537cc81489e64 (diff) | |
Merge pull request #6309 from anthropics/morganl/code-modernization-consolidated
code-modernization: guided workflow with independent proof
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 }, +}) |
