@optima-chat/optima-agent 0.8.78 → 0.8.80
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,23 @@ browser-cli script-task <task-id> # 查询执行状态
|
|
|
94
94
|
|
|
95
95
|
## 登录与 Profile
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
浏览器支持命名 Profile,用于隔离不同账号的登录态(cookies、session)。
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
**当有明确的账号身份时(如多账号运营),必须使用 `--profile`。** 省略 `--profile` 会使用默认 Profile,导致不同账号登录态互相覆盖。
|
|
100
|
+
|
|
101
|
+
- **命名 Profile**:`--profile <id>` 隔离不同账号的登录态,`launch` 和 `runscript` 都支持
|
|
102
|
+
- **登录态自动持久化**:Profile 数据在浏览器运行时实时保存到磁盘,不依赖 close
|
|
103
|
+
- **首次登录**:需要用户提供账号和验证码
|
|
100
104
|
- **后续使用**:自动恢复登录态,无需重新登录
|
|
101
|
-
-
|
|
105
|
+
- **login_required 处理**:如果 `runscript` 报此错误,用 `browser-cli launch --profile <id> --url <平台URL>` 引导用户重新登录
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# 登录到指定 Profile
|
|
109
|
+
browser-cli launch --profile xhs-tech --url https://creator.xiaohongshu.com
|
|
102
110
|
|
|
103
|
-
|
|
111
|
+
# 用指定 Profile 执行脚本
|
|
112
|
+
browser-cli runscript xiaohongshu-image-note --profile xhs-tech --param title="..."
|
|
113
|
+
```
|
|
104
114
|
|
|
105
115
|
## 文件路径
|
|
106
116
|
|
|
@@ -33,8 +33,8 @@ AI 增长官,通过多账号、多人设、多渠道的矩阵化运营实现
|
|
|
33
33
|
1. 从 skill 的 `template/` 目录复制到 `~/growth/`
|
|
34
34
|
2. `cd ~/growth && git init && git add -A && git commit -m "init"`
|
|
35
35
|
3. 通过对话引导用户填写 GROWTH.md(产品、受众、引流、素材、内容策略、禁忌)
|
|
36
|
-
4. 根据用户回答填写 ACCOUNTS.md(建议 2-4
|
|
37
|
-
5.
|
|
36
|
+
4. 根据用户回答填写 ACCOUNTS.md(建议 2-4 个人设)。为每个账号生成 `浏览器 Profile` ID,格式为 `{平台}-{英文短名}`(如 `xhs-tech`、`xhs-diary`、`douyin-expert`),写入 ACCOUNTS.md
|
|
37
|
+
5. **必须**为每个账号加载 browser skill,用 `browser-cli launch --profile <profile-id> --url <平台URL>` 引导用户登录(不要跳过,不要留作 TODO)。登录完成后 `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`
|