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.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
/** Declared access determines main’s checks; absent means the path must lie in a recognized project root. */
export type LocalFileAccess =
/** A single file the user named (gesture or persisted tab): read in place, regular files only. */
| { kind: 'user-file' }
/** A resource a document's content references (images): limited to that document's roots or folder. */
| { kind: 'document-resource'; documentPath: string }
/** An image a chat transcript or composer shows: any local image file; a network share only inside a project. */
| { kind: 'chat-image' }
/** A document the user opened: renaming it to any path, or adding files in its own folder. */
| { kind: 'document-folder'; documentPath: string }
/** A folder listed through a symlink inside a project that leads out of it; listing only. */
| { kind: 'project-folder-link' }
/** Main's refusal of a request that resolves outside every root it may serve. */
export const PATH_OUTSIDE_ALLOWED_DIRECTORIES =
'Access denied: path resolves outside allowed directories'
// IPC preserves error messages without their classes.
export function isPathOutsideAllowedDirectoriesError(error: unknown): boolean {
return error instanceof Error && error.message.includes(PATH_OUTSIDE_ALLOWED_DIRECTORIES)
}