@elizaos/plugin-slack 2.0.0-alpha → 2.0.0-alpha.4
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/index.js +10 -40
- package/dist/index.js.map +21 -21
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -252,12 +252,7 @@ Respond with a JSON object like:
|
|
|
252
252
|
Only respond with the JSON object, no other text.`;
|
|
253
253
|
var editMessage = {
|
|
254
254
|
name: "SLACK_EDIT_MESSAGE",
|
|
255
|
-
similes: [
|
|
256
|
-
"UPDATE_SLACK_MESSAGE",
|
|
257
|
-
"MODIFY_MESSAGE",
|
|
258
|
-
"CHANGE_MESSAGE",
|
|
259
|
-
"SLACK_UPDATE"
|
|
260
|
-
],
|
|
255
|
+
similes: ["UPDATE_SLACK_MESSAGE", "MODIFY_MESSAGE", "CHANGE_MESSAGE", "SLACK_UPDATE"],
|
|
261
256
|
description: "Edit an existing Slack message",
|
|
262
257
|
validate: async (_runtime, message, _state) => {
|
|
263
258
|
return message.content.source === "slack";
|
|
@@ -492,13 +487,7 @@ Respond with a JSON object like:
|
|
|
492
487
|
Only respond with the JSON object, no other text.`;
|
|
493
488
|
var getUserInfo = {
|
|
494
489
|
name: "SLACK_GET_USER_INFO",
|
|
495
|
-
similes: [
|
|
496
|
-
"GET_SLACK_USER",
|
|
497
|
-
"USER_INFO",
|
|
498
|
-
"SLACK_USER",
|
|
499
|
-
"MEMBER_INFO",
|
|
500
|
-
"WHO_IS"
|
|
501
|
-
],
|
|
490
|
+
similes: ["GET_SLACK_USER", "USER_INFO", "SLACK_USER", "MEMBER_INFO", "WHO_IS"],
|
|
502
491
|
description: "Get information about a Slack user",
|
|
503
492
|
validate: async (_runtime, message, _state) => {
|
|
504
493
|
return message.content.source === "slack";
|
|
@@ -644,12 +633,7 @@ var getUserInfo_default = getUserInfo;
|
|
|
644
633
|
// src/actions/listChannels.ts
|
|
645
634
|
var listChannels = {
|
|
646
635
|
name: "SLACK_LIST_CHANNELS",
|
|
647
|
-
similes: [
|
|
648
|
-
"LIST_SLACK_CHANNELS",
|
|
649
|
-
"SHOW_CHANNELS",
|
|
650
|
-
"GET_CHANNELS",
|
|
651
|
-
"CHANNELS_LIST"
|
|
652
|
-
],
|
|
636
|
+
similes: ["LIST_SLACK_CHANNELS", "SHOW_CHANNELS", "GET_CHANNELS", "CHANNELS_LIST"],
|
|
653
637
|
description: "List available Slack channels in the workspace",
|
|
654
638
|
validate: async (_runtime, message, _state) => {
|
|
655
639
|
return message.content.source === "slack";
|
|
@@ -760,12 +744,7 @@ Respond with a JSON object like:
|
|
|
760
744
|
Only respond with the JSON object, no other text.`;
|
|
761
745
|
var listPins = {
|
|
762
746
|
name: "SLACK_LIST_PINS",
|
|
763
|
-
similes: [
|
|
764
|
-
"LIST_SLACK_PINS",
|
|
765
|
-
"SHOW_PINS",
|
|
766
|
-
"GET_PINNED_MESSAGES",
|
|
767
|
-
"PINNED_MESSAGES"
|
|
768
|
-
],
|
|
747
|
+
similes: ["LIST_SLACK_PINS", "SHOW_PINS", "GET_PINNED_MESSAGES", "PINNED_MESSAGES"],
|
|
769
748
|
description: "List pinned messages in a Slack channel",
|
|
770
749
|
validate: async (_runtime, message, _state) => {
|
|
771
750
|
return message.content.source === "slack";
|
|
@@ -1062,13 +1041,7 @@ Respond with a JSON object like:
|
|
|
1062
1041
|
Only respond with the JSON object, no other text.`;
|
|
1063
1042
|
var reactToMessage = {
|
|
1064
1043
|
name: "SLACK_REACT_TO_MESSAGE",
|
|
1065
|
-
similes: [
|
|
1066
|
-
"ADD_SLACK_REACTION",
|
|
1067
|
-
"REACT_SLACK",
|
|
1068
|
-
"SLACK_EMOJI",
|
|
1069
|
-
"ADD_EMOJI",
|
|
1070
|
-
"REMOVE_REACTION"
|
|
1071
|
-
],
|
|
1044
|
+
similes: ["ADD_SLACK_REACTION", "REACT_SLACK", "SLACK_EMOJI", "ADD_EMOJI", "REMOVE_REACTION"],
|
|
1072
1045
|
description: "Add or remove an emoji reaction to a Slack message",
|
|
1073
1046
|
validate: async (_runtime, message, _state) => {
|
|
1074
1047
|
return message.content.source === "slack";
|
|
@@ -1544,12 +1517,7 @@ Respond with a JSON object like:
|
|
|
1544
1517
|
Only respond with the JSON object, no other text.`;
|
|
1545
1518
|
var unpinMessage = {
|
|
1546
1519
|
name: "SLACK_UNPIN_MESSAGE",
|
|
1547
|
-
similes: [
|
|
1548
|
-
"UNPIN_SLACK_MESSAGE",
|
|
1549
|
-
"UNPIN_MESSAGE",
|
|
1550
|
-
"SLACK_UNPIN",
|
|
1551
|
-
"REMOVE_PIN"
|
|
1552
|
-
],
|
|
1520
|
+
similes: ["UNPIN_SLACK_MESSAGE", "UNPIN_MESSAGE", "SLACK_UNPIN", "REMOVE_PIN"],
|
|
1553
1521
|
description: "Unpin a message from a Slack channel",
|
|
1554
1522
|
validate: async (_runtime, message, _state) => {
|
|
1555
1523
|
return message.content.source === "slack";
|
|
@@ -1999,7 +1967,9 @@ class SlackService extends Service {
|
|
|
1999
1967
|
this.settings = this.loadSettings();
|
|
2000
1968
|
const channelIdsRaw = runtime.getSetting("SLACK_CHANNEL_IDS");
|
|
2001
1969
|
if (channelIdsRaw?.trim()) {
|
|
2002
|
-
channelIdsRaw.split(",").map((s) => s.trim()).filter((s) => s.length > 0 && isValidChannelId(s)).forEach((id) =>
|
|
1970
|
+
channelIdsRaw.split(",").map((s) => s.trim()).filter((s) => s.length > 0 && isValidChannelId(s)).forEach((id) => {
|
|
1971
|
+
this.allowedChannelIds.add(id);
|
|
1972
|
+
});
|
|
2003
1973
|
this.runtime.logger.debug({
|
|
2004
1974
|
src: "plugin:slack",
|
|
2005
1975
|
agentId: this.runtime.agentId,
|
|
@@ -3208,4 +3178,4 @@ export {
|
|
|
3208
3178
|
DEFAULT_ACCOUNT_ID
|
|
3209
3179
|
};
|
|
3210
3180
|
|
|
3211
|
-
//# debugId=
|
|
3181
|
+
//# debugId=E8C0A4FE194C19DE64756E2164756E21
|