huskies: merge 858

This commit is contained in:
dave
2026-04-29 10:41:32 +00:00
parent be5db846cc
commit 11d111360d
79 changed files with 265 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ pub struct SlackTransport {
}
impl SlackTransport {
/// Creates a new `SlackTransport` authenticated with the given bot token.
pub fn new(bot_token: String) -> Self {
Self {
bot_token,
+6
View File
@@ -6,10 +6,15 @@
//! - [`webhook_receive`] — Poem handler for the Slack Events API webhook
//! (POST incoming events including URL verification challenge).
/// Slack bot command handlers — parses and dispatches bot commands from Slack messages.
pub mod commands;
/// Slack message formatter — converts markdown to Slack mrkdwn syntax.
pub mod format;
/// Slack conversation history — loads prior chat history for context.
pub mod history;
/// SlackTransport — `ChatTransport` implementation for the Slack Bot API.
pub mod meta;
/// Slack request signature verification — validates HMAC-SHA256 signatures on incoming webhooks.
pub mod verify;
pub use commands::SlackWebhookContext;
@@ -38,6 +43,7 @@ pub struct SlackEventEnvelope {
pub event: Option<SlackEvent>,
}
/// A single Slack event payload (message, reaction, etc.) nested inside an event callback.
#[derive(Deserialize, Debug)]
pub struct SlackEvent {
pub r#type: Option<String>,