MCPcopy Create free account

hub / github.com/MaxMiksa/Gravity / functions

Functions858 in github.com/MaxMiksa/Gravity

↓ 1 callersFunctionfill_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 callersFunctionfill_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 callersFunctionfilterHistory
* 根据分隔线和上下文长度裁剪历史消息 * * 三层过滤: * 1. 分隔线过滤:仅保留最后一个分隔线之后的消息 * 2. 轮数裁剪:按轮数(user+assistant = 1 轮)限制历史 * 3. contextLength === 'infinite' 或 undefined 时保
apps/electron/src/main/lib/chat-service.ts:130
↓ 1 callersFunctionfindGitPath
* 从系统 PATH 查找 Git * * @returns Git 可执行路径,如果未找到返回 null
apps/electron/src/main/lib/git-detector.ts:16
↓ 1 callersFunctionfindNodePath
* 从系统 PATH 查找 Node.js * * @returns Node.js 可执行路径,如果未找到返回 null
apps/electron/src/main/lib/node-detector.ts:29
↓ 1 callersFunctionfind_by_message
(tag_name: str)
scripts/history_rewrite/build_blueprint.py:231
↓ 1 callersFunctionformatInput
(input: Record<string, unknown>)
apps/electron/src/renderer/components/agent/ToolActivityItem.tsx:224
↓ 1 callersFunctiongenerateTitle
(input: GenerateTitleInput)
apps/electron/src/main/lib/chat-service.ts:398
↓ 1 callersFunctiongetBunDownloadInfo
* 获取 Bun 下载信息
apps/electron/scripts/download-bun.ts:53
↓ 1 callersFunctiongetBunExecutablePath
* 获取 Bun 运行时路径 * * 优先使用 runtime-init 检测到的路径,降级为 'bun'(依赖 PATH)。
apps/electron/src/main/lib/agent-service.ts:101
↓ 1 callersFunctiongetBunVersion
* 读取 package.json 中的 Bun 版本配置
apps/electron/scripts/download-bun.ts:230
↓ 1 callersFunctiongetBundledBunPath
()
apps/electron/src/main/lib/bun-finder.ts:61
↓ 1 callersFunctiongetCachedThemeMode
* 从 localStorage 读取缓存的主题模式
apps/electron/src/renderer/atoms/theme.ts:21
↓ 1 callersFunctiongetChannelById
(id: string)
apps/electron/src/main/lib/channel-manager.ts:144
↓ 1 callersFunctiongetContextLengthLabel
上下文长度滑块标签
apps/electron/src/renderer/components/chat/ContextSettingsPopover.tsx:31
↓ 1 callersFunctiongetConversationAttachmentsDir
(conversationId: string)
apps/electron/src/main/lib/config-paths.ts:103
↓ 1 callersFunctiongetCurrentPlatformArch
()
apps/electron/src/main/lib/bun-finder.ts:20
↓ 1 callersFunctiongetDisplayName
获取语言显示名称,未匹配的自动首字母大写
packages/ui/src/code-block/CodeBlock.tsx:96
↓ 1 callersFunctiongetDownloadUrls
* 获取下载链接 * * @param platform - 操作系统平台 * @returns 下载链接对象
apps/electron/src/main/lib/environment-checker.ts:17
↓ 1 callersFunctiongetGitRepoStatus
(dirPath: string)
apps/electron/src/main/lib/git-detector.ts:157
↓ 1 callersFunctiongetGitVersion
* 获取 Git 版本号 * * @param gitPath - Git 可执行路径 * @returns 版本号,如果无法获取返回 null
apps/electron/src/main/lib/git-detector.ts:59
↓ 1 callersFunctiongetHighlighter
* 获取或创建 Shiki 高亮器单例 * 首次调用时懒加载,resolve 后缓存实例供同步使用
packages/core/src/highlight/shiki-service.ts:101
↓ 1 callersFunctiongetIconPath
* Get the appropriate app icon path for the current platform
apps/electron/src/main/index.ts:63
↓ 1 callersFunctiongetInputSummary
(toolName: string, input: Record<string, unknown>)
apps/electron/src/renderer/components/agent/ToolActivityItem.tsx:198
↓ 1 callersFunctiongetMimeType
(ext: string)
apps/electron/src/main/lib/attachment-service.ts:92
↓ 1 callersFunctiongetModelLogoById
(modelId: string)
apps/electron/src/renderer/lib/model-logo.ts:280
↓ 1 callersFunctiongetNodeVersion
* 获取 Node.js 版本号 * * @param nodePath - Node.js 可执行路径 * @returns 版本号,如果无法获取返回 null
apps/electron/src/main/lib/node-detector.ts:71
↓ 1 callersFunctiongetRecentMessages
(id: string, limit: number)
apps/electron/src/main/lib/conversation-manager.ts:144
↓ 1 callersFunctiongetShellEnv
(shell: string)
apps/electron/src/main/lib/shell-env.ts:86
↓ 1 callersFunctiongetSpeechRecognition
获取 SpeechRecognition 构造函数
apps/electron/src/renderer/components/ai-elements/speech-button.tsx:66
↓ 1 callersFunctiongetSystemBunPath
()
apps/electron/src/main/lib/bun-finder.ts:110
↓ 1 callersFunctiongetToolIcon
(toolName: string)
apps/electron/src/renderer/components/agent/ToolActivityItem.tsx:77
↓ 1 callersFunctiongetTrayIconPath
* 获取托盘图标路径 * 所有平台统一使用 Template 图标
apps/electron/src/main/tray.ts:11
↓ 1 callersFunctiongetUpdateStatus
()
apps/electron/src/main/lib/updater/auto-updater.ts:31
↓ 1 callersFunctiongetUserShell
()
apps/electron/src/main/lib/shell-env.ts:23
↓ 1 callersFunctiongetVendorBunPath
()
apps/electron/src/main/lib/bun-finder.ts:84
↓ 1 callersFunctiongetWorkspaceCapabilities
(workspaceSlug: string)
apps/electron/src/main/lib/agent-workspace-manager.ts:382
↓ 1 callersFunctionget_bounding_box_messages
(fields_json_stream)
apps/electron/default-skills/pdf/scripts/check_bounding_boxes.py:15
↓ 1 callersFunctionget_full_annotation_field_id
(annotation)
apps/electron/default-skills/pdf/scripts/extract_form_field_info.py:9
↓ 1 callersFunctionget_referenced_files
(unpacked_dir: Path)
apps/electron/default-skills/pptx/scripts/clean.py:153
↓ 1 callersFunctionget_repo_root
()
scripts/history_rewrite/history_common.py:39
↓ 1 callersFunctionget_slide_info
(pptx_path: Path)
apps/electron/default-skills/pptx/scripts/thumbnail.py:95
↓ 1 callersFunctionget_slide_referenced_files
(unpacked_dir: Path)
apps/electron/default-skills/pptx/scripts/clean.py:106
↓ 1 callersFunctionget_slides_in_sldidlst
(unpacked_dir: Path)
apps/electron/default-skills/pptx/scripts/clean.py:27
↓ 1 callersFunctionget_tracked_change_authors
(doc_xml_path: Path)
apps/electron/default-skills/pptx/scripts/office/helpers/simplify_redlines.py:126
↓ 1 callersFunctionget_tracked_change_authors
(doc_xml_path: Path)
apps/electron/default-skills/docx/scripts/office/helpers/simplify_redlines.py:126
↓ 1 callersFunctionget_tracked_change_authors
(doc_xml_path: Path)
apps/electron/default-skills/xlsx/scripts/office/helpers/simplify_redlines.py:126
↓ 1 callersFunctiongit_index_has_changes
()
scripts/history_rewrite/replay_blueprint.py:41
↓ 1 callersFunctiongroupActivities
(activities: ToolActivity[])
apps/electron/src/renderer/atoms/agent-atoms.ts:97
↓ 1 callersFunctiongroupByChannel
按渠道分组模型选项
apps/electron/src/renderer/components/chat/ModelSelector.tsx:54
↓ 1 callersFunctionhandleCreate
()
apps/electron/src/renderer/components/agent/WorkspaceSelector.tsx:74
↓ 1 callersFunctionhandleDelete
(serverName: string)
apps/electron/src/renderer/components/settings/AgentSettings.tsx:207
↓ 1 callersFunctionhandleDelete
(channel: Channel)
apps/electron/src/renderer/components/settings/ChannelSettings.tsx:49
↓ 1 callersFunctionhandleDeleteSkill
(skillSlug: string, skillName: string)
apps/electron/src/renderer/components/settings/AgentSettings.tsx:243
↓ 1 callersFunctionhandleRemoveModel
(modelId: string)
apps/electron/src/renderer/components/settings/ChannelForm.tsx:157
↓ 1 callersFunctionhandleRename
()
apps/electron/src/renderer/components/agent/WorkspaceSelector.tsx:117
↓ 1 callersFunctionhandleSaveName
()
apps/electron/src/renderer/components/settings/GeneralSettings.tsx:66
↓ 1 callersFunctionhandleSelect
(workspace: AgentWorkspace)
apps/electron/src/renderer/components/agent/WorkspaceSelector.tsx:54
↓ 1 callersFunctionhandleSelectAgentProvider
(channelId: string)
apps/electron/src/renderer/components/settings/ChannelSettings.tsx:87
↓ 1 callersFunctionhandleSelectAgentSession
(id: string)
apps/electron/src/renderer/components/app-shell/LeftSidebar.tsx:334
↓ 1 callersFunctionhandleStartDelete
(e: React.MouseEvent, wsId: string)
apps/electron/src/renderer/components/agent/WorkspaceSelector.tsx:147
↓ 1 callersFunctionhandleStartRename
(e: React.MouseEvent, ws: AgentWorkspace)
apps/electron/src/renderer/components/agent/WorkspaceSelector.tsx:107
↓ 1 callersFunctionhandleSubmit
(e: React.FormEvent)
apps/electron/src/renderer/components/settings/ChannelForm.tsx:247
↓ 1 callersFunctionhandleToggle
(serverName: string)
apps/electron/src/renderer/components/settings/AgentSettings.tsx:223
↓ 1 callersFunctionhandleToggle
(channel: Channel)
apps/electron/src/renderer/components/settings/ChannelSettings.tsx:69
↓ 1 callersFunctionhandleToggleModel
(modelId: string)
apps/electron/src/renderer/components/settings/ChannelForm.tsx:162
↓ 1 callersFunctionhas_gtimeout
()
apps/electron/default-skills/xlsx/scripts/recalc.py:32
↓ 1 callersFunctionhighlightCode
(options: HighlightOptions)
packages/core/src/highlight/shiki-service.ts:156
↓ 1 callersFunctionhtmlToMarkdown
将 TipTap 输出的 HTML 转换为 Markdown 格式
apps/electron/src/renderer/components/ai-elements/rich-text-input.tsx:33
↓ 1 callersFunctioninfer_scope
(path_list: list[str])
scripts/history_rewrite/build_blueprint.py:132
↓ 1 callersFunctioninfer_type
(operation_kinds: set[str], scope: str)
scripts/history_rewrite/build_blueprint.py:159
↓ 1 callersFunctioninitAutoUpdater
(mainWindow: BrowserWindow)
apps/electron/src/main/lib/updater/auto-updater.ts:88
↓ 1 callersFunctioninit_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 callersFunctioninitialize
()
apps/electron/src/renderer/App.tsx:16
↓ 1 callersFunctioninitializeTheme
( setThemeMode: (mode: ThemeMode) => void, setSystemIsDark: (isDark: boolean) => void, )
apps/electron/src/renderer/atoms/theme.ts:74
↓ 1 callersFunctioninitializeUpdater
( setStatus: (status: UpdateStatus) => void, )
apps/electron/src/renderer/atoms/updater.ts:46
↓ 1 callersFunctioninstallUpdate
()
apps/electron/src/renderer/atoms/updater.ts:71
↓ 1 callersFunctioninstallUpdate
()
apps/electron/src/main/lib/updater/auto-updater.ts:62
↓ 1 callersFunctionisDarkMode
()
packages/ui/src/mermaid-block/MermaidBlock.tsx:41
↓ 1 callersFunctionisImage
判断是否为图片类型
apps/electron/src/renderer/components/chat/AttachmentPreviewItem.tsx:27
↓ 1 callersFunctionisImageAttachment
(mediaType: string)
apps/electron/src/main/lib/attachment-service.ts:85
↓ 1 callersFunctionisImageFile
判断文件是否为图片类型
apps/electron/src/renderer/components/agent/AgentMessages.tsx:154
↓ 1 callersFunctionisImageUrl
判断是否为图片 URL(data:image 或 http)
apps/electron/src/renderer/components/chat/UserAvatar.tsx:24
↓ 1 callersFunctionis_ascii_only
(value: str)
scripts/history_rewrite/verify_rewrite.py:56
↓ 1 callersFunctionlistAgentSessions
()
apps/electron/src/main/lib/agent-session-manager.ts:71
↓ 1 callersFunctionlistAgentWorkspaces
()
apps/electron/src/main/lib/agent-workspace-manager.ts:99
↓ 1 callersFunctionloadShellEnv
()
apps/electron/src/main/lib/shell-env.ts:193
↓ 1 callersFunctionmain
()
apps/electron/default-skills/pptx/scripts/thumbnail.py:40
↓ 1 callersFunctionmain
()
apps/electron/default-skills/pptx/scripts/office/validate.py:25
↓ 1 callersFunctionmain
()
apps/electron/default-skills/pdf/scripts/extract_form_structure.py:91
↓ 1 callersFunctionmain
()
apps/electron/default-skills/skill-creator/scripts/package_skill.py:85
↓ 1 callersFunctionmain
()
apps/electron/default-skills/skill-creator/scripts/init_skill.py:273
↓ 1 callersFunctionmain
()
apps/electron/default-skills/docx/scripts/office/validate.py:25
↓ 1 callersFunctionmain
()
apps/electron/default-skills/xlsx/scripts/recalc.py:164
↓ 1 callersFunctionmain
()
apps/electron/default-skills/xlsx/scripts/office/validate.py:25
↓ 1 callersFunctionmain
()
apps/electron/scripts/dist.ts:157
↓ 1 callersFunctionmain
* 主函数
apps/electron/scripts/download-bun.ts:286
↓ 1 callersFunctionmain
()
scripts/history_rewrite/verify_rewrite.py:64
↓ 1 callersFunctionmain
()
scripts/history_rewrite/build_blueprint.py:267
↓ 1 callersFunctionmain
()
scripts/history_rewrite/replay_blueprint.py:46
← previousnext →401–500 of 858, ranked by callers