@optima-chat/optima-agent 0.8.60 → 0.8.62

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.
@@ -45,6 +45,18 @@ growth calendar pending # 查看待发布内容
45
45
  growth calendar update <id> --status published
46
46
  ```
47
47
 
48
+ ## style 字段说明
49
+
50
+ 每个账号的 `style` 字段是该人设的完整内容规范,不仅包含口吻风格,还可以包含:
51
+ - 口吻/语气(口语化、专业、幽默等)
52
+ - 图片风格(色调、构图、比例、数量)
53
+ - 标题格式(字数限制、结构要求)
54
+ - 正文格式(字数、分段、emoji 用法)
55
+ - 标签策略(必选标签、数量)
56
+ - 禁忌事项(禁词、禁止提及的竞品等)
57
+
58
+ **当用户对某个账号提出内容偏好时(如"图片用极客风格""标题不要超过15字""不要用蓝紫色"),必须立即用 `growth accounts update <id> --style "..."` 将新的偏好追加到现有 style 中持久化保存。** 先读取当前 style,合并新偏好,再更新。
59
+
48
60
  ## 工作流程
49
61
 
50
62
  ### 初始设置
@@ -52,8 +64,9 @@ growth calendar update <id> --status published
52
64
  当用户首次使用增长功能时:
53
65
  1. 了解用户的产品/业务和目标受众
54
66
  2. 建议 2-4 个人设方案,创建账号(`growth accounts create`)
55
- 3. 基于产品功能和目标受众生成初始选题库(`growth topics create`)
56
- 4. 生成第一周的内容日历(`growth calendar create`)
67
+ 3. 为每个账号绑定浏览器 profile:`growth accounts update <id> --browser-profile-id <账号的UUID>`(用账号 ID 作为 profile ID,首次发帖时 profile 会自动创建)
68
+ 4. 基于产品功能和目标受众生成初始选题库(`growth topics create`)
69
+ 5. 生成第一周的内容日历(`growth calendar create`)
57
70
 
58
71
  ### 日常执行
59
72
 
@@ -78,7 +91,7 @@ growth config get
78
91
 
79
92
  ### Step 2: 生成内容
80
93
  根据人设风格生成文案和配图:
81
- - 文案按人设 style 撰写
94
+ - **严格遵守账号 style 字段中的所有规范**(口吻、图片风格、标题格式、正文格式、标签策略、禁忌等)
82
95
  - **必须自然植入产品推广**:根据 `growth config get` 返回的 product_name、product_url、product_pitch,在内容中自然提及产品。植入方式因人设而异:
83
96
  - 品牌官方:直接介绍产品功能和优势
84
97
  - 素人卖家:以"我用的是XX"、"后来发现了XX"等个人体验方式提及
@@ -87,6 +100,11 @@ growth config get
87
100
  - 用 gen skill 生成小红书风格的配图,保存到本地路径
88
101
 
89
102
  ### Step 3: 启动浏览器并打开发布页
103
+ 如果账号有 `browser_profile_id`,用 `--profile` 指定该人设的独立浏览器配置(独立登录态):
104
+ ```bash
105
+ browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --profile <browser_profile_id> --force
106
+ ```
107
+ 如果没有 `browser_profile_id`,使用默认 profile:
90
108
  ```bash
91
109
  browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --force
92
110
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.8.60",
3
+ "version": "0.8.62",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",