asdf
Squash the current repository state back into one baseline commit while preserving the README reframing and repository contents. Constraint: User explicitly requested a single squashed commit with subject "asdf" Confidence: high Scope-risk: broad Reversibility: clean Directive: This commit intentionally rewrites published history; coordinate before future force-pushes Tested: git status clean; local history rewritten to one commit; force-pushed main to origin and instructkr Not-tested: Fresh clone verification after push
This commit is contained in:
commit
d2542c9a62
23
src/utils/extraUsage.ts
Normal file
23
src/utils/extraUsage.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { isClaudeAISubscriber } from './auth.js'
|
||||
import { has1mContext } from './context.js'
|
||||
|
||||
export function isBilledAsExtraUsage(
|
||||
model: string | null,
|
||||
isFastMode: boolean,
|
||||
isOpus1mMerged: boolean,
|
||||
): boolean {
|
||||
if (!isClaudeAISubscriber()) return false
|
||||
if (isFastMode) return true
|
||||
if (model === null || !has1mContext(model)) return false
|
||||
|
||||
const m = model
|
||||
.toLowerCase()
|
||||
.replace(/\[1m\]$/, '')
|
||||
.trim()
|
||||
const isOpus46 = m === 'opus' || m.includes('opus-4-6')
|
||||
const isSonnet46 = m === 'sonnet' || m.includes('sonnet-4-6')
|
||||
|
||||
if (isOpus46 && isOpus1mMerged) return false
|
||||
|
||||
return isOpus46 || isSonnet46
|
||||
}
|
||||
Reference in New Issue
Block a user