CLI: Update Go SDK to 13b9433ac69ebc50e5c60ecd48c64b10e5681d01#119
Merged
sjmiller609 merged 6 commits intomainfrom Feb 25, 2026
Merged
CLI: Update Go SDK to 13b9433ac69ebc50e5c60ecd48c64b10e5681d01#119sjmiller609 merged 6 commits intomainfrom
sjmiller609 merged 6 commits intomainfrom
Conversation
Update kernel-go-sdk dependency to the latest version. Coverage analysis performed - no gaps found. Triggered by: kernel/kernel-go-sdk@a559396 Co-authored-by: Cursor <cursoragent@cursor.com>
Update kernel-go-sdk from v0.37.1-0.20260223213700-a55939677e57 to v0.38.0. Coverage analysis: Full enumeration of SDK methods and CLI commands performed. No coverage gaps found - all SDK methods have corresponding CLI commands. Co-authored-by: Cursor <cursoragent@cursor.com>
Updated kernel-go-sdk from v0.38.0 to v0.39.0 (commit 13b9433ac69ebc50e5c60ecd48c64b10e5681d01). Coverage analysis performed: all SDK methods have corresponding CLI commands. No new commands or flags needed for this SDK update. Made-with: Cursor
Contributor
|
Result: PASS
Command outputs $ unset KERNEL_BASE_URL KERNEL_API_KEY
$ ./bin/kernel --no-color auth status
SUCCESS: ✓ Authenticated with OAuth
WARNING: ⚠️ Access token expires in 20h5m11s$ ./bin/kernel --no-color proxies create --help
...
# Create a proxy with bypass hosts
kernel proxies create --type datacenter --country US --bypass-host localhost,internal.service.local
...
--bypass-host Hostname(S) to bypass proxy and connect directly (repeat or comma-separated)
...$ ./bin/kernel --no-color proxies create \
--type datacenter \
--country US \
--name codex-prod-bypass-rerun-1772060517 \
--bypass-host localhost,internal.service.local \
--bypass-host metadata.google.internal \
-o json
{
"bypass_hosts": [
"localhost",
"internal.service.local",
"metadata.google.internal"
],
"config": {
"country": "us"
},
"id": "iqci4unan4qw6bp4qctz5d3o",
"last_checked": "2026-02-25T23:01:57.533737993Z",
"name": "codex-prod-bypass-rerun-1772060517",
"protocol": "https",
"status": "available",
"type": "datacenter"
}$ ./bin/kernel --no-color proxies get iqci4unan4qw6bp4qctz5d3o
Property | Value
ID | iqci4unan4qw6bp4qctz5d3o
Name | codex-prod-bypass-rerun-1772060517
Type | datacenter
Bypass Hosts | localhost, internal.service.local, metadata.google.internal
Protocol | https
Country | us
Status | available
Last Checked | 2026-02-25 18:01:57 EST$ ./bin/kernel --no-color proxies get iqci4unan4qw6bp4qctz5d3o -o json
{
"bypass_hosts": [
"localhost",
"internal.service.local",
"metadata.google.internal"
],
"config": {
"country": "us"
},
"id": "iqci4unan4qw6bp4qctz5d3o",
"last_checked": "2026-02-25T23:01:57.533738Z",
"name": "codex-prod-bypass-rerun-1772060517",
"protocol": "https",
"status": "available",
"type": "datacenter"
}$ ./bin/kernel --no-color proxies list -o json | jq '.[] | select(.id=="iqci4unan4qw6bp4qctz5d3o")'
{
"bypass_hosts": [
"localhost",
"internal.service.local",
"metadata.google.internal"
],
"config": {
"country": "us"
},
"id": "iqci4unan4qw6bp4qctz5d3o",
"last_checked": "2026-02-25T23:01:57.533738Z",
"name": "codex-prod-bypass-rerun-1772060517",
"protocol": "https",
"status": "available",
"type": "datacenter"
}$ ./bin/kernel --no-color proxies check iqci4unan4qw6bp4qctz5d3o
INFO: Running health check on proxy iqci4unan4qw6bp4qctz5d3o...
Property | Value
ID | iqci4unan4qw6bp4qctz5d3o
Name | codex-prod-bypass-rerun-1772060517
Type | datacenter
Bypass Hosts | localhost, internal.service.local, metadata.google.internal
Protocol | https
Country | us
Status | available
Last Checked | 2026-02-25 18:01:59 EST
SUCCESS: Proxy health check passed$ ./bin/kernel --no-color proxies delete iqci4unan4qw6bp4qctz5d3o -y
INFO: Deleting proxy: iqci4unan4qw6bp4qctz5d3o
SUCCESS: Successfully deleted proxy: iqci4unan4qw6bp4qctz5d3o |
sjmiller609
approved these changes
Feb 25, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| } | ||
| if len(in.BypassHosts) > 0 { | ||
| params.BypassHosts = normalizeBypassHosts(in.BypassHosts) | ||
| } |
There was a problem hiding this comment.
Normalization may send unintended empty array to API
Low Severity
When in.BypassHosts contains only whitespace or empty strings (e.g., --bypass-host " "), the guard len(in.BypassHosts) > 0 passes, but normalizeBypassHosts filters everything out and returns an empty []string{}. This empty (non-nil) slice gets assigned to params.BypassHosts, which serializes as "bypass_hosts":[] in JSON rather than omitting the field entirely. The API may treat an explicit empty array differently from an absent field.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR updates the Go SDK dependency to the latest version.
SDK Update
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:
Triggered by: kernel/kernel-go-sdk@13b9433
Reviewer: @stainless-app[bot]
Note
Low Risk
Adds a new optional CLI flag/field and updates table output; main risk is minor behavior/format changes in the
proxiescommands and dependency bump to the SDK.Overview
Adds first-class support for proxy
BypassHostsin the CLI.proxies createnow accepts--bypass-host(repeatable/comma-separated), trims/filters values before sending them to the API, and prints the resulting bypass hosts in the success output.proxies get,proxies list, andproxies checknow display a Bypass Hosts field/column (rendered as-when empty) via a shared formatter, with tests added/updated to cover the new behavior. Also bumpsgithub.com/kernel/kernel-go-sdkfromv0.37.0tov0.39.0.Written by Cursor Bugbot for commit ce7f998. This will update automatically on new commits. Configure here.