app
Service Containers
Public Unreviewedby John Lauer
One dashboard for every Adom service container: what is healthy, what is down, why, and a restart button that runs the watchdog's own start command. Reads the watchdog's verdicts off disk, so it costs no extra probes and no vendor API quota.
main
{
"dock_manifest": "1.2.0",
"webview": {
"title": "Service Containers",
"favicon": "icon.svg"
},
"launch": {
"mode": "container_command",
"console": "show",
"steps": [
{
"label": "Installing svcwatch",
"run": "sh -c 'PATH=\"$HOME/.local/bin:$PATH\"; adom-wiki pkg install john/svcwatch'",
"skip_if": "sh -c 'PATH=\"$HOME/.local/bin:$PATH\"; command -v svcwatch'",
"timeout_seconds": 180
},
{
"label": "Starting the services dashboard",
"run": "sh -c 'PATH=\"$HOME/.local/bin:$PATH\"; exec svcwatch serve --print-url'",
"await": "url",
"timeout_seconds": 60
}
],
"on_ready": "navigate_placeholder",
"ai": {
"prompt": "I just opened Service Containers from the dock bar. Give me a one-line summary of my service containers, and if any are down, say which and what you would do about it. Read the state with `svcwatch status`; do not restart anything without asking me first.",
"thread": "existing",
"thread_fallback": "new",
"submit": "staged"
}
}
}