claudish 9.2.0 → 9.2.1
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 +35 -39
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -715,7 +715,7 @@ var init_onepassword_config = __esm(() => {
|
|
|
715
715
|
});
|
|
716
716
|
|
|
717
717
|
// src/version.ts
|
|
718
|
-
var VERSION = "9.2.
|
|
718
|
+
var VERSION = "9.2.1";
|
|
719
719
|
|
|
720
720
|
// src/logger.ts
|
|
721
721
|
import { appendFile, existsSync as existsSync2, mkdirSync, readdirSync, unlinkSync, writeFileSync as writeFileSync2 } from "fs";
|
|
@@ -33599,6 +33599,26 @@ data: ${JSON.stringify(data)}
|
|
|
33599
33599
|
}
|
|
33600
33600
|
openToolBlocks.clear();
|
|
33601
33601
|
};
|
|
33602
|
+
const endTurnWithText = (text) => {
|
|
33603
|
+
const idx = curIdx++;
|
|
33604
|
+
send("content_block_start", {
|
|
33605
|
+
type: "content_block_start",
|
|
33606
|
+
index: idx,
|
|
33607
|
+
content_block: { type: "text", text: "" }
|
|
33608
|
+
});
|
|
33609
|
+
send("content_block_delta", {
|
|
33610
|
+
type: "content_block_delta",
|
|
33611
|
+
index: idx,
|
|
33612
|
+
delta: { type: "text_delta", text }
|
|
33613
|
+
});
|
|
33614
|
+
send("content_block_stop", { type: "content_block_stop", index: idx });
|
|
33615
|
+
send("message_delta", {
|
|
33616
|
+
type: "message_delta",
|
|
33617
|
+
delta: { stop_reason: "end_turn", stop_sequence: null },
|
|
33618
|
+
usage: { input_tokens: inputTokens, output_tokens: outputTokens }
|
|
33619
|
+
});
|
|
33620
|
+
send("message_stop", { type: "message_stop" });
|
|
33621
|
+
};
|
|
33602
33622
|
send("message_start", {
|
|
33603
33623
|
type: "message_start",
|
|
33604
33624
|
message: {
|
|
@@ -33809,24 +33829,7 @@ data: ${JSON.stringify(data)}
|
|
|
33809
33829
|
|
|
33810
33830
|
[Context limit reached] This model's backend enforces a smaller context window${cap} than its API spec. ` + "Run /clear to start fresh (/compact will also fail \u2014 it re-sends the full conversation), " + `or route the model via \`oai@${opts.modelName}\` to use the full-size window.`;
|
|
33811
33831
|
}
|
|
33812
|
-
|
|
33813
|
-
send("content_block_start", {
|
|
33814
|
-
type: "content_block_start",
|
|
33815
|
-
index: errorIdx,
|
|
33816
|
-
content_block: { type: "text", text: "" }
|
|
33817
|
-
});
|
|
33818
|
-
send("content_block_delta", {
|
|
33819
|
-
type: "content_block_delta",
|
|
33820
|
-
index: errorIdx,
|
|
33821
|
-
delta: { type: "text_delta", text: errorText }
|
|
33822
|
-
});
|
|
33823
|
-
send("content_block_stop", { type: "content_block_stop", index: errorIdx });
|
|
33824
|
-
send("message_delta", {
|
|
33825
|
-
type: "message_delta",
|
|
33826
|
-
delta: { stop_reason: "end_turn", stop_sequence: null },
|
|
33827
|
-
usage: { input_tokens: inputTokens, output_tokens: outputTokens }
|
|
33828
|
-
});
|
|
33829
|
-
send("message_stop", { type: "message_stop" });
|
|
33832
|
+
endTurnWithText(errorText);
|
|
33830
33833
|
isClosed = true;
|
|
33831
33834
|
if (pingInterval) {
|
|
33832
33835
|
clearInterval(pingInterval);
|
|
@@ -33877,27 +33880,19 @@ data: ${JSON.stringify(data)}
|
|
|
33877
33880
|
try {
|
|
33878
33881
|
closeReasoning();
|
|
33879
33882
|
closeText();
|
|
33883
|
+
const toolCallCutOff = openToolBlocks.size > 0;
|
|
33880
33884
|
closeTools();
|
|
33881
|
-
|
|
33882
|
-
|
|
33883
|
-
|
|
33884
|
-
|
|
33885
|
-
|
|
33886
|
-
|
|
33887
|
-
|
|
33888
|
-
|
|
33889
|
-
index: errorIdx,
|
|
33890
|
-
delta: { type: "text_delta", text: `
|
|
33885
|
+
if (toolCallCutOff) {
|
|
33886
|
+
log("[ResponsesSSE] tool arguments cut off mid-stream \u2192 error event");
|
|
33887
|
+
send("error", {
|
|
33888
|
+
type: "error",
|
|
33889
|
+
error: { type: "api_error", message: `Stream error: ${error}` }
|
|
33890
|
+
});
|
|
33891
|
+
} else {
|
|
33892
|
+
endTurnWithText(`
|
|
33891
33893
|
|
|
33892
|
-
[Stream error: ${error}]`
|
|
33893
|
-
}
|
|
33894
|
-
send("content_block_stop", { type: "content_block_stop", index: errorIdx });
|
|
33895
|
-
send("message_delta", {
|
|
33896
|
-
type: "message_delta",
|
|
33897
|
-
delta: { stop_reason: "end_turn", stop_sequence: null },
|
|
33898
|
-
usage: { input_tokens: inputTokens, output_tokens: outputTokens }
|
|
33899
|
-
});
|
|
33900
|
-
send("message_stop", { type: "message_stop" });
|
|
33894
|
+
[Stream error: ${error}]`);
|
|
33895
|
+
}
|
|
33901
33896
|
} catch {}
|
|
33902
33897
|
isClosed = true;
|
|
33903
33898
|
if (opts.onTokenUpdate)
|
|
@@ -69417,7 +69412,8 @@ Team Status`);
|
|
|
69417
69412
|
}
|
|
69418
69413
|
const rawArgs = process.argv.slice(2);
|
|
69419
69414
|
const explicitNoAutoApprove = rawArgs.includes("--no-auto-approve");
|
|
69420
|
-
|
|
69415
|
+
const explicitAutoApprove = rawArgs.includes("-y") || rawArgs.includes("--auto-approve");
|
|
69416
|
+
if (cliConfig.autoApprove && !explicitNoAutoApprove && !explicitAutoApprove && !cliConfig.stdin && cliConfig.interactive) {
|
|
69421
69417
|
await Promise.resolve().then(() => init_profile_config());
|
|
69422
69418
|
try {
|
|
69423
69419
|
const cfg = loadConfig();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.1",
|
|
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": "9.2.
|
|
64
|
-
"@claudish/magmux-darwin-x64": "9.2.
|
|
65
|
-
"@claudish/magmux-linux-arm64": "9.2.
|
|
66
|
-
"@claudish/magmux-linux-x64": "9.2.
|
|
63
|
+
"@claudish/magmux-darwin-arm64": "9.2.1",
|
|
64
|
+
"@claudish/magmux-darwin-x64": "9.2.1",
|
|
65
|
+
"@claudish/magmux-linux-arm64": "9.2.1",
|
|
66
|
+
"@claudish/magmux-linux-x64": "9.2.1"
|
|
67
67
|
},
|
|
68
68
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
69
69
|
"license": "MIT",
|