@dunnewold-labs/mr-manager 0.4.37 → 0.4.38
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.mjs +23 -13
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -185,7 +185,7 @@ import { fileURLToPath } from "url";
|
|
|
185
185
|
// cli/package.json
|
|
186
186
|
var package_default = {
|
|
187
187
|
name: "@dunnewold-labs/mr-manager",
|
|
188
|
-
version: "0.4.
|
|
188
|
+
version: "0.4.38",
|
|
189
189
|
description: "Mr. Manager - Task and project management CLI",
|
|
190
190
|
bin: {
|
|
191
191
|
mr: "./dist/index.mjs"
|
|
@@ -5465,23 +5465,33 @@ var reviewCommand = new Command24("review").description("Run an automated code r
|
|
|
5465
5465
|
logErr(`Failed to fetch project ${projectId}`);
|
|
5466
5466
|
process.exit(1);
|
|
5467
5467
|
}
|
|
5468
|
-
|
|
5469
|
-
if (
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5468
|
+
const candidates = [];
|
|
5469
|
+
if (project.localPath) candidates.push({ path: project.localPath, source: "project.localPath" });
|
|
5470
|
+
for (const [dir, pid] of Object.entries(config.directories)) {
|
|
5471
|
+
if (pid === projectId) candidates.push({ path: dir, source: "linked directory" });
|
|
5472
|
+
}
|
|
5473
|
+
candidates.push({ path: process.cwd(), source: "cwd" });
|
|
5474
|
+
let projectPath;
|
|
5475
|
+
let pathSource = "";
|
|
5476
|
+
const triedPaths = [];
|
|
5477
|
+
for (const { path, source } of candidates) {
|
|
5478
|
+
if (existsSync13(path)) {
|
|
5479
|
+
projectPath = path;
|
|
5480
|
+
pathSource = source;
|
|
5481
|
+
break;
|
|
5475
5482
|
}
|
|
5483
|
+
triedPaths.push(`${path} (${source})`);
|
|
5476
5484
|
}
|
|
5477
5485
|
if (!projectPath) {
|
|
5478
|
-
|
|
5479
|
-
}
|
|
5480
|
-
|
|
5481
|
-
logErr(`Project path does not exist: ${projectPath}`);
|
|
5482
|
-
logErr(`Update the project's localPath or run "mr link" from the correct directory.`);
|
|
5486
|
+
logErr(`No valid project path found. Tried:`);
|
|
5487
|
+
for (const p of triedPaths) logErr(` - ${p}`);
|
|
5488
|
+
logErr(`Run "mr link" from the correct directory, or update the project's localPath.`);
|
|
5483
5489
|
process.exit(1);
|
|
5484
5490
|
}
|
|
5491
|
+
if (triedPaths.length > 0) {
|
|
5492
|
+
log(paint8("yellow", `Skipped stale path(s): ${triedPaths.join(", ")}`));
|
|
5493
|
+
log(`Falling back to ${pathSource}`);
|
|
5494
|
+
}
|
|
5485
5495
|
try {
|
|
5486
5496
|
if (!statSync2(projectPath).isDirectory()) {
|
|
5487
5497
|
logErr(`Project path is not a directory: ${projectPath}`);
|