@victor-software-house/pi-openai-proxy 4.0.3 → 4.0.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/extensions/proxy.ts +7 -4
- package/package.json +2 -1
package/extensions/proxy.ts
CHANGED
|
@@ -99,11 +99,14 @@ export default function proxyExtension(pi: ExtensionAPI): void {
|
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
// Resolve pi-proxy binary: try
|
|
102
|
+
// Resolve pi-proxy binary: try local dev build, then installed package, then PATH
|
|
103
103
|
function findProxyBinary(): string {
|
|
104
|
-
//
|
|
105
|
-
const
|
|
106
|
-
if (existsSync(
|
|
104
|
+
// Local development: dist/index.mjs in the same package root
|
|
105
|
+
const localBin = resolve(packageRoot, "dist", "index.mjs");
|
|
106
|
+
if (existsSync(localBin)) return localBin;
|
|
107
|
+
// Installed as dependency: node_modules/pi-proxy/dist/index.mjs
|
|
108
|
+
const depBin = resolve(packageRoot, "node_modules", "pi-proxy", "dist", "index.mjs");
|
|
109
|
+
if (existsSync(depBin)) return depBin;
|
|
107
110
|
// Fallback: assume pi-proxy is in PATH
|
|
108
111
|
return "pi-proxy";
|
|
109
112
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@victor-software-house/pi-openai-proxy",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "OpenAI-compatible HTTP proxy for pi's multi-provider model registry",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Victor Software House",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"lint:fix": "biome check --write .",
|
|
63
63
|
"format": "biome format --write .",
|
|
64
64
|
"test": "bun test",
|
|
65
|
+
"test:ci": "bun test test/unit/ test/integration/",
|
|
65
66
|
"prepack": "bun run build",
|
|
66
67
|
"prepublishOnly": "bun test && bun run build"
|
|
67
68
|
},
|