@radaros/edge 0.3.26 → 0.3.28
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.cjs +5 -5
- package/dist/index.js +6 -6
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4380,7 +4380,7 @@ function ensureDir(dir) {
|
|
|
4380
4380
|
}
|
|
4381
4381
|
function hasCommand(cmd) {
|
|
4382
4382
|
try {
|
|
4383
|
-
(0, import_node_child_process.
|
|
4383
|
+
(0, import_node_child_process.execFileSync)("which", [cmd], { encoding: "utf-8", stdio: "pipe" });
|
|
4384
4384
|
return true;
|
|
4385
4385
|
} catch {
|
|
4386
4386
|
return false;
|
|
@@ -4449,7 +4449,7 @@ var CameraToolkit = class extends import_core2.Toolkit {
|
|
|
4449
4449
|
`1`
|
|
4450
4450
|
// minimal timeout
|
|
4451
4451
|
];
|
|
4452
|
-
(0, import_node_child_process.
|
|
4452
|
+
(0, import_node_child_process.execFileSync)(cmd, cmdArgs, {
|
|
4453
4453
|
timeout: 15e3,
|
|
4454
4454
|
stdio: "pipe"
|
|
4455
4455
|
});
|
|
@@ -4501,7 +4501,7 @@ var CameraToolkit = class extends import_core2.Toolkit {
|
|
|
4501
4501
|
String(duration),
|
|
4502
4502
|
`-n`
|
|
4503
4503
|
];
|
|
4504
|
-
(0, import_node_child_process.
|
|
4504
|
+
(0, import_node_child_process.execFileSync)(cmd, cmdArgs, {
|
|
4505
4505
|
timeout: duration + 1e4,
|
|
4506
4506
|
stdio: "pipe"
|
|
4507
4507
|
});
|
|
@@ -5202,8 +5202,8 @@ var SystemToolkit = class extends import_core6.Toolkit {
|
|
|
5202
5202
|
const wifiIface = iwconfig.split("\n").slice(2).map((l) => l.trim().split(":")[0]).filter(Boolean)[0];
|
|
5203
5203
|
if (wifiIface) {
|
|
5204
5204
|
try {
|
|
5205
|
-
const { execSync:
|
|
5206
|
-
const ssid =
|
|
5205
|
+
const { execSync: execSync2 } = await import("child_process");
|
|
5206
|
+
const ssid = execSync2(`iwgetid -r 2>/dev/null`, { encoding: "utf-8" }).trim();
|
|
5207
5207
|
if (ssid) wifiSsid = ssid;
|
|
5208
5208
|
} catch {
|
|
5209
5209
|
}
|
package/dist/index.js
CHANGED
|
@@ -4321,7 +4321,7 @@ var BleToolkit = class extends Toolkit {
|
|
|
4321
4321
|
};
|
|
4322
4322
|
|
|
4323
4323
|
// src/toolkits/camera.ts
|
|
4324
|
-
import {
|
|
4324
|
+
import { execFileSync, spawn } from "child_process";
|
|
4325
4325
|
import * as fs from "fs";
|
|
4326
4326
|
import * as path from "path";
|
|
4327
4327
|
import { Toolkit as Toolkit2 } from "@radaros/core";
|
|
@@ -4332,7 +4332,7 @@ function ensureDir(dir) {
|
|
|
4332
4332
|
}
|
|
4333
4333
|
function hasCommand(cmd) {
|
|
4334
4334
|
try {
|
|
4335
|
-
|
|
4335
|
+
execFileSync("which", [cmd], { encoding: "utf-8", stdio: "pipe" });
|
|
4336
4336
|
return true;
|
|
4337
4337
|
} catch {
|
|
4338
4338
|
return false;
|
|
@@ -4401,7 +4401,7 @@ var CameraToolkit = class extends Toolkit2 {
|
|
|
4401
4401
|
`1`
|
|
4402
4402
|
// minimal timeout
|
|
4403
4403
|
];
|
|
4404
|
-
|
|
4404
|
+
execFileSync(cmd, cmdArgs, {
|
|
4405
4405
|
timeout: 15e3,
|
|
4406
4406
|
stdio: "pipe"
|
|
4407
4407
|
});
|
|
@@ -4453,7 +4453,7 @@ var CameraToolkit = class extends Toolkit2 {
|
|
|
4453
4453
|
String(duration),
|
|
4454
4454
|
`-n`
|
|
4455
4455
|
];
|
|
4456
|
-
|
|
4456
|
+
execFileSync(cmd, cmdArgs, {
|
|
4457
4457
|
timeout: duration + 1e4,
|
|
4458
4458
|
stdio: "pipe"
|
|
4459
4459
|
});
|
|
@@ -5154,8 +5154,8 @@ var SystemToolkit = class extends Toolkit6 {
|
|
|
5154
5154
|
const wifiIface = iwconfig.split("\n").slice(2).map((l) => l.trim().split(":")[0]).filter(Boolean)[0];
|
|
5155
5155
|
if (wifiIface) {
|
|
5156
5156
|
try {
|
|
5157
|
-
const { execSync:
|
|
5158
|
-
const ssid =
|
|
5157
|
+
const { execSync: execSync2 } = await import("child_process");
|
|
5158
|
+
const ssid = execSync2(`iwgetid -r 2>/dev/null`, { encoding: "utf-8" }).trim();
|
|
5159
5159
|
if (ssid) wifiSsid = ssid;
|
|
5160
5160
|
} catch {
|
|
5161
5161
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radaros/edge",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.28",
|
|
4
4
|
"description": "Edge deployment for RadarOS — IoT toolkits (GPIO, sensors, camera, BLE), edge runtime, and Ollama helpers for Raspberry Pi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"typescript": "^5.6.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@radaros/core": "^0.3.
|
|
47
|
+
"@radaros/core": "^0.3.28",
|
|
48
48
|
"node-libgpiod": ">=0.4.0",
|
|
49
49
|
"i2c-bus": ">=5.0.0",
|
|
50
50
|
"@stoprocent/noble": ">=2.0.0"
|