Commit Graph
4 Commits
Author SHA1 Message Date
Jeremy lewi 54d765635a refactor: split wasm harness into reusable library surface
Expose a pure Rust EmbeddedHarness API in codex-wasm-harness so downstream browser apps can depend on the crate directly without going through the demo-specific wasm_bindgen wrapper. Introduce trait seams for Responses transport, tool execution, and event delivery, move shared response/event types into dedicated modules, and keep BrowserCodex as a thin compatibility adapter so the existing browser demo continues to build and run unchanged.
2026-04-14 09:25:53 -07:00
Jeremy Lewi 11e16ef2e8 feat: run a real browser-side responses tool loop
Upgrade the wasm harness from a one-shot sampler to a real Responses API loop that uses the Codex prompt, handles function_call / function_call_output turns, and exposes a browser exec_js callback. The example page now provisions a sandboxed iframe kernel, persists the API key in localStorage, surfaces browser errors inline, and has been verified in Chrome Testing with a live prompt that executes JavaScript and completes the turn.
2026-04-13 10:18:03 -07:00
Jeremy Lewi fa5d14a81f feat: move wasm sampling into rust 2026-04-10 17:09:07 -07:00
Jeremy Lewi 032b8dddb6 feat: add codex wasm harness prototype 2026-04-10 16:41:22 -07:00