slack-term 1.39.0 → 1.39.2
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 +9 -1
- package/dist/cli.js +166 -158
- package/package.json +1 -1
- package/ts/attachments.ts +71 -0
- package/ts/cli.ts +66 -19
- package/ts/format.ts +15 -0
- package/ts/stdout.ts +59 -0
package/SKILL.md
CHANGED
|
@@ -135,11 +135,14 @@ UTC, and the two are easy to mix up. Check the side you meant before confirming.
|
|
|
135
135
|
member in plain text (honorifics like `山田さん` / `王老师`, or `Hi Dave`) without a
|
|
136
136
|
matching `<@USERID>` tag, it prints `⚠ possible untagged mention: …` alongside the
|
|
137
137
|
confirm code. It never blocks — third-party/external references are expected to trip it.
|
|
138
|
-
|
|
138
|
+
It stays quiet for people Slack notifies anyway: in a thread reply, anyone who started or
|
|
139
|
+
replied in that thread; in a 1:1 DM, the other member. To actually notify someone, write `@handle` (auto-converted to `<@USERID>`; see below).
|
|
139
140
|
|
|
140
141
|
When the target is a **thread**, the confirm preview shows the thread's recent messages
|
|
141
142
|
(not the channel's last message) and prints `⚠ possible duplicate: …` if your text is
|
|
142
143
|
near-identical to an existing reply — so you can avoid re-posting something already said.
|
|
144
|
+
Preview lines mask any 32+ character token-like run (`[A-Za-z0-9_-]`) to its first 4
|
|
145
|
+
characters, so a key someone pasted into the thread or channel is not echoed into your log.
|
|
143
146
|
|
|
144
147
|
`send` also warns (non-blocking) when the destination's most recent message is your own
|
|
145
148
|
and no one has replied since — `⚠ 相手はまだ返信していません…`, suggesting `slack edit`
|
|
@@ -281,6 +284,11 @@ points into one message.
|
|
|
281
284
|
- Attachments show a `📎 <name> (<size>) [<file-id>]` line under the message; `--json`
|
|
282
285
|
adds a `files[]` array (`id`, `name`, `mimetype`, `size`, `url_private_download`,
|
|
283
286
|
`permalink`) only on messages that have attachments. Fetch one with `slack download <file-id>`.
|
|
287
|
+
- Forwarded / shared messages (Slack's "Forward", or a pasted message link) show under the
|
|
288
|
+
comment as `↪ shared message from @<author> in <#C…> · <ts>`, the original text quoted
|
|
289
|
+
with `│`, and its permalink. Legacy bot attachments show as `▸ <title>`; web-page link
|
|
290
|
+
previews are left out. `--json` adds `attachments[]` (`shared`, `unfurl`, `author_id`,
|
|
291
|
+
`author_name`, `channel_id`, `ts`, `title`, `text`, `permalink`) only when present.
|
|
284
292
|
|
|
285
293
|
## Getting a Slack token (first-time setup)
|
|
286
294
|
|