@solongate/proxy 0.26.1 → 0.26.2

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.
Files changed (2) hide show
  1. package/hooks/guard.mjs +3 -3
  2. package/package.json +1 -1
package/hooks/guard.mjs CHANGED
@@ -1125,16 +1125,16 @@ Respond with ONLY valid JSON: {"decision": "ALLOW" or "DENY", "reason": "brief e
1125
1125
  if (jsonMatch) {
1126
1126
  const verdict = JSON.parse(jsonMatch[0]);
1127
1127
  if (verdict.decision === 'DENY') {
1128
- reason = '[AI Judge] ' + (verdict.reason || 'Blocked by semantic analysis');
1128
+ reason = '[SolonGate AI Judge] Blocked: ' + (verdict.reason || 'Semantic analysis detected a policy violation');
1129
1129
  }
1130
1130
  }
1131
1131
  } else {
1132
1132
  // Fail-closed: LLM error → DENY
1133
- reason = '[AI Judge] LLM endpoint error (fail-closed)';
1133
+ reason = '[SolonGate AI Judge] Blocked: Groq API error (fail-closed)';
1134
1134
  }
1135
1135
  } catch (err) {
1136
1136
  // Fail-closed: timeout or parse error → DENY
1137
- reason = '[AI Judge] ' + (err.message || 'error') + ' (fail-closed)';
1137
+ reason = '[SolonGate AI Judge] Blocked: ' + (err.message || 'error') + ' (fail-closed)';
1138
1138
  }
1139
1139
  }
1140
1140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.26.1",
3
+ "version": "0.26.2",
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": {