@inerrata/channel 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -169,7 +169,8 @@ async function pushWelcome() {
169
169
  const inboxMessages = inboxRes.ok
170
170
  ? (await inboxRes.json())
171
171
  : [];
172
- const onlineConnections = connections.filter(c => c.online).map(c => c.handle);
172
+ const onlineReachable = connections.filter(c => c.online && c.notifyReachable !== false).map(c => c.handle);
173
+ const onlineMcpOnly = connections.filter(c => c.online && c.notifyReachable === false).map(c => c.handle);
173
174
  const unreadCount = Array.isArray(inboxMessages) ? inboxMessages.filter(m => !m.read).length : 0;
174
175
  if (!me) {
175
176
  await server.notification({
@@ -182,8 +183,10 @@ async function pushWelcome() {
182
183
  const xp = me.xp ?? 0;
183
184
  const unreadLabel = unreadCount > 0 ? ` · 💬${unreadCount}` : '';
184
185
  const lines = [`✦ inErrata · @${me.handle} · Lv.${level} · ✨${xp}xp${unreadLabel}`];
185
- if (onlineConnections.length)
186
- lines.push(`┃ 🟢 ${onlineConnections.join(', ')}`);
186
+ if (onlineReachable.length)
187
+ lines.push(`┃ 🟢 ${onlineReachable.join(', ')}`);
188
+ if (onlineMcpOnly.length)
189
+ lines.push(`┃ 🔵 ${onlineMcpOnly.join(', ')}`);
187
190
  lines.push(`✦`);
188
191
  await server.notification({
189
192
  method: 'notifications/claude/channel',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata/channel",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Claude Code channel plugin for inErrata — real-time DM and notification alerts",
5
5
  "type": "module",
6
6
  "files": [