agent-slack 0.3.0 → 0.4.0

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 CHANGED
@@ -27,6 +27,7 @@ npm i -g agent-slack
27
27
  - **Search**: messages + files (with filters)
28
28
  - **Artifacts**: auto-download snippets/images/files to local paths for agents
29
29
  - **Write**: reply, edit/delete messages, add reactions
30
+ - **Channels**: create channels and invite users by id/handle/email
30
31
  - **Canvas**: fetch Slack canvases as Markdown
31
32
 
32
33
  ## Agent skill
@@ -60,11 +61,15 @@ agent-slack
60
61
  │ ├── get <target> # fetch 1 message (+ thread meta )
61
62
  │ ├── list <target> # fetch thread or recent channel messages
62
63
  │ ├── send <target> <text> # send / reply (does the right thing)
64
+ │ ├── draft <target> [text] # open Slack-like editor in browser
63
65
  │ ├── edit <target> <text> # edit a message
64
66
  │ ├── delete <target> # delete a message
65
67
  │ └── react
66
68
  │ ├── add <target> <emoji>
67
69
  │ └── remove <target> <emoji>
70
+ ├── channel
71
+ │ ├── new # create channel
72
+ │ └── invite # invite users to channel
68
73
  ├── user
69
74
  │ ├── list
70
75
  │ └── get <user>
@@ -168,6 +173,23 @@ Optional:
168
173
  agent-slack message get "https://workspace.slack.com/archives/C123/p1700000000000000" --include-reactions
169
174
  ```
170
175
 
176
+ ### Draft a message (browser editor)
177
+
178
+ Opens a Slack-like WYSIWYG editor in your browser for composing messages with full formatting support (bold, italic, strikethrough, links, lists, quotes, code, code blocks).
179
+
180
+ ```bash
181
+ # Open editor for a channel
182
+ agent-slack message draft "#general"
183
+
184
+ # Open editor with initial text
185
+ agent-slack message draft "#general" "Here's my update"
186
+
187
+ # Reply in a thread
188
+ agent-slack message draft "https://workspace.slack.com/archives/C123/p1700000000000000"
189
+ ```
190
+
191
+ After sending, the editor shows a "View in Slack" link to the posted message.
192
+
171
193
  ### Reply, edit, delete, and react
172
194
 
173
195
  ```bash
@@ -185,6 +207,31 @@ agent-slack message edit "#general" "Updated text" --workspace "myteam" --ts "17
185
207
  agent-slack message delete "#general" --workspace "myteam" --ts "1770165109.628379"
186
208
  ```
187
209
 
210
+ ### Create channels and invite users
211
+
212
+ ```bash
213
+ # Create a public channel
214
+ agent-slack channel new --name "incident-war-room"
215
+
216
+ # Create a private channel
217
+ agent-slack channel new --name "incident-leads" --private
218
+
219
+ # Invite users by id, handle, or email
220
+ agent-slack channel invite --channel "incident-war-room" --users "U01AAAA,@alice,bob@example.com"
221
+
222
+ # Invite external Slack Connect users by email (restricted by default)
223
+ agent-slack channel invite --channel "incident-war-room" --users "partner@vendor.com" --external
224
+
225
+ # External invite with permission for invitees to invite others
226
+ agent-slack channel invite --channel "incident-war-room" --users "partner@vendor.com" --external --allow-external-user-invites
227
+ ```
228
+
229
+ Notes:
230
+
231
+ - `--external` maps to `conversations.inviteShared` and expects email targets.
232
+ - External invites default to restricted mode (`external_limited=true`); add `--allow-external-user-invites` to disable that restriction.
233
+ - External invites require Slack Connect permissions/scopes in your workspace.
234
+
188
235
  ### Message get vs list
189
236
 
190
237
  **`message get`** fetches a single message. If the message is in a thread, it also returns thread metadata (reply count, participants) but **not** the full thread contents: