mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
feat(protocol): add remote session wire protocol
This commit is contained in:
parent
7d86e6233a
commit
56eb685b69
23 changed files with 1886 additions and 2 deletions
|
|
@ -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 })),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue