Files
oh-my-pi/packages/wire/test/constants.test.ts
T
can1357 8fa1f6c250 feat: added shared collab wire protocol and web guest collaboration client
- Added @oh-my-pi/pi-wire and reworked collab protocol types into shared contracts.
- Added wire-compatibility guards in coding-agent host to block unsupported events.
- Added standalone collab-web package with guest UI, mock-host tooling, and local relay.
- Added secure room-link validation, WebCrypto framing, and safer socket routing.
2026-06-12 11:54:41 +02:00

19 lines
543 B
TypeScript

import { describe, expect, it } from "bun:test";
import {
COLLAB_PROMPT_MESSAGE_TYPE,
COLLAB_PROTO,
DEFAULT_RELAY_URL,
ENVELOPE_HEADER_LENGTH,
ROOM_ID_BYTES,
} from "../src";
describe("collab wire constants", () => {
it("exports the protocol constants consumed by host, guest, and relay links", () => {
expect(COLLAB_PROTO).toBe(1);
expect(COLLAB_PROMPT_MESSAGE_TYPE).toBe("collab-prompt");
expect(ENVELOPE_HEADER_LENGTH).toBe(4);
expect(ROOM_ID_BYTES).toBe(16);
expect(DEFAULT_RELAY_URL).toBe("wss://relay.omp.sh");
});
});