codex-telegram 0.5.5__tar.gz → 0.5.7__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.
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/PKG-INFO +1 -1
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex_telegram/__init__.py +1 -1
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex_telegram/cli.py +17 -4
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex_telegram.egg-info/PKG-INFO +1 -1
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/LICENSE +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/MANIFEST.in +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/README.md +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/TELEGRAM.md +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/WEB.md +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/app_runtime/__init__.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/app_runtime/bootstrap.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/app_runtime/telegram_app.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/app_runtime/web_server.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/bot/__init__.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/bot/callbacks.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/bot/features_ui.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/bot/handlers.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/bot/keyboard.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/bot/projects_ui.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/bot/skills_ui.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/bot/thread_ui.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/__init__.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/approval_flow.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/approval_guardian.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/client.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/client_pool.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/collaboration_mode.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/command_router/__init__.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/command_router/common.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/command_router/context.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/command_router/contracts.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/command_router/core.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/command_router/projects.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/command_router/review.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/command_router/system.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/command_router/threads.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/commands.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/event_forwarding.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/events.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex/protocol.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex_telegram.egg-info/SOURCES.txt +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex_telegram.egg-info/dependency_links.txt +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex_telegram.egg-info/entry_points.txt +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex_telegram.egg-info/requires.txt +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/codex_telegram.egg-info/top_level.txt +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/conf.toml.example +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/main.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/models/__init__.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/models/state.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/models/telegram_bridge.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/models/thread.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/models/user.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/pyproject.toml +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/setup.cfg +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_approval_guardian.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_approval_policy.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_bootstrap_update_check.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_callbacks_results.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_cli_entrypoint.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_codex_client.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_codex_client_pool.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_command_router.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_guardian_config.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_handlers_results.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_keyboard.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_main_approval_flow.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_normalize.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_pypi_check.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_single_instance.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_telegram_bot_config.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_thread_history.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_web_runtime.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/tests/test_web_server_local_command.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/utils/__init__.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/utils/approval_policy.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/utils/config.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/utils/local_command.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/utils/logger.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/utils/normalize.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/utils/pypi_check.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/utils/single_instance.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/utils/web_config.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/__init__.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/dependencies.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/routes.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/runtime.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/server.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/static/dist/assets/codex-telegram-icon-black.svg +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/static/dist/assets/codex-telegram-icon-ivory.svg +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/static/dist/assets/codex-telegram-login-image.png +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/static/dist/assets/index-DIOICBNe.js +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/static/dist/assets/index-DW1AcoLg.css +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/static/dist/favicon.ico +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/static/dist/index.html +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/telegram_sync.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/telegram_thread_selection.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/thread_history.py +0 -0
- {codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/workspace.py +0 -0
|
@@ -38,12 +38,22 @@ def _version_gt(v1: str, v2: str) -> bool:
|
|
|
38
38
|
return parse(v1) > parse(v2)
|
|
39
39
|
|
|
40
40
|
|
|
41
|
+
def _is_venv() -> bool:
|
|
42
|
+
"""Check if running inside a virtual environment."""
|
|
43
|
+
return hasattr(sys, "real_prefix") or (hasattr(sys, "base_prefix") and sys.base_prefix != sys.prefix)
|
|
44
|
+
|
|
45
|
+
|
|
41
46
|
def _prompt_update(latest: str) -> bool:
|
|
42
47
|
"""Prompt user to update. Returns True if user chooses to update."""
|
|
43
48
|
print(f"\n✨ Update available! {_get_version()} -> {latest}")
|
|
44
49
|
print(" Release notes: https://github.com/heungtae/codex-telegram/releases/latest")
|
|
45
50
|
print()
|
|
46
|
-
|
|
51
|
+
in_venv = _is_venv()
|
|
52
|
+
if in_venv:
|
|
53
|
+
print(" 1. Update now and exit (runs `pip install -U codex-telegram`)")
|
|
54
|
+
else:
|
|
55
|
+
print(" 1. Update now and exit (runs `pip install -U codex-telegram --break-system-packages`)")
|
|
56
|
+
print(" Note: Not in a virtual environment. Consider using `pipx install codex-telegram` instead.")
|
|
47
57
|
print(" 2. Skip this run")
|
|
48
58
|
print(" 3. Skip this version")
|
|
49
59
|
print()
|
|
@@ -65,13 +75,16 @@ def _load_root_main_module() -> ModuleType:
|
|
|
65
75
|
|
|
66
76
|
|
|
67
77
|
def main() -> int:
|
|
68
|
-
# Check for updates (skip if --version or --validate-config or --debug)
|
|
69
78
|
if "--version" not in sys.argv and "--validate-config" not in sys.argv and "--debug" not in sys.argv:
|
|
70
79
|
current = _get_version()
|
|
71
80
|
latest = _check_for_update(current)
|
|
72
81
|
if latest and _prompt_update(latest):
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
in_venv = _is_venv()
|
|
83
|
+
pip_args = [sys.executable, "-m", "pip", "install", "-U", "codex-telegram"]
|
|
84
|
+
if not in_venv:
|
|
85
|
+
pip_args.append("--break-system-packages")
|
|
86
|
+
print(f"Running: {' '.join(pip_args)}")
|
|
87
|
+
os.execvpe(sys.executable, pip_args, os.environ)
|
|
75
88
|
return 0
|
|
76
89
|
|
|
77
90
|
parser = argparse.ArgumentParser(
|
|
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
|
|
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
|
|
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
|
{codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/static/dist/assets/codex-telegram-icon-black.svg
RENAMED
|
File without changes
|
{codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/static/dist/assets/codex-telegram-icon-ivory.svg
RENAMED
|
File without changes
|
{codex_telegram-0.5.5 → codex_telegram-0.5.7}/web/static/dist/assets/codex-telegram-login-image.png
RENAMED
|
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
|