blits-bridge 0.1.7 → 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.
- package/dist/bridge.js +3 -2
- package/dist/cli.js +2 -1
- 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:
|
|
222
|
+
done: event.message?.stop_reason === 'end_turn',
|
|
222
223
|
});
|
|
223
224
|
}
|
|
224
225
|
}
|
package/dist/cli.js
CHANGED
|
@@ -45,7 +45,8 @@ async function main() {
|
|
|
45
45
|
console.error(' Получите токен на train.blits.app/settings');
|
|
46
46
|
process.exit(1);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
const pkg = require('../package.json');
|
|
49
|
+
console.log(`🔗 Blits Bridge v${pkg.version}`);
|
|
49
50
|
console.log('');
|
|
50
51
|
// Step 1: Check Claude CLI auth
|
|
51
52
|
const auth = new auth_1.ClaudeAuth();
|