@optima-chat/optima-agent 0.8.69 → 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.
@@ -89,14 +89,12 @@ growth comments stats
89
89
  1. `growth accounts get <id>` + `growth config get` — 获取人设和产品信息
90
90
  2. 根据 style 规范生成文案,**必须自然植入产品推广**(植入方式因人设而异)
91
91
  3. 用 gen skill 生成配图
92
- 4. 用 browser skill 发布到目标平台:
93
- - 根据账号 `channels` 和当前任务的 channel 选择平台 URL
94
- - 小红书:`browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --profile <browser_profile_id> --force`
95
- - 其他平台:根据平台 URL 和发布流程操作
96
- - 切到图文模式 上传图片 → 填标题正文 → 直接点击发布(不需要用户确认)
97
- - 如果需要登录,询问用户手机号和验证码
98
- - **发布成功后,从页面或 URL 栏抓取帖子链接,记录到 publish_result**
99
- 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":"..."}'`
100
98
 
101
99
  ### 选题更新
102
100
 
@@ -120,11 +118,11 @@ growth comments stats
120
118
 
121
119
  每天为每个账号回采已发帖子的互动数据,用 sentinel skill 创建每日回采规则:
122
120
 
123
- 1. `growth calendar list --status published` 获取已发帖子
124
- 2. 对每篇有 `post_url` 的帖子:
125
- - browser skill 打开帖子页面(用对应账号的 `--profile`)
126
- - 从页面抓取互动数据:浏览量、点赞、收藏、评论数
127
- - `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}'`
128
126
  3. 根据表现数据更新关联选题的评分(`growth topics update <id> --performance-score <分数>`),表现好的选题得分更高,后续 `growth topics suggest` 会优先推荐
129
127
  4. **评论回复**:抓取帖子下的新评论,AI 根据人设风格生成回复,用 browser skill 发送,`growth comments create --type reply` 记录
130
128
  5. **评论数据**:检查已发评论的互动数据(点赞数),`growth comments update <id> --performance '{"likes":N}'`
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.8.69",
3
+ "version": "0.8.70",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",