MCPcopy Create free account

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

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

↓ 1 callersFunctionsetupCookieStoreMock
()
tests/security/full-security-regression.test.ts:52
↓ 1 callersFunctionsetupDefaultStartObservation
()
tests/unit/langfuse/langfuse-trace.test.ts:37
↓ 1 callersMethodsetupEventListener
* 设置事件监听器(仅在 Node.js runtime)
src/lib/error-rule-detector.ts:97
↓ 1 callersMethodsetupEventListener
()
src/lib/sensitive-word-detector.ts:40
↓ 1 callersMethodsetupEventListener
()
src/lib/request-filter-engine.ts:294
↓ 1 callersFunctionsetupQueueProcessor
* 设置队列处理器和事件监听(抽取为独立函数)
src/lib/notification/notification-queue.ts:236
↓ 1 callersFunctionsetupQueueProcessor
* 设置队列处理器和事件监听(抽取为独立函数)
src/lib/log-cleanup/cleanup-queue.ts:93
↓ 1 callersFunctionsetupSha256Mock
(hexResult = "abc123def456")
tests/unit/lib/security/api-key-auth-cache-reset-at.test.ts:52
↓ 1 callersFunctionsetupTimeRangeMocks
()
tests/unit/actions/key-quota-cost-reset.test.ts:100
↓ 1 callersFunctionshiftDateRange
( range: { startDate: string; endDate: string }, direction: "prev" | "next" )
src/app/[locale]/dashboard/logs/_components/logs-date-range-picker.tsx:63
↓ 1 callersFunctionshiftDateRange
( range: { startDate: string; endDate: string }, direction: "prev" | "next" )
src/app/[locale]/dashboard/leaderboard/_components/date-range-picker.tsx:60
↓ 1 callersFunctionshouldInvalidateStickySessionsOnProviderEdit
( changedProviderFields: Record<string, unknown> )
src/actions/providers.ts:218
↓ 1 callersFunctionshouldLog
(level: LogLevel)
src/lib/logger.ts:56
↓ 1 callersFunctionshouldPromoteCurrentManifest
( existing: { configVersion?: string; coveredTo?: string } | null, candidate: { configVersion: string; cov
src/lib/public-status/rebuild-worker.ts:65
↓ 1 callersFunctionshouldRetryFetchError
(error: unknown)
tests/e2e/_helpers/auth.ts:114
↓ 1 callersFunctionshouldRetryWithNextTemplate
(result: ProviderTestResult)
src/lib/provider-testing/test-service.ts:130
↓ 1 callersMethodshouldUpgrade
* 检查用户版本是否需要升级 * * @param clientType - 客户端类型 * @param userVersion - 用户当前版本 * @returns {needsUpgrade, gaVersion} - 是否需要升级及当前 GA 版本
src/lib/client-version-checker.ts:241
↓ 1 callersFunctionshouldUseRedisClient
()
src/lib/security/api-key-auth-cache.ts:72
↓ 1 callersFunctionshouldUseServerModelSummary
(model: ViewModelSnapshot)
src/app/[locale]/status/_components/public-status-view.tsx:165
↓ 1 callersMethodshouldUseStreamingHedge
(session: ProxySession)
src/app/v1/_lib/proxy/forwarder.ts:3697
↓ 1 callersFunctionshuffleInPlace
(arr: T[])
src/lib/provider-endpoints/probe-scheduler.ts:63
↓ 1 callersFunctionsimulatePostLoginSessionRotation
( oldSessionId: string, rotate: (sessionId: string) => Promise<{ sessionId: string } | null> )
tests/security/session-fixation-rotation.test.ts:85
↓ 1 callersFunctionsleep
(ms: number)
src/lib/provider-endpoints/probe-scheduler.ts:56
↓ 1 callersFunctionsleep
* 睡眠函数
src/lib/redis/leaderboard-cache.ts:252
↓ 1 callersFunctionsleep
(ms: number)
src/lib/redis/statistics-cache.ts:22
↓ 1 callersMethodslugifyPublicGroup
(input: string)
tests/unit/public-status/public-status-config.test.ts:20
↓ 1 callersFunctionslugifyPublicGroupAscii
(input: string)
src/lib/public-status/config.ts:169
↓ 1 callersMethodsmartTruncate
* 智能截断响应体 * - JSON: 完整保存(序列化后) * - 文本: 限制 500 字符
src/app/v1/_lib/proxy/errors.ts:448
↓ 1 callersFunctionsnapshotEnv
(keys: string[])
tests/unit/drizzle/db-pool-config.test.ts:5
↓ 1 callersFunctionsnapshotEnv
(keys: string[])
tests/unit/repository/message-write-buffer.test.ts:5
↓ 1 callersFunctionsolveEquation
(c: number)
src/lib/vacuum-filter/vacuum-filter.ts:126
↓ 1 callersFunctionsplitGroups
(value?: string | null)
src/app/[locale]/dashboard/_components/user/key-row-item.tsx:121
↓ 1 callersFunctionsplitGroups
(value?: string | null)
src/app/[locale]/dashboard/_components/user/user-key-table-row.tsx:93
↓ 1 callersFunctionsplitLines
(text: string)
src/components/ui/code-display.tsx:56
↓ 1 callersFunctionsplitLines
(value: string)
tests/helpers/bash.ts:18
↓ 1 callersFunctionsplitTags
* Normalize provider-group tags with the shared parser to keep client/server behavior aligned.
src/app/[locale]/dashboard/users/users-page-client.tsx:40
↓ 1 callersFunctionsqlToString
(sqlObj: unknown)
tests/unit/actions/my-usage-token-aggregation.test.ts:7
↓ 1 callersFunctionsqlToString
(sqlObj: unknown)
tests/unit/actions/my-usage-ip-geo.test.ts:3
↓ 1 callersFunctionsqlToString
(sqlObject: unknown)
tests/unit/lib/availability-service.test.ts:34
↓ 1 callersFunctionsqlToString
(sqlObj: unknown)
tests/unit/repository/provider-groups.test.ts:3
↓ 1 callersFunctionsqlToString
* Regression test for: CASE types integer and text cannot be matched * * The ttlFallbackSecondsExpr CASE generates THEN values via parameterized $N
tests/unit/repository/cache-hit-rate-alert-integer-cast.test.ts:12
↓ 1 callersFunctionsqlToString
(sqlObj: unknown)
tests/unit/repository/leaderboard-user-model-stats.test.ts:32
↓ 1 callersMethodstart
(controller)
src/app/v1/_lib/proxy/response-handler.ts:2310
↓ 1 callersFunctionstartApiKeyVacuumFilterSync
* 多实例:订阅 API Key 变更广播,触发本机 Vacuum Filter 失效并重建。 * * 目标: * - 避免“本机 filter 漏包含新 key”导致的误拒绝 * - 重建失败/Redis 未配置时自动降级(不阻塞启动)
src/instrumentation.ts:228
↓ 1 callersFunctionstartChunkedServer
* Start a local server that returns 200 + application/json + chunked body (no Content-Length). * The body is larger than 32 KiB to trigger the trunca
tests/unit/proxy/proxy-forwarder-large-chunked-response.test.ts:143
↓ 1 callersMethodstartCleanupTimer
()
src/lib/proxy-agent/agent-pool.ts:252
↓ 1 callersFunctionstartConnection
()
src/lib/redis/pubsub.ts:177
↓ 1 callersFunctionstartHarness
(port: number)
tests/unit/server-ws-close-handshake.test.ts:121
↓ 1 callersFunctionstartIfNeeded
()
src/lib/shared-timer.ts:18
↓ 1 callersFunctionstartProbeServer
()
tests/e2e/responses-ws-codex-cli-transport.test.ts:163
↓ 1 callersMethodstartRequest
(params: { userId: number; userName: string; requestId: number; keyName: string; providerI
src/lib/proxy-status-tracker.ts:62
↓ 1 callersFunctionstatusFromActionError
(result: Extract<ActionResult<unknown>, { ok: false }>)
src/app/api/v1/resources/providers/handlers.ts:820
↓ 1 callersMethodstop
()
src/repository/message-write-buffer.ts:341
↓ 1 callersFunctionstopEndpointProbeLogCleanup
()
src/lib/provider-endpoints/probe-log-cleanup.ts:131
↓ 1 callersFunctionstopIfEmpty
()
src/lib/shared-timer.ts:31
↓ 1 callersFunctionstopPublicStatusRebuildScheduler
()
src/lib/public-status/scheduler.ts:212
↓ 1 callersMethodstoreSessionClientRequestMeta
* 存储客户端请求元信息(端点/方法,临时存储,5分钟过期) * * @param sessionId - Session ID * @param meta - 元信息 * @param requestSequence - 请求序号
src/lib/session-manager.ts:1723
↓ 1 callersMethodstoreSessionInfo
* 存储 session 基础信息(请求开始时调用)
src/lib/session-manager.ts:1011
↓ 1 callersMethodstoreSessionMapping
* 存储 hash → session 映射关系
src/lib/session-manager.ts:544
↓ 1 callersFunctionstringifyArguments
(value: unknown)
src/app/v1/_lib/proxy/response-output-normalizer.ts:29
↓ 1 callersFunctionstripAltSse
(search: string)
src/app/v1/_lib/proxy/fake-streaming/stream-intent.ts:80
↓ 1 callersFunctionstripBom
(data: Uint8Array)
src/app/v1/_lib/proxy/response-fixer/encoding-fixer.ts:16
↓ 1 callersFunctionstripIllegalXmlChars
(value: string)
src/lib/usage-logs/export/xlsx.ts:66
↓ 1 callersFunctionstripNullBytes
(data: Uint8Array)
src/app/v1/_lib/proxy/response-fixer/encoding-fixer.ts:26
↓ 1 callersFunctionstripStructuredDatabasePayload
(message: string)
src/lib/utils/user-visible-error.ts:32
↓ 1 callersFunctionstripTransportOnlyFields
(body: T)
src/app/v1/_lib/responses-ws/upstream-adapter.ts:146
↓ 1 callersFunctionstripUpstreamDetailSuffix
(message: string)
src/app/v1/_lib/proxy/error-handler.ts:34
↓ 1 callersFunctionsubmitForm
()
tests/unit/settings/system-settings-form-non-chat-fallback.test.tsx:127
↓ 1 callersFunctionsubtypeLabel
(t: T, subtype: string)
src/app/[locale]/dashboard/_components/ip-details/hero.tsx:62
↓ 1 callersFunctionsuccess
(message)
scripts/validate-migrations.js:68
↓ 1 callersFunctionsumCosts
(values: DecimalInput[])
src/lib/utils/currency.ts:82
↓ 1 callersFunctionsummarize
(file: CoverageFile)
scripts/check-v1-critical-coverage.ts:30
↓ 1 callersFunctionsummarySheetName
(summary: UsageLogsSummary)
src/lib/usage-logs/export/xlsx.ts:222
↓ 1 callersMethodsweepStaleEntries
(now: number)
src/lib/security/login-abuse-policy.ts:42
↓ 1 callersFunctionsyncHealthFromRedisBatch
(endpointIds: readonly number[], refreshNow: number)
src/lib/endpoint-circuit-breaker.ts:185
↓ 1 callersFunctionsyncLiteLLMPrices
( overwriteManual?: string[] )
src/actions/model-prices.ts:505
↓ 1 callersFunctiontakeBatch
(map: Map<number, MessageRequestUpdatePatch>, batchSize: number)
src/repository/message-write-buffer.ts:86
↓ 1 callersFunctionterminateActiveSessionsBatch
( sessionIds: string[] )
src/actions/active-sessions.ts:1106
↓ 1 callersFunctionterminateWs
(ws: WebSocketType)
src/app/v1/_lib/responses-ws/upstream-adapter.ts:217
↓ 1 callersFunctiontestErrorRuleAction
(input: { message: string })
src/actions/error-rules.ts:478
↓ 1 callersFunctiontestProviderById
(c: Context)
src/app/api/v1/resources/providers/handlers.ts:432
↓ 1 callersFunctiontestProviderGemini
( data: ProviderApiTestArgs )
src/actions/providers.ts:4385
↓ 1 callersFunctiontestProviderGemini
(c: Context)
src/app/api/v1/resources/providers/handlers.ts:466
↓ 1 callersFunctiontestProviderProxy
(c: Context)
src/app/api/v1/resources/providers/handlers.ts:420
↓ 1 callersFunctiontestProviderUnified
(c: Context)
src/app/api/v1/resources/providers/handlers.ts:424
↓ 1 callersFunctiontestWebhookTargetAction
( id: number, notificationType: NotificationType )
src/actions/webhook-targets.ts:421
↓ 1 callersFunctiontick
()
src/lib/provider-endpoints/leader-lock.ts:160
↓ 1 callersFunctiontoActionInput
(query: AuditLogListQuery, cursor: { createdAt: string; id: number } | null)
src/app/api/v1/resources/audit-logs/handlers.ts:100
↓ 1 callersFunctiontoArrayBufferUint8Array
(input: Uint8Array)
src/app/v1/_lib/proxy/response-fixer/index.ts:79
↓ 1 callersFunctiontoCamelCase
(header: string)
src/lib/api-client/v1/actions/_compat.ts:188
↓ 1 callersFunctiontoCodepoint
(cp)
scripts/audit-messages-no-emoji.js:28
↓ 1 callersFunctiontoDate
(value: unknown)
src/repository/provider-endpoints-batch.ts:9
↓ 1 callersFunctiontoEndOfDay
(date: Date)
src/app/[locale]/dashboard/_components/user/forms/user-edit-section.tsx:152
↓ 1 callersFunctiontoErrorInfo
(error: unknown)
src/lib/provider-endpoints/probe.ts:72
↓ 1 callersFunctiontoExcelZonedDate
(date: Date, timezone: string)
src/lib/usage-logs/export/format.ts:34
↓ 1 callersFunctiontoFingerprint
(keyString: string)
tests/security/auth-dual-read.test.ts:70
↓ 1 callersFunctiontoInfo
( vendorId: number, providerType: ProviderType, state: VendorTypeCircuitBreakerState )
src/lib/vendor-type-circuit-breaker.ts:31
↓ 1 callersFunctiontoIsoDateTime
(value: Date | string | number | null | undefined)
src/lib/api/v1/_shared/serialization.ts:1
↓ 1 callersFunctiontoIsoString
(value: Date | string | null | undefined)
src/lib/availability/availability-service.ts:148
↓ 1 callersFunctiontoJobType
(type: NotificationType)
src/actions/webhook-targets.ts:241
← previousnext →4,501–4,600 of 6,623, ranked by callers