Skip to content

refactor: 移除网页 RPA 社交发帖模块 + README 下线本地直连(路径C) - #3

Merged
suny911 merged 1 commit into
mainfrom
worktree-remove-rpa-and-pathc
Jul 4, 2026
Merged

refactor: 移除网页 RPA 社交发帖模块 + README 下线本地直连(路径C)#3
suny911 merged 1 commit into
mainfrom
worktree-remove-rpa-and-pathc

Conversation

@suny911

@suny911 suny911 commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

动机

按产品决策精简范围:

  1. 雪球社交发帖(网页 RPA)判定为多余功能,永久移除。
  2. 本地直连(路径 C · stdio+Tailscale)暂不提供,从 README 下线,接入只保留 A(托管版)+ B(mcp.guling.pro)两条云路径。

改了什么

移除雪球 RPA 模块(默认关、与交易主链路解耦,删除零影响交易功能):

  • src/trader/rpa/(cdp_client / xueqiu)、tests/test_xueqiu_rpa.pydocs/specs/desktop_rpa_copilot_suite.md
  • dispatcher.py:移除 XUEQIU_RPA_TOOL 定义 / schema 注册 / 方法白名单 / 分派分支
  • main_window.py:移除整张"🌐 网页 RPA 社交发帖"UI 卡片 + 开关/浏览器补丁方法 + SharedState.enable_rpa_suite
  • config.py / main.py:移除 enable_rpa_suite / chrome_cdp_port 字段与读写、传参

README:删路径 C(表格行 / 章节 / 交叉链接 / 文件树注释);保留 docs/local_only_stdio_mcp_setup.md 设计稿(标注"暂未开放",备后续复活)。

验证

  • python -m py_compile 四个改动文件通过
  • 全量 pytest:89 passed / 10 skipped(相较之前 95 passed,恰好少了被删的 6 个 RPA 用例;交易核心用例零回归)
  • 全仓 grep 无 enable_rpa_suite / xueqiu / chrome_cdp / 路径 C 活代码残留(仅历史规划文档保留当时记录,未改写)

净变更:-889 / +3

🤖 Generated with Claude Code

去掉多余的雪球发帖能力(enable_rpa_suite/xueqiu_publish_review):
- 删 src/trader/rpa/ 包(cdp_client/xueqiu)、tests/test_xueqiu_rpa.py、
  docs/specs/desktop_rpa_copilot_suite.md 设计稿
- dispatcher: 移除 XUEQIU_RPA_TOOL 定义/注册/白名单/分派分支
- main_window: 移除 RPA UI 卡片 + 开关/浏览器补丁方法 + SharedState 字段
- config/main: 移除 enable_rpa_suite / chrome_cdp_port 字段与读写
交易主链路不受影响(该模块本就 default-off、与交易解耦)。

README: 下线"路径 C 本地直连(stdio+Tailscale)",接入路径保留 A(托管版)+
B(mcp.guling.pro)两条;保留 local_only_stdio_mcp_setup.md 设计稿备后续复活。

全量 pytest: 89 passed / 10 skipped(仅少了被删的 6 个 RPA 用例)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@suny911
suny911 marked this pull request as ready for review July 4, 2026 08:24
@suny911
suny911 merged commit 6e53140 into main Jul 4, 2026
1 check passed
@suny911
suny911 deleted the worktree-remove-rpa-and-pathc branch July 4, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant