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 claim/issue-2040
Adam Eivy733463be9150
diff --cc .changelog/NEXT.mdindex 3fee28c040,8323760947..5c0b07a780--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -25,5 -25,6 +25,7 @@@- Consolidated five component-local duration/uptime/time-until formatters onto the shared `utils/formatters.js` helpers (`formatDurationMs`, `timeUntil`), per the "do not re-define formatters inside components" convention (#2028). `formatDurationMs` gained a day bucket (`2d 3h`) so long uptimes no longer render as an unbounded hours count; ProcessesTab, CityHud, Shell session ages, the CoS QuickSummary "next job" countdown, and the Loops interval label now all route through the shared helpers, and a `console.log` in `memoryClassifier.js` was collapsed to a single interpolated line.- Migration 155 heals `data/prompts/stages/cd-treatment.md` installs that #1808's anchor-based migration 148 left stranded (#2042). Installs seeded before the `imageStrength` scene knob (older pre-#1808 template) got the `## Cast & ingredients` list but missed the per-scene `"cast": [{ "ingredientId": … }]` field, so the Creative Director cast-threading regression test stayed red on the runtime template and migration 148 (already applied) never re-ran. The new hash-driven prompt-replace upgrades those copies (and both pristine pre-#1808 shipped versions) to the current shipped reference, leaving hand-customized copies untouched. Also folds `cd-treatment.md` into `buildPromptDriftTables` so setup-data.js's drift warning classifies a stranded copy correctly.- Replaced the last hardcoded `port-*` hex stragglers with design tokens (#2031). The Security page's audio-level meter used raw `#ef4444`/`#f59e0b`/`#22c55e` in an inline `backgroundColor`; these now resolve through `rgb(var(--port-error))`/`--port-warning`/`--port-success` so they track the theme. The Chief-of-Staff page's "CoS" wordmark gradient was duplicated inline three times and is now a single module-level `COS_TITLE_GRADIENT` constant. Visual output is unchanged.+- Fixed a POST daily-reminder false-nudge after a global timezone change (#2040). `settings.js` now stamps a `timezoneUpdatedAt` timestamp whenever the `timezone` value actually changes (unrelated saves leave it untouched), exposed via `getTimezoneUpdatedAt()` in `timezone.js`. The reminder's boot-time missed-slot catch-up (`catchUpMissedSlot`) now skips a slot that predates the LATER of the reminder's own config save (#2015) or the last timezone change — so switching timezones and then restarting the server the same day can no longer replay a slot that was never scheduled under the active zone. The new field is reusable by any other timezone-dependent scheduler.- Fixed double error toasts across ~50 call sites that owned a custom `.catch` toast: they now pass `{ silent: true }` so the `apiCore.request()` default toast no longer fires alongside the component's own, per the "Silent vs. toasting API requests" convention (#2026). Also added the missing trailing `options = {}` passthrough to ~40 `api*.js` wrappers (CoS tasks/agents/jobs, Brain people/projects/ideas/admin/memories/buckets/inbox, GSD, memory approve/reject, app task-type overrides, feature-agent controls, browser/backup/system, MeatSpace POST drills, goals, messages) so callers can actually suppress the built-in toast. Sites whose `.catch` only reverts state (no toast) were intentionally left on the default single toast.+ - Audited the cross-domain insights engine against the no-cold-bootstrap LLM policy and documented the trigger contract at the two generation entry points (#2037). Verified the only functions that call an AI provider — `generateThemeAnalysis` (INS-02) and `refreshCrossDomainNarrative` (INS-04) — are reached solely from user-triggered POST endpoints (`/api/insights/themes/refresh`, `/api/insights/narrative/refresh`, both fired by an explicit "Refresh" click); the page-mount and cached-read paths (`getThemeAnalysis`/`getCrossDomainNarrative`) are disk-only, boot (`server/index.js`) mounts the router without generating, and no scheduler references insights. No violation found — added a contract comment block plus a regression test asserting the read paths never call a provider.+ - Refreshed GOALS.md status to reflect shipped Apple Health integration (#2039). The Health & Longevity status-table row said "Apple Health integration planned," but the integration shipped: `server/routes/appleHealth.js` (ingest/metrics/correlation/XML+clinical import) is wired through `apiHealth.js` into the MeatSpace Alcohol/Health/Nicotine tabs. The row now marks it shipped, and the stale "Apple Health Integration" bullet was removed from Secondary Goals. Documentation only; other status rows spot-checked against code (Sketch & Annotation Canvas confirmed genuinely unshipped, left as planned).