skillhub 0.1.5 → 0.1.6
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 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -255,7 +255,7 @@ async function install(skillId, options) {
|
|
|
255
255
|
process.exit(1);
|
|
256
256
|
}
|
|
257
257
|
const [owner, repo, ...rest] = parts;
|
|
258
|
-
|
|
258
|
+
let skillPath = rest.join("/");
|
|
259
259
|
let skillInfo;
|
|
260
260
|
try {
|
|
261
261
|
skillInfo = await getSkill(skillId);
|
|
@@ -267,6 +267,8 @@ async function install(skillId, options) {
|
|
|
267
267
|
let branch = "main";
|
|
268
268
|
if (skillInfo) {
|
|
269
269
|
skillName = skillInfo.name;
|
|
270
|
+
skillPath = skillInfo.skillPath;
|
|
271
|
+
branch = skillInfo.branch || "main";
|
|
270
272
|
spinner.text = `Found skill: ${chalk.cyan(skillName)}`;
|
|
271
273
|
} else {
|
|
272
274
|
spinner.text = "Skill not in registry, fetching from GitHub...";
|
package/package.json
CHANGED