Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
  • Sign in
N
news-harvester
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Back End
  • news-harvester
  • Merge Requests
  • !3

Closed
Opened Jul 31, 2026 by 易初@xieyx🖐🏻
  • Report abuse
Report abuse

feat: skill 文档精简 + CDP 登录引导 + tag/category 改造 + 日期修复

SKILL.md 精简 (476→296行):

  • Document Formats 移到 references/document-formats.md (每次调用少加载1/3上下文)
  • 摘要 batching 改成单一决策树 (N≤8 一次写 / N>8 批≤4),消除4处重复
  • 添加新源流程统一为 inspect --write 4步闭环,消除与 source-management.md 的冲突
  • 新增 References 小节索引三个 references 文件

CDP 登录引导 (跨平台):

  • ensure-chromium.js 新增 --list (检测平台+可用浏览器) 和 --login (窗口化登录)
  • --login 用固定 profile (~/.news-harvester/chromium-profile),端口占用时报告退出
  • SKILL.md 的 Dedicated profile 从 macOS-only 手写命令改为跨平台3步流程
  • --no-sandbox 仅在 root 下添加 (修掉 macOS 的不受支持标记警告)
  • config-template.json 加 browser method 示例源

tag/category 改造:

  • tags 从 [category, source] 改为 agent 从摘要提取的 ≤3 语义关键词
  • 新增 frontmatter category 字段 (独立于 tags,支持 Obsidian 筛选)
  • finalize 回写原文.md 的 tags+category frontmatter (与摘要.md 一致)
  • index.md 文章列表新增"原文标题"列,标签显示提取的
  • 摘要文件移到 /summary/ 子目录 (与 assets/ 同级,wikilink 保持裸标题)

日期修复:

  • frontmatter date: 存完整 ISO 8601 时间戳 (原 substring(0,10) 截断导致跨时区差一天)
  • fetcher-direct.js 正则放宽,捕获含毫秒/时区偏移的完整 ISO
  • registry article 加 date 字段 (之前未存,导致 index 日期列空)
  • callout 发布时间显示上海时区 (UTC+8),来源/URL 各自另起一行
  • index 表格用紧凑 YYYY-MM-DD (dateCell),存储用完整 ISO (dateShort)

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b feat/skill-refactor-and-cdp-login origin/feat/skill-refactor-and-cdp-login

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout origin/main
git merge --no-ff feat/skill-refactor-and-cdp-login

Step 4. Push the result of the merge to GitLab

git push origin main

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 0
  • Commits 0
  • Changes
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: back-end/news-harvester!3