@gonzih/cc-discord 0.1.12 → 0.1.13

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.
Files changed (2) hide show
  1. package/dist/notifier.js +3 -6
  2. package/package.json +1 -1
package/dist/notifier.js CHANGED
@@ -202,12 +202,9 @@ export function startNotifier(bot, notifyChannelId, namespace, redis, handleUser
202
202
  const content = parsed.content;
203
203
  if (!content)
204
204
  return;
205
- // For the primary namespace, fall back to notifyChannelId / getActiveChannelId.
206
- // For any other namespace, ONLY use the registered channelId never fall back to
207
- // the primary channel, as that would cause cross-namespace leakage.
208
- const targetChannelId = ns === namespace
209
- ? (routedChannelIds.get(ns) ?? notifyChannelId ?? getActiveChannelId?.())
210
- : routedChannelIds.get(ns);
205
+ // Only forward to Discord for explicitly routed namespaces.
206
+ // Primary namespace (money-brain) chat output belongs to Telegramcc-tg handles that.
207
+ const targetChannelId = routedChannelIds.get(ns);
211
208
  if (targetChannelId == null) {
212
209
  log("warn", `meta-agent output: no channelId for namespace=${ns}, dropping line`);
213
210
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonzih/cc-discord",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Claude Code Discord bot — chat with Claude Code via Discord",
5
5
  "type": "module",
6
6
  "bin": {