conduct-cli 0.4.82__tar.gz → 0.4.84__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.82 → conduct_cli-0.4.84}/PKG-INFO +1 -1
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/pyproject.toml +1 -1
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/main.py +6 -4
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/memory.py +0 -8
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/README.md +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/setup.cfg +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/setup.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/guard.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/hook_stop_template.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.4.82 → conduct_cli-0.4.84}/tests/test_switch.py +0 -0
|
@@ -497,8 +497,8 @@ def cmd_login(args):
|
|
|
497
497
|
ak = cfg.get("api_key")
|
|
498
498
|
tok = cfg.get("token")
|
|
499
499
|
|
|
500
|
-
#
|
|
501
|
-
if ak and ak.startswith("cond_live_")
|
|
500
|
+
# Fetch identity from API key — always refresh email/user_id
|
|
501
|
+
if ak and ak.startswith("cond_live_"):
|
|
502
502
|
try:
|
|
503
503
|
hdrs = {"X-Api-Key": ak, "Content-Type": "application/json"}
|
|
504
504
|
me = api.req("GET", f"{s}/me", hdrs)
|
|
@@ -507,9 +507,11 @@ def cmd_login(args):
|
|
|
507
507
|
cfg["user_id"] = me["user_id"]
|
|
508
508
|
if me.get("email"):
|
|
509
509
|
cfg["email"] = me["email"]
|
|
510
|
-
|
|
510
|
+
if not cfg.get("workspace"):
|
|
511
|
+
print(f"{GREEN}✓ Workspace discovered:{RESET} {cfg['workspace']}")
|
|
511
512
|
except SystemExit:
|
|
512
|
-
|
|
513
|
+
if not cfg.get("workspace"):
|
|
514
|
+
print(f"{YELLOW}⚠ Could not auto-discover workspace. Pass --workspace <id> manually.{RESET}")
|
|
513
515
|
|
|
514
516
|
ws = cfg.get("workspace", "")
|
|
515
517
|
if ws and (ak or tok):
|
|
@@ -37,14 +37,6 @@ def post_session_to_api(session_id: str, transcript_path: str | None, repo: str
|
|
|
37
37
|
pass
|
|
38
38
|
|
|
39
39
|
developer_id = cfg.get("user_id") or cfg.get("email") or cfg.get("member_email")
|
|
40
|
-
if not developer_id:
|
|
41
|
-
try:
|
|
42
|
-
import subprocess as _sp
|
|
43
|
-
developer_id = _sp.check_output(
|
|
44
|
-
["git", "config", "user.email"], stderr=_sp.DEVNULL, text=True
|
|
45
|
-
).strip() or None
|
|
46
|
-
except Exception:
|
|
47
|
-
pass
|
|
48
40
|
|
|
49
41
|
payload = json.dumps({
|
|
50
42
|
"session_id": session_id,
|
|
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
|