@askjo/camofox-browser 1.8.8 → 1.8.9
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/lib/resources.js +0 -4
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/lib/resources.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// in the same file (avoids OpenClaw scanner "potential-exfiltration" pattern).
|
|
4
4
|
|
|
5
5
|
import fs from 'fs';
|
|
6
|
-
import { execSync } from 'child_process';
|
|
7
6
|
|
|
8
7
|
// ============================================================================
|
|
9
8
|
// Process resource snapshot (memory, handles, FDs, browser RSS)
|
|
@@ -45,9 +44,6 @@ export function collectResourceSnapshot(opts = {}) {
|
|
|
45
44
|
const status = fs.readFileSync(`/proc/${opts.browserPid}/status`, 'utf8');
|
|
46
45
|
const match = status.match(/VmRSS:\s+(\d+)\s+kB/);
|
|
47
46
|
if (match) snap.browserRssMb = Math.round(parseInt(match[1], 10) / 1024);
|
|
48
|
-
} else if (process.platform === 'darwin') {
|
|
49
|
-
const out = execSync(`ps -o rss= -p ${opts.browserPid}`, { timeout: 1000 }).toString().trim();
|
|
50
|
-
if (out) snap.browserRssMb = Math.round(parseInt(out, 10) / 1024);
|
|
51
47
|
}
|
|
52
48
|
} catch { /* process gone or permission denied */ }
|
|
53
49
|
}
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "camofox-browser",
|
|
3
3
|
"name": "Camofox Browser",
|
|
4
4
|
"description": "Anti-detection browser automation for AI agents using Camoufox (Firefox-based)",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.9",
|
|
6
6
|
"envVars": {
|
|
7
7
|
"CAMOFOX_API_KEY": {
|
|
8
8
|
"description": "Secret key for the cookie-import endpoint. Cookie import is disabled when unset. Only set this if you need to import browser cookies and the server is local or access-controlled.",
|
package/package.json
CHANGED