Skip to content

BOT-2475: share apps with Buzz communities from the CLI - #38

Merged
nathan-thillairajah merged 2 commits into
mainfrom
markS/bot-2475-community-cli
Oct 29, 2026
Merged

nathan-thillairajah merged 2 commits into
mainfrom
markS/bot-2475-community-cli

Conversation

@nathan-thillairajah

@nathan-thillairajah nathan-thillairajah commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Builderlab is moving to one workspace per account, so an app is shared with its own workspace plus Buzz communities. #37 removes the workspace grant commands entirely. So far community sharing has only been possible in the Apps UI. Agents create and share most apps, so they need the same control from the CLI (BOT-2475).

This adds bl apps community grant|revoke APP_ID COMMUNITY_ID. It follows the same pattern the removed workspace commands used: read the grant's revision, apply the change against that revision, and print the saved community list. No new auth path is needed. Kgoose already swaps a CLI session for a community-bound credential on this route and checks membership before a grant. bl apps handoff already reports shared_community_ids, so the result can be confirmed there.

Until blockplat-compose#496 (BOT-2473) merges, Compose only accepts a grant on a restricted app. After it merges, a grant adds viewers without changing visibility. Server-side community sharing stays off until BOT-2472.

Stacked on #37. Tests cover the read-then-write requests with direct and proxied auth, server denials and conflicts (no retry), and malformed revision responses, which never lead to a write. just test and just lint pass.

🤖 Generated with Claude Code

@kalvinnchau kalvinnchau left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 One P2 integration issue: community grant/revoke cannot authenticate through the current Blox proxy credential path. Source-only review; runtime execution was intentionally out of scope.

Comment thread src/bl/apps.rs
kalvinnchau
kalvinnchau previously approved these changes Oct 29, 2026
@nathan-thillairajah
nathan-thillairajah force-pushed the markS/bot-2475-community-cli branch from 32b391b to 39980ed Compare October 29, 2026 17:40
nathan-thillairajah and others added 2 commits October 29, 2026 13:47
Adds `bl apps community grant|revoke APP_ID COMMUNITY_ID`. Each command
reads the grant's CAS inputs on the community sharing route and then
applies the change with that revision, the same flow the retired
workspace commands used. Kgoose swaps the CLI session for a
community-bound credential on this route and checks membership before a
grant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Roxy only asks Kgoose for a sharing credential on workspace routes, so
a proxied community request carries the owner's JWT and Compose refuses
it. `bl apps community` now stops before any request in proxy mode and
points at Share & manage or an approved ingress. The grant test no
longer uses a canned proxy success.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nathan-thillairajah
nathan-thillairajah force-pushed the markS/bot-2475-community-cli branch from 39980ed to d4b3950 Compare October 29, 2026 17:48
@nathan-thillairajah
nathan-thillairajah changed the base branch from codex/retire-workspace-sharing-cli-20261029 to main October 29, 2026 17:48
@nathan-thillairajah
nathan-thillairajah dismissed kalvinnchau’s stale review October 29, 2026 17:48

The base branch was changed.

@nathan-thillairajah
nathan-thillairajah merged commit d714e95 into main Oct 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants