You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: cmd/invoke.go
+86-13Lines changed: 86 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,20 @@ var invocationHistoryCmd = &cobra.Command{
35
35
RunE: runInvocationHistory,
36
36
}
37
37
38
+
varinvocationBrowsersCmd=&cobra.Command{
39
+
Use: "browsers <invocation_id>",
40
+
Short: "List browser sessions for an invocation",
41
+
Long: "List all active browser sessions created within a specific invocation.",
42
+
Args: cobra.ExactArgs(1),
43
+
RunE: runInvocationBrowsers,
44
+
}
45
+
38
46
funcinit() {
39
47
invokeCmd.Flags().StringP("version", "v", "latest", "Specify a version of the app to invoke (optional, defaults to 'latest')")
40
48
invokeCmd.Flags().StringP("payload", "p", "", "JSON payload for the invocation (optional)")
41
49
invokeCmd.Flags().StringP("payload-file", "f", "", "Path to a JSON file containing the payload (use '-' for stdin)")
42
50
invokeCmd.Flags().BoolP("sync", "s", false, "Invoke synchronously (default false). A synchronous invocation will open a long-lived HTTP POST to the Kernel API to wait for the invocation to complete. This will time out after 60 seconds, so only use this option if you expect your invocation to complete in less than 60 seconds. The default is to invoke asynchronously, in which case the CLI will open an SSE connection to the Kernel API after submitting the invocation and wait for the invocation to complete.")
51
+
invokeCmd.Flags().Int64("async-timeout", 0, "Timeout in seconds for async invocations (min 10, max 3600). Only applies when async mode is used.")
43
52
invokeCmd.Flags().StringP("output", "o", "", "Output format: json for JSONL streaming output")
0 commit comments