conduct-cli 0.6.2__tar.gz → 0.6.3__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.6.2 → conduct_cli-0.6.3}/PKG-INFO +1 -1
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/pyproject.toml +1 -1
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/guard.py +16 -6
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/README.md +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/setup.cfg +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/setup.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/hook_stop_template.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/log_util.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/memory.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli/paxel.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/tests/test_bash_operator_signature.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/tests/test_command_word_matcher.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/tests/test_log_util.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/tests/test_proxy_env.py +0 -0
- {conduct_cli-0.6.2 → conduct_cli-0.6.3}/tests/test_switch.py +0 -0
|
@@ -909,12 +909,22 @@ def _check_and_upgrade_packages() -> None:
|
|
|
909
909
|
|
|
910
910
|
print(f" {YELLOW}Updates available:{RESET} " + ", ".join(f"{p} {c} → {l}" for p, c, l in stale))
|
|
911
911
|
try:
|
|
912
|
-
import subprocess
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
912
|
+
import subprocess, shutil
|
|
913
|
+
# agent-booster requires >=3.10; conduct-cli runs on 3.9.
|
|
914
|
+
# Use the right interpreter for each package.
|
|
915
|
+
def _pip_for(pkg: str) -> str:
|
|
916
|
+
if pkg == "agent-booster":
|
|
917
|
+
for py in ["python3.11", "python3.12", "python3.10"]:
|
|
918
|
+
if shutil.which(py):
|
|
919
|
+
return py
|
|
920
|
+
return sys.executable
|
|
921
|
+
|
|
922
|
+
for pkg, _, latest in stale:
|
|
923
|
+
py = _pip_for(pkg)
|
|
924
|
+
subprocess.run(
|
|
925
|
+
[py, "-m", "pip", "install", "--upgrade", "--quiet", pkg],
|
|
926
|
+
check=True,
|
|
927
|
+
)
|
|
918
928
|
print(f" {GREEN}Updated:{RESET} " + ", ".join(f"{p} → {l}" for p, _, l in stale))
|
|
919
929
|
except Exception as e:
|
|
920
930
|
print(f" {YELLOW}Auto-update failed:{RESET} {e} — run: pip install --upgrade {' '.join(p for p,_,_ in stale)}")
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|