opera-browser-cli 0.1.34 → 0.1.36
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/README.md +83 -28
- package/SKILL.md +35 -3
- package/dist/src/bridge.d.ts +12 -3
- package/dist/src/bridge.js +36 -4
- package/dist/src/bridge.js.map +1 -1
- package/dist/src/cli.d.ts +5 -1
- package/dist/src/cli.js +251 -75
- package/dist/src/cli.js.map +1 -1
- package/dist/src/client.d.ts +5 -5
- package/dist/src/client.js +16 -4
- package/dist/src/client.js.map +1 -1
- package/dist/src/run.js +5 -4
- package/dist/src/run.js.map +1 -1
- package/dist/src/snapshot.d.ts +54 -2
- package/dist/src/snapshot.js +375 -6
- package/dist/src/snapshot.js.map +1 -1
- package/openclaw/.env.example +14 -0
- package/openclaw/Dockerfile +14 -0
- package/openclaw/README.md +173 -0
- package/openclaw/docker-compose.yml +49 -0
- package/package.json +3 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
services:
|
|
2
|
+
# Dedicated headless Chrome sidecar — ARM64-compatible, pre-configured for Docker.
|
|
3
|
+
# opera-browser-cli connects to it via CDP at localhost:9222 (shared network namespace).
|
|
4
|
+
chrome:
|
|
5
|
+
image: chromedp/headless-shell:latest
|
|
6
|
+
# Chrome's CDP HTTP server rejects non-IP/non-localhost Host headers.
|
|
7
|
+
# The openclaw service uses network_mode: service:chrome so it sees Chrome
|
|
8
|
+
# as localhost, bypassing that check without needing --remote-allow-origins tricks.
|
|
9
|
+
ports:
|
|
10
|
+
# Expose OpenClaw's gateway through the chrome container (openclaw shares this netns)
|
|
11
|
+
- "18789:18789"
|
|
12
|
+
restart: unless-stopped
|
|
13
|
+
healthcheck:
|
|
14
|
+
test: ["CMD-SHELL", "bash -c 'exec 3<>/dev/tcp/127.0.0.1/9222' 2>/dev/null"]
|
|
15
|
+
interval: 3s
|
|
16
|
+
timeout: 3s
|
|
17
|
+
retries: 10
|
|
18
|
+
start_period: 5s
|
|
19
|
+
|
|
20
|
+
openclaw:
|
|
21
|
+
build:
|
|
22
|
+
context: .
|
|
23
|
+
dockerfile: Dockerfile
|
|
24
|
+
depends_on:
|
|
25
|
+
chrome:
|
|
26
|
+
condition: service_healthy
|
|
27
|
+
# Share chrome's network namespace so localhost:9222 IS the Chrome CDP port
|
|
28
|
+
network_mode: "service:chrome"
|
|
29
|
+
environment:
|
|
30
|
+
# localhost:9222 resolves inside chrome's netns
|
|
31
|
+
OPERA_CLI_BROWSER_URL: http://localhost:9222
|
|
32
|
+
|
|
33
|
+
# OpenClaw: skip the interactive first-run wizard
|
|
34
|
+
OPENCLAW_SKIP_ONBOARDING: "1"
|
|
35
|
+
# Disable mDNS advertising (not useful inside Docker)
|
|
36
|
+
OPENCLAW_DISABLE_BONJOUR: "1"
|
|
37
|
+
|
|
38
|
+
volumes:
|
|
39
|
+
# Persist OpenClaw config and workspace across container restarts
|
|
40
|
+
- openclaw-config:/home/node/.openclaw
|
|
41
|
+
- openclaw-auth:/home/node/.config/openclaw
|
|
42
|
+
|
|
43
|
+
shm_size: 256m
|
|
44
|
+
|
|
45
|
+
restart: unless-stopped
|
|
46
|
+
|
|
47
|
+
volumes:
|
|
48
|
+
openclaw-config:
|
|
49
|
+
openclaw-auth:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opera-browser-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"description": "AXI-compliant opera-devtools-mcp wrapper — combined operations, TOON output, contextual suggestions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
|
+
"openclaw",
|
|
25
26
|
"LICENSE",
|
|
26
27
|
"README.md",
|
|
27
28
|
"SKILL.md"
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
45
46
|
"@toon-format/toon": "^2.1.0",
|
|
46
47
|
"axi-sdk-js": "^0.1.4",
|
|
47
|
-
"opera-devtools-mcp": "^0.
|
|
48
|
+
"opera-devtools-mcp": "^0.2.3"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@types/node": "^22.0.0",
|