2 Commits
Author SHA1 Message Date
JianMiauandClaude Fable 5 7b9bc0ea5b 發佈 0.1.2:README 圖片改絕對網址,套件頁可顯示
摘要:
README 的截圖從相對路徑 docs/ 改為 repo 的 media 絕對網址,
Gitea 套件頁(沒有 docs/ 檔案可對照)也能正常顯示圖片;版本升至 0.1.2 重發。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 16:38:11 +08:00
JianMiauandClaude Fable 5 6d8d964e5c README 安裝指令改用公司 npm registry
摘要:
套件發佈在 git.catan.com.tw 的 Frontend registry 而非官方 npmjs,
安裝與升級指令補上 --registry 參數,避免照抄預設指令裝不到。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 16:34:20 +08:00
2 changed files with 14 additions and 6 deletions
+13 -5
View File
@@ -21,10 +21,18 @@
## 快速開始
```bash
npm install -g telegram-codex-bot
# 套件發佈在公司的 npm registry(不是官方 npmjs),安裝要指定 --registry
npm install -g telegram-codex-bot --registry=https://git.catan.com.tw/api/packages/Frontend/npm/
telegram-codex-bot start # 先做環境檢查(codex/登入/pm2/git),再把控制台掛上 pm2
```
之後升級同樣帶 `--registry`:
```bash
npm update -g telegram-codex-bot --registry=https://git.catan.com.tw/api/packages/Frontend/npm/
```
打開 **http://localhost:3799** →「🤖 Bot 管理」→「➕ 新增 Bot」:
1. 填名稱、Telegram token(儲存時自動驗證)
@@ -50,7 +58,7 @@ telegram-codex-bot start # 先做環境檢查(codex/登入/pm2/git),再
**① Bot 管理首頁** — 每個 bot 一列:狀態、工作目錄、沙盒與模型設定、遮罩後的 token。
右側按鈕:▶ 啟動 / ⏹ 停止、🔄 重啟、📄 log、✏️ 編輯、🗑 刪除。上方橫幅提醒群組使用要先關 Group Privacy。
![Bot 管理首頁](docs/01-bots.png)
![Bot 管理首頁](https://git.catan.com.tw/Frontend/telegram-codex-bot/media/branch/master/docs/01-bots.png)
**② 新增 Bot** — 按右上「➕ 新增 Bot」:
@@ -60,15 +68,15 @@ telegram-codex-bot start # 先做環境檢查(codex/登入/pm2/git),再
4. **模型 / 推理強度 / 速度**:下拉選單,預設值自動帶你機器上 codex 的全域設定;清單讀自本機 codex 模型快取,換模型時強度選項會連動(如 ultra 只有支援的模型才出現)
5. 勾「建立後立即啟動」→ 儲存,bot 就上線了
![新增 Bot 表單](docs/02-create.png)
![新增 Bot 表單](https://git.catan.com.tw/Frontend/telegram-codex-bot/media/branch/master/docs/02-create.png)
**③ PM2 分頁** — 整台機器所有 pm2 程序。Port 可直接點開對應網頁,右側可啟停/重啟/刪除任何程序。
![PM2 分頁](docs/03-pm2.png)
![PM2 分頁](https://git.catan.com.tw/Frontend/telegram-codex-bot/media/branch/master/docs/03-pm2.png)
**④ Log 檢視** — 點任一程序的「📄 out」/「⚠ err」,下方展開尾端 200 行,可勾自動更新(5s)。
![Log 檢視](docs/04-log.png)
![Log 檢視](https://git.catan.com.tw/Frontend/telegram-codex-bot/media/branch/master/docs/04-log.png)
- 兩個分頁每 5 秒自動更新
- Bot 設定存於 `~/.tgcodex/bots/<名稱>/tgcodex.config.json`,bot 掛 pm2 的程序名 = bot 名稱
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "telegram-codex-bot",
"version": "0.1.1",
"version": "0.1.2",
"description": "Telegram bot powered by the local Codex CLI — zero-dependency, pm2-managed, with a built-in PM2 web viewer",
"license": "MIT",
"type": "commonjs",