mirror of
https://github.com/anthropics/claude-code.git
synced 2026-10-24 06:44:42 +08:00
# Conflicts: # mods/diff/hooks/register.ts # mods/diff/hooks/views/detail/code-blocks-of/code-blocks-of.ts # mods/diff/tests/fixtures/git-in.ts # mods/diff/tests/fixtures/in-repository.ts # mods/diff/tests/fixtures/index.ts # mods/telemetry/tests/fixtures/index.ts
16 lines
419 B
TypeScript
16 lines
419 B
TypeScript
import type { CommandRunInput } from 'claude-code'
|
|
|
|
import { DIFF } from './diff.js'
|
|
|
|
/**
|
|
* The command typed under the fullscreen layout on a terminal so many
|
|
* columns wide, as its presentation tells the hooks.
|
|
*
|
|
* @param columns the terminal's width
|
|
* @returns the command's input
|
|
*/
|
|
export const diffAt = (columns: number): CommandRunInput => ({
|
|
...DIFF,
|
|
presentation: { isFullscreen: true, columns },
|
|
})
|