Show in Diagnostics what the glasses deliver (event types only)

During the second device session a tap on the glasses did nothing and the
phone page could not show whether the Even app had delivered any event. The
Even adapter now counts gesture/lifecycle events, ignored events and audio
frames and records the last non-audio event by envelope and type code
(never audio or content). The phone's Diagnostics shows it and refreshes
when an event arrives, including one that changes no state.

Not reviewed. Not deployed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Dan
2026-11-21 13:05:45 -08:00
co-authored by Claude Fable 5.2
parent 7f055d490f
commit b8191a7bd2
5 changed files with 87 additions and 1 deletions
+7
View File
@@ -27,4 +27,11 @@ export interface DevicePort {
* land later, so `false` is "not confirmed", never "not written" and never "written".
*/
storageSet(key: string, value: string): Promise<boolean>;
/**
* Optional, for the phone's Diagnostics only: a one-line summary of what the glasses runtime
* has delivered (counts and event types; never audio or any content).
*/
inputSummary?(): string;
/** Optional: called whenever `inputSummary()` would change. */
onInputActivity?(listener: () => void): () => void;
}