@dynui/telemetry
v0.1.0
Published
DynUI telemetry: turn app interactions into SignalProfile behavior signals and an inferred archetype.
Downloads
156
Readme
@dynui/telemetry
Closes the loop: turn interactions into behavior signals + an inferred segment.
API
- Events:
BehaviorEvent(exposure | impression | tap | dwell | goal | dismissal | render-error | fallback, withid/generationId/treeKey/componentVersion). BatchingLogger(transport, batchSize, enabled?)— buffers + ships events; theenabledpredicate is the analytics consent gate. Sinks:arraySink,consoleSink.markTraining(event, consent)stampstrainable:falsewhen training consent is withheld.- Exposure correctness:
buildExposureEvents(rendered, ctx)(once per rendered component per generation),renderErrorEvent,fallbackEvent,tapEvent. aggregateBehavior(events, manifest)— events → behavior signals, deduped by event id.inferArchetype(behavior, model?),applyBehavior,DEFAULT_FITNESS_SIGNAL_MODEL.
