conduct-cli 0.4.20__tar.gz → 0.4.21__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.20 → conduct_cli-0.4.21}/PKG-INFO +1 -1
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/pyproject.toml +1 -1
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli/guard.py +6 -2
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/README.md +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/setup.cfg +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/setup.py +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.20 → conduct_cli-0.4.21}/src/conduct_cli.egg-info/top_level.txt +0 -0
|
@@ -371,7 +371,9 @@ def main():
|
|
|
371
371
|
if hard_blocked is None:
|
|
372
372
|
hard_blocked, reason = _fetch_budget_status()
|
|
373
373
|
if hard_blocked:
|
|
374
|
-
|
|
374
|
+
msg = f"[ConductGuard] {reason or 'Budget hard cap reached. Contact your manager.'}"
|
|
375
|
+
print(msg)
|
|
376
|
+
print(msg, file=sys.stderr)
|
|
375
377
|
sys.exit(2)
|
|
376
378
|
|
|
377
379
|
session_id = data.get("session_id")
|
|
@@ -385,7 +387,9 @@ def main():
|
|
|
385
387
|
_post_event(tool_name, tool_input, decision, rule_id, message, session_id=session_id)
|
|
386
388
|
|
|
387
389
|
if action == "block":
|
|
388
|
-
|
|
390
|
+
msg = f"[ConductGuard] {message}"
|
|
391
|
+
print(msg)
|
|
392
|
+
print(msg, file=sys.stderr)
|
|
389
393
|
sys.exit(2)
|
|
390
394
|
if action in ("warn", "approval"):
|
|
391
395
|
print(f"[ConductGuard] {message}")
|
|
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
|