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

main
ts 22 lines 469 Bytes
Raw
1 import { Runtime } from "foldkit";
2 import "./styles.css";
3
4 import { Flags, Message, Model, init, update, view } from "./main";
5
6 const application = Runtime.makeApplication({
7 Model,
8 Flags,
9 init,
10 update,
11 view,
12 container: document.getElementById("root"),
13 routing: {
14 onUrlRequest: (request) => Message.ClickedLink({ request }),
15 onUrlChange: (url) => Message.ChangedUrl({ url }),
16 },
17 devTools: {
18 Message,
19 },
20 });
21
22 Runtime.hydrate(application);