@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/dist/cli.js +4 -4
- package/dist/fable-fallback.d.ts +1 -1
- package/dist/{index-eq1kbq5z.js → index-h508mdrx.js} +1 -1
- package/dist/index-m901y2pg.js +45 -0
- package/dist/index-pxnn7mg1.js +2 -0
- package/dist/index.js +1 -1
- package/dist/sidebar-state.d.ts +1 -1
- package/dist/sidebar-state.js +1 -1
- package/dist/transform.d.ts +4 -1
- package/dist/v2/models.d.ts +2 -1
- package/dist/v2/server.js +6 -6
- package/dist/v2/tui.js +1 -1
- package/package.json +4 -4
- package/src/sidebar-state.ts +4 -1
- package/src/tui-compiled/sidebar-state.ts +4 -1
- package/dist/index-bnnddf9n.js +0 -45
- package/dist/index-d4e8qj37.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/opencode-anthropic-auth",
|
|
3
|
-
"version": "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.
|
|
81
|
-
"@cortexkit/claustrum-client": "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.
|
|
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",
|
package/src/sidebar-state.ts
CHANGED
|
@@ -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
|
|
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
|
|
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-')
|