yuanflow-cli 0.1.29 → 0.1.30

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuanflow-cli",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "YuanFlow 自媒体 API CLI 与 Skill 安装器。",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -54,20 +54,21 @@ Agent 在排版前应做结构化增强,但不能改变事实:
54
54
 
55
55
  除非用户在本轮已明确指定某个主题 ID,否则不得直接执行 `wechat_format.py --theme ... --output ...`。正确顺序是:
56
56
 
57
- 1. 文章正文确认或生成后,先写入 Markdown 源文件。
58
- 2. 执行主题画廊命令,基于正文生成 20 个核心主题预览:
57
+ 1. 文章正文确认或生成后,先准备 Markdown 正文。
58
+ 2. 如果当前 YuanFlow 主程序工具列表里存在 `wechat_theme_gallery_update`,必须优先调用这个受控工具,传入已确认的 `markdown` 正文或受控 `markdown_path`。该工具会直接运行主题画廊脚本并写入右侧内容创作工作台,避免 Agent 手动复制主题预览 HTML 时丢字段。
59
+ 3. 如果没有 `wechat_theme_gallery_update`,再执行主题画廊命令,基于正文生成 20 个核心主题预览:
59
60
 
60
61
  ```bash
61
62
  python scripts/wechat_format.py --input article.md --theme-gallery --gallery-limit 20 --json
62
63
  ```
63
64
 
64
- 3. 使用 `content_workbench_update` 写入右侧 `内容创作` 工作台:
65
+ 4. 只有在没有受控工具时,才手动使用 `content_workbench_update` 写入右侧 `内容创作` 工作台:
65
66
  - `status`: `collecting`
66
67
  - `activeStep`: `theme_select`
67
68
  - `steps`: 必须包含 `主题选择`
68
- - `views`: 至少包含脚本返回的 `option_grid` 主题卡片;可以同时附带 `editor_panel` 显示 Markdown 摘要。
69
- 4. 明确告诉用户:请在右侧工作台选择一个主题,然后发送输入框上方出现的待执行任务。
70
- 5. 只有拿到用户选择的主题后,才执行:
69
+ - `views`: 至少包含脚本返回的 `option_grid` 主题卡片;必须保留 `previewHtml`,不要省略主题预览;可以同时附带 `editor_panel` 显示 Markdown 摘要。
70
+ 5. 明确告诉用户:请在右侧工作台选择一个主题,然后发送输入框上方出现的待执行任务。
71
+ 6. 只有拿到用户选择的主题后,才执行:
71
72
 
72
73
  ```bash
73
74
  python scripts/wechat_format.py --input article.md --theme <selected_theme> --output dist/wechat.html --preview dist/preview.html --json