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

main
ts 16 lines 582 Bytes
Raw
1 import * as Effect from "effect/Effect";
2 import * as Schema from "effect/Schema";
3
4 import * as DesktopWebLinks from "../../app/DesktopWebLinks.ts";
5 import * as IpcChannels from "../channels.ts";
6 import * as DesktopIpc from "../DesktopIpc.ts";
7
8 export const setReady = DesktopIpc.makeIpcMethod({
9 channel: IpcChannels.WEB_LINK_READY_CHANNEL,
10 payload: Schema.Boolean,
11 result: Schema.Void,
12 handler: Effect.fn("desktop.ipc.webLinks.setReady")(function* (ready) {
13 const webLinks = yield* DesktopWebLinks.DesktopWebLinks;
14 yield* webLinks.setRendererReady(ready);
15 }),
16 });