claudish 9.3.2 → 9.4.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/dist/index.js +20 -3
- 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.
|
|
718
|
+
var VERSION = "9.4.0";
|
|
719
719
|
|
|
720
720
|
// src/logger.ts
|
|
721
721
|
import { appendFile, existsSync as existsSync2, mkdirSync, readdirSync, unlinkSync, writeFileSync as writeFileSync2 } from "fs";
|
|
@@ -35770,8 +35770,9 @@ var init_opencode_zen = __esm(() => {
|
|
|
35770
35770
|
OpenCodeZenTransport = class OpenCodeZenTransport extends OpenAIProviderTransport {
|
|
35771
35771
|
async getHeaders(claudeRequest) {
|
|
35772
35772
|
return {
|
|
35773
|
-
|
|
35774
|
-
"x-opencode-session": conversationKey(claudeRequest)
|
|
35773
|
+
"User-Agent": `claudish/${VERSION}`,
|
|
35774
|
+
"x-opencode-session": conversationKey(claudeRequest),
|
|
35775
|
+
...await super.getHeaders()
|
|
35775
35776
|
};
|
|
35776
35777
|
}
|
|
35777
35778
|
};
|
|
@@ -37196,7 +37197,16 @@ function logResolution(userInput, result, quiet = false) {
|
|
|
37196
37197
|
`);
|
|
37197
37198
|
}
|
|
37198
37199
|
}
|
|
37200
|
+
function catalogWarmDisabledFor(value) {
|
|
37201
|
+
return value === "1";
|
|
37202
|
+
}
|
|
37203
|
+
function catalogWarmDisabled() {
|
|
37204
|
+
return catalogWarmDisabledFor(process.env.CLAUDISH_DISABLE_CATALOG_WARM);
|
|
37205
|
+
}
|
|
37199
37206
|
async function refreshCatalog(timeoutMs) {
|
|
37207
|
+
if (catalogWarmDisabled()) {
|
|
37208
|
+
return { kind: "fetch_failed", reason: "disabled" };
|
|
37209
|
+
}
|
|
37200
37210
|
const plansPromise = fetchSubscriptionPlans(timeoutMs);
|
|
37201
37211
|
let response;
|
|
37202
37212
|
try {
|
|
@@ -67760,6 +67770,13 @@ async function warmCatalogIfNeeded(config, opts) {
|
|
|
67760
67770
|
}
|
|
67761
67771
|
return "ok";
|
|
67762
67772
|
}
|
|
67773
|
+
if (outcome.reason === "disabled") {
|
|
67774
|
+
if (!config.quiet) {
|
|
67775
|
+
process.stderr.write(` Catalog refresh disabled (CLAUDISH_DISABLE_CATALOG_WARM=1).
|
|
67776
|
+
`);
|
|
67777
|
+
}
|
|
67778
|
+
return "skipped";
|
|
67779
|
+
}
|
|
67763
67780
|
if (state === "stale") {
|
|
67764
67781
|
const ageMs = now.getTime() - Date.parse(cache.lastUpdated);
|
|
67765
67782
|
const ageStr = humanizeAge(ageMs);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.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": "9.
|
|
64
|
-
"@claudish/magmux-darwin-x64": "9.
|
|
65
|
-
"@claudish/magmux-linux-arm64": "9.
|
|
66
|
-
"@claudish/magmux-linux-x64": "9.
|
|
63
|
+
"@claudish/magmux-darwin-arm64": "9.4.0",
|
|
64
|
+
"@claudish/magmux-darwin-x64": "9.4.0",
|
|
65
|
+
"@claudish/magmux-linux-arm64": "9.4.0",
|
|
66
|
+
"@claudish/magmux-linux-x64": "9.4.0"
|
|
67
67
|
},
|
|
68
68
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
69
69
|
"license": "MIT",
|