@elizaos/plugin-discord 1.3.8 → 2.0.0-alpha.10
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/dist/accounts.d.ts +164 -0
- package/dist/accounts.d.ts.map +1 -0
- package/dist/actions/chatWithAttachments.d.ts +4 -0
- package/dist/actions/chatWithAttachments.d.ts.map +1 -0
- package/dist/actions/createPoll.d.ts +4 -0
- package/dist/actions/createPoll.d.ts.map +1 -0
- package/dist/actions/deleteMessage.d.ts +4 -0
- package/dist/actions/deleteMessage.d.ts.map +1 -0
- package/dist/actions/downloadMedia.d.ts +4 -0
- package/dist/actions/downloadMedia.d.ts.map +1 -0
- package/dist/actions/editMessage.d.ts +4 -0
- package/dist/actions/editMessage.d.ts.map +1 -0
- package/dist/actions/getUserInfo.d.ts +4 -0
- package/dist/actions/getUserInfo.d.ts.map +1 -0
- package/dist/actions/joinChannel.d.ts +4 -0
- package/dist/actions/joinChannel.d.ts.map +1 -0
- package/dist/actions/leaveChannel.d.ts +4 -0
- package/dist/actions/leaveChannel.d.ts.map +1 -0
- package/dist/actions/listChannels.d.ts +4 -0
- package/dist/actions/listChannels.d.ts.map +1 -0
- package/dist/actions/pinMessage.d.ts +4 -0
- package/dist/actions/pinMessage.d.ts.map +1 -0
- package/dist/actions/reactToMessage.d.ts +4 -0
- package/dist/actions/reactToMessage.d.ts.map +1 -0
- package/dist/actions/readChannel.d.ts +4 -0
- package/dist/actions/readChannel.d.ts.map +1 -0
- package/dist/actions/searchMessages.d.ts +4 -0
- package/dist/actions/searchMessages.d.ts.map +1 -0
- package/dist/actions/sendDM.d.ts +4 -0
- package/dist/actions/sendDM.d.ts.map +1 -0
- package/dist/actions/sendMessage.d.ts +4 -0
- package/dist/actions/sendMessage.d.ts.map +1 -0
- package/dist/actions/serverInfo.d.ts +4 -0
- package/dist/actions/serverInfo.d.ts.map +1 -0
- package/dist/actions/summarizeConversation.d.ts +4 -0
- package/dist/actions/summarizeConversation.d.ts.map +1 -0
- package/dist/actions/transcribeMedia.d.ts +4 -0
- package/dist/actions/transcribeMedia.d.ts.map +1 -0
- package/dist/actions/unpinMessage.d.ts +4 -0
- package/dist/actions/unpinMessage.d.ts.map +1 -0
- package/dist/allowlist.d.ts +198 -0
- package/dist/allowlist.d.ts.map +1 -0
- package/dist/attachments.d.ts +92 -0
- package/dist/attachments.d.ts.map +1 -0
- package/dist/banner.d.ts +39 -0
- package/dist/banner.d.ts.map +1 -0
- package/dist/compat.d.ts +56 -0
- package/dist/compat.d.ts.map +1 -0
- package/dist/config.d.ts +156 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/environment.d.ts +22 -0
- package/dist/environment.d.ts.map +1 -0
- package/dist/generated/prompts/typescript/prompts.d.ts +44 -0
- package/dist/generated/prompts/typescript/prompts.d.ts.map +1 -0
- package/dist/generated/specs/spec-helpers.d.ts +49 -0
- package/dist/generated/specs/spec-helpers.d.ts.map +1 -0
- package/dist/generated/specs/specs.d.ts +87 -0
- package/dist/generated/specs/specs.d.ts.map +1 -0
- package/dist/index.browser.d.ts +34 -0
- package/dist/index.browser.d.ts.map +1 -0
- package/dist/index.d.ts +2 -942
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9865 -7014
- package/dist/index.js.map +132 -1
- package/dist/messages.d.ts +55 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messaging.d.ts +129 -0
- package/dist/messaging.d.ts.map +1 -0
- package/dist/native-commands.d.ts +142 -0
- package/dist/native-commands.d.ts.map +1 -0
- package/dist/permissionEvents.d.ts +42 -0
- package/dist/permissionEvents.d.ts.map +1 -0
- package/dist/permissions.d.ts +36 -0
- package/dist/permissions.d.ts.map +1 -0
- package/dist/providers/channelState.d.ts +14 -0
- package/dist/providers/channelState.d.ts.map +1 -0
- package/dist/providers/guildInfo.d.ts +15 -0
- package/dist/providers/guildInfo.d.ts.map +1 -0
- package/dist/providers/voiceState.d.ts +12 -0
- package/dist/providers/voiceState.d.ts.map +1 -0
- package/dist/service.d.ts +403 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/test-setup.d.ts +1 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/tests.d.ts +123 -0
- package/dist/tests.d.ts.map +1 -0
- package/dist/types.d.ts +315 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +44 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/voice.d.ts +230 -0
- package/dist/voice.d.ts.map +1 -0
- package/package.json +134 -123
- package/LICENSE +0 -21
- package/README.md +0 -531
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated canonical action/provider/evaluator docs for plugin-discord.
|
|
3
|
+
* DO NOT EDIT - Generated from prompts/specs/**.
|
|
4
|
+
*/
|
|
5
|
+
export type ActionDoc = {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
similes?: readonly string[];
|
|
9
|
+
parameters?: readonly unknown[];
|
|
10
|
+
examples?: readonly (readonly unknown[])[];
|
|
11
|
+
};
|
|
12
|
+
export type ProviderDoc = {
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
position?: number;
|
|
16
|
+
dynamic?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type EvaluatorDoc = {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
similes?: readonly string[];
|
|
22
|
+
alwaysRun?: boolean;
|
|
23
|
+
examples?: readonly unknown[];
|
|
24
|
+
};
|
|
25
|
+
export declare const coreActionsSpec: {
|
|
26
|
+
readonly version: "1.0.0";
|
|
27
|
+
readonly actions: readonly [{
|
|
28
|
+
readonly name: "name";
|
|
29
|
+
readonly description: "";
|
|
30
|
+
readonly parameters: readonly [];
|
|
31
|
+
}];
|
|
32
|
+
};
|
|
33
|
+
export declare const allActionsSpec: {
|
|
34
|
+
readonly version: "1.0.0";
|
|
35
|
+
readonly actions: readonly [{
|
|
36
|
+
readonly name: "name";
|
|
37
|
+
readonly description: "";
|
|
38
|
+
readonly parameters: readonly [];
|
|
39
|
+
}];
|
|
40
|
+
};
|
|
41
|
+
export declare const coreProvidersSpec: {
|
|
42
|
+
readonly version: "1.0.0";
|
|
43
|
+
readonly providers: readonly [{
|
|
44
|
+
readonly name: "channelState";
|
|
45
|
+
readonly description: "Provides information about the current Discord channel state, including whether it's a DM or group channel, channel name, and server name.";
|
|
46
|
+
readonly dynamic: true;
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "guildInfo";
|
|
49
|
+
readonly description: "Provides information about the current Discord server/guild including member count, creation date, channels, roles, and bot permissions.";
|
|
50
|
+
readonly dynamic: true;
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "voiceState";
|
|
53
|
+
readonly description: "Provides information about the voice state of the agent, including whether it is currently in a voice channel.";
|
|
54
|
+
readonly dynamic: true;
|
|
55
|
+
}];
|
|
56
|
+
};
|
|
57
|
+
export declare const allProvidersSpec: {
|
|
58
|
+
readonly version: "1.0.0";
|
|
59
|
+
readonly providers: readonly [{
|
|
60
|
+
readonly name: "channelState";
|
|
61
|
+
readonly description: "Provides information about the current Discord channel state, including whether it's a DM or group channel, channel name, and server name.";
|
|
62
|
+
readonly dynamic: true;
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "guildInfo";
|
|
65
|
+
readonly description: "Provides information about the current Discord server/guild including member count, creation date, channels, roles, and bot permissions.";
|
|
66
|
+
readonly dynamic: true;
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "voiceState";
|
|
69
|
+
readonly description: "Provides information about the voice state of the agent, including whether it is currently in a voice channel.";
|
|
70
|
+
readonly dynamic: true;
|
|
71
|
+
}];
|
|
72
|
+
};
|
|
73
|
+
export declare const coreEvaluatorsSpec: {
|
|
74
|
+
readonly version: "1.0.0";
|
|
75
|
+
readonly evaluators: readonly [];
|
|
76
|
+
};
|
|
77
|
+
export declare const allEvaluatorsSpec: {
|
|
78
|
+
readonly version: "1.0.0";
|
|
79
|
+
readonly evaluators: readonly [];
|
|
80
|
+
};
|
|
81
|
+
export declare const coreActionDocs: readonly ActionDoc[];
|
|
82
|
+
export declare const allActionDocs: readonly ActionDoc[];
|
|
83
|
+
export declare const coreProviderDocs: readonly ProviderDoc[];
|
|
84
|
+
export declare const allProviderDocs: readonly ProviderDoc[];
|
|
85
|
+
export declare const coreEvaluatorDocs: readonly EvaluatorDoc[];
|
|
86
|
+
export declare const allEvaluatorDocs: readonly EvaluatorDoc[];
|
|
87
|
+
//# sourceMappingURL=specs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specs.d.ts","sourceRoot":"","sources":["../../../generated/specs/specs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,OAAO,EAAE,CAAC,EAAE,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;CASlB,CAAC;AACX,eAAO,MAAM,cAAc;;;;;;;CASjB,CAAC;AACX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;CAsBpB,CAAC;AACX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;CAsBnB,CAAC;AACX,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,eAAO,MAAM,cAAc,EAAE,SAAS,SAAS,EAA4B,CAAC;AAC5E,eAAO,MAAM,aAAa,EAAE,SAAS,SAAS,EAA2B,CAAC;AAC1E,eAAO,MAAM,gBAAgB,EAAE,SAAS,WAAW,EACvB,CAAC;AAC7B,eAAO,MAAM,eAAe,EAAE,SAAS,WAAW,EACvB,CAAC;AAC5B,eAAO,MAAM,iBAAiB,EAAE,SAAS,YAAY,EACvB,CAAC;AAC/B,eAAO,MAAM,gBAAgB,EAAE,SAAS,YAAY,EACvB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser Entry Point for Discord Plugin
|
|
3
|
+
*
|
|
4
|
+
* IMPORTANT: This file provides a browser-compatible stub for the Discord plugin.
|
|
5
|
+
* The Discord.js library requires Node.js APIs (WebSocket, Buffer, etc.) that are
|
|
6
|
+
* not available in browser environments.
|
|
7
|
+
*
|
|
8
|
+
* LIMITATIONS:
|
|
9
|
+
* - No direct Discord Gateway connection (WebSocket unavailable)
|
|
10
|
+
* - No bot token authentication
|
|
11
|
+
* - No event handling or message processing
|
|
12
|
+
* - No slash command registration
|
|
13
|
+
*
|
|
14
|
+
* RECOMMENDED ALTERNATIVES:
|
|
15
|
+
* 1. Server Proxy: Run the full Discord plugin on a Node.js server and communicate
|
|
16
|
+
* via API endpoints from your browser application.
|
|
17
|
+
* 2. OAuth Flow: For user-facing apps, implement Discord OAuth2 in the browser
|
|
18
|
+
* and handle bot operations server-side.
|
|
19
|
+
* 3. Webhooks: For simple message sending, Discord webhooks work from browsers
|
|
20
|
+
* (though they're one-way communication only).
|
|
21
|
+
*
|
|
22
|
+
* @module plugin-discord/browser
|
|
23
|
+
*/
|
|
24
|
+
import type { Plugin } from "@elizaos/core";
|
|
25
|
+
/**
|
|
26
|
+
* Browser stub for the Discord plugin.
|
|
27
|
+
*
|
|
28
|
+
* This stub provides the same interface as the full plugin but does not
|
|
29
|
+
* implement any Discord functionality. It exists to prevent build errors
|
|
30
|
+
* when the plugin is bundled for browser targets.
|
|
31
|
+
*/
|
|
32
|
+
export declare const discordPlugin: Plugin;
|
|
33
|
+
export default discordPlugin;
|
|
34
|
+
//# sourceMappingURL=index.browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../index.browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAC;AAK3D;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,MAU3B,CAAC;AAEF,eAAe,aAAa,CAAC"}
|