conduct-cli 0.4.75__tar.gz → 0.4.77__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 (25) hide show
  1. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/PKG-INFO +1 -1
  2. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/pyproject.toml +1 -1
  3. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli/guard.py +22 -3
  4. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli/memory.py +2 -2
  5. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli.egg-info/PKG-INFO +1 -1
  6. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/README.md +0 -0
  7. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/setup.cfg +0 -0
  8. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/setup.py +0 -0
  9. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli/__init__.py +0 -0
  10. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli/api.py +0 -0
  11. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli/guardmcp.py +0 -0
  12. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli/hook_precompact_template.py +0 -0
  13. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli/hook_session_start_template.py +0 -0
  14. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli/hook_template.py +0 -0
  15. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli/main.py +0 -0
  16. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli/mcp_server.py +0 -0
  17. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
  18. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
  19. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli.egg-info/entry_points.txt +0 -0
  20. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli.egg-info/requires.txt +0 -0
  21. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/src/conduct_cli.egg-info/top_level.txt +0 -0
  22. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/tests/test_guard_policy.py +0 -0
  23. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/tests/test_guard_savings.py +0 -0
  24. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/tests/test_hook_syntax.py +0 -0
  25. {conduct_cli-0.4.75 → conduct_cli-0.4.77}/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.75
3
+ Version: 0.4.77
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.75"
7
+ version = "0.4.77"
8
8
  description = "CLI for Conduct AI — install agents, manage projects, run tests"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -768,9 +768,28 @@ def _ensure_booster(root: Path) -> None:
768
768
  f"(you have {sys.version_info.major}.{sys.version_info.minor}). "
769
769
  f"Upgrade Python then: pip install 'conduct-cli[booster]'"
770
770
  )
771
- else:
772
- print(f" {GRAY}Agent Booster:{RESET} not installed — run: pip install 'conduct-cli[booster]'")
773
- return
771
+ return
772
+ print(f" {GRAY}Agent Booster:{RESET} installing…")
773
+ r = subprocess.run(
774
+ [sys.executable, "-m", "pip", "install", "--quiet", "conduct-cli[booster]"],
775
+ capture_output=True, text=True, timeout=120,
776
+ )
777
+ if r.returncode != 0:
778
+ print(f" {RED}Agent Booster:{RESET} install failed — {r.stderr.strip()[:120]}")
779
+ return
780
+ print(f" {GREEN}Agent Booster:{RESET} installed")
781
+ if not shutil.which("booster"):
782
+ print(f" {YELLOW}Agent Booster:{RESET} 'booster' not on PATH yet — restart shell or re-run sync")
783
+ return
784
+
785
+ # Upgrade booster to latest in background (non-blocking)
786
+ try:
787
+ subprocess.Popen(
788
+ [sys.executable, "-m", "pip", "install", "--quiet", "--upgrade", "conduct-cli[booster]"],
789
+ stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
790
+ )
791
+ except Exception:
792
+ pass
774
793
 
775
794
  db_path = root / ".booster" / "symbols.db"
776
795
  hooks_path = root / ".claude" / "hooks" / "booster-gate.py"
@@ -22,7 +22,7 @@ def post_session_to_api(session_id: str, transcript_path: str | None, repo: str
22
22
  return False
23
23
  server = cfg.get("server", "").rstrip("/")
24
24
  api_key = cfg.get("api_key", "")
25
- workspace_id = cfg.get("workspace_id", "")
25
+ workspace_id = cfg.get("workspace_id") or cfg.get("workspace", "")
26
26
  if not server or not workspace_id:
27
27
  return False
28
28
 
@@ -70,7 +70,7 @@ def search_team_memory(query: str, repo: str | None = None, limit: int = 5) -> l
70
70
  return []
71
71
  server = cfg.get("server", "").rstrip("/")
72
72
  api_key = cfg.get("api_key", "")
73
- workspace_id = cfg.get("workspace_id", "")
73
+ workspace_id = cfg.get("workspace_id") or cfg.get("workspace", "")
74
74
  if not server or not workspace_id:
75
75
  return []
76
76
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.75
3
+ Version: 0.4.77
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