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

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