instrlint 0.1.0 → 0.1.1
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/cli.cjs +7 -8
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +7 -8
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -2790,14 +2790,13 @@ var import_os = require("os");
|
|
|
2790
2790
|
var import_url = require("url");
|
|
2791
2791
|
function resolveSkillFile(target) {
|
|
2792
2792
|
const thisFile = (0, import_url.fileURLToPath)(importMetaUrl);
|
|
2793
|
-
const
|
|
2794
|
-
const
|
|
2795
|
-
|
|
2796
|
-
"skills",
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
);
|
|
2800
|
-
return skillPath;
|
|
2793
|
+
const subDir = target === "claude-code" ? "claude-code" : "codex";
|
|
2794
|
+
for (const levels of [2, 3]) {
|
|
2795
|
+
const parts = Array(levels).fill("..");
|
|
2796
|
+
const candidate = (0, import_path11.join)(thisFile, ...parts, "skills", subDir, "SKILL.md");
|
|
2797
|
+
if ((0, import_fs12.existsSync)(candidate)) return candidate;
|
|
2798
|
+
}
|
|
2799
|
+
return (0, import_path11.join)(thisFile, "..", "..", "skills", subDir, "SKILL.md");
|
|
2801
2800
|
}
|
|
2802
2801
|
function readSkillContent(target) {
|
|
2803
2802
|
const skillPath = resolveSkillFile(target);
|