@yixiaoermail/cli 3.2.31 → 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/checksums.txt +6 -6
- package/package.json +1 -1
- package/references/cli/command-reference.md +2 -0
- package/references/domains/install-and-sync.md +6 -0
- package/references/domains/publish.md +6 -2
- package/references/get-topics.md +5 -7
- package/references/platforms/audio/index.md +6 -0
- package/references/platforms/audio/xiaoyuzhou.md +5 -0
- package/references/platforms/audio/ximalaya.md +5 -0
- package/references/platforms/index.md +1 -0
- package/references/platforms/video/kuaishou.md +8 -1
- package/references/workflows/publish-audio.md +12 -0
- package/references/yixiaoer-shared.md +1 -0
- package/schemas/platforms/kuaishou.video.schema.json +1 -1
- package/schemas/platforms/xiaoyuzhou.audio.schema.json +31 -0
- package/schemas/platforms/ximalaya.audio.schema.json +38 -0
- package/skills/yixiaoer/SKILL.md +3 -3
- package/skills/yixiaoer/references/cli/command-reference.md +2 -0
- package/skills/yixiaoer/references/domains/install-and-sync.md +6 -0
- package/skills/yixiaoer/references/domains/publish.md +6 -2
- package/skills/yixiaoer/references/get-topics.md +5 -7
- package/skills/yixiaoer/references/platforms/audio/index.md +6 -0
- package/skills/yixiaoer/references/platforms/audio/xiaoyuzhou.md +5 -0
- package/skills/yixiaoer/references/platforms/audio/ximalaya.md +5 -0
- package/skills/yixiaoer/references/platforms/index.md +1 -0
- package/skills/yixiaoer/references/platforms/video/kuaishou.md +8 -1
- package/skills/yixiaoer/references/workflows/publish-audio.md +12 -0
- package/skills/yixiaoer/references/yixiaoer-shared.md +1 -0
package/checksums.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
62d74a2724e1e39b6535c2f8767e2050e1722297674c3bc5d9a9c7aa84dbdff7 yxer-cli-3.2.33-windows-amd64.zip
|
|
2
|
+
58e89c884b0c9cc91cd1c3c19e7d0b745b0b844d21a591c212a9cb9de5d338c0 yxer-cli-3.2.33-windows-arm64.zip
|
|
3
|
+
1043bb73d4362d1dc35c44e18f8cfba9cfba446ac3da72b31d3f47819e2011e7 yxer-cli-3.2.33-darwin-amd64.tar.gz
|
|
4
|
+
d095c2070d4ec50ddada1f7dc68a444a49d4456938dc7d59ac5d86fddacf5914 yxer-cli-3.2.33-darwin-arm64.tar.gz
|
|
5
|
+
c1f90b950221216403e7d8dd734a04f792a5bbc22cffed7f52cbfbdc091fbd29 yxer-cli-3.2.33-linux-amd64.tar.gz
|
|
6
|
+
7bd7f3bd84a8fa8414d1816321db8542c05f231efbf277a8d2b287b6c9c69b6e yxer-cli-3.2.33-linux-arm64.tar.gz
|
package/package.json
CHANGED
|
@@ -27,6 +27,8 @@ yxer doctor
|
|
|
27
27
|
yxer update [--check] [--global]
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
`yxer update --check` 会查询 npm latest 并返回当前版本、最新版本及是否有更新;普通命令可能在成功响应的 `_notice.update` 中提示升级。首次检查或超过 24 小时后,CLI 会启动一次性后台进程刷新缓存;缓存刷新后,后续普通命令会显示提示。该提示不自动安装,执行 `yxer update` 才会升级 CLI。
|
|
31
|
+
|
|
30
32
|
### 本地配置
|
|
31
33
|
|
|
32
34
|
```bash
|
|
@@ -21,6 +21,12 @@ yxer update
|
|
|
21
21
|
yxer doctor
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
## 自动检测更新
|
|
25
|
+
|
|
26
|
+
每次运行普通 CLI 命令时,yxer 会先读取 `%USERPROFILE%\.yxer\update-state.json` 缓存。缓存缺失或超过 24 小时后,会启动一次性后台进程查询 npm 最新版本并写入缓存;缓存刷新后,后续普通命令会在成功 JSON 响应的 `_notice.update` 中提示运行 `yxer update`。检查不会自动安装,也不会启动常驻服务。
|
|
27
|
+
|
|
28
|
+
`yxer update --check` 会实时查询 npm 最新版本并返回 `currentVersion`、`latestVersion` 和 `updateAvailable`,不安装 CLI、不同步 skill。CI 默认跳过启动检查;设置 `YIXIAOER_CLI_NO_UPDATE_NOTIFIER=1` 可关闭本机提示。
|
|
29
|
+
|
|
24
30
|
## 标准安装流程
|
|
25
31
|
|
|
26
32
|
```bash
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
新建任务先遵循 [标准发布工作流](../workflows/publish-plan.md)。默认使用来源回执和表单维护字段,export 后按 validate、publish --dry-run、publish 执行。用户仅要求检查/修 payload 时停留在校验或预览阶段。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
适用范围:用户要发布视频、图文、文章、音频,或要修订发布 payload、解释字段归属、确认发布通道。
|
|
6
6
|
|
|
7
7
|
**CRITICAL - 只要用户意图落在本域,MUST 先读取下方 workflow,再决定是否执行任何 `prepare`、字段查询、`validate` 或 `publish`。**
|
|
8
8
|
**BLOCKING REQUIREMENT - 必须使用同一份 payload 和同一套通道参数完成 validate、publish --dry-run 和正式 publish。缺账号、字段、资源或动态对象时,先补齐真实来源。**
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
- 图文:[`../workflows/publish-imageText.md`](../workflows/publish-imageText.md)
|
|
25
25
|
- 视频:[`../workflows/publish-video.md`](../workflows/publish-video.md)
|
|
26
26
|
- 文章:[`../workflows/publish-article.md`](../workflows/publish-article.md)
|
|
27
|
+
- 音频:[`../workflows/publish-audio.md`](../workflows/publish-audio.md)
|
|
27
28
|
|
|
28
29
|
## 意图路由
|
|
29
30
|
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
- 视频平台:[`../platforms/video/index.md`](../platforms/video/index.md)
|
|
39
40
|
- 图文平台:[`../platforms/imageText/index.md`](../platforms/imageText/index.md)
|
|
40
41
|
- 文章平台:[`../platforms/article/index.md`](../platforms/article/index.md)
|
|
42
|
+
- 音频平台:[`../platforms/audio/index.md`](../platforms/audio/index.md)
|
|
41
43
|
|
|
42
44
|
只有在 `prepare` / `schema get` 之后,且当前 workflow 无法回答平台差异时,才继续读取具体平台文档。
|
|
43
45
|
|
|
@@ -61,11 +63,13 @@ yxer schema get <platform> <type>
|
|
|
61
63
|
yxer upload --file <file_path>
|
|
62
64
|
yxer upload --url <resource_url>
|
|
63
65
|
yxer query categories <account_id> [--type video|article]
|
|
66
|
+
yxer query topics <account_id> [--type video|article] [--query 关键词]
|
|
64
67
|
yxer query locations <account_id> [--query 关键词] [--next-page TOKEN]
|
|
65
68
|
yxer query music <account_id> [--query 关键词] [--category-id ID] [--category-name 名称] [--next-page TOKEN]
|
|
66
69
|
yxer query music-categories <account_id>
|
|
67
70
|
yxer query goods <account_id> [--query 关键词] [--next-page TOKEN]
|
|
68
|
-
yxer query collections <account_id> [--type video|article] [--next-page TOKEN]
|
|
71
|
+
yxer query collections <account_id> [--type video|article|audio] [--next-page TOKEN]
|
|
72
|
+
yxer query ximalaya-topics <account_id> --category-id ID [--query 关键词] [--next-page TOKEN]
|
|
69
73
|
yxer query drama-tasks <account_id> [--query 关键词]
|
|
70
74
|
yxer query miniapps <account_id> [--query 关键词]
|
|
71
75
|
yxer query syncapps <account_id>
|
package/references/get-topics.md
CHANGED
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
本页是历史别名,兼容旧平台文档中的 `get-topics.md` 引用。
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## CLI 查询方式
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
7
|
+
- 快手视频描述中的话题:使用 `yxer query topics <account_id> --type video --query <关键词>`。此命令与蚁小二 Web 编辑器一致,查询账号的发布话题候选。
|
|
8
|
+
- 结构化挑战对象:使用 `yxer query challenges <account_id> [--query 关键词]`,用于 schema 明确声明 `challenge` 字段的平台。
|
|
9
|
+
- 平台热点/活动话题:按需补读 [`./get-hot-events.md`](./get-hot-events.md) 或对应平台文档。
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
- 如平台提供 `yxer query challenges <account_id> [--query 关键词]`,优先使用该命令
|
|
13
|
-
- 如平台文档明确要求活动对象,再按平台规则使用活动或热点数据
|
|
11
|
+
这些接口语义不同;不要把 `topics` 的描述节点候选当作 `challenge` 字段对象。
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# 小宇宙音频
|
|
2
|
+
|
|
3
|
+
平台表单必填 `title`、`album`。`album` 为发布播客,必须从目标账号的 `yxer query collections <account_id> --type audio` 返回候选中选择。可按需填写 `description`、`statement` 和 `scheduledTime`;定时发布时间须在当前时间 4 小时至 14 天之间。
|
|
4
|
+
|
|
5
|
+
音频资源放在账号表单的 `audio`,封面放 `cover` 和 `coverKey`;参见 [音频发布工作流](../../workflows/publish-audio.md)。
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# 喜马拉雅音频
|
|
2
|
+
|
|
3
|
+
平台表单必填 `title`、`category`;默认分类为娱乐(`id=4`)。`description`、`tags`、`topics`、`album`、`visibleType`、`statement`、`scheduledTime` 按发布需求填写。`album` 从目标账号的 `yxer query collections <account_id> --type audio` 查询;`topics` 从 `yxer query ximalaya-topics <account_id> --category-id <id>` 查询。保存查询返回的完整候选对象,不手写动态 ID。
|
|
4
|
+
|
|
5
|
+
音频资源放在账号表单的 `audio`,封面放 `cover` 和 `coverKey`;参见 [音频发布工作流](../../workflows/publish-audio.md)。
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
| :--- | :--- | :--- | :--- | :--- |
|
|
27
27
|
| `formType` | `string` | **是** | 固定为 `task` | `task` |
|
|
28
28
|
| `title` | `string` | **否** | 视频标题 | - |
|
|
29
|
-
| `description` | `string` | **否** |
|
|
29
|
+
| `description` | `string` | **否** | 视频描述。可直接写 `#话题`;CLI 会按目标账号查询话题候选,并像 Web 编辑器一样将命中的话题序列化为描述内的结构化 `<topic>` 节点。 | - |
|
|
30
30
|
| `declaration` | `number` | **否** | 视频声明:0-不申明, 1-内容为 AI 生成, 2-演绎情节仅供娱乐, 3-个人观点仅供参考 | 0 |
|
|
31
31
|
| `location` | `object` | **否** | 视频位置,使用 `PlatformDataItem` 结构 | - |
|
|
32
32
|
| `visibleType` | `number` | **是** | 可见类型:0-公开, 1-私密, 3-好友可见 | 0 |
|
|
@@ -65,6 +65,13 @@
|
|
|
65
65
|
|
|
66
66
|
## 3. 复杂对象结构说明
|
|
67
67
|
|
|
68
|
+
快手视频话题属于 `description` 内的结构化节点,不是独立的 `challenge` 字段:
|
|
69
|
+
|
|
70
|
+
- Web 编辑器通过账号话题接口搜索候选;用户选中候选后,将完整候选对象序列化到 `<topic>` 节点的 `raw` 属性。
|
|
71
|
+
- CLI 的 `yxer query topics <account_id> --type video --query <关键词>` 使用相同的 `/topics` 接口。
|
|
72
|
+
- 发布描述中出现普通 `#话题` 时,CLI 必须在当前账号候选中精确匹配,并将完整候选对象编码到 `raw` 属性。没有唯一精确候选时停止发布并提示处理,不能静默退化为普通文本。
|
|
73
|
+
- 已从 Web 导出的结构化 `<topic>` 描述应原样保留。不要用通用的话题转换器生成不含候选 `raw` 的标记。
|
|
74
|
+
|
|
68
75
|
### 3.1 PlatformDataItem / Category
|
|
69
76
|
包含 `yixiaoerId`, `yixiaoerName`, `raw` (必须完整透传)。
|
|
70
77
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# 音频发布工作流
|
|
2
|
+
|
|
3
|
+
适用于喜马拉雅、小宇宙。先遵循 [标准发布工作流](./publish-plan.md),再执行本页的字段规则。
|
|
4
|
+
|
|
5
|
+
1. `yxer prepare 喜马拉雅 audio` 或 `yxer prepare 小宇宙 audio`,查看当前字段契约。
|
|
6
|
+
2. `yxer upload --file <音频文件> --auto-meta --record` 上传音频。使用返回的 `key`、`size`、`duration` 填写账号层 `audio`;时长必须大于 0。`--auto-meta` 依赖本机 `ffprobe`。如无法自动提取,使用实际音频时长填写 `duration`(秒)。
|
|
7
|
+
3. 需要封面时上传图片,将完整图片对象放到账号层 `cover`,并将其 `key` 同步到 `coverKey`。
|
|
8
|
+
4. 小宇宙必须先用 `yxer query collections <account_id> --type audio --record` 查询播客,从返回候选中选择,填入平台层 `album`。喜马拉雅可用同一命令查询专辑,按需填写 `album`。喜马拉雅话题用 `yxer query ximalaya-topics <account_id> --category-id <id> --record` 查询。
|
|
9
|
+
5. 用 `yxer publish form start <平台> audio` 建立表单。平台设置位于 `publishArgs.platformForms[平台名]`;账号、音频与封面位于 `publishArgs.accountForms[]`。音频发布不使用 `contentPublishForm`。
|
|
10
|
+
6. 导出 payload 后,以同一文件和通道参数依次执行 `yxer validate`、`yxer publish --dry-run`,获用户授权后才执行正式 `yxer publish`。
|
|
11
|
+
|
|
12
|
+
平台字段:[喜马拉雅](../platforms/audio/ximalaya.md)、[小宇宙](../platforms/audio/xiaoyuzhou.md)。
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "小宇宙音频发布表单",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"required": ["formType", "title", "album"],
|
|
5
|
+
"properties": {
|
|
6
|
+
"formType": {"type": "string", "const": "platform"},
|
|
7
|
+
"title": {"type": "string", "minLength": 1, "maxLength": 60},
|
|
8
|
+
"description": {"type": "string"},
|
|
9
|
+
"album": {
|
|
10
|
+
"type": "object", "required": ["yixiaoerId", "yixiaoerName", "raw"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"yixiaoerId": {"type": "string", "minLength": 1},
|
|
13
|
+
"yixiaoerName": {"type": "string", "minLength": 1},
|
|
14
|
+
"yixiaoerImageUrl": {"type": "string"},
|
|
15
|
+
"raw": {}
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": true
|
|
18
|
+
},
|
|
19
|
+
"statement": {
|
|
20
|
+
"type": "object", "required": ["type"],
|
|
21
|
+
"properties": {"type": {"type": "integer", "enum": [0, 1], "default": 0}},
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
"scheduledTime": {"type": "integer", "minimum": 1000000000000, "maximum": 9999999999999}
|
|
25
|
+
},
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"x-publish-constraints": {
|
|
28
|
+
"scheduledMinDelayMilliseconds": 14400000,
|
|
29
|
+
"scheduledMaxDelayMilliseconds": 1209600000
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "喜马拉雅音频发布表单",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"required": ["formType", "title", "category"],
|
|
5
|
+
"properties": {
|
|
6
|
+
"formType": {"type": "string", "const": "platform"},
|
|
7
|
+
"title": {"type": "string", "minLength": 1, "maxLength": 40},
|
|
8
|
+
"description": {"type": "string"},
|
|
9
|
+
"category": {
|
|
10
|
+
"type": "array", "minItems": 1, "default": [{"id": "4", "text": "娱乐"}],
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object", "required": ["id", "text"],
|
|
13
|
+
"properties": {"id": {"type": "string", "minLength": 1}, "text": {"type": "string", "minLength": 1}},
|
|
14
|
+
"additionalProperties": true
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"album": {
|
|
18
|
+
"type": "object", "required": ["yixiaoerId", "yixiaoerName", "raw"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"yixiaoerId": {"type": "string", "minLength": 1},
|
|
21
|
+
"yixiaoerName": {"type": "string", "minLength": 1},
|
|
22
|
+
"yixiaoerImageUrl": {"type": "string"},
|
|
23
|
+
"raw": {}
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": true
|
|
26
|
+
},
|
|
27
|
+
"tags": {"type": "array", "items": {"type": "string"}},
|
|
28
|
+
"topics": {"type": "array", "items": {"type": "object"}},
|
|
29
|
+
"visibleType": {"type": "integer", "enum": [0, 1, 3], "default": 0},
|
|
30
|
+
"statement": {
|
|
31
|
+
"type": "object", "required": ["type"],
|
|
32
|
+
"properties": {"type": {"type": "integer", "enum": [0, 1], "default": 0}},
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
},
|
|
35
|
+
"scheduledTime": {"type": "integer", "minimum": 1000000000000, "maximum": 9999999999999}
|
|
36
|
+
},
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
}
|
package/skills/yixiaoer/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: yixiaoer
|
|
3
|
-
version: 3.2.
|
|
3
|
+
version: 3.2.33
|
|
4
4
|
description: "通过 yxer CLI 操作蚁小二多平台内容分发:账号查询、资源上传、发布前准备、payload 校验、云发布/本机发布、草稿保存、素材登记、发布记录排查与技能同步。"
|
|
5
5
|
metadata:
|
|
6
6
|
category: "productivity"
|
|
@@ -34,7 +34,7 @@ metadata:
|
|
|
34
34
|
|
|
35
35
|
- 发布与 payload 修订
|
|
36
36
|
- 入口:[`./references/domains/publish.md`](./references/domains/publish.md)
|
|
37
|
-
-
|
|
37
|
+
- 覆盖视频、图文、文章、音频发布,账号选择,云/本机通道判断,payload 来源纪律,动态字段查询,平台差异文档入口。
|
|
38
38
|
- 账号、环境与 skill 同步
|
|
39
39
|
- 入口:[`./references/domains/accounts-and-env.md`](./references/domains/accounts-and-env.md)
|
|
40
40
|
- 覆盖 `doctor`、`config`、账号查询与技能同步。
|
|
@@ -52,7 +52,7 @@ metadata:
|
|
|
52
52
|
|
|
53
53
|
| 用户意图 / 说法 | 先读入口 | 后续动作 |
|
|
54
54
|
| --- | --- | --- |
|
|
55
|
-
|
|
|
55
|
+
| “帮我发一下”“发个抖音/小红书”“发布视频/图文/文章/音频” | [`./references/domains/publish.md`](./references/domains/publish.md) | 按类型进入 workflow,确认真实来源并导出 payload,执行 validate/dry-run/publish;已有 payload 也需确认字段来源 |
|
|
56
56
|
| “先别发,只生成/修一下 payload” | [`./references/domains/publish.md`](./references/domains/publish.md) | 强制读取 payload 来源和类型 workflow,只做字段修订,不擅自正式发布 |
|
|
57
57
|
| “查下账号/环境”“怎么配置 clientId”“看看 skill 要不要同步” | [`./references/domains/accounts-and-env.md`](./references/domains/accounts-and-env.md) | 先做环境检查,再决定是否继续业务流程 |
|
|
58
58
|
| “存草稿”“传素材”“放到素材库里” | [`./references/domains/draft-and-material.md`](./references/domains/draft-and-material.md) | 先区分草稿和素材,再判断是否需要回切发布域 |
|
|
@@ -27,6 +27,8 @@ yxer doctor
|
|
|
27
27
|
yxer update [--check] [--global]
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
`yxer update --check` 会查询 npm latest 并返回当前版本、最新版本及是否有更新;普通命令可能在成功响应的 `_notice.update` 中提示升级。首次检查或超过 24 小时后,CLI 会启动一次性后台进程刷新缓存;缓存刷新后,后续普通命令会显示提示。该提示不自动安装,执行 `yxer update` 才会升级 CLI。
|
|
31
|
+
|
|
30
32
|
### 本地配置
|
|
31
33
|
|
|
32
34
|
```bash
|
|
@@ -21,6 +21,12 @@ yxer update
|
|
|
21
21
|
yxer doctor
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
## 自动检测更新
|
|
25
|
+
|
|
26
|
+
每次运行普通 CLI 命令时,yxer 会先读取 `%USERPROFILE%\.yxer\update-state.json` 缓存。缓存缺失或超过 24 小时后,会启动一次性后台进程查询 npm 最新版本并写入缓存;缓存刷新后,后续普通命令会在成功 JSON 响应的 `_notice.update` 中提示运行 `yxer update`。检查不会自动安装,也不会启动常驻服务。
|
|
27
|
+
|
|
28
|
+
`yxer update --check` 会实时查询 npm 最新版本并返回 `currentVersion`、`latestVersion` 和 `updateAvailable`,不安装 CLI、不同步 skill。CI 默认跳过启动检查;设置 `YIXIAOER_CLI_NO_UPDATE_NOTIFIER=1` 可关闭本机提示。
|
|
29
|
+
|
|
24
30
|
## 标准安装流程
|
|
25
31
|
|
|
26
32
|
```bash
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
新建任务先遵循 [标准发布工作流](../workflows/publish-plan.md)。默认使用来源回执和表单维护字段,export 后按 validate、publish --dry-run、publish 执行。用户仅要求检查/修 payload 时停留在校验或预览阶段。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
适用范围:用户要发布视频、图文、文章、音频,或要修订发布 payload、解释字段归属、确认发布通道。
|
|
6
6
|
|
|
7
7
|
**CRITICAL - 只要用户意图落在本域,MUST 先读取下方 workflow,再决定是否执行任何 `prepare`、字段查询、`validate` 或 `publish`。**
|
|
8
8
|
**BLOCKING REQUIREMENT - 必须使用同一份 payload 和同一套通道参数完成 validate、publish --dry-run 和正式 publish。缺账号、字段、资源或动态对象时,先补齐真实来源。**
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
- 图文:[`../workflows/publish-imageText.md`](../workflows/publish-imageText.md)
|
|
25
25
|
- 视频:[`../workflows/publish-video.md`](../workflows/publish-video.md)
|
|
26
26
|
- 文章:[`../workflows/publish-article.md`](../workflows/publish-article.md)
|
|
27
|
+
- 音频:[`../workflows/publish-audio.md`](../workflows/publish-audio.md)
|
|
27
28
|
|
|
28
29
|
## 意图路由
|
|
29
30
|
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
- 视频平台:[`../platforms/video/index.md`](../platforms/video/index.md)
|
|
39
40
|
- 图文平台:[`../platforms/imageText/index.md`](../platforms/imageText/index.md)
|
|
40
41
|
- 文章平台:[`../platforms/article/index.md`](../platforms/article/index.md)
|
|
42
|
+
- 音频平台:[`../platforms/audio/index.md`](../platforms/audio/index.md)
|
|
41
43
|
|
|
42
44
|
只有在 `prepare` / `schema get` 之后,且当前 workflow 无法回答平台差异时,才继续读取具体平台文档。
|
|
43
45
|
|
|
@@ -61,11 +63,13 @@ yxer schema get <platform> <type>
|
|
|
61
63
|
yxer upload --file <file_path>
|
|
62
64
|
yxer upload --url <resource_url>
|
|
63
65
|
yxer query categories <account_id> [--type video|article]
|
|
66
|
+
yxer query topics <account_id> [--type video|article] [--query 关键词]
|
|
64
67
|
yxer query locations <account_id> [--query 关键词] [--next-page TOKEN]
|
|
65
68
|
yxer query music <account_id> [--query 关键词] [--category-id ID] [--category-name 名称] [--next-page TOKEN]
|
|
66
69
|
yxer query music-categories <account_id>
|
|
67
70
|
yxer query goods <account_id> [--query 关键词] [--next-page TOKEN]
|
|
68
|
-
yxer query collections <account_id> [--type video|article] [--next-page TOKEN]
|
|
71
|
+
yxer query collections <account_id> [--type video|article|audio] [--next-page TOKEN]
|
|
72
|
+
yxer query ximalaya-topics <account_id> --category-id ID [--query 关键词] [--next-page TOKEN]
|
|
69
73
|
yxer query drama-tasks <account_id> [--query 关键词]
|
|
70
74
|
yxer query miniapps <account_id> [--query 关键词]
|
|
71
75
|
yxer query syncapps <account_id>
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
本页是历史别名,兼容旧平台文档中的 `get-topics.md` 引用。
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## CLI 查询方式
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
7
|
+
- 快手视频描述中的话题:使用 `yxer query topics <account_id> --type video --query <关键词>`。此命令与蚁小二 Web 编辑器一致,查询账号的发布话题候选。
|
|
8
|
+
- 结构化挑战对象:使用 `yxer query challenges <account_id> [--query 关键词]`,用于 schema 明确声明 `challenge` 字段的平台。
|
|
9
|
+
- 平台热点/活动话题:按需补读 [`./get-hot-events.md`](./get-hot-events.md) 或对应平台文档。
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
- 如平台提供 `yxer query challenges <account_id> [--query 关键词]`,优先使用该命令
|
|
13
|
-
- 如平台文档明确要求活动对象,再按平台规则使用活动或热点数据
|
|
11
|
+
这些接口语义不同;不要把 `topics` 的描述节点候选当作 `challenge` 字段对象。
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# 小宇宙音频
|
|
2
|
+
|
|
3
|
+
平台表单必填 `title`、`album`。`album` 为发布播客,必须从目标账号的 `yxer query collections <account_id> --type audio` 返回候选中选择。可按需填写 `description`、`statement` 和 `scheduledTime`;定时发布时间须在当前时间 4 小时至 14 天之间。
|
|
4
|
+
|
|
5
|
+
音频资源放在账号表单的 `audio`,封面放 `cover` 和 `coverKey`;参见 [音频发布工作流](../../workflows/publish-audio.md)。
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# 喜马拉雅音频
|
|
2
|
+
|
|
3
|
+
平台表单必填 `title`、`category`;默认分类为娱乐(`id=4`)。`description`、`tags`、`topics`、`album`、`visibleType`、`statement`、`scheduledTime` 按发布需求填写。`album` 从目标账号的 `yxer query collections <account_id> --type audio` 查询;`topics` 从 `yxer query ximalaya-topics <account_id> --category-id <id>` 查询。保存查询返回的完整候选对象,不手写动态 ID。
|
|
4
|
+
|
|
5
|
+
音频资源放在账号表单的 `audio`,封面放 `cover` 和 `coverKey`;参见 [音频发布工作流](../../workflows/publish-audio.md)。
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
| :--- | :--- | :--- | :--- | :--- |
|
|
27
27
|
| `formType` | `string` | **是** | 固定为 `task` | `task` |
|
|
28
28
|
| `title` | `string` | **否** | 视频标题 | - |
|
|
29
|
-
| `description` | `string` | **否** |
|
|
29
|
+
| `description` | `string` | **否** | 视频描述。可直接写 `#话题`;CLI 会按目标账号查询话题候选,并像 Web 编辑器一样将命中的话题序列化为描述内的结构化 `<topic>` 节点。 | - |
|
|
30
30
|
| `declaration` | `number` | **否** | 视频声明:0-不申明, 1-内容为 AI 生成, 2-演绎情节仅供娱乐, 3-个人观点仅供参考 | 0 |
|
|
31
31
|
| `location` | `object` | **否** | 视频位置,使用 `PlatformDataItem` 结构 | - |
|
|
32
32
|
| `visibleType` | `number` | **是** | 可见类型:0-公开, 1-私密, 3-好友可见 | 0 |
|
|
@@ -65,6 +65,13 @@
|
|
|
65
65
|
|
|
66
66
|
## 3. 复杂对象结构说明
|
|
67
67
|
|
|
68
|
+
快手视频话题属于 `description` 内的结构化节点,不是独立的 `challenge` 字段:
|
|
69
|
+
|
|
70
|
+
- Web 编辑器通过账号话题接口搜索候选;用户选中候选后,将完整候选对象序列化到 `<topic>` 节点的 `raw` 属性。
|
|
71
|
+
- CLI 的 `yxer query topics <account_id> --type video --query <关键词>` 使用相同的 `/topics` 接口。
|
|
72
|
+
- 发布描述中出现普通 `#话题` 时,CLI 必须在当前账号候选中精确匹配,并将完整候选对象编码到 `raw` 属性。没有唯一精确候选时停止发布并提示处理,不能静默退化为普通文本。
|
|
73
|
+
- 已从 Web 导出的结构化 `<topic>` 描述应原样保留。不要用通用的话题转换器生成不含候选 `raw` 的标记。
|
|
74
|
+
|
|
68
75
|
### 3.1 PlatformDataItem / Category
|
|
69
76
|
包含 `yixiaoerId`, `yixiaoerName`, `raw` (必须完整透传)。
|
|
70
77
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# 音频发布工作流
|
|
2
|
+
|
|
3
|
+
适用于喜马拉雅、小宇宙。先遵循 [标准发布工作流](./publish-plan.md),再执行本页的字段规则。
|
|
4
|
+
|
|
5
|
+
1. `yxer prepare 喜马拉雅 audio` 或 `yxer prepare 小宇宙 audio`,查看当前字段契约。
|
|
6
|
+
2. `yxer upload --file <音频文件> --auto-meta --record` 上传音频。使用返回的 `key`、`size`、`duration` 填写账号层 `audio`;时长必须大于 0。`--auto-meta` 依赖本机 `ffprobe`。如无法自动提取,使用实际音频时长填写 `duration`(秒)。
|
|
7
|
+
3. 需要封面时上传图片,将完整图片对象放到账号层 `cover`,并将其 `key` 同步到 `coverKey`。
|
|
8
|
+
4. 小宇宙必须先用 `yxer query collections <account_id> --type audio --record` 查询播客,从返回候选中选择,填入平台层 `album`。喜马拉雅可用同一命令查询专辑,按需填写 `album`。喜马拉雅话题用 `yxer query ximalaya-topics <account_id> --category-id <id> --record` 查询。
|
|
9
|
+
5. 用 `yxer publish form start <平台> audio` 建立表单。平台设置位于 `publishArgs.platformForms[平台名]`;账号、音频与封面位于 `publishArgs.accountForms[]`。音频发布不使用 `contentPublishForm`。
|
|
10
|
+
6. 导出 payload 后,以同一文件和通道参数依次执行 `yxer validate`、`yxer publish --dry-run`,获用户授权后才执行正式 `yxer publish`。
|
|
11
|
+
|
|
12
|
+
平台字段:[喜马拉雅](../platforms/audio/ximalaya.md)、[小宇宙](../platforms/audio/xiaoyuzhou.md)。
|