Repository navigation
Two additions on top of v0.1.2. Built and tested against Codex 0.171.0. Ordinary engines are unchanged, so an application on v0.1.2 needs no change.
Item views (@chirality/engine-ui)
ItemView, a React context exported from the package root (typeItemViewer), lets an application show an item its own way: a node, ornull/undefinedfor the standard view (neverfalse).StandardLayout'sitemViewprop overrides an outerItemViewwhen given. Switching it keeps the conversation as it is.- An item with a node is a block of its own, and the work on either side still folds. Items with no node and no standard view are dropped before grouping.
The embedded engine (chirality_engine::embedded)
- A separate, small
EmbeddedEnginefor an application that owns the Codex process and hands the engine a framed JSON-RPC transport. It is designed indocs/embedding.md. - One thread per session, with its own sandbox and approval policy. Tool calls arrive in the ordered event stream, and the application answers them; every other server request is refused, with an event published first.
- Every allocation is charged before it happens against a maximum the application reserves up front (
embedded_max_bytes). A counting-allocator test holds it to that maximum, and to zero bytes after drop.
Pin it by tag or by commit c3a5c5fc6b618d7cc17ee00e9240104baeeccecf.