Expand description
In-world Codex reader — the “inspect” side of the Thread.
When the player inspects a Codex-linked placement, this fetches the canonical
entry from the main agent’s live endpoint (GET <base>/codex/entities/:slug)
on a background thread and hands back a display panel. Anonymous reads see
the public tier; a traveler carrying a Passport presents it as a bearer
token, unlocking whatever tier their identity holds (under-tier reads still
answer — with the universe’s in-fiction refusal).
Failures degrade gracefully (the world keeps running — super-stable tenet);
successes are cached. The base URL comes from INFINITE_CODEX_BASE
(default https://api.pixygon.io/v1); when the resolver is wired it will
supply codexBase per world.
Structs§
- Codex
Client - The in-world Codex reader.
- Codex
Entry - A Codex entry, shaped to the main agent’s read API (tolerant to extra fields).
- Codex
Panel - What to draw for the Codex reader this frame (owned so egui closures are free).