genui_mock 0.1.1
genui_mock: ^0.1.1 copied to clipboard
Record, save, and replay GenUI streaming sessions as deterministic, git-diffable JSON fixtures. Test Catalog widgets against real recorded model output with zero network calls.
0.1.1 #
- Upgrade to
genui^0.10.1(from0.9.2). genui0.10.0 moved its A2UI message types (e.g.A2uiMessage,CreateSurface→CreateSurfaceMessage) out topackage:a2ui_coreand stopped re-exporting them.GenUiMockTransport.incomingMessagesis now typed againsta2ui_core'sA2uiMessage, andgenui_mocknow depends ona2ui_core: ^0.1.0directly.- No change to the fixture format or the JSON wire protocol — this is a Dart-type-only migration on genui's side, so existing recorded fixtures keep working unchanged.
0.1.0 #
- Initial release.
GenUiFixture,RecordedTurn,RecordedChunk: a plain-Dart, JSON fixture format for recorded GenUI sessions.GenUiSessionRecorder: records a liveStream<String>of model chunks (with timing) into a fixture, forwarding chunks through unchanged.GenUiFixturePlayer/replayTurn: replays a fixture's turns asStream<String>, either instantly or paced to the original timing.GenUiMockTransport: implementsgenui'sTransportinterface by replaying a fixture throughgenui's ownA2uiTransportAdapter. Built againstgenui0.9.2.