blits-bridge 0.1.8 → 0.1.9

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/bridge.js +3 -2
  2. package/package.json +1 -1
package/dist/bridge.js CHANGED
@@ -110,6 +110,7 @@ class BlitsBridge {
110
110
  '-p',
111
111
  '--output-format', 'stream-json',
112
112
  '--verbose',
113
+ '--include-partial-messages',
113
114
  '--model', payload.model,
114
115
  '--no-session-persistence',
115
116
  '--effort', payload.effort || 'low',
@@ -207,7 +208,7 @@ class BlitsBridge {
207
208
  });
208
209
  }
209
210
  processStreamEvent(requestId, event, _currentText) {
210
- // Send stream chunks to server
211
+ // Send stream chunks to server for both full and partial assistant messages
211
212
  if (event.type === 'assistant') {
212
213
  const text = event.message?.content
213
214
  ?.filter((c) => c.type === 'text')
@@ -218,7 +219,7 @@ class BlitsBridge {
218
219
  id: requestId,
219
220
  type: 'claude_api_stream',
220
221
  text,
221
- done: false,
222
+ done: event.message?.stop_reason === 'end_turn',
222
223
  });
223
224
  }
224
225
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blits-bridge",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Bridge between Blits platform and local Claude CLI. Runs Claude API calls through your subscription.",
5
5
  "bin": {
6
6
  "blits-bridge": "./dist/cli.js"