claudish 7.8.3 → 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.
Files changed (2) hide show
  1. package/dist/index.js +44 -1
  2. 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.3";
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();
@@ -69556,6 +69583,19 @@ Launching: claudish login ${slug}
69556
69583
  console.error(`
69557
69584
  \u274C Login exited with status ${result.status}
69558
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
+ }
69559
69599
  }
69560
69600
  console.log(`
69561
69601
  Returning to config\u2026
@@ -69567,6 +69607,9 @@ var isDirectRun = false;
69567
69607
  var init_tui = __esm(() => {
69568
69608
  init_App();
69569
69609
  init_logger();
69610
+ init_gemini_oauth();
69611
+ init_codex_oauth();
69612
+ init_kimi_oauth();
69570
69613
  if (isDirectRun) {
69571
69614
  startConfigTui().catch((err) => {
69572
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",
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.3",
64
- "@claudish/magmux-darwin-x64": "7.8.3",
65
- "@claudish/magmux-linux-arm64": "7.8.3",
66
- "@claudish/magmux-linux-x64": "7.8.3"
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",