@optima-chat/optima-agent 0.8.68 → 0.8.70

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.
@@ -58,6 +58,15 @@ growth outreach messages update <id> --status replied --reply "回复内容"
58
58
  growth outreach stats
59
59
  ```
60
60
 
61
+ ### 评论管理
62
+ ```bash
63
+ growth comments list [--type reply|outreach] [--platform xiaohongshu] [--account-id <id>] [--post-url <url>]
64
+ growth comments create --account-id <id> --platform xiaohongshu --type reply --post-url "https://..." --comment "评论内容"
65
+ growth comments update <id> --status replied --performance '{"likes":5}'
66
+ growth comments delete <id>
67
+ growth comments stats
68
+ ```
69
+
61
70
  ## style 字段说明
62
71
 
63
72
  每个账号的 `style` 字段是该人设的完整内容规范,包含口吻风格、图片风格、标题格式、正文格式、标签策略、禁忌事项等。
@@ -80,14 +89,12 @@ growth outreach stats
80
89
  1. `growth accounts get <id>` + `growth config get` — 获取人设和产品信息
81
90
  2. 根据 style 规范生成文案,**必须自然植入产品推广**(植入方式因人设而异)
82
91
  3. 用 gen skill 生成配图
83
- 4. 用 browser skill 发布到目标平台:
84
- - 根据账号 `channels` 和当前任务的 channel 选择平台 URL
85
- - 小红书:`browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --profile <browser_profile_id> --force`
86
- - 其他平台:根据平台 URL 和发布流程操作
87
- - 切到图文模式 上传图片 → 填标题正文 → 直接点击发布(不需要用户确认)
88
- - 如果需要登录,询问用户手机号和验证码
89
- - **发布成功后,从页面或 URL 栏抓取帖子链接,记录到 publish_result**
90
- 5. `growth calendar update <id> --status published --publish-result '{"post_url":"https://www.xiaohongshu.com/explore/..."}'`
92
+ 4. 用 browser skill 发布到目标平台(**优先使用 builtin 脚本**):
93
+ - 小红书:`browser-cli runscript xiaohongshu-image-note --param title="标题" --param body="正文" --param 'images=["图片路径"]'`
94
+ - 如果脚本报 `login_required`,先用 `browser-cli launch --url https://creator.xiaohongshu.com --profile <browser_profile_id>` 引导用户登录,再重新执行脚本
95
+ - 其他平台:用 `browser-cli scripts` 查看是否有对应脚本,没有则手动操作
96
+ - **发布成功后,脚本返回 post_url,记录到 publish_result**
97
+ 5. `growth calendar update <id> --status published --publish-result '{"post_url":"..."}'`
91
98
 
92
99
  ### 选题更新
93
100
 
@@ -103,6 +110,7 @@ growth outreach stats
103
110
  3. **去重检查**:创建选题前,用 `growth topics list` 和 `growth calendar list --status published` 获取已有选题和已发内容,跳过角度相似或主题重复的内容
104
111
  4. 从高互动内容中提取选题角度,用 `growth topics create --source trending` 存入选题库
105
112
  5. 根据原内容互动数据给选题打分(`growth topics update <id> --performance-score <分数>`)
113
+ 6. **评论引流**:筛选适合评论的帖子(话题相关、互动活跃、最近发的),AI 生成评论(提供价值,不是硬广),用 browser skill 发评论,`growth comments create --type outreach` 记录
106
114
 
107
115
  可用 sentinel skill 创建定时规则自动执行选题更新。
108
116
 
@@ -110,12 +118,14 @@ growth outreach stats
110
118
 
111
119
  每天为每个账号回采已发帖子的互动数据,用 sentinel skill 创建每日回采规则:
112
120
 
113
- 1. `growth calendar list --status published` 获取已发帖子
114
- 2. 对每篇有 `post_url` 的帖子:
115
- - browser skill 打开帖子页面(用对应账号的 `--profile`)
116
- - 从页面抓取互动数据:浏览量、点赞、收藏、评论数
117
- - `growth calendar update <id> --performance '{"views":1200,"likes":85,"collects":42,"comments":12}'`
121
+ 1. **使用 builtin 脚本采集数据**:`browser-cli runscript xiaohongshu-data-collect`
122
+ - 脚本自动从创作者平台内容分析页抓取所有笔记的数据(曝光、观看、点击率、点赞、评论、收藏、涨粉、分享、时长)
123
+ - 返回 JSON 格式的 notes 数组
124
+ 2. 将采集到的数据更新到 growth calendar:
125
+ - `growth calendar update <id> --performance '{"impressions":1450,"views":148,"click_rate":"9.60%","likes":5,"comments":3}'`
118
126
  3. 根据表现数据更新关联选题的评分(`growth topics update <id> --performance-score <分数>`),表现好的选题得分更高,后续 `growth topics suggest` 会优先推荐
127
+ 4. **评论回复**:抓取帖子下的新评论,AI 根据人设风格生成回复,用 browser skill 发送,`growth comments create --type reply` 记录
128
+ 5. **评论数据**:检查已发评论的互动数据(点赞数),`growth comments update <id> --performance '{"likes":N}'`
119
129
 
120
130
  ### 私信触达
121
131
 
@@ -165,5 +175,7 @@ growth outreach stats
165
175
  - 两次发布间隔不少于 posting_rules.min_interval_hours 小时
166
176
  - 单账号每日触达不超过 posting_rules.max_daily_outreach
167
177
  - 两次触达间隔不少于 posting_rules.min_outreach_interval_minutes 分钟
178
+ - 单账号每日评论不超过 posting_rules.max_daily_comments
179
+ - 两次评论间隔不少于 posting_rules.min_comment_interval_minutes 分钟
168
180
  - 不同人设的内容必须有明显差异
169
181
  - 发布时间加入随机偏移
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.8.68",
3
+ "version": "0.8.70",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",