Cordis throws on ctx.apiProxy without inject; use ctx.get and declare apiProxy inject so catalog and model APIs work under dsh web. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
808 B
TypeScript
21 lines
808 B
TypeScript
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). */
|
|
export declare const inject: string[];
|
|
export interface TelegramChannelConfig {
|
|
token?: string;
|
|
allowedUserIds?: number[];
|
|
allowAllUsers?: boolean;
|
|
maxMessageLength?: number;
|
|
pollingTimeoutSec?: number;
|
|
}
|
|
export declare const Config: Schema<TelegramChannelConfig>;
|
|
export declare function apply(ctx: Context, config: TelegramChannelConfig): void;
|
|
export * from './format.js';
|
|
export * from './client.js';
|
|
export * from './auth.js';
|
|
export * from './commands.js';
|
|
export * from './label.js';
|
|
export * from './bridge.js';
|