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.
Files changed (20) hide show
  1. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/PKG-INFO +1 -1
  2. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/pyproject.toml +1 -1
  3. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/guard.py +6 -5
  4. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/PKG-INFO +1 -1
  5. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/README.md +0 -0
  6. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/setup.cfg +0 -0
  7. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/setup.py +0 -0
  8. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/__init__.py +0 -0
  9. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/api.py +0 -0
  10. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/guardmcp.py +0 -0
  11. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/main.py +0 -0
  12. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli/mcp_server.py +0 -0
  13. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
  14. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
  15. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/entry_points.txt +0 -0
  16. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/requires.txt +0 -0
  17. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/src/conduct_cli.egg-info/top_level.txt +0 -0
  18. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/tests/test_guard_policy.py +0 -0
  19. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/tests/test_guard_savings.py +0 -0
  20. {conduct_cli-0.4.53 → conduct_cli-0.4.55}/tests/test_switch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.53
3
+ Version: 0.4.55
4
4
  Summary: CLI for Conduct AI — install agents, manage projects, run tests
5
5
  Author-email: Conduct AI <hello@conductai.ai>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "conduct-cli"
7
- version = "0.4.53"
7
+ version = "0.4.55"
8
8
  description = "CLI for Conduct AI — install agents, manage projects, run tests"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -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" \\\"Authorization\\\": \\\"Bearer {api_key}\\\"}}, method=\\"POST\\")\\n"
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
- # Security classifier — emit finding if flag ON
489
- tool_response = data.get("tool_response") or data.get("output") or ""
490
- _maybe_emit_security_finding(str(tool_response), session_id, tool_name)
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.53
3
+ Version: 0.4.55
4
4
  Summary: CLI for Conduct AI — install agents, manage projects, run tests
5
5
  Author-email: Conduct AI <hello@conductai.ai>
6
6
  License: MIT
File without changes
File without changes
File without changes