Skip to content

slack: default-export the server factory so bb can load the plugin - #64

Merged
trotterdylan merged 1 commit into
mainfrom
bb/the-slack-plugin-seems-busted-thr_fu2max4ntg
Oct 22, 2026
Merged

trotterdylan merged 1 commit into
mainfrom
bb/the-slack-plugin-seems-busted-thr_fu2max4ntg

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

Summary

Every developer's bb currently fails to start the Slack plugin with:

plugin "slack" reload failed: server entry must default-export a factory (bb) => void, got undefined

plugins/slack/server.ts exported createSlackPlugin but never a default export, so bb had nothing to call. This adds the same one-line default export that linear and github-watcher have, plus a test that imports the default export and checks it is a function.

  • Narrow bug fix, no behaviour change beyond the plugin actually starting: no-review lane.
  • Merging moves the bb-server pin and stages a restart for every developer's server (see .bb/AGENTS.md, "Shipping a plugin change").

Test plan

  • npm run typecheck in plugins/slack
  • npm test in plugins/slack: 34 passed
  • After the image rolls, Settings → Plugins → Slack shows the plugin running

🤖 Generated with Claude Code

The Slack plugin exported createSlackPlugin but never the factory itself,
so every bb server refused it at start: "server entry must default-export
a factory (bb) => void, got undefined". Export it the way linear and
github-watcher do, and add a test that imports the default export.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@trotterdylan
trotterdylan merged commit 15f3f92 into main Oct 22, 2026
20 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.

1 participant