@mnemom/mnemom 0.17.2-next.8 → 0.17.2-next.9
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/dist/lib/slack-router.js +3 -1
- package/package.json +1 -1
package/dist/lib/slack-router.js
CHANGED
|
@@ -104,7 +104,9 @@ export async function runRouter(opts) {
|
|
|
104
104
|
const hint = live.length
|
|
105
105
|
? `No live session matched. Address one as \`@<app> <session>: …\` — live now: ${live.map((s) => `\`${s}\``).join(", ")}.`
|
|
106
106
|
: "No agent session is listening right now.";
|
|
107
|
-
|
|
107
|
+
// Ephemeral: only the sender sees the hint, so a mistyped address never
|
|
108
|
+
// leaves a permanent post in the thread for everyone else.
|
|
109
|
+
await slackCall("chat.postEphemeral", opts.botToken, { channel: ev.channel, user: ev.user, thread_ts: ev.thread_ts ?? ev.ts, text: hint }, fetchImpl).catch(() => undefined);
|
|
108
110
|
}
|
|
109
111
|
return;
|
|
110
112
|
}
|