slack

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package slack implements the Slack channel plugin for the forge channel system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

Plugin implements channels.ChannelPlugin for Slack using Socket Mode.

func New

func New() *Plugin

New creates an uninitialised Slack plugin.

func (*Plugin) Init

func (p *Plugin) Init(cfg channels.ChannelConfig) error

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) NormalizeEvent

func (p *Plugin) NormalizeEvent(raw []byte) (*channels.ChannelEvent, error)

NormalizeEvent parses raw Slack event JSON into a ChannelEvent.

func (*Plugin) SendResponse

func (p *Plugin) SendResponse(event *channels.ChannelEvent, response *a2a.Message) error

SendResponse posts a message back to Slack via chat.postMessage. If the runtime attached file parts (large tool outputs), those are used for the file upload since the LLM text may be truncated. For large responses (>4096 chars), uploads the full report as a file with a summary message. Falls back to chunked messages on failure.

func (*Plugin) Start

func (p *Plugin) Start(ctx context.Context, handler channels.EventHandler) error

func (*Plugin) Stop

func (p *Plugin) Stop() error

Jump to

Keyboard shortcuts

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