chore(cli): verify a generated app over the Dart VM Service RPC (#3) #63

Merged
scheerenkevin merged 1 commit from chore/3-verify-vm-rpc into develop 2026-08-02 20:27:23 +00:00
scheerenkevin commented 2026-08-02 20:27:05 +00:00 (Migrated from github.com)

Closes #3 (merges to develop; close manually).

Proves the sprout create deliverable actually runs, beyond widget tests — over the Dart VM Service RPC (your live-debugging workflow).

  • tool/vm_smoke.dart — connects to a running app's VM Service, waits for the Flutter isolate, reads the rendered tree via ext.flutter.debugDumpApp (asserts the generated Scaffold/NavBar/AppBar/HomeScreen), and round-trips a control extension (ext.flutter.timeDilation). Attempts a best-effort navigation drive via evaluate, skipping cleanly when no expression compiler is present.
  • melos run verify:app — local macOS flow: generate lean → flutter run -d macos → grab the ws:// VM Service URI → run the smoke → tear down. macOS desktop is used for a direct VM Service (web goes via DWDS). Not in check (needs a desktop target).
  • docs/verify.md documents it + the passing run.

Verification

melos run verify:app green end-to-end on macOS (generated default lean = di+l10n+router, booted, VM-inspected, controlled). cli:check green.

🤖 Generated with Claude Code

Closes #3 (merges to `develop`; close manually). Proves the `sprout create` deliverable actually **runs**, beyond widget tests — over the Dart VM Service RPC (your live-debugging workflow). - **`tool/vm_smoke.dart`** — connects to a running app's VM Service, waits for the Flutter isolate, reads the rendered tree via `ext.flutter.debugDumpApp` (asserts the generated `Scaffold`/`NavBar`/`AppBar`/`HomeScreen`), and round-trips a control extension (`ext.flutter.timeDilation`). Attempts a best-effort navigation drive via `evaluate`, skipping cleanly when no expression compiler is present. - **`melos run verify:app`** — local macOS flow: generate lean → `flutter run -d macos` → grab the `ws://` VM Service URI → run the smoke → tear down. macOS desktop is used for a direct VM Service (web goes via DWDS). **Not in `check`** (needs a desktop target). - **`docs/verify.md`** documents it + the passing run. ## Verification `melos run verify:app` green end-to-end on macOS (generated default lean = di+l10n+router, booted, VM-inspected, controlled). `cli:check` green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sprout/sprout!63
No description provided.