forked from molecule-ai/molecule-core
Level 1 — Auto-post cron output to Slack: - scheduler.go: captures A2A response body, extracts agent text via extractResponseSummary(), broadcasts to workspace's configured Slack channels on successful non-empty cron completions - manager.go: adds BroadcastToWorkspaceChannels() — fans out to all enabled channels for a workspace (engineering+firehose for eng agents, research+firehose for research agents, etc.) - main.go: wires scheduler → channel manager via SetChannels() - Truncates output to 500 chars for Slack readability Level 2 — Inbound Slack messages route to workspaces: Already implemented by the existing webhook handler (POST /webhooks/slack) + the ParseWebhook method in slack.go which handles both Events API JSON payloads and slash command form-encoded payloads. Needs Slack App Events API URL configured to: https://<platform-host>/webhooks/slack Also in this commit: - slack.go: dual-mode adapter (bot_token + webhook fallback) - 031 migration: pgvector guard wraps entire DO block Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| artifacts | ||
| bundle | ||
| channels | ||
| crypto | ||
| db | ||
| envx | ||
| events | ||
| handlers | ||
| metrics | ||
| middleware | ||
| models | ||
| plugins | ||
| provisioner | ||
| registry | ||
| router | ||
| scheduler | ||
| supervised | ||
| ws | ||
| wsauth | ||