@elizaos/plugin-slack 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 +3 -29
- package/auto-enable.ts +1 -1
- package/package.json +29 -12
- package/dist/index.js +0 -3036
- package/dist/index.js.map +0 -17
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @elizaos/plugin-slack
|
|
2
2
|
|
|
3
|
-
Slack integration plugin for
|
|
3
|
+
Slack integration plugin for elizaOS agents with Socket Mode support.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -109,7 +109,6 @@ const agent = {
|
|
|
109
109
|
```json
|
|
110
110
|
{
|
|
111
111
|
"name": "MyAgent",
|
|
112
|
-
"clients": ["slack"],
|
|
113
112
|
"settings": {
|
|
114
113
|
"slack": {
|
|
115
114
|
"shouldIgnoreBotMessages": true,
|
|
@@ -119,31 +118,9 @@ const agent = {
|
|
|
119
118
|
}
|
|
120
119
|
```
|
|
121
120
|
|
|
122
|
-
##
|
|
121
|
+
## Connector capabilities
|
|
123
122
|
|
|
124
|
-
Slack messaging is
|
|
125
|
-
`source: "slack"` when a request needs to target Slack explicitly.
|
|
126
|
-
|
|
127
|
-
| Primary action | Operation | Description |
|
|
128
|
-
|----------------|-----------|-------------|
|
|
129
|
-
| `MESSAGE` | `send` | Send a message to a channel, DM, or thread |
|
|
130
|
-
| `MESSAGE` | `read` | Read recent message history from a channel, DM, or thread |
|
|
131
|
-
| `MESSAGE` | `search` | Search Slack message history |
|
|
132
|
-
| `MESSAGE` | `list_channels` | List available channels |
|
|
133
|
-
| `MESSAGE` | `list_servers` | List connected Slack workspaces |
|
|
134
|
-
| `MESSAGE` | `react` | Add or remove emoji reactions |
|
|
135
|
-
| `MESSAGE` | `edit` | Edit an existing message |
|
|
136
|
-
| `MESSAGE` | `delete` | Delete a message |
|
|
137
|
-
| `MESSAGE` | `pin` | Pin or unpin a message |
|
|
138
|
-
| `MESSAGE` | `get_user` | Get information about a user |
|
|
139
|
-
|
|
140
|
-
## Providers
|
|
141
|
-
|
|
142
|
-
| Provider | Description |
|
|
143
|
-
|----------|-------------|
|
|
144
|
-
| `slackChannelState` | Current channel context and metadata |
|
|
145
|
-
| `slackWorkspaceInfo` | Workspace-level information |
|
|
146
|
-
| `slackMemberList` | Members in the current channel |
|
|
123
|
+
This plugin registers no elizaOS actions. Slack messaging is handled via the `MessageConnector` interface. The registered connector exposes these capabilities: `send_message`, `read_messages`, `search_messages`, `resolve_targets`, `list_rooms`, `list_servers`, `chat_context`, `user_context`, `react_message`, `edit_message`, `delete_message`, `pin_message`, `get_user`.
|
|
147
124
|
|
|
148
125
|
## Events
|
|
149
126
|
|
|
@@ -204,6 +181,3 @@ const channels = await slackService.listChannels();
|
|
|
204
181
|
2. Check that the app-level token has `connections:write` scope
|
|
205
182
|
3. Ensure only one instance of the bot is running per token
|
|
206
183
|
|
|
207
|
-
## License
|
|
208
|
-
|
|
209
|
-
MIT
|
package/auto-enable.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { PluginAutoEnableContext } from "@elizaos/core";
|
|
|
8
8
|
|
|
9
9
|
/** Enable when a `slack` connector block is present and not explicitly disabled. */
|
|
10
10
|
export function shouldEnable(ctx: PluginAutoEnableContext): boolean {
|
|
11
|
-
const c = (ctx.config
|
|
11
|
+
const c = (ctx.config.connectors as Record<string, unknown> | undefined)
|
|
12
12
|
?.slack;
|
|
13
13
|
if (!c || typeof c !== "object") return false;
|
|
14
14
|
const config = c as Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/plugin-slack",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11-beta.7",
|
|
4
4
|
"description": "Slack integration plugin for elizaOS agents with Socket Mode support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,8 +15,24 @@
|
|
|
15
15
|
"./package.json": "./package.json",
|
|
16
16
|
".": {
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
|
+
"eliza-source": {
|
|
19
|
+
"types": "./src/index.ts",
|
|
20
|
+
"import": "./src/index.ts",
|
|
21
|
+
"default": "./src/index.ts"
|
|
22
|
+
},
|
|
18
23
|
"import": "./dist/index.js",
|
|
19
24
|
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./*.css": "./dist/*.css",
|
|
27
|
+
"./*": {
|
|
28
|
+
"types": "./dist/*.d.ts",
|
|
29
|
+
"eliza-source": {
|
|
30
|
+
"types": "./src/*.ts",
|
|
31
|
+
"import": "./src/*.ts",
|
|
32
|
+
"default": "./src/*.ts"
|
|
33
|
+
},
|
|
34
|
+
"import": "./dist/*.js",
|
|
35
|
+
"default": "./dist/*.js"
|
|
20
36
|
}
|
|
21
37
|
},
|
|
22
38
|
"files": [
|
|
@@ -45,27 +61,27 @@
|
|
|
45
61
|
"build:ts": "bun run build.ts",
|
|
46
62
|
"dev": "bun --hot build.ts",
|
|
47
63
|
"clean": "rm -rf dist .turbo",
|
|
48
|
-
"test": "vitest run
|
|
49
|
-
"typecheck": "
|
|
50
|
-
"lint": "
|
|
51
|
-
"lint:check": "
|
|
52
|
-
"format": "
|
|
53
|
-
"format:check": "
|
|
64
|
+
"test": "vitest run",
|
|
65
|
+
"typecheck": "tsgo --noEmit",
|
|
66
|
+
"lint": "bunx @biomejs/biome check --write --unsafe .",
|
|
67
|
+
"lint:check": "bunx @biomejs/biome check .",
|
|
68
|
+
"format": "bunx @biomejs/biome format --write .",
|
|
69
|
+
"format:check": "bunx @biomejs/biome format ."
|
|
54
70
|
},
|
|
55
71
|
"dependencies": {
|
|
56
|
-
"@elizaos/core": "2.0.
|
|
72
|
+
"@elizaos/core": "2.0.11-beta.7",
|
|
57
73
|
"@slack/bolt": "^4.1.0",
|
|
58
|
-
"@slack/web-api": "^7.15.2"
|
|
59
|
-
"zod": "^4.4.3"
|
|
74
|
+
"@slack/web-api": "^7.15.2"
|
|
60
75
|
},
|
|
61
76
|
"devDependencies": {
|
|
62
77
|
"@biomejs/biome": "^2.4.14",
|
|
63
78
|
"@types/node": "^25.0.3",
|
|
79
|
+
"bun-types": "^1.2.25",
|
|
64
80
|
"typescript": "^6.0.3",
|
|
65
81
|
"vitest": "^4.1.4"
|
|
66
82
|
},
|
|
67
83
|
"peerDependencies": {
|
|
68
|
-
"@elizaos/core": "2.0.
|
|
84
|
+
"@elizaos/core": "2.0.11-beta.7"
|
|
69
85
|
},
|
|
70
86
|
"publishConfig": {
|
|
71
87
|
"access": "public"
|
|
@@ -116,5 +132,6 @@
|
|
|
116
132
|
"sensitive": false
|
|
117
133
|
}
|
|
118
134
|
}
|
|
119
|
-
}
|
|
135
|
+
},
|
|
136
|
+
"gitHead": "cdbc876f793d96073d7eb0d09715a031ce0cd32e"
|
|
120
137
|
}
|