Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MaxMiksa/Gravity
/ functions
Functions
858 in github.com/MaxMiksa/Gravity
⨍
Functions
858
◇
Types & classes
226
↓ 1 callers
Function
fill_pdf_fields
(input_pdf_path: str, fields_json_path: str, output_pdf_path: str)
apps/electron/default-skills/pdf/scripts/fill_fillable_fields.py:11
↓ 1 callers
Function
fill_pdf_form
(input_pdf_path, fields_json_path, output_pdf_path)
apps/electron/default-skills/pdf/scripts/fill_pdf_form_with_annotations.py:33
↓ 1 callers
Function
filterHistory
* 根据分隔线和上下文长度裁剪历史消息 * * 三层过滤: * 1. 分隔线过滤:仅保留最后一个分隔线之后的消息 * 2. 轮数裁剪:按轮数(user+assistant = 1 轮)限制历史 * 3. contextLength === 'infinite' 或 undefined 时保
apps/electron/src/main/lib/chat-service.ts:130
↓ 1 callers
Function
findGitPath
* 从系统 PATH 查找 Git * * @returns Git 可执行路径,如果未找到返回 null
apps/electron/src/main/lib/git-detector.ts:16
↓ 1 callers
Function
findNodePath
* 从系统 PATH 查找 Node.js * * @returns Node.js 可执行路径,如果未找到返回 null
apps/electron/src/main/lib/node-detector.ts:29
↓ 1 callers
Function
find_by_message
(tag_name: str)
scripts/history_rewrite/build_blueprint.py:231
↓ 1 callers
Function
formatInput
(input: Record<string, unknown>)
apps/electron/src/renderer/components/agent/ToolActivityItem.tsx:224
↓ 1 callers
Function
generateTitle
(input: GenerateTitleInput)
apps/electron/src/main/lib/chat-service.ts:398
↓ 1 callers
Function
getBunDownloadInfo
* 获取 Bun 下载信息
apps/electron/scripts/download-bun.ts:53
↓ 1 callers
Function
getBunExecutablePath
* 获取 Bun 运行时路径 * * 优先使用 runtime-init 检测到的路径,降级为 'bun'(依赖 PATH)。
apps/electron/src/main/lib/agent-service.ts:101
↓ 1 callers
Function
getBunVersion
* 读取 package.json 中的 Bun 版本配置
apps/electron/scripts/download-bun.ts:230
↓ 1 callers
Function
getBundledBunPath
()
apps/electron/src/main/lib/bun-finder.ts:61
↓ 1 callers
Function
getCachedThemeMode
* 从 localStorage 读取缓存的主题模式
apps/electron/src/renderer/atoms/theme.ts:21
↓ 1 callers
Function
getChannelById
(id: string)
apps/electron/src/main/lib/channel-manager.ts:144
↓ 1 callers
Function
getContextLengthLabel
上下文长度滑块标签
apps/electron/src/renderer/components/chat/ContextSettingsPopover.tsx:31
↓ 1 callers
Function
getConversationAttachmentsDir
(conversationId: string)
apps/electron/src/main/lib/config-paths.ts:103
↓ 1 callers
Function
getCurrentPlatformArch
()
apps/electron/src/main/lib/bun-finder.ts:20
↓ 1 callers
Function
getDisplayName
获取语言显示名称,未匹配的自动首字母大写
packages/ui/src/code-block/CodeBlock.tsx:96
↓ 1 callers
Function
getDownloadUrls
* 获取下载链接 * * @param platform - 操作系统平台 * @returns 下载链接对象
apps/electron/src/main/lib/environment-checker.ts:17
↓ 1 callers
Function
getGitRepoStatus
(dirPath: string)
apps/electron/src/main/lib/git-detector.ts:157
↓ 1 callers
Function
getGitVersion
* 获取 Git 版本号 * * @param gitPath - Git 可执行路径 * @returns 版本号,如果无法获取返回 null
apps/electron/src/main/lib/git-detector.ts:59
↓ 1 callers
Function
getHighlighter
* 获取或创建 Shiki 高亮器单例 * 首次调用时懒加载,resolve 后缓存实例供同步使用
packages/core/src/highlight/shiki-service.ts:101
↓ 1 callers
Function
getIconPath
* Get the appropriate app icon path for the current platform
apps/electron/src/main/index.ts:63
↓ 1 callers
Function
getInputSummary
(toolName: string, input: Record<string, unknown>)
apps/electron/src/renderer/components/agent/ToolActivityItem.tsx:198
↓ 1 callers
Function
getMimeType
(ext: string)
apps/electron/src/main/lib/attachment-service.ts:92
↓ 1 callers
Function
getModelLogoById
(modelId: string)
apps/electron/src/renderer/lib/model-logo.ts:280
↓ 1 callers
Function
getNodeVersion
* 获取 Node.js 版本号 * * @param nodePath - Node.js 可执行路径 * @returns 版本号,如果无法获取返回 null
apps/electron/src/main/lib/node-detector.ts:71
↓ 1 callers
Function
getRecentMessages
(id: string, limit: number)
apps/electron/src/main/lib/conversation-manager.ts:144
↓ 1 callers
Function
getShellEnv
(shell: string)
apps/electron/src/main/lib/shell-env.ts:86
↓ 1 callers
Function
getSpeechRecognition
获取 SpeechRecognition 构造函数
apps/electron/src/renderer/components/ai-elements/speech-button.tsx:66
↓ 1 callers
Function
getSystemBunPath
()
apps/electron/src/main/lib/bun-finder.ts:110
↓ 1 callers
Function
getToolIcon
(toolName: string)
apps/electron/src/renderer/components/agent/ToolActivityItem.tsx:77
↓ 1 callers
Function
getTrayIconPath
* 获取托盘图标路径 * 所有平台统一使用 Template 图标
apps/electron/src/main/tray.ts:11
↓ 1 callers
Function
getUpdateStatus
()
apps/electron/src/main/lib/updater/auto-updater.ts:31
↓ 1 callers
Function
getUserShell
()
apps/electron/src/main/lib/shell-env.ts:23
↓ 1 callers
Function
getVendorBunPath
()
apps/electron/src/main/lib/bun-finder.ts:84
↓ 1 callers
Function
getWorkspaceCapabilities
(workspaceSlug: string)
apps/electron/src/main/lib/agent-workspace-manager.ts:382
↓ 1 callers
Function
get_bounding_box_messages
(fields_json_stream)
apps/electron/default-skills/pdf/scripts/check_bounding_boxes.py:15
↓ 1 callers
Function
get_full_annotation_field_id
(annotation)
apps/electron/default-skills/pdf/scripts/extract_form_field_info.py:9
↓ 1 callers
Function
get_referenced_files
(unpacked_dir: Path)
apps/electron/default-skills/pptx/scripts/clean.py:153
↓ 1 callers
Function
get_repo_root
()
scripts/history_rewrite/history_common.py:39
↓ 1 callers
Function
get_slide_info
(pptx_path: Path)
apps/electron/default-skills/pptx/scripts/thumbnail.py:95
↓ 1 callers
Function
get_slide_referenced_files
(unpacked_dir: Path)
apps/electron/default-skills/pptx/scripts/clean.py:106
↓ 1 callers
Function
get_slides_in_sldidlst
(unpacked_dir: Path)
apps/electron/default-skills/pptx/scripts/clean.py:27
↓ 1 callers
Function
get_tracked_change_authors
(doc_xml_path: Path)
apps/electron/default-skills/pptx/scripts/office/helpers/simplify_redlines.py:126
↓ 1 callers
Function
get_tracked_change_authors
(doc_xml_path: Path)
apps/electron/default-skills/docx/scripts/office/helpers/simplify_redlines.py:126
↓ 1 callers
Function
get_tracked_change_authors
(doc_xml_path: Path)
apps/electron/default-skills/xlsx/scripts/office/helpers/simplify_redlines.py:126
↓ 1 callers
Function
git_index_has_changes
()
scripts/history_rewrite/replay_blueprint.py:41
↓ 1 callers
Function
groupActivities
(activities: ToolActivity[])
apps/electron/src/renderer/atoms/agent-atoms.ts:97
↓ 1 callers
Function
groupByChannel
按渠道分组模型选项
apps/electron/src/renderer/components/chat/ModelSelector.tsx:54
↓ 1 callers
Function
handleCreate
()
apps/electron/src/renderer/components/agent/WorkspaceSelector.tsx:74
↓ 1 callers
Function
handleDelete
(serverName: string)
apps/electron/src/renderer/components/settings/AgentSettings.tsx:207
↓ 1 callers
Function
handleDelete
(channel: Channel)
apps/electron/src/renderer/components/settings/ChannelSettings.tsx:49
↓ 1 callers
Function
handleDeleteSkill
(skillSlug: string, skillName: string)
apps/electron/src/renderer/components/settings/AgentSettings.tsx:243
↓ 1 callers
Function
handleRemoveModel
(modelId: string)
apps/electron/src/renderer/components/settings/ChannelForm.tsx:157
↓ 1 callers
Function
handleRename
()
apps/electron/src/renderer/components/agent/WorkspaceSelector.tsx:117
↓ 1 callers
Function
handleSaveName
()
apps/electron/src/renderer/components/settings/GeneralSettings.tsx:66
↓ 1 callers
Function
handleSelect
(workspace: AgentWorkspace)
apps/electron/src/renderer/components/agent/WorkspaceSelector.tsx:54
↓ 1 callers
Function
handleSelectAgentProvider
(channelId: string)
apps/electron/src/renderer/components/settings/ChannelSettings.tsx:87
↓ 1 callers
Function
handleSelectAgentSession
(id: string)
apps/electron/src/renderer/components/app-shell/LeftSidebar.tsx:334
↓ 1 callers
Function
handleStartDelete
(e: React.MouseEvent, wsId: string)
apps/electron/src/renderer/components/agent/WorkspaceSelector.tsx:147
↓ 1 callers
Function
handleStartRename
(e: React.MouseEvent, ws: AgentWorkspace)
apps/electron/src/renderer/components/agent/WorkspaceSelector.tsx:107
↓ 1 callers
Function
handleSubmit
(e: React.FormEvent)
apps/electron/src/renderer/components/settings/ChannelForm.tsx:247
↓ 1 callers
Function
handleToggle
(serverName: string)
apps/electron/src/renderer/components/settings/AgentSettings.tsx:223
↓ 1 callers
Function
handleToggle
(channel: Channel)
apps/electron/src/renderer/components/settings/ChannelSettings.tsx:69
↓ 1 callers
Function
handleToggleModel
(modelId: string)
apps/electron/src/renderer/components/settings/ChannelForm.tsx:162
↓ 1 callers
Function
has_gtimeout
()
apps/electron/default-skills/xlsx/scripts/recalc.py:32
↓ 1 callers
Function
highlightCode
(options: HighlightOptions)
packages/core/src/highlight/shiki-service.ts:156
↓ 1 callers
Function
htmlToMarkdown
将 TipTap 输出的 HTML 转换为 Markdown 格式
apps/electron/src/renderer/components/ai-elements/rich-text-input.tsx:33
↓ 1 callers
Function
infer_scope
(path_list: list[str])
scripts/history_rewrite/build_blueprint.py:132
↓ 1 callers
Function
infer_type
(operation_kinds: set[str], scope: str)
scripts/history_rewrite/build_blueprint.py:159
↓ 1 callers
Function
initAutoUpdater
(mainWindow: BrowserWindow)
apps/electron/src/main/lib/updater/auto-updater.ts:88
↓ 1 callers
Function
init_skill
Initialize a new skill directory with template SKILL.md. Args: skill_name: Name of the skill path: Path where the skill dire
apps/electron/default-skills/skill-creator/scripts/init_skill.py:194
↓ 1 callers
Function
initialize
()
apps/electron/src/renderer/App.tsx:16
↓ 1 callers
Function
initializeTheme
( setThemeMode: (mode: ThemeMode) => void, setSystemIsDark: (isDark: boolean) => void, )
apps/electron/src/renderer/atoms/theme.ts:74
↓ 1 callers
Function
initializeUpdater
( setStatus: (status: UpdateStatus) => void, )
apps/electron/src/renderer/atoms/updater.ts:46
↓ 1 callers
Function
installUpdate
()
apps/electron/src/renderer/atoms/updater.ts:71
↓ 1 callers
Function
installUpdate
()
apps/electron/src/main/lib/updater/auto-updater.ts:62
↓ 1 callers
Function
isDarkMode
()
packages/ui/src/mermaid-block/MermaidBlock.tsx:41
↓ 1 callers
Function
isImage
判断是否为图片类型
apps/electron/src/renderer/components/chat/AttachmentPreviewItem.tsx:27
↓ 1 callers
Function
isImageAttachment
(mediaType: string)
apps/electron/src/main/lib/attachment-service.ts:85
↓ 1 callers
Function
isImageFile
判断文件是否为图片类型
apps/electron/src/renderer/components/agent/AgentMessages.tsx:154
↓ 1 callers
Function
isImageUrl
判断是否为图片 URL(data:image 或 http)
apps/electron/src/renderer/components/chat/UserAvatar.tsx:24
↓ 1 callers
Function
is_ascii_only
(value: str)
scripts/history_rewrite/verify_rewrite.py:56
↓ 1 callers
Function
listAgentSessions
()
apps/electron/src/main/lib/agent-session-manager.ts:71
↓ 1 callers
Function
listAgentWorkspaces
()
apps/electron/src/main/lib/agent-workspace-manager.ts:99
↓ 1 callers
Function
loadShellEnv
()
apps/electron/src/main/lib/shell-env.ts:193
↓ 1 callers
Function
main
()
apps/electron/default-skills/pptx/scripts/thumbnail.py:40
↓ 1 callers
Function
main
()
apps/electron/default-skills/pptx/scripts/office/validate.py:25
↓ 1 callers
Function
main
()
apps/electron/default-skills/pdf/scripts/extract_form_structure.py:91
↓ 1 callers
Function
main
()
apps/electron/default-skills/skill-creator/scripts/package_skill.py:85
↓ 1 callers
Function
main
()
apps/electron/default-skills/skill-creator/scripts/init_skill.py:273
↓ 1 callers
Function
main
()
apps/electron/default-skills/docx/scripts/office/validate.py:25
↓ 1 callers
Function
main
()
apps/electron/default-skills/xlsx/scripts/recalc.py:164
↓ 1 callers
Function
main
()
apps/electron/default-skills/xlsx/scripts/office/validate.py:25
↓ 1 callers
Function
main
()
apps/electron/scripts/dist.ts:157
↓ 1 callers
Function
main
* 主函数
apps/electron/scripts/download-bun.ts:286
↓ 1 callers
Function
main
()
scripts/history_rewrite/verify_rewrite.py:64
↓ 1 callers
Function
main
()
scripts/history_rewrite/build_blueprint.py:267
↓ 1 callers
Function
main
()
scripts/history_rewrite/replay_blueprint.py:46
← previous
next →
401–500 of 858, ranked by callers