Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

463 B
Raw Blame
/** Live tail under a shell card. Async jobs keep streaming after the tool returns. */
export function showLiveShellOutput(event: {
  tool_name?: string
  pending?: boolean
  command_output?: { done?: boolean } | null
} | null | undefined): boolean {
  const output = event?.command_output
  if (!output || output.done) return false
  if (event?.tool_name === 'shell_exec_async') return true
  return event?.tool_name === 'shell_exec' && event.pending === true
}