@optima-chat/optima-agent 0.8.79 → 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.
|
@@ -96,19 +96,17 @@ browser-cli script-task <task-id> # 查询执行状态
|
|
|
96
96
|
|
|
97
97
|
浏览器支持命名 Profile,用于隔离不同账号的登录态(cookies、session)。
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
**当有明确的账号身份时(如多账号运营),必须使用 `--profile`。** 省略 `--profile` 会使用默认 Profile,导致不同账号登录态互相覆盖。
|
|
100
|
+
|
|
101
|
+
- **命名 Profile**:`--profile <id>` 隔离不同账号的登录态,`launch` 和 `runscript` 都支持
|
|
101
102
|
- **登录态自动持久化**:Profile 数据在浏览器运行时实时保存到磁盘,不依赖 close
|
|
102
103
|
- **首次登录**:需要用户提供账号和验证码
|
|
103
104
|
- **后续使用**:自动恢复登录态,无需重新登录
|
|
105
|
+
- **login_required 处理**:如果 `runscript` 报此错误,用 `browser-cli launch --profile <id> --url <平台URL>` 引导用户重新登录
|
|
104
106
|
|
|
105
107
|
```bash
|
|
106
|
-
#
|
|
107
|
-
browser-cli launch --url https://creator.xiaohongshu.com
|
|
108
|
-
|
|
109
|
-
# 多账号(命名 Profile)
|
|
108
|
+
# 登录到指定 Profile
|
|
110
109
|
browser-cli launch --profile xhs-tech --url https://creator.xiaohongshu.com
|
|
111
|
-
browser-cli launch --profile xhs-diary --url https://creator.xiaohongshu.com
|
|
112
110
|
|
|
113
111
|
# 用指定 Profile 执行脚本
|
|
114
112
|
browser-cli runscript xiaohongshu-image-note --profile xhs-tech --param title="..."
|
|
@@ -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
|
|