Commit Graph

6 Commits

Author SHA1 Message Date
OpenClaw Agent 08f7c9f26c feat: integrate bilibili-extractor into obsidian-kb
- Add extractors layer with BilibiliExtractor (Playwright stealth mode)
- Add outputs layer with ObsidianWriter and GitSync
- Implement subtitle/no-subtitle graceful degradation
- Update config with output and bilibili extraction settings
- Complete integration pipeline: extract → process → output → sync
- Add comprehensive tests (100% pass rate)
- Update documentation (SKILL.md, README.md, requirements.txt)
2026-02-07 13:07:43 +08:00
OpenClaw Agent 7032ddb1a3 feat(ai-client): 实现多 AI 提供商支持与 fallback 机制
- 支持 MiniMax、智谱、通义千问等多家 AI 提供商
- 实现自动 fallback 机制(主失败则自动切换备用)
- 修复 MiniMax Anthropic 格式响应解析
- 修复智谱 API 端点(自动添加 /chat/completions)
- 新增 _call_api_with_fallback 方法统一处理 fallback 逻辑
- 更新 _load_ai_config 加载主配置和 fallbacks 配置

配置文件位置: ~/.config/obsidian-kb/config.yaml
2026-02-07 07:08:46 +08:00
OpenClaw Agent 1f76a40d1f fix(obsidian-kb): fix SKILL.md YAML format and restore files 2026-02-07 05:50:00 +08:00
OpenClaw Agent 8bce4ac23b feat: 添加本地字幕生成功能
- 新增 subtitle_generator.py 核心模块
  - AudioDownloader: 使用 yt-dlp 下载视频音频
  - WhisperTranscriber: Whisper 语音识别器
  - SubtitleFormatter: SRT 格式化器
  - SubtitleCache: 缓存管理器
  - SubtitleGenerator: 统一接口

- 集成到 pipeline.py
  - 添加 _ensure_subtitle() 方法
  - 自动检测无字幕视频并生成字幕
  - 支持缓存机制避免重复处理

- 更新配置文件
  - config.yaml.example 添加字幕配置项
  - requirements.txt 添加依赖包

- 文档更新
  - SKILL.md 添加字幕生成说明
  - SUBTITLE_FEATURE.md 详细功能文档

- 测试脚本
  - test_subtitle_generator.py 完整测试套件

特性:
- 本地处理,数据不上传,隐私安全
- 支持中英文识别及自动检测
- 多种模型可选(tiny/base/small/medium/large)
- 智能缓存,提升处理速度
- 完善的错误处理和日志输出
2026-02-07 01:57:13 +08:00
OpenClaw Agent ee18cde745 feat: Add /kb-add command for quick video addition
- Add cmd_add() function to support adding single videos to inbox
- Support BV IDs, full URLs, and short links (with friendly warning)
- Add --process flag to immediately process after adding
- Add --yes flag to skip confirmation prompts
- Update SKILL.md with /kb-add command documentation
2026-02-06 20:42:11 +08:00
OpenClaw Agent f26d4d8f7f feat: implement obsidian-kb skill with long video chunking
- Multi-source content aggregation (Bilibili/YouTube/Zhihu)
- Smart inbox management with AI quality scoring
- Long video chunking analysis (30min+ auto-segmentation)
- Topic-based organization
- Git auto-sync to Obsidian
- Template system with Jinja2 and fallback rendering
- CLI commands: subscribe, inbox, process, skip, status, search
- Comprehensive test suite with unit and integration tests
- Documentation: README.md and SKILL.md

Checkpoint 7-8 completed by Agent E
2026-02-06 18:15:30 +08:00