claudish 7.8.2 → 7.8.4
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 +65 -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.8.
|
|
584
|
+
var VERSION = "7.8.4";
|
|
585
585
|
|
|
586
586
|
// src/providers/onepassword-wasm.ts
|
|
587
587
|
var exports_onepassword_wasm = {};
|
|
@@ -39058,6 +39058,10 @@ class CodexOAuth {
|
|
|
39058
39058
|
constructor() {
|
|
39059
39059
|
this.credentials = this.loadCredentials();
|
|
39060
39060
|
}
|
|
39061
|
+
reloadCredentials() {
|
|
39062
|
+
this.credentials = this.loadCredentials();
|
|
39063
|
+
this.refreshPromise = null;
|
|
39064
|
+
}
|
|
39061
39065
|
hasCredentials() {
|
|
39062
39066
|
return this.credentials !== null && !!this.credentials.refresh_token;
|
|
39063
39067
|
}
|
|
@@ -39384,6 +39388,9 @@ Please open this URL in your browser to authenticate:`);
|
|
|
39384
39388
|
}
|
|
39385
39389
|
}
|
|
39386
39390
|
}
|
|
39391
|
+
function getCodexOAuth() {
|
|
39392
|
+
return CodexOAuth.getInstance();
|
|
39393
|
+
}
|
|
39387
39394
|
var execAsync, OAUTH_CONFIG;
|
|
39388
39395
|
var init_codex_oauth = __esm(() => {
|
|
39389
39396
|
init_logger();
|
|
@@ -39519,6 +39526,10 @@ class GeminiOAuth {
|
|
|
39519
39526
|
constructor() {
|
|
39520
39527
|
this.credentials = this.loadCredentials();
|
|
39521
39528
|
}
|
|
39529
|
+
reloadCredentials() {
|
|
39530
|
+
this.credentials = this.loadCredentials();
|
|
39531
|
+
this.refreshPromise = null;
|
|
39532
|
+
}
|
|
39522
39533
|
hasCredentials() {
|
|
39523
39534
|
return this.credentials !== null && !!this.credentials.refresh_token;
|
|
39524
39535
|
}
|
|
@@ -39820,10 +39831,19 @@ Please open this URL in your browser to authenticate:`);
|
|
|
39820
39831
|
}
|
|
39821
39832
|
}
|
|
39822
39833
|
}
|
|
39834
|
+
function reloadGeminiCredentials() {
|
|
39835
|
+
GeminiOAuth.getInstance().reloadCredentials();
|
|
39836
|
+
resetGeminiUserCache();
|
|
39837
|
+
}
|
|
39823
39838
|
async function getValidAccessToken() {
|
|
39824
39839
|
const oauth = GeminiOAuth.getInstance();
|
|
39825
39840
|
return oauth.getAccessToken();
|
|
39826
39841
|
}
|
|
39842
|
+
function resetGeminiUserCache() {
|
|
39843
|
+
cachedProjectId = null;
|
|
39844
|
+
cachedTierId = null;
|
|
39845
|
+
cachedTierName = null;
|
|
39846
|
+
}
|
|
39827
39847
|
function getGeminiTierDisplayName() {
|
|
39828
39848
|
if (!cachedTierId)
|
|
39829
39849
|
return "Gemini Free";
|
|
@@ -40139,6 +40159,10 @@ class KimiOAuth {
|
|
|
40139
40159
|
log(`[KimiOAuth] Device ID loaded: ${this.deviceId}`);
|
|
40140
40160
|
this.credentials = this.loadCredentials();
|
|
40141
40161
|
}
|
|
40162
|
+
reloadCredentials() {
|
|
40163
|
+
this.credentials = this.loadCredentials();
|
|
40164
|
+
this.refreshPromise = null;
|
|
40165
|
+
}
|
|
40142
40166
|
hasCredentials() {
|
|
40143
40167
|
return this.credentials !== null && !!this.credentials.refresh_token;
|
|
40144
40168
|
}
|
|
@@ -40446,6 +40470,9 @@ Waiting for authorization...`);
|
|
|
40446
40470
|
log(`[KimiOAuth] Credentials saved to ${credPath}`);
|
|
40447
40471
|
}
|
|
40448
40472
|
}
|
|
40473
|
+
function getKimiOAuth() {
|
|
40474
|
+
return KimiOAuth.getInstance();
|
|
40475
|
+
}
|
|
40449
40476
|
var execAsync3, OAUTH_CONFIG3;
|
|
40450
40477
|
var init_kimi_oauth = __esm(() => {
|
|
40451
40478
|
init_logger();
|
|
@@ -64237,6 +64264,9 @@ function ProvidersContent({
|
|
|
64237
64264
|
statusFg = C.green;
|
|
64238
64265
|
const base = tr.ms !== undefined ? `ready ${tr.ms}ms` : "ready";
|
|
64239
64266
|
statusText = tr.note ? `${base} ${tr.note}` : base;
|
|
64267
|
+
} else if (tr.status === "unavailable") {
|
|
64268
|
+
statusFg = C.yellow;
|
|
64269
|
+
statusText = "n/a";
|
|
64240
64270
|
} else {
|
|
64241
64271
|
statusFg = C.red;
|
|
64242
64272
|
statusText = "FAIL";
|
|
@@ -64332,6 +64362,9 @@ function ProvidersContent({
|
|
|
64332
64362
|
tr?.status === "failed" && tr.error ? /* @__PURE__ */ jsxDEV5("span", {
|
|
64333
64363
|
fg: C.red,
|
|
64334
64364
|
children: tr.error.replace(/\s+/g, " ").trim()
|
|
64365
|
+
}, undefined, false, undefined, this) : tr?.status === "unavailable" && tr.error ? /* @__PURE__ */ jsxDEV5("span", {
|
|
64366
|
+
fg: C.yellow,
|
|
64367
|
+
children: tr.error.replace(/\s+/g, " ").trim()
|
|
64335
64368
|
}, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV5("span", {
|
|
64336
64369
|
fg: selected ? C.white : C.dim,
|
|
64337
64370
|
children: p.description
|
|
@@ -64740,6 +64773,19 @@ function ProviderDetail({
|
|
|
64740
64773
|
children: ` ${truncateOneLine(tr.error, width - 16)}`
|
|
64741
64774
|
}, undefined, false, undefined, this)
|
|
64742
64775
|
]
|
|
64776
|
+
}, undefined, true, undefined, this),
|
|
64777
|
+
tr.status === "unavailable" && /* @__PURE__ */ jsxDEV6(Fragment3, {
|
|
64778
|
+
children: [
|
|
64779
|
+
/* @__PURE__ */ jsxDEV6("span", {
|
|
64780
|
+
fg: C.yellow,
|
|
64781
|
+
attributes: A.bold,
|
|
64782
|
+
children: "\u25CB unavailable"
|
|
64783
|
+
}, undefined, false, undefined, this),
|
|
64784
|
+
tr.error && /* @__PURE__ */ jsxDEV6("span", {
|
|
64785
|
+
fg: C.yellow,
|
|
64786
|
+
children: ` ${truncateOneLine(tr.error, width - 16)}`
|
|
64787
|
+
}, undefined, false, undefined, this)
|
|
64788
|
+
]
|
|
64743
64789
|
}, undefined, true, undefined, this)
|
|
64744
64790
|
]
|
|
64745
64791
|
}, undefined, true, undefined, this)
|
|
@@ -68295,7 +68341,7 @@ function App({ requestLogin } = {}) {
|
|
|
68295
68341
|
setTestResults((prev) => ({
|
|
68296
68342
|
...prev,
|
|
68297
68343
|
[provName]: {
|
|
68298
|
-
status: "
|
|
68344
|
+
status: "unavailable",
|
|
68299
68345
|
error: `not running${base ? ` (${base} unreachable)` : ""}`
|
|
68300
68346
|
}
|
|
68301
68347
|
}));
|
|
@@ -68363,7 +68409,7 @@ function App({ requestLogin } = {}) {
|
|
|
68363
68409
|
setTestResults((prev) => ({
|
|
68364
68410
|
...prev,
|
|
68365
68411
|
[provName]: {
|
|
68366
|
-
status: "failed",
|
|
68412
|
+
status: prov.isLocal ? "unavailable" : "failed",
|
|
68367
68413
|
error: lastDiscoveryReason ? `no probe model: ${lastDiscoveryReason}` : "no probe model available",
|
|
68368
68414
|
ms
|
|
68369
68415
|
}
|
|
@@ -69537,6 +69583,19 @@ Launching: claudish login ${slug}
|
|
|
69537
69583
|
console.error(`
|
|
69538
69584
|
\u274C Login exited with status ${result.status}
|
|
69539
69585
|
`);
|
|
69586
|
+
} else {
|
|
69587
|
+
if (slug === "gemini") {
|
|
69588
|
+
reloadGeminiCredentials();
|
|
69589
|
+
invalidateProbeProxyHandlers("google");
|
|
69590
|
+
invalidateProbeProxyHandlers("gemini-codeassist");
|
|
69591
|
+
} else if (slug === "codex") {
|
|
69592
|
+
getCodexOAuth().reloadCredentials();
|
|
69593
|
+
invalidateProbeProxyHandlers("openai-codex");
|
|
69594
|
+
} else if (slug === "kimi") {
|
|
69595
|
+
getKimiOAuth().reloadCredentials();
|
|
69596
|
+
invalidateProbeProxyHandlers("kimi");
|
|
69597
|
+
invalidateProbeProxyHandlers("kimi-coding");
|
|
69598
|
+
}
|
|
69540
69599
|
}
|
|
69541
69600
|
console.log(`
|
|
69542
69601
|
Returning to config\u2026
|
|
@@ -69548,6 +69607,9 @@ var isDirectRun = false;
|
|
|
69548
69607
|
var init_tui = __esm(() => {
|
|
69549
69608
|
init_App();
|
|
69550
69609
|
init_logger();
|
|
69610
|
+
init_gemini_oauth();
|
|
69611
|
+
init_codex_oauth();
|
|
69612
|
+
init_kimi_oauth();
|
|
69551
69613
|
if (isDirectRun) {
|
|
69552
69614
|
startConfigTui().catch((err) => {
|
|
69553
69615
|
console.error("TUI error:", err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "7.8.
|
|
3
|
+
"version": "7.8.4",
|
|
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.8.
|
|
64
|
-
"@claudish/magmux-darwin-x64": "7.8.
|
|
65
|
-
"@claudish/magmux-linux-arm64": "7.8.
|
|
66
|
-
"@claudish/magmux-linux-x64": "7.8.
|
|
63
|
+
"@claudish/magmux-darwin-arm64": "7.8.4",
|
|
64
|
+
"@claudish/magmux-darwin-x64": "7.8.4",
|
|
65
|
+
"@claudish/magmux-linux-arm64": "7.8.4",
|
|
66
|
+
"@claudish/magmux-linux-x64": "7.8.4"
|
|
67
67
|
},
|
|
68
68
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
69
69
|
"license": "MIT",
|