conduct-cli 0.4.94__tar.gz → 0.4.95__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.94 → conduct_cli-0.4.95}/PKG-INFO +1 -1
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/pyproject.toml +1 -1
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/main.py +3 -3
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/README.md +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/setup.cfg +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/setup.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/guard.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/hook_stop_template.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/memory.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli/paxel.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.4.94 → conduct_cli-0.4.95}/tests/test_switch.py +0 -0
|
@@ -2334,7 +2334,7 @@ def cmd_emit_finding(args):
|
|
|
2334
2334
|
print(finding_id)
|
|
2335
2335
|
|
|
2336
2336
|
|
|
2337
|
-
def _gh_api_get(url: str, token: str)
|
|
2337
|
+
def _gh_api_get(url: str, token: str):
|
|
2338
2338
|
import urllib.request, urllib.error
|
|
2339
2339
|
req = urllib.request.Request(url, headers={
|
|
2340
2340
|
"Authorization": f"Bearer {token}",
|
|
@@ -2346,14 +2346,14 @@ def _gh_api_get(url: str, token: str) -> dict | list:
|
|
|
2346
2346
|
|
|
2347
2347
|
|
|
2348
2348
|
def _fetch_github_issue(repo: str, issue_number: int, token: str) -> dict:
|
|
2349
|
-
return _gh_api_get(f"https://api.github.com/repos/{repo}/issues/{issue_number}", token)
|
|
2349
|
+
return _gh_api_get(f"https://api.github.com/repos/{repo}/issues/{issue_number}", token)
|
|
2350
2350
|
|
|
2351
2351
|
|
|
2352
2352
|
def _fetch_issues_by_label(repo: str, label: str, token: str) -> list:
|
|
2353
2353
|
return _gh_api_get(
|
|
2354
2354
|
f"https://api.github.com/repos/{repo}/issues?labels={label}&state=open&per_page=20",
|
|
2355
2355
|
token,
|
|
2356
|
-
)
|
|
2356
|
+
)
|
|
2357
2357
|
|
|
2358
2358
|
|
|
2359
2359
|
def _build_issue_trigger_payload(issue: dict, repo: str) -> dict:
|
|
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
|