DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

alchemistwu /

alchemistwu/dsh-telegram

已验证

这个插件还没有填写简介。

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@f925a065

dsh-telegram

Minimal, robust Telegram bridge for DSH — chat with your agent from your phone.

Zero runtime dependencies: hand-rolled long-polling transport over fetch, plain cordis plugin, strip-only TypeScript. ~800 lines.

Features

  • Inbound → agent turn: messages create/resume sessions and deliver via the agent-loop API (followup), with preset mounting, workspace attachment, and automatic TG MM-DD HH:mm <hint> titles
  • Outbound: typing indicator on turn start, 🔧 <tool> progress events, final assistant text on turn end
  • ask_user_question answerer: agent questions render as numbered Telegram messages; reply with a number (multi: 1,2) or free text. Without this the agent blocks forever — the only other answerer lives in the web UI
  • Commands: /new [hint], /sessions (numbered menu, newest first), /use <n|title word|id prefix> (resumes offline sessions), /status, /stop
  • Safety: allowedChatIds allowlist (fail-closed), durable update offset, 429 retry_after backoff

Config

- id: telegram
  config:
    allowedChatIds: [123456789]
    workspacePath: /path/to/workspace   # optional; defaults to first registered workspace
    model:                              # optional
      provider: modal
      model: zai-org/GLM-5.3-Flash

Bot token resolution: config.token → TELEGRAM_BOT_TOKEN env → .telegram-token file next to the package.

Development

npm test          # 28 tests: unit + e2e (real apply() through a fake network)
probe/            # runtime contract probe — boots in a real profile and
                  # executes every service call the plugin makes, because
                  # mocks encode the author's beliefs; the probe encodes nothing

License

MIT

—/ 5

暂无评分

已验证 DSH bundle

Commit f925a0651638

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于