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.

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

const WorkspaceCreationSchema = z.object({
  repoId: z.string(),
  /** Set after persistence, before announcement; readers listing this workspace replace its creation without a gap or duplicate. */
  worktreeId: z.string().optional()
})

/** Host-running creations by creationId; window preflight stays in its pending layer. */
export const WorkspaceCreationsSnapshotSchema = z.object({
  revision: z.number(),
  creations: z.record(z.string(), WorkspaceCreationSchema)
})

export type WorkspaceCreation = z.infer<typeof WorkspaceCreationSchema>
export type WorkspaceCreationsSnapshot = z.infer<typeof WorkspaceCreationsSnapshotSchema>