Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agegr/pi-web
/ functions
Functions
703 in github.com/agegr/pi-web
⨍
Functions
703
◇
Types & classes
142
↓ 12 callers
Function
resolveSessionPath
(sessionId: string)
lib/session-reader.ts:112
↓ 9 callers
Method
emit
(event: AgentEvent)
lib/rpc-manager.ts:256
↓ 7 callers
Method
abort
()
lib/pi-types.ts:140
↓ 7 callers
Function
getFileExt
(filePath: string)
lib/file-types.ts:41
↓ 7 callers
Function
invalidateModelsCache
()
lib/models-cache.ts:33
↓ 7 callers
Function
normalizeFilePathSlashes
(filePath: string)
lib/file-paths.ts:1
↓ 6 callers
Method
destroy
()
lib/rpc-manager.ts:602
↓ 6 callers
Function
getAllowedFileRoots
()
lib/file-access.ts:23
↓ 6 callers
Function
getRelativeFilePath
(filePath: string, cwd?: string)
lib/file-paths.ts:30
↓ 6 callers
Function
getRpcSession
(sessionId: string)
lib/rpc-manager.ts:975
↓ 6 callers
Function
invalidateSessionListCache
()
lib/session-reader.ts:97
↓ 6 callers
Method
isAlive
()
lib/rpc-manager.ts:135
↓ 6 callers
Function
isFilePathAllowed
(target: string, allowedRoots: Set<string>)
lib/file-access.ts:54
↓ 6 callers
Function
useIsMobile
()
hooks/useIsMobile.ts:29
↓ 5 callers
Function
allowFileRoot
(root: string)
lib/allowed-roots.ts:19
↓ 5 callers
Function
cacheSessionPath
(sessionId: string, filePath: string)
lib/session-reader.ts:130
↓ 5 callers
Function
encodeFilePathForApi
(filePath: string)
lib/file-paths.ts:8
↓ 5 callers
Function
getFileApiUrl
( filePath: string, type: "read" | "download" | "meta" | "preview" | "watch", sourceSessionId?: string |
components/FileViewer.tsx:118
↓ 5 callers
Function
getFileName
(filePath: string)
lib/file-paths.ts:16
↓ 5 callers
Function
git
(cwd: string, args: string[])
lib/worktree.ts:51
↓ 5 callers
Function
isWindowsAbsolutePath
(filePath: string)
lib/file-access.ts:19
↓ 5 callers
Method
send
(command: Record<string, unknown>)
lib/rpc-manager.ts:304
↓ 5 callers
Function
visibleCharPositions
(text: string)
lib/ansi.ts:39
↓ 4 callers
Method
applyForcedEmptySystemPrompt
()
lib/rpc-manager.ts:250
↓ 4 callers
Function
formatSize
(bytes: number)
components/FileViewer.tsx:158
↓ 4 callers
Function
formatTime
(ts?: number)
components/MessageView.tsx:73
↓ 4 callers
Function
getDisplayableAssistantBlocks
( message: AssistantMessage, options: DisplayOptions = {}, )
lib/message-display.ts:11
↓ 4 callers
Function
listAllSessions
()
lib/session-reader.ts:48
↓ 4 callers
Function
notifyRunningChange
()
lib/rpc-manager.ts:1014
↓ 4 callers
Function
startRpcSession
( sessionId: string, sessionFile: string, cwd: string, toolNames?: string[] )
lib/rpc-manager.ts:1029
↓ 4 callers
Function
useTheme
()
hooks/useTheme.ts:27
↓ 3 callers
Function
buildAtMentionText
(entryPath: string, isDir: boolean)
lib/file-fuzzy.ts:173
↓ 3 callers
Function
buildSessionContext
( entries: SessionEntry[], leafId?: string | null, options: { deferThinking?: boolean; deferToolResultIm
lib/session-reader.ts:194
↓ 3 callers
Function
buttonStyle
(disabled?: boolean, danger?: boolean)
components/PluginsConfig.tsx:167
↓ 3 callers
Function
checkCwdAllowed
Same gate as /api/files: only session cwds / project roots / explicitly * allowed dirs may be inspected or mutated through this endpoint.
app/api/worktrees/route.ts:8
↓ 3 callers
Function
classifyGitStatus
(entry: GitPorcelainEntry)
lib/git-status.ts:39
↓ 3 callers
Method
closeCustomUi
(id: string, value: unknown)
lib/rpc-manager.ts:658
↓ 3 callers
Function
copyText
(text: string)
lib/clipboard.ts:1
↓ 3 callers
Method
createExtensionUiContext
()
lib/rpc-manager.ts:807
↓ 3 callers
Function
documentPreviewKind
(filePath: string)
lib/file-types.ts:57
↓ 3 callers
Function
emptyCounts
()
app/api/plugins/route.ts:26
↓ 3 callers
Function
getAudioMime
(filePath: string)
lib/file-types.ts:49
↓ 3 callers
Function
getFileIcon
(name: string, size = 14)
components/FileIcons.tsx:202
↓ 3 callers
Function
getImageMime
(filePath: string)
lib/file-types.ts:45
↓ 3 callers
Function
getPathCache
()
lib/session-reader.ts:102
↓ 3 callers
Function
getPathToIdCache
()
lib/session-reader.ts:107
↓ 3 callers
Function
getRegistry
()
lib/rpc-manager.ts:959
↓ 3 callers
Function
getRunningRpcSessionIds
()
lib/rpc-manager.ts:979
↓ 3 callers
Function
getSessionEntries
(filePath: string)
lib/session-reader.ts:189
↓ 3 callers
Function
git
(cwd: string, args: string[], maxBuffer = GIT_STATUS_MAX_BUFFER)
lib/git-changes.ts:21
↓ 3 callers
Function
isValidSessionId
(sessionId: string | null)
lib/session-file-references-core.ts:5
↓ 3 callers
Function
keyFor
(source: string, scope: PluginScope)
app/api/plugins/route.ts:34
↓ 3 callers
Function
loadSkillsWithInstallInfo
(cwd: string)
lib/skills-service.ts:5
↓ 3 callers
Function
normalizeSlashes
(filePath: string)
lib/allowed-roots.ts:8
↓ 3 callers
Function
parseUnifiedPatch
(text: string)
lib/patch.ts:24
↓ 3 callers
Method
reload
(options?: { beforeSessionStart?: () => void | Promise<void> })
lib/pi-types.ts:133
↓ 3 callers
Function
resolveLocalFileHref
( href: string | undefined, baseDir?: string, relativeRoot = baseDir, )
lib/file-links.ts:77
↓ 3 callers
Function
result
( install: SkillInstallInfo, state: SkillUpdateResult["state"], latestVersion?: string, message?: stri
lib/skill-updates.ts:90
↓ 3 callers
Function
runNpx
(args: string[], opts: RunNpxOptions = {})
lib/npx.ts:52
↓ 3 callers
Method
setUIContext
(uiContext?: unknown, mode?: "tui" | "rpc" | "json" | "print")
lib/pi-types.ts:73
↓ 3 callers
Function
settle
(status: EventStreamConnectionStatus)
hooks/useAgentSession.ts:604
↓ 3 callers
Function
shortenPath
(path: string)
components/PluginsConfig.tsx:11
↓ 3 callers
Function
shortenPath
(p: string)
components/SkillsConfig.tsx:12
↓ 3 callers
Function
skillFolder
(skillPath: string)
lib/skill-updates.ts:83
↓ 3 callers
Function
splitFinalAssistantBlocks
( message: AssistantMessage, options: DisplayOptions = {}, )
lib/message-display.ts:22
↓ 3 callers
Function
withUndiciErrorListener
(dispatcher: T)
lib/http-dispatcher.ts:31
↓ 2 callers
Method
abortBash
()
lib/pi-types.ts:142
↓ 2 callers
Function
annotateSkillsWithInstallInfo
( skills: SkillInfo[], { cwd, agentDir, globalLockPath = getGlobalSkillsLockPath(), projec
lib/skill-lock.ts:121
↓ 2 callers
Function
ansi256Color
(index: number)
lib/ansi.ts:118
↓ 2 callers
Function
appendTitleRequestToTrailingUser
(messages: AgentMessage[])
lib/session-title.ts:77
↓ 2 callers
Function
asBracketedPaste
(text: string)
lib/terminal-input.ts:61
↓ 2 callers
Function
buildEntriesFromFiles
(files: string[])
lib/file-fuzzy.ts:59
↓ 2 callers
Function
buildFileAtMentionsText
(entryPaths: string[])
lib/file-fuzzy.ts:178
↓ 2 callers
Function
buildSessionTitleAgentOptions
(source: Agent)
lib/session-title.ts:46
↓ 2 callers
Function
buildSkillUpdateArgs
(install: SkillInstallInfo)
lib/skill-updates.ts:51
↓ 2 callers
Function
captureScrollDistance
(scrollHeight: number, scrollTop: number)
lib/chat-lazy-load.ts:16
↓ 2 callers
Function
checkSkillUpdate
( install: SkillInstallInfo, options: CheckOptions = {}, )
lib/skill-updates.ts:213
↓ 2 callers
Function
checkSkillUpdates
( installs: SkillInstallInfo[], options: CheckOptions = {}, )
lib/skill-updates.ts:242
↓ 2 callers
Function
cloneDraft
(draft: ChatDraft)
lib/draft-store.ts:13
↓ 2 callers
Function
cloneNode
(node: T, compressedEntryIds?: string[])
app/api/sessions/[id]/route.ts:49
↓ 2 callers
Function
compress
(node: SessionTreeNode)
components/BranchNavigator.tsx:44
↓ 2 callers
Function
configureHttpDispatcher
( timeoutMs: number = DEFAULT_HTTP_IDLE_TIMEOUT_MS, )
lib/http-dispatcher.ts:58
↓ 2 callers
Function
countToolCallBlocks
(blocks: AssistantContentBlock[])
lib/message-display.ts:37
↓ 2 callers
Function
createClientInputRequest
()
app/api/auth/login/[provider]/route.ts:73
↓ 2 callers
Function
createHeadlessCustomUiTui
( requestRender: (force?: boolean) => void, columns = DEFAULT_CUSTOM_UI_COLUMNS, rows = DEFAULT_CUSTOM_U
lib/custom-ui-terminal.ts:15
↓ 2 callers
Method
emitCustomUiRender
(id: string, custom: ActiveCustomUi)
lib/rpc-manager.ts:641
↓ 2 callers
Function
extractGitError
(error: unknown)
lib/worktree.ts:226
↓ 2 callers
Function
fetchEntries
(dirPath: string)
components/FileExplorer.tsx:72
↓ 2 callers
Function
fetchJson
( url: string, fetcher: Fetcher, headers?: HeadersInit, )
lib/skill-updates.ts:106
↓ 2 callers
Function
filePathFromSegments
(segments: string[])
app/api/files/[...path]/route.ts:65
↓ 2 callers
Function
filterFileEntries
( entries: FileIndexEntry[], query: string, limit: number = AT_RESULT_LIMIT, )
lib/file-fuzzy.ts:120
↓ 2 callers
Function
findRepositoryRoot
(cwd: string)
lib/git-changes.ts:30
↓ 2 callers
Function
generateSessionTitle
(source: AgentSession)
lib/session-title.ts:168
↓ 2 callers
Function
getAdditionalAllowedRoots
()
lib/allowed-roots.ts:12
↓ 2 callers
Method
getAllTools
()
lib/pi-types.ts:159
↓ 2 callers
Function
getCallbackRegistry
()
app/api/auth/login/[provider]/route.ts:12
↓ 2 callers
Function
getDocumentMime
(filePath: string)
lib/file-types.ts:53
↓ 2 callers
Function
getFileDirectory
(filePath: string)
lib/file-paths.ts:21
↓ 2 callers
Function
getGlobalSkillsLockPath
({ homeDir = homedir(), xdgStateHome = process.env.XDG_STATE_HOME, }: GlobalLockPathOptions = {})
lib/skill-lock.ts:31
↓ 2 callers
Function
getInitialNavigation
(searchParams: Pick<URLSearchParams, "get">)
lib/initial-navigation.ts:6
next →
1–100 of 703, ranked by callers