diff --git a/AGENTS.md b/AGENTS.md index b599384..bbd1456 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,6 +1,7 @@ # Working on Jeview -Jeview is a local gateway for Jev (TypeSafe System One) with a live viewer. To *use* a running Jeview, read +Jeview is a local visualizer for Jev (TypeSafe System One): a gateway your code sends its calls through, with a live +viewer. It is unofficial, and not affiliated with TypeSafe AI. To *use* a running Jeview, read [llms.txt](llms.txt), or `/llms.txt` on the Jeview itself. This file is for changing the code. ## The lie of the land diff --git a/README.md b/README.md index b83e152..5e15103 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ > Agents: [llms.txt](llms.txt) says how to use a running Jeview, and [AGENTS.md](AGENTS.md) how to work on this repository. -An unofficial local middleman for Jev ([TypeSafe](https://typesafe.ai) System One), with a live view of every call. -Jeview is an independent project: it is not made or endorsed by TypeSafe. +An unofficial local visualizer for Jev ([TypeSafe](https://typesafe.ai) System One): a live view of every call your code +makes. Jeview is an independent project. It is not affiliated with TypeSafe AI, nor made or endorsed by it. ``` your code → Jeview (127.0.0.1:4777) → TypeSafe (api.typesafe.ai) diff --git a/demo/pixel-knight.ts b/demo/pixel-knight.ts index 4935ff9..ef1e416 100644 --- a/demo/pixel-knight.ts +++ b/demo/pixel-knight.ts @@ -309,6 +309,7 @@ const server = createServer((req, res) => { } res.writeHead(404).end(); }); +server.on("error", (error: NodeJS.ErrnoException) => { console.error(error.code === "EADDRINUSE" ? `Port ${port} is already in use. If Pixel Knight is already running, open http://127.0.0.1:${port}/; otherwise start this one on another port: --port ${port + 1}` : `Pixel Knight could not start: ${error.message}`); process.exit(1); }); server.listen(port, "127.0.0.1", () => console.log(`Pixel Knight: open http://127.0.0.1:${port}/ to watch Jev play (through ${url}). Ctrl-C stops it.`)); process.on("SIGINT", () => process.exit(0)); process.on("SIGTERM", () => process.exit(0)); diff --git a/demo/support-desk.ts b/demo/support-desk.ts index 0d2259d..a10f675 100644 --- a/demo/support-desk.ts +++ b/demo/support-desk.ts @@ -156,6 +156,7 @@ const server = createServer((req, res) => { } res.writeHead(404).end(); }); +server.on("error", (error: NodeJS.ErrnoException) => { console.error(error.code === "EADDRINUSE" ? `Port ${port} is already in use. If Support Desk is already running, open http://127.0.0.1:${port}/; otherwise start this one on another port: --port ${port + 1}` : `Support Desk could not start: ${error.message}`); process.exit(1); }); server.listen(port, "127.0.0.1", () => console.log(`Support Desk: open http://127.0.0.1:${port}/ to watch Jev triage the inbox (through ${url}). Ctrl-C stops it.`)); process.on("SIGINT", () => process.exit(0)); process.on("SIGTERM", () => process.exit(0)); diff --git a/jeview.ts b/jeview.ts index 903e298..43a2c4e 100644 --- a/jeview.ts +++ b/jeview.ts @@ -1,4 +1,4 @@ -// Jeview: a local middleman for Jev with a live view of every call (README.md). +// Jeview: a local visualizer for Jev, with a live view of every call (README.md). // node jeview.ts [--port 4777] [--dir ~/.local/share/jeview] // Open http://127.0.0.1:4777/, add your Jev key (the key icon), and send Jev requests to http://127.0.0.1:4777/v1/systemone // (or /