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
import { z } from 'zod'
import {
ARTIFACT_MAX_CONTENT_BYTES,
ARTIFACT_MAX_REQUEST_BYTES,
artifactContentByteLength,
artifactWriteRequestByteLength
} from '../artifacts'
export const CloudOptions = {
apiUrl: z.string().max(2_048).optional(),
authToken: z.string().max(16_384).optional()
}
export const ListOptions = z.object({
...CloudOptions,
cursor: z.string().min(1).max(2_048).optional()
})
export const SourceRequest = z.object({
sourceKey: z.string().min(1).max(32_768),
...CloudOptions
})
export const WriteRequest = z
.object({
sourceKey: z.string().min(1).max(32_768),
content: z
.string()
.min(1)
.max(ARTIFACT_MAX_CONTENT_BYTES)
.refine((content) => artifactContentByteLength(content) <= ARTIFACT_MAX_CONTENT_BYTES, {
message: 'Artifact content exceeds the 10 MiB limit.'
}),
contentType: z.enum(['text/html', 'text/markdown']),
fileName: z.string().min(1).max(512),
title: z.string().max(512).optional(),
...CloudOptions
})
.refine((request) => artifactWriteRequestByteLength(request) <= ARTIFACT_MAX_REQUEST_BYTES, {
message: 'Artifact request exceeds the supported size.'
})
export const ArtifactsDeleteParams = z.object({ id: z.string().min(1), ...CloudOptions })