MCPcopy Create free account

hub / github.com/wonderwhy-er/DesktopCommanderMCP / functions

Functions1,250 in github.com/wonderwhy-er/DesktopCommanderMCP

↓ 4 callersFunctionupdateLinkMode
(mode: 'file' | 'url')
src/ui/file-preview/src/markdown/editor.ts:1207
↓ 4 callersMethodwaitForFreshFlags
* 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 callersMethodwasLoadedFromCache
* Check if flags were loaded from cache (vs fresh fetch)
src/utils/feature-flags.ts:108
↓ 4 callersFunctionwithTimeout
( operation: Promise<T>, timeoutMs: number, operationName: string, defaultValue: T )
src/utils/withTimeout.ts:12
↓ 3 callersFunctionapplyPostProcess
(serialized: string, context: RoundTripContext)
src/ui/file-preview/src/markdown/editor.ts:211
↓ 3 callersFunctionbuildConfigUpdateTelemetryParams
(args: { configKey: string; valueType: string; errorMessage?: string; errorStage?: 'set_config
src/ui/config-editor/src/app.ts:80
↓ 3 callersFunctionbuildTiptapExtensions
()
src/ui/file-preview/src/markdown/editor.ts:711
↓ 3 callersFunctioncallReadFile
(filePath: string, length?: number, offset?: number)
src/ui/file-preview/src/markdown/controller.ts:372
↓ 3 callersFunctioncallTool
(name: string, args?: ToolArgs)
src/ui/shared/tool-bridge.ts:169
↓ 3 callersFunctioncancelAutosave
()
src/ui/file-preview/src/markdown/controller.ts:330
↓ 3 callersMethodcheckConnectionHealth
* Check if channel is connected, recreate if not.
src/remote-device/remote-channel.ts:269
↓ 3 callersMethodcheckFileSize
(path: string)
src/utils/files/excel.ts:286
↓ 3 callersFunctionclearError
()
src/ui/config-editor/src/array-modal.ts:60
↓ 3 callersFunctionclearTooltipTimer
()
src/ui/config-editor/src/app.ts:835
↓ 3 callersFunctionclose
()
src/ui/file-preview/src/markdown/conflict-dialog.ts:91
↓ 3 callersFunctioncloseLinkModal
()
src/ui/file-preview/src/markdown/editor.ts:1260
↓ 3 callersMethodcountLines
* 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 callersFunctioncurrentFetchPattern
(url)
test/test-feature-flags-timeout.js:96
↓ 3 callersFunctioneditPdf
( pdfPath: string, operations: PdfOperations[] )
src/tools/pdf/manipulations.ts:101
↓ 3 callersMethodensureLogFile
()
src/utils/fuzzySearchLogger.ts:34
↓ 3 callersMethodextractBaseCommand
(commandStr: string)
src/command-manager.ts:175
↓ 3 callersFunctionextractRenderPayload
(value: unknown)
src/ui/file-preview/src/payload-utils.ts:65
↓ 3 callersMethodfetchFlags
* Fetch flags from remote URL
src/utils/feature-flags.ts:165
↓ 3 callersMethodforceTerminate
(pid: number)
src/terminal-manager.ts:717
↓ 3 callersFunctionformatTimingInfo
(timing: any)
src/tools/improved-process-tools.ts:211
↓ 3 callersFunctiongetAllowedDirs
()
src/tools/filesystem.ts:103
↓ 3 callersMethodgetBaseCommand
(command: string)
src/command-manager.ts:7
↓ 3 callersMethodgetDefaultConfig
* Create default configuration
src/config-manager.ts:109
↓ 3 callersFunctiongetExcelHandler
* Initialize handlers (lazy initialization)
src/utils/files/factory.ts:28
↓ 3 callersFunctiongetExperiments
* Get experiments config from feature flags
src/utils/ab-test.ts:40
↓ 3 callersFunctiongetFileInfo
(filePath: string)
src/tools/filesystem.ts:904
↓ 3 callersFunctiongetImageHandler
()
src/utils/files/factory.ts:33
↓ 3 callersMethodgetNewOutput
* 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 callersMethodgetOutputSinceSnapshot
* 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 callersMethodgetRecentLogs
(count: number = 10)
src/utils/fuzzySearchLogger.ts:110
↓ 3 callersMethodgetSession
()
src/remote-device/remote-channel.ts:88
↓ 3 callersFunctionhasValue
(v: unknown)
src/tools/schemas.ts:152
↓ 3 callersMethodisExactFilename
* Detect if pattern looks like an exact filename * (has file extension and no glob wildcards)
src/search-manager.ts:684
↓ 3 callersFunctionisObject
(value: unknown)
src/ui/shared/tool-bridge.ts:65
↓ 3 callersFunctionisPreviewStructuredContent
(value: unknown)
src/ui/file-preview/src/payload-utils.ts:20
↓ 3 callersFunctionlistDirectory
(dirPath: string, depth: number = 2)
src/tools/filesystem.ts:706
↓ 3 callersMethodlistSearchSessions
* Get list of active search sessions (like list_sessions)
src/search-manager.ts:312
↓ 3 callersFunctionloadPdfDocumentFromBuffer
(filePathOrBuffer: string | Buffer | Uint8Array)
src/tools/pdf/manipulations.ts:20
↓ 3 callersFunctionmakeRemoteChannel
()
test/test-remote-channel-reconnect.js:150
↓ 3 callersFunctionmountForEdit
* 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 callersFunctionnormalizeLineEndings
(text: string, targetLineEnding: LineEndingStyle)
src/utils/lineEndingHandler.ts:30
↓ 3 callersFunctionparseDirectoryEntries
(content: string)
src/ui/file-preview/src/directory-controller.ts:16
↓ 3 callersFunctionparseMarkdownToPdf
(markdown: string, options: any = {})
src/tools/pdf/markdown.ts:287
↓ 3 callersFunctionpass
(name)
test/test-markdown-editor-edit-diff.js:123
↓ 3 callersFunctionpathExists
(filePath)
test/test-pdf-chrome-cache.js:45
↓ 3 callersFunctionpreprocessForEditor
(input: string)
src/ui/file-preview/src/markdown/editor.ts:128
↓ 3 callersFunctionprettyPrintXml
* 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 callersFunctionpruneOldPuppeteerChromeBuilds
(activeExecutablePath: string, cacheDir = getPuppeteerCacheDir())
src/tools/pdf/markdown.ts:106
↓ 3 callersMethodread
Read persisted state, returns undefined if not found or not supported
src/ui/shared/widget-state.ts:15
↓ 3 callersMethodreadFromStartWithReadline
* Read from start/middle using readline
src/utils/files/text.ts:339
↓ 3 callersMethodrebuildSocket
Build a fresh, healthy socket (what a real disconnect()+reconnect yields).
test/test-remote-channel-reconnect.js:86
↓ 3 callersFunctionrenderCodeViewer
(code: string, language = 'text', startLine = 1)
src/ui/file-preview/src/components/code-viewer.ts:64
↓ 3 callersFunctionrenderDirTree
(entries: DirEntry[], rootPath: string)
src/ui/file-preview/src/directory-controller.ts:108
↓ 3 callersFunctionrenderLoadingState
(container: HTMLElement)
src/ui/file-preview/src/app.ts:198
↓ 3 callersFunctionrenderMarkdownEditorShell
(options: { view: MarkdownEditorView; })
src/ui/file-preview/src/markdown/editor.ts:962
↓ 3 callersFunctionsafeDecodeURIComponent
(value: string)
src/ui/file-preview/src/markdown/linking.ts:25
↓ 3 callersMethodsaveOnboardingState
* Save onboarding state to config
src/utils/usageTracker.ts:413
↓ 3 callersMethodsaveStats
* Save usage stats to config
src/utils/usageTracker.ts:97
↓ 3 callersFunctionsetActiveItem
(nav: HTMLElement, activeId: string | null)
src/ui/file-preview/src/document-outline.ts:15
↓ 3 callersMethodsetSession
(session: AuthSession)
src/remote-device/remote-channel.ts:53
↓ 3 callersFunctionshouldAutoLoadDocumentOnEnterFullscreen
(content: string)
src/ui/file-preview/src/document-workspace.ts:47
↓ 3 callersMethodshutdown
()
src/remote-device/device.ts:322
↓ 3 callersFunctionsyncHeadingIds
* 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 callersFunctionsyncStateFromContent
( state: MarkdownWorkspaceState, content: string, options: { keepDraft?: boolean } = {
src/ui/file-preview/src/markdown/controller.ts:354
↓ 3 callersFunctiontest
(name, fn)
test/test-remote-channel-reconnect.js:200
↓ 3 callersFunctionvariantEnablesMcpUi
(variant: unknown)
src/utils/mcp-ui-ab-test.ts:19
↓ 3 callersFunctionwithQuietLogs
(fn)
test/test-remote-channel-reconnect.js:183
↓ 3 callersMethodwriteRowsStartingAt
(worksheet: ExcelJS.Worksheet, startRow: number, data: any[][])
src/utils/files/excel.ts:447
↓ 2 callersFunctionaddModalItem
(value: string)
src/ui/config-editor/src/array-modal.ts:114
↓ 2 callersMethodappendToLineBuffer
* Append text to a session's line buffer * Handles partial lines and newline splitting
src/terminal-manager.ts:456
↓ 2 callersFunctionapplyExpandedState
(nextExpanded: boolean)
src/ui/shared/tool-shell.ts:56
↓ 2 callersFunctionapplyPayload
(payload: ConfigEditorPayload)
src/ui/config-editor/src/app.ts:923
↓ 2 callersFunctionapplySharedHostContext
(context: unknown, chrome: UiChromeState)
src/ui/shared/host-context.ts:20
↓ 2 callersFunctionbrokenFetch
()
test/test-feature-flags-timeout.js:329
↓ 2 callersFunctionbuildOpenInFolderCommand
(filePath: string, isLikelyUrl: (filePath: string) => boolean)
src/ui/file-preview/src/host/external-actions.ts:21
↓ 2 callersFunctionbuildRenderPayload
( meta: FilePreviewStructuredContent, text: string )
src/ui/file-preview/src/payload-utils.ts:32
↓ 2 callersFunctionbuildTrackUiEventCapturePayload
(event: string, component: string, params: TrackUiEventParams)
src/handlers/history-handlers.ts:8
↓ 2 callersFunctionbuildWikiHref
(link: ParsedWikiLink)
src/ui/file-preview/src/markdown/linking.ts:70
↓ 2 callersMethodcaptureOutputSnapshot
* 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 callersFunctioncleanup
* Clean up test directories
test/test-symlink-security.js:31
↓ 2 callersMethodcleanup
* Cleanup method - clears interval and flushes pending writes * Call this during shutdown or in tests
src/utils/toolHistory.ts:302
↓ 2 callersMethodcleanupSessions
* Clean up completed sessions older than specified time * Called automatically by cleanup interval
src/search-manager.ts:663
↓ 2 callersFunctioncleanupTestDirectories
* Helper function to clean up test directories
test/test-file-handlers.js:40
↓ 2 callersFunctioncleanupTestDirectories
* Helper function to clean up test directories
test/test-directory-creation.js:31
↓ 2 callersFunctioncleanupTestDirectories
* Helper function to clean up test directories
test/test-home-directory.js:43
↓ 2 callersFunctioncleanupTestDirectories
* Helper function to clean up test directories
test/test-blocked-commands.js:58
↓ 2 callersFunctioncleanupTestDirectories
* Helper function to clean up test directories
test/test-excel-files.js:34
↓ 2 callersFunctioncleanupTestDirectories
* Helper function to clean up test directories
test/test-allowed-directories.js:37
↓ 2 callersFunctionclearState
()
scripts/publish-release.cjs:71
↓ 2 callersFunctionclose
()
src/ui/config-editor/src/array-modal.ts:169
↓ 2 callersMethodcolumnToNumber
(col: string)
src/utils/files/excel.ts:502
↓ 2 callersFunctioncommitCustomShell
()
src/ui/config-editor/src/app.ts:732
↓ 2 callersFunctioncomputeSerializedEditRanges
(before: string, after: string)
src/ui/file-preview/src/markdown/editor.ts:800
↓ 2 callersFunctionconnectWithSharedHostContext
(options: ConnectWithSharedHostContextOptions)
src/ui/shared/host-context.ts:60
↓ 2 callersFunctioncopyTextData
(text: string)
src/ui/file-preview/src/panel-actions.ts:64
← previousnext →201–300 of 1,250, ranked by callers