claude-code-best/docs/features
claude-code-best 494eab7204
feat: 接入内建 weixin channel(同 #301 重构版本) (#303)
* feat: 接入 weixin 服务层与命令入口

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* feat: 注册内建 weixin channel 插件

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* fix: 修正 channel permission relay 路由与能力判定

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* fix: 修复 builtin channel 的 ChannelsNotice 误报

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* docs: 补充内建 weixin channel 使用说明

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* docs: 更新微信 channel 接入计划状态

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* fix: 延迟加载 weixin 登录二维码依赖

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* fix: 改用 qrcode 生成 weixin 登录二维码

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* fix: 修正 vite 构建的 Windows 路径解析

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

* chore: 删除临时规划文档 wx_channel.md 并还原 package.json 排序

wx_channel.md 内容已整合到 docs/features/channels.md,不再需要。
package.json 中 @ant/model-provider 位置从原始位置被无意移动,还原。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: 将 weixin 模块从 src/ 迁移至 packages/weixin 工作区包

将 src/services/weixin/ 中的纯业务逻辑迁入 @claude-code-best/weixin
workspace 包,降低 src/ 耦合度。仅保留 server.ts 作为薄适配层。

- 迁移 7 个无修改的纯模块 (types/api/accounts/login/pairing/media/send)
- monitor.ts 内联 PERMISSION_REPLY_RE 正则,解除对 src/ 的依赖
- permissions.ts 本地定义 ChannelPermissionRequestParams 接口
- cli.ts 拆分:serve 子命令通过回调注入,login/access 保留在包内
- server.ts 重写为从 @claude-code-best/weixin 导入
- 新增 cli-serve.ts 作为 serve 入口薄壳

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: 修正 weixin barrel export 中 interface 的导出方式

ChannelPermissionRequestParams 是纯类型,必须用 export type 导出,
否则 Bun 运行时会报 "export not found" 错误。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: 将 server.ts 迁入 packages/weixin,彻底移除 src/services/weixin/

通过依赖注入(WeixinServerDeps)解耦 src/ 依赖(analytics、config、
MCP channel schema),server.ts 完全移入包内。cli.tsx 入口处一次性
注入所有依赖。

src/services/weixin/ 目录已完全删除。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: 修复 markdownToPlainText 中代码块正则的 ReDoS 风险

用非正则的线性扫描替代 \`\`\`[\s\S]*?\n([\s\S]*?)\`\`\` 匹配,
避免在含有大量重复 \`\`\` 序列的输入上触发多项式回溯。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: 1111 <11111@asd.c>
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-19 21:33:27 +08:00
..
acp-link.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
acp-zed.md feat: 添加对 ACP 协议的支持 (#284) 2026-04-16 20:31:50 +08:00
all-features-guide.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
auto-dream.md feat: auto dream 开启 2026-04-04 16:28:09 +08:00
bash-classifier.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
bridge-mode.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
buddy.mdx docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
channels.md feat: 接入内建 weixin channel(同 #301 重构版本) (#303) 2026-04-19 21:33:27 +08:00
chrome-use-mcp.md docs: 修复链接 2026-04-14 21:19:36 +08:00
claude-in-chrome-mcp.md docs: 更新文档 2026-04-04 09:57:41 +08:00
computer-use-architecture-v2.md feat: Computer Use — Windows 跨平台支持 + GUI 无障碍增强 + Python Bridge 2026-04-05 15:47:20 +08:00
computer-use-mcp-test-report.md feat: 恢复 mac 版本的 Computer Use 2026-04-04 11:36:43 +08:00
computer-use-tools-reference.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
computer-use-windows-enhancement.md feat: Windows Computer Use enhancement — PrintWindow, UI Automation, OCR 2026-04-04 00:00:02 +08:00
computer-use.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
context-collapse.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
coordinator-mode.md docs: 添加一大堆 feature 的描述 2026-04-02 22:52:32 +08:00
daemon-restructure-design.md Feat/integrate lint preview (#285) 2026-04-16 20:59:29 +08:00
daemon.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
debug-mode.mdx docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
experimental-skill-search.md docs: 添加一大堆 feature 的描述 2026-04-02 22:52:32 +08:00
feature-flags-audit-complete.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
feature-flags-codex-review.md feat: enable SHOT_STATS, PROMPT_CACHE_BREAK_DETECTION, TOKEN_BUDGET feature flags 2026-04-05 21:07:38 +08:00
fork-subagent.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
growthbook-enablement-plan.md feat: enable GrowthBook local gate defaults for P0/P1 features 2026-04-06 17:00:30 +08:00
kairos.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
lan-pipes-implementation.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
lan-pipes.md docs: add complete features guide and rewrite LAN Pipes docs (#246) 2026-04-12 11:37:51 +08:00
langfuse-monitoring.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
mcp-skills.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
pipes-and-lan.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
proactive.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
remote-control-self-hosting.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
stub-recovery-design-1-4.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
teammem.md docs: 添加一大堆 feature 的描述 2026-04-02 22:52:32 +08:00
tier3-stubs.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
token-budget.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
tree-sitter-bash.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
uds-inbox.md feat: 远程群控 (#243) 2026-04-11 23:22:55 +08:00
ultraplan.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
voice-mode.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
web-browser-tool.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
web-search-tool.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
workflow-scripts.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00