@yixiaoermail/cli 3.2.4 → 3.2.6
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/checksums.txt +6 -6
- package/package.json +1 -1
- package/references/cli/command-design.md +1 -1
- package/references/cli/command-reference.md +30 -39
- package/references/cli/publish-channels.md +77 -0
- package/references/create-account-group.md +27 -0
- package/references/delete-account-group.md +20 -0
- package/references/domains/accounts-and-env.md +43 -0
- package/references/domains/draft-and-material.md +34 -0
- package/references/domains/install-and-sync.md +63 -0
- package/references/domains/publish.md +84 -0
- package/references/domains/troubleshooting.md +34 -0
- package/references/execution-standard.md +144 -0
- package/references/get-account-groups.md +15 -0
- package/references/get-account-overviews.md +56 -0
- package/references/get-challenges.md +14 -0
- package/references/get-collections.md +34 -0
- package/references/get-content-overviews.md +59 -0
- package/references/get-friends.md +9 -0
- package/references/get-games.md +39 -0
- package/references/get-goods.md +42 -0
- package/references/get-groups.md +35 -0
- package/references/get-hot-events.md +14 -0
- package/references/get-locations.md +48 -0
- package/references/get-members.md +28 -0
- package/references/get-miniapps.md +38 -0
- package/references/get-music-categories.md +41 -0
- package/references/get-music.md +67 -0
- package/references/get-publish-activities.md +40 -0
- package/references/get-publish-categories.md +62 -0
- package/references/get-sync-apps.md +14 -0
- package/references/get-topics.md +13 -0
- package/references/go-live-process.md +160 -0
- package/references/keyword-reference.md +114 -0
- package/references/legacy/capabilities.md +1 -1
- package/references/material-resource.md +88 -0
- package/references/platform-doc-maintenance.md +33 -0
- package/references/platform.md +62 -0
- package/references/platforms/article/acfun.md +90 -0
- package/references/platforms/article/aiqiyi.md +56 -0
- package/references/platforms/article/baijiahao.md +94 -0
- package/references/platforms/article/bilibili.md +88 -0
- package/references/platforms/article/chejiahao.md +81 -0
- package/references/platforms/article/csdn.md +86 -0
- package/references/platforms/article/dayuhao.md +78 -0
- package/references/platforms/article/douban.md +62 -0
- package/references/platforms/article/douyin.md +106 -0
- package/references/platforms/article/index.md +157 -0
- package/references/platforms/article/jianshu.md +58 -0
- package/references/platforms/article/kuaichuanhao.md +78 -0
- package/references/platforms/article/qiehao.md +78 -0
- package/references/platforms/article/souhuhao.md +75 -0
- package/references/platforms/article/toutiaohao.md +78 -0
- package/references/platforms/article/wangyihao.md +79 -0
- package/references/platforms/article/weixingongzhonghao.md +135 -0
- package/references/platforms/article/xinlangweibo.md +75 -0
- package/references/platforms/article/xueqiuhao.md +73 -0
- package/references/platforms/article/yichehao.md +92 -0
- package/references/platforms/article/yidianhao.md +76 -0
- package/references/platforms/article/zhihu.md +75 -0
- package/references/platforms/imageText/baijiahao.md +102 -0
- package/references/platforms/imageText/douyin.md +111 -0
- package/references/platforms/imageText/index.md +113 -0
- package/references/platforms/imageText/kuaishou.md +106 -0
- package/references/platforms/imageText/shipinhao.md +112 -0
- package/references/platforms/imageText/toutiaohao.md +76 -0
- package/references/platforms/imageText/xiaohongshu.md +85 -0
- package/references/platforms/imageText/xinlangweibo.md +77 -0
- package/references/platforms/imageText/zhihu.md +92 -0
- package/references/platforms/index.md +6 -6
- package/references/platforms/video/acfun.md +82 -0
- package/references/platforms/video/aiqiyi.md +89 -0
- package/references/platforms/video/baijiahao.md +89 -0
- package/references/platforms/video/bilibili-open.md +59 -0
- package/references/platforms/video/bilibili.md +80 -0
- package/references/platforms/video/chejiahao.md +63 -0
- package/references/platforms/video/dayuhao.md +91 -0
- package/references/platforms/video/dewu.md +80 -0
- package/references/platforms/video/douyin.md +173 -0
- package/references/platforms/video/duoduoshipin.md +64 -0
- package/references/platforms/video/facebook.md +37 -0
- package/references/platforms/video/fengwang.md +81 -0
- package/references/platforms/video/index.md +173 -0
- package/references/platforms/video/instagram.md +40 -0
- package/references/platforms/video/kuaishou-open.md +44 -0
- package/references/platforms/video/kuaishou.md +77 -0
- package/references/platforms/video/meipai.md +79 -0
- package/references/platforms/video/meiyou.md +59 -0
- package/references/platforms/video/pipixia.md +58 -0
- package/references/platforms/video/qiehao.md +91 -0
- package/references/platforms/video/shipinhao.md +100 -0
- package/references/platforms/video/souhuhao.md +91 -0
- package/references/platforms/video/souhushipin.md +64 -0
- package/references/platforms/video/tengxunshipin.md +63 -0
- package/references/platforms/video/tiktok.md +50 -0
- package/references/platforms/video/toutiaohao.md +66 -0
- package/references/platforms/video/wangyihao.md +93 -0
- package/references/platforms/video/weishi.md +61 -0
- package/references/platforms/video/xiaohongshu.md +133 -0
- package/references/platforms/video/xiaohongshushop.md +92 -0
- package/references/platforms/video/xinlangweibo.md +79 -0
- package/references/platforms/video/yichehao.md +61 -0
- package/references/platforms/video/yidianhao.md +85 -0
- package/references/platforms/video/youtube.md +53 -0
- package/references/platforms/video/zhihu.md +85 -0
- package/references/protocols/confirmation.md +62 -0
- package/references/protocols/error-recovery.md +50 -0
- package/references/protocols/execution.md +65 -0
- package/references/protocols/provenance.md +61 -0
- package/references/proxy-management.md +69 -0
- package/references/query-accounts.md +85 -0
- package/references/save-draft.md +75 -0
- package/references/topic-tags.md +140 -0
- package/references/troubleshooting-guide.md +105 -0
- package/references/update-account-group.md +28 -0
- package/references/upload-resource.md +70 -0
- package/references/usage-workflow.md +207 -0
- package/references/workflows/common-rules.md +57 -27
- package/references/workflows/data-accuracy.md +83 -0
- package/references/workflows/local-vs-cloud.md +12 -5
- package/references/workflows/payload-sourcing.md +3 -0
- package/references/workflows/publish-article.md +5 -3
- package/references/workflows/publish-imageText.md +5 -3
- package/references/workflows/publish-troubleshooting.md +1 -1
- package/references/workflows/publish-video.md +6 -4
- package/references/yixiaoer-shared.md +106 -0
- package/schemas/platforms/acfun.article.schema.json +9 -9
- package/schemas/platforms/baijiahao.article.schema.json +8 -0
- package/schemas/platforms/baijiahao.video.schema.json +19 -2
- package/schemas/platforms/bilibili-open.video.schema.json +188 -0
- package/schemas/platforms/chejiahao.article.schema.json +7 -7
- package/schemas/platforms/dayuhao.video.schema.json +26 -0
- package/schemas/platforms/douyin.article.schema.json +8 -0
- package/schemas/platforms/douyin.imageText.schema.json +16 -2
- package/schemas/platforms/douyin.video.schema.json +88 -6
- package/schemas/platforms/kuaichuanhao.article.schema.json +20 -8
- package/schemas/platforms/kuaishou-open.video.schema.json +102 -0
- package/schemas/platforms/kuaishou.imageText.schema.json +12 -2
- package/schemas/platforms/kuaishou.video.schema.json +31 -0
- package/schemas/platforms/shipinhao.imageText.schema.json +13 -1
- package/schemas/platforms/shipinhao.video.schema.json +31 -0
- package/schemas/platforms/souhushipin.video.schema.json +3 -3
- package/schemas/platforms/tengxunshipin.video.schema.json +1 -0
- package/schemas/platforms/toutiaohao.imageText.schema.json +2 -1
- package/schemas/platforms/toutiaohao.video.schema.json +2 -1
- package/schemas/platforms/wangyihao.article.schema.json +6 -5
- package/schemas/platforms/wangyihao.video.schema.json +1 -0
- package/schemas/platforms/xhs.imageText.schema.json +27 -25
- package/schemas/platforms/xiaohongshu.video.schema.json +2 -1
- package/schemas/platforms/xinlang.imageText.schema.json +23 -2
- package/schemas/platforms/xinlang.video.schema.json +40 -10
- package/schemas/platforms/yidianhao.article.schema.json +1 -0
- package/schemas/platforms/yidianhao.video.schema.json +9 -8
- package/skills/yixiaoer/SKILL.md +30 -4
- package/skills/yixiaoer/references/cli/command-design.md +305 -0
- package/skills/yixiaoer/references/cli/command-reference.md +19 -6
- package/skills/yixiaoer/references/cli/publish-channels.md +77 -0
- package/skills/yixiaoer/references/domains/accounts-and-env.md +6 -2
- package/skills/yixiaoer/references/domains/draft-and-material.md +8 -3
- package/skills/yixiaoer/references/domains/publish.md +17 -10
- package/skills/yixiaoer/references/domains/troubleshooting.md +6 -2
- package/skills/yixiaoer/references/get-account-groups.md +2 -1
- package/skills/yixiaoer/references/go-live-process.md +2 -2
- package/skills/yixiaoer/references/keyword-reference.md +3 -2
- package/skills/yixiaoer/references/legacy/capabilities.md +37 -0
- package/skills/yixiaoer/references/platform.md +2 -1
- package/skills/yixiaoer/references/platforms/article/acfun.md +1 -1
- package/skills/yixiaoer/references/platforms/article/aiqiyi.md +1 -1
- package/skills/yixiaoer/references/platforms/article/baijiahao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/bilibili.md +1 -1
- package/skills/yixiaoer/references/platforms/article/chejiahao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/csdn.md +1 -1
- package/skills/yixiaoer/references/platforms/article/dayuhao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/douban.md +1 -1
- package/skills/yixiaoer/references/platforms/article/douyin.md +1 -1
- package/skills/yixiaoer/references/platforms/article/index.md +2 -2
- package/skills/yixiaoer/references/platforms/article/jianshu.md +1 -1
- package/skills/yixiaoer/references/platforms/article/kuaichuanhao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/qiehao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/souhuhao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/toutiaohao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/wangyihao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/weixingongzhonghao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/xinlangweibo.md +1 -1
- package/skills/yixiaoer/references/platforms/article/xueqiuhao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/yichehao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/yidianhao.md +1 -1
- package/skills/yixiaoer/references/platforms/article/zhihu.md +1 -1
- package/skills/yixiaoer/references/platforms/imageText/baijiahao.md +1 -1
- package/skills/yixiaoer/references/platforms/imageText/douyin.md +1 -1
- package/skills/yixiaoer/references/platforms/imageText/index.md +5 -8
- package/skills/yixiaoer/references/platforms/imageText/kuaishou.md +1 -1
- package/skills/yixiaoer/references/platforms/imageText/shipinhao.md +4 -17
- package/skills/yixiaoer/references/platforms/imageText/toutiaohao.md +1 -1
- package/skills/yixiaoer/references/platforms/imageText/xiaohongshu.md +4 -7
- package/skills/yixiaoer/references/platforms/imageText/xinlangweibo.md +1 -1
- package/skills/yixiaoer/references/platforms/imageText/zhihu.md +1 -1
- package/skills/yixiaoer/references/platforms/video/acfun.md +1 -1
- package/skills/yixiaoer/references/platforms/video/aiqiyi.md +1 -1
- package/skills/yixiaoer/references/platforms/video/baijiahao.md +1 -1
- package/skills/yixiaoer/references/platforms/video/bilibili-open.md +33 -61
- package/skills/yixiaoer/references/platforms/video/bilibili.md +1 -1
- package/skills/yixiaoer/references/platforms/video/chejiahao.md +1 -1
- package/skills/yixiaoer/references/platforms/video/dayuhao.md +3 -1
- package/skills/yixiaoer/references/platforms/video/dewu.md +1 -1
- package/skills/yixiaoer/references/platforms/video/douyin.md +41 -11
- package/skills/yixiaoer/references/platforms/video/duoduoshipin.md +1 -1
- package/skills/yixiaoer/references/platforms/video/fengwang.md +1 -1
- package/skills/yixiaoer/references/platforms/video/index.md +6 -2
- package/skills/yixiaoer/references/platforms/video/kuaishou-open.md +20 -39
- package/skills/yixiaoer/references/platforms/video/kuaishou.md +1 -1
- package/skills/yixiaoer/references/platforms/video/meipai.md +1 -1
- package/skills/yixiaoer/references/platforms/video/meiyou.md +1 -1
- package/skills/yixiaoer/references/platforms/video/pipixia.md +1 -1
- package/skills/yixiaoer/references/platforms/video/qiehao.md +1 -1
- package/skills/yixiaoer/references/platforms/video/shipinhao.md +7 -2
- package/skills/yixiaoer/references/platforms/video/souhuhao.md +1 -1
- package/skills/yixiaoer/references/platforms/video/souhushipin.md +1 -1
- package/skills/yixiaoer/references/platforms/video/tengxunshipin.md +1 -1
- package/skills/yixiaoer/references/platforms/video/toutiaohao.md +1 -1
- package/skills/yixiaoer/references/platforms/video/wangyihao.md +1 -1
- package/skills/yixiaoer/references/platforms/video/weishi.md +1 -1
- package/skills/yixiaoer/references/platforms/video/xiaohongshu.md +1 -1
- package/skills/yixiaoer/references/platforms/video/xiaohongshushop.md +1 -1
- package/skills/yixiaoer/references/platforms/video/xinlangweibo.md +1 -1
- package/skills/yixiaoer/references/platforms/video/yichehao.md +1 -1
- package/skills/yixiaoer/references/platforms/video/yidianhao.md +1 -1
- package/skills/yixiaoer/references/platforms/video/zhihu.md +1 -1
- package/skills/yixiaoer/references/protocols/confirmation.md +62 -0
- package/skills/yixiaoer/references/protocols/error-recovery.md +50 -0
- package/skills/yixiaoer/references/protocols/execution.md +65 -0
- package/skills/yixiaoer/references/protocols/provenance.md +61 -0
- package/skills/yixiaoer/references/upload-resource.md +7 -0
- package/skills/yixiaoer/references/usage-workflow.md +1 -1
- package/skills/yixiaoer/references/workflows/common-rules.md +37 -16
- package/skills/yixiaoer/references/workflows/local-vs-cloud.md +12 -5
- package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +1 -1
- package/skills/yixiaoer/references/workflows/publish-video.md +1 -1
- package/skills/yixiaoer/references/yixiaoer-shared.md +18 -7
- package/skills/yixiaoer/references/platforms/get-locations.md +0 -5
- package/skills/yixiaoer/references/platforms/imageText/weixinshipinhao.md +0 -7
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
| `goods` | 查询商品 |
|
|
89
89
|
| `collections` | 查询合集 |
|
|
90
90
|
| `challenges` | 查询话题 |
|
|
91
|
-
| `records
|
|
91
|
+
| `query records` | 查询发布记录 |
|
|
92
92
|
|
|
93
93
|
## 8. 使用场景关键词
|
|
94
94
|
|
|
@@ -109,5 +109,6 @@
|
|
|
109
109
|
|
|
110
110
|
- `yxer` 是实际执行工具
|
|
111
111
|
- `yixiaoer skill` 是给 AI 读的规则包
|
|
112
|
-
-
|
|
112
|
+
- 已有完整 payload 时,发布前必须先 `validate`、`publish --dry-run`
|
|
113
|
+
- 缺字段或资源时,先用 `prepare` / `schema fields` / `publish form` 补齐 payload
|
|
113
114
|
- 资源必须先上传,不能直接在 payload 里乱填外链
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# 未 CLI 化能力索引
|
|
2
|
+
|
|
3
|
+
本页用于标记当前 `yxer` CLI 尚未覆盖、或仅部分覆盖的能力。它不是兼容入口说明,也不代表仓库内存在其他可执行主流程。
|
|
4
|
+
|
|
5
|
+
## 使用规则
|
|
6
|
+
|
|
7
|
+
1. 如果能力已经有正式 `yxer` 命令,优先直接调用现有命令。
|
|
8
|
+
2. 如果能力只有“部分覆盖”,优先使用现有命令完成已支持部分,剩余字段仅把对应文档当参考。
|
|
9
|
+
3. 如果能力仍“未覆盖”,应优先补成新的 `yxer` 子命令,而不是寻找旧脚本或新增脚本入口。
|
|
10
|
+
|
|
11
|
+
## 能力状态表
|
|
12
|
+
|
|
13
|
+
| 能力 | 当前状态 | 推荐/现有命令 | 参考文档 |
|
|
14
|
+
| --- | --- | --- | --- |
|
|
15
|
+
| 蚁小二内部草稿保存 | 已覆盖 | `yxer draft save <payload.json>` | `skills/yixiaoer/references/save-draft.md` |
|
|
16
|
+
| 平台草稿发布 | 部分覆盖 | `yxer publish <type> <platform> <payload.json>` | `skills/yixiaoer/references/save-draft.md` |
|
|
17
|
+
| 素材库登记 | 已覆盖 | `yxer material create <payload.json>` | `skills/yixiaoer/references/material-resource.md` |
|
|
18
|
+
| 素材上传并登记一体化 | 已覆盖 | `yxer material add --file <文件路径或URL>` | `skills/yixiaoer/references/material-resource.md` |
|
|
19
|
+
| 账号数据概览 | 已覆盖 | `yxer query account-overviews --platform P [--name 关键词] [--group 分组] [--login-status 1] [--member-id ID]` | `skills/yixiaoer/references/get-account-overviews.md` |
|
|
20
|
+
| 成员列表 | 已覆盖 | `yxer query members [--page 1] [--size 10] [--status joined] [--query 关键词] [--role master|admin|member]` | `skills/yixiaoer/references/get-members.md` |
|
|
21
|
+
| 作品数据概览 | 已覆盖 | `yxer query content-overviews [--platform P] [--account-id ID] [--type video|article|miniVideo|dynamic]` | `skills/yixiaoer/references/get-content-overviews.md` |
|
|
22
|
+
| 征文活动 | 已覆盖 | `yxer query activities <account_id> [--type video|article] [--category-id ID] [--query 关键词]` | `skills/yixiaoer/references/get-publish-activities.md` |
|
|
23
|
+
| 小程序列表 | 已覆盖 | `yxer query miniapps <account_id> [--query 关键词]` | `skills/yixiaoer/references/get-miniapps.md` |
|
|
24
|
+
| 同步发布应用 | 已覆盖 | `yxer query syncapps <account_id>` | `skills/yixiaoer/references/get-sync-apps.md` |
|
|
25
|
+
| 热点列表 | 已覆盖 | `yxer query hot-events <account_id>` | `skills/yixiaoer/references/get-hot-events.md` |
|
|
26
|
+
| 群聊列表 | 已覆盖 | `yxer query groups <account_id>` | `skills/yixiaoer/references/get-groups.md` |
|
|
27
|
+
| 账号分组列表 | 已覆盖 | `yxer account-group list [--page 1] [--size 10]` | `skills/yixiaoer/references/get-account-groups.md` |
|
|
28
|
+
| 创建账号分组 | 已覆盖 | `yxer account-group create <name> [--dry-run]` | `skills/yixiaoer/references/create-account-group.md` |
|
|
29
|
+
| 更新账号分组 | 已覆盖 | `yxer account-group update <group_id> <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]` | `skills/yixiaoer/references/update-account-group.md` |
|
|
30
|
+
| 删除账号分组 | 已覆盖 | `yxer account-group delete <group_id> [--dry-run]` | `skills/yixiaoer/references/delete-account-group.md` |
|
|
31
|
+
| 音乐分类 | 已覆盖 | `yxer query music-categories <account_id>` | `skills/yixiaoer/references/get-music-categories.md` |
|
|
32
|
+
| 游戏挂载 | 已覆盖 | `yxer query games <account_id> [--query 关键词]` | `skills/yixiaoer/references/get-games.md` |
|
|
33
|
+
| 代理管理 | 已覆盖 | `yxer query proxies` / `yxer query proxy-areas` / `yxer update-account <account_id> ... --dry-run` | `skills/yixiaoer/references/proxy-management.md` |
|
|
34
|
+
|
|
35
|
+
## 推荐迁移顺序
|
|
36
|
+
|
|
37
|
+
当前遗留表中的 CLI 化项目均已覆盖;后续若旧 skill 文档新增能力,应继续按本表补充状态。
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
| :--- | :--- |
|
|
10
10
|
| `DouYin` | `抖音` |
|
|
11
11
|
| `KuaiShou` | `快手` |
|
|
12
|
+
| `KuaiShou-Open` | `快手-Open` |
|
|
12
13
|
| `ShiPinHao` | `视频号` |
|
|
13
14
|
| `BiLiBiLi` | `哔哩哔哩` |
|
|
15
|
+
| `BiLiBiLi-Open` | `哔哩哔哩-Open` |
|
|
14
16
|
| `XiaoHongShu` | `小红书` |
|
|
15
17
|
| `BaiJiaHao` | `百家号` |
|
|
16
18
|
| `TouTiaoHao` | `头条号` |
|
|
@@ -50,7 +52,6 @@
|
|
|
50
52
|
| `JianShu` | `简书` |
|
|
51
53
|
| `MeiYou` | `美柚` |
|
|
52
54
|
| `WeiXinGongZhongHao-Open` | `微信公众号-Open` |
|
|
53
|
-
| `BiLiBiLi-Open` | `哔哩哔哩-Open` |
|
|
54
55
|
|
|
55
56
|
## 平台类型枚举 (PlatformType)
|
|
56
57
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Acfun要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Aiqiyi要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Baijiahao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Bilibili要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Chejiahao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Csdn要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Dayuhao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Douban要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Douyin要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
> [!TIP]
|
|
20
20
|
> 示例优先使用“标准请求体”格式:共享封面和正文放在 `publishArgs` 根级,账号差异字段放在 `accountForms[]`。CLI 会在校验阶段自动补齐缺失字段。
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
- **微信公众号**:必须单独发布,推荐使用 `platformForms` 结构。
|
|
22
22
|
- **通用平台**(知乎、简书等):使用 `accountForms` 结构进行分发。
|
|
23
23
|
4. **参数装配**:注入 `action: "publish"` 及其余 DTO 字段。
|
|
24
|
-
5. **指令执行**:先执行 `yxer validate <platform> article <payload.json>`,再执行 `yxer publish article <platform> <payload.json> [clientId]`。
|
|
24
|
+
5. **指令执行**:先执行 `yxer validate <platform> article <payload.json>`,再执行 `yxer publish article <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
25
25
|
|
|
26
26
|
## 1. 数据结构 (Data Structure)
|
|
27
27
|
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
> - 推荐优先使用“标准请求体”形态,在 `publishArgs` 中声明共享的 `covers`、`coverKey`、`content`,这些字段都与 `accountForms` 同级。
|
|
83
83
|
> - 文章封面统一使用 `covers` 数组;只有一张封面时也写成 `covers: [{...}]`。`cover` 仅作为旧 payload 兼容输入。
|
|
84
84
|
> - 文章正文推荐直接填写 `publishArgs.content`,不要只在 `contentPublishForm.content` 中单独填写。
|
|
85
|
-
> - CLI 当前仍按**单平台命令**执行:`yxer publish article <platform> <payload.json> [clientId]`。
|
|
85
|
+
> - CLI 当前仍按**单平台命令**执行:`yxer publish article <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
86
86
|
> - `yxer validate` 与 `yxer publish` 都接受完整标准请求体;在共享字段存在而账号项缺失时,CLI 会在校验阶段自动补齐到对应 `accountForms[]`。
|
|
87
87
|
|
|
88
88
|
### 1.4 账号表单项 (accountForms Item)
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Jianshu要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Kuaichuanhao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Qiehao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Souhuhao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
20
20
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
2. **位置检索**:若需精准挂载位置,调用 `locations` 接口获取 DTO。
|
|
18
18
|
3. **收益装配**:根据意图注入 `advertisement: 3`(赚取收益)或 `2`(不投放广告)。
|
|
19
19
|
4. **参数装配**:构造 `accountForms[i].contentPublishForm`。
|
|
20
|
-
5. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
20
|
+
5. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
21
21
|
|
|
22
22
|
## 1. contentPublishForm 参数定义
|
|
23
23
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Wangyihao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Weixingongzhonghao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
> [!TIP]
|
|
20
20
|
> 微信公众号仍推荐使用 `platformForms`;同时可以在 `publishArgs` 根级放共享封面或业务扩展字段。CLI 保持单平台执行模型。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Xinlangweibo要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Xueqiuhao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Yichehao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **内容处理**:确保文章正文符合Yidianhao要求的格式。
|
|
16
16
|
2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台文章发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
2. **辅助话题检索**:调用 `challenges` 接口获取知乎支持的 Topic 列表(限制最多 3 个)。
|
|
18
18
|
3. **申明装配**:根据文章属性注入 `declaration` 枚举值(如 5-AI辅助)。
|
|
19
19
|
4. **参数装配**:构造 `accountForms[i].contentPublishForm`。
|
|
20
|
-
5. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
20
|
+
5. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
21
21
|
|
|
22
22
|
## 1. contentPublishForm 参数定义
|
|
23
23
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **资源校验**:确保所有图片均已上传并获得 Key。
|
|
16
16
|
2. **参数装配**:图文内容使用 `contentPublishForm.images` 传图;账号层仍需同步提供 `cover` 和 `coverKey`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
本平台图文发布通过 `contentPublishForm` 承载以下参数。
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **资源校验**:确保所有图片均已上传并获得 Key。
|
|
16
16
|
2. **参数装配**:填充描述及图片列表至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
> [!TIP]
|
|
20
20
|
> 抖音图文如涉及话题,请先读取 [`../../topic-tags.md`](../../topic-tags.md)。如果要使用 `<topic>`,Agent 必须直接写入最终 `description` HTML。
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
2. **账号确权**:获取目标账号对应的 `platformAccountId`。
|
|
20
20
|
3. **平台细化**:针对小红书等平台,查阅对应文档补齐“话题”、“地点”等字段。
|
|
21
21
|
4. **Payload 装配**:按照 1.1 - 1.3 节结构,构造包含 `action: "publish"` 的 JSON。
|
|
22
|
-
5. **指令交付**:先执行 `yxer validate <platform> imageText <payload.json>`,再执行 `yxer publish imageText <platform> <payload.json> [clientId]`。
|
|
22
|
+
5. **指令交付**:先执行 `yxer validate <platform> imageText <payload.json>`,再执行 `yxer publish imageText <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
23
23
|
|
|
24
24
|
## 1. 数据结构 (Data Structure)
|
|
25
25
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
| `action` | `string` | **是** | 固定值:`publish` | - |
|
|
33
33
|
| `publishType` | `string` | **是** | 固定为 `imageText` | - |
|
|
34
34
|
| `platforms` | `string[]` | **是** | 目标平台枚举数组,详见下方平台列表 | - |
|
|
35
|
-
| `coverKey` | `string` |
|
|
35
|
+
| `coverKey` | `string` | 否 | 任务封面资源 Key;新浪微博、小红书、视频号、知乎、头条号图文默认使用 `images[0]` 作为内部封面,无需外部传入 | - |
|
|
36
36
|
| `publishArgs` | `Object` | **是** | 发布参数核心容器 | - |
|
|
37
37
|
| `taskSetId` | `string` | 否 | 任务集唯一标识 (草稿发布时必填) | - |
|
|
38
38
|
| `desc` | `string` | 否 | 任务描述/摘要 | - |
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
| :--- | :--- | :--- | :--- | :--- |
|
|
71
71
|
| `platformAccountId` | `string` | **是** | 蚁小二平台账号唯一 ID | - |
|
|
72
72
|
| `images` | `Array` | **是** | **ImageFormItem[]**: 图文图片列表 (`key`, `width`, `height`, `size`) | - |
|
|
73
|
-
| `cover` | `Object` |
|
|
73
|
+
| `cover` | `Object` | 否 | **ImageFormItem**: 主封面对象;仅在平台 schema 暴露单独封面字段时填写 | - |
|
|
74
74
|
| `contentPublishForm`| `Object` | **是** | **透传层**: `{}` | - |
|
|
75
|
-
| `coverKey` | `string` |
|
|
75
|
+
| `coverKey` | `string` | 否 | 账号级封面 Key;新浪微博、小红书、视频号、知乎、头条号图文由 CLI 从首图派生 | - |
|
|
76
76
|
|
|
77
77
|
## 2. 发布示例 (Payload Example)
|
|
78
78
|
|
|
@@ -81,7 +81,6 @@
|
|
|
81
81
|
"action": "publish",
|
|
82
82
|
"publishType": "imageText",
|
|
83
83
|
"platforms": ["小红书"],
|
|
84
|
-
"coverKey": "img_key_1",
|
|
85
84
|
"publishArgs": {
|
|
86
85
|
"content": "这是一个图文发布的描述内容。 #演示",
|
|
87
86
|
"accountForms": [
|
|
@@ -89,9 +88,7 @@
|
|
|
89
88
|
"platformAccountId": "acc_img_002",
|
|
90
89
|
"images": [
|
|
91
90
|
{ "key": "img_key_1", "width": 1080, "height": 1440, "size": 200000 }
|
|
92
|
-
]
|
|
93
|
-
"coverKey": "img_key_1",
|
|
94
|
-
"cover": { "key": "img_key_1", "width": 1080, "height": 1440, "size": 200000 }
|
|
91
|
+
]
|
|
95
92
|
}
|
|
96
93
|
]
|
|
97
94
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **资源校验**:确保所有图片均已上传并获得 Key。
|
|
16
16
|
2. **参数装配**:填充描述及图片列表至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
本平台图文发布通过 `contentPublishForm` 承载以下参数。
|
|
20
20
|
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
|
|
15
15
|
## 执行逻辑 (Logic Flow)
|
|
16
16
|
1. **资源校验**:确保所有图片均已上传并获得 Key。
|
|
17
|
-
2. **参数装配**:填充描述及图片列表至 `contentPublishForm
|
|
18
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
2. **参数装配**:填充描述及图片列表至 `contentPublishForm`;无需外部传入 `cover` / `coverKey`,CLI 会默认使用首图作为内部封面。
|
|
18
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
本平台图文发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -34,14 +34,9 @@
|
|
|
34
34
|
| `collection` | `Object` | 否 | 合集信息,使用 `Collection` 结构 | - |
|
|
35
35
|
| `pubType` | `number` | **是** | 发布类型: 0-平台草稿, 1-直接发布 | 1 |
|
|
36
36
|
|
|
37
|
-
## 1.1
|
|
37
|
+
## 1.1 封面派生规则
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
| 字段名 | 类型 | 必填 | 说明 |
|
|
42
|
-
| :--- | :--- | :--- | :--- |
|
|
43
|
-
| `cover` | `Object` | **是** | 账号级封面对象,通常直接复用首图资源对象 |
|
|
44
|
-
| `coverKey` | `string` | **是** | 账号级封面 Key,必须与 `cover.key` 一致 |
|
|
39
|
+
视频号图文没有单独的外部封面参数。只需提供 `contentPublishForm.images`;CLI 会在内部默认使用 `images[0]` 派生 `cover` / `coverKey`,不要在 payload 中额外手写封面字段。
|
|
45
40
|
|
|
46
41
|
## 2. 复杂对象结构说明
|
|
47
42
|
|
|
@@ -91,14 +86,6 @@
|
|
|
91
86
|
"accountForms": [
|
|
92
87
|
{
|
|
93
88
|
"platformAccountId": "SPH_ACC_ID",
|
|
94
|
-
"coverKey": "img_sph_01",
|
|
95
|
-
"cover": {
|
|
96
|
-
"key": "img_sph_01",
|
|
97
|
-
"size": 1024,
|
|
98
|
-
"width": 1080,
|
|
99
|
-
"height": 1440,
|
|
100
|
-
"format": "jpg"
|
|
101
|
-
},
|
|
102
89
|
"contentPublishForm": {
|
|
103
90
|
"formType": "task",
|
|
104
91
|
"title": "视频号动态标题",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **资源校验**:确保所有图片均已上传并获得 Key。
|
|
16
16
|
2. **参数装配**:填充描述及图片列表至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
本平台图文发布通过 `contentPublishForm` 承载以下参数。
|
|
20
20
|
|
|
@@ -17,9 +17,8 @@
|
|
|
17
17
|
2. **辅助检索**:
|
|
18
18
|
- 话题:调用 `challenges` 获取标准话题 DTO。
|
|
19
19
|
- 地点:调用 `locations` 获取 POI 数据。
|
|
20
|
-
- 音乐:若需要,调用 `music` 获取。
|
|
21
20
|
3. **参数装配**:将处理后的字段填入 `accountForms[i].contentPublishForm`。
|
|
22
|
-
4. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
21
|
+
4. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
23
22
|
|
|
24
23
|
## 1. contentPublishForm 参数 definition
|
|
25
24
|
|
|
@@ -30,10 +29,10 @@
|
|
|
30
29
|
| `description` | `string` | **是** | 笔记描述,支持 HTML (`<p>`, `<topic>`)。最多 1000 字符。 | - |
|
|
31
30
|
| `images` | `Array` | **是** | 图片数组 (`OldImage[]`) | - |
|
|
32
31
|
| `location` | `Object` | 否 | 位置对象 (`PlatformDataItem`) | - |
|
|
33
|
-
| `music` | `Object` | 否 | 音乐对象 (`MusicItem`) | - |
|
|
34
32
|
| `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
|
|
35
33
|
| `collection` | `Object` | 否 | 合集信息,使用 `Collection` 结构 | - |
|
|
36
34
|
| `visibleType` | `number` | **是** | 可见类型: 0-公开, 1-私密, 3-好友可见 | 0 |
|
|
35
|
+
| `createType` | `number` | 否 | 原创申明: 0-不申明, 1-原创 | 0 |
|
|
37
36
|
|
|
38
37
|
## 2. 复杂对象结构说明
|
|
39
38
|
|
|
@@ -49,9 +48,6 @@
|
|
|
49
48
|
### PlatformDataItem (基础结构)
|
|
50
49
|
包含 `yixiaoerId`, `yixiaoerName`, `raw`。
|
|
51
50
|
|
|
52
|
-
### MusicItem (音乐)
|
|
53
|
-
包含 `yixiaoerId`, `yixiaoerName`, `duration`, `playUrl`, `raw` 等。
|
|
54
|
-
|
|
55
51
|
## 3. Payload 完整示例
|
|
56
52
|
|
|
57
53
|
```json
|
|
@@ -70,7 +66,8 @@
|
|
|
70
66
|
"images": [
|
|
71
67
|
{ "key": "img_xhs_01", "size": 1024, "width": 1080, "height": 1440, "format": "jpg" }
|
|
72
68
|
],
|
|
73
|
-
"visibleType": 0
|
|
69
|
+
"visibleType": 0,
|
|
70
|
+
"createType": 1
|
|
74
71
|
}
|
|
75
72
|
}
|
|
76
73
|
]
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **资源校验**:确保所有图片均已上传并获得 Key。
|
|
16
16
|
2. **参数装配**:填充描述及图片列表至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
本平台图文发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **资源校验**:确保所有图片均已上传并获得 Key。
|
|
16
16
|
2. **参数装配**:填充描述及图片列表至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
本平台图文发布通过 `contentPublishForm` 承载以下参数。
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **意图确认**:确认目标平台为Acfun。
|
|
16
16
|
2. **参数装配**:识别并填充标题、描述等平台特定字段至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
在本平台视频发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **意图确认**:确认目标平台为Aiqiyi。
|
|
16
16
|
2. **参数装配**:识别并填充标题、描述等平台特定字段至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
在本平台视频发布通过 `contentPublishForm` 承载以下参数。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 执行逻辑 (Logic Flow)
|
|
15
15
|
1. **意图确认**:确认目标平台为Baijiahao。
|
|
16
16
|
2. **参数装配**:识别并填充标题、描述等平台特定字段至 `contentPublishForm`。
|
|
17
|
-
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [clientId]`。
|
|
17
|
+
3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
在本平台视频发布通过 `contentPublishForm` 承载以下参数。
|