🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.
Python ai-agentai-assistantchatbotclaudecomputer-usedeepseekdesktop-appdshelectronfeishugeminigptgrokllmlocal-firstmodelflaremulti-modelopenai-compatiblepersonal-ai-agentwechat
feat(site): 更新日志页显示每个版本的内容,接入步骤和常见问题改成全局账号
dyk982ac7922d0d15
diff --git a/site/scripts/sync-from-app.ts b/site/scripts/sync-from-app.tsindex 256d1d9..d3aebd9 100644--- a/site/scripts/sync-from-app.ts+++ b/site/scripts/sync-from-app.ts@@ -21,6 +21,10 @@ for (const f of fs.readdirSync(bots).filter((f) => f.endsWith(".webp"))) {fs.copyFileSync(path.join(app, "THIRD_PARTY_NOTICES.md"), path.join(site, "src/data/third-party.md"));// 英文页用英文译本(英文页整页不出现中文);改了中文版记得同步改 THIRD_PARTY_NOTICES_en.mdfs.copyFileSync(path.join(app, "THIRD_PARTY_NOTICES_en.md"), path.join(site, "src/data/third-party.en.md"));+// 更新日志页:英文页不出现微信、飞书(用户 2026-11-01 定的),提到它们的行不带过去+fs.copyFileSync(path.join(app, "CHANGELOG.md"), path.join(site, "src/data/changelog.md"));+const changelogEn = fs.readFileSync(path.join(app, "CHANGELOG_en.md"), "utf8").split("\n").filter((line) => !/wechat|weixin|feishu/i.test(line)).join("\n");+fs.writeFileSync(path.join(site, "src/data/changelog.en.md"), changelogEn);export function botCharsHash(src: string) {const m = src.match(/export const BOT_CHARS = (\{[\s\S]*?\n\});/);diff --git a/site/src/data/changelog.en.md b/site/src/data/changelog.en.mdnew file mode 100644index 0000000..52bdae4--- /dev/null+++ b/site/src/data/changelog.en.md@@ -0,0 +1,24 @@+# Changelog++[简体中文](./CHANGELOG.md) | English++This covers changes you'll notice in the app. For older versions, see the [GitHub releases](https://github.com/modelflare-ai/AnyModelBot/releases).++## 0.1.15 - 2026-11-02++### New++- **Accounts shared by all bots:** Add chat and Notion accounts once in Settings › Connections, and every bot can use them. Each service can have several accounts, each with its own alias.+- **Switch bots from a chat:** Send `/bot` in a chat app to see your bots, and `/bot name` once to switch. That chat stays with the new bot, so you don't repeat it on every message. Each bot also knows about the others, so it can answer when you ask.+- **Telegram, Slack and Discord:** Paste a token to connect. No public address needed, and images and files work both ways.+- **Notion:** Connect with one-click authorization or a token. Bots can search, read, create and edit pages, and query databases. They can't delete pages.++### Improved++- **Web search no longer needs a DeepSeek key:** It's free by default, and you can switch to Tavily, Exa, Bocha, Zhipu or your own SearXNG.+- **Characters are separate from roles:** An avatar only sets a bot's looks, and picking a template doesn't change it.++### Changed++- Chat channel setup moved from each bot's info panel to Settings › Connections. Existing accounts move over automatically with no new sign-in, and the same bot still answers by default.+- Owners and allow lists now belong to the account, so anyone allowed on it can talk to any bot. Deleting a bot no longer affects accounts.diff --git a/site/src/data/changelog.md b/site/src/data/changelog.mdnew file mode 100644index 0000000..805b955--- /dev/null+++ b/site/src/data/changelog.md@@ -0,0 +1,26 @@+# 更新日志++简体中文 | [English](./CHANGELOG_en.md)++这里只写用户能感受到的变化。更早的版本见 [GitHub 发布页](https://github.com/modelflare-ai/AnyModelBot/releases)。++## 0.1.15 - 2026-11-02++### 新增++- **账号全局共用:** 微信、飞书、Telegram、Slack、Discord、Notion 的账号在 设置 › 连接 里加一次,所有机器人共用。每个服务可以加多个账号,还能起别名。+- **切换机器人:** 在聊天软件里发 `/bot` 看有哪些机器人,发一次 `/bot 名字` 就换过去,之后这个会话一直和它聊,不用每句都带。每个机器人也知道还有哪些同伴,你问起时它答得上来。+- **Telegram、Slack、Discord:** 填令牌就能连接,不需要公网地址,能收发图片和文件。+- **Notion:** 一键授权或用令牌连接。机器人能搜索、阅读、新建和修改页面,也能查数据库,不能删除页面。+- **读飞书消息:** 扫码授权后,可以对任何机器人说“看我第二个飞书的消息”。它用你的身份读会话、搜消息,只读。+- **飞书扫码添加:** 添加飞书聊天账号时,扫码就能创建应用,不用再手动填 App ID 和 Secret。++### 改进++- **联网搜索不再需要 DeepSeek Key:** 默认用免费搜索,也可以换成 Tavily、Exa、博查、智谱或自建的 SearXNG。+- **角色和岗位分开:** 头像只决定长相,选模板不会换头像。++### 变化++- 聊天渠道的配置从机器人的信息面板搬到了 设置 › 连接。老账号自动迁移,不用重新扫码,默认还是原来的机器人回复。+- 主人和允许名单现在跟着账号走,能用这个账号的人可以和任何机器人聊。删除机器人不再影响账号。diff --git a/site/src/data/channels.ts b/site/src/data/channels.tsindex 6f40759..664f277 100644--- a/site/src/data/channels.ts+++ b/site/src/data/channels.ts@@ -2,7 +2,7 @@//// 不放在 i18n 里:中英文页面展示的渠道可以不同,不是同一份内容的两种语言——// 中文页面是微信、飞书;英文页面是 Slack、Telegram、Discord(用户 2026-11-01 定的:英文页不出现微信 / 飞书)。-// 接入步骤和应用信息面板里的说明一致(src/channels/messenger)。+// 接入步骤和应用 设置 › 连接 里的说明一致(ui/screens/connections.js)。账号全局共用,所有机器人都能用。// 还没做好、要标出来的渠道写 soon(卡片和标签上标出来,接入指南里不放步骤),做好了再补步骤、去掉 soon。// 所以两边条数可以不同,check-i18n 的"结构一致"不适用;禁词扫描(scripts/banned.ts)照样覆盖这个文件。//@@ -31,7 +31,7 @@ export const CHANNELS: Record<Lang, Channel[]> = {guide: {title: "接入微信",steps: [- "打开对话页顶部的机器人名称 → 信息面板 →「渠道」→ 微信 →「扫码登录」。",+ "打开 设置 → 连接 → 微信 →「添加账号」→「扫码登录」。","用微信扫描二维码并确认。也可以在命令行运行 npm run weixin:login。","登录态保存在数据目录,重启后自动续用;登录过期时界面会提示重新扫码。",],@@ -44,9 +44,9 @@ export const CHANNELS: Record<Lang, Channel[]> = {guide: {title: "接入飞书",steps: [- "在飞书开放平台创建企业自建应用,添加「机器人」能力,开通单聊读取、以应用身份发消息、卡片写入权限。",- "在信息面板「渠道 → 飞书」填入 App ID / App Secret 并保存。",- "事件订阅选「使用长连接接收事件」,添加 im.message.receive_v1;发布版本后在飞书里私聊机器人。",+ "打开 设置 → 连接 → 飞书 →「添加账号」。",+ "用飞书扫码,自动创建机器人应用。也可以点「用已有应用」,填企业自建应用的 App ID / App Secret。",+ "在飞书里私聊机器人。第一个发消息的人成为主人。",],limit: "目前只处理单聊,群聊消息会被忽略。",},@@ -60,7 +60,7 @@ export const CHANNELS: Record<Lang, Channel[]> = {steps: ["At api.slack.com/apps, create an app, turn on Socket Mode and generate an app-level token (xapp-…) with connections:write.","Add the bot scopes chat:write, im:history, files:read and files:write, subscribe to the message.im event and allow messages in App Home. Install the app to your workspace and copy the bot token (xoxb-…).",- "Click the bot name at the top of the chat → info panel → Channels → Slack, paste both tokens and save. Then send the bot a direct message in Slack.",+ "Open Settings → Connections → Slack → Add account, paste both tokens and save. Then send the bot a direct message in Slack.",],limit: "Direct messages only for now. The app has to be running: messages sent while it's closed aren't received.",},@@ -71,7 +71,7 @@ export const CHANNELS: Record<Lang, Channel[]> = {title: "Connect Telegram",steps: ["In Telegram, message @BotFather, send /newbot and follow the prompts. Copy the bot token it gives you.",- "Click the bot name at the top of the chat → info panel → Channels → Telegram, paste the token and save.",+ "Open Settings → Connections → Telegram → Add account, paste the token and save.","Open your new bot in Telegram and send it a message. It connects over long polling, so your computer needs no public address.",],limit: "Direct messages only for now. Messages sent while the app is closed are picked up for up to 24 hours.",@@ -84,7 +84,7 @@ export const CHANNELS: Record<Lang, Channel[]> = {steps: ["In the Discord Developer Portal, create an application, add a bot and copy its token.","Under OAuth2 → URL Generator, tick the bot scope and open the link to add the bot to a server you're in.",- "Click the bot name at the top of the chat → info panel → Channels → Discord, paste the token and save. Then send the bot a direct message.",+ "Open Settings → Connections → Discord → Add account, paste the token and save. Then send the bot a direct message.",],limit: "Direct messages only for now. The app has to be running: messages sent while it's closed aren't received.",},diff --git a/site/src/i18n/en.ts b/site/src/i18n/en.tsindex 7d83ce0..4880d5e 100644--- a/site/src/i18n/en.ts+++ b/site/src/i18n/en.ts@@ -380,6 +380,8 @@ export const en: Dict = {{ q: "Is my data uploaded to your servers?", a: "Chats, memory, files and keys are stored on your device. Model requests go through Modelflare to the provider you choose; log retention follows Modelflare's “Data retention” doc. Screen content seen during computer use is sent to the chosen model." },{ q: "Does it work offline?", a: "No. Models come from Modelflare; local models aren't supported." },{ q: "Can I use it on my phone?", a: "There's no standalone app yet; chat with it in Slack, Telegram or Discord." },+ { q: "Can one chat account talk to several bots?", a: "Yes. Add the account once in Settings › Connections and every bot shares it. Each service can have several accounts, each with an alias. A default bot answers new chats; send /bot and a name once to switch, and that chat stays with the new bot. Send /bot to see your bots." },+ { q: "Can bots work with my Notion?", a: "Yes, once you authorize it. Add accounts in Settings › Connections, as many as you like, then ask any bot about them by number or alias. Bots can read and edit pages but can't delete them, and read-only bots can only read." },{ q: "I don't have a Modelflare account.", a: "At first launch, click Sign in / Sign up for Modelflare and sign up in your browser. The app connects itself when you come back, with no key to copy. On Docker or a remote server, paste an API key instead. In mainland China, pick the China-optimised route under Advanced." },{ q: "Is computer use safe?", a: "Limited to 24 whitelisted actions; runs automatically by default, switchable to ask before UI-changing actions; screen content goes to the model; try it on a dedicated machine or account first." },{ q: "How do I verify a download?", a: "Each download lists a SHA-256; use Get-FileHash on Windows, shasum -a 256 on macOS/Linux. GitHub releases also include a SHA256SUMS file you can check in one go with sha256sum -c." },@@ -489,7 +491,7 @@ export const en: Dict = {description: "AnyModelBot versions and release notes.",h1: "Changelog",current: "Current version {version}, published {publishedAt}.",- body: "Full notes and installers for every version are on the GitHub releases page.",+ body: "Older versions and all installers are on the GitHub releases page.",link: "Go to GitHub releases →",},notFound: { title: "Page not found — AnyModelBot", h1: "Page not found.", home: "Back to home" },diff --git a/site/src/i18n/zh.ts b/site/src/i18n/zh.tsindex 78797d6..65ba282 100644--- a/site/src/i18n/zh.ts+++ b/site/src/i18n/zh.ts@@ -386,6 +386,8 @@ export const zh = {{ q: "我的数据会上传到你们的服务器吗?", a: "对话、记忆、文件和密钥保存在你的设备上。模型请求会经 Modelflare 发往你选择的模型厂商;Modelflare 的日志保留期以其文档《Data retention》为准。电脑操作时的屏幕内容会作为输入发给所选模型。" },{ q: "不联网能用吗?", a: "不能。模型来自 Modelflare,不支持本地模型。" },{ q: "能在手机上用吗?", a: "暂无独立 App;用微信或飞书和它聊。" },+ { q: "一个微信账号能和好几个机器人聊吗?", a: "能。账号在 设置 › 连接 里加一次,所有机器人共用,每个渠道可以加多个账号、起别名。新会话由默认机器人回复;在聊天里发一次 /bot 名字 就换过去,之后这个会话一直和它聊。发 /bot 能看到有哪些机器人。" },+ { q: "机器人能读我的 Notion 和飞书消息吗?", a: "能,你授权之后才可以。在 设置 › 连接 里添加账号,可以加多个,然后对任何机器人说“看我第二个飞书的消息”。Notion 能读能写,不能删除页面;飞书只读。只读权限的机器人只能读。" },{ q: "我没有 Modelflare 账号?", a: "首次启动点「登录 / 注册 Modelflare」,在浏览器里注册一个就行,回到 App 会自动连好,不用复制 Key。Docker 或远程部署改为粘贴 API Key。在中国大陆可在「高级」里选「中国大陆优化」线路。" },{ q: "电脑操作安全吗?", a: "受限 24 个动作 + 白名单;默认自动执行,可改为“改变界面的操作先询问”;屏幕内容会发给模型;建议先在专用机器或账号上试用。" },{ q: "怎么校验下载的文件?", a: "每个下载旁都有 SHA-256;Windows 用 Get-FileHash,macOS / Linux 用 shasum -a 256。GitHub 发布页另附 SHA256SUMS 文件,可以用 sha256sum -c 一次核对。" },@@ -495,7 +497,7 @@ export const zh = {description: "AnyModelBot 的版本与更新记录。",h1: "更新日志",current: "当前版本 {version},发布于 {publishedAt}。",- body: "每个版本的完整说明与安装包都在 GitHub 发布页。",+ body: "更早的版本和所有安装包在 GitHub 发布页。",link: "前往 GitHub 发布页 →",},notFound: { title: "找不到这一页|AnyModelBot", h1: "找不到这一页。", home: "回首页" },diff --git a/site/src/lib/changelog.ts b/site/src/lib/changelog.tsnew file mode 100644index 0000000..de1fc2c--- /dev/null+++ b/site/src/lib/changelog.ts@@ -0,0 +1,33 @@+// 更新日志页(views/ChangelogView.astro):把仓库根目录的 CHANGELOG 解析成版本列表。原文由 sync-from-app 同步到 data/。+// 只认更新日志用到的那点 Markdown:## 版本 - 日期、### 分组、- 条目、**粗体**、`代码`。+export interface ChangelogRelease {+ version: string;+ date: string;+ groups: { title: string; items: string[] }[];+}++/** 条目转成 HTML:先转义,内容来自仓库里的文件,也不留任何原始 HTML */+export function inlineHtml(text: string): string {+ return text+ .replace(/&/g, "&")+ .replace(/</g, "<")+ .replace(/>/g, ">")+ .replace(/\*\*([^*]+)\*\*/g, "<b>$1</b>")+ .replace(/`([^`]+)`/g, "<code>$1</code>");+}++export function parseChangelog(markdown: string): ChangelogRelease[] {+ const out: ChangelogRelease[] = [];+ for (const raw of markdown.split(/\r?\n/)) {+ const line = raw.trim();+ const release = /^## +(\S+)(?: +- +(\S+))?/.exec(line);+ const current = out[out.length - 1];+ if (release) out.push({ version: release[1], date: release[2] ?? "", groups: [] });+ else if (current && line.startsWith("### ")) current.groups.push({ title: line.slice(4).trim(), items: [] });+ else if (current && line.startsWith("- ")) {+ if (!current.groups.length) current.groups.push({ title: "", items: [] });+ current.groups[current.groups.length - 1].items.push(inlineHtml(line.slice(2)));+ }+ }+ return out;+}diff --git a/site/src/views/ChangelogView.astro b/site/src/views/ChangelogView.astroindex b2a7033..f2a9609 100644--- a/site/src/views/ChangelogView.astro+++ b/site/src/views/ChangelogView.astro@@ -2,15 +2,32 @@import Base from "../layouts/Base.astro";import { dict, fmt, fmtDate, type Lang } from "../i18n";import { releases, GITHUB_URL } from "../lib/site";+import { parseChangelog } from "../lib/changelog";+import changelogZh from "../data/changelog.md?raw";+import changelogEn from "../data/changelog.en.md?raw";+import "../styles/pages.css";interface Props { lang: Lang }const { lang } = Astro.props;const t = dict(lang);const c = t.changelog;+// 内容来自仓库根目录的 CHANGELOG.md、CHANGELOG_en.md(sync-from-app 同步过来);发版前写好,发版流程会检查+const list = parseChangelog(lang === "en" ? changelogEn : changelogZh);---<Base lang={lang} path="/changelog" title={c.title} description={c.description}><article class="container page prose"><header class="page__head"><h1>{c.h1}</h1></header><p>{fmt(c.current, { version: releases.version, publishedAt: fmtDate(releases.publishedAt, lang) })}</p>+ {list.map((r) => (+ <section>+ <h2>{r.version}{r.date && <span class="muted"> · {fmtDate(r.date, lang)}</span>}</h2>+ {r.groups.map((g) => (+ <>+ {g.title && <h3>{g.title}</h3>}+ <ul class="ticks" role="list">{g.items.map((item) => <li set:html={item} />)}</ul>+ </>+ ))}+ </section>+ ))}<p>{c.body}</p><p class="page__cta"><a class="btn btn--secondary" href={`${GITHUB_URL}/releases`} target="_blank" rel="noopener">{c.link}</a></p></article>