Skip to content

CLI: Update Go SDK to v0.154.0 - #326

Merged
masnwilliams merged 2 commits into
mainfrom
cli-coverage-update
Nov 23, 2026
Merged

masnwilliams merged 2 commits into
mainfrom
cli-coverage-update

Conversation

@kernel-internal

@kernel-internal kernel-internal Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Update the Go SDK to v0.154.0.

Coverage

CLI coverage update for Go SDK v0.154.0

Summary

  • Updated github.com/kernel/kernel-go-sdk from v0.153.0 to v0.154.0 in go.mod and go.sum.
  • Enumerated all 206 SDK methods and their parameter structs, then enumerated the CLI's 278 Cobra commands and 965 command-local flags.
  • Confirmed command coverage for all 200 non-skipped SDK methods. The remaining six SDK methods are Config Registry operations marked x-cli-skip: true.
  • Found no missing SDK methods after the full comparison. The v0.154.0 request additions are covered by dedicated flags or the existing structured vault-operation input.

Browser platform and usage-cost coverage

Following POST /browsers field platform.os:

  • Added kernel browsers create --platform-os linux|macos and validation against the SDK enum.
  • Clarified in command help that host OS differs from --fingerprint-os, Linux is the default, and macOS availability and configuration restrictions apply.
  • Added host OS to browser create, get, list, update, browser-pool acquire, and invocation-browser table output. An omitted response value is displayed as Linux, matching the API default.
  • Added tests for request encoding, invalid values, help text, and output.

Following GET /browsers/{id_or_name} query parameter include_cost and the updated browser cost description:

  • Added kernel browsers get --include-cost.
  • Added provisional cost status, estimated usage spend, and cost timestamp to table output when returned.
  • Updated help to explain that cost is omitted by default, is provisional rather than an invoice total, and may be pending or unavailable.
  • Added request and output tests.

Following the browser-platform error schema:

  • SDK errors containing unsupported_fields now include those field names in the sanitized CLI error message.
  • Added a transport-level test for unsupported_configuration errors.

Following the changed GET /browsers query and tags descriptions:

  • Updated --query to include profile names as searchable values.
  • Updated --query and --tag help to explain that --status=deleted and --status=all search only browsers created in the last 24 hours, while --status=active searches all active browsers.

Link balance setup coverage

Following POST /vaults/{id_or_name}/items/{key}/operations variant link_balance_setup:

  • Added link_balance_setup support to kernel vaults items invoke.
  • Exposed desired_balance_amount and desired_transaction_limit through the command's established --params and --spec-file JSON interface.
  • Added client-side validation for minimum values, whole-dollar increments, and the 50,000-cent transaction-limit maximum.
  • Added optional --open support and safe text/JSON rendering of the returned Link setup URL.
  • Updated operation help with eligibility, balance-target, approval-threshold, URL-sharing, completion-checking, and Kernel-card approval caveats from the API description.
  • Added tests for request serialization, validation, JSON/text output, URL opening, and help.

Following the new VaultPaymentMethod.balance response fields:

  • Preserved balance data in sanitized JSON output.
  • Added live available balance and currency columns to payment-method table output.
  • Updated item and payment-method help to explain that balances are read live, use minor currency units, and may be absent when the provider does not report them.
  • Added JSON and table-output tests.

Workload identity validation

Following WorkloadIdentityTokenValidation.max_lifetime_seconds:

  • Increased the CLI validation maximum from 86,400 to 172,800 seconds.
  • Updated flag help to state the 48-hour limit and Azure managed-identity rationale.
  • Added boundary and help-text tests.

Intentional exclusions

  • Config Registry's six SDK methods remain excluded because their OpenAPI operations are marked x-cli-skip: true.
  • The OpenAPI diff also contains captcha_solver_enabled for browser updates, but SDK v0.154.0 does not expose that request field. No CLI flag was added because the released SDK is authoritative.
  • Other skipped OpenAPI operations are not present as methods in this SDK release.
  • No dedicated flags were added for the two Link balance amounts because discriminated vault operations consistently use --params/--spec-file; both fields are validated and sent through that interface.

Validation

  • go build ./... — passed.
  • go test ./... — passed.
  • Real API smoke test:
    • Created a disposable browser with --platform-os linux and JSON output.
    • Retrieved it with --include-cost; verified host platform linux and a provisional cost response.
    • Deleted the browser afterward.
  • Verified the updated browser-list help renders the profile-name and 24-hour status caveats.
  • link_balance_setup was not invoked against production because it requires a disposable, connected Link wallet that advertises the operation and returns a user capability URL. Its API behavior is covered by request/response integration tests using a local test server.

Validation

  • Go build
  • Go vet
  • Go tests

Note

Medium Risk
Touches browser creation/query paths and vault payment operations with new API parameters; risk is moderate CLI/API contract alignment rather than security-critical logic changes.

Overview
Updates kernel-go-sdk to v0.154.0 and wires new API surface into the CLI.

Browsers: Adds --platform-os (host OS vs --fingerprint-os), surfaces Host OS in create/get/list/update/pool/invoke tables, and browsers get --include-cost with provisional cost fields. Help and list flags document macOS limits, profile search, and 24-hour search rules for deleted/all status. API errors with unsupported_fields are shown in sanitized CLI messages.

Vaults: Supports link_balance_setup invoke (optional balance/limit JSON, validation, --open) and shows live Link balance on payment-method JSON/tables. Help covers eligibility and completion checks.

Workload identity: Raises --token-max-lifetime-seconds max to 172800 (48h) for longer-lived identity tokens.

Tests cover the new flags, outputs, vault operation, and error formatting.

Reviewed by Cursor Bugbot for commit 632dbe2. Bugbot is set up for automated code reviews on this repo. Configure here.

@socket-security

socket-security Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgolang/​github.com/​kernel/​kernel-go-sdk@​v0.153.0 ⏵ v0.154.073 +1100100100100

View full report

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 54a8ec3. Configure here.

Comment thread cmd/vaults_commands.go
--open only on that user's machine, otherwise share it privately. do not assume completion:
inspect wallets payment-methods for a balance method and its live available amount. Kernel
cards do not yet use Link's approval policy, so they still require user approval even when
funded from the balance.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vaults copy uses Kernel and URL

Low Severity

New vaults user-facing copy writes the product name as Kernel and the acronym URL in help, info lines, and labels. Adjacent vaults help already uses KERNEL for the product and lowercase url in the same kind of copy, so this new Link balance setup and payment-methods text is inconsistent with that convention.

Additional Locations (2)
Fix in Cursor Fix in Web

Triggered by learned rule: Vaults user-facing copy is lowercase; KERNEL for product

Reviewed by Cursor Bugbot for commit 54a8ec3. Configure here.

@masnwilliams
masnwilliams merged commit 1cde104 into main Nov 23, 2026
8 checks passed
@masnwilliams
masnwilliams deleted the cli-coverage-update branch November 23, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant