telegram-opencode-bridge-bot 0.1.9__tar.gz → 0.1.11__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.
Files changed (27) hide show
  1. {telegram_opencode_bridge_bot-0.1.9/telegram_opencode_bridge_bot.egg-info → telegram_opencode_bridge_bot-0.1.11}/PKG-INFO +3 -3
  2. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/README.md +2 -2
  3. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/handlers/commands.py +11 -11
  4. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/pyproject.toml +1 -1
  5. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11/telegram_opencode_bridge_bot.egg-info}/PKG-INFO +3 -3
  6. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/.env.example +0 -0
  7. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/MANIFEST.in +0 -0
  8. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/bot.py +0 -0
  9. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/config.py +0 -0
  10. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/handlers/__init__.py +0 -0
  11. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/handlers/messages.py +0 -0
  12. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/list_session_models.py +0 -0
  13. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/opencode/__init__.py +0 -0
  14. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/opencode/client.py +0 -0
  15. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/opencode/server.py +0 -0
  16. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/requirements.txt +0 -0
  17. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/sessions/__init__.py +0 -0
  18. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/sessions/manager.py +0 -0
  19. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/setup.cfg +0 -0
  20. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/telegram_opencode_bridge_bot.egg-info/SOURCES.txt +0 -0
  21. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/telegram_opencode_bridge_bot.egg-info/dependency_links.txt +0 -0
  22. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/telegram_opencode_bridge_bot.egg-info/entry_points.txt +0 -0
  23. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/telegram_opencode_bridge_bot.egg-info/requires.txt +0 -0
  24. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/telegram_opencode_bridge_bot.egg-info/top_level.txt +0 -0
  25. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/utils/__init__.py +0 -0
  26. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/utils/formatting.py +0 -0
  27. {telegram_opencode_bridge_bot-0.1.9 → telegram_opencode_bridge_bot-0.1.11}/utils/security.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: telegram-opencode-bridge-bot
3
- Version: 0.1.9
3
+ Version: 0.1.11
4
4
  Summary: A Telegram bot that bridges messages directly to OpenCode — an AI coding agent running on your machine
5
5
  Author-email: MaheshNagabhairava <maheshnagabhirava12345@gmail.com>
6
6
  License-Expression: MIT
@@ -58,7 +58,7 @@ A premium, feature-rich Python bot that bridges your Telegram client directly to
58
58
  ### Option A: Standard PyPI Installation
59
59
  Install and run the bot wrapper directly from the terminal:
60
60
  ```bash
61
- pip install telegram-opencode-bridge-bot==0.1.9
61
+ pip install telegram-opencode-bridge-bot==0.1.11
62
62
  telegram-opencode-bot
63
63
  ```
64
64
  > **💡 Tip:** Use the `--env` flag anytime to reconfigure your variables:
@@ -143,7 +143,7 @@ The following parameters can be defined in your `.env` configuration file:
143
143
  ┌────────┴────────┐
144
144
  ▼ ▼
145
145
  🤖 LLM Provider 📁 Local Workspace
146
- (Claude/DeepSeek/etc.) (Shell / Filesystem)
146
+ (Claude/DeepSeek/Codex/etc.) (Shell / Filesystem)
147
147
  ```
148
148
 
149
149
  ---
@@ -41,7 +41,7 @@ A premium, feature-rich Python bot that bridges your Telegram client directly to
41
41
  ### Option A: Standard PyPI Installation
42
42
  Install and run the bot wrapper directly from the terminal:
43
43
  ```bash
44
- pip install telegram-opencode-bridge-bot==0.1.9
44
+ pip install telegram-opencode-bridge-bot==0.1.11
45
45
  telegram-opencode-bot
46
46
  ```
47
47
  > **💡 Tip:** Use the `--env` flag anytime to reconfigure your variables:
@@ -126,7 +126,7 @@ The following parameters can be defined in your `.env` configuration file:
126
126
  ┌────────┴────────┐
127
127
  ▼ ▼
128
128
  🤖 LLM Provider 📁 Local Workspace
129
- (Claude/DeepSeek/etc.) (Shell / Filesystem)
129
+ (Claude/DeepSeek/Codex/etc.) (Shell / Filesystem)
130
130
  ```
131
131
 
132
132
  ---
@@ -1186,27 +1186,27 @@ async def update_command(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
1186
1186
 
1187
1187
  is_git = os.path.exists(".git")
1188
1188
 
1189
- def run_cmd_sync(command: str) -> tuple[int, str, str]:
1190
- """Helper to run a shell command synchronously."""
1189
+ def run_cmd_sync(command: list[str]) -> tuple[int, str, str]:
1190
+ """Helper to run a command synchronously."""
1191
1191
  import subprocess
1192
1192
  proc = subprocess.run(
1193
1193
  command,
1194
- shell=True,
1194
+ shell=False,
1195
1195
  stdout=subprocess.PIPE,
1196
1196
  stderr=subprocess.PIPE,
1197
1197
  text=True
1198
1198
  )
1199
1199
  return proc.returncode, proc.stdout.strip(), proc.stderr.strip()
1200
1200
 
1201
- async def run_cmd(command: str) -> tuple[int, str, str]:
1202
- """Helper to run a shell command in a background thread."""
1201
+ async def run_cmd(command: list[str]) -> tuple[int, str, str]:
1202
+ """Helper to run a command in a background thread."""
1203
1203
  return await asyncio.to_thread(run_cmd_sync, command)
1204
1204
 
1205
1205
  if is_git:
1206
1206
  await update_status("🔍 <b>Detected Git installation. Fetching remote changes...</b>")
1207
1207
 
1208
1208
  # 1. Git fetch
1209
- code, stdout, stderr = await run_cmd("git fetch origin")
1209
+ code, stdout, stderr = await run_cmd(["git", "fetch", "origin"])
1210
1210
  if code != 0:
1211
1211
  await update_status(
1212
1212
  f"❌ <b>Git fetch failed:</b>\n"
@@ -1215,8 +1215,8 @@ async def update_command(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
1215
1215
  return
1216
1216
 
1217
1217
  # 2. Check diff
1218
- code_local, local_hash, _ = await run_cmd("git rev-parse HEAD")
1219
- code_remote, remote_hash, _ = await run_cmd("git rev-parse @{u}")
1218
+ code_local, local_hash, _ = await run_cmd(["git", "rev-parse", "HEAD"])
1219
+ code_remote, remote_hash, _ = await run_cmd(["git", "rev-parse", "@{u}"])
1220
1220
 
1221
1221
  if code_local != 0 or code_remote != 0:
1222
1222
  await update_status("❌ <b>Failed to resolve Git commit hashes.</b>")
@@ -1232,7 +1232,7 @@ async def update_command(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
1232
1232
  await update_status("🔄 <b>New updates found. Pulling latest code changes...</b>")
1233
1233
 
1234
1234
  # 3. Git pull
1235
- code_pull, pull_stdout, pull_stderr = await run_cmd("git pull")
1235
+ code_pull, pull_stdout, pull_stderr = await run_cmd(["git", "pull"])
1236
1236
  if code_pull != 0:
1237
1237
  await update_status(
1238
1238
  f"❌ <b>Git pull failed:</b>\n"
@@ -1243,14 +1243,14 @@ async def update_command(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
1243
1243
  # 4. Pip install requirements if updated
1244
1244
  if os.path.exists("requirements.txt"):
1245
1245
  await update_status("📦 <b>Updating dependencies from requirements.txt...</b>")
1246
- await run_cmd(f"{sys.executable} -m pip install -r requirements.txt")
1246
+ await run_cmd([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])
1247
1247
 
1248
1248
  else:
1249
1249
  # Pip package installation
1250
1250
  await update_status("🔍 <b>Detected Pip installation. Checking PyPI for updates...</b>")
1251
1251
 
1252
1252
  # Run pip install --upgrade
1253
- code, stdout, stderr = await run_cmd(f"{sys.executable} -m pip install --upgrade telegram-opencode-bridge-bot")
1253
+ code, stdout, stderr = await run_cmd([sys.executable, "-m", "pip", "install", "--upgrade", "telegram-opencode-bridge-bot"])
1254
1254
  if code != 0:
1255
1255
  await update_status(
1256
1256
  f"❌ <b>Pip upgrade failed:</b>\n"
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "telegram-opencode-bridge-bot"
7
- version = "0.1.9"
7
+ version = "0.1.11"
8
8
  description = "A Telegram bot that bridges messages directly to OpenCode — an AI coding agent running on your machine"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: telegram-opencode-bridge-bot
3
- Version: 0.1.9
3
+ Version: 0.1.11
4
4
  Summary: A Telegram bot that bridges messages directly to OpenCode — an AI coding agent running on your machine
5
5
  Author-email: MaheshNagabhairava <maheshnagabhirava12345@gmail.com>
6
6
  License-Expression: MIT
@@ -58,7 +58,7 @@ A premium, feature-rich Python bot that bridges your Telegram client directly to
58
58
  ### Option A: Standard PyPI Installation
59
59
  Install and run the bot wrapper directly from the terminal:
60
60
  ```bash
61
- pip install telegram-opencode-bridge-bot==0.1.9
61
+ pip install telegram-opencode-bridge-bot==0.1.11
62
62
  telegram-opencode-bot
63
63
  ```
64
64
  > **💡 Tip:** Use the `--env` flag anytime to reconfigure your variables:
@@ -143,7 +143,7 @@ The following parameters can be defined in your `.env` configuration file:
143
143
  ┌────────┴────────┐
144
144
  ▼ ▼
145
145
  🤖 LLM Provider 📁 Local Workspace
146
- (Claude/DeepSeek/etc.) (Shell / Filesystem)
146
+ (Claude/DeepSeek/Codex/etc.) (Shell / Filesystem)
147
147
  ```
148
148
 
149
149
  ---