class FailsafeStore
L3 — the browser failsafe. Survives the server going away entirely.
Reference
What a page imports: the playback helpers, the fail-safe session recorder and the <signal-panel> element. Exported declarations and the comment above each.
javascriptpathappsmodules3public symbols13apps/server/session-recordersession-recorder.js — the browser half of the durability contract.apps/web/playbackplayback.js -- play a recorded session back against its own tag track.apps/web/signal-panel/signal-panelsignal-panel.js -- ONE live-signal panel, for every page that reads the shared bridge.Read from the source without importing or running it.
apps/server/session-recordersession-recorder.js — the browser half of the durability contract.
class FailsafeStore
L3 — the browser failsafe. Survives the server going away entirely.
class SessionRecorder
SessionRecorder — L2 + L3 + L4 behind one object.
Usage: const rec = new SessionRecorder({ app: 'attend-to-send', name: 'arm-a-01', base: '' }); const pre = await rec.preflight(); // L2 disk self-test — CHECK THIS before a long run await rec.start({ csvHeader: 'idx,uv', meta }); await rec.update(record, csvRows, 'block-3'); await rec.finish(record);
function downloadRecovered(obj, filename)
Download a recovered record as a file. Nothing is auto-deleted; the operator decides.
apps/web/playbackplayback.js -- play a recorded session back against its own tag track.
function indexAt(t, rate, n)
Seconds -> sample index, clamped to the record.
function envelope(values, cols)
Min/max envelope with cols columns. Returns [{min, max}] -- every sample lands in a column.
function nextTag(tags, t)
The tag after / before time t (strictly), or null.
function prevTag(tags, t)
function robustRange(values)
Robust vertical scale for a window: median-centred, 1st..99th percentile span. A single blink should not flatten the rest of the trace, and an autoscale that chases it does.
function fmtTime(t)
class Player
apps/web/signal-panel/signal-panelsignal-panel.js -- ONE live-signal panel, for every page that reads the shared bridge.
const betaBadge = ()
function alphaSnrOf(q)
The alpha-SNR part of the bridge's plausibility check, whatever shape it arrives in: a bare number (alpha_snr), or a sub-result object carrying experimental. Null if absent.
class SignalPanel extends HTMLElement
↑↓ to move · ↵ to open · esc to close