Commit b0321ad
authored
Update browser pool commands (#56)
## Overview
Updates cli for
https://github.com/onkernel/kernel-go-sdk/releases/tag/v0.24.0 since the
sdk was dropping fields for some requests
## Testing
Confirmed `kernel pool update --discard-all-idle` discards as expected!
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Refactors browser pool commands to use new Kernel SDK *Params structs
(no nested request objects), adjusts browser acquire path, and updates
module dependencies.
>
> - **CLI: Browser Pools**
> - Migrate `Create`, `Update`, `Acquire`, and `Release` to use
`kernel.BrowserPool*Params` directly (set fields on `params` and pass to
client).
> - Remove intermediate `*RequestParam` structs and nested
`BrowserPool*Request` wrappers.
> - Preserve existing options (profile, proxy, extensions, viewport,
flags) while mapping to new params.
> - **CLI: Browsers**
> - Update pool acquisition in `browsers create` to build
`kernel.BrowserPoolAcquireParams` directly.
> - **Dependencies**
> - Promote `github.com/charmbracelet/lipgloss/v2` to a direct
dependency.
> - Add `replace` directing `github.com/onkernel/kernel-go-sdk` to
`github.com/stainless-sdks/kernel-go`; update `go.sum` accordingly.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
dd3fba3. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 8b256b3 commit b0321ad
4 files changed
+33
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 145 | + | |
150 | 146 | | |
151 | 147 | | |
152 | 148 | | |
| |||
231 | 227 | | |
232 | 228 | | |
233 | 229 | | |
234 | | - | |
| 230 | + | |
235 | 231 | | |
236 | 232 | | |
237 | | - | |
| 233 | + | |
238 | 234 | | |
239 | 235 | | |
240 | | - | |
| 236 | + | |
241 | 237 | | |
242 | 238 | | |
243 | | - | |
| 239 | + | |
244 | 240 | | |
245 | 241 | | |
246 | | - | |
| 242 | + | |
247 | 243 | | |
248 | 244 | | |
249 | | - | |
| 245 | + | |
250 | 246 | | |
251 | 247 | | |
252 | | - | |
| 248 | + | |
253 | 249 | | |
254 | 250 | | |
255 | | - | |
| 251 | + | |
256 | 252 | | |
257 | 253 | | |
258 | | - | |
| 254 | + | |
259 | 255 | | |
260 | 256 | | |
261 | 257 | | |
| |||
264 | 260 | | |
265 | 261 | | |
266 | 262 | | |
267 | | - | |
| 263 | + | |
268 | 264 | | |
269 | 265 | | |
270 | 266 | | |
271 | | - | |
| 267 | + | |
272 | 268 | | |
273 | 269 | | |
274 | | - | |
| 270 | + | |
275 | 271 | | |
276 | 272 | | |
277 | 273 | | |
278 | 274 | | |
279 | 275 | | |
280 | 276 | | |
281 | 277 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
| 278 | + | |
287 | 279 | | |
288 | 280 | | |
289 | 281 | | |
| |||
322 | 314 | | |
323 | 315 | | |
324 | 316 | | |
325 | | - | |
| 317 | + | |
326 | 318 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
| 319 | + | |
331 | 320 | | |
332 | 321 | | |
333 | 322 | | |
| |||
355 | 344 | | |
356 | 345 | | |
357 | 346 | | |
358 | | - | |
| 347 | + | |
359 | 348 | | |
360 | 349 | | |
361 | 350 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
| 351 | + | |
366 | 352 | | |
367 | 353 | | |
368 | 354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
2065 | | - | |
| 2065 | + | |
2066 | 2066 | | |
2067 | | - | |
2068 | | - | |
2069 | | - | |
2070 | | - | |
| 2067 | + | |
2071 | 2068 | | |
2072 | 2069 | | |
2073 | 2070 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments