Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

1.6 KB
Raw Blame
import React from 'react'
import { createRoot } from 'react-dom/client'
import { TooltipProvider } from '@/components/ui/tooltip'
import { NativeChatMessageList } from '../../../src/renderer/src/components/native-chat/NativeChatMessageList'
import type { NativeChatMessage } from '../../../src/shared/native-chat-types'
import './fixture.css'

declare const __TRANSCRIPT_PROOF__: {
  transcripts: { kind: string; phase: string; sessionId: string; messages: NativeChatMessage[] }[]
}
const index = Number(new URLSearchParams(location.search).get('index') ?? '0')
const transcript = __TRANSCRIPT_PROOF__.transcripts[index]
if (!transcript) {
  throw new Error('Missing transcript reader output')
}
const root = document.getElementById('root')
if (!root) {
  throw new Error('Missing fixture root')
}
createRoot(root).render(
  <TooltipProvider delayDuration={400}>
    <main className="flex h-screen flex-col bg-background text-foreground">
      <header className="border-b border-border px-4 py-3 text-sm">OMP · Native chat</header>
      <div className="flex min-h-0 flex-1 flex-col">
        <NativeChatMessageList
          session={{
            agent: 'omp',
            sessionId: transcript.sessionId,
            status: 'ready',
            messages: transcript.messages,
            hasMore: false,
            loadingEarlier: false,
            olderHistoryGeneration: 0,
            loadEarlier: () => Promise.resolve('exhausted' as const),
            readPhase: 'ready'
          }}
          isWorking={false}
          expandSignal={false}
        />
      </div>
    </main>
  </TooltipProvider>
)