Skip to content

Commit 059ef03

Browse files
committed
refactor: rename project to tp-opencode
Update all internal references, config paths, package name, docker service names, and documentation URLs from opencode-telegram-bot to tp-opencode.
1 parent a5b34a6 commit 059ef03

6 files changed

Lines changed: 20 additions & 20 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Thank you for your interest in contributing! This project is inspired by the wor
55
## Development Setup
66

77
```bash
8-
git clone https://github.com/2241812/opencode-telegram-bot.git
9-
cd opencode-telegram-bot
8+
git clone https://github.com/2241812/tp-opencode.git
9+
cd tp-opencode
1010
pip install -e ".[dev]"
1111
```
1212

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ opencode serve
7878
#### Option A: pip install (recommended)
7979

8080
```bash
81-
pip install opencode-telegram-bot
81+
pip install tp-opencode
8282
opencode-telegram config # Interactive setup wizard
8383
opencode-telegram start # Launch the bot
8484
```
8585

8686
#### Option B: From source
8787

8888
```bash
89-
git clone https://github.com/2241812/opencode-telegram-bot.git
90-
cd opencode-telegram-bot
89+
git clone https://github.com/2241812/tp-opencode.git
90+
cd tp-opencode
9191
pip install -r requirements.txt
9292
opencode-telegram config # Interactive setup wizard
9393
opencode-telegram start # Launch the bot
@@ -96,8 +96,8 @@ opencode-telegram start # Launch the bot
9696
#### Option C: Docker
9797

9898
```bash
99-
git clone https://github.com/2241812/opencode-telegram-bot.git
100-
cd opencode-telegram-bot
99+
git clone https://github.com/2241812/tp-opencode.git
100+
cd tp-opencode
101101
cp .env.example .env
102102
# Edit .env with your bot token and user ID
103103
docker compose up -d
@@ -214,8 +214,8 @@ Since the bot runs locally on your machine and connects to your local OpenCode s
214214
## Development
215215

216216
```bash
217-
git clone https://github.com/2241812/opencode-telegram-bot.git
218-
cd opencode-telegram-bot
217+
git clone https://github.com/2241812/tp-opencode.git
218+
cd tp-opencode
219219
pip install -e ".[dev]"
220220

221221
# Run with auto-reload
@@ -234,7 +234,7 @@ pytest tests/ -v
234234
## Project Structure
235235

236236
```
237-
opencode-telegram-bot/
237+
tp-opencode/
238238
├── src/opencode_telegram_bot/
239239
│ ├── api/
240240
│ │ ├── client.py # OpenCode HTTP API client

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
services:
2-
opencode-telegram-bot:
2+
tp-opencode:
33
build: .
4-
container_name: opencode-telegram-bot
4+
container_name: tp-opencode
55
restart: unless-stopped
66
env_file:
77
- .env
88
ports:
99
- "${WEB_GUI_PORT:-8765}:8765"
1010
volumes:
11-
- bot-data:/root/.config/opencode-telegram-bot
11+
- bot-data:/root/.config/tp-opencode
1212
networks:
1313
- opencode-net
1414
depends_on:

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=68.0", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "opencode-telegram-bot"
6+
name = "tp-opencode"
77
version = "0.1.0"
88
description = "Telegram bot client for OpenCode CLI — run and monitor AI coding tasks from your phone"
99
readme = "README.md"
@@ -52,10 +52,10 @@ opencode-tg = "opencode_telegram_bot.main:main"
5252
opencode-telegram = "opencode_telegram_bot.main:main"
5353

5454
[project.urls]
55-
Homepage = "https://github.com/2241812/opencode-telegram-bot"
56-
Repository = "https://github.com/2241812/opencode-telegram-bot"
57-
Issues = "https://github.com/2241812/opencode-telegram-bot/issues"
58-
Documentation = "https://github.com/2241812/opencode-telegram-bot/tree/main/docs"
55+
Homepage = "https://github.com/2241812/tp-opencode"
56+
Repository = "https://github.com/2241812/tp-opencode"
57+
Issues = "https://github.com/2241812/tp-opencode/issues"
58+
Documentation = "https://github.com/2241812/tp-opencode/tree/main/docs"
5959

6060
[tool.setuptools.packages.find]
6161
where = ["src"]

src/opencode_telegram_bot/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
logger = logging.getLogger(__name__)
1212

13-
DEFAULT_CONFIG_DIR = Path.home() / ".config" / "opencode-telegram-bot"
13+
DEFAULT_CONFIG_DIR = Path.home() / ".config" / "tp-opencode"
1414

1515

1616
class Settings(BaseSettings):

src/opencode_telegram_bot/core/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SessionManager:
1313
"""Manage session state and persistence."""
1414

1515
def __init__(self, data_dir: Path | None = None) -> None:
16-
self.data_dir = data_dir or Path.home() / ".config" / "opencode-telegram-bot"
16+
self.data_dir = data_dir or Path.home() / ".config" / "tp-opencode"
1717
self.data_dir.mkdir(parents=True, exist_ok=True)
1818
self._file = self.data_dir / "sessions.json"
1919
self._sessions: dict[str, dict[str, Any]] = self._load()

0 commit comments

Comments
 (0)