@dyno181cm.nexsoft/zentao_mcp 1.2.15 → 1.2.16

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.
Files changed (2) hide show
  1. package/build/tools.js +5 -10
  2. package/package.json +1 -1
package/build/tools.js CHANGED
@@ -80,8 +80,8 @@ async function localizeImages(html) {
80
80
  await client.downloadImageToLocal(remoteUrl, localPath);
81
81
  }
82
82
  const fileUrl = toFileUrl(localPath);
83
- // Replace img tag with a standard hyperlink (no inline rendering, saves tokens) using image icon
84
- const linkTag = `<a href="${fileUrl}">🖼️ ${linkText}</a>`;
83
+ // Replace img tag with a standard hyperlink (no inline rendering, saves tokens)
84
+ const linkTag = `<a href="${fileUrl}">${linkText}</a>`;
85
85
  result = result.split(fullTag).join(linkTag);
86
86
  }
87
87
  catch {
@@ -137,16 +137,11 @@ async function renderAttachments(files) {
137
137
  headerHint = ' *(AI: Please view the videos below)*';
138
138
  const lines = enriched.map((f) => {
139
139
  if (!f.localPath)
140
- return `- 📎 ${f.title} — *(download failed, Size: ${formatSize(f.size)})*`;
140
+ return `- ${f.title} — *(download failed, Size: ${formatSize(f.size)})*`;
141
141
  const fileUrl = toFileUrl(f.localPath);
142
- let icon = '📎';
143
- if (IMAGE_EXTS.has(f.ext))
144
- icon = '🖼️';
145
- else if (VIDEO_EXTS.has(f.ext))
146
- icon = '🎬';
147
- return `- ${icon} [${f.title}](${fileUrl}) *(Size: ${formatSize(f.size)})*`;
142
+ return `- [${f.title}](${fileUrl}) *(Size: ${formatSize(f.size)})*`;
148
143
  });
149
- return `\n## Files 📎${headerHint}\n${lines.join('\n')}\n`;
144
+ return `\n## Files${headerHint}\n${lines.join('\n')}\n`;
150
145
  }
151
146
  // ─── Public formatters ───────────────────────────────────────────────────────
152
147
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyno181cm.nexsoft/zentao_mcp",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "description": "Zentao MCP Server",
5
5
  "repository": {
6
6
  "type": "git",