llm-stream-assemble 1.5.5 → 1.5.7

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/README.md +16 -5
  2. package/package.json +34 -5
package/README.md CHANGED
@@ -1,19 +1,19 @@
1
1
  # llm-stream-assemble
2
2
 
3
- ![core](https://img.shields.io/badge/core-1.5.5-blue)
3
+ ![core](https://img.shields.io/badge/core-1.5.7-blue)
4
4
  ![node](https://img.shields.io/badge/node-%3E%3D18-339933)
5
5
  ![runtime deps](https://img.shields.io/badge/runtime_deps-0-brightgreen)
6
- ![tests](https://img.shields.io/badge/tests-1477_passing-brightgreen)
6
+ ![tests](https://img.shields.io/badge/tests-1637_passing-brightgreen)
7
7
  [![ci](https://github.com/01laky/llm-stream-assemble/actions/workflows/ci.yml/badge.svg)](https://github.com/01laky/llm-stream-assemble/actions/workflows/ci.yml)
8
- ![status](https://img.shields.io/badge/status-stable_1.5.5-brightgreen)
8
+ ![status](https://img.shields.io/badge/status-stable_1.5.7-brightgreen)
9
9
 
10
10
  **One typed event model for every LLM stream** — text, tool calls, reasoning, JSON, usage, refusals, errors, and non-streaming responses.
11
11
 
12
- > A zero-dependency TypeScript layer between raw LLM provider bytes and your app: seven built-in adapters, thirteen host presets, and a single StreamEvent model for text, tools, reasoning, JSON, and lifecycle — from Ollama to Azure to Bedrock to Cohere to Cloudflare Workers AI.
12
+ > A composable TypeScript layer between raw LLM provider bytes and your app: seven built-in adapters, thirteen host presets, and a single StreamEvent model for text, tools, reasoning, JSON, and lifecycle — from Ollama to Azure to Vertex AI to Bedrock to Cohere to Cloudflare Workers AI.
13
13
 
14
14
  Turn provider SSE fragments into typed events — **not another `+=` loop**.
15
15
 
16
- **Status:** Stable `1.5.5`. Seven built-in adapters (Gemini covers **Google AI** and **Vertex AI** via `apiSurface`), thirteen OpenAI-compatible host presets (including **Azure OpenAI** and **Cloudflare Workers AI**), transforms, replay helpers, and examples are production-ready. Pin semver ranges as usual and review [CHANGELOG.md](./CHANGELOG.md) before major upgrades.
16
+ **Status:** Stable `1.5.7`. Seven built-in adapters (Gemini covers **Google AI** and **Vertex AI** via `apiSurface`), thirteen OpenAI-compatible host presets (including **Azure OpenAI** and **Cloudflare Workers AI**), transforms, replay helpers, and examples are production-ready. Pin semver ranges as usual and review [CHANGELOG.md](./CHANGELOG.md) before major upgrades.
17
17
 
18
18
  ---
19
19
 
@@ -161,6 +161,17 @@ pnpm add llm-stream-assemble
161
161
 
162
162
  **Requirements:** Node.js 18+
163
163
 
164
+ ## Runtimes
165
+
166
+ | Runtime | Support | Notes |
167
+ | ---------------------- | ------- | ------------------------------------------------------------------------------------------ |
168
+ | **Node.js 18+** | Primary | CI on LTS 18, 20, 22 — [compatibility matrix](./docs/compatibility.md) |
169
+ | **Bun** | Smoke | `ReadableStream` + npm package import |
170
+ | **Deno** | Smoke | `npm:llm-stream-assemble` specifiers |
171
+ | **Cloudflare Workers** | Smoke | `TransformStream` proxy patterns in [integration cookbook](./docs/integration-cookbook.md) |
172
+
173
+ Full matrix and caveats: [post-1.0 provider roadmap — Runtime support](./docs/post-1.0-provider-roadmap.md#runtime-support-matrix).
174
+
164
175
  ---
165
176
 
166
177
  ## First success in 30 seconds
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "llm-stream-assemble",
3
- "version": "1.5.5",
4
- "description": "Zero-dependency TypeScript stream assembly for OpenAI, Anthropic, Gemini, AWS Bedrock, Cohere, and OpenAI-compatible LLM APIs — unified StreamEvent model for text, tools, reasoning, JSON, usage, and non-streaming responses.",
3
+ "version": "1.5.7",
4
+ "description": "Composable TypeScript stream assembly for OpenAI, Anthropic, Gemini (Google AI + Vertex AI), AWS Bedrock, Cohere, and OpenAI-compatible LLM APIs — unified StreamEvent model for text, tools, reasoning, JSON, usage, and non-streaming responses.",
5
5
  "license": "MIT",
6
6
  "author": "Ladislav Kostolny <01laky@gmail.com>",
7
7
  "type": "module",
@@ -89,6 +89,7 @@
89
89
  "smoke:cloudflare": "node scripts/live-smoke/cloudflare-workers-ai-compatible.mjs",
90
90
  "smoke:bedrock": "node scripts/live-smoke/bedrock-converse.mjs",
91
91
  "smoke:cohere": "node scripts/live-smoke/cohere-chat.mjs",
92
+ "smoke:gemini": "node scripts/live-smoke/gemini.mjs",
92
93
  "smoke:vertex": "node scripts/live-smoke/vertex-gemini.mjs",
93
94
  "release:prep": "node scripts/release-prep.mjs",
94
95
  "diagrams:build": "node scripts/build-diagrams.mjs",
@@ -96,23 +97,51 @@
96
97
  },
97
98
  "keywords": [
98
99
  "llm",
100
+ "llm-stream",
99
101
  "streaming",
102
+ "stream-assembly",
103
+ "stream-events",
104
+ "stream-parser",
100
105
  "sse",
101
106
  "sse-parser",
102
- "stream-assembly",
107
+ "server-sent-events",
108
+ "jsonl",
109
+ "event-stream",
110
+ "typescript",
111
+ "composable",
103
112
  "openai",
113
+ "openai-compatible",
114
+ "openai-responses",
115
+ "chat-completions",
104
116
  "anthropic",
117
+ "messages-api",
105
118
  "gemini",
106
119
  "google",
120
+ "google-ai",
121
+ "google-cloud",
122
+ "vertex-ai",
123
+ "vertex",
124
+ "azure-openai",
107
125
  "bedrock",
108
126
  "aws-bedrock",
127
+ "converse-stream",
109
128
  "cohere",
110
129
  "ollama",
111
130
  "groq",
131
+ "deepseek",
132
+ "perplexity",
133
+ "xai",
134
+ "mistral",
135
+ "together",
136
+ "fireworks",
137
+ "deepinfra",
138
+ "cloudflare-workers",
112
139
  "structured-output",
140
+ "json-mode",
141
+ "reasoning",
113
142
  "tool-calling",
114
- "server-sent-events",
115
- "cloudflare-workers"
143
+ "tool-use",
144
+ "function-calling"
116
145
  ],
117
146
  "repository": {
118
147
  "type": "git",