conduct-cli 0.4.53__tar.gz → 0.4.55__tar.gz
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.
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/PKG-INFO +1 -1
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/pyproject.toml +1 -1
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/guard.py +6 -5
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/README.md +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/setup.cfg +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/setup.py +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.4.53 → conduct_cli-0.4.55}/tests/test_switch.py +0 -0
|
@@ -308,9 +308,9 @@ def _maybe_emit_security_finding(tool_response, session_id, tool_name):
|
|
|
308
308
|
script = (
|
|
309
309
|
"import urllib.request\\n"
|
|
310
310
|
"try:\\n"
|
|
311
|
-
f" req = urllib.request.Request(\\"{api_url}/security-findings\\","
|
|
311
|
+
f" req = urllib.request.Request(\\"{api_url}/security-findings?workspace_id={workspace_id}\\","
|
|
312
312
|
f" data={repr(payload.encode())}, headers={{\\\"Content-Type\\\": \\\"application/json\\\","
|
|
313
|
-
f" \\\"
|
|
313
|
+
f" \\\"X-Api-Key\\\": \\\"{api_key}\\\"}}, method=\\"POST\\")\\n"
|
|
314
314
|
" urllib.request.urlopen(req, timeout=5)\\n"
|
|
315
315
|
"except: pass\\n"
|
|
316
316
|
)
|
|
@@ -485,9 +485,10 @@ def post_usage_main():
|
|
|
485
485
|
if action in ("warn", "block"):
|
|
486
486
|
decision = "warned" if action == "warn" else "blocked"
|
|
487
487
|
_post_event(tool_name, {}, decision, rule_id, message, session_id=session_id)
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
488
|
+
|
|
489
|
+
# Security classifier runs regardless of transcript_path — scan every tool response
|
|
490
|
+
tool_response = data.get("tool_response") or data.get("output") or ""
|
|
491
|
+
_maybe_emit_security_finding(str(tool_response), session_id, tool_name)
|
|
491
492
|
|
|
492
493
|
sys.exit(0)
|
|
493
494
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|