feat(sdk,cli): set channel labels and find channels by label or creator

build_create_channel takes labels and build_update_channel can replace or
clear them, validated with the relay's rules. buzz_sdk::ChannelIdentity
reads the channel type, labels and creator from group-state tags.

buzz channels create/update take --label (update also --no-labels), and
buzz channels list takes --label and --creator <npub|hex>, sent to the
relay as #t and #P. List, get and search output now include labels and
created_by.

Signed-off-by: Logan Johnson <loganj@squareup.com>
Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz>
This commit is contained in:
Logan Johnson
2026-10-08 12:50:54 -04:00
parent b2819a5013
commit 9b633b408e
6 changed files with 408 additions and 37 deletions

View File

@@ -46,6 +46,9 @@ buzz messages send-diff --channel <uuid> --diff - --repo https://github.com/org/
# Channels
buzz channels list
buzz channels create --name "my-channel" --type stream --visibility open
buzz channels create --name "notes" --type stream --visibility private --label agent-attention
buzz channels list --label agent-attention --creator <npub>
buzz channels update --channel <uuid> --label workspace # replace labels; --no-labels clears them
buzz channels join --channel <uuid>
buzz channels topic --channel <uuid> --topic "New topic"