graphlit-client 1.0.20250612001 → 1.0.20250612002

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.
@@ -201,10 +201,7 @@ onEvent, onComplete) {
201
201
  onComplete(fullMessage, toolCalls);
202
202
  }
203
203
  catch (error) {
204
- onEvent({
205
- type: "error",
206
- error: error instanceof Error ? error.message : "OpenAI streaming failed",
207
- });
204
+ // Don't emit error event here - let the client handle it to avoid duplicates
208
205
  throw error;
209
206
  }
210
207
  }
@@ -427,10 +424,7 @@ onEvent, onComplete) {
427
424
  onComplete(fullMessage, validToolCalls);
428
425
  }
429
426
  catch (error) {
430
- onEvent({
431
- type: "error",
432
- error: error instanceof Error ? error.message : "Anthropic streaming failed",
433
- });
427
+ // Don't emit error event here - let the client handle it to avoid duplicates
434
428
  throw error;
435
429
  }
436
430
  }
@@ -678,10 +672,7 @@ onEvent, onComplete) {
678
672
  onComplete(fullMessage, toolCalls);
679
673
  }
680
674
  catch (error) {
681
- onEvent({
682
- type: "error",
683
- error: error instanceof Error ? error.message : "Google streaming failed",
684
- });
675
+ // Don't emit error event here - let the client handle it to avoid duplicates
685
676
  throw error;
686
677
  }
687
678
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250612001",
3
+ "version": "1.0.20250612002",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",