MCPcopy Create free account

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

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

↓ 1 callersFunctionparseProviderIdsQueryParam
(value: string)
src/app/api/availability/route.ts:84
↓ 1 callersFunctionparseRebuildHintKey
( key: string )
src/lib/public-status/scheduler.ts:28
↓ 1 callersFunctionparseRequestBody
(c: Context)
src/app/v1/_lib/proxy/session.ts:1169
↓ 1 callersFunctionparseResponse
( providerType: ProviderType, body: string, contentType?: string )
src/lib/provider-testing/parsers/index.ts:49
↓ 1 callersFunctionparseRuntimeImportSpecifiers
(source: string)
tests/unit/frontend/no-client-actions-import.test.ts:131
↓ 1 callersFunctionparseSSEText
* 解析 SSE 文本格式的流式响应
src/actions/providers.ts:3508
↓ 1 callersFunctionparseSearchQuery
( rawValue: string | null, issues: PublicStatusValidationIssue[] )
src/lib/public-status/public-api-contract.ts:266
↓ 1 callersFunctionparseSessionData
(raw: string)
src/lib/auth-session-store/redis-session-store.ts:51
↓ 1 callersFunctionparseSessionDetailRequestMeta
(value: string)
src/lib/session-manager.ts:146
↓ 1 callersFunctionparseSessionDetailResponseMeta
(value: string)
src/lib/session-manager.ts:165
↓ 1 callersFunctionparseSignedAdminSessionPayload
(raw: string)
src/lib/auth-admin-session-token.ts:84
↓ 1 callersFunctionparseStreamResponse
* 解析流式响应(从 Response 对象读取)
src/actions/providers.ts:3605
↓ 1 callersFunctionparseTemplateJson
( value: string | null | undefined, t: TranslateFn )
src/app/[locale]/settings/notifications/_components/webhook-target-dialog.tsx:72
↓ 1 callersFunctionparseWsPayload
(raw: RawData)
tests/e2e/responses-ws-codex-cli-transport.test.ts:663
↓ 1 callersFunctionparseYmdToEndOfDay
(dateStr: string)
src/app/[locale]/dashboard/_components/user/forms/user-edit-section.tsx:142
↓ 1 callersFunctionpathToCallable
(path: string)
tests/api/v1/openapi-tier-sweep.test.ts:34
↓ 1 callersFunctionpathToCallable
(path: string)
tests/api/v1/openapi-auth-sweep.test.ts:31
↓ 1 callersFunctionpeekDeferredStreamingFinalization
( session: ProxySession )
src/app/v1/_lib/proxy/stream-finalization.ts:56
↓ 1 callersFunctionpeekPublicStatusRequestSeed
(id: number)
src/repository/message.ts:56
↓ 1 callersFunctionpickBaseline
( kind: CacheHitRateAlertMetricKind, key: string, maps: Array<{ source: Exclude<CacheHitRateAlertBas
src/lib/cache-hit-rate-alert/decision.ts:142
↓ 1 callersFunctionpickEditableFieldExpectations
(payload: { url?: string; label?: string | null; sortOrder?: number; isEnabled?: boolean; })
src/repository/provider-endpoints.ts:239
↓ 1 callersFunctionpickFreePort
()
tests/unit/server-ws-close-handshake.test.ts:105
↓ 1 callersFunctionpickFromChain
(entries: string[], pick: XffPick | undefined)
src/lib/ip/extract-client-ip.ts:46
↓ 1 callersFunctionpickKeys
(source: SettingsSelection, keys: readonly string[])
src/repository/system-config.ts:356
↓ 1 callersMethodpickRandomProviderWithExclusion
* 公开方法:选择供应商(支持排除列表,用于重试场景)
src/app/v1/_lib/proxy/provider-selector.ts:452
↓ 1 callersFunctionpickSample
( metric: CacheHitRateAlertMetric, settings: CacheHitRateAlertDecisionSettings )
src/lib/cache-hit-rate-alert/decision.ts:105
↓ 1 callersFunctionpillColor
(state: DisplayState)
src/app/[locale]/status/_components/status-hero.tsx:20
↓ 1 callersFunctionpopulateSessionKeyBindings
( redis: Redis, sessionMap: Map<string, SessionBinding> )
scripts/clear-session-bindings.ts:491
↓ 1 callersFunctionpreserveRedactedProviderUpdateFields
( input: T, existing: ProviderDisplay )
src/app/api/v1/resources/providers/handlers.ts:675
↓ 1 callersFunctionpreserveRedactedWebhookTargetUpdateFields
( input: WebhookTargetUpdateInput, existing: WebhookTarget )
src/app/api/v1/resources/webhook-targets/handlers.ts:161
↓ 1 callersFunctionpreviewProxyUrls
(baseUrl: string, providerType?: string)
src/app/v1/_lib/url.ts:275
↓ 1 callersFunctionprintUsage
()
scripts/clear-session-bindings.ts:119
↓ 1 callersFunctionprobeEndpointTcp
(rawUrl: string, timeoutMs: number)
src/lib/provider-endpoints/probe.ts:86
↓ 1 callersFunctionprobeLogsToSparkPoints
(logs: ProbeLog[])
src/app/[locale]/settings/providers/_components/endpoint-latency-sparkline.tsx:42
↓ 1 callersFunctionprobeProviderEndpoint
(input: unknown)
src/actions/provider-endpoints.ts:667
↓ 1 callersFunctionproblemTypeFor
(errorCode: string)
src/lib/api/v1/_shared/error-envelope.ts:36
↓ 1 callersFunctionprocessFrame
(raw)
server.js:221
↓ 1 callersMethodprocessNonStream
( session: ProxySession, response: Response, config: ResponseFixerConfig )
src/app/v1/_lib/proxy/response-fixer/index.ts:279
↓ 1 callersMethodprocessStream
( session: ProxySession, response: Response, config: ResponseFixerConfig )
src/app/v1/_lib/proxy/response-fixer/index.ts:344
↓ 1 callersFunctionprunePersistentSessions
()
src/app/v1/_lib/responses-ws/upstream-adapter.ts:257
↓ 1 callersFunctionpublishCurrentPublicStatusConfigPointers
(input: { configVersion: string; redis?: RedisWriter | null; })
src/lib/public-status/config-snapshot.ts:298
↓ 1 callersFunctionpublishInternalPublicStatusConfigSnapshot
(input: { snapshot: InternalPublicStatusConfigSnapshot; redis?: RedisWriter | null; setCurrentPointer?:
src/lib/public-status/config-snapshot.ts:271
↓ 1 callersMethodpublishInternalPublicStatusConfigSnapshot
(input: { snapshot: { configVersion: string; generatedAt: string; siteTitle: string;
tests/unit/public-status/config-snapshot.test.ts:74
↓ 1 callersFunctionpublishPublicStatusConfigSnapshot
(input: { reason: string; snapshot?: PublicStatusConfigSnapshot; redis?: RedisWriter | null; setCurren
src/lib/public-status/config-snapshot.ts:214
↓ 1 callersMethodpublishPublicStatusConfigSnapshot
(input: { reason: string; snapshot?: { configVersion: string; generatedAt: string; s
tests/unit/public-status/config-snapshot.test.ts:57
↓ 1 callersFunctionpublishPublicStatusProjection
(input: { redis: RedisHintWriter; configVersion: string; intervalMinutes: number; rangeHours: number;
src/lib/public-status/rebuild-worker.ts:109
↓ 1 callersFunctionpurgeSoftDeleted
* Purge soft-deleted records (deleted_at IS NOT NULL) in batches, * scoped to the same cleanup conditions to avoid deleting beyond the user's intent.
src/lib/log-cleanup/service.ts:247
↓ 1 callersMethodqueryDbUsage
* Query database for usage in a time range
src/lib/rate-limit/lease-service.ts:329
↓ 1 callersFunctionqueuePublicStatusRollupWrite
(input: { event: PublicStatusRollupEvent; groups: PublicStatusConfiguredGroup[]; })
src/lib/public-status/rollup-store.ts:469
↓ 1 callersFunctionrankActiveProviderEndpoints
(endpoints: ProviderEndpoint[])
src/lib/provider-endpoints/endpoint-selector.ts:17
↓ 1 callersMethodread
(sessionId: string)
src/lib/auth-session-store/redis-session-store.ts:163
↓ 1 callersFunctionreadAll
(reader: ReadableStreamDefaultReader<Uint8Array>)
src/app/v1/_lib/proxy/node-stream-to-web.test.ts:16
↓ 1 callersFunctionreadBodyText
(body: BodyInit | undefined)
tests/unit/proxy/proxy-forwarder-raw-passthrough-regression.test.ts:111
↓ 1 callersFunctionreadCache
(key: string)
src/lib/ip-geo/client.ts:27
↓ 1 callersMethodreadFirstReadableChunk
( reader: ReadableStreamDefaultReader<Uint8Array> )
src/app/v1/_lib/proxy/forwarder.ts:4916
↓ 1 callersMethodreadFixed5hWindowState
( entityType: LeaseEntityTypeType, entityId: number )
src/lib/rate-limit/lease-service.ts:81
↓ 1 callersFunctionreadFromClipboard
()
src/lib/utils/clipboard.ts:74
↓ 1 callersFunctionreadGeminiModelVersion
(obj: unknown)
src/app/v1/_lib/proxy/actual-response-model.ts:143
↓ 1 callersFunctionreadJson
(relPath: string)
tests/unit/i18n/zh-tw-providers-strings-quality.test.ts:5
↓ 1 callersFunctionreadJson
(relPath: string)
tests/unit/i18n/zh-tw-settings-small-modules-quality.test.ts:5
↓ 1 callersFunctionreadJson
(relPath: string)
tests/unit/i18n/zh-tw-providers-api-test-quality.test.ts:5
↓ 1 callersFunctionreadJson
(relPath: string)
tests/unit/i18n/ja-settings-small-modules-quality.test.ts:5
↓ 1 callersFunctionreadLiveChainBatch
( keys: Array<{ sessionId: string; requestSequence: number }> )
src/lib/redis/live-chain-store.ts:72
↓ 1 callersFunctionreadLocalVersionFile
()
src/app/api/version/route.ts:66
↓ 1 callersFunctionreadNextField
(buf: Buffer, startOffset: number)
src/app/v1/_lib/proxy/thinking-signature-model.ts:160
↓ 1 callersFunctionreadPublicSiteMetaRoute
()
src/lib/public-status/public-api-loader.ts:53
↓ 1 callersFunctionreadPublicStatusRequestSeedFallback
( id: number )
src/repository/message.ts:109
↓ 1 callersFunctionreadPublicStatusSiteMetadata
(input?: { redis?: RedisReader | null; })
src/lib/public-status/config-snapshot.ts:428
↓ 1 callersMethodreadPublicStatusSiteMetadata
(input: { redis: { status: string; get: (key: string) => Promise<string | null>; }; })
tests/unit/public-status/config-snapshot.test.ts:41
↓ 1 callersFunctionreadRepoFile
(relativePath: string)
tests/helpers/public-status-test-helpers.ts:9
↓ 1 callersFunctionreadResponseTextUpTo
* 读取响应体文本,但最多读取 `maxBytes` 字节(用于非流式 2xx 的“空响应/假 200”嗅探)。 * * 注意: * - 该函数只用于启发式检测,不用于业务逻辑解析; * - 超过上限时会 fire-and-forget `cancel()` reader,避免继续占用资源;
src/app/v1/_lib/proxy/forwarder.ts:303
↓ 1 callersFunctionreadSignatureFromContentBlockDelta
(obj: unknown)
src/app/v1/_lib/proxy/thinking-signature-model.ts:73
↓ 1 callersFunctionreadUntilFirstChunk
( stream: ReadableStream<Uint8Array> | null )
tests/unit/proxy/response-handler-fake-streaming.test.ts:31
↓ 1 callersFunctionrebuildPublicStatusProjection
(input: { intervalMinutes: number; rangeHours: number; redis?: RedisHintWriter | null; now?: Date; })
src/lib/public-status/rebuild-worker.ts:301
↓ 1 callersMethodreclaimCapacityForNewAgent
(cacheKey: string)
src/lib/proxy-agent/agent-pool.ts:819
↓ 1 callersMethodrecordForwardStart
* Record the timestamp when guard pipeline finished and upstream forwarding begins. * Called once; subsequent calls are no-ops.
src/app/v1/_lib/proxy/session.ts:480
↓ 1 callersFunctionredData
()
tests/unit/settings/providers/use-batch-provider-test.test.tsx:34
↓ 1 callersFunctionredactClaudeContentBlocks
* Redact Claude content blocks in response
src/lib/utils/message-redaction.ts:293
↓ 1 callersFunctionredactCodexOutput
* Redact Codex response.output[] items
src/lib/utils/message-redaction.ts:321
↓ 1 callersFunctionredactGeminiSystemInstruction
* Redact Gemini systemInstruction
src/lib/utils/message-redaction.ts:175
↓ 1 callersFunctionredactIfPresent
(value: unknown)
src/lib/api/action-adapter-openapi.ts:50
↓ 1 callersFunctionredactManagementBody
(body: unknown)
src/lib/api/action-adapter-openapi.ts:46
↓ 1 callersFunctionredactManagementValue
(value: unknown, keyName?: string)
src/lib/api/action-adapter-openapi.ts:54
↓ 1 callersFunctionredactMessageContent
* Redact content field in a message block
src/lib/utils/message-redaction.ts:20
↓ 1 callersFunctionredactOpenAIChoices
* Redact OpenAI choices array (message.content or delta.content)
src/lib/utils/message-redaction.ts:241
↓ 1 callersFunctionredactScalarValue
(keyName: string | undefined, value: unknown)
src/lib/api/action-adapter-openapi.ts:74
↓ 1 callersFunctionredactSecrets
(message: string)
src/lib/utils/user-visible-error.ts:15
↓ 1 callersFunctionredactSystemPrompt
* Redact system prompt content
src/lib/utils/message-redaction.ts:95
↓ 1 callersFunctionrefresh
()
src/app/[locale]/dashboard/availability/_components/endpoint/endpoint-tab.tsx:260
↓ 1 callersFunctionrefreshCacheAction
()
src/actions/sensitive-words.ts:268
↓ 1 callersFunctionrefreshRequestFiltersCache
(c: Context)
src/app/api/v1/resources/request-filters/handlers.ts:73
↓ 1 callersFunctionregisterPersistentSession
( sessionId: string, fingerprint: string, ws: WebSocketType )
src/app/v1/_lib/responses-ws/upstream-adapter.ts:273
↓ 1 callersFunctionregisterTempFile
(filePath: string, purpose: "import" | "export")
src/lib/database-backup/temp-file-manager.ts:46
↓ 1 callersFunctionrejectWithError
()
tests/unit/proxy/proxy-forwarder-hedge-first-byte.test.ts:293
↓ 1 callersFunctionreleaseDistributedRebuildLock
(input: { redis: RedisHintWriter & { get(key: string): Promise<string | null> | string | null }; lockKey:
src/lib/public-status/rebuild-worker.ts:259
↓ 1 callersFunctionreleaseForwarderResources
(session: ProxySession)
src/app/v1/_lib/proxy/fake-streaming/proxy-integration.ts:163
↓ 1 callersFunctionreleaseHang
()
tests/unit/lib/shutdown.test.ts:112
↓ 1 callersMethodreload
* 从数据库重新加载敏感词列表
src/lib/sensitive-word-detector.ts:87
↓ 1 callersMethodreloadFromDatabase
(options: ReloadOptions)
src/lib/security/api-key-vacuum-filter.ts:308
↓ 1 callersFunctionrememberPublicStatusRequestSeed
(id: number, seed: PublicStatusRequestSeed)
src/repository/message.ts:44
← previousnext →4,201–4,300 of 6,623, ranked by callers