MCPcopy Create free account

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

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

↓ 4 callersFunctionmockJsonResponse
(payload: unknown, ok = true)
tests/unit/auth/login-page-site-title.test.tsx:54
↓ 4 callersFunctionnextKey
(tag: string)
tests/integration/user-5h-reset-flow.test.ts:41
↓ 4 callersFunctionnormalize
(values: string[])
src/app/[locale]/dashboard/users/users-page-client.tsx:340
↓ 4 callersFunctionnormalizeAnthropicEffort
(value: unknown)
src/lib/utils/anthropic-effort.ts:3
↓ 4 callersFunctionnormalizeBucketDate
(value: TimeBucketValue)
src/repository/statistics.ts:140
↓ 4 callersFunctionnormalizeConcurrentSessionLimit
(value: number | null | undefined)
src/lib/rate-limit/concurrent-session-limit.ts:7
↓ 4 callersFunctionnormalizeDate
(value: unknown)
src/lib/api-client/v1/actions/users.ts:87
↓ 4 callersFunctionnormalizeFloatPatch
(value: number, min: number, max: number)
src/app/[locale]/settings/notifications/_lib/hooks.ts:152
↓ 4 callersFunctionnormalizeLegacyCursor
(value: unknown)
src/lib/api-client/v1/actions/_compat.ts:61
↓ 4 callersFunctionnormalizeNumericPreference
(value: string | null | undefined)
src/lib/anthropic/provider-overrides.ts:25
↓ 4 callersFunctionnormalizeProbeLogs
(value: unknown)
src/lib/provider-endpoints/probe-logs-batcher.ts:33
↓ 4 callersFunctionnormalizeProviderRuntimeFields
( provider: T )
src/repository/provider.ts:35
↓ 4 callersFunctionnormalizePublicGroupSlug
(groupName: string, publicGroupSlug?: string)
src/lib/public-status/config.ts:200
↓ 4 callersFunctionnormalizePublicStatusModels
( publicModels: PublicStatusModelConfig[] )
src/app/[locale]/settings/status-page/_components/public-status-models.ts:3
↓ 4 callersFunctionnormalizeResponseOutputPayload
( payload: unknown )
src/app/v1/_lib/proxy/response-output-normalizer.ts:118
↓ 4 callersFunctionnormalizeSiteTitle
(value: unknown)
src/lib/site-title.ts:3
↓ 4 callersFunctionnormalizeText
(value: string | null | undefined)
src/lib/utils/pricing-resolution.ts:92
↓ 4 callersFunctionnormalizeUsageWithSwap
* Apply swap + resolve session fallback cache_ttl + normalize cache buckets. * Returns a new UsageMetrics object with consistent bucket routing. * T
src/app/v1/_lib/proxy/response-handler.ts:3632
↓ 4 callersFunctionnotFound
(c: Context, errorCode: string, detail: string)
src/app/api/v1/resources/provider-endpoints/handlers.ts:454
↓ 4 callersFunctionnowMs
()
src/app/v1/_lib/proxy/response-fixer/index.ts:33
↓ 4 callersFunctionnowMs
()
tests/unit/actions/providers.test.ts:83
↓ 4 callersFunctionnsPerOp
(elapsedNs: bigint, ops: number)
tests/unit/vacuum-filter/vacuum-filter-has.bench.test.ts:44
↓ 4 callersFunctionnumberCell
(ref: string, value: string | null, style: number)
src/lib/usage-logs/export/xlsx.ts:114
↓ 4 callersFunctionoptionalPreprocessed
( preprocess: (value: unknown) => unknown, schema: T )
src/lib/config/env.schema.ts:12
↓ 4 callersFunctionparseClockString
(clockStr: string)
src/app/[locale]/dashboard/logs/_utils/time-range.ts:10
↓ 4 callersFunctionparseCsvList
(searchParams: URLSearchParams, keys: string[])
src/lib/public-status/public-api-contract.ts:183
↓ 4 callersFunctionparseDate
(dateStr: string)
src/app/[locale]/dashboard/logs/_components/logs-date-range-picker.tsx:34
↓ 4 callersFunctionparseDate
(dateStr: string)
src/app/[locale]/dashboard/leaderboard/_components/date-range-picker.tsx:31
↓ 4 callersFunctionparseDateRangeInServerTimezone
* Parse date range strings to timestamps using server timezone (TZ config). * Returns startTime as midnight and endTime as next day midnight (exclusi
src/actions/my-usage.ts:115
↓ 4 callersFunctionparseHtml
(html: string)
src/app/[locale]/dashboard/logs/_components/provider-chain-popover.test.tsx:128
↓ 4 callersFunctionparseJsonBody
( request: Request, schema: JsonBodySchema<T> )
src/lib/api/v1/_shared/request-body.ts:19
↓ 4 callersFunctionparseOpenAIImageMultipartMetadata
( request: Request, pathname: string, contentType: string | null )
src/app/v1/_lib/proxy/openai-image-compat.ts:782
↓ 4 callersFunctionparseOptionalNumber
(value: unknown)
src/repository/_shared/transformers.ts:18
↓ 4 callersFunctionparseSSEDataForDisplay
(sseText: string)
src/lib/utils/sse.ts:93
↓ 4 callersFunctionparseServiceTierFromResponseText
(responseText: string)
src/app/v1/_lib/proxy/response-handler.ts:205
↓ 4 callersFunctionparseUserAgent
(ua: string | null | undefined)
src/lib/ua-parser.ts:43
↓ 4 callersFunctionparseUserParams
(c: Context)
src/app/api/v1/resources/admin-user-insights/handlers.ts:90
↓ 4 callersFunctionplus
(ms: number)
tests/unit/repository/statistics-quota-costs-all-time.test.ts:18
↓ 4 callersFunctionprojectionToPayload
(input: { projection: ProjectionReadResult; rebuildState?: PublicStatusPayload["rebuildState"]; })
src/lib/public-status/read-store.ts:270
↓ 4 callersFunctionproperAltRange
* 选择合适的 Alternate Range(power-of-two),移植自作者参考实现 proper_alt_range。 * * 直觉: * - AR 越小:局部性越好,但高负载下更容易出现“局部拥堵”导致插入失败 * - AR 越大:更容易找到空位,但局部性变差 * - Vac
src/lib/vacuum-filter/vacuum-filter.ts:165
↓ 4 callersFunctionqueryDatabase
* 查询数据库(根据周期)
src/lib/redis/leaderboard-cache.ts:120
↓ 4 callersFunctionqueryDatabase
( timeRange: TimeRange, mode: "users" | "keys" | "mixed", userId?: number )
src/lib/redis/statistics-cache.ts:26
↓ 4 callersFunctionrandomBytes
(size: number)
src/lib/vacuum-filter/random.ts:10
↓ 4 callersFunctionreadNumber
(...keys: string[])
src/app/[locale]/settings/providers/_components/forms/api-test-button.tsx:62
↓ 4 callersFunctionreadQuery
(c: Context, keys: string[])
src/app/api/v1/resources/admin-user-insights/handlers.ts:96
↓ 4 callersFunctionrectifyAnthropicRequestMessage
( message: Record<string, unknown> )
src/app/v1/_lib/proxy/thinking-signature-rectifier.ts:101
↓ 4 callersFunctionredactJsonString
(jsonString: string)
src/lib/utils/message-redaction.ts:443
↓ 4 callersFunctionredactWebhookField
(value: string | null | undefined)
src/lib/api/legacy-action-sanitizers.ts:27
↓ 4 callersMethodremoveLayer
(id: string)
src/components/ui/__tests__/map.test.tsx:339
↓ 4 callersFunctionremovePresetValues
(values: string[], presetValue: string)
src/lib/client-restrictions/client-presets.ts:81
↓ 4 callersFunctionremoveProvider
( providerId: number )
src/actions/providers.ts:990
↓ 4 callersFunctionremoveTrailingComma
(bytes: number[])
src/app/v1/_lib/proxy/response-fixer/json-fixer.ts:17
↓ 4 callersFunctionrender
(node: ReactNode)
src/components/ui/__tests__/command-tag-highlight.test.tsx:12
↓ 4 callersFunctionrender
(node: ReactNode)
tests/unit/settings/providers/provider-group-tab.test.tsx:96
↓ 4 callersFunctionrender
(ui: React.ReactElement)
tests/unit/settings/providers/provider-undo-toast.test.tsx:228
↓ 4 callersFunctionrender
(node: ReactNode)
tests/unit/settings/providers/model-redirect-editor.test.tsx:28
↓ 4 callersFunctionrender
(node: ReactNode)
tests/unit/settings/prices/price-list-ui-requirements.test.tsx:28
↓ 4 callersFunctionrender
(node: ReactNode)
tests/unit/settings/prices/model-price-drawer-prefill-and-submit-ui.test.tsx:27
↓ 4 callersFunctionrender
()
tests/unit/login/login-footer-system-name.test.tsx:77
↓ 4 callersFunctionrender
(node: ReactNode)
tests/unit/dashboard/add-key-form-balance-page-toggle.test.tsx:56
↓ 4 callersFunctionrenderComponent
(providers: ProviderAvailabilitySummary[])
tests/unit/dashboard/availability/latency-chart.test.tsx:110
↓ 4 callersFunctionrenderComponent
(logs: ProviderEndpointProbeLog[])
tests/unit/dashboard/availability/latency-curve.test.tsx:115
↓ 4 callersFunctionrenderEditor
(allowed: string[], blocked: string[])
tests/unit/components/form/client-restrictions-editor.test.tsx:65
↓ 4 callersFunctionrenderForm
(settings: Pick<SystemSettings, keyof typeof baseSettings> = baseSettings)
tests/unit/settings/system-settings-form-ip-extraction.test.tsx:136
↓ 4 callersFunctionrenderStepIndicator
()
src/app/[locale]/dashboard/_components/webhook-migration-dialog.tsx:223
↓ 4 callersFunctionrenderSubModelLabel
(model: string)
src/app/[locale]/dashboard/leaderboard/_components/leaderboard-view.tsx:251
↓ 4 callersFunctionrequireKeyWriteSession
(c: Context)
src/app/api/v1/resources/keys/handlers.ts:129
↓ 4 callersFunctionresetDraft
()
src/app/[locale]/settings/providers/_components/inline-edit-popover.tsx:71
↓ 4 callersFunctionresolveClaudeMetadataUserIdFormat
( userAgent?: string | null )
src/lib/claude-code/metadata-user-id.ts:52
↓ 4 callersFunctionresolveCodexPriorityBillingDecision
( session: ProxySession, actualServiceTier: string | null, options?: { provider?: Provider | null;
src/app/v1/_lib/proxy/response-handler.ts:254
↓ 4 callersMethodresolvePublicStatusManifestState
( manifest: { freshUntil: string; lastCompleteGeneration: string | null; rebuildState: "
tests/unit/public-status/redis-contract.test.ts:15
↓ 4 callersFunctionresponseEvents
(responseId: string, includeOutput: boolean)
tests/e2e/responses-ws-codex-cli-transport.test.ts:113
↓ 4 callersFunctionrestoreEnvVar
(name: keyof EnvSnapshot, value: string | undefined)
tests/e2e/responses-ws-codex-cli-transport.test.ts:615
↓ 4 callersMethodrotate
(oldSessionId: string)
src/lib/auth-session-store/index.ts:18
↓ 4 callersFunctionrowXml
(rowNumber: number, cells: string[])
src/lib/usage-logs/export/xlsx.ts:148
↓ 4 callersFunctionrunCchHelper
(scriptBody: string)
tests/unit/k8s-cch-update-flow.test.ts:6
↓ 4 callersFunctionrunDeployHelper
(scriptBody: string)
tests/unit/k8s-deploy-shell-helpers.test.ts:6
↓ 4 callersFunctionrunK3sUpdateHarness
(options: { k3sBody: string; kubectlBody?: string; tail?: string })
tests/unit/k8s-cch-update-flow.test.ts:24
↓ 4 callersFunctionsafeClose
()
src/app/v1/_lib/proxy/fake-streaming/runner.ts:51
↓ 4 callersFunctionsanitizeErrorTextForDetail
(text: string)
src/lib/utils/upstream-error-detection.ts:239
↓ 4 callersFunctionsanitizeLegacyWebhookTargetResponse
( target: T )
src/lib/api/legacy-action-sanitizers.ts:87
↓ 4 callersFunctionsanitizeProviderEndpointData
(value: T)
src/app/api/v1/resources/provider-endpoints/handlers.ts:485
↓ 4 callersFunctionsaveProviderCircuitConfig
( providerId: number, config: CircuitBreakerConfig )
src/lib/redis/circuit-breaker-config.ts:105
↓ 4 callersFunctionscanStream
* 扫描流式文本(兼容 SSE 和 NDJSON),对每个可解析的 JSON 对象调用 reader, * 返回第一个非空结果。遇到 `[DONE]` / 空行 / malformed / 未命中的事件一律忽略。
src/app/v1/_lib/proxy/actual-response-model.ts:181
↓ 4 callersFunctionschedulePublicStatusRebuild
(input: { intervalMinutes: number; rangeHours: number; reason: string; redis?: RedisHintWriter | null;
src/lib/public-status/rebuild-hints.ts:39
↓ 4 callersFunctionselectTopPriority
(providers: Provider[], userGroup?: string | null)
tests/unit/proxy/provider-selector-group-priority.test.ts:134
↓ 4 callersFunctionserializeDates
(value: unknown)
src/lib/api/v1/_shared/serialization.ts:8
↓ 4 callersFunctionserializeOpenAIImageMultipartRequest
(metadata: OpenAIImageRequestMetadata)
src/app/v1/_lib/proxy/openai-image-compat.ts:956
↓ 4 callersFunctionsessionBillingInputs
( session: ProxySession, provider: Provider, priorityServiceTierApplied: boolean )
src/app/v1/_lib/proxy/response-handler.ts:4278
↓ 4 callersFunctionsetAuthCookie
(keyString: string)
src/lib/auth.ts:266
↓ 4 callersMethodsetContext1mApplied
(applied: boolean)
src/app/v1/_lib/proxy/session.ts:379
↓ 4 callersFunctionsetEnv
(values: Record<string, string | undefined>)
tests/unit/security/api-key-vacuum-filter-reloading.test.ts:3
↓ 4 callersFunctionsetInputValue
(input: HTMLInputElement, value: string)
tests/unit/login/login-loading-state.test.tsx:66
↓ 4 callersMethodsetOffset
()
src/components/ui/__tests__/map.test.tsx:142
↓ 4 callersFunctionsetupDefaultMocks
(costResetAt: Date | null = null)
tests/unit/actions/key-quota-cost-reset.test.ts:116
↓ 4 callersFunctionsha256Hex
(value: string)
src/lib/security/api-key-auth-cache.ts:56
↓ 4 callersFunctionsharedResolve
(opts?: { includeMessages?: boolean })
tests/vitest.base.ts:12
↓ 4 callersFunctionshouldEnforceStrictEndpointPoolPolicy
( policy: Pick<EndpointPolicy, "endpointPoolStrictness"> )
src/app/v1/_lib/proxy/endpoint-policy.ts:69
↓ 4 callersFunctionshouldWarnQuotaDbRefreshIntervalTooHigh
(value: number)
src/lib/utils/validation/quota-lease-warnings.ts:11
↓ 4 callersFunctionshutdownLangfuse
()
src/lib/langfuse/index.ts:112
← previousnext →1,601–1,700 of 6,623, ranked by callers