Skip to content

Add bl apps publishers list/add/remove - #11

Merged
nathan-thillairajah merged 1 commit into
block:mainfrom
scottcrawford03:scrawford/apps-publishers
Nov 4, 2026
Merged

nathan-thillairajah merged 1 commit into
block:mainfrom
scottcrawford03:scrawford/apps-publishers

Conversation

@scottcrawford03

@scottcrawford03 scottcrawford03 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds bl apps publishers to manage an Apps Platform app's approved publishers:

bl apps publishers list   <APP_ID>
bl apps publishers add    <APP_ID> --publisher <IDENTITY>
bl apps publishers remove <APP_ID> --publisher <IDENTITY>
  • It follows bl apps access for auth, --base-url / BL_APPS_CONTROL_PLANE_URL, --environment, --client-version, --json and error output.
  • --publisher takes the exact, case-sensitive subject the person copies from caller in bl apps list --json, the same as access set --viewer. An empty value is rejected before any network call.
  • Publishers can deploy, roll back and inspect an app. Only the owner can manage publishers, access, sharing and deletion. In workspace-scoped installations, a publisher can only publish while acting in the app's workspace.
  • Publisher sharing is an installation setting. bb-block has it on; bb-public doesn't, and answers these routes with an uncoded 404. The CLI reports that as publishers_unsupported and says only the owner can publish there. The help text says the same thing up front. Coded errors pass through unchanged.

Testing

  • cargo fmt --check, cargo clippy -D warnings (just lint), cargo test. The pre-push hook re-ran test and lint.
  • New tests cover the full command flow against a mock control plane, the request shape with and without --environment, unsupported and coded 404s, argument validation, and help text.

🤖 Generated with Claude Code

@scottcrawford03
scottcrawford03 requested a review from a team as a code owner October 7, 2026 19:36
Expose the Compose control plane's approved-publisher roster through
`bl apps publishers`, mirroring the structure, auth, base-url,
environment, client-version, and JSON output of `bl apps access`.

- list: GET /v1/agent/apps/{app_id}/publishers[?environment=]
- add: POST /v1/agent/apps/{app_id}/publishers {"publisher", "environment"?}
- remove: DELETE /v1/agent/apps/{app_id}/publishers {"publisher", "environment"?}

The publisher value is the exact case-sensitive subject copied from
`caller` in `bl apps list --json`. Environment is omitted unless the
caller selects one, per the contract's request conventions.

Publisher sharing is an installation setting. bb-block enables it;
bb-public does not, and Compose answers its publisher routes with an
uncoded 404. The CLI reports that as `publishers_unsupported`, saying
only the owner can publish there, and the help text says so up front.
Coded errors such as app_not_found pass through unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Mark S <f24e6a2707dedca50330ec50ca75720a5691b529f8d8303f51c2feb08d1c906d@remote-agent-pilot.communities.buzz.xyz>

@nathan-thillairajah nathan-thillairajah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤖 Rebased onto main, fixed bb-public unsupported handling and wording; just check + CI green.

@nathan-thillairajah
nathan-thillairajah merged commit 24bd7a2 into block:main Nov 4, 2026
4 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