open-agents-ai 0.187.143 → 0.187.144
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/index.js +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -254956,6 +254956,11 @@ var init_wifi_control = __esm({
|
|
|
254956
254956
|
if (!iface) {
|
|
254957
254957
|
return { success: false, output: "", error: "No WiFi interface found. Connect a WiFi adapter.", durationMs: performance.now() - start2 };
|
|
254958
254958
|
}
|
|
254959
|
+
try {
|
|
254960
|
+
execSync30(`test -d /sys/class/net/${iface}`, { timeout: 2e3, stdio: "pipe" });
|
|
254961
|
+
} catch {
|
|
254962
|
+
return { success: false, output: "", error: `WiFi interface '${iface}' does not exist. Use wifi_control action='interfaces' to see available adapters.`, durationMs: performance.now() - start2 };
|
|
254963
|
+
}
|
|
254959
254964
|
try {
|
|
254960
254965
|
execSync30(`nmcli device wifi rescan ifname ${iface} 2>/dev/null`, { timeout: 1e4, stdio: "pipe" });
|
|
254961
254966
|
execSync30("sleep 1", { timeout: 5e3 });
|
package/package.json
CHANGED