@yixiaoermail/cli 3.2.29 → 3.2.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/README.md +54 -54
- package/bin/ensure-executable.js +25 -25
- package/bin/install.js +311 -311
- package/bin/postinstall.js +14 -14
- package/bin/resolve-binary.js +22 -22
- package/bin/yxer.js +100 -100
- package/checksums.txt +6 -6
- package/package.json +30 -30
- package/references/cli/command-design.md +306 -306
- package/references/cli/command-reference.md +271 -271
- package/references/cli/publish-channels.md +77 -77
- package/references/create-account-group.md +27 -27
- package/references/delete-account-group.md +20 -20
- package/references/domains/accounts-and-env.md +46 -46
- package/references/domains/draft-and-material.md +41 -41
- package/references/domains/install-and-sync.md +63 -63
- package/references/domains/publish.md +87 -87
- package/references/domains/troubleshooting.md +38 -38
- package/references/execution-standard.md +145 -145
- package/references/get-account-groups.md +15 -15
- package/references/get-account-increments.md +55 -55
- package/references/get-account-overviews.md +56 -56
- package/references/get-challenges.md +14 -14
- package/references/get-collections.md +41 -41
- package/references/get-content-overviews.md +59 -59
- package/references/get-drama-tasks.md +43 -43
- package/references/get-friends.md +48 -48
- package/references/get-games.md +39 -39
- package/references/get-goods.md +52 -52
- package/references/get-groups.md +35 -35
- package/references/get-hot-events.md +14 -14
- package/references/get-locations.md +48 -48
- package/references/get-members.md +28 -28
- package/references/get-miniapps.md +38 -38
- package/references/get-music-categories.md +44 -44
- package/references/get-music.md +69 -69
- package/references/get-publish-activities.md +42 -40
- package/references/get-publish-categories.md +67 -67
- package/references/get-sync-apps.md +14 -14
- package/references/get-topics.md +13 -13
- package/references/go-live-process.md +160 -160
- package/references/keyword-reference.md +115 -115
- package/references/legacy/capabilities.md +39 -39
- package/references/material-resource.md +88 -88
- package/references/platform-doc-maintenance.md +33 -33
- package/references/platform.md +62 -62
- package/references/platforms/article/acfun.md +90 -90
- package/references/platforms/article/aiqiyi.md +56 -56
- package/references/platforms/article/baijiahao.md +94 -94
- package/references/platforms/article/bilibili.md +88 -88
- package/references/platforms/article/chejiahao.md +81 -81
- package/references/platforms/article/csdn.md +86 -86
- package/references/platforms/article/dayuhao.md +78 -78
- package/references/platforms/article/douban.md +62 -62
- package/references/platforms/article/douyin.md +106 -106
- package/references/platforms/article/index.md +158 -158
- package/references/platforms/article/jianshu.md +56 -56
- package/references/platforms/article/kuaichuanhao.md +78 -78
- package/references/platforms/article/qiehao.md +78 -78
- package/references/platforms/article/souhuhao.md +97 -75
- package/references/platforms/article/toutiaohao.md +80 -80
- package/references/platforms/article/wangyihao.md +100 -79
- package/references/platforms/article/weixingongzhonghao-open.md +86 -86
- package/references/platforms/article/weixingongzhonghao.md +174 -174
- package/references/platforms/article/xinlangweibo.md +75 -75
- package/references/platforms/article/xueqiuhao.md +73 -73
- package/references/platforms/article/yichehao.md +92 -92
- package/references/platforms/article/yidianhao.md +76 -76
- package/references/platforms/article/zhihu.md +75 -75
- package/references/platforms/imageText/baijiahao.md +102 -102
- package/references/platforms/imageText/douyin.md +113 -111
- package/references/platforms/imageText/index.md +117 -117
- package/references/platforms/imageText/kuaishou.md +110 -106
- package/references/platforms/imageText/shipinhao.md +116 -112
- package/references/platforms/imageText/taobaoguanghe.md +26 -26
- package/references/platforms/imageText/toutiaohao.md +78 -78
- package/references/platforms/imageText/weixingongzhonghao.md +106 -106
- package/references/platforms/imageText/xiaohongshu.md +102 -98
- package/references/platforms/imageText/xinlangweibo.md +79 -77
- package/references/platforms/imageText/zhihu.md +92 -92
- package/references/platforms/index.md +20 -20
- package/references/platforms/video/acfun.md +82 -82
- package/references/platforms/video/aiqiyi.md +89 -89
- package/references/platforms/video/baijiahao.md +130 -130
- package/references/platforms/video/bilibili-open.md +59 -59
- package/references/platforms/video/bilibili.md +80 -80
- package/references/platforms/video/chejiahao.md +63 -63
- package/references/platforms/video/dayuhao.md +91 -91
- package/references/platforms/video/dewu.md +80 -80
- package/references/platforms/video/douyin.md +173 -173
- package/references/platforms/video/duoduoshipin.md +82 -82
- package/references/platforms/video/facebook.md +37 -37
- package/references/platforms/video/fengwang.md +81 -81
- package/references/platforms/video/index.md +176 -176
- package/references/platforms/video/instagram.md +40 -40
- package/references/platforms/video/kuaishou-open.md +44 -44
- package/references/platforms/video/kuaishou.md +77 -77
- package/references/platforms/video/meipai.md +79 -79
- package/references/platforms/video/meiyou.md +59 -59
- package/references/platforms/video/pipixia.md +58 -58
- package/references/platforms/video/qiehao.md +91 -91
- package/references/platforms/video/shipinhao.md +142 -142
- package/references/platforms/video/souhuhao.md +107 -107
- package/references/platforms/video/souhushipin.md +64 -64
- package/references/platforms/video/taobaoguanghe.md +26 -26
- package/references/platforms/video/tengxunshipin.md +63 -63
- package/references/platforms/video/tiktok.md +52 -52
- package/references/platforms/video/toutiaohao.md +68 -68
- package/references/platforms/video/wangyihao.md +115 -93
- package/references/platforms/video/weishi.md +61 -61
- package/references/platforms/video/xiaohongshu.md +150 -150
- package/references/platforms/video/xiaohongshushop.md +92 -92
- package/references/platforms/video/xinlangweibo.md +79 -79
- package/references/platforms/video/yichehao.md +61 -61
- package/references/platforms/video/yidianhao.md +85 -85
- package/references/platforms/video/youtube.md +53 -53
- package/references/platforms/video/zhihu.md +85 -85
- package/references/protocols/confirmation.md +63 -63
- package/references/protocols/error-recovery.md +51 -51
- package/references/protocols/execution.md +65 -65
- package/references/protocols/provenance.md +62 -62
- package/references/proxy-management.md +69 -69
- package/references/query-accounts.md +85 -85
- package/references/save-draft.md +75 -75
- package/references/topic-tags.md +163 -140
- package/references/troubleshooting-guide.md +105 -105
- package/references/update-account-group.md +28 -28
- package/references/upload-resource.md +72 -72
- package/references/usage-workflow.md +208 -208
- package/references/workflows/account-selection.md +38 -38
- package/references/workflows/common-rules.md +291 -291
- package/references/workflows/data-accuracy.md +86 -86
- package/references/workflows/draft-workflow.md +47 -47
- package/references/workflows/local-vs-cloud.md +57 -57
- package/references/workflows/material-workflow.md +64 -64
- package/references/workflows/payload-sourcing.md +82 -82
- package/references/workflows/publish-article.md +73 -73
- package/references/workflows/publish-imageText.md +67 -67
- package/references/workflows/publish-troubleshooting.md +59 -59
- package/references/workflows/publish-video.md +72 -72
- package/references/yixiaoer-shared.md +106 -106
- package/schemas/account.schema.json +19 -19
- package/schemas/platforms/acfun.article.schema.json +117 -117
- package/schemas/platforms/acfun.video.schema.json +139 -139
- package/schemas/platforms/aiqiyi.article.schema.json +29 -29
- package/schemas/platforms/aiqiyi.video.schema.json +154 -154
- package/schemas/platforms/baijiahao.article.schema.json +168 -168
- package/schemas/platforms/baijiahao.imageText.schema.json +111 -111
- package/schemas/platforms/baijiahao.video.schema.json +227 -227
- package/schemas/platforms/bilibili-open.video.schema.json +168 -168
- package/schemas/platforms/bilibili.article.schema.json +109 -109
- package/schemas/platforms/bilibili.video.schema.json +175 -175
- package/schemas/platforms/chejiahao.article.schema.json +108 -108
- package/schemas/platforms/chejiahao.video.schema.json +111 -111
- package/schemas/platforms/csdn.article.schema.json +106 -106
- package/schemas/platforms/dayuhao.article.schema.json +106 -106
- package/schemas/platforms/dayuhao.video.schema.json +174 -174
- package/schemas/platforms/dewu.video.schema.json +134 -134
- package/schemas/platforms/douban.article.schema.json +48 -48
- package/schemas/platforms/douyin.article.schema.json +326 -326
- package/schemas/platforms/douyin.imageText.schema.json +301 -301
- package/schemas/platforms/douyin.video.schema.json +930 -930
- package/schemas/platforms/duoduoshipin.video.schema.json +124 -124
- package/schemas/platforms/facebook.video.schema.json +28 -28
- package/schemas/platforms/fengwang.video.schema.json +135 -135
- package/schemas/platforms/instagram.video.schema.json +28 -28
- package/schemas/platforms/jianshu.article.schema.json +33 -33
- package/schemas/platforms/kuaichuanhao.article.schema.json +95 -95
- package/schemas/platforms/kuaishou-open.video.schema.json +102 -102
- package/schemas/platforms/kuaishou.imageText.schema.json +181 -181
- package/schemas/platforms/kuaishou.video.schema.json +274 -274
- package/schemas/platforms/meipai.video.schema.json +123 -123
- package/schemas/platforms/meiyou.video.schema.json +96 -96
- package/schemas/platforms/pipixia.video.schema.json +94 -94
- package/schemas/platforms/qiehao.article.schema.json +89 -89
- package/schemas/platforms/qiehao.video.schema.json +147 -147
- package/schemas/platforms/shipinhao.imageText.schema.json +152 -151
- package/schemas/platforms/shipinhao.video.schema.json +283 -283
- package/schemas/platforms/souhuhao.article.schema.json +117 -73
- package/schemas/platforms/souhuhao.video.schema.json +171 -171
- package/schemas/platforms/souhushipin.video.schema.json +115 -115
- package/schemas/platforms/taobaoguanghe.imageText.schema.json +56 -56
- package/schemas/platforms/taobaoguanghe.video.schema.json +40 -40
- package/schemas/platforms/tengxunshipin.video.schema.json +115 -115
- package/schemas/platforms/tiktok.video.schema.json +72 -72
- package/schemas/platforms/toutiaohao.article.schema.json +162 -162
- package/schemas/platforms/toutiaohao.imageText.schema.json +87 -87
- package/schemas/platforms/toutiaohao.video.schema.json +138 -138
- package/schemas/platforms/wangyihao.article.schema.json +129 -86
- package/schemas/platforms/wangyihao.video.schema.json +186 -152
- package/schemas/platforms/weishi.video.schema.json +101 -101
- package/schemas/platforms/weixin.account-open.article.schema.json +106 -106
- package/schemas/platforms/weixin.account.article.schema.json +257 -257
- package/schemas/platforms/weixin.account.imageText.schema.json +218 -218
- package/schemas/platforms/xhs.imageText.schema.json +133 -133
- package/schemas/platforms/xiaohongshu.video.schema.json +226 -226
- package/schemas/platforms/xiaohongshushop.video.schema.json +142 -142
- package/schemas/platforms/xinlang.article.schema.json +69 -69
- package/schemas/platforms/xinlang.imageText.schema.json +107 -107
- package/schemas/platforms/xinlang.video.schema.json +182 -182
- package/schemas/platforms/xueqiuhao.article.schema.json +84 -84
- package/schemas/platforms/yichehao.article.schema.json +140 -140
- package/schemas/platforms/yichehao.video.schema.json +101 -101
- package/schemas/platforms/yidianhao.article.schema.json +78 -78
- package/schemas/platforms/yidianhao.video.schema.json +152 -152
- package/schemas/platforms/youtube.video.schema.json +92 -92
- package/schemas/platforms/zhihu.article.schema.json +105 -104
- package/schemas/platforms/zhihu.imageText.schema.json +61 -61
- package/schemas/platforms/zhihu.video.schema.json +144 -144
- package/schemas/publish.schema.json +26 -26
- package/skills/yixiaoer/QUICKSTART.md +265 -265
- package/skills/yixiaoer/SKILL.md +1 -1
- package/skills/yixiaoer/references/cli/command-design.md +306 -306
- package/skills/yixiaoer/references/cli/command-reference.md +271 -271
- package/skills/yixiaoer/references/cli/publish-channels.md +77 -77
- package/skills/yixiaoer/references/create-account-group.md +27 -27
- package/skills/yixiaoer/references/delete-account-group.md +20 -20
- package/skills/yixiaoer/references/domains/accounts-and-env.md +46 -46
- package/skills/yixiaoer/references/domains/draft-and-material.md +41 -41
- package/skills/yixiaoer/references/domains/install-and-sync.md +63 -63
- package/skills/yixiaoer/references/domains/publish.md +87 -87
- package/skills/yixiaoer/references/domains/troubleshooting.md +38 -38
- package/skills/yixiaoer/references/execution-standard.md +145 -145
- package/skills/yixiaoer/references/get-account-groups.md +15 -15
- package/skills/yixiaoer/references/get-account-increments.md +55 -55
- package/skills/yixiaoer/references/get-account-overviews.md +56 -56
- package/skills/yixiaoer/references/get-challenges.md +14 -14
- package/skills/yixiaoer/references/get-collections.md +41 -41
- package/skills/yixiaoer/references/get-content-overviews.md +59 -59
- package/skills/yixiaoer/references/get-drama-tasks.md +43 -43
- package/skills/yixiaoer/references/get-friends.md +48 -48
- package/skills/yixiaoer/references/get-games.md +39 -39
- package/skills/yixiaoer/references/get-goods.md +52 -52
- package/skills/yixiaoer/references/get-groups.md +35 -35
- package/skills/yixiaoer/references/get-hot-events.md +14 -14
- package/skills/yixiaoer/references/get-locations.md +48 -48
- package/skills/yixiaoer/references/get-members.md +28 -28
- package/skills/yixiaoer/references/get-miniapps.md +38 -38
- package/skills/yixiaoer/references/get-music-categories.md +44 -44
- package/skills/yixiaoer/references/get-music.md +69 -69
- package/skills/yixiaoer/references/get-publish-activities.md +42 -40
- package/skills/yixiaoer/references/get-publish-categories.md +67 -67
- package/skills/yixiaoer/references/get-sync-apps.md +14 -14
- package/skills/yixiaoer/references/get-topics.md +13 -13
- package/skills/yixiaoer/references/go-live-process.md +160 -160
- package/skills/yixiaoer/references/keyword-reference.md +115 -115
- package/skills/yixiaoer/references/legacy/capabilities.md +39 -39
- package/skills/yixiaoer/references/material-resource.md +88 -88
- package/skills/yixiaoer/references/platform-doc-maintenance.md +33 -33
- package/skills/yixiaoer/references/platform.md +62 -62
- package/skills/yixiaoer/references/platforms/article/acfun.md +90 -90
- package/skills/yixiaoer/references/platforms/article/aiqiyi.md +56 -56
- package/skills/yixiaoer/references/platforms/article/baijiahao.md +94 -94
- package/skills/yixiaoer/references/platforms/article/bilibili.md +88 -88
- package/skills/yixiaoer/references/platforms/article/chejiahao.md +81 -81
- package/skills/yixiaoer/references/platforms/article/csdn.md +86 -86
- package/skills/yixiaoer/references/platforms/article/dayuhao.md +78 -78
- package/skills/yixiaoer/references/platforms/article/douban.md +62 -62
- package/skills/yixiaoer/references/platforms/article/douyin.md +106 -106
- package/skills/yixiaoer/references/platforms/article/index.md +158 -158
- package/skills/yixiaoer/references/platforms/article/jianshu.md +56 -56
- package/skills/yixiaoer/references/platforms/article/kuaichuanhao.md +78 -78
- package/skills/yixiaoer/references/platforms/article/qiehao.md +78 -78
- package/skills/yixiaoer/references/platforms/article/souhuhao.md +97 -75
- package/skills/yixiaoer/references/platforms/article/toutiaohao.md +80 -80
- package/skills/yixiaoer/references/platforms/article/wangyihao.md +100 -79
- package/skills/yixiaoer/references/platforms/article/weixingongzhonghao-open.md +86 -86
- package/skills/yixiaoer/references/platforms/article/weixingongzhonghao.md +174 -174
- package/skills/yixiaoer/references/platforms/article/xinlangweibo.md +75 -75
- package/skills/yixiaoer/references/platforms/article/xueqiuhao.md +73 -73
- package/skills/yixiaoer/references/platforms/article/yichehao.md +92 -92
- package/skills/yixiaoer/references/platforms/article/yidianhao.md +76 -76
- package/skills/yixiaoer/references/platforms/article/zhihu.md +75 -75
- package/skills/yixiaoer/references/platforms/imageText/baijiahao.md +102 -102
- package/skills/yixiaoer/references/platforms/imageText/douyin.md +113 -111
- package/skills/yixiaoer/references/platforms/imageText/index.md +117 -117
- package/skills/yixiaoer/references/platforms/imageText/kuaishou.md +110 -106
- package/skills/yixiaoer/references/platforms/imageText/shipinhao.md +116 -112
- package/skills/yixiaoer/references/platforms/imageText/taobaoguanghe.md +26 -26
- package/skills/yixiaoer/references/platforms/imageText/toutiaohao.md +78 -78
- package/skills/yixiaoer/references/platforms/imageText/weixingongzhonghao.md +106 -106
- package/skills/yixiaoer/references/platforms/imageText/xiaohongshu.md +102 -98
- package/skills/yixiaoer/references/platforms/imageText/xinlangweibo.md +79 -77
- package/skills/yixiaoer/references/platforms/imageText/zhihu.md +92 -92
- package/skills/yixiaoer/references/platforms/index.md +20 -20
- package/skills/yixiaoer/references/platforms/video/acfun.md +82 -82
- package/skills/yixiaoer/references/platforms/video/aiqiyi.md +89 -89
- package/skills/yixiaoer/references/platforms/video/baijiahao.md +130 -130
- package/skills/yixiaoer/references/platforms/video/bilibili-open.md +59 -59
- package/skills/yixiaoer/references/platforms/video/bilibili.md +80 -80
- package/skills/yixiaoer/references/platforms/video/chejiahao.md +63 -63
- package/skills/yixiaoer/references/platforms/video/dayuhao.md +91 -91
- package/skills/yixiaoer/references/platforms/video/dewu.md +80 -80
- package/skills/yixiaoer/references/platforms/video/douyin.md +173 -173
- package/skills/yixiaoer/references/platforms/video/duoduoshipin.md +82 -82
- package/skills/yixiaoer/references/platforms/video/facebook.md +37 -37
- package/skills/yixiaoer/references/platforms/video/fengwang.md +81 -81
- package/skills/yixiaoer/references/platforms/video/index.md +176 -176
- package/skills/yixiaoer/references/platforms/video/instagram.md +40 -40
- package/skills/yixiaoer/references/platforms/video/kuaishou-open.md +44 -44
- package/skills/yixiaoer/references/platforms/video/kuaishou.md +77 -77
- package/skills/yixiaoer/references/platforms/video/meipai.md +79 -79
- package/skills/yixiaoer/references/platforms/video/meiyou.md +59 -59
- package/skills/yixiaoer/references/platforms/video/pipixia.md +58 -58
- package/skills/yixiaoer/references/platforms/video/qiehao.md +91 -91
- package/skills/yixiaoer/references/platforms/video/shipinhao.md +142 -142
- package/skills/yixiaoer/references/platforms/video/souhuhao.md +107 -107
- package/skills/yixiaoer/references/platforms/video/souhushipin.md +64 -64
- package/skills/yixiaoer/references/platforms/video/taobaoguanghe.md +26 -26
- package/skills/yixiaoer/references/platforms/video/tengxunshipin.md +63 -63
- package/skills/yixiaoer/references/platforms/video/tiktok.md +52 -52
- package/skills/yixiaoer/references/platforms/video/toutiaohao.md +68 -68
- package/skills/yixiaoer/references/platforms/video/wangyihao.md +115 -93
- package/skills/yixiaoer/references/platforms/video/weishi.md +61 -61
- package/skills/yixiaoer/references/platforms/video/xiaohongshu.md +150 -150
- package/skills/yixiaoer/references/platforms/video/xiaohongshushop.md +92 -92
- package/skills/yixiaoer/references/platforms/video/xinlangweibo.md +79 -79
- package/skills/yixiaoer/references/platforms/video/yichehao.md +61 -61
- package/skills/yixiaoer/references/platforms/video/yidianhao.md +85 -85
- package/skills/yixiaoer/references/platforms/video/youtube.md +53 -53
- package/skills/yixiaoer/references/platforms/video/zhihu.md +85 -85
- package/skills/yixiaoer/references/protocols/confirmation.md +63 -63
- package/skills/yixiaoer/references/protocols/error-recovery.md +51 -51
- package/skills/yixiaoer/references/protocols/execution.md +65 -65
- package/skills/yixiaoer/references/protocols/provenance.md +62 -62
- package/skills/yixiaoer/references/proxy-management.md +69 -69
- package/skills/yixiaoer/references/query-accounts.md +85 -85
- package/skills/yixiaoer/references/save-draft.md +75 -75
- package/skills/yixiaoer/references/topic-tags.md +163 -140
- package/skills/yixiaoer/references/troubleshooting-guide.md +105 -105
- package/skills/yixiaoer/references/update-account-group.md +28 -28
- package/skills/yixiaoer/references/upload-resource.md +72 -72
- package/skills/yixiaoer/references/usage-workflow.md +208 -208
- package/skills/yixiaoer/references/workflows/account-selection.md +38 -38
- package/skills/yixiaoer/references/workflows/common-rules.md +291 -291
- package/skills/yixiaoer/references/workflows/data-accuracy.md +86 -86
- package/skills/yixiaoer/references/workflows/draft-workflow.md +47 -47
- package/skills/yixiaoer/references/workflows/local-vs-cloud.md +57 -57
- package/skills/yixiaoer/references/workflows/material-workflow.md +64 -64
- package/skills/yixiaoer/references/workflows/payload-sourcing.md +82 -82
- package/skills/yixiaoer/references/workflows/publish-article.md +73 -73
- package/skills/yixiaoer/references/workflows/publish-imageText.md +67 -67
- package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +59 -59
- package/skills/yixiaoer/references/workflows/publish-video.md +72 -72
- package/skills/yixiaoer/references/yixiaoer-shared.md +106 -106
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
# 查询账号列表 (Query Account List)
|
|
2
|
-
|
|
3
|
-
获取当前租户下绑定的自媒体平台账号列表及其 UID 信息。
|
|
4
|
-
|
|
5
|
-
## 触发场景 (Trigger)
|
|
6
|
-
- **意图辨析**:用户需要获取、筛选或确认其在蚁小二平台上绑定的自媒体账号信息(如 UID、昵称、登录状态、分组等)时触发。
|
|
7
|
-
- **典型提示词**:
|
|
8
|
-
- “列出我所有的抖音号”
|
|
9
|
-
- “看看我有哪些账号登录失效了”
|
|
10
|
-
- “查询分组 A 下的账号”
|
|
11
|
-
- “确认一下视频号的作者 ID”
|
|
12
|
-
|
|
13
|
-
## 参数定义 (Parameters)
|
|
14
|
-
|
|
15
|
-
### 参数列表 (Payload Properties)
|
|
16
|
-
|
|
17
|
-
| 字段名 | 类型 | 是否必填 | 描述 |
|
|
18
|
-
| :--- | :--- | :--- | :--- |
|
|
19
|
-
| `action` | `string` | **是** | 固定值:`accounts` |
|
|
20
|
-
| `platform` | `string` | 否 | 指定展示某个平台,必须传平台中文名,如 `抖音`。见 [平台定义](./platform.md)。 |
|
|
21
|
-
| `name` | `string` | 否 | 按账号昵称模糊查询。 |
|
|
22
|
-
| `group` | `string` | 否 | 按分组名称查询。 |
|
|
23
|
-
| `page` | `number` | 否 | 当前页码,默认 `1`。 |
|
|
24
|
-
| `size` | `number` | 否 | 每页数量,默认 `20`,最大 `1000`。 |
|
|
25
|
-
| `platforms` | `string[]` | 否 | 平台批量查询,支持多个。见 [平台定义](./platform.md)。 |
|
|
26
|
-
| `platformType` | `number[]` | 否 | 平台类型批量查询。见 [平台定义-平台类型](./platform.md#平台类型枚举-platformtype)。 |
|
|
27
|
-
| `loginStatus` | `number` | 否 | 账号登录状态查询。见下方【登录状态枚举】。 |
|
|
28
|
-
| `isolation` | `string` | 否 | 是否显示隔离数据,`true`|`false`,默认 `false`。 |
|
|
29
|
-
| `parentId` | `string` | 否 | 父级ID,用于查询子账号列表。 |
|
|
30
|
-
| `time` | `number` | 否 | 查询此时间戳之后是否有新消息(unix ms)。 |
|
|
31
|
-
|
|
32
|
-
### 枚举定义 (Enumerations)
|
|
33
|
-
|
|
34
|
-
#### 登录状态 (LoginStatus)
|
|
35
|
-
| 值 | 定义 | 说明 |
|
|
36
|
-
| :--- | :--- | :--- |
|
|
37
|
-
| `0` | `Never` | 未曾登录/待登录 |
|
|
38
|
-
| `1` | `Succesed` | 登录成功 |
|
|
39
|
-
| `2` | `Expired` | 登录过期/失效。**提示:在查询时传 2 会同时匹配 2(过期), 3(失败), 4(取消授权)** |
|
|
40
|
-
| `3` | `Failed` | 登录失败 |
|
|
41
|
-
| `4` | `CancelAuth` | 取消授权 |
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## 执行逻辑 (Logic Flow)
|
|
45
|
-
1. **意图解析**:识别查询意图,提取关键词(如平台名称、分组名、昵称片段)。
|
|
46
|
-
2. **状态前置**:若涉及“失效账号查询”,自动注入 `loginStatus: 2` 参数。
|
|
47
|
-
3. **参数装配**:构造 `action: "accounts"` 及其余过滤参数(如 `page`, `size`)。
|
|
48
|
-
4. **指令执行**:调用 `yxer accounts [platform] [--name 关键词] [--status 1] [--json]`。
|
|
49
|
-
5. **分页处理**:CLI 默认查询第 `1` 页、每页 `20` 条;可通过 `--page`、`--size` 控制单页查询,通过 `--all` 按接口返回的分页信号继续汇总后续页。
|
|
50
|
-
6. **结果解析**:处理返回的 `PlatformAccountDTO` 列表,重点提取 `id` 和 `status` 供后续操作。
|
|
51
|
-
|
|
52
|
-
## 返回结果说明 (Response Details)
|
|
53
|
-
|
|
54
|
-
脚本返回标准的 JSON 数组或对象。每一个账号对象 (`PlatformAccountDTO`) 包含:
|
|
55
|
-
|
|
56
|
-
| 字段 | 类型 | 描述 |
|
|
57
|
-
| :--- | :--- | :--- |
|
|
58
|
-
| `id` | `string` | 平台内部账号 ID |
|
|
59
|
-
| `platformAccountName` | `string` | 账号昵称 |
|
|
60
|
-
| `platformName` | `string` | 平台名称(如:抖音、百家号) |
|
|
61
|
-
| `platformAvatar` | `string` | 账号头像地址 |
|
|
62
|
-
| `platformAuthorId` | `string` | 平台方的 UID / 作者 ID |
|
|
63
|
-
| `status` | `number` | 登录状态(见上方枚举) |
|
|
64
|
-
| `platformType` | `number` | 平台类型(见上方枚举) |
|
|
65
|
-
| `parentId` | `string` | 父账号 ID(针对微信视频号等子账号结构) |
|
|
66
|
-
| `groups` | `string[]` | 账号所属的分组 ID 列表 |
|
|
67
|
-
| `proxyId` | `string` | 绑定的团队代理 ID (如果有) |
|
|
68
|
-
| `kuaidailiArea` | `string` | 绑定的内置代理地区编码 (如果有) |
|
|
69
|
-
| `favorites` | `Object[]` | 账号收藏夹列表。包含 `id`, `name`, `websiteUrl` |
|
|
70
|
-
| `isOperate` | `boolean` | 当前用户是否拥有该账号的运营权限 |
|
|
71
|
-
| `isFreeze` | `boolean` | 账号是否被冻结 |
|
|
72
|
-
| `createdAt` | `number` | 账号创建时间戳 |
|
|
73
|
-
|
|
74
|
-
## 调用指令 (Command)
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
yxer accounts 抖音 --name 昵称 --json
|
|
78
|
-
yxer accounts list 抖音 --page 2 --size 20 --json
|
|
79
|
-
yxer accounts list 小红书 --all --status 1 --json
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## 注意事项
|
|
83
|
-
- 请确保环境变量 `YIXIAOER_API_KEY` 已设置。
|
|
84
|
-
- **账号有效性提示**:发布前应校验账号 `status` 是否为 `1`。
|
|
85
|
-
- **分页约定**:不要根据“当前页条数已满”猜测还有下一页;只有显式传 `--all` 时,CLI 才会按接口返回的分页字段继续翻页。
|
|
1
|
+
# 查询账号列表 (Query Account List)
|
|
2
|
+
|
|
3
|
+
获取当前租户下绑定的自媒体平台账号列表及其 UID 信息。
|
|
4
|
+
|
|
5
|
+
## 触发场景 (Trigger)
|
|
6
|
+
- **意图辨析**:用户需要获取、筛选或确认其在蚁小二平台上绑定的自媒体账号信息(如 UID、昵称、登录状态、分组等)时触发。
|
|
7
|
+
- **典型提示词**:
|
|
8
|
+
- “列出我所有的抖音号”
|
|
9
|
+
- “看看我有哪些账号登录失效了”
|
|
10
|
+
- “查询分组 A 下的账号”
|
|
11
|
+
- “确认一下视频号的作者 ID”
|
|
12
|
+
|
|
13
|
+
## 参数定义 (Parameters)
|
|
14
|
+
|
|
15
|
+
### 参数列表 (Payload Properties)
|
|
16
|
+
|
|
17
|
+
| 字段名 | 类型 | 是否必填 | 描述 |
|
|
18
|
+
| :--- | :--- | :--- | :--- |
|
|
19
|
+
| `action` | `string` | **是** | 固定值:`accounts` |
|
|
20
|
+
| `platform` | `string` | 否 | 指定展示某个平台,必须传平台中文名,如 `抖音`。见 [平台定义](./platform.md)。 |
|
|
21
|
+
| `name` | `string` | 否 | 按账号昵称模糊查询。 |
|
|
22
|
+
| `group` | `string` | 否 | 按分组名称查询。 |
|
|
23
|
+
| `page` | `number` | 否 | 当前页码,默认 `1`。 |
|
|
24
|
+
| `size` | `number` | 否 | 每页数量,默认 `20`,最大 `1000`。 |
|
|
25
|
+
| `platforms` | `string[]` | 否 | 平台批量查询,支持多个。见 [平台定义](./platform.md)。 |
|
|
26
|
+
| `platformType` | `number[]` | 否 | 平台类型批量查询。见 [平台定义-平台类型](./platform.md#平台类型枚举-platformtype)。 |
|
|
27
|
+
| `loginStatus` | `number` | 否 | 账号登录状态查询。见下方【登录状态枚举】。 |
|
|
28
|
+
| `isolation` | `string` | 否 | 是否显示隔离数据,`true`|`false`,默认 `false`。 |
|
|
29
|
+
| `parentId` | `string` | 否 | 父级ID,用于查询子账号列表。 |
|
|
30
|
+
| `time` | `number` | 否 | 查询此时间戳之后是否有新消息(unix ms)。 |
|
|
31
|
+
|
|
32
|
+
### 枚举定义 (Enumerations)
|
|
33
|
+
|
|
34
|
+
#### 登录状态 (LoginStatus)
|
|
35
|
+
| 值 | 定义 | 说明 |
|
|
36
|
+
| :--- | :--- | :--- |
|
|
37
|
+
| `0` | `Never` | 未曾登录/待登录 |
|
|
38
|
+
| `1` | `Succesed` | 登录成功 |
|
|
39
|
+
| `2` | `Expired` | 登录过期/失效。**提示:在查询时传 2 会同时匹配 2(过期), 3(失败), 4(取消授权)** |
|
|
40
|
+
| `3` | `Failed` | 登录失败 |
|
|
41
|
+
| `4` | `CancelAuth` | 取消授权 |
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## 执行逻辑 (Logic Flow)
|
|
45
|
+
1. **意图解析**:识别查询意图,提取关键词(如平台名称、分组名、昵称片段)。
|
|
46
|
+
2. **状态前置**:若涉及“失效账号查询”,自动注入 `loginStatus: 2` 参数。
|
|
47
|
+
3. **参数装配**:构造 `action: "accounts"` 及其余过滤参数(如 `page`, `size`)。
|
|
48
|
+
4. **指令执行**:调用 `yxer accounts [platform] [--name 关键词] [--status 1] [--json]`。
|
|
49
|
+
5. **分页处理**:CLI 默认查询第 `1` 页、每页 `20` 条;可通过 `--page`、`--size` 控制单页查询,通过 `--all` 按接口返回的分页信号继续汇总后续页。
|
|
50
|
+
6. **结果解析**:处理返回的 `PlatformAccountDTO` 列表,重点提取 `id` 和 `status` 供后续操作。
|
|
51
|
+
|
|
52
|
+
## 返回结果说明 (Response Details)
|
|
53
|
+
|
|
54
|
+
脚本返回标准的 JSON 数组或对象。每一个账号对象 (`PlatformAccountDTO`) 包含:
|
|
55
|
+
|
|
56
|
+
| 字段 | 类型 | 描述 |
|
|
57
|
+
| :--- | :--- | :--- |
|
|
58
|
+
| `id` | `string` | 平台内部账号 ID |
|
|
59
|
+
| `platformAccountName` | `string` | 账号昵称 |
|
|
60
|
+
| `platformName` | `string` | 平台名称(如:抖音、百家号) |
|
|
61
|
+
| `platformAvatar` | `string` | 账号头像地址 |
|
|
62
|
+
| `platformAuthorId` | `string` | 平台方的 UID / 作者 ID |
|
|
63
|
+
| `status` | `number` | 登录状态(见上方枚举) |
|
|
64
|
+
| `platformType` | `number` | 平台类型(见上方枚举) |
|
|
65
|
+
| `parentId` | `string` | 父账号 ID(针对微信视频号等子账号结构) |
|
|
66
|
+
| `groups` | `string[]` | 账号所属的分组 ID 列表 |
|
|
67
|
+
| `proxyId` | `string` | 绑定的团队代理 ID (如果有) |
|
|
68
|
+
| `kuaidailiArea` | `string` | 绑定的内置代理地区编码 (如果有) |
|
|
69
|
+
| `favorites` | `Object[]` | 账号收藏夹列表。包含 `id`, `name`, `websiteUrl` |
|
|
70
|
+
| `isOperate` | `boolean` | 当前用户是否拥有该账号的运营权限 |
|
|
71
|
+
| `isFreeze` | `boolean` | 账号是否被冻结 |
|
|
72
|
+
| `createdAt` | `number` | 账号创建时间戳 |
|
|
73
|
+
|
|
74
|
+
## 调用指令 (Command)
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
yxer accounts 抖音 --name 昵称 --json
|
|
78
|
+
yxer accounts list 抖音 --page 2 --size 20 --json
|
|
79
|
+
yxer accounts list 小红书 --all --status 1 --json
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## 注意事项
|
|
83
|
+
- 请确保环境变量 `YIXIAOER_API_KEY` 已设置。
|
|
84
|
+
- **账号有效性提示**:发布前应校验账号 `status` 是否为 `1`。
|
|
85
|
+
- **分页约定**:不要根据“当前页条数已满”猜测还有下一页;只有显式传 `--all` 时,CLI 才会按接口返回的分页字段继续翻页。
|
package/references/save-draft.md
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
# 草稿管理 (Draft Management)
|
|
2
|
-
|
|
3
|
-
在蚁小二生态中,存在两种“草稿”能力,需按目标选择:
|
|
4
|
-
- 保存到**蚁小二草稿箱**(`action: save-draft`)
|
|
5
|
-
- 保存到**目标平台草稿箱**(`action: publish` + `pubType: 0`)
|
|
6
|
-
|
|
7
|
-
## 触发场景 (Trigger)
|
|
8
|
-
- **意图辨析**:
|
|
9
|
-
- **蚁小二草稿**:当用户希望先录入内容,待以后手动检查或由他人审核,不希望立即启动任何平台推送流程时。
|
|
10
|
-
- **平台草稿**:当内容已比较完善,但由于平台规则(如视频号必须在手机端二次确认)或用户希望在平台后台进行最后的 SEO、话题优化时。
|
|
11
|
-
- **典型提示词**:
|
|
12
|
-
- **蚁小二草稿**:“帮我把这个视频存为蚁小二的草稿”、“暂时不发布,先存草稿”、“存为 YXE 草稿”。
|
|
13
|
-
- **平台草稿**:“把内容推送到抖音的草稿箱里”、“存为小红书草稿”、“推送到平台草稿箱”。
|
|
14
|
-
- **强制约束**:
|
|
15
|
-
- 若用户说“存草稿”但未说明位置,Agent **必须询问用户** 明确意图(是存为“蚁小二草稿”还是“平台草稿”),严禁自行猜测或默认选择。
|
|
16
|
-
- **蚁小二草稿**不消耗发布配额。
|
|
17
|
-
- **平台草稿**消耗一次云发布/本机发布配额。
|
|
18
|
-
|
|
19
|
-
## 执行逻辑 (Logic Flow)
|
|
20
|
-
1. **意图深度研判**:根据提示词关键字选取模式。
|
|
21
|
-
2. **蚁小二草稿模式 (`action: save-draft`)**:
|
|
22
|
-
- 构造 `action: "save-draft"`。
|
|
23
|
-
- `contentPublishForm.pubType` 可设为 1 (发布) 或 0 (草稿),后端仅做云端存储。
|
|
24
|
-
3. **平台草稿模式 (`action: publish` + `pubType: 0`)**:
|
|
25
|
-
- 根级别注入 `action: "publish"`。
|
|
26
|
-
- `accountForms` 内每个账号的 `contentPublishForm.pubType` 必须设为 `0`。
|
|
27
|
-
4. **指令执行**:调用 `yxer draft save <payload.json>` 保存蚁小二草稿;平台草稿仍走 `yxer publish`。
|
|
28
|
-
5. **状态反馈**:告知用户草稿保存位置及对应的 `taskSetId`。
|
|
29
|
-
|
|
30
|
-
## 快速区分 (Draft Types)
|
|
31
|
-
|
|
32
|
-
| 类型 | 蚁小二草稿 (YiXiaoEr Draft) | 平台草稿 (Platform Draft) |
|
|
33
|
-
| :--- | :--- | :--- |
|
|
34
|
-
| **定义** | 仅保存在蚁小二系统数据库中 | 发送到目标平台(如抖音、B站)的草稿箱 |
|
|
35
|
-
| **是否触发任务** | 否 (仅存储) | 是 (执行推送流程) |
|
|
36
|
-
| **调用 Action** | `save-draft` | `publish` |
|
|
37
|
-
| **核心参数** | `action: "save-draft"` | `contentPublishForm.pubType: 0` |
|
|
38
|
-
| **主要用途** | 跨端同步编辑、团队预审 | 将内容预推送到平台后台,方便手动二次微调 |
|
|
39
|
-
|
|
40
|
-
---
|
|
41
|
-
|
|
42
|
-
## 存为蚁小二草稿 (`isDraft: true`)
|
|
43
|
-
|
|
44
|
-
当需要将任务暂存到蚁小二系统的草稿列表,而不启动发布流程时使用。
|
|
45
|
-
|
|
46
|
-
### 参数列表 (Key Parameters)
|
|
47
|
-
| 字段名 | 类型 | 必填 | 说明 |
|
|
48
|
-
| :--- | :--- | :--- | :--- |
|
|
49
|
-
| `action` | `string` | **是** | 固定值:`save-draft` |
|
|
50
|
-
| `publishType` | `string` | **是** | `video` (视频) 或 `article` (文章) |
|
|
51
|
-
|
|
52
|
-
### 调用指令 (Command)
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
yxer draft save draft-payload.json
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
`draft-payload.json` 中应包含原始发布结构,例如 `publishType`、`platforms`、`publishArgs`、`accountForms` 等字段;CLI 会自动按草稿模式提交。
|
|
59
|
-
|
|
60
|
-
若使用“标准请求体”格式,仍建议把共享资源放在 `publishArgs` 根级,例如 `cover`、`coverKey`、`content` / `video`,CLI 会在校验阶段自动补齐到对应 `accountForms[]`。
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## 存为平台草稿 (`pubType: 0`)
|
|
65
|
-
|
|
66
|
-
当需要启动发布流程,但最终结果是在第三方平台后台看到草稿时使用。
|
|
67
|
-
|
|
68
|
-
### 调用指令 (Command)
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
# 平台草稿仍应收口到 yxer publish 流程
|
|
72
|
-
# 例如:yxer publish video 抖音 publish-payload.json
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
平台草稿同样支持标准请求体输入格式;但命令层仍是单平台执行,且平台草稿仍需在 `contentPublishForm.pubType` 中表达,而不是依赖顶层 `isDraft=true`。
|
|
1
|
+
# 草稿管理 (Draft Management)
|
|
2
|
+
|
|
3
|
+
在蚁小二生态中,存在两种“草稿”能力,需按目标选择:
|
|
4
|
+
- 保存到**蚁小二草稿箱**(`action: save-draft`)
|
|
5
|
+
- 保存到**目标平台草稿箱**(`action: publish` + `pubType: 0`)
|
|
6
|
+
|
|
7
|
+
## 触发场景 (Trigger)
|
|
8
|
+
- **意图辨析**:
|
|
9
|
+
- **蚁小二草稿**:当用户希望先录入内容,待以后手动检查或由他人审核,不希望立即启动任何平台推送流程时。
|
|
10
|
+
- **平台草稿**:当内容已比较完善,但由于平台规则(如视频号必须在手机端二次确认)或用户希望在平台后台进行最后的 SEO、话题优化时。
|
|
11
|
+
- **典型提示词**:
|
|
12
|
+
- **蚁小二草稿**:“帮我把这个视频存为蚁小二的草稿”、“暂时不发布,先存草稿”、“存为 YXE 草稿”。
|
|
13
|
+
- **平台草稿**:“把内容推送到抖音的草稿箱里”、“存为小红书草稿”、“推送到平台草稿箱”。
|
|
14
|
+
- **强制约束**:
|
|
15
|
+
- 若用户说“存草稿”但未说明位置,Agent **必须询问用户** 明确意图(是存为“蚁小二草稿”还是“平台草稿”),严禁自行猜测或默认选择。
|
|
16
|
+
- **蚁小二草稿**不消耗发布配额。
|
|
17
|
+
- **平台草稿**消耗一次云发布/本机发布配额。
|
|
18
|
+
|
|
19
|
+
## 执行逻辑 (Logic Flow)
|
|
20
|
+
1. **意图深度研判**:根据提示词关键字选取模式。
|
|
21
|
+
2. **蚁小二草稿模式 (`action: save-draft`)**:
|
|
22
|
+
- 构造 `action: "save-draft"`。
|
|
23
|
+
- `contentPublishForm.pubType` 可设为 1 (发布) 或 0 (草稿),后端仅做云端存储。
|
|
24
|
+
3. **平台草稿模式 (`action: publish` + `pubType: 0`)**:
|
|
25
|
+
- 根级别注入 `action: "publish"`。
|
|
26
|
+
- `accountForms` 内每个账号的 `contentPublishForm.pubType` 必须设为 `0`。
|
|
27
|
+
4. **指令执行**:调用 `yxer draft save <payload.json>` 保存蚁小二草稿;平台草稿仍走 `yxer publish`。
|
|
28
|
+
5. **状态反馈**:告知用户草稿保存位置及对应的 `taskSetId`。
|
|
29
|
+
|
|
30
|
+
## 快速区分 (Draft Types)
|
|
31
|
+
|
|
32
|
+
| 类型 | 蚁小二草稿 (YiXiaoEr Draft) | 平台草稿 (Platform Draft) |
|
|
33
|
+
| :--- | :--- | :--- |
|
|
34
|
+
| **定义** | 仅保存在蚁小二系统数据库中 | 发送到目标平台(如抖音、B站)的草稿箱 |
|
|
35
|
+
| **是否触发任务** | 否 (仅存储) | 是 (执行推送流程) |
|
|
36
|
+
| **调用 Action** | `save-draft` | `publish` |
|
|
37
|
+
| **核心参数** | `action: "save-draft"` | `contentPublishForm.pubType: 0` |
|
|
38
|
+
| **主要用途** | 跨端同步编辑、团队预审 | 将内容预推送到平台后台,方便手动二次微调 |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## 存为蚁小二草稿 (`isDraft: true`)
|
|
43
|
+
|
|
44
|
+
当需要将任务暂存到蚁小二系统的草稿列表,而不启动发布流程时使用。
|
|
45
|
+
|
|
46
|
+
### 参数列表 (Key Parameters)
|
|
47
|
+
| 字段名 | 类型 | 必填 | 说明 |
|
|
48
|
+
| :--- | :--- | :--- | :--- |
|
|
49
|
+
| `action` | `string` | **是** | 固定值:`save-draft` |
|
|
50
|
+
| `publishType` | `string` | **是** | `video` (视频) 或 `article` (文章) |
|
|
51
|
+
|
|
52
|
+
### 调用指令 (Command)
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
yxer draft save draft-payload.json
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
`draft-payload.json` 中应包含原始发布结构,例如 `publishType`、`platforms`、`publishArgs`、`accountForms` 等字段;CLI 会自动按草稿模式提交。
|
|
59
|
+
|
|
60
|
+
若使用“标准请求体”格式,仍建议把共享资源放在 `publishArgs` 根级,例如 `cover`、`coverKey`、`content` / `video`,CLI 会在校验阶段自动补齐到对应 `accountForms[]`。
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## 存为平台草稿 (`pubType: 0`)
|
|
65
|
+
|
|
66
|
+
当需要启动发布流程,但最终结果是在第三方平台后台看到草稿时使用。
|
|
67
|
+
|
|
68
|
+
### 调用指令 (Command)
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# 平台草稿仍应收口到 yxer publish 流程
|
|
72
|
+
# 例如:yxer publish video 抖音 publish-payload.json
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
平台草稿同样支持标准请求体输入格式;但命令层仍是单平台执行,且平台草稿仍需在 `contentPublishForm.pubType` 中表达,而不是依赖顶层 `isDraft=true`。
|
package/references/topic-tags.md
CHANGED
|
@@ -1,140 +1,163 @@
|
|
|
1
|
-
# 话题标签格式规范
|
|
2
|
-
|
|
3
|
-
适用范围:发布 payload 中涉及 `topics`、`tags`、`challenge`,或 `description` / `desc` / `content` 中的 `<topic>` 标签时,必须先读取本文档。
|
|
4
|
-
|
|
5
|
-
## 目的
|
|
6
|
-
|
|
7
|
-
- 统一 Agent 对“话题/标签”字段的装配方式
|
|
8
|
-
- 明确“描述类字段/正文中的话题标签结构”和“字段中的话题对象结构”是两套规则
|
|
9
|
-
- 明确 CLI 会兜底修复 `description` 中的普通 `#话题`;字段中的话题对象仍按各平台字段定义传入
|
|
10
|
-
|
|
11
|
-
## 总规则
|
|
12
|
-
|
|
13
|
-
- Agent 必须优先以目标平台 schema 和平台文档为准。
|
|
14
|
-
-
|
|
15
|
-
- 只有当平台文档明确要求在 `description`、`desc` 或 `content` 中嵌入话题标签时,才使用 `<topic>` HTML。
|
|
16
|
-
- `description` / `desc` / `content` 中的 `<topic>` 规则,不适用于 `topics`、`tags`、`challenge` 等字段对象。
|
|
17
|
-
- CLI 内部兼容逻辑只处理 `description` 字段:将普通 `#话题` 归一化为 `<topic>` HTML;不会处理 `content`,也不会改变 `tags` / `topics` / `challenge` 字段结构。
|
|
18
|
-
|
|
19
|
-
## 字段类型对照
|
|
20
|
-
|
|
21
|
-
### 1. `topics`
|
|
22
|
-
|
|
23
|
-
用于平台显式支持结构化话题对象的场景,例如知乎文章、抖音文章、易车号文章等。
|
|
24
|
-
|
|
25
|
-
标准结构:
|
|
26
|
-
|
|
27
|
-
```json
|
|
28
|
-
[
|
|
29
|
-
{
|
|
30
|
-
"yixiaoerId": "topic_id",
|
|
31
|
-
"yixiaoerName": "话题名",
|
|
32
|
-
"raw": {}
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
规则:
|
|
38
|
-
|
|
39
|
-
- 必须来自 `yxer query challenges`、`yxer query categories` 或平台文档明确指定的查询命令返回结果
|
|
40
|
-
- 必须保留完整 `raw`
|
|
41
|
-
- 不要只传名称字符串
|
|
42
|
-
|
|
43
|
-
### 2. `tags`
|
|
44
|
-
|
|
45
|
-
用于平台要求字符串数组的场景,例如 CSDN 文章、B 站文章、企鹅号文章等。
|
|
46
|
-
|
|
47
|
-
标准结构:
|
|
48
|
-
|
|
49
|
-
```json
|
|
50
|
-
["AI", "自动化发布"]
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
规则:
|
|
54
|
-
|
|
55
|
-
- 以 schema 和平台文档定义的字段类型为准
|
|
56
|
-
- 不要写成单个逗号拼接字符串
|
|
57
|
-
- 不要混入 `#`,除非平台文档明确要求
|
|
58
|
-
|
|
59
|
-
### 3. `challenge`
|
|
60
|
-
|
|
61
|
-
用于平台只接受单个挑战/话题对象的场景,例如抖音视频。
|
|
62
|
-
|
|
63
|
-
标准结构:
|
|
64
|
-
|
|
65
|
-
```json
|
|
66
|
-
{
|
|
67
|
-
"yixiaoerId": "challenge_id",
|
|
68
|
-
"yixiaoerName": "挑战名",
|
|
69
|
-
"raw": {}
|
|
70
|
-
}
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
规则:
|
|
74
|
-
|
|
75
|
-
- 必须来自 `yxer query challenges <account_id> ...`
|
|
76
|
-
- 必须透传完整对象
|
|
77
|
-
- 不要把 `challenge` 和 `tags` / `topics` 混用
|
|
78
|
-
|
|
79
|
-
### 4.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
标准结构:
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
1
|
+
# 话题标签格式规范
|
|
2
|
+
|
|
3
|
+
适用范围:发布 payload 中涉及 `topics`、`tags`、`challenge`、`activity`,或 `description` / `desc` / `content` 中的 `<topic>` 标签时,必须先读取本文档。
|
|
4
|
+
|
|
5
|
+
## 目的
|
|
6
|
+
|
|
7
|
+
- 统一 Agent 对“话题/标签”字段的装配方式
|
|
8
|
+
- 明确“描述类字段/正文中的话题标签结构”和“字段中的话题对象结构”是两套规则
|
|
9
|
+
- 明确 CLI 会兜底修复 `description` 中的普通 `#话题`;字段中的话题对象仍按各平台字段定义传入
|
|
10
|
+
|
|
11
|
+
## 总规则
|
|
12
|
+
|
|
13
|
+
- Agent 必须优先以目标平台 schema 和平台文档为准。
|
|
14
|
+
- 字段中的话题/活动数据,如 `topics`、`tags`、`challenge`、`activity`,必须按各平台 schema 和平台文档定义的字段结构传入。
|
|
15
|
+
- 只有当平台文档明确要求在 `description`、`desc` 或 `content` 中嵌入话题标签时,才使用 `<topic>` HTML。
|
|
16
|
+
- `description` / `desc` / `content` 中的 `<topic>` 规则,不适用于 `topics`、`tags`、`challenge` 等字段对象。
|
|
17
|
+
- CLI 内部兼容逻辑只处理 `description` 字段:将普通 `#话题` 归一化为 `<topic>` HTML;不会处理 `content`,也不会改变 `tags` / `topics` / `challenge` 字段结构。
|
|
18
|
+
|
|
19
|
+
## 字段类型对照
|
|
20
|
+
|
|
21
|
+
### 1. `topics`
|
|
22
|
+
|
|
23
|
+
用于平台显式支持结构化话题对象的场景,例如知乎文章、抖音文章、易车号文章等。
|
|
24
|
+
|
|
25
|
+
标准结构:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
[
|
|
29
|
+
{
|
|
30
|
+
"yixiaoerId": "topic_id",
|
|
31
|
+
"yixiaoerName": "话题名",
|
|
32
|
+
"raw": {}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
规则:
|
|
38
|
+
|
|
39
|
+
- 必须来自 `yxer query challenges`、`yxer query categories` 或平台文档明确指定的查询命令返回结果
|
|
40
|
+
- 必须保留完整 `raw`
|
|
41
|
+
- 不要只传名称字符串
|
|
42
|
+
|
|
43
|
+
### 2. `tags`
|
|
44
|
+
|
|
45
|
+
用于平台要求字符串数组的场景,例如 CSDN 文章、B 站文章、企鹅号文章等。
|
|
46
|
+
|
|
47
|
+
标准结构:
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
["AI", "自动化发布"]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
规则:
|
|
54
|
+
|
|
55
|
+
- 以 schema 和平台文档定义的字段类型为准
|
|
56
|
+
- 不要写成单个逗号拼接字符串
|
|
57
|
+
- 不要混入 `#`,除非平台文档明确要求
|
|
58
|
+
|
|
59
|
+
### 3. `challenge`
|
|
60
|
+
|
|
61
|
+
用于平台只接受单个挑战/话题对象的场景,例如抖音视频。
|
|
62
|
+
|
|
63
|
+
标准结构:
|
|
64
|
+
|
|
65
|
+
```json
|
|
66
|
+
{
|
|
67
|
+
"yixiaoerId": "challenge_id",
|
|
68
|
+
"yixiaoerName": "挑战名",
|
|
69
|
+
"raw": {}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
规则:
|
|
74
|
+
|
|
75
|
+
- 必须来自 `yxer query challenges <account_id> ...`
|
|
76
|
+
- 必须透传完整对象
|
|
77
|
+
- 不要把 `challenge` 和 `tags` / `topics` 混用
|
|
78
|
+
|
|
79
|
+
### 4. `activity`
|
|
80
|
+
|
|
81
|
+
用于平台征文、激励等活动挂载场景,是一个动态活动对象,不是 `topics` 数组或正文标签。
|
|
82
|
+
|
|
83
|
+
标准结构:
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"yixiaoerId": "activity_id",
|
|
88
|
+
"yixiaoerName": "活动名",
|
|
89
|
+
"raw": {}
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
规则:
|
|
94
|
+
|
|
95
|
+
- 必须来自 `yxer query activities <account_id> --type <video|article>`,查询类型要与目标发布类型一致
|
|
96
|
+
- 只能在平台 schema/文档声明 `activity` 字段时挂载
|
|
97
|
+
- 必须保留查询返回的完整对象和 `raw`,不要只传活动 ID 或名称
|
|
98
|
+
- `activity` 表示征文/激励活动;热点使用 `hot_event`,挑战/话题使用 `challenge` 或平台定义的 `topics`,不要互相替代
|
|
99
|
+
|
|
100
|
+
网易号发布页面将该选择项显示为“活动话题”,但 CLI payload 仍使用 `activity` 字段,并通过 `yxer query activities` 查询。网易号视频要求 `raw.subjectId`、`raw.activityId`;网易号文章要求 `raw.subjectId`、数字类型的 `raw.essayId`、`raw.title`、`raw.url`。这些是网易号各自的活动列表项契约,不要改用 `topics` / `challenge`,也不要把一种内容类型的查询结果用于另一种。
|
|
101
|
+
|
|
102
|
+
### 5. 描述类字段/正文中的 `<topic>` HTML
|
|
103
|
+
|
|
104
|
+
仅用于平台文档明确说明 `description`、`desc` 或 `content` 支持 `<topic>` 标签的场景,例如抖音图文。
|
|
105
|
+
|
|
106
|
+
标准结构:
|
|
107
|
+
|
|
108
|
+
```html
|
|
109
|
+
<p>正文描述</p><p><topic text="合拍">#合拍</topic><topic text="夏日">#夏日</topic></p>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
规则:
|
|
113
|
+
|
|
114
|
+
- Agent 必须直接写出最终 HTML
|
|
115
|
+
- 如 `description` 仍是普通文本加 `#话题`,CLI 会在 validate/dry-run/publish 流程中归一化为上述 HTML。
|
|
116
|
+
- `text` 属性应为不带 `#` 的标签文本
|
|
117
|
+
- 标签正文通常为 `#标签名`
|
|
118
|
+
- 不要把这种 HTML 结构误用于 `topics` / `challenge` / `tags` 字段
|
|
119
|
+
- 不要同时依赖 `tags` 再让 CLI 自动拼 `<topic>`;CLI 不从 `tags` 生成描述话题。
|
|
120
|
+
|
|
121
|
+
## 平台装配优先级
|
|
122
|
+
|
|
123
|
+
1. 先看 `yxer schema fields <platform> <type>`
|
|
124
|
+
2. 再看对应平台文档
|
|
125
|
+
3. 只有文档明确允许时,才在 `description` / `desc` / `content` 中写 `<topic>` HTML
|
|
126
|
+
4. 字段中的话题数据始终按字段类型本身传入,不使用 `<topic>` HTML
|
|
127
|
+
|
|
128
|
+
## 抖音相关规则
|
|
129
|
+
|
|
130
|
+
### 抖音视频
|
|
131
|
+
|
|
132
|
+
- 优先使用平台文档定义的结构化字段,如 `challenge`
|
|
133
|
+
- `description` 是普通描述字段;除非平台文档明确要求,否则不要把字段中的话题改写成 `<topic>` HTML
|
|
134
|
+
|
|
135
|
+
### 抖音图文
|
|
136
|
+
|
|
137
|
+
- 若文档要求 `description` 支持 `<topic>`,Agent 应直接传最终 HTML
|
|
138
|
+
- 这个规则只针对 `description`
|
|
139
|
+
- 不要把 `topics` / `challenge` 之类字段也按 `<topic>` HTML 处理
|
|
140
|
+
- 不要只传 `tags` 再期待 CLI 注入 `<topic>`
|
|
141
|
+
|
|
142
|
+
### 抖音文章
|
|
143
|
+
|
|
144
|
+
- 优先使用 `topics: Category[]`
|
|
145
|
+
- `topics` 按结构化字段传入,不按 `<topic>` HTML 规则处理
|
|
146
|
+
- 不要把文章话题只写在 `description` / `desc` / `content` 文本里
|
|
147
|
+
|
|
148
|
+
## 禁止行为
|
|
149
|
+
|
|
150
|
+
- 只给自然语言描述,例如 `"description": "今天聊聊 #AI #自动化"` 或 `"desc": "今天聊聊 #AI #自动化"`,却不按平台要求提供结构化字段或描述 HTML
|
|
151
|
+
- 把 `topics` 写成字符串数组
|
|
152
|
+
- 把 `tags` 写成对象数组
|
|
153
|
+
- 把 `topics` / `challenge` / `tags` 按 `<topic>` HTML 结构传入字段本身
|
|
154
|
+
- 省略查询结果里的 `raw`
|
|
155
|
+
- 依赖 CLI 从 `tags`、`topics`、`challenge` 或 `content` 自动修复标签结构
|
|
156
|
+
|
|
157
|
+
## 推荐执行方式
|
|
158
|
+
|
|
159
|
+
1. 先查 schema:`yxer schema fields <platform> <type>`
|
|
160
|
+
2. 再查平台文档确认字段类型
|
|
161
|
+
3. 如需动态话题对象,先执行 `yxer query challenges` / `yxer query categories`
|
|
162
|
+
4. 由 Agent 直接生成最终 payload
|
|
163
|
+
5. 用 `yxer validate` 验证;`description` 中的普通 `#话题` 会被 CLI 归一化为 `<topic>` HTML
|