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.
@@ -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.34",
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.1.1"
48
+ "opera-devtools-mcp": "^0.2.3"
48
49
  },
49
50
  "devDependencies": {
50
51
  "@types/node": "^22.0.0",