feat(protocol): add remote session wire protocol

This commit is contained in:
Christian Klotz 2026-07-30 21:45:58 +03:00
parent 7d86e6233a
commit 56eb685b69
No known key found for this signature in database
23 changed files with 1886 additions and 2 deletions

View file

@ -17,6 +17,7 @@ import {
toError,
truncateHead,
} from "@earendil-works/pi-agent-core";
import { decodeCbor, encodeCbor, PROTOCOL_VERSION } from "@earendil-works/pi-protocol";
// Keep this entry browser-safe. It is bundled by scripts/check-browser-smoke.mjs
// to catch accidental Node-only runtime imports in browser-facing package exports.
@ -58,4 +59,6 @@ console.log(
new FileError("not_found", "missing").code,
toError("boom").message,
typeof streamProxy,
PROTOCOL_VERSION,
decodeCbor(encodeCbor({ browser: true })),
);