conduct-cli 0.4.3__tar.gz → 0.4.4__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.3 → conduct_cli-0.4.4}/PKG-INFO +1 -1
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/pyproject.toml +1 -1
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli/guard.py +16 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/README.md +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/setup.cfg +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/setup.py +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.3 → conduct_cli-0.4.4}/src/conduct_cli.egg-info/top_level.txt +0 -0
|
@@ -529,6 +529,22 @@ def cmd_guard_status(args):
|
|
|
529
529
|
api_key = cfg.get("api_key", "")
|
|
530
530
|
base_url = _api_url(cfg)
|
|
531
531
|
|
|
532
|
+
# Auto-refresh user_email into config if it was installed before this was wired up
|
|
533
|
+
if not user_email and api_key:
|
|
534
|
+
try:
|
|
535
|
+
installed = _req("GET", f"{base_url}/guard/config/installed", api_key=api_key)
|
|
536
|
+
fetched_email = installed.get("user_email") or ""
|
|
537
|
+
if fetched_email:
|
|
538
|
+
cfg["user_email"] = fetched_email
|
|
539
|
+
_save_guard_config(cfg)
|
|
540
|
+
# Rewrite hook script so future events carry the email
|
|
541
|
+
hook_path = GUARD_DIR / "hook.py"
|
|
542
|
+
hook_path.write_text(_HOOK_SCRIPT)
|
|
543
|
+
hook_path.chmod(0o755)
|
|
544
|
+
user_email = fetched_email
|
|
545
|
+
except Exception:
|
|
546
|
+
pass
|
|
547
|
+
|
|
532
548
|
# Load local policy for rule count
|
|
533
549
|
rule_count = 0
|
|
534
550
|
if POLICY_PATH.exists():
|
|
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
|