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 to v0.44.0 and add new commands (#136)
This PR updates the Go SDK to b03de99eccb5ff43c6b75f7e6e93423c728b1d78
and adds CLI commands for new SDK methods.
## SDK Update
- Updated kernel-go-sdk to v0.44.0
(b03de99eccb5ff43c6b75f7e6e93423c728b1d78)
## Coverage Analysis
This PR was generated by performing a full enumeration of SDK methods
and CLI commands.
## New Commands
- `kernel browsers computer read-clipboard <id>` - Read text from the
browser clipboard
- `kernel browsers computer write-clipboard <id> --text <text>` - Write
text to the browser clipboard
## Testing
Tested against the real API:
- `browsers computer write-clipboard <id> --text "test"` ✓
- `browsers computer read-clipboard <id>` ✓
- `browsers computer read-clipboard <id> -o json` ✓
Triggered by:
kernel/kernel-go-sdk@b03de99
Reviewer: @masnwilliams
Made with [Cursor](https://cursor.com)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Bumps the Kernel Go SDK version and wires new clipboard APIs into the
CLI; the main risk is unintended behavior changes from the dependency
upgrade and new command plumbing.
>
> **Overview**
> Adds clipboard support to the `browsers computer` CLI by exposing new
`read-clipboard` (optionally `-o json`) and `write-clipboard --text`
commands backed by the SDK’s `ReadClipboard`/`WriteClipboard` methods.
>
> Updates the `BrowserComputerService` interface and test fakes to
include the new clipboard methods, and bumps
`github.com/kernel/kernel-go-sdk` from `v0.43.0` to `v0.44.0` (with
corresponding `go.sum` updates).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
a083746. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: kernel-internal[bot] <260533166+kernel-internal[bot]@users.noreply.github.com>
Co-authored-by: Mason Williams <mason@onkernel.com>
computerReadClipboard:=&cobra.Command{Use: "read-clipboard <id>", Short: "Read text from the browser clipboard", Args: cobra.ExactArgs(1), RunE: runBrowsersComputerReadClipboard}
2473
+
computerReadClipboard.Flags().StringP("output", "o", "", "Output format: json for raw API response")
2474
+
2475
+
// computer write-clipboard
2476
+
computerWriteClipboard:=&cobra.Command{Use: "write-clipboard <id>", Short: "Write text to the browser clipboard", Args: cobra.ExactArgs(1), RunE: runBrowsersComputerWriteClipboard}
2477
+
computerWriteClipboard.Flags().String("text", "", "Text to write to the clipboard")
0 commit comments