@mindscraft/branch-video-agent-cli 0.3.4 → 0.3.5

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.
package/README.md CHANGED
@@ -116,7 +116,7 @@ AIHub 导入公共库示例:
116
116
 
117
117
  `character search` 只返回已经人工添加 `accepted_for_reuse` 标签的角色资产;新入库资产默认未验收,需要在角色资产库页面验收后才会被 Agent 二次复用。
118
118
 
119
- AI Gateway 图片生成示例:
119
+ AI Gateway 图片生成示例:
120
120
 
121
121
  ```powershell
122
122
  @'
@@ -124,8 +124,24 @@ AI Gateway 图片生成示例:
124
124
  "model": "doubao-seedream-5-0-260128",
125
125
  "prompt": "3D 卡通风格,穿白大褂的喵星人科学老师在实验室讲解电路"
126
126
  }
127
- '@ | npm exec --yes --package=@mindscraft/branch-video-agent-cli branch-video-agent -- ai-gateway image-generate -- --raw
128
- ```
127
+ '@ | npm exec --yes --package=@mindscraft/branch-video-agent-cli branch-video-agent -- ai-gateway image-generate -- --raw
128
+ ```
129
+
130
+ AI Gateway Banana Pro 同步生成示例(实际模型值为 `gemini-3-pro-image-preview`):
131
+
132
+ ```powershell
133
+ @'
134
+ {
135
+ "model": "gemini-3-pro-image-preview",
136
+ "prompt": "一幅写实风格的山水画,远处有云雾缭绕的山峰",
137
+ "size": "16:9",
138
+ "image_size_ratios": "2K",
139
+ "output_format": "image/png"
140
+ }
141
+ '@ | npm exec --yes --package=@mindscraft/branch-video-agent-cli branch-video-agent -- ai-gateway image-generate -- --raw
142
+ ```
143
+
144
+ Banana Pro 图片编辑继续使用 `ai-gateway image-edit`,请求体为 JSON,`image` 是 HTTP(S) URL 字符串数组;GPT Image 2 编辑仍使用 multipart 文件描述。Banana Pro 当前只支持同步调用,不使用 `--wait`。响应通常包含 `data[].b64_json`,不要把完整 base64 写进 Agent 回复或持久化日志。
129
145
 
130
146
  AI Gateway 视频生成并等待示例:
131
147
 
@@ -98,6 +98,8 @@ async function waitForGatewayTask(context, submit, poll) {
98
98
  throw new CliCommandError('AI Gateway wait timed out', 'TIMEOUT', { submit });
99
99
  }
100
100
  function normalizeImageEditPayload(payload) {
101
+ if (payload.model === 'gemini-3-pro-image-preview')
102
+ return payload;
101
103
  if (payload.fields || payload.files)
102
104
  return payload;
103
105
  const files = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindscraft/branch-video-agent-cli",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Published CLI for branch-video and AIHub agent APIs.",
5
5
  "type": "module",
6
6
  "bin": {