MCPcopy Create free account

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

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

↓ 2 callersFunctiondetectFromJsonObject
( obj: Record<string, unknown>, rawJsonChars: number, options: Required<Pick<DetectionOptions, "maxJsonC
src/lib/utils/upstream-error-detection.ts:278
↓ 2 callersFunctiondisplaySelectedProviders
(providers: ProviderRecord[])
scripts/clear-session-bindings.ts:800
↓ 2 callersMethoddoForward
* 实际转发请求
src/app/v1/_lib/proxy/forwarder.ts:2300
↓ 2 callersFunctiondoSync
(overwriteManual?: string[])
src/app/[locale]/settings/prices/_components/sync-litellm-button.tsx:32
↓ 2 callersFunctiondownloadUsageLogsExport
( jobId: string )
src/actions/usage-logs.ts:424
↓ 2 callersMethodemitErrorRulesUpdated
* 发送 errorRulesUpdated 事件
src/lib/event-emitter.ts:31
↓ 2 callersMethodemitErrorTrace
( session: ProxySession, data: { error: unknown; errorMessage: string; statusCode: number; responseTex
src/app/v1/_lib/proxy/error-handler.ts:650
↓ 2 callersFunctionemitFinalNonStream
(input: NonStreamEmitInput)
src/app/v1/_lib/proxy/fake-streaming/emitters.ts:24
↓ 2 callersMethodemitSensitiveWordsUpdated
* 发送 sensitiveWordsUpdated 事件
src/lib/event-emitter.ts:38
↓ 2 callersFunctionemitUserCreateAudit
(user: UserCreateAuditSnapshot)
src/actions/users.ts:1276
↓ 2 callersFunctionenableKey
(c: Context)
src/app/api/v1/resources/keys/handlers.ts:175
↓ 2 callersFunctionencodeBase64Url
(value: string | Uint8Array)
src/lib/auth-admin-session-token.ts:32
↓ 2 callersFunctionencodeChunk
(delta: string)
tests/unit/proxy/response-handler-client-abort-drain.test.ts:356
↓ 2 callersFunctionendsWithSegments
(haystack: string[], needle: string[])
src/app/v1/_lib/url.ts:85
↓ 2 callersFunctionensureCloned
()
src/lib/gemini/provider-overrides.ts:67
↓ 2 callersMethodensureFlushTimer
()
src/repository/message-write-buffer.ts:271
↓ 2 callersFunctionensureMediaExample
( mediaType: string, media: Record<string, unknown>, isRequest: boolean )
src/app/api/v1/_root/document.ts:140
↓ 2 callersFunctionensurePriceTable
()
src/lib/price-sync/seed-initializer.ts:22
↓ 2 callersFunctionensureVisibleEndpointIds
( c: Context, endpointIds: number[] )
src/app/api/v1/resources/provider-endpoints/handlers.ts:416
↓ 2 callersFunctionescapeXml
(value: string)
src/lib/usage-logs/export/xlsx.ts:46
↓ 2 callersMethodevictIdleCachedAgents
( isWithinLimit: (reserved: number) => boolean, replacementCacheKey?: string )
src/lib/proxy-agent/agent-pool.ts:861
↓ 2 callersFunctionexerciseWithoutAuth
(method: HttpMethod, path: string)
tests/api/v1/openapi-auth-sweep.test.ts:38
↓ 2 callersFunctionexpectUniqueViolation
(query: Promise<unknown>)
tests/integration/provider-endpoint-index-and-repair.test.ts:105
↓ 2 callersFunctionextractAnthropicEffortInfo
( specialSettings: SpecialSetting[] | null | undefined )
src/lib/utils/anthropic-effort.ts:59
↓ 2 callersFunctionextractApiKeyFromHeaders
(headers: ApiCredentialHeaders)
src/lib/api/auth-header-extractor.ts:39
↓ 2 callersMethodextractCodexPromptCacheKey
* 从 Codex 响应中提取 prompt_cache_key 作为 Session ID * * Codex 响应中包含 prompt_cache_key 字段(UUID 格式),用于标识缓存上下文。 * 这个字段出现在 response.created、response.in
src/lib/session-manager.ts:2271
↓ 2 callersFunctionextractErrorContentForDetection
* 从错误对象中提取用于规则匹配的内容 * * 优先使用整个响应体(upstreamError.body),这样规则可以匹配响应中的任何内容 * 如果没有响应体,则使用错误消息
src/app/v1/_lib/proxy/errors.ts:565
↓ 2 callersFunctionextractJsonChunks
(text: string)
src/app/v1/_lib/proxy/actual-response-model.ts:195
↓ 2 callersMethodextractKeyFromAuthorization
(authHeader?: string)
src/app/v1/_lib/proxy/auth-guard.ts:317
↓ 2 callersFunctionextractKeys
(obj: Record<string, unknown>, prefix = "")
tests/unit/i18n/my-usage-keys.test.ts:9
↓ 2 callersFunctionextractTextContent
* Extract text content from various message content formats * Supports: * - Simple string: "hello" * - Array format: [{type: "text", text: "hello"}
src/app/v1/_lib/gemini/adapter.ts:56
↓ 2 callersFunctionf
(v: number)
src/lib/vacuum-filter/vacuum-filter.ts:129
↓ 2 callersFunctionfail
(error: Error)
src/lib/redis/pubsub.ts:106
↓ 2 callersFunctionfailIfUnsettled
(code, message, closeReason)
server.js:505
↓ 2 callersFunctionfetchLatestVersionFromVersionFile
()
src/app/api/version/route.ts:165
↓ 2 callersFunctionfetchProbeLogsByEndpointIdsIndividually
( endpointIds: number[], limit: number )
src/lib/provider-endpoints/probe-logs-batcher.ts:216
↓ 2 callersFunctionfetchRedirect
(path: string, cookie?: string)
tests/e2e/i18n-routing.test.ts:6
↓ 2 callersFunctionfetchStatistics
(timeRange: TimeRange)
src/app/[locale]/dashboard/_components/bento/dashboard-bento.tsx:64
↓ 2 callersFunctionfetchSystemSettings
()
src/actions/system-config.ts:23
↓ 2 callersFunctionfetchUnmaskedKey
(keyId: number)
src/app/[locale]/dashboard/_components/user/key-list.tsx:102
↓ 2 callersFunctionfetchUnmaskedKey
()
src/app/[locale]/dashboard/_components/user/key-row-item.tsx:222
↓ 2 callersFunctionfillNameAndSubmit
()
tests/unit/dashboard/add-key-form-self-service.test.tsx:74
↓ 2 callersMethodfilterInertResponsesChatCompletionChunks
( session: ProxySession, data: Uint8Array )
src/app/v1/_lib/proxy/response-fixer/index.ts:556
↓ 2 callersFunctionfilterPrivateParameters
* 过滤私有参数(下划线前缀) * * 目的:防止私有参数(下划线前缀)泄露到上游供应商导致 "Unsupported parameter" 错误 * * @param obj - 原始请求对象 * @returns 过滤后的请求对象
src/app/v1/_lib/proxy/forwarder.ts:492
↓ 2 callersFunctionfinalize
()
server.js:176
↓ 2 callersFunctionfindActiveProviderEndpointById
( endpointId: number )
src/repository/provider-endpoints.ts:282
↓ 2 callersFunctionfindAllManualPrices
()
src/repository/model-price.ts:305
↓ 2 callersFunctionfindAllProviderGroups
()
src/repository/provider-groups.ts:62
↓ 2 callersFunctionfindButtonByLabel
(container: HTMLElement, label: string)
tests/unit/dashboard-logs-fullscreen-overlay-ui.test.tsx:104
↓ 2 callersFunctionfindCustomRangeLeaderboard
( dateRange: DateRangeParams, userFilters?: UserLeaderboardFilters, includeModelStats?: boolean )
src/repository/leaderboard.ts:430
↓ 2 callersFunctionfindDashboardProviderEndpointsByVendorAndType
( vendorId: number, providerType: ProviderType )
src/repository/provider-endpoints.ts:817
↓ 2 callersFunctionfindEnabledProviderIdsByVendorAndType
( vendorId: number, providerType: ProviderType )
src/repository/provider-endpoints.ts:789
↓ 2 callersFunctionfindKeyCostEntriesInTimeRange
( keyId: number, startTime: Date, endTime: Date )
src/repository/statistics.ts:995
↓ 2 callersFunctionfindMonthlyLeaderboard
( userFilters?: UserLeaderboardFilters, includeModelStats?: boolean )
src/repository/leaderboard.ts:187
↓ 2 callersFunctionfindProviderCostEntriesInTimeRange
( providerId: number, startTime: Date, endTime: Date )
src/repository/statistics.ts:960
↓ 2 callersFunctionfindProviderEndpointProbeLogs
( endpointId: number, limit: number = 200, offset: number = 0 )
src/repository/provider-endpoints.ts:2206
↓ 2 callersFunctionfindProviderVendorById
(vendorId: number)
src/repository/provider-endpoints.ts:844
↓ 2 callersFunctionfindProviderVendorsByIds
(vendorIds: number[])
src/repository/provider-endpoints.ts:656
↓ 2 callersFunctionfindSuggestion
(label: string)
src/components/ui/__tests__/tag-input-dialog.test.tsx:111
↓ 2 callersFunctionfindWeeklyLeaderboard
( userFilters?: UserLeaderboardFilters, includeModelStats?: boolean )
src/repository/leaderboard.ts:205
↓ 2 callersFunctionfirstString
(value: string | string[] | undefined)
src/app/[locale]/dashboard/logs/_utils/logs-query.ts:17
↓ 2 callersFunctionfixDataLine
(line: Uint8Array)
src/app/v1/_lib/proxy/response-fixer/sse-fixer.ts:76
↓ 2 callersMethodfixMaybeDataJsonLine
( line: Uint8Array, jsonFixer: JsonFixer )
src/app/v1/_lib/proxy/response-fixer/index.ts:640
↓ 2 callersFunctionflatten
(obj, prefix = "")
scripts/audit-settings-placeholders.js:27
↓ 2 callersFunctionflattenLeafKeys
(record: Record<string, unknown>, prefix = "")
tests/unit/i18n/audit-log-actions-messages.test.ts:35
↓ 2 callersFunctionflattenLeafTypes
( obj: unknown, prefix = "", out: Record<string, string> = {} )
tests/unit/i18n/settings-split-guards.test.ts:74
↓ 2 callersFunctionflush
()
src/components/ui/__tests__/provider-group-tag-input.test.tsx:51
↓ 2 callersFunctionflush
()
src/repository/provider-endpoints.ts:2009
↓ 2 callersFunctionflush
()
src/app/v1/_lib/proxy/fake-streaming/response-validator.ts:316
↓ 2 callersFunctionflush
()
tests/unit/proxy/fake-streaming-response.test.ts:14
↓ 2 callersFunctionflushEvent
()
src/lib/utils/sse.ts:12
↓ 2 callersFunctionflushEvents
()
server.js:514
↓ 2 callersFunctionflushMicrotasks
()
tests/unit/auth/login-page-site-title.test.tsx:87
↓ 2 callersFunctionflushPromises
(rounds = 2)
tests/unit/lib/endpoint-circuit-breaker.test.ts:22
↓ 2 callersFunctionflushPromises
()
tests/unit/settings/prices/model-price-details-dialog.test.tsx:31
↓ 2 callersFunctionflushPromises
()
tests/unit/settings/prices/upload-price-dialog-cloud-model-count.test.tsx:43
↓ 2 callersFunctionflushPromises
()
tests/unit/dashboard/dashboard-home-layout.test.tsx:148
↓ 2 callersFunctionflushTicks
(times = 3)
tests/unit/settings/providers/model-redirect-editor.test.tsx:45
↓ 2 callersFunctionfmix32
(h: number)
src/lib/vacuum-filter/vacuum-filter.ts:199
↓ 2 callersFunctionformatBigNumber
(value: number, locale: string)
src/app/[locale]/dashboard/_components/ip-details/atoms.tsx:383
↓ 2 callersFunctionformatBucketTime
(isoString: string, bucketSizeMinutes: number, timeZone?: string)
src/app/[locale]/dashboard/availability/_components/provider/lane-chart.tsx:42
↓ 2 callersFunctionformatExpiry
(value: Date | null)
src/app/[locale]/my-usage/_components/expiration-info.tsx:36
↓ 2 callersFunctionformatExpiry
(expiresAt: string | null | undefined, locale: string)
src/app/[locale]/dashboard/_components/user/key-row-item.tsx:125
↓ 2 callersFunctionformatHeaders
( headers: Record<string, string> | null, preambleLines?: string[] )
src/app/[locale]/dashboard/sessions/[sessionId]/messages/_components/session-details-tabs.tsx:29
↓ 2 callersFunctionformatJson
(value: unknown)
src/app/[locale]/dashboard/audit-logs/_components/audit-log-detail-sheet.tsx:23
↓ 2 callersFunctionformatLatency
(ms: number | null)
src/app/[locale]/settings/providers/_components/endpoint-latency-sparkline.tsx:17
↓ 2 callersFunctionformatLatency
(ms: number | null)
src/app/[locale]/dashboard/availability/_components/endpoint/probe-terminal.tsx:31
↓ 2 callersFunctionformatMops
(opsPerSec: number)
tests/unit/vacuum-filter/vacuum-filter-has.bench.test.ts:66
↓ 2 callersFunctionformatNumber
(value: number)
src/lib/utils/token.ts:9
↓ 2 callersFunctionformatPerRequestPriceLabel
(value?: number)
src/app/[locale]/settings/prices/_components/price-list.tsx:281
↓ 2 callersFunctionformatPercentage
(value: number)
src/app/[locale]/dashboard/availability/_components/provider/lane-chart.tsx:62
↓ 2 callersFunctionformatRawSse
(text: string)
src/app/v1/_lib/proxy/fake-streaming/emitters.ts:381
↓ 2 callersFunctionformatResponseTime
(ms: number)
src/app/[locale]/dashboard/leaderboard/user/[userId]/_components/user-overview-cards.tsx:17
↓ 2 callersFunctionformatScalarPrice
(value?: number)
src/app/[locale]/settings/prices/_components/price-list.tsx:259
↓ 2 callersFunctionformatTtfb
(ms: number | null)
src/app/[locale]/status/_lib/format-ttfb.ts:1
↓ 2 callersFunctionformatValue
(value: unknown, t: (key: string) => string)
src/app/[locale]/settings/providers/_components/batch-edit/provider-batch-preview-step.tsx:173
↓ 2 callersFunctionformatValue
( value: unknown, t: ReturnType<typeof useTranslations<"settings.prices">> )
src/app/[locale]/settings/prices/_components/model-price-details-dialog.tsx:46
↓ 2 callersFunctionfreshSameContent
(s: string)
tests/unit/vacuum-filter/vacuum-filter-has.bench.test.ts:32
↓ 2 callersFunctiongenerateCacheHitRateAlertPayload
( options: GenerateCacheHitRateAlertPayloadOptions = {} )
src/lib/notification/tasks/cache-hit-rate-alert.ts:209
↓ 2 callersFunctiongenerateDailyLeaderboard
(topN: number)
src/lib/notification/tasks/daily-leaderboard.ts:11
← previousnext →2,401–2,500 of 6,623, ranked by callers