MCPcopy Create free account

hub / github.com/aptdnfapt/qwen-code-oai-proxy / functions

Functions576 in github.com/aptdnfapt/qwen-code-oai-proxy

↓ 70 callersFunctiontruncLine
(s: string, width: number)
src/tui2/render.ts:53
↓ 65 callersFunctionmuted
(s: string)
src/tui2/render.ts:89
↓ 45 callersFunctionborder
(s: string)
src/tui2/render.ts:101
↓ 45 callersFunctionhRule
(width: number)
src/tui2/render.ts:57
↓ 43 callersFunctionpadRight
(s: string, width: number)
src/tui2/render.ts:47
↓ 39 callersFunctiondispatch
(action: TuiAction)
src/tui2/main.ts:129
↓ 38 callersFunctioncolorText
(text: string | number, color: string)
test-all-accounts.ts:13
↓ 31 callersFunctionstrong
(s: string)
src/tui2/render.ts:97
↓ 24 callersFunctioncaption
(s: string)
src/tui2/render.ts:69
↓ 23 callersFunctionappendClassicLog
(level: "info" | "warn" | "error" | "debug", symbol: string, label: string, detail: string)
src/tui2/main.ts:91
↓ 21 callersMethodcaptureState
()
src/utils/runtimeLoggingService.ts:92
↓ 20 callersFunctionwarning
(s: string)
src/tui2/render.ts:81
↓ 19 callersFunctionvalue
(s: string)
src/tui2/render.ts:93
↓ 18 callersFunctionkb
(key: string, desc: string, keyW: number, width: number)
src/tui2/screens/help.ts:3
↓ 16 callersMethodwrite
(entry: ErrorLogEntry)
src/core/logging/contracts.ts:13
↓ 14 callersFunctiongetDb
()
src/utils/usageStore.ts:36
↓ 14 callersFunctionlog
(message: string, loggingState?: { liveEnabled?: boolean })
src/utils/liveLogger.ts:71
↓ 13 callersFunctiongetThemePalette
(themeName: ThemeName = activeThemeName)
src/tui2/theme.ts:125
↓ 13 callersFunctionlayoutLabeledButtonGrid
( rows: readonly ButtonGridRow<T>[], minLabelWidth = 12, )
src/tui2/render.ts:331
↓ 12 callersFunctionextractRealErrorMessage
* 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 callersMethodgetAccountIds
()
src/core/auth/legacy-qwen-auth-service.ts:6
↓ 10 callersFunctionbuttonHitAt
(hits: readonly ButtonHit<T>[], col: number)
src/tui2/render.ts:373
↓ 10 callersFunctionhighlight
(s: string)
src/tui2/render.ts:73
↓ 10 callersMethodlogError
(context: string, error: any, level = "error")
src/utils/logger.ts:173
↓ 9 callersFunctionasCount
(value: unknown)
src/tui2/runtime.ts:92
↓ 9 callersMethodloadAllAccounts
()
src/core/auth/legacy-qwen-auth-service.ts:5
↓ 8 callersMethodemit
(event: LiveLogEvent)
src/core/logging/contracts.ts:9
↓ 8 callersMethodgetAccountCredentials
(accountId: string)
src/core/auth/contracts.ts:25
↓ 8 callersMethodgetAccountCredentials
(accountId: string)
src/qwen/auth.ts:229
↓ 8 callersMethodopenAIApiError
(message: string, type = "api_error", code = 500)
src/utils/errorFormatter.ts:2
↓ 7 callersFunctionbuildSummary
()
src/tui2/runtime.ts:340
↓ 7 callersFunctionisRateLimitLikeError
* 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 callersMethodloadCredentials
()
src/core/auth/legacy-qwen-auth-service.ts:4
↓ 7 callersFunctionparseInteger
(value: string | undefined, fallback: number)
src/config.ts:7
↓ 7 callersMethodreadConfig
()
src/core/config/runtime-config-store.ts:122
↓ 7 callersFunctionrefreshRuntimeSummary
()
src/tui2/main.ts:160
↓ 6 callersFunctionasNonNegativeNumber
(value: unknown)
src/qwen/api.ts:449
↓ 6 callersMethodemitControlLog
(message: string)
src/utils/runtimeLoggingService.ts:104
↓ 6 callersMethodensureLogDir
(snapshot: LoggingStateSnapshot)
src/utils/runtimeLoggingService.ts:151
↓ 6 callersMethodensureUsageStoreReady
()
src/qwen/api.ts:574
↓ 6 callersFunctionformatAccountTag
(accountId: string | null | undefined)
src/utils/liveLogger.ts:47
↓ 6 callersFunctionformatTokens
(count: number)
src/tui2/render.ts:391
↓ 6 callersMethodisTokenValid
(credentials: QwenCredentials | null)
src/qwen/auth.ts:183
↓ 6 callersMethodloadAllAccounts
()
src/qwen/auth.ts:114
↓ 6 callersMethodopenAIValidationError
(message: string)
src/utils/errorFormatter.ts:15
↓ 6 callersFunctionrefreshArtifacts
()
src/tui2/main.ts:182
↓ 6 callersFunctionsectionHeader
(label: string, width: number)
src/tui2/render.ts:65
↓ 6 callersMethodsetArtifactPane
(pane: "tree" | "preview")
src/tui2/app.ts:231
↓ 5 callersFunctionappendLog
(level: "info" | "warn" | "error" | "debug", message: string, formattedMessage?: string, timestamp = Date.now(
src/tui2/main.ts:73
↓ 5 callersFunctioncenterText
(text: string, width: number)
src/tui2/render.ts:143
↓ 5 callersMethodcreateRequestId
()
src/server/proxy-controller.ts:145
↓ 5 callersFunctionforwardToCallback
(level: "info" | "warn" | "error" | "debug", args: unknown[])
src/tui2/console-redirect.ts:20
↓ 5 callersMethodgetAccountIds
()
src/qwen/auth.ts:225
↓ 5 callersFunctionisAuthLikeError
(error: any)
src/server/proxy-controller.ts:80
↓ 5 callersMethodlogFailedRequestArtifacts
(requestId: string, req: RequestLike, model: string, transformedMessages: unknown, statusCode: number, logging
src/server/proxy-controller.ts:165
↓ 5 callersMethodmoveArtifactPreview
(delta: number)
src/tui2/app.ts:235
↓ 5 callersMethodopenAIRateLimitError
(message = "Rate limit exceeded")
src/utils/errorFormatter.ts:23
↓ 5 callersMethodsetConsoleEnabled
(enabled: boolean)
src/utils/runtimeLoggingService.ts:143
↓ 5 callersFunctiontoAuthCredentials
(input: unknown)
src/core/auth/legacy-qwen-auth-service.ts:17
↓ 5 callersFunctiontodayDate
()
src/core/usage/in-memory-usage-store.ts:3
↓ 5 callersFunctiontoneColor
(tone: ButtonTone)
src/tui2/render.ts:115
↓ 5 callersFunctiontoneFill
(tone: ButtonTone)
src/tui2/render.ts:129
↓ 4 callersFunctiondanger
(s: string)
src/tui2/render.ts:85
↓ 4 callersFunctiongetDebugDir
()
src/utils/logger.ts:8
↓ 4 callersMethodgetRuntimeStatus
()
src/utils/runtimeLoggingService.ts:124
↓ 4 callersFunctiongetViewportRows
(rows: number | undefined, fallback = 40)
src/tui2/viewport.ts:3
↓ 4 callersFunctiongetVisibleArtifactRows
( tree: readonly ArtifactNode[], expanded: readonly string[], filterQuery: string, )
src/tui2/screens/artifacts.ts:98
↓ 4 callersMethodisTokenValid
(credentials: AuthCredentials | null)
src/core/auth/contracts.ts:26
↓ 4 callersMethodloadCredentials
()
src/qwen/auth.ts:95
↓ 4 callersFunctionmaskAccountId
(accountId: string | null | undefined)
src/utils/liveLogger.ts:98
↓ 4 callersFunctionnowIso
()
src/core/config/runtime-config-store.ts:31
↓ 4 callersMethodopenAIAuthError
(message = "Not authenticated with Qwen. Please authenticate first.")
src/utils/errorFormatter.ts:19
↓ 4 callersFunctionrefreshAccounts
(selectedId?: string | null)
src/tui2/main.ts:169
↓ 4 callersMethodrefreshCredentialsIfNeeded
(credentials: QwenCredentials, accountId: string | null = null, options: { force?: boolean } = {})
src/qwen/auth.ts:319
↓ 4 callersMethodsaveCredentials
(credentials: QwenCredentials, accountId: string | null = null)
src/qwen/auth.ts:165
↓ 4 callersFunctionsendError
(error: any)
src/mcp.ts:46
↓ 4 callersMethodsetFocusRegion
(region: TuiState["focusRegion"])
src/tui2/app.ts:189
↓ 4 callersMethodshouldRefreshToken
(credentials: AuthCredentials | null, accountId?: string | null)
src/core/auth/contracts.ts:27
↓ 4 callersMethodsidebarWidth
()
src/tui2/app.ts:183
↓ 4 callersFunctionstartHeadlessServer
(options: { host?: string; port?: number; registerProcessHandlers?: boolean } = {})
src/server/headless-runtime.ts:86
↓ 4 callersFunctionsuccess
(s: string)
src/tui2/render.ts:77
↓ 4 callersMethodwriteConfig
(input: Partial<RuntimeConfig>)
src/core/config/runtime-config-store.ts:154
↓ 3 callersMethodapplyInputValue
(value: string)
src/tui2/app.ts:251
↓ 3 callersFunctionartifactPaneWidths
(width: number)
src/tui2/screens/artifacts.ts:42
↓ 3 callersFunctionattachUpstreamErrorDetails
(error: any)
src/qwen/api.ts:421
↓ 3 callersFunctionbuildDashScopeHeaders
(accessToken: string, isStreaming = false)
src/qwen/api.ts:103
↓ 3 callersMethodbuildLoggedUpstreamRequest
(req: RequestLike, model: string, transformedMessages: unknown)
src/server/proxy-controller.ts:149
↓ 3 callersFunctionclassifyRequestError
(error: any)
src/qwen/api.ts:353
↓ 3 callersMethodensureRequestUsage
(accountId: string, date: string)
src/core/usage/in-memory-usage-store.ts:83
↓ 3 callersMethodensureStorage
()
src/core/config/runtime-config-store.ts:112
↓ 3 callersMethodexecuteWithAccountRotation
( accountIds: string[], executeAttempt: (accountInfo: AccountInfo) => Promise<any>, onSuccess: (ac
src/qwen/api.ts:803
↓ 3 callersFunctionformatSize
(bytes: number | undefined)
src/tui2/screens/artifacts.ts:15
↓ 3 callersMethodgetRequestCount
(accountId: string)
src/qwen/api.ts:677
↓ 3 callersMethodgetTimestampForLog
()
src/utils/logger.ts:61
↓ 3 callersMethodinitialize
(runtimeConfigStore?: RuntimeConfigStoreLike | null)
src/utils/runtimeLoggingService.ts:74
↓ 3 callersMethodloadAccounts
()
src/core/auth/contracts.ts:23
↓ 3 callersMethodloadRequestCounts
()
src/qwen/api.ts:600
↓ 3 callersMethodloadRetryConfig
()
src/qwen/api.ts:864
↓ 3 callersMethodmoveLiveLogs
(delta: number)
src/tui2/app.ts:193
↓ 3 callersMethodnavigate
(screen: ScreenId)
src/tui2/app.ts:179
next →1–100 of 576, ranked by callers