@geoly-ai/social-hub-cli 0.2.4 → 0.2.6
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 +14 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -2
- package/dist/client.js.map +1 -1
- package/dist/cmd-manifest.json +2 -2
- package/dist/context-state.test.d.ts +2 -0
- package/dist/context-state.test.d.ts.map +1 -0
- package/dist/context-state.test.js +51 -0
- package/dist/context-state.test.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +307 -298
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/skills/manifest.json +1 -1
- package/skills/social-hub-accounts/SKILL.md +2 -2
- package/skills/social-hub-events-observability/SKILL.md +4 -0
- package/skills/social-hub-intelligence/SKILL.md +21 -2
- package/skills/social-hub-shared/SKILL.md +3 -1
|
@@ -79,8 +79,8 @@ social-hub accounts delete -t <team-id> --account <uuid> # 危险
|
|
|
79
79
|
| `status` | ✅ | ✅ | `warming\|active\|postable\|restricted\|banned` |
|
|
80
80
|
| `karma` | ✅ | ✅ | int ≥0(可 null) |
|
|
81
81
|
| `accountAgeDays` | ✅ | ✅ | int ≥0(可 null);**legacy 回退**,仅 `registeredAt` 未设时参与 age/postable |
|
|
82
|
-
| `registeredAt` | ✅ | ✅ | 平台注册日历日 `YYYY-MM-DD`(可 null,不得晚于今天);账号 age 的**主源**
|
|
83
|
-
| `ageDays` | —
|
|
82
|
+
| `registeredAt` | ✅ | ✅ | 平台注册日历日 `YYYY-MM-DD`(可 null,不得晚于今天);账号 age 的**主源** |
|
|
83
|
+
| `ageDays` | — | — | **只读派生**(响应字段):`registeredAt` 有则按天动态算,否则回退 `accountAgeDays` |
|
|
84
84
|
| `workflowStage` | ✅ | ✅ | `prospect\|qualified\|warming\|onboarded\|active\|at_risk\|restricted\|paused\|archived` |
|
|
85
85
|
| `metricsSource` | ✅ | ✅ | string(可 null) |
|
|
86
86
|
| `metricsUpdatedAt` | ✅ | ✅ | ISO8601(可 null) |
|
|
@@ -25,6 +25,10 @@ social-hub events batch -t <team-id> -j '{"events":[{"type":"comment","externalR
|
|
|
25
25
|
social-hub events export-csv -t <team-id> [--account <uuid>] [--type <eventType>] [-n 500]
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
> **品牌关联(`--brand`)**:账号**绑定多个品牌**时,events 上报**必须显式 `--brand <uuid>`**
|
|
29
|
+
> 指定本次操作服务的品牌(未指定的事件不会出现在任何品牌过滤视图);账号只绑一个品牌时
|
|
30
|
+
> 可省略——读取侧按当前绑定自动继承。绑定关系看 `accounts brand-bindings`。
|
|
31
|
+
|
|
28
32
|
### OpenClaw 历史导入(注意参数)
|
|
29
33
|
|
|
30
34
|
```bash
|
|
@@ -13,15 +13,34 @@ metadata:
|
|
|
13
13
|
> **前置条件:** 先阅读 [`../social-hub-shared/SKILL.md`](../social-hub-shared/SKILL.md),
|
|
14
14
|
> 确认已 `auth login` 并 `context use <team-id>`。
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## 行业池只读列表(industry-pools-list)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
social-hub intelligence industry-pools-list [-t <team-id>] [-n 50]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**team 是必需上下文**:未传 `-t` 时按 context.json 的 currentTeamId → config 的
|
|
23
|
+
teamId → `SOCIAL_HUB_TEAM_ID` 依次回退;都没有会报 "Missing team id"。已
|
|
24
|
+
`context use <team-id>` 后可省略 `-t`。运营板块池 CRUD 见 `social-hub-subreddit-pools`。
|
|
25
|
+
|
|
26
|
+
## Watchlists
|
|
17
27
|
|
|
18
28
|
```bash
|
|
19
29
|
social-hub intelligence watchlists-list [--campaign <uuid>]
|
|
20
30
|
social-hub intelligence watchlists-create -j '{"subreddit":"technology","tags":["core"]}'
|
|
21
|
-
|
|
31
|
+
# 品牌洞察(VOC/SOV)用的监控池:显式绑定品牌 + 指定主行业
|
|
32
|
+
social-hub intelligence watchlists-create -j '{"subreddit":"jewelry","primaryIndustryKey":"industry_pools__jewelry","brandIds":["<brand-uuid>"]}'
|
|
33
|
+
social-hub intelligence watchlists-update --id <uuid> -j '{"tags":["updated"],"brandIds":["<brand-uuid>"]}'
|
|
22
34
|
social-hub intelligence watchlists-delete --id <uuid>
|
|
23
35
|
```
|
|
24
36
|
|
|
37
|
+
**行业归类**:列表返回 `industrySource: explicit|inferred|none`——`primaryIndustryKey`
|
|
38
|
+
显式指定优先;未指定时服务端按行业池目录推断(**排除养号/宠物/persona 运营池**,
|
|
39
|
+
brand 池 > industry 池 > 其他,稳定排序;此前首匹配会把养号宠物池误标成"行业:宠物")。
|
|
40
|
+
**品牌绑定**(`brandIds`,replace 语义):不绑=全局监控池;绑定后仅服务这些品牌——
|
|
41
|
+
品牌 VOC/SOV 扫描取"全局 + 绑定当前品牌"的池。做品牌洞察(如 Aporro)时创建
|
|
42
|
+
watchlist 须显式传 `brandIds`。
|
|
43
|
+
|
|
25
44
|
## 热帖
|
|
26
45
|
|
|
27
46
|
```bash
|
|
@@ -74,7 +74,9 @@ social-hub auth logout --revoke # 同时撤销服务端 CLI token
|
|
|
74
74
|
|
|
75
75
|
### Team 上下文
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
team 级命令的 `-t <team-uuid>` **可省略**:缺省按 context.json 的 currentTeamId →
|
|
78
|
+
config 的 teamId → `SOCIAL_HUB_TEAM_ID` 回退,都没有才报 "Missing team id"。
|
|
79
|
+
建议先持久化当前 team,后续命令免传 `-t`(显式传 `-t` 始终优先,跨队操作用):
|
|
78
80
|
|
|
79
81
|
```bash
|
|
80
82
|
social-hub context use <team-uuid> [--label "prod-team-a"]
|