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.

726 B
Raw Blame
// Include the durable submission and dispatchState: ok alone proves no message delivery.

import type { AgentJournalDispatchState } from '../../../src/shared/agent-session-journal-types'
import type { AgentSessionSendResult } from '../../../src/shared/agent-session-wire'

export function structuredSendResultFixture(
  dispatchState: AgentJournalDispatchState,
  reason: string | null = null
): AgentSessionSendResult {
  return {
    clientMessageId: 'msg-1',
    submission: {
      clientMessageId: 'msg-1',
      fence: 3,
      payloadFingerprint: 'fingerprint',
      dispatchState,
      providerItemId: null,
      reason,
      submittedAt: 10,
      resolvedAt: dispatchState === 'pending' ? null : 10
    }
  }
}