slackconnector

package
v0.0.45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package slackconnector bridges Slack events into rocketclaw.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector bridges Slack DM events into the shared rocketclaw bus.

func New

func New(cfg *config.SlackConfig, publisher events.OutboundPublisher, threadRouter harnessbridge.PrimaryTextRouter, oneOffCronjobs oneOffCronjobRunner, logger *slog.Logger) *Connector

New constructs a Slack connector.

func (*Connector) AbortResponse added in v0.0.33

func (c *Connector) AbortResponse(msg *events.OutboundMessage)

AbortResponse releases Slack state after final response delivery cannot recover.

func (*Connector) AskUserQuestion added in v0.0.12

AskUserQuestion posts one in-message Slack question and waits for the human answer.

func (*Connector) CleanupExternalMCPRelay added in v0.0.33

func (c *Connector) CleanupExternalMCPRelay(ctx context.Context, replyTarget *events.SlackReplyTarget)

CleanupExternalMCPRelay removes a failed new-conversation relay and its placeholders.

func (*Connector) CleanupPendingReplyPlaceholder

func (c *Connector) CleanupPendingReplyPlaceholder(ctx context.Context, replyTarget *events.SlackReplyTarget)

CleanupPendingReplyPlaceholder removes a relay placeholder that no response turn claimed.

func (*Connector) HandleBroadcast added in v0.0.45

func (c *Connector) HandleBroadcast(ctx context.Context, broadcast *events.Broadcast) events.BroadcastAcknowledgement

HandleBroadcast delivers live output and connector-specific relays to Slack.

func (*Connector) SendCronjobChannelThread

func (c *Connector) SendCronjobChannelThread(ctx context.Context, channelID, relativePath, agent, ranAt, text string, attachments []events.OutboundAttachment) error

SendCronjobChannelThread posts one scheduled cronjob result in a new Slack channel thread.

func (*Connector) SendExternalMCPRelay

func (c *Connector) SendExternalMCPRelay(ctx context.Context, channelID, threadTS string, relay *events.ExternalMCPRelay) (*events.SlackReplyTarget, error)

SendExternalMCPRelay mirrors one external MCP request into a Slack root or thread.

func (*Connector) SendResponse

func (c *Connector) SendResponse(ctx context.Context, msg *events.OutboundMessage) error

SendResponse posts or updates a streamed response message in Slack.

func (*Connector) Start

func (c *Connector) Start(ctx context.Context) error

Start authenticates with Slack and begins consuming events.

func (*Connector) StartNewThreadRoot added in v0.0.16

StartNewThreadRoot posts the root message for a model-created Slack conversation.

func (*Connector) Stop

func (c *Connector) Stop(context.Context) error

Stop stops Slack socket intake while leaving response delivery usable.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL