@geoly-ai/social-hub-cli 0.3.27 → 0.3.29

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/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ All notable changes to `@geoly-ai/social-hub-cli` are documented in this file.
4
4
 
5
5
  Release workflow: `pnpm release:cli` → `pnpm publish:cli`.
6
6
 
7
+ ## [0.3.29] - 2026-08-28
8
+
9
+ ### Added
10
+
11
+ - 审核记录观测面 —— 把审计账本接出来(四层)
12
+
13
+ ## [0.3.28] - 2026-08-27
14
+
15
+ ### Fixed
16
+
17
+ - 自更新装完校验 bin 软链,缺了就地补装
18
+
7
19
  ## [0.3.27] - 2026-08-27
8
20
 
9
21
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  {
2
- "generatedAt": "2026-08-27T05:59:12.940Z",
3
- "cliVersion": "0.3.27",
2
+ "generatedAt": "2026-08-28T03:03:31.274Z",
3
+ "cliVersion": "0.3.29",
4
4
  "commands": [
5
5
  "accounts",
6
6
  "accounts brand-bindings",
@@ -400,6 +400,9 @@
400
400
  "reddit stats",
401
401
  "reddit team-buckets",
402
402
  "reddit update",
403
+ "review-records",
404
+ "review-records get",
405
+ "review-records list",
403
406
  "review-targets",
404
407
  "review-targets create",
405
408
  "review-targets get",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8DpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AAkjF9B,8DAA8D;AAC9D,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,MAAM,GAAG,IAAI,CAOf;AAg+BD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OA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G,CAAC,GAAG,CAAC,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,CAkJnE;AAyqBD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpE,GAAG,MAAM,CAiBT;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAyCpD;AAwyDD,OAAO,EAAE,OAAO,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1139,6 +1139,49 @@ drafts
1139
1139
  const res = await requireClient().createContentDraft(resolveTeamId(opts.team), body);
1140
1140
  console.log(JSON.stringify(res, null, 2));
1141
1141
  });
1142
+ // --- content review records(审核结果账本:只读观测面)---
1143
+ const reviewRecords = program
1144
+ .command("review-records")
1145
+ .description("内容审核记录(审过的账本,append-only;与 review-targets 的「等人审的队列」不同)");
1146
+ reviewRecords
1147
+ .command("list")
1148
+ .description("GET /content-review-records — 审核记录列表 + 概览统计(统计不受分页影响)")
1149
+ .option("-t, --team <teamId>", "Team UUID(缺省用当前 context)")
1150
+ .option("--verdict <v>", "判定过滤(逗号分隔),如 approved,blocked")
1151
+ .option("--comment-type <ct>", "审核类型:post 或评论类取值")
1152
+ .option("--account <uuid>", "只看某个账号")
1153
+ .option("--rubric-version <v>", "rubric 版本,如 post-review.v4")
1154
+ .option("--degraded-only", "只看降级产出的判定(degradedReason 非空)")
1155
+ .option("--since <iso>", "起始时间(ISO)")
1156
+ .option("-n, --limit <n>", "limit", "50")
1157
+ .option("--offset <n>", "offset", "0")
1158
+ .action(async (opts) => {
1159
+ const res = await requireClient().listReviewRecords(resolveTeamId(opts.team), {
1160
+ limit: Number(opts.limit),
1161
+ offset: Number(opts.offset),
1162
+ verdict: opts.verdict
1163
+ ? opts.verdict
1164
+ .split(",")
1165
+ .map((s) => s.trim())
1166
+ .filter(Boolean)
1167
+ : undefined,
1168
+ commentType: opts.commentType,
1169
+ socialAccountId: opts.account,
1170
+ rubricVersion: opts.rubricVersion,
1171
+ degradedOnly: opts.degradedOnly === true,
1172
+ since: opts.since,
1173
+ });
1174
+ console.log(JSON.stringify(res, null, 2));
1175
+ });
1176
+ reviewRecords
1177
+ .command("get")
1178
+ .description("GET /content-review-records/:id — 记录详情(逐维明细 + 当时的阈值快照)")
1179
+ .option("-t, --team <teamId>", "Team UUID(缺省用当前 context)")
1180
+ .requiredOption("-i, --id <uuid>", "Review record UUID")
1181
+ .action(async (opts) => {
1182
+ const res = await requireClient().getReviewRecord(resolveTeamId(opts.team), opts.id);
1183
+ console.log(JSON.stringify(res, null, 2));
1184
+ });
1142
1185
  // --- content review targets(去 AI 审核门:审核目标读/建)---
1143
1186
  const reviewTargets = program
1144
1187
  .command("review-targets")