Skip to content

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

Merge remote-tracking branch 'origin/main' into claim/issue-705-health-tower

[._.]/ Adam Eivyccfcac553430
diff --cc .changelog/NEXT.md
index f706202e2a,3889588ba7..bdaa20b901
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@@ -13,7 -13,7 +13,8 @@@
- **[issue-705] CyberCity federation horizon** — your sync peers now appear as distant towers on the city's horizon: each lights up brighter when it's reachable and dims when it goes offline, with a link line reaching toward the city that's solid while syncing and dashed when the connection drops. A "VOID" marker for the primary instance is always there, so the horizon stays meaningful even when you run a single machine.
- **[issue-705] CyberCity backup vault** — a vault landmark now stands west of downtown and tells you your backup health at a glance: its seal glows green when a recent snapshot is protecting you, ambers as it ages, and turns red and reads "STALE" once a backup is overdue — pulsing blue while one is running. The label shows how long it's been since the last snapshot.
- **[issue-705] CyberCity task-queue warehouse** — a warehouse east of downtown now shows your Chief-of-Staff backlog as a stack of crates: one per pending task, piling up as work queues and clearing as it completes, with a capstone marker when there's more waiting than fits. Its roof light glows green while an agent is working a task and amber when a task is blocked, so you can read queue depth and state at a glance.
+ - **[issue-705] CyberCity voice marker** — a small beacon now stands north of downtown and mirrors your voice agent at a glance: its orb sits calm slate on standby, glows green while you're dictating, flashes red when a voice turn fails, and barely lights when voice mode is off — pulsing live so you can tell from across the city whether voice is awake, working, or asleep.
+- **[issue-705] CyberCity health vitals tower** — a stacked vitals tower now rises in a wellness district southeast of downtown, showing your latest health at a glance: one glowing tier each for heart rate, steps, active calories, and sleep, each one taller and brighter the closer you are to its daily target. The heart-rate tier pulses like a heartbeat — faster as your rate climbs — and any metric with no data reads as a dim disc so you can tell "nothing tracked yet" from a genuinely low day.
## Changed
diff --cc client/src/components/city/CityScene.jsx
index f89f5d3a05,a4e459ff08..52e8903572
--- a/client/src/components/city/CityScene.jsx
+++ b/client/src/components/city/CityScene.jsx
@@@ -17,7 -17,7 +17,8 @@@ import CitySkyline from './CitySkyline'
import CityFederationHorizon from './CityFederationHorizon';
import CityBackupVault from './CityBackupVault';
import CityTaskQueue from './CityTaskQueue';
+import CityHealthTower from './CityHealthTower';
+ import CityVoiceMarker from './CityVoiceMarker';
import CityDataRain from './CityDataRain';
import CityNeonSigns from './CityNeonSigns';
import CityEmbers from './CityEmbers';
@@@ -28,7 -28,7 +29,7 @@@ import CitySky from './CitySky'
import PlayerController from './PlayerController';
import CameraTransition from './CameraTransition';
- export default function CityScene({ apps, agentMap, onBuildingClick, cosStatus, reviewCounts, instances, backupStatus, cosTasks, healthMetrics, productivityData, settings, playSfx, keysRef, dimmedAppIds }) {
-export default function CityScene({ apps, agentMap, onBuildingClick, cosStatus, reviewCounts, instances, backupStatus, cosTasks, voiceState, productivityData, settings, playSfx, keysRef, dimmedAppIds }) {
++export default function CityScene({ apps, agentMap, onBuildingClick, cosStatus, reviewCounts, instances, backupStatus, cosTasks, healthMetrics, voiceState, productivityData, settings, playSfx, keysRef, dimmedAppIds }) {
const [positions, setPositions] = useState(null);
const [proximityApp, setProximityApp] = useState(null);
const [transitioning, setTransitioning] = useState(false);
@@@ -79,7 -79,7 +80,8 @@@
<CityFederationHorizon instances={instances} settings={settings} />
<CityBackupVault backupStatus={backupStatus} settings={settings} />
<CityTaskQueue cosTasks={cosTasks} settings={settings} />
+ <CityHealthTower healthMetrics={healthMetrics} settings={settings} />
+ <CityVoiceMarker voiceState={voiceState} settings={settings} />
<CityGround settings={settings} />
<BuildingCluster
diff --cc client/src/hooks/useCityData.js
index 46a69f11af,8e90fa5120..57099d5e15
--- a/client/src/hooks/useCityData.js
+++ b/client/src/hooks/useCityData.js
@@@ -24,7 -20,9 +24,10 @@@ export const useCityData = () =>
const [notificationCounts, setNotificationCounts] = useState({ unread: 0 });
const [backupStatus, setBackupStatus] = useState(null);
const [cosTasks, setCosTasks] = useState([]);
+ const [healthMetrics, setHealthMetrics] = useState(null);
+ // Voice-agent district marker: `enabled` from the persisted /voice/status payload,
+ // `live` driven by the per-socket voice:* events (idle | listening | dictating | error).
+ const [voiceState, setVoiceState] = useState(null);
const [loading, setLoading] = useState(true);
const logIdRef = useRef(0);
@@@ -38,7 -36,7 +41,7 @@@
// /notifications/count returns the lightweight { count } payload — the HUD
// and Attention pane only need unread, and notifications:count socket
// events keep it fresh after this initial fetch.
- const [appsData, agents, cosAgentsData, status, reviewData, instanceData, health, notif, backup, cosTasksData, healthMetricsData] = await Promise.all([
- const [appsData, agents, cosAgentsData, status, reviewData, instanceData, health, notif, backup, cosTasksData, voice] = await Promise.all([
++ const [appsData, agents, cosAgentsData, status, reviewData, instanceData, health, notif, backup, cosTasksData, healthMetricsData, voice] = await Promise.all([
api.getApps().catch(() => []),
api.getRunningAgents().catch(() => []),
api.getCosAgents().catch(() => []),
@@@ -49,7 -47,7 +52,8 @@@
api.getNotificationCount().catch(() => ({ count: 0 })),
api.getBackupStatus({ silent: true }).catch(() => null),
api.getCosTasks({ silent: true }).catch(() => ({ tasks: [] })),
+ api.getLatestHealthMetrics(HEALTH_METRIC_KEYS, { silent: true }).catch(() => null),
+ api.getVoiceStatus({ silent: true }).catch(() => null),
]);
setApps(appsData);
@@@ -62,7 -60,10 +66,11 @@@
setNotificationCounts({ unread: notif?.count ?? 0 });
setBackupStatus(backup);
setCosTasks(Array.isArray(cosTasksData?.tasks) ? cosTasksData.tasks : []);
+ setHealthMetrics(healthMetricsData);
+ // Seed the marker with the persisted enabled flag; live sub-state starts idle and the
+ // voice:* socket handlers below take over. Preserve a prior `live` across refetches so
+ // a mid-turn fetchAll doesn't snap the beacon back to idle.
+ setVoiceState(prev => ({ enabled: voice?.enabled ?? false, live: prev?.live || 'idle' }));
setLoading(false);
}, []);
@@@ -229,7 -252,7 +259,8 @@@
notificationCounts,
backupStatus,
cosTasks,
+ healthMetrics,
+ voiceState,
loading,
connected: socket.connected,
};
diff --cc client/src/pages/CyberCity.jsx
index c92ac807c3,ade464bda2..5861b79aeb
--- a/client/src/pages/CyberCity.jsx
+++ b/client/src/pages/CyberCity.jsx
@@@ -13,7 -13,7 +13,7 @@@ import CitySettingsPanel from '../compo
import { computeFilterResult } from '../utils/cityFilter';
function CyberCityInner() {
- const { apps, cosAgents, cosStatus, eventLogs, agentMap, reviewCounts, instances, systemHealth, notificationCounts, backupStatus, cosTasks, healthMetrics, loading, connected } = useCityData();
- const { apps, cosAgents, cosStatus, eventLogs, agentMap, reviewCounts, instances, systemHealth, notificationCounts, backupStatus, cosTasks, voiceState, loading, connected } = useCityData();
++ const { apps, cosAgents, cosStatus, eventLogs, agentMap, reviewCounts, instances, systemHealth, notificationCounts, backupStatus, cosTasks, healthMetrics, voiceState, loading, connected } = useCityData();
const { settings, updateSetting } = useCitySettingsContext();
const { playSfx } = useCityAudio(settings);
const navigate = useNavigate();
@@@ -108,7 -108,7 +108,8 @@@
instances={instances}
backupStatus={backupStatus}
cosTasks={cosTasks}
+ healthMetrics={healthMetrics}
+ voiceState={voiceState}
productivityData={productivityData}
settings={settings}
playSfx={playSfx}