MCPcopy Create free account

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

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

↓ 4 callersFunctionformatLatency
(value: number)
src/app/[locale]/dashboard/availability/_components/endpoint/latency-curve.tsx:59
↓ 4 callersFunctionformatLimitValue
(limit: number | null, currencyCode: CurrencyCode, placeholder: string)
src/app/[locale]/dashboard/quotas/users/_components/user-quota-list-item.tsx:40
↓ 4 callersFunctionformatLimitValue
(raw: number, unit?: string)
src/app/[locale]/dashboard/_components/user/limit-status-indicator.tsx:21
↓ 4 callersFunctionformatNumber
(value: number)
src/lib/webhook/templates/cache-hit-rate-alert.ts:9
↓ 4 callersFunctionformatPreview
( value: number, unit: QuickEditUnit, currencyCode: CurrencyCode = "USD" )
src/components/quota/quota-quick-edit-popover.tsx:68
↓ 4 callersFunctionformatProbabilityCompact
(probability: number | undefined | null)
src/lib/utils/provider-chain-formatter.ts:46
↓ 4 callersFunctionformatTime
(date: Date | string)
tests/unit/dashboard/availability/probe-terminal.test.tsx:11
↓ 4 callersFunctiongcIfAvailable
()
tests/unit/vacuum-filter/vacuum-filter-has.bench.test.ts:52
↓ 4 callersMethodget
(key: string)
src/lib/public-status/rebuild-worker.ts:34
↓ 4 callersFunctiongetActiveKeysForUserFromDB
(userId: number)
src/repository/statistics.ts:356
↓ 4 callersFunctiongetAllHealthStatusAsync
( providerIds: number[], options?: { forceRefresh?: boolean } )
src/lib/circuit-breaker.ts:720
↓ 4 callersFunctiongetAuthCookie
()
src/lib/auth.ts:278
↓ 4 callersFunctiongetAvailableProviderGroups
(userId?: number)
src/actions/providers.ts:456
↓ 4 callersFunctiongetDatabaseInfo
()
src/lib/database-backup/docker-executor.ts:460
↓ 4 callersFunctiongetDb
()
src/drizzle/db.ts:29
↓ 4 callersFunctiongetDefaultProblemTitle
(status: ProblemStatusCode)
src/lib/api/v1/_shared/status-code-map.ts:45
↓ 4 callersMethodgetDetailedErrorMessage
* 获取适合记录到数据库的详细错误信息 * 格式:Provider {name} returned {status}: {message} | Upstream: {body}
src/app/v1/_lib/proxy/errors.ts:466
↓ 4 callersFunctiongetDistinctProviderGroupsAction
()
src/actions/request-filters.ts:477
↓ 4 callersMethodgetElement
()
src/components/ui/__tests__/map.test.tsx:124
↓ 4 callersFunctiongetEndpointHealthInfo
( endpointId: number )
src/lib/endpoint-circuit-breaker.ts:178
↓ 4 callersFunctiongetErrorTranslator
()
src/actions/my-usage.ts:41
↓ 4 callersMethodgetExpirationReason
(cached: CachedAgent, now: number = Date.now())
src/lib/proxy-agent/agent-pool.ts:602
↓ 4 callersFunctiongetFirstRow
(rows: T[])
scripts/verify-ledger-consistency.ts:28
↓ 4 callersMethodgetFixed5hWindowState
( type: "key" | "provider" | "user", id: number )
src/lib/rate-limit/service.ts:153
↓ 4 callersFunctiongetIcon
(iconName?: SettingsNavIconName)
src/app/[locale]/settings/_components/settings-nav.tsx:67
↓ 4 callersFunctiongetInternalSecret
()
src/app/v1/_lib/responses-ws/internal-secret.ts:55
↓ 4 callersFunctiongetIsActive
(href: string)
src/app/[locale]/settings/_components/settings-nav.tsx:63
↓ 4 callersMethodgetKeySessionCount
* 获取 Key 级活跃 session 计数 * * @param keyId - API Key ID * @returns 活跃 session 数量
src/lib/session-tracker.ts:313
↓ 4 callersFunctiongetKeyStringByIdCached
(keyId: number)
src/repository/statistics.ts:30
↓ 4 callersFunctiongetKeys
(userId: number)
src/actions/keys.ts:878
↓ 4 callersMethodgetMessages
* 获取 messages 数组(支持 Claude、Codex 和 Gemini 格式)
src/app/v1/_lib/proxy/session.ts:552
↓ 4 callersFunctiongetMyStatsSummary
( filters: MyStatsSummaryFilters = {} )
src/actions/my-usage.ts:977
↓ 4 callersFunctiongetOrCreateHealth
(endpointId: number)
src/lib/endpoint-circuit-breaker.ts:84
↓ 4 callersFunctiongetOrCreateHealth
* 获取或创建供应商的健康状态(异步版本,首次会尝试从 Redis 加载) * 对于 open/half-open 状态,始终检查 Redis 以同步外部重置操作
src/lib/circuit-breaker.ts:283
↓ 4 callersFunctiongetOrCreateHealthSync
(endpointId: number)
src/lib/endpoint-circuit-breaker.ts:65
↓ 4 callersFunctiongetOrCreateProviderVendorIdFromUrls
( input: { providerUrl: string; websiteUrl?: string | null; faviconUrl?: string | null; disp
src/repository/provider-endpoints.ts:423
↓ 4 callersFunctiongetOrCreateState
( vendorId: number, providerType: ProviderType )
src/lib/vendor-type-circuit-breaker.ts:46
↓ 4 callersFunctiongetProviderGroupDescriptionNote
(description: string | null | undefined)
src/app/[locale]/settings/providers/_components/provider-group-tab.tsx:79
↓ 4 callersFunctiongetProviderStatus
* 辅助函数:判断供应商请求状态 * * ⚠️ 注意:retry_success 有两种含义 * 1. 有 statusCode:实际请求成功 * 2. 无 statusCode:仅表示选择成功(中间状态,不应显示)
src/lib/utils/provider-chain-formatter.ts:94
↓ 4 callersFunctiongetReactiveRectifierDisplayName
(rectifierType: ReactiveRectifierType)
src/app/v1/_lib/proxy/forwarder.ts:913
↓ 4 callersMethodgetReadyRedis
()
src/lib/redis/redis-kv-store.ts:47
↓ 4 callersFunctiongetRequestPath
(input: string | URL | Request)
tests/unit/login/login-footer-system-name.test.tsx:38
↓ 4 callersFunctiongetResponsesWsSessionCountForTests
()
src/app/v1/_lib/responses-ws/upstream-adapter.ts:328
↓ 4 callersFunctiongetSecondaryTabFromScope
( scope: LeaderboardLeafScope )
src/app/[locale]/dashboard/leaderboard/_components/leaderboard-tab-groups.ts:53
↓ 4 callersFunctiongetStableRecentUtcTimestamp
()
tests/integration/my-usage-imported-ledger.test.ts:48
↓ 4 callersFunctiongetStateKey
(endpointId: number)
src/lib/redis/endpoint-circuit-breaker-state.ts:26
↓ 4 callersFunctiongetStatusColor
(status?: "default" | "warning" | "configured")
src/app/[locale]/settings/providers/_components/forms/provider-form/components/form-tab-nav.tsx:105
↓ 4 callersMethodgetStore
()
src/lib/audit/request-context.ts:14
↓ 4 callersFunctiongetTagInputOnChange
(callIndex: number)
tests/unit/components/form/client-restrictions-editor.test.tsx:47
↓ 4 callersFunctiongetTimeRangeSqlConfig
(timeRange: TimeRange, timezone: string)
src/repository/statistics.ts:81
↓ 4 callersFunctiongetTranslation
(translations: Record<string, unknown>, key: string, fallback: string)
src/app/[locale]/dashboard/_components/user/forms/quick-expire-picker.tsx:15
↓ 4 callersFunctiongetUsageLogsExportStatus
( jobId: string )
src/actions/usage-logs.ts:402
↓ 4 callersFunctiongetUsageRate
(user: UserQuotaWithUsage)
src/app/[locale]/dashboard/quotas/users/_components/users-quota-client.tsx:15
↓ 4 callersFunctiongetUserColor
(index: number)
src/app/[locale]/dashboard/_components/statistics/chart.tsx:44
↓ 4 callersFunctiongetUserColor
(index: number)
src/app/[locale]/dashboard/_components/bento/statistics-chart-card.tsx:28
↓ 4 callersFunctiongetVisibleColumns
(userId: number, tableId: string)
src/lib/column-visibility.ts:88
↓ 4 callersFunctionhandleRenew
(userId: number, targetDate: Date, enableUser?: boolean)
src/app/[locale]/dashboard/_components/user/user-list.tsx:104
↓ 4 callersFunctionhasOwn
(obj: object, prop: PropertyKey)
tests/unit/settings/providers/provider-form-total-limit-ui.test.tsx:18
↓ 4 callersFunctionhasSnapshotData
( value: | { body: unknown | null; messages: unknown | null; headers: Record<str
src/lib/session-detail-snapshots.ts:30
↓ 4 callersFunctionimportContractModule
()
tests/unit/api/public-status-api-contract.test.ts:19
↓ 4 callersMethodindexTag
(key: string)
src/lib/vacuum-filter/vacuum-filter.ts:462
↓ 4 callersFunctioninitEndpointCircuitBreaker
()
src/lib/endpoint-circuit-breaker.ts:504
↓ 4 callersMethodinitialize
* 初始化 SessionTracker,自动清理旧格式数据 * * 应在应用启动时调用一次,清理 {active_sessions}:global:active_sessions 的旧 Set 数据。 * 其他 key(provider:*、key:*)在运行时自动清理。
src/lib/session-tracker.ts:45
↓ 4 callersFunctioninjectClaudeMetadataUserIdWithContext
( message: Record<string, unknown>, args: InjectClaudeMetadataUserIdArgs )
src/lib/claude-code/metadata-user-id.ts:129
↓ 4 callersMethodinsertTagToBucket
(index: number, tag: number, undo?: UndoLog)
src/lib/vacuum-filter/vacuum-filter.ts:557
↓ 4 callersFunctioninsertUserUsage
(params: { userId: number; key: string; costUsd: string; createdAt: Date; })
tests/integration/user-5h-reset-flow.test.ts:91
↓ 4 callersFunctioninvalidateProviderQueries
(queryClient: QueryClient)
src/app/[locale]/settings/providers/_components/invalidate-provider-queries.ts:4
↓ 4 callersFunctionisAllChildrenSelected
( values: string[], preset: ClientRestrictionPresetOption )
src/lib/client-restrictions/client-presets.ts:127
↓ 4 callersFunctionisAllowedModelRule
(value: unknown)
src/lib/allowed-model-rules.ts:24
↓ 4 callersFunctionisApiKeyAdminAccessEnabled
()
src/lib/config/env.schema.ts:208
↓ 4 callersFunctionisCacheHitRateAlertSettingsWindowMode
( value: unknown )
src/lib/webhook/types.ts:101
↓ 4 callersMethodisJson
(key: string)
src/app/v1/_lib/gemini/auth.ts:14
↓ 4 callersFunctionisNetworkError
(error: unknown)
src/lib/utils/error-detection.ts:7
↓ 4 callersFunctionisOpenAIImageMultipartRequest
( metadata: OpenAIImageRequestMetadata | null | undefined )
src/app/v1/_lib/proxy/openai-image-compat.ts:835
↓ 4 callersFunctionisPlainObject
(value: unknown)
src/lib/utils/model-price-fields.ts:102
↓ 4 callersFunctionisPresetClientValue
(value: string)
src/lib/client-restrictions/client-presets.ts:72
↓ 4 callersFunctionisRecord
(value: unknown)
src/lib/provider-patch-contract.ts:327
↓ 4 callersFunctionisRecord
(value: unknown)
src/lib/price-sync/cloud-price-table.ts:14
↓ 4 callersFunctionisRecord
(value: unknown)
src/app/v1/_lib/proxy/response-fixer/index.ts:40
↓ 4 callersFunctionisSessionTokenAccepted
( token: string, mode: SessionTokenMode = getSessionTokenMode() )
src/lib/auth.ts:154
↓ 4 callersFunctionisShuttingDown
()
src/lib/lifecycle/shutdown.ts:14
↓ 4 callersFunctionisUniqueViolationError
(error: unknown)
src/repository/provider-endpoints.ts:38
↓ 4 callersFunctionisVersionLess
(a: string, b: string)
src/lib/version.ts:155
↓ 4 callersFunctionisWsClosingOrClosed
(ws: WebSocketType)
src/app/v1/_lib/responses-ws/upstream-adapter.ts:205
↓ 4 callersFunctionjsonRequest
(body: string, contentType = "application/json")
tests/unit/api/v1/request-body.test.ts:5
↓ 4 callersFunctionkeyClipStart
(start: Date)
src/actions/my-usage.ts:365
↓ 4 callersFunctionloadMessages
()
tests/unit/settings/providers/model-redirect-editor.test.tsx:18
↓ 4 callersFunctionloadMessages
()
tests/unit/dashboard/add-key-form-balance-page-toggle.test.tsx:42
↓ 4 callersFunctionloadSessionCache
()
tests/unit/lib/cache/session-cache.test.ts:5
↓ 4 callersFunctionlooksLikeAnthropicProxyUrl
(providerUrl?: string | null)
src/app/v1/_lib/headers.ts:17
↓ 4 callersFunctionmakeAsyncParams
(locale: string)
tests/unit/nextjs/async-params-layouts.test.tsx:34
↓ 4 callersFunctionmakeBucket
( bucketStart: string, entries: Array<{ groupId: string | number; metric: "success" | "failure"; v
tests/unit/public-status/rollup-store.test.ts:418
↓ 4 callersFunctionmakeError
(code: string, message = code)
tests/unit/instrumentation-crash-handler.test.ts:61
↓ 4 callersFunctionmakeFakeProcess
(opts?: { withStdin?: boolean })
tests/unit/lib/database-backup/docker-executor.test.ts:42
↓ 4 callersFunctionmakeSession
(clientAbortSignal: AbortSignal | null, stream: boolean)
tests/unit/proxy/response-handler-abort-listener-cleanup.test.ts:128
↓ 4 callersFunctionmakeSystemSettings
( billingModelSource: SystemSettings["billingModelSource"] )
tests/unit/proxy/pricing-no-price.test.ts:74
↓ 4 callersFunctionmarkShuttingDown
()
src/lib/lifecycle/shutdown.ts:7
↓ 4 callersFunctionmaskSensitiveValue
* 遮罩敏感值 * * @param value - 原始敏感值 * @returns 遮罩后的值(短于 8 字符返回 [REDACTED],否则保留前后 4 字符)
src/app/v1/_lib/proxy/errors.ts:1151
↓ 4 callersFunctionmaybeSetCodexContext1m
( session: ProxySession, provider: Provider, inputTokens: number | null | undefined )
src/app/v1/_lib/proxy/response-handler.ts:128
↓ 4 callersFunctionmergePriceData
( base: ModelPriceData, pricingNode: Record<string, unknown> | null, pricingProviderKey: string )
src/lib/utils/pricing-resolution.ts:190
← previousnext →1,501–1,600 of 6,623, ranked by callers