NewsHub v0.2.2
NewsHub v0.2.2 is a compatibility, safety, and ranking correctness release.
- Aligns AI HOT requests with its current non-browser User-Agent guidance.
- Makes project YAML the definitive highest-priority custom source configuration.
- Keeps the best-ranked duplicate and caps future-dated recency scores.
- Blocks private-network custom redirects and requires environment references for sensitive headers.
- Removes non-content HTML before deep-read text enters Agent context.
- Supports repeated upgrades with reversible numbered backups.
- Adds native Codex metadata while preserving Claude Code and generic Agent Skills compatibility.
Known boundary: the bundled AI HOT adapter currently normalizes selected-item queries with since and q; daily, hot-topic, category, and fingerprint modes remain future adapter work.
Existing installations can upgrade with:
python3 scripts/install.py --target auto --upgradeNewsHub v0.2.2 是一次兼容性、安全性与排序正确性更新。
- 按 AI HOT 最新要求改用可识别的非浏览器 User-Agent。
- 确保项目 YAML 始终拥有最高自定义来源优先级。
- 相似新闻保留最高排名版本,并限制未来时间戳的时效得分。
- 阻止自定义来源重定向到私网,敏感请求头必须引用环境变量。
- 深读前过滤脚本、样式与 SVG,减少无效 Agent 上下文。
- 连续升级时保留可回滚的编号备份。
- 新增 Codex 原生元数据,同时保持 Claude Code 与通用 Agent Skills 兼容。
已知边界:当前 AI HOT 适配器负责精选条目的 since 与 q 查询;日报、热点、分类和 fingerprint 模式仍属于后续适配工作。