@rubytech/taskmaster 1.0.104 → 1.0.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/control-ui/assets/{index-BVS_Pain.js → index-DtuDNTAC.js} +56 -71
- package/dist/control-ui/assets/index-DtuDNTAC.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/gateway/server-methods/wifi.js +10 -0
- package/package.json +1 -1
- package/dist/control-ui/assets/index-BVS_Pain.js.map +0 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>Taskmaster Control</title>
|
|
7
7
|
<meta name="color-scheme" content="dark light" />
|
|
8
8
|
<link rel="icon" type="image/png" href="./favicon.png" />
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-DtuDNTAC.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="./assets/index-DjhCZlZd.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
@@ -227,6 +227,16 @@ export const wifiHandlers = {
|
|
|
227
227
|
}
|
|
228
228
|
// Check for saved connection profile
|
|
229
229
|
const saved = await getSavedWifiConnection();
|
|
230
|
+
// Auto-reconnect: if a saved profile with autoconnect exists but device
|
|
231
|
+
// is disconnected, nudge NetworkManager to bring the connection up.
|
|
232
|
+
// Fire-and-forget — the next status poll will reflect the result.
|
|
233
|
+
if (saved && saved.autoconnect && !deviceState.connected) {
|
|
234
|
+
runExec("nmcli", ["con", "up", saved.name], { timeoutMs: 30_000 })
|
|
235
|
+
.then(() => disableWifiPowerSave(context.logGateway))
|
|
236
|
+
.catch((err) => {
|
|
237
|
+
context.logGateway.warn(`wifi auto-reconnect failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
238
|
+
});
|
|
239
|
+
}
|
|
230
240
|
respond(true, {
|
|
231
241
|
available: true,
|
|
232
242
|
connected: deviceState.connected,
|