Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
docs(v1.1.13): Chatty Mercury release — Discord, Slack, Signal channels, landing page update, and release notes
Salman Qureshic3d5ee723ba2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f51d8b16..022620d7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,39 @@# Changelog+## 1.1.13 — Chatty Mercury++Mercury gets chatty. Three new channels — Discord, Slack, and Signal — bring Mercury to where you already are, with end-to-end encryption, organization access models, and real-time streaming. Plus long-running loop fixes, CLI heartbeat improvements, and crash recovery.++### New++- **Discord channel** — Full bot integration with slash commands, streaming responses, rich embeds, organization access with admin roles and pairing codes, DM + channel support, and rate limiting. Config: `DISCORD_ENABLED`, `DISCORD_BOT_TOKEN`, `DISCORD_GUILD_ID`, `DISCORD_CHANNEL_ID`, `DISCORD_ADMIN_ROLE_NAME`, `DISCORD_STREAMING`.+- **Slack channel** — Socket Mode bot (no public endpoint needed) with slash commands, streaming edits, organization access with admin/member roles, channel + DM support, and @mention awareness. Config: `SLACK_ENABLED`, `SLACK_BOT_TOKEN`, `SLACK_APP_TOKEN`, `SLACK_CHANNEL_ID`, `SLACK_TEAM_ID`, `SLACK_STREAMING`.+- **Signal channel** — End-to-end encrypted via `signal-cli` bridge. Group mode (named "Mercury" group) and private DM mode. Auto-managed `signal-cli` binary (download, register, start, health-check). Pairing-code access control. Phone number redaction in CLI output. Linux (x64/ARM64) native binaries available; macOS requires Java 17+; Windows not supported. Config: `SIGNAL_ENABLED`, `SIGNAL_PHONE_NUMBER`, `SIGNAL_MODE`, `SIGNAL_GROUP_ID`, `SIGNAL_GROUP_NAME`.+- **Crash recovery** — New crash flag system (`~/.mercury/.crash-flag`) writes a JSON file on ungraceful exit. On next startup, Mercury reads the flag, reports what happened, and deletes it. The watchdog also writes a crash flag on max-restart exceeded, with a synchronous stderr write as last-gasp logging.++### Fixed++- **CLI heartbeat updates in place** — The CLI now updates the same message instead of stacking new "⏳ Working..." messages during long-running tasks. Other channels (Telegram, Discord, Slack, Signal) continue sending separate heartbeat messages.+- **All 12 silent task failure paths eliminated** — Every loop condition, tool limit, and stall now sends an explicit error message to the channel. No more silent disappearances mid-task.+- **Step log collapse** — Active step logs show at most 3 visible steps (running + last 2 completed). Full history available via Ctrl+D or `/log`. Idle shows compact summary line.+- **ThinkingIndicator shows "Processing"** — Replaces agent name with a neutral label; long operations show `/bg current` hint.+- **Ollama Local routed through OpenAI compat** — `ollamaLocal` now uses `OpenAICompatProvider` with `useChatApi: true`, bypassing the `ollama-ai-provider` v1 specification incompatibility with AI SDK v6.+- **Daemon graceful shutdown** — `stopDaemon` is now async: sends SIGTERM, waits up to 5 seconds, escalates to SIGKILL. Stale `signal-cli` processes are cleaned up on stop.+- **Channel send errors logged** — All `.catch(() => {})` on channel sends replaced with `.catch((e) => logger.warn({ e }, 'channel send failed'))`.++### Internal++- New `src/signal/` module: `binary.ts` (download/verify signal-cli), `jsonrpc.ts` (JSON-RPC client), `process.ts` (lifecycle), `setup.ts` (registration flow).+- New `src/core/crash-flag.ts` — crash flag read/write/clear.+- `src/types/channel.ts` — new types for Signal, Discord, Slack access models.+- `src/utils/config.ts` — config sections, access functions, and legacy migrations for all three new channels.+- `src/channels/registry.ts` — notification priority: Signal → Telegram → Discord → Slack → CLI.+- `package.json` — new dependencies: `discord.js` v14, `@slack/bolt` v4.++### Migration from 1.1.12++No breaking changes. All new channels are **off by default** — enable via `mercury doctor` or environment variables. Existing configs, providers, threads, kanban boards, and Second Brain data carry over unchanged.+## 1.1.12 — Daemon fix for standalone binariesHotfix on top of 1.1.11. The standalone single-file binaries shipped in 1.1.11 could not start in the background — which also meant Telegram never came online when Mercury was installed via the one-line installer (the recommended path for servers).diff --git a/RELEASE.md b/RELEASE.mdindex c753c02a..68eb4e5e 100644--- a/RELEASE.md+++ b/RELEASE.md@@ -1,33 +1,37 @@-# Release v1.1.12+# Release v1.1.13-## ☿ Mercury Agent v1.1.12 — Daemon hotfix+## ☿ Mercury Agent v1.1.13 — Chatty Mercury-Hotfix on top of [v1.1.11](https://github.com/cosmicstack-labs/mercury-agent/releases/tag/v1.1.11). The standalone single-file binaries introduced in 1.1.11 could not start in the background — which meant Telegram never came online for anyone who installed Mercury via the one-line installer (the recommended path for web servers).+Three new channels — Discord, Slack, and Signal — bring Mercury to where you already are. Every new channel has its own access model (pairing codes, admin roles, member approval), streaming responses, and real-time task progress. Signal adds end-to-end encryption for the privacy-first crowd.-### What Was Broken+Beyond channels, this release fixes the long-running cycle problem — the silent task failures that could make Mercury disappear mid-task. The CLI now updates heartbeats in-place instead of stacking new messages, step logs collapse to 3 lines (Ctrl+D for full history), and a crash flag system means Mercury tells you what happened when it restarts after an ungraceful exit.-`src/cli/daemon.ts` spawned the daemon child as:+### What's New-```-spawn(process.execPath, [process.argv[1], 'start', '--daemon'], ...)-```+- **Discord** — Full bot integration with slash commands, streaming responses, rich embeds, organization access with admin roles and pairing codes, DM + channel support, and rate limiting.+- **Slack** — Socket Mode bot (no public endpoint needed) with slash commands, streaming edits, organization access with admin/member roles, channel + DM support, and @mention awareness.+- **Signal** — End-to-end encrypted via signal-cli bridge. Group and private modes. Auto-managed signal-cli binary. Pairing-code access control. Phone number redaction in CLI.+- **Crash recovery** — Crash flag system writes to `~/.mercury/.crash-flag` on ungraceful exit; next startup reports what happened.-- **npm install:** resolved to `node dist/index.js start --daemon` ✅-- **Standalone binary** (`bun build --compile`): resolved to `mercury "/$bunfs/root/.../index.js" start --daemon` — Commander treated the bun-virtual path as an unknown subcommand, the child exited immediately, and `channels.startAll()` (the only place Telegram's `bot.start()` runs in daemon mode) was never reached.+### Fixed-`mercury service install` had the same flaw and was persisting that broken command into the LaunchAgent plist / systemd unit / Task Scheduler entry, so the failure also survived reboots.+- **CLI heartbeat updates in place** — No more wall-of-progress messages during long tasks.+- **All 12 silent task failure paths eliminated** — Every loop condition, tool limit, and stall now sends an explicit error message.+- **Step log collapse** — Max 3 visible steps during active tasks; Ctrl+D for full history.+- **Ollama Local routed through OpenAI compat** — Fixes AI SDK v1 specification error.+- **Daemon graceful shutdown** — SIGTERM → wait → SIGKILL; stale signal-cli cleanup on stop.+- **Channel send errors logged** — No more silently swallowed send failures.-### Fixed+### Dependencies-- **Daemon now spawns correctly from both install paths** — new `isStandaloneBinary()` detection in `src/cli/daemon.ts` chooses between `[node, script, 'start', '--daemon']` (npm) and `[mercury, 'start', '--daemon']` (standalone binary). Detection looks at `process.versions.bun`, `$bunfs` / `~BUN` markers in `argv[1]`, and the `execPath` basename, so `node`, `bun <script>` (dev), and standalone `mercury` all do the right thing.-- **System-service files generated correctly for standalone installs** — macOS LaunchAgent `ProgramArguments`, Linux systemd `ExecStart=`, and Windows `schtasks /tr` now use the binary-only invocation when running from a compiled binary.-- **Telegram comes online again in background mode** — direct consequence of the daemon fix.+- `discord.js` v14.26.4+- `@slack/bolt` v4.7.3### Upgrade**npm:**```-npm install -g @cosmicstack/[email protected]+npm install -g @cosmicstack/[email protected]mercury restart```@@ -36,23 +40,28 @@ mercury restartmercury restart```-If you had `mercury service install` set up under 1.1.11 (so the broken command got written into your service file), reinstall it:-```-mercury service uninstall-mercury service install-```--### Verifying The Fix--```-mercury start-mercury status # should show a live PID-mercury logs # should show "Mercury is live (daemon mode)" and Telegram polling-```+No config migrations needed. All new channels are off by default.### Files Touched-- `src/cli/daemon.ts` — `isStandaloneBinary()` + `buildDaemonSpawnArgs()`; `ensureDaemonRunning()` uses them.-- `src/cli/service.ts` — `getServiceLaunchArgs()` wired into macOS / Linux / Windows installers.--**Full Changelog**: https://github.com/cosmicstack-labs/mercury-agent/compare/v1.1.11...v1.1.12+- `src/channels/discord.ts` — Discord channel (new)+- `src/channels/signal.ts` — Signal channel (new)+- `src/channels/slack.ts` — Slack channel (new)+- `src/signal/binary.ts` — signal-cli binary management (new)+- `src/signal/jsonrpc.ts` — JSON-RPC client (new)+- `src/signal/process.ts` — Process lifecycle (new)+- `src/signal/setup.ts` — Signal registration (new)+- `src/core/crash-flag.ts` — Crash flag system (new)+- `src/core/agent.ts` — Channel registration, heartbeat in-place, silent failure elimination+- `src/channels/registry.ts` — Discord/Slack/Signal registration+- `src/channels/cli.ts` — sendHeartbeat method+- `src/types/channel.ts` — Signal/Discord/Slack access types+- `src/utils/config.ts` — Config sections and access management for new channels+- `src/index.ts` — CLI commands for new channels, onboarding flows+- `src/cli/daemon.ts` — Graceful shutdown, signal-cli cleanup+- `src/cli/watchdog.ts` — Crash flag on max-restart+- `src/providers/registry.ts` — ollamaLocal → OpenAI compat+- `src/ui/App.tsx` — Step collapse, Ctrl+D, Processing indicator+- `package.json` — v1.1.13, discord.js, @slack/bolt++**Full Changelog**: https://github.com/cosmicstack-labs/mercury-agent/compare/v1.1.12...v1.1.13\ No newline at end of filediff --git a/package.json b/package.jsonindex fd36ed3f..6a02951b 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "@cosmicstack/mercury-agent",- "version": "1.1.12",+ "version": "1.1.13","description": "Soul-driven AI agent with Second Brain memory, permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI or Telegram.","type": "module","main": "dist/index.js",diff --git a/website/docs/integrations/discord.mdx b/website/docs/integrations/discord.mdxnew file mode 100644index 00000000..36ba7574--- /dev/null+++ b/website/docs/integrations/discord.mdx@@ -0,0 +1,146 @@+---+id: discord+title: Discord+---++Mercury connects to Discord as a bot, providing a real-time conversational interface with slash commands, streaming responses, rich embeds, and an organization-style access model with admin roles and pairing codes.++## Prerequisites++- A **Discord account** with permission to manage a server (or create one).+- A **Discord Bot Token** from the [Discord Developer Portal](https://discord.com/developers/applications).+- A **server (guild)** where you have admin privileges to invite the bot.++:::warning[Platform note]++Discord integration requires Node.js 18 or later (the `discord.js` v14 dependency). The standalone binary includes all necessary dependencies automatically.++:::++## Setup++### Step 1: Create a Discord Application++1. Go to [Discord Developer Portal](https://discord.com/developers/applications) and click **New Application**.+2. Give it a name (e.g. "Mercury") and click **Create**.+3. Navigate to **Bot** in the left sidebar and click **Reset Token** to generate a bot token. Copy it — you'll need it in Step 4.+4. Under **Privileged Gateway Intents**, enable:+ - **Message Content Intent** — required for Mercury to read your messages.+ - **Server Members Intent** — required for the access control system.+5. Click **Save Changes**.++### Step 2: Invite the Bot to Your Server++1. Navigate to **OAuth2** → **URL Generator** in the left sidebar.+2. Under **Scopes**, select: `bot`, `applications.commands`.+3. Under **Bot Permissions**, select:+ - Send Messages+ - Read Message History+ - Use Slash Commands+ - Attach Files+ - Embed Links+4. Copy the generated URL and open it in your browser to invite the bot to your server.++### Step 3: Create an Admin Role (Optional)++1. In your Discord server, go to **Server Settings** → **Roles**.+2. Create a role named **Mercury Admin** (or any name you prefer).+3. Assign this role to yourself and anyone else who should have admin control over Mercury.++### Step 4: Configure Mercury++Run `mercury doctor` and select Discord when prompted, or set these environment variables:++```bash+# Required+DISCORD_ENABLED=true+DISCORD_BOT_TOKEN=your-bot-token-here++# Optional — restrict to a specific server+DISCORD_GUILD_ID=++# Optional — restrict to a specific channel+DISCORD_CHANNEL_ID=++# Optional — admin role name (default: "Mercury Admin")+DISCORD_ADMIN_ROLE_NAME=Mercury Admin++# Optional — enable streaming (edit-in-place) responses (default: true)+DISCORD_STREAMING=true+```++Or add them to `~/.mercury/.env`.++### Step 5: Pair++1. Start Mercury: `mercury up`+2. In Discord, type `/start` in any channel where the bot is present.+3. Mercury will display a **pairing code**. Enter it in the CLI:+ ```bash+ mercury discord pair <code>+ ```+4. You are now the Discord admin. Other users can request access with `/start`, and you can approve them.++## Access Model++Mercury Discord uses an **organization access model** with admins and members.++| Role | Description | Can approve requests? |+|------|-------------|----------------------|+| **Admin** | First user to pair (or anyone with the configured admin role). Can approve/reject access requests, promote/demote users. | Yes |+| **Member** | Approved by an admin. Can send messages and receive responses. | No |+| **Pending** | Sent `/start` but not yet approved. | No |++### CLI Commands++| Command | Description |+|---------|-------------|+| `mercury discord list` | Show approved admins, members, and pending requests |+| `mercury discord approve <userId>` | Approve a pending request by Discord user ID |+| `mercury discord reject <userId>` | Reject a pending request |+| `mercury discord remove <userId>` | Remove an approved admin or member |+| `mercury discord promote <userId>` | Promote a member to admin |+| `mercury discord demote <userId>` | Demote an admin to member |+| `mercury discord reset` | Clear all Discord access (start fresh) |++## Features++| Feature | Description |+|---------|-------------|+| Slash commands | Built-in `/start`, `/status`, `/progress`, `/permissions`, `/models`, and more |+| Streaming responses | Messages are edited in place as tokens arrive (toggle with `DISCORD_STREAMING`) |+| Rich embeds | Task progress and completion banners use Discord embeds for visual clarity |+| DM support | Private conversations work alongside server channels |+| Admin role integration | Discord server roles can be used for access control |+| Rate limiting | Built-in busy detection and rate limiting for shared servers |+| File handling | Send and receive file attachments |++## Configuration Reference++| Variable | Description | Default |+|----------|-------------|---------|+| `DISCORD_ENABLED` | Enable/disable Discord channel | `false` |+| `DISCORD_BOT_TOKEN` | Bot token from Discord Developer Portal | — |+| `DISCORD_GUILD_ID` | Restrict to a specific server. Leave empty for all servers. | — |+| `DISCORD_CHANNEL_ID` | Restrict to a specific channel. Leave empty for all channels. | — |+| `DISCORD_ADMIN_ROLE_NAME` | Discord role name that grants admin access | `Mercury Admin` |+| `DISCORD_STREAMING` | Enable real-time streaming (edit-in-place) | `true` |++## Troubleshooting++**Bot doesn't respond to messages**+- Make sure **Message Content Intent** is enabled in the Discord Developer Portal.+- Check that `DISCORD_ENABLED=true` and `DISCORD_BOT_TOKEN` is set correctly.+- Run `mercury logs` to check for connection errors.++**Bot joins servers it shouldn't**+- Set `DISCORD_GUILD_ID` to restrict the bot to your server only.+- If the bot joins an unconfigured guild, it will automatically leave and log a warning.++**Slash commands not showing up**+- Slash commands are registered when the bot starts. Restart Mercury (`mercury restart`) if commands don't appear immediately.+- Discord caches slash commands — it may take up to an hour for changes to propagate globally.++**Streaming not working**+- Ensure `DISCORD_STREAMING=true` (default).+- Discord rate-limits message edits — Mercury handles this automatically by falling back to new messages when rate-limited.\ No newline at end of filediff --git a/website/docs/integrations/signal.mdx b/website/docs/integrations/signal.mdxnew file mode 100644index 00000000..c69dd072--- /dev/null+++ b/website/docs/integrations/signal.mdx@@ -0,0 +1,232 @@+---+id: signal+title: Signal+---++Mercury connects to Signal via a `signal-cli` bridge, providing an end-to-end encrypted conversational interface with support for group chats and private DMs, pairing-code access control, and real-time task progress.++## Prerequisites++:::danger[Important: Platform and dependency requirements]++Signal integration has specific requirements that must be met before it will work:++1. **Operating system**: Linux (x64 or ARM64) or macOS (Apple Silicon or Intel). **Windows is not supported** — `signal-cli` native binaries are not available for Windows.+2. **`signal-cli`**: Mercury automatically downloads and manages `signal-cli` v0.14.5. On Linux, native binaries are available for x64 and ARM64. On macOS (or on Linux without native binaries), Mercury falls back to the Java-based `signal-cli` which requires **Java 17+** (`java` on your `PATH`).+3. **Phone number**: You need a real phone number capable of receiving SMS or calls for Signal verification during registration. This number will be your Mercury bot's Signal identity.+4. **Network access**: Signal servers must be reachable from your machine. If you're behind a firewall, ensure `signal-cli` can reach `https://chat.signal.org` and `https://storage.signal.org`.+5. **Storage**: Approximately 50 MB for the `signal-cli` binary/JAR plus data storage in `~/.mercury/signal-cli/`.++:::++:::warning[First-time registration]++On first run, Mercury will guide you through the `signal-cli` registration process. This involves:+1. Registering your phone number with Signal (SMS or voice verification).+2. Verifying the code Signal sends you.+3. Setting a Signal profile name for the bot.++This is a **one-time setup** — once registered, Mercury will automatically start the `signal-cli` daemon on subsequent launches.++:::++## How It Works++Mercury's Signal integration works by running `signal-cli` in JSON-RPC mode as a managed subprocess. Mercury:++1. **Downloads** the correct `signal-cli` binary for your platform (or uses the JAR if native binaries aren't available).+2. **Registers** the phone number with Signal on first run (interactive CLI flow).+3. **Starts** the `signal-cli` JSON-RPC daemon as a managed subprocess.+4. **Communicates** via JSON-RPC over a local socket — no external API needed.+5. **Manages** the daemon lifecycle (start, stop, health checks, auto-restart).++All messages between you and Mercury travel through Signal's **end-to-end encryption**. Mercury never stores your Signal messages.++## Setup++### Step 1: Install Java (if needed)++On macOS, Java is typically already available. On Linux, install it if you don't have it:++```bash+# Ubuntu/Debian+sudo apt install openjdk-17-jre++# Fedora/RHEL+sudo dnf install java-17-openjdk++# Alpine+apk add openjdk17+```++To verify:+```bash+java -version+# Should show 17 or later+```++:::tip[Skip Java on Linux with native binaries]++On Linux x64 and ARM64, Mercury can use `signal-cli` native binaries that don't require Java at all. Mercury will automatically detect and use native binaries when available. Only install Java if you're on macOS or if the native binary doesn't work on your Linux system.++:::++### Step 2: Configure Mercury++Run `mercury doctor` and select Signal when prompted, or set these environment variables:++```bash+# Required+SIGNAL_ENABLED=true+SIGNAL_PHONE_NUMBER=+1234567890 # Your bot's phone number (E.164 format)++# Optional — "group" (default) or "private"+SIGNAL_MODE=group++# Optional — restrict to a specific Signal group+SIGNAL_GROUP_ID=+SIGNAL_GROUP_NAME=Mercury+```++Or add them to `~/.mercury/.env`.++### Step 3: Start Mercury and Register++```bash+mercury up+```++On first launch with Signal enabled, Mercury will:+1. Download `signal-cli` to `~/.mercury/signal-cli/`.+2. Start the registration flow:+ ```+ Signal: Registering +1234567890 with Signal...+ Signal: Verification code sent. Enter the code:+ ```+3. Enter the verification code you receive via SMS or call.+4. Set a profile name for your bot (e.g. "Mercury").++After registration is complete, Mercury will save the credentials and auto-start `signal-cli` on subsequent launches.++### Step 4: Start Chatting++#### Group Mode (default)++1. Create a Signal group named **"Mercury"** (or your configured `SIGNAL_GROUP_NAME`).+2. Add your Mercury bot's phone number to the group.+3. Mercury will automatically detect the group and start responding.++#### Private Mode++Set `SIGNAL_MODE=private` to use 1:1 DMs instead of a group. Send a message directly to the bot's phone number.++### Step 5: Pair++When a new user sends a message to the Mercury bot for the first time, they'll receive instructions to pair:++1. Send `/pair` to the bot on Signal.+2. The bot will respond with a pairing code.+3. Enter the code in the CLI:+ ```bash+ mercury signal pair <code>+ ```+4. You are now the Signal admin. Other users can request access by messaging the bot, and admins can approve them.++## Access Model++Mercury Signal uses an **organization access model** with admins and members.++| Role | Description | Can approve requests? |+|------|-------------|----------------------|+| **Admin** | First user to pair. Can approve/reject access requests, promote/demote users. | Yes |+| **Member** | Approved by an admin. Can send messages and receive responses. | No |+| **Pending** | Sent `/start` but not yet approved. | No |++### CLI Commands++| Command | Description |+|---------|-------------|+| `mercury signal list` | Show approved admins, members, and pending requests |+| `mercury signal approve <userId>` | Approve a pending request |+| `mercury signal reject <userId>` | Reject a pending request |+| `mercury signal remove <userId>` | Remove an approved admin or member |+| `mercury signal promote <userId>` | Promote a member to admin |+| `mercury signal demote <userId>` | Demote an admin to member |+| `mercury signal reset` | Clear all Signal access (start fresh) |++:::warning[Phone number display]++In CLI output, phone numbers are **redacted** (e.g. `+1***890`) for privacy. The full numbers are stored in `~/.mercury/mercury.yaml` but never displayed in logs or terminal output.++:::++## Modes++### Group Mode (default)++Mercury listens for messages in a Signal group named "Mercury" (configurable via `SIGNAL_GROUP_NAME`). This is the recommended mode because:++- Messages are visible to all group members (useful for team collaboration).+- Mercury auto-detects the group by name.+- You can override the group with `SIGNAL_GROUP_ID` for precise control.++### Private Mode++Set `SIGNAL_MODE=private` for 1:1 conversations. In this mode:++- Mercury only responds to direct messages (not group messages).+- Each user gets their own conversation thread.+- Access control still applies — unapproved users see a pairing prompt.++## Features++| Feature | Description |+|---------|-------------|+| End-to-end encryption | All messages use Signal's E2E encryption |+| Group and private modes | Listen in a named group or respond to DMs |+| Pairing code onboarding | Secure admin setup via CLI pairing code |+| Auto-managed signal-cli | Download, register, start, and health-check handled automatically |+| Message deduplication | Duplicate messages are filtered within a 60-second window |+| Rate limiting | Built-in busy detection prevents message flooding |+| Long message splitting | Messages over 4000 characters are split into multiple Signal messages |+| Phone number redaction | CLI output always redacts phone numbers for privacy |++## Configuration Reference++| Variable | Description | Default |+|----------|-------------|---------|+| `SIGNAL_ENABLED` | Enable/disable Signal channel | `false` |+| `SIGNAL_PHONE_NUMBER` | Bot's phone number (E.164 format, e.g. `+1234567890`) | — |+| `SIGNAL_MODE` | `"group"` or `"private"` | `group` |+| `SIGNAL_GROUP_ID` | Restrict to a specific Signal group (hex ID). Leave empty for auto-detect by name. | — |+| `SIGNAL_GROUP_NAME` | Name of the Signal group to auto-detect | `Mercury` |++## Troubleshooting++**signal-cli won't start**+- On macOS: Make sure Java 17+ is installed and `java` is on your `PATH`.+- On Linux: Try the native binary first. If it fails, install Java 17+ and Mercury will fall back to the JAR.+- Run `mercury logs` for detailed error output.++**Registration fails**+- Make sure your phone number is in E.164 format (e.g. `+1234567890`).+- Ensure your phone number can receive SMS or calls from Signal.+- If you've previously registered this number, you may need to re-register: `mercury signal unregister` then start again.++**Bot doesn't respond in the group**+- Verify the group name matches `SIGNAL_GROUP_NAME` (default: "Mercury").+- Try setting `SIGNAL_GROUP_ID` directly to the group's hex ID (you can find it in `mercury logs`).+- Make sure the bot's phone number has been added to the group.++**"Unpaired" response**+- New users need to send `/pair` and then complete the CLI pairing flow.+- If you've lost admin access, run `mercury signal reset` to start fresh.++**signal-cli crashes repeatedly**+- Check `~/.mercury/signal-cli/` for the data directory. Corrupted data can cause crashes.+- Try removing the data directory and re-registering: **Warning:** this will delete your Signal identity and you'll need to re-register.+- Check `mercury logs` for the specific error.++**Windows is not supported**+- Signal integration requires `signal-cli` which does not have Windows native binaries.+- Consider using Docker with a Linux container if you need Signal on a Windows host.\ No newline at end of filediff --git a/website/docs/integrations/slack.mdx b/website/docs/integrations/slack.mdxnew file mode 100644index 00000000..941b0641--- /dev/null+++ b/website/docs/integrations/slack.mdx@@ -0,0 +1,195 @@+---+id: slack+title: Slack+---++Mercury connects to Slack as a Socket Mode bot, providing a real-time conversational interface with slash commands, streaming responses, and an organization-style access model with pairing codes and admin controls.++## Prerequisites++- A **Slack workspace** where you can install apps.+- A **Slack App** with Bot Token (`xoxb-`) and App-Level Token (`xapp-`).+- Node.js 18 or later (for the `@slack/bolt` v4 dependency).++:::warning[Socket Mode required]++Mercury uses **Socket Mode**, which means it connects to Slack via WebSocket — no public endpoint or HTTPS certificate is needed. Your Slack app must have Socket Mode enabled and an App-Level Token with `connections:write` scope.++:::++## Setup++### Step 1: Create a Slack App++1. Go to [api.slack.com/apps](https://api.slack.com/apps) and click **Create New App** → **From scratch**.+2. Give it a name (e.g. "Mercury") and select your workspace.+3. Click **Create App**.++### Step 2: Enable Socket Mode and Get App-Level Token++1. In your app's settings, navigate to **Socket Mode** in the left sidebar.+2. Toggle **Enable Socket Mode** on.+3. Enter a token name (e.g. "mercury-socket") and click **Generate**.+4. Copy the `xapp-` token — you'll need this as `SLACK_APP_TOKEN`.++### Step 3: Configure Bot Token Scopes++1. Navigate to **OAuth & Permissions** in the left sidebar.+2. Under **Bot Token Scopes**, add these scopes:+ - `chat:write` — send messages+ - `chat:write.public` — send messages in channels the bot hasn't joined+ - `chat:write.customize` — customize message appearance (for streaming edits)+ - `channels:history` — read channel messages+ - `groups:history` — read private channel messages+ - `im:history` — read direct messages+ - `im:write` — send direct messages+ - `files:write` — upload files+ - `commands` — handle slash commands+ - `app_mentions:read` — respond to @mentions++3. Click **Install App to Workspace** (or reinstall if already installed).+4. Copy the **Bot User OAuth Token** (`xoxb-`) — this is `SLACK_BOT_TOKEN`.++### Step 4: Enable Event Subscriptions++1. Navigate to **Event Subscriptions** in the left sidebar.+2. Toggle **Enable Events** on.+3. Under **Subscribe to bot events**, add:+ - `message.channels` — receive messages in public channels+ - `message.groups` — receive messages in private channels+ - `message.im` — receive direct messages+ - `app_mention` — respond when @mentioned++4. Click **Save Changes**.++### Step 5: Enable Interactivity++1. Navigate to **Interactivity & Shortcuts** in the left sidebar.+2. Toggle **Interactivity** on.+3. Click **Save Changes**.++### Step 6: Create the Slash Command++1. Navigate to **Slash Commands** in the left sidebar.+2. Click **Create New Command**.+3. Fill in:+ - **Command**: `/mercury`+ - **Request URL**: (leave default — Socket Mode handles this)+ - **Short description**: `Interact with Mercury Agent`+ - **Usage hint**: `start | status | help`+4. Click **Save**.++### Step 7: Enable App Home Messages++1. Navigate to **App Home** in the left sidebar.+2. Check **Allow users to send Slash commands and messages from the messages tab**.+3. Click **Save**.++### Step 8: Invite the Bot to a Channel++In Slack, go to the channel where you want Mercury to respond and type:+```+/invite @Mercury+```++### Step 9: Configure Mercury++Run `mercury doctor` and select Slack when prompted, or set these environment variables:++```bash+# Required+SLACK_ENABLED=true+SLACK_BOT_TOKEN=xoxb-your-bot-token+SLACK_APP_TOKEN=xapp-your-app-token++# Optional — restrict to a specific channel+SLACK_CHANNEL_ID=++# Optional — workspace/team ID+SLACK_TEAM_ID=++# Optional — enable streaming (edit-in-place) responses (default: true)+SLACK_STREAMING=true+```++Or add them to `~/.mercury/.env`.++### Step 10: Pair++1. Start Mercury: `mercury up`+2. In Slack, DM the bot or mention it in a channel with: `/mercury start`+3. Mercury will display a **pairing code**. Enter it in the CLI:+ ```bash+ mercury slack pair <code>+ ```+4. You are now the Slack admin. Other users can request access, and you can approve them from the CLI.++## Access Model++Mercury Slack uses an **organization access model** with admins and members.++| Role | Description | Can approve requests? |+|------|-------------|----------------------|+| **Admin** | First user to pair. Can approve/reject access requests, promote/demote users. | Yes |+| **Member** | Approved by an admin. Can send messages and receive responses. | No |+| **Pending** | Sent `/mercury start` but not yet approved. | No |++### CLI Commands++| Command | Description |+|---------|-------------|+| `mercury slack list` | Show approved admins, members, and pending requests |+| `mercury slack approve <userId>` | Approve a pending request by Slack user ID |+| `mercury slack reject <userId>` | Reject a pending request |+| `mercury slack remove <userId>` | Remove an approved admin or member |+| `mercury slack promote <userId>` | Promote a member to admin |+| `mercury slack demote <userId>` | Demote an admin to member |+| `mercury slack reset` | Clear all Slack access (start fresh) |++## Features++| Feature | Description |+|---------|-------------|+| Socket Mode | No public endpoint needed — connects via WebSocket |+| Streaming responses | Messages are edited in place as tokens arrive |+| Slash commands | `/mercury` for start, status, help, and more |+| Channel + DM support | Works in channels (when @mentioned) and direct messages |+| Organization access | Admin/member roles with pairing-code onboarding |+| App mentions | Respond when @mentioned in channels |+| File handling | Send and receive file attachments |++## Configuration Reference++| Variable | Description | Default |+|----------|-------------|---------|+| `SLACK_ENABLED` | Enable/disable Slack channel | `false` |+| `SLACK_BOT_TOKEN` | Bot User OAuth Token (`xoxb-`) | — |+| `SLACK_APP_TOKEN` | App-Level Token for Socket Mode (`xapp-`) | — |+| `SLACK_CHANNEL_ID` | Restrict to a specific channel. Leave empty for all channels. | — |+| `SLACK_TEAM_ID` | Workspace/Team ID (optional) | — |+| `SLACK_STREAMING` | Enable real-time streaming (edit-in-place) | `true` |++## Troubleshooting++**Bot doesn't respond to messages**+- Make sure `SLACK_ENABLED=true` and both `SLACK_BOT_TOKEN` and `SLACK_APP_TOKEN` are set.+- Verify the bot token starts with `xoxb-` and the app token starts with `xapp-`.+- Check that event subscriptions include `message.channels`, `message.groups`, `message.im`, and `app_mention`.+- Run `mercury logs` to check for connection errors.++**Socket Mode connection failures**+- Ensure Socket Mode is enabled in your Slack App settings.+- Verify the App-Level Token has the `connections:write` scope.+- If you're behind a firewall, ensure WebSocket connections to `wss://slack.com` are allowed.++**Bot doesn't respond in channels**+- Make sure you've invited the bot to the channel: `/invite @Mercury`+- Check that `channels:history` and `chat:write.public` scopes are enabled.++**Slash commands not working**+- Make sure Interactivity is enabled in your Slack App settings.+- Verify the `/mercury` slash command is configured correctly.++**Streaming not working**+- Ensure `SLACK_STREAMING=true` (default).+- Slack rate-limits message edits — Mercury handles this automatically by falling back to new messages when rate-limited.\ No newline at end of filediff --git a/website/docs/releases/1.1.13.mdx b/website/docs/releases/1.1.13.mdxnew file mode 100644index 00000000..5836977a--- /dev/null+++ b/website/docs/releases/1.1.13.mdx@@ -0,0 +1,239 @@+---+title: "v1.1.13 — Chatty Mercury"+sidebar_label: "v1.1.13"+description: "Mercury gets chatty. Three new channels — Discord, Slack, and Signal — bring Mercury to where you already are, with end-to-end encryption, organization access models, and real-time streaming. Plus long-running loop fixes, CLI heartbeat improvements, and crash recovery."+image: /img/og/1.1.11.png+keywords: [mercury, mercury-agent, chatty-mercury, discord, slack, signal, channel, release, 1.1.13]+---++import Head from '@docusaurus/Head';++<Head>+ <meta property="og:title" content="Mercury Agent v1.1.13 — Chatty Mercury" />+ <meta property="og:description" content="Three new channels — Discord, Slack, and Signal — bring Mercury to where you already are, with end-to-end encryption, organization access, and real-time streaming. Plus long-running loop fixes and crash recovery." />+ <meta property="og:type" content="article" />+ <meta property="og:url" content="https://mercuryagent.sh/docs/releases/1.1.13" />+ <meta property="og:image" content="https://mercuryagent.sh/img/og/1.1.11.png" />+ <meta property="og:site_name" content="Mercury Agent — Soul-driven" />+ <meta name="twitter:card" content="summary_large_image" />+ <meta name="twitter:site" content="@mercuryagent" />+ <meta name="twitter:title" content="Mercury Agent v1.1.13 — Chatty Mercury" />+ <meta name="twitter:description" content="Discord · Slack · Signal — three new channels, end-to-end encryption, organization access, and real-time streaming. Plus long-running loop fixes and crash recovery." />+ <meta name="twitter:image" content="https://mercuryagent.sh/img/og/1.1.11.png" />+ <link rel="canonical" href="https://mercuryagent.sh/docs/releases/1.1.13" />+</Head>++# v1.1.13 — Chatty Mercury++> **Mercury gets chatty. Three new channels — Discord, Slack, and Signal — bring Mercury to where you already are.**++`1.1.13` is the communication release. Mercury now speaks six languages: CLI, Web Dashboard, Telegram, **Discord**, **Slack**, and **Signal**. Every new channel has its own access model (pairing codes, admin roles, member approval), streaming responses, and real-time task progress. Signal adds end-to-end encryption for the privacy-first crowd, with Mercury auto-managing the `signal-cli` binary.++Beyond channels, this release fixes the **long-running cycle problem** — the silent task failures that could make Mercury disappear mid-task. The CLI now updates heartbeats **in-place** instead of stacking new messages, step logs collapse to 3 lines (Ctrl+D for full history), and a **crash flag** system means Mercury tells you what happened when it restarts after an ungraceful exit.++> **Why "Chatty Mercury"?** This release triples the number of ways to talk to Mercury. The Mercury planet glyph (☿) has always been the messenger — now the messenger speaks Discord, Slack, and Signal too.++## At a glance++| Area | What changed |+|---|---|+| **Discord** | Full bot integration with slash commands, embeds, streaming, org access, admin roles |+| **Slack** | Socket Mode bot with slash commands, streaming edits, org access, pairing codes |+| **Signal** | E2E encrypted via signal-cli bridge, group + private modes, auto-managed binary |+| **CLI heartbeat** | Updates one message in place instead of stacking — no more wall-of-progress |+| **Step logs** | Collapsed to 3 lines max during tasks; Ctrl+D reveals full history |+| **Silent task failures** | All 12 silent failure paths eliminated — channels always get an error message |+| **Crash recovery** | Crash flag written on ungraceful exit; next startup reports what happened |+| **Daemon shutdown** | Graceful SIGTERM → wait → SIGKILL, plus stale signal-cli cleanup |+| **Ollama Local** | Routed through OpenAI compat to fix AI SDK v1 specification error |+| **ThinkingIndicator** | Shows "Processing" instead of agent name; /bg hint on long operations |++## New Channels++### Discord++Mercury now runs as a full Discord bot with:++- **Slash commands**: `/start`, `/status`, `/progress`, `/permissions`, `/models`, and more+- **Streaming responses**: Messages are edited in place as tokens arrive+- **Rich embeds**: Task progress and completion banners use Discord embeds+- **Organization access**: Admin roles (configurable role name, default "Mercury Admin") and member approval via pairing codes+- **DM + channel support**: Works in both DMs and server channels+- **Guild restriction**: Optionally restrict to a single server+- **Rate limiting**: Built-in busy detection and cooldown for shared servers++Configuration: `DISCORD_ENABLED`, `DISCORD_BOT_TOKEN`, `DISCORD_GUILD_ID`, `DISCORD_CHANNEL_ID`, `DISCORD_ADMIN_ROLE_NAME`, `DISCORD_STREAMING`.++See: [Discord integration docs](/docs/integrations/discord).++### Slack++Mercury connects via **Socket Mode** — no public endpoint or HTTPS certificate needed:++- **Socket Mode**: Connects via WebSocket; works behind NAT and firewalls+- **Slash commands**: `/mercury` command for start, status, help, and more+- **Streaming responses**: Messages edited in place as tokens stream in+- **Organization access**: Admin/member roles with pairing-code onboarding+- **Channel + DM support**: Responds to @mentions in channels and direct messages+- **App mentions**: Natural conversation when mentioned in channels++Configuration: `SLACK_ENABLED`, `SLACK_BOT_TOKEN` (xoxb-), `SLACK_APP_TOKEN` (xapp-), `SLACK_CHANNEL_ID`, `SLACK_TEAM_ID`, `SLACK_STREAMING`.++See: [Slack integration docs](/docs/integrations/slack).++### Signal++Mercury connects through `signal-cli` for **end-to-end encrypted** communication:++- **E2E encryption**: All messages travel through Signal's encryption — Mercury never stores plaintext+- **Group mode (default)**: Mercury listens in a named "Mercury" group+- **Private mode**: 1:1 DM conversations+- **Auto-managed signal-cli**: Mercury downloads, registers, starts, and health-checks `signal-cli` automatically+- **Pairing codes**: New users pair via CLI code — same secure flow as Telegram+- **Phone number redaction**: CLI output always redacts phone numbers+- **Message dedup**: Duplicate messages filtered within a 60-second window++:::warning[Platform requirements]++Signal integration requires:+- **Linux** (x64 or ARM64): Native `signal-cli` binaries available — no Java needed+- **macOS** (Apple Silicon or Intel): Java 17+ required for `signal-cli` JAR+- **Windows**: Not supported — no `signal-cli` binary available+- A real phone number for Signal verification (one-time setup)+- Network access to `https://chat.signal.org` and `https://storage.signal.org`++:::++Configuration: `SIGNAL_ENABLED`, `SIGNAL_PHONE_NUMBER`, `SIGNAL_MODE`, `SIGNAL_GROUP_ID`, `SIGNAL_GROUP_NAME`.++See: [Signal integration docs](/docs/integrations/signal).++## CLI Improvements++### Heartbeat updates in place++Previously, the CLI would send a new "⏳ Working..." message for every heartbeat interval during long-running tasks, creating a wall of progress messages. In `1.1.13`, the CLI **updates the same message in place** — you see a single line that changes, not a stack of duplicates.++Other channels (Telegram, Discord, Slack, Signal) continue to send separate heartbeat messages since they can't update messages the same way.++### Collapsed step logs++During active tasks, step logs now show at most **3 visible steps** (running + last 2 completed). All other steps are collapsed into an "N earlier" summary. Press **Ctrl+D** (or type `/log`) to reveal the full step history.++When a task completes, a single compact summary line replaces the step view: `✓ edit_file (+4) · Ctrl+D for details`.++### Processing indicator++The `ThinkingIndicator` now shows **"Processing"** instead of the agent name, and long operations display a `/bg current` hint so users know they can background the task.++## Long-Running Cycle Fixes++This release eliminates all 12 silent task failure paths. Previously, when Mercury hit a loop condition or task stall, it could silently stop responding — the user would see no feedback at all. Now, every failure path sends an explicit message to the channel:++- **Tool call limit** (25 calls): "Tool call limit reached. Stopping to prevent runaway loop."+- **Identical call loop**: "Mercury Autopilot · Identical call loop — `{tool}` called Nx with same params."+- **Failing loop**: "Mercury Autopilot · Failing loop — `{tool}` called Nx, all failing."+- **Reasoning loop** (thinking without action): "I'm stuck in a reasoning loop. Stopping."+- **Task stall** (no progress for configurable seconds): "Task stalled. Stopped to avoid hanging."++Every `.catch(() => {})` on channel sends has been replaced with `.catch((e) => logger.warn({ e }, 'channel send failed'))` so send failures are also logged rather than silently swallowed.++## Crash Recovery++A new **crash flag** system (`src/core/crash-flag.ts`) writes a JSON file to `~/.mercury/.crash-flag` when Mercury crashes or is killed mid-task. On next startup, Mercury reads the flag, reports what happened to the user, and deletes the flag. This means you'll never again return to Mercury after a crash and find a blank slate with no indication of what went wrong.++The watchdog also writes a crash flag when it hits the max-restart limit, and includes a synchronous `stderr` write as a last-gasp log so the error is visible even if the logger itself is broken.++## Daemon Shutdown Improvements++- **Graceful shutdown**: `stopDaemon` now sends SIGTERM and waits up to 5 seconds for the process to exit. If it doesn't, it escalates to SIGKILL.+- **Stale signal-cli cleanup**: `killStaleSignalCliProcesses()` runs on every daemon stop, cleaning up orphaned signal-cli processes.+- **Async stop**: `stopDaemon` is now async, and `restartDaemon` uses it properly — no more race conditions between stop and start.++## Ollama Local Fix++`ollamaLocal` is now routed through the **OpenAI-compatible provider** instead of `ollama-ai-provider`. The `ollama-ai-provider` package declares `specificationVersion = "v1"`, which is incompatible with AI SDK v6 (which requires v2/v3). Since local Ollama has exposed `/v1/chat/completions` since v0.1.14, the OpenAI compat path works perfectly and avoids the specification mismatch entirely.++This is the same routing pattern already used for `ollamaCloud` and `openaiCompat` — proven and reliable.++## Files changed++### New files+- `src/channels/discord.ts` — Discord channel implementation (1,274 lines)+- `src/channels/signal.ts` — Signal channel implementation (1,034 lines)+- `src/channels/slack.ts` — Slack channel implementation (887 lines)+- `src/signal/binary.ts` — signal-cli binary management (download, verify, register)+- `src/signal/jsonrpc.ts` — JSON-RPC client for signal-cli communication+- `src/signal/process.ts` — signal-cli process lifecycle management+- `src/signal/setup.ts` — Signal registration and configuration flow+- `src/core/crash-flag.ts` — Crash flag system for ungraceful exit recovery+- `src/utils/markdown.ts` — Markdown-to-Discord and Markdown-to-Slack converters+- `src/utils/redact.ts` — Phone number redaction for Signal+- `src/utils/manual.ts` — Channel-specific help text (Discord, Slack)+- `src/utils/discord-access.test.ts` — Discord access model tests+- `src/utils/slack-access.test.ts` — Slack access model tests++### Modified files+- `src/core/agent.ts` — Channel registration for Discord/Slack/Signal; heartbeat in-place for CLI; all 12 silent task failure paths now send error messages; crash flag on task failure+- `src/channels/registry.ts` — Registers Discord, Slack, Signal; notification channel priority: Signal → Telegram → Discord → Slack → CLI+- `src/channels/cli.ts` — `sendHeartbeat()` method for in-place heartbeat updates+- `src/channels/telegram.ts` — Minor send-error logging+- `src/channels/index.ts` — Exports new channels+- `src/types/channel.ts` — New types: `SignalAccessUser`, `SignalPendingRequest`, `DiscordAccessUser`, `DiscordPendingRequest`, `SlackAccessUser`, `SlackPendingRequest`, and channel config interfaces+- `src/utils/config.ts` — Signal/Discord/Slack config sections, access management functions, migration for legacy data+- `src/index.ts` — Signal/Discord/Slack CLI commands (pair, list, approve, reject, remove, promote, demote, reset), onboarding flows, redactPhone import+- `src/cli/daemon.ts` — `killStaleSignalCliProcesses` on stop; async `stopDaemon` with graceful SIGTERM → SIGKILL+- `src/cli/watchdog.ts` — Writes crash flag on max-restart exceeded+- `src/providers/registry.ts` — `ollamaLocal` routed through `OpenAICompatProvider` with `useChatApi: true`+- `src/ui/App.tsx` — Step log collapse to 3 lines; Ctrl+D for `/log`; ThinkingIndicator shows "Processing"; `/bg current` hint on long ops+- `package.json` — Version bumped to 1.1.13; new dependencies: `discord.js`, `@slack/bolt`++No breaking changes. All new channels are **opt-in** — set `DISCORD_ENABLED=true`, `SLACK_ENABLED=true`, or `SIGNAL_ENABLED=true` to activate. Existing configs carry over unchanged.++## Upgrade++**npm:**++```bash+npm install -g @cosmicstack/[email protected]+mercury restart+```++**Standalone (macOS / Linux):**++```bash+curl -fsSL https://mercuryagent.sh/install.sh | bash+mercury restart+```++**Standalone (Windows):**++```powershell+irm https://mercuryagent.sh/install.ps1 | iex+mercury restart+```++No config migrations needed. All new channels are off by default — enable them in `mercury doctor` or `~/.mercury/.env`.++## Standalone binaries++Same five targets as v1.1.12:++| OS | Architecture | Binary |+|---|---|---|+| macOS | Apple Silicon | `mercury-macos-arm64` |+| macOS | Intel | `mercury-macos-x64` |+| Linux | x86-64 | `mercury-linux-x64` |+| Linux | ARM64 | `mercury-linux-arm64` |+| Windows | x86-64 | `mercury-win-x64.exe` |++Direct downloads:++- [mercury-macos-arm64](https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/mercury-macos-arm64)+- [mercury-macos-x64](https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/mercury-macos-x64)+- [mercury-linux-x64](https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/mercury-linux-x64)+- [mercury-linux-arm64](https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/mercury-linux-arm64)+- [mercury-win-x64.exe](https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/mercury-win-x64.exe)+- [checksums.txt](https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/checksums.txt)++**Full changelog:** [v1.1.12 → v1.1.13](https://github.com/cosmicstack-labs/mercury-agent/compare/v1.1.12...v1.1.13)\ No newline at end of filediff --git a/website/docs/releases/releases.mdx b/website/docs/releases/releases.mdxindex 6ab3fe99..5d2078d9 100644--- a/website/docs/releases/releases.mdx+++ b/website/docs/releases/releases.mdx@@ -9,10 +9,11 @@ This section tracks Mercury release notes by version.## Available release notes-- [**v1.1.12 — Daemon Hotfix**](/docs/releases/1.1.12) — Critical fix: standalone binaries can now start in the background, restoring Telegram in daemon mode.+- [**v1.1.13 — Chatty Mercury**](/docs/releases/1.1.13) — Discord, Slack, and Signal channels. Long-running loop fixes. CLI heartbeat in-place. Crash recovery.+- [v1.1.12 — Daemon Hotfix](/docs/releases/1.1.12) — Critical fix: standalone binaries can now start in the background, restoring Telegram in daemon mode.- [v1.1.11 — Skilly Mercury](/docs/releases/1.1.11) — Skill System, Token Saver Mode, standalone binaries on five OS targets, per-step spinners, screenshot skill.- [v1.1.9 — Mercury Web, Kanban & Subconscious Memory](/docs/releases/1.1.9)- [v1.1.7](/docs/releases/1.1.7)- [v1.1.6](/docs/releases/1.1.6)-> `1.1.8` was published briefly then unpublished before wide distribution (dependency-tree bloat). `1.1.10` was skipped to keep numbering aligned across publish channels (npm, GitHub Releases, standalone-binary CDN).+> `1.1.8` was published briefly then unpublished before wide distribution (dependency-tree bloat). `1.1.10` was skipped to keep numbering aligned across publish channels (npm, GitHub Releases, standalone-binary CDN).\ No newline at end of filediff --git a/website/docusaurus.config.ts b/website/docusaurus.config.tsindex 9ac7e0d8..01820626 100644--- a/website/docusaurus.config.ts+++ b/website/docusaurus.config.ts@@ -4,7 +4,7 @@ import type * as Preset from '@docusaurus/preset-classic';const config: Config = {title: 'Mercury Agent — Soul-driven',- tagline: 'Soul-driven AI agent with Second Brain memory, permission-hardened tools, and a Skill System. Runs 24/7 from CLI, Web, or Telegram.',+ tagline: 'Soul-driven AI agent with Second Brain memory, permission-hardened tools, and a Skill System. Runs 24/7 from CLI, Web, Telegram, Discord, Slack, or Signal.',favicon: 'img/favicon.svg',future: {@@ -91,7 +91,7 @@ const config: Config = {},items: [{to: '/docs', label: 'Docs', position: 'left'},- {to: '/docs/releases/1.1.12', label: 'Releases', position: 'left'},+ {to: '/docs/releases/1.1.13', label: 'Releases', position: 'left'},{href: 'https://github.com/cosmicstack-labs/mercury-agent',label: 'GitHub',diff --git a/website/sidebars.ts b/website/sidebars.tsindex a87c46a6..97366811 100644--- a/website/sidebars.ts+++ b/website/sidebars.ts@@ -47,6 +47,9 @@ const sidebars: SidebarsConfig = {'integrations/kanban-boards','integrations/github-companion','integrations/telegram',+ 'integrations/discord',+ 'integrations/slack',+ 'integrations/signal','integrations/spotify','integrations/coding-workspace','integrations/sub-agents',@@ -73,6 +76,7 @@ const sidebars: SidebarsConfig = {collapsed: false,items: ['releases/releases',+ 'releases/1.1.13','releases/1.1.12','releases/1.1.11','releases/1.1.9',diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsxindex 987bcf7a..2c36c380 100644--- a/website/src/pages/index.tsx+++ b/website/src/pages/index.tsx@@ -416,9 +416,9 @@ export default function LandingPage(): React.ReactElement {<><Head><title>Mercury Agent — Soul-driven · Thinks, Acts, and Asks Permission</title>- <meta name="description" content="Mercury Agent — a soul-driven AI agent with Second Brain memory, permission-hardened tools, a full Skill System, Token Saver Mode, and standalone binaries on every major OS. Runs 24/7 from CLI, Web, or Telegram." />+ <meta name="description" content="Mercury Agent — a soul-driven AI agent with Second Brain memory, permission-hardened tools, a full Skill System, Token Saver Mode, and standalone binaries on every major OS. Runs 24/7 from CLI, Web, Telegram, Discord, Slack, or Signal." /><meta property="og:title" content="Mercury Agent — Soul-driven · Thinks, Acts, and Asks Permission" />- <meta property="og:description" content="A soul-driven AI agent with Second Brain memory, a full Skill System, Token Saver Mode, and standalone binaries on every major OS. Runs 24/7 from CLI, Web, or Telegram." />+ <meta property="og:description" content="A soul-driven AI agent with Second Brain memory, a full Skill System, Token Saver Mode, and standalone binaries on every major OS. Runs 24/7 from CLI, Web, Telegram, Discord, Slack, or Signal." /><meta property="og:type" content="website" /><meta property="og:site_name" content="Mercury Agent — Soul-driven" /><meta property="og:url" content="https://mercuryagent.sh" />@@ -426,7 +426,7 @@ export default function LandingPage(): React.ReactElement {<meta name="twitter:card" content="summary_large_image" /><meta name="twitter:site" content="@mercuryagent" /><meta name="twitter:title" content="Mercury Agent — Soul-driven · Thinks, Acts, and Asks Permission" />- <meta name="twitter:description" content="Second Brain memory · Skill System · Token Saver · Standalone binaries · 24/7 from CLI, Web, or Telegram." />+ <meta name="twitter:description" content="Second Brain memory · Skill System · Token Saver · Standalone binaries · 24/7 from CLI, Web, Telegram, Discord, Slack, or Signal." /><meta name="twitter:image" content="https://mercuryagent.sh/img/og/home.png" /><link rel="canonical" href="https://mercuryagent.sh/" /></Head>@@ -466,7 +466,7 @@ export default function LandingPage(): React.ReactElement {<div className="lp-hero-eyebrow" aria-label="Mercury Agent — Soul-driven"><span className="lp-hero-eyebrow-mark">☿</span><span className="lp-hero-eyebrow-text">Mercury Agent · Soul-driven</span>- <span className="lp-hero-eyebrow-badge">v1.1.11 · Skilly Mercury</span>+ <span className="lp-hero-eyebrow-badge">v1.1.13 · Chatty Mercury</span></div><h1 className="lp-hero-title">The AI agent that<br />@@ -475,12 +475,12 @@ export default function LandingPage(): React.ReactElement {<p className="lp-hero-sub">A <strong>soul-driven</strong> agent with Second Brain memory, a full Skill System, Token Saver Mode,multi-agent orchestration, 40+ permission-hardened tools, and standalone binaries on every major OS.- Runs 24/7 from your terminal, browser, or Telegram.+ Runs 24/7 from your terminal, browser, Telegram, Discord, Slack, or Signal.</p><div className="lp-hero-actions"><Link href="#live-demo" className="lp-btn lp-btn-primary">See It Work</Link><Link to="/docs" className="lp-btn lp-btn-secondary">Get Started</Link>- <Link to="/docs/releases/1.1.11" className="lp-btn lp-btn-ghost">What's new in 1.1.11 →</Link>+ <Link to="/docs/releases/1.1.13" className="lp-btn lp-btn-ghost">What's new in 1.1.13 →</Link></div><HeroInstall /></div>@@ -577,10 +577,10 @@ export default function LandingPage(): React.ReactElement {</div></section>- {/* Channels — CLI + Web + Telegram */}+ {/* Channels — CLI + Web + Telegram + Discord + Slack + Signal */}<section id="channels" className="lp-section lp-section-alt"><div className="lp-container">- <h2 className="lp-section-title">Three Channels, One Agent</h2>+ <h2 className="lp-section-title">Six Channels, One Agent</h2><p className="lp-section-sub">Same capabilities. Different interfaces. All real-time.</p><div className="lp-channels-grid lp-reveal"><div className="lp-channel-card">@@ -592,7 +592,7 @@ export default function LandingPage(): React.ReactElement {<li>Ink-based TUI with live progress view</li><li>Slash command autocomplete with arrow navigation</li><li>Workspace IDE mode with file explorer and git panel</li>- <li>Keyboard shortcuts: Ctrl+B (background), Ctrl+T (view), Ctrl+P (plan)</li>+ <li>Keyboard shortcuts: Ctrl+B (background), Ctrl+D (log), Ctrl+P (plan)</li><li>Multi-line input, input history, streaming output</li><li>Interactive Spotify player with seek and volume</li></ul>@@ -625,6 +625,48 @@ export default function LandingPage(): React.ReactElement {<li>Organization access model with admin/member roles</li></ul></div>+ <div className="lp-channel-card">+ <div className="lp-channel-header">+ <span className="lp-channel-icon">🎮</span>+ <h3>Discord</h3>+ </div>+ <ul>+ <li>Full bot integration with slash commands</li>+ <li>Channel-scoped or DM conversations</li>+ <li>Organization access with admin roles and pairing codes</li>+ <li>Streaming responses with in-place edits</li>+ <li>Embeds for rich task progress and completion banners</li>+ <li>Rate-limiting and busy detection for shared servers</li>+ </ul>+ </div>+ <div className="lp-channel-card">+ <div className="lp-channel-header">+ <span className="lp-channel-icon">#</span>+ <h3>Slack</h3>+ </div>+ <ul>+ <li>Socket Mode bot — no public endpoint needed</li>+ <li>Channel and DM support with thread awareness</li>+ <li>Organization access with admin/member roles</li>+ <li>Streaming responses via message edits</li>+ <li>Slash command /mercury for quick interactions</li>+ <li>App mentions and message events for natural conversation</li>+ </ul>+ </div>+ <div className="lp-channel-card">+ <div className="lp-channel-header">+ <span className="lp-channel-icon">🔒</span>+ <h3>Signal</h3>+ </div>+ <ul>+ <li>End-to-end encrypted via signal-cli bridge</li>+ <li>Group mode (Mercury group) or private DM mode</li>+ <li>Pairing code flow for secure onboarding</li>+ <li>Auto-managed signal-cli binary (download + register)</li>+ <li>Rate-limiting and dedup for reliable message handling</li>+ <li>Runs on Linux and macOS (arm64 / x64)</li>+ </ul>+ </div></div></div></section>