slack

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, deps Deps) (agentkit.Platform, error)

New registers platform/slack: Slack Socket Mode; SessionID follows cc-connect slack conventions.

func ReconstructDelivery

func ReconstructDelivery(sessionKey string) (delivery, error)

ReconstructDelivery parses a cc-connect style slack session key for proactive sends.

Types

type Config

type Config struct {
	common.AgentRoutingConfig
	BotToken      string `json:"botToken"`
	BotTokenRef   string `json:"botTokenRef"`
	AppToken      string `json:"appToken"`
	AppTokenRef   string `json:"appTokenRef"`
	Domain        string `json:"domain"` // optional Slack Web API base URL override
	AllowFrom     string `json:"allowFrom"`
	AllowChannels string `json:"allowChannels"`
	GroupReplyAll bool   `json:"groupReplyAll"`
}

type Deps

type Deps struct {
	Commands     agentkit.Commands     `json:"commands,omitempty"`
	SessionStore agentkit.SessionStore `json:"sessionStore,omitempty"`
	Workspace    workspace.Service     `json:"workspace,omitempty"`
	Credentials  credentials.Store     `json:"credentials,omitempty"`
}

type Platform

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

func (*Platform) PermissionCapability

func (p *Platform) PermissionCapability() permission.Capability

func (*Platform) PlatformID

func (p *Platform) PlatformID() string

func (*Platform) Receive

func (p *Platform) Receive(ctx context.Context) (agentkit.MessageEvent, error)

func (*Platform) ResolveChannelName

func (p *Platform) ResolveChannelName(channelID string) (string, error)

func (*Platform) Send

func (p *Platform) Send(ctx context.Context, event agentkit.OutboundEvent) error

Jump to

Keyboard shortcuts

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