opera-browser-cli 0.1.29 → 0.1.30
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 +33 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,6 +11,14 @@ It wraps [opera-devtools-mcp](https://github.com/operasoftware/opera-devtools-mc
|
|
|
11
11
|
|
|
12
12
|
## Quick Start
|
|
13
13
|
|
|
14
|
+
```sh
|
|
15
|
+
npm install -g opera-browser-cli
|
|
16
|
+
opera-browser-cli setup # interactive wizard — run in a terminal where you can answer prompts
|
|
17
|
+
opera-browser-cli open https://example.com
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Once installed, `open` navigates to a URL and returns a structured snapshot you can act on:
|
|
21
|
+
|
|
14
22
|
```sh
|
|
15
23
|
$ opera-browser-cli open https://example.com
|
|
16
24
|
page: {title: "Example Domain", url: "https://example.com", refs: 1}
|
|
@@ -28,20 +36,30 @@ snapshot:
|
|
|
28
36
|
...
|
|
29
37
|
```
|
|
30
38
|
|
|
39
|
+
### Opera Neon AI features
|
|
40
|
+
|
|
41
|
+
With [Opera Neon](https://www.operaneon.com) and an active Opera account, you get four AI-powered commands:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
opera-browser-cli chat "summarise this page" # ask the built-in AI about the current page
|
|
45
|
+
opera-browser-cli invoke-do "book a table for 2" # let the AI perform a multi-step browsing task
|
|
46
|
+
opera-browser-cli make "a todo app in vanilla JS" # generate and open a webpage or mini-app
|
|
47
|
+
opera-browser-cli research "solid-state batteries" # in-depth research across multiple sources
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Run `opera-browser-cli setup` to connect Neon, or `opera-browser-cli doctor` to check your configuration.
|
|
51
|
+
|
|
31
52
|
## Install
|
|
32
53
|
|
|
33
54
|
Prerequisites: **Node.js >= 20**, **Opera** browser ([Opera Neon](https://www.operaneon.com) recommended for AI features).
|
|
34
55
|
|
|
35
|
-
###
|
|
36
|
-
|
|
37
|
-
**Build and link `opera-browser-cli`:**
|
|
56
|
+
### npm (recommended)
|
|
38
57
|
|
|
39
58
|
```sh
|
|
40
|
-
|
|
41
|
-
npm install && npm run build && npm link
|
|
59
|
+
npm install -g opera-browser-cli
|
|
42
60
|
```
|
|
43
61
|
|
|
44
|
-
|
|
62
|
+
Run first-time setup — this is an interactive wizard, so run it in a terminal where you can answer prompts:
|
|
45
63
|
|
|
46
64
|
```sh
|
|
47
65
|
opera-browser-cli setup
|
|
@@ -56,6 +74,15 @@ opera-browser-cli --version
|
|
|
56
74
|
opera-browser-cli open https://example.com
|
|
57
75
|
```
|
|
58
76
|
|
|
77
|
+
### From source
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
# in this repo
|
|
81
|
+
npm install && npm run build && npm link
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Then run `opera-browser-cli setup` as above.
|
|
85
|
+
|
|
59
86
|
### Usage examples
|
|
60
87
|
|
|
61
88
|
```sh
|