claude-use 11.40.0 → 11.40.1

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/cli.cjs CHANGED
@@ -34636,7 +34636,7 @@ var init_package = __esm({
34636
34636
  "package.json"() {
34637
34637
  package_default = {
34638
34638
  name: "claude-use",
34639
- version: "11.40.0",
34639
+ version: "11.40.1",
34640
34640
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
34641
34641
  license: "MIT",
34642
34642
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -65490,9 +65490,8 @@ function routedModelRows(models, providers) {
65490
65490
  if (provider.kind !== void 0 && provider.kind !== "http") {
65491
65491
  continue;
65492
65492
  }
65493
- const env = provider.env ?? {};
65494
- const match = Object.entries(env).find(([, value2]) => value2 === model);
65495
- if (match?.[0].endsWith("_MODEL") === true) {
65493
+ const match = Object.entries(provider.env ?? {}).find(([key, value2]) => value2 === model && key.startsWith("ANTHROPIC_DEFAULT_") && key.endsWith("_MODEL"));
65494
+ if (match !== void 0) {
65496
65495
  const tier = match[0].replace("ANTHROPIC_DEFAULT_", "").replace("_MODEL", "").toLowerCase();
65497
65496
  return tier === "fable" || tier === "opus" || tier === "sonnet" || tier === "haiku" ? tier : void 0;
65498
65497
  }
package/dist/index.cjs CHANGED
@@ -3106,7 +3106,7 @@ var init_package = __esm({
3106
3106
  "package.json"() {
3107
3107
  package_default = {
3108
3108
  name: "claude-use",
3109
- version: "11.40.0",
3109
+ version: "11.40.1",
3110
3110
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
3111
3111
  license: "MIT",
3112
3112
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -8956,9 +8956,8 @@ function routedModelRows(models, providers) {
8956
8956
  if (provider.kind !== void 0 && provider.kind !== "http") {
8957
8957
  continue;
8958
8958
  }
8959
- const env = provider.env ?? {};
8960
- const match = Object.entries(env).find(([, value]) => value === model);
8961
- if (match?.[0].endsWith("_MODEL") === true) {
8959
+ const match = Object.entries(provider.env ?? {}).find(([key, value]) => value === model && key.startsWith("ANTHROPIC_DEFAULT_") && key.endsWith("_MODEL"));
8960
+ if (match !== void 0) {
8962
8961
  const tier = match[0].replace("ANTHROPIC_DEFAULT_", "").replace("_MODEL", "").toLowerCase();
8963
8962
  return tier === "fable" || tier === "opus" || tier === "sonnet" || tier === "haiku" ? tier : void 0;
8964
8963
  }
package/dist/index.mjs CHANGED
@@ -3082,7 +3082,7 @@ var init_package = __esm({
3082
3082
  "package.json"() {
3083
3083
  package_default = {
3084
3084
  name: "claude-use",
3085
- version: "11.40.0",
3085
+ version: "11.40.1",
3086
3086
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
3087
3087
  license: "MIT",
3088
3088
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -8928,9 +8928,8 @@ function routedModelRows(models, providers) {
8928
8928
  if (provider.kind !== void 0 && provider.kind !== "http") {
8929
8929
  continue;
8930
8930
  }
8931
- const env = provider.env ?? {};
8932
- const match = Object.entries(env).find(([, value]) => value === model);
8933
- if (match?.[0].endsWith("_MODEL") === true) {
8931
+ const match = Object.entries(provider.env ?? {}).find(([key, value]) => value === model && key.startsWith("ANTHROPIC_DEFAULT_") && key.endsWith("_MODEL"));
8932
+ if (match !== void 0) {
8934
8933
  const tier = match[0].replace("ANTHROPIC_DEFAULT_", "").replace("_MODEL", "").toLowerCase();
8935
8934
  return tier === "fable" || tier === "opus" || tier === "sonnet" || tier === "haiku" ? tier : void 0;
8936
8935
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "11.40.0",
3
+ "version": "11.40.1",
4
4
  "description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5
5
  "license": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",