graphlit-client 1.0.20250611011 → 1.0.20250611012

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/package.json +8 -2
  2. package/CHANGELOG.md +0 -64
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250611011",
3
+ "version": "1.0.20250611012",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",
7
7
  "types": "./dist/client.d.ts",
8
- "exports": "./dist/client.js",
8
+ "exports": {
9
+ ".": "./dist/client.js",
10
+ "./generated/*": "./dist/generated/*.js"
11
+ },
12
+ "files": [
13
+ "dist"
14
+ ],
9
15
  "repository": {
10
16
  "type": "git",
11
17
  "url": "git+https://github.com/graphlit/graphlit-client-typescript.git"
package/CHANGELOG.md DELETED
@@ -1,64 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to the Graphlit TypeScript Client will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [1.1.0] - 2025-01-06
9
-
10
- ### Added
11
- - **Real-time streaming support** with the new `streamAgent` method
12
- - Native streaming integration with OpenAI, Anthropic, and Google Gemini models
13
- - Automatic fallback to regular API calls when streaming providers are not available
14
- - UI-optimized event stream with automatic message accumulation
15
- - Support for tool calling during streaming conversations
16
- - Configurable chunking strategies (character, word, sentence)
17
- - Smooth streaming with configurable delays to prevent UI flicker
18
-
19
- - **Custom LLM client support**
20
- - `setOpenAIClient()` method to use custom OpenAI instances
21
- - `setAnthropicClient()` method to use custom Anthropic instances
22
- - `setGoogleClient()` method to use custom Google Generative AI instances
23
- - Support for proxy configurations and custom endpoints
24
-
25
- - **Enhanced streaming features**
26
- - AbortController support for cancelling ongoing streams
27
- - Conversation continuity - continue streaming in existing conversations
28
- - Comprehensive error handling with recoverable error detection
29
- - Tool execution with streaming responses
30
- - Real-time token-by-token updates
31
-
32
- - **New TypeScript types**
33
- - `UIStreamEvent` - High-level streaming events for UI integration
34
- - `StreamEvent` - Low-level streaming events for fine control
35
- - `StreamAgentOptions` - Configuration options for streaming
36
- - `ToolHandler` - Type-safe tool handler functions
37
- - `AgentResult`, `ToolCallResult`, `UsageInfo` - Supporting types
38
-
39
- ### Changed
40
- - LLM client libraries (openai, @anthropic-ai/sdk, @google/generative-ai) are now optional peer dependencies
41
- - Improved TypeScript typing throughout the codebase
42
- - Enhanced error messages for better debugging
43
-
44
- ### Fixed
45
- - Message formatting issues with trailing whitespace
46
- - Tool calling message role assignment
47
- - Conversation history handling in streaming mode
48
- - Pre-aborted signal handling
49
- - Google Gemini streaming text completeness
50
-
51
- ### Technical Improvements
52
- - Queue-based chunk emission for consistent streaming behavior
53
- - Unicode-aware text segmentation using Intl.Segmenter
54
- - Proper cleanup of resources in test suites
55
- - Comprehensive test coverage for streaming functionality
56
-
57
- ## [1.0.0] - Previous Release
58
-
59
- ### Initial Features
60
- - GraphQL client for Graphlit API
61
- - Support for all Graphlit operations (content, conversations, specifications, etc.)
62
- - JWT-based authentication
63
- - Environment variable configuration
64
- - TypeScript support with generated types