@solongate/proxy 0.27.0 → 0.27.1
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/index.js +26 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -172,8 +172,33 @@ function parseArgs(argv) {
|
|
|
172
172
|
let agentName;
|
|
173
173
|
let separatorIndex = args.indexOf("--");
|
|
174
174
|
const flags = separatorIndex >= 0 ? args.slice(0, separatorIndex) : args;
|
|
175
|
-
|
|
175
|
+
let upstreamArgs = separatorIndex >= 0 ? args.slice(separatorIndex + 1) : [];
|
|
176
|
+
const flagsWithValue = /* @__PURE__ */ new Set([
|
|
177
|
+
"--policy",
|
|
178
|
+
"--name",
|
|
179
|
+
"--rate-limit",
|
|
180
|
+
"--global-rate-limit",
|
|
181
|
+
"--config",
|
|
182
|
+
"--api-key",
|
|
183
|
+
"--api-url",
|
|
184
|
+
"--upstream-url",
|
|
185
|
+
"--upstream-transport",
|
|
186
|
+
"--port",
|
|
187
|
+
"--policy-id",
|
|
188
|
+
"--id",
|
|
189
|
+
"--ai-judge-model",
|
|
190
|
+
"--ai-judge-endpoint",
|
|
191
|
+
"--ai-judge-api-key",
|
|
192
|
+
"--ai-judge-timeout",
|
|
193
|
+
"--agent-name"
|
|
194
|
+
]);
|
|
176
195
|
for (let i = 0; i < flags.length; i++) {
|
|
196
|
+
if (!flags[i].startsWith("--")) {
|
|
197
|
+
if (upstreamArgs.length === 0) {
|
|
198
|
+
upstreamArgs.push(...flags.slice(i));
|
|
199
|
+
}
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
177
202
|
switch (flags[i]) {
|
|
178
203
|
case "--policy":
|
|
179
204
|
policySource = flags[++i];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "MCP security proxy — protect any MCP server with customizable policies, path/command constraints, rate limiting, and audit logging. Zero code changes required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|