{s.id} · {s.profile} · {s.source} · {sessions.provenance?`historical snapshot flag: ${s.is_active?'active':'inactive'}; live activity unknown`:s.is_active?'active':'inactive'}
import {useEffect,useState} from 'react'; import Button from './ui/Button'; import {runtime} from '../services/runtime'; import type {RuntimeProvenance,RuntimeHealth,RuntimeProfile,RuntimeStatus,RuntimeSessions,RuntimeUsage} from '../services/runtime'; function Snapshot({value}:{value?:RuntimeProvenance}){return value?
Snapshot inventory · Captured at: {value.capturedAt} · Age: {value.ageSeconds} seconds · {value.freshness} · Live process: {value.liveProcess}. Even fresh snapshots are not live readiness.
:null} export default function RuntimeReadPanel(){ const [revision,setRevision]=useState(0);const [profile,setProfile]=useState('');const [offset,setOffset]=useState(0); const [health,setHealth]=useStateNo browser runtime credentials or direct Hermes connection. Refresh observations are not heartbeat timestamps.
{Object.entries(errors).filter(([,message])=>message).map(([name,message])=>{message}
)} {health&&Inventory service: {health.ok?'responsive':'not responsive'} (not live Hermes health)
{health.version} · {health.commit}
Client observed at: {observed}. Client receipt time only; not capture time or live heartbeat.
No authorized profiles returned.
} {profiles.map(p=>{status.overall}
Gateway: {status.provenance?'unknown':status.gateway_running?'running':'stopped'} · State: {status.provenance?'unknown':status.gateway_state??'Unknown'} · Active agents: {status.provenance?'unknown':status.active_agents}
Input tokens: {usage.totals.total_input}
Output tokens: {usage.totals.total_output}
Sessions: {usage.totals.total_sessions}
Upstream estimated cost: {usage.totals.total_estimated_cost} (currency unspecified by source; not settled billing)
Do not add this to 9router totals; attribution overlaps and is not reconciled.
No sessions returned.
}{sessions.sessions.map(s=>{s.id} · {s.profile} · {s.source} · {sessions.provenance?`historical snapshot flag: ${s.is_active?'active':'inactive'}; live activity unknown`:s.is_active?'active':'inactive'}