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.

652 B
Raw Blame
import { parseAgentJournalItemKey } from './agent-session-journal-item-key'
import { spelledProviderTimelineItemKey } from './provider-timeline-item-key'

export const AGENT_SESSION_COMPACTION_SKIPPED_PRESENTATION = 'compaction-skipped'

/** Older OMP outcomes carried their meaning in the host's reserved item identity. */
export function isAgentSessionLegacyCompactionResult(itemId: string): boolean {
  const identity = parseAgentJournalItemKey(itemId)
  return (
    identity?.provider === 'legacy' &&
    identity.agent === 'omp' &&
    spelledProviderTimelineItemKey(identity.recordId)?.startsWith('compaction%3Acompact%3A') ===
      true
  )
}