/** * Shared transport constants for the LensMCP browser-event bridge. * * The bridge is the single WebSocket endpoint that the injected * `@lensmcp/client-runtime` posts envelopes to. For the Vite plugin this * endpoint is born inside the dev server on an ephemeral port; for every * other host (webpack, Next.js, no-build) it runs as a standalone sidecar * on a FIXED, env-overridable port — so the browser runtime can find it * without a build step baking the URL in. * * `DEFAULT_WS_PORT` must agree between the standalone bridge runner * (`@lensmcp/bridge`) and the no-build client entry * (`@lensmcp/client-runtime/auto`), which lives in a separate * browser-targeted package and re-declares the same literal. */ export declare const DEFAULT_WS_HOST = "127.0.0.1"; /** Default fixed port for the standalone bridge sidecar. Override via `LENSMCP_WS_PORT`. */ export declare const DEFAULT_WS_PORT = 5747; /** Env var: bind host for the standalone bridge. */ export declare const ENV_WS_HOST = "LENSMCP_WS_HOST"; /** Env var: bind port for the standalone bridge (`0` selects an ephemeral port). */ export declare const ENV_WS_PORT = "LENSMCP_WS_PORT"; /** Env var: session id stamped onto every event the bridge publishes. */ export declare const ENV_SESSION_ID = "LENSMCP_SESSION_ID"; /** * Largest single WebSocket frame the bridge will accept, in bytes. * * `ws` defaults to 100 MiB per message, and `handleClientEnvelope` JSON-parses whatever arrives — * so the default made one frame from any page the developer visits an out-of-memory lever * (issues/codex-security/32). Browser envelopes are small; the `raw` payload is separately clamped * to 32 KiB downstream, so 1 MiB is generous for a legitimate producer and useless as a weapon. */ export declare const MAX_FRAME_BYTES: number; /** * Largest number of inner envelopes one `batch` frame may carry. * * Batching exists to coalesce a render burst, not to admit an unbounded stream in a single message * (issues/codex-security/19, 21, 32). The client batches per animation frame, so this is far above * anything it produces. */ export declare const MAX_BATCH_EVENTS = 1024;