@onkernel/cli 0.9.5 → 0.10.1
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 +65 -0
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -241,6 +241,50 @@ Create an API key from the [Kernel dashboard](https://dashboard.onkernel.com).
|
|
|
241
241
|
|
|
242
242
|
- `kernel browsers extensions upload <id or persistent id> <extension-path>...` - Ad-hoc upload of one or more unpacked extensions to a running browser instance.
|
|
243
243
|
|
|
244
|
+
### Browser Computer Controls
|
|
245
|
+
|
|
246
|
+
- `kernel browsers computer click-mouse <id or persistent id>` - Click mouse at coordinates
|
|
247
|
+
- `--x <coordinate>` - X coordinate (required)
|
|
248
|
+
- `--y <coordinate>` - Y coordinate (required)
|
|
249
|
+
- `--num-clicks <n>` - Number of clicks (default: 1)
|
|
250
|
+
- `--button <button>` - Mouse button: left, right, middle, back, forward (default: left)
|
|
251
|
+
- `--click-type <type>` - Click type: down, up, click (default: click)
|
|
252
|
+
- `--hold-key <key>` - Modifier keys to hold (repeatable)
|
|
253
|
+
- `kernel browsers computer move-mouse <id or persistent id>` - Move mouse to coordinates
|
|
254
|
+
- `--x <coordinate>` - X coordinate (required)
|
|
255
|
+
- `--y <coordinate>` - Y coordinate (required)
|
|
256
|
+
- `--hold-key <key>` - Modifier keys to hold (repeatable)
|
|
257
|
+
- `kernel browsers computer screenshot <id or persistent id>` - Capture a screenshot
|
|
258
|
+
- `--to <path>` - Output file path for the PNG image (required)
|
|
259
|
+
- `--x <coordinate>` - Top-left X for region capture (optional)
|
|
260
|
+
- `--y <coordinate>` - Top-left Y for region capture (optional)
|
|
261
|
+
- `--width <pixels>` - Region width (optional)
|
|
262
|
+
- `--height <pixels>` - Region height (optional)
|
|
263
|
+
- `kernel browsers computer type <id or persistent id>` - Type text on the browser instance
|
|
264
|
+
|
|
265
|
+
- `--text <text>` - Text to type (required)
|
|
266
|
+
- `--delay <ms>` - Delay in milliseconds between keystrokes (optional)
|
|
267
|
+
|
|
268
|
+
- `kernel browsers computer press-key <id or persistent id>` - Press one or more keys
|
|
269
|
+
|
|
270
|
+
- `--key <key>` - Key symbols to press (repeatable)
|
|
271
|
+
- `--duration <ms>` - Duration to hold keys down in ms (0=tap)
|
|
272
|
+
- `--hold-key <key>` - Modifier keys to hold (repeatable)
|
|
273
|
+
|
|
274
|
+
- `kernel browsers computer scroll <id or persistent id>` - Scroll the mouse wheel
|
|
275
|
+
|
|
276
|
+
- `--x <coordinate>` - X coordinate (required)
|
|
277
|
+
- `--y <coordinate>` - Y coordinate (required)
|
|
278
|
+
- `--delta-x <pixels>` - Horizontal scroll amount (+right, -left)
|
|
279
|
+
- `--delta-y <pixels>` - Vertical scroll amount (+down, -up)
|
|
280
|
+
- `--hold-key <key>` - Modifier keys to hold (repeatable)
|
|
281
|
+
|
|
282
|
+
- `kernel browsers computer drag-mouse <id or persistent id>` - Drag the mouse along a path
|
|
283
|
+
- `--point <x,y>` - Add a point as x,y (repeatable)
|
|
284
|
+
- `--delay <ms>` - Delay before dragging starts in ms
|
|
285
|
+
- `--button <button>` - Mouse button: left, middle, right (default: left)
|
|
286
|
+
- `--hold-key <key>` - Modifier keys to hold (repeatable)
|
|
287
|
+
|
|
244
288
|
### Extension Management
|
|
245
289
|
|
|
246
290
|
- `kernel extensions list` - List all uploaded extensions
|
|
@@ -330,6 +374,27 @@ kernel browsers fs upload my-browser --file "local.txt:remote.txt" --dest-dir "/
|
|
|
330
374
|
|
|
331
375
|
# List files in a directory
|
|
332
376
|
kernel browsers fs list-files my-browser --path "/tmp"
|
|
377
|
+
|
|
378
|
+
# Click the mouse at coordinates (100, 200)
|
|
379
|
+
kernel browsers computer click-mouse my-browser --x 100 --y 200
|
|
380
|
+
|
|
381
|
+
# Double-click the right mouse button
|
|
382
|
+
kernel browsers computer click-mouse my-browser --x 100 --y 200 --num-clicks 2 --button right
|
|
383
|
+
|
|
384
|
+
# Move the mouse to coordinates (500, 300)
|
|
385
|
+
kernel browsers computer move-mouse my-browser --x 500 --y 300
|
|
386
|
+
|
|
387
|
+
# Take a full screenshot
|
|
388
|
+
kernel browsers computer screenshot my-browser --to screenshot.png
|
|
389
|
+
|
|
390
|
+
# Take a screenshot of a specific region
|
|
391
|
+
kernel browsers computer screenshot my-browser --to region.png --x 0 --y 0 --width 800 --height 600
|
|
392
|
+
|
|
393
|
+
# Type text in the browser
|
|
394
|
+
kernel browsers computer type my-browser --text "Hello, World!"
|
|
395
|
+
|
|
396
|
+
# Type text with a 100ms delay between keystrokes
|
|
397
|
+
kernel browsers computer type my-browser --text "Slow typing..." --delay 100
|
|
333
398
|
```
|
|
334
399
|
|
|
335
400
|
### Extension management
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onkernel/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Kernel CLI",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node install.js",
|
|
@@ -34,75 +34,75 @@
|
|
|
34
34
|
},
|
|
35
35
|
"archives": {
|
|
36
36
|
"darwin-arm64": {
|
|
37
|
-
"name": "kernel_0.
|
|
38
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.
|
|
37
|
+
"name": "kernel_0.10.1_darwin_arm64.tar.gz",
|
|
38
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.10.1/kernel_0.10.1_darwin_arm64.tar.gz",
|
|
39
39
|
"bins": [
|
|
40
40
|
"kernel"
|
|
41
41
|
],
|
|
42
42
|
"format": "tar.gz",
|
|
43
43
|
"checksum": {
|
|
44
44
|
"algorithm": "sha256",
|
|
45
|
-
"digest": "
|
|
45
|
+
"digest": "7c8d3028baca527d42bd99f52bf48d21f8470a9680664ca69436b6093a5583a3"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"darwin-x64": {
|
|
49
|
-
"name": "kernel_0.
|
|
50
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.
|
|
49
|
+
"name": "kernel_0.10.1_darwin_amd64.tar.gz",
|
|
50
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.10.1/kernel_0.10.1_darwin_amd64.tar.gz",
|
|
51
51
|
"bins": [
|
|
52
52
|
"kernel"
|
|
53
53
|
],
|
|
54
54
|
"format": "tar.gz",
|
|
55
55
|
"checksum": {
|
|
56
56
|
"algorithm": "sha256",
|
|
57
|
-
"digest": "
|
|
57
|
+
"digest": "34c0d640c4285bba4e27ad0d7ec3e8fbe3ad859cd7cdf115d12871e200c67114"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"linux-arm64": {
|
|
61
|
-
"name": "kernel_0.
|
|
62
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.
|
|
61
|
+
"name": "kernel_0.10.1_linux_arm64.tar.gz",
|
|
62
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.10.1/kernel_0.10.1_linux_arm64.tar.gz",
|
|
63
63
|
"bins": [
|
|
64
64
|
"kernel"
|
|
65
65
|
],
|
|
66
66
|
"format": "tar.gz",
|
|
67
67
|
"checksum": {
|
|
68
68
|
"algorithm": "sha256",
|
|
69
|
-
"digest": "
|
|
69
|
+
"digest": "0a47a1e0292c96635d932b582b9054fd639ec30bd400dd76de20144f6f60f629"
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"linux-x64": {
|
|
73
|
-
"name": "kernel_0.
|
|
74
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.
|
|
73
|
+
"name": "kernel_0.10.1_linux_amd64.tar.gz",
|
|
74
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.10.1/kernel_0.10.1_linux_amd64.tar.gz",
|
|
75
75
|
"bins": [
|
|
76
76
|
"kernel"
|
|
77
77
|
],
|
|
78
78
|
"format": "tar.gz",
|
|
79
79
|
"checksum": {
|
|
80
80
|
"algorithm": "sha256",
|
|
81
|
-
"digest": "
|
|
81
|
+
"digest": "724e9403c571237dfab1eff0adc56a806b51ca00f6a4e25ca6b1cd117c1836e4"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"win32-arm64": {
|
|
85
|
-
"name": "kernel_0.
|
|
86
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.
|
|
85
|
+
"name": "kernel_0.10.1_windows_arm64.tar.gz",
|
|
86
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.10.1/kernel_0.10.1_windows_arm64.tar.gz",
|
|
87
87
|
"bins": [
|
|
88
88
|
"kernel.exe"
|
|
89
89
|
],
|
|
90
90
|
"format": "tar.gz",
|
|
91
91
|
"checksum": {
|
|
92
92
|
"algorithm": "sha256",
|
|
93
|
-
"digest": "
|
|
93
|
+
"digest": "cbd77fc981bd2e4f83314eafe3399caf97a7b9e21d3c19717633a680dc1d2c6d"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"win32-x64": {
|
|
97
|
-
"name": "kernel_0.
|
|
98
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.
|
|
97
|
+
"name": "kernel_0.10.1_windows_amd64.tar.gz",
|
|
98
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.10.1/kernel_0.10.1_windows_amd64.tar.gz",
|
|
99
99
|
"bins": [
|
|
100
100
|
"kernel.exe"
|
|
101
101
|
],
|
|
102
102
|
"format": "tar.gz",
|
|
103
103
|
"checksum": {
|
|
104
104
|
"algorithm": "sha256",
|
|
105
|
-
"digest": "
|
|
105
|
+
"digest": "dca0c309789cf7dd79f5c52c360cdbea82092d0f6589a569a2fb07ec7d0e1f1c"
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|