JianMiau and Claude Fable 5
ec06c77bde
發佈 0.1.10:tag 優先於回覆觸發,多 bot 同群不搶答
...
根本原因:
回覆 A bot 的訊息並 tag B bot 時,A 因「被回覆」觸發搶答,
B 才是使用者真正要叫的對象。
修法:
群組觸發改為 tag 優先:訊息含任何 bot tag(@xxx...bot)時,
只有第一個被 tag 的 bot 回應,被回覆的 bot 自動讓位;
沒有 bot tag 時維持原邏輯(回覆我 → 我回應)。
tag 一般使用者(非 bot username)不影響判定。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-14 17:27:01 +08:00
JianMiau and Claude Fable 5
2324347868
發佈 0.1.9:imagegen 產圖保險網,漏複製也會傳到 Telegram
...
根本原因:
codex 的 imagegen 技能預設把圖存在 ~/.codex/generated_images/<會話id>/,
是否複製進 .tgcodex-outbox/ 全靠模型遵守 prompt 規則,偶爾會漏,
導致 bot 回「畫好了」但沒附圖。
修法:
每輪結束除了交件匣,另掃描該會話的 generated_images 目錄,把本輪
(mtime 在輪次時間窗內)新生成的圖一併傳出;以檔案內容 MD5 去重,
交件匣有複製過的不會重複傳。generated_images 原檔保留(後續編輯可能要用)。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-14 17:23:06 +08:00
JianMiau and Claude Fable 5
b80d6f0a1b
發佈 0.1.8:支援傳圖/傳檔給使用者,新增連網開關
...
摘要:
1. 交件匣機制:每輪 prompt 附系統規則,Codex 把要給使用者的檔案放進
工作目錄的 .tgcodex-outbox/,回覆後 bot 自動傳到 Telegram(圖片走
sendPhoto、其餘或超過 10MB 走 sendDocument)並清空,一輪上限 10 個檔案。
2. bot 設定新增「允許 Codex 連網」開關(-c sandbox_workspace_write.network_access),
開啟後可用 codex 的 imagegen 技能生圖,已實測產出 PNG 進交件匣。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-14 17:13:12 +08:00
JianMiau and Claude Fable 5
d5c4464fe1
發佈 0.1.7:新增會話模式開關(獨立/共用)
...
摘要:
bot 設定新增「會話模式」:預設各聊天室獨立會話;可切為所有聊天室
共用一條記憶(單一專案助理情境)。共用模式下 /new 清除全部記憶,
/status 會顯示目前模式,bot 列表小字標示「共用會話」。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-10 12:05:30 +08:00
JianMiau and Claude Fable 5
6e39a8084f
發佈 0.1.6:速度固定 Fast,移除選項與 footer 顯示
...
摘要:
速度(service tier)固定為 priority(Fast 1.5x):表單移除速度下拉、
footer 不再顯示 Fast 字樣;舊設定檔存空值也會矯正回 priority。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-07 12:02:07 +08:00
JianMiau and Claude Fable 5
491ab5bc8f
發佈 0.1.5:換模型後舊會話自動重開
...
根本原因:
codex 拒絕用不同模型 resume 舊會話(recorded with model X but resuming with Y),
bot 換模型設定後,既有聊天室的會話會直接報錯卡住。
修法:
偵測到模型不匹配(或會話已被清掉)時自動清除會話、開新會話重試,
並在回覆開頭註明已自動開新會話、舊記憶未帶入。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-07 11:56:22 +08:00
JianMiau and Claude Fable 5
8d4cec9bb3
發佈與版控目標改為 jianmiau
...
摘要:
publishConfig 與 repository 改指向 jianmiau.ddns.net,之後裸 npm publish
直接發到公開 registry;git origin 也已對調為 jianmiau(catan 降為備用 remote)。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-04 17:14:01 +08:00
JianMiau and Claude Fable 5
c8b3ff68a7
發佈 0.1.4:README 安裝指令統一用公開 registry
...
摘要:
安裝與升級指令改為只列 jianmiau.ddns.net 的公開 registry(免登入),
移除公司內部 registry 的說明。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-04 17:12:43 +08:00
JianMiau and Claude Fable 5
ef9fcb9d4a
發佈 0.1.3:README 圖片改公開網址、安裝說明補公開 registry
...
摘要:
README 截圖改指向 jianmiau.ddns.net(公開 repo,免登入可看),
兩邊套件頁的圖都能正常顯示;安裝說明補上公開 registry 的裝法。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-04 17:09:08 +08:00
JianMiau and Claude 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
JianMiau and Claude Fable 5
d67b0de742
發佈 0.1.1
...
摘要:
版本升至 0.1.1 並重新發佈到 Frontend npm registry。相較 0.1.0 累積的變更:
移除 folder 模式與允許名單、模型/推理強度/速度下拉(讀 codex 模型快取)、
工作目錄原生資料夾選擇視窗、start 環境檢查、footer 顯示 ctx%/模型/強度/速度、
首頁 Group Privacy 提醒。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-04 16:32:56 +08:00
JianMiau and Claude Fable 5
313e651887
加上 publishConfig 與 repository 設定
...
摘要:
package.json 補上發佈到 git.catan.com.tw Frontend npm registry 的設定與 repo 位址。
修法:
registry URL 需以斜線結尾,否則 npm 的認證比對(nerf-dart)會砍掉最後一段
路徑,找不到 ~/.npmrc 裡的 token 而 ENEEDAUTH。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-04 16:28:10 +08:00
JianMiau and Claude Fable 5
5b32816ad4
建立 telegram-codex-bot:串接 Codex CLI 的 Telegram bot(npm 包)
...
摘要:
用 Telegram 操控本機 Codex CLI 的 bot,附 web 控制台,封裝為 npm 包。
內容:
- 零依賴(僅 Node 內建模組);bot 以 codex exec --json 驅動,支援會話延續
(exec resume)、workspace-write 沙盒、圖片輸入、進度回報與 ctx%/tokens footer
- web 控制台(pm2 託管,預設 127.0.0.1:3799):Bot 管理分頁(新增/編輯/啟停,
token 自動驗證、工作目錄用原生視窗選、模型/推理強度/速度下拉,清單來自
~/.codex/models_cache.json)+ PM2 檢視分頁(狀態/port/log/啟停)
- CLI:start(環境檢查後把控制台掛上 pm2)/ stop / restart / delete / status /
logs / web / doctor
- Windows 相容:解析 codex.cmd shim 直接以 node 執行、taskkill 整樹砍程序、
資料夾選擇視窗以 TopMost 透明 owner 置中
影響:
新專案初始版本;bot 設定存於 ~/.tgcodex/bots/<name>/,含明文 token 的實例
設定不進版控(.gitignore 已涵蓋 tgcodex.config.json 與 .tgcodex/)。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-04 16:25:39 +08:00