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

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 presentationBrowse files
poteat authored on Sep 13, 2026 parent 4738341 · commit 6434626b1776
7 changed files+18 -1compared with 4738341
Mmods/diff/tests/fixtures/clear.ts
Mmods/diff/tests/fixtures/diff.ts
Mmods/sec-default/tests/fixtures/tools-command.ts
Amods/telemetry/tests/fixtures/fullscreen.ts
Mmods/telemetry/tests/fixtures/index.ts
Mmods/telemetry/tests/fixtures/record.ts
Mmods/types/claude-code.d.ts
@@ -7,4 +7,5 @@
77 command: 'clear',
88 args: '',
99 origin: { kind: 'composer' },
10+ presentation: { isFullscreen: true, columns: 160 },
1011 }
@@ -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 }
@@ -7,4 +7,5 @@
77 command: 'tools',
88 args: '',
99 origin: { kind: 'composer' },
10+ presentation: { isFullscreen: true, columns: 160 },
1011 }
@@ -1,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+}
@@ -2,6 +2,7 @@
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'
@@ -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 @@
1314 command: 'record',
1415 args: JSON.stringify(entry),
1516 origin: { kind: 'composer' },
17+ presentation: FULLSCREEN,
1618 })
Large file, diff not shown.