@geoly-ai/social-hub-cli 0.2.24 → 0.2.25

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cmd-manifest.json +11 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +18 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/permissions-gates-content-classification.d.ts +8 -0
  7. package/dist/permissions-gates-content-classification.d.ts.map +1 -0
  8. package/dist/permissions-gates-content-classification.js +40 -0
  9. package/dist/permissions-gates-content-classification.js.map +1 -0
  10. package/dist/permissions.d.ts.map +1 -1
  11. package/dist/permissions.js +2 -0
  12. package/dist/permissions.js.map +1 -1
  13. package/dist/register-content-classification.d.ts +14 -0
  14. package/dist/register-content-classification.d.ts.map +1 -0
  15. package/dist/register-content-classification.js +181 -0
  16. package/dist/register-content-classification.js.map +1 -0
  17. package/dist/register-content-classification.test.d.ts +2 -0
  18. package/dist/register-content-classification.test.d.ts.map +1 -0
  19. package/dist/register-content-classification.test.js +43 -0
  20. package/dist/register-content-classification.test.js.map +1 -0
  21. package/dist/register-subreddit-post-style.d.ts +8 -0
  22. package/dist/register-subreddit-post-style.d.ts.map +1 -0
  23. package/dist/register-subreddit-post-style.js +161 -0
  24. package/dist/register-subreddit-post-style.js.map +1 -0
  25. package/dist/update-check.d.ts +15 -0
  26. package/dist/update-check.d.ts.map +1 -1
  27. package/dist/update-check.js +106 -3
  28. package/dist/update-check.js.map +1 -1
  29. package/dist/update-check.test.js +71 -2
  30. package/dist/update-check.test.js.map +1 -1
  31. package/package.json +3 -3
  32. package/skills/manifest.json +1 -1
  33. package/skills/social-hub-accounts/SKILL.md +32 -0
  34. package/skills/social-hub-calendar-jobs/SKILL.md +1 -1
  35. package/skills/social-hub-content-classification/SKILL.md +92 -0
  36. package/skills/social-hub-content-review/SKILL.md +31 -4
  37. package/skills/social-hub-ops-runtime/SKILL.md +19 -1
  38. package/skills/social-hub-post-review/SKILL.md +38 -12
package/CHANGELOG.md CHANGED
@@ -4,6 +4,23 @@ 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.2.25] - 2026-07-30
8
+
9
+ ### Added
10
+
11
+ - 后台自动更新 —— 检测到 npm 新版即静默 npm i -g,下次调用自动生效(不重启/不 re-exec)
12
+ - Phase B1a Block3+4 —— content_classification worker sweep + 控制面
13
+ - 板块运营数据 Phase A1 —— 账号汇总薄读模型 MVP
14
+ - 审核 brandContext 账号路径支持 brandId + brandId/constitution 文档同步
15
+
16
+ ### Fixed
17
+
18
+ - 去 AI 审核门收尾 P0-② —— agent-status 堵死帖子发布审核门绕过
19
+
20
+ ### Documentation
21
+
22
+ - 去 AI 审核门 P0-B Commit9 —— execution fencing 契约边界(skills/OpenClaw)
23
+
7
24
  ## [0.2.24] - 2026-07-26
8
25
 
9
26
  ### Added
@@ -1,6 +1,6 @@
1
1
  {
2
- "generatedAt": "2026-07-26T19:00:26.009Z",
3
- "cliVersion": "0.2.24",
2
+ "generatedAt": "2026-07-30T01:52:31.243Z",
3
+ "cliVersion": "0.2.25",
4
4
  "commands": [
5
5
  "accounts",
6
6
  "accounts brand-bindings",
@@ -141,6 +141,14 @@
141
141
  "content",
142
142
  "content post-review",
143
143
  "content review",
144
+ "content-classification",
145
+ "content-classification get-subject",
146
+ "content-classification presentation",
147
+ "content-classification spec",
148
+ "content-classification spec activate",
149
+ "content-classification spec create",
150
+ "content-classification spec get",
151
+ "content-classification spec list",
144
152
  "context",
145
153
  "context account",
146
154
  "context current",
@@ -180,6 +188,7 @@
180
188
  "graph v2-timeline",
181
189
  "health",
182
190
  "intelligence",
191
+ "intelligence account-summary",
183
192
  "intelligence brand-mention-radar",
184
193
  "intelligence campaign-lift",
185
194
  "intelligence comments",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"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M,WAAW,CAAC;AA6BpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AAwqD9B,8DAA8D;AAC9D,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,MAAM,GAAG,IAAI,CAOf;AA2/BD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1D,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjE,CAAC;AAQF,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE;IACN,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC,GACA,OAAO,CAAC;IAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,CAkJnE;AA+1ED,OAAO,EAAE,OAAO,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ import { getBaseUrl, requireClient, resolveTeamId } from "./client.js";
5
5
  import { registerAccountsExtensions, registerAuthAndConfig, registerAuthzEvaluate, registerPermissionsExplain, registerRedditExtensions, listRedditSnapshotsPaginated, redditAggregateQueryParams, } from "./register-extensions.js";
6
6
  import { registerAdminCommands } from "./register-admin.js";
7
7
  import { registerSubredditStyleCommands } from "./register-subreddit-style.js";
8
+ import { registerContentClassificationCommands } from "./register-content-classification.js";
8
9
  import { assertApplyOrDryRun } from "./dry-run.js";
9
10
  import { withPermissionGate } from "./permission-runner.js";
10
11
  import { registerBatchAndExport } from "./register-batch.js";
@@ -30,6 +31,7 @@ registerOpsRuntime(program);
30
31
  registerAgentContext(program);
31
32
  registerAdminCommands(program);
32
33
  registerSubredditStyleCommands(program);
34
+ registerContentClassificationCommands(program);
33
35
  registerBatchAndExport(program);
34
36
  program
35
37
  .command("health")
@@ -806,9 +808,9 @@ personas
806
808
  });
807
809
  personas
808
810
  .command("style-guide-set")
809
- .description("PUT /system/personas/:id/style-guide")
811
+ .description("PUT /system/personas/:id/style-guide(defaultStyleGuide 可含 constitution 六维行为字段,值为行为规则短句、非文案模板)")
810
812
  .requiredOption("--id <personaId>", "Persona UUID")
811
- .option("-j, --json <json>", "defaultStyleGuide 对象 JSON")
813
+ .option("-j, --json <json>", "defaultStyleGuide 对象 JSON(可含 constitution: {attentionPriority/stanceOnUncertainty/disagreementStyle/closingBehavior/detailDepth/topicReflex},写行为短句,全空/模板/成品文案会 400)")
812
814
  .option("--clear", "清空默认风格指南(写 null)")
813
815
  .action(async (opts) => {
814
816
  if (opts.clear) {
@@ -1933,6 +1935,20 @@ intel
1933
1935
  });
1934
1936
  console.log(JSON.stringify(res, null, 2));
1935
1937
  });
1938
+ intel
1939
+ .command("account-summary <subreddit>")
1940
+ .description("GET .../subreddit-intelligence/subreddits/:subreddit/account-summary(板块运营数据 A1:热帖与采样评论中的高频作者薄读模型;30 天 captured-window;top-N + coverage 诊断;品牌关联只标 own/unknown)")
1941
+ .option("--sort-by <f>", "captured_hot_posts|sampled_comments|post_score_sum|comment_score_sum|last_activity", "captured_hot_posts")
1942
+ .option("-n, --limit <n>", "limit(≤100)", "25")
1943
+ .option("--offset <n>", "offset(≤10000)", "0")
1944
+ .action(async (subreddit, opts) => {
1945
+ const res = await requireClient().getSubredditAccountSummary(subreddit, {
1946
+ sortBy: opts.sortBy,
1947
+ limit: Number(opts.limit),
1948
+ offset: Number(opts.offset),
1949
+ });
1950
+ console.log(JSON.stringify(res, null, 2));
1951
+ });
1936
1952
  intel
1937
1953
  .command("comments-fetch")
1938
1954
  .description("POST /v1/system/subreddit-intelligence/comments/fetch(逐帖评论采样派发;同批帖活跃 run 复用)")