Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Clarify hot-dev-bg usage entrypoints
rcourtman4a5b5d5fde08
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 612019f621..efca9cb708 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -223,6 +223,9 @@ That runtime-guidance rule also applies to successful launcher startup output:`hot-dev-bg` must identify `http://127.0.0.1:5173` as the browser entrypointand present `7655` as the managed backend dependency, rather than advertisingfrontend and backend URLs as if they were equal browser targets.+The same wrapper-first rule applies to launcher help text: `hot-dev-bg` usage+output must present the repo-root npm entrypoints first and reserve raw+subcommands as secondary script-local controls for direct troubleshooting.That same dev-runtime helper boundary also includes the auxiliary operatorcontrols that start, stop, restart, or recover local development. The repo-rootMakefile targets, `scripts/toggle-mock.sh`, and `scripts/clean-mock-alerts.sh` mustdiff --git a/scripts/hot-dev-bg.sh b/scripts/hot-dev-bg.shindex ab884ca3f5..502d938ac9 100755--- a/scripts/hot-dev-bg.sh+++ b/scripts/hot-dev-bg.sh@@ -623,7 +623,10 @@ run_verify_proof_command() {PULSE_E2E_USE_HOT_DEV=1 \PULSE_E2E_USERNAME="${PULSE_E2E_USERNAME:-admin}" \PULSE_E2E_PASSWORD="${PULSE_E2E_PASSWORD:-admin}" \- npm test -- tests/16-dev-runtime-recovery.spec.ts --project=chromium+ npm test -- \+ tests/16-dev-runtime-recovery.spec.ts \+ tests/17-recovery-layout.spec.ts \+ --project=chromium)returnfi@@ -667,7 +670,7 @@ verify_bg() {fail "Managed runtime is not healthy enough to run browser verification"fi- log "Running managed dev-runtime browser verification proof..."+ log "Running managed dev-runtime browser verification proofs..."run_verify_proof_command}@@ -725,6 +728,16 @@ usage() {cat <<EOFUsage: $(basename "$0") <command>+Managed entrypoints:+ npm run dev+ npm run dev:status+ npm run dev:logs+ npm run dev:stop+ npm run dev:restart+ npm run dev:backend-restart+ npm run dev:verify+ npm run dev:foreground+Commands:start [--takeover]stopdiff --git a/scripts/tests/test-hot-dev-bg.sh b/scripts/tests/test-hot-dev-bg.shindex b1a90ffe38..e03c89f0c5 100755--- a/scripts/tests/test-hot-dev-bg.sh+++ b/scripts/tests/test-hot-dev-bg.sh@@ -166,6 +166,37 @@ PY"assert_contains "verify proof defaults password" "${output}" "password=admin"}+test_default_verify_command_runs_runtime_and_layout_proofs() {+ local test_dir fake_bin output+ test_dir="$(mktemp -d)"+ temp_dirs+=("${test_dir}")+ fake_bin="${test_dir}/bin"+ mkdir -p "${fake_bin}"++ cat > "${fake_bin}/npm" <<'EOF'+#!/usr/bin/env bash+set -euo pipefail+printf 'cwd=%s\n' "$PWD"+printf 'args=%s\n' "$*"+EOF+ chmod +x "${fake_bin}/npm"++ output="$(+ FAKE_BIN_PATH="${fake_bin}" \+ HOT_DEV_BG_PATH="${HOT_DEV_BG}" \+ bash -lc '+ export PATH="${FAKE_BIN_PATH}:$PATH"+ source "${HOT_DEV_BG_PATH}"+ run_verify_proof_command+ '+ )"++ assert_contains "default verify proof runs from integration harness" "${output}" "cwd=${ROOT_DIR}/tests/integration"+ assert_contains "default verify proof includes dev runtime recovery spec" "${output}" "tests/16-dev-runtime-recovery.spec.ts"+ assert_contains "default verify proof includes recovery layout spec" "${output}" "tests/17-recovery-layout.spec.ts"+ assert_contains "default verify proof keeps chromium project pin" "${output}" "--project=chromium"+}+test_launchd_session_supervises_managed_runtime() {local outputoutput="$(@@ -382,11 +413,23 @@ test_hot_dev_bg_script_advertises_managed_entrypoint() {assert_contains "hot-dev-bg routes launchd supervision guidance to managed wrapper" "${output}" "Rerun with: npm run dev"}+test_hot_dev_bg_usage_prefers_managed_wrappers() {+ local output+ output="$("${HOT_DEV_BG}" 2>&1 || true)"++ assert_contains "hot-dev-bg usage shows managed entrypoints heading" "${output}" "Managed entrypoints:"+ assert_contains "hot-dev-bg usage advertises npm dev wrapper" "${output}" "npm run dev"+ assert_contains "hot-dev-bg usage advertises npm verify wrapper" "${output}" "npm run dev:verify"+ assert_contains "hot-dev-bg usage retains raw command list" "${output}" "Commands:"+ assert_contains "hot-dev-bg usage retains direct start subcommand" "${output}" "start [--takeover]"+}+test_integration_readme_uses_managed_backend_restart_wrapper() {local outputoutput="$(sed -n '132,150p' "${INTEGRATION_README}")"assert_contains "integration readme documents managed backend restart wrapper" "${output}" "npm run dev:backend-restart"+ assert_contains "integration readme documents recovery layout proof" "${output}" "tests/17-recovery-layout.spec.ts"assert_not_contains "integration readme no longer documents raw backend restart script" "${output}" "./scripts/hot-dev-bg.sh backend-restart"}@@ -614,6 +657,7 @@ test_detects_unmanaged_listeners() {main() {test_cli_parses_takeover_flagtest_verify_command_injects_managed_runtime_env+ test_default_verify_command_runs_runtime_and_layout_proofstest_launchd_session_supervises_managed_runtimetest_start_bg_reports_browser_entrypointtest_launchd_wrapper_uses_managed_supervisor@@ -623,6 +667,7 @@ main() {test_makefile_routes_managed_runtime_through_npmtest_hot_dev_script_advertises_foreground_escape_hatchtest_hot_dev_bg_script_advertises_managed_entrypoint+ test_hot_dev_bg_usage_prefers_managed_wrapperstest_integration_readme_uses_managed_backend_restart_wrappertest_clean_mock_alerts_prefers_managed_runtimetest_dev_check_uses_managed_runtime_status