@yixiaoermail/cli 3.2.9 → 3.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checksums.txt +6 -6
- package/package.json +1 -1
- package/references/cli/command-design.md +1 -0
- package/references/cli/command-reference.md +24 -4
- package/references/domains/accounts-and-env.md +3 -0
- package/references/domains/publish.md +3 -2
- package/references/domains/troubleshooting.md +4 -0
- package/references/get-account-increments.md +55 -0
- package/references/get-drama-tasks.md +43 -0
- package/references/get-goods.md +3 -1
- package/references/get-publish-categories.md +6 -3
- package/references/keyword-reference.md +1 -0
- package/references/legacy/capabilities.md +1 -0
- package/references/platforms/imageText/index.md +5 -3
- package/references/platforms/imageText/weixingongzhonghao.md +90 -0
- package/references/platforms/video/duoduoshipin.md +14 -1
- package/references/platforms/video/index.md +1 -1
- package/references/platforms/video/shipinhao.md +31 -5
- package/references/platforms/video/souhuhao.md +21 -5
- package/references/protocols/confirmation.md +1 -0
- package/references/protocols/error-recovery.md +1 -0
- package/references/protocols/provenance.md +1 -0
- package/references/workflows/common-rules.md +8 -7
- package/references/workflows/data-accuracy.md +8 -6
- package/references/workflows/payload-sourcing.md +3 -1
- package/references/workflows/publish-article.md +14 -9
- package/references/workflows/publish-imageText.md +5 -2
- package/references/workflows/publish-troubleshooting.md +5 -2
- package/references/workflows/publish-video.md +4 -2
- package/schemas/platforms/duoduoshipin.video.schema.json +9 -5
- package/schemas/platforms/shipinhao.video.schema.json +22 -1
- package/schemas/platforms/weixin.account.imageText.schema.json +118 -0
- package/skills/yixiaoer/SKILL.md +5 -5
- package/skills/yixiaoer/references/cli/command-design.md +1 -0
- package/skills/yixiaoer/references/cli/command-reference.md +24 -4
- package/skills/yixiaoer/references/domains/accounts-and-env.md +3 -0
- package/skills/yixiaoer/references/domains/publish.md +3 -2
- package/skills/yixiaoer/references/domains/troubleshooting.md +4 -0
- package/skills/yixiaoer/references/get-account-increments.md +55 -0
- package/skills/yixiaoer/references/get-drama-tasks.md +43 -0
- package/skills/yixiaoer/references/get-goods.md +3 -1
- package/skills/yixiaoer/references/get-publish-categories.md +6 -3
- package/skills/yixiaoer/references/keyword-reference.md +1 -0
- package/skills/yixiaoer/references/legacy/capabilities.md +1 -0
- package/skills/yixiaoer/references/platforms/imageText/index.md +5 -3
- package/skills/yixiaoer/references/platforms/imageText/weixingongzhonghao.md +90 -0
- package/skills/yixiaoer/references/platforms/video/duoduoshipin.md +14 -1
- package/skills/yixiaoer/references/platforms/video/index.md +1 -1
- package/skills/yixiaoer/references/platforms/video/shipinhao.md +31 -5
- package/skills/yixiaoer/references/platforms/video/souhuhao.md +21 -5
- package/skills/yixiaoer/references/protocols/confirmation.md +1 -0
- package/skills/yixiaoer/references/protocols/error-recovery.md +1 -0
- package/skills/yixiaoer/references/protocols/provenance.md +1 -0
- package/skills/yixiaoer/references/workflows/common-rules.md +8 -7
- package/skills/yixiaoer/references/workflows/data-accuracy.md +8 -6
- package/skills/yixiaoer/references/workflows/payload-sourcing.md +3 -1
- package/skills/yixiaoer/references/workflows/publish-article.md +14 -9
- package/skills/yixiaoer/references/workflows/publish-imageText.md +5 -2
- package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +5 -2
- package/skills/yixiaoer/references/workflows/publish-video.md +4 -2
|
@@ -28,18 +28,20 @@ yxer schema get <platform> article
|
|
|
28
28
|
2. 获取前置数据:`yxer prepare <platform> article`
|
|
29
29
|
3. 先获取字段视图:`yxer schema fields <platform> article`;需要 payload 骨架时再执行 `yxer schema get <platform> article`
|
|
30
30
|
4. 上传封面:`yxer upload <封面路径或URL>`
|
|
31
|
-
5.
|
|
32
|
-
6.
|
|
33
|
-
7.
|
|
34
|
-
8.
|
|
35
|
-
9.
|
|
36
|
-
10.
|
|
31
|
+
5. 如果正文来自 Markdown,保留图片相对路径,并在后续命令中传入 `--content-file <article.md>`
|
|
32
|
+
6. 如正文含图片且不使用 `--content-file`,再逐张上传并替换引用
|
|
33
|
+
7. 按需查询分类、位置、话题
|
|
34
|
+
8. 根据前置数据、schema 和字段来源纪律填写 `payload.json`
|
|
35
|
+
9. 查阅对应平台文档:`../platforms/article/`
|
|
36
|
+
10. 执行校验:`yxer validate <platform> article <payload.json> [--content-file <article.md>]`
|
|
37
|
+
11. 正式发布:`yxer publish article <platform> <payload.json> [--content-file <article.md>]`
|
|
37
38
|
|
|
38
39
|
## 关键规则
|
|
39
40
|
|
|
40
41
|
- 发布前必须确认目标账号 `status=1`
|
|
41
42
|
- 文章必须有封面,未提供时必须补问
|
|
42
|
-
-
|
|
43
|
+
- 文章正文如果使用 Markdown 文件,推荐通过 `--content-file` 让 CLI 统一渲染、解析和处理图片;本地图片按 Markdown 文件目录解析,远程图片会先转存到 `material-library`,再把最终可访问 URL 写入 `publishArgs.content`
|
|
44
|
+
- 不使用 `--content-file` 时,文章正文中的图片仍不能直接引用外部 URL,必须先上传并替换引用
|
|
43
45
|
- 话题/标签必须直接按 `../topic-tags.md` 的目标格式传入;有 `topics` 就直接传结构化对象,不要依赖 CLI 改写正文
|
|
44
46
|
- 文章分类通常必须选到叶子节点
|
|
45
47
|
- 发布前先看 `prepare` 和 `schema fields` 返回的字段;只有要确认完整骨架时再看 `schema get`
|
|
@@ -52,10 +54,13 @@ yxer schema get <platform> article
|
|
|
52
54
|
## 发布示例
|
|
53
55
|
|
|
54
56
|
```bash
|
|
55
|
-
yxer validate 知乎 article .\payload.json
|
|
56
|
-
yxer publish article 知乎 .\payload.json
|
|
57
|
+
yxer validate 知乎 article .\payload.json --content-file .\文章.md
|
|
58
|
+
yxer publish article 知乎 .\payload.json --content-file .\文章.md --dry-run
|
|
59
|
+
yxer publish article 知乎 .\payload.json --content-file .\文章.md
|
|
57
60
|
```
|
|
58
61
|
|
|
62
|
+
`--content-file` 支持普通 Markdown 图片(``)、Obsidian 图片(`![[image.jpg]]`)、HTML 图片(`<img src="image.jpg">`)和远程图片 URL。`validate` 与 `dry-run` 只读取和预览,不上传;正式 `publish` 才会上传图片并回填稳定 URL。`payload.json` 仍需提供账号、封面和其他平台字段。
|
|
63
|
+
|
|
59
64
|
## 本机发布示例
|
|
60
65
|
|
|
61
66
|
```bash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 图文发布工作流
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> 适用范围:抖音图文、小红书笔记、知乎想法、快手图文、微博图文、微信视频号图文、微信公众号图文等。
|
|
4
4
|
> 阅读本文档前,请先阅读 [common-rules.md](./common-rules.md)。
|
|
5
5
|
|
|
6
6
|
---
|
|
@@ -32,7 +32,8 @@ yxer schema get <platform> imageText
|
|
|
32
32
|
6. 根据前置数据、schema 和字段来源纪律填写 `payload.json`
|
|
33
33
|
7. 查阅对应平台文档:`../platforms/imageText/`
|
|
34
34
|
8. 执行校验:`yxer validate <platform> imageText <payload.json>`
|
|
35
|
-
9.
|
|
35
|
+
9. 先执行发布 dry-run:`yxer publish imageText <platform> <payload.json> --dry-run`
|
|
36
|
+
10. 确认请求体后再执行正式发布:`yxer publish imageText <platform> <payload.json>`
|
|
36
37
|
|
|
37
38
|
## 关键规则
|
|
38
39
|
|
|
@@ -62,3 +63,5 @@ yxer publish imageText 抖音 .\payload.json --publish-channel local --client-id
|
|
|
62
63
|
|
|
63
64
|
- 索引:`../platforms/imageText/index.md`
|
|
64
65
|
- 平台细节:`../platforms/imageText/*.md`
|
|
66
|
+
|
|
67
|
+
微信公众号图文的专属字段和默认值见 [`../platforms/imageText/weixingongzhonghao.md`](../platforms/imageText/weixingongzhonghao.md)。微信公众号文章仍走 `publish article` 的独立工作流。
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
1. 先确认问题属于哪一类:环境、账号、payload、资源、通道、平台返回错误
|
|
14
14
|
2. 执行 `yxer query records [--platform P] [--limit N] [--status S] [--json]`
|
|
15
|
-
3.
|
|
16
|
-
4.
|
|
15
|
+
3. 需要删除单个平台已发布作品时,执行 `yxer publish delete preview <task_set_id>` 查看作品信息,再用 `yxer publish delete from-record <task_set_id> --index N --dry-run` 按序号确认目标。
|
|
16
|
+
4. 结合最近一次 `validate` / `publish` 输出定位错误阶段
|
|
17
|
+
5. 回到对应 workflow:
|
|
17
18
|
- 账号问题:[`account-selection.md`](./account-selection.md)
|
|
18
19
|
- 通道问题:[`local-vs-cloud.md`](./local-vs-cloud.md)
|
|
19
20
|
- payload 结构问题:[`payload-sourcing.md`](./payload-sourcing.md)
|
|
@@ -39,6 +40,8 @@
|
|
|
39
40
|
|
|
40
41
|
```bash
|
|
41
42
|
yxer query records --platform 抖音 --limit 10 --json
|
|
43
|
+
yxer publish delete preview <task_set_id>
|
|
44
|
+
yxer publish delete from-record <task_set_id> --index 1 --dry-run
|
|
42
45
|
yxer doctor
|
|
43
46
|
yxer validate 抖音 video .\payload.json
|
|
44
47
|
```
|
|
@@ -29,7 +29,7 @@ yxer schema get <platform> video
|
|
|
29
29
|
3. 先获取字段视图:`yxer schema fields <platform> video`;需要 payload 骨架时再执行 `yxer schema get <platform> video`
|
|
30
30
|
4. 上传视频:`yxer upload <视频路径或URL>`
|
|
31
31
|
5. 上传封面:`yxer upload <封面路径或URL>`;视频号封面必须使用 `yxer upload <封面路径或URL> --platform 视频号 --usage cover`,超 512KB 时由 CLI 内部压缩
|
|
32
|
-
6.
|
|
32
|
+
6. 按需查询分类、位置、音乐、合集、剧集、话题、商品;视频号剧集使用 `yxer query drama-tasks <account_id> [--query 关键词] --json`
|
|
33
33
|
7. 根据前置数据、schema 和字段来源纪律填写 `payload.json`
|
|
34
34
|
8. 查阅对应平台文档:`../platforms/video/`
|
|
35
35
|
9. 执行校验:`yxer validate <platform> video <payload.json>`
|
|
@@ -40,8 +40,10 @@ yxer schema get <platform> video
|
|
|
40
40
|
- 发布前必须确认目标账号 `status=1`
|
|
41
41
|
- 视频只能有一个,封面必须单独上传
|
|
42
42
|
- 用户未提供封面时,必须补问,不要自动截帧
|
|
43
|
-
-
|
|
43
|
+
- 可选复杂对象必须通过查询命令取得完整对象后再填入;多多视频 `shopping_cart.goods_id` 由用户输入,不使用商品查询对象,`source` 固定为 `pdd`
|
|
44
|
+
- 视频号 `drama` 必须通过当前账号的 `drama-tasks` 查询并使用 `publish form choose` 选择;对象只保留 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不要求 `raw`。`collection` 仍按合集规则使用完整 `raw`。
|
|
44
45
|
- 话题/标签必须直接按 `../topic-tags.md` 的目标格式传入;不要依赖 CLI 从 `description` 自动改写
|
|
46
|
+
- 视频号原创声明必须按平台文档映射:用户说“勾选原创”“声明原创”或“开启原创”时,在 `publishArgs.accountForms[].contentPublishForm` 写 `createType: 1`;未提及或明确关闭/转载时写 `createType: 2`。不要把 `pubType` 当作原创开关
|
|
45
47
|
- 发布前先看 `prepare` 和 `schema fields` 返回的字段;只有要确认完整骨架时再看 `schema get`
|
|
46
48
|
- `payload.json` 必须使用统一标准结构:顶层 `publishArgs`,业务字段放在 `publishArgs.accountForms[].contentPublishForm`
|
|
47
49
|
- 用户明确要求本机发布时,必须显式传 `--publish-channel local` 和 `--client-id`
|