🤖 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
release: 0.1.15,发布说明改用更新日志
dyk984b41096e42e0
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 9783c13..d9da865 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -84,7 +84,11 @@ jobs:- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:persist-credentials: false- sparse-checkout: package.json+ sparse-checkout: |+ package.json+ CHANGELOG.md+ CHANGELOG_en.md+ scripts/release-notes.mjssparse-checkout-cone-mode: false- name: Read package.json version and match it against the tag@@ -101,6 +105,10 @@ jobs:echo "version=$version" >> "$GITHUB_OUTPUT"echo "Building anymodel-bot $version"+ - name: This version has a changelog entry+ if: github.ref_type == 'tag'+ run: node scripts/release-notes.mjs "${{ steps.version.outputs.version }}" > /dev/null+- name: Select installersid: matrixenv:@@ -297,6 +305,20 @@ jobs:permissions:contents: writesteps:+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ with:+ persist-credentials: false+ sparse-checkout: |+ CHANGELOG.md+ CHANGELOG_en.md+ scripts/release-notes.mjs+ sparse-checkout-cone-mode: false++ - name: Write the release notes from the changelog+ env:+ VERSION: ${{ needs.meta.outputs.version }}+ run: node scripts/release-notes.mjs "$VERSION" > "$RUNNER_TEMP/release-notes.md"+- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2with:pattern: anymodel-bot-${{ needs.meta.outputs.version }}-*@@ -318,8 +340,9 @@ jobs:run: |if gh release view "$TAG" > /dev/null 2>&1; thengh release upload "$TAG" ./* --clobber+ gh release edit "$TAG" --notes-file "$RUNNER_TEMP/release-notes.md"elseflags=()if [[ "$TAG" == *-* ]]; then flags+=(--prerelease); fi- gh release create "$TAG" ./* --verify-tag --title "$TAG" --generate-notes "${flags[@]}"+ gh release create "$TAG" ./* --verify-tag --title "$TAG" --notes-file "$RUNNER_TEMP/release-notes.md" "${flags[@]}"fidiff --git a/CHANGELOG.md b/CHANGELOG.mdnew file mode 100644index 0000000..805b955--- /dev/null+++ b/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/CHANGELOG_en.md b/CHANGELOG_en.mdnew file mode 100644index 0000000..cc91f80--- /dev/null+++ b/CHANGELOG_en.md@@ -0,0 +1,26 @@+# 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.+- **Read Feishu messages:** Authorize with a QR code, then ask any bot to "check my second Feishu". It reads chats and searches messages as you, read-only.+- **Add Feishu by scanning:** When adding a Feishu chat account, scan a QR code to create the app instead of entering an App ID and Secret.++### 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/README.md b/README.mdindex 807761d..a964355 100644--- a/README.md+++ b/README.md@@ -324,7 +324,7 @@ Modelflare 会保留请求日志;保留什么、保留多久,见它的[信# 📝 路线图-我们正在探索的方向。它们不是承诺,顺序也不是排期。+我们正在探索的方向。它们不是承诺,顺序也不是排期。每个版本实际改了什么,见[更新日志](./CHANGELOG.md)。- [x] **定时任务**:让机器人按时间表自己干活(已上线,就是上面的规则)。- [ ] **群聊**:目前各聊天渠道只处理一对一对话。diff --git a/README_en.md b/README_en.mdindex b5bdde1..86c6e9d 100644--- a/README_en.md+++ b/README_en.md@@ -324,7 +324,7 @@ Modelflare keeps request logs; its [Trust Center](https://modelflare.dev/trust?u# 📝 Roadmap-Directions we are exploring. They are not promises, and the order is not a schedule.+Directions we are exploring. They are not promises, and the order is not a schedule. For what changed in each version, see the [changelog](./CHANGELOG_en.md).- [x] **Scheduled tasks**: let a bot run work on a timer (shipped as rules, above).- [ ] **Group chats**: chat channels handle one-to-one chats today.diff --git a/docs/development.md b/docs/development.mdindex 6ffec6b..3baa9df 100644--- a/docs/development.md+++ b/docs/development.md@@ -71,7 +71,7 @@ npm run test:dsh-bundle # 用 Electron 跑真实 DSH 集成测试,加载打- 界面只监听 127.0.0.1,且每次启动生成随机访问令牌,其他本机程序无法直接调用管理接口。- 退出时先停渠道、再停 magpie;若上次被强杀残留 magpie 进程,下次启动会自动清理(Linux/macOS)。-发布:改 `package.json` 的版本号并提交,推送 `v<版本>` 标签,`.github/workflows/release.yml` 会在六种系统 / 架构上各自打包,并把安装包和 `SHA256SUMS` 发到 GitHub Release。签名与公证所需的仓库密钥见该文件开头的注释。同一个标签还会触发 `.github/workflows/docker.yml`,把 x64 + arm64 镜像发布到 `ghcr.io/modelflare-ai/anymodel-bot`(`<版本>` 和 `latest` 两个标签)。+发布:在 `CHANGELOG.md` 和 `CHANGELOG_en.md` 写好这个版本的更新日志(用户能感受到的变化,不写网站和内部改动。官网英文页不显示提到微信、飞书的行),改 `package.json` 的版本号并提交,推送 `v<版本>` 标签。这个版本没写更新日志时,发布流程开始就会失败;写了就作为 GitHub Release 的说明,官网更新日志页也显示它。`.github/workflows/release.yml` 会在六种系统 / 架构上各自打包,并把安装包和 `SHA256SUMS` 发到 GitHub Release。签名与公证所需的仓库密钥见该文件开头的注释。同一个标签还会触发 `.github/workflows/docker.yml`,把 x64 + arm64 镜像发布到 `ghcr.io/modelflare-ai/anymodel-bot`(`<版本>` 和 `latest` 两个标签)。## Dockerdiff --git a/docs/development_en.md b/docs/development_en.mdindex 79ff014..b4158ad 100644--- a/docs/development_en.md+++ b/docs/development_en.md@@ -71,7 +71,7 @@ npm run test:dsh-bundle # real DSH integration test under Electron against the- The console listens on 127.0.0.1 only and generates a random access token on every launch, so other local programs cannot call the management API directly.- On quit, channels stop first, then magpie. If a previous run was killed and left a magpie process behind, the next launch cleans it up (Linux/macOS).-Releases: bump `version` in `package.json`, commit, and push a `v<version>` tag. `.github/workflows/release.yml` builds on each of the six OS / architecture runners and publishes the installers plus `SHA256SUMS` to a GitHub Release. The repository secrets needed for signing and notarization are described in the comment at the top of that file. The same tag also starts `.github/workflows/docker.yml`, which publishes the x64 + arm64 image to `ghcr.io/modelflare-ai/anymodel-bot` (tagged `<version>` and `latest`).+Releases: write this version's entry in `CHANGELOG.md` and `CHANGELOG_en.md` (changes users will notice, not the website or internals; the English site page leaves out lines that mention WeChat or Feishu), bump `version` in `package.json`, commit, and push a `v<version>` tag. Without an entry the release workflow fails at the start. With one, it becomes the GitHub Release notes and appears on the site's changelog page. `.github/workflows/release.yml` builds on each of the six OS / architecture runners and publishes the installers plus `SHA256SUMS` to a GitHub Release. The repository secrets needed for signing and notarization are described in the comment at the top of that file. The same tag also starts `.github/workflows/docker.yml`, which publishes the x64 + arm64 image to `ghcr.io/modelflare-ai/anymodel-bot` (tagged `<version>` and `latest`).## Dockerdiff --git a/package-lock.json b/package-lock.jsonindex d1d1bd5..12aaaa6 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "anymodel-bot",- "version": "0.1.14",+ "version": "0.1.15","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "anymodel-bot",- "version": "0.1.14",+ "version": "0.1.15","license": "MIT","dependencies": {"@larksuiteoapi/node-sdk": "1.76.0",diff --git a/package.json b/package.jsonindex 25b6dd8..9358ee0 100644--- a/package.json+++ b/package.json@@ -1,7 +1,7 @@{"name": "anymodel-bot","productName": "anymodel bot",- "version": "0.1.14",+ "version": "0.1.15","private": true,"description": "anymodel bot:任意模型的个人 AI 助手(飞书 + 微信 iLink),内置 magpie 模型网关","license": "MIT",diff --git a/scripts/release-notes.mjs b/scripts/release-notes.mjsnew file mode 100644index 0000000..66d4389--- /dev/null+++ b/scripts/release-notes.mjs@@ -0,0 +1,41 @@+#!/usr/bin/env node+/**+ * 发布说明:从 CHANGELOG.md 和 CHANGELOG_en.md 取出这个版本的那一段,中文在前。+ * .github/workflows/release.yml 用它;开始打包前就检查一次,这个版本没写更新日志就直接失败,不会发出空说明。+ *+ * 用法:node scripts/release-notes.mjs <版本号>+ */+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";++/** 取出 "## <版本> - 日期" 下面到下一个 "## " 之前的内容;没有或是空的回 undefined */+export function changelogSection(markdown, version) {+ const lines = markdown.split(/\r?\n/);+ const head = (line) => /^## /.test(line);+ const start = lines.findIndex((line) => head(line) && line.slice(3).trim().split(/\s+/)[0].replace(/^v/, "") === version);+ if (start < 0) return undefined;+ const rest = lines.slice(start + 1);+ const end = rest.findIndex(head);+ const body = (end < 0 ? rest : rest.slice(0, end)).join("\n").trim();+ return body || undefined;+}++if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {+ const version = process.argv[2];+ const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+ if (!version) {+ console.error("usage: release-notes.mjs <version>");+ process.exit(2);+ }+ const parts = [];+ for (const file of ["CHANGELOG.md", "CHANGELOG_en.md"]) {+ const section = changelogSection(fs.readFileSync(path.join(root, file), "utf8"), version);+ if (!section) {+ console.error(`${file} has no entry for ${version}. Write it before tagging the release.`);+ process.exit(1);+ }+ parts.push(section);+ }+ process.stdout.write(`${parts.join("\n\n---\n\n")}\n`);+}diff --git a/test/changelog.unit.test.ts b/test/changelog.unit.test.tsnew file mode 100644index 0000000..c92f505--- /dev/null+++ b/test/changelog.unit.test.ts@@ -0,0 +1,37 @@+import { execFileSync, spawnSync } from "node:child_process";+import fs from "node:fs";+import { describe, expect, it } from "vitest";+// @ts-expect-error 没有类型声明的脚本+import { changelogSection } from "../scripts/release-notes.mjs";++const SAMPLE = "# 更新日志\n\n## 1.2.0 - 2026-11-02\n\n### 新增\n\n- 甲\n\n## 1.1.0 - 2026-10-01\n\n- 乙\n\n## 1.0.0\n";+const version = JSON.parse(fs.readFileSync("package.json", "utf8")).version as string;++describe("更新日志", () => {+ it("只取这个版本的那一段;没有或是空的回 undefined;不会把 1.2.0 认成 1.2.01", () => {+ expect(changelogSection(SAMPLE, "1.2.0")).toBe("### 新增\n\n- 甲");+ expect(changelogSection(SAMPLE, "1.1.0")).toBe("- 乙");+ expect(changelogSection(SAMPLE, "1.0.0")).toBeUndefined();+ expect(changelogSection(SAMPLE, "1.2")).toBeUndefined();+ expect(changelogSection(SAMPLE, "9.9.9")).toBeUndefined();+ });++ it("当前版本中英文都写了;发布说明中文在前", () => {+ const notes = execFileSync(process.execPath, ["scripts/release-notes.mjs", version], { encoding: "utf8" });+ expect(notes).toContain("### 新增");+ expect(notes.indexOf("### 新增")).toBeLessThan(notes.indexOf("### New"));+ });++ it("这个版本没写更新日志:脚本失败,发布流程开始就停下", () => {+ const r = spawnSync(process.execPath, ["scripts/release-notes.mjs", "9.9.9"], { encoding: "utf8" });+ expect(r.status).toBe(1);+ expect(r.stderr).toContain("no entry for 9.9.9");+ });++ it("发布流程用更新日志做说明,不再用自动生成的 PR 列表", () => {+ const yml = fs.readFileSync(".github/workflows/release.yml", "utf8");+ expect(yml).not.toContain("--generate-notes");+ expect(yml).toContain("--notes-file");+ expect(yml).toContain("This version has a changelog entry");+ });+});