@cortexkit/opencode-anthropic-auth 2.7.2 → 2.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/opencode-anthropic-auth",
3
- "version": "2.7.2",
3
+ "version": "2.8.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -77,10 +77,10 @@
77
77
  },
78
78
  "dependencies": {
79
79
  "@clack/prompts": "^1.6.0",
80
- "@cortexkit/anthropic-auth-core": "2.7.2",
81
- "@cortexkit/claustrum-client": "0.13.0",
80
+ "@cortexkit/anthropic-auth-core": "2.8.0",
81
+ "@cortexkit/claustrum-client": "0.17.0",
82
82
  "@cortexkit/private-files": "0.2.2",
83
- "@cortexkit/subc-client": "^0.22.10",
83
+ "@cortexkit/subc-client": "^0.24",
84
84
  "@opentui/core": "0.8.1",
85
85
  "@opentui/solid": "0.8.1",
86
86
  "jsonc-parser": "^3.3.1",
@@ -137,6 +137,7 @@ import {
137
137
  logger,
138
138
  quotaDisplayProjection,
139
139
  quotaWindowParts,
140
+ resolveClaudeModelCapabilities,
140
141
  } from '@cortexkit/anthropic-auth-core'
141
142
 
142
143
  const STATE_FILE_ENV = 'OPENCODE_ANTHROPIC_AUTH_SIDEBAR_STATE_FILE'
@@ -859,11 +860,13 @@ export function resolveActiveAccount(state: SidebarState): {
859
860
  }
860
861
 
861
862
  /**
862
- * Pretty label for a recoverable-refusal source model (Fable 5/5.1 or Opus 5).
863
+ * Pretty label for a recoverable-refusal source model (Fable or Opus).
863
864
  * Falls back to the raw id for unrecognized ids so the sidebar never goes
864
865
  * blank on a future model that has not yet been cataloged here.
865
866
  */
866
867
  export function formatFallbackModelLabel(modelId: string | undefined): string {
868
+ const row = resolveClaudeModelCapabilities(modelId)
869
+ if (row?.id === 'claude-fable-5-2') return row.name.replace(/^Claude /, '')
867
870
  if (
868
871
  modelId === 'claude-mythos-5-1' ||
869
872
  modelId?.startsWith('claude-mythos-5-1-')
@@ -137,6 +137,7 @@ import {
137
137
  logger,
138
138
  quotaDisplayProjection,
139
139
  quotaWindowParts,
140
+ resolveClaudeModelCapabilities,
140
141
  } from '@cortexkit/anthropic-auth-core'
141
142
 
142
143
  const STATE_FILE_ENV = 'OPENCODE_ANTHROPIC_AUTH_SIDEBAR_STATE_FILE'
@@ -859,11 +860,13 @@ export function resolveActiveAccount(state: SidebarState): {
859
860
  }
860
861
 
861
862
  /**
862
- * Pretty label for a recoverable-refusal source model (Fable 5/5.1 or Opus 5).
863
+ * Pretty label for a recoverable-refusal source model (Fable or Opus).
863
864
  * Falls back to the raw id for unrecognized ids so the sidebar never goes
864
865
  * blank on a future model that has not yet been cataloged here.
865
866
  */
866
867
  export function formatFallbackModelLabel(modelId: string | undefined): string {
868
+ const row = resolveClaudeModelCapabilities(modelId)
869
+ if (row?.id === 'claude-fable-5-2') return row.name.replace(/^Claude /, '')
867
870
  if (
868
871
  modelId === 'claude-mythos-5-1' ||
869
872
  modelId?.startsWith('claude-mythos-5-1-')