MCPcopy Create free account

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

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

↓ 2 callersFunctionundoMetadataHeaders
(data: unknown)
src/app/api/v1/resources/providers/handlers.ts:580
↓ 2 callersFunctionunlock
()
src/app/[locale]/settings/providers/_components/forms/provider-form/index.tsx:192
↓ 2 callersFunctionupdateNotificationSettings
(c: Context)
src/app/api/v1/resources/notifications/handlers.ts:29
↓ 2 callersFunctionupdatePreviousEndpointInPlace
(executor: QueryExecutor)
src/repository/provider-endpoints.ts:1478
↓ 2 callersFunctionupdateProviderEndpoint
( endpointId: number, payload: { url?: string; label?: string | null; sortOrder?: number; isEnabled?: bool
src/repository/provider-endpoints.ts:2077
↓ 2 callersFunctionupdateSensitiveWordAction
( id: number, updates: Partial<{ word: string; matchType: string; description: string; isE
src/actions/sensitive-words.ts:124
↓ 2 callersMethodupdateSessionWithCodexCacheKey
* 使用 Codex 的 prompt_cache_key 更新 Session 绑定 * * 策略:如果响应中包含 prompt_cache_key,使用它作为 Session ID 的来源。 * 这类似于 Claude 从请求 metadata 中提取 session_id 的
src/lib/session-manager.ts:2312
↓ 2 callersFunctionusageLogsExportResultKey
(jobId: string)
src/actions/usage-logs.ts:85
↓ 2 callersFunctionuseBatchProviderTest
()
src/app/[locale]/settings/providers/_components/batch-test/use-batch-provider-test.ts:52
↓ 2 callersFunctionuseChart
()
src/components/ui/chart.tsx:28
↓ 2 callersFunctionuseIpGeo
(ip: string | null | undefined, options?: UseIpGeoOptions)
src/hooks/use-ip-geo.ts:14
↓ 2 callersFunctionuseModelSuggestions
(providerGroup?: string | null)
src/app/[locale]/dashboard/_components/user/hooks/use-model-suggestions.ts:11
↓ 2 callersFunctionuseUserTranslations
( options: UseUserTranslationsOptions = {} )
src/app/[locale]/dashboard/_components/user/hooks/use-user-translations.ts:171
↓ 2 callersFunctionuseVirtualizer
( options: PartialKeys< VirtualizerOptions<TScrollElement, TItemElement>, "observeElementRect" | "ob
src/hooks/use-virtualizer.ts:60
↓ 2 callersFunctionuseVirtualizerBase
( options: VirtualizerOptions<TScrollElement, TItemElement> )
src/hooks/use-virtualizer.ts:26
↓ 2 callersFunctionvalidateClaudeFormat
* 验证 Claude 格式的错误覆写响应 * * 必须满足的结构: * { * "type": "error", * "error": { * "type": string, * "message": string * } * }
src/lib/error-override-validator.ts:67
↓ 2 callersFunctionvalidateDallEUrlField
(name: string, value: string)
src/app/v1/_lib/proxy/openai-image-compat.ts:263
↓ 2 callersFunctionvalidateEnumList
( rawValues: string[], field: string, issues: PublicStatusValidationIssue[], allowedValues: T )
src/lib/public-status/public-api-contract.ts:240
↓ 2 callersFunctionvalidateGeminiFormat
* 验证 Gemini 格式的错误覆写响应 * * 必须满足的结构: * { * "error": { * "code": number, * "message": string, * "status": string * } * }
src/lib/error-override-validator.ts:111
↓ 2 callersFunctionvalidateMatcher
(matcher: FilterMatcher, context: string)
src/actions/request-filters.ts:40
↓ 2 callersFunctionvalidateOpenAIFormat
* 验证 OpenAI 格式的错误覆写响应 * * 必须满足的结构: * { * "error": { * "message": string, * "type": string, * "param"?: string | null, * "cod
src/lib/error-override-validator.ts:157
↓ 2 callersFunctionvalidateOperations
(operations: unknown)
src/actions/request-filters.ts:49
↓ 2 callersFunctionvalidatePayload
(data: { name: string; scope: RequestFilterScope; action: RequestFilterAction; target: string; match
src/actions/request-filters.ts:132
↓ 2 callersFunctionvalidateRule
(rule: ProviderModelRedirectRule, ignoreRuleKey?: string)
src/app/[locale]/settings/providers/_components/model-redirect-editor.tsx:92
↓ 2 callersFunctionvalidateRule
(rule: AllowedModelRule, ignoreRuleKey?: string)
src/app/[locale]/settings/providers/_components/allowed-model-rule-editor.tsx:95
↓ 2 callersFunctionvalidateTextList
( rawValues: string[], field: string, issues: PublicStatusValidationIssue[], maxLength: number )
src/lib/public-status/public-api-contract.ts:196
↓ 2 callersFunctionvalidateUpstreamResponse
(input: ValidateInput)
src/app/v1/_lib/proxy/fake-streaming/response-validator.ts:29
↓ 2 callersFunctionvisit
(item: unknown)
tests/unit/repository/rate-limit-stats-query.test.ts:64
↓ 2 callersFunctionwarmupApiKeyVacuumFilter
()
src/instrumentation.ts:258
↓ 2 callersFunctionwithLegacyDeprecationHeaders
(response: Response)
src/app/api/actions/[...route]/route.ts:2490
↓ 2 callersFunctionwithManagementSecurityHeaders
(response: Response)
src/lib/api/v1/_shared/management-security-headers.ts:18
↓ 2 callersFunctionwithTimeout
(p: Promise<unknown>, ms: number, label: string)
src/lib/langfuse/index.ts:79
↓ 2 callersFunctionworksheetXml
(rows: string[], columnCount: number)
src/lib/usage-logs/export/xlsx.ts:159
↓ 2 callersFunctionwriteCache
(key: string, entry: CachedEntry, ttlSeconds: number)
src/lib/ip-geo/client.ts:43
↓ 2 callersFunctionwriteFatalStderr
(trigger: string, err: Error, reportPath?: string)
src/instrumentation.ts:65
↓ 2 callersFunctionwriteReport
(trigger: string, err: unknown)
src/instrumentation.ts:46
↓ 2 callersFunctionwsErrorCode
(message: WsClientMessage)
tests/e2e/responses-ws-codex-cli-transport.test.ts:684
↓ 2 callersFunctionzeroFillKeyStats
( dbRows: KeyBucketStatsRow[], allKeys: Array<{ id: number; name: string }>, buckets: Date[] )
src/repository/statistics.ts:202
↓ 1 callersFunctionRootLayout
({ children, params, }: Readonly<{ children: React.ReactNode; params: Promise<{ locale: string }>; }>)
src/app/[locale]/layout.tsx:69
↓ 1 callersFunctionabbreviateClient
(name: string)
src/app/[locale]/my-usage/_components/provider-group-info.tsx:53
↓ 1 callersFunctionabbreviateModel
(name: string)
src/app/[locale]/my-usage/_components/provider-group-info.tsx:9
↓ 1 callersFunctionacquireDistributedRebuildLock
(input: { redis: RedisHintWriter & { get(key: string): Promise<string | null> | string | null }; flightKey
src/lib/public-status/rebuild-worker.ts:234
↓ 1 callersFunctionactionError
(c: Context, result: Extract<ActionResult<unknown>, { ok: false }>)
src/app/api/v1/resources/public/handlers.ts:131
↓ 1 callersMethodadd
* 插入(成功返回 true;失败返回 false)
src/lib/vacuum-filter/vacuum-filter.ts:429
↓ 1 callersMethodaddIndexTag
(index: number, tag: number)
src/lib/vacuum-filter/vacuum-filter.ts:609
↓ 1 callersFunctionaddIsoDays
(dateStr: string, days: number)
src/actions/my-usage.ts:126
↓ 1 callersFunctionaddOwnKey
(body: Record<string, unknown>)
src/lib/api-client/v1/actions/keys.ts:23
↓ 1 callersFunctionaddProviderEndpoint
( input: unknown )
src/actions/provider-endpoints.ts:396
↓ 1 callersFunctionaddSpecialSettingForPersistence
( ownerSession: ProxySession, persistSession: ProxySession, setting: SpecialSetting )
src/app/v1/_lib/proxy/forwarder.ts:564
↓ 1 callersFunctionaddUser
(data: { name: string; note?: string; providerGroup?: string | null; tags?: string[]; rpm?: number |
src/actions/users.ts:1293
↓ 1 callersFunctionaddYears
(date: Date, years: number)
src/app/[locale]/dashboard/_components/user/forms/quick-expire-picker.tsx:32
↓ 1 callersFunctionalignWindowEnd
(now: Date, intervalMinutes: number)
src/lib/public-status/aggregation.ts:108
↓ 1 callersMethodanalyzeImage
* 分析图片 * @param imageSource 图片源(本地路径或远程 URL) * @param prompt 提示词 * @returns 图片分析结果
src/lib/mcp/glm-client.ts:35
↓ 1 callersFunctionanalyzeLogDistribution
()
src/lib/data-generator/analyzer.ts:58
↓ 1 callersFunctionanalyzeRestoreErrors
* 分析 pg_restore 错误类型 * * @param errors - 错误信息数组 * @returns 错误分析结果
src/lib/database-backup/docker-executor.ts:160
↓ 1 callersMethodanalyzeVideo
* 分析视频 * @param videoSource 视频源(本地路径或远程 URL) * @param prompt 提示词 * @returns 视频分析结果
src/lib/mcp/glm-client.ts:80
↓ 1 callersFunctionapiDeleteWithHeaders
( path: string, options?: Parameters<typeof apiClient.delete>[1] )
src/lib/api-client/v1/actions/_compat.ts:135
↓ 1 callersFunctionapiPatchWithHeaders
( path: string, body?: unknown, options?: Parameters<typeof apiClient.patch>[2] )
src/lib/api-client/v1/actions/_compat.ts:112
↓ 1 callersFunctionappendCsrfHeaderParameter
(document: OpenApiDocument)
src/app/api/v1/_root/document.ts:88
↓ 1 callersFunctionappendDefaultExamples
(document: OpenApiDocument)
src/app/api/v1/_root/document.ts:116
↓ 1 callersMethodapply
* 应用模型重定向(如果配置了) * * @param session - 代理会话 * @param provider - 目标供应商 * @returns 是否进行了重定向
src/app/v1/_lib/proxy/model-redirector.ts:26
↓ 1 callersFunctionapplyBoundedGapFill
(input: { timeline: Array<"operational" | "failed" | null>; maxGapBuckets?: number; })
src/lib/public-status/aggregation.ts:127
↓ 1 callersFunctionapplyBoundedGapFill
(input: { timeline: Array<"operational" | "failed" | null>; maxGapBuckets?: number; })
src/lib/public-status/rollup-store.ts:560
↓ 1 callersFunctionapplyClaudeMetadataUserIdInjectionWithAudit
( message: Record<string, unknown>, session: ProxySession, enabled: boolean )
src/app/v1/_lib/proxy/forwarder.ts:1030
↓ 1 callersFunctionapplyManagementSecurityHeaders
(headers: Headers)
src/lib/api/v1/_shared/management-security-headers.ts:4
↓ 1 callersFunctionapplyNonStreamMutation
(session: ProxySession)
src/app/v1/_lib/proxy/fake-streaming/proxy-integration.ts:113
↓ 1 callersFunctionapplyPatchField
( updates: ProviderBatchApplyUpdates, field: ProviderBatchPatchField, patch: ProviderPatchOperation<T> )
src/lib/provider-patch-contract.ts:686
↓ 1 callersFunctionapplyRule
(source: HeadersLike, rule: IpHeaderRule)
src/lib/ip/extract-client-ip.ts:64
↓ 1 callersFunctionapplySecurityHeaders
(response: NextResponse)
src/lib/security/auth-response-headers.ts:6
↓ 1 callersMethodapplySimpleFilterDirect
Apply simple-mode filter on raw body/headers (not session)
src/lib/request-filter-engine.ts:628
↓ 1 callersFunctionarmPersistentIdleTimer
(entry: PersistentWsEntry)
src/app/v1/_lib/responses-ws/upstream-adapter.ts:241
↓ 1 callersFunctionasHeaderRecord
(value: unknown)
src/lib/api/action-adapter-openapi.ts:109
↓ 1 callersFunctionassertNever
* Exhaustiveness helper. Calling this from a "should be unreachable" branch * gives a compile-time error when a new union member is added without an
src/app/v1/_lib/proxy/auth-guard.ts:47
↓ 1 callersMethodattachCurrentModelRedirectToLastChainItem
(providerId: number)
src/app/v1/_lib/proxy/session.ts:719
↓ 1 callersFunctionattachSessionIdToErrorMessage
( sessionId: string | null | undefined, message: string )
src/app/v1/_lib/proxy/error-session-id.ts:1
↓ 1 callersFunctionbalanced
(s: string)
src/app/v1/_lib/proxy/actual-response-model.ts:275
↓ 1 callersFunctionballsInBinsMaxLoad
(balls: number, bins: number)
src/lib/vacuum-filter/vacuum-filter.ts:142
↓ 1 callersFunctionbatchDeleteProviders
(c: Context)
src/app/api/v1/resources/providers/handlers.ts:364
↓ 1 callersFunctionbatchGetVendorTypeEndpointStats
(input: unknown)
src/actions/provider-endpoints.ts:808
↓ 1 callersFunctionbatchUpdateKeys
(c: Context)
src/app/api/v1/resources/keys/handlers.ts:281
↓ 1 callersFunctionbatchUpdateUsers
(c: Context)
src/app/api/v1/resources/users/handlers.ts:288
↓ 1 callersFunctionblocklistCategoryLabel
(t: T, category: string)
src/app/[locale]/dashboard/_components/ip-details/security-section.tsx:32
↓ 1 callersMethodbootstrapProviderGroupsFromProviders
(input: { findAllProviderGroups: () => Promise< Array<{ id: number; name: string;
tests/unit/settings/providers/provider-group-bootstrap.test.ts:4
↓ 1 callersFunctionbufferToArrayBuffer
(buf: Buffer)
src/app/v1/_lib/proxy/request-body-codec.ts:148
↓ 1 callersFunctionbufferToHex
(buffer: ArrayBuffer)
src/lib/security/api-key-auth-cache.ts:47
↓ 1 callersFunctionbuildAnomalyDetails
(anomaly: CacheHitRateAlertAnomaly)
src/lib/webhook/templates/cache-hit-rate-alert.ts:21
↓ 1 callersFunctionbuildAttemptPerformer
(session: ProxySession)
src/app/v1/_lib/proxy/fake-streaming/proxy-integration.ts:139
↓ 1 callersFunctionbuildAttemptPlans
(config: ProviderTestConfig)
src/lib/provider-testing/test-service.ts:51
↓ 1 callersFunctionbuildAvailabilityRequestConditions
(input: { providerIds: number[]; startDate: Date; endDate?: Date; })
src/lib/availability/availability-service.ts:124
↓ 1 callersFunctionbuildBatchUpdateSql
(updates: MessageRequestUpdateRecord[])
src/repository/message-write-buffer.ts:98
↓ 1 callersMethodbuildBufferedFirstChunkStream
( firstChunk: Uint8Array, reader: ReadableStreamDefaultReader<Uint8Array> )
src/app/v1/_lib/proxy/forwarder.ts:4933
↓ 1 callersFunctionbuildConfiguredGroupLookups
(groups: PublicStatusConfiguredGroup[])
src/lib/public-status/rollup-store.ts:194
↓ 1 callersFunctionbuildConnectionFingerprint
(options: { provider: Provider; endpointId?: number | null; upstreamUrl: string; headers: Record<strin
src/app/v1/_lib/responses-ws/upstream-adapter.ts:167
↓ 1 callersFunctionbuildDefaultProviderName
(input: { vendorWebsiteDomain: string; providerType: ProviderType; })
src/app/[locale]/settings/providers/_components/vendor-keys-compact-list.tsx:62
↓ 1 callersFunctionbuildDefaultValues
(user: UserDisplay)
src/app/[locale]/dashboard/_components/user/edit-user-dialog.tsx:67
↓ 1 callersFunctionbuildDefaultValues
()
src/app/[locale]/dashboard/_components/user/create-user-dialog.tsx:75
↓ 1 callersMethodbuildErrorMessage
* 构造详细的错误信息
src/app/v1/_lib/proxy/sensitive-word-guard.ts:121
↓ 1 callersFunctionbuildFailureTaxonomy
()
src/lib/request-outcome.ts:81
↓ 1 callersFunctionbuildFilter
(overrides?: Partial<RequestFilter>)
tests/unit/lib/request-filter-engine-reload-queue.test.ts:57
↓ 1 callersFunctionbuildFunctionAssertions
(requiredFunctions: string[] | undefined)
tests/helpers/bash.ts:104
← previousnext →3,001–3,100 of 6,623, ranked by callers