MCPcopy Create free account

hub / github.com/altic-dev/Pilot / functions

Functions141 in github.com/altic-dev/Pilot

↓ 14 callersFunctionexecCommand
( sessionId: string, command: string[], workingDir?: string )
src/lib/docker.ts:124
↓ 10 callersFunctionwriteFile
(sessionId: string, filePath: string, content: string)
src/lib/docker.ts:285
↓ 8 callersFunctionreadFile
(sessionId: string, filePath: string)
src/lib/docker.ts:178
↓ 7 callersMethodupdateSession
* Update session data
src/lib/session-store.ts:65
↓ 6 callersFunctioncapitalizeWords
* Capitalize first letter of each word
src/components/component-context-pill.tsx:22
↓ 5 callersMethodgetSession
* Get session data by sessionId
src/lib/session-store.ts:52
↓ 5 callersMethodupdate
(id: string, message: string, type: "info" | "success" | "error" = "info")
src/lib/progress-store.ts:44
↓ 4 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 4 callersMethoddeactivate
* Deactivate selection mode
public/picker/react-component-picker.js:44
↓ 4 callersFunctionformatLog
(level: LogLevel, message: string, data?: unknown)
src/lib/logger.ts:15
↓ 3 callersMethodcomplete
(id: string, success: boolean = true)
src/lib/progress-store.ts:69
↓ 3 callersFunctiongetDockerModule
()
src/tools/experiment-code-update.ts:19
↓ 3 callersFunctiongetModel
(provider: ModelProvider)
src/lib/model-provider.ts:47
↓ 3 callersMethodinjectHtmlTemplate
* Inject into HTML template (CRA, Vite, etc.)
src/lib/direct-picker-injection.ts:235
↓ 3 callersFunctionisProviderValid
(provider: string)
src/lib/model-provider.ts:68
↓ 2 callersMethodcleanupInjection
* Clean up injected scripts (call when session ends)
src/lib/direct-picker-injection.ts:327
↓ 2 callersMethodcleanupStaleSessions
* Clean up sessions that haven't been active for 1 hour
src/lib/session-store.ts:150
↓ 2 callersMethoddeleteSession
* Delete a session
src/lib/session-store.ts:88
↓ 2 callersFunctiondestroyContainer
(sessionId: string)
src/lib/docker.ts:310
↓ 2 callersFunctionexecuteCommand
(command: string)
src/tools/experiment-code-update.ts:55
↓ 2 callersMethodgetComponentName
* Get component name from component type
public/picker/react-component-picker.js:234
↓ 2 callersMethodgetReactComponent
* Find React component from DOM element using Fiber tree
public/picker/react-component-picker.js:198
↓ 2 callersFunctionloadDirectory
(dirPath: string)
src/components/file-browser.tsx:29
↓ 2 callersFunctionsendMessage
(message: ProgressMessage)
src/app/api/experiment-progress/[executionId]/route.ts:27
↓ 2 callersMethodsendToParent
* Send component info to parent window
public/picker/react-component-picker.js:420
↓ 1 callersMethodactivate
* Activate selection mode
public/picker/react-component-picker.js:25
↓ 1 callersMethodbuildHierarchy
* Build component hierarchy from Fiber tree
public/picker/react-component-picker.js:389
↓ 1 callersFunctioncleanupOrphanedContainers
()
src/lib/docker.ts:334
↓ 1 callersMethodcopyPickerScript
* Copy picker script to repository's public folder
src/lib/direct-picker-injection.ts:68
↓ 1 callersMethodcreate
(id: string, inputHash?: string)
src/lib/progress-store.ts:18
↓ 1 callersFunctioncreateContainer
( sessionId: string, options?: { portMappings?: Record<number, number> } )
src/lib/docker.ts:50
↓ 1 callersFunctioncreateDockerTools
* Create tools that operate within a Docker container
src/tools/experiment-code-update.ts:48
↓ 1 callersFunctioncreateGenericBashTool
( executeCommand: (command: string) => Promise<string>, )
src/lib/generic-tools.ts:8
↓ 1 callersFunctioncreateGenericTextEditorTool
( readFile: (path: string) => Promise<string>, writeFile: (path: string, content: string) => Promise<void>
src/lib/generic-tools.ts:41
↓ 1 callersMethodcreateOverlay
* Create overlay element for highlighting
public/picker/react-component-picker.js:71
↓ 1 callersMethodcreateSession
* Create a new session
src/lib/session-store.ts:33
↓ 1 callersFunctioncreateToolWithParsedArgs
(tool: any)
src/tools/experiment-code-update.ts:24
↓ 1 callersMethodcreateTooltip
* Create tooltip element for component name display
public/picker/react-component-picker.js:90
↓ 1 callersFunctiondetectBuildCommand
* Detect build command
src/lib/build-detector.ts:131
↓ 1 callersFunctiondetectBuildConfig
(sessionId: string)
src/lib/build-detector.ts:146
↓ 1 callersFunctiondetectDefaultPort
* Detect default port based on framework
src/lib/build-detector.ts:67
↓ 1 callersFunctiondetectDevCommand
* Detect dev server command
src/lib/build-detector.ts:99
↓ 1 callersFunctiondetectFramework
* Detect framework from dependencies
src/lib/build-detector.ts:24
↓ 1 callersFunctiondetectPackageManager
* Detect package manager from lock files
src/lib/build-detector.ts:46
↓ 1 callersFunctiondetectProgressStage
(toolCalls: any[], text: string)
src/tools/experiment-code-update.ts:605
↓ 1 callersMethoddetectReact
* Detect if React is available in the preview * * This checks if the app running in the container has React available * by looking for React-
src/lib/picker-injector.ts:16
↓ 1 callersFunctionensureImageExists
* Ensure the Docker image exists, build if necessary
src/lib/docker.ts:11
↓ 1 callersMethodexists
(id: string)
src/lib/progress-store.ts:124
↓ 1 callersMethodextractComponentInfo
* Extract all component information
public/picker/react-component-picker.js:241
↓ 1 callersFunctionformatExperimentCodeUpdateInput
(input: any)
src/components/tool-invocation.tsx:137
↓ 1 callersFunctionformatExperimentCodeUpdateOutput
(output: string)
src/components/tool-invocation.tsx:171
↓ 1 callersFunctionformatExperimentCreationInput
(input: any)
src/components/tool-invocation.tsx:66
↓ 1 callersFunctionformatExperimentCreationOutput
(output: any)
src/components/tool-invocation.tsx:102
↓ 1 callersFunctionformatProjectRetrievalInput
(input: ProjectRetrievalInput)
src/components/tool-invocation.tsx:26
↓ 1 callersFunctionformatProjectRetrievalOutput
(output: any)
src/components/tool-invocation.tsx:34
↓ 1 callersFunctionformatRepoSetupInput
(input: any)
src/components/tool-invocation.tsx:266
↓ 1 callersFunctionformatRepoSetupOutput
(output: any)
src/components/tool-invocation.tsx:286
↓ 1 callersFunctionformatTextVariationInput
(input: any)
src/components/tool-invocation.tsx:195
↓ 1 callersFunctionformatTextVariationOutput
(output: any)
src/components/tool-invocation.tsx:228
↓ 1 callersFunctiongenerateComponentLabel
* Generate a simple, user-friendly 2-3 word label for the component
src/components/component-context-pill.tsx:31
↓ 1 callersMethodgenerateSelector
* Generate unique CSS selector for element
public/picker/react-component-picker.js:327
↓ 1 callersFunctiongenerateStars
(count: number, starColor: string)
src/components/animate-ui/backgrounds/stars.tsx:22
↓ 1 callersMethodgetAllSessions
* Get all sessions
src/lib/session-store.ts:97
↓ 1 callersMethodgetExecutionIdByInputHash
(inputHash: string)
src/lib/progress-store.ts:40
↓ 1 callersMethodgetInjectionScript
* Get the injection script that should be added to the iframe * * This returns an HTML script tag that will load the picker when inserted * i
src/lib/picker-injector.ts:100
↓ 1 callersMethodgetInlinePickerScript
* Get the inline script content for direct injection * * This can be used to inject the picker script directly without * needing to load it f
src/lib/picker-injector.ts:139
↓ 1 callersMethodgetMessages
(id: string)
src/lib/progress-store.ts:114
↓ 1 callersMethodgetPostMessageConfig
* Create a postMessage bridge configuration * * Returns configuration for setting up secure postMessage communication
src/lib/picker-injector.ts:203
↓ 1 callersMethodgetVisibleText
* Get visible text content from element
public/picker/react-component-picker.js:373
↓ 1 callersMethodglob
(params: { pattern: string; path: string; })
src/lib/docker-ripgrep-provider.ts:93
↓ 1 callersFunctionhandleSubmit
(e: FormEvent)
src/app/page.tsx:34
↓ 1 callersFunctionhandleSubmit
(e: React.FormEvent)
src/app/chat/page.tsx:173
↓ 1 callersMethodhighlightElement
* Highlight the given element
public/picker/react-component-picker.js:166
↓ 1 callersMethodinjectNextJs
* Inject into Next.js project (both App and Pages router)
src/lib/direct-picker-injection.ts:124
↓ 1 callersMethodinjectPicker
* Inject picker script directly into cloned repository
src/lib/direct-picker-injection.ts:26
↓ 1 callersMethodisCompleted
(id: string)
src/lib/progress-store.ts:119
↓ 1 callersMethodisPickerSupported
* Validate if picker is supported for the given session * * This checks various conditions to determine if the picker * can be used with the
src/lib/picker-injector.ts:162
↓ 1 callersFunctionlistDirectory
(sessionId: string, dirPath: string)
src/lib/docker.ts:232
↓ 1 callersMethodmodifyEntryPoint
* Modify framework entry point to load picker
src/lib/direct-picker-injection.ts:90
↓ 1 callersMethodnotifySubscribers
* Notify subscribers of session updates
src/lib/session-store.ts:126
↓ 1 callersFunctionpollForExecutionId
()
src/components/tool-invocation.tsx:368
↓ 1 callersFunctionrenderInput
()
src/components/tool-invocation.tsx:447
↓ 1 callersFunctionrenderOutput
()
src/components/tool-invocation.tsx:471
↓ 1 callersFunctionrenderTree
(parentPath: string, level: number = 0)
src/components/file-browser.tsx:92
↓ 1 callersMethodsanitizeProps
* Sanitize props - remove functions and circular references
public/picker/react-component-picker.js:286
↓ 1 callersFunctionselectFile
(filePath: string)
src/components/file-browser.tsx:73
↓ 1 callersMethodsendError
* Send error to parent window
public/picker/react-component-picker.js:436
↓ 1 callersFunctionsetupSSE
()
src/components/tool-invocation.tsx:358
↓ 1 callersMethodstartAutoCleanup
* Start automatic cleanup of stale sessions
src/lib/session-store.ts:136
↓ 1 callersMethodsubscribe
* Subscribe to session updates
src/lib/session-store.ts:104
↓ 1 callersFunctionthrottle
( func: T, wait: number )
src/app/chat/page.tsx:17
↓ 1 callersFunctiontoggleDirectory
(dirPath: string)
src/components/file-browser.tsx:59
↓ 1 callersMethodtrackModifications
* Track modified files for cleanup
src/lib/direct-picker-injection.ts:297
FunctionChatContent
()
src/app/chat/page.tsx:50
FunctionComponentContextPill
({ component, onClear, }: ComponentContextPillProps)
src/components/component-context-pill.tsx:110
FunctionDELETE
( request: NextRequest, { params }: { params: Promise<{ sessionId: string }> } )
src/app/api/session/[sessionId]/cleanup/route.ts:7
FunctionFileBrowser
({ sessionId }: FileBrowserProps)
src/components/file-browser.tsx:17
FunctionGET
( request: NextRequest, { params }: { params: Promise<{ sessionId: string }> } )
src/app/api/container/[sessionId]/inject-picker/route.ts:12
FunctionGET
( request: NextRequest, { params }: { params: Promise<{ sessionId: string }> } )
src/app/api/container/[sessionId]/files/route.ts:5
FunctionGET
( request: NextRequest, { params }: { params: Promise<{ sessionId: string }> } )
src/app/api/container/[sessionId]/file-content/route.ts:5
next →1–100 of 141, ranked by callers