skillhub 0.2.7 → 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 +6 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4629,8 +4629,11 @@ async function search(query, options2) {
|
|
|
4629
4629
|
console.log(
|
|
4630
4630
|
`${num} ${verified} ${chalk2.cyan(skill.id.padEnd(38))} ${security}`
|
|
4631
4631
|
);
|
|
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))} ` : "";
|
|
4632
4635
|
console.log(
|
|
4633
|
-
` \u2B07 ${formatNumber(skill.downloadCount).padStart(6)} \u2B50 ${formatNumber(skill.githubStars).padStart(6)} ${chalk2.dim(skill.description.slice(0, 55))}${skill.description.length > 55 ? "..." : ""}`
|
|
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) ? "..." : ""}`
|
|
4634
4637
|
);
|
|
4635
4638
|
const showRating = (skill.ratingCount ?? 0) >= 3;
|
|
4636
4639
|
if (showRating && skill.rating) {
|
|
@@ -4638,12 +4641,6 @@ async function search(query, options2) {
|
|
|
4638
4641
|
` ${chalk2.yellow("\u2605")} ${skill.rating.toFixed(1)} ${chalk2.dim(`(${skill.ratingCount} ratings)`)}`
|
|
4639
4642
|
);
|
|
4640
4643
|
}
|
|
4641
|
-
if (skill.aiScore && skill.reviewStatus && skill.reviewStatus !== "unreviewed" && skill.reviewStatus !== "auto-scored") {
|
|
4642
|
-
const scoreColor = skill.aiScore >= 75 ? chalk2.green : skill.aiScore >= 50 ? chalk2.yellow : chalk2.dim;
|
|
4643
|
-
console.log(
|
|
4644
|
-
` ${chalk2.magenta("AI")} ${scoreColor(String(skill.aiScore))} ${chalk2.dim(`(${skill.reviewStatus})`)}`
|
|
4645
|
-
);
|
|
4646
|
-
}
|
|
4647
4644
|
console.log(chalk2.dim("\u2500".repeat(80)));
|
|
4648
4645
|
}
|
|
4649
4646
|
console.log();
|
|
@@ -4655,7 +4652,7 @@ async function search(query, options2) {
|
|
|
4655
4652
|
);
|
|
4656
4653
|
}
|
|
4657
4654
|
if (sort === "recommended") {
|
|
4658
|
-
console.log(chalk2.dim(`Sort options: ${chalk2.white("--sort downloads|stars|rating|recent
|
|
4655
|
+
console.log(chalk2.dim(`Sort options: ${chalk2.white("--sort aiScore|downloads|stars|rating|recent")}`));
|
|
4659
4656
|
}
|
|
4660
4657
|
} catch (error) {
|
|
4661
4658
|
spinner.fail("Search failed");
|
|
@@ -4889,7 +4886,7 @@ program.command("install <skill-id>").description("Install a skill from the regi
|
|
|
4889
4886
|
// Commander converts --no-api to api: false
|
|
4890
4887
|
});
|
|
4891
4888
|
});
|
|
4892
|
-
program.command("search <query>").description("Search for skills in the registry").option("-p, --platform <platform>", "Filter by platform").option("-s, --sort <sort>", "Sort by: recommended, downloads, stars, rating, recent
|
|
4889
|
+
program.command("search <query>").description("Search for skills in the registry").option("-p, --platform <platform>", "Filter by platform").option("-s, --sort <sort>", "Sort by: recommended, aiScore, downloads, stars, rating, recent", "recommended").option("-l, --limit <number>", "Number of results", "10").option("--page <number>", "Page number", "1").action(async (query, options2) => {
|
|
4893
4890
|
await search(query, options2);
|
|
4894
4891
|
});
|
|
4895
4892
|
program.command("list").description("List installed skills").option("-p, --platform <platform>", "Filter by platform").option("--project", "List skills in the current project").option("--all", "List both global and project skills").action(async (options2) => {
|
package/package.json
CHANGED