genui_mock 0.1.1 copy "genui_mock: ^0.1.1" to clipboard
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 (from 0.9.2).
  • genui 0.10.0 moved its A2UI message types (e.g. A2uiMessage, CreateSurfaceCreateSurfaceMessage) out to package:a2ui_core and stopped re-exporting them. GenUiMockTransport.incomingMessages is now typed against a2ui_core's A2uiMessage, and genui_mock now depends on a2ui_core: ^0.1.0 directly.
  • 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 live Stream<String> of model chunks (with timing) into a fixture, forwarding chunks through unchanged.
  • GenUiFixturePlayer / replayTurn: replays a fixture's turns as Stream<String>, either instantly or paced to the original timing.
  • GenUiMockTransport: implements genui's Transport interface by replaying a fixture through genui's own A2uiTransportAdapter. Built against genui 0.9.2.
2
likes
150
points
126
downloads

Documentation

API reference

Publisher

verified publisherjneela.dev

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#genui #testing #mocking #fixtures

License

MIT (license)

Dependencies

a2ui_core, flutter, genui

More

Packages that depend on genui_mock