fix: make apiProxy injection optional

Resolves the optional apiProxy injection, keeps HTML as the compatibility default, synchronizes generated entrypoints, and adds a regression test.
This commit is contained in:
徐跃恒
2026-09-15 21:36:14 +08:00
committed by GitHub
parent 93f3bec975
commit 72e1d399a7
7 changed files with 22 additions and 13 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
import type { Context } from '@deepseek-ai/cordis';
import Schema from '@deepseek-ai/schemastery';
export declare const name = "dsh-telegram-channel";
/** agents: followup; apiProxy: workspace/session catalog + /model (Cordis requires inject to read ctx.apiProxy). */
/** agents: followup; apiProxy is optional and resolved at runtime via ctx.get;
* when absent, catalog helpers degrade to the live-agents view. */
export declare const inject: string[];
export interface TelegramChannelConfig {
token?: string;