Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aptdnfapt/qwen-code-oai-proxy
/ functions
Functions
576 in github.com/aptdnfapt/qwen-code-oai-proxy
⨍
Functions
576
◇
Types & classes
62
↓ 70 callers
Function
truncLine
(s: string, width: number)
src/tui2/render.ts:53
↓ 65 callers
Function
muted
(s: string)
src/tui2/render.ts:89
↓ 45 callers
Function
border
(s: string)
src/tui2/render.ts:101
↓ 45 callers
Function
hRule
(width: number)
src/tui2/render.ts:57
↓ 43 callers
Function
padRight
(s: string, width: number)
src/tui2/render.ts:47
↓ 39 callers
Function
dispatch
(action: TuiAction)
src/tui2/main.ts:129
↓ 38 callers
Function
colorText
(text: string | number, color: string)
test-all-accounts.ts:13
↓ 31 callers
Function
strong
(s: string)
src/tui2/render.ts:97
↓ 24 callers
Function
caption
(s: string)
src/tui2/render.ts:69
↓ 23 callers
Function
appendClassicLog
(level: "info" | "warn" | "error" | "debug", symbol: string, label: string, detail: string)
src/tui2/main.ts:91
↓ 21 callers
Method
captureState
()
src/utils/runtimeLoggingService.ts:92
↓ 20 callers
Function
warning
(s: string)
src/tui2/render.ts:81
↓ 19 callers
Function
value
(s: string)
src/tui2/render.ts:93
↓ 18 callers
Function
kb
(key: string, desc: string, keyW: number, width: number)
src/tui2/screens/help.ts:3
↓ 16 callers
Method
write
(entry: ErrorLogEntry)
src/core/logging/contracts.ts:13
↓ 14 callers
Function
getDb
()
src/utils/usageStore.ts:36
↓ 14 callers
Function
log
(message: string, loggingState?: { liveEnabled?: boolean })
src/utils/liveLogger.ts:71
↓ 13 callers
Function
getThemePalette
(themeName: ThemeName = activeThemeName)
src/tui2/theme.ts:125
↓ 13 callers
Function
layoutLabeledButtonGrid
( rows: readonly ButtonGridRow<T>[], minLabelWidth = 12, )
src/tui2/render.ts:331
↓ 12 callers
Function
extractRealErrorMessage
* Extract the real error message from the upstream response. * Axios wraps the Qwen error in error.message = "Request failed with status code 429" *
src/server/proxy-controller.ts:106
↓ 12 callers
Method
getAccountIds
()
src/core/auth/legacy-qwen-auth-service.ts:6
↓ 10 callers
Function
buttonHitAt
(hits: readonly ButtonHit<T>[], col: number)
src/tui2/render.ts:373
↓ 10 callers
Function
highlight
(s: string)
src/tui2/render.ts:73
↓ 10 callers
Method
logError
(context: string, error: any, level = "error")
src/utils/logger.ts:173
↓ 9 callers
Function
asCount
(value: unknown)
src/tui2/runtime.ts:92
↓ 9 callers
Method
loadAllAccounts
()
src/core/auth/legacy-qwen-auth-service.ts:5
↓ 8 callers
Method
emit
(event: LiveLogEvent)
src/core/logging/contracts.ts:9
↓ 8 callers
Method
getAccountCredentials
(accountId: string)
src/core/auth/contracts.ts:25
↓ 8 callers
Method
getAccountCredentials
(accountId: string)
src/qwen/auth.ts:229
↓ 8 callers
Method
openAIApiError
(message: string, type = "api_error", code = 500)
src/utils/errorFormatter.ts:2
↓ 7 callers
Function
buildSummary
()
src/tui2/runtime.ts:340
↓ 7 callers
Function
isRateLimitLikeError
* Detect rate-limit / quota errors so we forward the correct 429 status * to the caller instead of a misleading 500. * Co-authored-by: noneherell <n
src/server/proxy-controller.ts:90
↓ 7 callers
Method
loadCredentials
()
src/core/auth/legacy-qwen-auth-service.ts:4
↓ 7 callers
Function
parseInteger
(value: string | undefined, fallback: number)
src/config.ts:7
↓ 7 callers
Method
readConfig
()
src/core/config/runtime-config-store.ts:122
↓ 7 callers
Function
refreshRuntimeSummary
()
src/tui2/main.ts:160
↓ 6 callers
Function
asNonNegativeNumber
(value: unknown)
src/qwen/api.ts:449
↓ 6 callers
Method
emitControlLog
(message: string)
src/utils/runtimeLoggingService.ts:104
↓ 6 callers
Method
ensureLogDir
(snapshot: LoggingStateSnapshot)
src/utils/runtimeLoggingService.ts:151
↓ 6 callers
Method
ensureUsageStoreReady
()
src/qwen/api.ts:574
↓ 6 callers
Function
formatAccountTag
(accountId: string | null | undefined)
src/utils/liveLogger.ts:47
↓ 6 callers
Function
formatTokens
(count: number)
src/tui2/render.ts:391
↓ 6 callers
Method
isTokenValid
(credentials: QwenCredentials | null)
src/qwen/auth.ts:183
↓ 6 callers
Method
loadAllAccounts
()
src/qwen/auth.ts:114
↓ 6 callers
Method
openAIValidationError
(message: string)
src/utils/errorFormatter.ts:15
↓ 6 callers
Function
refreshArtifacts
()
src/tui2/main.ts:182
↓ 6 callers
Function
sectionHeader
(label: string, width: number)
src/tui2/render.ts:65
↓ 6 callers
Method
setArtifactPane
(pane: "tree" | "preview")
src/tui2/app.ts:231
↓ 5 callers
Function
appendLog
(level: "info" | "warn" | "error" | "debug", message: string, formattedMessage?: string, timestamp = Date.now(
src/tui2/main.ts:73
↓ 5 callers
Function
centerText
(text: string, width: number)
src/tui2/render.ts:143
↓ 5 callers
Method
createRequestId
()
src/server/proxy-controller.ts:145
↓ 5 callers
Function
forwardToCallback
(level: "info" | "warn" | "error" | "debug", args: unknown[])
src/tui2/console-redirect.ts:20
↓ 5 callers
Method
getAccountIds
()
src/qwen/auth.ts:225
↓ 5 callers
Function
isAuthLikeError
(error: any)
src/server/proxy-controller.ts:80
↓ 5 callers
Method
logFailedRequestArtifacts
(requestId: string, req: RequestLike, model: string, transformedMessages: unknown, statusCode: number, logging
src/server/proxy-controller.ts:165
↓ 5 callers
Method
moveArtifactPreview
(delta: number)
src/tui2/app.ts:235
↓ 5 callers
Method
openAIRateLimitError
(message = "Rate limit exceeded")
src/utils/errorFormatter.ts:23
↓ 5 callers
Method
setConsoleEnabled
(enabled: boolean)
src/utils/runtimeLoggingService.ts:143
↓ 5 callers
Function
toAuthCredentials
(input: unknown)
src/core/auth/legacy-qwen-auth-service.ts:17
↓ 5 callers
Function
todayDate
()
src/core/usage/in-memory-usage-store.ts:3
↓ 5 callers
Function
toneColor
(tone: ButtonTone)
src/tui2/render.ts:115
↓ 5 callers
Function
toneFill
(tone: ButtonTone)
src/tui2/render.ts:129
↓ 4 callers
Function
danger
(s: string)
src/tui2/render.ts:85
↓ 4 callers
Function
getDebugDir
()
src/utils/logger.ts:8
↓ 4 callers
Method
getRuntimeStatus
()
src/utils/runtimeLoggingService.ts:124
↓ 4 callers
Function
getViewportRows
(rows: number | undefined, fallback = 40)
src/tui2/viewport.ts:3
↓ 4 callers
Function
getVisibleArtifactRows
( tree: readonly ArtifactNode[], expanded: readonly string[], filterQuery: string, )
src/tui2/screens/artifacts.ts:98
↓ 4 callers
Method
isTokenValid
(credentials: AuthCredentials | null)
src/core/auth/contracts.ts:26
↓ 4 callers
Method
loadCredentials
()
src/qwen/auth.ts:95
↓ 4 callers
Function
maskAccountId
(accountId: string | null | undefined)
src/utils/liveLogger.ts:98
↓ 4 callers
Function
nowIso
()
src/core/config/runtime-config-store.ts:31
↓ 4 callers
Method
openAIAuthError
(message = "Not authenticated with Qwen. Please authenticate first.")
src/utils/errorFormatter.ts:19
↓ 4 callers
Function
refreshAccounts
(selectedId?: string | null)
src/tui2/main.ts:169
↓ 4 callers
Method
refreshCredentialsIfNeeded
(credentials: QwenCredentials, accountId: string | null = null, options: { force?: boolean } = {})
src/qwen/auth.ts:319
↓ 4 callers
Method
saveCredentials
(credentials: QwenCredentials, accountId: string | null = null)
src/qwen/auth.ts:165
↓ 4 callers
Function
sendError
(error: any)
src/mcp.ts:46
↓ 4 callers
Method
setFocusRegion
(region: TuiState["focusRegion"])
src/tui2/app.ts:189
↓ 4 callers
Method
shouldRefreshToken
(credentials: AuthCredentials | null, accountId?: string | null)
src/core/auth/contracts.ts:27
↓ 4 callers
Method
sidebarWidth
()
src/tui2/app.ts:183
↓ 4 callers
Function
startHeadlessServer
(options: { host?: string; port?: number; registerProcessHandlers?: boolean } = {})
src/server/headless-runtime.ts:86
↓ 4 callers
Function
success
(s: string)
src/tui2/render.ts:77
↓ 4 callers
Method
writeConfig
(input: Partial<RuntimeConfig>)
src/core/config/runtime-config-store.ts:154
↓ 3 callers
Method
applyInputValue
(value: string)
src/tui2/app.ts:251
↓ 3 callers
Function
artifactPaneWidths
(width: number)
src/tui2/screens/artifacts.ts:42
↓ 3 callers
Function
attachUpstreamErrorDetails
(error: any)
src/qwen/api.ts:421
↓ 3 callers
Function
buildDashScopeHeaders
(accessToken: string, isStreaming = false)
src/qwen/api.ts:103
↓ 3 callers
Method
buildLoggedUpstreamRequest
(req: RequestLike, model: string, transformedMessages: unknown)
src/server/proxy-controller.ts:149
↓ 3 callers
Function
classifyRequestError
(error: any)
src/qwen/api.ts:353
↓ 3 callers
Method
ensureRequestUsage
(accountId: string, date: string)
src/core/usage/in-memory-usage-store.ts:83
↓ 3 callers
Method
ensureStorage
()
src/core/config/runtime-config-store.ts:112
↓ 3 callers
Method
executeWithAccountRotation
( accountIds: string[], executeAttempt: (accountInfo: AccountInfo) => Promise<any>, onSuccess: (ac
src/qwen/api.ts:803
↓ 3 callers
Function
formatSize
(bytes: number | undefined)
src/tui2/screens/artifacts.ts:15
↓ 3 callers
Method
getRequestCount
(accountId: string)
src/qwen/api.ts:677
↓ 3 callers
Method
getTimestampForLog
()
src/utils/logger.ts:61
↓ 3 callers
Method
initialize
(runtimeConfigStore?: RuntimeConfigStoreLike | null)
src/utils/runtimeLoggingService.ts:74
↓ 3 callers
Method
loadAccounts
()
src/core/auth/contracts.ts:23
↓ 3 callers
Method
loadRequestCounts
()
src/qwen/api.ts:600
↓ 3 callers
Method
loadRetryConfig
()
src/qwen/api.ts:864
↓ 3 callers
Method
moveLiveLogs
(delta: number)
src/tui2/app.ts:193
↓ 3 callers
Method
navigate
(screen: ScreenId)
src/tui2/app.ts:179
next →
1–100 of 576, ranked by callers