MCPcopy Create free account

hub / github.com/clark-maybe/mole-extension / functions

Functions978 in github.com/clark-maybe/mole-extension

↓ 161 callersMethodget
获取 Agent 实例
src/ai/agent-registry.ts:77
↓ 111 callersMethodadd
* 创建新的 todo 项(状态为 pending) * 达上限时返回 null
src/ai/todo-manager.ts:75
↓ 102 callersMethodremove
* 删除项(仅 pending 状态允许删除)
src/ai/todo-manager.ts:135
↓ 100 callersFunctionescapeHtml
(text: string)
src/content/float-ball/markdown.ts:6
↓ 86 callersMethodon
注册消息处理
src/lib/channel.ts:29
↓ 81 callersMethodsend
发送消息(支持回调)
src/lib/channel.ts:44
↓ 65 callersFunctionsaveSnapshot
()
src/content/float-ball.ts:2145
↓ 45 callersFunctionupdateInputUI
()
src/content/float-ball.ts:1615
↓ 42 callersMethodclear
清理所有 Agent 实例(handleChat 结束时调用)
src/ai/agent-registry.ts:153
↓ 34 callersFunctionpushEvent
(event: { type: string; content: string })
src/background/session-channel-handlers.ts:726
↓ 30 callersFunctionshowResult
()
src/content/float-ball.ts:1880
↓ 26 callersFunctionrenderTaskRuntimeBoard
()
src/content/float-ball.ts:2247
↓ 25 callersMethodbroadcast
background侧:广播消息到所有注册tab + extension page
src/lib/channel.ts:136
↓ 24 callersMethodoff
取消注册
src/lib/channel.ts:37
↓ 23 callersFunctionbuildTaskTitle
(raw?: string)
src/content/float-ball/text-utils.ts:262
↓ 21 callersFunctionnormalizeText
(raw: unknown)
src/functions/site-experience.ts:68
↓ 21 callersFunctionsimEvent
(taskId: string, type: string, content: string)
src/content/float-ball.ts:3866
↓ 20 callersFunctionevaluateDOM
( tabId: number, selector: string | undefined, jsCode: string, // 代码中用 __el__ 引用元素,用 __els__ 引用元素数组 op
src/functions/cdp-dom.ts:122
↓ 18 callersFunctionappendToResult
(html: string)
src/content/float-ball.ts:1942
↓ 18 callersMethodcreate
创建并注册一个新的 Agent 实例
src/ai/agent-registry.ts:60
↓ 18 callersFunctiondelay
(ms: number)
src/content/float-ball.ts:3863
↓ 17 callersFunctionclipText
(raw: unknown, max: number = 180)
src/content/page-grounding.ts:86
↓ 17 callersFunctionrespond
(payload: Record<string, unknown>)
src/background/session-channel-handlers.ts:82
↓ 17 callersMethodsendToTab
发送消息到指定tab
src/lib/channel.ts:58
↓ 17 callersFunctionuseMole
()
src/content/float-ball/context/useMole.ts:8
↓ 16 callersFunctionensureSkillRegistryReady
()
src/functions/skill-registry.ts:498
↓ 16 callersFunctionnormalizeText
(raw: unknown)
src/content/page-grounding.ts:84
↓ 15 callersFunctionformatDuration
(ms?: number | null)
src/content/float-ball/text-utils.ts:229
↓ 15 callersMethodupdate
* 更新项的状态 * * 合法转换: * pending → in_progress(前提:当前没有其他 in_progress 项) * pending → completed(允许跳过) * in_progress → completed *
src/ai/todo-manager.ts:108
↓ 14 callersFunctionformatClock
(ts?: number | null)
src/content/float-ball/text-utils.ts:223
↓ 14 callersFunctionhideResult
()
src/content/float-ball.ts:1885
↓ 14 callersFunctionpersistRuntimeSessions
()
src/background/session-persistence.ts:69
↓ 14 callersFunctionsanitizeUserFacingRuntimeText
(raw: unknown, mode: RuntimeTextMode, fallback?: string)
src/content/float-ball/text-utils.ts:65
↓ 13 callersFunctionbuildSessionSyncPayload
(session: Session)
src/background/session-replay.ts:96
↓ 13 callersFunctionrespondSessionOp
(sendResponse: SessionChannelResponder, payload: unknown, label: string)
src/background/session-state.ts:121
↓ 13 callersFunctionshowPillNotice
(text: string, tone: 'success' | 'error' | 'info')
src/content/float-ball.ts:983
↓ 12 callersFunctionbuildJobSummary
(job: ResidentJob)
src/functions/resident-runtime.ts:176
↓ 12 callersFunctionpersistRuntimeStore
()
src/functions/resident-runtime.ts:163
↓ 12 callersFunctionsleep
(ms: number, signal?: AbortSignal)
src/functions/tab-utils.ts:24
↓ 11 callersFunctionevaluateDOMByNodeId
( tabId: number, nodeId: number, jsCode: string, // 代码中用 __el__ 引用元素 )
src/functions/cdp-dom.ts:164
↓ 11 callersFunctiongetTextContent
(content: string | ContentPart[])
src/ai/context-manager.ts:17
↓ 10 callersFunctionclipRuntimeText
(raw: unknown, max: number = 56)
src/content/float-ball/text-utils.ts:255
↓ 10 callersFunctiongetText
(el: Element)
src/functions/extract-data.ts:36
↓ 10 callersFunctionmaybeReturnIfEnough
(strategy: string, minCount: number = 1)
src/functions/page-repair.ts:235
↓ 10 callersFunctionsendCommand
( tabId: number, method: string, params?: Record<string, any>, )
src/lib/cdp-session.ts:224
↓ 9 callersFunctionbuildActionInfo
(target: Element)
src/content/page-grounding.ts:547
↓ 9 callersFunctionchoose
(current: string, plan: string, done: string, issue: string, ask: string)
src/content/float-ball/text-utils.ts:31
↓ 9 callersFunctionhidePillActionCard
()
src/content/float-ball.ts:1014
↓ 9 callersFunctionparseEventObject
(content: string)
src/background/session-event.ts:21
↓ 9 callersFunctiontoLocaleTime
(ts?: number)
src/functions/bookmark-ops.ts:28
↓ 9 callersFunctiontoggleSearch
(show?: boolean)
src/content/float-ball.ts:3794
↓ 8 callersFunctioncompactSessionContext
(context: InputItem[])
src/background/session-context-tasks.ts:514
↓ 8 callersFunctionensureSiteWorkflowRegistryReady
()
src/functions/site-workflow-registry.ts:321
↓ 8 callersFunctionensureToolRegistryReady
()
src/functions/registry.ts:425
↓ 8 callersFunctionflushInputStep
()
src/content/float-ball.ts:1366
↓ 8 callersFunctiongetActiveSessionId
()
src/background/session-state.ts:26
↓ 8 callersFunctionsaveRecorderState
()
src/background/workflow-recorder.ts:57
↓ 8 callersFunctionsubmitSessionOp
(op: SessionOp)
src/background/session-channel-handlers.ts:537
↓ 7 callersFunctionbuildAbortError
()
src/functions/tab-utils.ts:12
↓ 7 callersFunctionemitCheckpoint
( options: HandleChatOptions | undefined, phase: string, round: number, summary: string, context: In
src/ai/core-loop.ts:199
↓ 7 callersFunctioninlineMarkdown
(escaped: string)
src/content/float-ball/markdown.ts:21
↓ 7 callersFunctionisPlainObject
(value: unknown)
src/mcp/validator.ts:10
↓ 7 callersFunctionpersistDomainStore
()
src/functions/skill-registry.ts:97
↓ 7 callersFunctionpushGroup
(matched: boolean, group: string[])
src/functions/page-repair.ts:74
↓ 6 callersFunctionappendProcessEntry
( text: string, options?: { tone?: 'status' | 'action' | 'issue' | 'done'; icon?: string;
src/content/float-ball.ts:2070
↓ 6 callersFunctionbroadcastBgTasksChanged
()
src/background/bg-tasks-manager.ts:18
↓ 6 callersFunctioncreateSessionPushEvent
(session: Session)
src/background/session-manager.ts:522
↓ 6 callersFunctionensureAgentStatePanel
()
src/content/float-ball.ts:2167
↓ 6 callersFunctionensureReplayCacheSession
(sessionId: string)
src/content/float-ball.ts:478
↓ 6 callersFunctionevaluateOnElement
( tabId: number, params: { element_id?: string; selector?: string }, jsTemplate: string, signal?: Abor
src/functions/cdp-input.ts:113
↓ 6 callersFunctiongetActiveTurnRuntime
()
src/background/session-state.ts:45
↓ 6 callersFunctiongetSnapshotCandidates
(result: FunctionResult)
src/functions/page-repair.ts:53
↓ 6 callersFunctiongetTaskTitle
(task: TaskItem | null)
src/content/float-ball.ts:574
↓ 6 callersFunctioninferFriendlyRuntimeText
(raw: string, mode: RuntimeTextMode)
src/content/float-ball/text-utils.ts:29
↓ 6 callersMethodlistTools
* 获取所有可用工具列表 * @returns MCP 工具定义数组
src/mcp/client.ts:24
↓ 6 callersFunctionmergeRepairCandidates
( accumulator: Map<string, RepairCandidate>, candidates: RepairCandidate[], query: string, sourceStep:
src/functions/page-repair.ts:112
↓ 6 callersFunctionnormalizeText
(raw: unknown)
src/functions/page-repair.ts:51
↓ 6 callersFunctionparseColor
(color?: string, defaultColor?: { r: number; g: number; b: number; a: number })
src/functions/cdp-overlay.ts:41
↓ 6 callersFunctionpersistRuntimeSessionsImmediate
()
src/background/session-persistence.ts:82
↓ 6 callersFunctionqueryBgTasks
()
src/content/float-ball.ts:1132
↓ 6 callersFunctionresetReplayCursor
()
src/content/float-ball.ts:451
↓ 6 callersMethodtoStatusText
* 生成可读的 todo 状态文本(用于注入上下文) * 格式紧凑,对 token 友好
src/ai/todo-manager.ts:147
↓ 6 callersFunctionupdatePillState
()
src/content/float-ball.ts:1062
↓ 6 callersFunctionupdateRecorderBar
()
src/content/float-ball.ts:1473
↓ 5 callersFunctionbuildErrorContent
( code: SessionFailureCode, message: string, origin: AIErrorPayload['origin'] = 'background',
src/background/session-event.ts:311
↓ 5 callersFunctionbuildSimpleSelector
(el: Element)
src/content/float-ball.ts:1309
↓ 5 callersFunctionbuildSimpleSelector
(el: Element)
src/content/float-ball/hooks/useRecorder.ts:23
↓ 5 callersMethodcallTool
* 调用指定工具 * @param name 工具名称 * @param args 调用参数 * @param context 可选的浏览器上下文(如 tabId) * @returns MCP 工具调用结果
src/mcp/client.ts:36
↓ 5 callersFunctionchromeStorageSet
(key: string, value: unknown)
src/functions/skill-registry.ts:82
↓ 5 callersFunctionclearPillNotice
()
src/content/float-ball.ts:977
↓ 5 callersFunctionclearReplayCache
()
src/content/float-ball.ts:485
↓ 5 callersFunctionclearTransientStatus
()
src/content/float-ball.ts:2197
↓ 5 callersMethodcloseAll
任务结束时批量关闭 AI 打开的标签页(不含 keep_alive)
src/ai/tab-tracker.ts:49
↓ 5 callersFunctioncloseImageViewer
()
src/content/float-ball.ts:918
↓ 5 callersFunctiondisableApprovalCard
(card: HTMLElement, approved: boolean)
src/content/float-ball.ts:2604
↓ 5 callersFunctiondisableAskUserCard
(requestId: string, answer: string, source: 'option' | 'text')
src/content/float-ball.ts:2723
↓ 5 callersFunctionensureResidentRuntimeReady
()
src/functions/resident-runtime.ts:517
↓ 5 callersFunctionestimateStringTokens
(text: string)
src/ai/context-manager.ts:230
↓ 5 callersFunctionexecuteDebugRemotePlan
( workflowRaw: unknown, planRaw: unknown, paramsRaw: unknown, context?: ToolExecutionContext, )
src/functions/remote-workflow.ts:604
↓ 5 callersFunctionfindRunningTask
(sessionId: string)
src/background/session-manager.ts:251
next →1–100 of 978, ranked by callers