@elizaos/plugin-discord 2.0.0-beta.1 → 2.0.11-beta.7
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/README.md +28 -68
- package/package.json +28 -10
- package/dist/account-client-pool.d.ts +0 -35
- package/dist/account-client-pool.d.ts.map +0 -1
- package/dist/accounts.d.ts +0 -164
- package/dist/accounts.d.ts.map +0 -1
- package/dist/actions/actionResultSemantics.d.ts +0 -9
- package/dist/actions/actionResultSemantics.d.ts.map +0 -1
- package/dist/actions/setup-credentials.d.ts +0 -25
- package/dist/actions/setup-credentials.d.ts.map +0 -1
- package/dist/addressing.d.ts +0 -15
- package/dist/addressing.d.ts.map +0 -1
- package/dist/allowlist.d.ts +0 -198
- package/dist/allowlist.d.ts.map +0 -1
- package/dist/attachments.d.ts +0 -93
- package/dist/attachments.d.ts.map +0 -1
- package/dist/auto-enable.d.ts +0 -4
- package/dist/auto-enable.d.ts.map +0 -1
- package/dist/banner.d.ts +0 -39
- package/dist/banner.d.ts.map +0 -1
- package/dist/compat.d.ts +0 -57
- package/dist/compat.d.ts.map +0 -1
- package/dist/config.d.ts +0 -156
- package/dist/config.d.ts.map +0 -1
- package/dist/connector-account-provider.d.ts +0 -26
- package/dist/connector-account-provider.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -2
- package/dist/constants.d.ts.map +0 -1
- package/dist/debouncer.d.ts +0 -28
- package/dist/debouncer.d.ts.map +0 -1
- package/dist/discord-avatar-cache.d.ts +0 -10
- package/dist/discord-avatar-cache.d.ts.map +0 -1
- package/dist/discord-commands.d.ts +0 -16
- package/dist/discord-commands.d.ts.map +0 -1
- package/dist/discord-events.d.ts +0 -56
- package/dist/discord-events.d.ts.map +0 -1
- package/dist/discord-history.d.ts +0 -56
- package/dist/discord-history.d.ts.map +0 -1
- package/dist/discord-interactions.d.ts +0 -47
- package/dist/discord-interactions.d.ts.map +0 -1
- package/dist/discord-local-service.d.ts +0 -94
- package/dist/discord-local-service.d.ts.map +0 -1
- package/dist/discord-profiles.d.ts +0 -26
- package/dist/discord-profiles.d.ts.map +0 -1
- package/dist/discord-reactions.d.ts +0 -30
- package/dist/discord-reactions.d.ts.map +0 -1
- package/dist/draft-chunking.d.ts +0 -9
- package/dist/draft-chunking.d.ts.map +0 -1
- package/dist/draft-stream.d.ts +0 -23
- package/dist/draft-stream.d.ts.map +0 -1
- package/dist/environment.d.ts +0 -23
- package/dist/environment.d.ts.map +0 -1
- package/dist/generated/specs/spec-helpers.d.ts +0 -36
- package/dist/generated/specs/spec-helpers.d.ts.map +0 -1
- package/dist/generated/specs/specs.d.ts +0 -52
- package/dist/generated/specs/specs.d.ts.map +0 -1
- package/dist/identity.d.ts +0 -8
- package/dist/identity.d.ts.map +0 -1
- package/dist/inbound-envelope.d.ts +0 -8
- package/dist/inbound-envelope.d.ts.map +0 -1
- package/dist/index.browser.d.ts +0 -34
- package/dist/index.browser.d.ts.map +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -13784
- package/dist/index.js.map +0 -56
- package/dist/message-coalesce.d.ts +0 -31
- package/dist/message-coalesce.d.ts.map +0 -1
- package/dist/messages.d.ts +0 -66
- package/dist/messages.d.ts.map +0 -1
- package/dist/messaging.d.ts +0 -129
- package/dist/messaging.d.ts.map +0 -1
- package/dist/native-commands.d.ts +0 -142
- package/dist/native-commands.d.ts.map +0 -1
- package/dist/owner-pairing-service.d.ts +0 -73
- package/dist/owner-pairing-service.d.ts.map +0 -1
- package/dist/permissionEvents.d.ts +0 -42
- package/dist/permissionEvents.d.ts.map +0 -1
- package/dist/permissions.d.ts +0 -36
- package/dist/permissions.d.ts.map +0 -1
- package/dist/profileSync.d.ts +0 -8
- package/dist/profileSync.d.ts.map +0 -1
- package/dist/reasoning-tags.d.ts +0 -2
- package/dist/reasoning-tags.d.ts.map +0 -1
- package/dist/service.d.ts +0 -298
- package/dist/service.d.ts.map +0 -1
- package/dist/setup-routes.d.ts +0 -23
- package/dist/setup-routes.d.ts.map +0 -1
- package/dist/slash-commands.d.ts +0 -39
- package/dist/slash-commands.d.ts.map +0 -1
- package/dist/staleness.d.ts +0 -25
- package/dist/staleness.d.ts.map +0 -1
- package/dist/status-reactions.d.ts +0 -11
- package/dist/status-reactions.d.ts.map +0 -1
- package/dist/test-setup.d.ts +0 -1
- package/dist/test-setup.d.ts.map +0 -1
- package/dist/tests.d.ts +0 -123
- package/dist/tests.d.ts.map +0 -1
- package/dist/types.d.ts +0 -339
- package/dist/types.d.ts.map +0 -1
- package/dist/typing.d.ts +0 -7
- package/dist/typing.d.ts.map +0 -1
- package/dist/user-account-scraper/discord-browser-scraper.d.ts +0 -118
- package/dist/user-account-scraper/discord-browser-scraper.d.ts.map +0 -1
- package/dist/user-account-scraper/discord-desktop-cdp.d.ts +0 -33
- package/dist/user-account-scraper/discord-desktop-cdp.d.ts.map +0 -1
- package/dist/user-account-scraper/index.d.ts +0 -15
- package/dist/user-account-scraper/index.d.ts.map +0 -1
- package/dist/user-account-scraper/service.d.ts +0 -92
- package/dist/user-account-scraper/service.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -51
- package/dist/utils.d.ts.map +0 -1
- package/dist/vitest.config.d.ts +0 -3
- package/dist/vitest.config.d.ts.map +0 -1
- package/dist/voice.d.ts +0 -235
- package/dist/voice.d.ts.map +0 -1
package/dist/allowlist.d.ts
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import type { Guild, GuildMember, User } from "discord.js";
|
|
2
|
-
import type { DiscordAccountConfig, DiscordGuildEntry } from "./accounts";
|
|
3
|
-
/**
|
|
4
|
-
* Normalized allowlist structure for Discord entities
|
|
5
|
-
*/
|
|
6
|
-
export interface DiscordAllowList {
|
|
7
|
-
allowAll: boolean;
|
|
8
|
-
ids: Set<string>;
|
|
9
|
-
names: Set<string>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Match source type for allowlist matching
|
|
13
|
-
*/
|
|
14
|
-
export type AllowListMatchSource = "wildcard" | "id" | "name" | "tag";
|
|
15
|
-
/**
|
|
16
|
-
* Result of an allowlist match operation
|
|
17
|
-
*/
|
|
18
|
-
export interface DiscordAllowListMatch {
|
|
19
|
-
allowed: boolean;
|
|
20
|
-
matchKey?: string;
|
|
21
|
-
matchSource?: AllowListMatchSource;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Match source for channel configuration
|
|
25
|
-
*/
|
|
26
|
-
export type ChannelMatchSource = "id" | "name" | "slug" | "wildcard" | "parent";
|
|
27
|
-
/**
|
|
28
|
-
* Resolved channel configuration with match metadata
|
|
29
|
-
*/
|
|
30
|
-
export interface DiscordChannelConfigResolved {
|
|
31
|
-
allowed: boolean;
|
|
32
|
-
requireMention?: boolean;
|
|
33
|
-
skills?: string[];
|
|
34
|
-
enabled?: boolean;
|
|
35
|
-
users?: Array<string | number>;
|
|
36
|
-
systemPrompt?: string;
|
|
37
|
-
autoThread?: boolean;
|
|
38
|
-
matchKey?: string;
|
|
39
|
-
matchSource?: ChannelMatchSource;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Normalizes a Discord slug (channel name, guild name, etc.)
|
|
43
|
-
* Converts to lowercase, removes special characters, replaces spaces with dashes
|
|
44
|
-
*/
|
|
45
|
-
export declare function normalizeDiscordSlug(value: string): string;
|
|
46
|
-
/**
|
|
47
|
-
* Formats a Discord user tag for matching
|
|
48
|
-
*/
|
|
49
|
-
export declare function formatDiscordUserTag(user: User | GuildMember): string;
|
|
50
|
-
/**
|
|
51
|
-
* Normalizes a raw allowlist array into a structured DiscordAllowList
|
|
52
|
-
*/
|
|
53
|
-
export declare function normalizeDiscordAllowList(raw: Array<string | number> | undefined, prefixes?: string[]): DiscordAllowList | null;
|
|
54
|
-
/**
|
|
55
|
-
* Checks if a candidate matches the allowlist
|
|
56
|
-
*/
|
|
57
|
-
export declare function allowListMatches(list: DiscordAllowList, candidate: {
|
|
58
|
-
id?: string;
|
|
59
|
-
name?: string;
|
|
60
|
-
tag?: string;
|
|
61
|
-
}): boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Resolves an allowlist match with detailed match information
|
|
64
|
-
*/
|
|
65
|
-
export declare function resolveDiscordAllowListMatch(params: {
|
|
66
|
-
allowList: DiscordAllowList;
|
|
67
|
-
candidate: {
|
|
68
|
-
id?: string;
|
|
69
|
-
name?: string;
|
|
70
|
-
tag?: string;
|
|
71
|
-
};
|
|
72
|
-
}): DiscordAllowListMatch;
|
|
73
|
-
/**
|
|
74
|
-
* Checks if a Discord user is allowed based on an allowlist
|
|
75
|
-
*/
|
|
76
|
-
export declare function resolveDiscordUserAllowed(params: {
|
|
77
|
-
allowList?: Array<string | number>;
|
|
78
|
-
userId: string;
|
|
79
|
-
userName?: string;
|
|
80
|
-
userTag?: string;
|
|
81
|
-
}): boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Checks if a user is authorized for commands in DMs
|
|
84
|
-
*/
|
|
85
|
-
export declare function resolveDiscordCommandAuthorized(params: {
|
|
86
|
-
isDirectMessage: boolean;
|
|
87
|
-
allowFrom?: Array<string | number>;
|
|
88
|
-
author: User;
|
|
89
|
-
}): boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Resolves guild entry configuration by ID or slug
|
|
92
|
-
*/
|
|
93
|
-
export declare function resolveDiscordGuildEntry(params: {
|
|
94
|
-
guild?: Guild | null;
|
|
95
|
-
guildEntries?: Record<string, DiscordGuildEntry>;
|
|
96
|
-
}): (DiscordGuildEntry & {
|
|
97
|
-
id?: string;
|
|
98
|
-
}) | null;
|
|
99
|
-
/**
|
|
100
|
-
* Resolves channel configuration from guild info
|
|
101
|
-
*/
|
|
102
|
-
export declare function resolveDiscordChannelConfig(params: {
|
|
103
|
-
guildInfo?: (DiscordGuildEntry & {
|
|
104
|
-
id?: string;
|
|
105
|
-
}) | null;
|
|
106
|
-
channelId: string;
|
|
107
|
-
channelName?: string;
|
|
108
|
-
channelSlug?: string;
|
|
109
|
-
}): DiscordChannelConfigResolved | null;
|
|
110
|
-
/**
|
|
111
|
-
* Resolves channel configuration with thread/parent fallback
|
|
112
|
-
*/
|
|
113
|
-
export declare function resolveDiscordChannelConfigWithFallback(params: {
|
|
114
|
-
guildInfo?: (DiscordGuildEntry & {
|
|
115
|
-
id?: string;
|
|
116
|
-
}) | null;
|
|
117
|
-
channelId: string;
|
|
118
|
-
channelName?: string;
|
|
119
|
-
channelSlug?: string;
|
|
120
|
-
parentId?: string;
|
|
121
|
-
parentName?: string;
|
|
122
|
-
parentSlug?: string;
|
|
123
|
-
isThread?: boolean;
|
|
124
|
-
}): DiscordChannelConfigResolved | null;
|
|
125
|
-
/**
|
|
126
|
-
* Determines if a mention is required for the bot to respond
|
|
127
|
-
*/
|
|
128
|
-
export declare function resolveDiscordShouldRequireMention(params: {
|
|
129
|
-
isGuildMessage: boolean;
|
|
130
|
-
isThread: boolean;
|
|
131
|
-
botId?: string | null;
|
|
132
|
-
threadOwnerId?: string | null;
|
|
133
|
-
channelConfig?: DiscordChannelConfigResolved | null;
|
|
134
|
-
guildInfo?: (DiscordGuildEntry & {
|
|
135
|
-
id?: string;
|
|
136
|
-
}) | null;
|
|
137
|
-
isAutoThreadOwnedByBot?: boolean;
|
|
138
|
-
}): boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Checks if a thread was created by the bot via autoThread feature
|
|
141
|
-
*/
|
|
142
|
-
export declare function isDiscordAutoThreadOwnedByBot(params: {
|
|
143
|
-
isThread: boolean;
|
|
144
|
-
channelConfig?: DiscordChannelConfigResolved | null;
|
|
145
|
-
botId?: string | null;
|
|
146
|
-
threadOwnerId?: string | null;
|
|
147
|
-
}): boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Checks if a group (guild channel) is allowed by the policy
|
|
150
|
-
*/
|
|
151
|
-
export declare function isDiscordGroupAllowedByPolicy(params: {
|
|
152
|
-
groupPolicy: "open" | "disabled" | "allowlist";
|
|
153
|
-
guildAllowlisted: boolean;
|
|
154
|
-
channelAllowlistConfigured: boolean;
|
|
155
|
-
channelAllowed: boolean;
|
|
156
|
-
}): boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Resolves if a group DM is allowed
|
|
159
|
-
*/
|
|
160
|
-
export declare function resolveGroupDmAllow(params: {
|
|
161
|
-
channels?: Array<string | number>;
|
|
162
|
-
channelId: string;
|
|
163
|
-
channelName?: string;
|
|
164
|
-
channelSlug?: string;
|
|
165
|
-
}): boolean;
|
|
166
|
-
/**
|
|
167
|
-
* Determines if a reaction notification should be emitted
|
|
168
|
-
*/
|
|
169
|
-
export declare function shouldEmitDiscordReactionNotification(params: {
|
|
170
|
-
mode?: "off" | "own" | "all" | "allowlist";
|
|
171
|
-
botId?: string;
|
|
172
|
-
messageAuthorId?: string;
|
|
173
|
-
userId: string;
|
|
174
|
-
userName?: string;
|
|
175
|
-
userTag?: string;
|
|
176
|
-
allowlist?: Array<string | number>;
|
|
177
|
-
}): boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Validates a message against all allowlist policies
|
|
180
|
-
*/
|
|
181
|
-
export declare function validateMessageAllowed(params: {
|
|
182
|
-
accountConfig: DiscordAccountConfig;
|
|
183
|
-
isDirectMessage: boolean;
|
|
184
|
-
isGroupDm: boolean;
|
|
185
|
-
guild?: Guild | null;
|
|
186
|
-
channelId: string;
|
|
187
|
-
channelName?: string;
|
|
188
|
-
author: User;
|
|
189
|
-
botId?: string;
|
|
190
|
-
}): {
|
|
191
|
-
allowed: boolean;
|
|
192
|
-
reason?: string;
|
|
193
|
-
channelConfig?: DiscordChannelConfigResolved | null;
|
|
194
|
-
guildInfo?: (DiscordGuildEntry & {
|
|
195
|
-
id?: string;
|
|
196
|
-
}) | null;
|
|
197
|
-
};
|
|
198
|
-
//# sourceMappingURL=allowlist.d.ts.map
|
package/dist/allowlist.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allowlist.d.ts","sourceRoot":"","sources":["../allowlist.ts"],"names":[],"mappings":"AAAA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AAgB,sBAAsB,CAAC,MAAM,EAAE;IAC9C,aAAa,EAAE,oBAAoB,CAAC;IACpC,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,IAAI,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,GAAG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,4BAA4B,GAAG,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,CAAC,iBAAiB,GAAG;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;CACzD,CAwIA"}
|
package/dist/attachments.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { type IAgentRuntime, type Media } from "@elizaos/core";
|
|
2
|
-
import { type Attachment, Collection } from "discord.js";
|
|
3
|
-
/**
|
|
4
|
-
* Class representing an Attachment Manager.
|
|
5
|
-
*/
|
|
6
|
-
export declare class AttachmentManager {
|
|
7
|
-
private attachmentCache;
|
|
8
|
-
private runtime;
|
|
9
|
-
/**
|
|
10
|
-
* Constructor for creating a new instance of the class.
|
|
11
|
-
*
|
|
12
|
-
* @param {IAgentRuntime} runtime The runtime object to be injected into the instance.
|
|
13
|
-
*/
|
|
14
|
-
constructor(runtime: IAgentRuntime);
|
|
15
|
-
private isImageDescriptionEnabled;
|
|
16
|
-
/**
|
|
17
|
-
* Processes attachments and returns an array of Media objects.
|
|
18
|
-
* @param {Collection<string, Attachment> | Attachment[]} attachments - The attachments to be processed
|
|
19
|
-
* @returns {Promise<Media[]>} - An array of processed Media objects
|
|
20
|
-
*/
|
|
21
|
-
processAttachments(attachments: Collection<string, Attachment> | Attachment[]): Promise<Media[]>;
|
|
22
|
-
/**
|
|
23
|
-
* Processes the provided attachment to generate a media object.
|
|
24
|
-
* If the media for the attachment URL is already cached, it will return the cached media.
|
|
25
|
-
* Otherwise, it will determine the type of attachment (PDF, text, audio, video, image, generic)
|
|
26
|
-
* and call the corresponding processing method to generate the media object.
|
|
27
|
-
*
|
|
28
|
-
* @param attachment The attachment to process
|
|
29
|
-
* @returns A promise that resolves to a Media object representing the attachment, or null if the attachment could not be processed
|
|
30
|
-
*/
|
|
31
|
-
processAttachment(attachment: Attachment): Promise<Media | null>;
|
|
32
|
-
/**
|
|
33
|
-
* Asynchronously processes an audio or video attachment provided as input and returns a Media object.
|
|
34
|
-
* @param {Attachment} attachment - The attachment object containing information about the audio/video file.
|
|
35
|
-
* @returns {Promise<Media>} A Promise that resolves to a Media object representing the processed audio/video attachment.
|
|
36
|
-
*/
|
|
37
|
-
private processAudioVideoAttachment;
|
|
38
|
-
/**
|
|
39
|
-
* Extracts the audio stream from the provided MP4 data and converts it to MP3 format.
|
|
40
|
-
*
|
|
41
|
-
* @param {ArrayBuffer} mp4Data - The MP4 data to extract audio from
|
|
42
|
-
* @returns {Promise<Buffer>} - A Promise that resolves with the converted audio data as a Buffer
|
|
43
|
-
*/
|
|
44
|
-
private extractAudioFromMP4;
|
|
45
|
-
/**
|
|
46
|
-
* Processes a PDF attachment by fetching the PDF file from the specified URL,
|
|
47
|
-
* converting it to text, generating a summary, and returning a Media object
|
|
48
|
-
* with the extracted information.
|
|
49
|
-
* If an error occurs during processing, a placeholder Media object is returned
|
|
50
|
-
* with an error message.
|
|
51
|
-
*
|
|
52
|
-
* @param {Attachment} attachment - The PDF attachment to process.
|
|
53
|
-
* @returns {Promise<Media>} A promise that resolves to a Media object representing
|
|
54
|
-
* the processed PDF attachment.
|
|
55
|
-
*/
|
|
56
|
-
private processPdfAttachment;
|
|
57
|
-
/**
|
|
58
|
-
* Processes a plaintext attachment by fetching its content, generating a summary, and returning a Media object.
|
|
59
|
-
* @param {Attachment} attachment - The attachment object to process.
|
|
60
|
-
* @returns {Promise<Media>} A promise that resolves to a Media object representing the processed plaintext attachment.
|
|
61
|
-
*/
|
|
62
|
-
private processPlaintextAttachment;
|
|
63
|
-
/**
|
|
64
|
-
* Process the image attachment by fetching description and title using the IMAGE_DESCRIPTION model.
|
|
65
|
-
* If successful, returns a Media object populated with the details. If unsuccessful, creates a fallback
|
|
66
|
-
* Media object and logs the error.
|
|
67
|
-
*
|
|
68
|
-
* @param {Attachment} attachment - The attachment object containing the image details.
|
|
69
|
-
* @returns {Promise<Media>} A promise that resolves to a Media object.
|
|
70
|
-
*/
|
|
71
|
-
private processImageAttachment;
|
|
72
|
-
/**
|
|
73
|
-
* Creates a fallback Media object for image attachments that could not be recognized.
|
|
74
|
-
*
|
|
75
|
-
* @param {Attachment} attachment - The attachment object containing image details.
|
|
76
|
-
* @returns {Media} - The fallback Media object with basic information about the image attachment.
|
|
77
|
-
*/
|
|
78
|
-
private createFallbackImageMedia;
|
|
79
|
-
/**
|
|
80
|
-
* Process a video attachment to extract video information.
|
|
81
|
-
* @param {Attachment} attachment - The attachment object containing video information.
|
|
82
|
-
* @returns {Promise<Media>} A promise that resolves to a Media object with video details.
|
|
83
|
-
* @throws {Error} If video service is not available.
|
|
84
|
-
*/
|
|
85
|
-
private processVideoAttachment;
|
|
86
|
-
/**
|
|
87
|
-
* Process a generic attachment and return a Media object with specified properties.
|
|
88
|
-
* @param {Attachment} attachment - The attachment object to process.
|
|
89
|
-
* @returns {Promise<Media>} A Promise that resolves to a Media object with specified properties.
|
|
90
|
-
*/
|
|
91
|
-
private processGenericAttachment;
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=attachments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../attachments.ts"],"names":[],"mappings":"AAGA,OAAO,EAEN,KAAK,aAAa,EAClB,KAAK,KAAK,EAIV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAoEzD;;GAEG;AACH,qBAAa,iBAAiB;IAC7B,OAAO,CAAC,eAAe,CAAiC;IACxD,OAAO,CAAC,OAAO,CAAgB;IAE/B;;;;OAIG;gBACS,OAAO,EAAE,aAAa;IAIlC,OAAO,CAAC,yBAAyB;IAejC;;;;OAIG;IACG,kBAAkB,CACvB,WAAW,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,UAAU,EAAE,GACxD,OAAO,CAAC,KAAK,EAAE,CAAC;IAiBnB;;;;;;;;OAQG;IACG,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAmCtE;;;;OAIG;YACW,2BAA2B;IA2IzC;;;;;OAKG;YACW,mBAAmB;IAwGjC;;;;;;;;;;OAUG;YACW,oBAAoB;IAuDlC;;;;OAIG;YACW,0BAA0B;IAkDxC;;;;;;;OAOG;YACW,sBAAsB;IA4CpC;;;;;OAKG;IAEH,OAAO,CAAC,wBAAwB;IAYhC;;;;;OAKG;YACW,sBAAsB;IAyDpC;;;;OAIG;YACW,wBAAwB;CAYtC"}
|
package/dist/auto-enable.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-enable.d.ts","sourceRoot":"","sources":["../auto-enable.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,sFAAsF;AACtF,wBAAgB,YAAY,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAWlE"}
|
package/dist/banner.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Discord Plugin Settings Banner
|
|
3
|
-
* Beautiful ANSI art display for configuration on startup
|
|
4
|
-
* Includes tiered permission system for invite URLs
|
|
5
|
-
*/
|
|
6
|
-
import type { IAgentRuntime } from "@elizaos/core";
|
|
7
|
-
import { type DiscordPermissionValues } from "./permissions";
|
|
8
|
-
export interface PluginSetting {
|
|
9
|
-
name: string;
|
|
10
|
-
value: unknown;
|
|
11
|
-
defaultValue?: unknown;
|
|
12
|
-
sensitive?: boolean;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface BannerOptions {
|
|
16
|
-
pluginName: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
settings: PluginSetting[];
|
|
19
|
-
runtime: IAgentRuntime;
|
|
20
|
-
/** Discord Application ID for generating invite URLs */
|
|
21
|
-
applicationId?: string;
|
|
22
|
-
/** Permission values for the 3x2 tier matrix */
|
|
23
|
-
discordPermissions?: DiscordPermissionValues;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Render a framed ANSI banner that displays plugin settings and, when available, tiered Discord invite URLs.
|
|
27
|
-
*
|
|
28
|
-
* The banner lists each setting with masked or truncated values, a status (custom/default/unset/required),
|
|
29
|
-
* and an optional Discord invite section generated from `applicationId` and `discordPermissions`.
|
|
30
|
-
*
|
|
31
|
-
* @param options - Configuration for the banner, including `settings`, the `runtime` used to emit the banner,
|
|
32
|
-
* and optional Discord invite data (`applicationId`, `discordPermissions`).
|
|
33
|
-
*/
|
|
34
|
-
export declare function printBanner(options: BannerOptions): void;
|
|
35
|
-
/**
|
|
36
|
-
* Print the Discord plugin banner with current settings.
|
|
37
|
-
*/
|
|
38
|
-
export declare function printDiscordBanner(runtime: IAgentRuntime): void;
|
|
39
|
-
//# sourceMappingURL=banner.d.ts.map
|
package/dist/banner.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../banner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EACN,KAAK,uBAAuB,EAE5B,MAAM,eAAe,CAAC;AAgBvB,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAC;IACvB,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAoFD;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAoIxD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CA6C/D"}
|
package/dist/compat.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runtime compatibility layer for old/new core.
|
|
3
|
-
*
|
|
4
|
-
* Automatically adds serverId when messageServerId is provided,
|
|
5
|
-
* making plugin code work with both core versions unchanged.
|
|
6
|
-
*
|
|
7
|
-
* Old core expects: serverId (string)
|
|
8
|
-
* New core expects: messageServerId (UUID)
|
|
9
|
-
*
|
|
10
|
-
* NOTE: UUID function usage for Discord IDs:
|
|
11
|
-
* - `stringToUuid(str)` - CONVERTS any string to a deterministic UUID by hashing.
|
|
12
|
-
* Use this for Discord snowflake IDs (always succeeds, same input = same output).
|
|
13
|
-
* - `asUUID(str)` - VALIDATES that string is already a valid UUID format.
|
|
14
|
-
* Throws if not a valid UUID. Only use when input is already a UUID.
|
|
15
|
-
*
|
|
16
|
-
* REMOVAL: Delete this file and remove createCompatRuntime() call in service.ts
|
|
17
|
-
*/
|
|
18
|
-
import type { ChannelType, Entity, IAgentRuntime, Metadata, Room, UUID, World } from "@elizaos/core";
|
|
19
|
-
/**
|
|
20
|
-
* Extended types that support messageServerId for cross-core compatibility.
|
|
21
|
-
* These allow TypeScript to accept messageServerId in object literals.
|
|
22
|
-
*/
|
|
23
|
-
export type WorldCompat = Omit<World, "serverId"> & {
|
|
24
|
-
serverId?: string;
|
|
25
|
-
messageServerId?: UUID;
|
|
26
|
-
};
|
|
27
|
-
export type RoomCompat = Omit<Room, "serverId"> & {
|
|
28
|
-
serverId?: string;
|
|
29
|
-
messageServerId?: UUID;
|
|
30
|
-
};
|
|
31
|
-
export interface EnsureConnectionParams {
|
|
32
|
-
entityId: UUID;
|
|
33
|
-
roomId: UUID;
|
|
34
|
-
roomName?: string;
|
|
35
|
-
userName?: string;
|
|
36
|
-
name?: string;
|
|
37
|
-
worldName?: string;
|
|
38
|
-
source?: string;
|
|
39
|
-
channelId?: string;
|
|
40
|
-
serverId?: string;
|
|
41
|
-
messageServerId?: UUID;
|
|
42
|
-
type?: ChannelType | string;
|
|
43
|
-
worldId?: UUID;
|
|
44
|
-
userId?: UUID;
|
|
45
|
-
metadata?: Metadata;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Extended runtime interface that accepts messageServerId in method parameters.
|
|
49
|
-
*/
|
|
50
|
-
export interface ICompatRuntime extends Omit<IAgentRuntime, "ensureWorldExists" | "ensureRoomExists" | "ensureConnection" | "ensureConnections"> {
|
|
51
|
-
ensureWorldExists(world: WorldCompat): Promise<void>;
|
|
52
|
-
ensureRoomExists(room: RoomCompat): Promise<void>;
|
|
53
|
-
ensureConnection(params: EnsureConnectionParams): Promise<void>;
|
|
54
|
-
ensureConnections(entities: Entity[], rooms: RoomCompat[], source: string, world: WorldCompat): Promise<void>;
|
|
55
|
-
}
|
|
56
|
-
export declare function createCompatRuntime(runtime: IAgentRuntime): ICompatRuntime;
|
|
57
|
-
//# sourceMappingURL=compat.d.ts.map
|
package/dist/compat.d.ts.map
DELETED
|
@@ -1 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BAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,iBAAiB,CAChB,QAAQ,EAAE,MAAM,EAAE,EAClB,KAAK,EAAE,UAAU,EAAE,EACnB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,WAAW,GAChB,OAAO,CAAC,IAAI,CAAC,CAAC;CACjB;AASD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,cAAc,CAuC1E"}
|
package/dist/config.d.ts
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Discord plugin configuration types.
|
|
3
|
-
*
|
|
4
|
-
* These types define the configuration schema for the Discord plugin.
|
|
5
|
-
* Shared base types are imported from @elizaos/core.
|
|
6
|
-
*/
|
|
7
|
-
import type { BlockStreamingCoalesceConfig, ChannelHeartbeatVisibilityConfig, DmConfig, DmPolicy, GroupPolicy, GroupToolPolicyBySenderConfig, GroupToolPolicyConfig, MarkdownConfig, OutboundRetryConfig, ProviderCommandsConfig, ReplyToMode } from "@elizaos/core";
|
|
8
|
-
export type DiscordPluralKitConfig = {
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
detectProxied?: boolean;
|
|
11
|
-
cacheUsers?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type DiscordDmConfig = {
|
|
14
|
-
/** If false, ignore all incoming Discord DMs. Default: true. */
|
|
15
|
-
enabled?: boolean;
|
|
16
|
-
/** Direct message access policy (default: pairing). */
|
|
17
|
-
policy?: DmPolicy;
|
|
18
|
-
/** Allowlist for DM senders (ids or names). */
|
|
19
|
-
allowFrom?: Array<string | number>;
|
|
20
|
-
/** If true, allow group DMs (default: false). */
|
|
21
|
-
groupEnabled?: boolean;
|
|
22
|
-
/** Optional allowlist for group DM channels (ids or slugs). */
|
|
23
|
-
groupChannels?: Array<string | number>;
|
|
24
|
-
};
|
|
25
|
-
export type DiscordGuildChannelConfig = {
|
|
26
|
-
allow?: boolean;
|
|
27
|
-
requireMention?: boolean;
|
|
28
|
-
/** Optional tool policy overrides for this channel. */
|
|
29
|
-
tools?: GroupToolPolicyConfig;
|
|
30
|
-
toolsBySender?: GroupToolPolicyBySenderConfig;
|
|
31
|
-
/** If specified, only load these skills for this channel. Omit = all skills; empty = no skills. */
|
|
32
|
-
skills?: string[];
|
|
33
|
-
/** If false, disable the bot for this channel. */
|
|
34
|
-
enabled?: boolean;
|
|
35
|
-
/** Optional allowlist for channel senders (ids or names). */
|
|
36
|
-
users?: Array<string | number>;
|
|
37
|
-
/** Optional system prompt snippet for this channel. */
|
|
38
|
-
systemPrompt?: string;
|
|
39
|
-
};
|
|
40
|
-
export type DiscordReactionNotificationMode = "off" | "own" | "all" | "allowlist";
|
|
41
|
-
export type DiscordGuildEntry = {
|
|
42
|
-
slug?: string;
|
|
43
|
-
requireMention?: boolean;
|
|
44
|
-
/** Optional tool policy overrides for this guild (used when channel override is missing). */
|
|
45
|
-
tools?: GroupToolPolicyConfig;
|
|
46
|
-
toolsBySender?: GroupToolPolicyBySenderConfig;
|
|
47
|
-
/** Reaction notification mode (off|own|all|allowlist). Default: own. */
|
|
48
|
-
reactionNotifications?: DiscordReactionNotificationMode;
|
|
49
|
-
users?: Array<string | number>;
|
|
50
|
-
channels?: Record<string, DiscordGuildChannelConfig>;
|
|
51
|
-
};
|
|
52
|
-
export type DiscordActionConfig = {
|
|
53
|
-
reactions?: boolean;
|
|
54
|
-
stickers?: boolean;
|
|
55
|
-
polls?: boolean;
|
|
56
|
-
permissions?: boolean;
|
|
57
|
-
messages?: boolean;
|
|
58
|
-
threads?: boolean;
|
|
59
|
-
pins?: boolean;
|
|
60
|
-
search?: boolean;
|
|
61
|
-
memberInfo?: boolean;
|
|
62
|
-
roleInfo?: boolean;
|
|
63
|
-
roles?: boolean;
|
|
64
|
-
channelInfo?: boolean;
|
|
65
|
-
voiceStatus?: boolean;
|
|
66
|
-
events?: boolean;
|
|
67
|
-
moderation?: boolean;
|
|
68
|
-
emojiUploads?: boolean;
|
|
69
|
-
stickerUploads?: boolean;
|
|
70
|
-
channels?: boolean;
|
|
71
|
-
/** Enable bot presence/activity changes (default: false). */
|
|
72
|
-
presence?: boolean;
|
|
73
|
-
};
|
|
74
|
-
export type DiscordIntentsConfig = {
|
|
75
|
-
/** Enable Guild Presences privileged intent (requires Portal opt-in). Default: false. */
|
|
76
|
-
presence?: boolean;
|
|
77
|
-
/** Enable Guild Members privileged intent (requires Portal opt-in). Default: false. */
|
|
78
|
-
guildMembers?: boolean;
|
|
79
|
-
};
|
|
80
|
-
export type DiscordExecApprovalConfig = {
|
|
81
|
-
/** Enable exec approval forwarding to Discord DMs. Default: false. */
|
|
82
|
-
enabled?: boolean;
|
|
83
|
-
/** Discord user IDs to receive approval prompts. Required if enabled. */
|
|
84
|
-
approvers?: Array<string | number>;
|
|
85
|
-
/** Only forward approvals for these agent IDs. Omit = all agents. */
|
|
86
|
-
agentFilter?: string[];
|
|
87
|
-
/** Only forward approvals matching these session key patterns (substring or regex). */
|
|
88
|
-
sessionFilter?: string[];
|
|
89
|
-
};
|
|
90
|
-
export type DiscordAccountConfig = {
|
|
91
|
-
/** Optional display name for this account (used in CLI/UI lists). */
|
|
92
|
-
name?: string;
|
|
93
|
-
/** Optional provider capability tags used for agent/runtime guidance. */
|
|
94
|
-
capabilities?: string[];
|
|
95
|
-
/** Markdown formatting overrides (tables). */
|
|
96
|
-
markdown?: MarkdownConfig;
|
|
97
|
-
/** Override native command registration for Discord (bool or "auto"). */
|
|
98
|
-
commands?: ProviderCommandsConfig;
|
|
99
|
-
/** Allow channel-initiated config writes (default: true). */
|
|
100
|
-
configWrites?: boolean;
|
|
101
|
-
/** If false, do not start this Discord account. Default: true. */
|
|
102
|
-
enabled?: boolean;
|
|
103
|
-
token?: string;
|
|
104
|
-
/** Allow bot-authored messages to trigger replies (default: false). */
|
|
105
|
-
allowBots?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Controls how guild channel messages are handled:
|
|
108
|
-
* - "open": guild channels bypass allowlists; mention-gating applies
|
|
109
|
-
* - "disabled": block all guild channel messages
|
|
110
|
-
* - "allowlist": only allow channels present in discord.guilds.*.channels
|
|
111
|
-
*/
|
|
112
|
-
groupPolicy?: GroupPolicy;
|
|
113
|
-
/** Outbound text chunk size (chars). Default: 2000. */
|
|
114
|
-
textChunkLimit?: number;
|
|
115
|
-
/** Chunking mode: "length" (default) splits by size; "newline" splits on every newline. */
|
|
116
|
-
chunkMode?: "length" | "newline";
|
|
117
|
-
/** Disable block streaming for this account. */
|
|
118
|
-
blockStreaming?: boolean;
|
|
119
|
-
/** Merge streamed block replies before sending. */
|
|
120
|
-
blockStreamingCoalesce?: BlockStreamingCoalesceConfig;
|
|
121
|
-
/**
|
|
122
|
-
* Soft max line count per Discord message.
|
|
123
|
-
* Discord clients can clip/collapse very tall messages; splitting by lines
|
|
124
|
-
* keeps replies readable in-channel. Default: 17.
|
|
125
|
-
*/
|
|
126
|
-
maxLinesPerMessage?: number;
|
|
127
|
-
mediaMaxMb?: number;
|
|
128
|
-
historyLimit?: number;
|
|
129
|
-
/** Max DM turns to keep as history context. */
|
|
130
|
-
dmHistoryLimit?: number;
|
|
131
|
-
/** Per-DM config overrides keyed by user ID. */
|
|
132
|
-
dms?: Record<string, DmConfig>;
|
|
133
|
-
/** Retry policy for outbound Discord API calls. */
|
|
134
|
-
retry?: OutboundRetryConfig;
|
|
135
|
-
/** Per-action tool gating (default: true for all). */
|
|
136
|
-
actions?: DiscordActionConfig;
|
|
137
|
-
/** Control reply threading when reply tags are present (off|first|all). */
|
|
138
|
-
replyToMode?: ReplyToMode;
|
|
139
|
-
dm?: DiscordDmConfig;
|
|
140
|
-
/** New per-guild config keyed by guild id or slug. */
|
|
141
|
-
guilds?: Record<string, DiscordGuildEntry>;
|
|
142
|
-
/** Heartbeat visibility settings for this channel. */
|
|
143
|
-
heartbeat?: ChannelHeartbeatVisibilityConfig;
|
|
144
|
-
/** Exec approval forwarding configuration. */
|
|
145
|
-
execApprovals?: DiscordExecApprovalConfig;
|
|
146
|
-
/** Privileged Gateway Intents (must also be enabled in Discord Developer Portal). */
|
|
147
|
-
intents?: DiscordIntentsConfig;
|
|
148
|
-
/** PluralKit identity resolution for proxied messages. */
|
|
149
|
-
pluralkit?: DiscordPluralKitConfig;
|
|
150
|
-
};
|
|
151
|
-
export type DiscordChannelConfig = {
|
|
152
|
-
/** Optional per-account Discord configuration (multi-account). */
|
|
153
|
-
accounts?: Record<string, DiscordAccountConfig>;
|
|
154
|
-
} & DiscordAccountConfig;
|
|
155
|
-
export type { DiscordChannelConfig as DiscordConfig };
|
|
156
|
-
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACX,4BAA4B,EAC5B,gCAAgC,EAChC,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,6BAA6B,EAC7B,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,WAAW,EACX,MAAM,eAAe,CAAC;AAMvB,MAAM,MAAM,sBAAsB,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAMF,MAAM,MAAM,eAAe,GAAG;IAC7B,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uDAAuD;IACvD,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,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AC/B,0DAA0D;IAC1D,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACnC,CAAC;AAMF,MAAM,MAAM,oBAAoB,GAAG;IAClC,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;CAChD,GAAG,oBAAoB,CAAC;AAGzB,YAAY,EAAE,oBAAoB,IAAI,aAAa,EAAE,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Discord ConnectorAccountManager provider.
|
|
3
|
-
*
|
|
4
|
-
* Adapts the existing multi-account scaffolding in `accounts.ts` to the
|
|
5
|
-
* `ConnectorAccountProvider` contract from
|
|
6
|
-
* `@elizaos/core/connectors/account-manager`.
|
|
7
|
-
*
|
|
8
|
-
* Source of truth for accounts is character settings (`character.settings.discord`)
|
|
9
|
-
* plus the legacy env-only DISCORD_API_TOKEN. The manager observes those via
|
|
10
|
-
* `listAccounts`. `createAccount`/`patchAccount`/`deleteAccount` here are
|
|
11
|
-
* adapters that surface a `ConnectorAccount` shape; persistent storage is
|
|
12
|
-
* delegated to the manager's `ConnectorAccountStorage`.
|
|
13
|
-
*
|
|
14
|
-
* OAuth: Discord uses bot installation (out-of-band) plus an in-app pairing
|
|
15
|
-
* flow handled by `owner-pairing-service.ts`. `startOAuth` returns a Discord
|
|
16
|
-
* application install URL; `completeOAuth` is a no-op marker because the
|
|
17
|
-
* pairing happens via the `/eliza-pair` slash command, not a redirect.
|
|
18
|
-
*/
|
|
19
|
-
import type { ConnectorAccountProvider, IAgentRuntime } from "@elizaos/core";
|
|
20
|
-
export declare const DISCORD_PROVIDER_ID = "discord";
|
|
21
|
-
/**
|
|
22
|
-
* Builds the Discord provider for the ConnectorAccountManager. The provider's
|
|
23
|
-
* lifecycle is owned by the manager; the plugin only registers it.
|
|
24
|
-
*/
|
|
25
|
-
export declare function createDiscordConnectorAccountProvider(runtime: IAgentRuntime): ConnectorAccountProvider;
|
|
26
|
-
//# sourceMappingURL=connector-account-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connector-account-provider.d.ts","sourceRoot":"","sources":["../connector-account-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAIX,wBAAwB,EAKxB,aAAa,EACb,MAAM,eAAe,CAAC;AASvB,eAAO,MAAM,mBAAmB,YAAY,CAAC;AA8C7C;;;GAGG;AACH,wBAAgB,qCAAqC,CACpD,OAAO,EAAE,aAAa,GACpB,wBAAwB,CA+F1B"}
|
package/dist/constants.d.ts
DELETED
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,YAAY,CAAC"}
|
package/dist/debouncer.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Message as DiscordMessage } from "discord.js";
|
|
2
|
-
export type DebouncerFlushCallback = (messages: DiscordMessage[]) => void;
|
|
3
|
-
export interface MessageDebouncer {
|
|
4
|
-
enqueue: (message: DiscordMessage) => void;
|
|
5
|
-
flushAll: () => void;
|
|
6
|
-
pendingCount: () => number;
|
|
7
|
-
destroy: () => void;
|
|
8
|
-
}
|
|
9
|
-
export interface ChannelDebouncerOptions {
|
|
10
|
-
debounceMs?: number;
|
|
11
|
-
responseCooldownMs?: number;
|
|
12
|
-
botUserId?: string;
|
|
13
|
-
getBotUserId?: () => string | undefined;
|
|
14
|
-
coalesceEnabled?: boolean;
|
|
15
|
-
maxBatch?: number;
|
|
16
|
-
}
|
|
17
|
-
export interface ChannelDebouncer {
|
|
18
|
-
enqueue: (message: DiscordMessage) => void;
|
|
19
|
-
markResponded: (channelId: string) => void;
|
|
20
|
-
flushAll: () => void;
|
|
21
|
-
pendingCount: () => number;
|
|
22
|
-
destroy: () => void;
|
|
23
|
-
}
|
|
24
|
-
export declare function createChannelDebouncer(onFlush: DebouncerFlushCallback, options?: ChannelDebouncerOptions): ChannelDebouncer;
|
|
25
|
-
export declare function createMessageDebouncer(onFlush: DebouncerFlushCallback, debounceMs?: number, options?: {
|
|
26
|
-
maxBatch?: number;
|
|
27
|
-
}): MessageDebouncer;
|
|
28
|
-
//# sourceMappingURL=debouncer.d.ts.map
|
package/dist/debouncer.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debouncer.d.ts","sourceRoot":"","sources":["../debouncer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,YAAY,CAAC;AAG5D,MAAM,MAAM,sBAAsB,GAAG,CAAC,QAAQ,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;AAE1E,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB;AAkBD,MAAM,WAAW,uBAAuB;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,OAAO,E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