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.

460 B
Raw Blame
import { z } from 'zod'

// Scope by identity for each host's catalog; request scope already names the search tier.
export const AiVaultSearchScopeIdentitySchema = z.discriminatedUnion('kind', [
  z.object({ kind: z.literal('workspace'), worktreeId: z.string().min(1).max(8192) }),
  z.object({ kind: z.literal('project'), projectKey: z.string().min(1).max(1024) })
])

export type AiVaultSearchScopeIdentity = z.infer<typeof AiVaultSearchScopeIdentitySchema>