skillhub 0.1.3 → 0.1.4

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/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -111,7 +111,8 @@ async function searchSkills(query, options = {}) {
111
111
  return JSON.parse(response.data);
112
112
  }
113
113
  async function getSkill(id) {
114
- const response = await httpsRequest(`${API_BASE_URL}/skills/${encodeURIComponent(id)}`);
114
+ const encodedPath = id.split("/").map(encodeURIComponent).join("/");
115
+ const response = await httpsRequest(`${API_BASE_URL}/skills/${encodedPath}`);
115
116
  if (response.statusCode === 404) {
116
117
  return null;
117
118
  }
@@ -122,7 +123,8 @@ async function getSkill(id) {
122
123
  }
123
124
  async function trackInstall(skillId, platform, method = "cli") {
124
125
  try {
125
- await httpsRequest(`${API_BASE_URL}/skills/${encodeURIComponent(skillId)}/install`, {
126
+ const encodedPath = skillId.split("/").map(encodeURIComponent).join("/");
127
+ await httpsRequest(`${API_BASE_URL}/skills/${encodedPath}/install`, {
126
128
  method: "POST",
127
129
  headers: { "Content-Type": "application/json" },
128
130
  body: JSON.stringify({ platform, method })
@@ -357,7 +359,7 @@ async function search(query, options) {
357
359
  const verified = skill.isVerified ? chalk2.green("\u2713") : " ";
358
360
  const security = getSecurityBadge(skill.securityScore);
359
361
  console.log(
360
- `${verified} ${chalk2.cyan(skill.name.padEnd(25))} ${security} \u2B50 ${formatNumber(skill.githubStars).padStart(6)} \u2B07 ${formatNumber(skill.downloadCount).padStart(6)}`
362
+ `${verified} ${chalk2.cyan(skill.id.padEnd(40))} ${security} \u2B50 ${formatNumber(skill.githubStars).padStart(6)} \u2B07 ${formatNumber(skill.downloadCount).padStart(6)}`
361
363
  );
362
364
  console.log(
363
365
  ` ${chalk2.dim(skill.description.slice(0, 70))}${skill.description.length > 70 ? "..." : ""}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillhub",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI tool for managing AI Agent skills - search, install, and update skills for Claude, Codex, Copilot, and more",
5
5
  "author": "SkillHub Contributors",
6
6
  "license": "MIT",