MCPcopy Index your code

hub / github.com/ding113/claude-code-hub / functions

Functions6,623 in github.com/ding113/claude-code-hub

↓ 8 callersFunctiondefaultProps
( overrides: Partial<ProviderBatchToolbarProps> = {} )
tests/unit/settings/providers/provider-batch-toolbar.test.tsx:86
↓ 8 callersMethoddisconnect
()
src/components/ui/__tests__/map.test.tsx:447
↓ 8 callersFunctionemitFinalStream
(input: StreamEmitInput)
src/app/v1/_lib/proxy/fake-streaming/emitters.ts:33
↓ 8 callersFunctionensureProviderEndpointExistsForUrl
( input: { vendorId: number; providerType: ProviderType; url: string; label?: string | null;
src/repository/provider-endpoints.ts:1128
↓ 8 callersFunctionevaluateResponsesWsEligibility
(options: { headers: Headers | Record<string, string>; provider: Provider; endpointId?: number | null; }
src/app/v1/_lib/responses-ws/eligibility.ts:85
↓ 8 callersFunctionexpectOk
(module: string, action: string, body: Record<string, unknown> = {})
tests/e2e/notification-settings.test.ts:48
↓ 8 callersFunctionfakeRow
( overrides: Partial<{ id: number; name: string; costMultiplier: string; description: string
tests/unit/repository/provider-groups.test.ts:103
↓ 8 callersFunctionfetchData
()
src/app/[locale]/dashboard/_components/user/key-limit-usage.tsx:32
↓ 8 callersFunctionfinalizeRequestStats
( session: ProxySession, responseText: string, statusCode: number, duration: number, errorMessage?:
src/app/v1/_lib/proxy/response-handler.ts:4041
↓ 8 callersFunctionfindAllProvidersFresh
()
src/repository/provider.ts:456
↓ 8 callersFunctionfindSessionOriginChain
( sessionId: string )
src/repository/message.ts:837
↓ 8 callersFunctionflushMicrotasks
()
tests/unit/repository/message-public-status-rollup.test.ts:87
↓ 8 callersFunctionflushMicrotasks
()
tests/unit/dashboard/user-insights-page.test.tsx:104
↓ 8 callersFunctionflushPromises
()
tests/unit/settings/prices/model-price-drawer-prefill-and-submit-ui.test.tsx:44
↓ 8 callersFunctionforgetPersistentSession
(sessionId: string, ws?: WebSocketType)
src/app/v1/_lib/responses-ws/upstream-adapter.ts:225
↓ 8 callersFunctionformatCostForStorage
(value: DecimalInput)
src/lib/utils/currency.ts:72
↓ 8 callersFunctionformatDuration
(durationMs: number | null)
src/lib/utils/performance-formatter.ts:33
↓ 8 callersFunctionformatProviderDescription
( chain: ProviderChainItem[], t: (key: string, values?: Record<string, string | number>) => string )
src/lib/utils/provider-chain-formatter.ts:401
↓ 8 callersFunctiongetBenignBrokenPipeCode
(err: unknown)
src/lib/lifecycle/benign-errors.ts:40
↓ 8 callersFunctiongetEnabledBindingsByType
( type: NotificationType )
src/repository/notification-bindings.ts:231
↓ 8 callersMethodgetGlobalSessionCount
* 获取全局活跃 session 计数 * * @returns 活跃 session 数量
src/lib/session-tracker.ts:280
↓ 8 callersMethodgetInstance
()
src/lib/proxy-status-tracker.ts:55
↓ 8 callersFunctiongetKeyActiveSessionsKey
(keyId: number)
src/lib/redis/active-session-keys.ts:20
↓ 8 callersFunctiongetKeyQuotaUsage
(keyId: number)
src/actions/key-quota.ts:33
↓ 8 callersFunctiongetMyUsageLogsBatchFull
( params: MyUsageLogsBatchFilters = {} )
src/actions/my-usage.ts:765
↓ 8 callersFunctiongetOverviewWithCache
( userId?: number )
src/lib/redis/overview-cache.ts:21
↓ 8 callersFunctiongetPresetsForProvider
(providerType: ProviderType)
src/lib/provider-testing/presets.ts:189
↓ 8 callersFunctiongetProviderTypeConfig
(type: ProviderType)
src/lib/provider-type-utils.tsx:55
↓ 8 callersFunctiongetProviderTypeTranslationKey
(type: ProviderType)
src/lib/provider-type-utils.tsx:71
↓ 8 callersFunctiongetSessionDetails
( sessionId: string, requestSequence?: number )
src/actions/active-sessions.ts:662
↓ 8 callersFunctiongetSessionOriginChain
( sessionId: string )
src/actions/session-origin-chain.ts:13
↓ 8 callersFunctiongetSiteTitleFooter
()
tests/unit/login/login-footer-system-name.test.tsx:90
↓ 8 callersFunctiongetSubmitButton
()
tests/unit/login/login-loading-state.test.tsx:79
↓ 8 callersFunctiongetUserActiveSessionsKey
(userId: number)
src/lib/redis/active-session-keys.ts:27
↓ 8 callersFunctiongetUserInsightsModelBreakdown
( targetUserId: number, startDate?: string, endDate?: string, filters?: { keyId?: number; providerId?:
src/actions/admin-user-insights.ts:121
↓ 8 callersFunctiongetUserInsightsOverview
( targetUserId: number, startDate?: string, endDate?: string )
src/actions/admin-user-insights.ts:31
↓ 8 callersFunctionhasMeaningfulCoordinates
(coords: IpGeoCoordinates)
src/app/[locale]/dashboard/_components/ip-details/atoms.tsx:64
↓ 8 callersFunctionhasPriorityServiceTierSpecialSetting
( specialSettings?: SpecialSetting[] | null )
src/lib/utils/special-settings.ts:222
↓ 8 callersFunctionhasProviderBatchPatchChanges
(patch: ProviderBatchPatch)
src/lib/provider-patch-contract.ts:1040
↓ 8 callersFunctionheadersToSanitizedObject
* 将已脱敏的 header 文本解析为可序列化对象(用于写入 Session 元信息)。
src/lib/session-manager.ts:38
↓ 8 callersFunctioninvalidateCachedKey
(keyString: string)
src/lib/security/api-key-auth-cache.ts:307
↓ 8 callersFunctioninvalidateCachedUser
(userId: number)
src/lib/security/api-key-auth-cache.ts:378
↓ 8 callersFunctionisClientAllowed
( session: ProxySession, allowedClients: string[], blockedClients?: string[] )
src/app/v1/_lib/proxy/client-detector.ts:244
↓ 8 callersFunctionisEmptyResponseError
(error: unknown)
src/app/v1/_lib/proxy/errors.ts:895
↓ 8 callersFunctionisNonBillingUsageEndpoint
(session: ProxySession)
src/app/v1/_lib/proxy/response-handler.ts:391
↓ 8 callersFunctionisPresetSelected
(values: string[], presetValue: string)
src/lib/client-restrictions/client-presets.ts:76
↓ 8 callersFunctionisRecord
(value: unknown)
tests/e2e/responses-ws-codex-cli-transport.test.ts:659
↓ 8 callersFunctionisResponsesWsUnsupported
( providerId: number, endpointId: number | null | undefined )
src/app/v1/_lib/responses-ws/unsupported-cache.ts:37
↓ 8 callersFunctionlog
(color, prefix, message)
scripts/validate-migrations.js:52
↓ 8 callersFunctionmakeLoginRequest
(body: unknown)
tests/security/security-headers-integration.test.ts:52
↓ 8 callersFunctionmakeOkResult
()
tests/unit/lib/provider-endpoints/probe-scheduler.test.ts:30
↓ 8 callersFunctionmaskKey
(key: string)
src/lib/utils/validation/index.ts:27
↓ 8 callersFunctionmatchLongContextPricing
( usage: UsageMetrics, priceData: ModelPriceData )
src/lib/utils/cost-calculation.ts:333
↓ 8 callersFunctionmatchesAllowedModelRules
( model: string, rules: AllowedModelRuleInput[] | null | undefined )
src/lib/allowed-model-rules.ts:75
↓ 8 callersFunctionnormalizeEndpointPath
(pathname: string)
src/app/v1/_lib/proxy/endpoint-paths.ts:34
↓ 8 callersFunctionnormalizeIntPatch
(value: number, min: number, max: number)
src/app/[locale]/settings/notifications/_lib/hooks.ts:145
↓ 8 callersFunctionnormalizeStringPreference
(value: string | null | undefined)
src/lib/codex/provider-overrides.ts:33
↓ 8 callersFunctionparseCsvLine
(line: string)
tests/unit/actions/usage-logs-export-retry-count.test.ts:114
↓ 8 callersFunctionparseLimitInfo
* 通用的限额信息解析函数 * 从错误原因字符串中提取当前使用量和限制值 * 支持两种格式: * - checkCostLimits: (current/limit) * - checkCostLimitsWithLease: (usage: current/limit)
src/app/v1/_lib/proxy/rate-limit-guard.ts:18
↓ 8 callersFunctionparseLimitInfo
* 模拟 parseLimitInfo 函数的逻辑 * 用于验证两种格式的解析是否正确
tests/unit/actions/my-usage-consistency.test.ts:18
↓ 8 callersFunctionparsePublicStatusQuery
( searchParams: URLSearchParams, defaults: PublicStatusQueryDefaults )
src/lib/public-status/public-api-contract.ts:302
↓ 8 callersFunctionparsePx
(value: string)
src/app/[locale]/dashboard/_components/bento/statistics-chart-card.tsx:33
↓ 8 callersFunctionparseSSEData
(sseText: string)
src/lib/utils/sse.ts:6
↓ 8 callersFunctionparseVendorParams
(c: Context)
src/app/api/v1/resources/provider-endpoints/handlers.ts:394
↓ 8 callersFunctionpublishCacheInvalidation
(channel: string, message?: string)
src/lib/redis/pubsub.ts:205
↓ 8 callersFunctionreconcileOrder
(stored: string[], current: string[])
src/app/[locale]/status/_lib/group-order-store.ts:43
↓ 8 callersFunctionregister
()
src/instrumentation.ts:272
↓ 8 callersFunctionreleaseBackupLock
( lockId: string, operation: "export" | "import" )
src/lib/database-backup/backup-lock.ts:138
↓ 8 callersFunctionrender
(node: ReactNode)
src/components/ui/__tests__/select-dropdown-highlight.test.tsx:29
↓ 8 callersFunctionrender
(node: React.ReactNode)
tests/unit/settings/providers/thinking-budget-editor.test.tsx:59
↓ 8 callersFunctionrender
(node: React.ReactNode)
tests/unit/settings/providers/provider-batch-toolbar.test.tsx:68
↓ 8 callersFunctionrender
(ui: React.ReactElement)
tests/unit/settings/providers/provider-batch-preview-step.test.tsx:50
↓ 8 callersFunctionrender
(node: React.ReactNode)
tests/unit/settings/providers/provider-batch-toolbar-selection.test.tsx:61
↓ 8 callersFunctionrender
(node: React.ReactNode)
tests/unit/settings/providers/adaptive-thinking-editor.test.tsx:117
↓ 8 callersFunctionrender
(node: ReactNode)
tests/unit/settings/prices/upload-price-dialog-upload-flow.test.tsx:38
↓ 8 callersFunctionrender
(node: ReactNode)
tests/unit/public-status/public-status-view.test.tsx:74
↓ 8 callersFunctionresolvePricingForModelRecords
( input: ResolvePricingForModelRecordsInput )
src/lib/utils/pricing-resolution.ts:379
↓ 8 callersFunctionrunDelete
(result: unknown)
tests/unit/api/v1/keys-delete-error-mapping.test.ts:28
↓ 8 callersFunctionrunScenario
({ billingModelSource, isStream, enableHighConcurrencyMode = false, }: { billingModelSource: SystemSet
tests/integration/billing-model-source.test.ts:329
↓ 8 callersFunctionsafeGet
(redis: RedisReader, key: string)
src/lib/public-status/config-snapshot.ts:150
↓ 8 callersMethodset
(key: string, value: string, mode?: "NX")
src/lib/public-status/rollup-store.ts:90
↓ 8 callersFunctionsetActiveSessionsCache
( data: Parameters<typeof activeSessionsCache.set>[1], key: string = "active_sessions" )
src/lib/cache/session-cache.ts:104
↓ 8 callersFunctionsetFileInput
(input: HTMLInputElement, file: File)
tests/unit/settings/prices/upload-price-dialog-upload-flow.test.tsx:59
↓ 8 callersFunctionsetupCircuitBreakerMocks
(options?: { redis?: { loadCircuitState?: (providerId: number) => Promise<SavedCircuitState | null>;
tests/unit/lib/circuit-breaker.test.ts:33
↓ 8 callersFunctionsetupFakeTime
()
tests/unit/lib/circuit-breaker.test.ts:28
↓ 8 callersFunctionsetupPreviewApplyAndGetUndo
Helper: preview -> apply -> return undo token + operationId + undoProviderPatch
tests/unit/actions/providers-undo-engine.test.ts:118
↓ 8 callersFunctionstopMessageRequestWriteBuffer
()
src/repository/message-write-buffer.ts:384
↓ 8 callersFunctionstubSecureContext
(value: boolean)
tests/unit/lib/utils/clipboard.test.ts:5
↓ 8 callersFunctionsummarizeHedgeBilling
( costUsd: string | null | undefined, hedgeLosers: HedgeLoserBilling[] | null | undefined )
src/lib/utils/hedge-billing.ts:27
↓ 8 callersFunctionsyncDefaultErrorRules
()
src/repository/error-rules.ts:895
↓ 8 callersFunctiontoAuditValue
(value: unknown)
src/lib/anthropic/provider-overrides.ts:17
↓ 8 callersFunctiontoBoundedInt
(value: unknown, fallback: number, min: number, max: number)
src/app/[locale]/settings/notifications/_lib/hooks.ts:132
↓ 8 callersFunctiontoCount
(value: number | null | undefined)
src/lib/utils/hedge-billing.ts:107
↓ 8 callersFunctionupdateMessageRequestDuration
(id: number, durationMs: number)
src/repository/message.ts:275
↓ 8 callersFunctionupdateProvider
( id: number, providerData: UpdateProviderData )
src/repository/provider.ts:622
↓ 8 callersFunctionvalidateApiKeyAndGetUser
( keyString: string )
src/repository/key.ts:780
↓ 8 callersFunctionwithNoStoreHeaders
(headers = new Headers())
src/lib/api/v1/_shared/cache-control.ts:6
↓ 8 callersFunctionwithTimeout
(p: Promise<T>, ms: number, label: string)
src/lib/lifecycle/shutdown.ts:24
↓ 7 callersFunctionactionError
(c: Context, result: Extract<ActionResult<unknown>, { ok: false }>)
src/app/api/v1/resources/request-filters/handlers.ts:94
↓ 7 callersFunctionactionError
(c: Context, result: Extract<ActionResult<unknown>, { ok: false }>)
src/app/api/v1/resources/error-rules/handlers.ts:110
← previousnext →701–800 of 6,623, ranked by callers