MCPcopy Create free account

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

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

↓ 1 callersFunctionformatDuration
(durationMs: number | undefined)
src/app/[locale]/dashboard/sessions/_components/active-sessions-table.tsx:49
↓ 1 callersFunctionformatExpiresAt
(expiresAt: string)
src/app/[locale]/dashboard/_components/user/forms/edit-key-form.tsx:114
↓ 1 callersFunctionformatExpiry
(expiresAt: UserDisplay["expiresAt"], locale: string)
src/app/[locale]/dashboard/_components/user/user-key-table-row.tsx:128
↓ 1 callersFunctionformatExportTimestamp
(date: Date, timezone: string)
src/lib/usage-logs/export/format.ts:24
↓ 1 callersFunctionformatHeadersForLog
(headers: Headers)
src/app/v1/_lib/proxy/session.ts:1096
↓ 1 callersFunctionformatLastTest
(target: WebhookTargetState, timeZone: string)
src/app/[locale]/settings/notifications/_components/webhook-target-card.tsx:40
↓ 1 callersFunctionformatLatency
(ms: number)
src/app/[locale]/dashboard/availability/_components/availability-view.tsx:230
↓ 1 callersFunctionformatLatency
(ms: number | null)
src/app/[locale]/dashboard/availability/_components/endpoint/probe-grid.tsx:45
↓ 1 callersFunctionformatLatency
(value: number)
src/app/[locale]/dashboard/availability/_components/provider/latency-chart.tsx:88
↓ 1 callersFunctionformatLatency
(ms: number)
src/app/[locale]/dashboard/availability/_components/provider/lane-chart.tsx:57
↓ 1 callersFunctionformatLimit
(type: KeyQuotaItem["type"], limit: number | null)
src/app/[locale]/dashboard/_components/user/key-quota-usage-dialog.tsx:102
↓ 1 callersFunctionformatLocalTime
(iso: string, tzId: string, locale: string)
src/app/[locale]/dashboard/_components/ip-details/atoms.tsx:391
↓ 1 callersFunctionformatLocalTimestamp
(date: Date, timezone?: string)
src/lib/webhook/templates/placeholders.ts:177
↓ 1 callersFunctionformatPerImagePriceLabel
(value?: number)
src/app/[locale]/settings/prices/_components/price-list.tsx:275
↓ 1 callersFunctionformatPercentage
(usage: number, limit: number)
src/app/[locale]/dashboard/_components/user/limit-status-indicator.tsx:27
↓ 1 callersFunctionformatPercentage
(usage: number, limit: number)
src/app/[locale]/dashboard/_components/user/user-limit-badge.tsx:32
↓ 1 callersFunctionformatPrice
(value?: number)
src/app/[locale]/settings/prices/_components/price-list.tsx:240
↓ 1 callersFunctionformatProcessingError
* 格式化处理错误信息 * - 提取有意义的错误描述用于数据库存储
src/app/v1/_lib/proxy/response-handler.ts:4551
↓ 1 callersFunctionformatProviderReferenceSummary
( references: Array<{ id: number; name: string }>, maxDisplayCount: number = 3 )
src/actions/provider-endpoints.ts:227
↓ 1 callersFunctionformatRange
(start: string, end: string, locale: string, timeZone: string)
src/app/[locale]/status/_components/public-status-timeline.tsx:47
↓ 1 callersFunctionformatRelativeTime
(date: Date)
src/lib/utils/date.ts:6
↓ 1 callersFunctionformatScalar
(value?: number)
src/app/[locale]/settings/prices/_components/provider-pricing-dialog.tsx:26
↓ 1 callersFunctionformatTime
(date: Date | null)
src/app/[locale]/dashboard/sessions/[sessionId]/messages/_components/request-list-sidebar.tsx:88
↓ 1 callersFunctionformatTime
(date: Date | string | null, timeZone?: string)
src/app/[locale]/dashboard/availability/_components/endpoint/probe-grid.tsx:51
↓ 1 callersFunctionformatTime
(time: string)
src/app/[locale]/dashboard/availability/_components/endpoint/latency-curve.tsx:54
↓ 1 callersFunctionformatTime
(time: string)
src/app/[locale]/dashboard/availability/_components/provider/latency-chart.tsx:83
↓ 1 callersFunctionformatTimelineCandidate
( candidate: { name: string; weight: number; costMultiplier: number; probability?: number }, t: (key: stri
src/lib/utils/provider-chain-formatter.ts:66
↓ 1 callersFunctionformatTokens
(tokens: number)
src/lib/webhook/templates/daily-leaderboard.ts:8
↓ 1 callersFunctionformatTooltipDate
(dateStr: string)
src/app/[locale]/dashboard/_components/statistics/chart.tsx:244
↓ 1 callersFunctionformatTooltipDate
(dateStr: string)
src/app/[locale]/dashboard/_components/bento/statistics-chart-card.tsx:304
↓ 1 callersFunctionformatTooltipHour
(hourStr: string)
src/app/[locale]/dashboard/_components/rate-limit-events-chart.tsx:44
↓ 1 callersFunctionformatValue
(type: KeyQuotaItem["type"], value: number)
src/app/[locale]/dashboard/_components/user/key-quota-usage-dialog.tsx:95
↓ 1 callersFunctionformatValue
(raw: number)
src/app/[locale]/dashboard/_components/user/forms/limit-rules-display.tsx:40
↓ 1 callersFunctionformatValueForDisplay
(value: unknown)
src/app/[locale]/settings/providers/_components/batch-edit/mixed-value-indicator.tsx:9
↓ 1 callersFunctionformatVersionLabel
(version: string)
src/app/[locale]/login/page.tsx:47
↓ 1 callersFunctionformatYmdLocal
(date: Date)
src/app/[locale]/dashboard/_components/user/forms/user-edit-section.tsx:135
↓ 1 callersFunctionforwardToInternalHttp
( ws, originalReq, body, responsesWsSessionId, registerInternalReq, requestClose )
server.js:339
↓ 1 callersMethodfromEndpointPolicy
( policy: Pick<EndpointPolicy, "guardPreset" | "allowRawCrossProviderFallback">, rawCrossProviderFallb
src/app/v1/_lib/proxy/guard-pipeline.ts:174
↓ 1 callersFunctiongenerateKey
* Generate semantic key from Chinese string
scripts/extract-translations.ts:134
↓ 1 callersFunctiongenerateLockId
()
src/lib/provider-endpoints/leader-lock.ts:14
↓ 1 callersFunctiongenerateLockId
* 获取锁的唯一标识符(用于安全释放)
src/lib/database-backup/backup-lock.ts:25
↓ 1 callersFunctiongenerateMetadata
({ params, }: { params: Promise<{ locale: string }>; })
src/app/[locale]/layout.tsx:22
↓ 1 callersFunctiongeneratePreviewRows
( providers: Provider[], patch: ProviderBatchPatch, changedFields: ProviderBatchPatchField[] )
src/actions/providers.ts:1898
↓ 1 callersFunctiongenerateProviderChain
( finalProvider: ProviderInfo, distribution: LogDistribution )
src/lib/data-generator/generator.ts:91
↓ 1 callersFunctiongenerateReport
* Generate extraction report
scripts/extract-translations.ts:286
↓ 1 callersFunctiongenerateSessionId
()
src/lib/data-generator/generator.ts:66
↓ 1 callersFunctiongenerateTargetName
* 生成 Webhook 目标名称 * * @param providerType - 平台类型 * @param index - 索引(用于多个相同类型时区分)
src/lib/webhook/migration.ts:125
↓ 1 callersFunctiongenerateTempFilePath
(purpose: "import" | "export")
src/lib/database-backup/temp-file-manager.ts:34
↓ 1 callersFunctiongenerateTimestamp
( startDate: Date, endDate: Date, hourlyPattern: Record<number, number> )
src/lib/data-generator/generator.ts:44
↓ 1 callersFunctiongenerateTranslationFiles
* Generate translation JSON files
scripts/extract-translations.ts:242
↓ 1 callersFunctiongenerateUserBreakdown
(params: GeneratorParams)
src/lib/data-generator/generator.ts:293
↓ 1 callersFunctiongetActionErrorStatus
( code: string | undefined, detail: string )
src/app/api/v1/resources/users/handlers.ts:331
↓ 1 callersFunctiongetActiveConcurrentSessions
()
src/lib/redis/session-stats.ts:15
↓ 1 callersFunctiongetActiveErrorRules
()
src/repository/error-rules.ts:106
↓ 1 callersFunctiongetActiveRequestFilters
()
src/repository/request-filters.ts:65
↓ 1 callersFunctiongetActiveSensitiveWords
()
src/repository/sensitive-words.ts:21
↓ 1 callersFunctiongetAggregationLabel
()
src/app/[locale]/dashboard/_components/statistics/chart.tsx:269
↓ 1 callersMethodgetAllClientStats
* 获取所有客户端的版本统计(供前端使用) * * @returns 所有客户端的版本统计信息
src/lib/client-version-checker.ts:304
↓ 1 callersFunctiongetAllHealthStatus
()
src/lib/circuit-breaker.ts:686
↓ 1 callersFunctiongetAllRequestFilters
()
src/repository/request-filters.ts:77
↓ 1 callersMethodgetAllSessionIds
* 获取所有 session ID 列表(轻量级版本) * 仅返回 session ID,不返回详细信息 * * @returns session ID 数组
src/lib/session-manager.ts:1404
↓ 1 callersFunctiongetAllSessions
( activePage: number = 1, inactivePage: number = 1, pageSize: number = 20 )
src/actions/active-sessions.ts:296
↓ 1 callersMethodgetAndDelete
(key: string)
src/lib/redis/redis-kv-store.ts:101
↓ 1 callersFunctiongetAnthropicEffortBadgeClassName
(effort: string)
src/components/customs/anthropic-effort-badge.tsx:19
↓ 1 callersFunctiongetApiMutationErrorMessage
( tErrors: (key: string, params?: Record<string, string | number>) => string, error: unknown )
src/lib/hooks/use-api-mutation.ts:28
↓ 1 callersFunctiongetAuditLog
(c: Context)
src/app/api/v1/resources/audit-logs/handlers.ts:55
↓ 1 callersFunctiongetAuditLogCreatedAt
(row: typeof auditLog.$inferSelect)
src/repository/audit-log.ts:32
↓ 1 callersFunctiongetAuditLogsBatch
( input: GetAuditLogsBatchInput = {} )
src/actions/audit-logs.ts:57
↓ 1 callersFunctiongetAuthCookieFromHeader
(raw: string | null | undefined)
src/lib/api/action-adapter-openapi.ts:30
↓ 1 callersFunctiongetAuthCookieFromHeader
( cookieName: string, raw: string | null | undefined )
src/lib/api/v1/_shared/auth-middleware.ts:49
↓ 1 callersFunctiongetAuthErrorTranslations
(locale: Locale)
src/app/api/auth/login/route.ts:57
↓ 1 callersFunctiongetAuthSecurityTranslations
(locale: Locale)
src/app/api/auth/login/route.ts:78
↓ 1 callersFunctiongetAuthToken
()
src/lib/auth.ts:481
↓ 1 callersFunctiongetAvailabilityColor
* Get color class based on availability score * Simple gradient: gray(no data) -> red -> green
src/app/[locale]/dashboard/availability/_components/availability-view.tsx:55
↓ 1 callersFunctiongetAvailableModelCatalog
(options?: { scope?: AvailableModelCatalogScope })
src/lib/api-client/v1/actions/model-prices.ts:26
↓ 1 callersFunctiongetAvailableModels
* 获取用户可用的模型列表 * * 决策流程: * 1. 根据 clientFormat 确定需要决策的 providerType 列表 * 2. 对每种 providerType 独立进行完整决策(分组过滤 → 健康检查 → 优先级 → 加权随机) * 3. 每种类型选出 1 个最优 p
src/app/v1/_lib/models/available-models.ts:347
↓ 1 callersFunctiongetAvailableModelsByProviderType
()
src/actions/model-prices.ts:425
↓ 1 callersFunctiongetBearerTokenFromAuthHeader
(raw: string | undefined)
src/lib/api/action-adapter-openapi.ts:21
↓ 1 callersFunctiongetBindingsForTypeAction
( type: NotificationType )
src/actions/notification-bindings.ts:31
↓ 1 callersFunctiongetBucketData
( provider: ProviderAvailabilitySummary, bucketStart: string )
src/app/[locale]/dashboard/availability/_components/availability-view.tsx:251
↓ 1 callersFunctiongetBuffer
()
src/repository/message-write-buffer.ts:355
↓ 1 callersFunctiongetButtonContent
()
src/app/[locale]/settings/providers/_components/forms/proxy-test-button.tsx:104
↓ 1 callersFunctiongetButtonContent
()
src/app/[locale]/settings/providers/_components/forms/api-test-button.tsx:388
↓ 1 callersFunctiongetCLIConfigs
* Get CLI configurations with translated titles
src/app/[locale]/usage-doc/page.tsx:73
↓ 1 callersFunctiongetCacheStats
()
src/actions/sensitive-words.ts:305
↓ 1 callersMethodgetCenter
()
src/components/ui/__tests__/map.test.tsx:283
↓ 1 callersFunctiongetChildDisplayText
(preset: (typeof CLIENT_RESTRICTION_PRESET_OPTIONS)[number])
src/components/form/client-restrictions-editor.tsx:93
↓ 1 callersFunctiongetClientActionImportOwner
( module: string )
src/lib/api/v1/action-migration-matrix.ts:347
↓ 1 callersFunctiongetClientTypeIcon
* Get icon component for client type
src/app/[locale]/settings/client-versions/_components/client-version-stats-table.tsx:34
↓ 1 callersMethodgetCodexPriorityBillingSource
()
src/app/v1/_lib/proxy/session.ts:1008
↓ 1 callersMethodgetConcurrentCount
* 获取 session 当前并发计数 * * 调用时机:SessionManager 分配 session ID 时 * * @param sessionId - Session ID * @returns 并发请求数量
src/lib/session-tracker.ts:755
↓ 1 callersFunctiongetConcurrentSessions
()
src/actions/concurrent-sessions.ts:10
↓ 1 callersFunctiongetConfidenceLevel
( count: number, thresholds: { low: number; medium: number; high: number } )
src/app/[locale]/dashboard/availability/_components/provider/confidence-badge.tsx:19
↓ 1 callersMethodgetContainer
()
src/components/ui/__tests__/map.test.tsx:348
↓ 1 callersFunctiongetCreatedProviderId
(data: unknown)
src/app/api/v1/resources/providers/handlers.ts:574
↓ 1 callersFunctiongetCsrfSecret
()
src/lib/api/v1/_shared/csrf.ts:10
↓ 1 callersFunctiongetCsrfToken
()
src/lib/api-client/v1/fetcher.ts:67
↓ 1 callersFunctiongetCurrentMinutesInTimezone
(now: Date, timezone: string)
src/lib/utils/provider-schedule.ts:66
↓ 1 callersFunctiongetCurrentUserDisplay
()
src/actions/users.ts:502
↓ 1 callersFunctiongetCurrentVersion
()
src/app/api/version/route.ts:84
← previousnext →3,501–3,600 of 6,623, ranked by callers