MCPcopy Create free account

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

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

↓ 1 callersFunctiondeleteModelPriceByName
(modelName: string)
src/repository/model-price.ts:297
↓ 1 callersFunctiondeleteProvider
(c: Context)
src/app/api/v1/resources/providers/handlers.ts:189
↓ 1 callersFunctiondeleteProviderEndpointProbeLogsBeforeDateBatch
(input: { beforeDate: Date; batchSize?: number; })
src/repository/provider-endpoints.ts:398
↓ 1 callersFunctiondeleteProviderGroup
(c: Context)
src/app/api/v1/resources/provider-groups/handlers.ts:58
↓ 1 callersFunctiondeleteProvidersBatch
(ids: number[])
src/repository/provider.ts:1376
↓ 1 callersFunctiondeleteRequestFilter
(c: Context)
src/app/api/v1/resources/request-filters/handlers.ts:58
↓ 1 callersFunctiondeleteSensitiveWordAction
(id: number)
src/actions/sensitive-words.ts:211
↓ 1 callersFunctiondeleteUser
(c: Context)
src/app/api/v1/resources/users/handlers.ts:145
↓ 1 callersFunctiondeleteVendorTypeCircuitState
( vendorId: number, providerType: ProviderType )
src/lib/redis/vendor-type-circuit-breaker-state.ts:101
↓ 1 callersFunctiondeleteWebhookTarget
(c: Context)
src/app/api/v1/resources/webhook-targets/handlers.ts:121
↓ 1 callersFunctiondeleteWebhookTargetAction
(id: number)
src/actions/webhook-targets.ts:405
↓ 1 callersFunctionderiveCandidateFromRawText
(rawText: string | undefined)
src/app/v1/_lib/proxy/client-error-message.ts:157
↓ 1 callersFunctionderiveCurrentModelState
(model: ViewModelSnapshot)
src/app/[locale]/status/_components/public-status-view.tsx:158
↓ 1 callersFunctionderiveModelFilterState
( model: Pick<PublicStatusModelSnapshot, "timeline" | "latestState"> )
src/lib/public-status/public-api-contract.ts:381
↓ 1 callersFunctiondeserializeState
(data: Record<string, string>)
src/lib/redis/vendor-type-circuit-breaker-state.ts:38
↓ 1 callersFunctiondeserializeState
* 将 Redis Hash 格式反序列化为状态对象
src/lib/redis/circuit-breaker-state.ts:68
↓ 1 callersFunctiondetailCell
(column: DetailColumn, log: UsageLogRow, ref: string, timezone: string)
src/lib/usage-logs/export/xlsx.ts:130
↓ 1 callersFunctiondetailNumberStyle
(column: DetailColumn)
src/lib/usage-logs/export/xlsx.ts:126
↓ 1 callersFunctiondetailSheetXml
(detailRowsXml: string[], timezone: string)
src/lib/usage-logs/export/xlsx.ts:178
↓ 1 callersFunctiondetectClientFormatOverride
* 解析 /v1/models 的客户端格式覆盖(可选) * * 用途:当使用 /v1/responses 时,可通过 header 或 query 明确告知只返回 codex 供应商模型。
src/app/v1/_lib/models/available-models.ts:142
↓ 1 callersFunctiondetectCloudflareGatewayError
(response: Response)
src/actions/providers.ts:3480
↓ 1 callersFunctiondetectEndpointFormat
(pathname: string)
src/app/v1/_lib/proxy/endpoint-family-catalog.ts:458
↓ 1 callersMethoddetectGAVersion
* 检测指定客户端的最新 GA 版本 * * GA 版本定义:被 1 个或以上用户使用的最新版本 * 活跃窗口:过去 7 天内有请求的用户 * * @param clientType - 客户端类型(如 "claude-vscode"、"claude-cli"、"cla
src/lib/client-version-checker.ts:156
↓ 1 callersMethoddetectProvider
(webhookUrl: string)
src/lib/webhook/notifier.ts:62
↓ 1 callersFunctiondetectProviderType
(url: string)
src/lib/webhook/migration.ts:39
↓ 1 callersFunctiondetectQuickPeriod
( startDate?: string, endDate?: string, serverTimeZone?: string )
src/app/[locale]/dashboard/logs/_components/logs-date-range-picker.tsx:47
↓ 1 callersFunctiondetectResponseFormat
* 检测响应格式
src/app/v1/_lib/models/available-models.ts:125
↓ 1 callersFunctiondetermineClaudeClientType
* 根据 User-Agent 中的标记,确定 Claude 客户端的具体类型 * * @param ua - User-Agent 字符串 * @returns 客户端类型:'claude-vscode' | 'claude-cli' | 'claude-cli-unknown' * *
src/lib/ua-parser.ts:90
↓ 1 callersFunctiondetermineOptimalBucketSize
(timeRangeMinutes: number)
src/lib/availability/availability-service.ts:226
↓ 1 callersMethoddisplayProviderList
(providers: ProviderRecord[])
scripts/clear-session-bindings.ts:645
↓ 1 callersFunctiondisplayResult
(result: CleanupResult, dryRun: boolean)
scripts/clear-session-bindings.ts:813
↓ 1 callersMethoddispose
()
src/lib/hooks/use-in-view-once.ts:84
↓ 1 callersMethoddisposeCachedAgent
( key: string, cached: CachedAgent, retiredBy: AgentRetirementReason, retireReason: string )
src/lib/proxy-agent/agent-pool.ts:627
↓ 1 callersMethoddoSend
(url: string, payload: WebhookPayload)
src/lib/webhook/notifier.ts:141
↓ 1 callersFunctiondownloadUsageLogsExport
(c: Context)
src/app/api/v1/resources/usage-logs/handlers.ts:128
↓ 1 callersFunctiondrain
()
server.js:285
↓ 1 callersMethoddrain
()
src/app/v1/_lib/proxy/response-fixer/index.ts:222
↓ 1 callersFunctionemitAnthropicStream
(parsed: unknown)
src/app/v1/_lib/proxy/fake-streaming/emitters.ts:88
↓ 1 callersFunctionemitAsync
(args: EmitActionAuditArgs)
src/lib/audit/emit.ts:53
↓ 1 callersFunctionemitGeminiStream
(_parsed: unknown, finalBody: string)
src/app/v1/_lib/proxy/fake-streaming/emitters.ts:355
↓ 1 callersFunctionemitOpenAIChatStream
(parsed: unknown)
src/app/v1/_lib/proxy/fake-streaming/emitters.ts:201
↓ 1 callersFunctionemitOpenAIResponsesStream
(parsed: unknown)
src/app/v1/_lib/proxy/fake-streaming/emitters.ts:287
↓ 1 callersFunctionencodeKeysetCursor
(sortValue: unknown, id: number)
src/repository/user.ts:187
↓ 1 callersFunctionencodingForFormat
(format: UsageLogsExportFormat)
src/actions/usage-logs.ts:93
↓ 1 callersMethodenforceMaxSize
(replacementCacheKey?: string)
src/lib/proxy-agent/agent-pool.ts:833
↓ 1 callersMethodensureCapacityForNewAgent
(cacheKey: string)
src/lib/proxy-agent/agent-pool.ts:795
↓ 1 callersFunctionensureConfigInvalidationSubscription
()
src/lib/circuit-breaker.ts:125
↓ 1 callersMethodensureContext
(session: ProxySession)
src/app/v1/_lib/proxy/message-service.ts:6
↓ 1 callersFunctionensureDrizzleMigrationsTableExists
( client: ReturnType<typeof postgres> )
src/lib/migrate.ts:62
↓ 1 callersFunctionensureFilePolyfill
()
src/lib/polyfills/file.ts:45
↓ 1 callersFunctionensureLeaderLock
()
src/lib/provider-endpoints/probe-scheduler.ts:167
↓ 1 callersFunctionensureLeaderLock
()
src/lib/public-status/scheduler.ts:43
↓ 1 callersFunctionensureSettings
(locale, messagesDir)
scripts/sync-settings-keys.js:175
↓ 1 callersFunctionensureSubscriber
(baseClient: Redis)
src/lib/redis/pubsub.ts:77
↓ 1 callersFunctionensureSubscription
* 初始化 Redis 订阅 * * 使用失效通知模式:收到通知后清除本地缓存,下次请求时从 DB 刷新 * pubsub.ts 订阅:静默降级
src/lib/cache/provider-cache.ts:49
↓ 1 callersFunctionescapeRegExp
(value: string)
src/app/v1/_lib/url.ts:3
↓ 1 callersFunctionescapeRegExp
(value: string)
src/app/v1/_lib/proxy/client-error-message.ts:85
↓ 1 callersMethodeval
(script: string, numKeys: number, ...args: string[])
src/lib/public-status/rebuild-worker.ts:39
↓ 1 callersFunctionevaluateContentValidation
( baseStatus: TestStatus, baseSubStatus: TestSubStatus, responseBody: string, successContains?: string
src/lib/provider-testing/validators/content-validator.ts:25
↓ 1 callersFunctioneventCarriesDeliverable
( family: ProtocolFamily, _eventName: string | null, json: object )
src/app/v1/_lib/proxy/fake-streaming/response-validator.ts:219
↓ 1 callersMethodevict
()
src/lib/cache/ttl-map.ts:70
↓ 1 callersMethodevictIdleCachedAgentsUntilAtLimit
(replacementCacheKey?: string)
src/lib/proxy-agent/agent-pool.ts:854
↓ 1 callersMethodevictIdleCachedAgentsUntilBelowLimit
(replacementCacheKey?: string)
src/lib/proxy-agent/agent-pool.ts:847
↓ 1 callersFunctionexcelSerial
(date: Date)
src/lib/usage-logs/export/xlsx.ts:100
↓ 1 callersMethodexecuteAdvancedOps
( ops: FilterOperation[], body: Record<string, unknown>, headers: Headers )
src/lib/request-filter-engine.ts:693
↓ 1 callersMethodexecuteInsertOp
(op: InsertOp, body: Record<string, unknown>)
src/lib/request-filter-engine.ts:769
↓ 1 callersMethodexecuteMergeOp
(op: MergeOp, body: Record<string, unknown>)
src/lib/request-filter-engine.ts:751
↓ 1 callersFunctionexecutePgDump
(mode: ExportMode = "full")
src/lib/database-backup/docker-executor.ts:60
↓ 1 callersFunctionexecutePgRestore
( filePath: string, cleanFirst: boolean, skipLogs = false )
src/lib/database-backup/docker-executor.ts:222
↓ 1 callersMethodexecuteRemoveOp
(op: RemoveOp, body: Record<string, unknown>, headers: Headers)
src/lib/request-filter-engine.ts:733
↓ 1 callersMethodexecuteSetOp
(op: SetOp, body: Record<string, unknown>, headers: Headers)
src/lib/request-filter-engine.ts:720
↓ 1 callersFunctionexecuteUpdate
()
src/app/[locale]/dashboard/_components/user/batch-edit/batch-edit-dialog.tsx:315
↓ 1 callersFunctionexecuteWithRetry
* 带重试的异步操作执行器 * @param fn - 要执行的异步函数 * @param maxRetries - 最大重试次数(默认 2 次) * @param delayMs - 重试间隔基数(毫秒,默认 100ms)
src/app/v1/_lib/proxy/session-guard.ts:40
↓ 1 callersFunctionexportedFunctionNames
(fileName: string)
tests/unit/api/v1/action-migration-matrix.test.ts:18
↓ 1 callersFunctionextractAfterRequestMessages
(value: unknown)
src/lib/session-detail-snapshots.ts:21
↓ 1 callersFunctionextractAnthropicEffortFromRequestBody
(requestBody: unknown)
src/lib/utils/anthropic-effort.ts:12
↓ 1 callersFunctionextractApiKey
* 从请求中提取 API Key(复用 auth-guard 的逻辑)
src/app/v1/_lib/models/available-models.ts:42
↓ 1 callersFunctionextractApiKeyFromHeaders
(headers: { authorization?: string | null; "x-api-key"?: string | null; "x-goog-api-key"?: string | null
src/app/v1/_lib/proxy/auth-guard.ts:353
↓ 1 callersFunctionextractBaseUrl
(url: string)
src/lib/utils/validation/index.ts:44
↓ 1 callersFunctionextractClientIp
(headers: Headers)
src/app/v1/_lib/codex/session-completer.ts:44
↓ 1 callersMethodextractClientSessionId
* 从客户端请求中提取 session_id(支持 metadata 或 header) * * 优先级: * 1. metadata.user_id (Claude Code 主要方式,兼容旧字符串格式和新 JSON 字符串格式) * 2. metadata.session
src/lib/session-manager.ts:217
↓ 1 callersFunctionextractCookieValue
(setCookieHeader: string, cookieName: string)
tests/e2e/_helpers/auth.ts:93
↓ 1 callersFunctionextractErrorMessage
(errorJson: unknown)
src/actions/providers.ts:3402
↓ 1 callersMethodextractErrorMessage
* 从 JSON 中提取错误消息 * 支持的格式: * - Claude API: { "error": { "message": "...", "type": "..." } } * - OpenAI API: { "error": { "message": "..." } }
src/app/v1/_lib/proxy/errors.ts:410
↓ 1 callersFunctionextractFromFile
* Extract Chinese strings from a file
scripts/extract-translations.ts:178
↓ 1 callersFunctionextractHost
(urlValue: string | null | undefined)
src/lib/utils/pricing-resolution.ts:96
↓ 1 callersFunctionextractInitialMessageTextHash
(requestBody: Record<string, unknown>)
src/app/v1/_lib/codex/session-completer.ts:58
↓ 1 callersFunctionextractInputText
* 从 input 字段中提取文本(Response API 格式)
src/lib/message-extractor.ts:108
↓ 1 callersMethodextractJsonFromString
* 从字符串中提取 JSON 对象部分 * * 处理类似 `{"key":"value"}(额外文本)` 的情况 * 通过括号匹配找到 JSON 对象的结束位置
src/app/v1/_lib/proxy/errors.ts:318
↓ 1 callersFunctionextractManagementAuthToken
( c: Context )
src/lib/api/v1/_shared/auth-middleware.ts:21
↓ 1 callersMethodextractMatchedText
* 提取匹配到的文本片段(带上下文)
src/lib/sensitive-word-detector.ts:201
↓ 1 callersFunctionextractMessagesText
* 从 messages 数组中提取用户消息文本
src/lib/message-extractor.ts:70
↓ 1 callersMethodextractRequestIdFromBody
* 从解析后的 JSON 响应体中提取 request_id * * 支持多种嵌套格式: * 1. 顶层 request_id/requestId(标准 Claude/OpenAI 格式) * 2. error 对象内的 request_id/requestId * 3
src/app/v1/_lib/proxy/errors.ts:154
↓ 1 callersMethodextractRequestIdFromHeaders
* 从响应头中提取 request_id
src/app/v1/_lib/proxy/errors.ts:391
↓ 1 callersMethodextractRequestIdFromText
* 从纯文本中提取 request_id * * 支持的格式: * - (request id: xxx) * - (request_id: xxx) * - request_id: "xxx" * - "request_id": "xxx"
src/app/v1/_lib/proxy/errors.ts:372
↓ 1 callersFunctionextractSessionIdFromKey
(redisKey: string)
scripts/clear-session-bindings.ts:432
↓ 1 callersFunctionextractSystemText
* 从 system 字段中提取文本
src/lib/message-extractor.ts:50
↓ 1 callersFunctionextractTextFromMessages
(message: Record<string, unknown>)
src/lib/message-extractor.ts:149
↓ 1 callersFunctionextractTextFromSSE
(body: string)
src/lib/provider-testing/utils/sse-collector.ts:18
↓ 1 callersFunctionfamilyFromFormat
(format: ClientFormat)
src/app/v1/_lib/proxy/fake-streaming/proxy-integration.ts:24
← previousnext →3,301–3,400 of 6,623, ranked by callers