refactor: 缠论引擎包化与 Web 分层(ECR-001)

将根目录引擎迁入 chanlun/ 并保留兼容 shim;拆分 TF_DF 与 web 服务;
前端模块化;strategies 改用 chanlun 导入;补充 ESS 文档与 golden 回归。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-05 18:48:20 +08:00
co-authored by Cursor
parent e2e45bc1bc
commit 74dec4e50b
160 changed files with 25576 additions and 23104 deletions
+31
View File
@@ -0,0 +1,31 @@
# IMPLEMENTATION_REPORT — ECR-001
**Date:** 2026-08-05
**Role:** ENGINEER
**Status:** Complete
## Summary
完成缠论引擎包化、`TF_DF` builders 拆分、Web services/blueprints 分层、前端 `index.html` JS 外置模块化;算法与 `/api/analyze` 契约冻结;`config/` / `strategies/` 无改动。
## Changes
| Area | Result |
|------|--------|
| `chanlun/` | core / pipeline(+builders) / indicators / analysis |
| Root shims | `ChanLun.py` `TF_DF.py` `ChanEnum.py` 等再导出 |
| L1 fix | 恢复 `TF_DF.get_zs_list``get_seg_zs_list` |
| Web | `config.py` `services/*` `api/*` `create_app()` |
| Frontend | `static/js/app/*`;未接线 TSX/TS → `_unused/` |
| Examples/notes | `examples/` `docs/notes/` |
| Tests | golden pipeline + analyze contract smoke |
## Config
- 代理:`CHAN_HTTP_PROXY` / `HTTP_PROXY`(默认不强制 7897
- `DATA_SERVICE_URL` / `FLASK_PORT`
## Follow-ups(非本 ECR
- (已完成)策略与 web/tests 改为 `from chanlun import ...`;根 shim 仅兼容旧脚本
- (已完成)`chart.js` 拆为 format/view/tv/sync/tableschan_tv 共用 `static/js/app/`