fix: make optional services non-blocking

This commit is contained in:
owo
2026-09-15 21:37:16 +08:00
parent f3f6a3ebaf
commit e748132541
6 changed files with 48 additions and 8 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ import Schema from '@deepseek-ai/schemastery'
import { TelegramBridge } from './bridge.js'
export const name = 'dsh-telegram-channel'
/** agents: followup; apiProxy: workspace/session catalog + /model; userQuestions: TG answer hook (Cordis requires inject). */
export const inject = ['agents', 'apiProxy', 'userQuestions']
/** agents: followup; apiProxy and userQuestions are optional runtime services. */
export const inject = ['agents']
export interface TelegramChannelConfig {
token?: string