@phi-code-admin/camofox-browser 1.0.0
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 -0
- package/Dockerfile +86 -0
- package/LICENSE +21 -0
- package/README.md +691 -0
- package/camofox.config.json +10 -0
- package/dist/plugin.js +616 -0
- package/lib/auth.js +134 -0
- package/lib/camoufox-executable.js +189 -0
- package/lib/config.js +153 -0
- package/lib/cookies.js +119 -0
- package/lib/downloads.js +168 -0
- package/lib/extract.js +74 -0
- package/lib/fly.js +54 -0
- package/lib/images.js +88 -0
- package/lib/inflight.js +16 -0
- package/lib/launcher.js +47 -0
- package/lib/macros.js +31 -0
- package/lib/metrics.js +184 -0
- package/lib/openapi.js +105 -0
- package/lib/persistence.js +89 -0
- package/lib/plugins.js +175 -0
- package/lib/proxy.js +277 -0
- package/lib/reporter.js +1102 -0
- package/lib/request-utils.js +59 -0
- package/lib/resources.js +76 -0
- package/lib/snapshot.js +41 -0
- package/lib/tmp-cleanup.js +108 -0
- package/lib/tracing.js +137 -0
- package/openclaw.plugin.json +268 -0
- package/package.json +148 -0
- package/plugin.js +616 -0
- package/plugin.ts +758 -0
- package/plugins/persistence/AGENTS.md +37 -0
- package/plugins/persistence/README.md +48 -0
- package/plugins/persistence/index.js +124 -0
- package/plugins/vnc/AGENTS.md +42 -0
- package/plugins/vnc/README.md +165 -0
- package/plugins/vnc/apt.txt +7 -0
- package/plugins/vnc/index.js +142 -0
- package/plugins/vnc/spawn.js +8 -0
- package/plugins/vnc/vnc-launcher.js +64 -0
- package/plugins/vnc/vnc-watcher.sh +82 -0
- package/plugins/youtube/AGENTS.md +25 -0
- package/plugins/youtube/apt.txt +1 -0
- package/plugins/youtube/index.js +206 -0
- package/plugins/youtube/post-install.sh +5 -0
- package/plugins/youtube/youtube.js +301 -0
- package/run.sh +37 -0
- package/scripts/exec.js +8 -0
- package/scripts/generate-openapi.js +24 -0
- package/scripts/install-plugin-deps.sh +63 -0
- package/scripts/plugin.js +342 -0
- package/scripts/postinstall.js +20 -0
- package/scripts/sync-version.js +25 -0
- package/server.js +6059 -0
- package/tsconfig.json +12 -0
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "@skyfallsin/camofox-browser",
|
|
3
|
+
"name": "Camofox Browser",
|
|
4
|
+
"description": "Anti-detection browser automation for AI agents using Camoufox (Firefox-based)",
|
|
5
|
+
"version": "1.10.1",
|
|
6
|
+
"envVars": {
|
|
7
|
+
"CAMOFOX_API_KEY": {
|
|
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.",
|
|
9
|
+
"required": false,
|
|
10
|
+
"sensitive": true
|
|
11
|
+
},
|
|
12
|
+
"CAMOFOX_ACCESS_KEY": {
|
|
13
|
+
"description": "Global bearer token for all routes (except /health). When set, every request must include Authorization: Bearer <key>. Recommended when exposing the server beyond localhost.",
|
|
14
|
+
"required": false,
|
|
15
|
+
"sensitive": true
|
|
16
|
+
},
|
|
17
|
+
"CAMOFOX_CRASH_REPORT_ENABLED": {
|
|
18
|
+
"description": "Enable or disable anonymized crash/hang telemetry. Set to 'false' to disable all outbound telemetry.",
|
|
19
|
+
"required": false,
|
|
20
|
+
"sensitive": false,
|
|
21
|
+
"default": "true"
|
|
22
|
+
},
|
|
23
|
+
"CAMOFOX_CRASH_REPORT_URL": {
|
|
24
|
+
"description": "Telemetry endpoint URL. Override to point to a self-hosted endpoint instead of the default.",
|
|
25
|
+
"required": false,
|
|
26
|
+
"sensitive": false,
|
|
27
|
+
"default": "https://camofox-telemetry.askjo.workers.dev/report"
|
|
28
|
+
},
|
|
29
|
+
"CAMOUFOX_EXECUTABLE": {
|
|
30
|
+
"description": "External Camoufox executable to use instead of downloading the bundled browser. Compatibility aliases: CAMOUFOX_EXECUTABLE_PATH, CAMOFOX_EXECUTABLE_PATH.",
|
|
31
|
+
"required": false,
|
|
32
|
+
"sensitive": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"configSchema": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"url": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Camoufox browser server URL"
|
|
41
|
+
},
|
|
42
|
+
"port": {
|
|
43
|
+
"type": "number",
|
|
44
|
+
"description": "Server port (used if url not set)",
|
|
45
|
+
"default": 9377
|
|
46
|
+
},
|
|
47
|
+
"autoStart": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"description": "Auto-start the camofox-browser server with the Gateway",
|
|
50
|
+
"default": true
|
|
51
|
+
},
|
|
52
|
+
"maxSessions": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"description": "Maximum concurrent browser sessions (server default: 50)",
|
|
55
|
+
"default": 5
|
|
56
|
+
},
|
|
57
|
+
"maxTabsPerSession": {
|
|
58
|
+
"type": "number",
|
|
59
|
+
"description": "Maximum tabs per session (server default: 10)",
|
|
60
|
+
"default": 3
|
|
61
|
+
},
|
|
62
|
+
"sessionTimeoutMs": {
|
|
63
|
+
"type": "number",
|
|
64
|
+
"description": "Session inactivity timeout in milliseconds (server default: 1800000)",
|
|
65
|
+
"default": 600000
|
|
66
|
+
},
|
|
67
|
+
"browserIdleTimeoutMs": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"description": "Kill browser after this many ms with no sessions (0 = never)",
|
|
70
|
+
"default": 300000
|
|
71
|
+
},
|
|
72
|
+
"maxOldSpaceSize": {
|
|
73
|
+
"type": "number",
|
|
74
|
+
"description": "Node.js V8 heap limit in MB",
|
|
75
|
+
"default": 128
|
|
76
|
+
},
|
|
77
|
+
"apiKey": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "Secret key for cookie import endpoint. Cookie import is disabled if unset. Set via CAMOFOX_API_KEY env var."
|
|
80
|
+
},
|
|
81
|
+
"accessKey": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "If set, all routes (except /health) require Authorization: Bearer <key>. Set via CAMOFOX_ACCESS_KEY env var."
|
|
84
|
+
},
|
|
85
|
+
"crashReportEnabled": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"description": "Enable anonymized crash/hang telemetry. Set false to disable all outbound telemetry.",
|
|
88
|
+
"default": true
|
|
89
|
+
},
|
|
90
|
+
"crashReportUrl": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "Telemetry endpoint URL. Override to point to a self-hosted endpoint. Set via CAMOFOX_CRASH_REPORT_URL env var.",
|
|
93
|
+
"default": "https://camofox-telemetry.askjo.workers.dev/report"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
},
|
|
98
|
+
"telemetry": {
|
|
99
|
+
"crashReporter": {
|
|
100
|
+
"description": "Anonymized crash/hang telemetry for identifying failure patterns. All credentials are environment secrets on the endpoint -- nothing sensitive ships in this package.",
|
|
101
|
+
"enabled": true,
|
|
102
|
+
"optOut": "CAMOFOX_CRASH_REPORT_ENABLED=false",
|
|
103
|
+
"endpoint": "https://camofox-telemetry.askjo.workers.dev/report",
|
|
104
|
+
"endpointSource": "https://github.com/jo-inc/camofox-browser/blob/main/workers/crash-reporter/index.ts",
|
|
105
|
+
"endpointVerification": "https://camofox-telemetry.askjo.workers.dev/source",
|
|
106
|
+
"selfHostable": true,
|
|
107
|
+
"selfHostOverride": "CAMOFOX_CRASH_REPORT_URL",
|
|
108
|
+
"dataCollected": [
|
|
109
|
+
"error type and anonymized stack trace",
|
|
110
|
+
"node/platform version and uptime",
|
|
111
|
+
"memory and resource counters (no content)",
|
|
112
|
+
"HMAC-hashed private domains (not reversible)",
|
|
113
|
+
"public domains verbatim (e.g. cloudflare.com, amazon.com)"
|
|
114
|
+
],
|
|
115
|
+
"dataNeverCollected": [
|
|
116
|
+
"page content or DOM",
|
|
117
|
+
"URLs with paths, query params, or credentials",
|
|
118
|
+
"cookies, tokens, API keys, or secrets",
|
|
119
|
+
"IP addresses or email addresses",
|
|
120
|
+
"user-identifiable information"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"uiHints": {
|
|
125
|
+
"url": {
|
|
126
|
+
"label": "Server URL",
|
|
127
|
+
"placeholder": "http://localhost:9377"
|
|
128
|
+
},
|
|
129
|
+
"port": {
|
|
130
|
+
"label": "Server Port",
|
|
131
|
+
"placeholder": "9377"
|
|
132
|
+
},
|
|
133
|
+
"autoStart": {
|
|
134
|
+
"label": "Auto-start server with Gateway"
|
|
135
|
+
},
|
|
136
|
+
"maxSessions": {
|
|
137
|
+
"label": "Max Sessions",
|
|
138
|
+
"placeholder": "5"
|
|
139
|
+
},
|
|
140
|
+
"maxTabsPerSession": {
|
|
141
|
+
"label": "Max Tabs per Session",
|
|
142
|
+
"placeholder": "3"
|
|
143
|
+
},
|
|
144
|
+
"sessionTimeoutMs": {
|
|
145
|
+
"label": "Session Timeout (ms)",
|
|
146
|
+
"placeholder": "600000"
|
|
147
|
+
},
|
|
148
|
+
"browserIdleTimeoutMs": {
|
|
149
|
+
"label": "Browser Idle Timeout (ms)",
|
|
150
|
+
"placeholder": "300000"
|
|
151
|
+
},
|
|
152
|
+
"maxOldSpaceSize": {
|
|
153
|
+
"label": "Node Heap Limit (MB)",
|
|
154
|
+
"placeholder": "128"
|
|
155
|
+
},
|
|
156
|
+
"apiKey": {
|
|
157
|
+
"label": "Cookie Import API Key (CAMOFOX_API_KEY)",
|
|
158
|
+
"placeholder": "Leave empty to disable cookie import"
|
|
159
|
+
},
|
|
160
|
+
"accessKey": {
|
|
161
|
+
"label": "Global Access Key (CAMOFOX_ACCESS_KEY)",
|
|
162
|
+
"placeholder": "Leave empty for localhost-only access"
|
|
163
|
+
},
|
|
164
|
+
"crashReportEnabled": {
|
|
165
|
+
"label": "Enable Telemetry"
|
|
166
|
+
},
|
|
167
|
+
"crashReportUrl": {
|
|
168
|
+
"label": "Telemetry Endpoint URL",
|
|
169
|
+
"placeholder": "https://camofox-telemetry.askjo.workers.dev/report"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"tools": [
|
|
173
|
+
"camofox_create_tab",
|
|
174
|
+
"camofox_snapshot",
|
|
175
|
+
"camofox_click",
|
|
176
|
+
"camofox_type",
|
|
177
|
+
"camofox_navigate",
|
|
178
|
+
"camofox_scroll",
|
|
179
|
+
"camofox_screenshot",
|
|
180
|
+
"camofox_close_tab",
|
|
181
|
+
"camofox_list_tabs",
|
|
182
|
+
"camofox_import_cookies"
|
|
183
|
+
],
|
|
184
|
+
"runtimeDependencies": {
|
|
185
|
+
"camoufox": {
|
|
186
|
+
"description": "Camoufox anti-detection browser (Firefox fork). Downloaded at install time by camoufox-js unless CAMOUFOX_EXECUTABLE points to an external bundle.",
|
|
187
|
+
"source": "https://github.com/nicedayzhu/camoufox/releases",
|
|
188
|
+
"installer": "camoufox-js (npm)",
|
|
189
|
+
"installedBy": "postinstall script: npx camoufox-js fetch, skipped when CAMOUFOX_EXECUTABLE is set",
|
|
190
|
+
"sizeApprox": "300MB",
|
|
191
|
+
"platforms": [
|
|
192
|
+
"linux-x86_64",
|
|
193
|
+
"linux-aarch64",
|
|
194
|
+
"macos-x86_64",
|
|
195
|
+
"macos-aarch64"
|
|
196
|
+
],
|
|
197
|
+
"verifiedBy": "camoufox-js verifies download integrity via GitHub release checksums"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"permissions": {
|
|
201
|
+
"network": {
|
|
202
|
+
"outbound": [
|
|
203
|
+
{
|
|
204
|
+
"target": "User-specified URLs (browsed pages)",
|
|
205
|
+
"purpose": "Browser automation -- navigating to URLs the agent requests",
|
|
206
|
+
"gatedBy": "Agent request via API"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"target": "https://camofox-telemetry.askjo.workers.dev/report",
|
|
210
|
+
"purpose": "Anonymized crash/hang telemetry",
|
|
211
|
+
"gatedBy": "CAMOFOX_CRASH_REPORT_ENABLED (default: true, set false to disable)"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"inbound": {
|
|
215
|
+
"target": "localhost:9377 (default)",
|
|
216
|
+
"purpose": "REST API for browser automation",
|
|
217
|
+
"gatedBy": "CAMOFOX_ACCESS_KEY (optional -- when set, all routes require Bearer auth)"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"filesystem": {
|
|
221
|
+
"read": [
|
|
222
|
+
{
|
|
223
|
+
"path": "~/.camofox/cookies/",
|
|
224
|
+
"purpose": "Read Netscape cookie files for authenticated browsing",
|
|
225
|
+
"gatedBy": "CAMOFOX_API_KEY (disabled entirely when unset)"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"path": "/proc/self/status (Linux only)",
|
|
229
|
+
"purpose": "Memory and resource metrics for telemetry",
|
|
230
|
+
"gatedBy": "Only read when telemetry is enabled"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"write": [
|
|
234
|
+
{
|
|
235
|
+
"path": "~/.camofox/profiles/<hashed-userId>/",
|
|
236
|
+
"purpose": "Persisted session state (cookies + localStorage) so users stay logged in across restarts",
|
|
237
|
+
"gatedBy": "persistence plugin (enabled by default, disable via camofox.config.json)"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"path": "~/.camofox/traces/<hashed-userId>/",
|
|
241
|
+
"purpose": "Optional Playwright session traces for debugging",
|
|
242
|
+
"gatedBy": "trace: true flag on tab creation (opt-in per session, off by default)"
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
"subprocess": [
|
|
247
|
+
{
|
|
248
|
+
"binary": "Camoufox (Firefox fork)",
|
|
249
|
+
"purpose": "The browser engine -- core functionality",
|
|
250
|
+
"isolation": "lib/launcher.js (child_process isolated from route handlers)"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"binary": "yt-dlp (optional)",
|
|
254
|
+
"purpose": "YouTube transcript extraction (fast path)",
|
|
255
|
+
"isolation": "plugins/youtube/youtube.js (child_process isolated from route handlers)"
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
"securityModel": {
|
|
260
|
+
"architecture": "All process.env reads are in lib/config.js. All child_process usage is in lib/launcher.js and plugins/youtube/youtube.js. server.js has route handlers but zero process.env reads and zero child_process imports. No single file combines secrets access with network sends.",
|
|
261
|
+
"cookieImport": "DISABLED by default. Requires CAMOFOX_API_KEY to be explicitly set. Without the key, the server rejects all cookie requests with 403. Cookie files are read from a sandboxed directory (~/.camofox/cookies/) with path traversal protection.",
|
|
262
|
+
"accessControl": "CAMOFOX_ACCESS_KEY provides global bearer auth for all routes (except /health). Recommended for any non-localhost deployment.",
|
|
263
|
+
"crashReporting": "Anonymized via lib/reporter.js (L28-290). Private domains are HMAC-hashed. No page content, cookies, tokens, IPs, or user data is ever sent. Relay source is in-repo and auditable. Verification endpoint: GET /source returns commit hash and sha256.",
|
|
264
|
+
"binaryDownload": "Camoufox is downloaded at npm install time by camoufox-js unless CAMOUFOX_EXECUTABLE points to an external Camoufox bundle. Downloaded binaries come from official GitHub releases with integrity verification by camoufox-js.",
|
|
265
|
+
"sessionPersistence": "User sessions are persisted to ~/.camofox/profiles/ so authenticated browsing survives restarts. UserIds are hashed for directory names. Disable via persistence plugin config.",
|
|
266
|
+
"noEmbeddedSecrets": "Zero credentials, private keys, or tokens ship in this package. All secrets are environment variables or Cloudflare Worker secrets."
|
|
267
|
+
}
|
|
268
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@phi-code-admin/camofox-browser",
|
|
3
|
+
"version": "1.0.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.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
|
+
}
|