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 CHANGED
@@ -12564,15 +12564,33 @@ function getCurrentDirname() {
12564
12564
  _cachedDirname = absoluteFallback;
12565
12565
  return absoluteFallback;
12566
12566
  }
12567
- var currentDirname = getCurrentDirname();
12567
+ var _currentDirname = null;
12568
+ function ensureCurrentDirname() {
12569
+ if (_currentDirname === null) {
12570
+ _currentDirname = getCurrentDirname();
12571
+ }
12572
+ return _currentDirname;
12573
+ }
12568
12574
  function getPackageRoot() {
12569
- return (0, import_path.join)(currentDirname, "..");
12575
+ const dir = ensureCurrentDirname();
12576
+ if (dir.endsWith("/") || dir.endsWith("\\")) {
12577
+ return dir + "..";
12578
+ }
12579
+ const lastSlash = Math.max(dir.lastIndexOf("/"), dir.lastIndexOf("\\"));
12580
+ if (lastSlash > 0) {
12581
+ return dir.substring(0, lastSlash);
12582
+ }
12583
+ return dir;
12570
12584
  }
12571
12585
  function getLocusSkillsDir() {
12572
- return (0, import_path.join)(getPackageRoot(), "skills");
12586
+ const root = getPackageRoot();
12587
+ const sep = root.includes("\\") ? "\\" : "/";
12588
+ return root + sep + "skills";
12573
12589
  }
12574
12590
  function getLocusAgentsDir() {
12575
- return (0, import_path.join)(getPackageRoot(), "agents");
12591
+ const root = getPackageRoot();
12592
+ const sep = root.includes("\\") ? "\\" : "/";
12593
+ return root + sep + "agents";
12576
12594
  }
12577
12595
  function extractFrontmatter(filePath) {
12578
12596
  try {