conduct-cli 0.6.8__tar.gz → 0.6.10__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.6.8 → conduct_cli-0.6.10}/PKG-INFO +1 -1
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/pyproject.toml +1 -1
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/guard.py +7 -1
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/README.md +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/setup.cfg +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/setup.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/hook_stop_template.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/log_util.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/memory.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli/paxel.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/tests/test_bash_operator_signature.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/tests/test_command_word_matcher.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/tests/test_journal_drain.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/tests/test_log_util.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/tests/test_proxy_env.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/tests/test_signed_policy.py +0 -0
- {conduct_cli-0.6.8 → conduct_cli-0.6.10}/tests/test_switch.py +0 -0
|
@@ -1221,7 +1221,13 @@ def _write_proxy_env(member_token: str, proxy_url: str) -> tuple[Path, bool]:
|
|
|
1221
1221
|
return Path(), False
|
|
1222
1222
|
|
|
1223
1223
|
existing = rc.read_text() if rc.exists() else ""
|
|
1224
|
+
CLAUDE_ALIAS = "alias claude='env -u ANTHROPIC_BASE_URL claude'"
|
|
1225
|
+
|
|
1224
1226
|
if SHELL_RC_MARKER in existing:
|
|
1227
|
+
# Already installed — patch in the alias if missing (upgrade path)
|
|
1228
|
+
if CLAUDE_ALIAS not in existing:
|
|
1229
|
+
rc.write_text(existing.rstrip() + f"\n{CLAUDE_ALIAS}\n")
|
|
1230
|
+
return rc, True
|
|
1225
1231
|
return rc, False
|
|
1226
1232
|
|
|
1227
1233
|
rc.parent.mkdir(parents=True, exist_ok=True)
|
|
@@ -1230,7 +1236,7 @@ def _write_proxy_env(member_token: str, proxy_url: str) -> tuple[Path, bool]:
|
|
|
1230
1236
|
addition = (
|
|
1231
1237
|
f"\n\n{SHELL_RC_MARKER}\n"
|
|
1232
1238
|
f"{SHELL_SOURCE_LINE}\n"
|
|
1233
|
-
f"
|
|
1239
|
+
f"{CLAUDE_ALIAS}\n"
|
|
1234
1240
|
)
|
|
1235
1241
|
rc.write_text(existing.rstrip() + addition if existing else addition.lstrip())
|
|
1236
1242
|
return rc, True
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|