@solongate/proxy 0.52.0 → 0.53.0
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/global-install.js +4 -0
- package/dist/index.js +4 -0
- package/dist/login.js +4 -0
- package/package.json +1 -1
package/dist/global-install.js
CHANGED
|
@@ -138,6 +138,10 @@ function resolveRealClaude() {
|
|
|
138
138
|
try {
|
|
139
139
|
const finder = process.platform === "win32" ? "where" : "which";
|
|
140
140
|
const out = execFileSync(finder, ["claude"], { encoding: "utf-8" }).split(/\r?\n/).map((s) => s.trim()).filter(Boolean);
|
|
141
|
+
if (process.platform === "win32") {
|
|
142
|
+
const low = (s) => s.toLowerCase();
|
|
143
|
+
return out.find((l) => low(l).endsWith(".cmd")) || out.find((l) => low(l).endsWith(".exe")) || out.find((l) => low(l).endsWith(".bat")) || out[0] || null;
|
|
144
|
+
}
|
|
141
145
|
return out[0] || null;
|
|
142
146
|
} catch {
|
|
143
147
|
return null;
|
package/dist/index.js
CHANGED
|
@@ -6715,6 +6715,10 @@ function resolveRealClaude() {
|
|
|
6715
6715
|
try {
|
|
6716
6716
|
const finder = process.platform === "win32" ? "where" : "which";
|
|
6717
6717
|
const out = execFileSync2(finder, ["claude"], { encoding: "utf-8" }).split(/\r?\n/).map((s) => s.trim()).filter(Boolean);
|
|
6718
|
+
if (process.platform === "win32") {
|
|
6719
|
+
const low = (s) => s.toLowerCase();
|
|
6720
|
+
return out.find((l) => low(l).endsWith(".cmd")) || out.find((l) => low(l).endsWith(".exe")) || out.find((l) => low(l).endsWith(".bat")) || out[0] || null;
|
|
6721
|
+
}
|
|
6718
6722
|
return out[0] || null;
|
|
6719
6723
|
} catch {
|
|
6720
6724
|
return null;
|
package/dist/login.js
CHANGED
|
@@ -145,6 +145,10 @@ function resolveRealClaude() {
|
|
|
145
145
|
try {
|
|
146
146
|
const finder = process.platform === "win32" ? "where" : "which";
|
|
147
147
|
const out = execFileSync(finder, ["claude"], { encoding: "utf-8" }).split(/\r?\n/).map((s) => s.trim()).filter(Boolean);
|
|
148
|
+
if (process.platform === "win32") {
|
|
149
|
+
const low = (s) => s.toLowerCase();
|
|
150
|
+
return out.find((l) => low(l).endsWith(".cmd")) || out.find((l) => low(l).endsWith(".exe")) || out.find((l) => low(l).endsWith(".bat")) || out[0] || null;
|
|
151
|
+
}
|
|
148
152
|
return out[0] || null;
|
|
149
153
|
} catch {
|
|
150
154
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "AI tool security proxy — protect any AI tool server with customizable policies, path/command constraints, rate limiting, and audit logging. Zero code changes required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|