Slack: add ProjectBot Socket Mode integration with single-message replies and thinking reaction#4
Closed
blink-so[bot] wants to merge 28 commits intomainfrom
Closed
Slack: add ProjectBot Socket Mode integration with single-message replies and thinking reaction#4blink-so[bot] wants to merge 28 commits intomainfrom
blink-so[bot] wants to merge 28 commits intomainfrom
Conversation
- Single-message replies formatted for Slack mrkdwn - DMs and channel @mentions supported (reply in thread) - Uses Bun; add scripts and Prettier format Co-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
0079c2d to
0293796
Compare
…th_monocle: reaction on receipt and remove after reply for DMs and mentions\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…If the user message is empty (e.g., only @mention), return a help prompt instead of calling the LLM\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…replies\n\n- Replies no longer include the 🧐 emoji\n- Still add/remove :face_with_monocle: as a thinking reaction\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
- Strip :face_with_monocle: and U+1F9D0 (with VS16) from all generated text - Remove emoji prefix in runAgentOnce and sanitize before posting - Keep monocle only as a temporary reaction Co-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
- Add :face_with_monocle: on receipt; remove after reply in both DMs and mentions - Use try/finally to guarantee reaction removal Co-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…e tools for results\n\n- Append Slack-specific behavior to system prompt\n- Keep thinking reaction add/remove intact\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…, maxToolRoundtrips=5, temp=0)\n\n- Prevent preamble-only replies by allowing tool calls in non-streaming mode\n- Keep single-message reply semantics\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
… streamText\n\n- Introduce slack_send tool that posts to the thread\n- Enforce tool-only reply in system prompt; remove preambles\n- Manage thinking reaction around full execution\n- Fallback to posting final text if tool not called\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…d tsconfig + typecheck script; add @types/pg\n- Refactor Slack agent to streamText with slack_send tool; fix scoping and typings\n- Remove unsupported maxSteps; use result.text\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…f not called\n\n- toolChoice set to specific tool 'slack_send'\n- Add second strict pass to ensure tool is called\n- Remove plain-text fallback posting\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…to tool selection; strict retry uses same gate Co-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…de from last patch\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…ollmer <95866673+mattvollmer@users.noreply.github.com>
…re-DB clarifications and single post after DB query\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…uous messaging flow\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…s slack_send messaging Co-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…; remove tool-gating approach\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…rror handling in streaming\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
… and include results in final response\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…mprehensive debugging\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…sages\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…it completion instructions\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.com>
…alysis\n\nCo-authored-by: mattvollmer <95866673+mattvollmer@users.noreply.github.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
Env variables
Notes
Co-authored by Matt Vollmer