@optima-chat/optima-agent 0.8.77 → 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
|
-
|
|
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
|
-
|
|
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
|
|
|
@@ -11,7 +11,11 @@ AI 增长官,通过多账号、多人设、多渠道的矩阵化运营实现
|
|
|
11
11
|
|
|
12
12
|
## 核心:~/growth/ 工作目录
|
|
13
13
|
|
|
14
|
-
所有操作基于用户 workspace 的 `~/growth/`
|
|
14
|
+
所有操作基于用户 workspace 的 `~/growth/` 目录。
|
|
15
|
+
|
|
16
|
+
**每次操作的第一步**:运行 `ls ~/growth/GROWTH.md` 检查目录是否已初始化。
|
|
17
|
+
- 如果文件存在 → 直接读取所需文件,执行对应操作
|
|
18
|
+
- 如果文件不存在 → 走「初始设置」流程
|
|
15
19
|
|
|
16
20
|
| 文件 | 用途 |
|
|
17
21
|
|------|------|
|
|
@@ -30,7 +34,7 @@ AI 增长官,通过多账号、多人设、多渠道的矩阵化运营实现
|
|
|
30
34
|
2. `cd ~/growth && git init && git add -A && git commit -m "init"`
|
|
31
35
|
3. 通过对话引导用户填写 GROWTH.md(产品、受众、引流、素材、内容策略、禁忌)
|
|
32
36
|
4. 根据用户回答填写 ACCOUNTS.md(建议 2-4 个人设)
|
|
33
|
-
5.
|
|
37
|
+
5. **必须**为 ACCOUNTS.md 中的每个账号加载 browser skill,用 `browser-cli launch --profile <profile-id> --url <平台URL>` 引导用户登录(不要跳过,不要留作 TODO)。profile-id 写入 ACCOUNTS.md 的「浏览器 Profile」字段。登录完成后 `browser-cli close` 释放资源
|
|
34
38
|
6. 生成初始选题(写入 TOPICS.md)和第一周日历(写入 CALENDAR.md)
|
|
35
39
|
7. `git commit -m "initial setup"`
|
|
36
40
|
|
|
@@ -39,7 +43,7 @@ AI 增长官,通过多账号、多人设、多渠道的矩阵化运营实现
|
|
|
39
43
|
1. 读 `GROWTH.md` + `ACCOUNTS.md` 获取策略和人设
|
|
40
44
|
2. 按策略生成文案,按引流策略植入产品
|
|
41
45
|
3. 配图:优先 `assets/products/` 真实素材,缺图用 gen skill 生成
|
|
42
|
-
4. 加载 browser skill
|
|
46
|
+
4. 加载 browser skill 发布到目标平台(用 `runscript --profile <profile-id>` 指定账号的浏览器 profile,profile-id 从 ACCOUNTS.md 读取)
|
|
43
47
|
5. 发布成功后更新 `CALENDAR.md`(加帖子链接)
|
|
44
48
|
6. 按 GROWTH.md 的自评话术发一条自评(如有配置)
|
|
45
49
|
7. `git commit`
|
|
@@ -17,7 +17,6 @@ description: "小红书笔记搜索、创作者分析和内容趋势研究。当
|
|
|
17
17
|
| **分析某篇笔记** | `note-detail <noteId>` | 获取笔记详情(互动数据、标签等) |
|
|
18
18
|
| **看博主主页** | `user-profile <userId>` | 粉丝数、笔记数、获赞数 |
|
|
19
19
|
| **看博主作品** | `user-notes <userId>` | 博主发布的笔记列表 |
|
|
20
|
-
| **看博主收藏** | `user-collected <userId>` | 博主收藏了什么(选品灵感) |
|
|
21
20
|
|
|
22
21
|
---
|
|
23
22
|
|
|
@@ -28,7 +27,6 @@ description: "小红书笔记搜索、创作者分析和内容趋势研究。当
|
|
|
28
27
|
- "看看这个笔记" + noteId → `scout xhs note-detail <noteId>`
|
|
29
28
|
- "看看这个博主" + userId → `scout xhs user-profile <userId>`
|
|
30
29
|
- "这个博主发了什么" → `scout xhs user-notes <userId>`
|
|
31
|
-
- "这个博主收藏了什么" → `scout xhs user-collected <userId>`
|
|
32
30
|
- "小红书上XX好不好卖" → `scout xhs search-notes "XX"` 分析互动数据
|
|
33
31
|
- "找小红书达人" → `scout xhs search-notes "品类关键词"` 从高赞笔记找创作者
|
|
34
32
|
|
|
@@ -99,12 +97,6 @@ scout xhs user-notes 5a1234567890abcdef012345 --num 30
|
|
|
99
97
|
- `--num`:数量(默认 30)
|
|
100
98
|
- `--cursor`:分页游标(翻页用)
|
|
101
99
|
|
|
102
|
-
### 用户收藏 — `scout xhs user-collected`
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
scout xhs user-collected 5a1234567890abcdef012345
|
|
106
|
-
```
|
|
107
|
-
|
|
108
100
|
---
|
|
109
101
|
|
|
110
102
|
## 数据解读
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optima-chat/optima-agent",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.79",
|
|
4
4
|
"description": "基于 Claude Agent SDK 的电商运营 AI 助手",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
"sentinel": "./dist/bin/sentinel.js",
|
|
16
16
|
"shopify": "./dist/bin/shopify.js",
|
|
17
17
|
"logistics": "./dist/bin/logistics.js",
|
|
18
|
-
"browser-cli": "./dist/bin/browser-cli.js"
|
|
19
|
-
"growth": "./dist/bin/growth.js"
|
|
18
|
+
"browser-cli": "./dist/bin/browser-cli.js"
|
|
20
19
|
},
|
|
21
20
|
"files": [
|
|
22
21
|
"dist",
|
|
@@ -52,7 +51,6 @@
|
|
|
52
51
|
"@optima-chat/browser-cli": "latest",
|
|
53
52
|
"@optima-chat/commerce-cli": "latest",
|
|
54
53
|
"@optima-chat/gen-cli": "latest",
|
|
55
|
-
"@optima-chat/growth-cli": "latest",
|
|
56
54
|
"@optima-chat/logistics-cli": "latest",
|
|
57
55
|
"@optima-chat/scout-cli": "latest",
|
|
58
56
|
"@optima-chat/sentinel-cli": "latest",
|