@solongate/proxy 0.35.0 → 0.36.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/index.js CHANGED
@@ -536,7 +536,7 @@ function isAlreadyProtected(server) {
536
536
  }
537
537
  return false;
538
538
  }
539
- function wrapServer(serverName, server, policy, agentName, aiJudge) {
539
+ function wrapServer(serverName, server, policy, agentName) {
540
540
  const env = { ...server.env ?? {} };
541
541
  env.SOLONGATE_API_KEY = "${SOLONGATE_API_KEY}";
542
542
  const proxyArgs = ["-y", "@solongate/proxy@latest"];
@@ -546,9 +546,6 @@ function wrapServer(serverName, server, policy, agentName, aiJudge) {
546
546
  if (agentName) {
547
547
  proxyArgs.push("--agent-name", agentName);
548
548
  }
549
- if (aiJudge) {
550
- proxyArgs.push("--ai-judge");
551
- }
552
549
  proxyArgs.push("--verbose", "--", server.command, ...server.args ?? []);
553
550
  return {
554
551
  command: "npx",
@@ -569,8 +566,7 @@ function parseInitArgs(argv) {
569
566
  const args = argv.slice(2);
570
567
  const options = {
571
568
  all: false,
572
- tools: [],
573
- aiJudge: false
569
+ tools: []
574
570
  };
575
571
  for (let i = 0; i < args.length; i++) {
576
572
  switch (args[i]) {
@@ -595,9 +591,6 @@ function parseInitArgs(argv) {
595
591
  case "--openclaw":
596
592
  options.tools.push("openclaw");
597
593
  break;
598
- case "--ai-judge":
599
- options.aiJudge = true;
600
- break;
601
594
  case "--help":
602
595
  case "-h":
603
596
  printHelp();
@@ -625,13 +618,8 @@ AI TOOL HOOKS (default: all)
625
618
  --gemini Install hooks for Gemini CLI
626
619
  --openclaw Install hooks for OpenClaw
627
620
 
628
- SECURITY LAYERS
629
- --ai-judge Enable AI Judge (semantic intent analysis via LLM)
630
- Requires GROQ_API_KEY in .env (free at https://console.groq.com/keys)
631
-
632
621
  EXAMPLES
633
622
  npx @solongate/proxy init --all # Protect everything, all tools
634
- npx @solongate/proxy init --all --ai-judge # With AI Judge enabled
635
623
  npx @solongate/proxy init --all --claude-code --gemini # Only Claude Code + Gemini hooks
636
624
  npx @solongate/proxy init --all --policy policy.json # With custom policy
637
625
  `;
@@ -1061,7 +1049,7 @@ async function main() {
1061
1049
  const newConfig = { mcpServers: {} };
1062
1050
  for (const name of serverNames) {
1063
1051
  if (toProtect.includes(name)) {
1064
- newConfig.mcpServers[name] = wrapServer(name, config.mcpServers[name], policyValue, void 0, options.aiJudge);
1052
+ newConfig.mcpServers[name] = wrapServer(name, config.mcpServers[name], policyValue);
1065
1053
  } else {
1066
1054
  newConfig.mcpServers[name] = config.mcpServers[name];
1067
1055
  }
package/dist/init.js CHANGED
@@ -117,7 +117,7 @@ function isAlreadyProtected(server) {
117
117
  }
118
118
  return false;
119
119
  }
120
- function wrapServer(serverName, server, policy, agentName, aiJudge) {
120
+ function wrapServer(serverName, server, policy, agentName) {
121
121
  const env = { ...server.env ?? {} };
122
122
  env.SOLONGATE_API_KEY = "${SOLONGATE_API_KEY}";
123
123
  const proxyArgs = ["-y", "@solongate/proxy@latest"];
@@ -127,9 +127,6 @@ function wrapServer(serverName, server, policy, agentName, aiJudge) {
127
127
  if (agentName) {
128
128
  proxyArgs.push("--agent-name", agentName);
129
129
  }
130
- if (aiJudge) {
131
- proxyArgs.push("--ai-judge");
132
- }
133
130
  proxyArgs.push("--verbose", "--", server.command, ...server.args ?? []);
134
131
  return {
135
132
  command: "npx",
@@ -150,8 +147,7 @@ function parseInitArgs(argv) {
150
147
  const args = argv.slice(2);
151
148
  const options = {
152
149
  all: false,
153
- tools: [],
154
- aiJudge: false
150
+ tools: []
155
151
  };
156
152
  for (let i = 0; i < args.length; i++) {
157
153
  switch (args[i]) {
@@ -176,9 +172,6 @@ function parseInitArgs(argv) {
176
172
  case "--openclaw":
177
173
  options.tools.push("openclaw");
178
174
  break;
179
- case "--ai-judge":
180
- options.aiJudge = true;
181
- break;
182
175
  case "--help":
183
176
  case "-h":
184
177
  printHelp();
@@ -206,13 +199,8 @@ AI TOOL HOOKS (default: all)
206
199
  --gemini Install hooks for Gemini CLI
207
200
  --openclaw Install hooks for OpenClaw
208
201
 
209
- SECURITY LAYERS
210
- --ai-judge Enable AI Judge (semantic intent analysis via LLM)
211
- Requires GROQ_API_KEY in .env (free at https://console.groq.com/keys)
212
-
213
202
  EXAMPLES
214
203
  npx @solongate/proxy init --all # Protect everything, all tools
215
- npx @solongate/proxy init --all --ai-judge # With AI Judge enabled
216
204
  npx @solongate/proxy init --all --claude-code --gemini # Only Claude Code + Gemini hooks
217
205
  npx @solongate/proxy init --all --policy policy.json # With custom policy
218
206
  `;
@@ -644,7 +632,7 @@ async function main() {
644
632
  const newConfig = { mcpServers: {} };
645
633
  for (const name of serverNames) {
646
634
  if (toProtect.includes(name)) {
647
- newConfig.mcpServers[name] = wrapServer(name, config.mcpServers[name], policyValue, void 0, options.aiJudge);
635
+ newConfig.mcpServers[name] = wrapServer(name, config.mcpServers[name], policyValue);
648
636
  } else {
649
637
  newConfig.mcpServers[name] = config.mcpServers[name];
650
638
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.35.0",
3
+ "version": "0.36.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": {