Files
telegram-codex-bot/package.json
T
JianMiauandClaude 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

42 lines
866 B
JSON

{
"name": "telegram-codex-bot",
"version": "0.1.8",
"description": "Telegram bot powered by the local Codex CLI — zero-dependency, pm2-managed, with a built-in PM2 web viewer",
"license": "MIT",
"type": "commonjs",
"publishConfig": {
"registry": "https://jianmiau.ddns.net/api/packages/AI/npm/"
},
"repository": {
"type": "git",
"url": "ssh://git@jianmiau.ddns.net:8022/AI/telegram-codex-bot.git"
},
"main": "src/index.js",
"bin": {
"telegram-codex-bot": "bin/cli.js",
"tgcodex": "bin/cli.js"
},
"files": [
"bin/",
"src/",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=18"
},
"scripts": {
"start": "node bin/cli.js web",
"dev": "node --watch src/web/server.js"
},
"keywords": [
"telegram",
"bot",
"codex",
"codex-cli",
"pm2",
"ai",
"agent"
]
}