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

main
ts 14 lines 409 Bytes
Raw
1 import { AtomRegistry } from "effect/reactivity";
2
3 import {
4 disposeOnFoundationReplace,
5 type FoundationHotModule,
6 } from "../lib/foundation-fast-refresh";
7
8 declare const module: { readonly hot?: FoundationHotModule } | undefined;
9
10 export const appAtomRegistry = AtomRegistry.make();
11
12 disposeOnFoundationReplace(typeof module === "undefined" ? undefined : module.hot, () =>
13 appAtomRegistry.dispose(),
14 );