locus-product-planning 1.2.7 → 1.2.8
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.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12751,6 +12751,9 @@ function findAgentsInDir(dir, maxDepth = 3) {
|
|
|
12751
12751
|
return agents;
|
|
12752
12752
|
}
|
|
12753
12753
|
function resolveSkillPath(skillName, locusSkillsDir, personalSkillsDir, projectSkillsDir) {
|
|
12754
|
+
if (typeof skillName !== "string" || !skillName) {
|
|
12755
|
+
return null;
|
|
12756
|
+
}
|
|
12754
12757
|
const forceProject = skillName.startsWith("project:");
|
|
12755
12758
|
const forceLocus = skillName.startsWith("locus:");
|
|
12756
12759
|
const actualSkillName = skillName.replace(/^project:/, "").replace(/^locus:/, "");
|
|
@@ -12768,6 +12771,8 @@ function resolveSkillPath(skillName, locusSkillsDir, personalSkillsDir, projectS
|
|
|
12768
12771
|
return null;
|
|
12769
12772
|
}
|
|
12770
12773
|
function findSkillByName(baseDir, skillName, sourceType) {
|
|
12774
|
+
if (typeof baseDir !== "string" || !baseDir) return null;
|
|
12775
|
+
if (typeof skillName !== "string" || !skillName) return null;
|
|
12771
12776
|
if (!existsSync(baseDir)) return null;
|
|
12772
12777
|
const directPath = safeJoin(baseDir, skillName);
|
|
12773
12778
|
const directSkillFile = safeJoin(directPath, "SKILL.md");
|