CLI: Update SDK to v0.84.0 and surface auth timeline telemetry state - #210
Open
kernel-internal[bot] wants to merge 1 commit into
Open
CLI: Update SDK to v0.84.0 and surface auth timeline telemetry state#210kernel-internal[bot] wants to merge 1 commit into
kernel-internal[bot] wants to merge 1 commit into
Conversation
… timeline
Updates github.com/kernel/kernel-go-sdk to 65f3b913775353974858c92a6164ae25232ecc81
(v0.84.0).
A full enumeration of api.md methods against the CLI service interfaces found no
missing commands: all 128 SDK methods are covered (the one x-cli-skip endpoint,
POST /auth/connections/{id}/exchange, is correctly absent). The only API surface
change in this SDK bump is a new response field, ManagedAuthTimelineEvent.
TelemetryCaptured, so no new flags were needed.
Surfaces that field as a "Telemetry" column in `kernel auth connections timeline`,
so users can tell which timeline events have browser telemetry available via
`kernel browsers telemetry events`. The column shows "-" when the event has no
browser session or when the API does not report the field, and yes/no otherwise.
JSON output already passes the field through verbatim.
Tested against the live API:
- kernel auth connections timeline <id> --per-page 5 (three connections)
- kernel auth connections timeline <id> --per-page 2 --output json
- kernel auth connections list, kernel browsers list, kernel profiles list
- go build ./... and go test ./... pass
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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 to 65f3b913775353974858c92a6164ae25232ecc81 (v0.84.0) and reflects the new SDK surface in the CLI.
SDK Update
Coverage Analysis
A full enumeration of SDK methods (
api.md) against the CLI service interfaces was performed. All 128 SDK methods already have CLI commands. The only endpoint markedx-cli-skip: trueinopenapi.yaml(POST /auth/connections/{id}/exchange, the hosted login UI handoff) is correctly absent from the CLI.The only API surface change in this SDK bump is a new response field,
ManagedAuthTimelineEvent.TelemetryCaptured("Whether browser telemetry capture started for this event's browser session"). No new methods and no new request params, so no new commands or flags were required.Changes
kernel auth connections timelinenow renders aTelemetrycolumn sourced fromManagedAuthTimelineEvent.TelemetryCaptured, so users can tell which timeline events have telemetry retrievable viakernel browsers telemetry events.yes/nowhen the event has a browser session and the API reports the field.-when the event has no browser session, or when the API does not yet emit the field (avoids reporting a misleadingno).--output jsonalready passed the field through verbatim (raw JSON passthrough); unchanged.Testing
Built and run against the live API:
kernel auth connections timeline <id> --per-page 5across three connections — new column renders, pagination footer intactkernel auth connections timeline <id> --per-page 2 --output json— payload shape unchangedkernel auth connections list,kernel browsers list,kernel profiles list— no regressions from the SDK bumpgo build ./...andgo test ./...passNote: the production API is not yet emitting
telemetry_captured, so live output currently shows-in the new column. Unit coverage decodes an event from JSON with the field set to verify theyespath.Triggered by: kernel/kernel-go-sdk@65f3b91
Reviewer: @stainless-app
Note
Low Risk
Display-only CLI change plus a dependency bump; no auth or request-path changes.
Overview
Bumps kernel-go-sdk to v0.84.0 so the CLI can read
ManagedAuthTimelineEvent.TelemetryCapturedfrom the API.kernel auth connections timeline(table output) gains a Telemetry column:yes/nowhen the event has a browser session and the API senttelemetry_captured;-when there is no session or the field was omitted (so missing API data is not shown asno). JSON output is unchanged (raw event JSON already includes the field when present).Unit test coverage decodes a timeline event with
telemetry_captured: trueand asserts the table shows Telemetry andyesfor that session.Reviewed by Cursor Bugbot for commit 57bb747. Bugbot is set up for automated code reviews on this repo. Configure here.