forked from Blendman974/faceclaw
The companion half of the ring protocol, offered less as finished UI than as an executable answer to "what does this ring data actually mean" -- the part that took two sessions to work out and that a future contributor would otherwise have to redo. - app/health/: wire->domain conversion, an append-only on-device store with deduping ingest, rollups, a per-day step-bucket ledger, sleep stage mapping (0=wake 1=REM 2=light 3=deep, verified against 34 real nights), and chart derivations. - app/apps/health/: a glasses glance page over that store. - tools/health-preview.cjs: renders the real chart code headlessly, so layout can be checked without an emulator. - 26 new tests, all passing. Three clock frames meet in this data and mixing them up causes real bugs, so they are documented at each site. The ring's clock is deliberately set to now + 4h (matching what a real Even write carries), so every timestamp it reports is in that shifted frame and must be corrected on read. Sleep is the exception: it needs -8h, twice the correction, confirmed against a known night. Why the ring wants these quantities is unexplained -- the code says so rather than inventing a tidy mechanism, because the tidy story was tried and measurement falsified it. Collection runs on a wall-clock-aligned tick at :01 and :31. Aligned because the ring's step buckets close on 10-minute boundaries, and because an elapsed timer drifts off the boundary it is meant to track; offset by a minute because firing exactly on the boundary risks catching a bucket before it is finalised. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
64 lines
1.7 KiB
TypeScript
64 lines
1.7 KiB
TypeScript
import { type AppDefinition } from "./app-definition";
|
|
import aiChatApp from "./ai-chat";
|
|
import launcherApp from "./launcher";
|
|
import timerApp from "./timer";
|
|
import calculatorApp from "./calculator";
|
|
import terminalApp from "./terminal";
|
|
import filesApp from "./files";
|
|
import musicApp from "./music";
|
|
import nightscoutApp from "./nightscout";
|
|
import healthApp from "./health";
|
|
import transcribeApp from "./transcribe";
|
|
import teleprompterApp from "./teleprompter";
|
|
import microphonesApp from "./microphones";
|
|
import notificationsApp from "./notifications";
|
|
import calendarApp from "./calendar";
|
|
import weatherApp from "./weather";
|
|
import navigateApp from "./navigate";
|
|
import compassApp from "./compass";
|
|
import roamApp from "./roam";
|
|
import blocksApp from "./blocks";
|
|
import minesweeperApp from "./minesweeper";
|
|
import freecellApp from "./freecell";
|
|
import pinballApp from "./pinball";
|
|
import flappyApp from "./flappy";
|
|
import developerApp from "./developer";
|
|
import evenhubApp from "./evenhub";
|
|
import glanceboardApp from "./glanceboard";
|
|
import settingsApp from "./settings";
|
|
|
|
/**
|
|
* Every app, in launcher-grid order (the launcher itself is first but hidden
|
|
* from the grid). The sole registry: the controller, launcher, and assistant
|
|
* tools all discover apps here.
|
|
*/
|
|
export const ALL_APPS: readonly AppDefinition[] = [
|
|
launcherApp,
|
|
aiChatApp,
|
|
timerApp,
|
|
calculatorApp,
|
|
terminalApp,
|
|
filesApp,
|
|
musicApp,
|
|
nightscoutApp,
|
|
healthApp,
|
|
transcribeApp,
|
|
teleprompterApp,
|
|
microphonesApp,
|
|
notificationsApp,
|
|
calendarApp,
|
|
weatherApp,
|
|
navigateApp,
|
|
compassApp,
|
|
roamApp,
|
|
blocksApp,
|
|
minesweeperApp,
|
|
freecellApp,
|
|
pinballApp,
|
|
flappyApp,
|
|
developerApp,
|
|
evenhubApp,
|
|
glanceboardApp,
|
|
settingsApp,
|
|
];
|