ca85d9fe69
- Changed `DEFAULT_RELAY_URL` in `@oh-my-pi/pi-wire` from `wss://relay.omp.sh` to `wss://my.omp.sh` and updated the constants, collab-link, and join-command tests asserting the old origin. - Added `DEFAULT_SHARE_URL` (`https://my.omp.sh/s`) to pi-wire with its changelog entry; it shares a changed run with the relay constant and is consumed by the upcoming /share work. - Updated collab-web canonical/OG/twitter URLs in `index.html`, `robots.txt`, `sitemap.xml`, README, and the `local-relay.ts` doc comment to the new domain. - Refreshed the `/collab` entry in the coding-agent changelog to reference the new relay origin.
19 lines
540 B
TypeScript
19 lines
540 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://my.omp.sh");
|
|
});
|
|
});
|