Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Merge remote-tracking branch 'origin/main' into next/issue-1992
[._.]/ Adam Eivy4d0439c4b285
diff --cc .changelog/NEXT.mdindex 8b71ae1724,680a3e6a44..76cad2b521--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -20,8 -20,9 +20,10 @@@- **[issue-1986] The POST launcher now fills the full desktop width.** The Power On Self Test launcher (`PostSessionLauncher.jsx`) previously wrapped every card in a single ~672px column (`max-w-2xl`), leaving a large dead gutter on wide monitors. It's now a responsive main-plus-sidebar grid (`lg:grid-cols-[minmax(0,1fr)_22rem]`, capped at `max-w-6xl`): the primary session flow — Today's Status, Session Mode toggle, Conditions, and the Start / Quick 5 Min buttons — stays in the left column above the fold, while the Mental Math / Wit & Memory drill summaries and Recent Sessions flow into the right sidebar. On mobile it collapses to a single readable column (Start buttons still prominent), the header action buttons wrap instead of overflowing, and the Start buttons stack on narrow screens. Layout-only — session start, Quick 5 Min, the Test/Train toggle, and condition tags are all unchanged. (`client/src/components/meatspace/post/PostSessionLauncher.jsx`, Closes #1986)- **[issue-1987] The POST drill config now exposes all 14 LLM drill types in a responsive, domain-grouped layout.** The Drill Configuration screen (`PostDrillConfig.jsx`) previously showed a single narrow column that only surfaced 5 of the 14 generatable LLM drills — so the entire **Imagination** family (What If?, Alternative Uses, Story Prompt, Invention Pitch, Reframe) plus **Compound Chain**, **Bridge Word**, **Double Meaning**, and **Idiom Twist** could be generated server-side but never toggled on for a session. All 14 are now shown as toggle cards grouped under **Wordplay / Verbal Agility / Imagination** section headers, laid out in a responsive grid (single column on mobile, up to three columns on desktop) instead of one page-length stack. Enabling any of them and saving persists via `PUT /post/config` and makes the drill appear in Full POST and Quick 5 Min sessions. (`client/src/components/meatspace/post/PostDrillConfig.jsx`, Closes #1987)+ - **[issue-1990] The POST launcher now shows your progress at a glance — streak, trend, and weakest-domain focus.** The Power On Self Test launcher (`PostSessionLauncher.jsx`) previously surfaced only "Today's Status" plus the last three raw scores, even though the server already computes rich analytics that never reached it. It now loads `GET /post/stats` (30-day and 7-day windows) alongside the config/session fetch and renders a compact analytics strip above the fold: a **current streak** card with the same 🔥/⚡/✨ glyphs as the dashboard Daily POST widget (plus your best streak), a **7-day average** card with a trend arrow showing how the last week compares to your 30-day baseline, and a **weakest-domain callout** ("Lowest domain this month: Verbal Agility — 62 avg") derived from per-drill averages mapped to their training domain. A one-click **Practice \<domain\>** button starts a focused session running every enabled drill in your weakest domain — and it always targets a domain you actually have drills enabled for, so it can't dead-end. Everything degrades gracefully with no history (the strip simply doesn't render), and all existing launcher behavior — Full POST, Quick 5 Min, the Test/Train toggle, and condition tags — is unchanged. Extracted the shared `domainLabel` / `computeDomainAverages` helpers into `constants.js` (now reused by History). (`client/src/components/meatspace/post/PostSessionLauncher.jsx`, `constants.js`, `PostTab.jsx`, Closes #1990)- **[issue-1988] POST History is now a responsive analytics dashboard.** The History view (`client/src/components/meatspace/post/PostHistory.jsx`) was a single `max-w-3xl` column that stacked a lone overall-score line chart, a 3-up stat block, and the session table — surfacing only a fraction of what `getPostStats` already computes. It now fills desktop width and surfaces the full stats payload: a 4-up summary of **Sessions / Avg Score / Current Streak / Longest Streak**, a wide **Score Trend** line beside a horizontal **Avg by Domain** bar chart (each domain colored to match its `text-*-400` domain class), and a **Drill Breakdown** card that groups every drill's average into per-domain progress bars — so per-domain and per-drill averages plus streaks are visible without opening a single session. The five training domains (Mental Math / Memory / Wordplay / Verbal Agility / Imagination) are derived from each drill's *type* via `DRILL_TO_DOMAIN`, because the runners persist coarse module keys (`mental-math`, `llm-drills`) rather than domain keys — so all LLM drills split correctly across Wordplay/Verbal/Imagination instead of collapsing into one bucket. Mobile stays single-column; the 7/30/90/All range selector still drives every panel from one fetch. (Closes #1988)+ - **[issue-1989] POST Memory surfaces are now responsive.** The Memory Builder, Practice, and Session Results screens were all pinned to a single narrow `max-w-2xl` column that wasted desktop width. **Memory Builder** (`MemoryBuilder.jsx`) now renders its saved items as a responsive card grid (`grid-cols-1 md:grid-cols-2 xl:grid-cols-3`) — each card lays out the item icon, title, line/chunk meta, and mastery badge above a full-width Practice button (with an aria-labeled delete for non-built-ins), while the create form and description stay in a readable `max-w-2xl` column above the grid. **Memory Practice** (`MemoryPractice.jsx`) widens the reading-oriented screens to `max-w-4xl` — the practice-mode picker (now a two-column card grid), Learn progressive-reveal, and Speed Run — while the active-recall focus steps (Sequence, Fill-in-the-Blank, Spaced Repetition) stay at a comfortable `max-w-2xl` for readability. **Session Results** (`PostSessionResults.jsx`) widens to `max-w-4xl` and lays the per-drill breakdown out in two columns on desktop. Layout-only: create/edit/delete, practice submission, mastery display, and score/breakdown rendering are unchanged; every surface collapses to a single column on mobile. (Closes #1989)+- **[issue-1992] Opt-in adaptive difficulty for mental-math POST drills.** Math drill params (`steps` / `maxDigits` / `maxExponent` / estimation `tolerancePct`) were fixed values from config that never responded to how you were doing. A new **Adaptive difficulty** toggle in the Drill Configuration screen (default OFF, so existing installs are unchanged) makes each math drill nudge its primary difficulty knob from your recent scored performance: sustained high accuracy (≥90% over enough sessions) bumps it one step harder, repeated misses (≤50%) ease it back, all clamped to safe min/max bounds — and it won't move until it has enough scored samples to trust. The adjustment is a pure, unit-tested policy (`server/lib/postAdaptive.js`) applied server-side at drill-generation time, so manual config still wins whenever Adaptive is off. It's fully transparent: each math drill card shows the effective difficulty (e.g. "Adaptive: max digits 2 → 3 (harder · 94% recent)") via a new `GET /post/adaptive-preview` endpoint, so it's never a black box. (`server/lib/postAdaptive.js`, `server/services/meatspacePost.js`, `client/src/components/meatspace/post/PostDrillConfig.jsx`, Closes #1992)## Media Generation