conduct-cli 0.4.79__tar.gz → 0.4.81__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.79 → conduct_cli-0.4.81}/PKG-INFO +1 -1
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/pyproject.toml +1 -1
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/main.py +4 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/memory.py +11 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/README.md +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/setup.cfg +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/setup.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/guard.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/hook_stop_template.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.4.79 → conduct_cli-0.4.81}/tests/test_switch.py +0 -0
|
@@ -503,6 +503,10 @@ def cmd_login(args):
|
|
|
503
503
|
hdrs = {"X-Api-Key": ak, "Content-Type": "application/json"}
|
|
504
504
|
me = api.req("GET", f"{s}/me", hdrs)
|
|
505
505
|
cfg["workspace"] = me["workspace_id"]
|
|
506
|
+
if me.get("user_id"):
|
|
507
|
+
cfg["user_id"] = me["user_id"]
|
|
508
|
+
if me.get("email"):
|
|
509
|
+
cfg["email"] = me["email"]
|
|
506
510
|
print(f"{GREEN}✓ Workspace discovered:{RESET} {cfg['workspace']}")
|
|
507
511
|
except SystemExit:
|
|
508
512
|
print(f"{YELLOW}⚠ Could not auto-discover workspace. Pass --workspace <id> manually.{RESET}")
|
|
@@ -36,12 +36,23 @@ def post_session_to_api(session_id: str, transcript_path: str | None, repo: str
|
|
|
36
36
|
except Exception:
|
|
37
37
|
pass
|
|
38
38
|
|
|
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
|
+
|
|
39
49
|
payload = json.dumps({
|
|
40
50
|
"session_id": session_id,
|
|
41
51
|
"tool": "claude_code",
|
|
42
52
|
"repo_full_name": repo,
|
|
43
53
|
"raw_transcript": raw_transcript,
|
|
44
54
|
"files_touched": [],
|
|
55
|
+
"developer_id": developer_id,
|
|
45
56
|
}).encode()
|
|
46
57
|
|
|
47
58
|
def _send():
|
|
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
|