The best way to control Claude Code, Codex and more from any computer or phone
| 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 | } |