genui_mock 0.1.2
genui_mock: ^0.1.2 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.2 #
- Upgrade to
genui^0.10.2(from0.10.1). genui0.10.2 fixedA2uiTransportAdapter.incomingTexttrimming every streamed chunk. SinceGenUiMockTransportreplays fixtures through that adapter, replayed prose is now emitted with its recorded whitespace intact: a sentence recorded across two chunks ('the quick '+'brown fox') used to arrive as'the quickbrown fox', and now round-trips byte for byte.- The constraint is
^0.10.2rather than^0.10.1deliberately — byte-for-byte replay is this package's core promise, and 0.10.1 cannot deliver it. - If you had assertions that worked around the old trimming (e.g. expecting
'Hello.'for a recorded'Hello.\n'), they need updating to expect the recorded text. No other API or behavior change. - No change to the fixture format — existing recorded fixtures keep working unchanged, and now replay more faithfully than before.
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.