vg-coder-cli 2.0.51 → 2.0.52
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/INTEGRATION.md
CHANGED
|
@@ -184,7 +184,7 @@ Server có thể chủ động list / đóng / mở tab AI Studio trong từng p
|
|
|
184
184
|
|---|---|---|---|
|
|
185
185
|
| `GET` | `/api/launcher/tabs` | `?label=<email>` (optional) | List tabs trong profile (hoặc all profiles nếu bỏ label) |
|
|
186
186
|
| `POST` | `/api/launcher/close-tab` | `{ workerLabel?, tabId? }` | Đóng tab cụ thể, hoặc tất cả tab AI Studio nếu bỏ `tabId` |
|
|
187
|
-
| `POST` | `/api/launcher/open-tab` | `{ workerLabel?, model?, url?, active? }` | Mở tab mới. `model` mặc định `gemini-3-flash-preview` |
|
|
187
|
+
| `POST` | `/api/launcher/open-tab` | `{ workerLabel?, model?, url?, active? }` | Mở tab mới. `model` mặc định `gemini-3-flash-preview`. Response v2.0.52+ kèm `requested_model` / `actual_model` / `fallback_occurred` để detect AI Studio silent-fallback (account thiếu access tới preview model) |
|
|
188
188
|
|
|
189
189
|
```bash
|
|
190
190
|
# List tab tất cả profile
|
|
@@ -197,6 +197,26 @@ curl -X POST -d '{"workerLabel":"alice@gmail.com","model":"gemini-3-flash-previe
|
|
|
197
197
|
-H 'Content-Type: application/json' http://127.0.0.1:6868/api/launcher/open-tab
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
+
`open-tab` response (v2.0.52+):
|
|
201
|
+
|
|
202
|
+
```json
|
|
203
|
+
{
|
|
204
|
+
"ok": true,
|
|
205
|
+
"tabId": 477055248,
|
|
206
|
+
"windowId": 477055217,
|
|
207
|
+
"url": "https://aistudio.google.com/prompts/new_chat?model=gemini-3-flash-preview",
|
|
208
|
+
"requested_url": "https://aistudio.google.com/prompts/new_chat?model=gemini-3-pro-preview",
|
|
209
|
+
"requested_model": "gemini-3-pro-preview",
|
|
210
|
+
"actual_model": "gemini-3-flash-preview",
|
|
211
|
+
"fallback_occurred": true
|
|
212
|
+
}
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Khi `fallback_occurred: true` — AI Studio đã redirect sang model khác do account
|
|
216
|
+
không có access. Client nên check field này để fail-fast hoặc retry với model
|
|
217
|
+
khác. Trước v2.0.52, response chỉ trả URL request → silent quality degradation
|
|
218
|
+
không detect được.
|
|
219
|
+
|
|
200
220
|
### Modal auto-handling
|
|
201
221
|
|
|
202
222
|
AI Studio thỉnh thoảng pop modal chặn task. Worker tự detect + click button đúng (poll mỗi 400 ms):
|
package/package.json
CHANGED