socialdatax-skills 0.2.7 → 0.2.8
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
CHANGED
|
@@ -48,7 +48,7 @@ Common search phrases for this skill package:
|
|
|
48
48
|
- Kuaishou current platform MCP registry name: `com.52choujiang/kuaishou-insights`
|
|
49
49
|
- Kuaishou future platform MCP registry name: `com.socialdatax/kuaishou-insights`
|
|
50
50
|
- Unified MCP registry name: none; this package installs skills and calls explicit platform services.
|
|
51
|
-
- Current public capability version: `0.2.
|
|
51
|
+
- Current public capability version: `0.2.8`
|
|
52
52
|
|
|
53
53
|
## Direct CLI
|
|
54
54
|
|
|
@@ -93,6 +93,8 @@ npx -y socialdatax-skills@latest kuaishou user-posts --profile-url "<profile_url
|
|
|
93
93
|
|
|
94
94
|
The direct CLI prints a JSON envelope with `platform`, `tool`, `arguments`, and `data`.
|
|
95
95
|
|
|
96
|
+
For XHS outputs with a returned `note_url` field, when `note_url` is non-null, preserve it exactly as the full URL, including `xsec_token` query parameters, such as in final answers or display. Do not modify, truncate, redact, normalize, rebuild, or replace it with a link assembled from `note_id`. If `note_url` is null, do not synthesize a public link from `note_id`.
|
|
97
|
+
|
|
96
98
|
For list-style commands, use `--pages <n>` to fetch N pages from the current starting point and `--max-items <n>` to cap the merged `data.items` output. Search commands support `--pages` but not `--all`, because search has no stable complete-result boundary.
|
|
97
99
|
|
|
98
100
|
For comments, replies, creator content lists, and Douyin creator series, use `--all` to continue until the returned `next_page_token` is empty. `--all` has no default item or page cap; add `--max-items <n>` or use `--pages <n>` when you want a bounded run.
|
package/cli.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { dirname, join, resolve } from "node:path";
|
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
|
|
9
9
|
const PACKAGE_NAME = "socialdatax-skills";
|
|
10
|
-
const PACKAGE_VERSION = "0.2.
|
|
10
|
+
const PACKAGE_VERSION = "0.2.8";
|
|
11
11
|
const PACKAGE_SPEC = `${PACKAGE_NAME}@latest`;
|
|
12
12
|
const LOG_PREFIX = `[${PACKAGE_NAME}]`;
|
|
13
13
|
const MIN_NODE_VERSION = "20.18.1";
|
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@ If MCP tools are already available in the current agent, use one of these tools:
|
|
|
87
87
|
## Output Guidance
|
|
88
88
|
|
|
89
89
|
Return factual fields such as title or description, content, author, publish time, interaction counts, images, and media summary when available.
|
|
90
|
-
For XHS detail results,
|
|
90
|
+
For XHS detail results, in every use of a returned `note_url`, such as final answers, display, references, storage, output, or forwarding, preserve it exactly as the full URL, including `xsec_token` query parameters. Do not modify, truncate, redact, mask, normalize, rebuild, or synthesize the URL from `note_id`; if `note_url` is null, show the `note_id` or say that no directly openable full link is available.
|
|
91
91
|
For XHS `note_id`, copy the complete 24-character lowercase hexadecimal ID exactly; do not pass or display only a prefix.
|
|
92
92
|
For Douyin detail, include `content_type` when available.
|
|
93
93
|
For Douyin detail, use `images` for image/text posts; `video` is the platform player resource and may be audio for image/text posts; `music` is the bound music or original-sound asset.
|
|
@@ -158,7 +158,7 @@ Continue Kuaishou pagination only when `next_page_token` is not empty. Pass the
|
|
|
158
158
|
## Output Guidance
|
|
159
159
|
|
|
160
160
|
Summarize visible evidence separately from interpretation. Include useful content IDs, URLs, titles or descriptions, authors, counts, and publish time when the user needs traceability.
|
|
161
|
-
For XHS search results,
|
|
161
|
+
For XHS search results, in every use of a returned `note_url`, such as final answers, display, references, storage, output, or forwarding, preserve it exactly as the full URL, including `xsec_token` query parameters. Do not modify, truncate, redact, mask, normalize, rebuild, or synthesize the URL from `note_id`.
|
|
162
162
|
For XHS `note_id`, copy the complete 24-character lowercase hexadecimal ID exactly; do not pass or display only a prefix.
|
|
163
163
|
For Douyin search results, include `content_type` when the user needs traceability.
|
|
164
164
|
For Douyin image/text search results, use returned `images` and treat `video.media_type="audio"` as an audio player resource rather than a video post.
|
|
@@ -191,6 +191,8 @@ Use numeric `page` only for `xhs_search_notes`. Do not pass `page` to `douyin_se
|
|
|
191
191
|
## Output Guidance
|
|
192
192
|
|
|
193
193
|
For broad research, summarize visible evidence separately from interpretation and organize findings by platform, content angles, audience needs, trend signals, comment themes, creator positioning, and practical next steps.
|
|
194
|
+
For XHS search or detail results, in every use of a returned `note_url`, such as final answers, display, references, storage, output, or forwarding, preserve it exactly as the full URL, including `xsec_token` query parameters. Do not modify, truncate, redact, mask, normalize, rebuild, or synthesize the URL from `note_id`; if detail `note_url` is null, show the `note_id` or say that no directly openable full link is available.
|
|
195
|
+
For XHS `note_id`, copy the complete 24-character lowercase hexadecimal ID exactly; do not pass or display only a prefix.
|
|
194
196
|
For comments, group observed themes before inferring sentiment or demand.
|
|
195
197
|
For creators, separate profile facts from content-list evidence; include Douyin short-drama series facts when the series command is used and Kuaishou work-list evidence when Kuaishou commands are used.
|
|
196
198
|
For hot-search, report ranking signals separately from keyword search results.
|