@yixiaoermail/cli 3.2.1 → 3.2.3

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.
Files changed (113) hide show
  1. package/README.md +19 -1
  2. package/bin/install.js +256 -0
  3. package/bin/postinstall.js +4 -8
  4. package/bin/resolve-binary.js +5 -19
  5. package/bin/yxer.js +18 -12
  6. package/checksums.txt +6 -0
  7. package/package.json +29 -28
  8. package/references/cli/command-design.md +305 -305
  9. package/references/cli/command-reference.md +35 -35
  10. package/references/legacy/capabilities.md +13 -13
  11. package/references/workflows/payload-sourcing.md +17 -17
  12. package/references/workflows/publish-troubleshooting.md +10 -10
  13. package/schemas/platforms/acfun.article.schema.json +117 -117
  14. package/schemas/platforms/acfun.video.schema.json +139 -139
  15. package/schemas/platforms/aiqiyi.article.schema.json +29 -29
  16. package/schemas/platforms/aiqiyi.video.schema.json +154 -154
  17. package/schemas/platforms/baijiahao.article.schema.json +160 -160
  18. package/schemas/platforms/baijiahao.imageText.schema.json +111 -111
  19. package/schemas/platforms/baijiahao.video.schema.json +180 -180
  20. package/schemas/platforms/bilibili.article.schema.json +109 -109
  21. package/schemas/platforms/bilibili.video.schema.json +175 -175
  22. package/schemas/platforms/chejiahao.article.schema.json +108 -108
  23. package/schemas/platforms/chejiahao.video.schema.json +111 -111
  24. package/schemas/platforms/csdn.article.schema.json +106 -106
  25. package/schemas/platforms/dayuhao.article.schema.json +106 -106
  26. package/schemas/platforms/dayuhao.video.schema.json +153 -153
  27. package/schemas/platforms/dewu.video.schema.json +134 -134
  28. package/schemas/platforms/douban.article.schema.json +48 -48
  29. package/schemas/platforms/douyin.article.schema.json +318 -318
  30. package/schemas/platforms/douyin.imageText.schema.json +287 -287
  31. package/schemas/platforms/douyin.video.schema.json +852 -852
  32. package/schemas/platforms/duoduoshipin.video.schema.json +108 -108
  33. package/schemas/platforms/facebook.video.schema.json +28 -28
  34. package/schemas/platforms/fengwang.video.schema.json +135 -135
  35. package/schemas/platforms/instagram.video.schema.json +28 -28
  36. package/schemas/platforms/jianshu.article.schema.json +33 -33
  37. package/schemas/platforms/kuaichuanhao.article.schema.json +83 -83
  38. package/schemas/platforms/kuaishou.imageText.schema.json +171 -171
  39. package/schemas/platforms/kuaishou.video.schema.json +243 -243
  40. package/schemas/platforms/meipai.video.schema.json +123 -123
  41. package/schemas/platforms/meiyou.video.schema.json +96 -96
  42. package/schemas/platforms/pipixia.video.schema.json +94 -94
  43. package/schemas/platforms/qiehao.article.schema.json +89 -89
  44. package/schemas/platforms/qiehao.video.schema.json +147 -147
  45. package/schemas/platforms/shipinhao.imageText.schema.json +139 -139
  46. package/schemas/platforms/shipinhao.video.schema.json +237 -237
  47. package/schemas/platforms/souhuhao.article.schema.json +73 -73
  48. package/schemas/platforms/souhuhao.video.schema.json +171 -171
  49. package/schemas/platforms/souhushipin.video.schema.json +115 -115
  50. package/schemas/platforms/tengxunshipin.video.schema.json +114 -114
  51. package/schemas/platforms/tiktok.video.schema.json +72 -72
  52. package/schemas/platforms/toutiaohao.article.schema.json +166 -166
  53. package/schemas/platforms/toutiaohao.imageText.schema.json +83 -83
  54. package/schemas/platforms/toutiaohao.video.schema.json +134 -134
  55. package/schemas/platforms/wangyihao.article.schema.json +85 -85
  56. package/schemas/platforms/wangyihao.video.schema.json +151 -151
  57. package/schemas/platforms/weishi.video.schema.json +101 -101
  58. package/schemas/platforms/weixin.account.article.schema.json +148 -148
  59. package/schemas/platforms/xhs.imageText.schema.json +131 -131
  60. package/schemas/platforms/xiaohongshu.video.schema.json +225 -225
  61. package/schemas/platforms/xiaohongshushop.video.schema.json +142 -142
  62. package/schemas/platforms/xinlang.article.schema.json +69 -69
  63. package/schemas/platforms/xinlang.imageText.schema.json +86 -86
  64. package/schemas/platforms/xinlang.video.schema.json +152 -152
  65. package/schemas/platforms/xueqiuhao.article.schema.json +84 -84
  66. package/schemas/platforms/yichehao.article.schema.json +140 -140
  67. package/schemas/platforms/yichehao.video.schema.json +101 -101
  68. package/schemas/platforms/yidianhao.article.schema.json +77 -77
  69. package/schemas/platforms/yidianhao.video.schema.json +152 -152
  70. package/schemas/platforms/youtube.video.schema.json +92 -92
  71. package/schemas/platforms/zhihu.article.schema.json +104 -104
  72. package/schemas/platforms/zhihu.imageText.schema.json +61 -61
  73. package/schemas/platforms/zhihu.video.schema.json +144 -144
  74. package/skills/yixiaoer/QUICKSTART.md +4 -4
  75. package/skills/yixiaoer/SKILL.md +1 -1
  76. package/skills/yixiaoer/references/cli/command-reference.md +30 -30
  77. package/skills/yixiaoer/references/create-account-group.md +27 -27
  78. package/skills/yixiaoer/references/delete-account-group.md +20 -20
  79. package/skills/yixiaoer/references/domains/accounts-and-env.md +17 -17
  80. package/skills/yixiaoer/references/domains/install-and-sync.md +41 -13
  81. package/skills/yixiaoer/references/domains/publish.md +11 -11
  82. package/skills/yixiaoer/references/execution-standard.md +18 -18
  83. package/skills/yixiaoer/references/get-account-groups.md +14 -14
  84. package/skills/yixiaoer/references/get-members.md +28 -28
  85. package/skills/yixiaoer/references/go-live-process.md +11 -19
  86. package/skills/yixiaoer/references/keyword-reference.md +4 -4
  87. package/skills/yixiaoer/references/material-resource.md +8 -8
  88. package/skills/yixiaoer/references/platforms/article/toutiaohao.md +28 -28
  89. package/skills/yixiaoer/references/platforms/video/facebook.md +37 -37
  90. package/skills/yixiaoer/references/platforms/video/index.md +7 -7
  91. package/skills/yixiaoer/references/platforms/video/instagram.md +40 -40
  92. package/skills/yixiaoer/references/platforms/video/tiktok.md +50 -50
  93. package/skills/yixiaoer/references/platforms/video/youtube.md +53 -53
  94. package/skills/yixiaoer/references/proxy-management.md +9 -9
  95. package/skills/yixiaoer/references/topic-tags.md +31 -31
  96. package/skills/yixiaoer/references/troubleshooting-guide.md +2 -2
  97. package/skills/yixiaoer/references/update-account-group.md +28 -28
  98. package/skills/yixiaoer/references/upload-resource.md +6 -6
  99. package/skills/yixiaoer/references/usage-workflow.md +3 -5
  100. package/skills/yixiaoer/references/workflows/common-rules.md +29 -29
  101. package/skills/yixiaoer/references/workflows/data-accuracy.md +83 -83
  102. package/skills/yixiaoer/references/workflows/payload-sourcing.md +24 -24
  103. package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +10 -10
  104. package/dist/yxer-darwin-amd64 +0 -0
  105. package/dist/yxer-darwin-arm64 +0 -0
  106. package/dist/yxer-linux-amd64 +0 -0
  107. package/dist/yxer-linux-arm64 +0 -0
  108. package/dist/yxer-windows-amd64.exe +0 -0
  109. package/dist/yxer-windows-arm64.exe +0 -0
  110. package/references/cli/skill-install.md +0 -76
  111. package/skills/yixiaoer/plugin.json +0 -21
  112. package/skills/yixiaoer/references/cli/skill-install.md +0 -65
  113. package/skills/yixiaoer/references/cli-install-uninstall.md +0 -196
@@ -1,196 +0,0 @@
1
- # CLI 与 Skill 安装卸载说明
2
-
3
- 本文档覆盖 `yxer` CLI 的下载/安装、升级、卸载,以及 `yixiaoer` skill 的安装和卸载。
4
-
5
- ## 1. 环境要求
6
-
7
- - Go `1.25.0` 或更高
8
- - Node.js
9
- - `npx`
10
-
11
- ## 2. CLI 下载与安装
12
-
13
- 当前仓库没有内置“自动下载最新版 CLI”的能力,推荐以下两种获取方式。
14
-
15
- ### 方式 A:从源码构建
16
-
17
- ```bash
18
- git clone <repo>
19
- cd yixiaoer-skill
20
- go build -o bin/yxer.exe .
21
- ```
22
-
23
- 构建完成后,可执行文件位于:
24
-
25
- ```text
26
- bin\yxer.exe
27
- ```
28
-
29
- ### 方式 B:使用发布人员提供的制品包
30
-
31
- 如果团队已经产出上线包,直接获取其中的 `yxer.exe` 即可,无需本地重新构建。
32
-
33
- 建议将 `yxer.exe` 放到固定目录,例如:
34
-
35
- ```text
36
- C:\tools\yxer\yxer.exe
37
- ```
38
-
39
- 如需全局直接执行,可把所在目录加入 `PATH`。
40
-
41
- ## 3. CLI 安装后初始化
42
-
43
- ```bash
44
- yxer --version
45
- yxer config init --api-key <apiKey>
46
- yxer doctor
47
- ```
48
-
49
- 如需要同时把蚁小二作为链接应用启用:
50
-
51
- ```bash
52
- yxer config init --api-key <apiKey>
53
- ```
54
-
55
- ## 4. Skill 安装
56
-
57
- 先确认 skill 包位置:
58
-
59
- ```bash
60
- yxer skill show
61
- ```
62
-
63
- 如果 CLI 通过 npm 成品包装好且技能文件随包分发,优先直接同步:
64
-
65
- ```bash
66
- yxer skill sync
67
- yxer skill sync --global
68
- ```
69
-
70
- 本地安装:
71
-
72
- ```bash
73
- npx skills add "<repo>\skills\yixiaoer" -y
74
- ```
75
-
76
- 全局安装:
77
-
78
- ```bash
79
- npx skills add "<repo>\skills\yixiaoer" -g -y
80
- ```
81
-
82
- 也可以直接通过 CLI 同步:
83
-
84
- ```bash
85
- yxer skill sync
86
- yxer skill sync --global
87
- ```
88
-
89
- ## 5. 升级方式
90
-
91
- ### 升级 CLI
92
-
93
- 当前仓库推荐重新构建或重新分发新版二进制:
94
-
95
- ```bash
96
- git pull
97
- go build -o bin/yxer.exe .
98
- ```
99
-
100
- ### 升级 Skill
101
-
102
- CLI 升级后,必须同步 skill:
103
-
104
- ```bash
105
- yxer skill sync
106
- ```
107
-
108
- 检查状态:
109
-
110
- ```bash
111
- yxer update --check
112
- yxer doctor
113
- ```
114
-
115
- ## 6. CLI 卸载
116
-
117
- ### 标准卸载
118
-
119
- 如果 `yxer.exe` 是单独分发的二进制,删除可执行文件并移除 `PATH` 即可。
120
-
121
- 例如:
122
-
123
- - 删除 `C:\tools\yxer\yxer.exe`
124
- - 从系统环境变量中移除 `C:\tools\yxer`
125
-
126
- ### 配置清理
127
-
128
- 如需要彻底清理本地配置,可删除以下目录中的配置文件:
129
-
130
- ```text
131
- %USERPROFILE%\.yxer\config.json
132
- %USERPROFILE%\.yxer\skills.stamp
133
- ```
134
-
135
- 说明:
136
-
137
- - `config.json` 保存 `apiKey`、本机发布 `clientId` 和 linked app 状态
138
- - `skills.stamp` 用于记录本地 skill 同步版本
139
-
140
- ### 源码构建场景
141
-
142
- 如果 CLI 是在仓库内构建的,可删除构建产物:
143
-
144
- ```text
145
- <repo>\bin\yxer.exe
146
- ```
147
-
148
- ## 7. Skill 卸载
149
-
150
- ### 推荐做法
151
-
152
- 优先使用你当前 `skills` 工具所提供的卸载命令卸载 `yixiaoer` skill。
153
-
154
- 由于不同宿主环境里的 `skills` 工具版本可能不完全一致,建议先查看帮助:
155
-
156
- ```bash
157
- npx skills --help
158
- ```
159
-
160
- 然后按工具实际支持的删除命令执行。
161
-
162
- ### 手动卸载
163
-
164
- 如果当前环境没有统一的 skill 删除命令,可以直接删除已安装的 `yixiaoer` skill 目录,并清理版本戳:
165
-
166
- ```text
167
- 删除已安装的 yixiaoer 技能目录
168
- 删除 %USERPROFILE%\.yxer\skills.stamp
169
- ```
170
-
171
- 如果你不确定技能安装到了哪里,先执行:
172
-
173
- ```bash
174
- yxer skill show
175
- ```
176
-
177
- 再根据宿主工具实际安装位置清理。
178
-
179
- ## 8. 卸载后的验证
180
-
181
- CLI 卸载后,以下命令应不可再执行:
182
-
183
- ```bash
184
- yxer --version
185
- ```
186
-
187
- Skill 卸载后,建议确认:
188
-
189
- - AI 宿主中不再能读取 `yixiaoer` skill
190
- - `%USERPROFILE%\.yxer\skills.stamp` 已删除或不再指向旧版本
191
-
192
- ## 9. 常见建议
193
-
194
- - 升级时优先“先替换 CLI,再同步 skill”
195
- - 卸载时优先“先卸载 skill,再删除 CLI”
196
- - 如果只是停用能力而不是彻底卸载,保留 `config.json` 会更方便后续恢复