Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codexu/note-gen
/ functions
Functions
2,812 in github.com/codexu/note-gen
⨍
Functions
2,812
◇
Types & classes
545
↓ 1 callers
Function
fetchRemoteProviderTemplates
(versionCode?: number | null)
src/lib/ai/provider-templates-runtime.ts:182
↓ 1 callers
Function
filePathFromCreateResult
(input: Record<string, unknown>, result: AgentToolResult)
src/lib/agent/tool-registry.ts:315
↓ 1 callers
Function
fileToBase64
(file: File)
src/lib/sync/github.ts:14
↓ 1 callers
Function
filterFileTree
(tree: DirTree[], showCloud: boolean)
src/app/core/main/file/file-manager.tsx:49
↓ 1 callers
Function
filterRAGKeywords
(keywords: {text: string, weight: number}[])
src/app/core/main/chat/chat-send.tsx:75
↓ 1 callers
Function
filterTimelineEvents
(events: AgentTraceEvent[])
src/app/core/main/chat/agent-run-timeline.tsx:95
↓ 1 callers
Function
findAndCollect
(_tree: NonNullable<typeof tree>, _targetPath: string)
src/app/core/main/editor/folder/index.tsx:38
↓ 1 callers
Function
findInTree
(tree: typeof fileTree, targetPath: string)
src/app/core/main/file/index.tsx:56
↓ 1 callers
Function
findMatchingEditorShortcut
(event: KeyboardEvent, shortcuts: EditorShortcut[])
src/lib/editor-shortcut-utils.ts:164
↓ 1 callers
Function
findRecentOnboardingFile
({ preferredPath, activeFilePath, openTabPaths, fileTree, }: { preferredPath?: string activeFilePa
src/app/core/main/editor/empty-state-actions.ts:120
↓ 1 callers
Function
findSelectedModel
()
src/app/core/main/chat/chat-footer.tsx:15
↓ 1 callers
Function
findSelectedModelDisplay
()
src/app/core/setting/components/model-select.tsx:220
↓ 1 callers
Method
finishRun
(result: AgentRuntimeResult)
src/lib/agent/agent-handler.ts:264
↓ 1 callers
Function
flattenFileTree
(tree: OnboardingFileTreeNode[])
src/app/core/main/editor/empty-state-actions.ts:99
↓ 1 callers
Function
floatTo16BitPCM
(view: DataView, offset: number, input: Float32Array)
src/lib/audio-converter.ts:89
↓ 1 callers
Method
forcePush
* 强制推送文件到远程(忽略 SHA 不匹配) * 用于用户确认后强制覆盖远程文件
src/lib/sync/sync-push-queue.ts:763
↓ 1 callers
Function
formatActiveFile
(context: AgentContextSnapshot)
src/lib/agent/prompt-assembler.ts:43
↓ 1 callers
Function
formatAgentDuration
(duration?: number)
src/app/core/main/chat/agent-display-utils.ts:30
↓ 1 callers
Function
formatAgentTarget
(target: string)
src/app/core/main/chat/agent-display-utils.ts:36
↓ 1 callers
Function
formatDayKey
(timestamp: number, timeZone?: string)
src/lib/activity/aggregate.ts:9
↓ 1 callers
Function
formatDuration
(seconds: number)
src/components/recording-indicator.tsx:16
↓ 1 callers
Function
formatDuration
(seconds: number)
src/components/recording-dialog.tsx:40
↓ 1 callers
Function
formatDuration
(duration?: number)
src/components/ui/agent-plan.tsx:705
↓ 1 callers
Function
formatDuration
(seconds: number)
src/app/core/main/mark/control-recording.tsx:63
↓ 1 callers
Function
formatEntryBucket
(timestamp: number)
src/components/activity/activity-day-detail.tsx:44
↓ 1 callers
Function
formatEntryTime
(timestamp: number)
src/components/activity/activity-day-detail.tsx:51
↓ 1 callers
Function
formatFileSize
(bytes: number)
src/app/core/main/chat/chat-input.tsx:92
↓ 1 callers
Function
formatFileSize
(bytes: number)
src/app/core/main/editor/unsupported-file.tsx:77
↓ 1 callers
Function
formatLastProcessTime
(timestamp: number | null)
src/app/core/main/editor/markdown/footer-bar/vector-calc.tsx:20
↓ 1 callers
Function
formatLastSyncTime
()
src/components/sync-status-badge.tsx:82
↓ 1 callers
Function
formatMcpCatalog
()
src/lib/agent/prompt-assembler.ts:24
↓ 1 callers
Method
formatMemoriesForPrompt
* 格式化记忆为系统提示词格式
src/lib/context/loader.ts:115
↓ 1 callers
Function
formatQuote
(context: AgentContextSnapshot)
src/lib/agent/prompt-assembler.ts:55
↓ 1 callers
Function
formatRelativeTime
(timestamp: number, locale: string)
src/app/core/main/chat/chat-header.tsx:25
↓ 1 callers
Function
formatRelativeTime
(timestamp: number, locale: string)
src/app/core/main/chat/chat-empty.tsx:20
↓ 1 callers
Function
formatRelativeTime
(timestamp: number, locale: string)
src/app/mobile/chat/components/mobile-chat-header.tsx:25
↓ 1 callers
Function
formatShortcutForDisplay
(shortcut: string)
src/lib/editor-shortcut-utils.ts:217
↓ 1 callers
Function
formatSkills
(context: AgentContextSnapshot)
src/lib/agent/prompt-assembler.ts:11
↓ 1 callers
Method
formatSkillsAsSystemPrompt
* 格式化多个 Skills 为系统提示 * * @param skills - Skills 列表 * @returns 格式化后的系统提示
src/lib/skills/executor.ts:124
↓ 1 callers
Function
formatTime
(date: Date)
src/app/core/main/editor/markdown/sync/sync-button.tsx:426
↓ 1 callers
Function
formatToolCatalog
(tools: AgentTool[])
src/lib/agent/prompt-assembler.ts:5
↓ 1 callers
Function
genId
()
src/hooks/use-toast.ts:31
↓ 1 callers
Function
generateContentHash
* 生成内容哈希值,用于去重
src/lib/rag.ts:44
↓ 1 callers
Function
generateCopyFilename
(parentPath: string, originalName: string)
src/lib/default-filename.ts:51
↓ 1 callers
Function
generateFilePreview
(filePath: string, isCustom: boolean, preferEditorContent: boolean = false)
src/app/core/main/chat/chat-input.tsx:856
↓ 1 callers
Function
generateNonce
* 生成随机 Nonce(至少16位)
src/lib/event-report.ts:79
↓ 1 callers
Method
generateRecordId
* 生成记录 ID
src/lib/skills/executor.ts:540
↓ 1 callers
Function
generateRecordImageThumbnail
(imagePath: string, maxSize: number)
src/lib/record-image-thumbnail.ts:133
↓ 1 callers
Function
generateSignature
* 生成请求签名 * 签名规则:MD5(body=${body}&nonce=${nonce}&secretKey=${secretKey}×tamp=${timestamp}&url=${url})
src/lib/event-report.ts:89
↓ 1 callers
Function
generateSkillId
(directoryName: string)
src/lib/skills/parser.ts:352
↓ 1 callers
Function
generateUUID
* 生成 UUID
src/db/memories.ts:61
↓ 1 callers
Function
generateUniqueFilename
(parentPath: string = '', baseName: string = 'Untitled')
src/lib/default-filename.ts:10
↓ 1 callers
Function
getActiveOcrProvider
()
src/lib/ocr-packages.ts:32
↓ 1 callers
Function
getActiveOcrProviderId
()
src/lib/ocr-packages.ts:26
↓ 1 callers
Function
getActualLayout
()
src/app/core/main/page.tsx:133
↓ 1 callers
Function
getAdaptiveCharsPerSecond
(backlog: number)
src/app/core/main/chat/streaming-smoother.ts:15
↓ 1 callers
Method
getAll
()
src/db/vector.ts:35
↓ 1 callers
Function
getAllActivityEvents
()
src/db/activity.ts:88
↓ 1 callers
Function
getAllConversations
()
src/db/conversations.ts:118
↓ 1 callers
Function
getAllFolderPaths
(tree: DirTree[], parentPath: string = '')
src/stores/article.ts:1783
↓ 1 callers
Function
getAllVectorDocumentFilenames
()
src/db/vector.ts:259
↓ 1 callers
Function
getAppVersion
()
src/lib/sync/auto-data-sync-queue.ts:2175
↓ 1 callers
Function
getAutoDataSyncBadgeVariant
()
src/components/title-bar-toolbars/sync-toggle.tsx:564
↓ 1 callers
Function
getAutoDataSyncDelay
()
src/lib/sync/auto-data-sync-queue.ts:843
↓ 1 callers
Function
getAutoDataSyncMetaCheckInterval
()
src/lib/sync/auto-data-sync-queue.ts:904
↓ 1 callers
Function
getAutoDataSyncStatusText
()
src/components/title-bar-toolbars/sync-toggle.tsx:537
↓ 1 callers
Function
getAvailability
(task: SpeechTask, capabilities: SpeechCapabilities)
src/lib/speech/resolver.ts:3
↓ 1 callers
Function
getAvailableOutputPath
(folder: string, rawTitle: string, isCustomWorkspace: boolean)
src/app/core/main/mark/organize-notes.tsx:103
↓ 1 callers
Function
getAvatarUrl
()
src/components/app-footbar.tsx:205
↓ 1 callers
Function
getBM25Index
()
src/lib/bm25.ts:259
↓ 1 callers
Function
getBackupMethodStatus
({ primaryBackupMethod, syncRepoState, giteeSyncRepoState, gitlabSyncProjectState, giteaSyncRepoStat
src/app/mobile/setting/components/mobile-me-helpers.ts:167
↓ 1 callers
Function
getBackupProviderName
(primaryBackupMethod: SyncProvider)
src/app/mobile/setting/components/mobile-me-helpers.ts:200
↓ 1 callers
Function
getBannerTitle
( phase: AutoDataSyncPhase, showSuccess: boolean, t: ReturnType<typeof useTranslations> )
src/components/record-sync-status-banner.tsx:100
↓ 1 callers
Function
getBatchLinkedFileReadPlan
( filePaths: string[], linkedResource: { relativePath?: string; name?: string; path?: string } )
src/lib/agent/tools/note-tools.ts:41
↓ 1 callers
Function
getBrowserTimeZone
()
src/lib/activity/index.ts:7
↓ 1 callers
Function
getChangedSyncableSettingKeys
(current: SettingState, previous: SettingState)
src/stores/setting.ts:288
↓ 1 callers
Function
getChildrenByPath
(tree: DirTree[], path: string)
src/app/mobile/writing/browser-utils.ts:32
↓ 1 callers
Function
getCommitUrl
(sha: string)
src/app/core/main/editor/markdown/sync/history-sheet.tsx:117
↓ 1 callers
Function
getCompletionFeedbackMode
( completedStep: OnboardingStepId, activeStep: OnboardingStepId | null )
src/app/core/main/editor/onboarding-state.ts:84
↓ 1 callers
Method
getConfig
* 获取配置
src/lib/sync/sync-manager.ts:172
↓ 1 callers
Method
getContextForQuery
* 获取查询的相关记忆 * - 偏好类记忆:始终包含 * - 记忆类:通过嵌入相似度匹配(阈值 0.7)
src/lib/context/loader.ts:47
↓ 1 callers
Function
getCreateOnlyExistingActiveFile
(context: AgentContextSnapshot)
src/lib/agent/runtime.ts:214
↓ 1 callers
Function
getCroppedPngBytes
(cropper: Cropper)
src/app/core/main/mark/control-scan.tsx:66
↓ 1 callers
Function
getCurrentActivityStreak
(data: ActivityCalendarData | null)
src/app/mobile/setting/components/mobile-me-helpers.ts:68
↓ 1 callers
Function
getCurrentSyncState
()
src/app/core/setting/sync/page.tsx:85
↓ 1 callers
Function
getCurrentSyncState
(platform: SyncPlatform)
src/app/mobile/setting/pages/sync/page.tsx:103
↓ 1 callers
Function
getCurrentWeekActivityCount
(data: ActivityCalendarData | null)
src/app/mobile/setting/components/mobile-me-helpers.ts:52
↓ 1 callers
Function
getDayLabel
(day: string)
src/app/mobile/record/mobile-record-stream.tsx:226
↓ 1 callers
Function
getDefaultLayout
(layoutKey: string)
src/app/core/main/page.tsx:13
↓ 1 callers
Function
getDefaultRange
()
src/lib/activity/index.ts:11
↓ 1 callers
Function
getDeviceId
* 获取设备唯一标识 * - 桌面端:使用硬件唯一标识(machine-uid) * - 移动端:使用 UUID 并持久化存储(应用卸载后会重置)
src/lib/event-report.ts:130
↓ 1 callers
Function
getDifferentExplicitTargetFile
(context: AgentContextSnapshot)
src/lib/agent/runtime.ts:200
↓ 1 callers
Function
getDisplayText
()
src/app/core/main/chat/quote-display.tsx:29
↓ 1 callers
Function
getDroppedFileMarkdownLinks
(dataTransfer: DataTransfer, currentFilePath: string)
src/app/core/main/editor/markdown/tiptap-editor.tsx:426
↓ 1 callers
Function
getDroppedFilePath
(file: File)
src/app/core/main/editor/markdown/tiptap-editor.tsx:343
↓ 1 callers
Function
getEditorContentContainerClass
(options: { centeredContent: boolean isMobile: boolean outlineOpen?: boolean outlinePosition?: 'left'
src/lib/editor-layout-styles.ts:1
↓ 1 callers
Function
getEditorSelectionFallbackResult
()
src/lib/agent/tools/editor-tools.ts:62
↓ 1 callers
Function
getEditorShortcutDefinition
(id: EditorShortcutCommandId)
src/config/editor-shortcuts.ts:85
↓ 1 callers
Function
getEmbeddingModelInfo
* 获取嵌入模型信息
src/lib/ai/embedding.ts:24
↓ 1 callers
Function
getEntryBodyText
(entry: ActivityEntry)
src/components/activity/activity-day-detail.tsx:62
← previous
next →
1,001–1,100 of 2,812, ranked by callers