MCPcopy Index your code

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

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

↓ 9 callersFunctionexpectRequestUrl
(url: string)
src/lib/provider-testing/test-service.test.ts:47
↓ 9 callersFunctionextractModelFromPath
(pathname: string)
src/app/v1/_lib/proxy/session.ts:1132
↓ 9 callersFunctionfillDisplayTimeline
(timeline: PublicStatusTimelineBucket[])
src/app/[locale]/status/_lib/fill-display-timeline.ts:10
↓ 9 callersFunctionfilterLogs
(logs: MockLog[], filter: string)
tests/unit/dashboard/availability/probe-terminal.test.tsx:111
↓ 9 callersFunctionfindAllProviders
()
src/repository/provider.ts:544
↓ 9 callersFunctionfindKeyById
(id: number)
src/repository/key.ts:22
↓ 9 callersFunctionfindMatchingProviderModelRedirectRule
( model: string, rules: ProviderModelRedirectRule[] | null | undefined )
src/lib/provider-model-redirects.ts:100
↓ 9 callersFunctionfinishOpen
(result: OpenResult)
src/app/v1/_lib/responses-ws/upstream-adapter.ts:436
↓ 9 callersFunctionflushAsync
()
tests/unit/price-sync/cloud-price-updater.test.ts:44
↓ 9 callersFunctionflushEffects
()
src/app/[locale]/dashboard/sessions/[sessionId]/messages/_components/session-messages-client-actions.test.tsx:233
↓ 9 callersFunctionformatAnthropicResponse
(models: FetchedModel[])
src/app/v1/_lib/models/available-models.ts:391
↓ 9 callersFunctionformatRequestDetails
* 辅助函数:格式化请求详情 * * 将 errorDetails.request 格式化为可读的文本
src/lib/utils/provider-chain-formatter.ts:298
↓ 9 callersFunctiongenerateAgentCacheKey
(params: GetAgentParams)
src/lib/proxy-agent/agent-pool.ts:173
↓ 9 callersFunctiongetActiveSessionsCache
(key: string = "active_sessions")
src/lib/cache/session-cache.ts:100
↓ 9 callersMethodgetGroupCostMultiplier
()
src/app/v1/_lib/proxy/session.ts:396
↓ 9 callersFunctiongetModuleExport
(moduleExports: object, exportName: string)
tests/setup.ts:213
↓ 9 callersFunctiongetMyIpGeoDetails
(params: { ip: string; lang?: string })
src/actions/my-usage.ts:847
↓ 9 callersMethodgetOpenAIImageRequestMetadata
()
src/app/v1/_lib/proxy/session.ts:748
↓ 9 callersFunctiongetProviderLimitUsageBatch
( providers: Array<{ id: number; dailyResetTime?: string | null; dailyResetMode?: string | null;
src/actions/providers.ts:2868
↓ 9 callersFunctiongetResetInfoWithMode
( period: TimePeriod, resetTime = "00:00", mode: DailyResetMode = "fixed", ttlSeconds?: number | null
src/lib/rate-limit/time-utils.ts:241
↓ 9 callersFunctiongetTTLForPeriodWithMode
( period: TimePeriod, resetTime = "00:00", mode: DailyResetMode = "fixed" )
src/lib/rate-limit/time-utils.ts:173
↓ 9 callersFunctiongetUserInsightsProviderBreakdown
( targetUserId: number, startDate?: string, endDate?: string, filters?: { keyId?: number; model?: stri
src/actions/admin-user-insights.ts:157
↓ 9 callersFunctionhasLegacyRedactedWritePlaceholders
(value: unknown)
src/lib/api/legacy-action-sanitizers.ts:195
↓ 9 callersMethodhgetall
(key: string)
src/lib/public-status/rebuild-worker.ts:35
↓ 9 callersFunctionisClipboardSupported
()
src/lib/utils/clipboard.ts:5
↓ 9 callersFunctionisNonBillingEndpoint
(endpoint: string | null | undefined)
src/lib/utils/performance-formatter.ts:17
↓ 9 callersFunctionisNonEmptyString
(value: unknown)
src/app/v1/_lib/proxy/fake-streaming/response-validator.ts:366
↓ 9 callersFunctionisSSEText
(text: string)
src/lib/utils/sse.ts:72
↓ 9 callersFunctionkindFromProviderType
( providerType: ProviderType, isStream: boolean )
src/app/v1/_lib/proxy/actual-response-model.ts:46
↓ 9 callersFunctionloadEnv
()
tests/unit/config/management-api-env.test.ts:4
↓ 9 callersFunctionloadProcessor
初始化队列并返回捕获的 process 处理器
tests/unit/notification/notification-queue.test.ts:142
↓ 9 callersFunctionmakeContext
(auth: AuthValue, body?: unknown, keyId = "12")
tests/unit/api/v1/keys-write-handlers-authz.test.ts:36
↓ 9 callersFunctionmakeExecuteResult
(input: { count?: number | bigint; rowCount?: number; })
tests/unit/lib/log-cleanup/service-count.test.ts:25
↓ 9 callersFunctionmakeJob
(data: Record<string, unknown>)
tests/unit/notification/notification-queue.test.ts:155
↓ 9 callersFunctionmakePipeline
()
tests/unit/lib/rate-limit/service-extra.test.ts:6
↓ 9 callersFunctionmakeProvider
(id: number, overrides: Record<string, unknown> = {})
tests/unit/actions/provider-undo-edit.test.ts:60
↓ 9 callersFunctionmakeProvider
(overrides: Partial<ProviderDisplay> = {})
tests/unit/settings/providers/provider-manager.test.tsx:93
↓ 9 callersFunctionmakeRow
(overrides: Partial<ProviderBatchPreviewRow> = {})
tests/unit/settings/providers/provider-batch-preview-step.test.tsx:67
↓ 9 callersFunctionnodeStreamToWebStreamSafe
( nodeStream: Readable, providerId: number, providerName: string )
src/app/v1/_lib/proxy/node-stream-to-web.ts:15
↓ 9 callersFunctionnormalizeCustomHeadersRecord
(input: unknown)
src/lib/custom-headers.ts:33
↓ 9 callersFunctionparseKeyParams
(c: Context)
src/app/api/v1/resources/keys/handlers.ts:297
↓ 9 callersFunctionparseNumberOrNull
(value: string, messages: ValidationMessages)
src/app/[locale]/dashboard/_components/user/batch-edit/batch-edit-dialog.tsx:100
↓ 9 callersFunctionparseOptionalDate
(value: unknown)
src/lib/security/api-key-auth-cache.ts:113
↓ 9 callersFunctionparseUserParams
(c: Context)
src/app/api/v1/resources/users/handlers.ts:298
↓ 9 callersFunctionproviderNotFound
(c: Context)
src/app/api/v1/resources/providers/handlers.ts:747
↓ 9 callersFunctionpushIssue
( issues: PublicStatusValidationIssue[], issue: PublicStatusValidationIssue )
src/lib/public-status/public-api-contract.ts:110
↓ 9 callersFunctionrectifyThinkingEffortConflict
( message: Record<string, unknown> )
src/app/v1/_lib/proxy/thinking-effort-conflict-rectifier.ts:64
↓ 9 callersMethodrefreshSession
* 刷新 session 时间戳(滑动窗口) * * 调用时机:响应完成时 * * @param sessionId - Session ID * @param keyId - API Key ID * @param providerId - Provider I
src/lib/session-tracker.ts:189
↓ 9 callersMethodreleaseProviderSession
* Release a provider-level active session when a selected provider is abandoned. * * Provider concurrency is tracked before forwarding so fallba
src/lib/rate-limit/service.ts:877
↓ 9 callersFunctionrender
(node: ReactNode)
tests/unit/settings/providers/api-test-button.test.tsx:42
↓ 9 callersFunctionrender
(node: React.ReactNode)
tests/unit/settings/providers/provider-batch-dialog-step1.test.tsx:293
↓ 9 callersFunctionrenderClient
(node: ReactNode)
src/app/[locale]/dashboard/sessions/[sessionId]/messages/_components/session-messages-client-actions.test.tsx:198
↓ 9 callersFunctionrenderWithIntl
(node: ReactNode)
tests/unit/settings/providers/url-preview-full-path.test.tsx:22
↓ 9 callersFunctionrenderWithProviders
(node: ReactNode)
tests/unit/settings/providers/provider-manager.test.tsx:150
↓ 9 callersFunctionresetUser5hLimitOnly
( userId: number )
src/app/[locale]/dashboard/_components/user/actions/reset-user-5h-limit.ts:14
↓ 9 callersFunctionrunInTx
(tx: QueryExecutor)
src/repository/provider-endpoints.ts:948
↓ 9 callersFunctionsendCircuitBreakerAlert
(data: CircuitBreakerAlertData)
src/lib/notification/notifier.ts:11
↓ 9 callersFunctionsetEnv
(values: Record<string, string | undefined>)
tests/unit/security/api-key-auth-cache-redis-key.test.ts:126
↓ 9 callersFunctionsetupProviderRepository
(options: { selectQueue: SelectRow[][]; updateReturningQueue?: SelectRow[][]; })
tests/unit/repository/provider-restore.test.ts:47
↓ 9 callersFunctionstopEndpointProbeScheduler
()
src/lib/provider-endpoints/probe-scheduler.ts:355
↓ 9 callersFunctionsumKeyTotalCost
( keyHash: string, maxAgeDays: number = 365, resetAt?: Date | null )
src/repository/statistics.ts:466
↓ 9 callersFunctionsyncProviderEndpointOnProviderEdit
( input: SyncProviderEndpointOnProviderEditInput, options?: { tx?: QueryExecutor } )
src/repository/provider-endpoints.ts:1204
↓ 9 callersFunctiontestProviderById
( providerId: number, args?: TestProviderByIdArgs )
src/actions/providers.ts:4787
↓ 9 callersFunctiontoCostDecimal
(value: DecimalInput)
src/lib/utils/currency.ts:67
↓ 9 callersFunctiontoKey
(dbKey: any)
src/repository/_shared/transformers.ts:69
↓ 9 callersFunctiontoLowerAscii
(byte: number)
src/app/v1/_lib/proxy/response-fixer/sse-fixer.ts:15
↓ 9 callersFunctiontoUser
(dbUser: any)
src/repository/_shared/transformers.ts:17
↓ 9 callersFunctionuseDebounce
(value: T, delay: number = 500)
src/lib/hooks/use-debounce.ts:11
↓ 9 callersFunctionuseProviderForm
()
src/app/[locale]/settings/providers/_components/forms/provider-form/provider-form-context.tsx:873
↓ 8 callersFunction_getListenerCount
()
src/lib/shared-timer.ts:66
↓ 8 callersFunctionactionError
(c: Context, result: Extract<ActionResult<unknown>, { ok: false }>)
src/app/api/v1/resources/usage-logs/handlers.ts:246
↓ 8 callersFunctionactionError
(c: Context, result: Extract<ActionResult<unknown>, { ok: false }>)
src/app/api/v1/resources/keys/handlers.ts:309
↓ 8 callersFunctionalignBucketStartUtc
(isoTimestamp: string, intervalMinutes: number)
src/lib/public-status/redis-contract.ts:42
↓ 8 callersFunctionapplyCodexProviderOverrides
( provider: CodexProviderOverrideConfig, request: Record<string, unknown> )
src/lib/codex/provider-overrides.ts:57
↓ 8 callersFunctionarrangeSyncTest
(selectResults: SelectRow[][])
tests/unit/repository/provider-endpoint-sync-helper.test.ts:58
↓ 8 callersFunctionassignFallback
(priority: number, nextTexts: string[])
src/lib/provider-testing/utils/sse-collector.ts:24
↓ 8 callersFunctionbuildCircuitBreakerMessage
( data: CircuitBreakerAlertData, timezone?: string )
src/lib/webhook/templates/circuit-breaker.ts:4
↓ 8 callersFunctionbuildCostCalculationOptions
( costMultiplier: number, context1mApplied: boolean, priorityServiceTierApplied: boolean, longContextP
src/app/v1/_lib/proxy/response-handler.ts:375
↓ 8 callersFunctionbuildCsvRows
(logs: UsageLogRow[], timezone: string)
src/lib/usage-logs/export/csv.ts:62
↓ 8 callersFunctionbuildDetailsData
( overrides: Partial<{ snapshots: SessionDetailSnapshots | null; sessionStats: unknown | null; c
src/app/[locale]/dashboard/sessions/[sessionId]/messages/_components/session-messages-client-actions.test.tsx:167
↓ 8 callersFunctionbuildLabels
()
tests/unit/public-status/public-status-view.test.tsx:168
↓ 8 callersFunctionbuildPublicStatusPayloadFromRequests
(input: { rangeHours: number; intervalMinutes: number; now: string | Date; groups: PublicStatusConfigu
src/lib/public-status/aggregation.ts:163
↓ 8 callersFunctioncallUsersApi
( action: string, body: Record<string, unknown> = {}, authToken = ADMIN_TOKEN )
tests/api/keys-actions.test.ts:47
↓ 8 callersMethodcheckAndTrackProviderSession
* 原子性检查并追踪供应商 Session(解决竞态条件) * * 使用 Lua 脚本保证"检查 + 追踪"的原子性,防止并发请求同时通过限制检查 * * @param providerId - Provider ID * @param sessionId - Sess
src/lib/rate-limit/service.ts:810
↓ 8 callersFunctioncheckReadiness
()
src/lib/health/checker.ts:142
↓ 8 callersFunctioncheckRedis
()
src/lib/health/checker.ts:74
↓ 8 callersFunctionclick
(el: Element)
src/app/[locale]/dashboard/sessions/[sessionId]/messages/_components/session-messages-client-actions.test.tsx:216
↓ 8 callersFunctionclipText
(value: unknown, maxLength = 500)
src/actions/providers.ts:3378
↓ 8 callersFunctioncloneRequestForInternalNonStreamAttempt
( input: StreamIntentInputs )
src/app/v1/_lib/proxy/fake-streaming/stream-intent.ts:62
↓ 8 callersFunctioncreateAnthropicProvider
()
tests/unit/proxy/proxy-forwarder-thinking-signature-rectifier.test.ts:123
↓ 8 callersFunctioncreateErrorRuleAction
(data: { pattern: string; category: | "prompt_limit" | "content_filter" | "pdf_limit" | "t
src/actions/error-rules.ts:61
↓ 8 callersFunctioncreatePngFile
(name: string, width: number, height: number)
tests/unit/proxy/openai-image-compat.test.ts:41
↓ 8 callersFunctioncreateProvider
({ name, url, modelRedirects, }: { name: string; url: string; modelRedirects?: Array<{ matchType:
tests/unit/proxy/openai-image-forwarder-constraints.test.ts:32
↓ 8 callersFunctioncreateProvider
(overrides: Partial<Provider> = {})
tests/unit/proxy/model-redirect-fallback.test.ts:32
↓ 8 callersFunctioncreateRawSession
(pathname: string)
tests/unit/proxy/non-chat-endpoint-fallback.test.ts:161
↓ 8 callersFunctioncreateSession
()
tests/unit/proxy/proxy-forwarder-thinking-signature-rectifier.test.ts:60
↓ 8 callersFunctioncreateSession
({ pathname, body, model, imageRequestMetadata, }: { pathname: string; body: Record<string, unknow
tests/unit/proxy/openai-image-forwarder-constraints.test.ts:86
↓ 8 callersFunctioncreateUpstreamError
(overrides: Partial<NonNullable<ProxyError["upstreamError"]>> = {})
tests/unit/proxy/error-handler-upstream-message-passthrough.test.ts:50
↓ 8 callersFunctioncreatedResponse
( body: unknown, location: string, init: ResponseInit = {} )
src/lib/api/v1/_shared/response-helpers.ts:14
↓ 8 callersFunctiondateStringWithClockToTimestamp
( dateStr: string, clockStr: string, timeZone?: string )
src/app/[locale]/dashboard/logs/_utils/time-range.ts:33
← previousnext →601–700 of 6,623, ranked by callers