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.

684 B
Raw Blame
import { z } from 'zod'
import { salvagedOptional } from '../../../src/shared/zod-salvage'

// Page command schemas mirror runtime browser-core and adjacent pointer/keyboard/dialog methods.

// Keep goto payload nullish and URL optional: original typeof result?.url guard leaves address unchanged for null/missing URL, rather than showing an error.
export const browserNavigationSettledSchema = z
  .looseObject({
    url: salvagedOptional('url', z.string())
  })
  .nullish()

// Twelve other commands inspect refusal only (back/forward/reload, five pointer, two keyboard, two dialog); do not require unread result members.
export const browserCommandUnreadReplySchema = z.unknown()