@kolbo/mcp 1.96.1 → 1.96.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.
- package/package.json +1 -1
- package/src/apps/theme.js +1 -1
- package/src/apps/widgets/generation.js +15 -2
- package/src/tools/generate.js +4 -4
package/package.json
CHANGED
package/src/apps/theme.js
CHANGED
|
@@ -85,7 +85,7 @@ body {
|
|
|
85
85
|
.k-prompt { color: var(--text-muted); font-size: 12.5px; margin-bottom: 4px; word-break: break-word;
|
|
86
86
|
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
|
87
87
|
user-select: text; -webkit-user-select: text; cursor: text; }
|
|
88
|
-
.k-prompt.expanded { -webkit-line-clamp: unset; }
|
|
88
|
+
.k-prompt.expanded { -webkit-line-clamp: unset; white-space: pre-wrap; }
|
|
89
89
|
.k-text-tools { display: flex; gap: 2px; justify-content: flex-end; margin: 0 0 10px; }
|
|
90
90
|
.k-text-btn {
|
|
91
91
|
display: inline-flex; align-items: center; gap: 4px;
|
|
@@ -135,6 +135,8 @@ function makeExpandable(node, raw) {
|
|
|
135
135
|
// Synchronous layout read — rAF would never fire in a hidden/backgrounded
|
|
136
136
|
// iframe, leaving long prompts stuck without the expand affordance.
|
|
137
137
|
var overflow = node.scrollHeight > node.clientHeight + 2 || node.scrollWidth > node.clientWidth + 2;
|
|
138
|
+
// Hidden host iframes report zero dimensions. Long prompts still need an expand button.
|
|
139
|
+
if (node.id === 'prompt' && text.length > 120) overflow = true;
|
|
138
140
|
if (overflow) node.classList.add('k-clamped');
|
|
139
141
|
var tools = document.createElement('div');
|
|
140
142
|
tools.className = 'k-text-tools';
|
|
@@ -282,6 +284,15 @@ function displayKind(sc) {
|
|
|
282
284
|
return kind || 'image';
|
|
283
285
|
}
|
|
284
286
|
|
|
287
|
+
function resolutionLabel(sc) {
|
|
288
|
+
var s = sc.settings || {};
|
|
289
|
+
var resolution = String(s.resolution || '');
|
|
290
|
+
var model = String(sc.model || '');
|
|
291
|
+
var draft = /-draft$/i.test(resolution) || /-draft$/i.test(model) || s.is_draft === true || sc.is_draft === true;
|
|
292
|
+
var pixels = resolution.replace(/-draft$/i, '');
|
|
293
|
+
return draft ? (pixels ? pixels + ' Draft' : 'Draft') : resolution;
|
|
294
|
+
}
|
|
295
|
+
|
|
285
296
|
function renderChips(sc) {
|
|
286
297
|
var h = modelChipHTML(modelLabel(sc), sc.model_icon);
|
|
287
298
|
var s = sc.settings || {};
|
|
@@ -293,7 +304,8 @@ function renderChips(sc) {
|
|
|
293
304
|
var shotLabel = s.shots > 1 ? (s.shots + ' shots') : (s.multi_shot ? 'multishot' : '');
|
|
294
305
|
if (s.duration) h += chip(ICONS.clock + ' ' + fmtDur(s.duration) + (shotLabel ? ' · ' + shotLabel : ''));
|
|
295
306
|
else if (shotLabel) h += chip(shotLabel);
|
|
296
|
-
|
|
307
|
+
var resolutionText = resolutionLabel(sc);
|
|
308
|
+
if (resolutionText) h += chip(esc(resolutionText));
|
|
297
309
|
if (s.aspect_ratio) h += chip(esc(s.aspect_ratio));
|
|
298
310
|
if (s.quality) h += chip(esc(s.quality) + ' quality');
|
|
299
311
|
if (s.enhance_prompt) h += chip(ICONS.sparkle + ' enhanced');
|
|
@@ -1343,7 +1355,7 @@ function openPromptRow(placeholder, onSend) {
|
|
|
1343
1355
|
var PRE_IMAGE_KEYS = ['source_images', 'reference_images', 'image_url', 'mask_image_url',
|
|
1344
1356
|
'additional_images', 'first_frame', 'last_frame', 'seed_reference_image_url',
|
|
1345
1357
|
'elements', 'files', 'keyframes', 'source'];
|
|
1346
|
-
var PRE_VIDEO_KEYS = ['source_video', 'reference_videos'];
|
|
1358
|
+
var PRE_VIDEO_KEYS = ['source_video', 'video_url', 'reference_videos'];
|
|
1347
1359
|
var PRE_AUDIO_KEYS = ['audio', 'audio_url', 'reference_audio_urls', 'seed_reference_audio_urls'];
|
|
1348
1360
|
|
|
1349
1361
|
// The card mounts the moment the tool is CALLED, so the only thing it knows is
|
|
@@ -1375,6 +1387,7 @@ function preRefSc(toolName, a) {
|
|
|
1375
1387
|
PRE_AUDIO_KEYS.forEach(function (k) { take(a[k], aud); });
|
|
1376
1388
|
return {
|
|
1377
1389
|
tool: toolName,
|
|
1390
|
+
is_draft: /-draft$/i.test(String(a.model || '')),
|
|
1378
1391
|
kind: kindFromTool(toolName, null),
|
|
1379
1392
|
count: a.num_images || (Array.isArray(a.prompts) ? a.prompts.length : 1),
|
|
1380
1393
|
reference_images: img,
|
package/src/tools/generate.js
CHANGED
|
@@ -617,7 +617,7 @@ function registerGenerateTools(server, client, options = {}) {
|
|
|
617
617
|
// retired textToVideoGeneration path and was stale.
|
|
618
618
|
server.tool(
|
|
619
619
|
'generate_video',
|
|
620
|
-
'Generate a video from a text prompt using Kolbo AI. For SEVERAL different videos, pass all their prompts in `prompts` in ONE call (one combined widget) — never a series of separate calls. For animating an existing still image into motion, use generate_video_from_image instead. For a coordinated multi-scene video campaign, use generate_creative_director with workflow_type="video". Supports reference images (for style/composition guidance) and Visual DNA for character consistency. Seedance 2/2.5 PERFORM quoted dialogue natively (synced voice, lip movement, room tone) — do not route scene dialogue to generate_speech or generate_lipsync; write it in ENGLISH or Latin transliteration of Hebrew ("shalom"), never Hebrew script — Seedance 2/2.5 do not speak Hebrew; prefer Gemini Omni Flash 1.1 or Gemini Omni 1 for native Hebrew. Resolution is a credit MULTIPLIER (vs 720p: 480p x0.44, 1080p x2.25, 4k x4.95), so
|
|
620
|
+
'Generate a video from a text prompt using Kolbo AI. For SEVERAL different videos, pass all their prompts in `prompts` in ONE call (one combined widget) — never a series of separate calls. For animating an existing still image into motion, use generate_video_from_image instead. For a coordinated multi-scene video campaign, use generate_creative_director with workflow_type="video". Supports reference images (for style/composition guidance) and Visual DNA for character consistency. Seedance 2/2.5 PERFORM quoted dialogue natively (synced voice, lip movement, room tone) — do not route scene dialogue to generate_speech or generate_lipsync; write it in ENGLISH or Latin transliteration of Hebrew ("shalom"), never Hebrew script — Seedance 2/2.5 do not speak Hebrew; prefer Gemini Omni Flash 1.1 or Gemini Omni 1 for native Hebrew. Resolution is a credit MULTIPLIER (vs 720p: 480p x0.44, 1080p x2.25, 4k x4.95), so use a lower resolution for previews. For actual Seedance 2.5 Draft, explicitly pass resolution="480p-draft" with model="seedance-2-5", then use edit_video draft_quote/draft_enhance for paid finalization. Plain "480p" is a regular generation, not Draft. ROUTE BEFORE CALLING: when reference images anchor IDENTITY (specific characters, a specific product, a location that must match) — especially 2+ of them — that is generate_elements, not this tool; reference_images here are loose style/composition hints. Decide the right tool FIRST: a mis-routed call still starts a PAID generation, and switching tools afterwards without cancel_generation leaves the user paying for both. Returns the final video URL when complete.',
|
|
621
621
|
{
|
|
622
622
|
prompt: z.string().optional().describe('Text description of the video to generate. Required unless `prompts` is provided.'),
|
|
623
623
|
prompts: promptsField('videos'),
|
|
@@ -1442,7 +1442,7 @@ function registerGenerateTools(server, client, options = {}) {
|
|
|
1442
1442
|
preset_id: z.string().optional().describe('Preset ID from list_presets type="video" (optional)'),
|
|
1443
1443
|
enhance_prompt: z.boolean().optional().describe('Enhance the prompt. Default: false — only pass true if the user explicitly asks to enhance/improve the prompt.'),
|
|
1444
1444
|
visual_dna_ids: z.array(z.string()).optional().describe('Array of Visual DNA profile IDs to apply for character/style consistency across outputs. **Cap: pass at most `max_visual_dna` IDs from list_models for the chosen model.**'),
|
|
1445
|
-
resolution: z.string().optional().describe('Video resolution
|
|
1445
|
+
resolution: z.string().optional().describe('Video resolution or named tier: read supported_resolutions from list_models. For Seedance 2.5 Draft explicitly use model="seedance-2-5", resolution="480p-draft". Plain "480p" generates regular video, NOT Draft. Finalize an actual draft with edit_video operation="draft_quote" then "draft_enhance".'),
|
|
1446
1446
|
sound_enabled: z.boolean().optional().describe('Enable (`true`) or disable (`false`) AI-generated synced audio on the output video. Honored by `sound_generation_type: "native"` models (Kling O3/V3, Veo 3.1, PixVerse V6). Omit to use `sound_enabled_by_default`. Enabling sound may apply `sound_credit_multiplier` to cost.'),
|
|
1447
1447
|
keyframes: z.array(z.object({
|
|
1448
1448
|
image_url: z.string().describe('Public URL of the keyframe image'),
|
|
@@ -1639,7 +1639,7 @@ function registerGenerateTools(server, client, options = {}) {
|
|
|
1639
1639
|
aspect_ratio: z.string().optional().describe(aspectRatioDescribe('16:9') + ' Auto-detected from the first frame if omitted.'),
|
|
1640
1640
|
enhance_prompt: z.boolean().optional().describe('Enhance the prompt. Default: false — only pass true if the user explicitly asks to enhance/improve the prompt.'),
|
|
1641
1641
|
visual_dna_ids: z.array(z.string()).optional().describe('Array of Visual DNA profile IDs to apply. **Cap: pass at most `max_visual_dna` IDs from list_models for the chosen model; if `supports_visual_dna: false`, DNA is silently ignored.**'),
|
|
1642
|
-
resolution: z.string().optional().describe('Video resolution
|
|
1642
|
+
resolution: z.string().optional().describe('Video resolution or named tier: read supported_resolutions from list_models. For Seedance 2.5 Draft explicitly use model="seedance-2-5", resolution="480p-draft". Plain "480p" generates regular video, NOT Draft. Finalize an actual draft with edit_video operation="draft_quote" then "draft_enhance".'),
|
|
1643
1643
|
sound_enabled: z.boolean().optional().describe('Enable (`true`) or disable (`false`) AI-generated synced audio on the output video. Honored by `sound_generation_type: "native"` models (Kling O3/V3, Veo 3.1, PixVerse V6). Omit to use `sound_enabled_by_default`. Enabling sound may apply `sound_credit_multiplier` to cost.'),
|
|
1644
1644
|
project_id: projectIdField,
|
|
1645
1645
|
session_id: sessionIdField
|
|
@@ -1850,7 +1850,7 @@ function registerGenerateTools(server, client, options = {}) {
|
|
|
1850
1850
|
duration: z.number().optional().describe('Output duration in seconds. Must be in `supported_durations` from list_models, OR within `min_output_duration`-`max_output_duration`. Default: matches source'),
|
|
1851
1851
|
enhance_prompt: z.boolean().optional().describe('Enhance the prompt. Default: false — only pass true if the user explicitly asks to enhance/improve the prompt.'),
|
|
1852
1852
|
visual_dna_ids: z.array(z.string()).optional().describe('Array of Visual DNA profile IDs to apply for character/style consistency. **Cap: pass at most `max_visual_dna` IDs from list_models for the chosen model; if `supports_visual_dna: false`, DNA is silently ignored.**'),
|
|
1853
|
-
resolution: z.string().optional().describe('Video resolution
|
|
1853
|
+
resolution: z.string().optional().describe('Video resolution or named tier: read supported_resolutions from list_models. For Seedance 2.5 Draft explicitly use model="seedance-2-5", resolution="480p-draft". Plain "480p" generates regular video, NOT Draft. Finalize an actual draft with edit_video operation="draft_quote" then "draft_enhance".'),
|
|
1854
1854
|
reference_images: z.array(z.string()).optional().describe('Array of reference image URLs for models that support additional image inputs. **Cap: pass at most `max_images` URLs from list_models — if `max_images === 0` the model does not accept image refs.** Examples: character reference images for Kling O1/O3, style reference for Aleph/gen4_aleph, character image for WAN VACE video-edit.'),
|
|
1855
1855
|
reference_videos: z.array(z.string()).optional().describe('Array of additional reference video URLs for models that support multiple video inputs. **Cap: pass at most `max_videos` URLs from list_models — if `max_videos <= 1` only the source_video is accepted.** Example: WAN 2.6 reference-to-video accepts 1–3 reference videos.'),
|
|
1856
1856
|
elements: z.array(z.string()).optional().describe('Array of element image URLs. **Cap: pass at most `max_elements` URLs from list_models — if `max_elements === 0` the model does not accept elements.** Elements are style or character reference assets alongside the main video.'),
|