@optima-chat/optima-agent 0.4.13 → 0.4.14

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.
@@ -11,13 +11,13 @@ description: "生成和编辑图片/视频。使用场景:生成图片(generat
11
11
 
12
12
  ```bash
13
13
  # 文生图
14
- comfy image "提示词" -o /工作目录/result.png
14
+ comfy image "提示词" -o /home/aiuser/project/result.png
15
15
 
16
16
  # 图片编辑/风格转换
17
- comfy image "转成水彩风格" -i photo.png -o /工作目录/result.png
17
+ comfy image "转成水彩风格" -i photo.png -o /home/aiuser/project/result.png
18
18
 
19
19
  # 读取并描述结果
20
- Read /工作目录/result.png
20
+ Read /home/aiuser/project/result.png
21
21
  ```
22
22
 
23
23
  ### comfy image 命令
@@ -44,15 +44,15 @@ comfy image <prompt> [options]
44
44
  #### 文生图
45
45
 
46
46
  ```bash
47
- comfy image "a cute fluffy cat sitting on a windowsill, natural lighting" -o /Users/john/project/cat.png
48
- Read /Users/john/project/cat.png
47
+ comfy image "a cute fluffy cat sitting on a windowsill, natural lighting" -o /home/aiuser/project/cat.png
48
+ Read /home/aiuser/project/cat.png
49
49
  ```
50
50
 
51
51
  #### 图片风格转换
52
52
 
53
53
  ```bash
54
- comfy image "watercolor painting style, artistic brushstrokes" -i photo.jpg -o /Users/john/project/watercolor.png
55
- Read /Users/john/project/watercolor.png
54
+ comfy image "watercolor painting style, artistic brushstrokes" -i photo.jpg -o /home/aiuser/project/watercolor.png
55
+ Read /home/aiuser/project/watercolor.png
56
56
  ```
57
57
 
58
58
  #### 多图风格融合
@@ -60,8 +60,8 @@ Read /Users/john/project/watercolor.png
60
60
  将第一张图的风格应用到第二张图的内容上:
61
61
 
62
62
  ```bash
63
- comfy image "apply the artistic style from image 1 to the content of image 2" -i style.png -i content.png -o /Users/john/project/fusion.png
64
- Read /Users/john/project/fusion.png
63
+ comfy image "apply the artistic style from image 1 to the content of image 2" -i style.png -i content.png -o /home/aiuser/project/fusion.png
64
+ Read /home/aiuser/project/fusion.png
65
65
  ```
66
66
 
67
67
  #### 多图元素组合
@@ -69,7 +69,7 @@ Read /Users/john/project/fusion.png
69
69
  从多张图中提取元素组合成新图:
70
70
 
71
71
  ```bash
72
- comfy image "The person from image 1 is petting the cat from image 2, in a cozy living room" -i person.jpg -i cat.jpg -o /Users/john/project/combined.png
72
+ comfy image "The person from image 1 is petting the cat from image 2, in a cozy living room" -i person.jpg -i cat.jpg -o /home/aiuser/project/combined.png
73
73
  ```
74
74
 
75
75
  #### 精确颜色控制
@@ -77,13 +77,13 @@ comfy image "The person from image 1 is petting the cat from image 2, in a cozy
77
77
  使用 hex code 指定精确颜色:
78
78
 
79
79
  ```bash
80
- comfy image "a modern logo with brand color #02eb3c as the primary accent" -o /Users/john/project/logo.png
80
+ comfy image "a modern logo with brand color #02eb3c as the primary accent" -o /home/aiuser/project/logo.png
81
81
  ```
82
82
 
83
83
  #### 产品海报
84
84
 
85
85
  ```bash
86
- comfy image "Disney Pixar style 3D poster, [产品描述], cute character, vibrant gradient background, professional studio lighting" -W 1024 -H 1024 -o /Users/john/project/poster.png
86
+ comfy image "Disney Pixar style 3D poster, [产品描述], cute character, vibrant gradient background, professional studio lighting" -W 1024 -H 1024 -o /home/aiuser/project/poster.png
87
87
  ```
88
88
 
89
89
  ### 提示词指南(FLUX.2)
@@ -163,7 +163,7 @@ comfy video <图片路径> [options]
163
163
  |------|------|--------|
164
164
  | `-p, --prompt` | 运动/内容描述(最长 1500 字) | - |
165
165
  | `-n, --negative` | 负向提示词(最长 500 字) | - |
166
- | `-o, --output <path>` | 输出目录或完整路径 | ./comfy-output |
166
+ | `-o, --output <path>` | 输出目录或完整路径 | - |
167
167
  | `-r, --resolution` | 720P \| 1080P | 1080P |
168
168
  | `-d, --duration` | 5 \| 10 \| 15 秒 | 5 |
169
169
  | `--shot-type` | single \| multi(多镜头叙事) | single |
@@ -189,12 +189,12 @@ comfy video story.png --shot-type multi -d 15 --prompt "a day in the life"
189
189
  comfy video product.png --no-audio --prompt "360 degree rotation"
190
190
 
191
191
  # 指定输出路径
192
- comfy video scene.png -o /Users/john/project/result.mp4 --prompt "camera zoom"
193
- Read /Users/john/project/result.mp4
192
+ comfy video scene.png -o /home/aiuser/project/result.mp4 --prompt "camera zoom"
193
+ Read /home/aiuser/project/result.mp4
194
194
  ```
195
195
 
196
196
  ### 注意事项
197
197
 
198
198
  - 输入图片:360-2000px,≤10MB,推荐 1080P 比例
199
199
  - 输出规格:30fps,MP4 (H.264)
200
- - 默认输出到 `./comfy-output/`,可用 `-o` 指定
200
+ - 必须用 `-o` 指定输出路径
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",