leonard_host
A pure-Dart VM-service host for Leonard. ExplorationHost exposes a set of
leonard_contract extensions over the same ext.leonard.* VM-service
surface the Flutter binding hosts — minus the Flutter-only core fragment
(semantics / routes / screenshot) — so a non-Flutter Dart program can be
perceived and driven live by leonard_cli / leonard_drive.
final host = ExplorationHost(extensions: [MyExtension()]);
await host.install(); // registers ext.leonard.core.handshake,
// core.get_stable_observation, and a per-tool extension.
Run the hosting program with the VM service enabled (e.g.
dart run --enable-vm-service); the driver connects to the printed ws://…/ws.
example/canonical_perception_extension.dart
is a runnable pure-Dart extension using the canonical synchronous
Component contract:
dart run example/canonical_perception_extension.dart
Its observation remains nested under extensions.example.
Pre-1.0 and experimental; APIs may change before 1.0.
Libraries
- leonard_host
- Pure-Dart VM-service host for Leonard.