packages/cua-driver/docs/embedded-host-uniffi-implementation-journal.md
Status: local implementation complete; replacement PR and cross-platform CI pending
Make embedded hosting a daemon lifecycle mode shared by both Cua Driver client surfaces:
CuaDriver;cua-driver mcp proxy;origin/main at b8a0f32a06c75225ba24ebb5ab14f6507fa90d15.injaneity) at
e2ccf711508daf1cbe2c3f9c162c29d2169770dd.git cherry-pick -x; the replacement PR
must say Salvaged from #2400 and retain the contributor's authorship.CuaDriver in standalone and embedded modes.EmbeddedCuaDriverHost names the owner; it is not a second SDK client.CUA_DRIVER_* variables are
not inherited by an embedded child./embedded may provide ergonomic adapters, but canonical lifecycle behavior
belongs to Rust and is generated into Python and TypeScript.| Daemon mode | SDK route | Agent route |
|---|---|---|
| Standalone | UniFFI SDK to default/explicit endpoint | cua-driver mcp |
| Embedded | UniFFI SDK to host connection endpoint | returned MCP launch descriptor |
Each cell must prove the same contract metadata and representative session/tool behavior. A mixed-client test must use SDK and MCP concurrently against one embedded daemon.
origin/main and PR #2400.agent/cua-driver-embedded-host from latest main.-x attribution./embedded identity tests
passed; npm audit reported zero vulnerabilities.--check modes.0.10.0.-D warnings remains blocked by pre-existing Clippy findings
outside this change; ordinary Rust tests and formatting pass.