@optima-chat/optima-agent 0.8.78 → 0.8.79

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.
@@ -94,13 +94,25 @@ browser-cli script-task <task-id> # 查询执行状态
94
94
 
95
95
  ## 登录与 Profile
96
96
 
97
- 浏览器自动为每个用户保持一个持久化的 Chrome Profile。所有平台的登录态(cookies、session)保存在同一个 Profile 中。
97
+ 浏览器支持命名 Profile,用于隔离不同账号的登录态(cookies、session)。
98
98
 
99
- - **首次登录**:需要用户提供账号和验证码,登录后自动保存
99
+ - **默认 Profile**:不指定 `--profile` 时使用默认 Profile,所有平台登录态共存
100
+ - **命名 Profile**:用 `--profile <id>` 隔离不同账号,适合多账号场景(如多个小红书号)
101
+ - **登录态自动持久化**:Profile 数据在浏览器运行时实时保存到磁盘,不依赖 close
102
+ - **首次登录**:需要用户提供账号和验证码
100
103
  - **后续使用**:自动恢复登录态,无需重新登录
101
- - **多平台**:小红书、抖音、微博等登录态共存于同一个 Profile
102
104
 
103
- 无需任何参数或命令来管理 Profile,完全自动。
105
+ ```bash
106
+ # 单账号(默认 Profile)
107
+ browser-cli launch --url https://creator.xiaohongshu.com
108
+
109
+ # 多账号(命名 Profile)
110
+ browser-cli launch --profile xhs-tech --url https://creator.xiaohongshu.com
111
+ browser-cli launch --profile xhs-diary --url https://creator.xiaohongshu.com
112
+
113
+ # 用指定 Profile 执行脚本
114
+ browser-cli runscript xiaohongshu-image-note --profile xhs-tech --param title="..."
115
+ ```
104
116
 
105
117
  ## 文件路径
106
118
 
@@ -34,7 +34,7 @@ AI 增长官,通过多账号、多人设、多渠道的矩阵化运营实现
34
34
  2. `cd ~/growth && git init && git add -A && git commit -m "init"`
35
35
  3. 通过对话引导用户填写 GROWTH.md(产品、受众、引流、素材、内容策略、禁忌)
36
36
  4. 根据用户回答填写 ACCOUNTS.md(建议 2-4 个人设)
37
- 5. 为每个账号加载 browser skill 引导登录平台
37
+ 5. **必须**为 ACCOUNTS.md 中的每个账号加载 browser skill,用 `browser-cli launch --profile <profile-id> --url <平台URL>` 引导用户登录(不要跳过,不要留作 TODO)。profile-id 写入 ACCOUNTS.md 的「浏览器 Profile」字段。登录完成后 `browser-cli close` 释放资源
38
38
  6. 生成初始选题(写入 TOPICS.md)和第一周日历(写入 CALENDAR.md)
39
39
  7. `git commit -m "initial setup"`
40
40
 
@@ -43,7 +43,7 @@ AI 增长官,通过多账号、多人设、多渠道的矩阵化运营实现
43
43
  1. 读 `GROWTH.md` + `ACCOUNTS.md` 获取策略和人设
44
44
  2. 按策略生成文案,按引流策略植入产品
45
45
  3. 配图:优先 `assets/products/` 真实素材,缺图用 gen skill 生成
46
- 4. 加载 browser skill 发布到目标平台
46
+ 4. 加载 browser skill 发布到目标平台(用 `runscript --profile <profile-id>` 指定账号的浏览器 profile,profile-id 从 ACCOUNTS.md 读取)
47
47
  5. 发布成功后更新 `CALENDAR.md`(加帖子链接)
48
48
  6. 按 GROWTH.md 的自评话术发一条自评(如有配置)
49
49
  7. `git commit`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.8.78",
3
+ "version": "0.8.79",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",