feat: rename bundled cover prompt template

This commit is contained in:
chengma
2026-07-17 18:24:58 +08:00
parent d1cd50f5c5
commit d853db1c8a
8 changed files with 93 additions and 46 deletions
+6 -3
View File
@@ -1,7 +1,7 @@
---
id: T-661
title: 图生图内置默认提示词改为 cover_prompt 模板
status: TODO
status: DONE
phase: 7
deps: [T-579]
created: 2026-07-17
@@ -36,7 +36,7 @@ created: 2026-07-17
## 文档同步
- 实现时更新 `docs/04-architecture.md`、`docs/api.md` 及 T-579 中与首次播种默认模板相关的当前事实表述。
- 实现时更新 `docs/04-architecture.md` 与 `docs/api.md` 中与首次播种默认模板相关的当前事实表述;T-579 保持为历史执行记录,不回写。
- 不修改冻结的 `docs/06-tasks.md`。
## 边界(不改什么)
@@ -57,4 +57,7 @@ git diff --check
## 执行记录
- 待实现。
- 2026-07-17:将提供的 `default_prompts/cover/cover_prompt.txt` 内容复制为正式打包资源 `app/default_prompts/cover/cover_prompt.txt`,SHA-256 一致;移除旧正式资源 `papa1.txt`。
- 2026-07-17:默认播种后全新用户目录生成 `data/prompts/cover/cover_prompt.txt`,模板下拉显示 `cover_prompt`;`ensure_default_prompts()` 仍只在封面模板目录为空时播种,历史 `papa1` 和其他用户模板均不覆盖、不重命名、不迁移。
- 2026-07-17:更新 prompts、GUI 和 PyInstaller 资源回归测试;同步架构与 API 当前事实。根目录 `default_prompts/` 保持为本次提供的来源,不作为运行时资源或提交内容。
- 验证通过:`py -3.10 -m unittest tests.test_prompts tests.test_gui tests.test_packaging`(214 项)、`py -3.10 -m unittest discover -s tests`(592 项)、`py -3.10 -m ruff check app tests main.py`、`py -3.10 -m compileall app main.py`、`git diff --check`。离屏 GUI 测试有 Qt 字体/插件告警,但无测试失败。