@dynui/signal
v0.1.0
Published
DynUI signal evaluation: resolve signal-path conditions against a SignalProfile for generation and experiments.
Downloads
189
Readme
@dynui/signal
Resolve and evaluate signal-path conditions against a SignalProfile, and evaluate
domain SignalModels. Shared by generation, experiments, and telemetry.
API
getSignal(profile, path)— resolve a dotted path (behavior.*,preferences.*,traits.*are flat namespaced maps; everything else is a nested lookup).evalCondition(profile, cond)/matchesAll(profile, conds)— evaluateSignalConditions (gt|gte|lt|lte|eq|neq|in|exists).inferSegment(profile, model)— domain-agnostic segment inference from aSignalModel(weighted/gated signals →{ primary, confidence, secondary? }, with cold-start and preference-override policy).applyDecay(behavior, elapsedMs, halfLifeMs)— exponential time decay so stale behavior drifts back toward neutral.
