@optima-chat/comfy-cli 0.6.0 → 0.6.2

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.
@@ -34,9 +34,9 @@ comfy video <图像路径> [-p "运动描述"] [-n "负面提示"] [--width 512]
34
34
 
35
35
  **下载结果:**
36
36
  ```bash
37
- comfy download <PROMPT_ID> [-o ./comfy-output] [--pretty]
37
+ comfy download <PROMPT_ID> [-o ./output] [--pretty]
38
38
  ```
39
- - 下载生成的图像/视频到本地目录
39
+ - 下载生成的图像/视频到本地目录(默认:./output)
40
40
 
41
41
  ### 工作流管理
42
42
 
@@ -70,8 +70,8 @@ comfy system stats [--pretty] # GPU/CPU/内存状态
70
70
  ### 配置
71
71
 
72
72
  ```bash
73
- comfy config set server http://localhost:8188 # 设置服务器地址(首次必需)
74
73
  comfy config list [--pretty] # 查看当前配置
74
+ comfy config set server http://localhost:8188 # 更改服务器地址(可选,默认 http://dev.optima.chat:8188)
75
75
  ```
76
76
 
77
77
  ### 输出格式
@@ -85,7 +85,7 @@ comfy config list [--pretty] # 查看当前配置
85
85
  ```bash
86
86
  comfy generate "a cute cat"
87
87
  ```
88
- 返回包含 `prompt_id` `outputs`(图像文件路径)的 JSON
88
+ 返回包含 `prompt_id` 和状态的 JSON,等待完成后使用 `comfy download <prompt_id>` 下载
89
89
 
90
90
  ### 示例 2:高分辨率图像
91
91
  ```bash
@@ -114,15 +114,23 @@ comfy queue status
114
114
  ```bash
115
115
  # 1. 生成图像
116
116
  comfy generate "a portrait of a woman"
117
- # 输出:./comfy-output/image_001.png
117
+ # 返回 prompt_id,等待完成后使用 comfy download 下载
118
118
 
119
- # 2. 编辑图像
120
- comfy edit ./comfy-output/image_001.png "add cinematic lighting"
121
- # 输出:./comfy-output/image_002.png
119
+ # 2. 下载第一张图像
120
+ comfy download <prompt_id_1>
121
+ # 输出:./output/comfy-cli_00001_.png
122
122
 
123
- # 3. 生成视频
124
- comfy video ./comfy-output/image_002.png --prompt "slow motion"
125
- # 输出:./comfy-output/video_001.mp4
123
+ # 3. 编辑图像
124
+ comfy edit ./output/comfy-cli_00001_.png "add cinematic lighting"
125
+ # 返回 prompt_id,等待完成后下载
126
+
127
+ # 4. 下载编辑后的图像
128
+ comfy download <prompt_id_2>
129
+ # 输出:./output/comfy-cli_00002_.png
130
+
131
+ # 5. 生成视频
132
+ comfy video ./output/comfy-cli_00002_.png --prompt "slow motion"
133
+ # 返回 prompt_id,等待完成后下载
126
134
  ```
127
135
 
128
136
  ### 示例 7:检查状态和下载
@@ -140,7 +148,7 @@ comfy download abc123
140
148
 
141
149
  ### 重要提示
142
150
 
143
- - 首次使用前必须配置服务器地址:`comfy config set server http://localhost:8188`
151
+ - 默认连接到 `http://dev.optima.chat:8188`,如需使用本地服务器:`comfy config set server http://localhost:8188`
144
152
  - 默认输出 JSON 格式,适合 AI 解析
145
153
  - 使用 `--pretty` 获取人类可读输出
146
154
  - 默认等待完成并显示实时进度,使用 `--no-wait` 跳过等待
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/comfy-cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "A CLI tool for ComfyUI designed for LLM interactions",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",