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
↓ 3 callers
Function
normalizeLogLevel
(value: string | undefined, fallback: RuntimeLogLevel)
src/utils/runtimeLoggingService.ts:38
↓ 3 callers
Function
normalizeLogLevel
(value: string | undefined, fallback: RuntimeLogLevel)
src/core/config/runtime-config-store.ts:43
↓ 3 callers
Function
parseFloatValue
(value: string | undefined, fallback: number)
src/config.ts:12
↓ 3 callers
Function
parseInteger
(value: string | undefined, fallback: number)
src/utils/runtimeLoggingService.ts:33
↓ 3 callers
Function
parseMouse
(data: string)
src/tui2/mouse.ts:10
↓ 3 callers
Method
resetRequestCountsIfNeeded
()
src/qwen/api.ts:610
↓ 3 callers
Function
resolveRuntimeStoragePaths
(options: RuntimeStoragePathOptions = {})
src/core/config/storage-paths.ts:27
↓ 3 callers
Function
resolveStartupLogLevel
()
src/utils/runtimeLoggingService.ts:47
↓ 3 callers
Function
runCommand
(command: string, args: string[], env: NodeJS.ProcessEnv, cwd = process.cwd())
scripts/smoke-packaged-install.ts:12
↓ 3 callers
Function
runUsageCommand
(args: string[] = process.argv.slice(2), options: { commandName?: string } = {})
usage.ts:103
↓ 3 callers
Function
selected
(s: string)
src/tui2/render.ts:105
↓ 3 callers
Function
sendResponse
(response: any)
src/mcp.ts:38
↓ 3 callers
Method
setRuntimeLogLevel
(level: RuntimeLogLevel, persist = true)
src/utils/runtimeLoggingService.ts:112
↓ 3 callers
Function
statusColor
(status: AccountInfo["status"])
src/tui2/screens/accounts.ts:10
↓ 3 callers
Method
stepAccounts
(delta: number)
src/tui2/app.ts:200
↓ 3 callers
Method
stepArtifacts
(delta: number)
src/tui2/app.ts:218
↓ 3 callers
Method
stepUsage
(delta: number)
src/tui2/app.ts:209
↓ 3 callers
Function
stripAnsi
(text: string)
src/tui2/main.ts:32
↓ 2 callers
Method
checkAndRefreshExpiredAccounts
()
src/utils/accountRefreshScheduler.ts:37
↓ 2 callers
Function
clamp
(value: number, min: number, max: number)
src/tui2/screens/artifacts.ts:22
↓ 2 callers
Function
clampMaxTokens
(model: string, maxTokens: number)
src/qwen/api.ts:131
↓ 2 callers
Function
classifyLogLine
(message: string)
src/tui2/main.ts:105
↓ 2 callers
Method
cleanupLogs
()
src/utils/runtimeLoggingService.ts:314
↓ 2 callers
Function
createInitialAuthModalState
()
src/tui2/state.ts:100
↓ 2 callers
Function
createInitialDeleteModalState
()
src/tui2/state.ts:110
↓ 2 callers
Function
createShutdownHandler
({ signal, server, qwenAPI, accountRefreshScheduler, liveLogger }: { signal: string; server?: any; qwenAPI: an
src/server/lifecycle.ts:49
↓ 2 callers
Function
disableMouse
(write: (s: string) => void)
src/tui2/mouse.ts:31
↓ 2 callers
Function
enableMouse
(write: (s: string) => void)
src/tui2/mouse.ts:27
↓ 2 callers
Method
enforceLogFileLimit
(limit: number)
src/utils/logger.ts:26
↓ 2 callers
Function
ensureDay
(date: string)
usage.ts:33
↓ 2 callers
Method
ensureTokenUsage
(accountId: string, date: string)
src/core/usage/in-memory-usage-store.ts:67
↓ 2 callers
Function
formatAccountStatus
(credentials: any, needsRefresh: boolean)
src/server/health-handler.ts:1
↓ 2 callers
Function
formatDuration
(ms: number)
src/tui2/render.ts:383
↓ 2 callers
Function
formatExpiry
(expiresAt: number | undefined)
src/tui2/render.ts:408
↓ 2 callers
Function
formatPercent
(rate: number)
src/tui2/render.ts:397
↓ 2 callers
Function
formatRequests
(day: Pick<UsageDay, "requests" | "requestsKnown" | "requestFloor">)
src/tui2/screens/usage.ts:7
↓ 2 callers
Method
getApiEndpoint
(credentials: any)
src/qwen/api.ts:849
↓ 2 callers
Method
getErrorType
(error: any)
src/utils/logger.ts:142
↓ 2 callers
Method
getLogDir
()
src/utils/runtimeLoggingService.ts:147
↓ 2 callers
Method
getRefreshThresholdMinutes
(accountId: string | null = null)
src/qwen/auth.ts:203
↓ 2 callers
Function
getRequestAccountId
(req: RequestLike)
src/server/proxy-controller.ts:18
↓ 2 callers
Method
getTimestampForFilename
()
src/utils/logger.ts:50
↓ 2 callers
Method
getWebSearchRequestCount
(accountId: string)
src/qwen/api.ts:633
↓ 2 callers
Function
handleStartServer
()
src/tui2/main.ts:204
↓ 2 callers
Method
incrementRequestCount
(accountId: string)
src/qwen/api.ts:648
↓ 2 callers
Method
initiateDeviceFlow
()
src/core/auth/contracts.ts:29
↓ 2 callers
Method
initiateDeviceFlow
()
src/qwen/auth.ts:399
↓ 2 callers
Method
isAccountValid
(accountId: string)
src/qwen/auth.ts:394
↓ 2 callers
Function
isMissingPathError
(error: unknown)
src/qwen/auth.ts:56
↓ 2 callers
Function
isSelectionStyle
(value: string | undefined | null)
src/tui2/theme.ts:105
↓ 2 callers
Function
isThemeName
(value: string | undefined | null)
src/tui2/theme.ts:96
↓ 2 callers
Method
listAccountIds
()
src/core/auth/contracts.ts:24
↓ 2 callers
Function
liveLogLevelButtons
(current: LogLevel)
src/tui2/screens/live.ts:41
↓ 2 callers
Function
liveServerButtons
(serverState: TuiState["runtime"]["serverState"])
src/tui2/screens/live.ts:33
↓ 2 callers
Method
loadDefaultCredentials
()
src/core/auth/contracts.ts:22
↓ 2 callers
Method
loadUsageStateFromStore
()
src/qwen/api.ts:578
↓ 2 callers
Method
mainWidth
(totalWidth: number)
src/tui2/app.ts:282
↓ 2 callers
Method
normalizeAccountKey
(accountId: string | null = null)
src/qwen/auth.ts:199
↓ 2 callers
Function
normalizeInput
(input: unknown)
src/utils/tokenCounter.ts:3
↓ 2 callers
Function
normalizeRawResponseBody
(value: unknown)
src/qwen/api.ts:383
↓ 2 callers
Function
normalizeRetryConfig
(value: Partial<RetryConfig> | undefined)
src/core/config/runtime-config-store.ts:80
↓ 2 callers
Function
normalizeSelectionStyle
(value: string | undefined)
src/core/config/runtime-config-store.ts:67
↓ 2 callers
Function
normalizeTheme
(value: string | undefined)
src/core/config/runtime-config-store.ts:59
↓ 2 callers
Function
parseJson
(raw: string)
src/core/config/runtime-config-store.ts:35
↓ 2 callers
Function
parseJsonResponseBody
(rawBody: unknown, context: string)
src/qwen/api.ts:440
↓ 2 callers
Method
performTokenRefresh
(credentials: QwenCredentials, accountId: string | null = null)
src/qwen/auth.ts:349
↓ 2 callers
Function
persistTuiPreferences
(input: { theme?: TuiState["themeName"]; selectionStyle?: TuiState["selectionStyle"] })
src/tui2/main.ts:97
↓ 2 callers
Method
pollForToken
(deviceCode: string, codeVerifier: string, accountId?: string)
src/core/auth/contracts.ts:30
↓ 2 callers
Method
pollForToken
(device_code: string, code_verifier: string, accountId: string | null = null)
src/qwen/auth.ts:438
↓ 2 callers
Function
printAuthUsage
(commandPrefix = "npm run auth")
authenticate.ts:198
↓ 2 callers
Function
processMessagesForVision
(messages: any[], model: string)
src/qwen/api.ts:139
↓ 2 callers
Method
recordTokenUsage
(accountId: string, usage: any)
src/qwen/api.ts:658
↓ 2 callers
Method
refreshAccessToken
(credentials: QwenCredentials)
src/qwen/auth.ts:244
↓ 2 callers
Function
refreshUsage
()
src/tui2/main.ts:177
↓ 2 callers
Function
resolveModelAlias
(model: string)
src/qwen/api.ts:99
↓ 2 callers
Function
resolveThinkingParams
(request: any)
src/qwen/api.ts:58
↓ 2 callers
Function
runAuthCommand
(args: string[] = process.argv.slice(2), options: { commandPrefix?: string } = {})
authenticate.ts:207
↓ 2 callers
Function
setActiveSelectionStyle
(style: SelectionStyle)
src/tui2/theme.ts:109
↓ 2 callers
Function
setActiveTheme
(themeName: ThemeName)
src/tui2/theme.ts:117
↓ 2 callers
Method
setArtifactFilter
(value: string)
src/tui2/app.ts:242
↓ 2 callers
Method
setLogLevel
(level: RuntimeLogLevel)
src/core/logging/contracts.ts:5
↓ 2 callers
Method
shouldRefreshToken
(credentials: QwenCredentials | null, accountId: string | null = null)
src/qwen/auth.ts:211
↓ 2 callers
Function
shutdownServerRuntime
({ qwenAPI, accountRefreshScheduler, liveLogger, server, reason, }: { qwenAPI: any; accountRefre
src/server/lifecycle.ts:18
↓ 2 callers
Method
startCleanupJob
()
src/utils/runtimeLoggingService.ts:327
↓ 2 callers
Function
startTui
()
src/cli/qwen-proxy.ts:8
↓ 2 callers
Function
sumRequestCounts
(requestCounts: Map<string, number>)
src/tui2/runtime.ts:88
↓ 2 callers
Method
transform
(messages: Message[], model: string)
src/utils/systemPromptTransformer.ts:88
↓ 2 callers
Function
transformMessagesForPortal
* Sanitizes and transforms message payloads to comply with the undocumented * strict formatting rules of the `portal.qwen.ai/v1/chat/completions` en
src/qwen/api.ts:207
↓ 2 callers
Method
update
(modal: AccountsAuthModalState)
src/tui2/auth-overlay.ts:52
↓ 2 callers
Function
wait
(ms: number)
scripts/validate-tui-pty.ts:99
↓ 2 callers
Function
warnAuthIssueOnce
(issueKey: string, ...args: unknown[])
src/qwen/auth.ts:60
↓ 1 callers
Function
addAccount
(accountId: string)
authenticate.ts:46
↓ 1 callers
Method
addCacheControl
(message: Message)
src/utils/systemPromptTransformer.ts:65
↓ 1 callers
Function
aggregateUsageDays
( tokenUsage: Map<string, Array<{ date: string; requests?: number; requestsKnown?: boolean;
src/tui2/runtime.ts:191
↓ 1 callers
Function
allocatePort
()
scripts/smoke-packaged-install.ts:28
↓ 1 callers
Function
appearanceRows
(state: TuiState)
src/tui2/screens/settings.ts:17
↓ 1 callers
Function
artifactExists
(tree: readonly ArtifactNode[], target: string)
src/tui2/main.ts:112
↓ 1 callers
Function
artifactPathExists
(nodes: readonly ArtifactNode[], target: string | null)
src/tui2/state.ts:36
↓ 1 callers
Method
attachRuntimeConfigStore
(runtimeConfigStore: RuntimeConfigStoreLike | null | undefined)
src/utils/runtimeLoggingService.ts:65
↓ 1 callers
Function
authenticate
()
authenticate.ts:140
← previous
next →
101–200 of 576, ranked by callers