Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ding113/claude-code-hub
/ functions
Functions
6,623 in github.com/ding113/claude-code-hub
⨍
Functions
6,623
◇
Types & classes
1,237
↓ 7 callers
Function
normalizeProviderModelRedirectRules
( value: unknown )
src/lib/provider-model-redirects.ts:53
↓ 7 callers
Function
normalizeResponseOutput
( session: ProxySession, response: Response )
src/app/v1/_lib/proxy/response-output-normalizer.ts:146
↓ 7 callers
Function
normalizeRule
(rule: AllowedModelRule)
src/app/[locale]/settings/providers/_components/allowed-model-rule-editor.tsx:45
↓ 7 callers
Function
normalizeSql
(sqlObject: unknown)
tests/unit/lib/availability-service.test.ts:38
↓ 7 callers
Method
observe
()
src/components/ui/__tests__/map.test.tsx:446
↓ 7 callers
Function
parseContentEncoding
(header: string | null | undefined)
src/app/v1/_lib/proxy/request-body-codec.ts:99
↓ 7 callers
Function
parseIntParam
(value: string | string[] | undefined)
src/app/[locale]/dashboard/logs/_utils/logs-query.ts:22
↓ 7 callers
Function
parseProviderText
(text: string)
src/lib/utils/provider-text-parser.ts:119
↓ 7 callers
Function
parseSessionParams
(c: Context)
src/app/api/v1/resources/sessions/handlers.ts:176
↓ 7 callers
Function
payload
(anomalies: CacheHitRateAlertData["anomalies"])
tests/unit/lib/cache-hit-rate-alert/cooldown-dedup.test.ts:41
↓ 7 callers
Function
readErrorBody
(response: Response)
tests/unit/proxy/auth-guard-account-state.test.ts:77
↓ 7 callers
Function
redactMessages
(messages: unknown)
src/lib/utils/message-redaction.ts:460
↓ 7 callers
Function
redactSecret
(value: string | null | undefined)
src/lib/api/v1/_shared/redaction.ts:12
↓ 7 callers
Function
render
(node: ReactNode)
tests/unit/settings/status-page/public-status-settings-form.test.tsx:158
↓ 7 callers
Function
render
()
tests/unit/login/login-ui-redesign.test.tsx:57
↓ 7 callers
Function
renderCostTooltipWithLog
(overrides: Partial<UsageLogRow>)
src/app/[locale]/dashboard/logs/_components/virtualized-logs-table.test.tsx:171
↓ 7 callers
Function
renderWithProviders
(node: ReactNode)
tests/unit/dashboard/user-insights-page.test.tsx:80
↓ 7 callers
Function
restoreProvider
(id: number)
src/repository/provider.ts:1055
↓ 7 callers
Function
safeParseJson
(raw: string | null)
src/lib/public-status/config-snapshot.ts:138
↓ 7 callers
Function
searchUsersForFilter
( searchTerm?: string, limit?: number )
src/actions/users.ts:577
↓ 7 callers
Function
selectLedgerRowByRequestId
(requestId: number)
tests/integration/usage-ledger.test.ts:94
↓ 7 callers
Method
setHighConcurrencyModeEnabled
(enabled: boolean)
src/app/v1/_lib/proxy/session.ts:400
↓ 7 callers
Method
setMessageContext
(context: MessageContext | null)
src/app/v1/_lib/proxy/session.ts:452
↓ 7 callers
Method
setOriginalModel
* 设置原始模型(在重定向前调用) * 只能设置一次,避免多次重定向覆盖 * 同时保存原始 URL 路径(用于 Gemini 重置)
src/app/v1/_lib/proxy/session.ts:788
↓ 7 callers
Method
setSessionId
* 设置 session ID
src/app/v1/_lib/proxy/session.ts:489
↓ 7 callers
Function
setSessionMode
(mode: "legacy" | "dual" | "opaque")
tests/security/auth-dual-read.test.ts:59
↓ 7 callers
Function
sha256HexNode
(value: string)
tests/unit/security/api-key-auth-cache-redis-key.test.ts:73
↓ 7 callers
Function
shouldWarnQuotaLeaseCapZero
(rawValue: string)
src/lib/utils/validation/quota-lease-warnings.ts:25
↓ 7 callers
Function
shouldWarnQuotaLeasePercentZero
(value: number)
src/lib/utils/validation/quota-lease-warnings.ts:18
↓ 7 callers
Function
splitSetCookieHeader
(combined: string)
tests/e2e/_helpers/auth.ts:5
↓ 7 callers
Method
startBackgroundReload
(options: ReloadOptions)
src/lib/security/api-key-vacuum-filter.ts:251
↓ 7 callers
Function
stringifyCustomHeadersForTextarea
( value: Record<string, string> | null | undefined )
src/lib/custom-headers.ts:88
↓ 7 callers
Function
sumProviderTotalCost
( providerId: number, resetAt?: Date | null )
src/repository/statistics.ts:677
↓ 7 callers
Function
toggleColumn
( userId: number, tableId: string, column: LogsTableColumn )
src/lib/column-visibility.ts:125
↓ 7 callers
Method
transformResponse
* Convert Gemini response to OpenAI-compatible chunks or full response * Handles response wrapping: some providers wrap response in {response: {...
src/app/v1/_lib/gemini/adapter.ts:189
↓ 7 callers
Function
updateGroup
(index: number, patch: Partial<PublicStatusSettingsFormGroup>)
src/app/[locale]/settings/status-page/_components/public-status-settings-form.tsx:158
↓ 7 callers
Function
updateRequestFilterAction
( id: number, updates: Partial<{ name: string; description: string | null; scope: RequestFilte
src/actions/request-filters.ts:272
↓ 7 callers
Function
vendor
(overrides: Record<string, unknown> = {})
tests/api/v1/provider-endpoints/provider-endpoints.test.ts:72
↓ 7 callers
Function
verifyInternalRequest
(headers: Headers | Record<string, string>)
src/app/v1/_lib/responses-ws/internal-secret.ts:106
↓ 7 callers
Function
withTimeout
(promise: Promise<T>, timeoutMs: number, message: string)
src/app/v1/_lib/responses-ws/__tests__/upstream-adapter.test.ts:75
↓ 7 callers
Function
withTimeout
(promise: Promise<T>, timeoutMs: number, message: string)
tests/unit/server-ws-close-handshake.test.ts:64
↓ 7 callers
Function
writeJson
(p: string, data: unknown)
tests/unit/i18n/sync-settings-keys-script.test.ts:47
↓ 6 callers
Function
_isRunning
()
src/lib/shared-timer.ts:71
↓ 6 callers
Function
actionError
(c: Context, result: Extract<ActionResult<unknown>, { ok: false }>)
src/app/api/v1/resources/sensitive-words/handlers.ts:95
↓ 6 callers
Function
actionJson
(c: Context, result: ActionResult<T>)
src/app/api/v1/resources/users/handlers.ts:313
↓ 6 callers
Function
actionJson
(c: Context, result: ActionResult<T>)
src/app/api/v1/resources/me/handlers.ts:136
↓ 6 callers
Function
actionJson
(c: Context, result: ActionResult<T>)
src/app/api/v1/resources/dashboard/handlers.ts:113
↓ 6 callers
Function
aggregateSessionStats
(sessionId: string)
src/repository/message.ts:917
↓ 6 callers
Method
altIndex
(index: number, tag: number)
src/lib/vacuum-filter/vacuum-filter.ts:526
↓ 6 callers
Function
applyCodexProviderOverridesWithAudit
( provider: CodexProviderOverrideConfig, request: Record<string, unknown> )
src/lib/codex/provider-overrides.ts:112
↓ 6 callers
Function
arrange
(updatedRows: BatchUpdateRow[] = [])
tests/unit/repository/provider-batch-update-advanced-fields.test.ts:39
↓ 6 callers
Function
arrangeUrlEditRedScenario
(input: { oldUrl: string; newUrl: string; previousVendorId?: number; nextVendorId?: number; })
tests/unit/repository/provider-endpoint-sync-on-edit.test.ts:91
↓ 6 callers
Function
asQuery
(value: unknown)
src/lib/api-client/v1/actions/rate-limit-stats.ts:21
↓ 6 callers
Function
backfillUsageLedger
()
src/lib/ledger-backfill/service.ts:14
↓ 6 callers
Function
batchGetEndpointCircuitInfo
(input: unknown)
src/actions/provider-endpoints.ts:930
↓ 6 callers
Function
buildAuthResult
(keyString: string, userId = 1)
tests/security/auth-dual-read.test.ts:125
↓ 6 callers
Function
buildBase64FromHex
把 hex 字符串构造成 protobuf payload 的 base64。
tests/unit/proxy/thinking-signature-model.test.ts:15
↓ 6 callers
Function
buildCacheHitRateAlertMessage
( data: CacheHitRateAlertData, timezone?: string )
src/lib/webhook/templates/cache-hit-rate-alert.ts:53
↓ 6 callers
Function
buildDefaultHiddenUsageLogEndpointCondition
( column: SQLWrapper, explicitEndpoint: string | null | undefined )
src/repository/_shared/usage-log-filters.ts:48
↓ 6 callers
Function
buildFakeStreamingResponse
(input: FakeStreamingRunInput)
src/app/v1/_lib/proxy/fake-streaming/runner.ts:28
↓ 6 callers
Function
buildSnapshot
(overrides: Partial<Record<string, unknown>> = {})
tests/unit/actions/providers-undo-store.test.ts:29
↓ 6 callers
Function
buildStep
( stepName: DispatchSimulatorStepName, stepIndex: number, inputProviders: Provider[], outputProviders:
src/actions/dispatch-simulator.ts:87
↓ 6 callers
Function
callApi
( module: string, action: string, body: Record<string, unknown> = {}, options: { authToken?: string }
tests/api/api-endpoints.test.ts:27
↓ 6 callers
Function
callFreshActionsRoute
( pathname: string, method: "GET" | "POST" = "POST" )
tests/unit/api/actions/legacy-deprecation.test.ts:14
↓ 6 callers
Function
callProviderTest
( c: Context, schema: | typeof ProviderProxyTestSchema | typeof ProviderApiTestSchema | typeof
src/app/api/v1/resources/providers/handlers.ts:785
↓ 6 callers
Function
checkExceed
( keyVal: number | null, userVal: number | null | undefined, errKey: string )
src/actions/keys.ts:1634
↓ 6 callers
Function
clearConfigCache
(providerId: number)
src/lib/circuit-breaker.ts:960
↓ 6 callers
Function
clearNextWorkHints
()
src/lib/provider-endpoints/probe-scheduler.ts:156
↓ 6 callers
Function
clearUsageCache
(userId?: number)
src/lib/dashboard/user-limit-usage-cache.ts:23
↓ 6 callers
Function
click
(el: Element)
src/components/ui/__tests__/code-display.test.tsx:40
↓ 6 callers
Function
codexProvider
(id = 1)
src/app/v1/_lib/responses-ws/__tests__/eligibility.test.ts:41
↓ 6 callers
Function
combineAbortSignals
(signals: AbortSignal[])
src/app/v1/_lib/proxy/combine-abort-signals.ts:18
↓ 6 callers
Function
countActiveEndpoints
(input: { vendorId: number; providerType: "claude"; url: string; })
tests/integration/provider-endpoint-index-and-repair.test.ts:59
↓ 6 callers
Function
createBudgetLease
(params: BudgetLease)
src/lib/rate-limit/lease.ts:48
↓ 6 callers
Function
createContext
(method = "GET")
tests/unit/api/v1/authz-policy.test.ts:4
↓ 6 callers
Function
createImageMetadata
()
tests/unit/proxy/openai-image-forwarder-constraints.test.ts:57
↓ 6 callers
Function
createMockSession
(overrides: Partial<ProxySession> = {})
tests/unit/proxy/warmup-guard.test.ts:51
↓ 6 callers
Function
createMockSession
(requestLog: string)
tests/unit/proxy/build-request-details-redaction.test.ts:44
↓ 6 callers
Function
createNonStreamResponse
(usage: { input_tokens: number; output_tokens: number })
tests/unit/proxy/response-handler-lease-decrement.test.ts:255
↓ 6 callers
Function
createOpenAIProvider
()
tests/unit/proxy/proxy-forwarder.test.ts:65
↓ 6 callers
Function
createOverviewData
()
tests/unit/redis/overview-cache.test.ts:42
↓ 6 callers
Function
createPickSession
(originalFormat: string, providers: Provider[], originalModel: string)
tests/unit/proxy/provider-selector-cross-type-model.test.ts:350
↓ 6 callers
Function
createProvider
( id: number, providerType: string, overrides: Partial<Provider> = {} )
tests/unit/proxy/provider-selector-resource-endpoints.test.ts:27
↓ 6 callers
Function
createProvider
(overrides: Partial<Provider> = {})
tests/unit/proxy/response-handler-gemini-stream-passthrough-timeouts.test.ts:98
↓ 6 callers
Function
createRejectedThenableQuery
(error: unknown)
tests/unit/repository/system-config-update-missing-columns.test.ts:20
↓ 6 callers
Function
createResponseSession
()
tests/unit/proxy/response-output-normalizer.test.ts:16
↓ 6 callers
Function
createSession
()
tests/unit/proxy/error-handler-verbose-provider-error-details.test.ts:36
↓ 6 callers
Function
createSession
(opts?: { sessionId?: string | null })
tests/unit/proxy/response-handler-endpoint-circuit-isolation.test.ts:124
↓ 6 callers
Function
createSession
()
tests/unit/proxy/proxy-forwarder-fake-200-html.test.ts:151
↓ 6 callers
Function
createSessionForHeaders
(headers: Headers)
tests/unit/proxy/session.test.ts:444
↓ 6 callers
Function
createSignedAdminAuthToken
()
src/lib/auth.ts:338
↓ 6 callers
Function
createSnapshots
()
src/app/[locale]/dashboard/sessions/[sessionId]/messages/_components/session-messages-client-actions.test.tsx:121
↓ 6 callers
Function
createTestKey
(params: { userId: number; key: string; name: string; canLoginWebUi?: boolean; })
tests/integration/my-usage-imported-ledger.test.ts:98
↓ 6 callers
Function
createThenableQuery
( result: T, opts?: { whereArgs?: unknown[]; groupByArgs?: unknown[]; orderByArgs?: unknown[];
tests/unit/repository/usage-logs-sessionid-suggestions.test.ts:36
↓ 6 callers
Method
delete
(key: string)
src/lib/redis/redis-kv-store.ts:124
↓ 6 callers
Function
deriveLatestModelState
( model: Pick<PublicStatusModelSnapshot, "timeline" | "latestState"> )
src/app/[locale]/status/_lib/derive-display-state.ts:28
↓ 6 callers
Function
drainAsyncTasks
()
tests/unit/proxy/response-handler-endpoint-circuit-isolation.test.ts:309
↓ 6 callers
Function
emitErrorRulesUpdated
()
src/lib/emit-event.ts:11
↓ 6 callers
Function
emitProxyLangfuseTrace
( session: ProxySession, data: EmitProxyLangfuseTraceData )
src/lib/langfuse/emit-proxy-trace.ts:24
↓ 6 callers
Function
errorEvent
(code: string)
tests/e2e/responses-ws-codex-cli-transport.test.ts:694
← previous
next →
901–1,000 of 6,623, ranked by callers