feat(worker): supervise VPN connections and recover batched telemetry

This commit is contained in:
DCCONSTRUCTIONS
2026-11-10 01:10:37 +03:00
parent fe5900ff3b
commit ad5a929e06
46 changed files with 2996 additions and 640 deletions
@@ -38,7 +38,7 @@ test("Compute-contour telemetry remains a bounded system feature slice", async (
read("core/system/ComputeContourContext.tsx"),
read("components/useApplicationPanelActions.ts"),
read("components/system/useComputeContourSettings.tsx"),
read("components/system/ComputeContourSettingsWindow.tsx"),
read("components/system/WorkerConnectionSettings.tsx"),
read("core/system/computeContours.ts"),
read("core/system/telemetryPollInterval.ts"),
read("core/system/sequentialPolling.ts"),
@@ -100,16 +100,11 @@ test("Compute-contour telemetry remains a bounded system feature slice", async (
assert.doesNotMatch(contourSettings, /<dt>Worker 006<\/dt>/);
assert.match(contourSettings, /contour\?\.display_name/);
assert.match(telemetryPolling, /Вычислительный контур не ответил\./);
assert.match(contourSettings, /FieldFrame label="Операционная система"/);
assert.match(contourSettings, /label="Обновление интерфейса"/);
assert.match(contourSettings, /label="Интервал MQTT агента"/);
assert.match(contourSettings, /label="Публикация broker"/);
assert.match(contourSettings, /MQTT · Mac ↔ Worker/);
assert.match(contourSettings, /applyComputeContourNetwork/);
assert.match(contourSettings, /Применить на Worker/);
assert.match(contourSettings, /value=\{telemetryPollIntervalDraft\}/);
assert.match(contourSettings, /onBlur=\{commitTelemetryPollInterval\}/);
assert.match(contourSettings, /event\.key === "Escape"/);
assert.match(contourSettings, /label="Обновление интерфейса, с"/);
assert.match(contourSettings, /label="Тип VPN"/);
assert.match(contourSettings, /label="Сеть"/);
assert.match(contourSettings, /label="Устройство в сети"/);
assert.doesNotMatch(contourSettings, /label="Адрес узла"|label="Ожидаемый Node ID"|label="Публикация broker"/);
assert.doesNotMatch(
contourSettings,
/telemetry_poll_interval_seconds:\s*Number\(event\.currentTarget\.value\)/,