Show extension checksums in CLI output - #217
Open
IlyaasK wants to merge 1 commit into
Open
Conversation
Expose the API-provided SHA-256 checksum in list, get, and upload tables so operators can verify extension artifacts without switching to JSON output.
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.
Summary
Why
Kernel now exposes the checksum of the exact uploaded extension archive. Showing it in the CLI lets operators identify and verify durable extension artifacts without dropping to a raw API request.
Implementation
List output adds a compact checksum column. Get and upload output print the checksum outside the width-bounded table so the complete digest remains available in normal terminal output. Legacy extensions without a checksum render
-; JSON output remains the unmodified SDK response.Verification
go test -short -timeout=2m ./...go vet ./...gofmt -l cmdgit diff --checkNote
Low Risk
CLI presentation and docs only; no changes to upload logic, auth, or API behavior beyond displaying an existing SDK field.
Overview
Surfaces Kernel’s extension archive checksum in the CLI so operators can verify durable artifacts without raw API calls.
kernel extensions listadds a Checksum column (missing values show-viautil.FirstOrDash).getanduploadprint the full digest on its own line after the property table so long hashes aren’t clipped. README documents checksum inextensions getmetadata.--output jsonis unchanged (SDK response only). Tests cover list/get/upload checksum output.Reviewed by Cursor Bugbot for commit 0fb61bd. Bugbot is set up for automated code reviews on this repo. Configure here.