Repository navigation
feat(core): add headless protocol core - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the headless core of the Flutter stream SDK: protocol constants, binary control message encoders, typed signalling messages and the reconnect controller. All of it is pure Dart (no WebRTC, network or UI) and is proven against the shared conformance fixtures at
v0.1.0, so it behaves like@mobilerun/react.Changes
lib/src/protocol/: constants generated fromconstants.json(generator intool/), encoders for touch, scroll, hover, keycode, text and set-clipboard, signalling models for every client and server message with the phase-dependent ignore rules, and stream timing and data channel constants.lib/src/core/:ReconnectController(backoff 1–30 s with ±25 % jitter, 6 attempts, 30 s stability refill, one heal per cycle, wake handling, target-change deferral, 45 s watchdog) driven through an injectableSchedulerand random source;TimerScheduleradaptsdart:asynctimers.conformance/: vendored fixtures plusVERSION, refreshed withtool/sync-conformance.sh TAG CLONE_PATH.flutter_lints,public_member_api_docs), README and a CI workflow (analyze, format check, test on Flutter 3.47.9).Testing
flutter analyzeanddart format --set-exit-if-changed .are clean.flutter test: 230 tests pass, data-driven over every fixture case, named after the case: 127 control cases, 13 signalling examples, 22 reconnect scenarios, 24 backoff delay cases, plus constants and policy equality. Each test file asserts that executed cases equal the cases in the fixture files.Runtime
n/a — pure core, fixture-tested