root and Shirobana Agent Bot <tg-bridge>
da06485d64
fix(ask): prototype 拦截器替代 waterfall hook + TG 原生按钮作答
...
根因:dsh 0.1.5-rc.1 把 'user-questions/request' waterfall 分发到
per-fiber events 注册表,其他 fiber 的 ctx.on 监听(含本插件)永远收不到
分发(实测 root/global/agent 作用域监听全部落空)。
修复:包装 UserQuestionService.prototype.ask(类跨实例共享),无论哪个
fiber/实例发起的 ask 都能拦截到 agent+questions;TG 答案与原 ask 竞速,
保留 dual-path 语义;stop 时恢复原型,热重载不叠加。
功能(应用户要求):
- 提问前显式发送预告文本消息
- 选项改用 TG 原生 inline keyboard 按钮(单选即点即答,多选带提交键)
- 文本作答保留并与按钮作答合并,逐题累计、齐题自动提交
- 附带修复:Telegram API 调用加 15s 客户端超时(代理挂死会卡死通知队列)
Co-authored-by: Shirobana Agent Bot <tg-bridge>
2026-09-17 11:15:16 +08:00
RRRosmontis
f3f6a3ebaf
feat: admit photos and image documents into the bound session
...
Telegram 图片消息此前一律回复「暂只支持文本消息」。本改动:
- photo 取最大尺寸(TG 压成 jpeg),document 仅接受 image/png|jpeg|webp|gif
- caption 作为伴随文本块进入同一条消息(不解析为命令)
- 相册(同一 media_group_id)去抖 1.2s 合并为一条多图消息,避免 N 连回合
- 派发走宿主 sessions.prompt RPC(Web 端同通道):模型图像能力校验 +
附件服务持久化 + mode queue 排队,与纯文本路径的 agent.followup 语义一致
- 错误映射:MODEL_DOES_NOT_SUPPORT_IMAGES → 提示换多模态模型;其余回退
图片发送失败 + [code] 详情;下载失败即时提示
- 客户端新增 getFile/downloadFile(GET file 端点,复用代理感知 fetch)
tests +7(58/58):photo+caption、png document、pdf 拒绝、相册合并、
模型不支持、下载失败、未绑定。无 emoji 文案。
2026-09-05 17:51:21 +08:00
93f3bec975
feat: use Telegram native Rich Message for assistant replies
...
Co-authored-by: MuziIsabel <MuziIsabel@users.noreply.github.com >
2026-08-18 18:27:32 +08:00
owo and Cursor
a83af2f33c
Simplify install with one-click scripts; honor HTTP(S)_PROXY for Telegram.
...
Add install.ps1/install.sh, shrink README to script-first flow, register bot commands, and route API calls through undici EnvHttpProxyAgent when a proxy is set (v0.2.2).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-14 17:46:01 +08:00
owo and Cursor
8ef1622822
fix: ship prebuilt lib and drop prepare for one-click git install
...
Avoids pnpm allowBuilds block on dsh plugin add; README install steps expanded for first-time users.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-14 17:16:25 +08:00