Repository navigation
CLI: Update Go SDK to v0.154.0 - #326
kernel-internal[bot] wants to merge 1 commit into
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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.
| --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. |
There was a problem hiding this comment.
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)
Triggered by learned rule: Vaults user-facing copy is lowercase; KERNEL for product
Reviewed by Cursor Bugbot for commit 54a8ec3. Configure here.


Summary
v0.154.0.Coverage
Kernel CLI coverage report: kernel-go-sdk v0.154.0
Result
/tmp/kernel-cli8fe6b5ee90a4c56bcf56cd53818bba3169bbbf1dgithub.com/kernel/kernel-go-sdk v0.153.0github.com/kernel/kernel-go-sdk v0.154.0x-cli-skip: true; all v0.154.0 input and output changes are covered.Exhaustive inventories
api.mdx-cli-skipx-cli-skipoperationsx-stainless-skipDetailed inventories:
/home/runner/work/_temp/cli-scratch/sdk-coverage-matrix.md/home/runner/work/_temp/cli-scratch/sdk-coverage.json/home/runner/work/_temp/cli-scratch/sdk-param-field-matrix.md/home/runner/work/_temp/cli-scratch/sdk-methods.json/home/runner/work/_temp/cli-scratch/sdk-params.json/home/runner/work/_temp/cli-scratch/cli-coverage-matrix.md/home/runner/work/_temp/cli-scratch/cli-commands.json/home/runner/work/_temp/cli-scratch/x-cli-skip-operations.mdThe field audit normalized expected CLI representations rather than requiring literal Go-field-to-flag spelling. These include positional IDs/paths/URLs, established aliases such as
TimeoutSeconds→--timeout, repeated flags for slices/maps, flattened dedicated flags for nested structs,--params/--spec-filefor high-dimensional unions, and automatic/page-based pagination where the CLI intentionally owns the SDK cursor or offset.Method and input coverage findings
There are no missing non-skipped command paths. The only generated methods without CLI commands are the six Config Registry methods whose operations explicitly opt out of CLI coverage.
The v0.154.0 input changes map as follows:
BrowserNewParams.Platform.OsBrowserGetParams.IncludeCostkernel browsers get <id-or-name> --include-costinclude_cost=trueonly when requestedVaultItemPerformOperationParams.OfLinkBalanceSetupkernel vaults items invoke ... link_balance_setupoperation operandOfLinkBalanceSetup.DesiredBalanceAmount--paramsor--spec-filefielddesired_balance_amountOfLinkBalanceSetup.DesiredTransactionLimit--paramsor--spec-filefielddesired_transaction_limitWorkloadIdentityTokenValidationParam.MaxLifetimeSeconds--token-max-lifetime-secondsUnknown Link balance setup fields are rejected rather than dropped. Omitting both optional amount fields produces the required operation discriminator only.
OpenAPI/SDK diff coverage checklist
max_lifetime_secondsmaximum raised to 172,800unsupported_fieldsaddedBrowserOS,BrowserPlatform, and create requestplatform.os--platform-os; help distinguishes host OS from fingerprint OS and documents current macOS availability/restrictionsHost OSin every corresponding structured output; JSON already preserves SDK fields; absent platform is rendered as Linux per the schemainclude_cost--include-costand SDK query mappingas_of; help states omission rules, provisional gross-meter semantics, non-invoice caveat, pending/unavailable states, and continued accrual risklink_balance_setuprequest/result union variants--openbehavioreligible_for_balancecheck/409, target-balance behavior, threshold-step behavior, user-final-choice semantics, whole-dollar bounds, $150 add limit, and Kernel-card approval limitationtypeandurl; intended capability URLs remain usable even with a query key such ascode; unrelated provider fields remain filteredbalance.availablelink_balance_setupadded to advertised-operation enumsExplicit
x-cli-skipexclusionsThese operations were intentionally not implemented:
GET/config-registryx-cli-skipPOST/config-registry/lookupx-cli-skipPOST/config-registry/resolvex-cli-skipGET/config-registry/analysesx-cli-skipGET/config-registry/analyses/{id}x-cli-skipPOST/config-registry/analyses/{id}/cancelx-cli-skipPOST/mpp/browsersx-stainless-skip; no SDK methodGET/vault/card-captures/currentx-stainless-skip; no SDK methodPOST/vault/card-captures/currentx-stainless-skip; no SDK methodPOST/vault/card-ingest/{payment_method_id}x-stainless-skip; no SDK methodPOST/auth/connections/{id}/exchangex-stainless-skip; no SDK methodImplemented files
Published-code changes are limited to:
go.mod,go.sumcmd/browsers.go,cmd/browsers_test.gocmd/invoke.gocmd/vaults.gocmd/vaults_commands.gocmd/vaults_operation_params.gocmd/vaults_output.gocmd/vaults_payment_method_operations_test.gocmd/workload_identity_issuers.go,cmd/workload_identity_test.gopkg/util/errors.go,pkg/util/errors_test.goThe complete reviewed patch is at
/home/runner/work/_temp/cli-scratch/full-cli-diff.patch.Validation
Static/build/unit validation
All final commands passed:
gofmton all changed Go filesgo vet ./...go test ./...go build ./.../home/runner/work/_temp/cli-scratch/kernelgit diff --check 8fe6b5ee90a4c56bcf56cd53818bba3169bbbf1dLogs:
/home/runner/work/_temp/cli-scratch/go-vet.log/home/runner/work/_temp/cli-scratch/go-test.log/home/runner/work/_temp/cli-scratch/go-build.logNew tests cover browser platform serialization/validation/help/output, cost query/output/help, update response platform output, Link setup request bodies and bounds, parameterless Link setup, capability URL output/open behavior, response filtering, live balance JSON/table output, workload identity boundaries/help, and
unsupported_fieldserror rendering.Help smoke tests
Final binary help was checked for:
browsers create --help:--platform-os, platform/fingerprint distinction, macOS restrictions,unsupported_configurationbrowsers get --help:--include-costand cost caveatsvaults items invoke --help:link_balance_setup, eligibility and amount semanticsvaults wallets payment-methods --help: live/non-persisted balance semanticsworkload-identity issuers create --help: 172,800-second maximumCaptured help is under
/home/runner/work/_temp/cli-scratch/.Production API smoke test
Both newly added flags were exercised against the real API:
browsers create --platform-os linux --output json.platform.os = linux.browsers get <session> --include-cost --output json.cost.status = provisionalandplatform.os = linux.Host OS,linux,Cost Status, andprovisional.Artifacts:
/home/runner/work/_temp/cli-scratch/browser-create-platform.json/home/runner/work/_temp/cli-scratch/browser-get-include-cost.json/home/runner/work/_temp/cli-scratch/browser-get-include-cost.txt/home/runner/work/_temp/cli-scratch/browser-delete-platform.logNo production resource was left behind.
Live-test limitations
link_balance_setupwas not invoked against production because it requires an eligible, already-connected Link wallet and an interactive Link user flow. It is covered by an HTTP contract test that verifies advertised-operation gating, exact POST bodies with both or neither optional fields, sanitized output, capability-query URL preservation,--open, and validation failures.--platform-ostransport path was verified in production withlinux, and macOS serialization/restriction behavior is unit-tested.Final review
The complete working-tree diff was reviewed against the requested base commit. Changes are scoped to the v0.154.0 SDK/OpenAPI delta and supporting tests. No repository build or scratch artifacts were added to published paths. The working tree remains intentionally uncommitted; nothing was pushed or published.
Validation
Note
Medium Risk
Touches browser creation/query, vault payment flows, and workload-identity validation; changes are mostly additive but affect billing visibility and payment setup URLs.
Overview
Bumps kernel-go-sdk to v0.154.0 and wires new browser, vault, workload-identity, and error surfaces into the CLI.
Browsers: Adds
--platform-oson create (host OS vs--fingerprint-os), shows Host OS in list/get/pool/update/invoke output, and addsbrowsers get --include-costwith provisional cost fields in table output. Create/get help documents macOS availability and cost semantics. SDK errors withunsupported_configurationnow list unsupported fields viaCleanedUpSdkError.Vaults: Supports
link_balance_setup(optionaldesired_balance_amount/desired_transaction_limit,--open, sanitized URL output) and surfaces live Link balance amounts on payment-method tables and expanded JSON.Workload identity: Raises
--token-max-lifetime-secondsmax from 86400 to 172800 (48h).Tests and help text were extended for the new flags, operations, and bounds.
Reviewed by Cursor Bugbot for commit 54a8ec3. Bugbot is set up for automated code reviews on this repo. Configure here.