feat(cli): expose exact channel visibility - #6353
Draft
loganj wants to merge 1 commit into
Draft
Conversation
Project NIP-29 channel visibility into exact channels get output and fail closed when the metadata marker is absent, malformed, or ambiguous. Signed-off-by: loganj <loganj@squareup.com> Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
loganj
force-pushed
the
larry/cli-channel-visibility
branch
from
August 19, 2026 22:18
7876ba4 to
55308a7
Compare
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.
🤖 Larry authored this change.
Summary
buzz channels get --channel <uuid>report whether the exact channel isopenorprivatewhile preserving its existing metadata fields.Details
The command now translates the channel metadata event's single-element
publicmarker to"visibility": "open"and itsprivatemarker to"visibility": "private".Focused tests pin the complete normalized open output, preservation of existing fields for private output, and rejection of missing, malformed, and contradictory visibility metadata. This change is limited to the exact channel lookup; channel listing, relay authorization, Desktop, and downstream intake behavior are unchanged.
Origin: buzz://message?channel=e7347028-9313-4c0f-8690-9f55409fd063&id=4c6ef01e3d33b0ec87c690e899a95a8e608fa594630b7371919ba5b9d9b0bd96