@onkernel/cli 0.17.0 → 0.18.0

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.
Files changed (2) hide show
  1. package/README.md +29 -0
  2. package/package.json +19 -19
package/README.md CHANGED
@@ -217,6 +217,20 @@ Commands with JSON output support:
217
217
  - `--output json`, `-o json` - Output JSON with liveViewUrl
218
218
  - `kernel browsers get <id>` - Get detailed browser session info
219
219
  - `--output json`, `-o json` - Output raw JSON object
220
+ - `kernel browsers curl <id> <url>` - Make HTTP requests through a browser session's Chrome network stack
221
+ - `-X, --request <method>` - HTTP method (default: GET; defaults to POST when `--data` is set)
222
+ - `-H, --header <header>` - HTTP header, repeatable (`"Key: Value"` format)
223
+ - `-d, --data <body>` - Request body
224
+ - `--data-file <path>` - Read request body from file
225
+ - `--max-time <seconds>` - Maximum time allowed for the request (default: 30)
226
+ - `-o, --output <path>` - Write response body to file
227
+ - `-I, --head` - Fetch headers only
228
+ - `-i, --include` - Include response headers in output
229
+ - `-D, --dump-header <path>` - Write received headers to file (use `-` for stdout)
230
+ - `-w, --write-out <format>` - Output text after completion; supports `%{http_code}`, `%{response_code}`, `%{time_total}`, and `%{size_download}`
231
+ - `-f, --fail` - Fail with no body output on HTTP errors
232
+ - `-s, --silent` - Suppress progress output
233
+ - _Note: redirects are followed automatically by Chromium._
220
234
 
221
235
  ### Browser Pools
222
236
 
@@ -593,6 +607,21 @@ kernel browsers delete browser123
593
607
  # Get live view URL
594
608
  kernel browsers view browser123
595
609
 
610
+ # Make an HTTP request through the browser session
611
+ kernel browsers curl browser123 https://example.com
612
+
613
+ # Include response headers and save the response to a file
614
+ kernel browsers curl browser123 -i -o page.html https://example.com
615
+
616
+ # Send JSON and print curl-style status metrics
617
+ kernel browsers curl browser123 https://api.example.com \
618
+ -H "Content-Type: application/json" \
619
+ -d '{"key":"value"}' \
620
+ -w 'status=%{http_code} bytes=%{size_download}\n'
621
+
622
+ # Fail on HTTP errors without printing the response body
623
+ kernel browsers curl browser123 -f https://example.com/missing
624
+
596
625
  # Stream browser logs
597
626
  kernel browsers logs stream my-browser --source supervisor --follow --supervisor-process chromium
598
627
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onkernel/cli",
3
3
  "type": "module",
4
- "version": "0.17.0",
4
+ "version": "0.18.0",
5
5
  "description": "Kernel CLI",
6
6
  "scripts": {
7
7
  "postinstall": "node install.js",
@@ -34,75 +34,75 @@
34
34
  },
35
35
  "archives": {
36
36
  "darwin-arm64": {
37
- "name": "kernel_0.17.0_darwin_arm64.tar.gz",
38
- "url": "https://github.com/kernel/cli/releases/download/v0.17.0/kernel_0.17.0_darwin_arm64.tar.gz",
37
+ "name": "kernel_0.18.0_darwin_arm64.tar.gz",
38
+ "url": "https://github.com/kernel/cli/releases/download/v0.18.0/kernel_0.18.0_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": "7a222b96b92eb563a34db1c1c98c1eb9c22e30b0de6ca48f0fc19a8b4efc9cae"
45
+ "digest": "fe8ecdf3b0733f15505834e68239836d1a1b2431bb5cf926ea4d42c00a00d9d3"
46
46
  }
47
47
  },
48
48
  "darwin-x64": {
49
- "name": "kernel_0.17.0_darwin_amd64.tar.gz",
50
- "url": "https://github.com/kernel/cli/releases/download/v0.17.0/kernel_0.17.0_darwin_amd64.tar.gz",
49
+ "name": "kernel_0.18.0_darwin_amd64.tar.gz",
50
+ "url": "https://github.com/kernel/cli/releases/download/v0.18.0/kernel_0.18.0_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": "48fdf571cfe25fcbbe09e1e919e723dcc33af56a7bb804fc223b45007572a47c"
57
+ "digest": "1920a547e61be1de03deb74d0c55a3db8341f683e76c6aa47775851066fd06bc"
58
58
  }
59
59
  },
60
60
  "linux-arm64": {
61
- "name": "kernel_0.17.0_linux_arm64.tar.gz",
62
- "url": "https://github.com/kernel/cli/releases/download/v0.17.0/kernel_0.17.0_linux_arm64.tar.gz",
61
+ "name": "kernel_0.18.0_linux_arm64.tar.gz",
62
+ "url": "https://github.com/kernel/cli/releases/download/v0.18.0/kernel_0.18.0_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": "4d02ce80eb866826708de26a36c6f221aa2f81ead381befc9d26a9faaba6ed72"
69
+ "digest": "4ccf2deea41607f3ab02d4c875a3a9089c5202660985e6a489d6f84d5f3039da"
70
70
  }
71
71
  },
72
72
  "linux-x64": {
73
- "name": "kernel_0.17.0_linux_amd64.tar.gz",
74
- "url": "https://github.com/kernel/cli/releases/download/v0.17.0/kernel_0.17.0_linux_amd64.tar.gz",
73
+ "name": "kernel_0.18.0_linux_amd64.tar.gz",
74
+ "url": "https://github.com/kernel/cli/releases/download/v0.18.0/kernel_0.18.0_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": "e2f7944d923988d7f9482d260eae593c8dbdc42e54edcc88aa93281193438613"
81
+ "digest": "dd9889d2075d452d443eb56c867e319141ce2d4cbe9673825c445dbdcc1aad0c"
82
82
  }
83
83
  },
84
84
  "win32-arm64": {
85
- "name": "kernel_0.17.0_windows_arm64.tar.gz",
86
- "url": "https://github.com/kernel/cli/releases/download/v0.17.0/kernel_0.17.0_windows_arm64.tar.gz",
85
+ "name": "kernel_0.18.0_windows_arm64.tar.gz",
86
+ "url": "https://github.com/kernel/cli/releases/download/v0.18.0/kernel_0.18.0_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": "15e9c66e44ee3ec0f3c483899fc6078b08356cc37cef9338e7b84e3feec66c23"
93
+ "digest": "e722289f0a5f22dcfd832585e3d8d2068da8a7d72cbffe562e8bc2d0b8b585b0"
94
94
  }
95
95
  },
96
96
  "win32-x64": {
97
- "name": "kernel_0.17.0_windows_amd64.tar.gz",
98
- "url": "https://github.com/kernel/cli/releases/download/v0.17.0/kernel_0.17.0_windows_amd64.tar.gz",
97
+ "name": "kernel_0.18.0_windows_amd64.tar.gz",
98
+ "url": "https://github.com/kernel/cli/releases/download/v0.18.0/kernel_0.18.0_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": "7048f5e4ce9f7ae6145f7f1f00b2450ba434e52fa4359c40660d2c197c1ffc9f"
105
+ "digest": "b81f99c29f42bfdc3485f473ca690a4b58a2af9d08422d17d322c23532d9de31"
106
106
  }
107
107
  }
108
108
  }