@tankpkg/mcp-server 0.15.0 → 0.15.1
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7546,7 +7546,7 @@ function registerSearchSkillsTool(server) {
|
|
|
7546
7546
|
}] };
|
|
7547
7547
|
const header = "| Skill | Score | Downloads | Description |\n|-------|-------|-----------|-------------|";
|
|
7548
7548
|
const rows = results.map((skill) => {
|
|
7549
|
-
const score = skill.auditScore
|
|
7549
|
+
const score = typeof skill.auditScore === "number" && Number.isFinite(skill.auditScore) ? skill.auditScore.toFixed(1) : "-";
|
|
7550
7550
|
const downloads = skill.downloads > 1e3 ? `${(skill.downloads / 1e3).toFixed(1)}k` : skill.downloads.toString();
|
|
7551
7551
|
const desc = skill.description?.slice(0, 50) ?? "No description";
|
|
7552
7552
|
return `| ${skill.name} | ${score} | ${downloads} | ${desc} |`;
|