Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

539 B
Raw Blame
/** Largest accepted session message, including the encoded command result. */
export const MAX_CLI_SESSION_FRAME_BYTES: number;

/** Length-prefixed JSON frame shared by the session parent and worker. */
export function encodeCliSessionFrame(value: unknown): Buffer;

/**
 * Parse complete frames from a byte stream. An oversized or malformed frame
 * fails the reader instead of resynchronizing on a later length.
 */
export function createCliSessionFrameReader(
  onFrame: (value: unknown) => void,
): (chunk: Buffer | string) => void;