@wirecat/slack-cli 0.0.0-stage → 0.2.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/CHANGELOG.md +121 -0
- package/LICENSE +204 -0
- package/README.md +131 -2
- package/contracts/wirecat.json +5526 -0
- package/dist/bin/slack.d.ts +3 -0
- package/dist/bin/slack.d.ts.map +1 -0
- package/dist/bin/slack.js +40 -0
- package/dist/bin/slack.js.map +1 -0
- package/dist/bundle/agent-GOFXFUQP.js +37 -0
- package/dist/bundle/all-profiles-4C7VOT2D.js +320 -0
- package/dist/bundle/anthropic-ZD66TC5S.js +91 -0
- package/dist/bundle/app-server-QNCVEDMY.js +249 -0
- package/dist/bundle/bun-2FULBYXS.js +169 -0
- package/dist/bundle/bun-sqlite-PMS26ZUT.js +76 -0
- package/dist/bundle/chunk-2LB5BWC4.js +362 -0
- package/dist/bundle/chunk-2ZEYRHZV.js +18 -0
- package/dist/bundle/chunk-3IJ3THPV.js +7 -0
- package/dist/bundle/chunk-3IZF5ENR.js +61 -0
- package/dist/bundle/chunk-4HSVEQ3R.js +29 -0
- package/dist/bundle/chunk-4QPMHVM5.js +1007 -0
- package/dist/bundle/chunk-53LIHHXC.js +16 -0
- package/dist/bundle/chunk-5F36CXDM.js +794 -0
- package/dist/bundle/chunk-5LPREGD3.js +12636 -0
- package/dist/bundle/chunk-5R5YRYIP.js +1148 -0
- package/dist/bundle/chunk-5RSQTG7L.js +388 -0
- package/dist/bundle/chunk-5SXZETJF.js +170 -0
- package/dist/bundle/chunk-6PDQP5RM.js +50 -0
- package/dist/bundle/chunk-75BLNPN3.js +1197 -0
- package/dist/bundle/chunk-7BEO72EN.js +131 -0
- package/dist/bundle/chunk-7F6RNAIM.js +230 -0
- package/dist/bundle/chunk-AG7FP64Z.js +77 -0
- package/dist/bundle/chunk-BRXTN5LJ.js +338 -0
- package/dist/bundle/chunk-CABZAU37.js +319 -0
- package/dist/bundle/chunk-CCOSG3F2.js +24616 -0
- package/dist/bundle/chunk-CDTZSFTN.js +58 -0
- package/dist/bundle/chunk-CMZBCWND.js +1246 -0
- package/dist/bundle/chunk-CRQEEJNF.js +185 -0
- package/dist/bundle/chunk-CWYU4R65.js +358 -0
- package/dist/bundle/chunk-CZFR6JQX.js +52 -0
- package/dist/bundle/chunk-D72URWJE.js +532 -0
- package/dist/bundle/chunk-DFDN6AUB.js +21 -0
- package/dist/bundle/chunk-DVHX7R54.js +4072 -0
- package/dist/bundle/chunk-DYKOG7QR.js +9596 -0
- package/dist/bundle/chunk-ECDI42G6.js +100 -0
- package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
- package/dist/bundle/chunk-ELY2TLCY.js +259 -0
- package/dist/bundle/chunk-ERRVUVKR.js +156 -0
- package/dist/bundle/chunk-FBWR4E5D.js +353 -0
- package/dist/bundle/chunk-GKS6KL57.js +6848 -0
- package/dist/bundle/chunk-H2COZZ55.js +2787 -0
- package/dist/bundle/chunk-HGXTEK7R.js +82 -0
- package/dist/bundle/chunk-HXLXM7HV.js +726 -0
- package/dist/bundle/chunk-IPP4N6HD.js +24 -0
- package/dist/bundle/chunk-IWTVR7S7.js +53 -0
- package/dist/bundle/chunk-IYJH75D4.js +63 -0
- package/dist/bundle/chunk-JCZLRT4Z.js +39 -0
- package/dist/bundle/chunk-JGRWMR5H.js +123 -0
- package/dist/bundle/chunk-JYRYQJBN.js +633 -0
- package/dist/bundle/chunk-KIKLDI74.js +161 -0
- package/dist/bundle/chunk-L4WO3XH6.js +2020 -0
- package/dist/bundle/chunk-LQDNUAK3.js +274 -0
- package/dist/bundle/chunk-LV5ONLQH.js +38 -0
- package/dist/bundle/chunk-M27Z23OZ.js +23 -0
- package/dist/bundle/chunk-M5XTZHXM.js +142 -0
- package/dist/bundle/chunk-MJBEGUIZ.js +76 -0
- package/dist/bundle/chunk-N4WOLGIV.js +2333 -0
- package/dist/bundle/chunk-N5K4OHPT.js +206 -0
- package/dist/bundle/chunk-NYAPUET7.js +108 -0
- package/dist/bundle/chunk-P4IFLOIK.js +218 -0
- package/dist/bundle/chunk-P6G2QTCD.js +288 -0
- package/dist/bundle/chunk-PL5P7UKW.js +25216 -0
- package/dist/bundle/chunk-PU7R6XNV.js +80 -0
- package/dist/bundle/chunk-QLLBACDR.js +72 -0
- package/dist/bundle/chunk-QP7XN5KX.js +407 -0
- package/dist/bundle/chunk-QY2F6A3D.js +557 -0
- package/dist/bundle/chunk-RLIT7VAZ.js +66 -0
- package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
- package/dist/bundle/chunk-SKGAKI62.js +86 -0
- package/dist/bundle/chunk-SQMZP5MA.js +66653 -0
- package/dist/bundle/chunk-UB6NTICY.js +95 -0
- package/dist/bundle/chunk-UBHQO5HV.js +778 -0
- package/dist/bundle/chunk-UM4RKO24.js +106 -0
- package/dist/bundle/chunk-VAHFY732.js +1068 -0
- package/dist/bundle/chunk-VGDM4C3F.js +188 -0
- package/dist/bundle/chunk-VOUAKCPM.js +41181 -0
- package/dist/bundle/chunk-WCCFJ4Q6.js +3736 -0
- package/dist/bundle/chunk-WV6EXRDV.js +46 -0
- package/dist/bundle/chunk-WVAT5TGY.js +334 -0
- package/dist/bundle/chunk-WW76JMKE.js +1243 -0
- package/dist/bundle/chunk-XXOMUKC6.js +54 -0
- package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
- package/dist/bundle/chunk-YDO6RJ2P.js +1337 -0
- package/dist/bundle/chunk-ZBCFZCJW.js +388 -0
- package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
- package/dist/bundle/command-contract-BWGRUY6L.js +37 -0
- package/dist/bundle/command-server-entry-BATOWE3Y.js +166 -0
- package/dist/bundle/decode-MZQGYXJH.js +297 -0
- package/dist/bundle/definitions-3EONB23J.js +8600 -0
- package/dist/bundle/dispatch-NYC4ARWX.js +411 -0
- package/dist/bundle/dist-AMLBQVKM.js +7577 -0
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/echarts-7OYGL2GW.js +42501 -0
- package/dist/bundle/embed-4I25DVKZ.js +38 -0
- package/dist/bundle/embedder-YXKQHAZO.js +111 -0
- package/dist/bundle/emoji-4LYX3GOS.js +4271 -0
- package/dist/bundle/failure-3YOVYZTX.js +25 -0
- package/dist/bundle/first-run-2VL2BOV7.js +29 -0
- package/dist/bundle/first-screen-C7FIWZL2.js +37 -0
- package/dist/bundle/instructions-UMNDHXG2.js +11 -0
- package/dist/bundle/mcp-V27RHILF.js +167 -0
- package/dist/bundle/meeting-combined-LS6XO4JH.js +24 -0
- package/dist/bundle/meeting-model-VIR465CY.js +25 -0
- package/dist/bundle/meeting-semantic-H5J3OOF2.js +22 -0
- package/dist/bundle/node-JJ3WDCNJ.js +2340 -0
- package/dist/bundle/node-PYFPGL4E.js +176 -0
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/node-sqlite-LFWPGDVP.js +74 -0
- package/dist/bundle/oauth-42VCSIVL.js +20 -0
- package/dist/bundle/open-XJ5R5LHC.js +23 -0
- package/dist/bundle/openai-RZBLV4HG.js +238 -0
- package/dist/bundle/process-DD6H3K7L.js +91 -0
- package/dist/bundle/program-OIYIBNSA.js +35443 -0
- package/dist/bundle/prompt-NQRDM5LY.js +17 -0
- package/dist/bundle/recognize-EM7H2IZS.js +26 -0
- package/dist/bundle/remote-Z6NU6QQA.js +31 -0
- package/dist/bundle/rerank-PNPCSPNF.js +52 -0
- package/dist/bundle/schemas-JMKNP4U3.js +2765 -0
- package/dist/bundle/serve-SQVGX76J.js +199 -0
- package/dist/bundle/server-NPJH45FZ.js +212 -0
- package/dist/bundle/server-Z4ZMGRAH.js +79 -0
- package/dist/bundle/slack.js +184 -0
- package/dist/bundle/sqlite-runtime-F3AJGAPN.js +20 -0
- package/dist/bundle/state-JT7ZFSXN.js +36 -0
- package/dist/bundle/store-FXGMHRF3.js +181 -0
- package/dist/bundle/store-J5ZL2USR.js +295 -0
- package/dist/bundle/store-maintenance-command-TIHOIKLZ.js +66 -0
- package/dist/bundle/surface-NW6T5OR6.js +65 -0
- package/dist/commands/api.d.ts +7 -0
- package/dist/commands/api.d.ts.map +1 -0
- package/dist/commands/api.js +49 -0
- package/dist/commands/api.js.map +1 -0
- package/dist/commands/session.d.ts +7 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +26 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/config.d.ts +24 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +75 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +59 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +75 -0
- package/dist/context.js.map +1 -0
- package/dist/generated/definitions.d.ts +3 -0
- package/dist/generated/definitions.d.ts.map +1 -0
- package/dist/generated/definitions.js +8596 -0
- package/dist/generated/definitions.js.map +1 -0
- package/dist/generated/emoji.d.ts +2 -0
- package/dist/generated/emoji.d.ts.map +1 -0
- package/dist/generated/emoji.js +4265 -0
- package/dist/generated/emoji.js.map +1 -0
- package/dist/generated/manifest.d.ts +6 -0
- package/dist/generated/manifest.d.ts.map +1 -0
- package/dist/generated/manifest.js +6139 -0
- package/dist/generated/manifest.js.map +1 -0
- package/dist/generated/schemas.d.ts +631 -0
- package/dist/generated/schemas.d.ts.map +1 -0
- package/dist/generated/schemas.js +2426 -0
- package/dist/generated/schemas.js.map +1 -0
- package/dist/generated/types.d.ts +3220 -0
- package/dist/generated/types.d.ts.map +1 -0
- package/dist/generated/types.js +5 -0
- package/dist/generated/types.js.map +1 -0
- package/dist/identity.d.ts +29 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +32 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/messenger.d.ts +12 -0
- package/dist/messenger.d.ts.map +1 -0
- package/dist/messenger.js +184 -0
- package/dist/messenger.js.map +1 -0
- package/dist/program.d.ts +6 -0
- package/dist/program.d.ts.map +1 -0
- package/dist/program.js +116 -0
- package/dist/program.js.map +1 -0
- package/dist/reasons.d.ts +7 -0
- package/dist/reasons.d.ts.map +1 -0
- package/dist/reasons.js +20 -0
- package/dist/reasons.js.map +1 -0
- package/dist/setup/flow.d.ts +2 -0
- package/dist/setup/flow.d.ts.map +1 -0
- package/dist/setup/flow.js +83 -0
- package/dist/setup/flow.js.map +1 -0
- package/dist/setup/guide.d.ts +6 -0
- package/dist/setup/guide.d.ts.map +1 -0
- package/dist/setup/guide.js +13 -0
- package/dist/setup/guide.js.map +1 -0
- package/dist/setup/texts.d.ts +24 -0
- package/dist/setup/texts.d.ts.map +1 -0
- package/dist/setup/texts.js +24 -0
- package/dist/setup/texts.js.map +1 -0
- package/dist/slack/adapter.d.ts +36 -0
- package/dist/slack/adapter.d.ts.map +1 -0
- package/dist/slack/adapter.js +574 -0
- package/dist/slack/adapter.js.map +1 -0
- package/dist/slack/app-manifest.d.ts +25 -0
- package/dist/slack/app-manifest.d.ts.map +1 -0
- package/dist/slack/app-manifest.js +51 -0
- package/dist/slack/app-manifest.js.map +1 -0
- package/dist/slack/client.d.ts +45 -0
- package/dist/slack/client.d.ts.map +1 -0
- package/dist/slack/client.js +236 -0
- package/dist/slack/client.js.map +1 -0
- package/dist/slack/map.d.ts +437 -0
- package/dist/slack/map.d.ts.map +1 -0
- package/dist/slack/map.js +411 -0
- package/dist/slack/map.js.map +1 -0
- package/dist/slack/mrkdwn.d.ts +9 -0
- package/dist/slack/mrkdwn.d.ts.map +1 -0
- package/dist/slack/mrkdwn.js +56 -0
- package/dist/slack/mrkdwn.js.map +1 -0
- package/dist/slack/search.d.ts +24 -0
- package/dist/slack/search.d.ts.map +1 -0
- package/dist/slack/search.js +99 -0
- package/dist/slack/search.js.map +1 -0
- package/dist/slack/threads.d.ts +28 -0
- package/dist/slack/threads.d.ts.map +1 -0
- package/dist/slack/threads.js +56 -0
- package/dist/slack/threads.js.map +1 -0
- package/dist/slack/tokens.d.ts +17 -0
- package/dist/slack/tokens.d.ts.map +1 -0
- package/dist/slack/tokens.js +27 -0
- package/dist/slack/tokens.js.map +1 -0
- package/dist/slack/writes.d.ts +43 -0
- package/dist/slack/writes.d.ts.map +1 -0
- package/dist/slack/writes.js +277 -0
- package/dist/slack/writes.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +89 -4
- package/skills/slack-cli/SKILL.md +117 -0
- package/skills/slack-cli/references/api/api-admin.md +541 -0
- package/skills/slack-cli/references/api/api-api.md +13 -0
- package/skills/slack-cli/references/api/api-apps.md +78 -0
- package/skills/slack-cli/references/api/api-auth.md +18 -0
- package/skills/slack-cli/references/api/api-bots.md +12 -0
- package/skills/slack-cli/references/api/api-calls.md +68 -0
- package/skills/slack-cli/references/api/api-chat.md +123 -0
- package/skills/slack-cli/references/api/api-conversations.md +230 -0
- package/skills/slack-cli/references/api/api-dialog.md +13 -0
- package/skills/slack-cli/references/api/api-dnd.md +31 -0
- package/skills/slack-cli/references/api/api-emoji.md +8 -0
- package/skills/slack-cli/references/api/api-files.md +120 -0
- package/skills/slack-cli/references/api/api-migration.md +14 -0
- package/skills/slack-cli/references/api/api-pins.md +37 -0
- package/skills/slack-cli/references/api/api-reactions.md +58 -0
- package/skills/slack-cli/references/api/api-reminders.md +51 -0
- package/skills/slack-cli/references/api/api-search.md +18 -0
- package/skills/slack-cli/references/api/api-stars.md +42 -0
- package/skills/slack-cli/references/api/api-team.md +55 -0
- package/skills/slack-cli/references/api/api-usergroups.md +80 -0
- package/skills/slack-cli/references/api/api-users.md +101 -0
- package/skills/slack-cli/references/api/api-views.md +46 -0
- package/skills/slack-cli/references/api/api-workflows.md +36 -0
- package/skills/slack-cli/references/api.md +35 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Notable changes to `@wirecat/slack-cli`. One section per version, newest first.
|
|
4
|
+
|
|
5
|
+
## 0.2.0 — 25.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`inbox` counts a mention of a user group you are in.** A channel you do not follow now shows when a message after
|
|
10
|
+
your last read names a group of yours, such as `@devs`. Slack's group list is asked once a run, and only when a
|
|
11
|
+
message names a group; a workspace that refuses it is named in `missing`.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **`inbox` no longer stops at the DM with Slackbot.** Slack lists that DM but answers `channel_not_found` when asked
|
|
16
|
+
about it; inbox now skips it and counts the other chats.
|
|
17
|
+
- **`inbox` reads a channel you have never opened.** Slack gives such a channel a zero last-read mark and then refuses
|
|
18
|
+
that mark back, so inbox stopped there; it now counts the channel from its newest message.
|
|
19
|
+
- **The agent skill and the docs title name `slk`.** The skill asked agents for a `slack` binary, which the package
|
|
20
|
+
does not install.
|
|
21
|
+
|
|
22
|
+
## 0.1.0 — 24.11.2026
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- Started from `@wirecat/cli-template` 0.32.0.
|
|
27
|
+
- **`slk inbox` covers channels.** Name the channels whose every message matters with
|
|
28
|
+
`slk <profile> config set inbox_channels "#general, #dev"`, or count them all with `inbox_all_channels true`. Any
|
|
29
|
+
other channel shows up only when a message after your last read mentions you, or says @here, @channel or
|
|
30
|
+
@everyone. Slack gives a channel no unread count, so inbox reads what came after your last read, for 15 seconds at
|
|
31
|
+
most, and `missing` names what it did not reach and why.
|
|
32
|
+
- **History and conversation reads go at Slack's 50 a minute.** `conversations.history`, `.info`, `.replies` and
|
|
33
|
+
`users.conversations` keep a pace of their own, apart from the 20 a minute of the other methods, as Slack's
|
|
34
|
+
[rate limit tiers](https://docs.slack.dev/apis/web-api/rate-limits/) allow.
|
|
35
|
+
- **`slk personal inbox`: the DMs with unread messages, and their newest ones.** Slack gives unread counts for DMs
|
|
36
|
+
only, one `conversations.info` call each, so `inbox` asks up to 40 DMs and group DMs a run, and `missing` says how
|
|
37
|
+
many it counted and that channels were not. `chats list` stays one cheap list. `inbox --new` and `review` see these
|
|
38
|
+
chats' last message times, so they now find new DM messages too.
|
|
39
|
+
- **Read Slack with the messenger commands.** `slk <profile> chats list|show|events`, `chats members list`,
|
|
40
|
+
`contacts list|show`, `messages list|show|context|download` and `search` work as in every WireCat messenger CLI.
|
|
41
|
+
A DM is a dialog, every channel and group DM a group, with `slack_kind` and `slack_shared` (Slack Connect) beside
|
|
42
|
+
it. Message text is plain, with names for `<@U…>` and `<#C…>`; mentions are user ids; reactions keep who reacted.
|
|
43
|
+
Bot messages are marked, and service messages (joins, renames, topics) are chat events, not messages.
|
|
44
|
+
- **Threads:** `slk <profile> messages list <chat> topic:<root ts>` reads one thread, root first. A reply sent also
|
|
45
|
+
to the channel is kept once.
|
|
46
|
+
- **`slk <profile> messages sync`** saves a chat's history for search, with the new replies of threads it pages
|
|
47
|
+
through and of threads up to `thread_window_days` (14 by default) old, through cli-core's `threadReplies`. A
|
|
48
|
+
message Slack stops showing is never marked deleted.
|
|
49
|
+
- **`slk <profile> setup`** signs in step by step, with the same token checks as `session start`.
|
|
50
|
+
- **Files** download from `files.slack.com` only, with the token in the header.
|
|
51
|
+
- **Write to Slack with the messenger commands.** `messages send|edit|delete|pin|unpin|link`, `reactions add|remove`
|
|
52
|
+
and `chats mark-read|join|leave`. Text is sent as typed; `--md` turns Markdown into Slack's mrkdwn. `--reply-to`
|
|
53
|
+
answers in the thread, and `--file` uploads through Slack's external upload. A write with no answer is reported as
|
|
54
|
+
unknown and never sent twice; a repeat with its `--operation-id` finds the copy Slack kept. A message to a person
|
|
55
|
+
with no DM yet opens one. Slack's refusals carry a reason of their own, such as `message.not-yours` and
|
|
56
|
+
`chat.not-joined`, with Slack's code in `details.slack_error`.
|
|
57
|
+
- **The `api` group answers by the messenger's keys.** A deny on `messages` stops `api conversations history`,
|
|
58
|
+
`replies`, the searches, files, pins, stars and reactions lists too, and those keep `messages list`'s level instead
|
|
59
|
+
of asking; an `api` write still asks. A refusal Slack sends with HTTP 200 is the run's error. An agent never runs an `api` delete, and its
|
|
60
|
+
`messages delete` is refused as a permission. A profile never signed in is named as unknown with the profiles here,
|
|
61
|
+
even when the keyring cannot be read.
|
|
62
|
+
- **`reactions add` takes the emoji itself** (`👍`, `👍🏽`) as well as Slack's name for it (`thumbsup`,
|
|
63
|
+
`thumbsup::skin-tone-4`).
|
|
64
|
+
- **`slk <profile> messages send --reply-to <ts> --also-to-channel`** shows a thread reply in the channel too,
|
|
65
|
+
as Slack's "Also send to #channel".
|
|
66
|
+
- **`search messages` and `search all` ask Slack's own search too.** They read `search.messages` and the local
|
|
67
|
+
copy at once, so a message is found before any sync, with its chat's name. `--backend server` or `archive` asks
|
|
68
|
+
one of them; `chat:` narrows it with Slack's `in:`. It needs the `search:read` scope, which the app manifest
|
|
69
|
+
already asks for.
|
|
70
|
+
- **`config show` lists `thread_window_days`** with its default, 14, and what it does.
|
|
71
|
+
- **`setup` and the README link to Slack's app creation with the manifest filled in.** One click opens
|
|
72
|
+
**Create New App** with slk's scopes; pasting `docs/slack-app-manifest.json` by hand still works.
|
|
73
|
+
- **Sign in with your own Slack app: `slk <profile> session start`.** Make an app in your workspace from
|
|
74
|
+
[the manifest](docs/slack-app-manifest.json), install it, and paste its User OAuth Token (`xoxp-`) at the hidden
|
|
75
|
+
prompt or on stdin. slack checks it with Slack's `auth.test` and keeps it in the system keyring, with the
|
|
76
|
+
workspace and the person it belongs to. A bot token (`xoxb-`) and a rotating one (`xoxe.`) are refused before
|
|
77
|
+
anything is sent: slack reads as you, and cannot renew a token that lasts 12 hours. `session status --check`,
|
|
78
|
+
`session list` and `session end` work as in every WireCat CLI.
|
|
79
|
+
- **`slk doctor --online` asks Slack whose each saved token is,** every profile signed in here under its own name.
|
|
80
|
+
- **`slk <profile> api` reaches Slack's Web API,** one command per method, grouped by Slack's first word:
|
|
81
|
+
`slk <profile> api conversations history --channel <id>`, `slk <profile> api chat post-message --body …`.
|
|
82
|
+
The token goes in the `Authorization: Bearer` header only. Writes go as JSON. `--all` reads every page of the
|
|
83
|
+
methods Slack pages by cursor, and of `files list` by page. A method also asks for the key of the messenger
|
|
84
|
+
command that does the same thing: `messages.delete` for `chat delete`, `messages.edit` for `chat update`,
|
|
85
|
+
`messages.send` for `chat post-message`, `chats.leave` for `conversations leave`, `chats.archive` for
|
|
86
|
+
`conversations archive`, `messages.unpin` for `pins remove`, `reactions.remove` for `reactions remove`. Any other
|
|
87
|
+
delete asks for `slack.delete`. Eleven GETs that send, share or publish (`views publish`, `files remote-share` …)
|
|
88
|
+
count as writes: a read-only profile refuses them, and they are never sent twice. The 15 methods that take only a
|
|
89
|
+
form and the four that answer with a token or a secret link are left out, each with its reason in `slk api show`
|
|
90
|
+
and [API coverage](docs/dev/API_COVERAGE.md).
|
|
91
|
+
|
|
92
|
+
### Changed — may break callers
|
|
93
|
+
|
|
94
|
+
- **Commands Slack cannot do are gone from help, the commands page and MCP.** `chats links show|reset`,
|
|
95
|
+
`chats requests`, `chats admins`, `chats folders`, `account sessions`, `contacts block|unblock` and
|
|
96
|
+
`messages forward` refused when typed; cli-core 0.730.0 now hides them and the groups left empty.
|
|
97
|
+
- **The command is `slk`, with `wcat-slk` beside it**, not `slack`: Slack's own developer CLI installs as `slack`.
|
|
98
|
+
The MCP tools are `slk_read`, `slk_write` and `slk_tools_search`.
|
|
99
|
+
|
|
100
|
+
### Fixed
|
|
101
|
+
|
|
102
|
+
- **`messages list --after` and `messages context` in a busy chat read a few pages, not every message since.** The
|
|
103
|
+
window after the point is halved while it holds too many to read, so 50,000 messages in a day cost 10 calls, not
|
|
104
|
+
51.
|
|
105
|
+
- **A missing scope carries the shared reason `oauth.scope-missing`**, so a refused server search says what to add.
|
|
106
|
+
- **`slk session start` prints its steps with headings, and the app's long link as one short link** in a terminal
|
|
107
|
+
that shows links (GNOME Terminal, iTerm2, kitty, WezTerm, Windows Terminal, VS Code; `FORCE_HYPERLINK=1`
|
|
108
|
+
for another). Elsewhere it prints the full address beside the words.
|
|
109
|
+
- **Signing in no longer needs help.** `slk session start` prints the steps to the token before it asks: why an app of
|
|
110
|
+
your own, the link that makes it, where **Install to Workspace** and the **User OAuth Token** (`xoxp-…`) are, and
|
|
111
|
+
what to do when only an administrator may install apps. `slk <profile> setup`, WireCat Desktop and the README show
|
|
112
|
+
the same steps.
|
|
113
|
+
- **The sign-in ask names `slk`.** It said the manifest "slack" gives.
|
|
114
|
+
- **`slk inbox` answers within a command's 30 seconds**: it asks DMs for 20 seconds at most, then says how many it
|
|
115
|
+
counted, where 40 DMs at Slack's pace took two minutes and the command timed out with nothing.
|
|
116
|
+
- **A server search stops when cli-core's bound ends it.** `search.messages` calls take the search's own stop
|
|
117
|
+
signal, so a slow search no longer spends Slack's pace after its answer is given.
|
|
118
|
+
- **The agent skill names `slk help`.** It said `slack help`.
|
|
119
|
+
- **A stopped `messages sync` keeps the thread replies it read.** Replies come one thread at a time, and cli-core
|
|
120
|
+
0.733.0 saves each thread as it arrives, so a sync killed in a chat with many threads loses at most the thread it was
|
|
121
|
+
reading.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
Copyright (c) 2026 Viacheslav Ptsarev
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Apache License
|
|
5
|
+
Version 2.0, January 2004
|
|
6
|
+
http://www.apache.org/licenses/
|
|
7
|
+
|
|
8
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
9
|
+
|
|
10
|
+
1. Definitions.
|
|
11
|
+
|
|
12
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
13
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
14
|
+
|
|
15
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
16
|
+
the copyright owner that is granting the License.
|
|
17
|
+
|
|
18
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
19
|
+
other entities that control, are controlled by, or are under common
|
|
20
|
+
control with that entity. For the purposes of this definition,
|
|
21
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
22
|
+
direction or management of such entity, whether by contract or
|
|
23
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
24
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
25
|
+
|
|
26
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
27
|
+
exercising permissions granted by this License.
|
|
28
|
+
|
|
29
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
30
|
+
including but not limited to software source code, documentation
|
|
31
|
+
source, and configuration files.
|
|
32
|
+
|
|
33
|
+
"Object" form shall mean any form resulting from mechanical
|
|
34
|
+
transformation or translation of a Source form, including but
|
|
35
|
+
not limited to compiled object code, generated documentation,
|
|
36
|
+
and conversions to other media types.
|
|
37
|
+
|
|
38
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
39
|
+
Object form, made available under the License, as indicated by a
|
|
40
|
+
copyright notice that is included in or attached to the work
|
|
41
|
+
(an example is provided in the Appendix below).
|
|
42
|
+
|
|
43
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
44
|
+
form, that is based on (or derived from) the Work and for which the
|
|
45
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
46
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
47
|
+
of this License, Derivative Works shall not include works that remain
|
|
48
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
49
|
+
the Work and Derivative Works thereof.
|
|
50
|
+
|
|
51
|
+
"Contribution" shall mean any work of authorship, including
|
|
52
|
+
the original version of the Work and any modifications or additions
|
|
53
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
54
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
55
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
56
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
57
|
+
means any form of electronic, verbal, or written communication sent
|
|
58
|
+
to the Licensor or its representatives, including but not limited to
|
|
59
|
+
communication on electronic mailing lists, source code control systems,
|
|
60
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
61
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
62
|
+
excluding communication that is conspicuously marked or otherwise
|
|
63
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
64
|
+
|
|
65
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
66
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
67
|
+
subsequently incorporated within the Work.
|
|
68
|
+
|
|
69
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
70
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
71
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
72
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
73
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
74
|
+
Work and such Derivative Works in Source or Object form.
|
|
75
|
+
|
|
76
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
77
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
78
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
79
|
+
(except as stated in this section) patent license to make, have made,
|
|
80
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
81
|
+
where such license applies only to those patent claims licensable
|
|
82
|
+
by such Contributor that are necessarily infringed by their
|
|
83
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
84
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
85
|
+
institute patent litigation against any entity (including a
|
|
86
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
87
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
88
|
+
or contributory patent infringement, then any patent licenses
|
|
89
|
+
granted to You under this License for that Work shall terminate
|
|
90
|
+
as of the date such litigation is filed.
|
|
91
|
+
|
|
92
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
93
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
94
|
+
modifications, and in Source or Object form, provided that You
|
|
95
|
+
meet the following conditions:
|
|
96
|
+
|
|
97
|
+
(a) You must give any other recipients of the Work or
|
|
98
|
+
Derivative Works a copy of this License; and
|
|
99
|
+
|
|
100
|
+
(b) You must cause any modified files to carry prominent notices
|
|
101
|
+
stating that You changed the files; and
|
|
102
|
+
|
|
103
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
104
|
+
that You distribute, all copyright, patent, trademark, and
|
|
105
|
+
attribution notices from the Source form of the Work,
|
|
106
|
+
excluding those notices that do not pertain to any part of
|
|
107
|
+
the Derivative Works; and
|
|
108
|
+
|
|
109
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
110
|
+
distribution, then any Derivative Works that You distribute must
|
|
111
|
+
include a readable copy of the attribution notices contained
|
|
112
|
+
within such NOTICE file, excluding those notices that do not
|
|
113
|
+
pertain to any part of the Derivative Works, in at least one
|
|
114
|
+
of the following places: within a NOTICE text file distributed
|
|
115
|
+
as part of the Derivative Works; within the Source form or
|
|
116
|
+
documentation, if provided along with the Derivative Works; or,
|
|
117
|
+
within a display generated by the Derivative Works, if and
|
|
118
|
+
wherever such third-party notices normally appear. The contents
|
|
119
|
+
of the NOTICE file are for informational purposes only and
|
|
120
|
+
do not modify the License. You may add Your own attribution
|
|
121
|
+
notices within Derivative Works that You distribute, alongside
|
|
122
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
123
|
+
that such additional attribution notices cannot be construed
|
|
124
|
+
as modifying the License.
|
|
125
|
+
|
|
126
|
+
You may add Your own copyright statement to Your modifications and
|
|
127
|
+
may provide additional or different license terms and conditions
|
|
128
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
129
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
130
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
131
|
+
the conditions stated in this License.
|
|
132
|
+
|
|
133
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
134
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
135
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
136
|
+
this License, without any additional terms or conditions.
|
|
137
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
138
|
+
the terms of any separate license agreement you may have executed
|
|
139
|
+
with Licensor regarding such Contributions.
|
|
140
|
+
|
|
141
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
142
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
143
|
+
except as required for reasonable and customary use in describing the
|
|
144
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
145
|
+
|
|
146
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
147
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
148
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
149
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
150
|
+
implied, including, without limitation, any warranties or conditions
|
|
151
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
152
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
153
|
+
appropriateness of using or redistributing the Work and assume any
|
|
154
|
+
risks associated with Your exercise of permissions under this License.
|
|
155
|
+
|
|
156
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
157
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
158
|
+
unless required by applicable law (such as deliberate and grossly
|
|
159
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
160
|
+
liable to You for damages, including any direct, indirect, special,
|
|
161
|
+
incidental, or consequential damages of any character arising as a
|
|
162
|
+
result of this License or out of the use or inability to use the
|
|
163
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
164
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
165
|
+
other commercial damages or losses), even if such Contributor
|
|
166
|
+
has been advised of the possibility of such damages.
|
|
167
|
+
|
|
168
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
169
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
170
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
171
|
+
or other liability obligations and/or rights consistent with this
|
|
172
|
+
License. However, in accepting such obligations, You may act only
|
|
173
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
174
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
175
|
+
defend, and hold each Contributor harmless for any liability
|
|
176
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
177
|
+
of your accepting any such warranty or additional liability.
|
|
178
|
+
|
|
179
|
+
END OF TERMS AND CONDITIONS
|
|
180
|
+
|
|
181
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
182
|
+
|
|
183
|
+
To apply the Apache License to your work, attach the following
|
|
184
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
185
|
+
replaced with your own identifying information. (Don't include
|
|
186
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
187
|
+
comment syntax for the file format. We also recommend that a
|
|
188
|
+
file or class name and description of purpose be included on the
|
|
189
|
+
same "printed page" as the copyright notice for easier
|
|
190
|
+
identification within third-party archives.
|
|
191
|
+
|
|
192
|
+
Copyright [yyyy] [name of copyright owner]
|
|
193
|
+
|
|
194
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
195
|
+
you may not use this file except in compliance with the License.
|
|
196
|
+
You may obtain a copy of the License at
|
|
197
|
+
|
|
198
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
199
|
+
|
|
200
|
+
Unless required by applicable law or agreed to in writing, software
|
|
201
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
202
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
203
|
+
See the License for the specific language governing permissions and
|
|
204
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,132 @@
|
|
|
1
|
-
#
|
|
1
|
+
# slk: Slack CLI for AI agents
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Read and search your Slack channels, DMs and threads from the terminal, and let Claude Code, Codex or any agent that
|
|
4
|
+
speaks MCP do the same for you. slk signs in as you, with a Slack app you make in your own workspace, so it sees
|
|
5
|
+
what you see and nothing more.
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://github.com/WireCatLabs/slack-cli/blob/main/docs/index.md">Docs</a> ·
|
|
9
|
+
<a href="https://github.com/WireCatLabs/slack-cli/blob/main/docs/installation.md">Install</a> ·
|
|
10
|
+
<a href="https://github.com/WireCatLabs/slack-cli/blob/main/docs/usage.md">Usage</a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
- **Every operation of the Slack Web API is a command.** `slk api list` shows them, each with its own
|
|
14
|
+
flags, help and `--json`.
|
|
15
|
+
- **Your agent gets the same commands as tools.** An MCP server and an agent skill come with it, no second codebase.
|
|
16
|
+
- **You decide what it may change.** Each profile allows, asks or denies each command, and a delete needs a key of
|
|
17
|
+
its own.
|
|
18
|
+
|
|
19
|
+
## What you get
|
|
20
|
+
|
|
21
|
+
Ask your agent about Slack. It finds the right command with `slk commands --json`, runs it, and answers
|
|
22
|
+
from the result. A command it may not run stops with a clear refusal before anything reaches Slack.
|
|
23
|
+
|
|
24
|
+
## Why slk
|
|
25
|
+
|
|
26
|
+
- The token stays in the system keyring, and every command names the profile it uses.
|
|
27
|
+
- Every operation is tested against a strict fake built from the API description, in `src/api.test.ts`.
|
|
28
|
+
- `--dry-run` shows what a write would send, and sends nothing.
|
|
29
|
+
|
|
30
|
+
## Quick start
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
pnpm install
|
|
34
|
+
pnpm build
|
|
35
|
+
node dist/bin/slack.js doctor
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Once it is on npm: `npm install -g @wirecat/slack-cli`, then `slk doctor`. The command is `slk`, and `wcat-slk`
|
|
39
|
+
beside it; not `slack`, which [Slack's own developer CLI](https://docs.slack.dev/tools/slack-cli/) installs. Every command that uses an account
|
|
40
|
+
starts with a profile, a name you choose: `slk personal config show`.
|
|
41
|
+
|
|
42
|
+
## Sign in with your own Slack app
|
|
43
|
+
|
|
44
|
+
Slack lets a program read your messages only through an app installed in your workspace, so you make a small app
|
|
45
|
+
for slk yourself. It takes about three minutes, it belongs to you, and only you use it. An app made in your own
|
|
46
|
+
workspace keeps Slack's full speed for reading history: Slack slows an app another company publishes outside its
|
|
47
|
+
Marketplace to [one read of 15 messages a minute](https://docs.slack.dev/changelog/2025/05/29/rate-limit-changes-for-non-marketplace-apps).
|
|
48
|
+
`slk personal setup` walks you through the same steps one at a time, and `slk personal session start` prints them
|
|
49
|
+
before it asks for the token.
|
|
50
|
+
|
|
51
|
+
1. Sign in to Slack in your browser, in the workspace slk should read: [slack.com/signin](https://slack.com/signin).
|
|
52
|
+
2. Open [Create the app in Slack](https://api.slack.com/apps?new_app=1&manifest_json=%7B%22_metadata%22%3A%7B%22major_version%22%3A2%2C%22minor_version%22%3A1%7D%2C%22display_information%22%3A%7B%22name%22%3A%22WireCat%20slk%22%2C%22description%22%3A%22Your%20own%20Slack%2C%20read%20and%20written%20as%20you%20by%20the%20slk%20CLI%20on%20your%20computer.%22%7D%2C%22oauth_config%22%3A%7B%22scopes%22%3A%7B%22user%22%3A%5B%22channels%3Ahistory%22%2C%22groups%3Ahistory%22%2C%22im%3Ahistory%22%2C%22mpim%3Ahistory%22%2C%22channels%3Aread%22%2C%22groups%3Aread%22%2C%22im%3Aread%22%2C%22mpim%3Aread%22%2C%22users%3Aread%22%2C%22users%3Aread.email%22%2C%22search%3Aread%22%2C%22reactions%3Aread%22%2C%22files%3Aread%22%2C%22pins%3Aread%22%2C%22usergroups%3Aread%22%2C%22chat%3Awrite%22%2C%22reactions%3Awrite%22%2C%22files%3Awrite%22%2C%22pins%3Awrite%22%2C%22channels%3Awrite%22%2C%22groups%3Awrite%22%2C%22im%3Awrite%22%2C%22mpim%3Awrite%22%5D%7D%7D%2C%22settings%22%3A%7B%22org_deploy_enabled%22%3Afalse%2C%22socket_mode_enabled%22%3Afalse%2C%22token_rotation_enabled%22%3Afalse%7D%7D). Slack opens **Create New App** with
|
|
53
|
+
[docs/slack-app-manifest.json](docs/slack-app-manifest.json) filled in. Choose your workspace and click **Next**
|
|
54
|
+
until you see **Create**, then click **Create**. The app asks only for what the commands use: reading channels,
|
|
55
|
+
direct messages, people, files, reactions and pins, searching, and sending as you. If the link does not open the
|
|
56
|
+
form: **Create New App** → **From a manifest** at [api.slack.com/apps](https://api.slack.com/apps), choose the
|
|
57
|
+
workspace, and replace the text there with the file (**Copy raw file** on its GitHub page copies it).
|
|
58
|
+
3. Slack opens the app's **Basic Information** page. Its Client ID, Client Secret, Signing Secret and Verification
|
|
59
|
+
Token are not needed. In the menu on the left, click **OAuth & Permissions**, then **Install to Workspace**, then
|
|
60
|
+
**Allow**. If Slack offers to send a request in place of installing, only an administrator may install apps there:
|
|
61
|
+
send the request, and once they approve it, click **Install to Workspace** again.
|
|
62
|
+
4. Back on **OAuth & Permissions**, under **OAuth Tokens**, copy the **User OAuth Token**. It starts with `xoxp-`.
|
|
63
|
+
Copy only the token that starts with `xoxp-`: slk refuses a bot token (`xoxb-`), which sees only the channels it
|
|
64
|
+
is added to.
|
|
65
|
+
5. Run `slk personal session start` and paste the token at the hidden prompt. slk checks it with Slack
|
|
66
|
+
(`auth.test`) and keeps it in the system keyring.
|
|
67
|
+
|
|
68
|
+
Lost the app's page? Open [api.slack.com/apps](https://api.slack.com/apps) and click **WireCat slk**.
|
|
69
|
+
|
|
70
|
+
`slk doctor --online` asks Slack whose each saved token is. To sign out on this computer, run
|
|
71
|
+
`slk personal session end`. To revoke the token, remove the app from the workspace.
|
|
72
|
+
|
|
73
|
+
## Use it with your agent
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
slk personal mcp add claude-code
|
|
77
|
+
slk skill install
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
`slk personal mcp check` shows the tools your agent gets. `mcp add` refuses a profile whose tools may write
|
|
81
|
+
until you review its permissions and pass `--allow-writes`. `slk personal mcp config` prints the setup for
|
|
82
|
+
any other MCP client.
|
|
83
|
+
|
|
84
|
+
Over MCP nobody is there to answer `ask`, so the agent runs the API's writes and deletes without asking. Each
|
|
85
|
+
one is kept as a run in `slk personal runs list`. To stop that, make the profile read-only with
|
|
86
|
+
`slk personal config set permissions.api readonly`, or refuse one operation with
|
|
87
|
+
`slk personal config set permissions.api.<operation> deny`. `slk api list` names the operations.
|
|
88
|
+
|
|
89
|
+
## What it can do
|
|
90
|
+
|
|
91
|
+
Read your workspace with the same commands as every WireCat messenger CLI:
|
|
92
|
+
|
|
93
|
+
- `slk personal chats list` lists the channels, DMs and group DMs you are in. `chats show '#general'` shows one,
|
|
94
|
+
with its members; a DM also shows its unread count. `chats members list '#general'` lists who is in a channel.
|
|
95
|
+
- `slk personal messages list '#general'` reads recent messages as plain text, with names in place of user ids.
|
|
96
|
+
`messages list '#general' topic:<ts>` reads one thread. `messages show` and `messages context` open one message
|
|
97
|
+
and the messages around it.
|
|
98
|
+
- `slk personal messages download '#general' <ts>` saves a message's files. They come only from
|
|
99
|
+
`files.slack.com`, and the token goes only there.
|
|
100
|
+
- `slk personal messages sync '#general'` saves a channel's history on this computer, with new replies of threads
|
|
101
|
+
up to 14 days old (`thread_window_days`). `slk personal search messages "invoice"` asks Slack's own search and
|
|
102
|
+
that copy at once; `search all` does too, and adds notes and other tools' messages from the copy.
|
|
103
|
+
- `slk personal chats events '#general'` shows who joined or left and what was renamed, from Slack's service
|
|
104
|
+
messages. `slk personal contacts show anna` shows a person.
|
|
105
|
+
- `slk personal messages send '#general' "Ship it"` sends as you. `--reply-to <ts>` answers in the thread, `--md`
|
|
106
|
+
turns Markdown into Slack's formatting, and `--file report.pdf` uploads a file. `messages edit`, `messages delete`,
|
|
107
|
+
`messages pin`, `messages link`, `reactions add` and `chats mark-read`, `chats join` and `chats leave` change what
|
|
108
|
+
you see in Slack and what others see.
|
|
109
|
+
|
|
110
|
+
Slack does not say when a message was deleted, so a message saved by a sync stays saved. A write with no answer from
|
|
111
|
+
Slack exits with `14` and is never sent again by itself: read the chat before you repeat it.
|
|
112
|
+
|
|
113
|
+
[docs/commands.md](docs/commands.md) lists every command, and `--help` after any of them shows its flags.
|
|
114
|
+
|
|
115
|
+
## Settings and permissions
|
|
116
|
+
|
|
117
|
+
`slk personal config show` prints the profile's settings. See [docs/configuration.md](docs/configuration.md).
|
|
118
|
+
|
|
119
|
+
## Security
|
|
120
|
+
|
|
121
|
+
See [docs/security.md](docs/security.md), and [SECURITY.md](SECURITY.md) to report a problem.
|
|
122
|
+
|
|
123
|
+
## When something goes wrong
|
|
124
|
+
|
|
125
|
+
Run `slk doctor` and see [docs/troubleshooting.md](docs/troubleshooting.md). Report a bug on
|
|
126
|
+
[GitHub](https://github.com/WireCatLabs/slack-cli/issues).
|
|
127
|
+
|
|
128
|
+
## Development
|
|
129
|
+
|
|
130
|
+
Started from [cli-template](https://github.com/WireCatLabs/cli-template). Its design is in
|
|
131
|
+
[docs/dev/DESIGN.md](docs/dev/DESIGN.md), and the working rules are in [AGENTS.md](AGENTS.md). Published as
|
|
132
|
+
[@wirecat/slack-cli](https://www.npmjs.com/package/@wirecat/slack-cli).
|