68 Commits
Author SHA1 Message Date
OLmatter 271bee651a docs: README 加 TG 群 + Ledger 姐妹项目引流 (m1_xxxx)
- 顶部横幅补 TG 群链接(跟 ledger 榜单按钮并列)
- 原来裸的群链接美化成「交流群 & 姐妹项目」段落
- 推荐姊妹项目 LLM API Ledger(Coding Plan 横评榜单)
- 强调两个项目共用一个 TG 群 t.me/+s1flX6cpUZ1kM2M1
2026-07-23 02:48:18 +08:00
OLmatter ae9aacae32 docs: 顶部加榜单入口(智谱不放货,引导用户看其他厂商对比) 2026-07-22 23:28:51 +08:00
OLmatter 51d2eafec0 feat(启动脚本): 路径长度主动提示 + 端口占用预检测
- one_click_start.ps1: Warn-LongInstallPath 阈值 70→60(实测 venv 最深 177 字符,
  Root 60 + 177 = 238,留 22 余量给 pip 临时文件);中文化
- one_click_start.ps1: pip 失败分支主动检测路径长度,>60 时中文加粗提示
  '路径偏长,建议移到短路径',不再只显示通用英文
- start_backend.ps1: 启动前检测 8888 是否被占,被占时提示占用进程 PID/名称/路径
  (解决 WinError 10013 无头绪排查问题)
- README 常见问题: 新增'pip 失败/路径太深'和'WinError 10013/端口被占'两条
2026-07-17 21:15:32 +08:00
OLmatter a05d6804e1 docs: 移除'多开几个窗口'建议,改为建议单窗口+按情况调大延时
近期风控严,多开窗口反而触发 RPM 风控
2026-07-09 23:46:42 +08:00
OLmatter a9b749366c docs: 移除'11点前还有机会'过时说法,说明官方近期不放量
- README 风控建议段:'不要过早放弃/11:00前还有机会' → '官方近期不放量,连拼好模活动也取消'
- Greasy Fork 描述:加'官方近期不放量'条目 + 补 v23.11 更新说明
- CHANGELOG 记录本次文档变更
2026-07-09 23:44:00 +08:00
OLmatter de0c2b475b feat: 注释邀请码注入(活动已下线)(#45 后续 v23.11)
邀请码活动下线后,脚本每次打开页面仍注入 ?ic=...&closedialog=true,
导致页面尝试加载已不存在的邀请码活动页。现注释相关逻辑,GLM_CODING_URL
改为纯 https://www.bigmodel.cn/glm-coding。

注释保留的位置(活动恢复时取消注释即可):
- GLM_DISCOUNT_CODE 常量
- 邀请码版 GLM_CODING_URL
- ensureDiscountEntry 函数定义 + 2 处调用(启动 + tick 循环)
- 未登录注册的邀请码引导

同步更新 README、Greasy Fork 描述、userscripts README、CHANGELOG。
2026-07-09 23:05:56 +08:00
OLmatter 01c0752987 docs: 同步 Shift+F8 批量暂停/恢复到 README/CHANGELOG/userscripts README
- README.md 快捷键章节加 Shift+F8 条目 + 覆盖范围说明
- CHANGELOG.md 加 2026-07-05 v23.10 条目
- scripts/userscripts/README.md 快捷键列表加 Shift+F8
2026-07-05 22:03:22 +08:00
OLmatter 4105dad405 Update README with community links and configuration panel 2026-06-28 03:56:41 +08:00
OLmatter ffabb8f4e8 Modify group chat information in README
Updated group chat link and added official group image.
2026-06-28 03:55:54 +08:00
ygjj 45e9afd78d fix(userscript): 绕开 Chrome LNA + 防止 captcha 死循环自激振荡
本提交叠合两个相关的前端鲁棒性修复,都源自同一个故障复盘(成功几次后
进入 50ms 一发的死循环风暴)。

## 问题一:Chrome 130+ Local Network Access 拦截 fetch

公网 HTTPS 页面(bigmodel.cn)访问本机 loopback(localhost:8888)时,
Chrome 的 LNA 策略会在客户端直接拦截 fetch,根本发不到后端,提示
"Permission was denied for the loopback address space"。

原 `doFetch().catch(() => doGM())` 兜底逻辑虽然能用 GM_xmlhttpRequest
救回来,但每次都浪费 ~200ms 等 fetch 失败、且每次 console 一行红字
噪音、catch 切换瞬间偶尔会撞上业务上下文过期。

修法:localhost 请求**优先走 GM_xmlhttpRequest**(扩展进程,绕过页面
网络栈),fetch 只作为非 Tampermonkey 环境的兜底。同时把 GM onerror
的 [object Object] 改成 status/statusText/error 可读字符串,便于
诊断。补 @connect 127.0.0.1(之前只有 127.0.0.1:8888)。

## 问题二:captcha 状态机的自激振荡死循环

handleCaptchaDirectInPage 的 catch 分支会调用 resetCaptchaSession() 立刻
把 sent 标志清成 false,下一个 50ms tick 立即对同一张图开火,形成
"失败→重置→重打→再失败" 的自激振荡:

- 任何一次瞬时错误(网络、超时、腾讯 SDK 自我刷新换 bgUrl)都会被永久
  放大成持续故障;
- 腾讯 captcha SDK 在被识别为异常流量时会主动重置 widget 换新 bgUrl,
  我们的脚本误以为这是新挑战立刻开打,把后端打爆;
- 同时大量 WebGL context 累积,触发腾讯 SDK 自身的 "Too many active
  WebGL contexts" 警告,雪上加霜。

修法:在 captchaSession 加三道闸门:
1. 单次失败后 1500ms 冷却(inCaptchaCooldown)
2. 连续失败 ≥3 次后彻底熔断停手(isCaptchaStopped),console 打印
   提示用户手动验证 + 刷新页面恢复
3. 成功后清零失败计数(noteCaptchaSuccess),冷却/熔断只追"连续"
   而非"累积"

## 配套文档
README 常见问题加一节 "loopback address space 报错",告诉用户当
GM 通道在某些 Chrome 严苛策略下也被拦时,可以通过 chrome://flags/
#block-insecure-private-network-requests 设为 Disabled 来彻底放行。

## 验证
- 抢购流程跑通后再连续触发 5+ 次验证码,不再出现 "成功几次就开始一直
  报错" 的现象;
- 人为 kill 后端后再触发验证码:失败 1/3 → 冷却 → 失败 2/3 → 冷却 →
  失败 3/3 → 熔断停手,不再 50ms 一发把后端打爆;
- Tampermonkey 环境下 console 不再有 "Permission was denied for
  loopback" 红字。
2026-06-25 05:45:58 +08:00
OLmatter 6dd67536d9 docs(faq): add RTX 50 series, GPU troubleshooting, CPU speed FAQ
- RTX 50 (Blackwell) needs CUDA 12.8+ but project uses cu11; use CPU mode
- GPU debugging checklist: paddlepaddle-gpu vs CPU, torch GPU build, driver
- CPU slow? check for old release (v5 server 1189ms vs v6 tiny 110ms)
2026-06-24 21:46:17 +08:00
OLmatter 7a5b7a67a4 docs(readme): drop start-backend-pipeline-gui.cmd from file table (not in Win packages)
The file table still listed start-backend-pipeline-gui.cmd but we removed it
from Windows packages to avoid confusion with one-click-start.cmd. Repository
keeps the file for macOS/manual use, but it shouldn't be in the user-facing
file table. Linux entry from PR #34 already present.
2026-06-24 21:00:46 +08:00
hoywu 8457a65b14 docs(setup): document Linux support and ship one-click-start.sh in release zips
The Linux one-click-start.sh and setup_backend_linux.sh scripts landed in
the previous setup commits but were not surfaced in user-facing docs or
in the release zip layout, so Linux users had no on-ramp. This commit
adds the missing user-facing documentation and ships the Linux entry
point in both release zip builders.

- README.md: extend 快速开始 / 启动后端 to cover Linux alongside Windows
  and macOS, update the zip table to mark online-installer as the
  macOS / Linux recommendation, add Linux quick-start snippet, and
  refresh 常用文件 / 常用启动方式 to list one-click-start.sh and the
  new docs/linux-setup.md. Wording tightened so Windows users are not
  told to follow Linux commands and vice versa.
- docs/linux-setup.md: new Chinese-language install guide covering scope,
  prerequisites (Python 3.12 / uv, NVIDIA GPU optional), one-click and
  manual setup paths, virtualenv layout, known limitations, port
  troubleshooting, post-install verification, and a Windows/macOS/Linux
  comparison table.
- one-click-start.sh: refresh the top-of-file comment so it describes
  the actual entry point (start_backend.py --headless ->
  captcha_server_headless) instead of the old "pipeline backend" copy
  from when the Linux path was a stub.
- scripts/release/build_portable.ps1: include one-click-start.sh in the
  portable zip and add a Linux section to the embedded portable README
  pointing users at online-installer for Linux with a fallback chmod +
  run snippet.
- scripts/release/build_release_zips.ps1: include one-click-start.sh in
  the common zip items and rewrite ONLINE_INSTALLER_README.txt to give
  per-platform launch instructions, document auto PyPI mirror detection,
  the .venv_paddle / .venv_paddle_gpu layout, and link to
  docs/linux-setup.md.

No code logic change; only docs + packaging so Linux is a first-class
release target alongside Windows and macOS.
2026-06-24 20:53:24 +08:00
OLmatter 7cd1b7be9c docs(readme): add 2026-06-23 click-block risk control advisory
Zhipu upgraded risk control this morning: auto-click subscribe sometimes
blocked/rejected (manual click too), shows block_message. Advisory:
- wait ~10s and retry when blocked
- if auto-click keeps failing, manually click the '特惠订阅' entry
- OCR/captcha solving still fully automatic regardless of how the entry was
  triggered (auto-click and OCR are decoupled)
One-liner: 入口点不动就手动点特惠订阅,验证码自动打。
2026-06-23 22:09:25 +08:00
OLmatter 750adeffda docs(readme): fix '启动后端' section - one-click-start.cmd is the main entry, not pipeline-gui
The quick-start step 4 and the rush steps both told users to double-click
start-backend-pipeline-gui.cmd, but that runs the optional backend/ FastAPI
pipeline, not what one-click-start runs (captcha_server.py). Windows users
should double-click one-click-start.cmd for both first-time install and daily
launch. pipeline-gui.cmd now only mentioned as optional alternative.
2026-06-23 05:45:44 +08:00
OLmatter 520bd7f7b3 docs(readme): rewrite backend section to reflect actual one-click-start path
The '验证码识别说明' section described backend/ FastAPI pipeline as the main
backend and recommended start-backend-pipeline-gui.cmd, but one-click-start
actually runs scripts/tools/captcha_server.py (different Tk GUI, different
model display). Rewrote to:
- Describe captcha_server.py as the main backend one-click-start runs
- Document the Tk GUI fields (status/model/prompt/result/log with timing)
- Clarify backend/ is an optional alternative pipeline, not the default
- Update file table: one-click-start.cmd is the main entry, mention
  captcha_server.py explicitly
- Mention v6 tiny+medium and the config/env override for ocr_model
2026-06-23 05:40:49 +08:00
OLmatter 420c362add docs(readme): update benchmarks to PP-OCRv6, add v6 tiny/medium data
- Small hidden set: add row 10 PP-OCRv6 tiny + constrained (~30ms/img)
- Stress test 379: add PP-OCRv6 tiny row (100%, ~110ms/img, ~11x faster than
  v5 server), keep v5 server as comparison, note test conditions
- Strict click radius table: add v6 tiny column (100% at all radii)
- Update conclusion: v6 tiny now best on accuracy/speed/stability
- Update model journey line to mention v6
2026-06-23 05:29:38 +08:00
OLmatter 9f44060541 Shorten auto-click rationale 2026-06-21 06:53:12 +08:00
OLmatter 83b28a959b Explain opt-in auto-click rationale in README 2026-06-21 06:52:10 +08:00
OLmatter c2bffcf428 Make auto-click subscription opt-in 2026-06-21 06:22:22 +08:00
OLmatter bb5690292e Merge branch 'pr-25-macos'
# Conflicts:
#	README.md
2026-06-21 05:29:55 +08:00
OLmatter e5a1990cb4 Make hotkeys configurable 2026-06-21 05:19:31 +08:00
OLmatter df42a5b170 Add rush control hotkeys 2026-06-21 05:16:28 +08:00
OLmatter c4410fec71 Make rush release conservative 2026-06-21 05:07:48 +08:00
OLmatter 2d0834e4ae Tune rush release timing 2026-06-21 03:48:35 +08:00
OLmatter 7e228a6889 Fix rush mode early request guard 2026-06-21 03:20:21 +08:00
OLmatter 0c0ff27be2 Fix portable venv rebuild 2026-06-21 02:58:56 +08:00
Kang 3186d5b8de feat(macos): add backend setup and launch support 2026-06-20 14:27:31 +08:00
OLmatter 9c1587e459 docs(launcher): warn about Windows long paths 2026-06-19 01:21:22 +08:00
OLmatter ec5c56b67f Refine README window guidance 2026-06-16 14:29:13 +08:00
OLmatter 15313a9ab6 Refine rush and captcha timing flow 2026-06-16 04:08:15 +08:00
OLmatterandClaude Opus 4.7 66a9ea559e feat(backend): pipeline GUI launcher + 精简启动器
新增 backend/gui.py Tk 监控窗口:
- 拉起 backend.server 子进程并接管 stdout
- 顶部状态栏(启动中/运行中、YOLO/OCR worker 数、监听地址)
- 中间识别列表(最近 20 条 prompt/pred_text/confidence/耗时)
- 底部日志框(stdout 实时滚动,高亮 worker ready / 错误)
- 关闭窗口自动 terminate 后端

后端新增 /recent?limit=20 端口(GUI 拉取最近识别结果),
/health 同步返回 n_yolo / n_ocr / port 字段。

精简根目录启动器(7 → 2):
- 删 start-backend.cmd / start-backend-pipeline.cmd /
      install-env.cmd / 启动后端.cmd / 首次安装环境.cmd
- 留 one-click-start.cmd(首次装环境)
- 留 start-backend-pipeline-gui.cmd(日常启动 + GUI)
- start-backend-pipeline.ps1 → start-backend-pipeline-gui.ps1

打包脚本 build_portable.ps1 / build_release_zips.ps1 同步
更新入口列表和错误提示。

补 .gitignore: official_models/(81M OCR 模型权重,不入库)

补 scripts/tools/evaluate_pipeline_compare.py(PR #10 评估
脚本,cherry-pick 时漏了)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-15 22:53:36 +08:00
OLmatterandClaude Opus 4.7 9d6cf6b61d docs: document PR #11 start-backend-pipeline.cmd launcher
Update the pipeline backend section and 常用文件 table to surface
the new double-click launcher, alongside the existing
python backend/server.py invocation.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-15 21:06:53 +08:00
sunshineandsunshine 6b052da423 PR A: Pipeline Backend, YOLO to OCR multi-process, CPU auto-allocation (#10)
* feat(pipeline): multi-process YOLO→OCR pipeline backend

- server.py: FastAPI gateway, 3-level mp.Queue pipeline, round-robin dispatch
- worker.py: YOLO character detection worker (core-pinned, single-threaded)
- ppocr_worker.py: PP-OCRv5 recognition worker with pre-warm cache
- evaluate.py: select_fixed3 box selection from scripts/tools/

- Smart CPU core allocation: N_YOLO = cores/4, N_OCR = cores/2
- config.json auto-created on first run (_auto + _cores metadata)
- /health endpoint: {status:'starting'|'ok', workers:N, ready_workers:N}
- Worker watchdog: auto-restart crashed OCR workers
- Shutdown cleanup: _shutdown event + try/finally for orphaned processes

- one_click_start.ps1: pipeline dep check (fastapi/uvicorn/psutil) non-blocking
- setup_backend.py: smoke test includes pipeline deps
- requirements-backend-cpu/gpu.txt: +fastapi, uvicorn[standard], psutil

- README: pipeline architecture + auto CPU allocation
- .gitignore: +config.json, server logs

Minimal verification:
  python -m py_compile backend/server.py backend/worker.py backend/ppocr_worker.py backend/evaluate.py  # OK
  python backend/server.py  →  GET /health  →  {'status':'ok','workers':12,'ready_workers':12}

* fix: review feedback - timeout cleanup, watchdog, health, paddleocr

- handle_direct/handle_direct_url: clean pending_requests on TimeoutError
- _worker_watchdog: always check p.is_alive(), remove ready_count bypass
- /health: add alive_workers field (count is_alive)
- start_backend.ps1: include paddleocr in import check

---------

Co-authored-by: sunshine <qt22260@gmail.com>
2026-06-15 20:57:57 +08:00
OLmatterandClaude Opus 4.7 514d0b330e docs: warn about RPM risk control and default 2 windows
- change openMultipleWindows prompt default from 3 to 2 (max stays 10)
- add prominent RPM warning box in README rush section after GLM upgraded RPM limits
- strengthen language in step 5 and 重要提醒 from "may trigger" to "has caused widespread failure"
- sync root and scripts/userscripts/ copies

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-14 14:00:42 +08:00
OLmatter 97e2847f87 Add discussion group link to README
Added a link to the discussion group in the README.
2026-06-14 11:08:05 +08:00
OLmatter 61b8a91cbe docs: warn about excessive concurrency risk 2026-06-13 13:06:54 +08:00
OLmatter 3bed2c842d fix: harden portable packaging and public docs 2026-06-13 11:30:49 +08:00
OLmatter 2f8cc1bf0f Improve rush stability and discount entry 2026-05-29 20:16:22 +08:00
OLmatter ed291db4a5 docs: add OCR comparison appendix 2026-05-28 06:30:56 +08:00
OLmatter a034c2d6c7 Restore userscript install options in README 2026-05-27 21:06:46 +08:00
OLmatter 614cfab2cf Update README for release package workflow 2026-05-27 21:02:39 +08:00
OLmatter d4dd03ed6c Simplify release packaging and direct captcha flow 2026-05-27 20:52:57 +08:00
OLmatter ac4b7175df Revise README for clarity and include discount link
Updated README.md to improve clarity and add discount link.
2026-05-27 12:01:34 +08:00
OLmatter 7644c062a5 docs: clarify GPU torch setup and captcha QA 2026-05-27 11:52:23 +08:00
OLmatter 2015102f0f Update README to streamline captcha model documentation
Removed outdated captcha model journey documentation and added a reference to it later in the README.
2026-05-26 22:39:00 +08:00
OLmatter 42b2702c79 Revise README for clarity and browser compatibility
Updated project description and installation instructions for clarity.
2026-05-26 22:37:50 +08:00
OLmatter da32cf8201 Refine README content and remove search term redundancy
Removed redundant search terms and clarified project purpose.
2026-05-26 20:55:56 +08:00
OLmatter 89a7d5706a Add captcha model development journey 2026-05-26 11:04:30 +08:00
OLmatter 3b3e0929f2 Simplify README by removing search term details
Removed redundant information about search terms for the project.
2026-05-26 10:19:50 +08:00