Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/altic-dev/Pilot
/ functions
Functions
141 in github.com/altic-dev/Pilot
⨍
Functions
141
◇
Types & classes
33
↓ 14 callers
Function
execCommand
( sessionId: string, command: string[], workingDir?: string )
src/lib/docker.ts:124
↓ 10 callers
Function
writeFile
(sessionId: string, filePath: string, content: string)
src/lib/docker.ts:285
↓ 8 callers
Function
readFile
(sessionId: string, filePath: string)
src/lib/docker.ts:178
↓ 7 callers
Method
updateSession
* Update session data
src/lib/session-store.ts:65
↓ 6 callers
Function
capitalizeWords
* Capitalize first letter of each word
src/components/component-context-pill.tsx:22
↓ 5 callers
Method
getSession
* Get session data by sessionId
src/lib/session-store.ts:52
↓ 5 callers
Method
update
(id: string, message: string, type: "info" | "success" | "error" = "info")
src/lib/progress-store.ts:44
↓ 4 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 4 callers
Method
deactivate
* Deactivate selection mode
public/picker/react-component-picker.js:44
↓ 4 callers
Function
formatLog
(level: LogLevel, message: string, data?: unknown)
src/lib/logger.ts:15
↓ 3 callers
Method
complete
(id: string, success: boolean = true)
src/lib/progress-store.ts:69
↓ 3 callers
Function
getDockerModule
()
src/tools/experiment-code-update.ts:19
↓ 3 callers
Function
getModel
(provider: ModelProvider)
src/lib/model-provider.ts:47
↓ 3 callers
Method
injectHtmlTemplate
* Inject into HTML template (CRA, Vite, etc.)
src/lib/direct-picker-injection.ts:235
↓ 3 callers
Function
isProviderValid
(provider: string)
src/lib/model-provider.ts:68
↓ 2 callers
Method
cleanupInjection
* Clean up injected scripts (call when session ends)
src/lib/direct-picker-injection.ts:327
↓ 2 callers
Method
cleanupStaleSessions
* Clean up sessions that haven't been active for 1 hour
src/lib/session-store.ts:150
↓ 2 callers
Method
deleteSession
* Delete a session
src/lib/session-store.ts:88
↓ 2 callers
Function
destroyContainer
(sessionId: string)
src/lib/docker.ts:310
↓ 2 callers
Function
executeCommand
(command: string)
src/tools/experiment-code-update.ts:55
↓ 2 callers
Method
getComponentName
* Get component name from component type
public/picker/react-component-picker.js:234
↓ 2 callers
Method
getReactComponent
* Find React component from DOM element using Fiber tree
public/picker/react-component-picker.js:198
↓ 2 callers
Function
loadDirectory
(dirPath: string)
src/components/file-browser.tsx:29
↓ 2 callers
Function
sendMessage
(message: ProgressMessage)
src/app/api/experiment-progress/[executionId]/route.ts:27
↓ 2 callers
Method
sendToParent
* Send component info to parent window
public/picker/react-component-picker.js:420
↓ 1 callers
Method
activate
* Activate selection mode
public/picker/react-component-picker.js:25
↓ 1 callers
Method
buildHierarchy
* Build component hierarchy from Fiber tree
public/picker/react-component-picker.js:389
↓ 1 callers
Function
cleanupOrphanedContainers
()
src/lib/docker.ts:334
↓ 1 callers
Method
copyPickerScript
* Copy picker script to repository's public folder
src/lib/direct-picker-injection.ts:68
↓ 1 callers
Method
create
(id: string, inputHash?: string)
src/lib/progress-store.ts:18
↓ 1 callers
Function
createContainer
( sessionId: string, options?: { portMappings?: Record<number, number> } )
src/lib/docker.ts:50
↓ 1 callers
Function
createDockerTools
* Create tools that operate within a Docker container
src/tools/experiment-code-update.ts:48
↓ 1 callers
Function
createGenericBashTool
( executeCommand: (command: string) => Promise<string>, )
src/lib/generic-tools.ts:8
↓ 1 callers
Function
createGenericTextEditorTool
( readFile: (path: string) => Promise<string>, writeFile: (path: string, content: string) => Promise<void>
src/lib/generic-tools.ts:41
↓ 1 callers
Method
createOverlay
* Create overlay element for highlighting
public/picker/react-component-picker.js:71
↓ 1 callers
Method
createSession
* Create a new session
src/lib/session-store.ts:33
↓ 1 callers
Function
createToolWithParsedArgs
(tool: any)
src/tools/experiment-code-update.ts:24
↓ 1 callers
Method
createTooltip
* Create tooltip element for component name display
public/picker/react-component-picker.js:90
↓ 1 callers
Function
detectBuildCommand
* Detect build command
src/lib/build-detector.ts:131
↓ 1 callers
Function
detectBuildConfig
(sessionId: string)
src/lib/build-detector.ts:146
↓ 1 callers
Function
detectDefaultPort
* Detect default port based on framework
src/lib/build-detector.ts:67
↓ 1 callers
Function
detectDevCommand
* Detect dev server command
src/lib/build-detector.ts:99
↓ 1 callers
Function
detectFramework
* Detect framework from dependencies
src/lib/build-detector.ts:24
↓ 1 callers
Function
detectPackageManager
* Detect package manager from lock files
src/lib/build-detector.ts:46
↓ 1 callers
Function
detectProgressStage
(toolCalls: any[], text: string)
src/tools/experiment-code-update.ts:605
↓ 1 callers
Method
detectReact
* 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 callers
Function
ensureImageExists
* Ensure the Docker image exists, build if necessary
src/lib/docker.ts:11
↓ 1 callers
Method
exists
(id: string)
src/lib/progress-store.ts:124
↓ 1 callers
Method
extractComponentInfo
* Extract all component information
public/picker/react-component-picker.js:241
↓ 1 callers
Function
formatExperimentCodeUpdateInput
(input: any)
src/components/tool-invocation.tsx:137
↓ 1 callers
Function
formatExperimentCodeUpdateOutput
(output: string)
src/components/tool-invocation.tsx:171
↓ 1 callers
Function
formatExperimentCreationInput
(input: any)
src/components/tool-invocation.tsx:66
↓ 1 callers
Function
formatExperimentCreationOutput
(output: any)
src/components/tool-invocation.tsx:102
↓ 1 callers
Function
formatProjectRetrievalInput
(input: ProjectRetrievalInput)
src/components/tool-invocation.tsx:26
↓ 1 callers
Function
formatProjectRetrievalOutput
(output: any)
src/components/tool-invocation.tsx:34
↓ 1 callers
Function
formatRepoSetupInput
(input: any)
src/components/tool-invocation.tsx:266
↓ 1 callers
Function
formatRepoSetupOutput
(output: any)
src/components/tool-invocation.tsx:286
↓ 1 callers
Function
formatTextVariationInput
(input: any)
src/components/tool-invocation.tsx:195
↓ 1 callers
Function
formatTextVariationOutput
(output: any)
src/components/tool-invocation.tsx:228
↓ 1 callers
Function
generateComponentLabel
* Generate a simple, user-friendly 2-3 word label for the component
src/components/component-context-pill.tsx:31
↓ 1 callers
Method
generateSelector
* Generate unique CSS selector for element
public/picker/react-component-picker.js:327
↓ 1 callers
Function
generateStars
(count: number, starColor: string)
src/components/animate-ui/backgrounds/stars.tsx:22
↓ 1 callers
Method
getAllSessions
* Get all sessions
src/lib/session-store.ts:97
↓ 1 callers
Method
getExecutionIdByInputHash
(inputHash: string)
src/lib/progress-store.ts:40
↓ 1 callers
Method
getInjectionScript
* 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 callers
Method
getInlinePickerScript
* 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 callers
Method
getMessages
(id: string)
src/lib/progress-store.ts:114
↓ 1 callers
Method
getPostMessageConfig
* Create a postMessage bridge configuration * * Returns configuration for setting up secure postMessage communication
src/lib/picker-injector.ts:203
↓ 1 callers
Method
getVisibleText
* Get visible text content from element
public/picker/react-component-picker.js:373
↓ 1 callers
Method
glob
(params: { pattern: string; path: string; })
src/lib/docker-ripgrep-provider.ts:93
↓ 1 callers
Function
handleSubmit
(e: FormEvent)
src/app/page.tsx:34
↓ 1 callers
Function
handleSubmit
(e: React.FormEvent)
src/app/chat/page.tsx:173
↓ 1 callers
Method
highlightElement
* Highlight the given element
public/picker/react-component-picker.js:166
↓ 1 callers
Method
injectNextJs
* Inject into Next.js project (both App and Pages router)
src/lib/direct-picker-injection.ts:124
↓ 1 callers
Method
injectPicker
* Inject picker script directly into cloned repository
src/lib/direct-picker-injection.ts:26
↓ 1 callers
Method
isCompleted
(id: string)
src/lib/progress-store.ts:119
↓ 1 callers
Method
isPickerSupported
* 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 callers
Function
listDirectory
(sessionId: string, dirPath: string)
src/lib/docker.ts:232
↓ 1 callers
Method
modifyEntryPoint
* Modify framework entry point to load picker
src/lib/direct-picker-injection.ts:90
↓ 1 callers
Method
notifySubscribers
* Notify subscribers of session updates
src/lib/session-store.ts:126
↓ 1 callers
Function
pollForExecutionId
()
src/components/tool-invocation.tsx:368
↓ 1 callers
Function
renderInput
()
src/components/tool-invocation.tsx:447
↓ 1 callers
Function
renderOutput
()
src/components/tool-invocation.tsx:471
↓ 1 callers
Function
renderTree
(parentPath: string, level: number = 0)
src/components/file-browser.tsx:92
↓ 1 callers
Method
sanitizeProps
* Sanitize props - remove functions and circular references
public/picker/react-component-picker.js:286
↓ 1 callers
Function
selectFile
(filePath: string)
src/components/file-browser.tsx:73
↓ 1 callers
Method
sendError
* Send error to parent window
public/picker/react-component-picker.js:436
↓ 1 callers
Function
setupSSE
()
src/components/tool-invocation.tsx:358
↓ 1 callers
Method
startAutoCleanup
* Start automatic cleanup of stale sessions
src/lib/session-store.ts:136
↓ 1 callers
Method
subscribe
* Subscribe to session updates
src/lib/session-store.ts:104
↓ 1 callers
Function
throttle
( func: T, wait: number )
src/app/chat/page.tsx:17
↓ 1 callers
Function
toggleDirectory
(dirPath: string)
src/components/file-browser.tsx:59
↓ 1 callers
Method
trackModifications
* Track modified files for cleanup
src/lib/direct-picker-injection.ts:297
Function
ChatContent
()
src/app/chat/page.tsx:50
Function
ComponentContextPill
({ component, onClear, }: ComponentContextPillProps)
src/components/component-context-pill.tsx:110
Function
DELETE
( request: NextRequest, { params }: { params: Promise<{ sessionId: string }> } )
src/app/api/session/[sessionId]/cleanup/route.ts:7
Function
FileBrowser
({ sessionId }: FileBrowserProps)
src/components/file-browser.tsx:17
Function
GET
( request: NextRequest, { params }: { params: Promise<{ sessionId: string }> } )
src/app/api/container/[sessionId]/inject-picker/route.ts:12
Function
GET
( request: NextRequest, { params }: { params: Promise<{ sessionId: string }> } )
src/app/api/container/[sessionId]/files/route.ts:5
Function
GET
( 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