Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

26.1 KB
Raw Blame
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["5514"],{37598(e,r,n){n.r(r),n.d(r,{metadata:()=>s,default:()=>u,frontMatter:()=>d,contentTitle:()=>l,toc:()=>a,assets:()=>o});var s=JSON.parse('{"id":"releases/1.2.0","title":"v1.2.0 \u2014 Cloudy Mercury","description":"Mercury meets the cloud. Terminal pairing, JWT auth with self-recovery, Cloud WebSocket for real-time remote control, shared memory pool search, and cross-platform fixes for Windows and Termux. Patch set 1.2.0 \u2192 1.2.1 \u2192 1.2.2.","source":"@site/docs/releases/1.2.0.mdx","sourceDirName":"releases","slug":"/releases/1.2.0","permalink":"/docs/releases/1.2.0","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/releases/1.2.0.mdx","tags":[],"version":"current","frontMatter":{"title":"v1.2.0 \u2014 Cloudy Mercury","sidebar_label":"v1.2.0","description":"Mercury meets the cloud. Terminal pairing, JWT auth with self-recovery, Cloud WebSocket for real-time remote control, shared memory pool search, and cross-platform fixes for Windows and Termux. Patch set 1.2.0 \u2192 1.2.1 \u2192 1.2.2.","image":"/img/og/1.1.11.png","keywords":["mercury","mercury-agent","cloudy-mercury","mercury-cloud","pairing","websocket","shared-memory","release","1.2.0","1.2.1","1.2.2"]},"sidebar":"docsSidebar","previous":{"title":"v1.2.3","permalink":"/docs/releases/1.2.3"},"next":{"title":"v1.1.13","permalink":"/docs/releases/1.1.13"}}'),i=n(74848),t=n(28453),c=n(53572);let d={title:"v1.2.0 \u2014 Cloudy Mercury",sidebar_label:"v1.2.0",description:"Mercury meets the cloud. Terminal pairing, JWT auth with self-recovery, Cloud WebSocket for real-time remote control, shared memory pool search, and cross-platform fixes for Windows and Termux. Patch set 1.2.0 \u2192 1.2.1 \u2192 1.2.2.",image:"/img/og/1.1.11.png",keywords:["mercury","mercury-agent","cloudy-mercury","mercury-cloud","pairing","websocket","shared-memory","release","1.2.0","1.2.1","1.2.2"]},l="v1.2.0 \u2014 Cloudy Mercury",o={},a=[{value:"At a glance",id:"at-a-glance",level:2},{value:"Mercury Cloud",id:"mercury-cloud",level:2},{value:"Terminal pairing",id:"terminal-pairing",level:3},{value:"Authentication & self-recovery",id:"authentication--self-recovery",level:3},{value:"Cloud WebSocket",id:"cloud-websocket",level:3},{value:"Shared memory pool",id:"shared-memory-pool",level:3},{value:"Remote dashboard",id:"remote-dashboard",level:3},{value:"Runtime activation",id:"runtime-activation",level:2},{value:"Provider integration",id:"provider-integration",level:2},{value:"Cross-platform fixes",id:"cross-platform-fixes",level:2},{value:"v1.2.1 \u2014 Runtime activation hardening",id:"v121--runtime-activation-hardening",level:3},{value:"v1.2.2 \u2014 Windows, Termux, and packaging",id:"v122--windows-termux-and-packaging",level:3},{value:"CLI commands",id:"cli-commands",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:"Patch history",id:"patch-history",level:2},{value:"Upgrade",id:"upgrade",level:2},{value:"Standalone binaries",id:"standalone-binaries",level:2}];function h(e){let r={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,t.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.2.0 \u2014 Cloudy Mercury"}),(0,i.jsx)("meta",{property:"og:description",content:"Mercury meets the cloud. Terminal pairing, JWT auth with self-recovery, Cloud WebSocket, shared memory pool search, and cross-platform fixes for Windows and Termux."}),(0,i.jsx)("meta",{property:"og:type",content:"article"}),(0,i.jsx)("meta",{property:"og:url",content:"https://mercuryagent.sh/docs/releases/1.2.0"}),(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.2.0 \u2014 Cloudy Mercury"}),(0,i.jsx)("meta",{name:"twitter:description",content:"Mercury Cloud \u2014 terminal pairing, JWT auth, Cloud WebSocket, shared memory pool, and cross-platform fixes."}),(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.2.0"})]}),"\n",(0,i.jsx)(r.header,{children:(0,i.jsx)(r.h1,{id:"v120--cloudy-mercury",children:"v1.2.0 \u2014 Cloudy Mercury"})}),"\n",(0,i.jsxs)(r.blockquote,{children:["\n",(0,i.jsxs)(r.p,{children:[(0,i.jsx)(r.strong,{children:"Mercury meets the cloud."})," Pair from the terminal, authenticate with auto-rotating JWTs, stay online over a Cloud WebSocket, and search a shared memory pool across all your agents."]}),"\n"]}),"\n",(0,i.jsxs)(r.p,{children:[(0,i.jsx)(r.code,{children:"1.2.0"})," is the cloud release. ",(0,i.jsx)(r.strong,{children:"Mercury Cloud"})," is a hosted backend that turns a local Mercury install into a remotely managed, always-on agent \u2014 no port forwarding, no reverse proxy, no manual certificate management. Pair once from the terminal, and Mercury maintains a persistent WebSocket to the cloud, relaying commands, streaming responses, and syncing memory in real time."]}),"\n",(0,i.jsxs)(r.p,{children:["This release ships as a ",(0,i.jsx)(r.strong,{children:"patch set"}),": ",(0,i.jsx)(r.code,{children:"1.2.0"})," (the launch), ",(0,i.jsx)(r.code,{children:"1.2.1"})," (runtime activation hardening), and ",(0,i.jsx)(r.code,{children:"1.2.2"})," (cross-platform CI and packaging fixes). All three are covered on this page."]}),"\n",(0,i.jsxs)(r.blockquote,{children:["\n",(0,i.jsxs)(r.p,{children:[(0,i.jsx)(r.strong,{children:'Why "Cloudy Mercury"?'})," The Mercury planet (\u263F) has always been the messenger. Cloudy Mercury gives that messenger a cloud \u2014 a persistent connection that keeps it reachable, synced, and self-healing even when your terminal is closed."]}),"\n"]}),"\n",(0,i.jsx)(r.h2,{id:"at-a-glance",children:"At a glance"}),"\n",(0,i.jsxs)(r.table,{children:[(0,i.jsx)(r.thead,{children:(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.th,{children:"Area"}),(0,i.jsx)(r.th,{children:"What changed"})]})}),(0,i.jsxs)(r.tbody,{children:[(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"Mercury Cloud"})}),(0,i.jsx)(r.td,{children:"Hosted backend with terminal pairing, JWT + refresh token auth, long-lived agent API key, Cloud WebSocket, and remote dashboard"})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"Pairing flow"})}),(0,i.jsxs)(r.td,{children:[(0,i.jsx)(r.code,{children:"mercury cloud connect"})," opens a browser-based pairing URL; poll-based completion with structured failure codes"]})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"Auth & recovery"})}),(0,i.jsx)(r.td,{children:"Auto-rotating JWTs via single-use refresh tokens; long-lived agent API key for headless self-recovery without re-pairing"})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"Cloud WebSocket"})}),(0,i.jsx)(r.td,{children:"Persistent WSS connection with 30s heartbeat, exponential reconnect, and real-time message relay"})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"Runtime activation"})}),(0,i.jsxs)(r.td,{children:[(0,i.jsx)(r.code,{children:"activateCloudRuntime"})," guards foreground/daemon state, waits for WebSocket online, and propagates failures"]})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"Shared memory pool"})}),(0,i.jsxs)(r.td,{children:[(0,i.jsx)(r.code,{children:"searchPool()"})," fetches cross-agent context from the cloud, cached in SQLite for 5 minutes per query"]})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"Token store"})}),(0,i.jsx)(r.td,{children:"Shared in-memory token store keeps the WS client and provider in sync during rotation"})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"Termux (Android)"})}),(0,i.jsxs)(r.td,{children:[(0,i.jsx)(r.code,{children:"better-sqlite3"})," is now optional \u2014 ",(0,i.jsx)(r.code,{children:"--help"})," and ",(0,i.jsx)(r.code,{children:"--version"})," work without the native addon"]})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"Windows"})}),(0,i.jsxs)(r.td,{children:["File-mode and posix-path fixes for ",(0,i.jsx)(r.code,{children:"work-ledger"})," and ",(0,i.jsx)(r.code,{children:"platform.ts"})]})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"Provider"})}),(0,i.jsx)(r.td,{children:"Mercury Cloud is a first-class provider with model selection at pairing time"})]})]})]}),"\n",(0,i.jsx)(r.h2,{id:"mercury-cloud",children:"Mercury Cloud"}),"\n",(0,i.jsx)(r.h3,{id:"terminal-pairing",children:"Terminal pairing"}),"\n",(0,i.jsxs)(r.p,{children:["Run ",(0,i.jsx)(r.code,{children:"mercury cloud connect"})," and Mercury opens a browser-based pairing URL. The flow is poll-based with a 5-minute timeout and structured failure codes (e.g. ",(0,i.jsx)(r.code,{children:"AGENT_LIMIT_REACHED"})," with upgrade guidance):"]}),"\n",(0,i.jsx)(r.pre,{children:(0,i.jsx)(r.code,{className:"language-sh",children:"mercury cloud connect\n"})}),"\n",(0,i.jsx)(r.p,{children:"Once paired, Mercury saves:"}),"\n",(0,i.jsxs)(r.ul,{children:["\n",(0,i.jsxs)(r.li,{children:["A ",(0,i.jsx)(r.strong,{children:"JWT"})," (short-lived, auto-rotated)"]}),"\n",(0,i.jsxs)(r.li,{children:["A ",(0,i.jsx)(r.strong,{children:"refresh token"})," (single-use, rotated on every refresh)"]}),"\n",(0,i.jsxs)(r.li,{children:["An ",(0,i.jsx)(r.strong,{children:"agent API key"})," (long-lived, for headless self-recovery)"]}),"\n",(0,i.jsxs)(r.li,{children:["The ",(0,i.jsx)(r.strong,{children:"agent ID"})," and ",(0,i.jsx)(r.strong,{children:"tier"})]}),"\n"]}),"\n",(0,i.jsx)(r.h3,{id:"authentication--self-recovery",children:"Authentication & self-recovery"}),"\n",(0,i.jsx)(r.p,{children:"Mercury Cloud uses a three-tier token strategy:"}),"\n",(0,i.jsxs)(r.ol,{children:["\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"JWT"})," \u2014 used for API and WebSocket auth. Auto-refreshed before expiry."]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Refresh token"})," \u2014 single-use, rotated on every refresh. If the JWT expires, Mercury tries the refresh token first."]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Agent API key"})," \u2014 long-lived, never expires. If both JWT and refresh token are dead, Mercury redeems the agent API key to get fresh tokens without a browser re-pair."]}),"\n"]}),"\n",(0,i.jsx)(r.p,{children:"This means a remotely-deployed agent on a server or Termux can stay online indefinitely without manual intervention \u2014 the agent API key is the self-healing path."}),"\n",(0,i.jsx)(r.h3,{id:"cloud-websocket",children:"Cloud WebSocket"}),"\n",(0,i.jsxs)(r.p,{children:["After pairing, Mercury maintains a persistent WSS connection to ",(0,i.jsx)(r.code,{children:"wss://backend.mercuryagent.sh/ws"})," with:"]}),"\n",(0,i.jsxs)(r.ul,{children:["\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"30-second heartbeat"})," to detect dead connections"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Exponential backoff reconnect"})," (up to 50 attempts)"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Pre-connect token rotation"})," \u2014 never handshakes with an expired JWT"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Message relay"})," \u2014 remote commands, streaming responses, skill installs, memory operations, and conversation sync"]}),"\n"]}),"\n",(0,i.jsx)(r.p,{children:"The WebSocket stays alive even after you exit the foreground TUI \u2014 the background daemon keeps it open."}),"\n",(0,i.jsx)(r.h3,{id:"shared-memory-pool",children:"Shared memory pool"}),"\n",(0,i.jsxs)(r.p,{children:["Mercury Cloud agents can search a ",(0,i.jsx)(r.strong,{children:"shared memory pool"})," \u2014 cross-agent context that lives in the cloud. After local Second Brain retrieval, the agent calls ",(0,i.jsx)(r.code,{children:"searchPool()"})," to fetch additional context from other agents in your fleet. Results are cached in a local SQLite DB for 5 minutes per query to kill per-turn network cost."]}),"\n",(0,i.jsx)(r.h3,{id:"remote-dashboard",children:"Remote dashboard"}),"\n",(0,i.jsxs)(r.p,{children:["Manage your agent from the cloud dashboard at ",(0,i.jsx)(r.a,{href:"https://cloud.mercuryagent.sh",children:"cloud.mercuryagent.sh"})," \u2014 send messages, install skills, view memory, and monitor status. The dashboard talks to your local agent over the Cloud WebSocket."]}),"\n",(0,i.jsx)(r.h2,{id:"runtime-activation",children:"Runtime activation"}),"\n",(0,i.jsxs)(r.p,{children:["The ",(0,i.jsx)(r.code,{children:"activateCloudRuntime"})," function is the single entry point for starting or restarting a managed runtime after Cloud credentials land. It:"]}),"\n",(0,i.jsxs)(r.ul,{children:["\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Checks foreground state"})," \u2014 rejects if Mercury is running only in the foreground (can't activate Cloud without a managed runtime)"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Accepts already-online foreground"})," \u2014 if credentials didn't change and the foreground WebSocket is already online, returns without restarting"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Stops a running daemon"})," \u2014 graceful SIGTERM before starting a fresh one"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Starts a managed runtime"})," \u2014 ",(0,i.jsx)(r.code,{children:"restartService()"})," if a system service is installed, otherwise ",(0,i.jsx)(r.code,{children:"startBackground()"})]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Waits for WebSocket online"})," \u2014 up to 20 seconds; throws if the Cloud WebSocket doesn't come up"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Propagates failures"})," \u2014 throws if ",(0,i.jsx)(r.code,{children:"stopDaemon"})," fails, so the caller knows credentials were saved but the runtime is stale"]}),"\n"]}),"\n",(0,i.jsx)(r.h2,{id:"provider-integration",children:"Provider integration"}),"\n",(0,i.jsxs)(r.p,{children:["Mercury Cloud is a first-class provider (",(0,i.jsx)(r.code,{children:"mercuryCloud"}),") backed by an OpenAI-compatible API at ",(0,i.jsx)(r.code,{children:"https://backend.mercuryagent.sh/v1"}),". At pairing time, Mercury fetches the available models and prompts you to choose:"]}),"\n",(0,i.jsx)(r.pre,{children:(0,i.jsx)(r.code,{children:"Available models:\n  1. Mercury Flash (mercury-flash)\n  2. Mercury Pro (mercury-pro)\n  3. ...\nChoose a model [1-N, Enter for 1]:\n"})}),"\n",(0,i.jsx)(r.p,{children:"The provider's JWT is automatically swapped when the shared token store rotates \u2014 no race conditions, no burned refresh tokens."}),"\n",(0,i.jsx)(r.h2,{id:"cross-platform-fixes",children:"Cross-platform fixes"}),"\n",(0,i.jsx)(r.h3,{id:"v121--runtime-activation-hardening",children:"v1.2.1 \u2014 Runtime activation hardening"}),"\n",(0,i.jsxs)(r.p,{children:["Restored ",(0,i.jsx)(r.code,{children:"activateCloudRuntime"})," as the single activation path for ",(0,i.jsx)(r.code,{children:"cloud connect"})," and ",(0,i.jsx)(r.code,{children:"cloud login"}),", replacing a simpler ",(0,i.jsx)(r.code,{children:"ensureDaemonRunning"})," that had dropped foreground checks, WebSocket verification, and failure propagation. This fixed 8 failing pairing-flow tests."]}),"\n",(0,i.jsx)(r.h3,{id:"v122--windows-termux-and-packaging",children:"v1.2.2 \u2014 Windows, Termux, and packaging"}),"\n",(0,i.jsxs)(r.ul,{children:["\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Windows"}),": ",(0,i.jsx)(r.code,{children:"resolveShell"})," now uses ",(0,i.jsx)(r.code,{children:"posix.join"})," for the Termux shell path (was backslash-joined on Windows). ",(0,i.jsx)(r.code,{children:"work-ledger.test.ts"})," skips the ",(0,i.jsx)(r.code,{children:"0o600"})," mode assertion on Windows (chmod is a no-op for owner bits)."]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"Termux"}),": ",(0,i.jsx)(r.code,{children:"better-sqlite3"})," is now lazy-loaded via ",(0,i.jsx)(r.code,{children:"createRequire"})," in ",(0,i.jsx)(r.code,{children:"pool-search.ts"}),", so ",(0,i.jsx)(r.code,{children:"--help"})," and ",(0,i.jsx)(r.code,{children:"--version"})," work without the native addon (it doesn't compile on Android)."]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.strong,{children:"CI"}),": The Termux CI job treats ",(0,i.jsx)(r.code,{children:"better-sqlite3"})," as optional (the runtime already falls back gracefully)."]}),"\n"]}),"\n",(0,i.jsx)(r.h2,{id:"cli-commands",children:"CLI commands"}),"\n",(0,i.jsxs)(r.table,{children:[(0,i.jsx)(r.thead,{children:(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.th,{children:"Command"}),(0,i.jsx)(r.th,{children:"Description"})]})}),(0,i.jsxs)(r.tbody,{children:[(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"mercury cloud connect"})}),(0,i.jsx)(r.td,{children:"Pair with Mercury Cloud via browser"})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"mercury cloud disconnect"})}),(0,i.jsx)(r.td,{children:"Clear Cloud credentials and stop the agent"})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"mercury cloud status"})}),(0,i.jsx)(r.td,{children:"Show Cloud connection status and usage"})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"mercury cloud login"})}),(0,i.jsx)(r.td,{children:"Refresh the JWT using the stored refresh token"})]})]})]}),"\n",(0,i.jsx)(r.h2,{id:"files-changed",children:"Files changed"}),"\n",(0,i.jsx)(r.h3,{id:"new-files",children:"New files"}),"\n",(0,i.jsxs)(r.ul,{children:["\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/cloud/pairing.ts"})," \u2014 Pairing flow (start, poll, structured failures), token refresh, agent API key redemption"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/cloud/pairing-flow.ts"})," \u2014 High-level ",(0,i.jsx)(r.code,{children:"runCloudConnect"}),", ",(0,i.jsx)(r.code,{children:"runCloudDisconnect"}),", ",(0,i.jsx)(r.code,{children:"runCloudLogin"}),", ",(0,i.jsx)(r.code,{children:"runCloudStatus"}),", ",(0,i.jsx)(r.code,{children:"activateCloudRuntime"})]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/cloud/pairing-flow.test.ts"})," \u2014 12 tests covering all activation paths"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/cloud/client.ts"})," \u2014 ",(0,i.jsx)(r.code,{children:"MercuryCloudClient"})," WebSocket client with heartbeat, reconnect, and token rotation"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/cloud/token-store.ts"})," \u2014 Shared in-memory token store with listener-based rotation"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/cloud/runtime-status.ts"})," \u2014 Cloud WebSocket online tracking and ",(0,i.jsx)(r.code,{children:"waitForCloudRuntimeOnline"})]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/cloud/pool-search.ts"})," \u2014 Shared memory pool search with SQLite cache"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/cloud/types.ts"})," \u2014 Cloud config, pairing result, and WS message types"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/cloud/endpoints.ts"})," \u2014 Mercury Cloud API, WS, and dashboard URLs"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/providers/mercury-cloud.ts"})," \u2014 Mercury Cloud as a first-class provider"]}),"\n"]}),"\n",(0,i.jsx)(r.h3,{id:"modified-files",children:"Modified files"}),"\n",(0,i.jsxs)(r.ul,{children:["\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/index.ts"})," \u2014 ",(0,i.jsx)(r.code,{children:"cloud"})," CLI subcommands (connect, disconnect, status, login)"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/utils/config.ts"})," \u2014 Cloud config section, ",(0,i.jsx)(r.code,{children:"mercuryCloud"})," provider, migrations"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/core/agent.ts"})," \u2014 Cloud client integration, ",(0,i.jsx)(r.code,{children:"searchPool()"})," call after local retrieval"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/utils/platform.ts"})," \u2014 ",(0,i.jsx)(r.code,{children:"posix.join"})," for Termux shell path (Windows fix)"]}),"\n",(0,i.jsxs)(r.li,{children:[(0,i.jsx)(r.code,{children:"src/core/work-ledger.test.ts"})," \u2014 Skip ",(0,i.jsx)(r.code,{children:"0o600"})," mode assertion on Windows"]}),"\n"]}),"\n",(0,i.jsx)(r.h2,{id:"patch-history",children:"Patch history"}),"\n",(0,i.jsxs)(r.table,{children:[(0,i.jsx)(r.thead,{children:(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.th,{children:"Version"}),(0,i.jsx)(r.th,{children:"Focus"})]})}),(0,i.jsxs)(r.tbody,{children:[(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"1.2.0"})}),(0,i.jsx)(r.td,{children:"Mercury Cloud launch \u2014 pairing, auth, WebSocket, shared memory pool, provider integration"})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"1.2.1"})}),(0,i.jsxs)(r.td,{children:["Runtime activation hardening \u2014 restored ",(0,i.jsx)(r.code,{children:"activateCloudRuntime"})," checks, fixed 8 pairing-flow tests"]})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.strong,{children:"1.2.2"})}),(0,i.jsxs)(r.td,{children:["Cross-platform fixes \u2014 Windows path/mode, Termux optional ",(0,i.jsx)(r.code,{children:"better-sqlite3"}),", CI stabilization"]})]})]})]}),"\n",(0,i.jsx)(r.h2,{id:"upgrade",children:"Upgrade"}),"\n",(0,i.jsx)(r.p,{children:(0,i.jsx)(r.strong,{children:"npm:"})}),"\n",(0,i.jsx)(r.pre,{children:(0,i.jsx)(r.code,{className:"language-bash",children:"npm install -g @cosmicstack/[email protected]\nmercury restart\n"})}),"\n",(0,i.jsx)(r.p,{children:(0,i.jsx)(r.strong,{children:"Standalone (macOS / Linux):"})}),"\n",(0,i.jsx)(r.pre,{children:(0,i.jsx)(r.code,{className:"language-bash",children:"curl -fsSL https://mercuryagent.sh/install.sh | sh\nmercury restart\n"})}),"\n",(0,i.jsx)(r.p,{children:(0,i.jsx)(r.strong,{children:"Standalone (Windows):"})}),"\n",(0,i.jsx)(r.pre,{children:(0,i.jsx)(r.code,{className:"language-powershell",children:"irm https://mercuryagent.sh/install.ps1 | iex\nmercury restart\n"})}),"\n",(0,i.jsxs)(r.p,{children:["No config migrations needed. Mercury Cloud is ",(0,i.jsx)(r.strong,{children:"opt-in"})," \u2014 run ",(0,i.jsx)(r.code,{children:"mercury cloud connect"})," to pair. Existing configs, providers, threads, kanban boards, and Second Brain data carry over unchanged."]}),"\n",(0,i.jsx)(r.h2,{id:"standalone-binaries",children:"Standalone binaries"}),"\n",(0,i.jsx)(r.p,{children:"Same five targets as v1.1.13:"}),"\n",(0,i.jsxs)(r.table,{children:[(0,i.jsx)(r.thead,{children:(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.th,{children:"OS"}),(0,i.jsx)(r.th,{children:"Architecture"}),(0,i.jsx)(r.th,{children:"Binary"})]})}),(0,i.jsxs)(r.tbody,{children:[(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:"macOS"}),(0,i.jsx)(r.td,{children:"Apple Silicon"}),(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"mercury-macos-arm64"})})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:"macOS"}),(0,i.jsx)(r.td,{children:"Intel"}),(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"mercury-macos-x64"})})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:"Linux"}),(0,i.jsx)(r.td,{children:"x86-64"}),(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"mercury-linux-x64"})})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:"Linux"}),(0,i.jsx)(r.td,{children:"ARM64"}),(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"mercury-linux-arm64"})})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:"Windows"}),(0,i.jsx)(r.td,{children:"x86-64"}),(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"mercury-win-x64.exe"})})]})]})]}),"\n",(0,i.jsx)(r.p,{children:"Direct downloads:"}),"\n",(0,i.jsxs)(r.ul,{children:["\n",(0,i.jsx)(r.li,{children:(0,i.jsx)(r.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.2.2/mercury-macos-arm64",children:"mercury-macos-arm64"})}),"\n",(0,i.jsx)(r.li,{children:(0,i.jsx)(r.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.2.2/mercury-macos-x64",children:"mercury-macos-x64"})}),"\n",(0,i.jsx)(r.li,{children:(0,i.jsx)(r.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.2.2/mercury-linux-x64",children:"mercury-linux-x64"})}),"\n",(0,i.jsx)(r.li,{children:(0,i.jsx)(r.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.2.2/mercury-linux-arm64",children:"mercury-linux-arm64"})}),"\n",(0,i.jsx)(r.li,{children:(0,i.jsx)(r.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.2.2/mercury-win-x64.exe",children:"mercury-win-x64.exe"})}),"\n",(0,i.jsx)(r.li,{children:(0,i.jsx)(r.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.2.2/checksums.txt",children:"checksums.txt"})}),"\n"]}),"\n",(0,i.jsxs)(r.p,{children:[(0,i.jsx)(r.strong,{children:"Full changelog:"})," ",(0,i.jsx)(r.a,{href:"https://github.com/cosmicstack-labs/mercury-agent/compare/v1.1.13...v1.2.2",children:"v1.1.13 \u2192 v1.2.2"})]})]})}function u(e={}){let{wrapper:r}={...(0,t.R)(),...e.components};return r?(0,i.jsx)(r,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},28453(e,r,n){n.d(r,{R:()=>c,x:()=>d});var s=n(96540);let i={},t=s.createContext(i);function c(e){let r=s.useContext(t);return s.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function d(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),s.createElement(t.Provider,{value:r},e.children)}}}]);