connectbase-client 6.20.0 → 6.21.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  본 SDK 의 모든 주요 변경사항을 [Keep a Changelog](https://keepachangelog.com/ko/1.1.0/) 형식으로 기록합니다.
4
4
  버전은 [Semantic Versioning](https://semver.org/lang/ko/) 을 따릅니다.
5
5
 
6
+ ## [6.21.0] - 2026-11-20
7
+
8
+ ### Added — 이미지 출력 모델의 이미지를 `cb.ai.chat` / `cb.ai.chatStream` 이 돌려준다
9
+
10
+ - 앱 AI 설정에 이미지를 만드는 모델(Gemini `gemini-2.5-flash-image`, `gemini-3-pro-image-preview` 등, OpenRouter 의
11
+ 이미지 모델)을 연결하면 모델이 답에 담은 이미지가 온다. 예전에는 서버가 글만 읽고 이미지를 버렸다.
12
+ - `AIChatResponse.images?: AIGeneratedImage[]` (`{ mimeType?, url }`, `url` 은 보통 data URI), 스트림 청크의
13
+ `images`, 콜백 `onImage(image)` 가 생겼다. 이미지는 조각나지 않고 한 장씩 통째로 온다. 응답 하나에 최대 8장,
14
+ 한 장에 20MB 까지 받는다.
15
+ - Gemini 와 OpenRouter 의 이미지 모델은 도구(함수 호출)를 받지 않는다. 서버가 그런 모델에는 `tools` 를 빼고 보낸다.
16
+ - 이미지 생성 비용은 연결한 공급자가 청구하며 출력 토큰(`usage.completionTokens`)에 들어간다.
17
+
6
18
  ## [6.20.0] - 2026-11-20
7
19
 
8
20
  ### Fixed — 큐 `consume()` 을 여러 워커가 동시에 쓸 수 있다 (서버 수정)
package/dist/cli.js CHANGED
@@ -176,7 +176,7 @@ function handleTunnelError(msg, appId, localPort) {
176
176
  }
177
177
 
178
178
  // src/cli.ts
179
- var VERSION = "6.20.0" ? "6.20.0" : getPackageVersion();
179
+ var VERSION = "6.21.0" ? "6.21.0" : getPackageVersion();
180
180
  var DEFAULT_BASE_URL = "https://api.connectbase.world";
181
181
  var colors = {
182
182
  reset: "\x1B[0m",