@yixiaoermail/cli 3.2.36 → 3.2.38
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 +291 -289
- 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 +80 -80
- package/references/domains/publish.md +96 -96
- 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 +55 -55
- package/references/get-groups.md +35 -35
- package/references/get-hot-events.md +14 -14
- package/references/get-locations.md +51 -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 +68 -68
- 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 +79 -79
- 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 +128 -128
- package/references/platforms/imageText/index.md +119 -119
- package/references/platforms/imageText/instagram.md +14 -14
- package/references/platforms/imageText/kuaishou.md +110 -110
- package/references/platforms/imageText/shipinhao.md +134 -134
- package/references/platforms/imageText/taobaoguanghe.md +26 -26
- package/references/platforms/imageText/toutiaohao.md +78 -78
- package/references/platforms/imageText/weixingongzhonghao.md +118 -118
- package/references/platforms/imageText/xiaohongshu.md +123 -104
- 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 +136 -136
- 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 +92 -92
- 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 +152 -152
- 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/platforms/xiaohongshu-components.md +10 -9
- 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 +58 -57
- package/references/workflows/material-workflow.md +64 -64
- package/references/workflows/payload-sourcing.md +82 -82
- package/references/workflows/publish-article.md +87 -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 +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 +258 -247
- 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 +344 -344
- 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.imageText.schema.json +10 -9
- 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 +194 -194
- 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 +267 -267
- package/schemas/platforms/xhs.imageText.schema.json +396 -375
- package/schemas/platforms/xiaohongshu.video.schema.json +442 -442
- 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 +119 -119
- 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 +1 -1
- package/skills/yixiaoer/references/cli/command-design.md +306 -306
- package/skills/yixiaoer/references/cli/command-reference.md +291 -289
- 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 +80 -80
- package/skills/yixiaoer/references/domains/publish.md +96 -96
- 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 +55 -55
- 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 +51 -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 +68 -68
- 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 +79 -79
- 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 +128 -128
- package/skills/yixiaoer/references/platforms/imageText/index.md +119 -119
- package/skills/yixiaoer/references/platforms/imageText/instagram.md +14 -14
- package/skills/yixiaoer/references/platforms/imageText/kuaishou.md +110 -110
- package/skills/yixiaoer/references/platforms/imageText/shipinhao.md +134 -134
- 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 +118 -118
- package/skills/yixiaoer/references/platforms/imageText/xiaohongshu.md +123 -104
- 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 +136 -136
- 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 +92 -92
- 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 +152 -152
- 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/platforms/xiaohongshu-components.md +10 -9
- 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 +58 -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 +87 -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 +106 -106
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
# 发布与 Payload
|
|
2
|
-
|
|
3
|
-
新建任务先遵循 [标准发布工作流](../workflows/publish-plan.md)。默认使用来源回执和表单维护字段,export 后按 validate、publish --dry-run、publish 执行。用户仅要求检查/修 payload 时停留在校验或预览阶段。
|
|
4
|
-
|
|
5
|
-
适用范围:用户要发布视频、图文、文章、音频,或要修订发布 payload、解释字段归属、确认发布通道。
|
|
6
|
-
|
|
7
|
-
**CRITICAL - 只要用户意图落在本域,MUST 先读取下方 workflow,再决定是否执行任何 `prepare`、字段查询、`validate` 或 `publish`。**
|
|
8
|
-
**BLOCKING REQUIREMENT - 必须使用同一份 payload 和同一套通道参数完成 validate、publish --dry-run 和正式 publish。缺账号、字段、资源或动态对象时,先补齐真实来源。**
|
|
9
|
-
**AI EXECUTION PROTOCOL - 发布域任务必须先按协议状态机推进,不允许越过 `validated` / `dry_run_passed` 状态直接发布。**
|
|
10
|
-
|
|
11
|
-
## 读取顺序
|
|
12
|
-
|
|
13
|
-
1. [`../protocols/execution.md`](../protocols/execution.md)
|
|
14
|
-
新建任务按本页入口的标准发布工作流执行,再读取目标类型的字段要求。
|
|
15
|
-
2. [`../protocols/confirmation.md`](../protocols/confirmation.md)
|
|
16
|
-
3. [`../protocols/provenance.md`](../protocols/provenance.md)
|
|
17
|
-
4. [`../protocols/error-recovery.md`](../protocols/error-recovery.md)
|
|
18
|
-
5. [`../workflows/common-rules.md`](../workflows/common-rules.md)
|
|
19
|
-
6. [`../workflows/data-accuracy.md`](../workflows/data-accuracy.md)
|
|
20
|
-
7. [`../workflows/account-selection.md`](../workflows/account-selection.md)
|
|
21
|
-
8. [`../workflows/local-vs-cloud.md`](../workflows/local-vs-cloud.md)
|
|
22
|
-
9. [`../workflows/payload-sourcing.md`](../workflows/payload-sourcing.md)
|
|
23
|
-
10. 按类型继续读取:
|
|
24
|
-
- 图文:[`../workflows/publish-imageText.md`](../workflows/publish-imageText.md)
|
|
25
|
-
- 视频:[`../workflows/publish-video.md`](../workflows/publish-video.md)
|
|
26
|
-
- 文章:[`../workflows/publish-article.md`](../workflows/publish-article.md)
|
|
27
|
-
- 音频:[`../workflows/publish-audio.md`](../workflows/publish-audio.md)
|
|
28
|
-
|
|
29
|
-
## 意图路由
|
|
30
|
-
|
|
31
|
-
- 用户只说“帮我发一下”“发个抖音/小红书”“发视频/图文/文章”时,直接进入本域,并继续按类型读取 workflow。
|
|
32
|
-
- 用户明确说“先别发,只生成 payload”“帮我修 payload”时,仍进入本域,但最终动作只停留在 payload 修订或 `validate` / `publish --dry-run`。
|
|
33
|
-
- 用户明确说“查为什么发失败了”“解释报错”时,先切 [`./troubleshooting.md`](./troubleshooting.md),不要直接重试正式发布。
|
|
34
|
-
- 用户明确说“上传素材后马上发”时,先完成素材流程,再回切本域继续执行发布主流程。
|
|
35
|
-
|
|
36
|
-
## 平台差异入口
|
|
37
|
-
|
|
38
|
-
- 总索引:[`../platforms/index.md`](../platforms/index.md)
|
|
39
|
-
- 视频平台:[`../platforms/video/index.md`](../platforms/video/index.md)
|
|
40
|
-
- 图文平台:[`../platforms/imageText/index.md`](../platforms/imageText/index.md)
|
|
41
|
-
- 文章平台:[`../platforms/article/index.md`](../platforms/article/index.md)
|
|
42
|
-
- 音频平台:[`../platforms/audio/index.md`](../platforms/audio/index.md)
|
|
43
|
-
|
|
44
|
-
只有在 `prepare` / `schema get` 之后,且当前 workflow 无法回答平台差异时,才继续读取具体平台文档。
|
|
45
|
-
|
|
46
|
-
## 强制门禁
|
|
47
|
-
|
|
48
|
-
- 未进入协议状态机的 `workflow_loaded` 状态不执行 CLI 写操作
|
|
49
|
-
- 已有完整 payload 时,可直接进入 `validate -> publish --dry-run`;但不得跳过正式发布前用户授权
|
|
50
|
-
- 缺账号、字段、资源或动态对象时,未执行 `yxer doctor` 不进入组装流程
|
|
51
|
-
- 缺账号或账号不确定时,未确认 `accounts list` 中账号 `status=1` 不继续
|
|
52
|
-
- 正式发布会实时检测账号有效性;仅检测明确返回 `loginStatus=0` 时以 `account_session_expired` 拦截,需在蚁小二重新授权。未知状态、检测不支持、空响应及检测请求异常均放行。云端有凭证的 dry-run 同样检测,离线预览通过不能代替提交时检测。
|
|
53
|
-
- 需要组装或补字段时,未执行 `prepare` / `publish form` / `schema fields` 不组装 payload;只有需要 payload 骨架时再补 `schema get`
|
|
54
|
-
- 未按 `data-accuracy.md` 完成需要查询的动态字段和多候选确认,不继续写 payload 或发布;多多视频 `shopping_cart.goods_id` 按平台规则使用用户明确输入
|
|
55
|
-
- 未先 `validate` 与 `publish --dry-run` 不执行正式 `publish`
|
|
56
|
-
- 云端 MCP 试点的 `publish --dry-run` 会返回短时 `previewCredential`;只有展示预览并取得明确确认后,才对相同 payload 传入 `--preview-credential <token> --confirm-preview`。请求内容变化或凭证过期时重新预览。
|
|
57
|
-
|
|
58
|
-
## 常用命令
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
yxer accounts list [platform] [--name 关键词] [--status 1] [--json]
|
|
62
|
-
yxer prepare <platform> <type>
|
|
63
|
-
yxer schema get <platform> <type>
|
|
64
|
-
yxer upload --file <file_path>
|
|
65
|
-
yxer upload --url <resource_url>
|
|
66
|
-
yxer query categories <account_id> [--type video|article]
|
|
67
|
-
yxer query topics <account_id> [--type video|article] [--query 关键词]
|
|
68
|
-
yxer query locations <account_id> [--query 关键词] [--next-page TOKEN]
|
|
69
|
-
yxer query music <account_id> [--query 关键词] [--category-id ID] [--category-name 名称] [--next-page TOKEN]
|
|
70
|
-
yxer query music-categories <account_id>
|
|
71
|
-
yxer query goods <account_id> [--query 关键词] [--next-page TOKEN]
|
|
72
|
-
yxer query collections <account_id> [--type video|article|audio] [--next-page TOKEN]
|
|
73
|
-
yxer query ximalaya-topics <account_id> --category-id ID [--query 关键词] [--next-page TOKEN]
|
|
74
|
-
yxer query drama-tasks <account_id> [--query 关键词]
|
|
75
|
-
yxer query miniapps <account_id> [--query 关键词]
|
|
76
|
-
yxer query syncapps <account_id>
|
|
77
|
-
yxer query games <account_id> [--query 关键词]
|
|
78
|
-
yxer query hot-events <account_id> [--type video|article]
|
|
79
|
-
yxer query groups <account_id>
|
|
80
|
-
yxer query friends <account_id> [--red-id 小红书号] [--query 关键词]
|
|
81
|
-
yxer query activities <account_id> [--type video|article] [--category-id ID] [--query 关键词]
|
|
82
|
-
yxer query challenges <account_id> [--query 关键词] [--type video] [--next-page TOKEN]
|
|
83
|
-
yxer validate <platform> <type> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>]
|
|
84
|
-
yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>] --dry-run
|
|
85
|
-
yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>]
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## 决策提示
|
|
89
|
-
|
|
90
|
-
- 用户只说“帮我发”时,默认云发布;明确说“本机发布”“客户端发布”时切到本机通道。
|
|
91
|
-
- 用户要“只生成 payload”时,仍要先走 `prepare` / `schema get` 和字段查询纪律。
|
|
92
|
-
- 用户要填分类、位置、音乐、合集、话题、商品时,先查询,再回填完整对象;多多视频的 `shopping_cart.goods_id` 由用户手工提供,固定 `source=pdd`,不使用商品查询返回的 `yixiaoerId`;视频号剧集使用 `yxer query drama-tasks`,只写入查询结果的 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不添加 `raw`。
|
|
93
|
-
- 用户要挂载小程序或选择同步发布应用时,先执行 `yxer query miniapps` / `yxer query syncapps`,再把 CLI 返回对象完整回填到 payload。
|
|
94
|
-
- 用户要挂载游戏、绑定热点或选择群聊时,先执行 `yxer query games` / `yxer query hot-events` / `yxer query groups`,再把 CLI 返回对象完整回填到 payload。
|
|
95
|
-
- 用户要在小红书描述中艾特用户(包括陌生人)时,先执行 `yxer query friends <account_id> --red-id <小红书号> --json`,将选中的完整对象 JSON 序列化后写入 `<friend raw='...'>@用户名</friend>`;不要新增未被 schema 声明的 `friends` 字段。
|
|
96
|
-
- 用户要按音乐分类找配乐或参加平台活动时,先执行 `yxer query music-categories` / `yxer query activities`,再把 CLI 返回对象完整回填到 payload。
|
|
1
|
+
# 发布与 Payload
|
|
2
|
+
|
|
3
|
+
新建任务先遵循 [标准发布工作流](../workflows/publish-plan.md)。默认使用来源回执和表单维护字段,export 后按 validate、publish --dry-run、publish 执行。用户仅要求检查/修 payload 时停留在校验或预览阶段。
|
|
4
|
+
|
|
5
|
+
适用范围:用户要发布视频、图文、文章、音频,或要修订发布 payload、解释字段归属、确认发布通道。
|
|
6
|
+
|
|
7
|
+
**CRITICAL - 只要用户意图落在本域,MUST 先读取下方 workflow,再决定是否执行任何 `prepare`、字段查询、`validate` 或 `publish`。**
|
|
8
|
+
**BLOCKING REQUIREMENT - 必须使用同一份 payload 和同一套通道参数完成 validate、publish --dry-run 和正式 publish。缺账号、字段、资源或动态对象时,先补齐真实来源。**
|
|
9
|
+
**AI EXECUTION PROTOCOL - 发布域任务必须先按协议状态机推进,不允许越过 `validated` / `dry_run_passed` 状态直接发布。**
|
|
10
|
+
|
|
11
|
+
## 读取顺序
|
|
12
|
+
|
|
13
|
+
1. [`../protocols/execution.md`](../protocols/execution.md)
|
|
14
|
+
新建任务按本页入口的标准发布工作流执行,再读取目标类型的字段要求。
|
|
15
|
+
2. [`../protocols/confirmation.md`](../protocols/confirmation.md)
|
|
16
|
+
3. [`../protocols/provenance.md`](../protocols/provenance.md)
|
|
17
|
+
4. [`../protocols/error-recovery.md`](../protocols/error-recovery.md)
|
|
18
|
+
5. [`../workflows/common-rules.md`](../workflows/common-rules.md)
|
|
19
|
+
6. [`../workflows/data-accuracy.md`](../workflows/data-accuracy.md)
|
|
20
|
+
7. [`../workflows/account-selection.md`](../workflows/account-selection.md)
|
|
21
|
+
8. [`../workflows/local-vs-cloud.md`](../workflows/local-vs-cloud.md)
|
|
22
|
+
9. [`../workflows/payload-sourcing.md`](../workflows/payload-sourcing.md)
|
|
23
|
+
10. 按类型继续读取:
|
|
24
|
+
- 图文:[`../workflows/publish-imageText.md`](../workflows/publish-imageText.md)
|
|
25
|
+
- 视频:[`../workflows/publish-video.md`](../workflows/publish-video.md)
|
|
26
|
+
- 文章:[`../workflows/publish-article.md`](../workflows/publish-article.md)
|
|
27
|
+
- 音频:[`../workflows/publish-audio.md`](../workflows/publish-audio.md)
|
|
28
|
+
|
|
29
|
+
## 意图路由
|
|
30
|
+
|
|
31
|
+
- 用户只说“帮我发一下”“发个抖音/小红书”“发视频/图文/文章”时,直接进入本域,并继续按类型读取 workflow。
|
|
32
|
+
- 用户明确说“先别发,只生成 payload”“帮我修 payload”时,仍进入本域,但最终动作只停留在 payload 修订或 `validate` / `publish --dry-run`。
|
|
33
|
+
- 用户明确说“查为什么发失败了”“解释报错”时,先切 [`./troubleshooting.md`](./troubleshooting.md),不要直接重试正式发布。
|
|
34
|
+
- 用户明确说“上传素材后马上发”时,先完成素材流程,再回切本域继续执行发布主流程。
|
|
35
|
+
|
|
36
|
+
## 平台差异入口
|
|
37
|
+
|
|
38
|
+
- 总索引:[`../platforms/index.md`](../platforms/index.md)
|
|
39
|
+
- 视频平台:[`../platforms/video/index.md`](../platforms/video/index.md)
|
|
40
|
+
- 图文平台:[`../platforms/imageText/index.md`](../platforms/imageText/index.md)
|
|
41
|
+
- 文章平台:[`../platforms/article/index.md`](../platforms/article/index.md)
|
|
42
|
+
- 音频平台:[`../platforms/audio/index.md`](../platforms/audio/index.md)
|
|
43
|
+
|
|
44
|
+
只有在 `prepare` / `schema get` 之后,且当前 workflow 无法回答平台差异时,才继续读取具体平台文档。
|
|
45
|
+
|
|
46
|
+
## 强制门禁
|
|
47
|
+
|
|
48
|
+
- 未进入协议状态机的 `workflow_loaded` 状态不执行 CLI 写操作
|
|
49
|
+
- 已有完整 payload 时,可直接进入 `validate -> publish --dry-run`;但不得跳过正式发布前用户授权
|
|
50
|
+
- 缺账号、字段、资源或动态对象时,未执行 `yxer doctor` 不进入组装流程
|
|
51
|
+
- 缺账号或账号不确定时,未确认 `accounts list` 中账号 `status=1` 不继续
|
|
52
|
+
- 正式发布会实时检测账号有效性;仅检测明确返回 `loginStatus=0` 时以 `account_session_expired` 拦截,需在蚁小二重新授权。未知状态、检测不支持、空响应及检测请求异常均放行。云端有凭证的 dry-run 同样检测,离线预览通过不能代替提交时检测。
|
|
53
|
+
- 需要组装或补字段时,未执行 `prepare` / `publish form` / `schema fields` 不组装 payload;只有需要 payload 骨架时再补 `schema get`
|
|
54
|
+
- 未按 `data-accuracy.md` 完成需要查询的动态字段和多候选确认,不继续写 payload 或发布;多多视频 `shopping_cart.goods_id` 按平台规则使用用户明确输入
|
|
55
|
+
- 未先 `validate` 与 `publish --dry-run` 不执行正式 `publish`
|
|
56
|
+
- 云端 MCP 试点的 `publish --dry-run` 会返回短时 `previewCredential`;只有展示预览并取得明确确认后,才对相同 payload 传入 `--preview-credential <token> --confirm-preview`。请求内容变化或凭证过期时重新预览。
|
|
57
|
+
|
|
58
|
+
## 常用命令
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
yxer accounts list [platform] [--name 关键词] [--status 1] [--json]
|
|
62
|
+
yxer prepare <platform> <type>
|
|
63
|
+
yxer schema get <platform> <type>
|
|
64
|
+
yxer upload --file <file_path>
|
|
65
|
+
yxer upload --url <resource_url>
|
|
66
|
+
yxer query categories <account_id> [--type video|article]
|
|
67
|
+
yxer query topics <account_id> [--type video|article] [--query 关键词]
|
|
68
|
+
yxer query locations <account_id> [--query 关键词] [--next-page TOKEN]
|
|
69
|
+
yxer query music <account_id> [--query 关键词] [--category-id ID] [--category-name 名称] [--next-page TOKEN]
|
|
70
|
+
yxer query music-categories <account_id>
|
|
71
|
+
yxer query goods <account_id> [--query 关键词] [--next-page TOKEN]
|
|
72
|
+
yxer query collections <account_id> [--type video|article|audio] [--next-page TOKEN]
|
|
73
|
+
yxer query ximalaya-topics <account_id> --category-id ID [--query 关键词] [--next-page TOKEN]
|
|
74
|
+
yxer query drama-tasks <account_id> [--query 关键词]
|
|
75
|
+
yxer query miniapps <account_id> [--query 关键词]
|
|
76
|
+
yxer query syncapps <account_id>
|
|
77
|
+
yxer query games <account_id> [--query 关键词]
|
|
78
|
+
yxer query hot-events <account_id> [--type video|article]
|
|
79
|
+
yxer query groups <account_id>
|
|
80
|
+
yxer query friends <account_id> [--red-id 小红书号] [--query 关键词]
|
|
81
|
+
yxer query activities <account_id> [--type video|article] [--category-id ID] [--query 关键词]
|
|
82
|
+
yxer query challenges <account_id> [--query 关键词] [--type video] [--next-page TOKEN]
|
|
83
|
+
yxer validate <platform> <type> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>]
|
|
84
|
+
yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>] --dry-run
|
|
85
|
+
yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## 决策提示
|
|
89
|
+
|
|
90
|
+
- 用户只说“帮我发”时,默认云发布;明确说“本机发布”“客户端发布”时切到本机通道。
|
|
91
|
+
- 用户要“只生成 payload”时,仍要先走 `prepare` / `schema get` 和字段查询纪律。
|
|
92
|
+
- 用户要填分类、位置、音乐、合集、话题、商品时,先查询,再回填完整对象;多多视频的 `shopping_cart.goods_id` 由用户手工提供,固定 `source=pdd`,不使用商品查询返回的 `yixiaoerId`;视频号剧集使用 `yxer query drama-tasks`,只写入查询结果的 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不添加 `raw`。
|
|
93
|
+
- 用户要挂载小程序或选择同步发布应用时,先执行 `yxer query miniapps` / `yxer query syncapps`,再把 CLI 返回对象完整回填到 payload。
|
|
94
|
+
- 用户要挂载游戏、绑定热点或选择群聊时,先执行 `yxer query games` / `yxer query hot-events` / `yxer query groups`,再把 CLI 返回对象完整回填到 payload。
|
|
95
|
+
- 用户要在小红书描述中艾特用户(包括陌生人)时,先执行 `yxer query friends <account_id> --red-id <小红书号> --json`,将选中的完整对象 JSON 序列化后写入 `<friend raw='...'>@用户名</friend>`;不要新增未被 schema 声明的 `friends` 字段。
|
|
96
|
+
- 用户要按音乐分类找配乐或参加平台活动时,先执行 `yxer query music-categories` / `yxer query activities`,再把 CLI 返回对象完整回填到 payload。
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
# 记录与排查
|
|
2
|
-
|
|
3
|
-
适用范围:用户要查看发布记录、排查失败、解释为什么 `validate` 或 `publish` 报错。
|
|
4
|
-
|
|
5
|
-
**CRITICAL - 进入本域后,先定位失败阶段,再决定回退到哪一步;不要把“正式重试发布”当成第一反应。**
|
|
6
|
-
|
|
7
|
-
## 优先读取
|
|
8
|
-
|
|
9
|
-
1. [`../protocols/execution.md`](../protocols/execution.md)
|
|
10
|
-
2. [`../protocols/error-recovery.md`](../protocols/error-recovery.md)
|
|
11
|
-
3. [`../protocols/provenance.md`](../protocols/provenance.md)
|
|
12
|
-
4. [`../workflows/publish-troubleshooting.md`](../workflows/publish-troubleshooting.md)
|
|
13
|
-
5. 必要时回读:
|
|
14
|
-
- [`../workflows/common-rules.md`](../workflows/common-rules.md)
|
|
15
|
-
- [`../workflows/local-vs-cloud.md`](../workflows/local-vs-cloud.md)
|
|
16
|
-
- [`./publish.md`](./publish.md)
|
|
17
|
-
|
|
18
|
-
## 常用命令
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
yxer query records [--platform P] [--limit N] [--status S] [--json]
|
|
22
|
-
yxer query details <task_set_id>
|
|
23
|
-
yxer publish delete preview <task_set_id>
|
|
24
|
-
yxer publish delete from-record <task_set_id> --index N --dry-run
|
|
25
|
-
yxer validate <platform> <type> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>]
|
|
26
|
-
yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>] --dry-run
|
|
27
|
-
yxer doctor
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## 排查规则
|
|
31
|
-
|
|
32
|
-
- 先给出错误阶段和错误摘要,再决定回到哪一步修复
|
|
33
|
-
- `validate` 失败时,优先回查 `prepare`、`schema get` 和字段来源
|
|
34
|
-
- 云发布报代理问题时,可建议改本机发布
|
|
35
|
-
- 本机发布报客户端不在线时,提示用户启动并登录客户端,或改回云发布
|
|
36
|
-
- 正式发布失败后,先按错误恢复协议判断是否已产生副作用;未确认前不要重复执行正式 `publish`
|
|
37
|
-
- 用户只说“解释下这条报错”时,可先停留在本域做解释和修复建议,不擅自触发新的发布写操作
|
|
38
|
-
- 删除平台作品时,先执行 `publish delete preview <task_set_id>` 查看作品信息;再用 `from-record <task_set_id> --index N --dry-run` 按作品序号确认目标,确认无误后才可执行真实删除。不要要求用户识别或输入内部任务 ID。
|
|
1
|
+
# 记录与排查
|
|
2
|
+
|
|
3
|
+
适用范围:用户要查看发布记录、排查失败、解释为什么 `validate` 或 `publish` 报错。
|
|
4
|
+
|
|
5
|
+
**CRITICAL - 进入本域后,先定位失败阶段,再决定回退到哪一步;不要把“正式重试发布”当成第一反应。**
|
|
6
|
+
|
|
7
|
+
## 优先读取
|
|
8
|
+
|
|
9
|
+
1. [`../protocols/execution.md`](../protocols/execution.md)
|
|
10
|
+
2. [`../protocols/error-recovery.md`](../protocols/error-recovery.md)
|
|
11
|
+
3. [`../protocols/provenance.md`](../protocols/provenance.md)
|
|
12
|
+
4. [`../workflows/publish-troubleshooting.md`](../workflows/publish-troubleshooting.md)
|
|
13
|
+
5. 必要时回读:
|
|
14
|
+
- [`../workflows/common-rules.md`](../workflows/common-rules.md)
|
|
15
|
+
- [`../workflows/local-vs-cloud.md`](../workflows/local-vs-cloud.md)
|
|
16
|
+
- [`./publish.md`](./publish.md)
|
|
17
|
+
|
|
18
|
+
## 常用命令
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
yxer query records [--platform P] [--limit N] [--status S] [--json]
|
|
22
|
+
yxer query details <task_set_id>
|
|
23
|
+
yxer publish delete preview <task_set_id>
|
|
24
|
+
yxer publish delete from-record <task_set_id> --index N --dry-run
|
|
25
|
+
yxer validate <platform> <type> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>]
|
|
26
|
+
yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>] --dry-run
|
|
27
|
+
yxer doctor
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## 排查规则
|
|
31
|
+
|
|
32
|
+
- 先给出错误阶段和错误摘要,再决定回到哪一步修复
|
|
33
|
+
- `validate` 失败时,优先回查 `prepare`、`schema get` 和字段来源
|
|
34
|
+
- 云发布报代理问题时,可建议改本机发布
|
|
35
|
+
- 本机发布报客户端不在线时,提示用户启动并登录客户端,或改回云发布
|
|
36
|
+
- 正式发布失败后,先按错误恢复协议判断是否已产生副作用;未确认前不要重复执行正式 `publish`
|
|
37
|
+
- 用户只说“解释下这条报错”时,可先停留在本域做解释和修复建议,不擅自触发新的发布写操作
|
|
38
|
+
- 删除平台作品时,先执行 `publish delete preview <task_set_id>` 查看作品信息;再用 `from-record <task_set_id> --index N --dry-run` 按作品序号确认目标,确认无误后才可执行真实删除。不要要求用户识别或输入内部任务 ID。
|
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
# YiXiaoEr Skill 严格执行标准 (Strict Execution Standard)
|
|
2
|
-
|
|
3
|
-
为了确保 蚁小二 (YiXiaoEr) 自动化技能在复杂 Agent 环境下的高可靠性、可追溯性以及版本一致性,所有调用者及技能维护者必须遵循本标准。
|
|
4
|
-
|
|
5
|
-
## 1. 版本控制与一致性 (Versioning & Consistency)
|
|
6
|
-
|
|
7
|
-
### 1.1 语义化版本
|
|
8
|
-
- 技能必须在 `skills/yixiaoer/SKILL.md` 的 frontmatter 中明确标注 `version`(遵循 SemVer 规范)。
|
|
9
|
-
- **执行要求**:Agent 在启动时**必须**校验环境中的技能版本是否符合预期(如 `>= 1.6.0`)。
|
|
10
|
-
|
|
11
|
-
### 1.2 物理一致性 (Integrity)
|
|
12
|
-
- 技能的核心逻辑(`cmd/`、`internal/`、`main.go`)不得在未修改版本号的情况下随意变动。
|
|
13
|
-
- 自动化流水线应建议生成 Hash 值进行对比。
|
|
14
|
-
|
|
15
|
-
## 2. 错误分类与标准码 (Standardized Error Codes)
|
|
16
|
-
|
|
17
|
-
为了准确区分“Agent 使用错误”与“后端系统错误”,所有错误 envelope 必须包含 `error.code` 字段:
|
|
18
|
-
|
|
19
|
-
| 错误代码 (`error.code`) | 分类 | 触发场景 |
|
|
20
|
-
| :--- | :--- | :--- |
|
|
21
|
-
| `YIXIAOER_USAGE_ERR` | Agent 侧错误 | 参数缺失、JSON 格式错误、平台枚举值非法、资源未上传即发布。 |
|
|
22
|
-
| `YIXIAOER_REMOTE_ERR` | 远端 API 错误 | 蚁小二后端返回 4xx/5xx、API Key 失效、配额超限。 |
|
|
23
|
-
| `YIXIAOER_AUTH_ERR` | 鉴权错误 | 缺失 `YIXIAOER_API_KEY` 或 Key 无权访问特定接口。 |
|
|
24
|
-
| `YIXIAOER_ENV_ERR` | 环境错误 | CLI 二进制缺失、关键环境变量缺失、网络不通。 |
|
|
25
|
-
| `YIXIAOER_INTEGRITY_ERR` | 完整性错误 | 运行的代码与文档版本不一致。 |
|
|
26
|
-
|
|
27
|
-
## 3. 资源预处理标准 (Pre-processing Standard)
|
|
28
|
-
|
|
29
|
-
**核心约束:发布与上传必须物理分离**。
|
|
30
|
-
|
|
31
|
-
1. **先上传再引用**:严禁在 `publish` Payload 中直接使用外部原始 URL。必须通过 `upload` action 获取系统内部 `key` 后进行替换。
|
|
32
|
-
2. **ContentType 签名一致性**:获取预签名 URL 时声明的 `contentType` 必须与执行 PUT 上传时的 `Content-Type` Header **完全一致**。禁止自行猜测或随意留空,否则将导致 `SignatureDoesNotMatch` 错误。
|
|
33
|
-
3. **封面图 (Cover)**:视频内容的封面图必须同样经过 `upload` 流程。
|
|
34
|
-
4. **状态校验**:在上传统一资源后,建议通过 `material` 接口(若需要)将其同步至素材库以增加发布稳定性。
|
|
35
|
-
5. **素材库原子化标准 (Material Library Standard)**:
|
|
36
|
-
- **严禁一步到位**:当用户请求“上传到素材库”时,Agent **必须**执行两个物理步骤:
|
|
37
|
-
1. **upload**:先将资源上传至 OSS(推荐 `bucket: "material-library"`)并获得 resource key。
|
|
38
|
-
2. **material**:持有 resource key,调用逻辑将资源登记到素材库并获得素材 ID。
|
|
39
|
-
- **错误规避**:严禁只执行 `upload` 而不执行 `material` 登记,否则用户在网页端将无法看到该素材。
|
|
40
|
-
|
|
41
|
-
### 3.1 标准请求体兼容约定 (Standard Publish Request Compatibility)
|
|
42
|
-
|
|
43
|
-
- CLI 现已兼容“标准请求体”输入格式。推荐将共享资源放在 `publishArgs` 根级,例如 `video`、`images`、`cover`、`coverKey`、`verticalCover`、`content`。
|
|
44
|
-
- CLI 在执行 `validate` / `publish` 时,会在 `accountForms[]` 缺失对应资源字段时自动补齐:
|
|
45
|
-
- `publishArgs.video` -> `accountForms[i].video`
|
|
46
|
-
- `publishArgs.images` -> `accountForms[i].images`
|
|
47
|
-
- `publishArgs.cover` -> `accountForms[i].cover`
|
|
48
|
-
- `publishArgs.coverKey` -> `accountForms[i].coverKey`
|
|
49
|
-
- `publishArgs.verticalCover` -> `accountForms[i].contentPublishForm.verticalCover`(仅当平台 schema 暴露该字段时使用)
|
|
50
|
-
- `publishArgs.content` -> `accountForms[i].contentPublishForm.content`
|
|
51
|
-
- 业务扩展字段如 `mediaId`、`platformName`、`publishContentId`、`fps`、`isAppContent` 会被 CLI 保留并原样透传,不参与额外业务改写。
|
|
52
|
-
- 命令层仍保持**单平台执行模型**:即使标准请求体本身可表达多平台,`yxer publish` 仍需按平台逐次调用。
|
|
53
|
-
|
|
54
|
-
## 4. 调用序列与检索规范 (Interaction Flow)
|
|
55
|
-
|
|
56
|
-
Agent 在执行任务时必须遵循以下“分级检索”逻辑:
|
|
57
|
-
|
|
58
|
-
1. **L1 技能入口检索**:读取 `skills/yixiaoer/SKILL.md` 确定 `action` 类型。
|
|
59
|
-
2. **L2 Domain / 索引检索**:在执行 `publish` 前,必须先读取对应 domain 与内容类型 `index.md`(如 `skills/yixiaoer/references/platforms/article/index.md`)确定 DTO 架构。
|
|
60
|
-
3. **L3 平台细化**:根据目标平台(如“抖音”),读取 `skills/yixiaoer/references/platforms/video/douyin.md` 对 `platformSettings` 进行深度补全。
|
|
61
|
-
4. **禁止跳级**:严禁在未读取 domain 与类型索引的情况下直接拼装平台参数。
|
|
62
|
-
5. **动态数据预查**:对于 `categories` (分类)、`tags` (标签)、`locations` (位置) 等动态字段,Agent **必须**先通过对应的查询 action 获取当前平台的合法值,严禁基于常识或过时缓存进行猜测。
|
|
63
|
-
|
|
64
|
-
## 5. 输出格式规范 (Output Schema)
|
|
65
|
-
|
|
66
|
-
脚本输出必须为严格的 JSON。
|
|
67
|
-
|
|
68
|
-
### 成功响应示例
|
|
69
|
-
```json
|
|
70
|
-
{
|
|
71
|
-
"ok": true,
|
|
72
|
-
"action": "publish",
|
|
73
|
-
"version": "3.1.3",
|
|
74
|
-
"data": {
|
|
75
|
-
"task_set_id": "TS12345678"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## 6. 错误处理与自检流程 (Error Handling & Self-Diagnosis)
|
|
81
|
-
|
|
82
|
-
当 CLI 执行失败并返回 `ok: false` 时,Agent 或开发者**必须**按照以下顺序进行自检:
|
|
83
|
-
|
|
84
|
-
### 第零步:优先匹配避坑指南 (Step 0: Check Troubleshooting Guide)
|
|
85
|
-
- 在进行任何深度调试前,**必须首先查阅**:[🛡️ 蚁小二 Skill 避坑与故障排查手册](./troubleshooting-guide.md)。
|
|
86
|
-
- 检查出错现象是否符合手册中的“常见四大坑点”(版本、设备在线、表单架构、签名一致性)。如果匹配,直接按方案修正。
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
### 第一步:检查版本一致性 (Check Version)
|
|
90
|
-
- 检查当前运行环境中的 `skills/yixiaoer/SKILL.md` 版本号。
|
|
91
|
-
- 确认 Agent 使用的 API 调用逻辑是否与该版本匹配。
|
|
92
|
-
- **排查项**:是否因版本过低导致某些新增字段(如 `publishChannel`)未生效。
|
|
93
|
-
|
|
94
|
-
### 第二步:检查请求参数规范 (Check Parameters)
|
|
95
|
-
- 对比输出的 `details` 信息与 `skills/yixiaoer/references/` 下的 DTO 与平台定义。
|
|
96
|
-
- **重点排查项 (必填项校验)**:
|
|
97
|
-
- **封面图 (cover/covers)**:是否提供了有效的资源 key?
|
|
98
|
-
- **视频资源 (video)**:视频发布是否包含必填的视频 key、标题或分类?
|
|
99
|
-
- **平台特定字段**:如公众号的 `author`、抖音的 `is_public` 等。
|
|
100
|
-
- **重点排查项 (必填项校验)**:
|
|
101
|
-
- **分类与标签路径**:分类 (categories) 必须使用通过 `action: "categories"` 接口获取的**完整 `child` 路径数组**。严禁只填入末级 ID。
|
|
102
|
-
- **位置与话题**:如抖音的 POI 位置、话题等,必须通过对应的检索接口获取有效数据后果填入。
|
|
103
|
-
- **排查项**:检查必填字段是否遗漏、数据类型(String/Number)是否符合文档、平台枚举名称是否正确。
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
### 第三步:检查缓存与过期数据 (Check Cache & Stale Data)
|
|
107
|
-
- 检查是否存在过期的缓存文件(如旧的 Payload JSON、过时的资源 Key)。
|
|
108
|
-
- **资源上传专项排查**:在上传阶段如果出现 `SignatureDoesNotMatch` 错误,优先检查 `contentType` 定义是否与上传时的 Header **完全对齐**。Agent 在调用 `action: "upload-resource"` 时传入的 `contentType` 必须与后续 PUT 请求中的 `Content-Type` 字节级一致。
|
|
109
|
-
- **发布通道与代理校验**:
|
|
110
|
-
- 若执行发布任务返回“获取在线设备列表失败”或提示“客户端不在线”,原因为选择了 **本机发布 (publishChannel: 'local')** 但环境中未运行蚁小二客户端。建议保持客户端在线,或修改为 **云发布 (publishChannel: 'cloud')**。
|
|
111
|
-
- 若**云发布**返回“账号代理不存在”,原因为账号绑定的独立代理 (proxyId) 失效或该平台强制需要代理配置。Agent 应先检查账号的 `proxyId` 或 `kuaidailiArea` 是否设置,并提示用户通过 `yxer accounts update` 绑定新的代理。
|
|
112
|
-
- **执行逻辑**:如果怀疑使用了缓存导致的异常,必须清理相关临时文件并严格按照最新技能定义的流程重新执行(如重新执行 `upload` 流程)。
|
|
113
|
-
- **草稿处理逻辑 (Draft Selection)**:当涉及“草稿”时,Agent 必须通过语义判断用户是指 **“蚁小二内部草稿”** (`yxer draft save`) 还是 **“发布到平台草稿箱”** (`yxer publish` + `pubType: 0`)。**若语义不明确,Agent 必须询问用户以确认,严禁在未明确用户意图时随意选取一种或默认执行。**
|
|
114
|
-
- **平台草稿兼容性补丁**:若用户指定“发布到平台草稿箱”,Agent 遵循以下执行链:
|
|
115
|
-
1. **pubType 优先**:若平台定义了 `pubType`,使用 `pubType: 0`。
|
|
116
|
-
2. **visibleType 次之**:若无 `pubType` 但有 `visibleType` (或 `status`/`privacy`),将其设为 **`1` (私密)**。对应的,`0` 表示公开。
|
|
117
|
-
3. **不支持告知**:若均无定义,则判定为不支持,必须提示用户。
|
|
118
|
-
### 6.4 分类路径完整性校验 (Category Path Integrity)
|
|
119
|
-
- **核心逻辑**:对于支持多级结构的分类(如 B 站视频分区),Agent 在填充表单时**必须**使用完整的 `child` 路径数组。
|
|
120
|
-
- **数据获取**:直接透传从 `action: "categories"` 结果中提取的 `child` 字段。
|
|
121
|
-
- **执行动作**:Agent 选中目标分类后,应直接将该对象的整个 `child` 数组填入 `contentPublishForm.category` 或对应字段。
|
|
122
|
-
- **严禁**:严禁只填入单一的 `yixiaoerId` 或末级分类名。
|
|
123
|
-
|
|
124
|
-
---
|
|
125
|
-
|
|
126
|
-
## 7. 账号有效性校验 (Account Validity)
|
|
127
|
-
- **校验标准**:Agent 在执行 `publish` 前,其选择的账号 `status` 必须为 `1` (有效)。
|
|
128
|
-
- **严禁执行**:若账号 `status` 为 `2` (失效),Agent **严禁**尝试执行发布任务,应立即提示用户账号需要重新登录或处理。
|
|
129
|
-
- **数据来源**:账号状态必须通过 `action: "accounts"` 接口实时获取,不得依赖过期的历史数据。
|
|
130
|
-
|
|
131
|
-
## 8. 避坑指南:常见失败场景 (Common Failure Scenarios)
|
|
132
|
-
|
|
133
|
-
| 场景 | 原因分析 | 改进建议 |
|
|
134
|
-
| :--- | :--- | :--- |
|
|
135
|
-
| **版本不支持该功能** | 技能版本号过低,未包含新增动作或字段。 | 检查 `skills/yixiaoer/SKILL.md` 版本,提示用户升级或回退逻辑。 |
|
|
136
|
-
| **获取在线设备失败** | 选用了“本机发布”但客户端未开启或未登录。 | 提示用户:**“蚁小二客户端需要保持在线”**,或者建议改为 **“云发布”** (publishChannel: 'cloud')。 |
|
|
137
|
-
| **发布失败:表单错误** | Agent 生成的 JSON 结构与 `skills/yixiaoer/references/` 下的 DTO 架构不匹配。 | **强制核对**:Agent 必须校验传入表单是否符合对应平台的文档要求。 |
|
|
138
|
-
| **任务卡在发布中/待发布** | 虽然 API 接收了请求,但表单内容不合规导致引擎挂起。 | **规则校验**:检查表单是否严格按照文档规则填入,特别是 `raw` 数据透传。 |
|
|
139
|
-
| **发布失败:必填项缺失** | 忽略了平台要求的必填核心字段(如标题、分类)。 | **必填项自检**:检查文档中标记为“必填”的字段是否已全部填入。 |
|
|
140
|
-
| **上传失败/签名不匹配** | `contentType` 在获取上传地址与执行 PUT 时不一致。 | **一致性校验**:必须确保 `action: "upload-resource"` 时传入的 `contentType` 与实际上传一致。 |
|
|
141
|
-
| **云发布报错:账号代理不存在** | 账号绑定的独立代理 (`proxyId`) 已失效,或云发布环境未配置代理。 | **修复建议**:通过 `yxer accounts update` 为账号设置 `kuaidailiArea`(内置代理)或有效的 `proxyId`(独立代理)。 |
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
*本标准由 OpenClaw 架构组制定。违反本标准导致的发布失败或数据异常将由调用者承担相应责任。*
|
|
1
|
+
# YiXiaoEr Skill 严格执行标准 (Strict Execution Standard)
|
|
2
|
+
|
|
3
|
+
为了确保 蚁小二 (YiXiaoEr) 自动化技能在复杂 Agent 环境下的高可靠性、可追溯性以及版本一致性,所有调用者及技能维护者必须遵循本标准。
|
|
4
|
+
|
|
5
|
+
## 1. 版本控制与一致性 (Versioning & Consistency)
|
|
6
|
+
|
|
7
|
+
### 1.1 语义化版本
|
|
8
|
+
- 技能必须在 `skills/yixiaoer/SKILL.md` 的 frontmatter 中明确标注 `version`(遵循 SemVer 规范)。
|
|
9
|
+
- **执行要求**:Agent 在启动时**必须**校验环境中的技能版本是否符合预期(如 `>= 1.6.0`)。
|
|
10
|
+
|
|
11
|
+
### 1.2 物理一致性 (Integrity)
|
|
12
|
+
- 技能的核心逻辑(`cmd/`、`internal/`、`main.go`)不得在未修改版本号的情况下随意变动。
|
|
13
|
+
- 自动化流水线应建议生成 Hash 值进行对比。
|
|
14
|
+
|
|
15
|
+
## 2. 错误分类与标准码 (Standardized Error Codes)
|
|
16
|
+
|
|
17
|
+
为了准确区分“Agent 使用错误”与“后端系统错误”,所有错误 envelope 必须包含 `error.code` 字段:
|
|
18
|
+
|
|
19
|
+
| 错误代码 (`error.code`) | 分类 | 触发场景 |
|
|
20
|
+
| :--- | :--- | :--- |
|
|
21
|
+
| `YIXIAOER_USAGE_ERR` | Agent 侧错误 | 参数缺失、JSON 格式错误、平台枚举值非法、资源未上传即发布。 |
|
|
22
|
+
| `YIXIAOER_REMOTE_ERR` | 远端 API 错误 | 蚁小二后端返回 4xx/5xx、API Key 失效、配额超限。 |
|
|
23
|
+
| `YIXIAOER_AUTH_ERR` | 鉴权错误 | 缺失 `YIXIAOER_API_KEY` 或 Key 无权访问特定接口。 |
|
|
24
|
+
| `YIXIAOER_ENV_ERR` | 环境错误 | CLI 二进制缺失、关键环境变量缺失、网络不通。 |
|
|
25
|
+
| `YIXIAOER_INTEGRITY_ERR` | 完整性错误 | 运行的代码与文档版本不一致。 |
|
|
26
|
+
|
|
27
|
+
## 3. 资源预处理标准 (Pre-processing Standard)
|
|
28
|
+
|
|
29
|
+
**核心约束:发布与上传必须物理分离**。
|
|
30
|
+
|
|
31
|
+
1. **先上传再引用**:严禁在 `publish` Payload 中直接使用外部原始 URL。必须通过 `upload` action 获取系统内部 `key` 后进行替换。
|
|
32
|
+
2. **ContentType 签名一致性**:获取预签名 URL 时声明的 `contentType` 必须与执行 PUT 上传时的 `Content-Type` Header **完全一致**。禁止自行猜测或随意留空,否则将导致 `SignatureDoesNotMatch` 错误。
|
|
33
|
+
3. **封面图 (Cover)**:视频内容的封面图必须同样经过 `upload` 流程。
|
|
34
|
+
4. **状态校验**:在上传统一资源后,建议通过 `material` 接口(若需要)将其同步至素材库以增加发布稳定性。
|
|
35
|
+
5. **素材库原子化标准 (Material Library Standard)**:
|
|
36
|
+
- **严禁一步到位**:当用户请求“上传到素材库”时,Agent **必须**执行两个物理步骤:
|
|
37
|
+
1. **upload**:先将资源上传至 OSS(推荐 `bucket: "material-library"`)并获得 resource key。
|
|
38
|
+
2. **material**:持有 resource key,调用逻辑将资源登记到素材库并获得素材 ID。
|
|
39
|
+
- **错误规避**:严禁只执行 `upload` 而不执行 `material` 登记,否则用户在网页端将无法看到该素材。
|
|
40
|
+
|
|
41
|
+
### 3.1 标准请求体兼容约定 (Standard Publish Request Compatibility)
|
|
42
|
+
|
|
43
|
+
- CLI 现已兼容“标准请求体”输入格式。推荐将共享资源放在 `publishArgs` 根级,例如 `video`、`images`、`cover`、`coverKey`、`verticalCover`、`content`。
|
|
44
|
+
- CLI 在执行 `validate` / `publish` 时,会在 `accountForms[]` 缺失对应资源字段时自动补齐:
|
|
45
|
+
- `publishArgs.video` -> `accountForms[i].video`
|
|
46
|
+
- `publishArgs.images` -> `accountForms[i].images`
|
|
47
|
+
- `publishArgs.cover` -> `accountForms[i].cover`
|
|
48
|
+
- `publishArgs.coverKey` -> `accountForms[i].coverKey`
|
|
49
|
+
- `publishArgs.verticalCover` -> `accountForms[i].contentPublishForm.verticalCover`(仅当平台 schema 暴露该字段时使用)
|
|
50
|
+
- `publishArgs.content` -> `accountForms[i].contentPublishForm.content`
|
|
51
|
+
- 业务扩展字段如 `mediaId`、`platformName`、`publishContentId`、`fps`、`isAppContent` 会被 CLI 保留并原样透传,不参与额外业务改写。
|
|
52
|
+
- 命令层仍保持**单平台执行模型**:即使标准请求体本身可表达多平台,`yxer publish` 仍需按平台逐次调用。
|
|
53
|
+
|
|
54
|
+
## 4. 调用序列与检索规范 (Interaction Flow)
|
|
55
|
+
|
|
56
|
+
Agent 在执行任务时必须遵循以下“分级检索”逻辑:
|
|
57
|
+
|
|
58
|
+
1. **L1 技能入口检索**:读取 `skills/yixiaoer/SKILL.md` 确定 `action` 类型。
|
|
59
|
+
2. **L2 Domain / 索引检索**:在执行 `publish` 前,必须先读取对应 domain 与内容类型 `index.md`(如 `skills/yixiaoer/references/platforms/article/index.md`)确定 DTO 架构。
|
|
60
|
+
3. **L3 平台细化**:根据目标平台(如“抖音”),读取 `skills/yixiaoer/references/platforms/video/douyin.md` 对 `platformSettings` 进行深度补全。
|
|
61
|
+
4. **禁止跳级**:严禁在未读取 domain 与类型索引的情况下直接拼装平台参数。
|
|
62
|
+
5. **动态数据预查**:对于 `categories` (分类)、`tags` (标签)、`locations` (位置) 等动态字段,Agent **必须**先通过对应的查询 action 获取当前平台的合法值,严禁基于常识或过时缓存进行猜测。
|
|
63
|
+
|
|
64
|
+
## 5. 输出格式规范 (Output Schema)
|
|
65
|
+
|
|
66
|
+
脚本输出必须为严格的 JSON。
|
|
67
|
+
|
|
68
|
+
### 成功响应示例
|
|
69
|
+
```json
|
|
70
|
+
{
|
|
71
|
+
"ok": true,
|
|
72
|
+
"action": "publish",
|
|
73
|
+
"version": "3.1.3",
|
|
74
|
+
"data": {
|
|
75
|
+
"task_set_id": "TS12345678"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## 6. 错误处理与自检流程 (Error Handling & Self-Diagnosis)
|
|
81
|
+
|
|
82
|
+
当 CLI 执行失败并返回 `ok: false` 时,Agent 或开发者**必须**按照以下顺序进行自检:
|
|
83
|
+
|
|
84
|
+
### 第零步:优先匹配避坑指南 (Step 0: Check Troubleshooting Guide)
|
|
85
|
+
- 在进行任何深度调试前,**必须首先查阅**:[🛡️ 蚁小二 Skill 避坑与故障排查手册](./troubleshooting-guide.md)。
|
|
86
|
+
- 检查出错现象是否符合手册中的“常见四大坑点”(版本、设备在线、表单架构、签名一致性)。如果匹配,直接按方案修正。
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### 第一步:检查版本一致性 (Check Version)
|
|
90
|
+
- 检查当前运行环境中的 `skills/yixiaoer/SKILL.md` 版本号。
|
|
91
|
+
- 确认 Agent 使用的 API 调用逻辑是否与该版本匹配。
|
|
92
|
+
- **排查项**:是否因版本过低导致某些新增字段(如 `publishChannel`)未生效。
|
|
93
|
+
|
|
94
|
+
### 第二步:检查请求参数规范 (Check Parameters)
|
|
95
|
+
- 对比输出的 `details` 信息与 `skills/yixiaoer/references/` 下的 DTO 与平台定义。
|
|
96
|
+
- **重点排查项 (必填项校验)**:
|
|
97
|
+
- **封面图 (cover/covers)**:是否提供了有效的资源 key?
|
|
98
|
+
- **视频资源 (video)**:视频发布是否包含必填的视频 key、标题或分类?
|
|
99
|
+
- **平台特定字段**:如公众号的 `author`、抖音的 `is_public` 等。
|
|
100
|
+
- **重点排查项 (必填项校验)**:
|
|
101
|
+
- **分类与标签路径**:分类 (categories) 必须使用通过 `action: "categories"` 接口获取的**完整 `child` 路径数组**。严禁只填入末级 ID。
|
|
102
|
+
- **位置与话题**:如抖音的 POI 位置、话题等,必须通过对应的检索接口获取有效数据后果填入。
|
|
103
|
+
- **排查项**:检查必填字段是否遗漏、数据类型(String/Number)是否符合文档、平台枚举名称是否正确。
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### 第三步:检查缓存与过期数据 (Check Cache & Stale Data)
|
|
107
|
+
- 检查是否存在过期的缓存文件(如旧的 Payload JSON、过时的资源 Key)。
|
|
108
|
+
- **资源上传专项排查**:在上传阶段如果出现 `SignatureDoesNotMatch` 错误,优先检查 `contentType` 定义是否与上传时的 Header **完全对齐**。Agent 在调用 `action: "upload-resource"` 时传入的 `contentType` 必须与后续 PUT 请求中的 `Content-Type` 字节级一致。
|
|
109
|
+
- **发布通道与代理校验**:
|
|
110
|
+
- 若执行发布任务返回“获取在线设备列表失败”或提示“客户端不在线”,原因为选择了 **本机发布 (publishChannel: 'local')** 但环境中未运行蚁小二客户端。建议保持客户端在线,或修改为 **云发布 (publishChannel: 'cloud')**。
|
|
111
|
+
- 若**云发布**返回“账号代理不存在”,原因为账号绑定的独立代理 (proxyId) 失效或该平台强制需要代理配置。Agent 应先检查账号的 `proxyId` 或 `kuaidailiArea` 是否设置,并提示用户通过 `yxer accounts update` 绑定新的代理。
|
|
112
|
+
- **执行逻辑**:如果怀疑使用了缓存导致的异常,必须清理相关临时文件并严格按照最新技能定义的流程重新执行(如重新执行 `upload` 流程)。
|
|
113
|
+
- **草稿处理逻辑 (Draft Selection)**:当涉及“草稿”时,Agent 必须通过语义判断用户是指 **“蚁小二内部草稿”** (`yxer draft save`) 还是 **“发布到平台草稿箱”** (`yxer publish` + `pubType: 0`)。**若语义不明确,Agent 必须询问用户以确认,严禁在未明确用户意图时随意选取一种或默认执行。**
|
|
114
|
+
- **平台草稿兼容性补丁**:若用户指定“发布到平台草稿箱”,Agent 遵循以下执行链:
|
|
115
|
+
1. **pubType 优先**:若平台定义了 `pubType`,使用 `pubType: 0`。
|
|
116
|
+
2. **visibleType 次之**:若无 `pubType` 但有 `visibleType` (或 `status`/`privacy`),将其设为 **`1` (私密)**。对应的,`0` 表示公开。
|
|
117
|
+
3. **不支持告知**:若均无定义,则判定为不支持,必须提示用户。
|
|
118
|
+
### 6.4 分类路径完整性校验 (Category Path Integrity)
|
|
119
|
+
- **核心逻辑**:对于支持多级结构的分类(如 B 站视频分区),Agent 在填充表单时**必须**使用完整的 `child` 路径数组。
|
|
120
|
+
- **数据获取**:直接透传从 `action: "categories"` 结果中提取的 `child` 字段。
|
|
121
|
+
- **执行动作**:Agent 选中目标分类后,应直接将该对象的整个 `child` 数组填入 `contentPublishForm.category` 或对应字段。
|
|
122
|
+
- **严禁**:严禁只填入单一的 `yixiaoerId` 或末级分类名。
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 7. 账号有效性校验 (Account Validity)
|
|
127
|
+
- **校验标准**:Agent 在执行 `publish` 前,其选择的账号 `status` 必须为 `1` (有效)。
|
|
128
|
+
- **严禁执行**:若账号 `status` 为 `2` (失效),Agent **严禁**尝试执行发布任务,应立即提示用户账号需要重新登录或处理。
|
|
129
|
+
- **数据来源**:账号状态必须通过 `action: "accounts"` 接口实时获取,不得依赖过期的历史数据。
|
|
130
|
+
|
|
131
|
+
## 8. 避坑指南:常见失败场景 (Common Failure Scenarios)
|
|
132
|
+
|
|
133
|
+
| 场景 | 原因分析 | 改进建议 |
|
|
134
|
+
| :--- | :--- | :--- |
|
|
135
|
+
| **版本不支持该功能** | 技能版本号过低,未包含新增动作或字段。 | 检查 `skills/yixiaoer/SKILL.md` 版本,提示用户升级或回退逻辑。 |
|
|
136
|
+
| **获取在线设备失败** | 选用了“本机发布”但客户端未开启或未登录。 | 提示用户:**“蚁小二客户端需要保持在线”**,或者建议改为 **“云发布”** (publishChannel: 'cloud')。 |
|
|
137
|
+
| **发布失败:表单错误** | Agent 生成的 JSON 结构与 `skills/yixiaoer/references/` 下的 DTO 架构不匹配。 | **强制核对**:Agent 必须校验传入表单是否符合对应平台的文档要求。 |
|
|
138
|
+
| **任务卡在发布中/待发布** | 虽然 API 接收了请求,但表单内容不合规导致引擎挂起。 | **规则校验**:检查表单是否严格按照文档规则填入,特别是 `raw` 数据透传。 |
|
|
139
|
+
| **发布失败:必填项缺失** | 忽略了平台要求的必填核心字段(如标题、分类)。 | **必填项自检**:检查文档中标记为“必填”的字段是否已全部填入。 |
|
|
140
|
+
| **上传失败/签名不匹配** | `contentType` 在获取上传地址与执行 PUT 时不一致。 | **一致性校验**:必须确保 `action: "upload-resource"` 时传入的 `contentType` 与实际上传一致。 |
|
|
141
|
+
| **云发布报错:账号代理不存在** | 账号绑定的独立代理 (`proxyId`) 已失效,或云发布环境未配置代理。 | **修复建议**:通过 `yxer accounts update` 为账号设置 `kuaidailiArea`(内置代理)或有效的 `proxyId`(独立代理)。 |
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
*本标准由 OpenClaw 架构组制定。违反本标准导致的发布失败或数据异常将由调用者承担相应责任。*
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# 获取账号分组列表
|
|
2
|
-
|
|
3
|
-
用于查询账号分组列表,对应接口 `GET /groups`。
|
|
4
|
-
|
|
5
|
-
## 推荐命令
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
yxer account-group list [--page 1] [--size 10]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 输出说明
|
|
12
|
-
|
|
13
|
-
- 返回账号分组列表。
|
|
14
|
-
- 支持分页参数:`--page`、`--size`。
|
|
15
|
-
- 具体字段以 CLI 实际 JSON 输出为准,Agent 应直接消费返回结果,不要手写分组对象。
|
|
1
|
+
# 获取账号分组列表
|
|
2
|
+
|
|
3
|
+
用于查询账号分组列表,对应接口 `GET /groups`。
|
|
4
|
+
|
|
5
|
+
## 推荐命令
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yxer account-group list [--page 1] [--size 10]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 输出说明
|
|
12
|
+
|
|
13
|
+
- 返回账号分组列表。
|
|
14
|
+
- 支持分页参数:`--page`、`--size`。
|
|
15
|
+
- 具体字段以 CLI 实际 JSON 输出为准,Agent 应直接消费返回结果,不要手写分组对象。
|