Skip to content

Commit 6434626

Browse files
committed
mods: the declarations carry command.run's presentation, a Button's action and dimColor, a pane's closeOnEscape and holdToasts, and ui.scroll's by and contentRows; the command fixtures name their presentation
1 parent 4738341 commit 6434626

7 files changed

Lines changed: 707 additions & 60 deletions

File tree

‎mods/diff/tests/fixtures/clear.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ export const CLEAR: CommandRunInput = {
77
command: 'clear',
88
args: '',
99
origin: { kind: 'composer' },
10+
presentation: { isFullscreen: true, columns: 160 },
1011
}

‎mods/diff/tests/fixtures/diff.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import type { CommandRunInput } from 'claude-code'
22

33
/**
4-
* The command as the person types it, with no arguments.
4+
* The command as the person types it, with no arguments, in the fullscreen
5+
* layout on a 160-column terminal.
56
*/
67
export const DIFF: CommandRunInput = {
78
command: 'diff',
89
args: '',
910
origin: { kind: 'composer' },
11+
presentation: { isFullscreen: true, columns: 160 },
1012
}

‎mods/sec-default/tests/fixtures/tools-command.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ export const TOOLS_COMMAND: CommandRunInput = {
77
command: 'tools',
88
args: '',
99
origin: { kind: 'composer' },
10+
presentation: { isFullscreen: true, columns: 160 },
1011
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { CommandPresentation } from 'claude-code'
2+
3+
/**
4+
* Where a typed command's answer shows in these tests: the fullscreen
5+
* layout on a 160-column terminal.
6+
*/
7+
export const FULLSCREEN: CommandPresentation = {
8+
isFullscreen: true,
9+
columns: 160,
10+
}

‎mods/telemetry/tests/fixtures/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export * from './accepted.js'
22
export * from './batch-of.js'
33
export * from './bearer.js'
44
export * from './first-party-session.js'
5+
export * from './fullscreen.js'
56
export * from './record.js'
67
export * from './recording.js'
78
export * from './survey-answer.js'

‎mods/telemetry/tests/fixtures/record.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { CommandRunInput } from 'claude-code'
22

33
import type { TelemetryLogEntry } from '../../types'
4+
import { FULLSCREEN } from './fullscreen.js'
45

56
/**
67
* The command that has the recording plugin log an entry, typed as the
@@ -13,4 +14,5 @@ export const record = (entry: TelemetryLogEntry): CommandRunInput => ({
1314
command: 'record',
1415
args: JSON.stringify(entry),
1516
origin: { kind: 'composer' },
17+
presentation: FULLSCREEN,
1618
})

0 commit comments

Comments
 (0)