MCPcopy Create free account

hub / github.com/MaxMiksa/Gravity / functions

Functions858 in github.com/MaxMiksa/Gravity

↓ 160 callersFunctioncn
(...inputs: ClassValue[])
apps/electron/src/renderer/lib/utils.ts:4
↓ 28 callersFunctionrun_git
( args: list[str], *, capture_output: bool = True, check: bool = True, env: dict[str, str] | None =
scripts/history_rewrite/history_common.py:29
↓ 24 callersMethodhas
(toolUseId: string)
packages/shared/src/agent/tool-matching.ts:51
↓ 11 callersFunctiongetConfigDir
()
apps/electron/src/main/lib/config-paths.ts:20
↓ 8 callersFunctionsetStatus
更新状态并推送给渲染进程
apps/electron/src/main/lib/updater/auto-updater.ts:25
↓ 7 callersFunctionformatMessageTime
(timestamp: number)
apps/electron/src/renderer/components/chat/ChatMessageItem.tsx:49
↓ 7 callersFunctiongetAgentWorkspacePath
(slug: string)
apps/electron/src/main/lib/config-paths.ts:213
↓ 7 callersFunctionreadConfig
* 读取渠道配置文件
apps/electron/src/main/lib/channel-manager.ts:58
↓ 6 callersFunctionfinalize
()
apps/electron/src/renderer/components/agent/AgentView.tsx:218
↓ 6 callersFunctiongetAgentSessionWorkspacePath
(workspaceSlug: string, sessionId: string)
apps/electron/src/main/lib/config-paths.ts:315
↓ 6 callersFunctiongetAgentWorkspacesDir
()
apps/electron/src/main/lib/config-paths.ts:194
↓ 6 callersFunctiongetModelLogo
(modelId: string, provider?: ProviderType)
apps/electron/src/renderer/lib/model-logo.ts:302
↓ 6 callersFunctionprintStepResult
打印步骤结果
apps/electron/scripts/dist.ts:87
↓ 6 callersFunctionprintStepStart
打印步骤开始
apps/electron/scripts/dist.ts:79
↓ 6 callersFunctionreadIndex
* 读取工作区索引文件
apps/electron/src/main/lib/agent-workspace-manager.ts:39
↓ 6 callersFunctionrunStep
执行命令并计时
apps/electron/scripts/dist.ts:102
↓ 6 callersFunctionupdateAgentSessionMeta
( id: string, updates: Partial<Pick<AgentSessionMeta, 'title' | 'channelId' | 'sdkSessionId' | 'workspaceI
apps/electron/src/main/lib/agent-session-manager.ts:160
↓ 6 callersFunctionupdateConversationMeta
( id: string, updates: Partial<Pick<ConversationMeta, 'title' | 'modelId' | 'channelId' | 'contextDividers
apps/electron/src/main/lib/conversation-manager.ts:219
↓ 5 callersFunction_append_xml
(xml_path: Path, root_tag: str, content: str)
apps/electron/default-skills/docx/scripts/comment.py:86
↓ 5 callersMethod_parse_id_value
(self, val: str, base: int = 16)
apps/electron/default-skills/pptx/scripts/office/validators/docx.py:251
↓ 5 callersMethod_parse_id_value
(self, val: str, base: int = 16)
apps/electron/default-skills/docx/scripts/office/validators/docx.py:251
↓ 5 callersMethod_parse_id_value
(self, val: str, base: int = 16)
apps/electron/default-skills/xlsx/scripts/office/validators/docx.py:251
↓ 5 callersFunctiondecryptApiKey
(channelId: string)
apps/electron/src/main/lib/channel-manager.ts:234
↓ 5 callersFunctiongetConversationMessagesPath
(id: string)
apps/electron/src/main/lib/config-paths.ts:73
↓ 5 callersFunctionreadIndex
* 读取会话索引文件
apps/electron/src/main/lib/agent-session-manager.ts:38
↓ 5 callersFunctionread_json
(json_path: Path)
scripts/history_rewrite/history_common.py:44
↓ 4 callersFunctionensurePluginManifest
(workspaceSlug: string, workspaceName: string)
apps/electron/src/main/lib/agent-workspace-manager.ts:260
↓ 4 callersFunctiongetAgentWorkspace
(id: string)
apps/electron/src/main/lib/agent-workspace-manager.ts:107
↓ 4 callersFunctiongetConversationMessages
(id: string)
apps/electron/src/main/lib/conversation-manager.ts:116
↓ 4 callersFunctiongetWorkspaceMcpConfig
(workspaceSlug: string)
apps/electron/src/main/lib/agent-workspace-manager.ts:285
↓ 4 callersFunctionlistChannels
()
apps/electron/src/main/lib/channel-manager.ts:134
↓ 4 callersFunctionnormalizeBaseUrl
(baseUrl: string)
packages/core/src/providers/url-utils.ts:29
↓ 4 callersFunctionnormalizeBaseUrl
* 规范化通用 Base URL(去除尾部斜杠)
apps/electron/src/main/lib/channel-manager.ts:51
↓ 4 callersFunctionprintSummary
打印汇总报告
apps/electron/scripts/dist.ts:266
↓ 4 callersFunctionreadIndex
* 读取对话索引文件
apps/electron/src/main/lib/conversation-manager.ts:35
↓ 4 callersFunctionresolveAttachmentPath
(localPath: string)
apps/electron/src/main/lib/config-paths.ts:119
↓ 4 callersFunctionrunGitCommand
* 执行 Git 命令 * * @param args - Git 命令参数 * @param cwd - 工作目录 * @returns 命令输出,如果失败返回 null
apps/electron/src/main/lib/git-detector.ts:127
↓ 4 callersFunctionwriteIndex
* 写入工作区索引文件
apps/electron/src/main/lib/agent-workspace-manager.ts:58
↓ 3 callersFunction_find_elements
(root, tag: str)
apps/electron/default-skills/pptx/scripts/office/helpers/merge_runs.py:44
↓ 3 callersFunction_find_elements
(root, tag: str)
apps/electron/default-skills/docx/scripts/office/helpers/merge_runs.py:44
↓ 3 callersFunction_find_elements
(root, tag: str)
apps/electron/default-skills/xlsx/scripts/office/helpers/merge_runs.py:44
↓ 3 callersFunction_is_run
(node)
apps/electron/default-skills/pptx/scripts/office/helpers/merge_runs.py:154
↓ 3 callersFunction_is_run
(node)
apps/electron/default-skills/docx/scripts/office/helpers/merge_runs.py:154
↓ 3 callersFunction_is_run
(node)
apps/electron/default-skills/xlsx/scripts/office/helpers/merge_runs.py:154
↓ 3 callersFunctionappendAgentMessage
(id: string, message: AgentMessage)
apps/electron/src/main/lib/agent-session-manager.ts:145
↓ 3 callersFunctionappendMessage
(id: string, message: ChatMessage)
apps/electron/src/main/lib/conversation-manager.ts:180
↓ 3 callersFunctioncheckForUpdates
()
apps/electron/src/main/lib/updater/auto-updater.ts:36
↓ 3 callersFunctionclamp
(value: number, min: number, max: number)
packages/ui/src/mermaid-block/MermaidBlock.tsx:50
↓ 3 callersFunctioncreateWindow
()
apps/electron/src/main/index.ts:76
↓ 3 callersFunctiondeleteAttachment
(localPath: string)
apps/electron/src/main/lib/attachment-service.ts:159
↓ 3 callersFunctionextractToolStarts
( contentBlocks: ContentBlock[], sdkParentToolUseId: string | null, toolIndex: ToolIndex, emittedToolS
packages/shared/src/agent/tool-matching.ts:96
↓ 3 callersFunctionformatDuration
格式化时间
apps/electron/scripts/dist.ts:65
↓ 3 callersFunctionformatTokens
格式化 token 数为可读字符串(如 1234 → "1.2k")
apps/electron/src/renderer/components/agent/ContextUsageBadge.tsx:29
↓ 3 callersFunctiongetAdapter
(provider: ProviderType)
packages/core/src/providers/index.ts:45
↓ 3 callersFunctiongetAgentSessionMessagesPath
(id: string)
apps/electron/src/main/lib/config-paths.ts:174
↓ 3 callersFunctiongetChannelLogo
(baseUrl: string)
apps/electron/src/renderer/lib/model-logo.ts:325
↓ 3 callersFunctiongetUserProfile
()
apps/electron/src/main/lib/user-profile-service.ts:18
↓ 3 callersFunctiongetWorkspaceSkills
(workspaceSlug: string)
apps/electron/src/main/lib/agent-workspace-manager.ts:324
↓ 3 callersFunctiongetWorkspaceSkillsDir
(slug: string)
apps/electron/src/main/lib/config-paths.ts:242
↓ 3 callersFunctionget_soffice_env
()
apps/electron/default-skills/docx/scripts/office/soffice.py:24
↓ 3 callersFunctionget_soffice_env
()
apps/electron/default-skills/xlsx/scripts/office/soffice.py:24
↓ 3 callersFunctionhandleItemClick
(item: SidebarItemId)
apps/electron/src/renderer/components/app-shell/LeftSidebar.tsx:212
↓ 3 callersFunctionhandleRequestDelete
(id: string)
apps/electron/src/renderer/components/app-shell/LeftSidebar.tsx:255
↓ 3 callersFunctionhighlightToTokens
(options: HighlightOptions)
packages/core/src/highlight/shiki-service.ts:196
↓ 3 callersFunctionprintSeparator
打印分隔线
apps/electron/scripts/dist.ts:74
↓ 3 callersFunctionuseSmoothStream
({ content, isStreaming, minDelay = 10, }: UseSmoothStreamOptions)
packages/ui/src/hooks/useSmoothStream.ts:58
↓ 3 callersFunctionvalidateBunExecutable
(bunPath: string)
apps/electron/src/main/lib/bun-finder.ts:139
↓ 3 callersFunctionwriteConfig
* 写入渠道配置文件
apps/electron/src/main/lib/channel-manager.ts:77
↓ 3 callersFunctionwriteIndex
* 写入会话索引文件
apps/electron/src/main/lib/agent-session-manager.ts:57
↓ 3 callersFunctionwriteIndex
* 写入对话索引文件
apps/electron/src/main/lib/conversation-manager.ts:54
↓ 2 callersFunction_add_to_content_types
(unpacked_dir: Path, dest: str)
apps/electron/default-skills/pptx/scripts/add_slide.py:130
↓ 2 callersFunction_add_to_presentation_rels
(unpacked_dir: Path, dest: str)
apps/electron/default-skills/pptx/scripts/add_slide.py:141
↓ 2 callersMethod_extract_text_content
(self, root)
apps/electron/default-skills/pptx/scripts/office/validators/redlining.py:229
↓ 2 callersMethod_extract_text_content
(self, root)
apps/electron/default-skills/docx/scripts/office/validators/redlining.py:229
↓ 2 callersMethod_extract_text_content
(self, root)
apps/electron/default-skills/xlsx/scripts/office/validators/redlining.py:229
↓ 2 callersFunction_find_elements
(root, tag: str)
apps/electron/default-skills/pptx/scripts/office/helpers/simplify_redlines.py:111
↓ 2 callersFunction_find_elements
(root, tag: str)
apps/electron/default-skills/docx/scripts/office/helpers/simplify_redlines.py:111
↓ 2 callersFunction_find_elements
(root, tag: str)
apps/electron/default-skills/xlsx/scripts/office/helpers/simplify_redlines.py:111
↓ 2 callersFunction_generate_hex_id
()
apps/electron/default-skills/docx/scripts/comment.py:68
↓ 2 callersFunction_get_author
(elem)
apps/electron/default-skills/pptx/scripts/office/helpers/simplify_redlines.py:80
↓ 2 callersFunction_get_author
(elem)
apps/electron/default-skills/docx/scripts/office/helpers/simplify_redlines.py:80
↓ 2 callersFunction_get_author
(elem)
apps/electron/default-skills/xlsx/scripts/office/helpers/simplify_redlines.py:80
↓ 2 callersFunction_get_child
(parent, tag: str)
apps/electron/default-skills/pptx/scripts/office/helpers/merge_runs.py:59
↓ 2 callersFunction_get_child
(parent, tag: str)
apps/electron/default-skills/docx/scripts/office/helpers/merge_runs.py:59
↓ 2 callersFunction_get_child
(parent, tag: str)
apps/electron/default-skills/xlsx/scripts/office/helpers/merge_runs.py:59
↓ 2 callersFunction_get_next_slide_id
(unpacked_dir: Path)
apps/electron/default-skills/pptx/scripts/add_slide.py:158
↓ 2 callersFunction_merge_tracked_changes_in
(container, tag: str)
apps/electron/default-skills/pptx/scripts/office/helpers/simplify_redlines.py:47
↓ 2 callersFunction_merge_tracked_changes_in
(container, tag: str)
apps/electron/default-skills/docx/scripts/office/helpers/simplify_redlines.py:47
↓ 2 callersFunction_merge_tracked_changes_in
(container, tag: str)
apps/electron/default-skills/xlsx/scripts/office/helpers/simplify_redlines.py:47
↓ 2 callersMethod_remove_author_tracked_changes
(self, root)
apps/electron/default-skills/pptx/scripts/office/validators/redlining.py:198
↓ 2 callersMethod_remove_author_tracked_changes
(self, root)
apps/electron/default-skills/docx/scripts/office/validators/redlining.py:198
↓ 2 callersMethod_remove_author_tracked_changes
(self, root)
apps/electron/default-skills/xlsx/scripts/office/validators/redlining.py:198
↓ 2 callersMethod_validate_single_file_xsd
(self, xml_file, base_path)
apps/electron/default-skills/pptx/scripts/office/validators/base.py:750
↓ 2 callersMethod_validate_single_file_xsd
(self, xml_file, base_path)
apps/electron/default-skills/docx/scripts/office/validators/base.py:750
↓ 2 callersMethod_validate_single_file_xsd
(self, xml_file, base_path)
apps/electron/default-skills/xlsx/scripts/office/validators/base.py:750
↓ 2 callersFunctionbuildMessageContent
* 构建包含图片和文本的消息内容
packages/core/src/providers/openai-adapter.ts:66
↓ 2 callersFunctionbuildMessageContent
* 构建包含图片和文本的消息内容 * * 如果有图片附件则返回多模态内容块数组,否则返回纯文本。
packages/core/src/providers/anthropic-adapter.ts:79
↓ 2 callersFunctionbuildMessageParts
* 构建包含图片和文本的消息部分列表
packages/core/src/providers/google-adapter.ts:80
↓ 2 callersMethodbuildTitleRequest
* 构建标题生成请求的 HTTP 配置(非流式)
packages/core/src/providers/types.ts:144
↓ 2 callersFunctionbuild_business_days
( start_date: dt.date, end_date: dt.date, holiday_set: set[dt.date], )
scripts/history_rewrite/history_common.py:57
next →1–100 of 858, ranked by callers