pi-lazy-extensions 0.1.2 → 0.1.3
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/config.ts +4 -2
- package/package.json +1 -1
package/config.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { existsSync, readFileSync } from "node:fs";
|
|
9
9
|
import { homedir } from "node:os";
|
|
10
10
|
import { dirname, isAbsolute, join, resolve } from "node:path";
|
|
11
|
+
import { CONFIG_DIR_NAME } from "@earendil-works/pi-coding-agent";
|
|
11
12
|
import type { LazyExtensionConfig, LazyExtensionsManifest, LazyExtensionsState, LoadedExtensionState } from "./types.js";
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -26,8 +27,9 @@ export function loadManifest(cwd: string, agentDir: string): { manifest: LazyExt
|
|
|
26
27
|
if (manifest) return { manifest, path: resolve(envPath) };
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
// Project
|
|
30
|
-
|
|
30
|
+
// Project "dot-pi" dir (uses CONFIG_DIR_NAME so rebranded pi distributions
|
|
31
|
+
// use their configured config dir name instead of hardcoded .pi)
|
|
32
|
+
const projectPi = join(cwd, CONFIG_DIR_NAME, "lazy-extensions.json");
|
|
31
33
|
if (existsSync(projectPi)) {
|
|
32
34
|
const manifest = parseManifest(projectPi);
|
|
33
35
|
if (manifest) return { manifest, path: projectPi };
|