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
Add CyberCity review and instance signal layer
[._.]/ Adam Eivy9690c029e458
diff --git a/client/src/components/city/CityBillboards.jsx b/client/src/components/city/CityBillboards.jsxindex 8346b19279..d0174ba4e0 100644--- a/client/src/components/city/CityBillboards.jsx+++ b/client/src/components/city/CityBillboards.jsx@@ -197,7 +197,7 @@ function Billboard({ position, rotation, messages, color, width = 3.5, height =);}-export default function CityBillboards({ positions, apps, cosStatus, productivityData }) {+export default function CityBillboards({ positions, apps, cosStatus, reviewCounts, instances, productivityData }) {// Build billboard messages from real system dataconst billboardConfig = useMemo(() => {if (!positions || positions.size < 2) return [];@@ -206,6 +206,11 @@ export default function CityBillboards({ positions, apps, cosStatus, productivitconst stoppedApps = apps.filter(a => !a.archived && a.overallStatus === 'stopped');const totalActive = apps.filter(a => !a.archived).length;const colors = CITY_COLORS.neonAccents;+ const pendingReview = reviewCounts?.total || 0;+ const alertCount = reviewCounts?.alert || 0;+ const peers = instances?.peers || [];+ const onlinePeers = peers.filter(peer => peer.online).length;+ const nodeCount = 1 + peers.length;// Find downtown bounding box for billboard placementconst entries = [];@@ -238,10 +243,17 @@ export default function CityBillboards({ positions, apps, cosStatus, productivittext: `${stoppedApps.length} SYSTEM${stoppedApps.length > 1 ? 'S' : ''} STOPPED`,});}+ if (pendingReview > 0) {+ systemMessages.push({+ label: alertCount > 0 ? 'REVIEW ALERTS' : 'REVIEW HUB',+ text: `${pendingReview} PENDING · ${alertCount} ALERT${alertCount === 1 ? '' : 'S'}`,+ });+ }const activityMessages = [{ label: 'CYBERCITY', text: 'DIGITAL INFRASTRUCTURE' },{ label: 'PORTOS', text: 'PERSONAL OPERATING SYSTEM' },+ { label: 'VOID / INSTANCES', text: `${onlinePeers}/${nodeCount} NODES LINKED` },];if (productivityData) {@@ -298,7 +310,7 @@ export default function CityBillboards({ positions, apps, cosStatus, productivit}return billboards;- }, [positions, apps, cosStatus, productivityData]);+ }, [positions, apps, cosStatus, reviewCounts, instances, productivityData]);if (billboardConfig.length === 0) return null;diff --git a/client/src/components/city/CityHud.jsx b/client/src/components/city/CityHud.jsxindex 3988244967..59e3cf6779 100644--- a/client/src/components/city/CityHud.jsx+++ b/client/src/components/city/CityHud.jsx@@ -136,7 +136,7 @@ function HealthBar({ value, max, color }) {);}-export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, connected, apps, productivityData, onToggleExploration, explorationMode }) {+export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, connected, apps, reviewCounts, instances, productivityData, onToggleExploration, explorationMode }) {const navigate = useNavigate();const location = useLocation();const [time, setTime] = useState(new Date());@@ -156,6 +156,11 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, conconst onlineRatio = totalApps > 0 ? activeApps / totalApps : 1;const weather = useMemo(() => getWeatherStatus(onlineRatio), [onlineRatio]);+ const pendingReview = reviewCounts?.total || 0;+ const alertCount = reviewCounts?.alert || 0;+ const peers = instances?.peers || [];+ const onlinePeers = peers.filter(peer => peer.online).length;+ const totalNodes = 1 + peers.length;const activeAgentCount = (cosAgents || []).filter(a =>a.status === 'running' || a.state === 'coding' || a.state === 'thinking' || a.state === 'investigating'@@ -243,6 +248,24 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, con</div>)}+ {/* Review pressure */}+ {(pendingReview > 0 || alertCount > 0) && (+ <div className="flex items-center justify-between gap-6">+ <span className="font-pixel text-[10px] text-gray-400 tracking-wide">REVIEW</span>+ <span className={`font-pixel text-[11px] ${alertCount > 0 ? 'text-orange-400' : 'text-cyan-400'}`}>+ {pendingReview} PENDING{alertCount > 0 ? ` · ${alertCount} ALERT${alertCount === 1 ? '' : 'S'}` : ''}+ </span>+ </div>+ )}++ {/* Instance mesh */}+ <div className="flex items-center justify-between gap-6">+ <span className="font-pixel text-[10px] text-gray-400 tracking-wide">NODES</span>+ <span className={`font-pixel text-[11px] ${onlinePeers > 0 ? 'text-violet-400' : 'text-gray-500'}`}>+ {onlinePeers}/{totalNodes} LINKED+ </span>+ </div>+{/* Productivity - today's tasks */}{productivityData?.todaySucceeded > 0 && (<div className="flex items-center justify-between gap-6">diff --git a/client/src/components/city/CityScene.jsx b/client/src/components/city/CityScene.jsxindex 21bc9c952d..0ca50a787c 100644--- a/client/src/components/city/CityScene.jsx+++ b/client/src/components/city/CityScene.jsx@@ -24,7 +24,7 @@ import CitySky from './CitySky';import PlayerController from './PlayerController';import CameraTransition from './CameraTransition';-export default function CityScene({ apps, agentMap, onBuildingClick, cosStatus, productivityData, settings, playSfx, keysRef }) {+export default function CityScene({ apps, agentMap, onBuildingClick, cosStatus, reviewCounts, instances, productivityData, settings, playSfx, keysRef }) {const [positions, setPositions] = useState(null);const [proximityApp, setProximityApp] = useState(null);const [transitioning, setTransitioning] = useState(false);diff --git a/client/src/components/city/CitySignalBeacons.jsx b/client/src/components/city/CitySignalBeacons.jsxnew file mode 100644index 0000000000..1ac79dd6d3--- /dev/null+++ b/client/src/components/city/CitySignalBeacons.jsx@@ -0,0 +1,130 @@+import { useMemo, useRef } from 'react';+import { Text } from '@react-three/drei';+import { useFrame } from '@react-three/fiber';+import * as THREE from 'three';+import { PIXEL_FONT_URL } from './cityConstants';++function SignalBeacon({ position, color, label, sublabel, intensity = 1 }) {+ const groupRef = useRef();+ const glowRef = useRef();+ const beamRef = useRef();++ useFrame(({ clock }) => {+ const t = clock.getElapsedTime();+ const pulse = 0.7 + ((Math.sin(t * (1.5 + intensity)) + 1) / 2) * 0.8 * intensity;++ if (groupRef.current) {+ groupRef.current.position.y = position[1] + Math.sin(t * 0.6 + position[0]) * 0.1;+ }+ if (glowRef.current) {+ glowRef.current.material.opacity = 0.15 * pulse;+ glowRef.current.scale.setScalar(0.9 + pulse * 0.15);+ }+ if (beamRef.current) {+ beamRef.current.material.opacity = Math.min(0.35, 0.08 + pulse * 0.08);+ }+ });++ return (+ <group ref={groupRef} position={position}>+ <mesh ref={beamRef} position={[0, 2.8, 0]}>+ <cylinderGeometry args={[0.08, 0.45, 5.5, 12, 1, true]} />+ <meshBasicMaterial color={color} transparent opacity={0.18} side={THREE.DoubleSide} blending={THREE.AdditiveBlending} depthWrite={false} />+ </mesh>++ <mesh position={[0, 0.15, 0]}>+ <cylinderGeometry args={[0.35, 0.45, 0.3, 10]} />+ <meshStandardMaterial color="#0a0a18" emissive={color} emissiveIntensity={0.35 * intensity} />+ </mesh>++ <mesh position={[0, 0.42, 0]}>+ <sphereGeometry args={[0.18, 16, 16]} />+ <meshBasicMaterial color={color} transparent opacity={0.95} />+ </mesh>++ <mesh ref={glowRef} position={[0, 0.42, 0]}>+ <sphereGeometry args={[0.5, 16, 16]} />+ <meshBasicMaterial color={color} transparent opacity={0.18} blending={THREE.AdditiveBlending} depthWrite={false} />+ </mesh>++ <Text+ position={[0, 5.9, 0]}+ fontSize={0.32}+ color={color}+ anchorX="center"+ anchorY="middle"+ font={PIXEL_FONT_URL}+ >+ {label}+ </Text>+ {sublabel && (+ <Text+ position={[0, 5.45, 0]}+ fontSize={0.18}+ color="#cbd5e1"+ anchorX="center"+ anchorY="middle"+ font={PIXEL_FONT_URL}+ maxWidth={6}+ >+ {sublabel}+ </Text>+ )}+ </group>+ );+}++export default function CitySignalBeacons({ positions, reviewCounts, instances }) {+ const config = useMemo(() => {+ if (!positions || positions.size === 0) return [];++ const entries = [];+ positions.forEach((pos) => {+ if (pos.district === 'downtown') entries.push(pos);+ });+ if (entries.length === 0) return [];++ let minX = Infinity, maxX = -Infinity, minZ = Infinity, maxZ = -Infinity;+ entries.forEach(p => {+ minX = Math.min(minX, p.x);+ maxX = Math.max(maxX, p.x);+ minZ = Math.min(minZ, p.z);+ maxZ = Math.max(maxZ, p.z);+ });++ const pending = reviewCounts?.total || 0;+ const alerts = reviewCounts?.alert || 0;+ const peers = instances?.peers || [];+ const onlinePeers = peers.filter(peer => peer.online).length;+ const totalNodes = 1 + peers.length;++ return [+ {+ id: 'review-beacon',+ position: [minX - 6, 0, minZ - 6],+ color: alerts > 0 ? '#f97316' : '#06b6d4',+ label: alerts > 0 ? 'REVIEW PRESSURE' : 'REVIEW HUB',+ sublabel: pending > 0 ? `${pending} pending · ${alerts} alerts` : 'inbox clear',+ intensity: alerts > 0 ? 1.6 : pending > 0 ? 1.1 : 0.7,+ },+ {+ id: 'void-beacon',+ position: [maxX + 8, 0, maxZ + 8],+ color: onlinePeers > 0 ? '#8b5cf6' : '#64748b',+ label: 'VOID / INSTANCES',+ sublabel: `${onlinePeers}/${totalNodes} nodes linked`,+ intensity: onlinePeers > 0 ? 1.2 : 0.65,+ }+ ];+ }, [positions, reviewCounts, instances]);++ if (config.length === 0) return null;++ return (+ <group>+ {config.map(beacon => (+ <SignalBeacon key={beacon.id} {...beacon} />+ ))}+ </group>+ );+}diff --git a/client/src/hooks/useCityData.js b/client/src/hooks/useCityData.jsindex 6b3c238c26..85a19d168a 100644--- a/client/src/hooks/useCityData.js+++ b/client/src/hooks/useCityData.js@@ -28,6 +28,8 @@ export const useCityData = () => {setRunningAgents(agents);setCosAgents(cosAgentsData);setCosStatus(status);+ setReviewCounts(reviewData);+ setInstances(instanceData);setLoading(false);}, []);@@ -118,6 +120,8 @@ export const useCityData = () => {runningAgents,eventLogs,agentMap,+ reviewCounts,+ instances,loading,connected: socket.connected,};diff --git a/client/src/pages/CyberCity.jsx b/client/src/pages/CyberCity.jsxindex 2b38476c5e..3439b1429e 100644--- a/client/src/pages/CyberCity.jsx+++ b/client/src/pages/CyberCity.jsx@@ -68,6 +68,8 @@ function CyberCityInner() {agentMap={agentMap}onBuildingClick={handleBuildingClick}cosStatus={cosStatus}+ reviewCounts={reviewCounts}+ instances={instances}productivityData={productivityData}settings={settings}playSfx={playSfx}