MCPcopy Create free account

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

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

↓ 1 callersFunctioncollectSqlChunks
(value: unknown)
tests/unit/repository/rate-limit-stats-query.test.ts:59
↓ 1 callersFunctioncollectSseEvents
(body: string)
src/app/v1/_lib/proxy/fake-streaming/response-validator.ts:311
↓ 1 callersFunctioncollectTargets
()
src/lib/public-status/scheduler.ts:64
↓ 1 callersFunctioncompanyTypeLabel
(t: T, type: string)
src/app/[locale]/dashboard/_components/ip-details/network-section.tsx:31
↓ 1 callersFunctioncompareDetailKeys
( a: string, b: string, pricingMap: Record<string, Record<string, unknown>> )
src/lib/utils/pricing-resolution.ts:237
↓ 1 callersFunctioncompute
()
src/app/[locale]/dashboard/_components/bento/statistics-chart-card.tsx:97
↓ 1 callersFunctioncomputePreviewAfterValue
( field: ProviderBatchPatchField, operation: ProviderPatchOperation<unknown> )
src/actions/providers.ts:1878
↓ 1 callersFunctioncomputeSubscriberConnectBackoffMs
(consecutiveFailures: number)
src/lib/redis/pubsub.ts:29
↓ 1 callersFunctionconcatUint8Chunks
(chunks: Uint8Array[])
src/app/v1/_lib/proxy/response-fixer/index.ts:102
↓ 1 callersFunctionconcatUint8Chunks
(chunks: Uint8Array[])
src/app/v1/_lib/proxy/response-fixer/sse-fixer.ts:25
↓ 1 callersFunctioncontainsNonAscii
(value: string)
src/lib/utils/validation/api-key-warnings.ts:25
↓ 1 callersFunctioncontainsUncommonAscii
(value: string)
src/lib/utils/validation/api-key-warnings.ts:33
↓ 1 callersFunctionconvertToAuthSession
( sessionData: OpaqueSessionContract, options?: { allowReadOnlyAccess?: boolean } )
src/lib/auth.ts:431
↓ 1 callersFunctioncopyToClipboard
(url: string, name: string)
src/app/[locale]/settings/providers/_components/forms/url-preview.tsx:72
↓ 1 callersFunctioncountEmojiCodepoints
(s)
scripts/audit-messages-emoji.js:55
↓ 1 callersFunctioncountEndpointsByVendorType
* Count enabled endpoints per vendor/type
src/lib/provider-endpoints/probe-scheduler.ts:75
↓ 1 callersFunctioncountKeyScopedLedgerRows
( keyString: string, filters: UsageLogSlimFilters )
src/repository/usage-logs.ts:895
↓ 1 callersFunctioncountKeyScopedMessageRows
( keyString: string, filters: UsageLogSlimFilters )
src/repository/usage-logs.ts:883
↓ 1 callersFunctioncountLinesUpTo
(text: string, maxLines: number)
src/components/ui/code-display.tsx:60
↓ 1 callersMethodcreate
( data: Omit<SessionData, "sessionId" | "createdAt" | "expiresAt">, ttlSeconds = this.defaultTtlSecond
src/lib/auth-session-store/redis-session-store.ts:129
↓ 1 callersFunctioncreateActionRoutes
( module: string, actions: Record<string, ServerAction>, optionsMap: Record<string, ActionRouteOptions>
src/lib/api/action-adapter-openapi.ts:568
↓ 1 callersFunctioncreateActiveHangingResponsesSse
(upstreamSignal: AbortSignal)
tests/unit/proxy/response-handler-client-abort-drain.test.ts:351
↓ 1 callersMethodcreateAgent
(params: GetAgentParams)
src/lib/proxy-agent/agent-pool.ts:886
↓ 1 callersMethodcreateAgentWithCache
* Internal method to create agent and update cache * Separated to enable race condition protection via Promise caching
src/lib/proxy-agent/agent-pool.ts:359
↓ 1 callersFunctioncreateClaudeAuthProvider
()
tests/unit/proxy/proxy-forwarder.test.ts:83
↓ 1 callersFunctioncreateCollisionPublicGroupSlug
( baseSlug: string, groupName: string, usedSlugs: Set<string> )
src/lib/public-status/config.ts:231
↓ 1 callersFunctioncreateCompletedThenAbortedClaudeSse
()
tests/unit/proxy/response-handler-client-abort-drain.test.ts:474
↓ 1 callersFunctioncreateCompletedThenErroredResponsesSse
()
tests/unit/proxy/response-handler-client-abort-drain.test.ts:389
↓ 1 callersFunctioncreateConsoleLogger
(initialLevel: LogLevel)
src/lib/logger.ts:53
↓ 1 callersFunctioncreateDatabaseConnection
(connectionString: string)
scripts/clear-session-bindings.ts:254
↓ 1 callersFunctioncreateDbInstance
()
src/drizzle/db.ts:10
↓ 1 callersFunctioncreateDbMock
(updatedRows: BatchUpdateRow[])
tests/unit/repository/provider-batch-update-advanced-fields.test.ts:10
↓ 1 callersFunctioncreateDbMock
(currentRow: ProviderRow, updatedRow: ProviderRow)
tests/unit/repository/provider-endpoint-sync-on-edit.test.ts:65
↓ 1 callersFunctioncreateDeferred
()
src/components/ui/__tests__/provider-group-tag-input.test.tsx:57
↓ 1 callersFunctioncreateErroredResponsesSse
()
tests/unit/proxy/response-handler-client-abort-drain.test.ts:276
↓ 1 callersFunctioncreateFake200ErrorResponse
()
tests/integration/billing-model-source.test.ts:284
↓ 1 callersFunctioncreateFallbackSettings
()
src/repository/system-config.ts:142
↓ 1 callersFunctioncreateFormatRelativeTime
( t: (key: string, params?: Record<string, number>) => string, timeZone: string )
src/app/[locale]/dashboard/_components/user/key-list-header.tsx:50
↓ 1 callersFunctioncreateLegacyGoneResponse
(request: Request)
src/app/api/actions/[...route]/route.ts:2472
↓ 1 callersFunctioncreateLoggerMock
()
tests/unit/lib/circuit-breaker.test.ts:17
↓ 1 callersFunctioncreateLoggerWrapper
* 日志包装器 - 支持灵活的参数顺序 * * 支持两种调用方式: * 1. logger.info(obj, msg) - pino 原生方式 * 2. logger.info(msg, obj) - 便捷方式
src/lib/logger.ts:91
↓ 1 callersFunctioncreateLongContextPricingAudit
( pricing: ResolvedLongContextPricing )
src/app/v1/_lib/proxy/response-handler.ts:341
↓ 1 callersFunctioncreateMockOverview
()
tests/unit/actions/admin-user-insights.test.ts:65
↓ 1 callersFunctioncreateMockRedis
(status = "ready")
tests/unit/lib/redis/redis-kv-store.test.ts:8
↓ 1 callersFunctioncreateMockUser
()
tests/unit/actions/admin-user-insights.test.ts:47
↓ 1 callersFunctioncreateModelPrice
( modelName: string, priceData: ModelPriceData, source: ModelPriceSource = "litellm" )
src/repository/model-price.ts:244
↓ 1 callersFunctioncreateMonitoredStream
* 创建监控包装流,确保在所有场景下都释放锁 * * 关键场景: * - 成功完成:通过 pull() 中的 done === true 释放锁 * - 流错误:通过 pull() 中的 catch 释放锁 * - 请求取消:通过 cancel() 释放锁 * * @param str
src/app/api/admin/database/export/route.ts:27
↓ 1 callersFunctioncreateNon200StreamResponse
Create an SSE stream that returns non-200 HTTP status with error body.
tests/unit/proxy/response-handler-endpoint-circuit-isolation.test.ts:278
↓ 1 callersFunctioncreateParamSchema
(params: T)
src/lib/api/action-adapter-openapi.ts:583
↓ 1 callersFunctioncreateParticles
()
src/app/[locale]/internal/dashboard/big-screen/page.tsx:104
↓ 1 callersFunctioncreatePreBodyHangingResponsesSse
(upstreamSignal: AbortSignal)
tests/unit/proxy/response-handler-client-abort-drain.test.ts:330
↓ 1 callersFunctioncreateProvider
(c: Context)
src/app/api/v1/resources/providers/handlers.ts:109
↓ 1 callersFunctioncreateProvider
()
tests/unit/proxy/response-handler-client-abort-drain.test.ts:112
↓ 1 callersFunctioncreateProvider
()
tests/unit/proxy/openai-embeddings-forwarder.test.ts:24
↓ 1 callersFunctioncreateProvider
(overrides: Partial<Provider> = {})
tests/unit/proxy/proxy-forwarder-large-chunked-response.test.ts:34
↓ 1 callersFunctioncreateProviderBatchPreviewToken
()
src/actions/providers.ts:1561
↓ 1 callersFunctioncreateProviderGroup
(input: { name: string; costMultiplier?: number; description?: string; })
src/actions/provider-groups.ts:79
↓ 1 callersFunctioncreateProviderGroup
(c: Context)
src/app/api/v1/resources/provider-groups/handlers.ts:28
↓ 1 callersMethodcreateProxyConfig
()
src/lib/webhook/notifier.ts:115
↓ 1 callersFunctioncreateRedisClient
(redisUrl: string)
scripts/clear-session-bindings.ts:263
↓ 1 callersFunctioncreateRedisMock
()
tests/unit/redis/leaderboard-cache.test.ts:44
↓ 1 callersFunctioncreateRenderer
(provider: ProviderType, config?: WebhookTargetConfig)
src/lib/webhook/renderers/index.ts:18
↓ 1 callersFunctioncreateRequestFilter
(c: Context)
src/app/api/v1/resources/request-filters/handlers.ts:28
↓ 1 callersFunctioncreateResponseSchemas
(dataSchema?: z.ZodSchema)
src/lib/api/action-adapter-openapi.ts:199
↓ 1 callersFunctioncreateResponsesSse
()
tests/unit/proxy/response-handler-client-abort-drain.test.ts:250
↓ 1 callersFunctioncreateRestoreDbHarness
(options: { selectQueue: SelectRow[][]; updateReturningQueue?: SelectRow[][]; })
tests/unit/repository/provider-restore.test.ts:5
↓ 1 callersFunctioncreateSensitiveWordAction
(data: { word: string; matchType: "contains" | "exact" | "regex"; description?: string; })
src/actions/sensitive-words.ts:32
↓ 1 callersFunctioncreateSession
()
tests/unit/proxy/openai-embeddings-forwarder.test.ts:40
↓ 1 callersFunctioncreateSession
(params?: { clientAbortSignal?: AbortSignal | null })
tests/unit/proxy/proxy-forwarder-large-chunked-response.test.ts:94
↓ 1 callersFunctioncreateSettingsPatch
( key: K, value: NotificationSettingsState[K] )
src/app/[locale]/settings/notifications/_components/notification-type-card.tsx:120
↓ 1 callersFunctioncreateStreamResponse
(usage: { input_tokens: number; output_tokens: number })
tests/unit/proxy/response-handler-lease-decrement.test.ts:268
↓ 1 callersFunctioncreateThenableQuery
(result: T, whereArgs?: unknown[])
tests/unit/repository/leaderboard-timezone-parentheses.test.ts:52
↓ 1 callersFunctioncreateThenableQuery
(result: T, whereArgs?: unknown[])
tests/unit/repository/admin-user-insights-overview.test.ts:37
↓ 1 callersFunctioncreateThenableQuery
(result: T, whereArgs?: unknown[])
tests/unit/repository/overview-timezone-parentheses.test.ts:52
↓ 1 callersFunctioncreateTruncatedClaudeSse
()
tests/unit/proxy/response-handler-client-abort-drain.test.ts:432
↓ 1 callersFunctioncreateTxMock
(selectResults: SelectRow[][])
tests/unit/repository/provider-endpoint-sync-helper.test.ts:5
↓ 1 callersFunctioncreateUniquePublicGroupSlug
(groupName: string, usedSlugs: Set<string>)
src/lib/public-status/config.ts:224
↓ 1 callersFunctioncreateUser
(userData: CreateUserData)
src/repository/user.ts:45
↓ 1 callersFunctioncreateUserOnly
(data: { name: string; note?: string; providerGroup?: string | null; tags?: string[]; rpm?: number |
src/actions/users.ts:1502
↓ 1 callersFunctioncreateWebhookTarget
(c: Context)
src/app/api/v1/resources/webhook-targets/handlers.ts:54
↓ 1 callersFunctioncreateWebhookTargetAction
(data: unknown)
src/lib/api-client/v1/actions/webhook-targets.ts:18
↓ 1 callersFunctioncrlfEventChunk
(event: unknown)
tests/e2e/responses-ws-codex-cli-transport.test.ts:655
↓ 1 callersFunctiondateCell
(ref: string, date: Date)
src/lib/usage-logs/export/xlsx.ts:121
↓ 1 callersFunctiondateToIsoString
(date: Date)
src/lib/api/v1/_shared/serialization.ts:33
↓ 1 callersFunctiondecodeApiError
(response: Response)
src/lib/api-client/v1/fetcher.ts:102
↓ 1 callersFunctiondecodeBase64Strict
* Node `Buffer.from(text, "base64")` 对非法字符是"宽容"的(会忽略), * 这里加一个轻量校验:只允许 base64 alphabet + 可选 padding。 * 解出零字节时也视为非法,避免把 "!!!" 误判成空 payload。
src/app/v1/_lib/proxy/thinking-signature-model.ts:89
↓ 1 callersFunctiondecodeBase64UrlToString
(value: string)
src/lib/auth-admin-session-token.ts:41
↓ 1 callersFunctiondecodeLegacyCursorToken
(token: string)
src/lib/api-client/v1/actions/_compat.ts:217
↓ 1 callersFunctiondecodeOne
(buffer: Buffer, encoding: string, maxOutputLength: number)
src/app/v1/_lib/proxy/request-body-codec.ts:114
↓ 1 callersFunctiondecodePayload
(token: string)
tests/unit/auth/admin-signed-session-token.test.ts:12
↓ 1 callersFunctiondecodeRequestBodyAsJson
* Best-effort decode of the *final* outgoing request body into a JSON object. * * The Responses WebSocket adapter needs the same payload that would
src/app/v1/_lib/proxy/forwarder.ts:129
↓ 1 callersMethoddecrementConcurrentCount
* 减少 session 并发计数 * * 调用时机:请求结束时(在 proxy-handler.ts 的 finally 块中) * * @param sessionId - Session ID
src/lib/session-tracker.ts:672
↓ 1 callersFunctiondeepMerge
Recursive merge with null-as-delete semantics
src/lib/request-filter-engine.ts:158
↓ 1 callersFunctiondefaultExampleValue
(mediaType: string)
src/app/api/v1/_root/document.ts:155
↓ 1 callersFunctiondefaultMaxWorkers
()
vitest.config.ts:9
↓ 1 callersFunctiondelay
(ms: number)
src/lib/webhook/utils/retry.ts:11
↓ 1 callersFunctiondeleteBatch
* Batch delete with CTE + RETURNING 1 for driver-agnostic row counting. * Uses FOR UPDATE SKIP LOCKED to prevent deadlocks with concurrent jobs.
src/lib/log-cleanup/service.ts:226
↓ 1 callersFunctiondeleteByPath
Navigate to parent, delete last key
src/lib/request-filter-engine.ts:103
↓ 1 callersFunctiondeleteCircuitState
(providerId: number)
src/lib/redis/circuit-breaker-state.ts:153
↓ 1 callersFunctiondeleteKey
(c: Context)
src/app/api/v1/resources/keys/handlers.ts:164
← previousnext →3,201–3,300 of 6,623, ranked by callers