Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

721 B
Raw Blame
import type { AgentEngine } from '../engines/types.js'
import { inspectRuntimePane as inspectPane } from './legacyPane.js'
import { assembleScreen, uncapturedScreen } from '../engines/kit/screen.js'
import { parseEngineQuestionPane } from './questionPane.js'
/**
 * A pane of one of the engines besides Claude Code and Codex. The core loads this file, and the dialog and pane
 * readers it imports, only when one of their sessions needs them (engines/inProcess.ts `screens`).
 */
export function legacyScreen(engine: AgentEngine, capture: string | null) {
  if (capture === null) return uncapturedScreen()
  return assembleScreen(engine, capture, inspectPane(engine, capture), parseEngineQuestionPane(engine, capture))
}