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.

552 B
Raw Blame
export const JIRA_PAYLOAD_CHUNK_CHARS = 256 * 1024
export const JIRA_PAYLOAD_MAX_CHARS = 32 * 1024 * 1024

export type JiraPayloadStreamMessage = { type: 'chunk'; content: string } | { type: 'end' }

export function isJiraPayloadStreamMessage(value: unknown): value is JiraPayloadStreamMessage {
  if (!value || typeof value !== 'object' || !('type' in value)) {
    return false
  }
  const message = value as { type?: unknown; content?: unknown }
  return message.type === 'end' || (message.type === 'chunk' && typeof message.content === 'string')
}