@optima-chat/optima-agent 0.8.5 → 0.8.6

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.
@@ -56,7 +56,8 @@ Homepage
56
56
  **images 数组元素**:
57
57
  | 字段 | 必填 | 说明 |
58
58
  |------|------|------|
59
- | url | ✓ | 图片 URL |
59
+ | url | ✓ | 桌面端图片 URL |
60
+ | mobile_url | | 手机端专用图片 URL(3:4 竖向,可选) |
60
61
  | alt | ✓ | 图片描述(SEO + 可访问性) |
61
62
  | action_type | ✓ | 点击动作类型(见下方) |
62
63
  | action_value | | 动作目标值 |
@@ -74,7 +75,7 @@ Homepage
74
75
  ```json
75
76
  {
76
77
  "images": [
77
- {"url": "https://cdn.../summer.jpg", "alt": "夏日促销", "action_type": "collection", "action_value": "summer-sale"},
78
+ {"url": "https://cdn.../summer.jpg", "mobile_url": "https://cdn.../summer-mobile.jpg", "alt": "夏日促销", "action_type": "collection", "action_value": "summer-sale"},
78
79
  {"url": "https://cdn.../promo.jpg", "alt": "活动页面", "action_type": "url", "action_value": "https://promo.example.com/event"},
79
80
  {"url": "https://cdn.../hero.jpg", "alt": "品牌形象", "action_type": "none", "action_value": null}
80
81
  ],
@@ -320,5 +321,6 @@ commerce i18n homepage set \
320
321
  - **区块顺序**:使用 `reorder` 调整,position 从 0 开始
321
322
  - **模板切换**:会创建新区块并停用旧区块,谨慎操作
322
323
  - **图片格式**:banner images 需要完整的 JSON 数组,每个元素必须有 url 和 alt
324
+ - **手机端图片**:可选提供 mobile_url(3:4 竖向),有 mobile_url 时手机端显示竖向大图,无则保持 16:9 横向
323
325
  - **集合引用**:确保引用的 collection slug 存在,否则前端可能显示空
324
326
  - **删除确认**:删除操作需要 `--yes` 参数
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",