front/xhs-agent-desktop/README.md
zzh 5a26ae0048 feat: 小红书模块迁移、登录重构与 xhs-agent-desktop 桌面 Agent
- 新增小红书前端模块(启动服务、内容分析、爆款创作、发布记录、技能卡片、拟人设置、AI 助手)

- 新增 xhs-agent-desktop 独立桌面 Agent,对接 OMS 任务调度

- 登录页重构,整合微信登录与 OMS JWT 认证

- 订单、渠道、用户中心等页面与 API 增强

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 16:13:13 +08:00

48 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# OMS 小红书 Agent 桌面端
**替代 LIKE AI 的独立程序**:内置 Chrome 扩展、Bridge 引擎与自动化脚本,只需本程序 + OMS 网页即可使用。
## 架构
```
OMS 网页(编排任务) ←→ HTTPS + JWT ←→ 本桌面端(执行浏览器操作)
├── engine/extension Chrome 扩展
├── engine/scripts 自动化 CLI
└── engine/xhs_bridge Bridge 服务
```
网页负责:内容分析、爆款创作、发布记录、拟人设置、AI 助手配置等。
桌面端负责:连接 OMS、启停引擎、执行网页下发的任务。
## 安装
```powershell
cd E:\oms0414\xhs-agent-desktop
.\run.ps1
```
首次运行会自动创建 `.venv` 并安装依赖。
## 使用
1. 网页登录 OMS → **小红书 → 启动服务 → Agent 连接指南**
2. 复制 **API 地址**、**JWT Token** 到桌面端
3. 点击 **连接 OMS**
4. **启动引擎**,在 Chrome `chrome://extensions` 加载扩展目录(界面已显示路径)
5. 打开小红书登录;网页即可远程控制
## 开发说明
`engine/` 目录为从 LIKE AI 提取的运行时(无 GUI)。后续可在 OMS 仓库内独立演进,不再依赖外部 LIKE AI 安装。
更新运行时(可选):
```powershell
.\sync-engine.ps1
```
## 联调
- 前端 dev 时 API 地址填 `http://localhost:5173/admin`(Vite 代理)
- Agent 必须能访问真实 Admin API,不能用仅静态资源的地址