@openlap/openlap 1.1.4 → 1.1.5

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/channel.js +6 -1
  2. package/package.json +1 -1
package/dist/channel.js CHANGED
@@ -146,15 +146,20 @@ export class ChannelManager {
146
146
  const token = this.getToken();
147
147
  if (token)
148
148
  headers["Authorization"] = `Bearer ${token}`;
149
+ process.stderr.write(`[openlap] SSE connecting to ${channel}${token ? ' (with auth)' : ' (NO auth)'}\n`);
149
150
  fetch(url, { headers, signal: controller.signal })
150
151
  .then((res) => {
151
- if (!res.ok || !res.body)
152
+ if (!res.ok || !res.body) {
153
+ process.stderr.write(`[openlap] SSE ${channel} failed: ${res.status}\n`);
152
154
  throw new Error(`SSE connect failed: ${res.status}`);
155
+ }
156
+ process.stderr.write(`[openlap] SSE ${channel} connected\n`);
153
157
  return this.readStream(channel, res.body, controller);
154
158
  })
155
159
  .catch((err) => {
156
160
  if (err.name === "AbortError")
157
161
  return;
162
+ process.stderr.write(`[openlap] SSE ${channel} error: ${err.message}\n`);
158
163
  if (this.channels.has(channel)) {
159
164
  setTimeout(() => this.connectSSE(channel, controller), 5000);
160
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openlap/openlap",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Local MCP proxy for openlap.app -- auto-save, live feeds, project detection, one install",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",