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.
17 lines
682 B
TypeScript
17 lines
682 B
TypeScript
/**
|
|
* `omp join <link>` must route to the registered `join` subcommand instead of
|
|
* being rewritten to `launch join <link>` and forwarded to the LLM as an
|
|
* initial prompt (same failure mode as #1496).
|
|
*/
|
|
import { describe, expect, test } from "bun:test";
|
|
import { isSubcommand, resolveCliArgv } from "@oh-my-pi/pi-coding-agent/cli-commands";
|
|
|
|
describe("join command is registered as a top-level subcommand", () => {
|
|
test("CLI runner routes `join <link>` to the join command, not launch", () => {
|
|
expect(isSubcommand("join")).toBe(true);
|
|
expect(resolveCliArgv(["join", "wss://my.omp.sh/s/abc#key"])).toEqual({
|
|
argv: ["join", "wss://my.omp.sh/s/abc#key"],
|
|
});
|
|
});
|
|
});
|