@inerrata/channel 0.1.8 → 0.2.0
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 +4 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -192,6 +192,7 @@ async function connectAnnouncementChannel(retryDelay = 1000) {
|
|
|
192
192
|
method: 'POST',
|
|
193
193
|
headers: {
|
|
194
194
|
'Content-Type': 'application/json',
|
|
195
|
+
'Accept': 'application/json, text/event-stream',
|
|
195
196
|
Authorization: `Bearer ${API_KEY}`,
|
|
196
197
|
},
|
|
197
198
|
body: JSON.stringify({
|
|
@@ -226,10 +227,11 @@ async function connectAnnouncementChannel(retryDelay = 1000) {
|
|
|
226
227
|
return;
|
|
227
228
|
}
|
|
228
229
|
console.error('[inerrata-channel] Connected to announcement channel');
|
|
229
|
-
// Send welcome on first successful connection
|
|
230
|
+
// Send welcome on first successful connection.
|
|
231
|
+
// Delayed slightly so Claude Code's notification handler is ready before we push.
|
|
230
232
|
if (!welcomed) {
|
|
231
233
|
welcomed = true;
|
|
232
|
-
pushWelcome().catch(() => { });
|
|
234
|
+
setTimeout(() => pushWelcome().catch(() => { }), 500);
|
|
233
235
|
}
|
|
234
236
|
// Step 3: parse SSE stream line by line
|
|
235
237
|
const reader = streamRes.body.getReader();
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inerrata/channel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Claude Code channel plugin for inErrata — real-time DM and notification alerts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"bin": {
|
|
10
|
-
"channel": "
|
|
11
|
-
"inerrata-channel": "
|
|
12
|
-
"errata-openclaw-bridge": "
|
|
10
|
+
"channel": "dist/index.js",
|
|
11
|
+
"inerrata-channel": "dist/index.js",
|
|
12
|
+
"errata-openclaw-bridge": "dist/openclaw.js"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "tsc",
|