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.

729 B
Raw Blame
/** Transcript discovery is session control, present even when Cursor's optional readers cannot load. */
import { CURSOR_TRANSCRIPT, CURSOR_TRANSCRIPT_POLL_MS } from '../../engines/cursor/contract.js'
import { TranscriptDiscovery } from '../../engines/kit/transcriptDiscovery.js'
import { inspectTranscriptPath } from '../../lib/registry.js'

export type CursorDiscovery = Pick<TranscriptDiscovery, 'start' | 'add' | 'remove' | 'stop'>

export function createCursorDiscovery(cursorHome: string, onFound: (sessionId: string, transcriptPath: string) => void): CursorDiscovery {
  return new TranscriptDiscovery(cursorHome, CURSOR_TRANSCRIPT, onFound,
    path => inspectTranscriptPath('cursor', path), CURSOR_TRANSCRIPT_POLL_MS)
}