From d69b85cb1ecf482af6fddf24239ed7ada51303ac Mon Sep 17 00:00:00 2001 From: starmen1265 Date: Thu, 19 Mar 2026 23:13:43 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20start=20milestone=20v1.5=20B=E7=AB=99?= =?UTF-8?q?=E5=AD=97=E5=B9=95=E7=AE=80=E5=8C=96=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .planning/PROJECT.md | 20 +++++++++--- .planning/STATE.md | 77 ++++++++++++-------------------------------- 2 files changed, 36 insertions(+), 61 deletions(-) diff --git a/.planning/PROJECT.md b/.planning/PROJECT.md index 2495b42..1fbc1bc 100644 --- a/.planning/PROJECT.md +++ b/.planning/PROJECT.md @@ -1,8 +1,14 @@ # kb-skills 工作流重构 -## Current Milestone: (Planning next version) +## Current Milestone: v1.5 B站字幕简化处理 -**Status:** v1.4 completed, ready for next milestone +**Goal:** 简化 B 站视频处理流程,基于 SRT 字幕生成易读的 Markdown 文档 + +**Target features:** +- SRT 字幕解析与时间戳去除 +- 语义分段(LLM 根据内容主题自动划分) +- LLM 自动纠正语音识别错误 +- 移除深度观点分析功能 ## Previous Milestones @@ -89,7 +95,13 @@ python3 kb-workflow/kb_workflow.py process "https://www.bilibili.com/video/BVxxx ### Active -(No active requirements — plan next milestone) +**v1.5 B站字幕简化处理:** +- [ ] **SRT-01**: SRT 字幕解析 — 读取生成的 SRT 文件,提取纯文本 +- [ ] **SRT-02**: 去除时间戳 — 移除时间码,保留字幕文本 +- [ ] **SRT-03**: 语义分段 — LLM 根据内容主题变化自动划分段落 +- [ ] **SRT-04**: LLM 纠正 — 根据上下文自动修正语音识别错误 +- [ ] **SRT-05**: Markdown 输出 — 生成结构化的 Markdown 文件 +- [ ] **SRT-06**: 移除观点提炼 — 不再做深度观点分析 ### Deferred @@ -155,4 +167,4 @@ python3 kb-workflow/kb_workflow.py process "https://www.bilibili.com/video/BVxxx | stealth 默认启用 | stealth_config=None 时默认启用 | ✓ Good — 向后兼容,无需修改现有代码 | --- -*Last updated: 2026-03-19 after v1.4 milestone completed* +*Last updated: 2026-03-19 after starting v1.5 milestone* diff --git a/.planning/STATE.md b/.planning/STATE.md index 0aa7bf7..8a97cd4 100644 --- a/.planning/STATE.md +++ b/.planning/STATE.md @@ -1,82 +1,45 @@ --- gsd_state_version: 1.0 -milestone: v1.4 -milestone_name: Zhihu Anti-Crawler -status: completed -stopped_at: Completed v1.4 Zhihu Anti-Crawler milestone -last_updated: "2026-03-18T16:02:40.968Z" -last_activity: 2026-03-18 — Completed 11-02 stealth integration -progress: - total_phases: 11 - completed_phases: 10 - total_plans: 31 - completed_plans: 30 - percent: 100 +milestone: v1.5 +milestone_name: B站字幕简化处理 +status: planning +last_updated: "2026-03-19T00:00:00.000Z" +last_activity: 2026-03-19 — Milestone v1.5 started --- # Project State ## Project Reference -See: .planning/PROJECT.md (updated 2026-03-18) +See: .planning/PROJECT.md (updated 2026-03-19) **Core value:** 可靠、可维护的处理管道 - 每个步骤独立、可验证、可恢复 -**Current focus:** Phase 11 - Stealth Fingerprinting (指纹伪装) +**Current focus:** Defining requirements for v1.5 ## Current Position -Phase: 1 of 1 (Phase 11: Stealth Fingerprinting) - COMPLETE -Plan: 2 of 2 -Status: Complete -Last activity: 2026-03-18 — Completed 11-02 stealth integration +Phase: Not started (defining requirements) +Plan: — +Status: Defining requirements +Last activity: 2026-03-19 — Milestone v1.5 started -Progress: [██████████] 100% - -## Performance Metrics - -**Velocity:** -- Total plans completed: 26 (v1.0-v1.3) -- v1.3 plans: 2/2 -- Average duration: ~5min -- Total execution time: ~2.5 hours - -| Plan | Duration | Tasks | Files | Date | -|------|----------|-------|-------|------| -| 11-02 | 3min | 3 | 2 | 2026-03-18 | -| 11-01 | 3min | 2 | 4 | 2026-03-18 | -| 10-01 | 3min | 2 | 2 | 2026-03-18 | -| 10-02 | 4min | 2 | 2 | 2026-03-18 | - -**Recent Trend:** -- v1.0-v1.3 completed smoothly -- Trend: Stable +Progress: [░░░░░░░░░░] 0% ## Accumulated Context ### Decisions -Key decisions from v1.0 (preserved): +Key decisions from v1.0-v1.4 (preserved): - 管道模型 — BaseProcessor + Pipeline 架构 - 步骤级状态 — WorkflowStateManager - Schema 验证 — Pydantic v2 - 顺序执行 — 简单性和可调试性 - CLI subparsers — 可扩展命令结构 -v1.3 decisions: -- 代理池使用索引指针实现 Round-Robin,惰性检查冷却恢复 -- ProxyPool 参数优先于 config.proxy 配置 - -v1.4 scope: -- 只针对知乎反爬检测 -- 使用最小改动(指纹伪装)先验证效果 -- 行为伪装(鼠标轨迹等)暂不实现,如需要再加 - -v1.4 Phase 11 decisions: -- 使用 playwright-stealth 库进行指纹伪装 -- Pydantic BaseModel 配置模型 -- 分离 sync/async 函数匹配 Playwright API 模式 -- stealth_config=None 表示默认启用 stealth (向后兼容) -- launch 时添加 --disable-blink-features=AutomationControlled 参数 +v1.5 scope: +- 仅针对 B 站视频处理 +- 简化流程:SRT → 去时间戳 → 分段 → 纠正 → Markdown +- 移除深度观点分析 ### Blockers/Concerns @@ -84,8 +47,8 @@ None. ## Session Continuity -Last session: 2026-03-18 -Stopped at: Completed v1.4 Zhihu Anti-Crawler milestone +Last session: 2026-03-19 +Stopped at: Starting v1.5 milestone planning Resume file: None -**Next step:** v1.4 complete. Ready for real-world testing against Zhihu anti-crawler. +**Next step:** Define requirements and create roadmap