Commit afd1bfe
CLI: Update SDK and add auth connections commands (#102)
## Summary
- Updates SDK to v0.33.0 (commit
4719594652b863858cb7492ca78adbb850a10552)
- **Breaking change fix**: Removes `kernel agents auth` command group
since the `AgentAuth` API was removed from the SDK
- Fixes `kernel auth connections` to use correct SDK field names after
API refactoring
- Adds `--proxy-id` and `--proxy-name` flags to `kernel auth connections
login`
- Previously added `kernel auth connections` command group for the
managed auth API:
- `create`: Create managed auth for profile/domain combination
- `get`: Get managed auth by ID
- `list`: List managed auths
- `delete`: Delete managed auth
- `login`: Start login flow
- `submit`: Submit field values to login flow
- `follow`: Follow login flow events via SSE
- Previously added `credential-providers list-items` command
## Test plan
- [x] CLI builds successfully (`go build ./...`)
- [x] All tests pass (`go test ./...`)
- [x] `kernel auth connections --help` shows all subcommands
- [x] `kernel auth connections create --help` shows all flags
## SDK Version
`github.com/kernel/kernel-go-sdk@4719594652b863858cb7492ca78adbb850a10552`
(v0.33.0)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Medium risk due to the SDK upgrade plus removal/rewiring of CLI
command groups and flags, which can break existing scripts and alter API
request parameters (auth connections, browsers listing, invocation
behavior). No direct credential-handling logic changes beyond new
plumbing to the updated SDK APIs.
>
> **Overview**
> **SDK bump to `kernel-go-sdk@v0.33.0` and CLI surface changes.**
Removes the entire `kernel agents` command group (including the
automated `agents auth run` flow) and stops registering it in `root.go`
to match the SDK’s removed `AgentAuth` API.
>
> **Adds/updates managed auth workflows via `kernel auth connections`.**
Introduces `connections create/get/list/delete/login/submit/follow`
using the new managed-auth (`AuthConnection*`) SDK types, including new
`--proxy-id/--proxy-name` on `login`, support for credential references
by name/provider/path/auto, and SSE-based `follow`.
>
> **Other CLI enhancements.** `kernel browsers list` gains a new
`--status` filter (`active|deleted|all`) with `--include-deleted`
deprecated; `kernel invoke` adds `--async-timeout` and a new `invoke
browsers <invocation_id>` to list browsers created by an invocation; and
`credential-providers` adds `list-items <id>` backed by a new
`ListItems` SDK call.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f014527. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Cursor Agent <cursor-agent@kernel.sh>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: mason <mason@onkernel.com>
Co-authored-by: kernel-internal[bot] <260533166+kernel-internal[bot]@users.noreply.github.com>1 parent 6bf0331 commit afd1bfe
File tree
9 files changed
+932
-1384
lines changed- cmd
9 files changed
+932
-1384
lines changedThis file was deleted.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | | - | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
235 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
236 | 249 | | |
237 | 250 | | |
238 | 251 | | |
| |||
263 | 276 | | |
264 | 277 | | |
265 | 278 | | |
266 | | - | |
| 279 | + | |
| 280 | + | |
267 | 281 | | |
268 | 282 | | |
269 | 283 | | |
| |||
290 | 304 | | |
291 | 305 | | |
292 | 306 | | |
293 | | - | |
| 307 | + | |
294 | 308 | | |
295 | 309 | | |
296 | 310 | | |
| |||
2053 | 2067 | | |
2054 | 2068 | | |
2055 | 2069 | | |
2056 | | - | |
| 2070 | + | |
| 2071 | + | |
2057 | 2072 | | |
2058 | 2073 | | |
2059 | 2074 | | |
| |||
2322 | 2337 | | |
2323 | 2338 | | |
2324 | 2339 | | |
| 2340 | + | |
2325 | 2341 | | |
2326 | 2342 | | |
2327 | 2343 | | |
2328 | 2344 | | |
2329 | 2345 | | |
| 2346 | + | |
2330 | 2347 | | |
2331 | 2348 | | |
2332 | 2349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | | - | |
1155 | 1154 | | |
| 1155 | + | |
1156 | 1156 | | |
1157 | 1157 | | |
1158 | 1158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| |||
281 | 287 | | |
282 | 288 | | |
283 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
284 | 335 | | |
285 | 336 | | |
286 | 337 | | |
| |||
345 | 396 | | |
346 | 397 | | |
347 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
348 | 407 | | |
349 | 408 | | |
350 | 409 | | |
351 | 410 | | |
352 | 411 | | |
353 | 412 | | |
354 | 413 | | |
| 414 | + | |
355 | 415 | | |
356 | 416 | | |
357 | 417 | | |
| |||
379 | 439 | | |
380 | 440 | | |
381 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
382 | 445 | | |
383 | 446 | | |
384 | 447 | | |
| |||
464 | 527 | | |
465 | 528 | | |
466 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| |||
48 | 57 | | |
49 | 58 | | |
50 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
51 | 63 | | |
52 | 64 | | |
53 | 65 | | |
| |||
70 | 82 | | |
71 | 83 | | |
72 | 84 | | |
| 85 | + | |
73 | 86 | | |
74 | 87 | | |
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
78 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
79 | 95 | | |
80 | 96 | | |
81 | 97 | | |
| |||
179 | 195 | | |
180 | 196 | | |
181 | 197 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
188 | 208 | | |
189 | | - | |
190 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
191 | 212 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 213 | | |
198 | 214 | | |
199 | 215 | | |
| |||
428 | 444 | | |
429 | 445 | | |
430 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
144 | | - | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments