zames_pro 2.82.30 → 2.82.31
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 +6 -0
- package/dist/mcp.js +9 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/mcp.js
CHANGED
|
@@ -223,8 +223,16 @@ export function renderMcpResult(result, limit = MCP_RESULT_LIMIT) {
|
|
|
223
223
|
if (r.toolResult !== undefined && !r.content) {
|
|
224
224
|
return truncateMcpResult(formatResultString(r.toolResult, r.isError), limit);
|
|
225
225
|
}
|
|
226
|
+
// `content` is an ARRAY per the SDK, but a hand-rolled/buggy server may put
|
|
227
|
+
// a STRING there. Iterating that string yielded one part per CHARACTER and
|
|
228
|
+
// the result became `n\n\no\n\nt...` instead of the text.
|
|
229
|
+
const blocks = Array.isArray(r.content)
|
|
230
|
+
? r.content
|
|
231
|
+
: typeof r.content === 'string'
|
|
232
|
+
? [{ type: 'text', text: r.content }]
|
|
233
|
+
: [];
|
|
226
234
|
const parts = [];
|
|
227
|
-
for (const block of
|
|
235
|
+
for (const block of blocks) {
|
|
228
236
|
if (!block || typeof block !== 'object') {
|
|
229
237
|
parts.push(String(block ?? ''));
|
|
230
238
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.31",
|
|
4
4
|
"description": "Terminal coding agent that drives a real browser to chat with DeepSeek, Qwen and other web LLMs — no API key required. Reads and edits files, runs commands, commits to git, like Claude Code / Codex CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|