Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["6139"],{96082(e,n,s){s.r(n),s.d(n,{metadata:()=>r,default:()=>x,frontMatter:()=>a,contentTitle:()=>t,toc:()=>o,assets:()=>d});var r=JSON.parse('{"id":"releases/1.1.13","title":"v1.1.13 \u2014 Chatty Mercury","description":"Mercury gets chatty. Three new channels \u2014 Discord, Slack, and Signal \u2014 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.","source":"@site/docs/releases/1.1.13.mdx","sourceDirName":"releases","slug":"/releases/1.1.13","permalink":"/docs/releases/1.1.13","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/releases/1.1.13.mdx","tags":[],"version":"current","frontMatter":{"title":"v1.1.13 \u2014 Chatty Mercury","sidebar_label":"v1.1.13","description":"Mercury gets chatty. Three new channels \u2014 Discord, Slack, and Signal \u2014 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"]},"sidebar":"docsSidebar","previous":{"title":"v1.2.0","permalink":"/docs/releases/1.2.0"},"next":{"title":"v1.1.12","permalink":"/docs/releases/1.1.12"}}'),i=s(74848),l=s(28453),c=s(53572);let a={title:"v1.1.13 \u2014 Chatty Mercury",sidebar_label:"v1.1.13",description:"Mercury gets chatty. Three new channels \u2014 Discord, Slack, and Signal \u2014 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"]},t="v1.1.13 \u2014 Chatty Mercury",d={},o=[{value:"At a glance",id:"at-a-glance",level:2},{value:"New Channels",id:"new-channels",level:2},{value:"Discord",id:"discord",level:3},{value:"Slack",id:"slack",level:3},{value:"Signal",id:"signal",level:3},{value:"CLI Improvements",id:"cli-improvements",level:2},{value:"Heartbeat updates in place",id:"heartbeat-updates-in-place",level:3},{value:"Collapsed step logs",id:"collapsed-step-logs",level:3},{value:"Processing indicator",id:"processing-indicator",level:3},{value:"Long-Running Cycle Fixes",id:"long-running-cycle-fixes",level:2},{value:"Crash Recovery",id:"crash-recovery",level:2},{value:"Daemon Shutdown Improvements",id:"daemon-shutdown-improvements",level:2},{value:"Ollama Local Fix",id:"ollama-local-fix",level:2},{value:"Files changed",id:"files-changed",level:2},{value:"New files",id:"new-files",level:3},{value:"Modified files",id:"modified-files",level:3},{value:"Upgrade",id:"upgrade",level:2},{value:"Standalone binaries",id:"standalone-binaries",level:2}];function h(e){let n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,l.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.A,{children:[(0,i.jsx)("meta",{property:"og:title",content:"Mercury Agent v1.1.13 \u2014 Chatty Mercury"}),(0,i.jsx)("meta",{property:"og:description",content:"Three new channels \u2014 Discord, Slack, and Signal \u2014 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."}),(0,i.jsx)("meta",{property:"og:type",content:"article"}),(0,i.jsx)("meta",{property:"og:url",content:"https://mercuryagent.sh/docs/releases/1.1.13"}),(0,i.jsx)("meta",{property:"og:image",content:"https://mercuryagent.sh/img/og/1.1.11.png"}),(0,i.jsx)("meta",{property:"og:site_name",content:"Mercury Agent \u2014 Soul-driven"}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:site",content:"@mercuryagent"}),(0,i.jsx)("meta",{name:"twitter:title",content:"Mercury Agent v1.1.13 \u2014 Chatty Mercury"}),(0,i.jsx)("meta",{name:"twitter:description",content:"Discord \xb7 Slack \xb7 Signal \u2014 three new channels, end-to-end encryption, organization access, and real-time streaming. Plus long-running loop fixes and crash recovery."}),(0,i.jsx)("meta",{name:"twitter:image",content:"https://mercuryagent.sh/img/og/1.1.11.png"}),(0,i.jsx)("link",{rel:"canonical",href:"https://mercuryagent.sh/docs/releases/1.1.13"})]}),"\n",(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"v1113--chatty-mercury",children:"v1.1.13 \u2014 Chatty Mercury"})}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.strong,{children:"Mercury gets chatty. Three new channels \u2014 Discord, Slack, and Signal \u2014 bring Mercury to where you already are."})}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"1.1.13"})," is the communication release. Mercury now speaks six languages: CLI, Web Dashboard, Telegram, ",(0,i.jsx)(n.strong,{children:"Discord"}),", ",(0,i.jsx)(n.strong,{children:"Slack"}),", and ",(0,i.jsx)(n.strong,{children:"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 ",(0,i.jsx)(n.code,{children:"signal-cli"})," binary."]}),"\n",(0,i.jsxs)(n.p,{children:["Beyond channels, this release fixes the ",(0,i.jsx)(n.strong,{children:"long-running cycle problem"})," \u2014 the silent task failures that could make Mercury disappear mid-task. The CLI now updates heartbeats ",(0,i.jsx)(n.strong,{children:"in-place"})," instead of stacking new messages, step logs collapse to 3 lines (Ctrl+D for full history), and a ",(0,i.jsx)(n.strong,{children:"crash flag"})," system means Mercury tells you what happened when it restarts after an ungraceful exit."]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:'Why "Chatty Mercury"?'})," This release triples the number of ways to talk to Mercury. The Mercury planet glyph (\u263F) has always been the messenger \u2014 now the messenger speaks Discord, Slack, and Signal too."]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"at-a-glance",children:"At a glance"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Area"}),(0,i.jsx)(n.th,{children:"What changed"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Discord"})}),(0,i.jsx)(n.td,{children:"Full bot integration with slash commands, embeds, streaming, org access, admin roles"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Slack"})}),(0,i.jsx)(n.td,{children:"Socket Mode bot with slash commands, streaming edits, org access, pairing codes"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Signal"})}),(0,i.jsx)(n.td,{children:"E2E encrypted via signal-cli bridge, group + private modes, auto-managed binary"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"CLI heartbeat"})}),(0,i.jsx)(n.td,{children:"Updates one message in place instead of stacking \u2014 no more wall-of-progress"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Step logs"})}),(0,i.jsx)(n.td,{children:"Collapsed to 3 lines max during tasks; Ctrl+D reveals full history"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Silent task failures"})}),(0,i.jsx)(n.td,{children:"All 12 silent failure paths eliminated \u2014 channels always get an error message"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Crash recovery"})}),(0,i.jsx)(n.td,{children:"Crash flag written on ungraceful exit; next startup reports what happened"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Daemon shutdown"})}),(0,i.jsx)(n.td,{children:"Graceful SIGTERM \u2192 wait \u2192 SIGKILL, plus stale signal-cli cleanup"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Ollama Local"})}),(0,i.jsx)(n.td,{children:"Routed through OpenAI compat to fix AI SDK v1 specification error"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"ThinkingIndicator"})}),(0,i.jsx)(n.td,{children:'Shows "Processing" instead of agent name; /bg hint on long operations'})]})]})]}),"\n",(0,i.jsx)(n.h2,{id:"new-channels",children:"New Channels"}),"\n",(0,i.jsx)(n.h3,{id:"discord",children:"Discord"}),"\n",(0,i.jsx)(n.p,{children:"Mercury now runs as a full Discord bot with:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Slash commands"}),": ",(0,i.jsx)(n.code,{children:"/start"}),", ",(0,i.jsx)(n.code,{children:"/status"}),", ",(0,i.jsx)(n.code,{children:"/progress"}),", ",(0,i.jsx)(n.code,{children:"/permissions"}),", ",(0,i.jsx)(n.code,{children:"/models"}),", and more"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Streaming responses"}),": Messages are edited in place as tokens arrive"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Rich embeds"}),": Task progress and completion banners use Discord embeds"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Organization access"}),': Admin roles (configurable role name, default "Mercury Admin") and member approval via pairing codes']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"DM + channel support"}),": Works in both DMs and server channels"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Guild restriction"}),": Optionally restrict to a single server"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Rate limiting"}),": Built-in busy detection and cooldown for shared servers"]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Configuration: ",(0,i.jsx)(n.code,{children:"DISCORD_ENABLED"}),", ",(0,i.jsx)(n.code,{children:"DISCORD_BOT_TOKEN"}),", ",(0,i.jsx)(n.code,{children:"DISCORD_GUILD_ID"}),", ",(0,i.jsx)(n.code,{children:"DISCORD_CHANNEL_ID"}),", ",(0,i.jsx)(n.code,{children:"DISCORD_ADMIN_ROLE_NAME"}),", ",(0,i.jsx)(n.code,{children:"DISCORD_STREAMING"}),"."]}),"\n",(0,i.jsxs)(n.p,{children:["See: ",(0,i.jsx)(n.a,{href:"/docs/integrations/discord",children:"Discord integration docs"}),"."]}),"\n",(0,i.jsx)(n.h3,{id:"slack",children:"Slack"}),"\n",(0,i.jsxs)(n.p,{children:["Mercury connects via ",(0,i.jsx)(n.strong,{children:"Socket Mode"})," \u2014 no public endpoint or HTTPS certificate needed:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Socket Mode"}),": Connects via WebSocket; works behind NAT and firewalls"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Slash commands"}),": ",(0,i.jsx)(n.code,{children:"/mercury"})," command for start, status, help, and more"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Streaming responses"}),": Messages edited in place as tokens stream in"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Organization access"}),": Admin/member roles with pairing-code onboarding"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Channel + DM support"}),": Responds to @mentions in channels and direct messages"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"App mentions"}),": Natural conversation when mentioned in channels"]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Configuration: ",(0,i.jsx)(n.code,{children:"SLACK_ENABLED"}),", ",(0,i.jsx)(n.code,{children:"SLACK_BOT_TOKEN"})," (xoxb-), ",(0,i.jsx)(n.code,{children:"SLACK_APP_TOKEN"})," (xapp-), ",(0,i.jsx)(n.code,{children:"SLACK_CHANNEL_ID"}),", ",(0,i.jsx)(n.code,{children:"SLACK_TEAM_ID"}),", ",(0,i.jsx)(n.code,{children:"SLACK_STREAMING"}),"."]}),"\n",(0,i.jsxs)(n.p,{children:["See: ",(0,i.jsx)(n.a,{href:"/docs/integrations/slack",children:"Slack integration docs"}),"."]}),"\n",(0,i.jsx)(n.h3,{id:"signal",children:"Signal"}),"\n",(0,i.jsxs)(n.p,{children:["Mercury connects through ",(0,i.jsx)(n.code,{children:"signal-cli"})," for ",(0,i.jsx)(n.strong,{children:"end-to-end encrypted"})," communication:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"E2E encryption"}),": All messages travel through Signal's encryption \u2014 Mercury never stores plaintext"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Group mode (default)"}),': Mercury listens in a named "Mercury" group']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Private mode"}),": 1:1 DM conversations"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Auto-managed signal-cli"}),": Mercury downloads, registers, starts, and health-checks ",(0,i.jsx)(n.code,{children:"signal-cli"})," automatically"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Pairing codes"}),": New users pair via CLI code \u2014 same secure flow as Telegram"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Phone number redaction"}),": CLI output always redacts phone numbers"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Message dedup"}),": Duplicate messages filtered within a 60-second window"]}),"\n"]}),"\n",(0,i.jsxs)(n.admonition,{title:"Platform requirements",type:"warning",children:[(0,i.jsx)(n.p,{children:"Signal integration requires:"}),(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Linux"})," (x64 or ARM64): Native ",(0,i.jsx)(n.code,{children:"signal-cli"})," binaries available \u2014 no Java needed"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"macOS"})," (Apple Silicon or Intel): Java 17+ required for ",(0,i.jsx)(n.code,{children:"signal-cli"})," JAR"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Windows"}),": Not supported \u2014 no ",(0,i.jsx)(n.code,{children:"signal-cli"})," binary available"]}),"\n",(0,i.jsx)(n.li,{children:"A real phone number for Signal verification (one-time setup)"}),"\n",(0,i.jsxs)(n.li,{children:["Network access to ",(0,i.jsx)(n.code,{children:"https://chat.signal.org"})," and ",(0,i.jsx)(n.code,{children:"https://storage.signal.org"})]}),"\n"]})]}),"\n",(0,i.jsxs)(n.p,{children:["Configuration: ",(0,i.jsx)(n.code,{children:"SIGNAL_ENABLED"}),", ",(0,i.jsx)(n.code,{children:"SIGNAL_PHONE_NUMBER"}),", ",(0,i.jsx)(n.code,{children:"SIGNAL_MODE"}),", ",(0,i.jsx)(n.code,{children:"SIGNAL_GROUP_ID"}),", ",(0,i.jsx)(n.code,{children:"SIGNAL_GROUP_NAME"}),"."]}),"\n",(0,i.jsxs)(n.p,{children:["See: ",(0,i.jsx)(n.a,{href:"/docs/integrations/signal",children:"Signal integration docs"}),"."]}),"\n",(0,i.jsx)(n.h2,{id:"cli-improvements",children:"CLI Improvements"}),"\n",(0,i.jsx)(n.h3,{id:"heartbeat-updates-in-place",children:"Heartbeat updates in place"}),"\n",(0,i.jsxs)(n.p,{children:['Previously, the CLI would send a new "\u23F3 Working..." message for every heartbeat interval during long-running tasks, creating a wall of progress messages. In ',(0,i.jsx)(n.code,{children:"1.1.13"}),", the CLI ",(0,i.jsx)(n.strong,{children:"updates the same message in place"})," \u2014 you see a single line that changes, not a stack of duplicates."]}),"\n",(0,i.jsx)(n.p,{children:"Other channels (Telegram, Discord, Slack, Signal) continue to send separate heartbeat messages since they can't update messages the same way."}),"\n",(0,i.jsx)(n.h3,{id:"collapsed-step-logs",children:"Collapsed step logs"}),"\n",(0,i.jsxs)(n.p,{children:["During active tasks, step logs now show at most ",(0,i.jsx)(n.strong,{children:"3 visible steps"}),' (running + last 2 completed). All other steps are collapsed into an "N earlier" summary. Press ',(0,i.jsx)(n.strong,{children:"Ctrl+D"})," (or type ",(0,i.jsx)(n.code,{children:"/log"}),") to reveal the full step history."]}),"\n",(0,i.jsxs)(n.p,{children:["When a task completes, a single compact summary line replaces the step view: ",(0,i.jsx)(n.code,{children:"\u2713 edit_file (+4) \xb7 Ctrl+D for details"}),"."]}),"\n",(0,i.jsx)(n.h3,{id:"processing-indicator",children:"Processing indicator"}),"\n",(0,i.jsxs)(n.p,{children:["The ",(0,i.jsx)(n.code,{children:"ThinkingIndicator"})," now shows ",(0,i.jsx)(n.strong,{children:'"Processing"'})," instead of the agent name, and long operations display a ",(0,i.jsx)(n.code,{children:"/bg current"})," hint so users know they can background the task."]}),"\n",(0,i.jsx)(n.h2,{id:"long-running-cycle-fixes",children:"Long-Running Cycle Fixes"}),"\n",(0,i.jsx)(n.p,{children:"This release eliminates all 12 silent task failure paths. Previously, when Mercury hit a loop condition or task stall, it could silently stop responding \u2014 the user would see no feedback at all. Now, every failure path sends an explicit message to the channel:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Tool call limit"}),' (25 calls): "Tool call limit reached. Stopping to prevent runaway loop."']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Identical call loop"}),': "Mercury Autopilot \xb7 Identical call loop \u2014 ',(0,i.jsx)(n.code,{children:"{tool}"}),' called Nx with same params."']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Failing loop"}),': "Mercury Autopilot \xb7 Failing loop \u2014 ',(0,i.jsx)(n.code,{children:"{tool}"}),' called Nx, all failing."']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Reasoning loop"}),' (thinking without action): "I\'m stuck in a reasoning loop. Stopping."']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Task stall"}),' (no progress for configurable seconds): "Task stalled. Stopped to avoid hanging."']}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Every ",(0,i.jsx)(n.code,{children:".catch(() => {})"})," on channel sends has been replaced with ",(0,i.jsx)(n.code,{children:".catch((e) => logger.warn({ e }, 'channel send failed'))"})," so send failures are also logged rather than silently swallowed."]}),"\n",(0,i.jsx)(n.h2,{id:"crash-recovery",children:"Crash Recovery"}),"\n",(0,i.jsxs)(n.p,{children:["A new ",(0,i.jsx)(n.strong,{children:"crash flag"})," system (",(0,i.jsx)(n.code,{children:"src/core/crash-flag.ts"}),") writes a JSON file to ",(0,i.jsx)(n.code,{children:"~/.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."]}),"\n",(0,i.jsxs)(n.p,{children:["The watchdog also writes a crash flag when it hits the max-restart limit, and includes a synchronous ",(0,i.jsx)(n.code,{children:"stderr"})," write as a last-gasp log so the error is visible even if the logger itself is broken."]}),"\n",(0,i.jsx)(n.h2,{id:"daemon-shutdown-improvements",children:"Daemon Shutdown Improvements"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Graceful shutdown"}),": ",(0,i.jsx)(n.code,{children:"stopDaemon"})," now sends SIGTERM and waits up to 5 seconds for the process to exit. If it doesn't, it escalates to SIGKILL."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Stale signal-cli cleanup"}),": ",(0,i.jsx)(n.code,{children:"killStaleSignalCliProcesses()"})," runs on every daemon stop, cleaning up orphaned signal-cli processes."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Async stop"}),": ",(0,i.jsx)(n.code,{children:"stopDaemon"})," is now async, and ",(0,i.jsx)(n.code,{children:"restartDaemon"})," uses it properly \u2014 no more race conditions between stop and start."]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"ollama-local-fix",children:"Ollama Local Fix"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"ollamaLocal"})," is now routed through the ",(0,i.jsx)(n.strong,{children:"OpenAI-compatible provider"})," instead of ",(0,i.jsx)(n.code,{children:"ollama-ai-provider"}),". The ",(0,i.jsx)(n.code,{children:"ollama-ai-provider"})," package declares ",(0,i.jsx)(n.code,{children:'specificationVersion = "v1"'}),", which is incompatible with AI SDK v6 (which requires v2/v3). Since local Ollama has exposed ",(0,i.jsx)(n.code,{children:"/v1/chat/completions"})," since v0.1.14, the OpenAI compat path works perfectly and avoids the specification mismatch entirely."]}),"\n",(0,i.jsxs)(n.p,{children:["This is the same routing pattern already used for ",(0,i.jsx)(n.code,{children:"ollamaCloud"})," and ",(0,i.jsx)(n.code,{children:"openaiCompat"})," \u2014 proven and reliable."]}),"\n",(0,i.jsx)(n.h2,{id:"files-changed",children:"Files changed"}),"\n",(0,i.jsx)(n.h3,{id:"new-files",children:"New files"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/channels/discord.ts"})," \u2014 Discord channel implementation (1,274 lines)"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/channels/signal.ts"})," \u2014 Signal channel implementation (1,034 lines)"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/channels/slack.ts"})," \u2014 Slack channel implementation (887 lines)"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/signal/binary.ts"})," \u2014 signal-cli binary management (download, verify, register)"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/signal/jsonrpc.ts"})," \u2014 JSON-RPC client for signal-cli communication"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/signal/process.ts"})," \u2014 signal-cli process lifecycle management"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/signal/setup.ts"})," \u2014 Signal registration and configuration flow"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/core/crash-flag.ts"})," \u2014 Crash flag system for ungraceful exit recovery"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/utils/markdown.ts"})," \u2014 Markdown-to-Discord and Markdown-to-Slack converters"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/utils/redact.ts"})," \u2014 Phone number redaction for Signal"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/utils/manual.ts"})," \u2014 Channel-specific help text (Discord, Slack)"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/utils/discord-access.test.ts"})," \u2014 Discord access model tests"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/utils/slack-access.test.ts"})," \u2014 Slack access model tests"]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"modified-files",children:"Modified files"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/core/agent.ts"})," \u2014 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"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/channels/registry.ts"})," \u2014 Registers Discord, Slack, Signal; notification channel priority: Signal \u2192 Telegram \u2192 Discord \u2192 Slack \u2192 CLI"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/channels/cli.ts"})," \u2014 ",(0,i.jsx)(n.code,{children:"sendHeartbeat()"})," method for in-place heartbeat updates"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/channels/telegram.ts"})," \u2014 Minor send-error logging"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/channels/index.ts"})," \u2014 Exports new channels"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/types/channel.ts"})," \u2014 New types: ",(0,i.jsx)(n.code,{children:"SignalAccessUser"}),", ",(0,i.jsx)(n.code,{children:"SignalPendingRequest"}),", ",(0,i.jsx)(n.code,{children:"DiscordAccessUser"}),", ",(0,i.jsx)(n.code,{children:"DiscordPendingRequest"}),", ",(0,i.jsx)(n.code,{children:"SlackAccessUser"}),", ",(0,i.jsx)(n.code,{children:"SlackPendingRequest"}),", and channel config interfaces"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/utils/config.ts"})," \u2014 Signal/Discord/Slack config sections, access management functions, migration for legacy data"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/index.ts"})," \u2014 Signal/Discord/Slack CLI commands (pair, list, approve, reject, remove, promote, demote, reset), onboarding flows, redactPhone import"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/cli/daemon.ts"})," \u2014 ",(0,i.jsx)(n.code,{children:"killStaleSignalCliProcesses"})," on stop; async ",(0,i.jsx)(n.code,{children:"stopDaemon"})," with graceful SIGTERM \u2192 SIGKILL"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/cli/watchdog.ts"})," \u2014 Writes crash flag on max-restart exceeded"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/providers/registry.ts"})," \u2014 ",(0,i.jsx)(n.code,{children:"ollamaLocal"})," routed through ",(0,i.jsx)(n.code,{children:"OpenAICompatProvider"})," with ",(0,i.jsx)(n.code,{children:"useChatApi: true"})]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"src/ui/App.tsx"})," \u2014 Step log collapse to 3 lines; Ctrl+D for ",(0,i.jsx)(n.code,{children:"/log"}),'; ThinkingIndicator shows "Processing"; ',(0,i.jsx)(n.code,{children:"/bg current"})," hint on long ops"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"package.json"})," \u2014 Version bumped to 1.1.13; new dependencies: ",(0,i.jsx)(n.code,{children:"discord.js"}),", ",(0,i.jsx)(n.code,{children:"@slack/bolt"})]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["No breaking changes. All new channels are ",(0,i.jsx)(n.strong,{children:"opt-in"})," \u2014 set ",(0,i.jsx)(n.code,{children:"DISCORD_ENABLED=true"}),", ",(0,i.jsx)(n.code,{children:"SLACK_ENABLED=true"}),", or ",(0,i.jsx)(n.code,{children:"SIGNAL_ENABLED=true"})," to activate. Existing configs carry over unchanged."]}),"\n",(0,i.jsx)(n.h2,{id:"upgrade",children:"Upgrade"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.strong,{children:"npm:"})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"npm install -g @cosmicstack/[email protected]\nmercury restart\n"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.strong,{children:"Standalone (macOS / Linux):"})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"curl -fsSL https://mercuryagent.sh/install.sh | bash\nmercury restart\n"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.strong,{children:"Standalone (Windows):"})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"irm https://mercuryagent.sh/install.ps1 | iex\nmercury restart\n"})}),"\n",(0,i.jsxs)(n.p,{children:["No config migrations needed. All new channels are off by default \u2014 enable them in ",(0,i.jsx)(n.code,{children:"mercury doctor"})," or ",(0,i.jsx)(n.code,{children:"~/.mercury/.env"}),"."]}),"\n",(0,i.jsx)(n.h2,{id:"standalone-binaries",children:"Standalone binaries"}),"\n",(0,i.jsx)(n.p,{children:"Same five targets as v1.1.12:"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"OS"}),(0,i.jsx)(n.th,{children:"Architecture"}),(0,i.jsx)(n.th,{children:"Binary"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"macOS"}),(0,i.jsx)(n.td,{children:"Apple Silicon"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"mercury-macos-arm64"})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"macOS"}),(0,i.jsx)(n.td,{children:"Intel"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"mercury-macos-x64"})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Linux"}),(0,i.jsx)(n.td,{children:"x86-64"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"mercury-linux-x64"})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Linux"}),(0,i.jsx)(n.td,{children:"ARM64"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"mercury-linux-arm64"})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Windows"}),(0,i.jsx)(n.td,{children:"x86-64"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"mercury-win-x64.exe"})})]})]})]}),"\n",(0,i.jsx)(n.p,{children:"Direct downloads:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/mercury-macos-arm64",children:"mercury-macos-arm64"})}),"\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/mercury-macos-x64",children:"mercury-macos-x64"})}),"\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/mercury-linux-x64",children:"mercury-linux-x64"})}),"\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/mercury-linux-arm64",children:"mercury-linux-arm64"})}),"\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/mercury-win-x64.exe",children:"mercury-win-x64.exe"})}),"\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.1.13/checksums.txt",children:"checksums.txt"})}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Full changelog:"})," ",(0,i.jsx)(n.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/compare/v1.1.12...v1.1.13",children:"v1.1.12 \u2192 v1.1.13"})]})]})}function x(e={}){let{wrapper:n}={...(0,l.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},28453(e,n,s){s.d(n,{R:()=>c,x:()=>a});var r=s(96540);let i={},l=r.createContext(i);function c(e){let n=r.useContext(l);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),r.createElement(l.Provider,{value:n},e.children)}}}]);