yuanflow-cli 0.1.33 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -63,6 +63,8 @@ Agent 在排版前应做结构化增强,但不能改变事实:
|
|
|
63
63
|
- 用户要求生成插图:调用 `生图技能` 生成图片,使用工具返回的本地缓存路径插入 Markdown。
|
|
64
64
|
- 用户只要求封面:只生成或使用封面,不在正文里额外插图。
|
|
65
65
|
|
|
66
|
+
使用生图技能生成公众号封面或正文插图时,不能只凭当前文章主题临时想象一个空泛提示词。必须先查看 `生图技能` 的提示词参考目录,至少读取 `生图技能/references/image-prompt-reference.md` 中与本次任务最接近的方向,例如知识卡、信息图、海报封面、科技商业插画、人物/场景图、产品图或编辑部视觉。读取后只借鉴其中的构图、镜头、版式、材质、灯光、信息层级、文字约束和负面提示写法,再结合当前公众号主题重写成新的高质量中文提示词;不要原样复制案例,不要带入无关品牌、人物、Logo、水印或英文占位字。若参考库没有完全匹配的方向,也要选择最接近的视觉类型作为结构参考,再生成更具体的画面规划。
|
|
67
|
+
|
|
66
68
|
生成公众号正文插图时必须遵守中文默认规则:
|
|
67
69
|
|
|
68
70
|
- 中文公众号文章默认生成中文语境图片。生图提示词必须写明:画面中如出现文字、标签、标题、图表标注,全部使用清晰简体中文。
|
|
@@ -74,7 +76,7 @@ Agent 在排版前应做结构化增强,但不能改变事实:
|
|
|
74
76
|
|
|
75
77
|
```bash
|
|
76
78
|
python scripts/wechat_draft.py \
|
|
77
|
-
--credentials-file "D
|
|
79
|
+
--credentials-file "D:\path\to\wechat-credentials.txt" \
|
|
78
80
|
--input article.md \
|
|
79
81
|
--theme newspaper \
|
|
80
82
|
--cover-image cover.png \
|
|
@@ -185,6 +187,8 @@ python scripts/wechat_format.py --input article.md --theme newspaper --output di
|
|
|
185
187
|
|
|
186
188
|
封面不使用第三方生成接口。需要封面时,使用 YuanFlow 内置生图技能生成。
|
|
187
189
|
|
|
190
|
+
生成封面前同样必须先读取 `生图技能/references/image-prompt-reference.md`,选择与文章定位最接近的封面、海报、知识卡、商业科技视觉或信息图方向作为参考。封面提示词要把文章主题、目标读者、视觉主元素、构图层级、比例、中文文字规则和负面约束写清楚,避免只写“生成一张某主题封面图”这类空泛需求。
|
|
191
|
+
|
|
188
192
|
建议比例:
|
|
189
193
|
|
|
190
194
|
- 横向封面:2.35:1
|