MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / tmuxCapture

Function tmuxCapture

freebuff/e2e/utils/tmux-helpers.ts:58–71  ·  view source on GitHub ↗
(
  sessionName: string,
  options?: { waitSeconds?: number; label?: string; noSave?: boolean },
)

Source from the content-addressed store, hash-verified

56}
57
58export function tmuxCapture(
59 sessionName: string,
60 options?: { waitSeconds?: number; label?: string; noSave?: boolean },
61): string {
62 const args: string[] = [`${SCRIPTS_DIR}/tmux-capture.sh`, sessionName]
63 if (options?.waitSeconds) args.push('--wait', String(options.waitSeconds))
64 if (options?.label) args.push('--label', options.label)
65 if (options?.noSave) args.push('--no-save')
66
67 return execFileSync('bash', args, {
68 ...EXEC_OPTIONS,
69 stdio: ['pipe', 'pipe', 'pipe'],
70 })
71}
72
73export function tmuxStop(sessionName: string): void {
74 try {

Callers 2

captureMethod · 0.90
captureLabeledMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected