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.

845 B
Raw Blame
import type { RpcEnvelopeFields } from './rpc-envelope-fields'
import type { RpcResponse } from './types'

// Raw requests validate neither method, params nor result; use typed operations before treating replies as declared values.
// The request-port boundary inventory fences every remaining raw user and may only shrink.

export type SendRequestOptions = {
  timeoutMs?: number
  /** Include the connect wait in the caller's timeout budget. */
  budgetSpansConnect?: boolean
  /** Reject instead of replaying the request after reconnect. */
  failWhenDisconnected?: boolean
  /** Extra top-level wire fields; the transport's own always win. */
  envelope?: RpcEnvelopeFields
}

export type UnvalidatedRpcRequestPort = {
  sendRequest: (
    method: string,
    params?: unknown,
    options?: SendRequestOptions
  ) => Promise<RpcResponse>
}