conduct-cli 0.4.85__tar.gz → 0.4.86__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 (26) hide show
  1. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/PKG-INFO +1 -1
  2. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/pyproject.toml +1 -1
  3. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/memory.py +17 -2
  4. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli.egg-info/PKG-INFO +1 -1
  5. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/README.md +0 -0
  6. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/setup.cfg +0 -0
  7. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/setup.py +0 -0
  8. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/__init__.py +0 -0
  9. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/api.py +0 -0
  10. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/guard.py +0 -0
  11. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/guardmcp.py +0 -0
  12. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/hook_precompact_template.py +0 -0
  13. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/hook_session_start_template.py +0 -0
  14. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/hook_stop_template.py +0 -0
  15. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/hook_template.py +0 -0
  16. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/main.py +0 -0
  17. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli/mcp_server.py +0 -0
  18. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
  19. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
  20. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli.egg-info/entry_points.txt +0 -0
  21. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli.egg-info/requires.txt +0 -0
  22. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/src/conduct_cli.egg-info/top_level.txt +0 -0
  23. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/tests/test_guard_policy.py +0 -0
  24. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/tests/test_guard_savings.py +0 -0
  25. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/tests/test_hook_syntax.py +0 -0
  26. {conduct_cli-0.4.85 → conduct_cli-0.4.86}/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.85
3
+ Version: 0.4.86
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.85"
7
+ version = "0.4.86"
8
8
  description = "CLI for Conduct AI — install agents, manage projects, run tests"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -31,8 +31,23 @@ def post_session_to_api(session_id: str, transcript_path: str | None, repo: str
31
31
  raw_transcript = None
32
32
  if transcript_path:
33
33
  try:
34
- text = Path(transcript_path).read_text(errors="ignore")
35
- raw_transcript = text[:12000]
34
+ lines = Path(transcript_path).read_text(errors="ignore").splitlines()
35
+ msgs = []
36
+ for line in lines:
37
+ try:
38
+ d = json.loads(line)
39
+ msg = d.get("message", {})
40
+ if isinstance(msg, dict) and msg.get("role") in ("user", "assistant"):
41
+ content = msg.get("content", "")
42
+ if isinstance(content, list):
43
+ for c in content:
44
+ if isinstance(c, dict) and c.get("type") == "text" and c.get("text", "").strip():
45
+ msgs.append(f"{msg['role']}: {c['text'][:500]}")
46
+ elif isinstance(content, str) and content.strip():
47
+ msgs.append(f"{msg['role']}: {content[:500]}")
48
+ except Exception:
49
+ pass
50
+ raw_transcript = "\n\n".join(msgs)[:12000] if msgs else None
36
51
  except Exception:
37
52
  pass
38
53
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.85
3
+ Version: 0.4.86
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