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.

Release/cloudy mercury (#113)

Salman Qureshi907fbb579575
diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts
index 5c6ddc16..208b3900 100644
--- a/website/docusaurus.config.ts
+++ b/website/docusaurus.config.ts
@@ -4,8 +4,8 @@ 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, Telegram, Discord, Slack, or Signal.',
- favicon: 'img/favicon.svg',
+ tagline: 'Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Web, Telegram, Discord, Slack, or Signal.',
+ favicon: 'img/logo-dark.png',
future: {
v4: true,
diff --git a/website/package-lock.json b/website/package-lock.json
index a0bf0acf..ca9de836 100644
--- a/website/package-lock.json
+++ b/website/package-lock.json
@@ -22,6 +22,7 @@
"@docusaurus/module-type-aliases": "3.10.0",
"@docusaurus/tsconfig": "3.10.0",
"@docusaurus/types": "3.10.0",
+ "@resvg/resvg-js": "^2.6.2",
"@types/react": "^19.0.0",
"typescript": "~6.0.2"
},
@@ -5408,6 +5409,234 @@
"integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==",
"license": "MIT"
},
+ "node_modules/@resvg/resvg-js": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js/-/resvg-js-2.6.2.tgz",
+ "integrity": "sha512-xBaJish5OeGmniDj9cW5PRa/PtmuVU3ziqrbr5xJj901ZDN4TosrVaNZpEiLZAxdfnhAe7uQ7QFWfjPe9d9K2Q==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "engines": {
+ "node": ">= 10"
+ },
+ "optionalDependencies": {
+ "@resvg/resvg-js-android-arm-eabi": "2.6.2",
+ "@resvg/resvg-js-android-arm64": "2.6.2",
+ "@resvg/resvg-js-darwin-arm64": "2.6.2",
+ "@resvg/resvg-js-darwin-x64": "2.6.2",
+ "@resvg/resvg-js-linux-arm-gnueabihf": "2.6.2",
+ "@resvg/resvg-js-linux-arm64-gnu": "2.6.2",
+ "@resvg/resvg-js-linux-arm64-musl": "2.6.2",
+ "@resvg/resvg-js-linux-x64-gnu": "2.6.2",
+ "@resvg/resvg-js-linux-x64-musl": "2.6.2",
+ "@resvg/resvg-js-win32-arm64-msvc": "2.6.2",
+ "@resvg/resvg-js-win32-ia32-msvc": "2.6.2",
+ "@resvg/resvg-js-win32-x64-msvc": "2.6.2"
+ }
+ },
+ "node_modules/@resvg/resvg-js-android-arm-eabi": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-android-arm-eabi/-/resvg-js-android-arm-eabi-2.6.2.tgz",
+ "integrity": "sha512-FrJibrAk6v29eabIPgcTUMPXiEz8ssrAk7TXxsiZzww9UTQ1Z5KAbFJs+Z0Ez+VZTYgnE5IQJqBcoSiMebtPHA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-android-arm64": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-android-arm64/-/resvg-js-android-arm64-2.6.2.tgz",
+ "integrity": "sha512-VcOKezEhm2VqzXpcIJoITuvUS/fcjIw5NA/w3tjzWyzmvoCdd+QXIqy3FBGulWdClvp4g+IfUemigrkLThSjAQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-darwin-arm64": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-darwin-arm64/-/resvg-js-darwin-arm64-2.6.2.tgz",
+ "integrity": "sha512-nmok2LnAd6nLUKI16aEB9ydMC6Lidiiq2m1nEBDR1LaaP7FGs4AJ90qDraxX+CWlVuRlvNjyYJTNv8qFjtL9+A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-darwin-x64": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-darwin-x64/-/resvg-js-darwin-x64-2.6.2.tgz",
+ "integrity": "sha512-GInyZLjgWDfsVT6+SHxQVRwNzV0AuA1uqGsOAW+0th56J7Nh6bHHKXHBWzUrihxMetcFDmQMAX1tZ1fZDYSRsw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-linux-arm-gnueabihf": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-linux-arm-gnueabihf/-/resvg-js-linux-arm-gnueabihf-2.6.2.tgz",
+ "integrity": "sha512-YIV3u/R9zJbpqTTNwTZM5/ocWetDKGsro0SWp70eGEM9eV2MerWyBRZnQIgzU3YBnSBQ1RcxRZvY/UxwESfZIw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-linux-arm64-gnu": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-linux-arm64-gnu/-/resvg-js-linux-arm64-gnu-2.6.2.tgz",
+ "integrity": "sha512-zc2BlJSim7YR4FZDQ8OUoJg5holYzdiYMeobb9pJuGDidGL9KZUv7SbiD4E8oZogtYY42UZEap7dqkkYuA91pg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-linux-arm64-musl": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-linux-arm64-musl/-/resvg-js-linux-arm64-musl-2.6.2.tgz",
+ "integrity": "sha512-3h3dLPWNgSsD4lQBJPb4f+kvdOSJHa5PjTYVsWHxLUzH4IFTJUAnmuWpw4KqyQ3NA5QCyhw4TWgxk3jRkQxEKg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-linux-x64-gnu": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-linux-x64-gnu/-/resvg-js-linux-x64-gnu-2.6.2.tgz",
+ "integrity": "sha512-IVUe+ckIerA7xMZ50duAZzwf1U7khQe2E0QpUxu5MBJNao5RqC0zwV/Zm965vw6D3gGFUl7j4m+oJjubBVoftw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-linux-x64-musl": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-linux-x64-musl/-/resvg-js-linux-x64-musl-2.6.2.tgz",
+ "integrity": "sha512-UOf83vqTzoYQO9SZ0fPl2ZIFtNIz/Rr/y+7X8XRX1ZnBYsQ/tTb+cj9TE+KHOdmlTFBxhYzVkP2lRByCzqi4jQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-win32-arm64-msvc": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-win32-arm64-msvc/-/resvg-js-win32-arm64-msvc-2.6.2.tgz",
+ "integrity": "sha512-7C/RSgCa+7vqZ7qAbItfiaAWhyRSoD4l4BQAbVDqRRsRgY+S+hgS3in0Rxr7IorKUpGE69X48q6/nOAuTJQxeQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-win32-ia32-msvc": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-win32-ia32-msvc/-/resvg-js-win32-ia32-msvc-2.6.2.tgz",
+ "integrity": "sha512-har4aPAlvjnLcil40AC77YDIk6loMawuJwFINEM7n0pZviwMkMvjb2W5ZirsNOZY4aDbo5tLx0wNMREp5Brk+w==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@resvg/resvg-js-win32-x64-msvc": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-win32-x64-msvc/-/resvg-js-win32-x64-msvc-2.6.2.tgz",
+ "integrity": "sha512-ZXtYhtUr5SSaBrUDq7DiyjOFJqBVL/dOBN7N/qmi/pO0IgiWW/f/ue3nbvu9joWE5aAKDoIzy/CxsY0suwGosQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
"node_modules/@rspack/binding": {
"version": "1.7.11",
"resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-1.7.11.tgz",
diff --git a/website/package.json b/website/package.json
index 41b010df..3b91f185 100644
--- a/website/package.json
+++ b/website/package.json
@@ -7,8 +7,8 @@
"prestart": "node scripts/copy-installers.cjs",
"start": "docusaurus start",
"prebuild": "node scripts/copy-installers.cjs",
- "build": "docusaurus build",
- "build:prod": "node scripts/copy-installers.cjs && docusaurus build && rm -rf ../docs && cp -r build ../docs && touch ../docs/.nojekyll",
+ "build": "docusaurus build && node scripts/generate-og-cards.cjs",
+ "build:prod": "node scripts/copy-installers.cjs && docusaurus build && node scripts/generate-og-cards.cjs && rm -rf ../docs && cp -r build ../docs && touch ../docs/.nojekyll",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
@@ -32,6 +32,7 @@
"@docusaurus/module-type-aliases": "3.10.0",
"@docusaurus/tsconfig": "3.10.0",
"@docusaurus/types": "3.10.0",
+ "@resvg/resvg-js": "^2.6.2",
"@types/react": "^19.0.0",
"typescript": "~6.0.2"
},
diff --git a/website/scripts/generate-og-cards.cjs b/website/scripts/generate-og-cards.cjs
new file mode 100644
index 00000000..58edd53f
--- /dev/null
+++ b/website/scripts/generate-og-cards.cjs
@@ -0,0 +1,226 @@
+/**
+ * Build-time OG card generator for Mercury Agent docs.
+ *
+ * Runs after `docusaurus build` produces static HTML. Walks the build
+ * output, extracts each docs page's <title> and <meta description>,
+ * renders a per-page SVG from the template, converts to PNG, and
+ * drops it into the build's static img directory.
+ *
+ * Also renders the static home and cloud cards from their SVGs.
+ *
+ * Usage: node scripts/generate-og-cards.cjs
+ * (called automatically by the postbuild step, or standalone)
+ */
+const fs = require('node:fs');
+const path = require('node:path');
+const { Resvg } = require('@resvg/resvg-js');
+
+const root = path.resolve(__dirname, '..');
+const buildDir = path.join(root, 'build');
+const ogSrcDir = path.join(root, 'static', 'img', 'og');
+const ogOutDir = path.join(buildDir, 'img', 'og');
+
+const WIDTH = 1200;
+const HEIGHT = 630;
+
+// ── Helpers ──────────────────────────────────────────────────────
+
+function ensureDir(dir) {
+ fs.mkdirSync(dir, { recursive: true });
+}
+
+function renderSvgToPng(svgPath, pngPath) {
+ const svg = fs.readFileSync(svgPath, 'utf8');
+ const resvg = new Resvg(svg, {
+ fitTo: { mode: 'width', value: WIDTH },
+ font: {
+ loadSystemFonts: true,
+ },
+ });
+ const png = resvg.render().asPng();
+ fs.writeFileSync(pngPath, png);
+}
+
+// ── Static cards (home, cloud) ───────────────────────────────────
+
+function renderStaticCards() {
+ ensureDir(ogOutDir);
+ const statics = ['home', 'cloud'];
+ for (const name of statics) {
+ const svg = path.join(ogSrcDir, `${name}.svg`);
+ const png = path.join(ogOutDir, `${name}.png`);
+ if (fs.existsSync(svg)) {
+ renderSvgToPng(svg, png);
+ console.log(` ✓ og/${name}.png`);
+ }
+ }
+}
+
+// ── Dynamic docs cards ──────────────────────────────────────────
+
+/**
+ * Escape text for SVG — handle &, <, >, and wrap long lines.
+ */
+function escapeXml(text) {
+ return text
+ .replace(/&/g, '&amp;')
+ .replace(/</g, '&lt;')
+ .replace(/>/g, '&gt;')
+ .replace(/"/g, '&quot;');
+}
+
+/**
+ * Wrap a title into up to 3 lines that fit within maxWidth at the
+ * given font size. Returns SVG <text> elements positioned correctly.
+ */
+function titleToSvg(title, startY) {
+ const fontSize = 56;
+ const maxChars = 38; // approximate chars per line at 1200px width
+ const words = title.split(/\s+/);
+ const lines = [];
+ let current = '';
+ for (const word of words) {
+ if ((current + ' ' + word).trim().length > maxChars && current) {
+ lines.push(current.trim());
+ current = word;
+ } else {
+ current = (current + ' ' + word).trim();
+ }
+ }
+ if (current) lines.push(current.trim());
+
+ const lineHeight = 68;
+ let y = startY;
+ let svg = '';
+ for (let i = 0; i < Math.min(lines.length, 3); i++) {
+ const fill = i === 0 ? '#ffffff' : 'url(#accent)';
+ svg += `<text x="80" y="${y}" font-family="Inter, system-ui, sans-serif" font-size="${fontSize}" font-weight="900" fill="${fill}" letter-spacing="-1.5">${escapeXml(lines[i])}</text>\n`;
+ y += lineHeight;
+ }
+ return { svg, nextY: y };
+}
+
+/**
+ * Render a description as a gray subtext line, truncating if too long.
+ */
+function descToSvg(desc, y) {
+ if (!desc) return '';
+ const maxChars = 75;
+ let text = desc;
+ if (text.length > maxChars * 2) text = text.slice(0, maxChars * 2 - 3) + '...';
+ // Split into 2 lines if needed
+ const words = text.split(/\s+/);
+ const lines = [];
+ let current = '';
+ for (const word of words) {
+ if ((current + ' ' + word).trim().length > maxChars && current) {
+ lines.push(current.trim());
+ current = word;
+ } else {
+ current = (current + ' ' + word).trim();
+ }
+ }
+ if (current) lines.push(current.trim());
+
+ let svg = '';
+ for (let i = 0; i < Math.min(lines.length, 2); i++) {
+ svg += `<text x="80" y="${y}" font-family="Inter, system-ui, sans-serif" font-size="20" font-weight="500" fill="#7a7a8a">${escapeXml(lines[i])}</text>\n`;
+ y += 28;
+ }
+ return svg;
+}
+
+function generateDocsCards() {
+ const docsDir = path.join(buildDir, 'docs');
+ if (!fs.existsSync(docsDir)) {
+ console.log(' ⚠ build/docs/ not found — skipping dynamic docs cards');
+ return;
+ }
+
+ const template = fs.readFileSync(path.join(ogSrcDir, 'docs-template.svg'), 'utf8');
+ let count = 0;
+
+ function walk(dir) {
+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
+ const fullPath = path.join(dir, entry.name);
+ if (entry.isDirectory()) {
+ walk(fullPath);
+ continue;
+ }
+ if (!entry.name.endsWith('.html')) continue;
+ // Skip non-docs pages (docusaurus root-level)
+ if (fullPath.includes(path.sep + 'img' + path.sep)) continue;
+
+ const html = fs.readFileSync(fullPath, 'utf8');
+
+ // Extract title — Docusaurus puts the page title in <title>...</title>
+ // or in <h1> for docs. The <title> tag usually has " — Mercury Agent" suffix.
+ const titleMatch = html.match(/<title>([^<]+)<\/title>/);
+ let title = titleMatch ? titleMatch[1].replace(/\s*[—–-]\s*Mercury.*$/i, '').trim() : '';
+
+ // If title is empty or just "Mercury Agent", try h1
+ if (!title || title === 'Mercury Agent') {
+ const h1Match = html.match(/<h1[^>]*>([^<]+)<\/h1>/);
+ if (h1Match) title = h1Match[1].trim();
+ }
+
+ if (!title) continue;
+
+ // Extract description from meta
+ const descMatch = html.match(/<meta\s+name="description"\s+content="([^"]+)"/);
+ const desc = descMatch ? descMatch[1] : '';
+
+ // Compute the output path — mirror the docs URL structure
+ const relPath = path.relative(docsDir, fullPath);
+ const slug = relPath.replace(/\.html$/, '').replace(/\//g, '-');
+ const pngName = `docs-${slug}.png`;
+ const pngPath = path.join(ogOutDir, pngName);
+
+ // Generate title and description SVG fragments
+ const { svg: titleSvg, nextY } = titleToSvg(title, 260);
+ const descSvg = descToSvg(desc, nextY + 20);
+
+ const svg = template
+ .replace('{{TITLE_SVG}}', titleSvg)
+ .replace('{{DESC_SVG}}', descSvg);
+
+ // Write temp SVG, render to PNG
+ const tempSvg = path.join(ogOutDir, '_temp.svg');
+ fs.writeFileSync(tempSvg, svg);
+ renderSvgToPng(tempSvg, pngPath);
+ fs.unlinkSync(tempSvg);
+
+ // Inject OG image meta tags into the built HTML
+ const ogUrl = `https://mercuryagent.sh/img/og/${pngName}`;
+ const urlPath = `/docs/${relPath.replace(/\.html$/, '')}`;
+ const canonicalUrl = `https://mercuryagent.sh${urlPath}`;
+ let updatedHtml = html;
+
+ // Remove existing og:image, twitter:image, and twitter:card meta tags
+ // Docusaurus minifies HTML, so tags may have varied attribute order and quoting
+ updatedHtml = updatedHtml.replace(/<meta\s+[^>]*property=["']?og:image["']?[^>]*>/gi, '');
+ updatedHtml = updatedHtml.replace(/<meta\s+[^>]*name=["']?twitter:image["']?[^>]*>/gi, '');
+ updatedHtml = updatedHtml.replace(/<meta\s+[^>]*name=["']?twitter:card["']?[^>]*>/gi, '');
+
+ // Insert our OG image tags + twitter card before </head>
+ const ogTags = `<meta property="og:image" content="${ogUrl}" />\n <meta name="twitter:card" content="summary_large_image" />\n <meta name="twitter:image" content="${ogUrl}" />`;
+ updatedHtml = updatedHtml.replace('</head>', ` ${ogTags}\n </head>`);
+
+ fs.writeFileSync(fullPath, updatedHtml);
+
+ count++;
+ console.log(` ✓ og/${pngName}`);
+ }
+ }
+
+ walk(docsDir);
+ console.log(` Generated ${count} docs cards`);
+}
+
+// ── Main ────────────────────────────────────────────────────────
+
+console.log('Generating OG cards...');
+ensureDir(ogOutDir);
+renderStaticCards();
+generateDocsCards();
+console.log('Done.');
\ No newline at end of file
diff --git a/website/src/pages/cloud.tsx b/website/src/pages/cloud.tsx
index 3fe16838..0c814cfc 100644
--- a/website/src/pages/cloud.tsx
+++ b/website/src/pages/cloud.tsx
@@ -138,12 +138,12 @@ export default function CloudPage(): React.ReactElement {
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Mercury Agent — Soul-driven" />
<meta property="og:url" content="https://mercuryagent.sh/cloud" />
- <meta property="og:image" content="https://mercuryagent.sh/img/og/home.png" />
+ <meta property="og:image" content="https://mercuryagent.sh/img/og/cloud.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@mercuryagent" />
<meta name="twitter:title" content="Mercury Cloud — Plug-and-play cloud backend" />
<meta name="twitter:description" content="Terminal pairing, auto-rotating JWTs, Cloud WebSocket, shared memory pool, and remote dashboard." />
- <meta name="twitter:image" content="https://mercuryagent.sh/img/og/home.png" />
+ <meta name="twitter:image" content="https://mercuryagent.sh/img/og/cloud.png" />
<link rel="canonical" href="https://mercuryagent.sh/cloud" />
</Head>
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index 598d1347..51697ecb 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -415,18 +415,18 @@ export default function LandingPage(): React.ReactElement {
return (
<>
<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, 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, Telegram, Discord, Slack, or Signal." />
+ <title>Mercury Agent — Soul-driven AI Agent with Permission-Hardened Tools</title>
+ <meta name="description" content="Mercury Agent — a soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Web, Telegram, Discord, Slack, or Signal." />
+ <meta property="og:title" content="Mercury Agent — Soul-driven AI Agent with Permission-Hardened Tools" />
+ <meta property="og:description" content="Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. 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" />
<meta property="og:image" content="https://mercuryagent.sh/img/og/home.png" />
<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, Telegram, Discord, Slack, or Signal." />
+ <meta name="twitter:title" content="Mercury Agent — Soul-driven AI Agent with Permission-Hardened Tools" />
+ <meta name="twitter:description" content="Soul-driven AI agent · Permission-hardened tools · Token budgets · Multi-channel access · 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>
@@ -471,8 +471,8 @@ export default function LandingPage(): React.ReactElement {
<span className="lp-hero-eyebrow-badge">v1.2.0 · Cloudy Mercury</span>
</div>
<h1 className="lp-hero-title">
- The AI agent that<br />
- <span className="lp-hero-highlight">thinks, acts, and asks.</span>
+ Soul-driven AI agent<br />
+ <span className="lp-hero-highlight">with permission-hardened tools.</span>
</h1>
<p className="lp-hero-sub">
A <strong>soul-driven</strong> agent with Second Brain memory, a full Skill System, Token Saver Mode,
@@ -546,7 +546,7 @@ export default function LandingPage(): React.ReactElement {
<section id="pillars" className="lp-section">
<div className="lp-container">
<h2 className="lp-section-title">Built Different</h2>
- <p className="lp-section-sub">Three principles that define Mercury.</p>
+ <p className="lp-section-sub">The AI agent that <strong>thinks, acts, and asks.</strong> Three principles that define Mercury.</p>
<div className="lp-pillars">
<div className="lp-pillar lp-reveal">
<div className="lp-pillar-icon">
diff --git a/website/static/img/og/cloud.svg b/website/static/img/og/cloud.svg
new file mode 100644
index 00000000..29c79466
--- /dev/null
+++ b/website/static/img/og/cloud.svg
@@ -0,0 +1,53 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
+ <defs>
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0%" stop-color="#06060a"/>
+ <stop offset="100%" stop-color="#0d0d14"/>
+ </linearGradient>
+ <linearGradient id="accent" x1="0" y1="0" x2="1" y2="0">
+ <stop offset="0%" stop-color="#00d4ff"/>
+ <stop offset="100%" stop-color="#a78bfa"/>
+ </linearGradient>
+ <radialGradient id="glow" cx="50%" cy="35%" r="55%">
+ <stop offset="0%" stop-color="#00d4ff" stop-opacity="0.15"/>
+ <stop offset="100%" stop-color="#00d4ff" stop-opacity="0"/>
+ </radialGradient>
+ <linearGradient id="logoGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" stop-color="#00d4ff"/>
+ <stop offset="100%" stop-color="#a78bfa"/>
+ </linearGradient>
+ </defs>
+
+ <rect width="1200" height="630" fill="url(#bg)"/>
+ <rect width="1200" height="630" fill="url(#glow)"/>
+
+ <!-- Logo mark + cloud badge -->
+ <g transform="translate(80, 80)">
+ <rect width="44" height="44" rx="10" fill="url(#logoGrad)"/>
+ <text x="22" y="33" font-family="serif" font-size="28" fill="white" text-anchor="middle">☿</text>
+ <text x="62" y="30" font-family="Inter, system-ui, sans-serif" font-size="24" font-weight="700" fill="#ffffff">Mercury Cloud · v1.2.0</text>
+ <rect x="62" y="38" width="120" height="22" rx="6" fill="rgba(0,212,255,0.12)"/>
+ <text x="122" y="53" font-family="Inter, system-ui, sans-serif" font-size="14" font-weight="700" fill="#00d4ff" text-anchor="middle">Cloudy Mercury</text>
+ </g>
+
+ <!-- Headline -->
+ <text x="80" y="260" font-family="Inter, system-ui, sans-serif" font-size="76" font-weight="900" fill="#ffffff" letter-spacing="-2">Pair from terminal.</text>
+ <text x="80" y="352" font-family="Inter, system-ui, sans-serif" font-size="76" font-weight="900" fill="url(#accent)" letter-spacing="-2">Stay online forever.</text>
+
+ <!-- Sub -->
+ <text x="80" y="410" font-family="Inter, system-ui, sans-serif" font-size="22" font-weight="500" fill="#7a7a8a">
+ No port forwarding. No reverse proxy. No certificates. Just one command.
+ </text>
+ <text x="80" y="442" font-family="Inter, system-ui, sans-serif" font-size="22" font-weight="500" fill="#7a7a8a">
+ Auto-rotating JWTs · Cloud WebSocket · Shared memory pool
+ </text>
+
+ <!-- Install command -->
+ <g transform="translate(80, 490)">
+ <rect width="360" height="44" rx="10" fill="rgba(0,0,0,0.4)" stroke="#1a1a28"/>
+ <text x="18" y="29" font-family="JetBrains Mono, ui-monospace, monospace" font-size="16" font-weight="600" fill="#00d4ff">$ mercury cloud connect</text>
+ </g>
+
+ <!-- URL -->
+ <text x="1120" y="570" font-family="Inter, system-ui, sans-serif" font-size="18" font-weight="600" fill="#4a4a58" text-anchor="end">mercuryagent.sh/cloud</text>
+</svg>
\ No newline at end of file
diff --git a/website/static/img/og/docs-template.svg b/website/static/img/og/docs-template.svg
new file mode 100644
index 00000000..85f24c4e
--- /dev/null
+++ b/website/static/img/og/docs-template.svg
@@ -0,0 +1,45 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
+ <defs>
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0%" stop-color="#06060a"/>
+ <stop offset="100%" stop-color="#0d0d14"/>
+ </linearGradient>
+ <linearGradient id="accent" x1="0" y1="0" x2="1" y2="0">
+ <stop offset="0%" stop-color="#00d4ff"/>
+ <stop offset="100%" stop-color="#a78bfa"/>
+ </linearGradient>
+ <radialGradient id="glow" cx="50%" cy="35%" r="50%">
+ <stop offset="0%" stop-color="#00d4ff" stop-opacity="0.10"/>
+ <stop offset="100%" stop-color="#00d4ff" stop-opacity="0"/>
+ </radialGradient>
+ <linearGradient id="logoGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" stop-color="#00d4ff"/>
+ <stop offset="100%" stop-color="#a78bfa"/>
+ </linearGradient>
+ </defs>
+
+ <rect width="1200" height="630" fill="url(#bg)"/>
+ <rect width="1200" height="630" fill="url(#glow)"/>
+
+ <!-- Logo mark + brand -->
+ <g transform="translate(80, 80)">
+ <rect width="44" height="44" rx="10" fill="url(#logoGrad)"/>
+ <text x="22" y="33" font-family="serif" font-size="28" fill="white" text-anchor="middle">☿</text>
+ <text x="62" y="30" font-family="Inter, system-ui, sans-serif" font-size="24" font-weight="700" fill="#ffffff">Mercury Agent · Docs</text>
+ </g>
+
+ <!-- Docs badge -->
+ <g transform="translate(80, 160)">
+ <rect width="90" height="28" rx="8" fill="rgba(0,212,255,0.10)" stroke="rgba(0,212,255,0.20)"/>
+ <text x="45" y="19" font-family="Inter, system-ui, sans-serif" font-size="13" font-weight="700" fill="#00d4ff" text-anchor="middle" letter-spacing="1.5">DOCS</text>
+ </g>
+
+ <!-- Page title (dynamically replaced) -->
+ {{TITLE_SVG}}
+
+ <!-- Page description (dynamically replaced) -->
+ {{DESC_SVG}}
+
+ <!-- URL -->
+ <text x="1120" y="570" font-family="Inter, system-ui, sans-serif" font-size="18" font-weight="600" fill="#4a4a58" text-anchor="end">mercuryagent.sh/docs</text>
+</svg>
\ No newline at end of file
diff --git a/website/static/img/og/home.svg b/website/static/img/og/home.svg
index 99788974..fa096840 100644
--- a/website/static/img/og/home.svg
+++ b/website/static/img/og/home.svg
@@ -1,48 +1,50 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
- <stop offset="0%" stop-color="#0a0a14"/>
- <stop offset="100%" stop-color="#11111e"/>
+ <stop offset="0%" stop-color="#06060a"/>
+ <stop offset="100%" stop-color="#0d0d14"/>
</linearGradient>
<linearGradient id="accent" x1="0" y1="0" x2="1" y2="0">
<stop offset="0%" stop-color="#00d4ff"/>
- <stop offset="100%" stop-color="#a855f7"/>
+ <stop offset="100%" stop-color="#a78bfa"/>
</linearGradient>
- <radialGradient id="glow" cx="50%" cy="40%" r="55%">
- <stop offset="0%" stop-color="#00d4ff" stop-opacity="0.18"/>
+ <radialGradient id="glow" cx="50%" cy="35%" r="55%">
+ <stop offset="0%" stop-color="#00d4ff" stop-opacity="0.15"/>
<stop offset="100%" stop-color="#00d4ff" stop-opacity="0"/>
</radialGradient>
+ <linearGradient id="logoGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" stop-color="#00d4ff"/>
+ <stop offset="100%" stop-color="#a78bfa"/>
+ </linearGradient>
</defs>
<rect width="1200" height="630" fill="url(#bg)"/>
<rect width="1200" height="630" fill="url(#glow)"/>
- <!-- Top eyebrow -->
- <g transform="translate(80, 92)">
- <circle cx="18" cy="18" r="18" fill="url(#accent)"/>
- <text x="18" y="25" font-family="Inter, system-ui, sans-serif" font-size="20" font-weight="800" fill="#0a0a14" text-anchor="middle">☿</text>
- <text x="52" y="26" font-family="Inter, system-ui, sans-serif" font-size="22" font-weight="700" fill="#ffffff">Mercury Agent · Soul-driven</text>
+ <!-- Logo mark -->
+ <g transform="translate(80, 80)">
+ <rect width="44" height="44" rx="10" fill="url(#logoGrad)"/>
+ <text x="22" y="33" font-family="serif" font-size="28" fill="white" text-anchor="middle">☿</text>
+ <text x="62" y="30" font-family="Inter, system-ui, sans-serif" font-size="24" font-weight="700" fill="#ffffff">Mercury Agent · v1.2.0</text>
+ <rect x="62" y="38" width="120" height="22" rx="6" fill="rgba(0,212,255,0.12)"/>
+ <text x="122" y="53" font-family="Inter, system-ui, sans-serif" font-size="14" font-weight="700" fill="#00d4ff" text-anchor="middle">Cloudy Mercury</text>
</g>
<!-- Headline -->
- <text x="80" y="270" font-family="Inter, system-ui, sans-serif" font-size="84" font-weight="900" fill="#ffffff" letter-spacing="-2.5">The AI agent that</text>
- <text x="80" y="362" font-family="Inter, system-ui, sans-serif" font-size="84" font-weight="900" fill="url(#accent)" letter-spacing="-2.5">thinks, acts, and asks.</text>
+ <text x="80" y="260" font-family="Inter, system-ui, sans-serif" font-size="76" font-weight="900" fill="#ffffff" letter-spacing="-2">Soul-driven AI agent</text>
+ <text x="80" y="352" font-family="Inter, system-ui, sans-serif" font-size="76" font-weight="900" fill="url(#accent)" letter-spacing="-2">with permission-hardened tools.</text>
<!-- Sub -->
- <text x="80" y="430" font-family="Inter, system-ui, sans-serif" font-size="24" font-weight="500" fill="#9ca3af">
- Second Brain memory · Skill System · Token Saver · 40+ permission-hardened tools
- </text>
- <text x="80" y="462" font-family="Inter, system-ui, sans-serif" font-size="24" font-weight="500" fill="#9ca3af">
- Runs 24/7 from CLI, Web, or Telegram
+ <text x="80" y="410" font-family="Inter, system-ui, sans-serif" font-size="22" font-weight="500" fill="#7a7a8a">
+ Token budgets · Multi-channel access · CLI · Web · Telegram · Discord · Slack · Signal
</text>
- <!-- Bottom row -->
- <g transform="translate(80, 540)">
- <text font-family="JetBrains Mono, ui-monospace, monospace" font-size="20" font-weight="600" fill="#00d4ff">
- $ npm install -g @cosmicstack/mercury-agent
- </text>
+ <!-- Install command -->
+ <g transform="translate(80, 520)">
+ <rect width="520" height="44" rx="10" fill="rgba(0,0,0,0.4)" stroke="#1a1a28"/>
+ <text x="18" y="29" font-family="JetBrains Mono, ui-monospace, monospace" font-size="16" font-weight="600" fill="#00d4ff">$ npm install -g @cosmicstack/mercury-agent</text>
</g>
<!-- URL -->
- <text x="1120" y="570" font-family="Inter, system-ui, sans-serif" font-size="18" font-weight="600" fill="#6b7280" text-anchor="end">mercuryagent.sh</text>
-</svg>
+ <text x="1120" y="570" font-family="Inter, system-ui, sans-serif" font-size="18" font-weight="600" fill="#4a4a58" text-anchor="end">mercuryagent.sh</text>
+</svg>
\ No newline at end of file