Tags: kernel/cli
Tags
CLI: Update SDK to 5e56fc5d99a6a64596f09f85c1530fa51f9d7a7a and add n… …ew commands/flags (#139) This PR updates the Go SDK to 5e56fc5d99a6a64596f09f85c1530fa51f9d7a7a and adds CLI commands/flags for new SDK methods. ## SDK Update - Updated kernel-go-sdk to 5e56fc5d99a6a64596f09f85c1530fa51f9d7a7a ## Coverage Analysis This PR was generated by performing a full enumeration of SDK methods and CLI commands. ## New Commands - `kernel deploy get` for `client.Deployments.Get()` - `kernel invoke get`, `kernel invoke update`, and `kernel invoke delete-browsers` for the corresponding invocation SDK methods - `kernel auth connections update` for `client.AuthConnections.Update()` ## New Flags - `--region` for `kernel deploy` and `kernel deploy github` - `--app-version` for `kernel deploy history` - `--since` for async `kernel invoke`, plus `--action`, `--deployment-id`, `--offset`, `--since`, and `--status` for `kernel invoke history` - `--query` for `kernel app list` - `--invocation-id` for `kernel browsers create` and `--include-deleted` for `kernel browsers get` - `--name` for `kernel credential-providers create` and `kernel credential-providers update` - `--sign-in-option-id` and `--sso-provider` for `kernel auth connections submit`, plus the new update flags for `kernel auth connections update` Triggered by: kernel/kernel-go-sdk@5e56fc5 Reviewer: @masnwilliams Made with [Cursor](https://cursor.com) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Moderate risk: expands CLI surface area and request parameter mapping across deployments/invocations/auth connections, which could break workflows if flags or validation are incorrect, but changes are mostly additive and covered by new unit tests. > > **Overview** > Updates `kernel-go-sdk` to a newer commit and wires newly-available API methods into the CLI. > > Adds new CLI capabilities: `kernel deploy get`, `kernel invoke get|update|delete-browsers`, and `kernel auth connections update`, plus richer filtering/options across existing commands (e.g., `app list --query`, `deploy --region` + `deploy history --app-version`, `invoke --since` and `invoke history --action/--deployment-id/--offset/--since/--status`). > > Extends browser and credential-provider flows with new flags (`browsers create --invocation-id`, `browsers get --include-deleted`, and required/provider `--name` support), tightens/clarifies auth submit modes (now *exactly one* of field/MFA/sign-in/SSO selector/provider), and improves “Next:” pagination hints by quoting values and using consistent `pterm` output; includes accompanying tests for new param mappings. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 7bc97e1. 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 <[email protected]>
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 <[email protected]>
feat: add --smooth and --duration-ms flags to move-mouse (#133) ## Summary - Add `--smooth` flag (boolean, default `true`) to `kernel browsers computer move-mouse` - Add `--duration-ms` flag (integer, 50-5000ms) for controlling smooth movement timing - Uses `SetExtraFields` to pass fields through the existing SDK without requiring an SDK version bump When `--smooth=true` (default), cursor follows a human-like Bezier curve. Set `--smooth=false` for instant teleport. ```bash # Smooth movement (default) kernel browsers computer move-mouse <id> --x 800 --y 600 # Instant teleport kernel browsers computer move-mouse <id> --x 800 --y 600 --smooth=false # Custom duration kernel browsers computer move-mouse <id> --x 800 --y 600 --duration-ms 1500 ``` ## Related - [kernel/kernel-images#148](kernel/kernel-images#148) — smooth Bezier moveMouse (merged) - [kernel/kernel#1375](kernel/kernel#1375) — expose smooth moveMouse via API (merged) - [kernel/kernel#1444](kernel/kernel#1444) — expose smooth dragMouse via API - `--smooth` and `--duration-ms` for `drag-mouse` will follow once the Go SDK is updated with PR #1444 ## Test plan - [x] All existing tests pass - [x] New test: `--smooth=false` sets extra field correctly - [x] New test: `--duration-ms` with `--smooth=true` sets both fields - [x] New test: no flags omits extra fields (backwards compatible) Made with Cursor Made with [Cursor](https://cursor.com) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > CLI-only changes that add optional request fields and are covered by tests; main risk is behavioral changes if downstream services interpret the new extras unexpectedly. > > **Overview** > Adds `--smooth` and `--duration-ms` flags to `kernel browsers computer move-mouse` and `drag-mouse`, allowing human-like Bezier movement/drag timing to be configured. > > The CLI now conditionally forwards these options via `SetExtraFields` (`smooth`, `duration_ms`) only when flags are explicitly set, preserving existing request bodies when omitted, and includes new unit tests asserting the extra-field behavior for both commands. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit e481565. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
CLI: Update Go SDK to 13b9433ac69ebc50e5c60ecd48c64b10e5681d01 (#119) This PR updates the Go SDK dependency to the latest version. ## SDK Update - Updated kernel-go-sdk from v0.38.0 to v0.39.0 (commit 13b9433ac69ebc50e5c60ecd48c64b10e5681d01) ## Coverage Analysis A full enumeration of SDK methods and CLI commands was performed. No coverage gaps were found. All SDK methods have corresponding CLI commands: - Deployments: create (deploy), get, list (history), delete, follow (logs) - Apps: list - Invocations: create (invoke), get, update, list (history), browsers - Browsers: create, get, update, list, delete, load-extensions + subcommands (fs, process, replays, computer, playwright, logs) - Profiles: create, get, list, delete, download - Auth.Connections: create, get, list, delete, login, submit, follow - Proxies: create, get, list, delete, check - Extensions: list, delete, download, download-web-store, upload - BrowserPools: create, get, update, list, delete, acquire, release, flush - Credentials: create, get, update, list, delete, totp-code - CredentialProviders: create, get, update, list, delete, test, list-items Triggered by: kernel/kernel-go-sdk@13b9433 Reviewer: @stainless-app[bot] --------- Co-authored-by: kernel-internal[bot] <260533166+kernel-internal[bot]@users.noreply.github.com> Co-authored-by: Cursor <[email protected]> Co-authored-by: Steven Miller <[email protected]>
Update Go SDK and add deploy/app delete commands (#118) ## Summary This PR updates the Go SDK dependency to the latest version and updates CLI commands to match SDK interface changes. ## SDK Update - Updated kernel-go-sdk to v0.37.0 (cb6bef95524033ec889ef9dc2eb8a2c43507ba36) ## Coverage Analysis A full enumeration of SDK methods and CLI commands was performed. The SDK update included a breaking change to the `ProfileService.List` method signature. ## Changes - **ProfileService.List**: Updated to accept `ProfileListParams` parameter (breaking change from SDK) - Added `--limit`, `--offset`, `--query` flags to `kernel profiles list` command - Updated ProfilesService interface and tests ## New Flags - `--limit` for `ProfileListParams.Limit` on `kernel profiles list` - `--offset` for `ProfileListParams.Offset` on `kernel profiles list` - `--query` for `ProfileListParams.Query` on `kernel profiles list` Triggered by: kernel/kernel-go-sdk@cb6bef9 Reviewer: @dcruzeneil2 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Introduces new deletion flows (including concurrent deletes) that can remove deployments/apps, so correctness of filtering/confirmation and error handling is important despite relatively localized CLI changes. > > **Overview** > Updates `kernel-go-sdk` to `v0.37.0` (and adds `golang.org/x/sync`) and adapts the CLI to the SDK’s breaking `Profiles.List` signature by introducing paginated, queryable `kernel profiles list` (`--page`, `--per-page`, `--query`) with updated tests. > > Adds destructive-management commands: `kernel app delete <app_name>` (optionally `--version`, with confirmation and concurrent deletion of all matching deployments) and `kernel deploy delete <deployment_id>` (with confirmation/`--yes` and not-found handling). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 74ca985. 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: Cursor <[email protected]> Co-authored-by: Rafael Garcia <[email protected]> Co-authored-by: Neil Dcruze <[email protected]>
Get mouse position, GPU mode browsers (#115) <!-- CURSOR_SUMMARY --> > [!NOTE] > **Medium Risk** > Moderate risk due to upgrading `kernel-go-sdk` and wiring new request fields/CLI commands that call newly added browser computer APIs and JSON parsing. > > **Overview** > Adds a new `--gpu` flag to `browsers create`, passes it through to the Kernel API, and surfaces the GPU setting in `browsers get` output. > > Extends `browsers computer` with `get-mouse-position` (supports `--output json`) and `batch` (executes a JSON-described action list), including new SDK interface methods and test fakes to cover these calls. > > Bumps dependencies, notably `github.com/kernel/kernel-go-sdk` to `v0.35.0` (plus minor `testify` update). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit b9dd123. 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: Cursor <[email protected]> Co-authored-by: Mason Williams <[email protected]> Co-authored-by: Mason Williams <[email protected]>
PreviousNext