@kolbo/mcp 1.75.2 → 1.75.3
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/tools/generate.js +23 -20
package/package.json
CHANGED
package/src/tools/generate.js
CHANGED
|
@@ -998,26 +998,29 @@ function registerGenerateTools(server, client, options = {}) {
|
|
|
998
998
|
// renderStatusGrid, the one path here that mixes independent
|
|
999
999
|
// pending/completed/failed items in one grid instead of assuming they all
|
|
1000
1000
|
// finished together.
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1001
|
+
//
|
|
1002
|
+
// Always ship structuredContent, unconditionally — Kolbo Code does NOT
|
|
1003
|
+
// advertise MCP Apps, so gating this behind ui()/appsEnabled() (as this
|
|
1004
|
+
// used to) left that host with text only, and its own generic fallback
|
|
1005
|
+
// renderer built a plain status list with no thumbnails, exactly the
|
|
1006
|
+
// "black tile" class of bug already fixed the same way in media.js /
|
|
1007
|
+
// moodboards.js / visual_dna.js / listResult(). uiResult always embeds
|
|
1008
|
+
// both text and structuredContent, so hosts without a UI-app renderer
|
|
1009
|
+
// are unaffected — only the fallback quality changes.
|
|
1010
|
+
return uiCompleted({
|
|
1011
|
+
tool: 'get_generation_status', kind: 'status', client,
|
|
1012
|
+
model: 'Generations', gen: { generation_id: ids[0] },
|
|
1013
|
+
settings: {},
|
|
1014
|
+
items: results.map(r => {
|
|
1015
|
+
const res = r.result || {};
|
|
1016
|
+
return {
|
|
1017
|
+
id: r.generation_id,
|
|
1018
|
+
state: r.state,
|
|
1019
|
+
title: res.prompt_used || res.prompt || undefined,
|
|
1020
|
+
url: Array.isArray(res.urls) ? res.urls[0] : undefined,
|
|
1021
|
+
};
|
|
1022
|
+
}),
|
|
1023
|
+
}, text);
|
|
1021
1024
|
}
|
|
1022
1025
|
);
|
|
1023
1026
|
|