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.

785 B
Raw Blame
import { ipcRenderer } from 'electron'
import type { CustomPet } from '../../shared/pet-types'
import type { PetImportFailure } from '../../shared/pet-import-failure-copy'
import type { PreloadApi } from '../api-types'

export const petApi = {
  import: (): Promise<CustomPet | PetImportFailure | null> => ipcRenderer.invoke('pet:import'),
  importPetBundle: (): Promise<CustomPet | PetImportFailure | null> =>
    ipcRenderer.invoke('pet:importPetBundle'),
  read: (id: string, fileName: string, kind?: 'image' | 'bundle'): Promise<ArrayBuffer | null> =>
    ipcRenderer.invoke('pet:read', id, fileName, kind),
  delete: (id: string, fileName: string, kind?: 'image' | 'bundle'): Promise<void> =>
    ipcRenderer.invoke('pet:delete', id, fileName, kind)
} satisfies PreloadApi['pet']