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.cjs
CHANGED
|
@@ -12787,6 +12787,9 @@ function findAgentsInDir(dir, maxDepth = 3) {
|
|
|
12787
12787
|
return agents;
|
|
12788
12788
|
}
|
|
12789
12789
|
function resolveSkillPath(skillName, locusSkillsDir, personalSkillsDir, projectSkillsDir) {
|
|
12790
|
+
if (typeof skillName !== "string" || !skillName) {
|
|
12791
|
+
return null;
|
|
12792
|
+
}
|
|
12790
12793
|
const forceProject = skillName.startsWith("project:");
|
|
12791
12794
|
const forceLocus = skillName.startsWith("locus:");
|
|
12792
12795
|
const actualSkillName = skillName.replace(/^project:/, "").replace(/^locus:/, "");
|
|
@@ -12804,6 +12807,8 @@ function resolveSkillPath(skillName, locusSkillsDir, personalSkillsDir, projectS
|
|
|
12804
12807
|
return null;
|
|
12805
12808
|
}
|
|
12806
12809
|
function findSkillByName(baseDir, skillName, sourceType) {
|
|
12810
|
+
if (typeof baseDir !== "string" || !baseDir) return null;
|
|
12811
|
+
if (typeof skillName !== "string" || !skillName) return null;
|
|
12807
12812
|
if (!(0, import_fs.existsSync)(baseDir)) return null;
|
|
12808
12813
|
const directPath = safeJoin(baseDir, skillName);
|
|
12809
12814
|
const directSkillFile = safeJoin(directPath, "SKILL.md");
|