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
↓ 4 callers
Function
updateLinkMode
(mode: 'file' | 'url')
src/ui/file-preview/src/markdown/editor.ts:1207
↓ 4 callers
Method
waitForFreshFlags
* Wait for fresh flags to be fetched from network. * Use this when you need to ensure flags are loaded before making decisions * (e.g., A/B test
src/utils/feature-flags.ts:120
↓ 4 callers
Method
wasLoadedFromCache
* Check if flags were loaded from cache (vs fresh fetch)
src/utils/feature-flags.ts:108
↓ 4 callers
Function
withTimeout
( operation: Promise<T>, timeoutMs: number, operationName: string, defaultValue: T )
src/utils/withTimeout.ts:12
↓ 3 callers
Function
applyPostProcess
(serialized: string, context: RoundTripContext)
src/ui/file-preview/src/markdown/editor.ts:211
↓ 3 callers
Function
buildConfigUpdateTelemetryParams
(args: { configKey: string; valueType: string; errorMessage?: string; errorStage?: 'set_config
src/ui/config-editor/src/app.ts:80
↓ 3 callers
Function
buildTiptapExtensions
()
src/ui/file-preview/src/markdown/editor.ts:711
↓ 3 callers
Function
callReadFile
(filePath: string, length?: number, offset?: number)
src/ui/file-preview/src/markdown/controller.ts:372
↓ 3 callers
Function
callTool
(name: string, args?: ToolArgs)
src/ui/shared/tool-bridge.ts:169
↓ 3 callers
Function
cancelAutosave
()
src/ui/file-preview/src/markdown/controller.ts:330
↓ 3 callers
Method
checkConnectionHealth
* Check if channel is connected, recreate if not.
src/remote-device/remote-channel.ts:269
↓ 3 callers
Method
checkFileSize
(path: string)
src/utils/files/excel.ts:286
↓ 3 callers
Function
clearError
()
src/ui/config-editor/src/array-modal.ts:60
↓ 3 callers
Function
clearTooltipTimer
()
src/ui/config-editor/src/app.ts:835
↓ 3 callers
Function
close
()
src/ui/file-preview/src/markdown/conflict-dialog.ts:91
↓ 3 callers
Function
closeLinkModal
()
src/ui/file-preview/src/markdown/editor.ts:1260
↓ 3 callers
Method
countLines
* Count lines in text content * Made static and public for use by other modules (e.g., writeFile telemetry in filesystem.ts)
src/utils/files/text.ts:107
↓ 3 callers
Function
currentFetchPattern
(url)
test/test-feature-flags-timeout.js:96
↓ 3 callers
Function
editPdf
( pdfPath: string, operations: PdfOperations[] )
src/tools/pdf/manipulations.ts:101
↓ 3 callers
Method
ensureLogFile
()
src/utils/fuzzySearchLogger.ts:34
↓ 3 callers
Method
extractBaseCommand
(commandStr: string)
src/command-manager.ts:175
↓ 3 callers
Function
extractRenderPayload
(value: unknown)
src/ui/file-preview/src/payload-utils.ts:65
↓ 3 callers
Method
fetchFlags
* Fetch flags from remote URL
src/utils/feature-flags.ts:165
↓ 3 callers
Method
forceTerminate
(pid: number)
src/terminal-manager.ts:717
↓ 3 callers
Function
formatTimingInfo
(timing: any)
src/tools/improved-process-tools.ts:211
↓ 3 callers
Function
getAllowedDirs
()
src/tools/filesystem.ts:103
↓ 3 callers
Method
getBaseCommand
(command: string)
src/command-manager.ts:7
↓ 3 callers
Method
getDefaultConfig
* Create default configuration
src/config-manager.ts:109
↓ 3 callers
Function
getExcelHandler
* Initialize handlers (lazy initialization)
src/utils/files/factory.ts:28
↓ 3 callers
Function
getExperiments
* Get experiments config from feature flags
src/utils/ab-test.ts:40
↓ 3 callers
Function
getFileInfo
(filePath: string)
src/tools/filesystem.ts:904
↓ 3 callers
Function
getImageHandler
()
src/utils/files/factory.ts:33
↓ 3 callers
Method
getNewOutput
* Legacy method for backward compatibility * Returns all new output since last read * @param maxLines Maximum lines to return (default: 1000 for
src/terminal-manager.ts:628
↓ 3 callers
Method
getOutputSinceSnapshot
* Get output that appeared since a snapshot was taken. * This handles the case where output is appended to the last line (REPL prompts). * Also
src/terminal-manager.ts:678
↓ 3 callers
Method
getRecentLogs
(count: number = 10)
src/utils/fuzzySearchLogger.ts:110
↓ 3 callers
Method
getSession
()
src/remote-device/remote-channel.ts:88
↓ 3 callers
Function
hasValue
(v: unknown)
src/tools/schemas.ts:152
↓ 3 callers
Method
isExactFilename
* Detect if pattern looks like an exact filename * (has file extension and no glob wildcards)
src/search-manager.ts:684
↓ 3 callers
Function
isObject
(value: unknown)
src/ui/shared/tool-bridge.ts:65
↓ 3 callers
Function
isPreviewStructuredContent
(value: unknown)
src/ui/file-preview/src/payload-utils.ts:20
↓ 3 callers
Function
listDirectory
(dirPath: string, depth: number = 2)
src/tools/filesystem.ts:706
↓ 3 callers
Method
listSearchSessions
* Get list of active search sessions (like list_sessions)
src/search-manager.ts:312
↓ 3 callers
Function
loadPdfDocumentFromBuffer
(filePathOrBuffer: string | Buffer | Uint8Array)
src/tools/pdf/manipulations.ts:20
↓ 3 callers
Function
makeRemoteChannel
()
test/test-remote-channel-reconnect.js:150
↓ 3 callers
Function
mountForEdit
* Mount the editor exactly as production does, return a handle that lets * the test: * - apply a synthetic edit (insert text at a position, simula
test/test-markdown-editor-edit-diff.js:57
↓ 3 callers
Function
normalizeLineEndings
(text: string, targetLineEnding: LineEndingStyle)
src/utils/lineEndingHandler.ts:30
↓ 3 callers
Function
parseDirectoryEntries
(content: string)
src/ui/file-preview/src/directory-controller.ts:16
↓ 3 callers
Function
parseMarkdownToPdf
(markdown: string, options: any = {})
src/tools/pdf/markdown.ts:287
↓ 3 callers
Function
pass
(name)
test/test-markdown-editor-edit-diff.js:123
↓ 3 callers
Function
pathExists
(filePath)
test/test-pdf-chrome-cache.js:45
↓ 3 callers
Function
preprocessForEditor
(input: string)
src/ui/file-preview/src/markdown/editor.ts:128
↓ 3 callers
Function
prettyPrintXml
* Pretty-print XML: split tags onto separate lines with indentation. * Preserves text node content exactly. compact→pretty→compact is lossless.
src/utils/files/docx.ts:31
↓ 3 callers
Function
pruneOldPuppeteerChromeBuilds
(activeExecutablePath: string, cacheDir = getPuppeteerCacheDir())
src/tools/pdf/markdown.ts:106
↓ 3 callers
Method
read
Read persisted state, returns undefined if not found or not supported
src/ui/shared/widget-state.ts:15
↓ 3 callers
Method
readFromStartWithReadline
* Read from start/middle using readline
src/utils/files/text.ts:339
↓ 3 callers
Method
rebuildSocket
Build a fresh, healthy socket (what a real disconnect()+reconnect yields).
test/test-remote-channel-reconnect.js:86
↓ 3 callers
Function
renderCodeViewer
(code: string, language = 'text', startLine = 1)
src/ui/file-preview/src/components/code-viewer.ts:64
↓ 3 callers
Function
renderDirTree
(entries: DirEntry[], rootPath: string)
src/ui/file-preview/src/directory-controller.ts:108
↓ 3 callers
Function
renderLoadingState
(container: HTMLElement)
src/ui/file-preview/src/app.ts:198
↓ 3 callers
Function
renderMarkdownEditorShell
(options: { view: MarkdownEditorView; })
src/ui/file-preview/src/markdown/editor.ts:962
↓ 3 callers
Function
safeDecodeURIComponent
(value: string)
src/ui/file-preview/src/markdown/linking.ts:25
↓ 3 callers
Method
saveOnboardingState
* Save onboarding state to config
src/utils/usageTracker.ts:413
↓ 3 callers
Method
saveStats
* Save usage stats to config
src/utils/usageTracker.ts:97
↓ 3 callers
Function
setActiveItem
(nav: HTMLElement, activeId: string | null)
src/ui/file-preview/src/document-outline.ts:15
↓ 3 callers
Method
setSession
(session: AuthSession)
src/remote-device/remote-channel.ts:53
↓ 3 callers
Function
shouldAutoLoadDocumentOnEnterFullscreen
(content: string)
src/ui/file-preview/src/document-workspace.ts:47
↓ 3 callers
Method
shutdown
()
src/remote-device/device.ts:322
↓ 3 callers
Function
syncHeadingIds
* Walk the prose-mirror DOM and assign slug-based id attributes to headings * so the outline's revealLine can scroll to them. Re-run after every upda
src/ui/file-preview/src/markdown/editor.ts:991
↓ 3 callers
Function
syncStateFromContent
( state: MarkdownWorkspaceState, content: string, options: { keepDraft?: boolean } = {
src/ui/file-preview/src/markdown/controller.ts:354
↓ 3 callers
Function
test
(name, fn)
test/test-remote-channel-reconnect.js:200
↓ 3 callers
Function
variantEnablesMcpUi
(variant: unknown)
src/utils/mcp-ui-ab-test.ts:19
↓ 3 callers
Function
withQuietLogs
(fn)
test/test-remote-channel-reconnect.js:183
↓ 3 callers
Method
writeRowsStartingAt
(worksheet: ExcelJS.Worksheet, startRow: number, data: any[][])
src/utils/files/excel.ts:447
↓ 2 callers
Function
addModalItem
(value: string)
src/ui/config-editor/src/array-modal.ts:114
↓ 2 callers
Method
appendToLineBuffer
* Append text to a session's line buffer * Handles partial lines and newline splitting
src/terminal-manager.ts:456
↓ 2 callers
Function
applyExpandedState
(nextExpanded: boolean)
src/ui/shared/tool-shell.ts:56
↓ 2 callers
Function
applyPayload
(payload: ConfigEditorPayload)
src/ui/config-editor/src/app.ts:923
↓ 2 callers
Function
applySharedHostContext
(context: unknown, chrome: UiChromeState)
src/ui/shared/host-context.ts:20
↓ 2 callers
Function
brokenFetch
()
test/test-feature-flags-timeout.js:329
↓ 2 callers
Function
buildOpenInFolderCommand
(filePath: string, isLikelyUrl: (filePath: string) => boolean)
src/ui/file-preview/src/host/external-actions.ts:21
↓ 2 callers
Function
buildRenderPayload
( meta: FilePreviewStructuredContent, text: string )
src/ui/file-preview/src/payload-utils.ts:32
↓ 2 callers
Function
buildTrackUiEventCapturePayload
(event: string, component: string, params: TrackUiEventParams)
src/handlers/history-handlers.ts:8
↓ 2 callers
Function
buildWikiHref
(link: ParsedWikiLink)
src/ui/file-preview/src/markdown/linking.ts:70
↓ 2 callers
Method
captureOutputSnapshot
* Capture a snapshot of current output state for interaction tracking. * Used by interactWithProcess to know what output existed before sending inp
src/terminal-manager.ts:658
↓ 2 callers
Function
cleanup
* Clean up test directories
test/test-symlink-security.js:31
↓ 2 callers
Method
cleanup
* Cleanup method - clears interval and flushes pending writes * Call this during shutdown or in tests
src/utils/toolHistory.ts:302
↓ 2 callers
Method
cleanupSessions
* Clean up completed sessions older than specified time * Called automatically by cleanup interval
src/search-manager.ts:663
↓ 2 callers
Function
cleanupTestDirectories
* Helper function to clean up test directories
test/test-file-handlers.js:40
↓ 2 callers
Function
cleanupTestDirectories
* Helper function to clean up test directories
test/test-directory-creation.js:31
↓ 2 callers
Function
cleanupTestDirectories
* Helper function to clean up test directories
test/test-home-directory.js:43
↓ 2 callers
Function
cleanupTestDirectories
* Helper function to clean up test directories
test/test-blocked-commands.js:58
↓ 2 callers
Function
cleanupTestDirectories
* Helper function to clean up test directories
test/test-excel-files.js:34
↓ 2 callers
Function
cleanupTestDirectories
* Helper function to clean up test directories
test/test-allowed-directories.js:37
↓ 2 callers
Function
clearState
()
scripts/publish-release.cjs:71
↓ 2 callers
Function
close
()
src/ui/config-editor/src/array-modal.ts:169
↓ 2 callers
Method
columnToNumber
(col: string)
src/utils/files/excel.ts:502
↓ 2 callers
Function
commitCustomShell
()
src/ui/config-editor/src/app.ts:732
↓ 2 callers
Function
computeSerializedEditRanges
(before: string, after: string)
src/ui/file-preview/src/markdown/editor.ts:800
↓ 2 callers
Function
connectWithSharedHostContext
(options: ConnectWithSharedHostContextOptions)
src/ui/shared/host-context.ts:60
↓ 2 callers
Function
copyTextData
(text: string)
src/ui/file-preview/src/panel-actions.ts:64
← previous
next →
201–300 of 1,250, ranked by callers