Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/codexu/note-gen
/ functions
Functions
2,812 in github.com/codexu/note-gen
⨍
Functions
2,812
◇
Types & classes
545
↓ 399 callers
Method
push
(value: T)
src/lib/ai/tauri-client.ts:55
↓ 396 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:13
↓ 229 callers
Function
toast
({ ...props }: Toast)
src/hooks/use-toast.ts:146
↓ 183 callers
Method
run
(input: AgentRuntimeInput, callbacks: AgentRuntimeCallbacks = {})
src/lib/agent/runtime.ts:512
↓ 167 callers
Method
getState
* 获取同步状态
src/lib/sync/sync-manager.ts:179
↓ 136 callers
Function
getFilePathOptions
(relativePath: string)
src/lib/workspace.ts:43
↓ 124 callers
Method
emit
( event: T, payload: AgentEventPayloads[T] )
src/lib/agent/event-bus.ts:45
↓ 117 callers
Method
execute
( userInput: string, contextOrMessages?: string | OpenAI.Chat.ChatCompletionMessageParam[], imageU
src/lib/agent/agent-handler.ts:47
↓ 92 callers
Function
debugAutoDataSync
(message: string, details?: Record<string, unknown>)
src/lib/sync/auto-data-sync-queue.ts:276
↓ 92 callers
Function
fetch
(input: string, init?: RequestInit & ClientOptions)
src/lib/sync/encode-fetch.ts:6
↓ 87 callers
Function
getSyncRepoName
(platform: 'github' | 'gitee' | 'gitlab' | 'gitea')
src/lib/sync/repo-utils.ts:52
↓ 87 callers
Method
on
(event: T, handler: AgentEventHandler<T>)
src/lib/agent/event-bus.ts:34
↓ 71 callers
Function
logPerf
(step: string, payload: Record<string, unknown> = {})
src/lib/sync/s3.ts:385
↓ 70 callers
Function
getWorkspacePath
()
src/lib/workspace.ts:18
↓ 66 callers
Function
getDb
()
src/db/index.ts:8
↓ 57 callers
Method
all
()
src/lib/agent/trace-recorder.ts:54
↓ 40 callers
Function
agentDebugLog
(event: string, payload?: unknown)
src/lib/agent/debug-log.ts:76
↓ 37 callers
Function
adaptLegacyTool
(config: { name: string title: string description?: string category: AgentTool['category'] risk: Age
src/lib/agent/tool-registry.ts:140
↓ 35 callers
Method
delete
* 删除文档 * @param docId 文档ID
src/lib/bm25.ts:202
↓ 35 callers
Function
getPerfNow
()
src/lib/sync/webdav.ts:20
↓ 34 callers
Function
updateState
(next: Partial<AutoDataSyncState>)
src/lib/sync/auto-data-sync-queue.ts:281
↓ 33 callers
Function
debugSyncPath
(_scope: string, _payload: Record<string, unknown>)
src/lib/sync/remote-file.ts:9
↓ 33 callers
Function
hexToHsl
(hex: string)
src/app/mobile/setting/pages/theme/page.tsx:334
↓ 33 callers
Function
hslToHex
(hsl: HSLValue)
src/lib/theme-utils.ts:137
↓ 32 callers
Function
hexToHsl
(hex: string)
src/app/core/setting/general/interface-settings/custom-theme.tsx:79
↓ 31 callers
Function
computedParentPath
(item: DirTree)
src/lib/path.ts:11
↓ 31 callers
Function
debugSyncPerf
(_scope: string, _payload: Record<string, unknown>)
src/lib/sync/remote-file.ts:15
↓ 29 callers
Function
logPerf
(step: string, payload: Record<string, unknown> = {})
src/app/core/main/editor/markdown/sync/sync-button.tsx:154
↓ 27 callers
Function
roundMs
(value: number)
src/lib/sync/webdav.ts:24
↓ 26 callers
Method
add
(event: Omit<AgentTraceEvent, 'id' | 'runId' | 'timestamp'> & { id?: string })
src/lib/agent/trace-recorder.ts:32
↓ 26 callers
Function
ensureSafeWorkspaceRelativePath
(relativePath: string)
src/lib/workspace.ts:177
↓ 26 callers
Function
getStore
()
src/stores/article.ts:40
↓ 24 callers
Method
add
(doc: VectorDocument)
src/db/vector.ts:83
↓ 23 callers
Function
createOpenAIClient
(AiConfig?: AiConfig)
src/lib/ai/utils.ts:274
↓ 22 callers
Function
asString
(value: unknown)
src/lib/agent/tool-registry.ts:69
↓ 21 callers
Function
compactText
(value?: string)
src/app/core/main/mark/mark-list-item-content.tsx:26
↓ 21 callers
Function
getAISettings
(modelType?: string)
src/lib/ai/utils.ts:44
↓ 21 callers
Function
getCurrentFolder
(path: string, fileTree: DirTree[])
src/lib/path.ts:25
↓ 21 callers
Function
isMobileDevice
()
src/lib/check.ts:8
↓ 21 callers
Function
useIsMobile
()
src/hooks/use-mobile.tsx:5
↓ 20 callers
Function
buildRepoContentPath
(options: { path?: string filename?: string preserveWhitespace?: boolean })
src/lib/sync/remote-file.ts:48
↓ 20 callers
Function
readFile
(fileName: string, filePath: string)
src/lib/agent/tools/system-tools.ts:177
↓ 18 callers
Function
hasConfiguredText
(value: string | null | undefined)
src/lib/sync/sync-manager.ts:822
↓ 16 callers
Method
abort
()
src/stores/speech-recognition.ts:34
↓ 16 callers
Function
debugSettingsSync
(message: string, details?: Record<string, unknown>)
src/stores/settingsSync.ts:26
↓ 16 callers
Function
onChange
()
src/hooks/use-mobile.tsx:10
↓ 16 callers
Function
showImageFailureToast
(description: string)
src/app/core/main/chat/chat-input.tsx:286
↓ 16 callers
Function
updateMark
(mark: Mark)
src/db/marks.ts:155
↓ 15 callers
Function
getGiteaApiBaseUrl
()
src/lib/sync/gitea.ts:29
↓ 15 callers
Function
validateAIService
(baseURL: string | undefined)
src/lib/ai/utils.ts:95
↓ 14 callers
Function
insertMark
(mark: Partial<Mark>)
src/db/marks.ts:126
↓ 14 callers
Function
prepareMessages
( text: string, baseMessages?: OpenAI.Chat.ChatCompletionMessageParam[] )
src/lib/ai/utils.ts:181
↓ 14 callers
Function
pullRemoteFile
(path: string)
src/lib/sync/auto-sync.ts:392
↓ 14 callers
Function
resultFromLegacy
(result: ToolResult)
src/lib/agent/tool-registry.ts:56
↓ 14 callers
Function
withEditorFastAiRequestOptions
( params: T, aiConfig?: AiConfig )
src/lib/ai/utils.ts:313
↓ 13 callers
Function
decodeBase64ToString
(content: unknown)
src/lib/sync/remote-file.ts:131
↓ 13 callers
Function
getRemoteFileSha
(fileInfo: unknown)
src/app/core/main/editor/markdown/sync/sync-button.tsx:46
↓ 13 callers
Function
previewText
(value: unknown, maxLength = 240)
src/lib/agent/debug-log.ts:94
↓ 13 callers
Function
setAutoDataSyncApplyingRemote
(value: boolean)
src/lib/sync/auto-data-sync-queue.ts:305
↓ 12 callers
Function
deleteVectorDocumentsByFilename
(filename: string)
src/db/vector.ts:173
↓ 12 callers
Function
getFiles
({ path, repo, sha }: { path: string; repo: string; sha?: string })
src/lib/sync/gitea.ts:250
↓ 12 callers
Function
getVectorDocumentKey
(filePath)
src/lib/vector-document-key.js:1
↓ 12 callers
Function
handleAIError
(error: any, showToast = true)
src/lib/ai/utils.ts:158
↓ 12 callers
Function
handleRAGError
* 统一错误处理函数
src/lib/rag.ts:28
↓ 12 callers
Function
isActive
(name: string, attrs?: Record<string, unknown>)
src/app/core/main/editor/markdown/bubble-menu.tsx:505
↓ 12 callers
Function
normalizeShortcut
(shortcut: string)
src/lib/editor-shortcut-utils.ts:84
↓ 11 callers
Function
finalize
(result: ToolResult)
src/lib/agent/tools/editor-tools.ts:171
↓ 11 callers
Method
getSkill
* 根据 ID 获取 Skill
src/lib/skills/manager.ts:608
↓ 11 callers
Function
saveLocalFile
(path: string, content: string)
src/lib/sync/auto-sync.ts:508
↓ 11 callers
Function
stringifyToolResult
(result: AgentToolResult)
src/lib/agent/runtime.ts:53
↓ 10 callers
Method
disconnect
* 断开连接
src/lib/mcp/client.ts:149
↓ 10 callers
Function
enqueueRecordsAutoSync
(reason: string)
src/db/marks.ts:82
↓ 10 callers
Function
isAbsoluteFsPath
(path: string)
src/lib/workspace.ts:9
↓ 10 callers
Function
setLocalRecordedSha
(filePath: string, sha: string)
src/lib/sync/auto-sync.ts:69
↓ 10 callers
Function
shouldSkipForTemporaryBlock
(config: WebDAVConfig, scope: string, payload: Record<string, unknown> = {})
src/lib/sync/webdav.ts:91
↓ 10 callers
Function
toolResultToLegacy
(result: AgentToolResult)
src/lib/agent/runtime.ts:44
↓ 10 callers
Function
truncateActivityText
(value: string | undefined, maxLength = 120)
src/lib/activity/events.ts:15
↓ 10 callers
Function
updateVectorIndexedState
(oldPath: string | null, newPath: string | null, updatedAt?: number | null)
src/lib/agent/tools/note-tools.ts:102
↓ 9 callers
Function
buildAuthHeader
* 构建 Basic Auth 头
src/lib/sync/webdav.ts:16
↓ 9 callers
Method
clear
* 清空索引
src/lib/bm25.ts:230
↓ 9 callers
Function
downloadAutoDataSyncNow
( mode: 'auto' | 'manual' = 'manual', knownRemoteMeta: AutoDataSyncRemoteMeta | null = null, options: Au
src/lib/sync/auto-data-sync-queue.ts:453
↓ 9 callers
Function
executeStructuralToolWithChange
( input: Record<string, unknown>, legacy: Tool, type: AgentChange['type'], summary: (input: Record<str
src/lib/agent/tool-registry.ts:505
↓ 9 callers
Function
fetchEmbedding
(text: string)
src/lib/ai/embedding.ts:149
↓ 9 callers
Function
getMarkTypeListBadgeClasses
(type: Mark["type"], textSize?: string)
src/app/core/main/mark/mark-type-meta.ts:54
↓ 9 callers
Function
getPathPrefix
(config: WebDAVConfig)
src/lib/sync/webdav.ts:133
↓ 9 callers
Function
getProxyConfig
()
src/lib/sync/gitea.ts:73
↓ 9 callers
Function
getSearchAndReplaceStorage
(editor: Editor)
src/app/core/main/editor/markdown/search-replace-panel.tsx:29
↓ 9 callers
Function
getUserInfo
(token?: string)
src/lib/sync/github.ts:298
↓ 9 callers
Function
hasFileManagerDragData
(dataTransfer: DataTransfer)
src/app/core/main/file/file-dnd.ts:63
↓ 9 callers
Method
initialize
* 初始化协议
src/lib/mcp/client.ts:67
↓ 9 callers
Function
isHttpUrl
(url?: string | null)
src/lib/utils.ts:17
↓ 9 callers
Method
logSync
* 记录同步日志
src/lib/sync/sync-manager.ts:720
↓ 9 callers
Function
markTemporaryBlocked
(config: WebDAVConfig, response: Response, scope: string)
src/lib/sync/webdav.ts:60
↓ 9 callers
Function
normalizeLocalFilePath
(path: string)
src/app/core/main/editor/markdown/tiptap-editor.tsx:202
↓ 9 callers
Function
showSidebarTab
(tab: 'files' | 'notes')
src/app/core/layout.tsx:168
↓ 9 callers
Function
updateAiConfig
(config: AiConfig)
src/app/core/setting/ai/page.tsx:127
↓ 9 callers
Function
updateFileSyncTime
(filePath: string)
src/lib/sync/conflict-resolution.ts:355
↓ 9 callers
Function
useToast
()
src/hooks/use-toast.ts:175
↓ 8 callers
Function
buildWebDAVBaseUrl
(config: WebDAVConfig)
src/lib/sync/webdav.ts:108
↓ 8 callers
Function
clearAiSuggestionHighlight
(editor: Editor)
src/app/core/main/editor/markdown/ai-suggestion-highlight.ts:62
next →
1–100 of 2,812, ranked by callers