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.

fix(badges): keep badge data and README hero out of the regenerated docs/

Salman Qureshia115af00183d
diff --git a/docs/badges/downloads-breakdown.json b/.github/badges/downloads-breakdown.json
similarity index 58%
rename from docs/badges/downloads-breakdown.json
rename to .github/badges/downloads-breakdown.json
index f725bff2..9d2f604c 100644
--- a/docs/badges/downloads-breakdown.json
+++ b/.github/badges/downloads-breakdown.json
@@ -2,5 +2,5 @@
"total": 13512,
"npm": 11557,
"binaries": 1955,
- "updatedAt": "2026-10-13T07:34:40.613Z"
+ "updatedAt": "2026-10-13T07:45:43.322Z"
}
diff --git a/docs/badges/downloads.json b/.github/badges/downloads.json
similarity index 100%
rename from docs/badges/downloads.json
rename to .github/badges/downloads.json
diff --git a/.github/workflows/downloads-badge.yml b/.github/workflows/downloads-badge.yml
index 220d0247..78e8659f 100644
--- a/.github/workflows/downloads-badge.yml
+++ b/.github/workflows/downloads-badge.yml
@@ -1,8 +1,7 @@
name: Downloads badge
-# Refreshes docs/badges/downloads.json (npm + installer binary downloads),
-# which GitHub Pages serves at https://mercuryagent.sh/badges/downloads.json
-# for the README's shields.io endpoint badge.
+# Refreshes .github/badges/downloads.json (npm + installer binary downloads),
+# read by the README's shields.io endpoint badge via raw.githubusercontent.com.
on:
schedule:
- cron: '17 */6 * * *'
@@ -29,9 +28,9 @@ jobs:
run: node scripts/download-stats.mjs
- name: Commit if changed
run: |
- if git diff --quiet -- docs/badges; then echo "unchanged"; exit 0; fi
+ if git diff --quiet -- .github/badges; then echo "unchanged"; exit 0; fi
git config user.name "Mercury"
git config user.email "[email protected]"
- git add docs/badges
+ git add .github/badges
git commit -m "chore(badges): refresh download totals [skip ci]"
git push
diff --git a/README.md b/README.md
index c5ff50e6..0145cc62 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
<p align="center">
<a href="https://www.npmjs.com/package/@cosmicstack/mercury-agent"><img src="https://img.shields.io/npm/v/@cosmicstack/mercury-agent?color=0ea5e9&label=npm" alt="npm version"></a>
- <a href="https://github.com/cosmicstack-labs/mercury-agent/blob/main/docs/badges/downloads-breakdown.json"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fmercuryagent.sh%2Fbadges%2Fdownloads.json" alt="total npm downloads"></a>
+ <a href="https://github.com/cosmicstack-labs/mercury-agent/blob/main/.github/badges/downloads-breakdown.json"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcosmicstack-labs%2Fmercury-agent%2Fmain%2F.github%2Fbadges%2Fdownloads.json" alt="total npm downloads"></a>
<a href="https://github.com/cosmicstack-labs/mercury-agent/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/cosmicstack-labs/mercury-agent/ci.yml?branch=main&label=CI" alt="CI"></a>
<a href="https://github.com/cosmicstack-labs/mercury-agent/stargazers"><img src="https://img.shields.io/github/stars/cosmicstack-labs/mercury-agent?style=flat&color=f59e0b" alt="GitHub stars"></a>
<a href="https://nodejs.org/"><img src="https://img.shields.io/node/v/@cosmicstack/mercury-agent?color=16a34a" alt="node"></a>
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 354092b9..62954515 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -10,7 +10,7 @@
<p align="center">
<a href="https://www.npmjs.com/package/@cosmicstack/mercury-agent"><img src="https://img.shields.io/npm/v/@cosmicstack/mercury-agent?color=0ea5e9&label=npm" alt="npm version"></a>
- <a href="https://github.com/cosmicstack-labs/mercury-agent/blob/main/docs/badges/downloads-breakdown.json"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fmercuryagent.sh%2Fbadges%2Fdownloads.json" alt="npm 总下载量"></a>
+ <a href="https://github.com/cosmicstack-labs/mercury-agent/blob/main/.github/badges/downloads-breakdown.json"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcosmicstack-labs%2Fmercury-agent%2Fmain%2F.github%2Fbadges%2Fdownloads.json" alt="npm 总下载量"></a>
<a href="https://github.com/cosmicstack-labs/mercury-agent/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/cosmicstack-labs/mercury-agent/ci.yml?branch=main&label=CI" alt="CI"></a>
<a href="https://github.com/cosmicstack-labs/mercury-agent/stargazers"><img src="https://img.shields.io/github/stars/cosmicstack-labs/mercury-agent?style=flat&color=f59e0b" alt="GitHub stars"></a>
<a href="https://nodejs.org/"><img src="https://img.shields.io/node/v/@cosmicstack/mercury-agent?color=16a34a" alt="node"></a>
diff --git a/scripts/download-stats.mjs b/scripts/download-stats.mjs
index ccfcd790..f5f81330 100644
--- a/scripts/download-stats.mjs
+++ b/scripts/download-stats.mjs
@@ -7,17 +7,17 @@
* counted: every install also fetches checksums.txt and
* web.tar.gz, which would triple-count one install.
*
- * Writes a shields.io endpoint document (docs/badges/downloads.json,
- * served by GitHub Pages at mercuryagent.sh/badges/downloads.json) plus a
- * breakdown file for humans. Usage: node scripts/download-stats.mjs [--dry-run]
+ * Writes a shields.io endpoint document (.github/badges/downloads.json, read
+ * by the badge through raw.githubusercontent.com) plus a breakdown file. Usage: node scripts/download-stats.mjs [--dry-run]
*/
import { writeFileSync, mkdirSync } from 'node:fs';
import { dirname } from 'node:path';
const PKG = '@cosmicstack/mercury-agent';
const REPO = 'cosmicstack-labs/mercury-agent';
-const OUT = 'docs/badges/downloads.json';
-const BREAKDOWN = 'docs/badges/downloads-breakdown.json';
+// .github/badges, not docs/: the website deploy replaces docs/ wholesale.
+const OUT = '.github/badges/downloads.json';
+const BREAKDOWN = '.github/badges/downloads-breakdown.json';
const dryRun = process.argv.includes('--dry-run');
const headers = { 'User-Agent': 'mercury-download-stats', Accept: 'application/vnd.github+json' };
diff --git a/website/static/img/readme-hero-dark.png b/website/static/img/readme-hero-dark.png
new file mode 100644
index 00000000..215fab1d
Binary files /dev/null and b/website/static/img/readme-hero-dark.png differ
diff --git a/website/static/img/readme-hero-light.png b/website/static/img/readme-hero-light.png
new file mode 100644
index 00000000..0ed78ec0
Binary files /dev/null and b/website/static/img/readme-hero-light.png differ