Skip to content

Plugin-authoring tooling: SDK API lookup, icon discovery, and RPC commands #2720

Open
0 of 1 issue completed
Open

Description

@t1mdurden

Consolidated tooling scope

This is the parent tracker for plugin-authoring lookups: SDK declarations, valid icon names, and plugin RPC invocation. The icon-discoverability work is owned by #1859 so it is not independently implemented twice.

  • SDK declaration lookup: exact/dotted symbols, search, entry-point filtering, installed SDK version fidelity, JSON output, and actionable unknown-symbol errors.
  • Valid plugin icon names are not discoverable from the installed SDK, and an invalid name fails silently #1859 — Discoverable valid icon vocabulary through SDK tooling and the bb plugin icons CLI; preserve detection of invalid names and avoid a second hand-maintained icon registry.
  • Plugin RPC invocation: JSON/file/stdin input, useful error output/exit codes, and the existing server authorization contract.
  • Update command help, CLI Guide, and applicable skills for the completed commands.

Closing #1859 alone does not complete API lookup or RPC invocation. The prototype and its historical verification below remain implementation evidence rather than a claim that these commands shipped.

Summary

Three lookups a plugin author performs by hand today, each one measured on a real plugin build in #2549. #2549 was closed after its biggest item shipped (the skill split in #2642, which took the resident SKILL.md from 150,648 to 4,627 bytes). These are the remaining items from that list, with the work already done and linked below.

The work

bb plugin api [symbol]

The authoring skill's answer to "what is the exact signature" is read the bundled declarations. That is 13,000 lines, so in practice it is a run of greps and line-range prints before any plugin code is written — 23 of 122 tool calls in the measured session, all before the first line of the plugin.

Print one declaration with its doc comment out of the same files, resolved from the plugin directory's own node_modules/@get-bb/plugin-sdk/bundled-types (or a legacy vendored types/), so the answer always matches the pinned SDK and no server is involved.

$ bb plugin api ThreadListArgs --path ./bb-plugin-kanban
// root:15157
interface ThreadListArgs {
    archived?: boolean;
    ...
}

$ bb plugin api ThreadsArea.list --path ./bb-plugin-kanban
// root:15443
    list(args?: ThreadListArgs): Promise<ThreadListResult>;

Acceptance: exact-name lookup across every entrypoint present; a dotted name prints one member rather than the whole area interface; --search <text> lists names containing it, shortest first, for when the exact name is unknown; --entry <name> narrows to one entrypoint; --json; both the npm and the vendored layouts; an unknown name suggests near matches; no server required.

bb plugin icons

Tracked in #1859, including SDK vocabulary discovery and the CLI requirements transferred from this report.

bb plugin rpc <id> <method> [input]

The plugin data plane has no CLI. Reaching the route the frontend calls meant finding the server port in ~/.bb/bb-app-runtime.json and curling with a hand-written Origin header — four calls to make one call. The route's guard only rejects an Origin that is present and untrusted, which the CLI does not send, so nothing new is needed on the server.

$ bb plugin rpc kanban board_get '{"projectId":"proj_personal"}'
{ "projectId": "proj_personal", "columns": [ … ] }

$ bb plugin rpc kanban nope '{}'
{ "code": "unknown_method", "message": "plugin \"kanban\" has no rpc method \"nope\"" }
$ echo $?
1

Acceptance: JSON argument as a positional or --input-file <path> (- for stdin); the result printed as JSON; the error envelope on stderr with exit 1; unchanged server routes.

Implementation

Branch: https://github.com/t1mdurden/bb/tree/plugin-authoring-tooling (first commit).

Includes the guide chapter, the bb-cli skill command index and plugin reference, and the authoring skill's Looking up the exact API section, which now reaches for bb plugin api before reading the declaration files by hand. apps/cli is 518/518 green and the three commands were driven against a running bb and an installed plugin.

Per CONTRIBUTING I have not assumed sign-off: say the word and I open the PR, or close this and I will drop it.

Base commit: f4bbc2fe81a9b7639ff9a7396e172bddd89109e4.

AGENT GENERATED

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    plugins
    cli
    on Aug 30, 2026
  2. bb-slop-cop commented on Aug 30, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: Type Feature · Priority Medium · Effort Medium · Labels plugins, cli.

    No pull request was safe because this rule skips the report and fix steps when the Type is not Bug.

  3. changed the title [-]bb plugin api, icons, and rpc: the three plugin-authoring lookups still done by hand[/-] [+]Plugin-authoring tooling: SDK API lookup, icon discovery, and RPC commands[/+] on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliplugins

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions