feat(report): improve daily intelligence UX and price tracking

This commit is contained in:
phamnazage-jpg
2026-05-27 17:23:08 +08:00
parent f274621013
commit f5b373caf4
29 changed files with 4257 additions and 801 deletions

View File

@@ -23,6 +23,8 @@
- 最新正式日报由 `scripts/run_daily.sh` 生成,并写入 `daily_report` / `report_runs`
- 手工复跑使用 `scripts/run_real_pipeline.sh`,不会把产物标记成正式日报
- 历史补跑使用 `scripts/rebuild_historical_report.sh YYYY-MM-DD`
- 日内价格追踪使用 `scripts/run_intraday_price_watch.sh`,只刷新价格与信号,不生成正式日报
- HTTP API 当前未内建认证、授权和限流;公网暴露前必须在网关层补齐
## 先读这些(当前真相入口)
@@ -99,6 +101,10 @@ bash scripts/run_intel_pipeline.sh
4. 每日关键信号物化到 `daily_signal_snapshot`
它不会生成日报,适合先把“数据与信号层”单独跑通。
3. 平台目录核验
4. 每日关键信号物化到 `daily_signal_snapshot`
5. 日内价格追踪可由 `scripts/run_intraday_price_watch.sh` 独立执行,不生成正式日报
### 正式日报调度
@@ -119,6 +125,13 @@ bash scripts/run_daily.sh
9. 失败时降级复制昨日报告并可选飞书告警
### 手工真实复跑
### 日内价格追踪
```bash
bash scripts/run_intraday_price_watch.sh
```
适用于捕捉“小米大降价”“活动窗口上线”“泄露情报”等日内价格事件。该入口只刷新价格与信号层,不写正式 `daily_report`,也不会覆盖 `latest_report` 语义。
```bash
bash scripts/run_real_pipeline.sh
@@ -147,6 +160,7 @@ bash scripts/rebuild_historical_report.sh 2026-05-13
```bash
go test ./...
bash scripts/test.sh
bash scripts/test_importers.sh
bash scripts/verify_pre_phase6.sh
bash scripts/verify_phase6.sh
bash healthcheck.sh
@@ -154,6 +168,13 @@ cd frontend && npm run test -- --run
cd frontend && npm run build
```
说明:
- `go test ./...` 只覆盖 package 形式的 Go 代码(当前主要是 `cmd/server``internal/...`
- `bash scripts/test.sh` 只覆盖 `fetch_openrouter` 的 focused test
- `bash scripts/test_importers.sh` 覆盖 scripts 层 importer targeted go test matrix
- 发布前不要把 `go test ./...` 误判成“全仓脚本业务已验证”
## API 概览
- `GET /health`