claudish 7.12.6 → 7.13.0
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/AI_AGENT_GUIDE.md +1 -1
- package/dist/index.js +14 -6
- package/package.json +5 -5
package/AI_AGENT_GUIDE.md
CHANGED
|
@@ -266,7 +266,7 @@ for (const model of models) {
|
|
|
266
266
|
| `--default-provider <name>` | Override default provider for bare model routing (v7.0.0+) | Auto-detected |
|
|
267
267
|
| `--quiet` / `-q` | Suppress logs | Enabled in single-shot |
|
|
268
268
|
| `--verbose` / `-v` | Show logs | Enabled in interactive |
|
|
269
|
-
| `--
|
|
269
|
+
| `--debug-claudish` / `-d` | Debug logging to file | Disabled |
|
|
270
270
|
| `--no-auto-approve` | Require prompts | Auto-approve enabled |
|
|
271
271
|
|
|
272
272
|
### Claude Code Flag Passthrough
|
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.
|
|
584
|
+
var VERSION = "7.13.0";
|
|
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 },
|
|
@@ -62419,11 +62424,14 @@ async function parseArgs(args) {
|
|
|
62419
62424
|
config3.dangerous = true;
|
|
62420
62425
|
} else if (arg === "--interactive" || arg === "-i") {
|
|
62421
62426
|
config3.interactive = true;
|
|
62422
|
-
} else if (arg === "--
|
|
62427
|
+
} else if (arg === "--debug-claudish" || arg === "-d") {
|
|
62423
62428
|
config3.debug = true;
|
|
62424
62429
|
if (config3.logLevel === "info") {
|
|
62425
62430
|
config3.logLevel = "debug";
|
|
62426
62431
|
}
|
|
62432
|
+
} else if (arg === "--log-debug") {
|
|
62433
|
+
console.error("--log-debug was renamed to --debug-claudish (it enables claudish's own debug log, not Claude Code's --debug).");
|
|
62434
|
+
process.exit(1);
|
|
62427
62435
|
} else if (arg === "--log-level") {
|
|
62428
62436
|
const levelArg = args[++i];
|
|
62429
62437
|
if (!levelArg || !["debug", "info", "minimal"].includes(levelArg)) {
|
|
@@ -62644,7 +62652,7 @@ Usage: claudish --models --provider <slug>`);
|
|
|
62644
62652
|
if (!config3.quiet) {
|
|
62645
62653
|
console.log("[claudish] Monitor mode enabled - proxying to real Anthropic API");
|
|
62646
62654
|
console.log("[claudish] Using Claude Code's native authentication");
|
|
62647
|
-
console.log("[claudish] Tip: Run with --
|
|
62655
|
+
console.log("[claudish] Tip: Run with --debug-claudish to see request/response details");
|
|
62648
62656
|
}
|
|
62649
62657
|
}
|
|
62650
62658
|
config3.openrouterApiKey = process.env[ENV.OPENROUTER_API_KEY];
|
|
@@ -63525,7 +63533,7 @@ ${h("OPTIONS")}
|
|
|
63525
63533
|
${green("--op")} ${yellow("<glob>")} ${green("--list")} Preview which fields the glob would import (names only, no values)
|
|
63526
63534
|
${green("--op-env")} ${yellow("<id>")} Load env vars from a 1Password Environment (highest priority)
|
|
63527
63535
|
${green("--port")} ${yellow("<port>")} Proxy server port (default: random)
|
|
63528
|
-
${green("-d, --
|
|
63536
|
+
${green("-d, --debug-claudish")} Enable claudish debug logging to file (logs/claudish_*.log)
|
|
63529
63537
|
${green("--log-off")} Disable always-on structural logging (~/.claudish/logs/)
|
|
63530
63538
|
${green("--log-diag")} ${yellow("<mode>")} Diagnostic output: auto (default), logfile, off
|
|
63531
63539
|
${dim('Also: CLAUDISH_DIAG_MODE env var or "diagMode" in config.json')}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.13.0",
|
|
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.
|
|
64
|
-
"@claudish/magmux-darwin-x64": "7.
|
|
65
|
-
"@claudish/magmux-linux-arm64": "7.
|
|
66
|
-
"@claudish/magmux-linux-x64": "7.
|
|
63
|
+
"@claudish/magmux-darwin-arm64": "7.13.0",
|
|
64
|
+
"@claudish/magmux-darwin-x64": "7.13.0",
|
|
65
|
+
"@claudish/magmux-linux-arm64": "7.13.0",
|
|
66
|
+
"@claudish/magmux-linux-x64": "7.13.0"
|
|
67
67
|
},
|
|
68
68
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
69
69
|
"license": "MIT",
|