Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/diegosouzapw/OmniRoute
/ functions
Functions
20,485 in github.com/diegosouzapw/OmniRoute
⨍
Functions
20,485
◇
Types & classes
2,883
↓ 11 callers
Function
loadPolicy
()
tests/unit/authz/client-api-policy.test.ts:48
↓ 11 callers
Function
loadRulePack
( language: string, category: string, options: { refresh?: boolean } = {} )
open-sse/services/compression/ruleLoader.ts:200
↓ 11 callers
Function
make42Skills
()
tests/unit/agent-skills-page.test.tsx:58
↓ 11 callers
Function
makeAuthRequest
( method: "GET" | "POST" | "PUT", url: string, body?: unknown )
tests/integration/qdrant-routes.test.ts:58
↓ 11 callers
Function
makeBatchStatus
(overrides: Partial<ToolBatchStatus> = {})
tests/unit/ui/CliToolCard.test.tsx:73
↓ 11 callers
Function
makeContainer
()
tests/unit/translator-friendly-result-narrated.test.tsx:69
↓ 11 callers
Function
makeContainer
()
tests/unit/translator-friendly-concept-card.test.tsx:29
↓ 11 callers
Function
makeCtx
( path: string, headers: Record<string, string>, requestExtras: Record<string, unknown> = {} )
tests/unit/authz/routeGuard.test.ts:82
↓ 11 callers
Function
makeKey
(id: string, windowSize: number, windowNumber: number)
tests/unit/rate-limiter-eviction-4041.test.ts:16
↓ 11 callers
Function
makeRequest
(url, { method = "GET", token, body } = {})
tests/integration/api-routes-critical.test.ts:40
↓ 11 callers
Function
makeResponse
(body: string, contentType: string)
tests/unit/chatcore-non-streaming-response-parse.test.ts:9
↓ 11 callers
Function
makeStream
Build a mock upstream stream that emits `chunks` then ends via close or error.
tests/unit/stream-recovery.test.ts:16
↓ 11 callers
Function
mergeModelCompatOverride
( providerId: string, modelId: string, patch: ModelCompatPatch )
src/lib/db/models/compat.ts:178
↓ 11 callers
Function
mkPkg
Create a fake installed package with a manifest and optional extra files.
tests/unit/colocate-optionals.test.ts:14
↓ 11 callers
Function
mockFetch
(skills: AgentSkill[], coverage: SkillCoverage, rawMarkdown = "# Test Skill\nContent here.")
tests/unit/agent-skills-page.test.tsx:99
↓ 11 callers
Function
mockFetch
(status, streamEvents, bodyText)
tests/unit/perplexity-web.test.ts:47
↓ 11 callers
Function
mountHook
(useHook: () => T)
tests/unit/ui/use-stream-metrics.test.tsx:19
↓ 11 callers
Function
normaliseFreeLabel
(name: string)
@omniroute/opencode-plugin/src/naming.ts:119
↓ 11 callers
Function
normalizeClaudeHaikuConstraints
( body: T, model: string | null | undefined )
open-sse/services/claudeHaikuConstraints.ts:52
↓ 11 callers
Function
normalizeCodexBaseUrl
(baseUrl: string, wireApi: CodexWireApi = "chat")
src/shared/utils/codexBaseUrl.ts:15
↓ 11 callers
Method
onFirstChunk
()
src/app/(dashboard)/dashboard/playground/components/tabs/CompareTab.tsx:65
↓ 11 callers
Function
open
()
open-sse/mcp-server/audit.ts:50
↓ 11 callers
Function
parseCliRegistry
()
src/lib/agentSkills/cliRegistryParser.ts:181
↓ 11 callers
Function
parseComposerToolCalls
(text: string)
open-sse/utils/composerToolCalls.ts:190
↓ 11 callers
Function
parseGeminiModelsList
(data: any)
src/lib/providerModels/geminiModelsParser.ts:53
↓ 11 callers
Function
parseLines
(jsonl: string)
tests/unit/lib/batches/csvToJsonl.test.ts:21
↓ 11 callers
Function
parseModelFromRegistry
( modelStr: string | null, registry: Record<string, P> )
open-sse/config/registryUtils.ts:52
↓ 11 callers
Function
parsePort
(value, fallback)
bin/cli/commands/serve.mjs:33
↓ 11 callers
Function
parseResponseBody
(response: Response)
src/shared/utils/api.ts:59
↓ 11 callers
Function
parseToolLimitFromError
(errorMessage: string)
open-sse/services/toolLimitDetector.ts:49
↓ 11 callers
Function
pinIsDurablyUnhealthy
( circuitState: string | undefined, connections: Array<{ testStatus?: string | null; backoffLevel?
open-sse/services/combo.ts:626
↓ 11 callers
Function
postRequest
(body: unknown)
tests/integration/playground-improve-prompt.test.ts:53
↓ 11 callers
Function
prepareToolMessages
( bodyObj: Record<string, unknown>, messages: Array<{ role: string; content: unknown }> )
open-sse/translator/webTools.ts:488
↓ 11 callers
Function
processPII
* Scan and optionally redact PII from text. * @param {string} text * @param {boolean} redact - If true, replaces PII with placeholders * @returns {
src/shared/utils/inputSanitizer.ts:220
↓ 11 callers
Function
promoteModelToFront
( models: readonly T[] | null | undefined, winningModel: string | null | undefined )
src/lib/combos/autoPromote.ts:34
↓ 11 callers
Function
push
(r: unknown)
tests/unit/think-close-marker-suppress-5245.test.ts:26
↓ 11 callers
Function
quotaPathShouldMarkExpired
( provider: string, usageMessage: unknown, currentTestStatus: string | null | undefined )
src/lib/usage/providerLimits.ts:372
↓ 11 callers
Function
randomInt
(min: number, max: number)
tests/integration/liveGeminiShared.ts:187
↓ 11 callers
Function
readHealthValue
(label: string, reader: () => T, fallback: T)
src/app/api/monitoring/health/route.ts:15
↓ 11 callers
Function
recordComboShadowRequest
( comboName: string, modelStr: string | null, { success, latencyMs, target, }: { succe
open-sse/services/comboMetrics.ts:323
↓ 11 callers
Function
recordEngineFailure
( engine: string, config: PipelineCircuitBreakerConfig, now: number = Date.now() )
open-sse/services/compression/pipelineEngineBreaker.ts:109
↓ 11 callers
Function
recordRelayUsage
( tokenId: string, params: { requestId?: string; model?: string; promptTokens?: number; co
src/lib/db/relayProxies.ts:285
↓ 11 callers
Function
remapToolNamesInRequest
(body: Record<string, unknown>)
open-sse/services/claudeCodeToolRemapper.ts:60
↓ 11 callers
Function
removeHeaderCaseInsensitive
(headers: Record<string, string>, name: string)
open-sse/services/antigravityClientProfile.ts:86
↓ 11 callers
Function
renderCompare
(providers: SearchProviderCatalogItem[] = FOUR_PROVIDERS)
tests/unit/ui/search-tools-compare-tab.test.tsx:79
↓ 11 callers
Function
renderModal
( batchOverrides: Partial<BatchLike> = {}, onClose = vi.fn(), onActionDone?: () => void, )
tests/unit/dashboard/batch/components/BatchDetailModal.test.tsx:115
↓ 11 callers
Function
replaceImageParts
( body: RequestBody, // #4012: a `null` entry means the describe call failed for that image — keep // th
src/lib/guardrails/visionBridgeHelpers.ts:451
↓ 11 callers
Function
request
(path: string, cookie = "auth_token=session-a", token?: string)
tests/unit/authz/csrf.test.ts:18
↓ 11 callers
Function
resetIPFilter
()
open-sse/services/ipFilter.ts:267
↓ 11 callers
Function
resetStorage
()
tests/unit/proxy-management-v1-route.test.ts:39
↓ 11 callers
Function
resolveAccountSemaphoreAccountKey
( connectionId: string | null | undefined, credentials: Record<string, unknown> | null | undefined )
open-sse/handlers/chatCore/executorHelpers.ts:16
↓ 11 callers
Function
resolveAntigravityVersion
(fetchImpl: FetchLike = fetch)
open-sse/services/antigravityVersion.ts:115
↓ 11 callers
Function
resolveApiBlock
( modelId: string, baseURL: string, apiFormat?: { anthropicPrefixes?: string[] } )
@omniroute/opencode-plugin/src/index.ts:349
↓ 11 callers
Function
resolveBareModelToConnectionDefault
( requestedModelStr: string | null | undefined, resolvedModel: string | null | undefined, connectionDefa
open-sse/services/model.ts:166
↓ 11 callers
Function
resolveChatCoreRequestSetup
( modelInfo: unknown, body: { model?: unknown } | null | undefined, model: string )
open-sse/handlers/chatCore/requestSetup.ts:31
↓ 11 callers
Function
resolveComboCooldownWaitDecision
( input: ResolveComboCooldownDecisionInput )
open-sse/services/combo/comboCooldownRetry.ts:181
↓ 11 callers
Function
resolveDataDir
({ isCloud = false }: { isCloud?: boolean } = {})
src/lib/dataPaths.ts:64
↓ 11 callers
Function
resolveKiroRegion
( credentials: { providerSpecificData?: unknown } | null | undefined )
open-sse/executors/kiro.ts:243
↓ 11 callers
Function
resolveParams
(id: string)
tests/integration/playground-presets-crud.test.ts:76
↓ 11 callers
Function
resolveReportedServiceTier
( payload?: unknown, maxDepth = 3 )
open-sse/handlers/chatCore.ts:470
↓ 11 callers
Function
resolveStreamReadinessTimeout
( input: StreamReadinessPolicyInput )
open-sse/utils/streamReadinessPolicy.ts:71
↓ 11 callers
Function
resolveTo
(...ips: string[])
tests/unit/plugins-marketplace.test.ts:72
↓ 11 callers
Function
restore
()
@omniroute/opencode-plugin/tests/fetch-interceptor.test.ts:27
↓ 11 callers
Function
restorePreservedBlocks
(text: string, blocks: PreservedBlock[])
open-sse/services/compression/preservation.ts:221
↓ 11 callers
Function
retrievePreview
( apiKeyId: string | null, query: string, options: { strategy: "exact" | "semantic" | "hybrid"; maxToken
src/lib/memory/retrieval.ts:659
↓ 11 callers
Function
rotationGroupFor
(provider: string)
open-sse/services/refreshSerializer.ts:62
↓ 11 callers
Function
roundNumber
(value: number, digits = 2)
src/lib/usage/comboForecast.ts:59
↓ 11 callers
Function
safeEqual
* Constant-time string comparison to prevent timing-oracle attacks (CWE-208). * Handles null/undefined safely and different-length strings.
src/app/api/oauth/[provider]/[action]/route.ts:75
↓ 11 callers
Function
scopeCheck
( isSessionAuth: boolean, recordApiKeyId: string | null | undefined, apiKeyId: string | null )
tests/unit/batch-deletion-route-logic.test.ts:10
↓ 11 callers
Function
secureRandomInt
(maxExclusive: number)
src/shared/utils/secureRandom.ts:49
↓ 11 callers
Function
setVisibility
(state: "visible" | "hidden")
tests/unit/ui/request-logger-autorefresh-visibility-3972.test.tsx:44
↓ 11 callers
Function
shouldParseTextualReasoningTags
(provider?: unknown, model?: unknown)
open-sse/handlers/responseSanitizer/reasoning.ts:136
↓ 11 callers
Function
stripOrphanedToolResults
(body)
open-sse/translator/helpers/toolCallHelper.ts:182
↓ 11 callers
Function
stubEnrichmentFetcher
(payload: OmniRouteEnrichmentMap)
@omniroute/opencode-plugin/tests/config-shim.test.ts:156
↓ 11 callers
Function
syncServiceModels
( tool: string, baseUrl: string, apiKey: string )
src/lib/services/modelSync.ts:25
↓ 11 callers
Function
synthesizeOpenAiSseFromJson
(jsonText: string)
open-sse/utils/jsonToSse.ts:69
↓ 11 callers
Function
takeNext
(argv, i)
scripts/features/lib/args.mjs:28
↓ 11 callers
Function
toHeaderValue
(value: string)
src/domain/omnirouteResponseMeta.ts:48
↓ 11 callers
Function
toMemorySettingsUpdates
( settings: Partial<MemorySettings> )
src/lib/memory/settings.ts:113
↓ 11 callers
Function
toNonEmptyString
(value: unknown)
open-sse/services/comboMetrics.ts:87
↓ 11 callers
Function
toNonEmptyString
(value: unknown)
open-sse/services/kiroModels.ts:32
↓ 11 callers
Function
toNonEmptyString
(value: unknown)
open-sse/services/claudeCodeCompatible.ts:1166
↓ 11 callers
Function
toNonEmptyString
(value: unknown)
src/lib/oauth/utils/claudeAuthImport.ts:14
↓ 11 callers
Function
toNonEmptyString
(value: unknown)
src/lib/oauth/utils/agyAuthImport.ts:19
↓ 11 callers
Function
toNumber
(value: unknown)
open-sse/handlers/responseSanitizer.ts:56
↓ 11 callers
Function
toNumber
(value: unknown, fallback = 0)
src/lib/usage/apiKeySelfService.ts:72
↓ 11 callers
Function
toRecord
(value: unknown)
tests/unit/claudeAuthFile.test.ts:12
↓ 11 callers
Function
toTool
(row)
tests/unit/db-versionManager.test.ts:125
↓ 11 callers
Function
translateUsageOrFallback
( t: UsageTranslator, key: string, fallback: string, values?: UsageTranslationValues )
src/app/(dashboard)/dashboard/usage/components/ProviderLimits/i18nFallback.ts:8
↓ 11 callers
Function
uniqueName
(suffix: string)
tests/unit/circuit-breaker-failure-kind.test.ts:17
↓ 11 callers
Function
validatePluginConfig
( config: Record<string, unknown>, schema: Record<string, ConfigField> )
src/lib/plugins/manifest.ts:170
↓ 11 callers
Function
webSessionCredentialKey
(psd: unknown)
src/lib/db/webSessionDedup.ts:33
↓ 11 callers
Function
writeConfig
(cfg: unknown)
tests/unit/cli-remote-mode.test.ts:20
↓ 10 callers
Function
__setExec
(fn: ExecFileFn)
src/mitm/inspector/systemProxyConfig.ts:87
↓ 10 callers
Function
__setHeadroomSaturationFetcherForTests
(fetcher: SaturationFetcher | null)
open-sse/services/combo/quotaStrategies.ts:556
↓ 10 callers
Function
__setUltraSlmTestHooks
(hooks: UltraSlmTestHooks)
open-sse/services/compression/engines/llmlingua/ultraEntry.ts:33
↓ 10 callers
Function
_setSecureRandomFloatSource
(source: (() => number) | null)
src/shared/utils/secureRandom.ts:64
↓ 10 callers
Method
_timeUntilReset
()
src/shared/utils/circuitBreaker.ts:424
↓ 10 callers
Function
addSignature
(pattern: unknown, context: SignatureContext = {})
open-sse/services/signatureCache.ts:72
↓ 10 callers
Function
applyCodexGlobalFastServiceTier
( provider: string | null | undefined, credentials: T, settings: unknown, options: ApplyCodexGlobalFas
src/lib/providers/codexFastTier.ts:139
← previous
next →
1,401–1,500 of 20,485, ranked by callers