feat(config,channels): format-neutral config resolution and truthful channel state

Loader.Resolve() selects TOML/YAML files or a config directory as the
production entry point, replacing the TOML-only Overlay() as the default
path. Add internal/channels.Manager, reporting each adapter's actual
runtime lifecycle (configured/starting/running/degraded/failed) instead of
inferring health from configuration presence alone. Wire channel reload
through a per-adapter seam.

Fixes #55
This commit is contained in:
sam committed 2026-08-09 01:25:58 +10:00
1 parent 0d500a4ca9
commit 472d8d717c
9 files changed
+373 -14

No files matched your search

+10
View File
@@ -65,12 +65,22 @@ export function settingsPage() {
agentCard(cfg.agent),
storageCard(cfg.storage, cfg.containers),
webCard(cfg.web),
provenanceCard(cfg.provenance),
);
}
return root;
}
function provenanceCard(origins) {
if (!origins?.length) return section("Configuration sources", "The files that supplied the running configuration.", empty("Source provenance is unavailable."));
return section(
"Configuration sources",
"Applied from top to bottom; later entries take precedence over earlier ones.",
el("div.cfg-rows", ...origins.map((origin) => row(`${origin.layer} ${origin.role}${origin.feature ? ` (${origin.feature})` : ""}`, origin.path))),
);
}
function section(title, sub, ...children) {
return el(
"div.card.cfg-section",