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.

794 B
Raw Blame
import { ipcRenderer } from 'electron'
import type {
  WslDriveProjectConversionResult,
  WslDriveProjectPreview
} from '../../shared/wsl-drive-project-types'

/** Converting a WSL project on a Windows drive to Windows Git; main gates every call. */
export type WslDriveProjectApi = {
  preview: (projectId: string) => Promise<WslDriveProjectPreview>
  /** Checks again and prepares the repo; the caller saves the returned runtime preference. */
  convert: (request: {
    projectId: string
    alignLineEndings: boolean
  }) => Promise<WslDriveProjectConversionResult>
}

export const wslDriveProjectApi: WslDriveProjectApi = {
  preview: (projectId) => ipcRenderer.invoke('wslDriveProject:preview', projectId),
  convert: (request) => ipcRenderer.invoke('wslDriveProject:convert', request)
}