conduct-cli 0.4.76__tar.gz → 0.4.78__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.76 → conduct_cli-0.4.78}/PKG-INFO +1 -1
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/pyproject.toml +1 -1
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli/guard.py +3 -1
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli/memory.py +4 -2
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/README.md +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/setup.cfg +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/setup.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.4.76 → conduct_cli-0.4.78}/tests/test_switch.py +0 -0
|
@@ -783,9 +783,11 @@ def _ensure_booster(root: Path) -> None:
|
|
|
783
783
|
return
|
|
784
784
|
|
|
785
785
|
# Upgrade booster to latest in background (non-blocking)
|
|
786
|
+
# Use [booster] extra only on Python 3.10+ — agent-booster requires 3.10+
|
|
787
|
+
_pkg = "conduct-cli[booster]" if sys.version_info >= (3, 10) else "conduct-cli"
|
|
786
788
|
try:
|
|
787
789
|
subprocess.Popen(
|
|
788
|
-
[sys.executable, "-m", "pip", "install", "--quiet", "--upgrade",
|
|
790
|
+
[sys.executable, "-m", "pip", "install", "--quiet", "--upgrade", _pkg],
|
|
789
791
|
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
|
|
790
792
|
)
|
|
791
793
|
except Exception:
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"""Team session memory helpers for Conduct CLI."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
2
4
|
import json
|
|
3
5
|
import threading
|
|
4
6
|
import urllib.request
|
|
@@ -22,7 +24,7 @@ def post_session_to_api(session_id: str, transcript_path: str | None, repo: str
|
|
|
22
24
|
return False
|
|
23
25
|
server = cfg.get("server", "").rstrip("/")
|
|
24
26
|
api_key = cfg.get("api_key", "")
|
|
25
|
-
workspace_id = cfg.get("workspace_id", "")
|
|
27
|
+
workspace_id = cfg.get("workspace_id") or cfg.get("workspace", "")
|
|
26
28
|
if not server or not workspace_id:
|
|
27
29
|
return False
|
|
28
30
|
|
|
@@ -70,7 +72,7 @@ def search_team_memory(query: str, repo: str | None = None, limit: int = 5) -> l
|
|
|
70
72
|
return []
|
|
71
73
|
server = cfg.get("server", "").rstrip("/")
|
|
72
74
|
api_key = cfg.get("api_key", "")
|
|
73
|
-
workspace_id = cfg.get("workspace_id", "")
|
|
75
|
+
workspace_id = cfg.get("workspace_id") or cfg.get("workspace", "")
|
|
74
76
|
if not server or not workspace_id:
|
|
75
77
|
return []
|
|
76
78
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|