Slack onboarding: app manifest + guided setup wizard - #37
Merged
Conversation
Cuts Slack onboarding from a ~10-step manual checklist to: paste a manifest, copy two tokens, run one command, /invite the bot. - modules/slack/manifest.yaml — Slack app manifest. "Create New App → From an app manifest → paste" pre-sets Socket Mode, bot scopes, and the app_mention/message.im event subscriptions in one shot. - setup.sh `slack` mode — `./setup.sh slack <gm>`: prompts for the bot + app tokens, verifies the bot token (auth.test), resolves the operator's Slack user id from their email (users.lookupByEmail) or takes a member id, writes the SLACK_* block into that GM's config.env (idempotent; re-run to update), and installs the bridge on the right target (local / server / exe). Blank app token = outbound-only. - Refactors the local install into setup_slack_local() (shared by the local server path and the wizard). - README: manifest + wizard flow, manual path kept as a fallback. Wizard is non-interactive-testable via WIZ_<VAR> overrides. Verified: config block written + bridge installed; re-run updates in place (one block); manifest is valid YAML. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to the merged Slack module (#33). Bruno flagged that the Slack onboarding I documented was painful — a ~10-step manual checklist (toggle Socket Mode, add 4 scopes, subscribe to 2 events, hunt for member IDs, hand-edit
config.env, re-run setup). This cuts it to: paste a manifest, copy two tokens, run one command,/invitethe bot.What's here
modules/slack/manifest.yaml— a Slack app manifest. Create New App → From an app manifest → paste pre-configures Socket Mode, the bot scopes (chat:write,app_mentions:read,im:history,channels:read), and theapp_mention/message.imevent subscriptions in one shot. (Tokens still have to be minted by hand — Slack won't let a manifest do that.)./setup.sh slack <gm>wizard — prompts for the bot + app tokens, verifies the bot token (auth.test), resolves the operator's Slack user id from their email (users.lookupByEmail) or takes a member id, writes theSLACK_*block into that GM'sconfig.env, and installs the bridge on the right target (local / server / exe.dev). Blank app token ⇒ outbound-only. Idempotent — re-run to rotate a token, replaces in place.setup_slack_local()(shared by the local-server path and the wizard).<details>fallback.Onboarding, before → after
SLACK_*lines into config.env;./setup.sh servermanifest.yaml; generate 2 tokens;./setup.sh slack <gm>(answer 2 prompts);/invite @taskyouTesting
bash -n setup.shclean.manifest.yamlvalidated as YAML (scopes / events /socket_mode_enabled: true).SLACK_*block, installs the bridge +.env, member-id passthrough, fake-tokenauth.testwarns gracefully (non-fatal).SLACK_*block, new token wins (caught + fixed a bug where sourced config shadowed the prompt so updates were impossible).qa/run-qa.sh) → 26/0 (thesetup_slack_localrefactor doesn't regress the existing local/server/channel flow).🤖 Generated with Claude Code