conduct-cli 0.4.74__tar.gz → 0.4.75__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.74 → conduct_cli-0.4.75}/PKG-INFO +1 -1
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/pyproject.toml +1 -1
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli/guard.py +13 -2
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/README.md +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/setup.cfg +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/setup.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli/memory.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.4.74 → conduct_cli-0.4.75}/tests/test_switch.py +0 -0
|
@@ -778,8 +778,15 @@ def _ensure_booster(root: Path) -> None:
|
|
|
778
778
|
# Init (writes hook scripts + wires settings.json) — fast, idempotent
|
|
779
779
|
if not hooks_path.exists():
|
|
780
780
|
try:
|
|
781
|
-
subprocess.run(
|
|
782
|
-
|
|
781
|
+
r = subprocess.run(
|
|
782
|
+
["booster", "init", "claude", "--yes"],
|
|
783
|
+
capture_output=True, timeout=15, cwd=str(root),
|
|
784
|
+
)
|
|
785
|
+
if r.returncode == 0:
|
|
786
|
+
print(f" {GREEN}Agent Booster:{RESET} hooks installed")
|
|
787
|
+
else:
|
|
788
|
+
print(f" {GRAY}Agent Booster:{RESET} init failed — {r.stderr.strip()[:120]}")
|
|
789
|
+
return
|
|
783
790
|
except Exception:
|
|
784
791
|
return
|
|
785
792
|
|
|
@@ -1170,6 +1177,10 @@ def cmd_guard_booster_status(args):
|
|
|
1170
1177
|
|
|
1171
1178
|
# 5. Live intercept test — try reading a known file and check if smart-read fires
|
|
1172
1179
|
print(f"\n {BOLD}Live intercept test:{RESET}")
|
|
1180
|
+
if not hooks_path.exists():
|
|
1181
|
+
print(f" {YELLOW}~{RESET} Skipped — hook script not present")
|
|
1182
|
+
print()
|
|
1183
|
+
return
|
|
1173
1184
|
try:
|
|
1174
1185
|
import tempfile, json as _json
|
|
1175
1186
|
# Pick the first indexed file
|
|
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
|