# Working on this project This is a WAI project made from the `messaging` template: an end-to-end encrypted conversation, with threads, reactions, edits and retractions, and a call placed, rung and answered in a room. The conversation's API is under `/msg-api/` and the call's under `/room-api/`; `index.html` holds both pages, each taking `?service=`. - **Build.** Nothing to build: `wai dev` serves the page as it is, with the conversation and the call `wai.json` asks for (`"mode": "call"`, `"messaging": true`). - **Run.** `wai dev`, then open `http://127.0.0.1:8080/` in two browsers. - **Test.** `wai dev --check` starts the relay, the room service, the conversation and this page on one origin, checks each through it, prints what held and stops; it exits non-zero when one did not. Run it after every change. - **Conform.** Messages are records of WAI live-messaging, end-to-end encrypted: the service keeps ciphertext, receipts and signed records only, and its history survives a restart. Never send a message's text to the service in the clear. - `wai.json` is the project file: `wai dev` takes its defaults from its `dev` block, and its `$schema` names the schema editors validate it with. Keep `name` a lowercase DNS label. - Never put a key, a token or any other secret in this repository. Development keys are made in `.wai/` by `wai dev` and stay there; `.gitignore` keeps it out. - WAI's tools for a coding agent: `wai mcp` (`wai setup-agent` registers it).