Skip to content

v0.2.0

Latest

Choose a tag to compare

@sgttomas sgttomas released this 22 Nov 11:46
c3a5c5f

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 (type ItemViewer), lets an application show an item its own way: a node, or null/undefined for the standard view (never false).
  • StandardLayout's itemView prop overrides an outer ItemView when 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 EmbeddedEngine for an application that owns the Codex process and hands the engine a framed JSON-RPC transport. It is designed in docs/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.