@phi-code-admin/camofox-browser 1.0.0 → 1.0.2
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/AGENTS.md +571 -571
- package/Dockerfile +86 -86
- package/LICENSE +21 -21
- package/README.md +691 -691
- package/camofox.config.json +10 -10
- package/lib/auth.js +134 -134
- package/lib/camoufox-executable.js +189 -189
- package/lib/config.js +153 -153
- package/lib/cookies.js +119 -119
- package/lib/downloads.js +168 -168
- package/lib/extract.js +74 -74
- package/lib/fly.js +54 -54
- package/lib/images.js +88 -88
- package/lib/inflight.js +16 -16
- package/lib/launcher.js +47 -47
- package/lib/macros.js +31 -31
- package/lib/metrics.js +184 -184
- package/lib/openapi.js +105 -105
- package/lib/persistence.js +89 -89
- package/lib/plugins.js +178 -175
- package/lib/proxy.js +277 -277
- package/lib/reporter.js +1102 -1102
- package/lib/request-utils.js +59 -59
- package/lib/resources.js +76 -76
- package/lib/snapshot.js +41 -41
- package/lib/tmp-cleanup.js +108 -108
- package/lib/tracing.js +137 -137
- package/openclaw.plugin.json +268 -268
- package/package.json +148 -148
- package/plugin.ts +758 -758
- package/plugins/persistence/AGENTS.md +37 -37
- package/plugins/persistence/README.md +48 -48
- package/plugins/persistence/index.js +124 -124
- package/plugins/vnc/AGENTS.md +42 -42
- package/plugins/vnc/README.md +165 -165
- package/plugins/vnc/apt.txt +7 -7
- package/plugins/vnc/index.js +142 -142
- package/plugins/vnc/spawn.js +8 -8
- package/plugins/vnc/vnc-launcher.js +64 -64
- package/plugins/vnc/vnc-watcher.sh +82 -82
- package/plugins/youtube/AGENTS.md +25 -25
- package/plugins/youtube/apt.txt +1 -1
- package/plugins/youtube/index.js +206 -206
- package/plugins/youtube/post-install.sh +5 -5
- package/plugins/youtube/youtube.js +301 -301
- package/run.sh +37 -37
- package/scripts/exec.js +8 -8
- package/scripts/generate-openapi.js +24 -24
- package/scripts/install-plugin-deps.sh +63 -63
- package/scripts/plugin.js +342 -342
- package/scripts/sync-version.js +25 -25
- package/server.js +6062 -6059
- package/tsconfig.json +12 -12
package/package.json
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@phi-code-admin/camofox-browser",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Phi-code vendored headless browser automation library (snapshot of jo-inc/camofox-browser@c9a90daf, MIT). 10 OpenClaw browser tools exposed as ES module functions; legacy Express server kept opt-in.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "server.js",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"author": "uglyswap (vendored from jo-inc/camofox-browser, MIT)",
|
|
9
|
-
"contributors": [
|
|
10
|
-
"Jo Inc <oss@askjo.ai> (original camofox-browser author)"
|
|
11
|
-
],
|
|
12
|
-
"homepage": "https://github.com/uglyswap/phi-code/tree/main/packages/camofox-browser",
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/uglyswap/phi-code.git",
|
|
16
|
-
"directory": "packages/camofox-browser"
|
|
17
|
-
},
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/uglyswap/phi-code/issues"
|
|
20
|
-
},
|
|
21
|
-
"publishConfig": {
|
|
22
|
-
"access": "public"
|
|
23
|
-
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"browser",
|
|
26
|
-
"automation",
|
|
27
|
-
"headless",
|
|
28
|
-
"scraping",
|
|
29
|
-
"camofox",
|
|
30
|
-
"camoufox",
|
|
31
|
-
"anti-detection",
|
|
32
|
-
"ai-agent",
|
|
33
|
-
"openclaw",
|
|
34
|
-
"clawdbot",
|
|
35
|
-
"moltbot",
|
|
36
|
-
"playwright",
|
|
37
|
-
"firefox",
|
|
38
|
-
"youtube",
|
|
39
|
-
"transcript"
|
|
40
|
-
],
|
|
41
|
-
"engines": {
|
|
42
|
-
"node": ">=22"
|
|
43
|
-
},
|
|
44
|
-
"files": [
|
|
45
|
-
"server.js",
|
|
46
|
-
"lib/",
|
|
47
|
-
"plugins/",
|
|
48
|
-
"camofox.config.json",
|
|
49
|
-
"plugin.ts",
|
|
50
|
-
"plugin.js",
|
|
51
|
-
"dist/plugin.js",
|
|
52
|
-
"tsconfig.json",
|
|
53
|
-
"openclaw.plugin.json",
|
|
54
|
-
"scripts/",
|
|
55
|
-
"run.sh",
|
|
56
|
-
"Dockerfile",
|
|
57
|
-
"README.md",
|
|
58
|
-
"LICENSE",
|
|
59
|
-
"AGENTS.md",
|
|
60
|
-
"!**/*.test.js",
|
|
61
|
-
"!**/*.test.ts",
|
|
62
|
-
"!**/*.spec.js"
|
|
63
|
-
],
|
|
64
|
-
"openclaw": {
|
|
65
|
-
"extensions": [
|
|
66
|
-
"plugin.ts"
|
|
67
|
-
],
|
|
68
|
-
"runtimeExtensions": [
|
|
69
|
-
"plugin.js"
|
|
70
|
-
],
|
|
71
|
-
"compat": {
|
|
72
|
-
"pluginApi": ">=2026.3.24-beta.2"
|
|
73
|
-
},
|
|
74
|
-
"build": {
|
|
75
|
-
"openclawVersion": "2026.5.3"
|
|
76
|
-
},
|
|
77
|
-
"tools": [
|
|
78
|
-
{
|
|
79
|
-
"name": "camofox_create_tab",
|
|
80
|
-
"description": "Open a new browser tab at a URL"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "camofox_snapshot",
|
|
84
|
-
"description": "Get accessibility snapshot with element refs"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"name": "camofox_click",
|
|
88
|
-
"description": "Click an element by ref or CSS selector"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "camofox_type",
|
|
92
|
-
"description": "Type text into an element"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "camofox_navigate",
|
|
96
|
-
"description": "Navigate to URL or search macro"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "camofox_scroll",
|
|
100
|
-
"description": "Scroll page up/down/left/right"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"name": "camofox_screenshot",
|
|
104
|
-
"description": "Capture page screenshot"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"name": "camofox_close_tab",
|
|
108
|
-
"description": "Close a browser tab"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "camofox_list_tabs",
|
|
112
|
-
"description": "List open tabs for a user"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "camofox_import_cookies",
|
|
116
|
-
"description": "Import Netscape cookie file (requires CAMOFOX_API_KEY)"
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
},
|
|
120
|
-
"scripts": {
|
|
121
|
-
"build": "shx mkdir -p dist && shx cp plugin.js dist/plugin.js",
|
|
122
|
-
"prepublishOnly": "npm run build",
|
|
123
|
-
"start": "node server.js",
|
|
124
|
-
"test": "NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit",
|
|
125
|
-
"test:e2e": "NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit tests/e2e",
|
|
126
|
-
"test:plugins": "NODE_OPTIONS='--experimental-vm-modules' jest --forceExit plugins/",
|
|
127
|
-
"test:live": "RUN_LIVE_TESTS=1 NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit tests/live",
|
|
128
|
-
"test:debug": "DEBUG_SERVER=1 NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit",
|
|
129
|
-
"plugin": "node scripts/plugin.js",
|
|
130
|
-
"generate-openapi": "node scripts/generate-openapi.js",
|
|
131
|
-
"version:sync": "node scripts/sync-version.js",
|
|
132
|
-
"version": "node scripts/sync-version.js && node scripts/generate-openapi.js && git add openclaw.plugin.json openapi.json",
|
|
133
|
-
"fetch-bin": "node -e \"console.warn('@phi-code-admin/camofox-browser bundles the binary via @phi-code-admin/camoufox-bin-*; no fetch needed. Reinstall if missing.')\""
|
|
134
|
-
},
|
|
135
|
-
"dependencies": {
|
|
136
|
-
"@phi-code-admin/camoufox-js": "1.0.
|
|
137
|
-
"express": "^4.18.2",
|
|
138
|
-
"playwright-core": "^1.58.0",
|
|
139
|
-
"prom-client": "^15.1.3",
|
|
140
|
-
"swagger-jsdoc": "^6.2.8"
|
|
141
|
-
},
|
|
142
|
-
"devDependencies": {
|
|
143
|
-
"@types/node": "^22.0.0",
|
|
144
|
-
"jest": "^29.7.0",
|
|
145
|
-
"pngjs": "^7.0.0",
|
|
146
|
-
"typescript": "^5.7.0"
|
|
147
|
-
}
|
|
148
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@phi-code-admin/camofox-browser",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Phi-code vendored headless browser automation library (snapshot of jo-inc/camofox-browser@c9a90daf, MIT). 10 OpenClaw browser tools exposed as ES module functions; legacy Express server kept opt-in.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "server.js",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "uglyswap (vendored from jo-inc/camofox-browser, MIT)",
|
|
9
|
+
"contributors": [
|
|
10
|
+
"Jo Inc <oss@askjo.ai> (original camofox-browser author)"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/uglyswap/phi-code/tree/main/packages/camofox-browser",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/uglyswap/phi-code.git",
|
|
16
|
+
"directory": "packages/camofox-browser"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/uglyswap/phi-code/issues"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"browser",
|
|
26
|
+
"automation",
|
|
27
|
+
"headless",
|
|
28
|
+
"scraping",
|
|
29
|
+
"camofox",
|
|
30
|
+
"camoufox",
|
|
31
|
+
"anti-detection",
|
|
32
|
+
"ai-agent",
|
|
33
|
+
"openclaw",
|
|
34
|
+
"clawdbot",
|
|
35
|
+
"moltbot",
|
|
36
|
+
"playwright",
|
|
37
|
+
"firefox",
|
|
38
|
+
"youtube",
|
|
39
|
+
"transcript"
|
|
40
|
+
],
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=22"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"server.js",
|
|
46
|
+
"lib/",
|
|
47
|
+
"plugins/",
|
|
48
|
+
"camofox.config.json",
|
|
49
|
+
"plugin.ts",
|
|
50
|
+
"plugin.js",
|
|
51
|
+
"dist/plugin.js",
|
|
52
|
+
"tsconfig.json",
|
|
53
|
+
"openclaw.plugin.json",
|
|
54
|
+
"scripts/",
|
|
55
|
+
"run.sh",
|
|
56
|
+
"Dockerfile",
|
|
57
|
+
"README.md",
|
|
58
|
+
"LICENSE",
|
|
59
|
+
"AGENTS.md",
|
|
60
|
+
"!**/*.test.js",
|
|
61
|
+
"!**/*.test.ts",
|
|
62
|
+
"!**/*.spec.js"
|
|
63
|
+
],
|
|
64
|
+
"openclaw": {
|
|
65
|
+
"extensions": [
|
|
66
|
+
"plugin.ts"
|
|
67
|
+
],
|
|
68
|
+
"runtimeExtensions": [
|
|
69
|
+
"plugin.js"
|
|
70
|
+
],
|
|
71
|
+
"compat": {
|
|
72
|
+
"pluginApi": ">=2026.3.24-beta.2"
|
|
73
|
+
},
|
|
74
|
+
"build": {
|
|
75
|
+
"openclawVersion": "2026.5.3"
|
|
76
|
+
},
|
|
77
|
+
"tools": [
|
|
78
|
+
{
|
|
79
|
+
"name": "camofox_create_tab",
|
|
80
|
+
"description": "Open a new browser tab at a URL"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "camofox_snapshot",
|
|
84
|
+
"description": "Get accessibility snapshot with element refs"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "camofox_click",
|
|
88
|
+
"description": "Click an element by ref or CSS selector"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "camofox_type",
|
|
92
|
+
"description": "Type text into an element"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "camofox_navigate",
|
|
96
|
+
"description": "Navigate to URL or search macro"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "camofox_scroll",
|
|
100
|
+
"description": "Scroll page up/down/left/right"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "camofox_screenshot",
|
|
104
|
+
"description": "Capture page screenshot"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "camofox_close_tab",
|
|
108
|
+
"description": "Close a browser tab"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "camofox_list_tabs",
|
|
112
|
+
"description": "List open tabs for a user"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "camofox_import_cookies",
|
|
116
|
+
"description": "Import Netscape cookie file (requires CAMOFOX_API_KEY)"
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"scripts": {
|
|
121
|
+
"build": "shx mkdir -p dist && shx cp plugin.js dist/plugin.js",
|
|
122
|
+
"prepublishOnly": "npm run build",
|
|
123
|
+
"start": "node server.js",
|
|
124
|
+
"test": "NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit",
|
|
125
|
+
"test:e2e": "NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit tests/e2e",
|
|
126
|
+
"test:plugins": "NODE_OPTIONS='--experimental-vm-modules' jest --forceExit plugins/",
|
|
127
|
+
"test:live": "RUN_LIVE_TESTS=1 NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit tests/live",
|
|
128
|
+
"test:debug": "DEBUG_SERVER=1 NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit",
|
|
129
|
+
"plugin": "node scripts/plugin.js",
|
|
130
|
+
"generate-openapi": "node scripts/generate-openapi.js",
|
|
131
|
+
"version:sync": "node scripts/sync-version.js",
|
|
132
|
+
"version": "node scripts/sync-version.js && node scripts/generate-openapi.js && git add openclaw.plugin.json openapi.json",
|
|
133
|
+
"fetch-bin": "node -e \"console.warn('@phi-code-admin/camofox-browser bundles the binary via @phi-code-admin/camoufox-bin-*; no fetch needed. Reinstall if missing.')\""
|
|
134
|
+
},
|
|
135
|
+
"dependencies": {
|
|
136
|
+
"@phi-code-admin/camoufox-js": "1.0.1",
|
|
137
|
+
"express": "^4.18.2",
|
|
138
|
+
"playwright-core": "^1.58.0",
|
|
139
|
+
"prom-client": "^15.1.3",
|
|
140
|
+
"swagger-jsdoc": "^6.2.8"
|
|
141
|
+
},
|
|
142
|
+
"devDependencies": {
|
|
143
|
+
"@types/node": "^22.0.0",
|
|
144
|
+
"jest": "^29.7.0",
|
|
145
|
+
"pngjs": "^7.0.0",
|
|
146
|
+
"typescript": "^5.7.0"
|
|
147
|
+
}
|
|
148
|
+
}
|