@optima-chat/optima-agent 0.8.66 → 0.8.67

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.
@@ -72,7 +72,8 @@ growth calendar update <id> --status published
72
72
  - `browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --profile <browser_profile_id> --force`
73
73
  - 切到图文模式 → 上传图片 → 填标题正文 → 直接点击发布(不需要用户确认)
74
74
  - 如果需要登录,询问用户手机号和验证码
75
- 5. `growth calendar update <id> --status published`
75
+ - **发布成功后,从页面或 URL 栏抓取帖子链接,记录到 publish_result**
76
+ 5. `growth calendar update <id> --status published --publish-result '{"post_url":"https://www.xiaohongshu.com/explore/..."}'`
76
77
 
77
78
  ### 选题更新
78
79
 
@@ -91,12 +92,24 @@ growth calendar update <id> --status published
91
92
 
92
93
  可用 sentinel skill 创建定时规则自动执行选题更新。
93
94
 
95
+ ### 数据回采
96
+
97
+ 每天为每个账号回采已发帖子的互动数据,用 sentinel skill 创建每日回采规则:
98
+
99
+ 1. `growth calendar list --status published` 获取已发帖子
100
+ 2. 对每篇有 `post_url` 的帖子:
101
+ - 用 browser skill 打开帖子页面(用对应账号的 `--profile`)
102
+ - 从页面抓取互动数据:浏览量、点赞、收藏、评论数
103
+ - `growth calendar update <id> --performance '{"views":1200,"likes":85,"collects":42,"comments":12}'`
104
+ 3. 根据表现数据更新关联选题的评分(`growth topics update <id> --performance-score <分数>`),表现好的选题得分更高,后续 `growth topics suggest` 会优先推荐
105
+
94
106
  ### 定时自动化
95
107
 
96
- 用 sentinel skill 创建定时规则实现全自动发布:
97
- - 为每个账号创建独立的发布规则(cron 调度)
98
- - 规则的 message 指令:加载 growth skill → 检查 pending 内容 → 生成并发布
99
- - 可创建周度内容规划规则,自动填充下一周日历
108
+ 用 sentinel skill 创建定时规则:
109
+ - **自动发布**:为每个账号创建发布规则(cron 调度),指令:加载 growth skill → 检查 pending → 生成并发布
110
+ - **选题更新**:定期搜索多平台热门内容,补充选题库
111
+ - **数据回采**:每天回采已发帖子的互动数据,更新选题评分
112
+ - **内容规划**:每周自动规划下一周日历
100
113
  - 同一用户的规则排队执行,不会并发
101
114
 
102
115
  ## 内容风格指南
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.8.66",
3
+ "version": "0.8.67",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",