Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,18 @@ memory/
# Python byte-code from local scripts
__pycache__/
*.pyc

# Roadshow decks and prompts: pitch material for one audience, not product docs.
/微信流路演/
/路演PPT提示词.md

# Third-party signing library; save_video.py/sign.mjs fetch it from its origin
# on first run, so the repository never redistributes someone else's code.
shared/Skills/wechat-video-download/scripts/enc.js

# Icon exploration rounds stay local; only the brief and the final masters ship.
/design/chatbridge-icon/*
!/design/chatbridge-icon/v3/
/design/chatbridge-icon/v3/*
!/design/chatbridge-icon/v3/brief.md
!/design/chatbridge-icon/v3/final/
22 changes: 13 additions & 9 deletions PRODUCT_CAPABILITIES.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 微信流(WeChatBridge)产品能力文档

> 基于 main 分支当前代码整理
> 平台:macOS 13 及以上
> 文档日期:2026-09-20
> 基于 v0.1.16 代码整理
> 平台:macOS 13 及以上(本文只描述 macOS 版)
> 文档日期:2026-11-24

## 1. 产品定义

微信流是一个完全本地运行的 macOS 微信聊天记录转发与归档工具。它把微信“转发到其他应用”产生的 ZIP、TXT 和媒体文件,送到 Codex、Claude、豆包、千问办公、WorkBuddy、WeSight、Obsidian、其他应用或剪贴板。
微信流是一个以本地接收和归档为基础的 macOS 微信聊天记录转发工具,可选接入云端技能。它把微信“转发到其他应用”产生的 ZIP、TXT 和媒体文件,送到 Codex、Claude、豆包、千问办公、WorkBuddy、WeSight、DeepSeek Harness、Obsidian、本地文件夹、其他应用或剪贴板。

核心价值:

Expand Down Expand Up @@ -177,7 +177,9 @@

### 8.2 网络

- 除软件更新外不联网。
- 默认本地转发与归档不上传整份聊天。
- 用户启用云端账号/技能后,App 和签名 wcb 访问所配置服务。执行只提交经用户授权的必要输入;账号、目录、报价与授权元数据也会联网。
- 目标 Agent 是独立的数据处理方,其保存行为不由微信流控制。
- 十二个 Share Extension 均在沙盒中运行。
- 扩展没有网络权限。

Expand All @@ -200,7 +202,7 @@
- 支持 Universal 2,即 `arm64` 和 `x86_64`。
- 使用 Developer ID Application 签名。
- App 和 DMG 支持 Apple 公证与 stapling。
- 提供 DMG、Homebrew Cask、SHA-256 校验文件。
- 提供 DMG 与 SHA-256 校验文件(Homebrew Cask 仍在路线图中)。
- 支持 Sparkle 更新源。
- MIT 许可证。

Expand All @@ -212,7 +214,7 @@
4. 自动粘贴依赖辅助功能权限、目标 App 可激活性和窗口焦点。
5. 场景识别群名依赖屏幕录制权限和微信标题栏可读性。
6. Codex/Claude 转发进入目标应用的输入区域,不等于官方 API 建场景。
7. 不提供 Windows、iOS、Android 或云端版本。
7. 本文只覆盖 macOS 版。Windows 版见 `windows/docs/`,iOS 版(信息桥)尚未正式发布,不提供 Android 版;云端技能是可选能力,默认不启用。
8. 不提供多设备同步、团队共享空间或服务端搜索。

## 11. 关键实现位置
Expand All @@ -221,16 +223,18 @@
|---|---|
| 十二个分享入口 | `macos/Scripts/share-slots.sh` |
| Share Extension 接入 | `macos/Sources/WeChatBridgeShare/ShareViewController.swift` |
| 附件复制与命名 | `macos/Sources/WeChatBridgeShare/AttachmentImporter.swift` |
| 附件复制与命名 | `macos/Sources/WeChatBridgeCore/AttachmentImporter.swift` |
| 目标应用定义 | `macos/Sources/WeChatBridgeCore/ShareAction.swift` |
| 自定义目标 | `macos/Sources/WeChatBridgeCore/ForwardTarget.swift` |
| 激活和自动粘贴 | `macos/Sources/WeChatBridgeApp/AutoPaste.swift` |
| 转发执行与兜底 | `macos/Sources/WeChatBridgeApp/ActionRunner.swift` |
| 场景匹配与快捷键 | `macos/Sources/WeChatBridgeCore/Scene.swift`、`macos/Sources/WeChatBridgeApp/SceneShortcutController.swift` |
| 技能模型与安装 | `macos/Sources/WeChatBridgeCore/AgentID.swift`、`macos/Sources/WeChatBridgeApp/SkillLibrary.swift` |
| 技能页面 | `macos/Sources/WeChatBridgeApp/Views/Settings/SkillsPane.swift` |
| Obsidian 投递 | `macos/Sources/WeChatBridgeApp/KnowledgeDelivery.swift`、`macos/Sources/WeChatBridgeCore/ObsidianNote.swift` |
| Obsidian 投递 | `macos/Sources/WeChatBridgeCore/KnowledgeDelivery.swift`、`macos/Sources/WeChatBridgeCore/ObsidianNote.swift` |
| 批次状态 | `macos/Sources/WeChatBridgeCore/BatchState.swift` |
| 共享目录 | `macos/Sources/WeChatBridgeCore/Inbox.swift` |
| 云端账号与付费技能(可选) | `macos/Sources/WeChatBridgeApp/CloudAccount.swift`、`macos/Sources/WeChatBridgeCore/Commerce.swift`、`macos/Sources/WeChatBridgeCore/SkillMonetization.swift` |
| 命令行桥 wcb | `macos/Sources/wcb/main.swift` |
| App 打包和签名 | `macos/Scripts/make-app.sh` |
| 发布和公证 | `macos/Scripts/release.sh` |
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<img src="shared/Screenshots/app-icon-rounded.png" width="128" alt="WeChatBridge 图标" />
<h1>WeChatBridge(微信流)</h1>
<p><strong>群里几百条消息没空翻?多选、转发,一步交给 AI 总结,或存进你的知识库。</strong></p>
<p>在微信「转发到其他应用」里直接选 Codex、Claude、豆包、千问、Obsidian……不读数据库、不注入微信,全程本地。</p>
<p>在微信「转发到其他应用」里直接选 Codex、Claude、豆包、千问、Obsidian……不读数据库、不注入微信,聊天记录默认留在本地,可选接入云端技能。</p>

<p>
<a href="#下载安装"><img src="https://img.shields.io/badge/免费下载-macOS%20%7C%20Windows-07C160?style=flat-square" alt="免费下载" /></a>
<a href="#下载安装"><img src="https://img.shields.io/badge/免费下载-macOS%20%7C%20Windows%20%7C%20Android-07C160?style=flat-square" alt="免费下载" /></a>
<a href="#加入交流群"><img src="https://img.shields.io/badge/交流群-点击进群-07C160?style=flat-square&logo=wechat&logoColor=white" alt="加入交流群" /></a>
<a href="https://github.com/freestylefly/WeChatBridge/stargazers"><img src="https://img.shields.io/github/stars/freestylefly/WeChatBridge?style=flat-square" alt="GitHub Stars" /></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT License" /></a>
Expand Down Expand Up @@ -69,8 +69,9 @@
| --- | --- | --- |
| macOS 13+(Apple Silicon 与 Intel) | [wwbsr.lanzout.com/b0umjur8h](https://wwbsr.lanzout.com/b0umjur8h) | `向明` |
| Windows | [wwbsr.lanzout.com/b0umjur4d](https://wwbsr.lanzout.com/b0umjur4d) | `向明` |
| Android 8.0+(`1.0.0-beta1`) | [wwbsr.lanzout.com/b0umpq8mj](https://wwbsr.lanzout.com/b0umpq8mj) | `向明` |

macOS 版打开 DMG,把「微信流」拖入「应用程序」即可(图标带 🚫 或提示「无法验证」见[常见问题](USAGE.zh-CN.md#常见问题));Windows 版解压后按目录内说明运行。iOS 版正在开发中,进群可以第一时间知道进展。
macOS 版打开 DMG,把「微信流」拖入「应用程序」即可(图标带 🚫 或提示「无法验证」见[常见问题](USAGE.zh-CN.md#常见问题));Windows 版解压后按目录内说明运行;Android 版(`1.0.0-beta1`,支持 Android 8.0 ~ Android 16,纯本地无联网权限)也可在 [GitHub Releases](https://github.com/freestylefly/WeChatBridge/releases/tag/v1.0.0-android-beta1) 下载,详情见 [android/README.md](android/README.md)。iOS 版正在开发中,进群可以第一时间知道进展。

## 加入交流群

Expand Down Expand Up @@ -188,7 +189,8 @@ flowchart LR

- 聊天内容只来自微信主动导出的文件。
- 不读取微信数据库,不解密、不注入、不修改微信进程。
- 聊天归档、场景和记录保存在本机。
- 聊天归档、场景和记录默认保存在本机。
- 可选云端技能会访问用户配置的服务:账号、技能目录与执行授权需要联网;按量执行只提交用户授权的必要输入。
- Share Extension 在 macOS 沙盒中运行且没有网络权限。
- 屏幕录制权限只用于识别微信标题栏中的聊天名,图像仅在内存中处理。
- 辅助功能权限只用于激活目标应用和执行粘贴。
Expand All @@ -205,7 +207,7 @@ flowchart LR
<th align="center">苍何</th>
</tr>
<tr>
<td align="center"><img src="shared/Screenshots/wechat-xiangming.jpg" width="360" alt="公众号「向明」二维码" /></td>
<td align="center"><img src="shared/Screenshots/wechat-xiangming.jpg" width="360" alt="向明微信二维码" /></td>
<td align="center"><img src="shared/Screenshots/wechat-canghe.jpg" width="360" alt="苍何微信二维码" /></td>
</tr>
</table>
Expand All @@ -216,7 +218,7 @@ flowchart LR

### 从源码构建

需要 macOS 14+,以及 Xcode 16 或兼容 Swift 6 的 Command Line Tools。
构建需要 Xcode 16 或兼容 Swift 6 的 Command Line Tools(Xcode 16 本身要求 macOS 14.5+);构建出的 App 可在 macOS 13+ 运行。

```bash
git clone https://github.com/freestylefly/WeChatBridge.git
Expand Down Expand Up @@ -248,6 +250,9 @@ Scripts/dev-preview.sh # 构建、安装并打开开发

# Windows
dotnet test windows/WeChatBridge.Windows.sln -c Release

# Android(需 JDK 21 与 Android SDK)
bash android/scripts/verify.sh --release
```

<details>
Expand All @@ -265,6 +270,11 @@ macos/ # macOS 端 — 完整 SwiftPM 包

ios/ # iOS 端(开发中)— XcodeGen 工程,复用 WeChatBridgeCore

android/ # Android 端(1.0.0-beta1)— Gradle / Jetpack Compose 工程
├── core/ # 纯 Kotlin/JVM 核心逻辑(Inbox 契约、归档解析、场景与笔记导出)
├── app/ # Android 主应用、分享接收、投递编排、悬浮球与快捷磁贴
└── scripts/ # 一键构建、单测、lint 与权限白名单校验脚本

windows/ # Windows 端 — .NET WPF 解决方案
├── src/WeChatBridge.Windows/ # 主程序(WPF)
├── src/WeChatBridge.Windows.Core/ # Inbox 契约、投递、场景、技能(无 UI 依赖)
Expand All @@ -283,7 +293,7 @@ shared/ # 多端共用的资产与契约
site/ # Sparkle 更新源与版本说明
```

项目使用 Swift Package Manager 管理 macOS 源码和 Sparkle 依赖。`macos/Scripts/make-app.sh` 会把主程序与十二个 Share Extension 组装成完整的 `.app`。iOS 侧见 `ios/project.yml`,Windows 侧见 `windows/AGENTS.md` 与 `windows/docs/README.zh-CN.md`。
项目使用 Swift Package Manager 管理 macOS 源码和 Sparkle 依赖。`macos/Scripts/make-app.sh` 会把主程序与十二个 Share Extension 组装成完整的 `.app`。iOS 侧见 `ios/project.yml`,Windows 侧见 `windows/docs/README.zh-CN.md`。

</details>

Expand All @@ -308,6 +318,7 @@ site/ # Sparkle 更新源与版本说明
- [x] Universal 2 构建、签名与公证流程
- [x] 首个公开 DMG Release
- [x] Windows 版
- [x] Android 版(`1.0.0-beta1`)
- [ ] iOS 版
- [ ] Homebrew Cask
- [ ] 更多社区场景和技能包
Expand Down
13 changes: 7 additions & 6 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="shared/Screenshots/app-icon-rounded.png" width="128" alt="WeChatBridge icon" />
<h1>WeChatBridge (微信流)</h1>
<p><strong>Hundreds of unread group messages? Select, forward, and hand them to AI for a summary—or save them to your knowledge base.</strong></p>
<p>Pick Codex, Claude, Doubao, QwenWork, Obsidian, and more straight from WeChat's “Forward to other apps” menu. No database access, no injection into WeChat, fully local.</p>
<p>Pick Codex, Claude, Doubao, QwenWork, Obsidian, and more straight from WeChat's “Forward to other apps” menu. No database access, no injection into WeChat. Chats stay local by default, with optional cloud skills.</p>

<p>
<a href="#download"><img src="https://img.shields.io/badge/free%20download-macOS%20%7C%20Windows-07C160?style=flat-square" alt="Free download" /></a>
Expand Down Expand Up @@ -184,11 +184,12 @@ When collecting in batches, select each batch in WeChat and share it to “Colle

## Privacy by design

Your conversations only move around on your own computer:
By default your conversations stay on your own computer:

- Conversation content only comes from files explicitly exported by WeChat.
- The app does not read WeChat databases, decrypt data, inject code, or modify WeChat.
- Archives, scenes, and history stay on your computer.
- Archives, scenes, and history stay on your computer by default.
- Optional cloud skills (in development) talk to a service you configure: accounts, the skill catalog and execution grants need the network, and metered runs submit only the inputs you authorize. Local archives are never uploaded in bulk, and cloud credentials are kept separate between the app and its signed `wcb` CLI.
- Every Share Extension runs inside the macOS sandbox without network access.
- Screen Recording is used only to recognize the chat name in WeChat's title bar; images are processed in memory.
- Accessibility is used only to activate a destination and perform the paste action.
Expand All @@ -203,7 +204,7 @@ For project updates and tips, follow our WeChat Official Account or add us on We
<th align="center">苍何</th>
</tr>
<tr>
<td align="center"><img src="shared/Screenshots/wechat-xiangming.jpg" width="360" alt="QR code for the WeChat Official Account 向明" /></td>
<td align="center"><img src="shared/Screenshots/wechat-xiangming.jpg" width="360" alt="WeChat QR code for 向明" /></td>
<td align="center"><img src="shared/Screenshots/wechat-canghe.jpg" width="360" alt="WeChat QR code for 苍何" /></td>
</tr>
</table>
Expand All @@ -214,7 +215,7 @@ For project updates and tips, follow our WeChat Official Account or add us on We

### Build from source

Requires macOS 14+ and Xcode 16 or Command Line Tools with Swift 6 support.
Building requires Xcode 16 or Command Line Tools with Swift 6 support (Xcode 16 itself needs macOS 14.5+); the built app runs on macOS 13+.

```bash
git clone https://github.com/freestylefly/WeChatBridge.git
Expand Down Expand Up @@ -263,7 +264,7 @@ shared/ # Agent logos, design assets, screenshots, demos, and
site/ # Sparkle update feed and release notes
```

Swift Package Manager owns the macOS source layout and the Sparkle dependency. `macos/Scripts/make-app.sh` assembles the host executable and twelve Share Extensions into a complete `.app` bundle. For iOS see `ios/project.yml`; for Windows see `windows/AGENTS.md` and `windows/docs/README.zh-CN.md`.
Swift Package Manager owns the macOS source layout and the Sparkle dependency. `macos/Scripts/make-app.sh` assembles the host executable and twelve Share Extensions into a complete `.app` bundle. For iOS see `ios/project.yml`; for Windows see `windows/docs/README.zh-CN.md`.

</details>

Expand Down
13 changes: 7 additions & 6 deletions README_JA.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="shared/Screenshots/app-icon-rounded.png" width="128" alt="WeChatBridge のアイコン" />
<h1>WeChatBridge (微信流)</h1>
<p><strong>グループの未読メッセージが何百件も? 選んで転送し、AI に要約を任せるか、ナレッジベースに保存しましょう。</strong></p>
<p>WeChat の「Forward to other apps」メニューから、Codex、Claude、Doubao、QwenWork、Obsidian などを直接選べます。データベースへのアクセスも、WeChat へのインジェクションもなく、すべてローカルで動きます。</p>
<p>WeChat の「Forward to other apps」メニューから、Codex、Claude、Doubao、QwenWork、Obsidian などを直接選べます。データベースへのアクセスも、WeChat へのインジェクションもありません。会話は既定でローカルにとどまり、クラウドスキルは任意で利用できます。</p>

<p>
<a href="#ダウンロード"><img src="https://img.shields.io/badge/free%20download-macOS%20%7C%20Windows-07C160?style=flat-square" alt="無料ダウンロード" /></a>
Expand Down Expand Up @@ -67,7 +67,7 @@ macOS 版 WeChat 4.1.13 以降が必要です。詳しい手順、権限、ト

| プラットフォーム | ダウンロード | パスワード |
| --- | --- | --- |
| macOS 14+(Apple Silicon と Intel) | [wwbsr.lanzout.com/b0umjur8h](https://wwbsr.lanzout.com/b0umjur8h) | `向明` |
| macOS 13+(Apple Silicon と Intel) | [wwbsr.lanzout.com/b0umjur8h](https://wwbsr.lanzout.com/b0umjur8h) | `向明` |
| Windows | [wwbsr.lanzout.com/b0umjur4d](https://wwbsr.lanzout.com/b0umjur4d) | `向明` |

macOS では、DMG を開いて WeChatBridge を「アプリケーション」にドラッグします。Windows では、アーカイブを展開して中の手順に従ってください。iOS 版は開発中です。グループに参加すると、いち早く情報を受け取れます。
Expand Down Expand Up @@ -176,11 +176,12 @@ flowchart LR

## プライバシーを考えた設計

会話はあなた自身のコンピューターの中でしか移動しません:
会話は既定であなた自身のコンピューターの中にとどまります:

- 会話の内容は、WeChat が明示的に書き出したファイルからしか取得しません。
- アプリは WeChat のデータベースを読んだり、データを復号したり、コードをインジェクションしたり、WeChat を改変したりしません。
- アーカイブ、シーン、履歴はコンピューターの中にとどまります。
- アーカイブ、シーン、履歴は既定でコンピューターの中にとどまります。
- 任意のクラウドスキル(開発中)は、ユーザーが設定したサービスにアクセスします。アカウント、スキル一覧、実行の許可にはネットワークが必要で、従量制の実行では許可した入力だけを送信します。
- すべての Share Extension は、ネットワークにアクセスできない macOS のサンドボックス内で動きます。
- 画面収録は、WeChat のタイトルバーにあるチャット名を認識するためだけに使い、画像はメモリ内で処理します。
- アクセシビリティは、送り先を起動して貼り付けの操作を行うためだけに使います。
Expand All @@ -206,7 +207,7 @@ flowchart LR

### ソースからビルドする

macOS 14+ と、Swift 6 に対応した Xcode 16 または Command Line Tools が必要です。
ビルドには Swift 6 に対応した Xcode 16 または Command Line Tools が必要です(Xcode 16 自体は macOS 14.5+ が必要)。ビルドしたアプリは macOS 13+ で動作します。

```bash
git clone https://github.com/freestylefly/WeChatBridge.git
Expand Down Expand Up @@ -255,7 +256,7 @@ shared/ # Agent logos, design assets, screenshots, demos, and
site/ # Sparkle update feed and release notes
```

macOS のソースの構成と Sparkle の依存関係は Swift Package Manager で管理しています。`macos/Scripts/make-app.sh` は、ホストの実行ファイルと 12 個の Share Extension を組み立てて、完全な `.app` バンドルにします。iOS については `ios/project.yml` を、Windows については `windows/AGENTS.md` と `windows/docs/README.zh-CN.md` を参照してください。
macOS のソースの構成と Sparkle の依存関係は Swift Package Manager で管理しています。`macos/Scripts/make-app.sh` は、ホストの実行ファイルと 12 個の Share Extension を組み立てて、完全な `.app` バンドルにします。iOS については `ios/project.yml` を、Windows については `windows/docs/README.zh-CN.md` を参照してください。

</details>

Expand Down
20 changes: 20 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Gradle / 构建产物
.gradle/
.kotlin/
build/
**/build/
captures/
.externalNativeBuild/
.cxx/

# 本机配置
local.properties
signing.properties
keystore.properties
*.keystore
*.jks

# IDE
.idea/
*.iml
.DS_Store
Loading
Loading