Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/wonderwhy-er/DesktopCommanderMCP
/ functions
Functions
1,250 in github.com/wonderwhy-er/DesktopCommanderMCP
⨍
Functions
1,250
◇
Types & classes
157
↓ 2 callers
Function
countContentLines
(content: string)
src/ui/file-preview/src/payload-utils.ts:117
↓ 2 callers
Function
countOccurrences
(haystack: string, needle: string)
src/utils/files/docx.ts:491
↓ 2 callers
Function
createChromeBuild
(chromeDir, buildDirName)
test/test-pdf-chrome-cache.js:38
↓ 2 callers
Function
createCompactRowShellController
(options: CreateCompactRowShellControllerOptions)
src/ui/shared/tool-shell.ts:105
↓ 2 callers
Function
createMarkdownIt
(options: { highlight?: (code: string, language: string) => string; } = {})
src/ui/file-preview/src/markdown/parser.ts:42
↓ 2 callers
Function
createUiEventTracker
(callTool: ToolCaller, options: UiEventTrackerOptions)
src/ui/shared/ui-event-tracker.ts:28
↓ 2 callers
Function
deferLog
(level: string, message: string)
src/server.ts:83
↓ 2 callers
Method
disconnect
The fix calls this to force a fresh WebSocket before re-subscribing.
test/test-remote-channel-reconnect.js:92
↓ 2 callers
Function
docxBodyElement
(text)
test/integration/edit-block-performance.js:193
↓ 2 callers
Function
driveHealthChecks
Simulate the periodic 10s health checks driving recreate, up to N times.
test/test-remote-channel-reconnect.js:170
↓ 2 callers
Function
emitRawChange
()
src/ui/file-preview/src/markdown/editor.ts:1578
↓ 2 callers
Function
encodePowerShellCommand
(script: string)
src/ui/file-preview/src/host/external-actions.ts:7
↓ 2 callers
Function
escapeXml
(text: string)
src/utils/files/docx.ts:440
↓ 2 callers
Function
expandHome
(filepath: string)
src/tools/filesystem.ts:130
↓ 2 callers
Function
extractErrorMessage
(error: unknown)
src/ui/shared/tool-bridge.ts:73
↓ 2 callers
Method
extractMetadata
(workbook: ExcelJS.Workbook, path: string)
src/utils/files/excel.ts:297
↓ 2 callers
Function
extractNestedElements
* Extract all occurrences of a named element from XML, respecting nesting. * Returns array of full element strings including open/close tags.
src/utils/files/docx.ts:295
↓ 2 callers
Function
extractTextFragments
Extract <w:t>...</w:t> elements as XML fragments for use in edit_block
src/utils/files/docx.ts:253
↓ 2 callers
Function
extractToolText
(result: unknown)
src/ui/config-editor/src/app.ts:183
↓ 2 callers
Function
fallbackCopy
(text: string)
src/ui/file-preview/src/panel-actions.ts:25
↓ 2 callers
Function
findPuppeteerChrome
(cacheDir = getPuppeteerCacheDir())
src/tools/pdf/markdown.ts:76
↓ 2 callers
Method
flushToDisk
* Flush queued writes to disk
src/utils/toolHistory.ts:189
↓ 2 callers
Function
formatDuration
(duration)
test/integration/run-all-integration-tests.js:45
↓ 2 callers
Function
formatKeyLabel
(key: string)
src/ui/config-editor/src/app.ts:125
↓ 2 callers
Function
fuzzyPythonReportLine
(workflowId, state)
test/integration/edit-block-performance.js:197
↓ 2 callers
Function
getBinaryHandler
()
src/utils/files/factory.ts:43
↓ 2 callers
Function
getChromePath
* Find or install Chrome for PDF generation * Priority: 1. Puppeteer cache, 2. System Chrome, 3. Install Chrome * Results are cached to avoid repeat
src/tools/pdf/markdown.ts:204
↓ 2 callers
Function
getDefaultReadLength
* Get default read length from configuration * @returns Default number of lines to read
src/tools/filesystem.ts:55
↓ 2 callers
Function
getDocxHandler
()
src/utils/files/factory.ts:53
↓ 2 callers
Function
getExperiments
()
test/ab-test.test.js:41
↓ 2 callers
Function
getFileTypeCapabilities
(payload: RenderPayload)
src/ui/file-preview/src/file-type-handlers.ts:118
↓ 2 callers
Method
getMatchContext
* Extract context around a match for display (show surrounding text)
src/search-manager.ts:645
↓ 2 callers
Function
getObjectShape
* Resolve a Zod schema down to the field map of its underlying object schema, * unwrapping wrappers (effects/optional/default/nullable/branded) defen
src/utils/unsupportedParams.ts:22
↓ 2 callers
Method
getOutputLineCount
* Get total line count for a process
src/terminal-manager.ts:608
↓ 2 callers
Function
getPackageSpec
(versionArg = null)
setup-claude-server.js:209
↓ 2 callers
Function
getPdfHandler
()
src/utils/files/factory.ts:48
↓ 2 callers
Function
getPuppeteerChromeDir
* Get the cache path where Puppeteer stores Chrome for Testing builds.
src/tools/pdf/markdown.ts:30
↓ 2 callers
Function
getRenderedMarkdownCopyText
(content: string)
src/ui/file-preview/src/markdown/preview.ts:3
↓ 2 callers
Function
getRipgrepPath
()
src/utils/ripgrep-resolver.ts:12
↓ 2 callers
Function
getSettingSummary
(entry: ConfigEntry)
src/ui/config-editor/src/app.ts:309
↓ 2 callers
Method
getToolCategory
* Determine which category a tool belongs to
src/utils/usageTracker.ts:104
↓ 2 callers
Function
getVariant
* Get user's variant for an experiment (cached, deterministic) * Supports weighted variants for unequal splits
src/utils/ab-test.ts:48
↓ 2 callers
Function
getVersion
()
setup-claude-server.js:140
↓ 2 callers
Function
getVersion
()
uninstall-claude-server.js:100
↓ 2 callers
Function
goHalfOpen
Bring the channel up healthy, then knock the socket into a half-open state.
test/test-remote-channel-reconnect.js:161
↓ 2 callers
Function
handleListSearches
()
src/handlers/search-handlers.ts:220
↓ 2 callers
Function
hideHint
()
src/ui/file-preview/src/host/selection-context.ts:64
↓ 2 callers
Function
hideLinkPopover
()
src/ui/file-preview/src/markdown/editor.ts:1450
↓ 2 callers
Function
highlightSource
(code: string, language: string)
src/ui/file-preview/src/components/highlighting.ts:43
↓ 2 callers
Function
inferLanguageFromPath
(filePath: string)
src/ui/file-preview/src/components/code-viewer.ts:42
↓ 2 callers
Method
initialize
(url: string, key: string)
src/remote-device/remote-channel.ts:49
↓ 2 callers
Function
isConfigFieldKey
(value: string)
src/config-field-definitions.ts:47
↓ 2 callers
Function
isExcelFile
(path: string)
src/utils/files/factory.ts:112
↓ 2 callers
Method
isFirstRun
* Check if this is the first run (config file was just created)
src/config-manager.ts:261
↓ 2 callers
Method
isGlobPattern
* Detect if pattern contains glob wildcards
src/search-manager.ts:692
↓ 2 callers
Function
isImageFile
(mimeType: string)
src/tools/mime-types.ts:32
↓ 2 callers
Function
isNPX
()
setup-claude-server.js:236
↓ 2 callers
Function
isPdfFile
(mimeType: string)
src/tools/mime-types.ts:27
↓ 2 callers
Function
isTelemetryDisabledByEnv
()
src/utils/capture.ts:33
↓ 2 callers
Function
isToolErrorResult
(result: unknown)
src/ui/config-editor/src/app.ts:200
↓ 2 callers
Function
isUndoAvailable
(state: MarkdownWorkspaceState)
src/ui/file-preview/src/markdown/controller.ts:433
↓ 2 callers
Function
iterativeReduction
* Iteratively refines the best match by reducing the search area * @param text The text to search within * @param query The query string to find *
src/tools/fuzzySearchCore.ts:108
↓ 2 callers
Function
loadDocxZip
(buf: Buffer)
src/utils/files/docx.ts:74
↓ 2 callers
Function
loadHeadingsForItem
(item: MarkdownLinkSearchItem)
src/ui/file-preview/src/markdown/editor.ts:1150
↓ 2 callers
Function
loadLines
(button: HTMLButtonElement, direction: 'before' | 'after')
src/ui/file-preview/src/panel-actions.ts:164
↓ 2 callers
Function
loadState
()
scripts/publish-release.cjs:56
↓ 2 callers
Function
looksStructural
* Heuristic: does this line look like markdown structure (heading, list, * fence, table, blockquote) rather than plain prose? Used by * restoreSoftB
src/ui/file-preview/src/markdown/editor.ts:462
↓ 2 callers
Function
mergeLineRanges
(ranges: MarkdownEditRange[])
src/ui/file-preview/src/markdown/controller.ts:144
↓ 2 callers
Function
needsContentRead
* Check if a payload needs its file content to be read. * Tool results from edit_block/write_file include structuredContent but * their text is a su
src/ui/file-preview/src/app.ts:157
↓ 2 callers
Function
normalizePath
(p: string)
src/tools/filesystem.ts:126
↓ 2 callers
Method
outputSinceSnapshot
* New output since a snapshot, in absolute (since process start) offsets. * If eviction dropped part of the unseen output, returns what the buffer
src/terminal-manager.ts:699
↓ 2 callers
Method
parseCellRange
(range: string)
src/utils/files/excel.ts:480
↓ 2 callers
Method
parseRange
(range: string)
src/utils/files/excel.ts:465
↓ 2 callers
Function
parseWikiLink
(rawHref: string)
src/ui/file-preview/src/markdown/linking.ts:33
↓ 2 callers
Function
pathExists
(pathValue: string)
src/tools/config.ts:16
↓ 2 callers
Function
postTelemetryPayload
(endpoint, postData, options)
track-installation.js:323
↓ 2 callers
Function
postTelemetryPayload
(endpoint: string, payload: string)
src/utils/capture.ts:432
↓ 2 callers
Function
prepareMarkdownSource
(source: string)
src/ui/file-preview/src/markdown/parser.ts:53
↓ 2 callers
Method
processBufferedOutput
(session: SearchSession, isFinal: boolean = false)
src/search-manager.ts:908
↓ 2 callers
Function
readAndResolvePayload
( payload: RenderPayload, onReady: (payload: RenderPayload) => void )
src/ui/file-preview/src/app.ts:167
↓ 2 callers
Function
readCompletePayload
(filePath: string)
src/ui/file-preview/src/markdown/controller.ts:394
↓ 2 callers
Method
readFromLineBuffer
* Internal helper to read from a line buffer with offset/length
src/terminal-manager.ts:555
↓ 2 callers
Function
readHeadingProjection
( tokens: MarkdownToken[], index: number, nextSlug: MarkdownSlugTracker )
src/ui/file-preview/src/markdown/parser.ts:57
↓ 2 callers
Function
readInlinedResourceHtml
(distDir: string, runtimeFileName: string)
src/ui/resources.ts:73
↓ 2 callers
Method
readSearchResults
* Read search results with offset-based pagination (like read_file) * Supports both range reading and tail behavior
src/search-manager.ts:226
↓ 2 callers
Function
removeListener
(type: 'message', listener: MessageListener)
src/ui/shared/tool-bridge.ts:113
↓ 2 callers
Function
renderApp
( container: HTMLElement, payload?: RenderPayload, htmlMode: HtmlPreviewMode = 'rendered', exp
src/ui/file-preview/src/app.ts:207
↓ 2 callers
Function
renderCollapseIcon
()
src/ui/file-preview/src/document-outline.ts:31
↓ 2 callers
Function
renderCopyIcon
()
src/ui/file-preview/src/document-layout.ts:8
↓ 2 callers
Function
renderDirectoryBody
(content: string, rootPath: string)
src/ui/file-preview/src/directory-controller.ts:143
↓ 2 callers
Function
renderDocumentOutlineItems
(outline: DocumentOutlineItem[], activeHeadingId?: string | null)
src/ui/file-preview/src/document-outline.ts:24
↓ 2 callers
Function
renderMarkdown
(content: string)
src/ui/file-preview/src/components/markdown-renderer.ts:66
↓ 2 callers
Function
renderModalList
()
src/ui/config-editor/src/array-modal.ts:95
↓ 2 callers
Function
renderModeToggleIcon
(view: MarkdownEditorView)
src/ui/file-preview/src/markdown/editor.ts:931
↓ 2 callers
Function
renderPayloadBody
(options: { payload: RenderPayload; htmlMode: HtmlPreviewMode; startLine: number; markdownCont
src/ui/file-preview/src/file-type-handlers.ts:126
↓ 2 callers
Function
renderRawFallback
(source: string)
src/ui/file-preview/src/file-type-handlers.ts:12
↓ 2 callers
Function
replaceOrThrow
( source: string, pattern: RegExp, replacement: string, context: string )
src/ui/resources.ts:36
↓ 2 callers
Function
resolveFileTargetPath
(currentPath: string, rawPath: string)
src/ui/file-preview/src/markdown/linking.ts:188
↓ 2 callers
Function
restoreFromBackup
(backupPath)
uninstall-claude-server.js:460
↓ 2 callers
Function
rewriteWikiLinksInPlainText
(segment: string)
src/ui/file-preview/src/markdown/linking.ts:95
← previous
next →
301–400 of 1,250, ranked by callers