@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 12 lines 469 Bytes
Raw
1 import { fileURLToPath } from "node:url";
2 // Relative imports let the fixture run under both Bun and Node.
3 import * as Effect from "effect/Effect";
4 import { launch } from "../../../src/Local/RpcServer.ts";
5 import { makeEcho } from "./rpc-echo.ts";
6
7 const TestEchoLive = makeEcho();
8 export default TestEchoLive;
9
10 if (process.argv[1] === fileURLToPath(import.meta.url)) {
11 launch((group) => Effect.succeed(group.endsWith("#blocked") ? makeEcho(true) : TestEchoLive));
12 }