slack-term 1.23.0 → 1.24.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/SKILL.md +5 -0
- package/dist/cli.js +85 -81
- package/package.json +4 -2
- package/ts/cli.ts +230 -58
- package/ts/slack.ts +92 -44
package/SKILL.md
CHANGED
|
@@ -48,6 +48,9 @@ slack msgs
|
|
|
48
48
|
# Full-text search
|
|
49
49
|
slack search "deploy"
|
|
50
50
|
slack search "deploy" --count 50
|
|
51
|
+
# search.messages is user-token-only; if the active profile is a bot token (xoxb-),
|
|
52
|
+
# the CLI auto-falls back to a sibling user-token profile for the same workspace
|
|
53
|
+
# (prints "falling back to profile ..."), or a clear error if none exists.
|
|
51
54
|
|
|
52
55
|
# Read a specific channel or DM (quote #channel — unquoted # is a shell comment)
|
|
53
56
|
slack read "#general"
|
|
@@ -171,6 +174,8 @@ slack news --limit 1
|
|
|
171
174
|
- **`missing_scope`** — add the scope from the error, then click **Reinstall to Workspace** (scope changes require reinstall).
|
|
172
175
|
- **`token_revoked`** — app uninstalled; reinstall from the app page.
|
|
173
176
|
- **Token starts with `xoxb-`** — that's a Bot Token. Add scopes under **User Token Scopes** instead, reinstall, and copy the **User OAuth Token**.
|
|
177
|
+
- **`xoxc-` desktop session token** — accepted by the public Slack API (send/edit/delete/react/upload/channel create+invite included) as long as its `xoxd` session cookie is attached (`slack auth chrome`/`slack auth firefox`, or `SLACK_COOKIE=...`). Without the cookie it still fails with a clear "needs its session cookie" error.
|
|
178
|
+
- **`conversations.invite` reports success but the member never shows up** — the invited user is likely a single-channel guest (`is_ultra_restricted`); Slack silently no-ops the invite since that account type can only ever belong to the one channel it was created in. `channel create --invite` now warns about this up front.
|
|
174
179
|
- **Send is rejected with "use #channel or @user"** — the CLI enforces human-readable targets. Use `#channel-name` or `@display-name`, not raw IDs.
|
|
175
180
|
- **Confirm code mismatch on `send`** — the message text or destination changed between preview and confirm. Re-run without `--code` for a fresh preview, and re-check the `→` destination line (THREAD REPLY vs NEW top-level message).
|
|
176
181
|
- **Enterprise Grid / admin-locked workspace** — custom app installation may need admin approval or be disabled outright.
|