MCPcopy Index your code

hub / github.com/a-ghorbani/pocketpal-ai / functions

Functions2,286 in github.com/a-ghorbani/pocketpal-ai

↓ 858 callersFunctionrender
(ui: React.ReactElement, options: any = {})
src/screens/ChatScreen/__tests__/ChatScreen.test.tsx:21
↓ 278 callersMethodfind
(id)
__mocks__/external/@nozbe/watermelondb.js:77
↓ 209 callersMethodpush
(value: T)
src/services/agent/AgentRunner.ts:33
↓ 181 callersMethodcreate
(recordCreator)
__mocks__/external/@nozbe/watermelondb.js:65
↓ 181 callersFunctionuseTheme
()
src/hooks/useTheme.ts:30
↓ 135 callersFunctionbyTestId
(testId: string)
e2e/helpers/selectors.ts:24
↓ 101 callersMethodget
(type: string)
src/services/talents/DatetimeEngine.ts:26
↓ 86 callersFunctiont
( template: string, params: Record<string, string | number>, )
src/locales/index.ts:149
↓ 78 callersMethodhas
(name: string)
src/services/talents/TalentRegistry.ts:21
↓ 68 callersMethodwaitForReady
* Wait for chat screen to be ready
e2e/pages/ChatPage.ts:52
↓ 66 callersFunctionfield
()
__mocks__/external/@nozbe/watermelondb/decorators.js:3
↓ 60 callersFunctionmakeRun
( overrides: Partial<BenchmarkRunReport> = {}, )
scripts/__tests__/benchmark-compare.test.ts:21
↓ 58 callersFunctionmakeReport
( runs: BenchmarkRunReport[], overrides: Partial<BenchmarkMatrixReport> = {}, )
scripts/__tests__/benchmark-compare.test.ts:39
↓ 53 callersMethodexecute
(args: Record<string, any>)
src/services/talents/types.ts:34
↓ 46 callersFunctionrenderPalSheet
(pal: Partial<Pal>, isVisible = true)
src/components/PalsSheets/__tests__/PalSheet.test.tsx:105
↓ 42 callersMethodsimulateProgress
(text: string)
src/api/__tests__/openai.test.ts:438
↓ 41 callersFunctionformatBytes
( size: number, fractionDigits = 2, useBinary = false, threeDigits = false, )
src/utils/formatters.ts:16
↓ 40 callersFunctionrunMatrix
( config: BenchConfig, setStatus: (s: Status) => void, setLastCell: (c: {pp?: number; tg?: number; cells
src/__automation__/screens/BenchmarkRunnerScreen.tsx:456
↓ 39 callersFunctionmakeRow
( over: Partial<{ model_id: string; quant: string; requested_backend: 'cpu' | 'gpu' | 'hexagon';
scripts/__tests__/merge-bench-reports.test.ts:11
↓ 39 callersMethodopenDrawer
* Open the navigation drawer by tapping the menu button. * * The single tap is occasionally missed on Android (the drawer never opens), * whi
e2e/pages/ChatPage.ts:64
↓ 39 callersFunctionparseDeviceRules
(raw: unknown)
src/services/deviceRules/parse.ts:320
↓ 39 callersMethodstart
(palId: string)
src/store/CheckoutFlowStore.ts:97
↓ 38 callersFunctionagentStateReducer
( state: AgentUiState, event: AgentEvent, )
src/services/agent/agentStateReducer.ts:14
↓ 38 callersFunctionmakeStore
()
src/store/__tests__/TTSStore.test.ts:399
↓ 38 callersFunctionvalidateNumericField
( value: string | number, rule: ValidationRule, )
src/utils/modelSettings.ts:122
↓ 37 callersFunctionrender
(ui: React.ReactElement, options: any = {})
src/screens/ModelsScreen/__tests__/ModelsScreen.test.tsx:23
↓ 37 callersMethodwrite
(callback)
__mocks__/external/@nozbe/watermelondb.js:112
↓ 36 callersFunctionderiveLogSignals
(lines: string[])
src/__automation__/logSignals.ts:115
↓ 35 callersFunctioncreateModel
(overrides = {})
jest/fixtures/models.ts:127
↓ 34 callersFunctionwithOpacity
(color: string, opacity: number)
src/utils/colorUtils.ts:25
↓ 33 callersFunctionmigrateCompletionSettings
(settings: any)
src/utils/completionSettingsVersions.ts:57
↓ 33 callersMethodplay
* Replay path — speak `text` in one call. Used by the v1.1 per-message * play button where the full text is available up-front.
src/services/tts/types.ts:73
↓ 33 callersMethodsetCurrentVoice
(v: Voice | null)
src/store/TTSStore.ts:309
↓ 33 callersFunctionuseChatSession
( currentMessageInfo: React.MutableRefObject<{ createdAt: number; id: string; sessionId: string;
src/hooks/useChatSession.ts:452
↓ 32 callersFunctioncreateErrorState
( error: unknown, context: ErrorState['context'], service?: ErrorState['service'], metadata?: ErrorSta
src/utils/errors.ts:66
↓ 32 callersMethodisDisplayed
* Check if chat screen is displayed
e2e/pages/ChatPage.ts:45
↓ 32 callersMethodwaitForScreen
( n: 1 | 2 | 3 | 4 | 5 | 6, timeout = BasePage.DEFAULT_TIMEOUT, )
e2e/pages/OnboardingPage.ts:56
↓ 31 callersMethodaddServer
(config: Omit<ServerConfig, 'id'>)
src/store/ServerStore.ts:54
↓ 31 callersFunctioncompareReports
( baseline: BenchmarkMatrixReport, current: BenchmarkMatrixReport, options?: CompareOptions, )
e2e/scripts/benchmark-compare.ts:140
↓ 31 callersMethodgetModelFullPath
(model: Model)
__mocks__/stores/modelStore.ts:267
↓ 31 callersMethodregister
(engine: TalentEngine)
src/services/talents/TalentRegistry.ts:13
↓ 31 callersFunctionresolveBannerVariant
( snapshot: CompletionResultSnapshot | undefined, input: BannerResolverInput, )
src/utils/bannerVariantResolver.ts:47
↓ 31 callersMethodsafeStringify
(value: any)
src/database/models/LocalPal.ts:213
↓ 31 callersMethodwaitForOpen
* Wait for drawer to be fully open * We use Pals tab because it's unique to the drawer (not a screen title)
e2e/pages/DrawerPage.ts:40
↓ 30 callersFunctionbaseInput
( overrides: Partial<BannerResolverInput> = {}, )
src/utils/__tests__/bannerVariantResolver.test.ts:8
↓ 30 callersMethodcompletion
( params: ApiCompletionParams, callback?: (data: CompletionStreamData) => void, )
src/utils/completionTypes.ts:153
↓ 30 callersFunctioncreateBasicPal
(overrides: Partial<Pal> = {})
src/components/PalsSheets/__tests__/PalSheet.test.tsx:73
↓ 30 callersFunctionstreamChatCompletion
( params: StreamChatParams, serverUrl: string, apiKey?: string, signal?: AbortSignal, onToken?: (dat
src/api/openai.ts:416
↓ 29 callersMethodquery
()
__mocks__/external/@nozbe/watermelondb.js:49
↓ 27 callersFunctionisAndroid
()
e2e/helpers/selectors.ts:19
↓ 27 callersFunctionsnap
( overrides: Partial<CompletionResultSnapshot> = {}, )
src/utils/__tests__/bannerVariantResolver.test.ts:19
↓ 26 callersFunctioncustomRender
(ui: React.ReactElement, options: any = {})
src/screens/ModelsScreen/ModelCard/__tests__/ModelCard.test.tsx:39
↓ 26 callersFunctionrunAgent
( options: AgentRunOptions, )
src/services/agent/AgentRunner.ts:240
↓ 25 callersMethodacquire
* Run `fn` with `engineId` guaranteed to be the active native engine. * Releases the previous engine (if neural) and loads the new one when * th
src/services/tts/runtime.ts:33
↓ 25 callersMethodinit
* Initialize the store. Idempotent — safe to call multiple times; only the * first call does work.
src/store/TTSStore.ts:188
↓ 25 callersMethodonAssistantMessageStart
First token / message creation. Opens a streaming session.
src/store/TTSStore.ts:529
↓ 25 callersFunctionstubOpenCLLogs
Helper: drive the listener to emit a canonical full-OpenCL-offload * sequence so `deriveEffectiveBackend(logSignals)` returns 'opencl'.
src/__automation__/screens/__tests__/BenchmarkRunnerScreen.test.tsx:374
↓ 24 callersFunctioncollect
(iter: AsyncIterable<AgentEvent>)
src/services/agent/__tests__/AgentRunner.test.ts:62
↓ 24 callersMethodhandle
(error: unknown)
src/services/palshub/ErrorHandler.ts:18
↓ 24 callersFunctionisCacheTypeVSafe
( cacheTypeV: CacheType | string, flashAttnType: FlashAttnType, backend: BackendType, )
src/utils/flashAttnCompatibility.ts:84
↓ 24 callersMethodtapPrimary
()
e2e/pages/OnboardingPage.ts:67
↓ 23 callersFunctionbuildPalsHubPal
(overrides: Partial<PalsHubPal>)
src/store/__tests__/PalStore.test.ts:698
↓ 23 callersFunctioncreateMockPal
(capabilities = {})
src/utils/__tests__/pal-capabilities.test.ts:17
↓ 23 callersFunctiongetCreatePalArg
()
src/store/__tests__/PalStore.test.ts:704
↓ 23 callersFunctionuseDeepLinking
()
src/hooks/useDeepLinking.ts:24
↓ 23 callersFunctionuseOnboardingHandlers
(step: OnboardingStep)
src/screens/OnboardingScreens/useOnboardingHandlers.ts:21
↓ 22 callersFunctionbuildReasoningPayload
( serverType: string | undefined, reasoning: ReasoningIntent | undefined, )
src/api/openai.ts:370
↓ 22 callersFunctionextractModelPrecision
(filename: string)
src/utils/index.ts:810
↓ 22 callersFunctionmakeReport
(memoryMap: Record<string, number> = {})
scripts/__tests__/memory-compare.test.ts:3
↓ 22 callersFunctionmakeScriptedEngine
* Helper: build a CompletionEngine whose `completion()` invokes the * callback with each scripted token, then resolves with the supplied * `result`.
src/services/agent/__tests__/AgentRunner.test.ts:16
↓ 22 callersFunctionparseBenchmarkAutostart
( url: string | null | undefined, )
src/__automation__/benchmarkRoute.ts:37
↓ 22 callersMethodsetValue
( page: T, key: keyof (typeof this.pageStates)[T], value: any, )
src/store/UIStore.ts:133
↓ 22 callersMethodsimulateHeaders
(status: number, statusText = 'OK')
src/api/__tests__/openai.test.ts:415
↓ 21 callersFunctionmergeReports
( reports: RawReport[], drop: Set<string>, )
e2e/scripts/merge-bench-reports.ts:318
↓ 21 callersFunctionsetupEligible
()
src/store/__tests__/TTSStore.test.ts:489
↓ 20 callersFunctioncreateLocalPal
(overrides: Partial<Pal> = {})
src/screens/PalsScreen/components/SquarePalCard/__tests__/SquarePalCard.test.tsx:37
↓ 20 callersFunctionmakeDerivedTurn
( steps: AgentStep[], overrides: Partial<MessageType.DerivedAssistantTurn> = {}, )
src/components/Message/__tests__/Message.assistantTurn.test.tsx:88
↓ 20 callersMethodnavigateToModels
* Navigate to Models screen
e2e/pages/DrawerPage.ts:66
↓ 20 callersMethodonAssistantMessageChunk
Delta chunk from the LLM stream.
src/store/TTSStore.ts:564
↓ 20 callersFunctionsetSettings
(overrides: Record<string, any>)
src/hooks/__tests__/useChatSession.reasoning.test.ts:36
↓ 20 callersMethodsimulateLoad
()
src/api/__tests__/openai.test.ts:444
↓ 19 callersFunctionconvertToChatMessages
( messages: MessageType.Any[], isMultimodalEnabled: boolean = true, )
src/utils/chat.ts:113
↓ 19 callersMethodgetRetryDelay
(error: ErrorInfo, attemptNumber: number)
src/services/palshub/ErrorHandler.ts:158
↓ 19 callersFunctionregisterDefaultTalents
()
src/services/talents/index.ts:24
↓ 18 callersFunctioncreateExistingPal
(overrides: Partial<Pal> = {})
src/components/PalsSheets/__tests__/PalSheet.test.tsx:87
↓ 18 callersFunctiongetEngine
(id: EngineId)
src/services/tts/engineRegistry.ts:19
↓ 18 callersFunctionisPalsHubPal
(pal: Pal | PalsHubPal)
src/utils/pal-type-guards.ts:21
↓ 18 callersFunctionparseHubRunURL
(url: string)
src/services/hubRunLink.ts:57
↓ 18 callersFunctionrender
(ui: React.ReactElement, options: any = {})
src/screens/SettingsScreen/__tests__/SettingsScreen.test.tsx:19
↓ 18 callersMethodresetChat
* Reset/clear the current chat to start a new session
e2e/pages/ChatPage.ts:120
↓ 18 callersFunctionrunSnapshotMatrix
( name: string, factory: SnapshotRenderFactory<V, S>, axes: SnapshotMatrixAxes<V, S>, )
src/components/ui/__tests__/helpers/snapshotMatrix.tsx:96
↓ 18 callersMethodselectModel
* Select a model from search results by partial text match
e2e/pages/HFSearchSheet.ts:76
↓ 18 callersMethodstop
Stop any in-flight playback. Safe to call when idle.
src/services/tts/types.ts:84
↓ 18 callersFunctiontool
(name: string)
src/services/agent/__tests__/triggerMarkers.test.ts:5
↓ 18 callersMethodupdate
()
__mocks__/external/@nozbe/watermelondb.js:17
↓ 17 callersFunctionclassify
( signals: DeviceSignals, classifier: Classifier, platform: ClassifyPlatform, )
src/services/deviceRules/classify.ts:140
↓ 17 callersFunctionflushMicrotasks
()
src/store/__tests__/CheckoutFlowStore.test.ts:35
↓ 17 callersFunctiongenerateFinalSystemPrompt
( template: string, parameters: Record<string, any>, )
src/utils/palshub-template-parser.ts:173
↓ 17 callersMethodgetMarkers
( contextId: string, tools: ToolDefinition[], getFormattedChat: () => Promise<JinjaFormattedChatRe
src/services/agent/triggerMarkers.ts:16
↓ 17 callersMethodisInstalled
Returns whether the engine is ready to play (models installed, etc).
src/services/tts/types.ts:57
next →1–100 of 2,286, ranked by callers