@yixiaoermail/cli 3.2.32 → 3.2.33
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 +288 -286
- 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 +86 -80
- package/references/domains/publish.md +95 -95
- 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 -42
- package/references/get-publish-categories.md +67 -67
- package/references/get-sync-apps.md +14 -14
- package/references/get-topics.md +11 -11
- 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 -97
- package/references/platforms/article/toutiaohao.md +80 -80
- package/references/platforms/article/wangyihao.md +100 -100
- 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/audio/index.md +6 -6
- package/references/platforms/audio/xiaoyuzhou.md +5 -5
- package/references/platforms/audio/ximalaya.md +5 -5
- package/references/platforms/imageText/baijiahao.md +102 -102
- package/references/platforms/imageText/douyin.md +113 -113
- package/references/platforms/imageText/index.md +117 -117
- package/references/platforms/imageText/kuaishou.md +110 -110
- package/references/platforms/imageText/shipinhao.md +116 -116
- 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 -102
- package/references/platforms/imageText/xinlangweibo.md +79 -79
- package/references/platforms/imageText/zhihu.md +92 -92
- package/references/platforms/index.md +21 -21
- 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 +42 -42
- 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 +84 -84
- 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 -115
- 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 +60 -60
- 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 +68 -68
- package/references/protocols/provenance.md +65 -65
- package/references/protocols/publish-plan.md +5 -5
- 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 -163
- 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 +88 -88
- 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 +75 -75
- package/references/workflows/publish-audio.md +12 -12
- package/references/workflows/publish-imageText.md +69 -69
- package/references/workflows/publish-plan.md +53 -53
- package/references/workflows/publish-troubleshooting.md +59 -59
- package/references/workflows/publish-video.md +74 -74
- package/references/yixiaoer-shared.md +107 -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 +229 -229
- package/schemas/platforms/bilibili-open.video.schema.json +170 -170
- package/schemas/platforms/bilibili.article.schema.json +109 -109
- package/schemas/platforms/bilibili.video.schema.json +206 -206
- 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 +948 -948
- package/schemas/platforms/duoduoshipin.video.schema.json +124 -124
- package/schemas/platforms/facebook.video.schema.json +36 -36
- 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 +275 -275
- 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 -152
- package/schemas/platforms/shipinhao.video.schema.json +291 -291
- package/schemas/platforms/souhuhao.article.schema.json +134 -134
- 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 +166 -166
- 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 -129
- package/schemas/platforms/wangyihao.video.schema.json +186 -186
- 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 +279 -279
- package/schemas/platforms/weixin.account.imageText.schema.json +266 -266
- 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/xiaoyuzhou.audio.schema.json +31 -31
- package/schemas/platforms/ximalaya.audio.schema.json +38 -38
- 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 +100 -100
- package/schemas/platforms/zhihu.article.schema.json +105 -105
- 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 +59 -59
- package/skills/yixiaoer/SKILL.md +100 -100
- package/skills/yixiaoer/references/cli/command-design.md +306 -306
- package/skills/yixiaoer/references/cli/command-reference.md +288 -286
- 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 +86 -80
- package/skills/yixiaoer/references/domains/publish.md +95 -95
- 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 -42
- 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 +11 -11
- 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 -97
- package/skills/yixiaoer/references/platforms/article/toutiaohao.md +80 -80
- package/skills/yixiaoer/references/platforms/article/wangyihao.md +100 -100
- 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/audio/index.md +6 -6
- package/skills/yixiaoer/references/platforms/audio/xiaoyuzhou.md +5 -5
- package/skills/yixiaoer/references/platforms/audio/ximalaya.md +5 -5
- package/skills/yixiaoer/references/platforms/imageText/baijiahao.md +102 -102
- package/skills/yixiaoer/references/platforms/imageText/douyin.md +113 -113
- package/skills/yixiaoer/references/platforms/imageText/index.md +117 -117
- package/skills/yixiaoer/references/platforms/imageText/kuaishou.md +110 -110
- package/skills/yixiaoer/references/platforms/imageText/shipinhao.md +116 -116
- 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 -102
- package/skills/yixiaoer/references/platforms/imageText/xinlangweibo.md +79 -79
- package/skills/yixiaoer/references/platforms/imageText/zhihu.md +92 -92
- package/skills/yixiaoer/references/platforms/index.md +21 -21
- 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 +42 -42
- 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 +84 -84
- 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 -115
- 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 +60 -60
- 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 +68 -68
- package/skills/yixiaoer/references/protocols/provenance.md +65 -65
- package/skills/yixiaoer/references/protocols/publish-plan.md +5 -5
- 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 -163
- 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 +88 -88
- 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 +75 -75
- package/skills/yixiaoer/references/workflows/publish-audio.md +12 -12
- package/skills/yixiaoer/references/workflows/publish-imageText.md +69 -69
- package/skills/yixiaoer/references/workflows/publish-plan.md +53 -53
- package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +59 -59
- package/skills/yixiaoer/references/workflows/publish-video.md +74 -74
- package/skills/yixiaoer/references/yixiaoer-shared.md +107 -106
|
@@ -1,163 +1,163 @@
|
|
|
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
|
|
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
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
# 🛡️ 蚁小二 Skill 避坑与故障排查手册 (Pitfall Avoidance Guide)
|
|
2
|
-
|
|
3
|
-
> **版本:** 1.0.2
|
|
4
|
-
> **最后更新:** 2026-04-10
|
|
5
|
-
> **适用范围:** 蚁小二 Universal 自动化技能调用者 (Skill v1.6.1+)
|
|
6
|
-
> **核心原则:** 规范优于补救,校验重于盲试。
|
|
7
|
-
|
|
8
|
-
本指南汇总了在调用蚁小二自动化能力过程中最常见的四大“坑点”及其解决方案。请在开发或配置过程中严格对照,以确保发布任务的高成功率。
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## 🚀 核心避坑清单 (Quick Fix Checklist)
|
|
13
|
-
|
|
14
|
-
### 1. 技能版本不支持该功能
|
|
15
|
-
**现象描述:** 调用某些动作(Action)或使用新增字段时,系统报错提示“该功能不支持”或参数校验失败。
|
|
16
|
-
|
|
17
|
-
> [!IMPORTANT]
|
|
18
|
-
> **解决方案:**
|
|
19
|
-
> * **确认版本:** 请检查 `skills/yixiaoer/SKILL.md` 中的版本号,确保蚁小二插件/技能版本为 **1.6.1** 或更高。
|
|
20
|
-
> * **升级建议:** 如果当前版本低于 1.6.1,请同步最新的 `yixiaoer-skill` 代码仓库并重读配置。
|
|
21
|
-
> * **自检:** 运行 `npx yixiaoer --version`(若适用)核实当前环境加载的实际物理代码版本。
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
### 2. 获取在线设备列表失败
|
|
26
|
-
**现象描述:** 在执行发布任务时,返回错误:“获取在线设备列表失败”。
|
|
27
|
-
|
|
28
|
-
> [!TIP]
|
|
29
|
-
> **排查与解决:**
|
|
30
|
-
> * **模式冲突:** 错误通常发生在选择了 **“本机发布模式 (publishChannel: 'local')”** 时。
|
|
31
|
-
> * **客户端检查:** 确保蚁小二客户端软件已在当前机器启动、登录,且处于 **“在线”** 状态。
|
|
32
|
-
> * **推荐方案:** 若无法保证客户端长期在线,请将发布参数中的 `publishChannel` 修改为 **`'cloud'` (云发布模式)**,通过蚁小二云端服务器直接分发,无需本地客户端参与。
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
### 3. 发布失败 · 表单错误
|
|
37
|
-
**现象描述:** 接口返回“发布失败”,并附带“表单错误”或“参数校验未通过”提示。
|
|
38
|
-
|
|
39
|
-
> [!WARNING]
|
|
40
|
-
> **核心规范:**
|
|
41
|
-
> * **严格核对 DTO:** Agent 在拼装 `publish` 的 Payload 时,必须**强制核对** `skills/yixiaoer/references/platforms/` 目录下对应的平台文档(如 `douyin.md`, `wechat.md`)。
|
|
42
|
-
> * **必填项校验:** 重点检查标题 (title)、分类 (categories)、标签 (tags)、封面 (cover) 是否按照平台要求完整传入。
|
|
43
|
-
> * **格式合规:** 确保类型正确,例如 `categories` 必须是数组 or 特定 ID 字符串,严禁随意填写。
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
### 4. 图片上传失败 / 签名不匹配
|
|
48
|
-
**现象描述:** 使用 `upload-resource` 动作后,执行 PUT 上传时报错 `SignatureDoesNotMatch` 或上传后的资源无法显示。
|
|
49
|
-
|
|
50
|
-
> [!CAUTION]
|
|
51
|
-
> **关键细节:**
|
|
52
|
-
> * **ContentType 字节级对齐:** 在调用接口获取随机上传地址时,传入的 `contentType`(如 `image/png`)必须与你随后执行 PUT 请求时 Header 中的 `Content-Type` **完全一致**。
|
|
53
|
-
> * **报错诱因:** 哪怕是大小写差异或空格,都会导致云端签名计算失效,从而拒绝请求。
|
|
54
|
-
> * **最佳实践:** 预先确定文件 MIME 类型,在获取地址和执行上传两个步骤中透传同一个变量值。
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
### 5. 云发布报错:账号代理不存在
|
|
59
|
-
**现象描述:** 使用 **云发布 (publishChannel: 'cloud')** 时,接口返回错误:“账号代理不存在”。
|
|
60
|
-
|
|
61
|
-
> [!IMPORTANT]
|
|
62
|
-
> **原因与对策:**
|
|
63
|
-
> * **原因:** 账号绑定的独立代理 (proxyId) 已被删除/过期,或该平台强制要求绑定代理才能进行云发布。
|
|
64
|
-
> * **方案 A:** 使用 `yxer query proxy-areas` 查询可用地区码,并使用 `yxer accounts update <account_id> --kuaidaili-area <code> --dry-run` 预览后正式更新。
|
|
65
|
-
> * **方案 B:** 检查 `yxer query proxies` 列表,重新为账号绑定一个有效的 `proxyId`。
|
|
66
|
-
> * **方案 C:** 如果条件允许,切换回 `publishChannel: 'local'`(本机发布),此模式使用本地 IP,不依赖云端代理。
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
### 6. 发布任务状态异常 (Stuck or Abnormal Status)
|
|
71
|
-
**现象描述:** 任务提交后,状态长时间卡在 **“发布中”** 或 **“待发布”**,或者最终转为 **“发布失败”**。
|
|
72
|
-
|
|
73
|
-
> [!CAUTION]
|
|
74
|
-
> **深层原因与自检:**
|
|
75
|
-
> * **卡在“发布中 / 待发布”**:这通常意味着 Payload 虽然通过了初步的 API 校验,但其中的**业务逻辑或表单结构**不符合平台的底层规则。例如:标题含有非法字符、话题格式不严谨、或者动态字段(位置、音乐)透传的 `raw` 数据已过期。
|
|
76
|
-
> * **自检建议:** 请严格对比该平台的专属文档(如 `skills/yixiaoer/references/platforms/video/douyin.md`),检查表单是否按照文档规则填入。
|
|
77
|
-
> * **显示“发布失败”**:这绝大多数情况下是因为 **“必填字段缺失”**。
|
|
78
|
-
> * **自检建议:** 重点排查 `title` (标题)、`description` (描述)、`categories` (平台分类)、`cover` (封面) 等在文档中标记为“是”的核心字段是否填入。
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
### 7. 草稿保存意图不明
|
|
83
|
-
**现象描述:** 用户提及“保存草稿”或“存草稿”,但 Agent 无法判断应存入“蚁小二内部”还是“目标平台”。
|
|
84
|
-
|
|
85
|
-
> [!IMPORTANT]
|
|
86
|
-
> **执行规则:**
|
|
87
|
-
> * **严禁默认:** Agent **严禁**在未确认的情况下默认选择其中一种,或自行猜测。
|
|
88
|
-
> * **强制询问:** 必须向用户询问:“您是希望存为**蚁小二草稿**(仅在蚁小二管理,不推送到平台)还是**平台草稿**(推送到抖音/小红书等平台的草稿箱)?”
|
|
89
|
-
> * **逻辑关联:** 确认后再选取对应的 `action` (save-draft) 或 `publish` (pubType: 0)。
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
## 🛠️ 自诊工作流 (Self-Diagnosis Workflow)
|
|
94
|
-
|
|
95
|
-
当您遇到无法解决的意外报错时,请遵循以下 SOP 进行排查:
|
|
96
|
-
|
|
97
|
-
1. **版本审计**:当前 Skill 逻辑是否为最新?(`skills/yixiaoer/SKILL.md`)
|
|
98
|
-
2. **物理上传校验**:资源是否已经成功通过 `upload-resource` 获取 key?(禁止在发布接口直接传入外部 https:// 链接)
|
|
99
|
-
3. **模式匹配**:账号状态是否为 1 (有效)?发布通道是否与客户端状态匹配?
|
|
100
|
-
4. **架构对标**:你的 JSON 结构是否与 `skills/yixiaoer/references/execution-standard.md` 中定义的“分级检索逻辑”一致?
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
> [!NOTE]
|
|
105
|
-
> *“让专家做专业的事。如果您通过本指南仍无法定位问题,请在 [Issue 频道] 提交您的 JSON Payload 以供进一步审查。”*
|
|
1
|
+
# 🛡️ 蚁小二 Skill 避坑与故障排查手册 (Pitfall Avoidance Guide)
|
|
2
|
+
|
|
3
|
+
> **版本:** 1.0.2
|
|
4
|
+
> **最后更新:** 2026-04-10
|
|
5
|
+
> **适用范围:** 蚁小二 Universal 自动化技能调用者 (Skill v1.6.1+)
|
|
6
|
+
> **核心原则:** 规范优于补救,校验重于盲试。
|
|
7
|
+
|
|
8
|
+
本指南汇总了在调用蚁小二自动化能力过程中最常见的四大“坑点”及其解决方案。请在开发或配置过程中严格对照,以确保发布任务的高成功率。
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 🚀 核心避坑清单 (Quick Fix Checklist)
|
|
13
|
+
|
|
14
|
+
### 1. 技能版本不支持该功能
|
|
15
|
+
**现象描述:** 调用某些动作(Action)或使用新增字段时,系统报错提示“该功能不支持”或参数校验失败。
|
|
16
|
+
|
|
17
|
+
> [!IMPORTANT]
|
|
18
|
+
> **解决方案:**
|
|
19
|
+
> * **确认版本:** 请检查 `skills/yixiaoer/SKILL.md` 中的版本号,确保蚁小二插件/技能版本为 **1.6.1** 或更高。
|
|
20
|
+
> * **升级建议:** 如果当前版本低于 1.6.1,请同步最新的 `yixiaoer-skill` 代码仓库并重读配置。
|
|
21
|
+
> * **自检:** 运行 `npx yixiaoer --version`(若适用)核实当前环境加载的实际物理代码版本。
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
### 2. 获取在线设备列表失败
|
|
26
|
+
**现象描述:** 在执行发布任务时,返回错误:“获取在线设备列表失败”。
|
|
27
|
+
|
|
28
|
+
> [!TIP]
|
|
29
|
+
> **排查与解决:**
|
|
30
|
+
> * **模式冲突:** 错误通常发生在选择了 **“本机发布模式 (publishChannel: 'local')”** 时。
|
|
31
|
+
> * **客户端检查:** 确保蚁小二客户端软件已在当前机器启动、登录,且处于 **“在线”** 状态。
|
|
32
|
+
> * **推荐方案:** 若无法保证客户端长期在线,请将发布参数中的 `publishChannel` 修改为 **`'cloud'` (云发布模式)**,通过蚁小二云端服务器直接分发,无需本地客户端参与。
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
### 3. 发布失败 · 表单错误
|
|
37
|
+
**现象描述:** 接口返回“发布失败”,并附带“表单错误”或“参数校验未通过”提示。
|
|
38
|
+
|
|
39
|
+
> [!WARNING]
|
|
40
|
+
> **核心规范:**
|
|
41
|
+
> * **严格核对 DTO:** Agent 在拼装 `publish` 的 Payload 时,必须**强制核对** `skills/yixiaoer/references/platforms/` 目录下对应的平台文档(如 `douyin.md`, `wechat.md`)。
|
|
42
|
+
> * **必填项校验:** 重点检查标题 (title)、分类 (categories)、标签 (tags)、封面 (cover) 是否按照平台要求完整传入。
|
|
43
|
+
> * **格式合规:** 确保类型正确,例如 `categories` 必须是数组 or 特定 ID 字符串,严禁随意填写。
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
### 4. 图片上传失败 / 签名不匹配
|
|
48
|
+
**现象描述:** 使用 `upload-resource` 动作后,执行 PUT 上传时报错 `SignatureDoesNotMatch` 或上传后的资源无法显示。
|
|
49
|
+
|
|
50
|
+
> [!CAUTION]
|
|
51
|
+
> **关键细节:**
|
|
52
|
+
> * **ContentType 字节级对齐:** 在调用接口获取随机上传地址时,传入的 `contentType`(如 `image/png`)必须与你随后执行 PUT 请求时 Header 中的 `Content-Type` **完全一致**。
|
|
53
|
+
> * **报错诱因:** 哪怕是大小写差异或空格,都会导致云端签名计算失效,从而拒绝请求。
|
|
54
|
+
> * **最佳实践:** 预先确定文件 MIME 类型,在获取地址和执行上传两个步骤中透传同一个变量值。
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### 5. 云发布报错:账号代理不存在
|
|
59
|
+
**现象描述:** 使用 **云发布 (publishChannel: 'cloud')** 时,接口返回错误:“账号代理不存在”。
|
|
60
|
+
|
|
61
|
+
> [!IMPORTANT]
|
|
62
|
+
> **原因与对策:**
|
|
63
|
+
> * **原因:** 账号绑定的独立代理 (proxyId) 已被删除/过期,或该平台强制要求绑定代理才能进行云发布。
|
|
64
|
+
> * **方案 A:** 使用 `yxer query proxy-areas` 查询可用地区码,并使用 `yxer accounts update <account_id> --kuaidaili-area <code> --dry-run` 预览后正式更新。
|
|
65
|
+
> * **方案 B:** 检查 `yxer query proxies` 列表,重新为账号绑定一个有效的 `proxyId`。
|
|
66
|
+
> * **方案 C:** 如果条件允许,切换回 `publishChannel: 'local'`(本机发布),此模式使用本地 IP,不依赖云端代理。
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### 6. 发布任务状态异常 (Stuck or Abnormal Status)
|
|
71
|
+
**现象描述:** 任务提交后,状态长时间卡在 **“发布中”** 或 **“待发布”**,或者最终转为 **“发布失败”**。
|
|
72
|
+
|
|
73
|
+
> [!CAUTION]
|
|
74
|
+
> **深层原因与自检:**
|
|
75
|
+
> * **卡在“发布中 / 待发布”**:这通常意味着 Payload 虽然通过了初步的 API 校验,但其中的**业务逻辑或表单结构**不符合平台的底层规则。例如:标题含有非法字符、话题格式不严谨、或者动态字段(位置、音乐)透传的 `raw` 数据已过期。
|
|
76
|
+
> * **自检建议:** 请严格对比该平台的专属文档(如 `skills/yixiaoer/references/platforms/video/douyin.md`),检查表单是否按照文档规则填入。
|
|
77
|
+
> * **显示“发布失败”**:这绝大多数情况下是因为 **“必填字段缺失”**。
|
|
78
|
+
> * **自检建议:** 重点排查 `title` (标题)、`description` (描述)、`categories` (平台分类)、`cover` (封面) 等在文档中标记为“是”的核心字段是否填入。
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### 7. 草稿保存意图不明
|
|
83
|
+
**现象描述:** 用户提及“保存草稿”或“存草稿”,但 Agent 无法判断应存入“蚁小二内部”还是“目标平台”。
|
|
84
|
+
|
|
85
|
+
> [!IMPORTANT]
|
|
86
|
+
> **执行规则:**
|
|
87
|
+
> * **严禁默认:** Agent **严禁**在未确认的情况下默认选择其中一种,或自行猜测。
|
|
88
|
+
> * **强制询问:** 必须向用户询问:“您是希望存为**蚁小二草稿**(仅在蚁小二管理,不推送到平台)还是**平台草稿**(推送到抖音/小红书等平台的草稿箱)?”
|
|
89
|
+
> * **逻辑关联:** 确认后再选取对应的 `action` (save-draft) 或 `publish` (pubType: 0)。
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## 🛠️ 自诊工作流 (Self-Diagnosis Workflow)
|
|
94
|
+
|
|
95
|
+
当您遇到无法解决的意外报错时,请遵循以下 SOP 进行排查:
|
|
96
|
+
|
|
97
|
+
1. **版本审计**:当前 Skill 逻辑是否为最新?(`skills/yixiaoer/SKILL.md`)
|
|
98
|
+
2. **物理上传校验**:资源是否已经成功通过 `upload-resource` 获取 key?(禁止在发布接口直接传入外部 https:// 链接)
|
|
99
|
+
3. **模式匹配**:账号状态是否为 1 (有效)?发布通道是否与客户端状态匹配?
|
|
100
|
+
4. **架构对标**:你的 JSON 结构是否与 `skills/yixiaoer/references/execution-standard.md` 中定义的“分级检索逻辑”一致?
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
> [!NOTE]
|
|
105
|
+
> *“让专家做专业的事。如果您通过本指南仍无法定位问题,请在 [Issue 频道] 提交您的 JSON Payload 以供进一步审查。”*
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
# 更新账号分组
|
|
2
|
-
|
|
3
|
-
用于更新账号分组,对应接口 `PATCH /groups/{groupId}`。
|
|
4
|
-
|
|
5
|
-
## 推荐命令
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
yxer account-group update group_1 新版核心账号组 --dry-run
|
|
9
|
-
yxer account-group update group_1 新版核心账号组
|
|
10
|
-
yxer account-group update group_1 新版核心账号组 --visible-scope all --dry-run
|
|
11
|
-
yxer account-group update group_1 新版核心账号组 --visible-scope specific --visible-user user_1 --visible-user user_2 --dry-run
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## 请求说明
|
|
15
|
-
|
|
16
|
-
- CLI 请求体支持以下字段:
|
|
17
|
-
- `name`: 分组名
|
|
18
|
-
- `visibleScope`: 可见范围,支持 `all` / `specific`
|
|
19
|
-
- `visibleUsers`: 当 `visibleScope=specific` 时必填,表示可见用户 ID 列表
|
|
20
|
-
- 路径参数 `groupId` 使用命令第一个位置参数传入。
|
|
21
|
-
- `--visible-scope specific` 时,必须至少传入一个 `--visible-user <userId>`。
|
|
22
|
-
- 当涉及“指定成员可见”时,应先执行 [`yxer query members`](./get-members.md) 获取真实成员 ID,再回填到 `--visible-user`。
|
|
23
|
-
- 写操作先执行 `--dry-run`,确认请求体后再正式提交。
|
|
24
|
-
|
|
25
|
-
## 输出说明
|
|
26
|
-
|
|
27
|
-
- `--dry-run` 返回预览请求,不产生实际副作用。
|
|
28
|
-
- 正式执行返回远端更新结果,字段以 CLI 实际 JSON 输出为准。
|
|
1
|
+
# 更新账号分组
|
|
2
|
+
|
|
3
|
+
用于更新账号分组,对应接口 `PATCH /groups/{groupId}`。
|
|
4
|
+
|
|
5
|
+
## 推荐命令
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yxer account-group update group_1 新版核心账号组 --dry-run
|
|
9
|
+
yxer account-group update group_1 新版核心账号组
|
|
10
|
+
yxer account-group update group_1 新版核心账号组 --visible-scope all --dry-run
|
|
11
|
+
yxer account-group update group_1 新版核心账号组 --visible-scope specific --visible-user user_1 --visible-user user_2 --dry-run
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## 请求说明
|
|
15
|
+
|
|
16
|
+
- CLI 请求体支持以下字段:
|
|
17
|
+
- `name`: 分组名
|
|
18
|
+
- `visibleScope`: 可见范围,支持 `all` / `specific`
|
|
19
|
+
- `visibleUsers`: 当 `visibleScope=specific` 时必填,表示可见用户 ID 列表
|
|
20
|
+
- 路径参数 `groupId` 使用命令第一个位置参数传入。
|
|
21
|
+
- `--visible-scope specific` 时,必须至少传入一个 `--visible-user <userId>`。
|
|
22
|
+
- 当涉及“指定成员可见”时,应先执行 [`yxer query members`](./get-members.md) 获取真实成员 ID,再回填到 `--visible-user`。
|
|
23
|
+
- 写操作先执行 `--dry-run`,确认请求体后再正式提交。
|
|
24
|
+
|
|
25
|
+
## 输出说明
|
|
26
|
+
|
|
27
|
+
- `--dry-run` 返回预览请求,不产生实际副作用。
|
|
28
|
+
- 正式执行返回远端更新结果,字段以 CLI 实际 JSON 输出为准。
|