conduct-cli 0.4.26__tar.gz → 0.4.27__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.26 → conduct_cli-0.4.27}/PKG-INFO +1 -1
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/pyproject.toml +1 -1
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli/guard.py +4 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/README.md +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/setup.cfg +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/setup.py +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.26 → conduct_cli-0.4.27}/src/conduct_cli.egg-info/top_level.txt +0 -0
|
@@ -374,6 +374,10 @@ def main():
|
|
|
374
374
|
msg = f"[ConductGuard] {reason or 'Budget hard cap reached. Contact your manager.'}"
|
|
375
375
|
print(msg)
|
|
376
376
|
print(msg, file=sys.stderr)
|
|
377
|
+
tool_name = (data.get("tool_name") or "").lower()
|
|
378
|
+
tool_input = data.get("tool_input") or {}
|
|
379
|
+
session_id = data.get("session_id")
|
|
380
|
+
_post_event(tool_name, tool_input, "blocked", "budget-hard-cap", reason or "Monthly budget hard cap reached.", session_id=session_id)
|
|
377
381
|
sys.exit(2)
|
|
378
382
|
|
|
379
383
|
session_id = data.get("session_id")
|
|
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
|