opera-browser-cli 0.1.33 → 0.1.34
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 +2 -2
- package/dist/src/cli.d.ts +1 -1
- package/dist/src/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,7 +114,7 @@ OPERA_CLI_BROWSER_URL=http://127.0.0.1:9222 opera-browser-cli open https://examp
|
|
|
114
114
|
┌───────────────────────┐
|
|
115
115
|
│ opera-browser-cli │ CLI — parse args, format output
|
|
116
116
|
└──────────┬────────────┘
|
|
117
|
-
│ HTTP (localhost:
|
|
117
|
+
│ HTTP (localhost:9225)
|
|
118
118
|
▼
|
|
119
119
|
┌───────────────────────┐
|
|
120
120
|
│ Bridge Server │ Persistent process, manages MCP session
|
|
@@ -265,7 +265,7 @@ session is active or the no-session status/help block when one is not.
|
|
|
265
265
|
|
|
266
266
|
| Variable | Default | Purpose |
|
|
267
267
|
| --- | --- | --- |
|
|
268
|
-
| `OPERA_CLI_PORT` | `
|
|
268
|
+
| `OPERA_CLI_PORT` | `9225` | Bridge server port |
|
|
269
269
|
| `OPERA_CLI_MCP_BIN` | _(bundled `opera-devtools-mcp`)_ | Override the MCP server binary |
|
|
270
270
|
| `OPERA_CLI_EXECUTABLE_PATH` | _(system Chrome)_ | Custom browser binary |
|
|
271
271
|
| `OPERA_CLI_BROWSER_URL` | — | Connect to an existing browser instance instead of launching one |
|
package/dist/src/cli.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type MainOptions = {
|
|
|
3
3
|
argv?: string[];
|
|
4
4
|
stdout?: CliStdout;
|
|
5
5
|
};
|
|
6
|
-
export declare const TOP_HELP = "usage: opera-browser-cli [command] [args] [flags]\ncommands[41]:\n open <url>, snapshot, screenshot <path>, click @<uid>, fill @<uid> <text>,\n type <text>, press <key>, scroll <dir>, back, wait <ms|text>, eval <js>,\n run,\n hover @<uid>, drag @<from> @<to>, fillform @<uid>=<val>..., dialog <action>,\n upload @<uid> <path>, pages, newpage <url>, selectpage <id>, closepage <id>,\n resize <w> <h>, emulate, console, console-get <id>, network,\n network-get [id], lighthouse, perf-start, perf-stop,\n perf-insight <set> <name>, heap <path>, start, stop,\n chat <prompt>, invoke-do <prompt>, make <prompt>, research <prompt>,\n setup, logs, doctor\n\nflags[2]:\n --help, -v/-V/--version\n\nenvironment:\n OPERA_CLI_HEADED Set to 1 to run Chrome in headed (visible) mode\n OPERA_CLI_CHROME_ARGS Whitespace-separated Chrome flags forwarded to the browser\n (no shell-style quoting; flags with spaces are not supported)\n e.g. \"--enable-gpu --ignore-gpu-blocklist\"\n OPERA_CLI_PORT Bridge server port (default:
|
|
6
|
+
export declare const TOP_HELP = "usage: opera-browser-cli [command] [args] [flags]\ncommands[41]:\n open <url>, snapshot, screenshot <path>, click @<uid>, fill @<uid> <text>,\n type <text>, press <key>, scroll <dir>, back, wait <ms|text>, eval <js>,\n run,\n hover @<uid>, drag @<from> @<to>, fillform @<uid>=<val>..., dialog <action>,\n upload @<uid> <path>, pages, newpage <url>, selectpage <id>, closepage <id>,\n resize <w> <h>, emulate, console, console-get <id>, network,\n network-get [id], lighthouse, perf-start, perf-stop,\n perf-insight <set> <name>, heap <path>, start, stop,\n chat <prompt>, invoke-do <prompt>, make <prompt>, research <prompt>,\n setup, logs, doctor\n\nflags[2]:\n --help, -v/-V/--version\n\nenvironment:\n OPERA_CLI_HEADED Set to 1 to run Chrome in headed (visible) mode\n OPERA_CLI_CHROME_ARGS Whitespace-separated Chrome flags forwarded to the browser\n (no shell-style quoting; flags with spaces are not supported)\n e.g. \"--enable-gpu --ignore-gpu-blocklist\"\n OPERA_CLI_PORT Bridge server port (default: 9225)\n OPERA_CLI_BROWSER_URL Connect to an existing Chrome instance instead of launching one\n e.g. \"http://127.0.0.1:9222\"\n OPERA_CLI_USER_DATA_DIR Persistent Chrome profile directory (skips --isolated mode)\n e.g. \"/path/to/.chrome-profile\"\n OPERA_CLI_EXECUTABLE_PATH Path to a custom browser binary (e.g. Opera Neon)\n OPERA_CLI_DISABLE_HOOKS Set to 1 to skip auto-installing session hooks\n\n Environment variables can also be set in ~/.opera-browser-cli/config (KEY=VALUE, one per line).\n Run `opera-browser-cli setup` to configure interactively.\n\nopera ai:\n chat is available on any Opera browser.\n invoke-do, make, and research require Opera Neon with an active sign-in.\n Run `opera-browser-cli setup` to configure the executable path, or set\n OPERA_CLI_EXECUTABLE_PATH=\"/Applications/Opera Neon.app/Contents/MacOS/Opera\".\n\ngpu:\n Headless Chrome cannot access hardware GPU on most Linux systems.\n For GPU-accelerated WebGL, use headed mode with GPU flags:\n OPERA_CLI_HEADED=1\n OPERA_CLI_CHROME_ARGS=\"--enable-gpu --ignore-gpu-blocklist\"\n For WebGPU, Vulkan must also be enabled (required for the Dawn backend):\n OPERA_CLI_CHROME_ARGS=\"--enable-gpu --ignore-gpu-blocklist --enable-unsafe-webgpu --enable-features=Vulkan\"\n\ntips:\n Pipe output through grep/head to extract specific data from large pages.\n";
|
|
7
7
|
export declare function getCommandHelp(command: string): string | null;
|
|
8
8
|
export interface ScreenshotArgs {
|
|
9
9
|
filePath: string | null;
|
package/dist/src/cli.js
CHANGED
|
@@ -33,7 +33,7 @@ environment:
|
|
|
33
33
|
OPERA_CLI_CHROME_ARGS Whitespace-separated Chrome flags forwarded to the browser
|
|
34
34
|
(no shell-style quoting; flags with spaces are not supported)
|
|
35
35
|
e.g. "--enable-gpu --ignore-gpu-blocklist"
|
|
36
|
-
OPERA_CLI_PORT Bridge server port (default:
|
|
36
|
+
OPERA_CLI_PORT Bridge server port (default: 9225)
|
|
37
37
|
OPERA_CLI_BROWSER_URL Connect to an existing Chrome instance instead of launching one
|
|
38
38
|
e.g. "http://127.0.0.1:9222"
|
|
39
39
|
OPERA_CLI_USER_DATA_DIR Persistent Chrome profile directory (skips --isolated mode)
|