telegram-opencode-bridge-bot 0.1.13__tar.gz → 0.1.14__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.
- {telegram_opencode_bridge_bot-0.1.13/telegram_opencode_bridge_bot.egg-info → telegram_opencode_bridge_bot-0.1.14}/PKG-INFO +2 -2
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/README.md +1 -1
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/handlers/commands.py +21 -9
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/pyproject.toml +1 -1
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14/telegram_opencode_bridge_bot.egg-info}/PKG-INFO +2 -2
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/.env.example +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/MANIFEST.in +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/bot.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/config.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/handlers/__init__.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/handlers/messages.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/list_session_models.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/opencode/__init__.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/opencode/client.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/opencode/server.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/requirements.txt +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/sessions/__init__.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/sessions/manager.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/setup.cfg +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/telegram_opencode_bridge_bot.egg-info/SOURCES.txt +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/telegram_opencode_bridge_bot.egg-info/dependency_links.txt +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/telegram_opencode_bridge_bot.egg-info/entry_points.txt +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/telegram_opencode_bridge_bot.egg-info/requires.txt +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/telegram_opencode_bridge_bot.egg-info/top_level.txt +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/utils/__init__.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/utils/formatting.py +0 -0
- {telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/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.
|
|
3
|
+
Version: 0.1.14
|
|
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.
|
|
61
|
+
pip install telegram-opencode-bridge-bot==0.1.14
|
|
62
62
|
telegram-opencode-bot
|
|
63
63
|
```
|
|
64
64
|
> **💡 Tip:** Use the `--env` flag anytime to reconfigure your variables:
|
|
@@ -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.
|
|
44
|
+
pip install telegram-opencode-bridge-bot==0.1.14
|
|
45
45
|
telegram-opencode-bot
|
|
46
46
|
```
|
|
47
47
|
> **💡 Tip:** Use the `--env` flag anytime to reconfigure your variables:
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/handlers/commands.py
RENAMED
|
@@ -1310,19 +1310,31 @@ async def update_command(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
|
|
|
1310
1310
|
pass
|
|
1311
1311
|
|
|
1312
1312
|
import subprocess
|
|
1313
|
-
|
|
1313
|
+
# Use CREATE_NO_WINDOW (0x08000000) so the process runs silently in the background
|
|
1314
|
+
# without spawning a separate visible Command Prompt window that closes on exit.
|
|
1315
|
+
creationflags = 0x08000000 # CREATE_NO_WINDOW
|
|
1314
1316
|
|
|
1315
1317
|
updater_code = (
|
|
1316
1318
|
"import time, subprocess, sys, os\n"
|
|
1317
1319
|
"pid = int(sys.argv[1])\n"
|
|
1318
|
-
"
|
|
1319
|
-
"
|
|
1320
|
-
"
|
|
1321
|
-
"
|
|
1322
|
-
"
|
|
1323
|
-
"
|
|
1324
|
-
"
|
|
1325
|
-
"
|
|
1320
|
+
"with open('updater.log', 'w', encoding='utf-8') as f:\n"
|
|
1321
|
+
" f.write('Waiting for parent process to exit...\\n')\n"
|
|
1322
|
+
" f.flush()\n"
|
|
1323
|
+
" while True:\n"
|
|
1324
|
+
" try:\n"
|
|
1325
|
+
" os.kill(pid, 0)\n"
|
|
1326
|
+
" except OSError:\n"
|
|
1327
|
+
" break\n"
|
|
1328
|
+
" time.sleep(0.5)\n"
|
|
1329
|
+
" f.write('Parent exited. Upgrading telegram-opencode-bridge-bot...\\n')\n"
|
|
1330
|
+
" f.flush()\n"
|
|
1331
|
+
" res = subprocess.run([sys.executable, '-m', 'pip', 'install', '--upgrade', 'telegram-opencode-bridge-bot'], stdout=f, stderr=f)\n"
|
|
1332
|
+
" f.write(f'Pip upgrade finished with exit code: {res.returncode}\\n')\n"
|
|
1333
|
+
" f.write('Restarting bot...\\n')\n"
|
|
1334
|
+
" f.flush()\n"
|
|
1335
|
+
" # Start bot with CREATE_NO_WINDOW as a detached background daemon\n"
|
|
1336
|
+
" subprocess.Popen(sys.argv[2:], creationflags=0x08000000)\n"
|
|
1337
|
+
" f.write('Bot successfully spawned. Exiting updater.\\n')\n"
|
|
1326
1338
|
)
|
|
1327
1339
|
|
|
1328
1340
|
subprocess.Popen(
|
|
@@ -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.
|
|
7
|
+
version = "0.1.14"
|
|
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.
|
|
3
|
+
Version: 0.1.14
|
|
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.
|
|
61
|
+
pip install telegram-opencode-bridge-bot==0.1.14
|
|
62
62
|
telegram-opencode-bot
|
|
63
63
|
```
|
|
64
64
|
> **💡 Tip:** Use the `--env` flag anytime to reconfigure your variables:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/handlers/__init__.py
RENAMED
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/handlers/messages.py
RENAMED
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/list_session_models.py
RENAMED
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/opencode/__init__.py
RENAMED
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/opencode/client.py
RENAMED
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/opencode/server.py
RENAMED
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/requirements.txt
RENAMED
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/sessions/__init__.py
RENAMED
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/sessions/manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/utils/__init__.py
RENAMED
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/utils/formatting.py
RENAMED
|
File without changes
|
{telegram_opencode_bridge_bot-0.1.13 → telegram_opencode_bridge_bot-0.1.14}/utils/security.py
RENAMED
|
File without changes
|