Files
oh-my-pi/packages/coding-agent/test/join-command.test.ts
T
can1357 3e90371f5c feat(coding-agent): added collaborative sessions with host and guest command support
- Added AES-GCM room-key crypto, relay link parsing, and invalid-link validation.
- Added `/collab`, `/join`, and `/leave` command handling for collaborative sessions.
- Added startup `join` argument wiring to execute `/join` during interactive launch.
- Added status-line, prompt, and command-routing updates for guest/host collaboration UX.
2026-06-12 10:54:28 +02:00

17 lines
688 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://relay.omp.sh/s/abc#key"])).toEqual({
argv: ["join", "wss://relay.omp.sh/s/abc#key"],
});
});
});