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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.7
3
+ Version: 0.4.9
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.7"
7
+ version = "0.4.9"
8
8
  description = "CLI for Conduct AI — install agents, manage projects, run tests"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -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": message,
147
- "session_id": session_id,
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": workspace_id,
177
- "session_id": session_id,
178
- "tool_name": 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 {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.7
3
+ Version: 0.4.9
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