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 { describe, expect, it } from 'vitest'
import { structuredCloneMessageBytes } from './plugin-panel-message-budget'
describe('structuredCloneMessageBytes', () => {
it('counts binary backing stores instead of JSON object projections', () => {
const buffer = new ArrayBuffer(128)
const tinyView = new Uint8Array(buffer, 0, 1)
expect(structuredCloneMessageBytes(tinyView, 256)).toBeGreaterThanOrEqual(128)
expect(structuredCloneMessageBytes(new Blob([new Uint8Array(80)]), 256)).toBe(80)
})
})