@solongate/proxy 0.28.1 → 0.28.3
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/hooks/audit.mjs +2 -0
- package/hooks/guard.mjs +4 -0
- package/package.json +1 -1
package/hooks/audit.mjs
CHANGED
package/hooks/guard.mjs
CHANGED
|
@@ -346,6 +346,7 @@ process.stdin.on('end', async () => {
|
|
|
346
346
|
tool: data.tool_name || '', arguments: args,
|
|
347
347
|
decision: 'DENY', reason,
|
|
348
348
|
source: 'claude-code-guard',
|
|
349
|
+
agent_id: 'claude-code', agent_name: 'Claude Code',
|
|
349
350
|
}),
|
|
350
351
|
signal: AbortSignal.timeout(3000),
|
|
351
352
|
});
|
|
@@ -977,6 +978,7 @@ process.stdin.on('end', async () => {
|
|
|
977
978
|
decision: isLogOnly ? 'ALLOW' : 'DENY',
|
|
978
979
|
reason: msg,
|
|
979
980
|
source: 'claude-code-guard',
|
|
981
|
+
agent_id: 'claude-code', agent_name: 'Claude Code',
|
|
980
982
|
pi_detected: true,
|
|
981
983
|
pi_trust_score: piResult.trustScore,
|
|
982
984
|
pi_blocked: !isLogOnly,
|
|
@@ -1037,6 +1039,7 @@ process.stdin.on('end', async () => {
|
|
|
1037
1039
|
decision: 'ALLOW',
|
|
1038
1040
|
reason: 'Prompt injection detected but below threshold (trust: ' + (piResult.trustScore * 100).toFixed(0) + '%)',
|
|
1039
1041
|
source: 'claude-code-guard',
|
|
1042
|
+
agent_id: 'claude-code', agent_name: 'Claude Code',
|
|
1040
1043
|
pi_detected: true,
|
|
1041
1044
|
pi_trust_score: piResult.trustScore,
|
|
1042
1045
|
pi_blocked: false,
|
|
@@ -1185,6 +1188,7 @@ Respond with ONLY valid JSON: {"decision": "ALLOW" or "DENY", "reason": "brief e
|
|
|
1185
1188
|
tool: toolName, arguments: args,
|
|
1186
1189
|
decision, reason: reason || 'allowed by policy',
|
|
1187
1190
|
source: 'claude-code-guard',
|
|
1191
|
+
agent_id: 'claude-code', agent_name: 'Claude Code',
|
|
1188
1192
|
};
|
|
1189
1193
|
// Attach PI metadata if detected
|
|
1190
1194
|
if (piResult) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.3",
|
|
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": {
|