Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ding113/claude-code-hub
/ functions
Functions
6,623 in github.com/ding113/claude-code-hub
⨍
Functions
6,623
◇
Types & classes
1,237
↓ 3 callers
Method
isModelRedirected
* 检查是否发生了模型重定向
src/app/v1/_lib/proxy/session.ts:798
↓ 3 callers
Function
isMutationMethod
(method: string)
src/lib/api/v1/_shared/csrf.ts:51
↓ 3 callers
Method
isPendingCreationCurrent
(pending: PendingAgentCreation)
src/lib/proxy-agent/agent-pool.ts:487
↓ 3 callers
Function
isPlainRecord
(value: unknown)
src/lib/utils/upstream-error-detection.ts:220
↓ 3 callers
Function
isPriceLikeFieldPath
(path: string)
src/lib/utils/model-price-fields.ts:120
↓ 3 callers
Method
isProbeRequest
* 检查是否为 Claude Code CLI 探测请求 * - [{"role":"user","content":"foo"}] * - [{"role":"user","content":"count"}]
src/app/v1/_lib/proxy/session.ts:814
↓ 3 callers
Function
isProviderFinalized
(entry: { providerChain?: unknown[] | null; statusCode?: number | null; blockedBy?: string | null; })
src/lib/utils/provider-display.ts:12
↓ 3 callers
Function
isSSEResponse
(body: string, contentType?: string)
src/lib/provider-testing/utils/sse-collector.ts:348
↓ 3 callers
Function
isSuccessReason
(reason: string | undefined)
src/lib/langfuse/trace-proxy-request.ts:54
↓ 3 callers
Function
isUnlimited
(limit: number | null | undefined)
src/lib/utils/limit-helpers.ts:12
↓ 3 callers
Function
isUserFamilyScope
(scope: LeaderboardLeafScope)
src/app/[locale]/dashboard/leaderboard/_components/leaderboard-tab-groups.ts:45
↓ 3 callers
Function
isValidDate
(value: unknown)
src/lib/usage-logs/export/format.ts:19
↓ 3 callers
Function
isVersionGreater
(a: string, b: string)
src/lib/version.ts:138
↓ 3 callers
Function
isWhitespace
(byte: number)
src/app/v1/_lib/proxy/response-fixer/json-fixer.ts:5
↓ 3 callers
Method
isWindowExpired
(record: AttemptRecord, now: number)
src/lib/security/login-abuse-policy.ts:221
↓ 3 callers
Function
listJsonFilesRecursive
(dir: string)
tests/unit/i18n/settings-split-guards.test.ts:20
↓ 3 callers
Function
loadJson
(p)
scripts/audit-settings-placeholders.js:59
↓ 3 callers
Function
loadJson
(filePath: string)
tests/unit/i18n/settings-split-guards.test.ts:33
↓ 3 callers
Function
loadMessages
()
tests/unit/settings/providers/provider-form-total-limit-ui.test.tsx:68
↓ 3 callers
Function
loadPublicSiteMeta
()
src/lib/public-status/public-api-loader.ts:100
↓ 3 callers
Function
loadUserUsagePagesSequentially
({ pageUserIds, signal, idleDelayMs = USER_USAGE_IDLE_DELAY_MS, fetchUsagePage, onPageLoaded, }: Loa
src/lib/dashboard/user-usage-loader.ts:35
↓ 3 callers
Function
logHealthFailure
(component: "database" | "redis" | "proxy", error: unknown)
src/lib/health/checker.ts:26
↓ 3 callers
Function
loginAndGetAuthToken
(apiBaseUrl: string, key: string)
tests/e2e/_helpers/auth.ts:150
↓ 3 callers
Function
makeEndpoint
(overrides: Partial<ProviderEndpoint>)
tests/unit/lib/provider-endpoints/probe.test.ts:4
↓ 3 callers
Function
makeLog
(overrides: Partial<MyUsageLogEntry> = {})
src/app/[locale]/my-usage/_components/usage-logs-table.test.tsx:66
↓ 3 callers
Function
makeLog
()
tests/unit/server-standalone-config.test.ts:12
↓ 3 callers
Function
makeLoginRequest
(headers: Record<string, string> = {}, key = "valid-key")
tests/security/auth-csrf-route-integration.test.ts:59
↓ 3 callers
Function
makeLogoutRequest
(headers: Record<string, string> = {})
tests/security/auth-csrf-route-integration.test.ts:74
↓ 3 callers
Function
makeLogoutRequest
()
tests/security/security-headers-integration.test.ts:60
↓ 3 callers
Function
makeProvider
(id: number, name: string)
tests/unit/proxy/hedge-winner-dedup.test.ts:122
↓ 3 callers
Function
makeProviderDisplay
(overrides: Partial<ProviderDisplay> = {})
tests/unit/settings/providers/provider-rich-list-item-endpoints.test.tsx:86
↓ 3 callers
Function
makeProviderDisplay
(overrides: Partial<ProviderDisplay> = {})
tests/unit/settings/providers/vendor-keys-compact-list-ui.test.tsx:190
↓ 3 callers
Function
makeSession
(ip: string, apiKey: string)
tests/unit/proxy/auth-guard-precheck.test.ts:49
↓ 3 callers
Function
mapRow
(row: Row)
src/repository/request-filters.ts:39
↓ 3 callers
Function
maskProxyUrl
(proxyUrl: string)
src/lib/proxy-agent.ts:200
↓ 3 callers
Function
matchesCodexFamilyAlias
(pattern: string, userAgent: string)
src/app/v1/_lib/proxy/client-detector.ts:71
↓ 3 callers
Function
matchesPublicPath
(pathname: string, pattern: string)
src/proxy.ts:22
↓ 3 callers
Function
mergeOrderedUsageLogs
(rows: T[])
src/repository/usage-logs.ts:678
↓ 3 callers
Function
mergePatch
( base: MessageRequestUpdatePatch, incoming: MessageRequestUpdatePatch )
src/repository/message-write-buffer.ts:169
↓ 3 callers
Function
mergePresetAndCustomClients
(values: string[], customValues: string[])
src/lib/client-restrictions/client-presets.ts:111
↓ 3 callers
Function
mergeUsageMetrics
(base: UsageMetrics | null, patch: UsageMetrics)
src/app/v1/_lib/proxy/response-handler.ts:3434
↓ 3 callers
Function
normalizeApiCalls
(value: number | string | null)
src/repository/statistics.ts:146
↓ 3 callers
Function
normalizeErrorValue
(value: unknown)
src/actions/providers.ts:3457
↓ 3 callers
Function
normalizeFunctionArguments
( target: JsonRecord, key: string, fixes: string[], path: string )
src/app/v1/_lib/proxy/response-output-normalizer.ts:40
↓ 3 callers
Function
normalizeManagementKeyName
(keyName: string | undefined)
src/lib/api/action-adapter-openapi.ts:82
↓ 3 callers
Function
normalizePageQuery
(input: { page?: string | number | null; pageSize?: string | number | null; })
src/lib/api/v1/_shared/pagination.ts:11
↓ 3 callers
Function
normalizeTotalCost
(value: string | number | null)
src/repository/statistics.ts:151
↓ 3 callers
Function
normalizeTtlSeconds
(value: number | undefined)
src/lib/auth-session-store/redis-session-store.ts:28
↓ 3 callers
Function
normalizeZodPath
(path: PropertyKey[])
src/lib/api/v1/_shared/error-envelope.ts:87
↓ 3 callers
Method
noteExistingKey
* 将一个“已确认为存在”的 key 写入过滤器(尽量保持新建 key 的即时可用性)。 * * 注意:写入失败不会影响正确性(仍会走 DB),只是降低短路命中率;失败后可依赖后台重建修复。
src/lib/security/api-key-vacuum-filter.ts:167
↓ 3 callers
Function
optionalPreprocessed
( preprocess: (value: unknown) => unknown, schema: T )
src/lib/validation/schemas.ts:94
↓ 3 callers
Function
parseJson
(raw: string | null)
src/lib/public-status/read-store.ts:52
↓ 3 callers
Function
parseJsonSafe
(text: string)
src/app/v1/_lib/proxy/actual-response-model.ts:124
↓ 3 callers
Function
parseJsonUserId
(userId: string)
tests/unit/proxy/metadata-injection.test.ts:29
↓ 3 callers
Function
parseNumber
(input: string | null | undefined, fallback: number)
src/lib/notification/tasks/cache-hit-rate-alert.ts:33
↓ 3 callers
Function
parsePath
(path: string)
src/lib/request-filter-engine.ts:36
↓ 3 callers
Function
parsePosInt
(raw, fallback)
server.js:755
↓ 3 callers
Function
parseResetTime
(resetTime: string)
src/lib/rate-limit/time-utils.ts:299
↓ 3 callers
Function
parseSSEStream
(body: string)
src/lib/provider-testing/utils/sse-collector.ts:167
↓ 3 callers
Function
peekCachedUserLimitUsage
(userId: number)
src/lib/dashboard/user-limit-usage-cache.ts:34
↓ 3 callers
Function
percent
(covered: number, total: number)
scripts/check-v1-critical-coverage.ts:26
↓ 3 callers
Function
persist
( vendorId: number, providerType: ProviderType, state: VendorTypeCircuitBreakerState )
src/lib/vendor-type-circuit-breaker.ts:94
↓ 3 callers
Method
persistLiveChain
()
src/app/v1/_lib/proxy/session.ts:684
↓ 3 callers
Function
persistSpecialSettings
(session: ProxySession)
src/app/v1/_lib/proxy/forwarder.ts:533
↓ 3 callers
Function
popMessage
()
src/app/v1/_lib/responses-ws/upstream-adapter.ts:772
↓ 3 callers
Function
probeProviderEndpoint
(c: Context)
src/app/api/v1/resources/provider-endpoints/handlers.ts:213
↓ 3 callers
Function
probeProviderEndpointAndRecordByEndpoint
(input: { endpoint: ProbeTarget; source: ProviderEndpointProbeSource; timeoutMs?: number; })
src/lib/provider-endpoints/probe.ts:222
↓ 3 callers
Function
processText
(text: string)
src/app/v1/_lib/responses-ws/upstream-adapter.ts:752
↓ 3 callers
Function
publishCircuitBreakerConfigInvalidation
( providerIds: number | number[] )
src/lib/circuit-breaker.ts:190
↓ 3 callers
Method
publishCurrentPublicStatusConfigPointers
(input: { configVersion: string; redis: { set: (...args: unknown[]) => Promise<unknown>; e
tests/unit/public-status/config-snapshot.test.ts:90
↓ 3 callers
Function
publishCurrentPublicStatusConfigProjection
(input: { reason: string; configVersion?: string; })
src/lib/public-status/config-publisher.ts:57
↓ 3 callers
Method
purgeExpired
()
src/lib/cache/ttl-map.ts:57
↓ 3 callers
Function
rankProviderEndpoints
(endpoints: ProviderEndpoint[])
src/lib/provider-endpoints/endpoint-selector.ts:36
↓ 3 callers
Function
read
(name: string)
tests/unit/settings/system-settings-form-fake-streaming.test.tsx:106
↓ 3 callers
Function
readJson
(relPath: string)
tests/unit/i18n/ja-providers-guide-quality.test.ts:5
↓ 3 callers
Function
readJson
(relPath: string)
tests/unit/i18n/zh-tw-providers-form-strings-quality.test.ts:5
↓ 3 callers
Function
readJson
(relPath: string)
tests/unit/i18n/zh-tw-providers-guide-quality.test.ts:5
↓ 3 callers
Function
readLocaleActionTree
(locale: (typeof LOCALES)[number])
tests/unit/i18n/audit-log-actions-messages.test.ts:72
↓ 3 callers
Function
readProjection
(input: { redis: RedisReader; intervalMinutes: number; rangeHours: number; nowIso: string; configVer
src/lib/public-status/read-store.ts:197
↓ 3 callers
Function
readPublicSiteMeta
()
src/lib/public-site-meta.ts:16
↓ 3 callers
Function
readSource
(filePath: string, sourceCache: Map<string, string>)
tests/unit/frontend/no-client-actions-import.test.ts:98
↓ 3 callers
Function
readU32LE
(bytes: Uint8Array, offset: number)
src/lib/vacuum-filter/vacuum-filter.ts:189
↓ 3 callers
Function
readVarint
( buf: Buffer, startOffset: number )
src/app/v1/_lib/proxy/thinking-signature-model.ts:202
↓ 3 callers
Function
readWithTimeout
( reader: ReadableStreamDefaultReader<Uint8Array>, timeoutMs: number )
tests/unit/proxy/response-handler-gemini-stream-passthrough-timeouts.test.ts:250
↓ 3 callers
Function
recordProviderEndpointProbeResult
(input: { endpointId: number; source: ProviderEndpointProbeSource; ok: boolean; statusCode?: number |
src/repository/provider-endpoints.ts:2160
↓ 3 callers
Method
recordProviderSessionRef
(providerId: number)
src/app/v1/_lib/proxy/session.ts:352
↓ 3 callers
Function
redactGeminiParts
* Redact Gemini parts array (text, inlineData, functionCall)
src/lib/utils/message-redaction.ts:116
↓ 3 callers
Function
redactMessagesArray
* Redact messages array in request body
src/lib/utils/message-redaction.ts:85
↓ 3 callers
Function
redactUserKeys
(value: unknown)
src/app/api/v1/resources/users/handlers.ts:353
↓ 3 callers
Function
releaseLock
(reason?: string)
src/app/api/admin/database/export/route.ts:35
↓ 3 callers
Function
removeProviderEndpoint
(input: unknown)
src/actions/provider-endpoints.ts:564
↓ 3 callers
Function
removeProviderVendor
(input: unknown)
src/actions/provider-endpoints.ts:1194
↓ 3 callers
Function
removeUser
(userId: number)
src/actions/users.ts:1877
↓ 3 callers
Function
render
(node: ReactNode)
src/components/ui/__tests__/tag-input-dialog.test.tsx:19
↓ 3 callers
Function
render
(node: ReactNode)
tests/unit/settings/providers/provider-form-total-limit-ui.test.tsx:78
↓ 3 callers
Function
render
()
tests/unit/login/login-footer-version.test.tsx:57
↓ 3 callers
Function
renderForm
(settings: FormSettings = baseSettings)
tests/unit/settings/system-settings-form-upstream-error-message.test.tsx:137
↓ 3 callers
Function
renderHookProbe
(node: ReactNode)
tests/unit/frontend/use-ip-geo.test.tsx:47
↓ 3 callers
Function
renderUsageLogsView
()
src/app/[locale]/dashboard/logs/_components/usage-logs-view-virtualized.test.tsx:135
↓ 3 callers
Function
renderWithAuth
(node: ReactNode)
tests/unit/usage-doc/usage-doc-auth-state.test.tsx:37
← previous
next →
2,001–2,100 of 6,623, ranked by callers