@qwen-code/channel-wecom 0.21.0-preview.0

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.
@@ -0,0 +1,65 @@
1
+ import { ChannelBase } from '@qwen-code/channel-base';
2
+ import type { ChannelAgentBridge, ChannelBaseOptions, ChannelConfig } from '@qwen-code/channel-base';
3
+ export declare class WeComChannel extends ChannelBase {
4
+ private readonly wecom;
5
+ private client?;
6
+ private readonly seenMessages;
7
+ private readonly inFlightMessages;
8
+ private readonly attachmentDirsByMessage;
9
+ private readonly attachmentMessageByDir;
10
+ private readonly attachmentDirsBySession;
11
+ private readonly attachmentDirsWithoutMessageByRoute;
12
+ private readonly bufferedAttachmentMessages;
13
+ private readonly coalescedAttachmentMessages;
14
+ private dedupTimer?;
15
+ private kickReconnectReset?;
16
+ private kickReconnectRetry?;
17
+ private disconnectReconnectFallback?;
18
+ private activityWatchdog?;
19
+ private lastActivityAt;
20
+ private connecting?;
21
+ private connectingClient?;
22
+ private authentication?;
23
+ private disconnectGeneration;
24
+ private clientHandlers?;
25
+ private reconnectingAfterKick;
26
+ private pendingKickReconnect;
27
+ private kickReconnectAttempts;
28
+ private kickReconnectRetryCycles;
29
+ constructor(name: string, config: ChannelConfig & Record<string, unknown>, bridge: ChannelAgentBridge, options?: ChannelBaseOptions);
30
+ connect(): Promise<void>;
31
+ private openClient;
32
+ disconnect(): void;
33
+ supportsProactiveSend(): boolean;
34
+ sendMessage(chatId: string, text: string): Promise<void>;
35
+ private onMessage;
36
+ private downloadAttachments;
37
+ protected onPromptBuffered(_chatId: string, sessionId: string, messageId?: string): void;
38
+ protected onPromptStart(_chatId: string, sessionId: string, messageId?: string): void;
39
+ protected onPromptBufferDrained(_chatId: string, _sessionId: string, messageIds: string[]): void;
40
+ protected onPromptBufferDropped(_chatId: string, sessionId: string, messageIds: string[]): void;
41
+ protected onPromptEnd(_chatId: string, sessionId: string, messageId?: string): void;
42
+ private rememberAttachmentDir;
43
+ private rememberMessageDirsForSession;
44
+ private cleanupAttachmentDirsForMessage;
45
+ private cleanupAttachmentDirsForSession;
46
+ private cleanupUntrackedAttachmentDirsForSession;
47
+ private rememberUntrackedDirsForSession;
48
+ private removeAttachmentDirsFromSessions;
49
+ private removeAttachmentDirsFromMessages;
50
+ private cleanupAllAttachmentDirs;
51
+ private attachmentRouteKeyForSession;
52
+ private attachmentRouteKey;
53
+ private detachClientHandlers;
54
+ private disconnectClientOnly;
55
+ private clearDisconnectReconnectFallback;
56
+ private recordActivity;
57
+ private clearActivityWatchdog;
58
+ private startActivityWatchdog;
59
+ private scheduleDisconnectReconnectFallback;
60
+ private reconnectAfterKick;
61
+ private scheduleKickReconnectReset;
62
+ private scheduleKickReconnectRetry;
63
+ private startKickReconnect;
64
+ private cleanupSeenMessages;
65
+ }