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.

570 B
Raw Blame
import { z } from 'zod'
import {
  normalizeCustomWorktreeVisibilitySources,
  normalizeWorktreeVisibilitySourcePreferences
} from '../worktree/visibility-sources'

export const WorktreeVisibilityDefaultsUpdate = z
  .object({
    external: z.enum(['hide', 'show']).optional(),
    customSources: z
      .unknown()
      .transform((value) => normalizeCustomWorktreeVisibilitySources(value))
      .optional(),
    sourcePreferences: z
      .unknown()
      .transform((value) => normalizeWorktreeVisibilitySourcePreferences(value))
      .optional()
  })
  .strict()