pi-lilac-provider 1.9.6 → 1.9.7
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-lilac-provider",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.7",
|
|
4
4
|
"description": "Lilac provider extension for pi - Access Kimi K2.6, GLM 5.1, and Gemma 4 models through Lilac's OpenAI-compatible API on idle GPUs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
* Run: node scripts/test-preserved-thinking.ts
|
|
33
33
|
*/
|
|
34
34
|
import fs from "fs";
|
|
35
|
+
import os from "os";
|
|
35
36
|
import path from "path";
|
|
36
37
|
import { pathToFileURL } from "url";
|
|
37
38
|
|
|
@@ -104,7 +105,7 @@ function os_home_pi_ai() {
|
|
|
104
105
|
piAgentSibling,
|
|
105
106
|
path.join(HERE, "..", "node_modules", "@earendil-works", "pi-ai"),
|
|
106
107
|
path.join(HERE, "..", "node_modules", "@earendil-works", "pi-coding-agent", "node_modules", "@earendil-works", "pi-ai"),
|
|
107
|
-
"
|
|
108
|
+
path.join(os.homedir(), ".npm-global", "lib", "node_modules", "@earendil-works", "pi-coding-agent", "node_modules", "@earendil-works", "pi-ai"),
|
|
108
109
|
].filter((candidate): candidate is string => typeof candidate === "string" && candidate.length > 0);
|
|
109
110
|
for (const c of candidates) if (fs.existsSync(c)) return c;
|
|
110
111
|
throw new Error("Could not locate pi-ai package in the global pi install.");
|