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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.3
3
+ Version: 0.4.4
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.3"
7
+ version = "0.4.4"
8
8
  description = "CLI for Conduct AI — install agents, manage projects, run tests"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -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():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.3
3
+ Version: 0.4.4
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