skillhub 0.2.8 → 0.2.9
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 +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4629,8 +4629,9 @@ async function search(query, options2) {
|
|
|
4629
4629
|
console.log(
|
|
4630
4630
|
`${num} ${verified} ${chalk2.cyan(skill.id.padEnd(38))} ${security}`
|
|
4631
4631
|
);
|
|
4632
|
-
const
|
|
4633
|
-
const
|
|
4632
|
+
const aiScore = skill.aiScore;
|
|
4633
|
+
const hasAiScore = aiScore != null && aiScore > 0 && skill.reviewStatus && skill.reviewStatus !== "unreviewed" && skill.reviewStatus !== "auto-scored";
|
|
4634
|
+
const aiPrefix = hasAiScore ? `${chalk2.magenta("AI")} ${(aiScore >= 75 ? chalk2.green : aiScore >= 50 ? chalk2.yellow : chalk2.dim)(String(aiScore))} ` : "";
|
|
4634
4635
|
console.log(
|
|
4635
4636
|
` ${aiPrefix}\u2B07 ${formatNumber(skill.downloadCount).padStart(6)} \u2B50 ${formatNumber(skill.githubStars).padStart(6)} ${chalk2.dim(skill.description.slice(0, hasAiScore ? 45 : 55))}${skill.description.length > (hasAiScore ? 45 : 55) ? "..." : ""}`
|
|
4636
4637
|
);
|
package/package.json
CHANGED