poe-code 4.0.13 → 4.0.14
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/package.json
CHANGED
|
@@ -34,8 +34,8 @@ function countCompletedTasks(planPath, content) {
|
|
|
34
34
|
total
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
async function ensurePlanExists(fs, cwd, planPath) {
|
|
38
|
-
const absolutePath =
|
|
37
|
+
async function ensurePlanExists(fs, cwd, homeDir, planPath) {
|
|
38
|
+
const absolutePath = resolveAbsolutePlanPath(planPath, cwd, homeDir);
|
|
39
39
|
const stat = await fs.stat(absolutePath).catch((error) => {
|
|
40
40
|
if (isNotFound(error)) {
|
|
41
41
|
return undefined;
|
|
@@ -97,7 +97,7 @@ export async function resolvePlanPaths(options) {
|
|
|
97
97
|
.filter((planPath) => planPath.length > 0);
|
|
98
98
|
if (explicitPlans.length > 0) {
|
|
99
99
|
for (const planPath of explicitPlans) {
|
|
100
|
-
await ensurePlanExists(fs, options.cwd, planPath);
|
|
100
|
+
await ensurePlanExists(fs, options.cwd, options.homeDir, planPath);
|
|
101
101
|
}
|
|
102
102
|
return explicitPlans;
|
|
103
103
|
}
|