mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
1fc2710999
Add Microsoft Teams webhook integration via Power Automate workflows. Features: - Output-only channel for sending notifications to Teams - Multiple webhook targets with named configuration - Required "default" target with automatic fallback - Rich Adaptive Card formatting with full-width rendering - Markdown table conversion to native Adaptive Card Tables - Column widths based on header content length - HTTPS-only webhook URL validation - Proper error classification for retry behavior Configuration: - channels.teams_webhook.enabled: bool - channels.teams_webhook.webhooks: map of named targets - Each target has webhook_url (SecureString) and optional title Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
353 B
Go
14 lines
353 B
Go
package teamswebhook
|
|
|
|
import (
|
|
"github.com/sipeed/picoclaw/pkg/bus"
|
|
"github.com/sipeed/picoclaw/pkg/channels"
|
|
"github.com/sipeed/picoclaw/pkg/config"
|
|
)
|
|
|
|
func init() {
|
|
channels.RegisterFactory("teams_webhook", func(cfg *config.Config, b *bus.MessageBus) (channels.Channel, error) {
|
|
return NewTeamsWebhookChannel(cfg.Channels.TeamsWebhook, b)
|
|
})
|
|
}
|