add-skill 1.0.16 → 1.0.17
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 +10 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -484,7 +484,7 @@ function track(data) {
|
|
|
484
484
|
// package.json
|
|
485
485
|
var package_default = {
|
|
486
486
|
name: "add-skill",
|
|
487
|
-
version: "1.0.
|
|
487
|
+
version: "1.0.17",
|
|
488
488
|
description: "Install agent skills onto coding agents (OpenCode, Claude Code, Codex, Cursor)",
|
|
489
489
|
type: "module",
|
|
490
490
|
bin: {
|
|
@@ -789,8 +789,15 @@ async function main(source, options) {
|
|
|
789
789
|
const failed = results.filter((r) => !r.success);
|
|
790
790
|
const skillFiles = {};
|
|
791
791
|
for (const skill of selectedSkills) {
|
|
792
|
-
|
|
793
|
-
|
|
792
|
+
let relativePath;
|
|
793
|
+
if (tempDir && skill.path === tempDir) {
|
|
794
|
+
relativePath = "SKILL.md";
|
|
795
|
+
} else if (tempDir && skill.path.startsWith(tempDir + "/")) {
|
|
796
|
+
relativePath = skill.path.slice(tempDir.length + 1) + "/SKILL.md";
|
|
797
|
+
} else {
|
|
798
|
+
relativePath = skill.name + "/SKILL.md";
|
|
799
|
+
}
|
|
800
|
+
skillFiles[skill.name] = relativePath;
|
|
794
801
|
}
|
|
795
802
|
track({
|
|
796
803
|
event: "install",
|