Files
synapbus/internal/storage/schema/008_dead_letters.sql
T
Algis DumbrisandClaude Opus 4.6 2575ce2626 feat: OAuth 2.1 with PKCE, MCP auth, dead letters, channel management, and UX polish
- Add OAuth 2.1 identity provider with PKCE S256 (ory/fosite)
- Add RFC 7591 dynamic client registration for MCP clients
- Add RFC 8414 OAuth metadata discovery endpoint
- Add branded OAuth login/authorize pages with SynapBus design
- Add SYNAPBUS_BASE_URL env var for remote/LAN deployments
- Add OAuth bearer token authentication for MCP connections
- Add dead letter queue with Web UI management page
- Add channel leave, member list, and improved channel management
- Add agent auth middleware for MCP-authenticated requests
- Add console printer for structured server startup output
- Hide human accounts from agent management UI
- Fix SSE through middleware (Flush/Unwrap support)
- Fix graceful shutdown by closing SSE clients before server stop
- Fix localhost/127.0.0.1 redirect URI normalization for OAuth
- Remove agent self-registration MCP tools (manage via Web UI only)
- Update README with OAuth setup guide and MCP client config example

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 12:54:02 +02:00

23 lines
817 B
SQL

-- Dead letter queue for unread messages of deleted agents
CREATE TABLE IF NOT EXISTS dead_letters (
id INTEGER PRIMARY KEY AUTOINCREMENT,
owner_id INTEGER NOT NULL REFERENCES users(id),
original_message_id INTEGER NOT NULL,
to_agent TEXT NOT NULL,
from_agent TEXT NOT NULL,
body TEXT NOT NULL,
subject TEXT DEFAULT '',
priority INTEGER DEFAULT 5,
metadata TEXT DEFAULT '',
acknowledged INTEGER DEFAULT 0,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX IF NOT EXISTS idx_dead_letters_owner ON dead_letters(owner_id, acknowledged);
CREATE INDEX IF NOT EXISTS idx_dead_letters_agent ON dead_letters(to_agent);
-- Add is_system flag to channels
ALTER TABLE channels ADD COLUMN is_system INTEGER DEFAULT 0;
INSERT INTO schema_migrations (version) VALUES (8);