Spec for adding file, image, and audio support to Discord adapter,
matching Telegram adapter's v0.5.2 capabilities.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: aa9a2339bc1a
Add Discord as a supported channel alongside Telegram throughout the
README: prerequisites, setup wizard, usage commands, and session transfer.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: acbb57bda5a2
Resolves conflicts in package.json (keep both discord.js and
fastest-levenshtein) and pnpm-lock.yaml (regenerated).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: d7e8e9299f36
Discord config editor now asks for bot token and guild ID together,
validates both against the Discord API (including guild membership check),
and auto-enables on success. Clears old channel IDs to force recreation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Forum channels require Community mode. Instead of throwing an error,
now falls back to a regular text channel with threads for sessions.
- ensureForums: create GuildForum if Community enabled, GuildText otherwise
- createSessionThread: handle both Forum posts and Text channel threads
- setupAssistant: reuse createSessionThread for consistent thread creation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- #6: Normalize userId to string in allowedUserIds check (supports both
Telegram numeric IDs and Discord snowflake strings)
- #9: Validate guild has Community mode before creating forum channel,
throw helpful error message if not enabled
- #4/#5: Wire discord.js REST rateLimited event to DiscordSendQueue.onRateLimited()
to drop queued text edits when rate limited
- #7: Archive + lock threads instead of permanently deleting them,
preserving conversation history
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- ensureForums: fetch existing forum/notification channels by saved ID before creating new ones
- setupAssistant: verify assistant thread exists and unarchive if needed
- Gracefully recreate channels if saved IDs point to deleted channels
- Log "Reusing existing..." on restart for clarity
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add enable/disable toggle for both Telegram and Discord in config editor
- Auto-set enabled=true when bot token is configured
- Show enabled status in channel settings display
- Fix Discord not starting because config was missing enabled=true
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add TopicsPage with list, delete (with force option for active sessions), and bulk cleanup for finished/error topics.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds DashboardPage with 4 stat cards (System, Sessions, Adapters, Tunnel),
live SSE health updates, and quick action buttons (View Sessions, Restart Server).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 7cb710c4745f
- Add "Channels" parent menu in config editor (choose Telegram/Discord inside)
- Add editDiscord() function for editing Discord bot token and guild ID
- Make setup step numbering dynamic based on channel selection
- Update hardcoded Telegram references to be channel-agnostic
- Update product guide to mention both Telegram and Discord
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- stopDaemon: handle EPERM on initial check by cleaning stale PID file
- stopDaemon: return stopped:false when process survives SIGKILL
- escapeSystemdValue: escape $ to prevent systemd variable expansion
- api-server: warn when secret file has insecure permissions (like SSH)
- api-server: explicit utf-8 encoding in Buffer.from for timingSafeEqual
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Generic bi-directional handoff for all agents (not just Claude)
- CLI typo suggestions with fuzzy matching
- Per-agent setup instructions shown after install
- Fix ACP flag stripping and base args in agents run
- Comprehensive test coverage (+410 test cases across 22 new test files)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Implements Task 11: spawnAssistant, buildWelcomeMessage, buildAssistantSystemPrompt,
and handleAssistantMessage for Discord-specific assistant sessions with full
system prompt including current state, action playbook, and product guide.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract SSE connection pool logic into src/core/sse-manager.ts and
static file serving into src/core/static-server.ts to reduce api-server.ts
from 1035 lines per PR review feedback. No behavior changes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 0ce098c92766
Implements Task 10: complete Discord slash command infrastructure with
SLASH_COMMANDS array, central router, and all command handlers (new-session,
session, admin, menu, agents, doctor, integrate, settings).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add static file serving to ApiServer so the React SPA can be served
from the same HTTP server. Accepts optional uiDir as 5th constructor
parameter with auto-detection fallback for dev and publish layouts.
Includes path traversal guard and SPA fallback to index.html.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 1fe28d47aa9b
Claude was pre-installed before the checkbox was shown, then filtered
out as "already installed", making it invisible. Now installed agents
appear as pre-checked disabled items so users can see Claude is ready.
Fixes#36
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>