conduct-cli 0.4.7__tar.gz → 0.4.9__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.7 → conduct_cli-0.4.9}/PKG-INFO +1 -1
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/pyproject.toml +1 -1
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli/guard.py +11 -5
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/README.md +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/setup.cfg +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/setup.py +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.7 → conduct_cli-0.4.9}/src/conduct_cli.egg-info/top_level.txt +0 -0
|
@@ -143,8 +143,8 @@ def _post_event(tool_name, tool_input, decision, rule_id=None, message=None, ses
|
|
|
143
143
|
"input_summary": json.dumps(tool_input)[:200],
|
|
144
144
|
"decision": decision,
|
|
145
145
|
"rule_id": rule_id,
|
|
146
|
-
"rule_message":
|
|
147
|
-
"
|
|
146
|
+
"rule_message": message,
|
|
147
|
+
"hook_session_id": session_id,
|
|
148
148
|
})
|
|
149
149
|
api_url = cfg.get("api_url", "https://api.conductai.ai").rstrip("/")
|
|
150
150
|
script = (
|
|
@@ -173,9 +173,9 @@ def _post_usage(session_id, tool_name, tokens_input, tokens_output, duration_ms)
|
|
|
173
173
|
if not workspace_id or not session_id:
|
|
174
174
|
return
|
|
175
175
|
payload = json.dumps({
|
|
176
|
-
"workspace_id":
|
|
177
|
-
"
|
|
178
|
-
"tool_name":
|
|
176
|
+
"workspace_id": workspace_id,
|
|
177
|
+
"hook_session_id": session_id,
|
|
178
|
+
"tool_name": tool_name,
|
|
179
179
|
"tokens_input": tokens_input,
|
|
180
180
|
"tokens_output": tokens_output,
|
|
181
181
|
"duration_ms": duration_ms,
|
|
@@ -204,6 +204,12 @@ def post_usage_main():
|
|
|
204
204
|
data = json.load(sys.stdin)
|
|
205
205
|
except Exception:
|
|
206
206
|
sys.exit(0)
|
|
207
|
+
# Write full payload to debug file so we can inspect what Claude Code sends
|
|
208
|
+
try:
|
|
209
|
+
debug_path = GUARD_DIR / "debug_post.json"
|
|
210
|
+
debug_path.write_text(json.dumps(data, indent=2))
|
|
211
|
+
except Exception:
|
|
212
|
+
pass
|
|
207
213
|
session_id = data.get("session_id")
|
|
208
214
|
tool_name = (data.get("tool_name") or "").lower()
|
|
209
215
|
usage = data.get("usage") or {}
|
|
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
|