Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clark-maybe/mole-extension
/ functions
Functions
978 in github.com/clark-maybe/mole-extension
⨍
Functions
978
◇
Types & classes
183
↓ 161 callers
Method
get
获取 Agent 实例
src/ai/agent-registry.ts:77
↓ 111 callers
Method
add
* 创建新的 todo 项(状态为 pending) * 达上限时返回 null
src/ai/todo-manager.ts:75
↓ 102 callers
Method
remove
* 删除项(仅 pending 状态允许删除)
src/ai/todo-manager.ts:135
↓ 100 callers
Function
escapeHtml
(text: string)
src/content/float-ball/markdown.ts:6
↓ 86 callers
Method
on
注册消息处理
src/lib/channel.ts:29
↓ 81 callers
Method
send
发送消息(支持回调)
src/lib/channel.ts:44
↓ 65 callers
Function
saveSnapshot
()
src/content/float-ball.ts:2145
↓ 45 callers
Function
updateInputUI
()
src/content/float-ball.ts:1615
↓ 42 callers
Method
clear
清理所有 Agent 实例(handleChat 结束时调用)
src/ai/agent-registry.ts:153
↓ 34 callers
Function
pushEvent
(event: { type: string; content: string })
src/background/session-channel-handlers.ts:726
↓ 30 callers
Function
showResult
()
src/content/float-ball.ts:1880
↓ 26 callers
Function
renderTaskRuntimeBoard
()
src/content/float-ball.ts:2247
↓ 25 callers
Method
broadcast
background侧:广播消息到所有注册tab + extension page
src/lib/channel.ts:136
↓ 24 callers
Method
off
取消注册
src/lib/channel.ts:37
↓ 23 callers
Function
buildTaskTitle
(raw?: string)
src/content/float-ball/text-utils.ts:262
↓ 21 callers
Function
normalizeText
(raw: unknown)
src/functions/site-experience.ts:68
↓ 21 callers
Function
simEvent
(taskId: string, type: string, content: string)
src/content/float-ball.ts:3866
↓ 20 callers
Function
evaluateDOM
( tabId: number, selector: string | undefined, jsCode: string, // 代码中用 __el__ 引用元素,用 __els__ 引用元素数组 op
src/functions/cdp-dom.ts:122
↓ 18 callers
Function
appendToResult
(html: string)
src/content/float-ball.ts:1942
↓ 18 callers
Method
create
创建并注册一个新的 Agent 实例
src/ai/agent-registry.ts:60
↓ 18 callers
Function
delay
(ms: number)
src/content/float-ball.ts:3863
↓ 17 callers
Function
clipText
(raw: unknown, max: number = 180)
src/content/page-grounding.ts:86
↓ 17 callers
Function
respond
(payload: Record<string, unknown>)
src/background/session-channel-handlers.ts:82
↓ 17 callers
Method
sendToTab
发送消息到指定tab
src/lib/channel.ts:58
↓ 17 callers
Function
useMole
()
src/content/float-ball/context/useMole.ts:8
↓ 16 callers
Function
ensureSkillRegistryReady
()
src/functions/skill-registry.ts:498
↓ 16 callers
Function
normalizeText
(raw: unknown)
src/content/page-grounding.ts:84
↓ 15 callers
Function
formatDuration
(ms?: number | null)
src/content/float-ball/text-utils.ts:229
↓ 15 callers
Method
update
* 更新项的状态 * * 合法转换: * pending → in_progress(前提:当前没有其他 in_progress 项) * pending → completed(允许跳过) * in_progress → completed *
src/ai/todo-manager.ts:108
↓ 14 callers
Function
formatClock
(ts?: number | null)
src/content/float-ball/text-utils.ts:223
↓ 14 callers
Function
hideResult
()
src/content/float-ball.ts:1885
↓ 14 callers
Function
persistRuntimeSessions
()
src/background/session-persistence.ts:69
↓ 14 callers
Function
sanitizeUserFacingRuntimeText
(raw: unknown, mode: RuntimeTextMode, fallback?: string)
src/content/float-ball/text-utils.ts:65
↓ 13 callers
Function
buildSessionSyncPayload
(session: Session)
src/background/session-replay.ts:96
↓ 13 callers
Function
respondSessionOp
(sendResponse: SessionChannelResponder, payload: unknown, label: string)
src/background/session-state.ts:121
↓ 13 callers
Function
showPillNotice
(text: string, tone: 'success' | 'error' | 'info')
src/content/float-ball.ts:983
↓ 12 callers
Function
buildJobSummary
(job: ResidentJob)
src/functions/resident-runtime.ts:176
↓ 12 callers
Function
persistRuntimeStore
()
src/functions/resident-runtime.ts:163
↓ 12 callers
Function
sleep
(ms: number, signal?: AbortSignal)
src/functions/tab-utils.ts:24
↓ 11 callers
Function
evaluateDOMByNodeId
( tabId: number, nodeId: number, jsCode: string, // 代码中用 __el__ 引用元素 )
src/functions/cdp-dom.ts:164
↓ 11 callers
Function
getTextContent
(content: string | ContentPart[])
src/ai/context-manager.ts:17
↓ 10 callers
Function
clipRuntimeText
(raw: unknown, max: number = 56)
src/content/float-ball/text-utils.ts:255
↓ 10 callers
Function
getText
(el: Element)
src/functions/extract-data.ts:36
↓ 10 callers
Function
maybeReturnIfEnough
(strategy: string, minCount: number = 1)
src/functions/page-repair.ts:235
↓ 10 callers
Function
sendCommand
( tabId: number, method: string, params?: Record<string, any>, )
src/lib/cdp-session.ts:224
↓ 9 callers
Function
buildActionInfo
(target: Element)
src/content/page-grounding.ts:547
↓ 9 callers
Function
choose
(current: string, plan: string, done: string, issue: string, ask: string)
src/content/float-ball/text-utils.ts:31
↓ 9 callers
Function
hidePillActionCard
()
src/content/float-ball.ts:1014
↓ 9 callers
Function
parseEventObject
(content: string)
src/background/session-event.ts:21
↓ 9 callers
Function
toLocaleTime
(ts?: number)
src/functions/bookmark-ops.ts:28
↓ 9 callers
Function
toggleSearch
(show?: boolean)
src/content/float-ball.ts:3794
↓ 8 callers
Function
compactSessionContext
(context: InputItem[])
src/background/session-context-tasks.ts:514
↓ 8 callers
Function
ensureSiteWorkflowRegistryReady
()
src/functions/site-workflow-registry.ts:321
↓ 8 callers
Function
ensureToolRegistryReady
()
src/functions/registry.ts:425
↓ 8 callers
Function
flushInputStep
()
src/content/float-ball.ts:1366
↓ 8 callers
Function
getActiveSessionId
()
src/background/session-state.ts:26
↓ 8 callers
Function
saveRecorderState
()
src/background/workflow-recorder.ts:57
↓ 8 callers
Function
submitSessionOp
(op: SessionOp)
src/background/session-channel-handlers.ts:537
↓ 7 callers
Function
buildAbortError
()
src/functions/tab-utils.ts:12
↓ 7 callers
Function
emitCheckpoint
( options: HandleChatOptions | undefined, phase: string, round: number, summary: string, context: In
src/ai/core-loop.ts:199
↓ 7 callers
Function
inlineMarkdown
(escaped: string)
src/content/float-ball/markdown.ts:21
↓ 7 callers
Function
isPlainObject
(value: unknown)
src/mcp/validator.ts:10
↓ 7 callers
Function
persistDomainStore
()
src/functions/skill-registry.ts:97
↓ 7 callers
Function
pushGroup
(matched: boolean, group: string[])
src/functions/page-repair.ts:74
↓ 6 callers
Function
appendProcessEntry
( text: string, options?: { tone?: 'status' | 'action' | 'issue' | 'done'; icon?: string;
src/content/float-ball.ts:2070
↓ 6 callers
Function
broadcastBgTasksChanged
()
src/background/bg-tasks-manager.ts:18
↓ 6 callers
Function
createSessionPushEvent
(session: Session)
src/background/session-manager.ts:522
↓ 6 callers
Function
ensureAgentStatePanel
()
src/content/float-ball.ts:2167
↓ 6 callers
Function
ensureReplayCacheSession
(sessionId: string)
src/content/float-ball.ts:478
↓ 6 callers
Function
evaluateOnElement
( tabId: number, params: { element_id?: string; selector?: string }, jsTemplate: string, signal?: Abor
src/functions/cdp-input.ts:113
↓ 6 callers
Function
getActiveTurnRuntime
()
src/background/session-state.ts:45
↓ 6 callers
Function
getSnapshotCandidates
(result: FunctionResult)
src/functions/page-repair.ts:53
↓ 6 callers
Function
getTaskTitle
(task: TaskItem | null)
src/content/float-ball.ts:574
↓ 6 callers
Function
inferFriendlyRuntimeText
(raw: string, mode: RuntimeTextMode)
src/content/float-ball/text-utils.ts:29
↓ 6 callers
Method
listTools
* 获取所有可用工具列表 * @returns MCP 工具定义数组
src/mcp/client.ts:24
↓ 6 callers
Function
mergeRepairCandidates
( accumulator: Map<string, RepairCandidate>, candidates: RepairCandidate[], query: string, sourceStep:
src/functions/page-repair.ts:112
↓ 6 callers
Function
normalizeText
(raw: unknown)
src/functions/page-repair.ts:51
↓ 6 callers
Function
parseColor
(color?: string, defaultColor?: { r: number; g: number; b: number; a: number })
src/functions/cdp-overlay.ts:41
↓ 6 callers
Function
persistRuntimeSessionsImmediate
()
src/background/session-persistence.ts:82
↓ 6 callers
Function
queryBgTasks
()
src/content/float-ball.ts:1132
↓ 6 callers
Function
resetReplayCursor
()
src/content/float-ball.ts:451
↓ 6 callers
Method
toStatusText
* 生成可读的 todo 状态文本(用于注入上下文) * 格式紧凑,对 token 友好
src/ai/todo-manager.ts:147
↓ 6 callers
Function
updatePillState
()
src/content/float-ball.ts:1062
↓ 6 callers
Function
updateRecorderBar
()
src/content/float-ball.ts:1473
↓ 5 callers
Function
buildErrorContent
( code: SessionFailureCode, message: string, origin: AIErrorPayload['origin'] = 'background',
src/background/session-event.ts:311
↓ 5 callers
Function
buildSimpleSelector
(el: Element)
src/content/float-ball.ts:1309
↓ 5 callers
Function
buildSimpleSelector
(el: Element)
src/content/float-ball/hooks/useRecorder.ts:23
↓ 5 callers
Method
callTool
* 调用指定工具 * @param name 工具名称 * @param args 调用参数 * @param context 可选的浏览器上下文(如 tabId) * @returns MCP 工具调用结果
src/mcp/client.ts:36
↓ 5 callers
Function
chromeStorageSet
(key: string, value: unknown)
src/functions/skill-registry.ts:82
↓ 5 callers
Function
clearPillNotice
()
src/content/float-ball.ts:977
↓ 5 callers
Function
clearReplayCache
()
src/content/float-ball.ts:485
↓ 5 callers
Function
clearTransientStatus
()
src/content/float-ball.ts:2197
↓ 5 callers
Method
closeAll
任务结束时批量关闭 AI 打开的标签页(不含 keep_alive)
src/ai/tab-tracker.ts:49
↓ 5 callers
Function
closeImageViewer
()
src/content/float-ball.ts:918
↓ 5 callers
Function
disableApprovalCard
(card: HTMLElement, approved: boolean)
src/content/float-ball.ts:2604
↓ 5 callers
Function
disableAskUserCard
(requestId: string, answer: string, source: 'option' | 'text')
src/content/float-ball.ts:2723
↓ 5 callers
Function
ensureResidentRuntimeReady
()
src/functions/resident-runtime.ts:517
↓ 5 callers
Function
estimateStringTokens
(text: string)
src/ai/context-manager.ts:230
↓ 5 callers
Function
executeDebugRemotePlan
( workflowRaw: unknown, planRaw: unknown, paramsRaw: unknown, context?: ToolExecutionContext, )
src/functions/remote-workflow.ts:604
↓ 5 callers
Function
findRunningTask
(sessionId: string)
src/background/session-manager.ts:251
next →
1–100 of 978, ranked by callers