import type { ParsedAgentStatusPayload } from '../../shared/agent-status-types' export type RuntimeWorktreeAgentSource = { paneKey: string ptyId?: string tabId?: string worktreeId?: string connectionId: string | null state: ParsedAgentStatusPayload['state'] workingMode?: ParsedAgentStatusPayload['workingMode'] agentType: string | null prompt: string lastAssistantMessage: string | null toolName: string | null toolInput: string | null interrupted: boolean stateStartedAt: number updatedAt: number /** Structured host projections remain authoritative after PTY freshness expiry. */ authority?: 'structured-host' }