@elizaos/plugin-discord 2.0.0-alpha.9 → 2.0.0-beta.1
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/LICENSE +21 -0
- package/README.md +532 -0
- package/dist/account-client-pool.d.ts +35 -0
- package/dist/account-client-pool.d.ts.map +1 -0
- package/dist/accounts.d.ts.map +1 -1
- package/dist/actions/actionResultSemantics.d.ts +9 -0
- package/dist/actions/actionResultSemantics.d.ts.map +1 -0
- package/dist/actions/setup-credentials.d.ts +25 -0
- package/dist/actions/setup-credentials.d.ts.map +1 -0
- package/dist/addressing.d.ts +15 -0
- package/dist/addressing.d.ts.map +1 -0
- package/dist/allowlist.d.ts.map +1 -1
- package/dist/attachments.d.ts +1 -0
- package/dist/attachments.d.ts.map +1 -1
- package/dist/auto-enable.d.ts +4 -0
- package/dist/auto-enable.d.ts.map +1 -0
- package/dist/banner.d.ts.map +1 -1
- package/dist/compat.d.ts +4 -3
- package/dist/compat.d.ts.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/connector-account-provider.d.ts +26 -0
- package/dist/connector-account-provider.d.ts.map +1 -0
- package/dist/debouncer.d.ts +28 -0
- package/dist/debouncer.d.ts.map +1 -0
- package/dist/discord-avatar-cache.d.ts +10 -0
- package/dist/discord-avatar-cache.d.ts.map +1 -0
- package/dist/discord-commands.d.ts +16 -0
- package/dist/discord-commands.d.ts.map +1 -0
- package/dist/discord-events.d.ts +56 -0
- package/dist/discord-events.d.ts.map +1 -0
- package/dist/discord-history.d.ts +56 -0
- package/dist/discord-history.d.ts.map +1 -0
- package/dist/discord-interactions.d.ts +47 -0
- package/dist/discord-interactions.d.ts.map +1 -0
- package/dist/discord-local-service.d.ts +94 -0
- package/dist/discord-local-service.d.ts.map +1 -0
- package/dist/discord-profiles.d.ts +26 -0
- package/dist/discord-profiles.d.ts.map +1 -0
- package/dist/discord-reactions.d.ts +30 -0
- package/dist/discord-reactions.d.ts.map +1 -0
- package/dist/draft-chunking.d.ts +9 -0
- package/dist/draft-chunking.d.ts.map +1 -0
- package/dist/draft-stream.d.ts +23 -0
- package/dist/draft-stream.d.ts.map +1 -0
- package/dist/environment.d.ts +1 -0
- package/dist/environment.d.ts.map +1 -1
- package/dist/generated/specs/spec-helpers.d.ts +4 -17
- package/dist/generated/specs/spec-helpers.d.ts.map +1 -1
- package/dist/generated/specs/specs.d.ts +13 -48
- package/dist/generated/specs/specs.d.ts.map +1 -1
- package/dist/identity.d.ts +8 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/inbound-envelope.d.ts +8 -0
- package/dist/inbound-envelope.d.ts.map +1 -0
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.d.ts +22 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10171 -10073
- package/dist/index.js.map +49 -125
- package/dist/message-coalesce.d.ts +31 -0
- package/dist/message-coalesce.d.ts.map +1 -0
- package/dist/messages.d.ts +13 -2
- package/dist/messages.d.ts.map +1 -1
- package/dist/messaging.d.ts.map +1 -1
- package/dist/native-commands.d.ts.map +1 -1
- package/dist/owner-pairing-service.d.ts +73 -0
- package/dist/owner-pairing-service.d.ts.map +1 -0
- package/dist/permissionEvents.d.ts.map +1 -1
- package/dist/permissions.d.ts.map +1 -1
- package/dist/profileSync.d.ts +8 -0
- package/dist/profileSync.d.ts.map +1 -0
- package/dist/reasoning-tags.d.ts +2 -0
- package/dist/reasoning-tags.d.ts.map +1 -0
- package/dist/service.d.ts +156 -261
- package/dist/service.d.ts.map +1 -1
- package/dist/setup-routes.d.ts +23 -0
- package/dist/setup-routes.d.ts.map +1 -0
- package/dist/slash-commands.d.ts +39 -0
- package/dist/slash-commands.d.ts.map +1 -0
- package/dist/staleness.d.ts +25 -0
- package/dist/staleness.d.ts.map +1 -0
- package/dist/status-reactions.d.ts +11 -0
- package/dist/status-reactions.d.ts.map +1 -0
- package/dist/tests.d.ts.map +1 -1
- package/dist/types.d.ts +27 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/typing.d.ts +7 -0
- package/dist/typing.d.ts.map +1 -0
- package/dist/user-account-scraper/discord-browser-scraper.d.ts +118 -0
- package/dist/user-account-scraper/discord-browser-scraper.d.ts.map +1 -0
- package/dist/user-account-scraper/discord-desktop-cdp.d.ts +33 -0
- package/dist/user-account-scraper/discord-desktop-cdp.d.ts.map +1 -0
- package/dist/user-account-scraper/index.d.ts +15 -0
- package/dist/user-account-scraper/index.d.ts.map +1 -0
- package/dist/user-account-scraper/service.d.ts +92 -0
- package/dist/user-account-scraper/service.d.ts.map +1 -0
- package/dist/utils.d.ts +11 -4
- package/dist/utils.d.ts.map +1 -1
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/voice.d.ts +8 -3
- package/dist/voice.d.ts.map +1 -1
- package/package.json +23 -20
- package/dist/actions/chatWithAttachments.d.ts +0 -4
- package/dist/actions/chatWithAttachments.d.ts.map +0 -1
- package/dist/actions/createPoll.d.ts +0 -4
- package/dist/actions/createPoll.d.ts.map +0 -1
- package/dist/actions/deleteMessage.d.ts +0 -4
- package/dist/actions/deleteMessage.d.ts.map +0 -1
- package/dist/actions/downloadMedia.d.ts +0 -4
- package/dist/actions/downloadMedia.d.ts.map +0 -1
- package/dist/actions/editMessage.d.ts +0 -4
- package/dist/actions/editMessage.d.ts.map +0 -1
- package/dist/actions/getUserInfo.d.ts +0 -4
- package/dist/actions/getUserInfo.d.ts.map +0 -1
- package/dist/actions/joinChannel.d.ts +0 -4
- package/dist/actions/joinChannel.d.ts.map +0 -1
- package/dist/actions/leaveChannel.d.ts +0 -4
- package/dist/actions/leaveChannel.d.ts.map +0 -1
- package/dist/actions/listChannels.d.ts +0 -4
- package/dist/actions/listChannels.d.ts.map +0 -1
- package/dist/actions/pinMessage.d.ts +0 -4
- package/dist/actions/pinMessage.d.ts.map +0 -1
- package/dist/actions/reactToMessage.d.ts +0 -4
- package/dist/actions/reactToMessage.d.ts.map +0 -1
- package/dist/actions/readChannel.d.ts +0 -4
- package/dist/actions/readChannel.d.ts.map +0 -1
- package/dist/actions/searchMessages.d.ts +0 -4
- package/dist/actions/searchMessages.d.ts.map +0 -1
- package/dist/actions/sendDM.d.ts +0 -4
- package/dist/actions/sendDM.d.ts.map +0 -1
- package/dist/actions/sendMessage.d.ts +0 -4
- package/dist/actions/sendMessage.d.ts.map +0 -1
- package/dist/actions/serverInfo.d.ts +0 -4
- package/dist/actions/serverInfo.d.ts.map +0 -1
- package/dist/actions/summarizeConversation.d.ts +0 -4
- package/dist/actions/summarizeConversation.d.ts.map +0 -1
- package/dist/actions/transcribeMedia.d.ts +0 -4
- package/dist/actions/transcribeMedia.d.ts.map +0 -1
- package/dist/actions/unpinMessage.d.ts +0 -4
- package/dist/actions/unpinMessage.d.ts.map +0 -1
- package/dist/generated/prompts/typescript/prompts.d.ts +0 -44
- package/dist/generated/prompts/typescript/prompts.d.ts.map +0 -1
- package/dist/providers/channelState.d.ts +0 -14
- package/dist/providers/channelState.d.ts.map +0 -1
- package/dist/providers/guildInfo.d.ts +0 -15
- package/dist/providers/guildInfo.d.ts.map +0 -1
- package/dist/providers/voiceState.d.ts +0 -12
- package/dist/providers/voiceState.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/plugin-discord",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,38 +29,40 @@
|
|
|
29
29
|
"build": "bun run build.ts",
|
|
30
30
|
"build:ts": "bun run build.ts",
|
|
31
31
|
"dev": "bun --hot build.ts",
|
|
32
|
-
"clean": "rm -rf dist .turbo node_modules",
|
|
32
|
+
"clean": "rm -rf dist .turbo && find . \\( -path ./dist -o -path ./node_modules \\) -prune -o -type f -name '*.ts' -print | while IFS= read -r ts; do b=\"${ts%.ts}\"; rm -f \"$b.d.ts\" \"$b.d.ts.map\"; done",
|
|
33
33
|
"test": "vitest run",
|
|
34
34
|
"typecheck": "tsc --noEmit",
|
|
35
|
-
"lint": "
|
|
36
|
-
"lint:check": "
|
|
37
|
-
"format": "
|
|
38
|
-
"format:check": "
|
|
35
|
+
"lint": "../../node_modules/.bin/biome check --write --unsafe .",
|
|
36
|
+
"lint:check": "../../node_modules/.bin/biome check .",
|
|
37
|
+
"format": "../../node_modules/.bin/biome format --write .",
|
|
38
|
+
"format:check": "../../node_modules/.bin/biome format .",
|
|
39
|
+
"test:e2e": "node ../../packages/app-core/scripts/run-local-plugin-live-smoke.mjs",
|
|
40
|
+
"test:live": "bun run test:e2e"
|
|
39
41
|
},
|
|
40
42
|
"dependencies": {
|
|
41
43
|
"@discordjs/opus": "^0.10.0",
|
|
42
|
-
"@discordjs/rest": "2.
|
|
43
|
-
"@discordjs/voice": "0.
|
|
44
|
-
"@elizaos/core": "2.0.0-
|
|
45
|
-
"
|
|
46
|
-
"discord
|
|
44
|
+
"@discordjs/rest": "^2.6.1",
|
|
45
|
+
"@discordjs/voice": "^0.19.2",
|
|
46
|
+
"@elizaos/core": "2.0.0-beta.1",
|
|
47
|
+
"@elizaos/plugin-browser": "2.0.0-beta.1",
|
|
48
|
+
"discord-api-types": "^0.38.0",
|
|
49
|
+
"discord.js": "^14.26.4",
|
|
47
50
|
"fast-levenshtein": "^3.0.0",
|
|
48
51
|
"fluent-ffmpeg": "^2.1.3",
|
|
49
52
|
"get-func-name": "^3.0.0",
|
|
50
|
-
"libsodium-wrappers": "^0.
|
|
53
|
+
"libsodium-wrappers": "^0.8.0",
|
|
51
54
|
"opusscript": "^0.1.1",
|
|
52
55
|
"prism-media": "1.3.5",
|
|
53
|
-
"
|
|
54
|
-
"zod": "^4.3.6"
|
|
56
|
+
"zod": "^4.4.3"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
57
|
-
"@biomejs/biome": "^2.
|
|
59
|
+
"@biomejs/biome": "^2.4.14",
|
|
58
60
|
"@types/node": "^25.0.3",
|
|
59
|
-
"typescript": "^
|
|
61
|
+
"typescript": "^6.0.3",
|
|
62
|
+
"vitest": "^4.1.4"
|
|
60
63
|
},
|
|
61
64
|
"peerDependencies": {
|
|
62
|
-
"@elizaos/core": "2.0.0-
|
|
63
|
-
"whatwg-url": "7.1.0"
|
|
65
|
+
"@elizaos/core": "2.0.0-beta.1"
|
|
64
66
|
},
|
|
65
67
|
"publishConfig": {
|
|
66
68
|
"access": "public"
|
|
@@ -124,7 +126,7 @@
|
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
128
|
},
|
|
127
|
-
"
|
|
129
|
+
"eliza": {
|
|
128
130
|
"platforms": [
|
|
129
131
|
"node"
|
|
130
132
|
],
|
|
@@ -132,5 +134,6 @@
|
|
|
132
134
|
"platformDetails": {
|
|
133
135
|
"node": "Default export (Node.js)"
|
|
134
136
|
}
|
|
135
|
-
}
|
|
137
|
+
},
|
|
138
|
+
"gitHead": "05d4ca11d769db8c7f54a722ee24b2ce2b951543"
|
|
136
139
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatWithAttachments.d.ts","sourceRoot":"","sources":["../../actions/chatWithAttachments.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EAiBZ,MAAM,eAAe,CAAC;AAuDvB,eAAO,MAAM,mBAAmB,EAAE,MAsPjC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createPoll.d.ts","sourceRoot":"","sources":["../../actions/createPoll.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AAkDvB,eAAO,MAAM,UAAU,EAAE,MAkJxB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteMessage.d.ts","sourceRoot":"","sources":["../../actions/deleteMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAWZ,MAAM,eAAe,CAAC;AA6BvB,QAAA,MAAM,aAAa,EAAE,MAwKpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"downloadMedia.d.ts","sourceRoot":"","sources":["../../actions/downloadMedia.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAiBZ,MAAM,eAAe,CAAC;AAuCvB,eAAO,MAAM,aAAa,EAAE,MAoI3B,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editMessage.d.ts","sourceRoot":"","sources":["../../actions/editMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAWZ,MAAM,eAAe,CAAC;AAgCvB,QAAA,MAAM,WAAW,EAAE,MAyKlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getUserInfo.d.ts","sourceRoot":"","sources":["../../actions/getUserInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AA4EvB,eAAO,MAAM,WAAW,EAAE,MAgJzB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"joinChannel.d.ts","sourceRoot":"","sources":["../../actions/joinChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAcZ,MAAM,eAAe,CAAC;AA0IvB,eAAO,MAAM,WAAW,EAAE,MA6MzB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leaveChannel.d.ts","sourceRoot":"","sources":["../../actions/leaveChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAaZ,MAAM,eAAe,CAAC;AA+JvB,eAAO,MAAM,YAAY,EAAE,MAgR1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listChannels.d.ts","sourceRoot":"","sources":["../../actions/listChannels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EASP,MAAM,eAAe,CAAC;AAOvB,eAAO,MAAM,YAAY,EAAE,MAsI1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pinMessage.d.ts","sourceRoot":"","sources":["../../actions/pinMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AAoCvB,eAAO,MAAM,UAAU,EAAE,MAqKxB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reactToMessage.d.ts","sourceRoot":"","sources":["../../actions/reactToMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AA+GvB,eAAO,MAAM,cAAc,EAAE,MAgP5B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readChannel.d.ts","sourceRoot":"","sources":["../../actions/readChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AAsEvB,eAAO,MAAM,WAAW,EAAE,MA2QzB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchMessages.d.ts","sourceRoot":"","sources":["../../actions/searchMessages.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AAsHvB,eAAO,MAAM,cAAc,EAAE,MA8J5B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/actions/sendDM.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sendDM.d.ts","sourceRoot":"","sources":["../../actions/sendDM.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AAsHvB,eAAO,MAAM,MAAM,EAAE,MAiIpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sendMessage.d.ts","sourceRoot":"","sources":["../../actions/sendMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AA2BvB,eAAO,MAAM,WAAW,EAAE,MAmJzB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serverInfo.d.ts","sourceRoot":"","sources":["../../actions/serverInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EASP,MAAM,eAAe,CAAC;AA6EvB,eAAO,MAAM,UAAU,EAAE,MA2FxB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"summarizeConversation.d.ts","sourceRoot":"","sources":["../../actions/summarizeConversation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EAmBZ,MAAM,eAAe,CAAC;AAqLvB,eAAO,MAAM,SAAS,EAAE,MAwPvB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transcribeMedia.d.ts","sourceRoot":"","sources":["../../actions/transcribeMedia.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAeZ,MAAM,eAAe,CAAC;AAmDvB,eAAO,MAAM,eAAe,EAAE,MAsK7B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unpinMessage.d.ts","sourceRoot":"","sources":["../../actions/unpinMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AAoCvB,eAAO,MAAM,YAAY,EAAE,MAuL1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auto-generated prompt templates
|
|
3
|
-
* DO NOT EDIT - Generated from ../../../../prompts/*.txt
|
|
4
|
-
*
|
|
5
|
-
* These prompts use Handlebars-style template syntax:
|
|
6
|
-
* - {{variableName}} for simple substitution
|
|
7
|
-
* - {{#each items}}...{{/each}} for iteration
|
|
8
|
-
* - {{#if condition}}...{{/if}} for conditionals
|
|
9
|
-
*/
|
|
10
|
-
export declare const attachmentIdsTemplate = "# Messages we are summarizing\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting a summary of specific attachments. Your goal is to determine their objective, along with the list of attachment IDs to summarize.\nThe \"objective\" is a detailed description of what the user wants to summarize based on the conversation.\nThe \"attachmentIds\" is an array of attachment IDs that the user wants to summarize. If not specified, default to including all attachments from the conversation.\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"objective\": \"<What the user wants to summarize>\",\n \"attachmentIds\": [\"<Attachment ID 1>\", \"<Attachment ID 2>\", ...]\n}\n```";
|
|
11
|
-
export declare const ATTACHMENT_IDS_TEMPLATE = "# Messages we are summarizing\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting a summary of specific attachments. Your goal is to determine their objective, along with the list of attachment IDs to summarize.\nThe \"objective\" is a detailed description of what the user wants to summarize based on the conversation.\nThe \"attachmentIds\" is an array of attachment IDs that the user wants to summarize. If not specified, default to including all attachments from the conversation.\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"objective\": \"<What the user wants to summarize>\",\n \"attachmentIds\": [\"<Attachment ID 1>\", \"<Attachment ID 2>\", ...]\n}\n```";
|
|
12
|
-
export declare const attachmentSummarizationTemplate = "# Summarized so far (we are adding to this)\n{{currentSummary}}\n\n# Current attachments we are summarizing\n{{attachmentsWithText}}\n\nSummarization objective: {{objective}}\n\n# Instructions: Summarize the attachments. Return the summary. Do not acknowledge this request, just summarize and continue the existing summary if there is one. Capture any important details based on the objective. Only respond with the new summary text.";
|
|
13
|
-
export declare const ATTACHMENT_SUMMARIZATION_TEMPLATE = "# Summarized so far (we are adding to this)\n{{currentSummary}}\n\n# Current attachments we are summarizing\n{{attachmentsWithText}}\n\nSummarization objective: {{objective}}\n\n# Instructions: Summarize the attachments. Return the summary. Do not acknowledge this request, just summarize and continue the existing summary if there is one. Capture any important details based on the objective. Only respond with the new summary text.";
|
|
14
|
-
export declare const channelInfoTemplate = "# Messages we are searching for channel information\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting to read messages from a specific Discord channel. Your goal is to determine:\n1. The channel they want to read from (could be the current channel or a mentioned channel)\n2. How many messages they want to read (default to 10 if not specified)\n3. Whether they want a summary or just the messages\n4. If they're looking for messages from a specific person\n\nIf they say \"this channel\" or \"here\", use the current channel.\nIf they mention a specific channel name or ID, extract that.\nIf they ask to \"summarize\" or mention what someone is \"talking about\", set summarize to true.\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"channelIdentifier\": \"<current|channel-name|channel-id>\",\n \"messageCount\": <number between 1 and 50>,\n \"summarize\": true/false,\n \"focusUser\": \"<username or null>\"\n}\n```";
|
|
15
|
-
export declare const CHANNEL_INFO_TEMPLATE = "# Messages we are searching for channel information\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting to read messages from a specific Discord channel. Your goal is to determine:\n1. The channel they want to read from (could be the current channel or a mentioned channel)\n2. How many messages they want to read (default to 10 if not specified)\n3. Whether they want a summary or just the messages\n4. If they're looking for messages from a specific person\n\nIf they say \"this channel\" or \"here\", use the current channel.\nIf they mention a specific channel name or ID, extract that.\nIf they ask to \"summarize\" or mention what someone is \"talking about\", set summarize to true.\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"channelIdentifier\": \"<current|channel-name|channel-id>\",\n \"messageCount\": <number between 1 and 50>,\n \"summarize\": true/false,\n \"focusUser\": \"<username or null>\"\n}\n```";
|
|
16
|
-
export declare const createPollTemplate = "# Creating a Discord poll\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting to create a poll. Extract:\n1. The poll question\n2. The poll options (2-10 options)\n3. Whether to use emoji reactions (default: true)\n\nExamples:\n- \"create a poll: What game should we play? Options: Minecraft, Fortnite, Among Us\" \n -> question: \"What game should we play?\", options: [\"Minecraft\", \"Fortnite\", \"Among Us\"]\n- \"poll: Should we have a meeting tomorrow? Yes/No\"\n -> question: \"Should we have a meeting tomorrow?\", options: [\"Yes\", \"No\"]\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"question\": \"<poll question>\",\n \"options\": [\"<option1>\", \"<option2>\", ...],\n \"useEmojis\": true/false\n}\n```";
|
|
17
|
-
export declare const CREATE_POLL_TEMPLATE = "# Creating a Discord poll\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting to create a poll. Extract:\n1. The poll question\n2. The poll options (2-10 options)\n3. Whether to use emoji reactions (default: true)\n\nExamples:\n- \"create a poll: What game should we play? Options: Minecraft, Fortnite, Among Us\" \n -> question: \"What game should we play?\", options: [\"Minecraft\", \"Fortnite\", \"Among Us\"]\n- \"poll: Should we have a meeting tomorrow? Yes/No\"\n -> question: \"Should we have a meeting tomorrow?\", options: [\"Yes\", \"No\"]\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"question\": \"<poll question>\",\n \"options\": [\"<option1>\", \"<option2>\", ...],\n \"useEmojis\": true/false\n}\n```";
|
|
18
|
-
export declare const dateRangeTemplate = "# Messages we are summarizing (the conversation is continued after this)\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting a summary of the conversation. Your goal is to determine their objective, along with the range of dates that their request covers.\nThe \"objective\" is a detailed description of what the user wants to summarize based on the conversation. If they just ask for a general summary, you can either base it off the conversation if the summary range is very recent, or set the object to be general, like \"a detailed summary of the conversation between all users\".\nThe \"start\" and \"end\" are the range of dates that the user wants to summarize, relative to the current time. The start and end should be relative to the current time, and measured in seconds, minutes, hours and days. The format is \"2 days ago\" or \"3 hours ago\" or \"4 minutes ago\" or \"5 seconds ago\", i.e. \"<integer> <unit> ago\".\nIf you aren't sure, you can use a default range of \"0 minutes ago\" to \"2 hours ago\" or more. Better to err on the side of including too much than too little.\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"objective\": \"<What the user wants to summarize>\",\n \"start\": \"0 minutes ago\",\n \"end\": \"2 hours ago\"\n}\n```";
|
|
19
|
-
export declare const DATE_RANGE_TEMPLATE = "# Messages we are summarizing (the conversation is continued after this)\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting a summary of the conversation. Your goal is to determine their objective, along with the range of dates that their request covers.\nThe \"objective\" is a detailed description of what the user wants to summarize based on the conversation. If they just ask for a general summary, you can either base it off the conversation if the summary range is very recent, or set the object to be general, like \"a detailed summary of the conversation between all users\".\nThe \"start\" and \"end\" are the range of dates that the user wants to summarize, relative to the current time. The start and end should be relative to the current time, and measured in seconds, minutes, hours and days. The format is \"2 days ago\" or \"3 hours ago\" or \"4 minutes ago\" or \"5 seconds ago\", i.e. \"<integer> <unit> ago\".\nIf you aren't sure, you can use a default range of \"0 minutes ago\" to \"2 hours ago\" or more. Better to err on the side of including too much than too little.\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"objective\": \"<What the user wants to summarize>\",\n \"start\": \"0 minutes ago\",\n \"end\": \"2 hours ago\"\n}\n```";
|
|
20
|
-
export declare const getUserInfoTemplate = "# Getting Discord user information\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting information about a Discord user. Extract:\n1. The user identifier (username, user ID, or mention)\n2. Whether they want detailed server-specific info\n\nExamples:\n- \"who is @john?\" -> userIdentifier: \"john\", detailed: false\n- \"tell me about user 123456789\" -> userIdentifier: \"123456789\", detailed: false \n- \"get detailed info on @admin\" -> userIdentifier: \"admin\", detailed: true\n- \"who am I?\" -> userIdentifier: \"self\", detailed: false\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"userIdentifier\": \"<username|user-id|mention|self>\",\n \"detailed\": true/false\n}\n```";
|
|
21
|
-
export declare const GET_USER_INFO_TEMPLATE = "# Getting Discord user information\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting information about a Discord user. Extract:\n1. The user identifier (username, user ID, or mention)\n2. Whether they want detailed server-specific info\n\nExamples:\n- \"who is @john?\" -> userIdentifier: \"john\", detailed: false\n- \"tell me about user 123456789\" -> userIdentifier: \"123456789\", detailed: false \n- \"get detailed info on @admin\" -> userIdentifier: \"admin\", detailed: true\n- \"who am I?\" -> userIdentifier: \"self\", detailed: false\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"userIdentifier\": \"<username|user-id|mention|self>\",\n \"detailed\": true/false\n}\n```";
|
|
22
|
-
export declare const joinChannelTemplate = "# Messages we are searching for channel join information\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting the bot to join a specific Discord channel (text or voice). Your goal is to determine which channel they want to join.\n\nExtract the channel identifier from their request:\n- If they mention a channel like #general or <#channelid>, extract that\n- If they provide a channel name, extract that\n- If they provide a channel ID (long number), extract that\n- If they mention \"voice\", \"vc\", \"voice channel\", include that as a hint\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"channelIdentifier\": \"<channel-name|channel-id|#mention>\",\n \"isVoiceChannel\": true/false\n}\n```";
|
|
23
|
-
export declare const JOIN_CHANNEL_TEMPLATE = "# Messages we are searching for channel join information\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting the bot to join a specific Discord channel (text or voice). Your goal is to determine which channel they want to join.\n\nExtract the channel identifier from their request:\n- If they mention a channel like #general or <#channelid>, extract that\n- If they provide a channel name, extract that\n- If they provide a channel ID (long number), extract that\n- If they mention \"voice\", \"vc\", \"voice channel\", include that as a hint\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"channelIdentifier\": \"<channel-name|channel-id|#mention>\",\n \"isVoiceChannel\": true/false\n}\n```";
|
|
24
|
-
export declare const leaveChannelTemplate = "# Messages we are searching for channel leave information\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting the bot to leave a specific Discord channel (text or voice). Your goal is to determine which channel they want to leave.\n\nExtract the channel identifier from their request:\n- If they mention a channel like #general or <#channelid>, extract that\n- If they provide a channel name (like \"dev-voice\" or \"general\"), extract just the name\n- If they provide a channel ID (long number), extract that\n- If they say \"this channel\" or \"here\", use \"current\"\n- If they don't specify a channel but mention \"voice\", \"vc\", use \"current\" and mark as voice\n\nExamples:\n- \"leave the dev-voice channel\" -> channelIdentifier: \"dev-voice\", isVoiceChannel: true\n- \"leave #general\" -> channelIdentifier: \"general\", isVoiceChannel: false\n- \"leave voice\" -> channelIdentifier: \"current\", isVoiceChannel: true\n- \"stop listening to this channel\" -> channelIdentifier: \"current\", isVoiceChannel: false\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"channelIdentifier\": \"<actual-channel-name-or-id-or-current>\",\n \"isVoiceChannel\": true/false\n}\n```";
|
|
25
|
-
export declare const LEAVE_CHANNEL_TEMPLATE = "# Messages we are searching for channel leave information\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting the bot to leave a specific Discord channel (text or voice). Your goal is to determine which channel they want to leave.\n\nExtract the channel identifier from their request:\n- If they mention a channel like #general or <#channelid>, extract that\n- If they provide a channel name (like \"dev-voice\" or \"general\"), extract just the name\n- If they provide a channel ID (long number), extract that\n- If they say \"this channel\" or \"here\", use \"current\"\n- If they don't specify a channel but mention \"voice\", \"vc\", use \"current\" and mark as voice\n\nExamples:\n- \"leave the dev-voice channel\" -> channelIdentifier: \"dev-voice\", isVoiceChannel: true\n- \"leave #general\" -> channelIdentifier: \"general\", isVoiceChannel: false\n- \"leave voice\" -> channelIdentifier: \"current\", isVoiceChannel: true\n- \"stop listening to this channel\" -> channelIdentifier: \"current\", isVoiceChannel: false\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"channelIdentifier\": \"<actual-channel-name-or-id-or-current>\",\n \"isVoiceChannel\": true/false\n}\n```";
|
|
26
|
-
export declare const mediaAttachmentIdTemplate = "# Messages we are transcribing\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting a transcription of a specific media file (audio or video). Your goal is to determine the ID of the attachment they want transcribed.\nThe \"attachmentId\" is the ID of the media file attachment that the user wants transcribed. If not specified, return null.\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"attachmentId\": \"<Attachment ID>\"\n}\n```";
|
|
27
|
-
export declare const MEDIA_ATTACHMENT_ID_TEMPLATE = "# Messages we are transcribing\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting a transcription of a specific media file (audio or video). Your goal is to determine the ID of the attachment they want transcribed.\nThe \"attachmentId\" is the ID of the media file attachment that the user wants transcribed. If not specified, return null.\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"attachmentId\": \"<Attachment ID>\"\n}\n```";
|
|
28
|
-
export declare const mediaUrlTemplate = "# Messages we are searching for a media URL\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting to download a specific media file (video or audio). Your goal is to determine the URL of the media they want to download.\nThe \"mediaUrl\" is the URL of the media file that the user wants downloaded. If not specified, return null.\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"mediaUrl\": \"<Media URL>\"\n}\n```";
|
|
29
|
-
export declare const MEDIA_URL_TEMPLATE = "# Messages we are searching for a media URL\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting to download a specific media file (video or audio). Your goal is to determine the URL of the media they want to download.\nThe \"mediaUrl\" is the URL of the media file that the user wants downloaded. If not specified, return null.\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"mediaUrl\": \"<Media URL>\"\n}\n```";
|
|
30
|
-
export declare const pinMessageTemplate = "# Pinning a Discord message\n{{recentMessages}}\n\n# Instructions: {{senderName}} wants to pin a message. Extract which message they want to pin.\n\nExamples:\n- \"pin that message\" -> messageRef: \"last\"\n- \"pin the last message\" -> messageRef: \"last\"\n- \"pin john's message about the meeting\" -> messageRef: \"john meeting\"\n- \"pin message 123456789\" -> messageRef: \"123456789\"\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"messageRef\": \"<last|previous|message-id|search-text>\"\n}\n```";
|
|
31
|
-
export declare const PIN_MESSAGE_TEMPLATE = "# Pinning a Discord message\n{{recentMessages}}\n\n# Instructions: {{senderName}} wants to pin a message. Extract which message they want to pin.\n\nExamples:\n- \"pin that message\" -> messageRef: \"last\"\n- \"pin the last message\" -> messageRef: \"last\"\n- \"pin john's message about the meeting\" -> messageRef: \"john meeting\"\n- \"pin message 123456789\" -> messageRef: \"123456789\"\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"messageRef\": \"<last|previous|message-id|search-text>\"\n}\n```";
|
|
32
|
-
export declare const reactToMessageTemplate = "# Adding reactions to Discord messages\n{{recentMessages}}\n\n# Instructions: {{senderName}} wants to add a reaction to a message. Extract:\n1. Which message to react to (last, specific message reference, or by content)\n2. What emoji/reaction to add\n\nExamples:\n- \"react with \uD83D\uDC4D to the last message\" -> messageRef: \"last\", emoji: \"\uD83D\uDC4D\"\n- \"add :fire: reaction\" -> messageRef: \"last\", emoji: \"\uD83D\uDD25\" or \":fire:\"\n- \"react to that message with \u2764\uFE0F\" -> messageRef: \"previous\", emoji: \"\u2764\uFE0F\"\n- \"add a thumbs up to john's message about the meeting\" -> messageRef: \"john meeting\", emoji: \"\uD83D\uDC4D\"\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"messageRef\": \"<last|previous|message-id|search-text>\",\n \"emoji\": \"<emoji-character|:emoji-name:>\"\n}\n```";
|
|
33
|
-
export declare const REACT_TO_MESSAGE_TEMPLATE = "# Adding reactions to Discord messages\n{{recentMessages}}\n\n# Instructions: {{senderName}} wants to add a reaction to a message. Extract:\n1. Which message to react to (last, specific message reference, or by content)\n2. What emoji/reaction to add\n\nExamples:\n- \"react with \uD83D\uDC4D to the last message\" -> messageRef: \"last\", emoji: \"\uD83D\uDC4D\"\n- \"add :fire: reaction\" -> messageRef: \"last\", emoji: \"\uD83D\uDD25\" or \":fire:\"\n- \"react to that message with \u2764\uFE0F\" -> messageRef: \"previous\", emoji: \"\u2764\uFE0F\"\n- \"add a thumbs up to john's message about the meeting\" -> messageRef: \"john meeting\", emoji: \"\uD83D\uDC4D\"\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"messageRef\": \"<last|previous|message-id|search-text>\",\n \"emoji\": \"<emoji-character|:emoji-name:>\"\n}\n```";
|
|
34
|
-
export declare const searchMessagesTemplate = "# Searching for Discord messages\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting to search for messages in Discord. Extract:\n1. The search query/keywords\n2. The channel to search in (current if not specified)\n3. Optional filters like author, time range, or message count\n\nExamples:\n- \"search for messages containing 'meeting'\" -> query: \"meeting\", channelIdentifier: \"current\", NO author field\n- \"find messages from @user about bugs\" -> query: \"bugs\", channelIdentifier: \"current\", author: \"user\"\n- \"search #general for links from last week\" -> query: \"links\", channelIdentifier: \"general\", timeRange: \"week\"\n- \"search for messages about 'spartan' in this channel\" -> query: \"spartan\", channelIdentifier: \"current\"\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"query\": \"<search keywords>\",\n \"channelIdentifier\": \"<channel-name|channel-id|current>\",\n \"author\": \"<username>\",\n \"timeRange\": \"<hour|day|week|month>\",\n \"limit\": <number between 1-100, default 20>\n}\n```";
|
|
35
|
-
export declare const SEARCH_MESSAGES_TEMPLATE = "# Searching for Discord messages\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting to search for messages in Discord. Extract:\n1. The search query/keywords\n2. The channel to search in (current if not specified)\n3. Optional filters like author, time range, or message count\n\nExamples:\n- \"search for messages containing 'meeting'\" -> query: \"meeting\", channelIdentifier: \"current\", NO author field\n- \"find messages from @user about bugs\" -> query: \"bugs\", channelIdentifier: \"current\", author: \"user\"\n- \"search #general for links from last week\" -> query: \"links\", channelIdentifier: \"general\", timeRange: \"week\"\n- \"search for messages about 'spartan' in this channel\" -> query: \"spartan\", channelIdentifier: \"current\"\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"query\": \"<search keywords>\",\n \"channelIdentifier\": \"<channel-name|channel-id|current>\",\n \"author\": \"<username>\",\n \"timeRange\": \"<hour|day|week|month>\",\n \"limit\": <number between 1-100, default 20>\n}\n```";
|
|
36
|
-
export declare const sendDmTemplate = "# Messages we are searching for DM information\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting to send a direct message to a specific Discord user. Your goal is to determine:\n1. The recipient they want to message (could be a username, user ID, or mentioned user)\n2. The message content they want to send\n\nExtract the recipient identifier and the message content from their request.\n- If they mention a user like @username or <@userid>, extract that\n- If they provide a username or display name, extract that\n- If they provide a user ID (long number), extract that\n- Extract the complete message they want to send\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"recipientIdentifier\": \"<username|user-id|@mention>\",\n \"messageContent\": \"<the message to send>\"\n}\n```";
|
|
37
|
-
export declare const SEND_DM_TEMPLATE = "# Messages we are searching for DM information\n{{recentMessages}}\n\n# Instructions: {{senderName}} is requesting to send a direct message to a specific Discord user. Your goal is to determine:\n1. The recipient they want to message (could be a username, user ID, or mentioned user)\n2. The message content they want to send\n\nExtract the recipient identifier and the message content from their request.\n- If they mention a user like @username or <@userid>, extract that\n- If they provide a username or display name, extract that\n- If they provide a user ID (long number), extract that\n- Extract the complete message they want to send\n\nYour response must be formatted as a JSON block with this structure:\n```json\n{\n \"recipientIdentifier\": \"<username|user-id|@mention>\",\n \"messageContent\": \"<the message to send>\"\n}\n```";
|
|
38
|
-
export declare const summarizationTemplate = "# Summarized so far (we are adding to this)\n{{currentSummary}}\n\n# Current conversation chunk we are summarizing (includes attachments)\n{{memoriesWithAttachments}}\n\nSummarization objective: {{objective}}\n\n# Instructions: Summarize the conversation so far. Return the summary. Do not acknowledge this request, just summarize and continue the existing summary if there is one. Capture any important details to the objective. Only respond with the new summary text.\nYour response should be extremely detailed and include any and all relevant information.";
|
|
39
|
-
export declare const SUMMARIZATION_TEMPLATE = "# Summarized so far (we are adding to this)\n{{currentSummary}}\n\n# Current conversation chunk we are summarizing (includes attachments)\n{{memoriesWithAttachments}}\n\nSummarization objective: {{objective}}\n\n# Instructions: Summarize the conversation so far. Return the summary. Do not acknowledge this request, just summarize and continue the existing summary if there is one. Capture any important details to the objective. Only respond with the new summary text.\nYour response should be extremely detailed and include any and all relevant information.";
|
|
40
|
-
export declare const transcriptionTemplate = "# Transcription of media file\n{{mediaTranscript}}\n\n# Instructions: Return only the full transcript of the media file without any additional prompt or commentary.";
|
|
41
|
-
export declare const TRANSCRIPTION_TEMPLATE = "# Transcription of media file\n{{mediaTranscript}}\n\n# Instructions: Return only the full transcript of the media file without any additional prompt or commentary.";
|
|
42
|
-
export declare const unpinMessageTemplate = "# Unpinning a Discord message\n{{recentMessages}}\n\n# Instructions: {{senderName}} wants to unpin a message. Extract which message they want to unpin.\n\nExamples:\n- \"unpin that message\" -> messageRef: \"last_pinned\"\n- \"unpin the last pinned message\" -> messageRef: \"last_pinned\"\n- \"unpin john's message\" -> messageRef: \"john\"\n- \"unpin message about the meeting\" -> messageRef: \"meeting\"\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"messageRef\": \"<last_pinned|message-id|search-text>\"\n}\n```";
|
|
43
|
-
export declare const UNPIN_MESSAGE_TEMPLATE = "# Unpinning a Discord message\n{{recentMessages}}\n\n# Instructions: {{senderName}} wants to unpin a message. Extract which message they want to unpin.\n\nExamples:\n- \"unpin that message\" -> messageRef: \"last_pinned\"\n- \"unpin the last pinned message\" -> messageRef: \"last_pinned\"\n- \"unpin john's message\" -> messageRef: \"john\"\n- \"unpin message about the meeting\" -> messageRef: \"meeting\"\n\nYour response must be formatted as a JSON block:\n```json\n{\n \"messageRef\": \"<last_pinned|message-id|search-text>\"\n}\n```";
|
|
44
|
-
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../../generated/prompts/typescript/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,qBAAqB,ytBAa3B,CAAC;AAER,eAAO,MAAM,uBAAuB,ytBAAwB,CAAC;AAE7D,eAAO,MAAM,+BAA+B,sbAQoN,CAAC;AAEjQ,eAAO,MAAM,iCAAiC,sbAAkC,CAAC;AAEjF,eAAO,MAAM,mBAAmB,09BAqBzB,CAAC;AAER,eAAO,MAAM,qBAAqB,09BAAsB,CAAC;AAEzD,eAAO,MAAM,kBAAkB,6vBAqBxB,CAAC;AAER,eAAO,MAAM,oBAAoB,6vBAAqB,CAAC;AAEvD,eAAO,MAAM,iBAAiB,2yCAevB,CAAC;AAER,eAAO,MAAM,mBAAmB,2yCAAoB,CAAC;AAErD,eAAO,MAAM,mBAAmB,utBAmBzB,CAAC;AAER,eAAO,MAAM,sBAAsB,utBAAsB,CAAC;AAE1D,eAAO,MAAM,mBAAmB,mvBAiBzB,CAAC;AAER,eAAO,MAAM,qBAAqB,mvBAAsB,CAAC;AAEzD,eAAO,MAAM,oBAAoB,2tCAwB1B,CAAC;AAER,eAAO,MAAM,sBAAsB,2tCAAuB,CAAC;AAE3D,eAAO,MAAM,yBAAyB,8eAW/B,CAAC;AAER,eAAO,MAAM,4BAA4B,8eAA4B,CAAC;AAEtE,eAAO,MAAM,gBAAgB,ydAWtB,CAAC;AAER,eAAO,MAAM,kBAAkB,ydAAmB,CAAC;AAEnD,eAAO,MAAM,kBAAkB,mhBAgBxB,CAAC;AAER,eAAO,MAAM,oBAAoB,mhBAAqB,CAAC;AAEvD,eAAO,MAAM,sBAAsB,01BAmB5B,CAAC;AAER,eAAO,MAAM,yBAAyB,01BAAyB,CAAC;AAEhE,eAAO,MAAM,sBAAsB,mjCAuB5B,CAAC;AAER,eAAO,MAAM,wBAAwB,mjCAAyB,CAAC;AAE/D,eAAO,MAAM,cAAc,+0BAmBpB,CAAC;AAER,eAAO,MAAM,gBAAgB,+0BAAiB,CAAC;AAE/C,eAAO,MAAM,qBAAqB,ojBASuD,CAAC;AAE1F,eAAO,MAAM,sBAAsB,ojBAAwB,CAAC;AAE5D,eAAO,MAAM,qBAAqB,yKAG6E,CAAC;AAEhH,eAAO,MAAM,sBAAsB,yKAAwB,CAAC;AAE5D,eAAO,MAAM,oBAAoB,giBAgB1B,CAAC;AAER,eAAO,MAAM,sBAAsB,giBAAuB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Provider } from "@elizaos/core";
|
|
2
|
-
/**
|
|
3
|
-
* Represents a provider for retrieving channel state information.
|
|
4
|
-
* @type {Provider}
|
|
5
|
-
* @property {string} name - The name of the channel state provider.
|
|
6
|
-
* @property {Function} get - Asynchronous function that retrieves channel state information based on the provided runtime, message, and optional state parameters.
|
|
7
|
-
* @param {IAgentRuntime} runtime - The agent runtime.
|
|
8
|
-
* @param {Memory} message - The message object.
|
|
9
|
-
* @param {State} [state] - Optional state object.
|
|
10
|
-
* @returns {Promise<Object>} A promise that resolves to an object containing channel state data, values, and text.
|
|
11
|
-
*/
|
|
12
|
-
export declare const channelStateProvider: Provider;
|
|
13
|
-
export default channelStateProvider;
|
|
14
|
-
//# sourceMappingURL=channelState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"channelState.d.ts","sourceRoot":"","sources":["../../providers/channelState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyB,QAAQ,EAAS,MAAM,eAAe,CAAC;AAS5E;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,EAAE,QA8IlC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Provider } from "@elizaos/core";
|
|
2
|
-
/**
|
|
3
|
-
* Represents a provider for retrieving guild/server information.
|
|
4
|
-
* @type {Provider}
|
|
5
|
-
* @property {string} name - The name of the guild info provider.
|
|
6
|
-
* @property {Function} get - Asynchronous function that retrieves guild information
|
|
7
|
-
* based on the provided runtime, message, and optional state parameters.
|
|
8
|
-
* @param {IAgentRuntime} runtime - The agent runtime.
|
|
9
|
-
* @param {Memory} message - The message object.
|
|
10
|
-
* @param {State} [state] - Optional state object.
|
|
11
|
-
* @returns {Promise<Object>} A promise that resolves to an object containing guild data, values, and text.
|
|
12
|
-
*/
|
|
13
|
-
export declare const guildInfoProvider: Provider;
|
|
14
|
-
export default guildInfoProvider;
|
|
15
|
-
//# sourceMappingURL=guildInfo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"guildInfo.d.ts","sourceRoot":"","sources":["../../providers/guildInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyB,QAAQ,EAAS,MAAM,eAAe,CAAC;AAQ5E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAiG/B,CAAC;AAyHF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Provider } from "@elizaos/core";
|
|
2
|
-
/**
|
|
3
|
-
* Provides information about the voice state of the user, including whether they are currently in a voice channel.
|
|
4
|
-
*
|
|
5
|
-
* @param {IAgentRuntime} runtime - The runtime object for the agent
|
|
6
|
-
* @param {Memory} message - The message object containing room ID
|
|
7
|
-
* @param {State} [state] - Optional state object for the user
|
|
8
|
-
* @returns {Object} An object containing information about the voice state of the user
|
|
9
|
-
*/
|
|
10
|
-
export declare const voiceStateProvider: Provider;
|
|
11
|
-
export default voiceStateProvider;
|
|
12
|
-
//# sourceMappingURL=voiceState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"voiceState.d.ts","sourceRoot":"","sources":["../../providers/voiceState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAyB,QAAQ,EAA+B,MAAM,eAAe,CAAC;AASlG;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAmJhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|