@michengai/dsh-im-connect 1.0.34 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/CHANGELOG.zh-CN.md +9 -0
- package/README.de.md +2 -12
- package/README.en.md +2 -12
- package/README.es.md +2 -12
- package/README.fr.md +2 -12
- package/README.ja.md +2 -12
- package/README.md +2 -12
- package/README.pt.md +2 -12
- package/README.ru.md +2 -12
- package/README.zh-CN.md +2 -12
- package/lib/channels/telegram.d.ts.map +1 -1
- package/lib/channels/telegram.js +230 -25
- package/lib/channels/telegram.js.map +1 -1
- package/lib/engine/deferred-delivery.d.ts.map +1 -1
- package/lib/engine/deferred-delivery.js +4 -0
- package/lib/engine/deferred-delivery.js.map +1 -1
- package/lib/engine/gateway.d.ts +1 -0
- package/lib/engine/gateway.d.ts.map +1 -1
- package/lib/engine/gateway.js +29 -4
- package/lib/engine/gateway.js.map +1 -1
- package/lib/engine/message-progress.d.ts +4 -0
- package/lib/engine/message-progress.d.ts.map +1 -1
- package/lib/engine/message-progress.js +70 -15
- package/lib/engine/message-progress.js.map +1 -1
- package/lib/engine/types.d.ts +19 -1
- package/lib/engine/types.d.ts.map +1 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -11
- package/lib/index.js.map +1 -1
- package/lib/manager.d.ts +0 -5
- package/lib/manager.d.ts.map +1 -1
- package/lib/manager.js +0 -46
- package/lib/manager.js.map +1 -1
- package/package.json +1 -1
- package/src/channels/telegram.ts +216 -25
- package/src/engine/deferred-delivery.ts +3 -0
- package/src/engine/gateway.ts +27 -3
- package/src/engine/message-progress.ts +68 -16
- package/src/engine/types.ts +19 -1
- package/src/index.ts +1 -13
- package/src/manager.ts +1 -48
- package/lib/plugin-updater.d.ts +0 -73
- package/lib/plugin-updater.d.ts.map +0 -1
- package/lib/plugin-updater.js +0 -579
- package/lib/plugin-updater.js.map +0 -1
- package/src/plugin-updater.ts +0 -527
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.35] - 2026-11-10
|
|
4
|
+
|
|
5
|
+
### Telegram connection resilience, reaction reliability, and delivery safeguards
|
|
6
|
+
|
|
7
|
+
- Improve Telegram long-polling resilience: in constrained networking environments (such as NAT or containers), long-polling automatically recovers and resumes message dispatch after aborted or stalled connections, preventing silent bot hang-ups (#64, #68).
|
|
8
|
+
- Enhance status reactions and typing heartbeat stability: status reactions (thinking, finished, etc.) now retry on transient network errors or rate limits with atomic replacement, preventing missing delivery emojis; typing heartbeats feature expanded budgets and quota isolation, preventing premature cancellations over slow connections (#67).
|
|
9
|
+
- Safeguard final replies and unclaimed turns: protect historical requests from accidental matching during cold starts, and serialize final reply settlement to ensure long assistant responses are fully delivered before turn cleanup (#66).
|
|
10
|
+
- Documentation and settings streamlining: remove obsolete updater options now handled directly by the host plugin system, and align configuration section numbering across all localized README manuals.
|
|
11
|
+
|
|
3
12
|
## [1.0.34] - 2026-11-09
|
|
4
13
|
|
|
5
14
|
### Mobile sidebar interaction & channel session routing improvements
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.0.35] - 2026-11-10
|
|
4
|
+
|
|
5
|
+
### Telegram 连接韧性、状态表情与收口稳定性提升
|
|
6
|
+
|
|
7
|
+
- 提升 Telegram 异常网络下的连接韧性:在复杂网络(如容器、NAT 或代理网络)中,长轮询遇到连接挂起或超时中断后能够自动恢复并继续接收消息,避免机器人陷入静默需手动重连(#64, #68)。
|
|
8
|
+
- 状态表情与输入提示稳定性优化:状态表情(思考中、完成等)遇到网络波动或平台限流时支持自动重试与原子替换,避免完成标记偶然遗漏;优化「正在输入」心跳请求预算,慢网络下不再频繁闪断,且与正文限流完全隔离(#67)。
|
|
9
|
+
- 会话最终回复与多轮提问收口保护:确保未分配回合的历史请求不被冷启动事件误影响,并串行化保障最终长回复完整送达后再清理会话状态,避免最终答案在快速结束时被截断(#66)。
|
|
10
|
+
- 管理面板与文档精简:移除已由宿主统一管理的冗余更新配置,纠正各语言使用手册中的配置小节序号。
|
|
11
|
+
|
|
3
12
|
## [1.0.34] - 2026-11-09
|
|
4
13
|
|
|
5
14
|
### 移动端侧栏交互与频道会话打开体验优化
|
package/README.de.md
CHANGED
|
@@ -95,21 +95,11 @@ Erreichbar über die Verwaltung unter **Plugins → @michengai/dsh-im-connect**:
|
|
|
95
95
|
- **Standard**: Deaktiviert (`false`)
|
|
96
96
|
- **Funktion**: Filtert Messenger-Chats aus der Hauptbaumansicht heraus, um die Übersichtlichkeit im täglichen Entwicklungsalltag zu wahren.
|
|
97
97
|
|
|
98
|
-
### 3.
|
|
99
|
-
- **Standard**: Nicht gesperrt (`undefined`)
|
|
100
|
-
- **Funktion**: Für isolierte Unternehmensnetzwerke kann der interne Update-Endpunkt über `cordis.patch.yml` dauerhaft deaktiviert werden:
|
|
101
|
-
```yaml
|
|
102
|
-
- id: im-connect
|
|
103
|
-
config:
|
|
104
|
-
updater: false # oder onlineUpdate: false
|
|
105
|
-
```
|
|
106
|
-
Nach der Sperrung liefert der Endpunkt HTTP 403 und überlässt die Versionsverwaltung vollständig dem offiziellen DSH-Paketmanager.
|
|
107
|
-
|
|
108
|
-
### 4. Auslöserichtlinie für Telegram-Gruppen (`mentionPolicy` / `freeChatGroups`)
|
|
98
|
+
### 3. Auslöserichtlinie für Telegram-Gruppen (`mentionPolicy` / `freeChatGroups`)
|
|
109
99
|
- **Standard**: `addressed` (reagiert nur auf @Erwähnungen oder direkte Antworten).
|
|
110
100
|
- **Funktion**: Erlaubt die Festlegung von Whitelist-Gruppen für die direkte Kommunikation ohne @Erwähnung.
|
|
111
101
|
|
|
112
|
-
###
|
|
102
|
+
### 4. Einklappbare Denkprozess-Anzeige (`thinkingDisplay`)
|
|
113
103
|
- **Standard**: Aus (`off`)
|
|
114
104
|
- **Funktion**: Übermittelt den Denkprozess des Modells auf Telegram als einklappbaren Zitatblock (`<blockquote expandable>`).
|
|
115
105
|
|
package/README.en.md
CHANGED
|
@@ -260,17 +260,7 @@ Native configuration options are provided here. Their values are persisted in `c
|
|
|
260
260
|
- **Channels Tab Preserved**: Filtering applies only to the official workspace tree. All channel sessions remain fully available and accessible at any time under the sidebar's **Channels** tab;
|
|
261
261
|
- **Lightweight Pipeline Collaboration**: Implemented via the `NativeTabRegistry.sessionFilters` inter-plugin protocol without invasive host hijacking. Toggling takes effect immediately and interoperates smoothly with Automation and Archive Manager. Non-supporting host shells degrade gracefully with a one-time warning.
|
|
262
262
|
|
|
263
|
-
### 3.
|
|
264
|
-
- **Default**: Unlocked (`undefined`)
|
|
265
|
-
- **Description**: For enterprise intranets, offline environments, or curated plugin distribution platforms, update endpoints can be explicitly locked and disabled directly in Cordis configuration (e.g. `cordis.patch.yml`):
|
|
266
|
-
```yaml
|
|
267
|
-
- id: im-connect
|
|
268
|
-
config:
|
|
269
|
-
updater: false # or onlineUpdate: false
|
|
270
|
-
```
|
|
271
|
-
Once locked, plugin update endpoints are disabled (returning HTTP 403), delegating lifecycle and updates entirely to official DSH plugin management and market mechanisms.
|
|
272
|
-
|
|
273
|
-
### 4. Telegram group trigger policy (`mentionPolicy` / `freeChatGroups`)
|
|
263
|
+
### 3. Telegram group trigger policy (`mentionPolicy` / `freeChatGroups`)
|
|
274
264
|
- **Default**: `addressed` — in groups the bot only reacts to an @mention, a reply to it, or a direct message.
|
|
275
265
|
- **What it does**: to let a group chat with the bot without @mentioning it, configure the trigger policy directly in **Settings → IM Assistant → Telegram Account Details**, or in `channels.json`:
|
|
276
266
|
- **Scenario A (specific groups only)**: configure `freeChatGroups` only; other groups keep default:
|
|
@@ -305,7 +295,7 @@ Native configuration options are provided here. Their values are persisted in `c
|
|
|
305
295
|
- **Option 2**: Send any message in the group, forward it to a query bot (such as `@userinfobot`), and copy the chat `Id` (starts with a minus sign);
|
|
306
296
|
- **Option 3**: Call `https://api.telegram.org/bot<TOKEN>/getUpdates` directly in your browser and check `"chat":{"id": -100xxxxxxxxxx}`.
|
|
307
297
|
|
|
308
|
-
###
|
|
298
|
+
### 4. Collapsible thinking message (`thinkingDisplay`)
|
|
309
299
|
- **Default**: off (`mode: 'off'`).
|
|
310
300
|
- **What it does**: when enabled, the model's reasoning is sent as a separate Telegram collapsible quote (`<blockquote expandable>`) — about three lines collapsed, tap "show more" to expand. The same message is edited in place during the turn and retitled "🧠 Thought process" when the turn ends.
|
|
311
301
|
- **Example** (plugin config slot):
|
package/README.es.md
CHANGED
|
@@ -95,21 +95,11 @@ Disponible desde el panel de administración en **Complementos → @michengai/ds
|
|
|
95
95
|
- **Predeterminado**: Desactivado (`false`)
|
|
96
96
|
- **Función**: Oculta las conversaciones de mensajería del árbol de tareas principal para evitar saturar el espacio de desarrollo diario.
|
|
97
97
|
|
|
98
|
-
### 3.
|
|
99
|
-
- **Predeterminado**: Sin bloqueo (`undefined`)
|
|
100
|
-
- **Función**: Para entornos corporativos o sin conexión a Internet, deshabilite los puntos de enlace de actualización declarándolo en `cordis.patch.yml`:
|
|
101
|
-
```yaml
|
|
102
|
-
- id: im-connect
|
|
103
|
-
config:
|
|
104
|
-
updater: false # o onlineUpdate: false
|
|
105
|
-
```
|
|
106
|
-
Al bloquearse, el punto de actualización del complemento responde con HTTP 403, delegando el ciclo de vida al gestor oficial de DSH.
|
|
107
|
-
|
|
108
|
-
### 4. Política de activación en grupos de Telegram (`mentionPolicy` / `freeChatGroups`)
|
|
98
|
+
### 3. Política de activación en grupos de Telegram (`mentionPolicy` / `freeChatGroups`)
|
|
109
99
|
- **Predeterminado**: `addressed` (solo responde a menciones @ o respuestas directas al bot).
|
|
110
100
|
- **Función**: Configure si desea que el bot responda a todos los mensajes o defina una lista blanca de grupos sin necesidad de mención.
|
|
111
101
|
|
|
112
|
-
###
|
|
102
|
+
### 4. Mensaje de pensamiento plegable (`thinkingDisplay`)
|
|
113
103
|
- **Predeterminado**: Desactivado (`off`)
|
|
114
104
|
- **Función**: Envía la cadena de pensamiento del modelo en Telegram dentro de un bloque de cita plegable (`<blockquote expandable>`).
|
|
115
105
|
|
package/README.fr.md
CHANGED
|
@@ -95,21 +95,11 @@ Gérée depuis le panneau **Extensions → @michengai/dsh-im-connect** :
|
|
|
95
95
|
- **Défaut** : Désactivé (`false`)
|
|
96
96
|
- **Fonction** : Isole les échanges de messagerie de l'arborescence principale de développement pour préserver la lisibilité de vos projets.
|
|
97
97
|
|
|
98
|
-
### 3.
|
|
99
|
-
- **Défaut** : Déverrouillé (`undefined`)
|
|
100
|
-
- **Fonction** : Dans les réseaux d'entreprise ou isolés, désactivez les points de mise à jour dans `cordis.patch.yml` :
|
|
101
|
-
```yaml
|
|
102
|
-
- id: im-connect
|
|
103
|
-
config:
|
|
104
|
-
updater: false # ou onlineUpdate: false
|
|
105
|
-
```
|
|
106
|
-
Une fois verrouillé, le point d'accès renvoie HTTP 403 et délègue l'intégralité du cycle de vie au gestionnaire officiel de DSH.
|
|
107
|
-
|
|
108
|
-
### 4. Règle de déclenchement dans les groupes Telegram (`mentionPolicy` / `freeChatGroups`)
|
|
98
|
+
### 3. Règle de déclenchement dans les groupes Telegram (`mentionPolicy` / `freeChatGroups`)
|
|
109
99
|
- **Défaut** : `addressed` (répond uniquement aux mentions @ et aux réponses directes).
|
|
110
100
|
- **Fonction** : Définissez une liste blanche de groupes pour autoriser les échanges continus sans mention explicite.
|
|
111
101
|
|
|
112
|
-
###
|
|
102
|
+
### 4. Affichage repliable de la réflexion (`thinkingDisplay`)
|
|
113
103
|
- **Défaut** : Désactivé (`off`)
|
|
114
104
|
- **Fonction** : Transmet le cheminement de pensée du modèle sous forme de bloc de citation repliable Telegram (`<blockquote expandable>`).
|
|
115
105
|
|
package/README.ja.md
CHANGED
|
@@ -150,23 +150,13 @@ dsh plugin --profile web add @michengai/dsh-im-connect --registry=https://regist
|
|
|
150
150
|
- **デフォルト**: 無効 (`false`)
|
|
151
151
|
- **機能**: メインワークスペースのタスクツリーに IM セッションを表示するかどうかを切り替えます。無効にすることで、高頻度なチャットが通常の開発タスク一覧を圧迫するのを防ぎます。
|
|
152
152
|
|
|
153
|
-
### 3.
|
|
154
|
-
- **デフォルト**: 未ロック (`undefined`)
|
|
155
|
-
- **機能**: 企業の内部ネットワークやオフライン環境向けに、`cordis.patch.yml` でオンライン更新エンドポイントを明示的に無効化できます。
|
|
156
|
-
```yaml
|
|
157
|
-
- id: im-connect
|
|
158
|
-
config:
|
|
159
|
-
updater: false # または onlineUpdate: false
|
|
160
|
-
```
|
|
161
|
-
ロックされるとプラグイン自身の更新エンドポイントは自動的に無効(HTTP 403)となり、バージョン管理は DSH 公式のプラグイン管理システムに委任されます。
|
|
162
|
-
|
|
163
|
-
### 4. Telegram グループ起動ポリシー (`mentionPolicy` / `freeChatGroups`)
|
|
153
|
+
### 3. Telegram グループ起動ポリシー (`mentionPolicy` / `freeChatGroups`)
|
|
164
154
|
- **デフォルト**: `addressed`(ボットへの @メンションまたは返信時のみ応答)
|
|
165
155
|
- **機能**: グループチャットで @メンションなしでも応答させたい場合、「設定 → IM アシスタント → Telegram アカウント詳細」から設定できます。
|
|
166
156
|
- **特定グループのみ**: `freeChatGroups` にグループIDをカンマ区切りで入力します。
|
|
167
157
|
- **すべてのグループ**: `mentionPolicy` を `always` に設定します。
|
|
168
158
|
|
|
169
|
-
###
|
|
159
|
+
### 4. 思考プロセスの折りたたみ表示 (`thinkingDisplay`)
|
|
170
160
|
- **デフォルト**: オフ (`off`)
|
|
171
161
|
- **機能**: モデルの思考プロセスを Telegram の折りたたみ引用ブロック(`<blockquote expandable>`)として送信し、タップで展開できるようにします。
|
|
172
162
|
|
package/README.md
CHANGED
|
@@ -260,17 +260,7 @@ dsh --profile web --dump-config
|
|
|
260
260
|
- **频道面板不受影响**:关闭仅作用于主任务树,在侧栏「频道」页签中依然完整保留并可随时点开、回复和复盘全部渠道会话;
|
|
261
261
|
- **轻量管道协同**:基于 `NativeTabRegistry.sessionFilters` 标准协作协议实现,无需深度劫持宿主组件,切换即时生效,与定时插件及归档管理等第三方插件完全兼容。未支持该协议的外壳会自动安全降级并提示。
|
|
262
262
|
|
|
263
|
-
### 3.
|
|
264
|
-
- **默认状态**:未锁定(`undefined`)
|
|
265
|
-
- **功能说明**:针对企业内网、离线环境或精选插件分发平台,支持直接在 Cordis 配置文件(如 `cordis.patch.yml`)中显式声明锁定禁用更新服务:
|
|
266
|
-
```yaml
|
|
267
|
-
- id: im-connect
|
|
268
|
-
config:
|
|
269
|
-
updater: false # 或 onlineUpdate: false
|
|
270
|
-
```
|
|
271
|
-
锁定后插件自身的更新端点自动关闭(返回 HTTP 403),版本升级统一交由 DSH 官方插件管理与市场机制负责。
|
|
272
|
-
|
|
273
|
-
### 4. Telegram 群聊触发策略 (`mentionPolicy` / `freeChatGroups`)
|
|
263
|
+
### 3. Telegram 群聊触发策略 (`mentionPolicy` / `freeChatGroups`)
|
|
274
264
|
- **默认状态**:`addressed`(群里只有 @bot、回复 bot 或私聊才会处理)
|
|
275
265
|
- **功能说明**:群聊希望「不 @ 也能直接聊」时,可直接在「设置 → IM助理 → Telegram 账号详情」中配置群聊触发策略,亦可在 `channels.json` 中配置:
|
|
276
266
|
- **场景 A(仅特定群免 @)**:仅配置 `freeChatGroups`,未列出的群保持默认:
|
|
@@ -305,7 +295,7 @@ dsh --profile web --dump-config
|
|
|
305
295
|
- **方法 2**:在群里随便发一条消息,转发给官方查询机器人(如 `@userinfobot`),复制其回复中 `Forwarded from chat` 的 `Id` 数字(以负号开头);
|
|
306
296
|
- **方法 3**:通过 Bot 原生接口查询 `https://api.telegram.org/bot<TOKEN>/getUpdates`,找到 `"chat":{"id": -100xxxxxxxxxx}`。
|
|
307
297
|
|
|
308
|
-
###
|
|
298
|
+
### 4. 思考过程折叠消息 (`thinkingDisplay`)
|
|
309
299
|
- **默认状态**:关闭(`mode: 'off'`)
|
|
310
300
|
- **功能说明**:开启后,模型的思考过程会单独发成一条 Telegram「可折叠引用块」消息(`<blockquote expandable>`),默认只显示约三行,点「显示更多」展开;同一回合就地编辑,回合结束时标题变为「🧠 思考过程」。
|
|
311
301
|
- **配置示例**(插件配置槽位):
|
package/README.pt.md
CHANGED
|
@@ -95,21 +95,11 @@ Acessível no painel em **Plugins → @michengai/dsh-im-connect**:
|
|
|
95
95
|
- **Padrão**: Desativado (`false`)
|
|
96
96
|
- **Função**: Oculta conversas de mensagens da árvore de tarefas principal, evitando poluição visual no espaço de trabalho diário.
|
|
97
97
|
|
|
98
|
-
### 3.
|
|
99
|
-
- **Padrão**: Desbloqueado (`undefined`)
|
|
100
|
-
- **Função**: Para ambientes corporativos fechados, desative pontos de atualização em `cordis.patch.yml`:
|
|
101
|
-
```yaml
|
|
102
|
-
- id: im-connect
|
|
103
|
-
config:
|
|
104
|
-
updater: false # ou onlineUpdate: false
|
|
105
|
-
```
|
|
106
|
-
Ao bloquear, o endpoint retorna HTTP 403, delegando o ciclo de vida ao gerenciador oficial do DSH.
|
|
107
|
-
|
|
108
|
-
### 4. Política de acionamento em grupos do Telegram (`mentionPolicy` / `freeChatGroups`)
|
|
98
|
+
### 3. Política de acionamento em grupos do Telegram (`mentionPolicy` / `freeChatGroups`)
|
|
109
99
|
- **Padrão**: `addressed` (responde apenas a menções @ ou respostas diretas).
|
|
110
100
|
- **Função**: Permite cadastrar grupos em lista branca para responder a todas as mensagens sem exigir menção.
|
|
111
101
|
|
|
112
|
-
###
|
|
102
|
+
### 4. Bloco recolhível de raciocínio (`thinkingDisplay`)
|
|
113
103
|
- **Padrão**: Desativado (`off`)
|
|
114
104
|
- **Função**: Envia a cadeia de pensamento no Telegram dentro de uma citação expansível (`<blockquote expandable>`).
|
|
115
105
|
|
package/README.ru.md
CHANGED
|
@@ -95,21 +95,11 @@
|
|
|
95
95
|
- **По умолчанию**: Отключено (`false`)
|
|
96
96
|
- **Назначение**: Скрывает диалоги мессенджеров из основного дерева задач, чтобы не загромождать рабочее пространство разработчика.
|
|
97
97
|
|
|
98
|
-
### 3.
|
|
99
|
-
- **По умолчанию**: Не заблокировано (`undefined`)
|
|
100
|
-
- **Назначение**: Для закрытых корпоративных сетей встроенный эндпоинт обновления можно отключить в файле `cordis.patch.yml`:
|
|
101
|
-
```yaml
|
|
102
|
-
- id: im-connect
|
|
103
|
-
config:
|
|
104
|
-
updater: false # или onlineUpdate: false
|
|
105
|
-
```
|
|
106
|
-
При блокировке эндпоинт возвращает HTTP 403, передавая управление версиями официальному менеджеру DSH.
|
|
107
|
-
|
|
108
|
-
### 4. Политика срабатывания в группах Telegram (`mentionPolicy` / `freeChatGroups`)
|
|
98
|
+
### 3. Политика срабатывания в группах Telegram (`mentionPolicy` / `freeChatGroups`)
|
|
109
99
|
- **По умолчанию**: `addressed` (реагирует только на @упоминания или прямые ответы).
|
|
110
100
|
- **Назначение**: Позволяет задать список групп, где бот отвечает на все сообщения без обязательного упоминания.
|
|
111
101
|
|
|
112
|
-
###
|
|
102
|
+
### 4. Сворачиваемый блок цепочки мыслей (`thinkingDisplay`)
|
|
113
103
|
- **По умолчанию**: Отключено (`off`)
|
|
114
104
|
- **Назначение**: Передает процесс рассуждений модели в Telegram в виде сворачиваемой цитаты (`<blockquote expandable>`).
|
|
115
105
|
|
package/README.zh-CN.md
CHANGED
|
@@ -260,17 +260,7 @@ dsh --profile web --dump-config
|
|
|
260
260
|
- **频道面板不受影响**:关闭仅作用于主任务树,在侧栏「频道」页签中依然完整保留并可随时点开、回复和复盘全部渠道会话;
|
|
261
261
|
- **轻量管道协同**:基于 `NativeTabRegistry.sessionFilters` 标准协作协议实现,无需深度劫持宿主组件,切换即时生效,与定时插件及归档管理等第三方插件完全兼容。未支持该协议的外壳会自动安全降级并提示。
|
|
262
262
|
|
|
263
|
-
### 3.
|
|
264
|
-
- **默认状态**:未锁定(`undefined`)
|
|
265
|
-
- **功能说明**:针对企业内网、离线环境或精选插件分发平台,支持直接在 Cordis 配置文件(如 `cordis.patch.yml`)中显式声明锁定禁用更新服务:
|
|
266
|
-
```yaml
|
|
267
|
-
- id: im-connect
|
|
268
|
-
config:
|
|
269
|
-
updater: false # 或 onlineUpdate: false
|
|
270
|
-
```
|
|
271
|
-
锁定后插件自身的更新端点自动关闭(返回 HTTP 403),版本升级统一交由 DSH 官方插件管理与市场机制负责。
|
|
272
|
-
|
|
273
|
-
### 4. Telegram 群聊触发策略 (`mentionPolicy` / `freeChatGroups`)
|
|
263
|
+
### 3. Telegram 群聊触发策略 (`mentionPolicy` / `freeChatGroups`)
|
|
274
264
|
- **默认状态**:`addressed`(群里只有 @bot、回复 bot 或私聊才会处理)
|
|
275
265
|
- **功能说明**:群聊希望「不 @ 也能直接聊」时,可直接在「设置 → IM助理 → Telegram 账号详情」中配置群聊触发策略,亦可在 `channels.json` 中配置:
|
|
276
266
|
- **场景 A(仅特定群免 @)**:仅配置 `freeChatGroups`,未列出的群保持默认:
|
|
@@ -305,7 +295,7 @@ dsh --profile web --dump-config
|
|
|
305
295
|
- **方法 2**:在群里随便发一条消息,转发给官方查询机器人(如 `@userinfobot`),复制其回复中 `Forwarded from chat` 的 `Id` 数字(以负号开头);
|
|
306
296
|
- **方法 3**:通过 Bot 原生接口查询 `https://api.telegram.org/bot<TOKEN>/getUpdates`,找到 `"chat":{"id": -100xxxxxxxxxx}`。
|
|
307
297
|
|
|
308
|
-
###
|
|
298
|
+
### 4. 思考过程折叠消息 (`thinkingDisplay`)
|
|
309
299
|
- **默认状态**:关闭(`mode: 'off'`)
|
|
310
300
|
- **功能说明**:开启后,模型的思考过程会单独发成一条 Telegram「可折叠引用块」消息(`<blockquote expandable>`),默认只显示约三行,点「显示更多」展开;同一回合就地编辑,回合结束时标题变为「🧠 思考过程」。
|
|
311
301
|
- **配置示例**(插件配置槽位):
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telegram.d.ts","sourceRoot":"","sources":["../../src/channels/telegram.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAA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