MCPcopy Index your code

hub / github.com/diegosouzapw/OmniRoute / functions

Functions20,485 in github.com/diegosouzapw/OmniRoute

↓ 6,115 callersFunctiont
(key: string)
src/app/(dashboard)/dashboard/webhooks/__tests__/webhook-wizard.test.tsx:10
↓ 2,882 callersMethodnow
()
tests/unit/domain-cost-rules.test.ts:106
↓ 2,733 callersMethodget
(...params: unknown[])
src/lib/db/adapters/types.ts:8
↓ 2,264 callersMethodpush
(chunk: Uint8Array)
open-sse/executors/kiro.ts:54
↓ 1,629 callersMethodpush
(line: LogLine)
src/lib/services/ringBuffer.ts:26
↓ 1,323 callersMethodhas
* Check if a key exists (without promoting it). * @param {string} key * @returns {boolean}
src/lib/cacheLayer.ts:154
↓ 1,308 callersMethoderror
(tag: string, message: string, data?: Record<string, unknown>)
open-sse/types.d.ts:87
↓ 1,270 callersMethodreplace
(text: string)
src/types/global.d.ts:76
↓ 1,060 callersMethodprepare
(sql: string)
src/lib/db/adapters/types.ts:17
↓ 975 callersMethodresolve
* Resolve a service by name. Lazy-creates via factory on first call, * then returns the cached singleton.
src/lib/container.ts:49
↓ 895 callersFunctiont
(key, vars)
bin/cli/i18n.mjs:88
↓ 790 callersMethodtext
()
tests/unit/t27-github-copilot-response-format.test.ts:180
↓ 769 callersFunctionsetTimeout
(ms: number, cb: () => void)
tests/unit/mitm-server-timeouts.test.ts:19
↓ 748 callersFunctiongetDbInstance
()
src/lib/db/core.ts:930
↓ 734 callersMethodprepare
(sql: string)
src/types/sqljs.d.ts:15
↓ 721 callersMethodwrite
(level: string, message: string, data?: unknown)
src/lib/plugins/logger.ts:19
↓ 633 callersMethodwarn
(tag: string, message: string, data?: Record<string, unknown>)
open-sse/types.d.ts:86
↓ 572 callersMethodexit
()
open-sse/utils/tlsClient.ts:210
↓ 560 callersMethodadd
(usd: number)
open-sse/services/compression/eval/costMeter.ts:2
↓ 559 callersMethodexecute
(input: ExecuteInput)
open-sse/executors/glm.ts:430
↓ 555 callersMethodset
* Set a value in the cache. * @param {string} key * @param {*} value * @param {number} [ttl] - Override default TTL
src/lib/cacheLayer.ts:92
↓ 551 callersMethodclose
()
src/types/sqljs.d.ts:19
↓ 540 callersMethodall
(...params: unknown[])
src/lib/db/adapters/types.ts:9
↓ 523 callersMethodrun
(...params: unknown[])
src/lib/db/adapters/types.ts:7
↓ 510 callersFunctionapiFetch
(path, opts = {})
bin/cli/api.mjs:180
↓ 496 callersMethodpush
* Buffer `chunk` until the holdback window elapses or the byte cap is reached. * Returns the chunks to emit downstream now: `[]` while still holdin
open-sse/services/streamRecovery.ts:59
↓ 456 callersFunctionemit
(data, opts = {}, schema = null)
bin/cli/output.mjs:155
↓ 448 callersMethodrun
(sql: string)
src/types/sqljs.d.ts:16
↓ 429 callersMethoddelete
* Delete a specific key. * @param {string} key * @returns {boolean}
src/lib/cacheLayer.ts:169
↓ 400 callersMethodhas
(conversationId: string)
open-sse/services/cursorSessionManager.ts:201
↓ 392 callersFunctionsanitizeErrorMessage
(message: unknown)
open-sse/utils/error.ts:47
↓ 389 callersMethodset
(key: string, live: number[])
open-sse/services/slidingWindowLimiter.ts:76
↓ 370 callersMethodinfo
(tag: string, message: string, data?: Record<string, unknown>)
open-sse/types.d.ts:85
↓ 343 callersMethodon
(event: string, listener: Listener)
tests/unit/copilot-m365-web-executor.test.ts:34
↓ 335 callersFunctionresolve
(_alias: string)
tests/unit/check-known-symbols.test.ts:113
↓ 333 callersFunctionrequireManagementAuth
(request: Request)
src/lib/api/requireManagementAuth.ts:24
↓ 261 callersMethodclear
(apiKeyId: string, dim: DimensionKey)
src/lib/quota/types.ts:62
↓ 244 callersFunctionvalidateProviderApiKey
({ provider, apiKey, providerSpecificData = {} }: any)
src/lib/providers/validation.ts:190
↓ 240 callersFunctionvalidateBody
( schema: TSchema, body: unknown )
src/shared/validation/helpers.ts:31
↓ 224 callersFunctionbuildErrorBody
( statusCode: number, message: string, upstreamDetails?: unknown )
open-sse/utils/error.ts:96
↓ 224 callersFunctionmakeManagementSessionRequest
( url: string, options: { method?: string; token?: string; headers?: HeadersInit; body?: B
tests/helpers/managementSession.ts:29
↓ 185 callersFunctionisValidationFailure
( validation: ValidationResult<TData> )
src/shared/validation/helpers.ts:52
↓ 184 callersFunctionfn
()
tests/unit/db-state-reset.test.ts:43
↓ 177 callersFunctiongetI18nOrFallback
(t, key, fallback)
src/app/(dashboard)/dashboard/combos/page.tsx:522
↓ 176 callersFunctioncreateErrorResponse
(payload: ApiErrorPayload)
src/lib/api/errorResponse.ts:12
↓ 175 callersMethodbuildHeaders
( credentials: ProviderCredentials, stream = true, _clientHeaders?: Record<string, string> | null,
open-sse/executors/glm.ts:228
↓ 174 callersMethodexec
(sql: string)
src/types/sqljs.d.ts:17
↓ 171 callersMethodread
(length: number)
open-sse/executors/kiro.ts:70
↓ 170 callersFunctionhandleComboChat
({ body, combo, handleSingleModel, isModelAvailable, log, settings, allCombos, relayOptions,
open-sse/services/combo.ts:709
↓ 167 callersMethoddebug
(tag: string, message: string, data?: Record<string, unknown>)
open-sse/types.d.ts:84
↓ 166 callersMethodbind
(values: unknown[])
src/types/sqljs.d.ts:3
↓ 162 callersMethodtransformRequest
(_model: string, body: Record<string, unknown>)
tests/unit/field-400-downgrade.test.ts:14
↓ 161 callersFunctionreject
(status: number, code: string, message: string)
src/server/authz/context.ts:42
↓ 159 callersFunctionhandleChat
( request: any, clientRawRequest: any = null, preParsedBody: any = null )
src/sse/handlers/chat.ts:209
↓ 150 callersMethodupdate
(items: MenuItem[])
bin/cli/tray/tray.ts:21
↓ 140 callersMethodaddEventListener
()
tests/unit/ui/studio-pages.test.tsx:19
↓ 140 callersFunctionseedConnection
(provider, overrides: SeedConnectionOverrides = {})
tests/integration/chat-pipeline.test.ts:379
↓ 136 callersMethodbuildUrl
( _model: string, _stream: boolean, _urlIndex = 0, credentials: ProviderCredentials | null = n
open-sse/executors/glm.ts:208
↓ 135 callersFunctiontranslateOrFallback
( t: ReturnType<typeof useTranslations>, key: string, fallback: string )
src/app/(dashboard)/dashboard/settings/components/ComboDefaultsTab.tsx:49
↓ 131 callersMethodabort
(reason?: string)
open-sse/executors/copilot-web.ts:276
↓ 131 callersMethodrandom
Get a random profile
open-sse/services/sessionPool/fingerprintRotator.ts:91
↓ 131 callersMethodset
(key: string, value: T)
src/lib/db/readCache.ts:38
↓ 129 callersFunctioncn
(...classes: ClassValue[])
src/shared/utils/cn.ts:10
↓ 115 callersMethodexec
(sql: string)
src/lib/db/adapters/types.ts:18
↓ 115 callersFunctionisAuthenticated
(request: Request)
src/shared/utils/apiAuth.ts:285
↓ 114 callersFunctionregisterHook
( event: string, pluginName: string, handler: HookHandler, priority: number = 100 )
src/lib/plugins/hooks.ts:91
↓ 112 callersFunctionproviderText
( t: ProviderMessageTranslator, key: string, fallback: string, values?: Record<string, unknown> )
src/app/(dashboard)/dashboard/providers/[id]/providerPageHelpers.ts:104
↓ 110 callersFunctionerrorResponse
( code: string, message: string, status: number, opts?: { correlationId?: string; details?: Record<str
src/shared/utils/apiResponse.ts:30
↓ 107 callersFunctionseedConnection
(provider: string, overrides: any = {})
tests/unit/sse-auth.test.ts:30
↓ 106 callersFunctiongetExecutor
(provider)
open-sse/executors/index.ts:161
↓ 101 callersFunctionisLocalOnlyPath
(path: string, method?: string)
src/server/authz/routeGuard.ts:185
↓ 100 callersFunctionsaveCallLog
(entry: any)
src/lib/usage/callLogs.ts:515
↓ 97 callersFunctioncheckFallbackError
( status: number, errorText: string | null, backoffLevel: number = 0, _model: string | null = null,
open-sse/services/accountFallback.ts:1276
↓ 96 callersFunctionrestore
()
tests/unit/chatgpt-web.test.ts:343
↓ 95 callersMethodremoveEventListener
()
tests/unit/ui/studio-pages.test.tsx:20
↓ 93 callersFunctionPOST
(req: NextRequest)
src/app/a2a/route.ts:108
↓ 92 callersFunctionprintInfo
(message)
bin/cli/io.mjs:77
↓ 86 callersMethodevaluate
(ctx: PolicyContext)
src/server/authz/context.ts:35
↓ 84 callersMethodapply
(body: Record<string, unknown>, options?: CompressionEngineApplyOptions)
open-sse/services/compression/engines/types.ts:56
↓ 81 callersFunctiongetSettings
()
src/lib/db/settings.ts:91
↓ 81 callersFunctiontr
(key: string, fallback: string)
src/app/(dashboard)/dashboard/translator/components/advanced/RawJsonPanel.tsx:228
↓ 78 callersMethodgetState
(token: string)
tests/e2e/helpers/mockUpstreamServer.ts:105
↓ 77 callersFunctionbackupDbFile
(reason = "auto")
src/lib/db/backup.ts:354
↓ 77 callersFunctioncreateLog
()
tests/unit/combo-routing-engine.test.ts:38
↓ 76 callersFunctionGET
(request: Request)
src/app/api/v1/route.ts:15
↓ 76 callersFunctiongotoDashboardRoute
( page: Page, url: string, options: GotoDashboardRouteOptions = {} )
tests/e2e/helpers/dashboardAuth.ts:82
↓ 74 callersFunctiongetProviderConnections
(filter: JsonRecord = {})
src/lib/db/providers.ts:44
↓ 72 callersFunctionbuildRequest
({ url = "http://localhost/v1/chat/completions", body, authKey = null, headers = {}, }: { url?: stri
tests/integration/chat-pipeline.test.ts:74
↓ 70 callersFunctionreset
()
tests/unit/chatgpt-web.test.ts:349
↓ 70 callersFunctiontext
(key: string, fallback: string, values?: Record<string, unknown>)
src/app/(dashboard)/dashboard/providers/components/onboarding/ProviderOnboardingWizard.tsx:292
↓ 69 callersFunctionupdateProviderConnection
(id: string, data: JsonRecord)
src/lib/db/providers.ts:519
↓ 68 callersFunctioncreateHash
()
open-sse/lib/deepseek-pow.ts:120
↓ 68 callersFunctioninvokeChatCore
({ body, provider = "openai", model = "gpt-4o-mini", endpoint = "/v1/chat/completions", accept = "ap
tests/unit/chatcore-translation-paths.test.ts:301
↓ 68 callersMethodregister
* Register a factory for a service. Does NOT instantiate until resolve().
src/lib/container.ts:39
↓ 67 callersMethoddestroy
()
bin/cli/tray/tray.ts:23
↓ 67 callersFunctionopenaiResponsesToOpenAIRequest
( model: unknown, body: unknown, stream: unknown, credentials: unknown )
open-sse/translator/request/openai-responses.ts:80
↓ 67 callersFunctionunmount
()
src/app/(dashboard)/dashboard/endpoint/__tests__/ApiEndpointsTab.test.tsx:89
↓ 66 callersFunctioninstallMockFetch
Dispatch the TLS-impersonating fetch by URL pathname. * Default: session 200 with accessToken, sentinel 200 no PoW, conv 200 empty stream.
tests/unit/chatgpt-web.test.ts:68
↓ 66 callersMethodnext
Get the next profile in round-robin order
open-sse/services/sessionPool/fingerprintRotator.ts:84
↓ 66 callersFunctionokResponse
(body: any = { choices: [{ message: { content: "ok" } }] })
tests/unit/combo-routing-engine.test.ts:49
next →1–100 of 20,485, ranked by callers