Skip to content

feat: port contentforge/desktop latest changes from main (266552a) - #2

Draft
qdriven wants to merge 2 commits into
refactor/monorepofrom
port/contentforge-266552a
Draft

feat: port contentforge/desktop latest changes from main (266552a)#2
qdriven wants to merge 2 commits into
refactor/monorepofrom
port/contentforge-266552a

Conversation

@qdriven

@qdriven qdriven commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

概述

将 main 分支提交 266552a(update latest codes)移植到 monorepo 目录结构,基于 refactor/monorepo

移植内容(96 文件,+28091 / −1265)

原路径(扁平布局) monorepo 新位置
contentforge/core/python/ 9 个 pipeline/processing 模块 packages/contentforge-core/python/
contentforge/desktop/src-tauri/ Rust 后端大重构(commands/、db/ 模块目录取代单文件;新增 agent_cli / agent_runner / audio_extractor / downloader / queue / vtt_analysis;应用图标;gen/schemas) apps/contentforge-desktop/src-tauri/
contentforge/docs/spec/*、vizplainer-slides、EXTERNAL_REPO_INTEGRATION_PLAN contentforge/docs/
contentforge/external-repos/ 7 份分析文档 + 7 个上游仓库 gitlink 原路径保留
vYtDL-desktop/Taskfile.yml(取代 Python 启动脚本) apps/vytdl-desktop/Taskfile.yml(路径已适配)
docs/how-to/desktop-app.md、tasks/refactor、tasks/tracing 同名路径

连带修复与清理

  • 根 Taskfile / package.json 的 desktop:* 改为委派到 apps/vytdl-desktop 子 Taskfile;删除 5 个被取代的 Python 启动脚本(build-desktop.py、start-desktop.*、vytdl-launcher.py)
  • 修复 monorepo 重构遗留 bug:scripts/download-yt-dlp-binaries.py resources 路径从旧布局 apps/desktop 改为 apps/vytdl-desktop
  • 删除 stale 的 vYtDL-desktop/package.json + pnpm-workspace.yaml 残留
  • .gitignore 补充 .task/downloadeds/*tools/vytdl-cli/bin/*.zip;取消跟踪 .task 缓存

有意跳过的内容

  • contentforge Go 编译二进制、scrape/download 运行时 JSON(由 .gitignore 覆盖)
  • setup-macos.sh:266552a 中删除了旧版,但 monorepo 重构提供了新版本,保留 monorepo 版

验证

  • ✅ Python:9 个模块 py_compile 通过
  • ✅ Go:vytdl-cli、contentforge-cli 构建成功
  • ✅ Rust:cargo check 通过(仅 16 个 dead-code warning)
  • ✅ JSON / Taskfile 语法有效;根与子 task --list 正常

已知待办(不阻塞)

  • README / USAGE / docs 中仍有对已删 Python 启动脚本的文字引用(main 分支同样过时)

⚠️ 按所有者要求:仅创建 PR,暂不合并,待测试完成后再合并

Port commit 266552a 'update latest codes' from the flat layout into the
monorepo structure:

- packages/contentforge-core: pipeline engine/presets/runner and
  processing (analyzer/summarizer/translator/ai_engine/xiaohongshu) updates
- apps/contentforge-desktop/src-tauri: major Rust backend refactor
  (commands/ and db/ module dirs replace commands.rs/database.rs,
  new agent_cli/agent_runner/audio_extractor/downloader/queue/vtt_analysis,
  app icons, generated Tauri schemas, REBUILD_PLAN.md)
- contentforge/docs: spec/*, vizplainer-slides/, EXTERNAL_REPO_INTEGRATION_PLAN
- contentforge/external-repos: analysis docs + upstream repo gitlinks
- docs/how-to/desktop-app.md, tasks/refactor + tasks/tracing entries
- apps/vytdl-desktop/Taskfile.yml replaces build-desktop.py / start-desktop.*
  launchers; root Taskfile and package.json desktop:* delegate to it
- scripts/download-yt-dlp-binaries.py: fix resources path to apps/vytdl-desktop
- .gitignore: add .task/, downloadeds/*, tools/vytdl-cli/bin/*.zip;
  untrack .task cache; drop stale vYtDL-desktop/ leftover files

Skipped (runtime/build output, covered by .gitignore): contentforge Go
binary, scrape/download JSON records. Kept monorepo's new setup-macos.sh.
@qdriven
qdriven marked this pull request as draft August 2, 2026 23:44
PYTHONPATH and Tauri yt-dlp resources still pointed at pre-monorepo
locations, which broke contentforge:check and desktop cargo builds.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant