@vocmarket/voc-skill 0.3.38 → 0.3.39

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "voc-intelligence",
3
3
  "description": "VOC intelligence skills for Claude Code: end-to-end VOC business workflows, Xiaohongshu/Douyin/WeChat Channels collection and trend reports, live social VOC collection, Fmode Doubao image analysis, token/recharge checks, evidence-card outputs, prioritized issue pools, single-problem deep dives, competitor maps, 7-day content plans, VOC-backed speaking script co-creation, boss/operator action plans, and multi-turn memory.",
4
- "version": "0.3.38",
4
+ "version": "0.3.39",
5
5
  "author": {
6
6
  "name": "nkkj-BrainHack"
7
7
  }
@@ -915,7 +915,10 @@
915
915
  "desc": "连续翻页时透传上一次返回的 session_id。"
916
916
  }
917
917
  ],
918
- "responseHint": "返回笔记列表,含 note_id、标题、作者、互动数;翻页递增 page 并透传 search_id/session_id。"
918
+ "responseHint": "返回笔记列表,含 note_id、标题、作者、互动数;翻页递增 page 并透传 search_id/session_id。",
919
+ "deprecated": true,
920
+ "replacedBy": "xiaohongshu.app_v2.search_notes",
921
+ "recommendationPriority": -1000
919
922
  },
920
923
  {
921
924
  "id": "xiaohongshu.note_detail",
@@ -952,7 +955,10 @@
952
955
  "desc": "可选:直接传小红书分享文案/链接,与 note_id 二选一。"
953
956
  }
954
957
  ],
955
- "responseHint": "返回单条笔记对象,含正文、图片/视频、话题、互动数。"
958
+ "responseHint": "返回单条笔记对象,含正文、图片/视频、话题、互动数。",
959
+ "deprecated": true,
960
+ "replacedBy": "xiaohongshu.app_v2.get_image_note_detail",
961
+ "recommendationPriority": -1000
956
962
  },
957
963
  {
958
964
  "id": "xiaohongshu.note_comments",
@@ -997,7 +1003,8 @@
997
1003
  "desc": "可选安全令牌,来自 search_notes 返回的 note.xsec_token;部分笔记风控需要。"
998
1004
  }
999
1005
  ],
1000
- "responseHint": "返回评论列表,含 comment_id、文本、点赞、子评论数;翻页用返回的游标。"
1006
+ "responseHint": "返回评论列表,含 comment_id、文本、点赞、子评论数;翻页用返回的游标。",
1007
+ "recommendationPriority": 80
1001
1008
  },
1002
1009
  {
1003
1010
  "id": "xiaohongshu.sub_comments",
@@ -1043,7 +1050,8 @@
1043
1050
  "desc": "分页游标,首页留空,翻页用上一次返回的 start。"
1044
1051
  }
1045
1052
  ],
1046
- "responseHint": "返回某条评论的回复列表;翻页用返回的 start。"
1053
+ "responseHint": "返回某条评论的回复列表;翻页用返回的 start。",
1054
+ "recommendationPriority": 70
1047
1055
  },
1048
1056
  {
1049
1057
  "id": "xiaohongshu.user_info",
@@ -1074,7 +1082,10 @@
1074
1082
  "desc": "用户 id(24 位 hex),来自 search_notes 返回的 note.user.userid;注意不是数字 red_id。"
1075
1083
  }
1076
1084
  ],
1077
- "responseHint": "返回用户资料对象,含粉丝数、获赞收藏、简介。"
1085
+ "responseHint": "返回用户资料对象,含粉丝数、获赞收藏、简介。",
1086
+ "deprecated": true,
1087
+ "replacedBy": "xiaohongshu.app_v2.get_user_info",
1088
+ "recommendationPriority": -1000
1078
1089
  },
1079
1090
  {
1080
1091
  "id": "xiaohongshu.user_notes",
@@ -1113,7 +1124,10 @@
1113
1124
  "desc": "分页游标,首页留空,翻页用上一次返回的 cursor。"
1114
1125
  }
1115
1126
  ],
1116
- "responseHint": "返回该用户的笔记列表;翻页用返回的 cursor。"
1127
+ "responseHint": "返回该用户的笔记列表;翻页用返回的 cursor。",
1128
+ "deprecated": true,
1129
+ "replacedBy": "xiaohongshu.app_v2.get_user_posted_notes",
1130
+ "recommendationPriority": -1000
1117
1131
  },
1118
1132
  {
1119
1133
  "id": "xiaohongshu.topic_notes",
@@ -1190,7 +1204,10 @@
1190
1204
  "desc": "翻页透传上一次返回的 session_id。"
1191
1205
  }
1192
1206
  ],
1193
- "responseHint": "返回话题下笔记列表;翻页透传 last_note_ct/last_note_id/cursor_score/session_id。"
1207
+ "responseHint": "返回话题下笔记列表;翻页透传 last_note_ct/last_note_id/cursor_score/session_id。",
1208
+ "deprecated": true,
1209
+ "replacedBy": "xiaohongshu.app_v2.get_topic_feed",
1210
+ "recommendationPriority": -1000
1194
1211
  },
1195
1212
  {
1196
1213
  "id": "xiaohongshu.search_products",
@@ -1276,7 +1293,10 @@
1276
1293
  "desc": "连续翻页时透传上一次返回的 session_id。"
1277
1294
  }
1278
1295
  ],
1279
- "responseHint": "返回商品列表,含标题、价格、销量、店铺。"
1296
+ "responseHint": "返回商品列表,含标题、价格、销量、店铺。",
1297
+ "deprecated": true,
1298
+ "replacedBy": "xiaohongshu.app_v2.search_products",
1299
+ "recommendationPriority": -1000
1280
1300
  },
1281
1301
  {
1282
1302
  "id": "tiktok.web.fetch_post_detail",
@@ -10405,7 +10425,8 @@
10405
10425
  "app",
10406
10426
  "v2"
10407
10427
  ],
10408
- "requiredParams": []
10428
+ "requiredParams": [],
10429
+ "recommendationPriority": 90
10409
10430
  },
10410
10431
  {
10411
10432
  "id": "xiaohongshu.app_v2.get_video_note_detail",
@@ -10423,7 +10444,8 @@
10423
10444
  "app",
10424
10445
  "v2"
10425
10446
  ],
10426
- "requiredParams": []
10447
+ "requiredParams": [],
10448
+ "recommendationPriority": 90
10427
10449
  },
10428
10450
  {
10429
10451
  "id": "xiaohongshu.app_v2.get_note_comments",
@@ -10479,7 +10501,8 @@
10479
10501
  "app",
10480
10502
  "v2"
10481
10503
  ],
10482
- "requiredParams": []
10504
+ "requiredParams": [],
10505
+ "recommendationPriority": 60
10483
10506
  },
10484
10507
  {
10485
10508
  "id": "xiaohongshu.app_v2.get_user_posted_notes",
@@ -10497,7 +10520,8 @@
10497
10520
  "app",
10498
10521
  "v2"
10499
10522
  ],
10500
- "requiredParams": []
10523
+ "requiredParams": [],
10524
+ "recommendationPriority": 50
10501
10525
  },
10502
10526
  {
10503
10527
  "id": "xiaohongshu.app_v2.get_user_faved_notes",
@@ -10535,7 +10559,8 @@
10535
10559
  ],
10536
10560
  "requiredParams": [
10537
10561
  "keyword"
10538
- ]
10562
+ ],
10563
+ "recommendationPriority": 100
10539
10564
  },
10540
10565
  {
10541
10566
  "id": "xiaohongshu.app_v2.search_users",
@@ -10595,7 +10620,8 @@
10595
10620
  ],
10596
10621
  "requiredParams": [
10597
10622
  "keyword"
10598
- ]
10623
+ ],
10624
+ "recommendationPriority": 30
10599
10625
  },
10600
10626
  {
10601
10627
  "id": "xiaohongshu.app_v2.search_groups",
@@ -10715,7 +10741,8 @@
10715
10741
  ],
10716
10742
  "requiredParams": [
10717
10743
  "page_id"
10718
- ]
10744
+ ],
10745
+ "recommendationPriority": 40
10719
10746
  },
10720
10747
  {
10721
10748
  "id": "xiaohongshu.app_v2.get_topic_feed",
@@ -10735,7 +10762,8 @@
10735
10762
  ],
10736
10763
  "requiredParams": [
10737
10764
  "page_id"
10738
- ]
10765
+ ],
10766
+ "recommendationPriority": 40
10739
10767
  },
10740
10768
  {
10741
10769
  "id": "xiaohongshu.app_v2.get_creator_inspiration_feed",
package/mcp/src/server.js CHANGED
@@ -66,7 +66,7 @@ function normalizeToolResult(result = {}) {
66
66
  function createServer() {
67
67
  const server = new McpServer({
68
68
  name: 'voc-intelligence',
69
- version: '0.3.38'
69
+ version: '0.3.39'
70
70
  });
71
71
 
72
72
  server.registerTool(
@@ -37,7 +37,7 @@ async function searchVocApis(input = {}) {
37
37
  const matches = (query || input.platform || input.tag)
38
38
  ? searchEndpoints({ query, platform: input.platform, tag: input.tag, limit: input.limit || 20 })
39
39
  : listEndpoints();
40
- const results = matches.map(summarizeEndpoint);
40
+ const results = matches.map(summarizeEndpoint).filter(item => !item.deprecated);
41
41
  const lines = [
42
42
  '## VOC 转发接口清单',
43
43
  '',
@@ -80,6 +80,12 @@ async function getVocApiDoc(input = {}) {
80
80
  });
81
81
  }
82
82
  endpoint = hydrateEndpoint(endpoint);
83
+ if (endpoint.deprecated) {
84
+ const replacement = endpoint.replacedBy ? `请改用 ${endpoint.replacedBy}。` : '请用 voc_api_search 改选现用接口。';
85
+ return errorResult(`接口「${endpoint.id}」已下架。${replacement}`, {
86
+ data: { endpoint: summarizeEndpoint(endpoint) }
87
+ });
88
+ }
83
89
  const paramLines = (endpoint.params || []).map(p => {
84
90
  const flag = p.required ? '必填' : '可选';
85
91
  const def = p.default !== undefined ? `,默认 ${JSON.stringify(p.default)}` : '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocmarket/voc-skill",
3
- "version": "0.3.38",
3
+ "version": "0.3.39",
4
4
  "description": "Claude Code VOC intelligence skills for Xiaohongshu, Douyin and WeChat Channels trend/content collection, live social VOC, Fmode image analysis, single-issue deep dives, boss/operator action plans, and multi-turn memory.",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-voc-intelligence",
3
- "version": "0.3.38",
3
+ "version": "0.3.39",
4
4
  "capabilities": {
5
5
  "summary": "三类情报源同源接入:①社媒内容(含抖音/小红书/微信视频号等)②国内电商+创作者情报 ③海外选品。统一 search→doc→call、鉴权计费一致。",
6
6
  "channels": [
@@ -46,6 +46,25 @@ VOC 后端是一个**通用转发网关**(`https://server.fmode.cn/api/voc-soc
46
46
  4. `voc_api_call` 用真实关键词调用;翻页/拉评论时把上一次返回里的 cursor / id 透传进下一次调用。
47
47
  5. 用返回数据继续后续分析(可交给 voc-issue-pool、voc-content-plan 等技能)。
48
48
 
49
+ ## 小红书现用接口(V2)
50
+
51
+ 小红书社媒采集只走下面这些健康的 V2 接口。`voc_api_search` 会把它们排在前面;标了 `deprecated` 的旧接口不要调用,也不要在给用户的说明里提到。
52
+
53
+ | 用途 | 接口 id | proxyPath | 必填 |
54
+ |---|---|---|---|
55
+ | 笔记搜索 | `xiaohongshu.app_v2.search_notes` | `xiaohongshu/app_v2/search_notes` | `keyword` |
56
+ | 图文详情 | `xiaohongshu.app_v2.get_image_note_detail` | `xiaohongshu/app_v2/get_image_note_detail` | `note_id` 或 `share_text` |
57
+ | 视频详情 | `xiaohongshu.app_v2.get_video_note_detail` | `xiaohongshu/app_v2/get_video_note_detail` | `note_id` 或 `share_text` |
58
+ | 一级评论 | `xiaohongshu.note_comments` | `xiaohongshu/app_v2/get_note_comments` | `note_id` |
59
+ | 楼中楼 | `xiaohongshu.sub_comments` | `xiaohongshu/app_v2/get_note_sub_comments` | `note_id` + `comment_id` |
60
+ | 用户资料 | `xiaohongshu.app_v2.get_user_info` | `xiaohongshu/app_v2/get_user_info` | `user_id` |
61
+ | 用户笔记 | `xiaohongshu.app_v2.get_user_posted_notes` | `xiaohongshu/app_v2/get_user_posted_notes` | `user_id` |
62
+ | 话题详情 | `xiaohongshu.app_v2.get_topic_info` | `xiaohongshu/app_v2/get_topic_info` | `page_id` |
63
+ | 话题笔记 | `xiaohongshu.app_v2.get_topic_feed` | `xiaohongshu/app_v2/get_topic_feed` | `page_id` |
64
+ | 商品搜索 | `xiaohongshu.app_v2.search_products` | `xiaohongshu/app_v2/search_products` | `keyword` |
65
+
66
+ 搜索先用 `xiaohongshu.app_v2.search_notes` 拿 `note_id`,再按笔记类型选图文或视频详情,评论和楼中楼继续用上表两条。不确定类型时先试视频详情,空结果再试图文详情。具体参数用 `voc_api_doc` 读取,不要手写旧路径。
67
+
49
68
  ## 创作者侧情报(channel=ecommerce)
50
69
 
51
70
  抖音星图 / 小红书蒲公英(PGY)的创作者数据是 VOC 在**创作者生态**维度的情报源——它服务的是 VOC 一贯的「内容战略、竞对理解、受众洞察、选题与脚本」闭环,而**不是**「替用户挑达人投广告」。同一套数据用来回答这些 VOC 问题:
@@ -16,10 +16,10 @@ live 模式默认保持小规模:
16
16
 
17
17
  ## 接口优先级
18
18
 
19
- live 采集走可用链路,不再依赖已不稳定的旧 App 搜索/详情:
19
+ live 采集只走健康的 V2:
20
20
 
21
- - 搜索:`app_v2/search_notes` → 失败/空结果再降级 `web_v3/fetch_search_notes`
22
- - 详情:优先 `app_v2/get_image_note_detail` / `app_v2/get_video_note_detail`,再回退 `app/get_note_info`
21
+ - 搜索:`app_v2/search_notes`,空结果再降级 `web_v3/fetch_search_notes`
22
+ - 详情:视频笔记用 `app_v2/get_video_note_detail`,图文笔记用 `app_v2/get_image_note_detail`
23
23
  - 评论:`app_v2/get_note_comments`
24
24
 
25
25
  ## 媒体持久化