Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
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
↓ 8 callers
Function
defaultProps
( overrides: Partial<ProviderBatchToolbarProps> = {} )
tests/unit/settings/providers/provider-batch-toolbar.test.tsx:86
↓ 8 callers
Method
disconnect
()
src/components/ui/__tests__/map.test.tsx:447
↓ 8 callers
Function
emitFinalStream
(input: StreamEmitInput)
src/app/v1/_lib/proxy/fake-streaming/emitters.ts:33
↓ 8 callers
Function
ensureProviderEndpointExistsForUrl
( input: { vendorId: number; providerType: ProviderType; url: string; label?: string | null;
src/repository/provider-endpoints.ts:1128
↓ 8 callers
Function
evaluateResponsesWsEligibility
(options: { headers: Headers | Record<string, string>; provider: Provider; endpointId?: number | null; }
src/app/v1/_lib/responses-ws/eligibility.ts:85
↓ 8 callers
Function
expectOk
(module: string, action: string, body: Record<string, unknown> = {})
tests/e2e/notification-settings.test.ts:48
↓ 8 callers
Function
fakeRow
( overrides: Partial<{ id: number; name: string; costMultiplier: string; description: string
tests/unit/repository/provider-groups.test.ts:103
↓ 8 callers
Function
fetchData
()
src/app/[locale]/dashboard/_components/user/key-limit-usage.tsx:32
↓ 8 callers
Function
finalizeRequestStats
( session: ProxySession, responseText: string, statusCode: number, duration: number, errorMessage?:
src/app/v1/_lib/proxy/response-handler.ts:4041
↓ 8 callers
Function
findAllProvidersFresh
()
src/repository/provider.ts:456
↓ 8 callers
Function
findSessionOriginChain
( sessionId: string )
src/repository/message.ts:837
↓ 8 callers
Function
flushMicrotasks
()
tests/unit/repository/message-public-status-rollup.test.ts:87
↓ 8 callers
Function
flushMicrotasks
()
tests/unit/dashboard/user-insights-page.test.tsx:104
↓ 8 callers
Function
flushPromises
()
tests/unit/settings/prices/model-price-drawer-prefill-and-submit-ui.test.tsx:44
↓ 8 callers
Function
forgetPersistentSession
(sessionId: string, ws?: WebSocketType)
src/app/v1/_lib/responses-ws/upstream-adapter.ts:225
↓ 8 callers
Function
formatCostForStorage
(value: DecimalInput)
src/lib/utils/currency.ts:72
↓ 8 callers
Function
formatDuration
(durationMs: number | null)
src/lib/utils/performance-formatter.ts:33
↓ 8 callers
Function
formatProviderDescription
( chain: ProviderChainItem[], t: (key: string, values?: Record<string, string | number>) => string )
src/lib/utils/provider-chain-formatter.ts:401
↓ 8 callers
Function
getBenignBrokenPipeCode
(err: unknown)
src/lib/lifecycle/benign-errors.ts:40
↓ 8 callers
Function
getEnabledBindingsByType
( type: NotificationType )
src/repository/notification-bindings.ts:231
↓ 8 callers
Method
getGlobalSessionCount
* 获取全局活跃 session 计数 * * @returns 活跃 session 数量
src/lib/session-tracker.ts:280
↓ 8 callers
Method
getInstance
()
src/lib/proxy-status-tracker.ts:55
↓ 8 callers
Function
getKeyActiveSessionsKey
(keyId: number)
src/lib/redis/active-session-keys.ts:20
↓ 8 callers
Function
getKeyQuotaUsage
(keyId: number)
src/actions/key-quota.ts:33
↓ 8 callers
Function
getMyUsageLogsBatchFull
( params: MyUsageLogsBatchFilters = {} )
src/actions/my-usage.ts:765
↓ 8 callers
Function
getOverviewWithCache
( userId?: number )
src/lib/redis/overview-cache.ts:21
↓ 8 callers
Function
getPresetsForProvider
(providerType: ProviderType)
src/lib/provider-testing/presets.ts:189
↓ 8 callers
Function
getProviderTypeConfig
(type: ProviderType)
src/lib/provider-type-utils.tsx:55
↓ 8 callers
Function
getProviderTypeTranslationKey
(type: ProviderType)
src/lib/provider-type-utils.tsx:71
↓ 8 callers
Function
getSessionDetails
( sessionId: string, requestSequence?: number )
src/actions/active-sessions.ts:662
↓ 8 callers
Function
getSessionOriginChain
( sessionId: string )
src/actions/session-origin-chain.ts:13
↓ 8 callers
Function
getSiteTitleFooter
()
tests/unit/login/login-footer-system-name.test.tsx:90
↓ 8 callers
Function
getSubmitButton
()
tests/unit/login/login-loading-state.test.tsx:79
↓ 8 callers
Function
getUserActiveSessionsKey
(userId: number)
src/lib/redis/active-session-keys.ts:27
↓ 8 callers
Function
getUserInsightsModelBreakdown
( targetUserId: number, startDate?: string, endDate?: string, filters?: { keyId?: number; providerId?:
src/actions/admin-user-insights.ts:121
↓ 8 callers
Function
getUserInsightsOverview
( targetUserId: number, startDate?: string, endDate?: string )
src/actions/admin-user-insights.ts:31
↓ 8 callers
Function
hasMeaningfulCoordinates
(coords: IpGeoCoordinates)
src/app/[locale]/dashboard/_components/ip-details/atoms.tsx:64
↓ 8 callers
Function
hasPriorityServiceTierSpecialSetting
( specialSettings?: SpecialSetting[] | null )
src/lib/utils/special-settings.ts:222
↓ 8 callers
Function
hasProviderBatchPatchChanges
(patch: ProviderBatchPatch)
src/lib/provider-patch-contract.ts:1040
↓ 8 callers
Function
headersToSanitizedObject
* 将已脱敏的 header 文本解析为可序列化对象(用于写入 Session 元信息)。
src/lib/session-manager.ts:38
↓ 8 callers
Function
invalidateCachedKey
(keyString: string)
src/lib/security/api-key-auth-cache.ts:307
↓ 8 callers
Function
invalidateCachedUser
(userId: number)
src/lib/security/api-key-auth-cache.ts:378
↓ 8 callers
Function
isClientAllowed
( session: ProxySession, allowedClients: string[], blockedClients?: string[] )
src/app/v1/_lib/proxy/client-detector.ts:244
↓ 8 callers
Function
isEmptyResponseError
(error: unknown)
src/app/v1/_lib/proxy/errors.ts:895
↓ 8 callers
Function
isNonBillingUsageEndpoint
(session: ProxySession)
src/app/v1/_lib/proxy/response-handler.ts:391
↓ 8 callers
Function
isPresetSelected
(values: string[], presetValue: string)
src/lib/client-restrictions/client-presets.ts:76
↓ 8 callers
Function
isRecord
(value: unknown)
tests/e2e/responses-ws-codex-cli-transport.test.ts:659
↓ 8 callers
Function
isResponsesWsUnsupported
( providerId: number, endpointId: number | null | undefined )
src/app/v1/_lib/responses-ws/unsupported-cache.ts:37
↓ 8 callers
Function
log
(color, prefix, message)
scripts/validate-migrations.js:52
↓ 8 callers
Function
makeLoginRequest
(body: unknown)
tests/security/security-headers-integration.test.ts:52
↓ 8 callers
Function
makeOkResult
()
tests/unit/lib/provider-endpoints/probe-scheduler.test.ts:30
↓ 8 callers
Function
maskKey
(key: string)
src/lib/utils/validation/index.ts:27
↓ 8 callers
Function
matchLongContextPricing
( usage: UsageMetrics, priceData: ModelPriceData )
src/lib/utils/cost-calculation.ts:333
↓ 8 callers
Function
matchesAllowedModelRules
( model: string, rules: AllowedModelRuleInput[] | null | undefined )
src/lib/allowed-model-rules.ts:75
↓ 8 callers
Function
normalizeEndpointPath
(pathname: string)
src/app/v1/_lib/proxy/endpoint-paths.ts:34
↓ 8 callers
Function
normalizeIntPatch
(value: number, min: number, max: number)
src/app/[locale]/settings/notifications/_lib/hooks.ts:145
↓ 8 callers
Function
normalizeStringPreference
(value: string | null | undefined)
src/lib/codex/provider-overrides.ts:33
↓ 8 callers
Function
parseCsvLine
(line: string)
tests/unit/actions/usage-logs-export-retry-count.test.ts:114
↓ 8 callers
Function
parseLimitInfo
* 通用的限额信息解析函数 * 从错误原因字符串中提取当前使用量和限制值 * 支持两种格式: * - checkCostLimits: (current/limit) * - checkCostLimitsWithLease: (usage: current/limit)
src/app/v1/_lib/proxy/rate-limit-guard.ts:18
↓ 8 callers
Function
parseLimitInfo
* 模拟 parseLimitInfo 函数的逻辑 * 用于验证两种格式的解析是否正确
tests/unit/actions/my-usage-consistency.test.ts:18
↓ 8 callers
Function
parsePublicStatusQuery
( searchParams: URLSearchParams, defaults: PublicStatusQueryDefaults )
src/lib/public-status/public-api-contract.ts:302
↓ 8 callers
Function
parsePx
(value: string)
src/app/[locale]/dashboard/_components/bento/statistics-chart-card.tsx:33
↓ 8 callers
Function
parseSSEData
(sseText: string)
src/lib/utils/sse.ts:6
↓ 8 callers
Function
parseVendorParams
(c: Context)
src/app/api/v1/resources/provider-endpoints/handlers.ts:394
↓ 8 callers
Function
publishCacheInvalidation
(channel: string, message?: string)
src/lib/redis/pubsub.ts:205
↓ 8 callers
Function
reconcileOrder
(stored: string[], current: string[])
src/app/[locale]/status/_lib/group-order-store.ts:43
↓ 8 callers
Function
register
()
src/instrumentation.ts:272
↓ 8 callers
Function
releaseBackupLock
( lockId: string, operation: "export" | "import" )
src/lib/database-backup/backup-lock.ts:138
↓ 8 callers
Function
render
(node: ReactNode)
src/components/ui/__tests__/select-dropdown-highlight.test.tsx:29
↓ 8 callers
Function
render
(node: React.ReactNode)
tests/unit/settings/providers/thinking-budget-editor.test.tsx:59
↓ 8 callers
Function
render
(node: React.ReactNode)
tests/unit/settings/providers/provider-batch-toolbar.test.tsx:68
↓ 8 callers
Function
render
(ui: React.ReactElement)
tests/unit/settings/providers/provider-batch-preview-step.test.tsx:50
↓ 8 callers
Function
render
(node: React.ReactNode)
tests/unit/settings/providers/provider-batch-toolbar-selection.test.tsx:61
↓ 8 callers
Function
render
(node: React.ReactNode)
tests/unit/settings/providers/adaptive-thinking-editor.test.tsx:117
↓ 8 callers
Function
render
(node: ReactNode)
tests/unit/settings/prices/upload-price-dialog-upload-flow.test.tsx:38
↓ 8 callers
Function
render
(node: ReactNode)
tests/unit/public-status/public-status-view.test.tsx:74
↓ 8 callers
Function
resolvePricingForModelRecords
( input: ResolvePricingForModelRecordsInput )
src/lib/utils/pricing-resolution.ts:379
↓ 8 callers
Function
runDelete
(result: unknown)
tests/unit/api/v1/keys-delete-error-mapping.test.ts:28
↓ 8 callers
Function
runScenario
({ billingModelSource, isStream, enableHighConcurrencyMode = false, }: { billingModelSource: SystemSet
tests/integration/billing-model-source.test.ts:329
↓ 8 callers
Function
safeGet
(redis: RedisReader, key: string)
src/lib/public-status/config-snapshot.ts:150
↓ 8 callers
Method
set
(key: string, value: string, mode?: "NX")
src/lib/public-status/rollup-store.ts:90
↓ 8 callers
Function
setActiveSessionsCache
( data: Parameters<typeof activeSessionsCache.set>[1], key: string = "active_sessions" )
src/lib/cache/session-cache.ts:104
↓ 8 callers
Function
setFileInput
(input: HTMLInputElement, file: File)
tests/unit/settings/prices/upload-price-dialog-upload-flow.test.tsx:59
↓ 8 callers
Function
setupCircuitBreakerMocks
(options?: { redis?: { loadCircuitState?: (providerId: number) => Promise<SavedCircuitState | null>;
tests/unit/lib/circuit-breaker.test.ts:33
↓ 8 callers
Function
setupFakeTime
()
tests/unit/lib/circuit-breaker.test.ts:28
↓ 8 callers
Function
setupPreviewApplyAndGetUndo
Helper: preview -> apply -> return undo token + operationId + undoProviderPatch
tests/unit/actions/providers-undo-engine.test.ts:118
↓ 8 callers
Function
stopMessageRequestWriteBuffer
()
src/repository/message-write-buffer.ts:384
↓ 8 callers
Function
stubSecureContext
(value: boolean)
tests/unit/lib/utils/clipboard.test.ts:5
↓ 8 callers
Function
summarizeHedgeBilling
( costUsd: string | null | undefined, hedgeLosers: HedgeLoserBilling[] | null | undefined )
src/lib/utils/hedge-billing.ts:27
↓ 8 callers
Function
syncDefaultErrorRules
()
src/repository/error-rules.ts:895
↓ 8 callers
Function
toAuditValue
(value: unknown)
src/lib/anthropic/provider-overrides.ts:17
↓ 8 callers
Function
toBoundedInt
(value: unknown, fallback: number, min: number, max: number)
src/app/[locale]/settings/notifications/_lib/hooks.ts:132
↓ 8 callers
Function
toCount
(value: number | null | undefined)
src/lib/utils/hedge-billing.ts:107
↓ 8 callers
Function
updateMessageRequestDuration
(id: number, durationMs: number)
src/repository/message.ts:275
↓ 8 callers
Function
updateProvider
( id: number, providerData: UpdateProviderData )
src/repository/provider.ts:622
↓ 8 callers
Function
validateApiKeyAndGetUser
( keyString: string )
src/repository/key.ts:780
↓ 8 callers
Function
withNoStoreHeaders
(headers = new Headers())
src/lib/api/v1/_shared/cache-control.ts:6
↓ 8 callers
Function
withTimeout
(p: Promise<T>, ms: number, label: string)
src/lib/lifecycle/shutdown.ts:24
↓ 7 callers
Function
actionError
(c: Context, result: Extract<ActionResult<unknown>, { ok: false }>)
src/app/api/v1/resources/request-filters/handlers.ts:94
↓ 7 callers
Function
actionError
(c: Context, result: Extract<ActionResult<unknown>, { ok: false }>)
src/app/api/v1/resources/error-rules/handlers.ts:110
← previous
next →
701–800 of 6,623, ranked by callers