siluzan-cso-cli 1.1.47-beta.1 → 1.1.47-beta.2

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
@@ -54,7 +54,7 @@ siluzan-cso init -d /path/to/skills # 写入自定义目录
54
54
  siluzan-cso init --force # 强制覆盖已存在文件
55
55
  ```
56
56
 
57
- > **注意**:当前为测试版(1.1.47-beta.1),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-cso-cli`。
57
+ > **注意**:当前为测试版(1.1.47-beta.2),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-cso-cli`。
58
58
 
59
59
  | 助手 | 建议 `--ai` |
60
60
  | ----------------------- | ------------------------------------ |
package/dist/index.js CHANGED
@@ -4383,8 +4383,10 @@ async function runListAccounts(options) {
4383
4383
  { key: "mediaCustomerId", header: "\u8D26\u53F7ID" },
4384
4384
  { key: "state", header: "\u72B6\u6001" },
4385
4385
  { key: "fansCount", header: "\u7C89\u4E1D\u6570" },
4386
- { key: "videoCount", header: "\u4F5C\u54C1\u6570" },
4386
+ { key: "videoCount", header: "\u89C6\u9891\u6570" },
4387
4387
  { key: "playCount", header: "\u64AD\u653E\u6570" },
4388
+ { key: "postCount", header: "\u5E16\u6587\u6570" },
4389
+ { key: "postViewCount", header: "\u5E16\u6587\u9605\u8BFB" },
4388
4390
  { key: "commentCount", header: "\u8BC4\u8BBA\u6570" },
4389
4391
  { key: "diggCount", header: "\u83B7\u8D5E\u6570" },
4390
4392
  { key: "lastAuthTime", header: "\u4E0A\u6B21\u6388\u6743" },
@@ -4404,6 +4406,8 @@ async function runListAccounts(options) {
4404
4406
  fansCount: formatCount(ov?.fansCount),
4405
4407
  videoCount: formatCount(ov?.videoCount),
4406
4408
  playCount: formatCount(ov?.playCount),
4409
+ postCount: formatCount(ov?.postCount),
4410
+ postViewCount: formatCount(ov?.postViewCount),
4407
4411
  commentCount: formatCount(ov?.commentCount),
4408
4412
  diggCount: formatCount(ov?.diggCount),
4409
4413
  lastAuthTime: formatDate(a.lastAuthorizationTime),
@@ -7216,6 +7220,85 @@ function accountRow(account, content, mediaType) {
7216
7220
  return row;
7217
7221
  }
7218
7222
 
7223
+ // src/commands/report/overview.ts
7224
+ function buildOverviewQuery(options) {
7225
+ const scope = resolvePeriodScope(options.media, Boolean(options.domestic));
7226
+ if (scope.error) return { query: {}, error: scope.error };
7227
+ const query = {
7228
+ mediaGroup: scope.csoPlatformType === 1 ? "1" : "0"
7229
+ };
7230
+ if (scope.mediaType) query.mediaType = scope.mediaType;
7231
+ if (options.name?.trim()) query.mediaCustomerName = options.name.trim();
7232
+ const maids = parseMediaCustomerIds(options.maids);
7233
+ if (maids.length > 0) query.mediaCustomerId = maids.join(",");
7234
+ if (options.state === "normal") query.state = "false";
7235
+ if (options.state === "abnormal") query.state = "true";
7236
+ return { query };
7237
+ }
7238
+ function showCount(value) {
7239
+ if (value == null) return "\u2014";
7240
+ if (value >= 1e4) return `${(value / 1e4).toFixed(1)}\u4E07`;
7241
+ return String(value);
7242
+ }
7243
+ async function runReportOverview(options) {
7244
+ const built = buildOverviewQuery(options);
7245
+ if (built.error) exitWithError(built.error);
7246
+ const config = loadConfig(options.token);
7247
+ let data;
7248
+ try {
7249
+ const url = `${config.apiBaseUrl}/query/media-account/v1/getOverviewSummary?${createQueryString(built.query)}`;
7250
+ const res = await apiFetch2(url, config, {}, Boolean(options.verbose));
7251
+ if (res.code !== 1 || !res.data) throw new Error(res.message || "\u670D\u52A1\u7AEF\u8FD4\u56DE\u5F02\u5E38");
7252
+ data = res.data;
7253
+ } catch (error) {
7254
+ exitWithError(`\u67E5\u8BE2\u8D26\u53F7\u603B\u89C8\u5931\u8D25\uFF1A${error.message}`);
7255
+ }
7256
+ const payload = {
7257
+ kind: "account-overview",
7258
+ note: "\u5F53\u524D\u7B5B\u9009\u4E0B\u5168\u90E8\u8D26\u53F7\u7684\u7D2F\u8BA1\u603B\u6570\u3002\u89C6\u9891\u548C\u56FE\u6587\u5206\u5F00\u3002\u4E0D\u662F\u672C\u671F\u589E\u91CF\uFF0C\u4E5F\u4E0D\u662F\u8D26\u53F7\u5217\u8868\u5F53\u524D\u9875\u76F8\u52A0\u3002",
7259
+ query: built.query,
7260
+ summary: data
7261
+ };
7262
+ if (options.jsonOut) {
7263
+ await emitCliJsonOrSnapshot(
7264
+ { jsonOut: options.jsonOut },
7265
+ {
7266
+ section: "report-overview",
7267
+ commandLabel: "report overview",
7268
+ payload,
7269
+ commandHint: built.query.mediaType,
7270
+ idSuffix: built.query.mediaType
7271
+ }
7272
+ );
7273
+ return;
7274
+ }
7275
+ const video = data?.video;
7276
+ const post = data?.post;
7277
+ const rows = [
7278
+ { name: "\u8D26\u53F7\u6570", value: showCount(data?.accountCount) },
7279
+ { name: "\u603B\u7C89\u4E1D\u6570", value: showCount(data?.fansCount) },
7280
+ { name: "\u603B\u89C6\u9891\u6570", value: showCount(video?.count) },
7281
+ { name: "\u603B\u64AD\u653E\u91CF", value: showCount(video?.playCount) },
7282
+ { name: "\u89C6\u9891\u83B7\u8D5E\u6570", value: showCount(video?.diggCount) },
7283
+ { name: "\u89C6\u9891\u8BC4\u8BBA\u6570", value: showCount(video?.commentCount) },
7284
+ { name: "\u89C6\u9891\u5206\u4EAB\u6570", value: showCount(video?.shareCount) },
7285
+ { name: "\u603B\u5E16\u6587\u6570", value: showCount(post?.count) },
7286
+ { name: "\u603B\u9605\u8BFB\u6570", value: showCount(post?.viewCount) },
7287
+ { name: "\u5E16\u6587\u83B7\u8D5E\u6570", value: showCount(post?.diggCount) },
7288
+ { name: "\u5E16\u6587\u8BC4\u8BBA\u6570", value: showCount(post?.commentCount) },
7289
+ { name: "\u5E16\u6587\u5206\u4EAB\u6570", value: showCount(post?.shareCount) }
7290
+ ];
7291
+ console.log("\n\u8D26\u53F7\u603B\u89C8\uFF08\u5168\u90E8\u8D26\u53F7\u7D2F\u8BA1\uFF0C\u89C6\u9891\u548C\u56FE\u6587\u5206\u5F00\uFF09");
7292
+ printCliTable(
7293
+ rows,
7294
+ [
7295
+ { key: "name", header: "\u6307\u6807" },
7296
+ { key: "value", header: "\u7D2F\u8BA1" }
7297
+ ],
7298
+ options.unicode ? { plain: false } : void 0
7299
+ );
7300
+ }
7301
+
7219
7302
  // src/commands/planning/_shared.ts
7220
7303
  var TOPIC_FOLDER_ID = "88888888-8888-8888-0000-888888888888";
7221
7304
  var DEFAULT_CONTENT_TYPES = [
@@ -9469,7 +9552,7 @@ function registerCsoCommands(program2) {
9469
9552
  await runAuthorize(opts);
9470
9553
  });
9471
9554
  program2.command("list-accounts").description(
9472
- "\u5217\u51FA\u5A92\u4F53\u8D26\u53F7\u5217\u8868\uFF0C\u9ED8\u8BA4\u5C55\u793A\u7C89\u4E1D\u6570/\u4F5C\u54C1\u6570/\u64AD\u653E\u6570\u7B49\u6570\u636E\u603B\u89C8\uFF1B\u652F\u6301\u5206\u9875\u3001\u5E73\u53F0/\u540D\u79F0/\u72B6\u6001/\u8D1F\u8D23\u4EBA\u8FC7\u6EE4"
9555
+ "\u5217\u51FA\u5A92\u4F53\u8D26\u53F7\u660E\u7EC6\u3002\u6BCF\u884C\u542B\u8BE5\u8D26\u53F7\u7684\u89C6\u9891\u6570\u3001\u64AD\u653E\u6570\u3001\u5E16\u6587\u6570\u3001\u5E16\u6587\u9605\u8BFB\u3002\u5168\u516C\u53F8\u7D2F\u8BA1\u7528 report overview"
9473
9556
  ).option("--name <name>", "\u6309\u8D26\u53F7\u540D\u79F0\u6A21\u7CCA\u641C\u7D22").option("--media-type <type>", "\u6309\u5E73\u53F0\u7C7B\u578B\u8FC7\u6EE4\uFF08\u5982 \u6296\u97F3\u3001YouTube\u3001TikTok \u7B49\uFF09").option(
9474
9557
  "--state <state>",
9475
9558
  "\u6309\u72B6\u6001\u8FC7\u6EE4\uFF1Aall\uFF08\u5168\u90E8\uFF09| normal\uFF08\u6B63\u5E38\uFF09| abnormal\uFF08\u5F02\u5E38/\u8FC7\u671F\uFF09\uFF0C\u9ED8\u8BA4 all",
@@ -9800,6 +9883,25 @@ function registerCsoCommands(program2) {
9800
9883
  });
9801
9884
  }
9802
9885
  );
9886
+ reportCmd.command("overview").description("\u8D26\u53F7\u603B\u89C8\u7D2F\u8BA1\uFF08\u8D26\u53F7\u6570\u3001\u603B\u7C89\u4E1D\u3001\u89C6\u9891\u548C\u56FE\u6587\u5206\u5F00\uFF09\u3002\u5BF9\u5E94 accountdata \u7684\u8D26\u53F7\u603B\u89C8\uFF0C\u4E0D\u662F\u672C\u671F\u589E\u91CF\uFF0C\u4E5F\u4E0D\u662F\u5217\u8868\u5F53\u524D\u9875\u76F8\u52A0").option(
9887
+ "--media <mediaType>",
9888
+ "\u5A92\u4F53\u7C7B\u578B\u3002\u5916\u8D38 YouTube / TikTokBusinessAccount / Facebook / Instagram / Linkedin\uFF1B\u5185\u8D38 Douyin / Kuaishou / Wechat\u3002\u4E0D\u4F20\u5219\u67E5\u8BE5\u4E1A\u52A1\u7EBF\u5168\u90E8\u8D26\u53F7"
9889
+ ).option("--domestic", "\u4E0D\u4F20 --media \u65F6\u67E5\u5185\u8D38\u5168\u90E8\u8D26\u53F7\u3002\u9ED8\u8BA4\u67E5\u5916\u8D38", false).option("--name <name>", "\u6309\u8D26\u53F7\u540D\u79F0\u6A21\u7CCA\u641C\u7D22").option("--maids <ids...>", "mediaCustomerId\uFF0C\u652F\u6301\u7A7A\u683C\u6216\u9017\u53F7\u5206\u9694").option("--state <state>", "all | normal | abnormal\u3002\u9ED8\u8BA4 all", "all").option("-t, --token <token>", "Token\uFF08\u53EF\u9009\uFF1B\u4F18\u5148\u4E8E ~/.siluzan/config.json\uFF09").option("--json-out <path>", "\u5C06\u603B\u89C8\u6C47\u603B\u843D\u76D8\u5230\u76EE\u5F55\u6216 *.json \u6587\u4EF6\uFF0Cstdout \u4EC5\u4E00\u884C\u6458\u8981").option("--unicode", "\u4F7F\u7528 Unicode \u7EBF\u6846\u8868\u683C\uFF08\u9ED8\u8BA4 ASCII\uFF09", false).option("--verbose", "\u663E\u793A\u8BE6\u7EC6\u9519\u8BEF\u4FE1\u606F", false).action(
9890
+ async (opts) => {
9891
+ const state = opts.state;
9892
+ await runReportOverview({
9893
+ media: opts.media,
9894
+ domestic: opts.domestic,
9895
+ name: opts.name,
9896
+ maids: opts.maids,
9897
+ state: state === "all" ? void 0 : state,
9898
+ token: opts.token,
9899
+ jsonOut: opts.jsonOut,
9900
+ unicode: opts.unicode,
9901
+ verbose: opts.verbose
9902
+ });
9903
+ }
9904
+ );
9803
9905
  reportCmd.command("period").description("\u8D26\u53F7\u6570\u636E\u672C\u671F\u589E\u91CF\uFF08\u5BF9\u5E94 accountdata \u7684\u672C\u671F\u8868\u73B0\uFF0C\u4E0D\u662F\u7D2F\u8BA1\u603B\u6570\uFF09").option(
9804
9906
  "--media <mediaType>",
9805
9907
  "\u5A92\u4F53\u7C7B\u578B\u3002\u5916\u8D38 YouTube / TikTokBusinessAccount / Facebook / Instagram / Linkedin\uFF1B\u5185\u8D38 Douyin / Kuaishou / Wechat\u3002\u4E0D\u4F20\u5219\u67E5\u8BE5\u4E1A\u52A1\u7EBF\u5168\u90E8\u8D26\u53F7"
@@ -27,7 +27,7 @@ metadata:
27
27
  发布,publish,上传,upload,封面,extract-cover,截取封面,任务,task,重试,失败,
28
28
  账号分组,运营账号,媒体账号,OAuth,authorize,list-accounts,绑定,授权过期,Token失效,
29
29
  评论区,回复文案,页面链接,web-pages,任务管理,
30
- RAG,知识库,rag,素材库,绩效,粉丝,播放,本期,阅读数,账号数据,report,planning,内容规划,站内信
30
+ RAG,知识库,rag,素材库,绩效,粉丝,播放,本期,阅读数,账号数据,账号总览,总视频数,总播放量,图文,report,planning,内容规划,站内信
31
31
  not_for: >-
32
32
  广告账户,广告投放,余额,消耗,统计,开户,关键词出价,Google Ads,Bing Ads,Yandex,TSO,siluzan-tso,MCC,BC,BM;
33
33
  海外 B2B 社媒贴文/Caption(走 overseas-b2b-social-post)
@@ -103,7 +103,7 @@ Windows 注意:部分 Agent 客户端通过 PowerShell / cmd 代执行命令
103
103
  | `siluzan-cso init` | Skill 文件初始化(写入 AI 助手目录) | `references/setup.md` |
104
104
  | `siluzan-cso update` | 更新 CLI 版本并刷新 Skill 文件 | `references/setup.md` |
105
105
  | `siluzan-cso authorize --media-type <平台>` | 发起媒体账号 OAuth 授权 | `references/authorize.md` |
106
- | `siluzan-cso list-accounts` | 列出媒体账号,获取账号 ID / 数据总览 | `references/list-accounts.md` |
106
+ | `siluzan-cso list-accounts` | 账号列表明细,获取账号 ID。单行里的视频数和帖文数是该账号累计,不是全公司合计 | `references/list-accounts.md` |
107
107
  | `siluzan-cso persona list` | 拉取 CSO 人设列表。**请先阅读详细文档,规范操作,避免误用。** | `references/persona.md` |
108
108
  | `siluzan-cso rag list` | 列出知识库文件夹;`--rag-only` 仅已建索引;`--folder-id` 查指定文件夹下的子库 | `references/rag.md` |
109
109
  | `siluzan-cso rag query` | 知识库向量检索;**`--partition wiki` 或 `default`**(默认 `default`;写稿与须贴库作答时优先 **wiki**,不足再 **default**);`-q` 含空白时多词分检合并;`--folder-id` / `--tags` 见 `references/rag.md` | `references/rag.md` |
@@ -112,6 +112,7 @@ Windows 注意:部分 Agent 客户端通过 PowerShell / cmd 代执行命令
112
112
  | `siluzan-cso extract-cover -f <video> -p <平台>` | 从视频截取封面帧 | `references/extract-cover.md` |
113
113
  | `siluzan-cso publish -c config.json` | 提交多平台发布任务 | `references/publish.md` |
114
114
  | `siluzan-cso task list/detail/item` | 查看任务状态 / 处理失败 / 重试 | `references/task.md` |
115
+ | `siluzan-cso report overview` | 账号总览累计(账号数、总粉丝、视频和图文分开)。不是本期增量,也不是列表当前页相加 | `references/report.md` |
115
116
  | `siluzan-cso report period` | 账号数据本期增量(本期阅读数 / 本期获赞数 / 本期播放量) | `references/report.md` |
116
117
  | `siluzan-cso report fetch --media <平台>` | 绩效报表(核心指标 / 视频排行 / 趋势)。不是本期卡片 | `references/report.md` |
117
118
  | `siluzan-cso planning ...` | AI 内容规划:生成、监控、详情、导出 | `references/planning.md` |
@@ -129,6 +130,7 @@ Windows 注意:部分 Agent 客户端通过 PowerShell / cmd 代执行命令
129
130
  | 截取视频封面 | `references/extract-cover.md` |
130
131
  | 文案写完落盘后校验字数 / 检查内部内容泄漏 | `references/validate-content.md` |
131
132
  | 查发布记录 / 处理失败 | `references/task.md` |
133
+ | 查账号总览累计(账号数、总视频数、总粉丝数、总播放量、图文阅读) | `references/report.md`(`report overview`) |
132
134
  | 查本期账号数据(本期阅读数、本期获赞数、本期播放量) | `references/report.md`(`report period`) |
133
135
  | 查绩效报表 / 作品排行 / 粉丝趋势 | `references/report.md`(`report fetch`) |
134
136
  | 查找账号 ID 或账号详情 | `references/list-accounts.md` |
@@ -150,6 +152,7 @@ publish ──需要账号字段──► list-accounts
150
152
  publish ──需要素材 ID──► upload ──需要封面──► extract-cover
151
153
  publish ──提交后查状态──► task ──失败重授权──► authorize
152
154
 
155
+ report overview ──账号总览累计──► getOverviewSummary
153
156
  report period ──本期增量──► GetIncrementalData
154
157
  report fetch ──绩效报表──► list-accounts(只要 mediaCustomerId)
155
158
  account-group ──需要 mediaCustomerId──► list-accounts
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "slug": "siluzan-cso",
3
- "version": "1.1.47-beta.1",
4
- "publishedAt": 1795696227893,
3
+ "version": "1.1.47-beta.2",
4
+ "publishedAt": 1796004115962,
5
5
  "homepage": "https://www.siluzan.com",
6
6
  "source": "https://dev.azure.com/jack4it/Sammamish/_git/siluzan-skill",
7
7
  "requiredBinaries": [
@@ -24,7 +24,7 @@
24
24
 
25
25
  ## 二、数据处理协议(最高优先级,防工具死循环)
26
26
 
27
- 读取/列表/检索/详情类命令(`list-accounts`、`account-group list`、`persona list`、`rag list/query`、`report period`、`report fetch/records`、`planning enterprises/content-types/list/get`、`task list/detail/comment list`、`list-members`)都支持 **`--json-out <路径>`**:业务数据落盘为唯一真相源,stdout 只回**一行摘要 + agentHint**。每条 `--json-out` 命令成功后**必须按顺序**处理,不要跳步:
27
+ 读取/列表/检索/详情类命令(`list-accounts`、`account-group list`、`persona list`、`rag list/query`、`report overview`、`report period`、`report fetch/records`、`planning enterprises/content-types/list/get`、`task list/detail/comment list`、`list-members`)都支持 **`--json-out <路径>`**:业务数据落盘为唯一真相源,stdout 只回**一行摘要 + agentHint**。每条 `--json-out` 命令成功后**必须按顺序**处理,不要跳步:
28
28
 
29
29
  1. **解析 stdout 一行摘要 JSON**:拿到 `outlineFile`、`writtenFiles[0]`、`manifestFile`、`agentHint`。摘要里**没有** `total` / `items` 等业务字段——**禁止对 stdout 写翻页循环**,业务数据只在 `writtenFiles[0]` 落盘文件里;**不要**硬编码 `<section>.json` 文件名,以摘要里的 `writtenFiles[]` / `manifestFile` 为准。
30
30
  2. **【outline 门禁·先读完再动手】Read 当次产出的每个 `*.outline.txt`**(schema-only,通常 <2KB)确认字段树后**才可**写脚本。类型字面量是**最后一个不以 `//` 开头的行**(提取写法 `outlineRaw.trimEnd().split('\n').filter(l => !l.startsWith('//')).pop()`)。outline 是结构描述,**不是数据**,勿当 JSON `require`、勿贴给用户。**字段真相源 = 当次 outline**;SKILL.md / reference 里出现的字段名都是说明性示例,凡 outline 未确认的字段路径**禁止**凭印象写进脚本。
@@ -8,7 +8,8 @@
8
8
 
9
9
  | 用户意图 | 命令 |
10
10
  | ---------------------------------------- | -------------------------------------------------------------------------------------- |
11
- | 查所有账号总览(粉丝/播放/获赞横向对比) | `siluzan-cso list-accounts` |
11
+ | 账号列表明细(每个账号一行,含视频数和帖文数) | `siluzan-cso list-accounts` |
12
+ | 全公司账号总览累计(账号数、总播放、图文阅读) | `siluzan-cso report overview` |
12
13
  | 按平台筛选账号 | `siluzan-cso list-accounts --media-type <平台>` |
13
14
  | 按名称搜索账号 | `siluzan-cso list-accounts --name "账号名"` |
14
15
  | 获取账号完整字段(用于发布配置或脚本) | `siluzan-cso list-accounts --json-out ./snap-cso` |
@@ -83,8 +84,8 @@ siluzan-cso list-accounts --state abnormal
83
84
 
84
85
  - 用户要找一个具体账号时,**优先用 `--name` + `--media-type` 双重过滤**,通常可直接得到唯一结果。
85
86
  - 找到账号后,`entityId` + `externalMediaAccountTokenId` + `mediaCustomerId` 即可直接填入发布配置,无需再次询问用户。
86
- - 账号 `overview` 是累计总数。本期阅读数、本期获赞数、本期播放量用 `report period`,参见 `references/report.md`。
87
- - 只对比账号当前累计粉丝、累计播放、累计帖文阅读时,读 overview 即可,不必再调 `report fetch`。
87
+ - 每一行的 `overview` 是这个账号自己的累计。视频看 `videoCount` / `playCount`,图文看 `postCount` / `postViewCount`。全公司合计用 `report overview`,不要把当前页 overview 加总。
88
+ - 本期阅读数、本期获赞数、本期播放量用 `report period`,参见 `references/report.md`。
88
89
  - `invalidOAuthToken: true` 的账号需先重新授权,再发布(参见 `references/authorize.md`)。
89
90
 
90
91
  ---
@@ -1,7 +1,7 @@
1
1
  # report — 运营报表查询
2
2
 
3
3
  > 查两套不同的数:账号数据页的**本期增量**用 `report period`;绩效报表页的核心指标、作品排行、粉丝趋势用 `report fetch`。
4
- > 累计总数在 `list-accounts` 的 `overview` 里,不要拿它回答「本期阅读数」。
4
+ > 全公司累计总数用 `report overview`。`list-accounts` 的 `overview` 只是当前页每个账号自己的数,不要拿来回答「总视频数 / 总播放量」。
5
5
  > 需要账号的 `mediaCustomerId` 时,先 `list-accounts --json-out`(参见 `references/list-accounts.md`)。
6
6
 
7
7
  ---
@@ -10,6 +10,7 @@
10
10
 
11
11
  | 用户意图 | 命令 |
12
12
  | --------------------- | --------------------------------------------------------------------------- |
13
+ | 账号总览 / 总视频数 / 总粉丝 / 总播放 / 图文累计 | `siluzan-cso report overview` |
13
14
  | 本期阅读数 / 本期获赞数 / 本期粉丝数 | `siluzan-cso report period --content post --days 7` |
14
15
  | 本期播放量 / 本期视频获赞 | `siluzan-cso report period --content video --media YouTube` |
15
16
  | 某个账号的本期增量 | `siluzan-cso report period --maids <账号ID> --content post` |
@@ -36,6 +37,28 @@
36
37
 
37
38
  ---
38
39
 
40
+ ## 账号数据:总览累计
41
+
42
+ 对应页面「账号总览」。接口 `GET /query/media-account/v1/getOverviewSummary`。数字是当前筛选下**全部账号**的累计,没有日期,不受列表分页影响。
43
+
44
+ 视频和图文同时返回,不要只报视频:
45
+
46
+ | 块 | 字段 | 页面文案 |
47
+ | --- | --- | --- |
48
+ | 账号 | `accountCount` / `fansCount` | 账号数 / 总粉丝数 |
49
+ | `video` | `count` / `playCount` / `diggCount` / `commentCount` | 总视频数 / 总播放量 / 获赞数 / 总评论数 |
50
+ | `post` | `count` / `viewCount` / `diggCount` / `commentCount` | 总帖文数 / 总阅读数 / 获赞数 / 总评论数 |
51
+
52
+ `playCount` 或 `viewCount` 为 null 时,页面显示 —。Instagram 不计入播放量,YouTube 帖文不计入阅读数。
53
+
54
+ ```bash
55
+ siluzan-cso report overview
56
+ siluzan-cso report overview --media YouTube
57
+ siluzan-cso report overview --domestic
58
+ ```
59
+
60
+ 账号列表明细仍用 `list-accounts`。每一行同时有视频字段和帖文字段。
61
+
39
62
  ## 账号数据:本期增量
40
63
 
41
64
  对应页面「本期表现与趋势」。接口 `GET /cso/v1/accountData/GetIncrementalData`。数字是所选日期内的新增,不是历史累计。
@@ -141,10 +164,10 @@ siluzan-cso report fetch --media YouTube --days 90 --method Week --include fans-
141
164
 
142
165
  ## AI 行为规则
143
166
 
144
- 1. 用户没说具体账号/平台时,先用 `list-accounts` 展示总览,让用户决定深入哪个账号。
145
- 2. 用户说「本期阅读数 / 本期获赞数 / 本期粉丝数 / 本期播放量」时,用 `report period`。帖文加 `--content post`,视频加 `--content video`。不要用 `overview.playCount` 或 `report fetch` 的总粉丝回答。
146
- 3. 用户提到具体平台但没有账号 ID 时,先用 `list-accounts --json-out` 落盘获取,再把 `mediaCustomerId` 传给 `--maids`。
147
- 4. 用户要的是历史累计(总粉丝、总播放、总阅读)时,读 `list-accounts` 的 `overview`,不要调 `report period`。
167
+ 1. 用户要看账号总览、总视频数、总粉丝数、总播放量、图文累计时,用 `report overview`。视频和图文都在返回里,不要只报视频。不要把 `list-accounts` 当前页加总。
168
+ 2. 用户说「本期阅读数 / 本期获赞数 / 本期粉丝数 / 本期播放量」时,用 `report period`。帖文加 `--content post`,视频加 `--content video`。不要用 `report overview` 或 `report fetch` 的总粉丝回答。
169
+ 3. 用户提到具体平台但没有账号 ID 时,先用 `list-accounts --json-out` 落盘获取,再把 `mediaCustomerId` 传给 `--maids`。要对比某一个账号的视频数和帖文数时,读该行 `overview`,不要改用全公司汇总。
170
+ 4. 用户要的是历史累计(总粉丝、总播放、总阅读、总视频数)时,用 `report overview`,不要调 `report period`。
148
171
  5. 未指定时间范围时,`report period` 默认近 7 天,`report fetch` 默认近 30 天,并告知用户。
149
172
 
150
173
  ---
@@ -54,7 +54,7 @@
54
54
  | 页面 | 完整链接 | 功能说明 |
55
55
  | -------- | ------------------------------------------------------ | -------------------------------------------------------------------- |
56
56
  | 作品数据 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/Workdata` | 作品维度统计、图表、明细(对应 CLI `report fetch`) |
57
- | 账户数据 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/accountdata` | 本期增量与趋势(对应 CLI `report period`);累计总数在账号列表 overview |
57
+ | 账户数据 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/accountdata` | 账号总览累计对应 CLI `report overview`;本期增量与趋势对应 `report period` |
58
58
  | 绩效报表 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/table` | 多维度绩效报表、PDF 导出(对应 CLI `report fetch/records/download`) |
59
59
 
60
60
  ---
@@ -82,6 +82,7 @@
82
82
  | `task list/detail` | `task` |
83
83
  | `task comment list` | `comment` |
84
84
  | `letter` | `letter` |
85
+ | `report overview` | `accountdata` |
85
86
  | `report period` | `accountdata` |
86
87
  | `report fetch` | `Workdata`、`table` |
87
88
  | `report records/download` | `table`(导出记录弹窗) |
@@ -9,7 +9,7 @@ $ErrorActionPreference = 'Stop'
9
9
  # -- Package info (injected at build time) ------------------------------------
10
10
  $PKG_NAME = 'siluzan-cso-cli'
11
11
  # PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
12
- $PKG_VERSION = '1.1.47-beta.1'
12
+ $PKG_VERSION = '1.1.47-beta.2'
13
13
  $CLI_BIN = 'siluzan-cso'
14
14
  $SKILL_LABEL = 'Siluzan CSO'
15
15
  $INSTALL_CMD = 'npm install -g siluzan-cso-cli@beta'
@@ -9,7 +9,7 @@ set -euo pipefail
9
9
  # -- Package info (injected at build time) ------------------------------------
10
10
  readonly PKG_NAME="siluzan-cso-cli"
11
11
  # PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
12
- readonly PKG_VERSION="1.1.47-beta.1"
12
+ readonly PKG_VERSION="1.1.47-beta.2"
13
13
  readonly CLI_BIN="siluzan-cso"
14
14
  readonly SKILL_LABEL="Siluzan CSO"
15
15
  readonly INSTALL_CMD="npm install -g siluzan-cso-cli@beta"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siluzan-cso-cli",
3
- "version": "1.1.47-beta.1",
3
+ "version": "1.1.47-beta.2",
4
4
  "description": "Siluzan platform AI Skill CLI — multi-platform content publishing (video/image-text) for Cursor, Claude Code, and OpenClaw.",
5
5
  "keywords": [
6
6
  "ai-skill",