conduct-cli 0.4.89__tar.gz → 0.4.91__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.89 → conduct_cli-0.4.91}/PKG-INFO +1 -1
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/pyproject.toml +1 -1
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/main.py +28 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/README.md +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/setup.cfg +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/setup.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/guard.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/hook_stop_template.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/memory.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli/paxel.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.4.89 → conduct_cli-0.4.91}/tests/test_switch.py +0 -0
|
@@ -2261,6 +2261,34 @@ def cmd_session_report(args):
|
|
|
2261
2261
|
webbrowser.open(f"file://{html_path}")
|
|
2262
2262
|
print("Opening report in browser…")
|
|
2263
2263
|
|
|
2264
|
+
# ── 5. Push report to Guard dashboard ────────────────────────────────────
|
|
2265
|
+
try:
|
|
2266
|
+
server, workspace_id, api_key, token = _require_auth(args)
|
|
2267
|
+
hdrs = api.headers(workspace_id, token, "application/json", api_key)
|
|
2268
|
+
import getpass as _getpass
|
|
2269
|
+
email = getattr(args, "developer", None) or _getpass.getuser()
|
|
2270
|
+
payload = _json.dumps({
|
|
2271
|
+
"developer_email": email,
|
|
2272
|
+
"archetype": archetype,
|
|
2273
|
+
"autonomy_score": float(autonomy_score) if autonomy_score != "?" else None,
|
|
2274
|
+
"planning_ratio": float(planning_ratio) if planning_ratio else None,
|
|
2275
|
+
"sessions": int(sessions) if sessions != "?" else 0,
|
|
2276
|
+
"prompts": int(prompts) if prompts != "?" else 0,
|
|
2277
|
+
"commits": int(commits) if commits != "?" else 0,
|
|
2278
|
+
"lines_per_hour": float(velocity.get("git_lines_per_active_hour", 0) or 0) if isinstance(velocity, dict) else None,
|
|
2279
|
+
"active_days": int(volume.get("active_days", 0) or 0),
|
|
2280
|
+
"tools_json": dict(tools.get("top_tools") or []),
|
|
2281
|
+
"report_md": report_md[:50000] if report_md else None,
|
|
2282
|
+
}).encode()
|
|
2283
|
+
req = __import__("urllib.request", fromlist=["Request"]).Request(
|
|
2284
|
+
f"{server}/guard/session-reports",
|
|
2285
|
+
data=payload, headers=hdrs, method="POST",
|
|
2286
|
+
)
|
|
2287
|
+
__import__("urllib.request", fromlist=["urlopen"]).urlopen(req, timeout=10)
|
|
2288
|
+
print("✓ Report saved to Guard dashboard.")
|
|
2289
|
+
except Exception:
|
|
2290
|
+
print(" (Could not push to dashboard — run 'conduct login' to enable)")
|
|
2291
|
+
|
|
2264
2292
|
|
|
2265
2293
|
def cmd_emit_finding(args):
|
|
2266
2294
|
"""POST a security finding to /security-findings."""
|
|
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
|
|
File without changes
|
|
File without changes
|