claudish 6.3.1 → 6.3.2
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 +16 -6
- package/native/mtm/mtm-darwin-arm64 +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37103,7 +37103,7 @@ async function fetchGLMCodingModels() {
|
|
|
37103
37103
|
return [];
|
|
37104
37104
|
}
|
|
37105
37105
|
}
|
|
37106
|
-
var __filename4, __dirname4, VERSION = "6.3.
|
|
37106
|
+
var __filename4, __dirname4, VERSION = "6.3.2", CACHE_MAX_AGE_DAYS2 = 2, CLAUDISH_CACHE_DIR2, BUNDLED_MODELS_PATH, CACHED_MODELS_PATH, ALL_MODELS_JSON_PATH;
|
|
37107
37107
|
var init_cli = __esm(() => {
|
|
37108
37108
|
init_config();
|
|
37109
37109
|
init_model_loader();
|
|
@@ -101142,8 +101142,18 @@ class MtmDiagRunner {
|
|
|
101142
101142
|
env: mergedEnv
|
|
101143
101143
|
});
|
|
101144
101144
|
const exitCode = await new Promise((resolve4) => {
|
|
101145
|
-
this.mtmProc.on("exit", (code) =>
|
|
101146
|
-
|
|
101145
|
+
this.mtmProc.on("exit", (code) => {
|
|
101146
|
+
resolve4(code ?? 1);
|
|
101147
|
+
});
|
|
101148
|
+
this.mtmProc.on("error", (err) => {
|
|
101149
|
+
if (this.logStream) {
|
|
101150
|
+
try {
|
|
101151
|
+
this.logStream.write(`[mtm] spawn error: ${err.message}
|
|
101152
|
+
`);
|
|
101153
|
+
} catch {}
|
|
101154
|
+
}
|
|
101155
|
+
resolve4(1);
|
|
101156
|
+
});
|
|
101147
101157
|
});
|
|
101148
101158
|
this.cleanup();
|
|
101149
101159
|
return exitCode;
|
|
@@ -101312,10 +101322,10 @@ function parseLogMessage(msg) {
|
|
|
101312
101322
|
return { isError: false, short: `fallback: ${countMatch?.[1] || "?"} providers`, provider };
|
|
101313
101323
|
}
|
|
101314
101324
|
if (msg.toLowerCase().includes("error")) {
|
|
101315
|
-
const short = msg.replace(/^Error\s*\[
|
|
101316
|
-
return { isError: true, short: short.length >
|
|
101325
|
+
const short = msg.replace(/^Error\s*\[[^\]]+\]:\s*/, "").replace(/\.\s*$/, "");
|
|
101326
|
+
return { isError: true, short: short.length > 80 ? short.slice(0, 79) + "\u2026" : short, provider };
|
|
101317
101327
|
}
|
|
101318
|
-
return { isError: false, short: msg.length >
|
|
101328
|
+
return { isError: false, short: msg.length > 80 ? msg.slice(0, 79) + "\u2026" : msg };
|
|
101319
101329
|
}
|
|
101320
101330
|
async function tryCreateMtmRunner() {
|
|
101321
101331
|
try {
|
|
Binary file
|