mirror of
https://github.com/ruvnet/RuView
synced 2026-08-05 19:41:44 +00:00
075344b023
Complete two-tier Cognitum operator dashboard (ADR-131), served by homecore-server at /homecore, plus the single-origin BFF gateway that wires it to real backends. Front-end (zero-dep vanilla TS/JS + CSS, exact Cognitum design tokens): - All 10 panels (§4.1-4.10): dashboard, SEED fleet + detail, fleet map, entities (live WS subscribe_events, never polls), rooms, COGs, calibration wizard, events + automation builder, witness/audit, settings. - §6 UX invariants in code: first-class provenance, prominent stale/veto/ fragility, null(not-trained) vs withheld vs error, --mono everywhere, Hailo vs CPU COG distinction. - api.js calls the gateway routes in production; mock demoted to a dev-only ?demo=1 fixture (no mock in prod); typed error states. - Tests under plain node: import-graph, boot, render-smoke (22), interaction (3), prod-errors (13) — 5 files green; bundle ~137 KB (~37x smaller than HA), <2 ms/cold-render. BFF gateway (homecore-server/src/gateway.rs, compiled + tested on Rust 1.89): - /api/cal/* reverse-proxy to the calibration API (ADR-151). - GET /api/homecore/rooms with the RoomState adapter (breathing->breathing_bpm, heartbeat:null->heart_bpm:null, injected anomaly.threshold/room_id). - GET /api/homecore/cogs supervisor over /var/lib/cognitum/apps/. - GET /api/homecore/appliance from /proc + TCP service probes. - SEED-device/appliance routes return typed 503 upstream_unavailable. - cargo test -p homecore-server = 12/12; run live (curl-verified); fixed a real double-v1 proxy-URL bug found during live testing. Honest scope: W1/W2/W4/W6-appliance functional; W3/W5/W6-Hailo/federation return typed 503 (depend on services/hardware not in this repo). Co-Authored-By: claude-flow <ruv@ruv.net>
58 lines
2.5 KiB
TOML
58 lines
2.5 KiB
TOML
# HOMECORE-SERVER — the integration binary that ties every HOMECORE
|
|
# crate together into one process.
|
|
#
|
|
# Boots a HomeCore runtime, opens the SQLite recorder, mounts the
|
|
# REST + WS API on :8123, initializes the plugin runtime, spins up
|
|
# the automation engine subscribed to the state machine, and starts
|
|
# the assist pipeline + HAP bridge surface.
|
|
|
|
[package]
|
|
name = "homecore-server"
|
|
version = "0.1.0-alpha.0"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
authors = ["rUv <ruv@ruv.net>", "HOMECORE Contributors"]
|
|
description = "HOMECORE integration server — wires HomeCore + API + Recorder + Plugins + Automation + Assist + HAP into one process"
|
|
repository = "https://github.com/ruvnet/RuView"
|
|
|
|
[[bin]]
|
|
name = "homecore-server"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# The 8 HOMECORE crates this binary integrates
|
|
homecore = { path = "../homecore", version = "0.1.0-alpha.0" }
|
|
homecore-api = { path = "../homecore-api", version = "0.1.0-alpha.0" }
|
|
homecore-plugins = { path = "../homecore-plugins", version = "0.1.0-alpha.0" }
|
|
homecore-hap = { path = "../homecore-hap", version = "0.1.0-alpha.0" }
|
|
homecore-recorder = { path = "../homecore-recorder", version = "0.1.0-alpha.0" }
|
|
homecore-automation = { path = "../homecore-automation", version = "0.1.0-alpha.0" }
|
|
homecore-assist = { path = "../homecore-assist", version = "0.1.0-alpha.0" }
|
|
# Migration crate is CLI-only; not linked here.
|
|
|
|
tokio = { version = "1", features = ["full"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
anyhow = "1"
|
|
serde_json = "1"
|
|
axum = { version = "0.7", features = ["macros"] }
|
|
# Static-file serving for the HOMECORE-UI dashboard (ADR-131) mounted at /homecore.
|
|
tower-http = { version = "0.6", features = ["fs", "trace"] }
|
|
# BFF gateway (ADR-131 §11): reverse-proxy the calibration API + aggregate
|
|
# upstreams. rustls to avoid an OpenSSL system dep on the appliance.
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
[dev-dependencies]
|
|
# Drive the assembled router in integration tests via ServiceExt::oneshot.
|
|
tower = { version = "0.5", features = ["util"] }
|
|
http-body-util = "0.1"
|
|
|
|
[features]
|
|
default = []
|
|
# Pull in ruvector-backed semantic memory.
|
|
ruvector = ["homecore-recorder/ruvector"]
|
|
# Pull in real Wasmtime plugin runtime (vs InProcessRuntime).
|
|
wasmtime = ["homecore-plugins/wasmtime"]
|