locus-product-planning 1.2.4 → 1.2.5
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 +22 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12528,15 +12528,33 @@ function getCurrentDirname() {
|
|
|
12528
12528
|
_cachedDirname = absoluteFallback;
|
|
12529
12529
|
return absoluteFallback;
|
|
12530
12530
|
}
|
|
12531
|
-
var
|
|
12531
|
+
var _currentDirname = null;
|
|
12532
|
+
function ensureCurrentDirname() {
|
|
12533
|
+
if (_currentDirname === null) {
|
|
12534
|
+
_currentDirname = getCurrentDirname();
|
|
12535
|
+
}
|
|
12536
|
+
return _currentDirname;
|
|
12537
|
+
}
|
|
12532
12538
|
function getPackageRoot() {
|
|
12533
|
-
|
|
12539
|
+
const dir = ensureCurrentDirname();
|
|
12540
|
+
if (dir.endsWith("/") || dir.endsWith("\\")) {
|
|
12541
|
+
return dir + "..";
|
|
12542
|
+
}
|
|
12543
|
+
const lastSlash = Math.max(dir.lastIndexOf("/"), dir.lastIndexOf("\\"));
|
|
12544
|
+
if (lastSlash > 0) {
|
|
12545
|
+
return dir.substring(0, lastSlash);
|
|
12546
|
+
}
|
|
12547
|
+
return dir;
|
|
12534
12548
|
}
|
|
12535
12549
|
function getLocusSkillsDir() {
|
|
12536
|
-
|
|
12550
|
+
const root = getPackageRoot();
|
|
12551
|
+
const sep = root.includes("\\") ? "\\" : "/";
|
|
12552
|
+
return root + sep + "skills";
|
|
12537
12553
|
}
|
|
12538
12554
|
function getLocusAgentsDir() {
|
|
12539
|
-
|
|
12555
|
+
const root = getPackageRoot();
|
|
12556
|
+
const sep = root.includes("\\") ? "\\" : "/";
|
|
12557
|
+
return root + sep + "agents";
|
|
12540
12558
|
}
|
|
12541
12559
|
function extractFrontmatter(filePath) {
|
|
12542
12560
|
try {
|