PackageTrack
Sign in Get early access

agent_wires_probe

Runtime probe that exposes a Flutter app's widget tree to QA agents over the Dart VM service. Pairs with agent_wires_mcp.

0.1.9 mohn93/agent-wires

What this package is like to depend on

Last release 2 months ago

03 Jun 2026

Too new to tell

only 2 release windows

Nearly every release is documented

notes for 7 of 7 stable releases

Nothing withdrawn

no release was ever pulled

3 months old

7 releases · first in 2026

7 releases in the last 12 months

see the full history below

Release timeline

7 releases · May 2026 to Jun 2026
Release Pre-release

Releases

latest 7
  1. 0.1.9 03 Jun 2026
    Release notes

    agent_wires_probe 0.1.9 — scroll (#12) + screenshot (#13) reliability…

    Open source →
    Release notes

    Fixes screenshot returning a stale frame — most visibly "one navigation behind": a freshly-navigated, fully idle screen captured the previous route, byte-identical across repeated calls (#13).

    • Root cause: the wrong RepaintBoundary was captured. Flutter wraps every Navigator route in its own RepaintBoundary (_ModalScope). The capture path selected the first boundary in pre-order traversal — the bottom/oldest route in the stack, which the current route covers. Its retained layer still holds whatever it last painted (the previous screen, or a mid-transition frame), and the Overlay never repaints it — which also made '!debugNeedsPaint' assert on that covered route even when the binding was idle.
    • Fix: capture the visible route. A covered route's layer is detached from the live scene while the visible route's is attached, so the capture now picks the largest attached boundary. debugNeedsPaint is deliberately not part of the selection — the visible route can be transiently dirty (e.g. a blinking text cursor); that case is still handled by the existing settle-and-retry.
    Open source →
  2. 0.1.7 02 Jun 2026
    Release notes

    Adds an on-screen action overlay — a narration layer for a human watching the agent drive the app. Debug-only (like the rest of the probe) and on by default; it never appears in the agent's screenshot or snapshot.

    • Draws a ripple where the agent taps/long-presses, a trail for swipes/scrolls and back, a highlight box (with caption) for enter_text/clear_text and inspect/point-at, and a brief border flash + badge for screenshot and snapshot.
    • Rendered via a single IgnorePointer overlay inserted into the app's topmost Overlay; effects auto-expire and are capped so a burst can't accumulate. The host is never installed while the overlay is disabled, so it can't perturb the app's element layout when off.
    • Kept out of the agent's perception: the snapshot walker skips the overlay subtree (and the snapshot occlusion pass never treats it as a covering page), and the screenshot path suppresses the overlay for the captured frame.
    • Toggle at runtime with the new ext.qa.set_overlay extension (paired with the MCP set_action_overlay tool); compile-time opt-out via AgentWiresProbe.install(actionOverlay: false).
    Open source →
  3. 0.1.6 01 Jun 2026
    Release notes

    Docs-only release. No code or API changes — refreshes the README so the pub.dev page reflects the 0.1.5 screenshot and ping version-reporting behaviour and bumps the install snippet to ^0.1.6.

    Open source →
  4. 0.1.5 01 Jun 2026
    Release notes

    Screenshot reliability + version reporting from a real LLM-agent driving session. No breaking API changes; AgentWiresProbe.install() is unchanged.

    screenshot — capture during repaint and before first frame

    • Captures while a TextField is focused. RenderRepaintBoundary.toImage asserts !debugNeedsPaint in debug builds, so a focused text field — whose blinking cursor repaints every frame — kept the root boundary perpetually dirty and screenshot always failed mid-edit ('!debugNeedsPaint': is not true). Capture is now optimistic with a settle-and-retry: on failure it commits a frame (which also defeats stale captures) and retries across the windows between cursor blinks where the boundary is clean.
    • Pre-first-frame no longer hangs. The "no frame yet" path previously awaited endOfFrame unbounded, which could block the call indefinitely when no frame is being produced. The frame wait is now bounded (a live app lands one in ~16ms; the timeout is only a safety net), and the no RepaintBoundary found error explains the cause and points at wait_for_idle.

    ping — reports the probe version

    • ext.qa.ping now returns {"ok": true, "probe_version": "0.1.5"}. The MCP server reads this to warn on probe/server version skew, since protocol drift between the two has been observed to cause odd hangs. probeVersion is exported from the package and pinned to the pubspec version.
    Open source →
  5. 0.1.4 25 May 2026
    Release notes

    Perception-accuracy fixes from real LLM-agent driving sessions. No API changes; AgentWiresProbe.install() is unchanged.

    Snapshot — only report what the user can actually see and touch

    • Transparent text-editing overlays no longer drop the page. When a text field is focused, Flutter inserts text-editing / selection / autocomplete overlay entries wrapped by InheritedTheme.captureAll (_CaptureAll). They fill the viewport geometrically but paint nothing, so the containment cover test treated them as a covering page and occluded the real route beneath — every text-field screen (DomainRegisterRoute, etc.) came back with an empty snapshot. The cover test now ignores transient overlays (a _CaptureAll with no _ModalScope/ModalBarrier in its subtree); only opaque routes and modal barriers occlude.
    • Pointer-blocked elements are filtered ("phantom FAB"). An expandable FAB keeps its collapsed sub-items mounted and laid out but wraps them in IgnorePointer/AbsorbPointer, so a tap can't reach them. Elements under an ignoring/absorbing wrapper are no longer surfaced as actionable. Opacity is deliberately not used as the signal — a transparent widget still receives taps in Flutter, so hiding by opacity would diverge from real tap behaviour.
    Open source →
  6. 0.1.3 25 May 2026
    Release notes

    Post-launch iteration driven by real LLM-agent driving sessions. No breaking API changes; the public AgentWiresProbe.install() / AgentWiresProbe.routeTracker.createObserver() shape is unchanged.

    Snapshot — route-aware and state-aware

    • Route scoping (the big one). Pushed routes don't unmount what's beneath them — Flutter keeps lower pages alive for the back-swipe parallax. The walker previously enumerated every layout-active element, so a snapshot of DomainDetailsRoute would include the home screen's FAB, stats cards, and bottom nav (shifted left ~146px by parallax but still in the tree). Now per-Navigator overlay introspection drops any entry buried under a topmost viewport-covering page. Covering is judged by containment of the owning theater's box (not the global window), so device_preview and nested navigators are scoped against their real viewport.
    • Widget state in the snapshot. Each element gains an optional state field: "on" / "off" for Switch / SwitchListTile / CupertinoSwitch; "checked" / "unchecked" / "indeterminate" for Checkbox / CheckboxListTile; "selected" / "unselected" for Radio / RadioListTile; the value for Slider / RangeSlider. A post-pass hoists state from a contained child to the smallest containing labelled parent, so a labelled SwitchListTile reports state: "on" directly without the agent inspecting the inner Switch.
    • Compact by default. unresolved[] is now omitted and replaced by unresolved_count unless the MCP caller passes include_unresolved: true — cuts snapshot size by ~60% on real screens.
    • Diagnostics. Snapshot output gains an optional _debug.occlusion block: {theaters_found, entries_processed, entries_dropped, viewport_found, theaters: [...]}. Lets the agent verify the route-scoping pass ran and (when it didn't drop anything) see per- theater entry descriptions so the failure mode is debuggable without instrumenting the probe.

    inspect — drill into custom widgets

    • Descendants subtree. ext.qa.inspect now returns a descendants[] array with {depth, widget_type, visible_text?} for every element up to descendant_depth (default 3, capped at 500 entries). Lets the agent answer "what's inside this Card?" without re-snapshotting.
    • CustomPaint metadata. Descendant entries for CustomPaint surface painter (the painter's runtime type, e.g. "PrecisionReactiveSliderPainter"), foreground_painter if set, and rendered size. Tells the agent "this region is drawn pixels, not addressable widgets" — the integrator can wrap with Semantics(button: true, label: '…') or attach a Key to make it targetable. README has an integrator note covering this.

    Sync — diagnose stuck idles

    • ext.qa.wait_for_idle returns a structured IdleStatus JSON: {idle, blocked_by, in_flight_http, has_scheduled_frame, in_transient_callback}. On timeout, blocked_by lists what's still active (scheduled_frame, transient_callback, in_flight_http:N) so the agent knows whether to wait, retry, or proceed.
    • New ignore_animations: true param drops the scheduled-frame and transient-callback checks; waits only for HTTP. Use on screens with continuous spring animations (custom sliders, looping animations) that never visually settle.

    route_stack — works without integrator wiring

    • Multi-navigator route tracking now reads Navigator.pages from the live Element tree at snapshot time. AutoRoute / GoRouter / any page-based router gets full route_stack coverage with zero observer wiring — createObserver() becomes optional (still available as a fallback for imperative Navigator.pushNamed apps).
    • Returns the full back-stack of each navigator, deepest-first: ["UserProfileRoute", "AccountRoute", "MainRoute"] instead of just the leaf.

    screenshot — first-frame race fixed

    • If no RepaintBoundary is found on the first call (cold start, no frame has rasterized yet), awaits one endOfFrame and retries before failing. Eliminates the spurious "no RepaintBoundary found" the agent used to hit on the first screenshot of a session.
    Open source →
  7. 0.1.0 23 May 2026
    Release notes

    Initial public release.

    • VM-service extensions for an LLM agent to introspect and drive a running Flutter app: ext.qa.snapshot, inspect, screenshot, tap, long_press, swipe, enter_text, clear_text, scroll, press_back, wait_for_idle, wait_for_route, wait_for_element, get_logs, get_network, ping.
    • Denoised semantic tree: a typical 800-node tree collapses to ~15–30 agent-targetable elements via a three-pass classify / dedup / label pipeline.
    • Multi-Text label inference — invoice cards, list rows, and other multi-text containers get a label that distinguishes one card from the next (e.g. "Sub Total · 9,709.50 LYD · Unpaid · 342844").
    • Multi-navigator route tracking — routeStack surfaces every observed navigator's top route so tab apps (AutoRoute, nested Navigators) can be told apart.
    • HTTP capture — get_network returns method / url / status / duration per exchange, drained incrementally via a since cursor.
    • Log capture — get_logs tees debugPrint, FlutterError.onError, and PlatformDispatcher.onError into a 500-entry ring buffer.
    • No-op in kReleaseMode; the probe never ships to your users.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive