claudish 7.8.1 → 7.8.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.
Files changed (2) hide show
  1. package/dist/index.js +13 -7
  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.1";
584
+ var VERSION = "7.8.2";
585
585
 
586
586
  // src/providers/onepassword-wasm.ts
587
587
  var exports_onepassword_wasm = {};
@@ -44292,6 +44292,11 @@ function providerIsReady(p, config3) {
44292
44292
  }
44293
44293
  return credentials.isAuthenticated(p.catalogName) || providerAuthSource(p, config3) !== null;
44294
44294
  }
44295
+ function providerIsReadyForDisplay(p, config3, localLiveness) {
44296
+ if (p.isLocal && localLiveness[p.catalogName] === "running")
44297
+ return true;
44298
+ return providerIsReady(p, config3);
44299
+ }
44295
44300
  function providerAuthCapabilities(p, config3) {
44296
44301
  const apiKeySupported = !!p.apiKeyEnvVar;
44297
44302
  const apiKeySet = apiKeySupported && (!!process.env[p.apiKeyEnvVar] || !!config3.apiKeys?.[p.apiKeyEnvVar]);
@@ -64168,7 +64173,7 @@ function ProvidersContent({
64168
64173
  isInputMode,
64169
64174
  animTick
64170
64175
  }) {
64171
- const firstUnreadyIdx = displayProviders.findIndex((p) => providerAuthSource(p, config3) === null);
64176
+ const firstUnreadyIdx = displayProviders.findIndex((p) => !providerIsReadyForDisplay(p, config3, localLiveness));
64172
64177
  const hasDivider = firstUnreadyIdx >= 0;
64173
64178
  const listH = contentH - 4 - (hasDivider ? 1 : 0);
64174
64179
  const scrollOffset = (() => {
@@ -64182,7 +64187,7 @@ function ProvidersContent({
64182
64187
  const getRow = (p, idx) => {
64183
64188
  const auth = providerAuthSource(p, config3);
64184
64189
  const caps = providerAuthCapabilities(p, config3);
64185
- const isReady = auth !== null;
64190
+ const isReady = providerIsReadyForDisplay(p, config3, localLiveness);
64186
64191
  const isOauthOnly = auth === "oauth";
64187
64192
  const selected = idx === providerIndex;
64188
64193
  const tr = testResults[p.name];
@@ -64208,7 +64213,8 @@ function ProvidersContent({
64208
64213
  let statusText = p.isLocal ? isReady ? "enabled" : "disabled" : isReady ? "ready" : "not set";
64209
64214
  if (p.isLocal) {
64210
64215
  const live = localLiveness[p.catalogName];
64211
- if (isReady) {
64216
+ const enabled = providerAuthSource(p, config3) !== null;
64217
+ if (enabled) {
64212
64218
  if (live === "running") {
64213
64219
  statusFg = C.green;
64214
64220
  statusText = "running";
@@ -67895,13 +67901,13 @@ function App({ requestLogin } = {}) {
67895
67901
  const quit = useCallback3(() => renderer.destroy(), [renderer]);
67896
67902
  const displayProviders = useMemo2(() => {
67897
67903
  return [...PROVIDERS].sort((a, b) => {
67898
- const aReady = providerIsReady(a, config3);
67899
- const bReady = providerIsReady(b, config3);
67904
+ const aReady = providerIsReadyForDisplay(a, config3, localLiveness);
67905
+ const bReady = providerIsReadyForDisplay(b, config3, localLiveness);
67900
67906
  if (aReady === bReady)
67901
67907
  return PROVIDERS.indexOf(a) - PROVIDERS.indexOf(b);
67902
67908
  return aReady ? -1 : 1;
67903
67909
  });
67904
- }, [config3]);
67910
+ }, [config3, localLiveness]);
67905
67911
  const selectedProvider = displayProviders[providerIndex];
67906
67912
  const selectedProviderDef = getProviderByName(selectedProvider.catalogName);
67907
67913
  const selectedProviderIsLocal = !!(selectedProvider.isLocal || selectedProviderDef?.isLocal);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "7.8.1",
3
+ "version": "7.8.2",
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.1",
64
- "@claudish/magmux-darwin-x64": "7.8.1",
65
- "@claudish/magmux-linux-arm64": "7.8.1",
66
- "@claudish/magmux-linux-x64": "7.8.1"
63
+ "@claudish/magmux-darwin-arm64": "7.8.2",
64
+ "@claudish/magmux-darwin-x64": "7.8.2",
65
+ "@claudish/magmux-linux-arm64": "7.8.2",
66
+ "@claudish/magmux-linux-x64": "7.8.2"
67
67
  },
68
68
  "author": "Jack Rudenko <i@madappgang.com>",
69
69
  "license": "MIT",