@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.
- package/dist/index.js +6 -3
- 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
|
|
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 (
|
|
186
|
-
lines.push(`┃ 🟢 ${
|
|
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',
|