MCPcopy Index your code

hub / github.com/codexu/note-gen / functions

Functions2,812 in github.com/codexu/note-gen

↓ 399 callersMethodpush
(value: T)
src/lib/ai/tauri-client.ts:55
↓ 396 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:13
↓ 229 callersFunctiontoast
({ ...props }: Toast)
src/hooks/use-toast.ts:146
↓ 183 callersMethodrun
(input: AgentRuntimeInput, callbacks: AgentRuntimeCallbacks = {})
src/lib/agent/runtime.ts:512
↓ 167 callersMethodgetState
* 获取同步状态
src/lib/sync/sync-manager.ts:179
↓ 136 callersFunctiongetFilePathOptions
(relativePath: string)
src/lib/workspace.ts:43
↓ 124 callersMethodemit
( event: T, payload: AgentEventPayloads[T] )
src/lib/agent/event-bus.ts:45
↓ 117 callersMethodexecute
( userInput: string, contextOrMessages?: string | OpenAI.Chat.ChatCompletionMessageParam[], imageU
src/lib/agent/agent-handler.ts:47
↓ 92 callersFunctiondebugAutoDataSync
(message: string, details?: Record<string, unknown>)
src/lib/sync/auto-data-sync-queue.ts:276
↓ 92 callersFunctionfetch
(input: string, init?: RequestInit & ClientOptions)
src/lib/sync/encode-fetch.ts:6
↓ 87 callersFunctiongetSyncRepoName
(platform: 'github' | 'gitee' | 'gitlab' | 'gitea')
src/lib/sync/repo-utils.ts:52
↓ 87 callersMethodon
(event: T, handler: AgentEventHandler<T>)
src/lib/agent/event-bus.ts:34
↓ 71 callersFunctionlogPerf
(step: string, payload: Record<string, unknown> = {})
src/lib/sync/s3.ts:385
↓ 70 callersFunctiongetWorkspacePath
()
src/lib/workspace.ts:18
↓ 66 callersFunctiongetDb
()
src/db/index.ts:8
↓ 57 callersMethodall
()
src/lib/agent/trace-recorder.ts:54
↓ 40 callersFunctionagentDebugLog
(event: string, payload?: unknown)
src/lib/agent/debug-log.ts:76
↓ 37 callersFunctionadaptLegacyTool
(config: { name: string title: string description?: string category: AgentTool['category'] risk: Age
src/lib/agent/tool-registry.ts:140
↓ 35 callersMethoddelete
* 删除文档 * @param docId 文档ID
src/lib/bm25.ts:202
↓ 35 callersFunctiongetPerfNow
()
src/lib/sync/webdav.ts:20
↓ 34 callersFunctionupdateState
(next: Partial<AutoDataSyncState>)
src/lib/sync/auto-data-sync-queue.ts:281
↓ 33 callersFunctiondebugSyncPath
(_scope: string, _payload: Record<string, unknown>)
src/lib/sync/remote-file.ts:9
↓ 33 callersFunctionhexToHsl
(hex: string)
src/app/mobile/setting/pages/theme/page.tsx:334
↓ 33 callersFunctionhslToHex
(hsl: HSLValue)
src/lib/theme-utils.ts:137
↓ 32 callersFunctionhexToHsl
(hex: string)
src/app/core/setting/general/interface-settings/custom-theme.tsx:79
↓ 31 callersFunctioncomputedParentPath
(item: DirTree)
src/lib/path.ts:11
↓ 31 callersFunctiondebugSyncPerf
(_scope: string, _payload: Record<string, unknown>)
src/lib/sync/remote-file.ts:15
↓ 29 callersFunctionlogPerf
(step: string, payload: Record<string, unknown> = {})
src/app/core/main/editor/markdown/sync/sync-button.tsx:154
↓ 27 callersFunctionroundMs
(value: number)
src/lib/sync/webdav.ts:24
↓ 26 callersMethodadd
(event: Omit<AgentTraceEvent, 'id' | 'runId' | 'timestamp'> & { id?: string })
src/lib/agent/trace-recorder.ts:32
↓ 26 callersFunctionensureSafeWorkspaceRelativePath
(relativePath: string)
src/lib/workspace.ts:177
↓ 26 callersFunctiongetStore
()
src/stores/article.ts:40
↓ 24 callersMethodadd
(doc: VectorDocument)
src/db/vector.ts:83
↓ 23 callersFunctioncreateOpenAIClient
(AiConfig?: AiConfig)
src/lib/ai/utils.ts:274
↓ 22 callersFunctionasString
(value: unknown)
src/lib/agent/tool-registry.ts:69
↓ 21 callersFunctioncompactText
(value?: string)
src/app/core/main/mark/mark-list-item-content.tsx:26
↓ 21 callersFunctiongetAISettings
(modelType?: string)
src/lib/ai/utils.ts:44
↓ 21 callersFunctiongetCurrentFolder
(path: string, fileTree: DirTree[])
src/lib/path.ts:25
↓ 21 callersFunctionisMobileDevice
()
src/lib/check.ts:8
↓ 21 callersFunctionuseIsMobile
()
src/hooks/use-mobile.tsx:5
↓ 20 callersFunctionbuildRepoContentPath
(options: { path?: string filename?: string preserveWhitespace?: boolean })
src/lib/sync/remote-file.ts:48
↓ 20 callersFunctionreadFile
(fileName: string, filePath: string)
src/lib/agent/tools/system-tools.ts:177
↓ 18 callersFunctionhasConfiguredText
(value: string | null | undefined)
src/lib/sync/sync-manager.ts:822
↓ 16 callersMethodabort
()
src/stores/speech-recognition.ts:34
↓ 16 callersFunctiondebugSettingsSync
(message: string, details?: Record<string, unknown>)
src/stores/settingsSync.ts:26
↓ 16 callersFunctiononChange
()
src/hooks/use-mobile.tsx:10
↓ 16 callersFunctionshowImageFailureToast
(description: string)
src/app/core/main/chat/chat-input.tsx:286
↓ 16 callersFunctionupdateMark
(mark: Mark)
src/db/marks.ts:155
↓ 15 callersFunctiongetGiteaApiBaseUrl
()
src/lib/sync/gitea.ts:29
↓ 15 callersFunctionvalidateAIService
(baseURL: string | undefined)
src/lib/ai/utils.ts:95
↓ 14 callersFunctioninsertMark
(mark: Partial<Mark>)
src/db/marks.ts:126
↓ 14 callersFunctionprepareMessages
( text: string, baseMessages?: OpenAI.Chat.ChatCompletionMessageParam[] )
src/lib/ai/utils.ts:181
↓ 14 callersFunctionpullRemoteFile
(path: string)
src/lib/sync/auto-sync.ts:392
↓ 14 callersFunctionresultFromLegacy
(result: ToolResult)
src/lib/agent/tool-registry.ts:56
↓ 14 callersFunctionwithEditorFastAiRequestOptions
( params: T, aiConfig?: AiConfig )
src/lib/ai/utils.ts:313
↓ 13 callersFunctiondecodeBase64ToString
(content: unknown)
src/lib/sync/remote-file.ts:131
↓ 13 callersFunctiongetRemoteFileSha
(fileInfo: unknown)
src/app/core/main/editor/markdown/sync/sync-button.tsx:46
↓ 13 callersFunctionpreviewText
(value: unknown, maxLength = 240)
src/lib/agent/debug-log.ts:94
↓ 13 callersFunctionsetAutoDataSyncApplyingRemote
(value: boolean)
src/lib/sync/auto-data-sync-queue.ts:305
↓ 12 callersFunctiondeleteVectorDocumentsByFilename
(filename: string)
src/db/vector.ts:173
↓ 12 callersFunctiongetFiles
({ path, repo, sha }: { path: string; repo: string; sha?: string })
src/lib/sync/gitea.ts:250
↓ 12 callersFunctiongetVectorDocumentKey
(filePath)
src/lib/vector-document-key.js:1
↓ 12 callersFunctionhandleAIError
(error: any, showToast = true)
src/lib/ai/utils.ts:158
↓ 12 callersFunctionhandleRAGError
* 统一错误处理函数
src/lib/rag.ts:28
↓ 12 callersFunctionisActive
(name: string, attrs?: Record<string, unknown>)
src/app/core/main/editor/markdown/bubble-menu.tsx:505
↓ 12 callersFunctionnormalizeShortcut
(shortcut: string)
src/lib/editor-shortcut-utils.ts:84
↓ 11 callersFunctionfinalize
(result: ToolResult)
src/lib/agent/tools/editor-tools.ts:171
↓ 11 callersMethodgetSkill
* 根据 ID 获取 Skill
src/lib/skills/manager.ts:608
↓ 11 callersFunctionsaveLocalFile
(path: string, content: string)
src/lib/sync/auto-sync.ts:508
↓ 11 callersFunctionstringifyToolResult
(result: AgentToolResult)
src/lib/agent/runtime.ts:53
↓ 10 callersMethoddisconnect
* 断开连接
src/lib/mcp/client.ts:149
↓ 10 callersFunctionenqueueRecordsAutoSync
(reason: string)
src/db/marks.ts:82
↓ 10 callersFunctionisAbsoluteFsPath
(path: string)
src/lib/workspace.ts:9
↓ 10 callersFunctionsetLocalRecordedSha
(filePath: string, sha: string)
src/lib/sync/auto-sync.ts:69
↓ 10 callersFunctionshouldSkipForTemporaryBlock
(config: WebDAVConfig, scope: string, payload: Record<string, unknown> = {})
src/lib/sync/webdav.ts:91
↓ 10 callersFunctiontoolResultToLegacy
(result: AgentToolResult)
src/lib/agent/runtime.ts:44
↓ 10 callersFunctiontruncateActivityText
(value: string | undefined, maxLength = 120)
src/lib/activity/events.ts:15
↓ 10 callersFunctionupdateVectorIndexedState
(oldPath: string | null, newPath: string | null, updatedAt?: number | null)
src/lib/agent/tools/note-tools.ts:102
↓ 9 callersFunctionbuildAuthHeader
* 构建 Basic Auth 头
src/lib/sync/webdav.ts:16
↓ 9 callersMethodclear
* 清空索引
src/lib/bm25.ts:230
↓ 9 callersFunctiondownloadAutoDataSyncNow
( mode: 'auto' | 'manual' = 'manual', knownRemoteMeta: AutoDataSyncRemoteMeta | null = null, options: Au
src/lib/sync/auto-data-sync-queue.ts:453
↓ 9 callersFunctionexecuteStructuralToolWithChange
( input: Record<string, unknown>, legacy: Tool, type: AgentChange['type'], summary: (input: Record<str
src/lib/agent/tool-registry.ts:505
↓ 9 callersFunctionfetchEmbedding
(text: string)
src/lib/ai/embedding.ts:149
↓ 9 callersFunctiongetMarkTypeListBadgeClasses
(type: Mark["type"], textSize?: string)
src/app/core/main/mark/mark-type-meta.ts:54
↓ 9 callersFunctiongetPathPrefix
(config: WebDAVConfig)
src/lib/sync/webdav.ts:133
↓ 9 callersFunctiongetProxyConfig
()
src/lib/sync/gitea.ts:73
↓ 9 callersFunctiongetSearchAndReplaceStorage
(editor: Editor)
src/app/core/main/editor/markdown/search-replace-panel.tsx:29
↓ 9 callersFunctiongetUserInfo
(token?: string)
src/lib/sync/github.ts:298
↓ 9 callersFunctionhasFileManagerDragData
(dataTransfer: DataTransfer)
src/app/core/main/file/file-dnd.ts:63
↓ 9 callersMethodinitialize
* 初始化协议
src/lib/mcp/client.ts:67
↓ 9 callersFunctionisHttpUrl
(url?: string | null)
src/lib/utils.ts:17
↓ 9 callersMethodlogSync
* 记录同步日志
src/lib/sync/sync-manager.ts:720
↓ 9 callersFunctionmarkTemporaryBlocked
(config: WebDAVConfig, response: Response, scope: string)
src/lib/sync/webdav.ts:60
↓ 9 callersFunctionnormalizeLocalFilePath
(path: string)
src/app/core/main/editor/markdown/tiptap-editor.tsx:202
↓ 9 callersFunctionshowSidebarTab
(tab: 'files' | 'notes')
src/app/core/layout.tsx:168
↓ 9 callersFunctionupdateAiConfig
(config: AiConfig)
src/app/core/setting/ai/page.tsx:127
↓ 9 callersFunctionupdateFileSyncTime
(filePath: string)
src/lib/sync/conflict-resolution.ts:355
↓ 9 callersFunctionuseToast
()
src/hooks/use-toast.ts:175
↓ 8 callersFunctionbuildWebDAVBaseUrl
(config: WebDAVConfig)
src/lib/sync/webdav.ts:108
↓ 8 callersFunctionclearAiSuggestionHighlight
(editor: Editor)
src/app/core/main/editor/markdown/ai-suggestion-highlight.ts:62
next →1–100 of 2,812, ranked by callers