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.

718 B
Raw Blame
import { z } from 'zod'
import { isAgentSessionSurfaceTabId } from '../agent-session-surface-tab-id'
import { Identifier } from './structured-agent-session-identifiers'

/** `agentSession.create`'s tab fields. Strict payload: each is sent only to a host advertising its
 *  capability (`agentSession.create.tab-id.v1`, `agentSession.create.tab-placement.v1`). */
export const CREATE_TAB_FIELDS = {
  tabId: z.string().refine(isAgentSessionSurfaceTabId, 'Invalid chat tab ID').optional(),
  /** The host's own group and tab ids. */
  tabPlacement: z
    .object({
      groupId: Identifier('Invalid group id').optional(),
      afterTabId: Identifier('Invalid tab id').optional()
    })
    .strict()
    .optional()
}