Skip to content

重构:完成牛马片场 Windows 版本代码体检、文档重写与冗余清理 - #2

Draft
damingishere-coder wants to merge 1 commit into
masterfrom
refactor/windows-codebase-audit-docs-cleanup
Draft

重构:完成牛马片场 Windows 版本代码体检、文档重写与冗余清理#2
damingishere-coder wants to merge 1 commit into
masterfrom
refactor/windows-codebase-audit-docs-cleanup

Conversation

@damingishere-coder

@damingishere-coder damingishere-coder commented Jun 17, 2026

Copy link
Copy Markdown
Owner

本次修改

  • 修复 AI 分析和恢复历史分析时,候选片段可能被插入后误清空的问题,并新增回归测试。
  • 给字幕 FFmpeg 烧录和任务详情 FFprobe 探测补充超时保护,降低 Windows 本地卡死风险。
  • 移除重复配置字段,迁移 Pydantic v2 校验器写法。
  • 重写 README、Windows 启动、架构、任务流、数据库、部署、AI、切片、审核、字幕发送等文档。
  • 更新 .env.example.gitignoredocker-compose.yml 说明,并记录开发日志、下一步和 changelog。
  • 清理明确可再生成的本地缓存和日志;未删除 .env、数据库、任务产物、截图缓存或需人工确认的文件。

验证

  • .\.venv\Scripts\python.exe -m ruff check app tests
  • .\.venv\Scripts\python.exe -m pytest -q:204 passed
  • 临时启动 uvicorn app.main:app --host 127.0.0.1 --port 8001 并访问 /health:返回 {"status":"ok","app":"NiuMa Studio"}

注意

  • scheduled_at 仍只是字段预留,没有定时调度器。
  • 发送中心仍是人工确认 + opencli 辅助投稿,不是无人值守发布。
  • .env.backup_*data/screenshots/、数据库备份和真实任务目录仍需人工确认后再清理。

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