leonard_contract 0.1.0 copy "leonard_contract: ^0.1.0" to clipboard
leonard_contract: ^0.1.0 copied to clipboard

Pure-Dart extension contract for Leonard — the Flutter-free types a host (Flutter binding or non-Flutter VM-service host) implements and exposes.

leonard_contract #

The pure-Dart extension contract for Leonard — the Flutter-free types a host implements and exposes, so a Flutter binding (leonard_flutter) and a non-Flutter VM-service host (leonard_host) build on identical contracts.

Contains:

  • LeonardExtension / LeonardTool — the extension + tool authoring contract.
  • PerceptionExtension — the observation mixin (buildPerception() -> Seed), built on genesis_perception.
  • ExtensionRegistry — extension lifecycle dispatch, the handshake manifest, and tool merging.
  • dispatchToolToEnvelope / decodeServiceExtensionParams — VM-service dispatch helpers.

Perception is pull-free: buildPerception() is a synchronous read of state kept current by an out-of-band watcher (genesis ADR-0006) — never make it async.

Pre-1.0 and experimental; APIs may change before 1.0.

0
likes
150
points
360
downloads

Documentation

API reference

Publisher

verified publishermemento.engineering

Weekly Downloads

Pure-Dart extension contract for Leonard — the Flutter-free types a host (Flutter binding or non-Flutter VM-service host) implements and exposes.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

genesis_perception, meta

More

Packages that depend on leonard_contract