cmvr-visual/AGENTS.md
zhanghao 88cf14d794 feat: consolidate story studio and editable automatic production
Restructure backend and frontend modules; add story, library, and editor schema migrations.

Support editable automatic production, manual confirmation modes, account and user lifecycle management, compact container scrolling, consistent forms, and per-task result previews.

Update inference and TTS scheduling, deployment guidance, and regression coverage; remove obsolete standalone pages and temporary acceptance artifacts.
2026-11-14 14:07:26 +08:00

1.5 KiB

协作约定

  • 用户要求:仅修改和验证工作区;没有用户明确指令,不得自动暂存,也不得执行 Git commit、push、amend、reset 或 revert。已有本地提交先保留。
  • 保留工作区已有未提交改动,不把结构重构当成重置文件或覆盖其他功能的理由。
  • 前端和业务后端独立运行;推理服务和共享 Qwen 是外部依赖。普通代码整理不得启动真实模型、停止共享服务或改变 GPU 优先策略。
  • 结构调整须保持 HTTP/SSE 合同、路由、用户隔离、幂等键、Pinia ID、本地存储键、数据库表及历史迁移兼容。
  • 关键注释优先使用中文,解释事务、并发、权限、恢复和数据保护的原因;避免逐行翻译代码。
  • 验证完成后说明修改与检查结果,将代码留在工作区供用户检查。
  • 测试通过后,立即清理本次生成的临时脚本、截图、测试媒体、日志、隔离数据库、打包文件及代理过程记录,不把验收产物长期留在项目中。
  • 可重复使用的自动化测试代码和必要的最小夹具属于项目质量保障,应保留;一次性验证脚本与测试生成文件在通过后删除。测试优先使用自动清理的临时目录及隔离数据,避免往真实素材库造测试数据。
  • 清理只针对已确认的临时内容;保留业务素材、用户要求的成片及音频字幕、运行依赖、私有配置、数据库备份和历史迁移。业务交付文件统一放在 outputs/,长期设计说明放在 docs/design/。