claudish 7.12.6 → 7.12.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.
- package/dist/index.js +8 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -581,7 +581,7 @@ var init_onepassword_config = __esm(() => {
|
|
|
581
581
|
});
|
|
582
582
|
|
|
583
583
|
// src/version.ts
|
|
584
|
-
var VERSION = "7.12.
|
|
584
|
+
var VERSION = "7.12.7";
|
|
585
585
|
|
|
586
586
|
// src/logger.ts
|
|
587
587
|
var exports_logger = {};
|
|
@@ -38149,6 +38149,7 @@ function createResponsesStreamHandler(c, response, opts) {
|
|
|
38149
38149
|
let textIdx = -1;
|
|
38150
38150
|
let reasoningIdx = -1;
|
|
38151
38151
|
let lastSummaryIndex = -1;
|
|
38152
|
+
let incompleteReason = null;
|
|
38152
38153
|
let inputTokens = 0;
|
|
38153
38154
|
let outputTokens = 0;
|
|
38154
38155
|
let hasToolUse = false;
|
|
@@ -38319,7 +38320,8 @@ data: ${JSON.stringify(data)}
|
|
|
38319
38320
|
}
|
|
38320
38321
|
}
|
|
38321
38322
|
} else if (event.type === "response.incomplete") {
|
|
38322
|
-
|
|
38323
|
+
incompleteReason = event.response?.incomplete_details?.reason ?? event.reason ?? "unknown";
|
|
38324
|
+
log(`[ResponsesSSE] Response incomplete: ${incompleteReason}`);
|
|
38323
38325
|
if (event.response?.usage) {
|
|
38324
38326
|
inputTokens = event.response.usage.input_tokens || inputTokens;
|
|
38325
38327
|
outputTokens = event.response.usage.output_tokens || outputTokens;
|
|
@@ -38382,7 +38384,10 @@ data: ${JSON.stringify(data)}
|
|
|
38382
38384
|
closeReasoning();
|
|
38383
38385
|
closeText();
|
|
38384
38386
|
closeTools();
|
|
38385
|
-
const stopReason = hasToolUse ? "tool_use" : "end_turn";
|
|
38387
|
+
const stopReason = incompleteReason ? incompleteReason === "content_filter" ? "refusal" : "max_tokens" : hasToolUse ? "tool_use" : "end_turn";
|
|
38388
|
+
if (incompleteReason) {
|
|
38389
|
+
log(`[ResponsesSSE] Truncated response (${incompleteReason}) \u2192 stop_reason=${stopReason}`);
|
|
38390
|
+
}
|
|
38386
38391
|
send("message_delta", {
|
|
38387
38392
|
type: "message_delta",
|
|
38388
38393
|
delta: { stop_reason: stopReason, stop_sequence: null },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "7.12.
|
|
3
|
+
"version": "7.12.7",
|
|
4
4
|
"description": "Run Claude Code with any model - OpenRouter, Ollama, LM Studio & local models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"ai"
|
|
61
61
|
],
|
|
62
62
|
"optionalDependencies": {
|
|
63
|
-
"@claudish/magmux-darwin-arm64": "7.12.
|
|
64
|
-
"@claudish/magmux-darwin-x64": "7.12.
|
|
65
|
-
"@claudish/magmux-linux-arm64": "7.12.
|
|
66
|
-
"@claudish/magmux-linux-x64": "7.12.
|
|
63
|
+
"@claudish/magmux-darwin-arm64": "7.12.7",
|
|
64
|
+
"@claudish/magmux-darwin-x64": "7.12.7",
|
|
65
|
+
"@claudish/magmux-linux-arm64": "7.12.7",
|
|
66
|
+
"@claudish/magmux-linux-x64": "7.12.7"
|
|
67
67
|
},
|
|
68
68
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
69
69
|
"license": "MIT",
|