open-agents-ai 0.187.136 → 0.187.137
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 +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -254210,10 +254210,14 @@ ${cameras.join("\n")}`,
|
|
|
254210
254210
|
}
|
|
254211
254211
|
let ssid = null;
|
|
254212
254212
|
try {
|
|
254213
|
+
try {
|
|
254214
|
+
execSync27("nmcli device wifi rescan 2>/dev/null", { timeout: 5e3, stdio: "pipe" });
|
|
254215
|
+
} catch {
|
|
254216
|
+
}
|
|
254213
254217
|
const wifiList = execSync27("nmcli device wifi list 2>/dev/null", { encoding: "utf8", timeout: 1e4 });
|
|
254214
|
-
const oscMatch = wifiList.match(
|
|
254218
|
+
const oscMatch = wifiList.match(/(QooCam[^\n]*?\.OSC)\s/i);
|
|
254215
254219
|
if (oscMatch)
|
|
254216
|
-
ssid = oscMatch[1];
|
|
254220
|
+
ssid = oscMatch[1].trim();
|
|
254217
254221
|
} catch {
|
|
254218
254222
|
}
|
|
254219
254223
|
let connected = false;
|
|
@@ -254269,7 +254273,7 @@ ${cameras.join("\n")}`,
|
|
|
254269
254273
|
execSync27("nmcli device wifi rescan 2>/dev/null", { timeout: 5e3, stdio: "pipe" });
|
|
254270
254274
|
execSync27("sleep 2", { timeout: 5e3 });
|
|
254271
254275
|
const wifiList = execSync27("nmcli device wifi list 2>/dev/null", { encoding: "utf8", timeout: 1e4 });
|
|
254272
|
-
const oscMatch = wifiList.match(
|
|
254276
|
+
const oscMatch = wifiList.match(/(QooCam[^\n]*?\.OSC)\s/i);
|
|
254273
254277
|
if (oscMatch)
|
|
254274
254278
|
ssid = oscMatch[1];
|
|
254275
254279
|
} catch {
|
package/package.json
CHANGED