Commit 01dc4cd
authored
feat allow to include deleted browser with pagination (#38)
## Description
Upgrades kernel-go-sdk to v0.20.0 and adds support for viewing
soft-deleted browser sessions via the new --include-deleted flag, which
displays a Deleted At column in the output when enabled. Also adds
--limit and --offset flags to the browsers list command for pagination
support, and updates all code and tests to work with the SDK's new
pagination-based API that returns OffsetPagination[BrowserListResponse]
instead of simple arrays.
## Tested
Browsers list still works compatible with past changes
```sh
./bin/kernel browsers list
Browser ID | Created At | Persistent ID | Profile | CDP WS URL | Live View URL
p835ki3pbs1sk9b6q1vcgibs | 2025-11-14 15:50:01 EST | my ID foo1 | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr...
ejymvj2soco5pel6av5swxc8 | 2025-11-14 15:50:16 EST | my ID bizz 1223 | - | httof idle browser instances in the pops://apte... |
```
We can paginate
```sh
./bin/kernel browsers list --limit 1 --offset 1
Browser ID | Created At | Persistent ID | Profile | CDP WS URL | Live View URL
ejymvj2soco5pel6av5swxc8 | 2025-11-14 15:50:16 EST | my ID bizz 1223 | - | httof idle browser instances in the pops://apte... |
```
We can now include deleted browsers in results
```sh
./bin/kernel browsers list --include-deleted
Browser ID | Created At | Persistent ID | Profile | CDP WS URL | Live View URL | Deleted At
odfy1z875hwwmazk8cneelzy | 2025-10-07 10:46:40 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 10:59:02 EDT
...
mpk6qwzh16s14hye4lownrj3 | 2025-10-07 15:30:51 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 15:31:54 EDT
yeu77dw14cgoqroau0uxyv4q | 2025-10-07 15:31:20 EDT | test | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 16:15:28 EDT
```
We can paginate including deleted browsers:
```sh
./bin/kernel browsers list --limit 10 --offset 2 --include-deleted
Browser ID | Created At | Persistent ID | Profile | CDP WS URL | Live View URL | Deleted At
y9h4g7v2lqed9dyzbs5we06z | 2025-10-07 15:12:31 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 15:13:49 EDT
ec2od894vuu0iyvrop00zre9 | 2025-10-07 15:20:19 EDT | - | - | httof idle browser instances in the pops://apte... | | 2025-10-07 15:25:22 EDT
xvmidx982o0otg0snu2wddmh | 2025-10-07 15:20:32 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 15:21:36 EDT
kiopeonodwd97g6nnrs003e2 | 2025-10-07 15:20:40 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 15:21:44 EDT
ozygmi7ieaajmu3bdsh06rx8 | 2025-10-07 15:21:49 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 15:22:57 EDT
m8bkktjdf8p5yteewy798vyj | 2025-10-07 15:23:53 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 15:24:57 EDT
jcytgllgbkyr695cdlmdsznp | 2025-10-07 15:23:56 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 15:24:59 EDT
y3cngz01vcsfundzs2wi0pc8 | 2025-10-07 15:23:58 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 15:28:51 EDT
e3rmbrdi8agxsugs1ym3mx1a | 2025-10-07 15:24:01 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 15:25:05 EDT
ok1p7d4l1pqvyndv9ukmz3sp | 2025-10-07 15:27:22 EDT | - | - | httof idle browser instances in the pops://apte... | https://apterygial-multiflorous-magaly.ngrok-fr... | 2025-10-07 15:33:05 EDT
```1 parent c27e844 commit 01dc4cd
4 files changed
+138
-97
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
186 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 | | |
188 | 192 | | |
189 | 193 | | |
| |||
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
195 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
196 | 211 | | |
197 | 212 | | |
198 | 213 | | |
199 | 214 | | |
| 215 | + | |
| 216 | + | |
200 | 217 | | |
201 | 218 | | |
202 | 219 | | |
203 | 220 | | |
204 | 221 | | |
205 | | - | |
| 222 | + | |
206 | 223 | | |
207 | 224 | | |
208 | 225 | | |
209 | 226 | | |
210 | 227 | | |
211 | 228 | | |
212 | 229 | | |
213 | | - | |
| 230 | + | |
214 | 231 | | |
215 | 232 | | |
216 | 233 | | |
217 | 234 | | |
218 | 235 | | |
219 | | - | |
220 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
221 | 239 | | |
| 240 | + | |
222 | 241 | | |
223 | | - | |
| 242 | + | |
224 | 243 | | |
225 | 244 | | |
226 | 245 | | |
| |||
233 | 252 | | |
234 | 253 | | |
235 | 254 | | |
236 | | - | |
| 255 | + | |
237 | 256 | | |
238 | 257 | | |
239 | 258 | | |
240 | 259 | | |
241 | 260 | | |
242 | 261 | | |
243 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
244 | 273 | | |
245 | 274 | | |
246 | 275 | | |
| |||
349 | 378 | | |
350 | 379 | | |
351 | 380 | | |
352 | | - | |
| 381 | + | |
353 | 382 | | |
354 | 383 | | |
355 | 384 | | |
356 | | - | |
| 385 | + | |
357 | 386 | | |
358 | 387 | | |
359 | 388 | | |
360 | 389 | | |
361 | 390 | | |
362 | | - | |
| 391 | + | |
363 | 392 | | |
364 | 393 | | |
365 | 394 | | |
| |||
431 | 460 | | |
432 | 461 | | |
433 | 462 | | |
434 | | - | |
| 463 | + | |
435 | 464 | | |
436 | 465 | | |
437 | 466 | | |
438 | 467 | | |
439 | | - | |
| 468 | + | |
440 | 469 | | |
441 | 470 | | |
442 | 471 | | |
443 | 472 | | |
444 | 473 | | |
445 | | - | |
| 474 | + | |
446 | 475 | | |
447 | 476 | | |
448 | 477 | | |
| |||
1806 | 1835 | | |
1807 | 1836 | | |
1808 | 1837 | | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
1809 | 1841 | | |
1810 | 1842 | | |
1811 | 1843 | | |
| |||
2028 | 2060 | | |
2029 | 2061 | | |
2030 | 2062 | | |
2031 | | - | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
2032 | 2072 | | |
2033 | 2073 | | |
2034 | 2074 | | |
| |||
2529 | 2569 | | |
2530 | 2570 | | |
2531 | 2571 | | |
2532 | | - | |
| 2572 | + | |
2533 | 2573 | | |
2534 | 2574 | | |
2535 | 2575 | | |
2536 | | - | |
| 2576 | + | |
2537 | 2577 | | |
2538 | 2578 | | |
2539 | | - | |
| 2579 | + | |
2540 | 2580 | | |
2541 | 2581 | | |
2542 | 2582 | | |
| |||
0 commit comments