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
↓ 1 callers
Function
haveSameRelevantToolResults
( message: AgentMessage, previous: Map<string, ToolResultMessage> | undefined, next: Map<string, ToolRes
components/MessageView.tsx:86
↓ 1 callers
Function
imageSource
(img: ImageContent)
components/MessageView.tsx:1311
↓ 1 callers
Function
inferRemovedWorktree
* addWorktree() places worktrees in `<repoRoot>-worktrees/<dir>`. When such a * directory no longer exists (worktree removed), group its sessions bac
lib/worktree.ts:68
↓ 1 callers
Function
installLocation
(scope: PluginScope, cwd: string)
components/PluginsConfig.tsx:37
↓ 1 callers
Function
isBashOutputPathReferencedBySession
(filePath: string, sessionId: string | null)
lib/session-file-references.ts:20
↓ 1 callers
Function
isDisabledPackage
(entry: PackageSource)
app/api/plugins/route.ts:42
↓ 1 callers
Function
isEditToolName
(toolName: string)
components/MessageView.tsx:1007
↓ 1 callers
Function
isEmptyDraft
(draft: ChatDraft)
lib/draft-store.ts:20
↓ 1 callers
Function
isEnabled
(value)
bin/pi-web-options.js:8
↓ 1 callers
Function
isFilePathReferencedBySession
(filePath: string, sessionId: string | null)
lib/session-file-references.ts:9
↓ 1 callers
Function
isFinalAnswerBlock
(block: AssistantContentBlock)
lib/message-display.ts:18
↓ 1 callers
Function
isObject
(val: unknown)
lib/normalize.ts:3
↓ 1 callers
Function
isPathInside
(candidate: string, root: string)
lib/file-links.ts:46
↓ 1 callers
Function
isRecord
(value: unknown)
components/MessageView.tsx:1017
↓ 1 callers
Function
isRecord
(value: unknown)
lib/session-reader.ts:237
↓ 1 callers
Function
isRecord
(value: unknown)
app/api/models-config/test/route.ts:12
↓ 1 callers
Function
isSubsequence
(needle: string, haystack: string)
lib/file-fuzzy.ts:78
↓ 1 callers
Function
isWithin
(path: string, root: string)
lib/skill-lock.ts:49
↓ 1 callers
Function
jsonResponse
(value, status = 200)
lib/skill-updates.test.mjs:27
↓ 1 callers
Function
key
(keyValue, modifiers = {})
lib/terminal-input.test.mjs:8
↓ 1 callers
Function
lastNonSpaceVisibleCharIndex
(text: string)
lib/ansi.ts:70
↓ 1 callers
Function
legacyCtrlSequence
(key: string)
lib/terminal-input.ts:31
↓ 1 callers
Function
listWithGit
(cwd: string)
app/api/file-index/route.ts:61
↓ 1 callers
Function
listWithWalk
(cwd: string)
app/api/file-index/route.ts:79
↓ 1 callers
Function
loadAllSessions
()
lib/session-reader.ts:16
↓ 1 callers
Function
loadSubject
()
lib/ansi.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/message-display.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/custom-ui-terminal.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/file-types.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/file-links.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/bash-output.test.mjs:7
↓ 1 callers
Function
loadSubject
()
lib/git-changes.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/file-fuzzy.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/initial-navigation.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/session-file-references.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/file-upload.test.mjs:7
↓ 1 callers
Function
loadSubject
()
lib/chat-lazy-load.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/patch.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/terminal-input.test.mjs:4
↓ 1 callers
Function
loadSubject
()
lib/file-dirent.test.mjs:7
↓ 1 callers
Function
loadThinkingContent
(sessionId: string, entryId: string, blockIndex: number)
components/MessageView.tsx:26
↓ 1 callers
Function
loadUnreadSessionIds
()
components/SessionSidebar.tsx:52
↓ 1 callers
Function
looksLikeRelativeFileHref
(href: string)
lib/file-links.ts:55
↓ 1 callers
Function
makeSkill
(name, filePath, scope)
lib/skill-lock.test.mjs:16
↓ 1 callers
Function
modelsData
(id)
lib/models-cache.test.mjs:6
↓ 1 callers
Function
normalizeCwd
(cwd: string)
app/api/cwd/validate/route.ts:7
↓ 1 callers
Function
normalizeDisplayMath
(markdown: string)
components/MarkdownBody.tsx:95
↓ 1 callers
Function
normalizeQueuedMessages
(q?: { steering?: string[]; followUp?: string[] } | null)
hooks/useAgentSession.ts:87
↓ 1 callers
Function
normalizeSlashes
(value: string)
lib/session-file-references-core.ts:17
↓ 1 callers
Function
normalizeSource
(source: string, sourceType?: string)
lib/skill-lock.ts:64
↓ 1 callers
Function
normalizeToolCallBlock
(block: unknown)
lib/normalize.ts:7
↓ 1 callers
Function
omitToolResultBase64Images
(message: AgentMessage)
lib/session-reader.ts:259
↓ 1 callers
Method
onDestroy
(cb: () => void)
lib/rpc-manager.ts:300
↓ 1 callers
Method
onEvent
(listener: EventListener)
lib/rpc-manager.ts:291
↓ 1 callers
Function
parseEntryTimestamp
(timestamp: string)
lib/session-reader.ts:232
↓ 1 callers
Function
parseFileRequestType
(value: string)
app/api/files/[...path]/route.ts:72
↓ 1 callers
Function
parseHttpIdleTimeoutMs
(value: unknown)
lib/http-dispatcher.ts:14
↓ 1 callers
Function
parseInstallCount
(installs: string)
app/api/skills/search/route.ts:81
↓ 1 callers
Function
parseLimit
(value: unknown)
app/api/skills/search/route.ts:24
↓ 1 callers
Function
parseSearchOutput
(raw: string)
app/api/skills/search/route.ts:37
↓ 1 callers
Function
parseUploadFileNames
(value: unknown)
app/api/files/[...path]/route.ts:113
↓ 1 callers
Function
patchExportHtml
* Patch the exported HTML to fix recursive functions that overflow * the call stack on deep linear session trees (e.g., 5000+ entries). * * ## Root
app/api/sessions/[id]/export/route.ts:124
↓ 1 callers
Method
persistBashOnlySession
()
lib/rpc-manager.ts:271
↓ 1 callers
Function
phaseLabel
(phase: AgentPhase)
components/ChatWindow.tsx:40
↓ 1 callers
Function
play
()
hooks/useAudio.ts:67
↓ 1 callers
Function
playTone
(ctx: AudioContext)
hooks/useAudio.ts:5
↓ 1 callers
Function
previewText
(text: string)
components/MessageView.tsx:1333
↓ 1 callers
Function
projectTreeForResponse
* Project the session tree into the shallow navigation tree sent to the client. * Keeps roots, branch points, and leaves while contracting single-chi
app/api/sessions/[id]/route.ts:24
↓ 1 callers
Function
readCompactResult
(result: unknown, reason: string)
hooks/useAgentSession.ts:289
↓ 1 callers
Function
readModelsJson
()
app/api/models-config/route.ts:13
↓ 1 callers
Function
readPackageMetadata
(installedPath?: string)
app/api/plugins/route.ts:133
↓ 1 callers
Function
readScope
(scope: unknown)
app/api/plugins/route.ts:265
↓ 1 callers
Function
readSkillLock
(path: string)
lib/skill-lock.ts:40
↓ 1 callers
Function
reconcile
()
hooks/useAgentSession.ts:855
↓ 1 callers
Function
registerAbortHandler
(handler: (() => void) | null)
hooks/useKeyboardShortcuts.ts:15
↓ 1 callers
Function
removeVisibleCharAt
(text: string, index: number)
lib/ansi.ts:59
↓ 1 callers
Function
removeWorktree
(cwd: string, worktreePath: string, force = false)
lib/worktree.ts:212
↓ 1 callers
Function
render
()
components/MarkdownBody.tsx:138
↓ 1 callers
Function
renderAnsiLine
(line: string, keyPrefix: string)
components/ChatWindow.tsx:997
↓ 1 callers
Function
renderMarkdown
(markdown)
components/MarkdownBody.test.mjs:13
↓ 1 callers
Function
renderMessage
(idx: number, options: { attachRef?: boolean; keyPrefix?: string; messageOverride?: AgentMessage; showTimestam
components/ChatWindow.tsx:486
↓ 1 callers
Function
replaceRequired
(source: string, name: string, search: string, replacement: string)
app/api/sessions/[id]/export/route.ts:130
↓ 1 callers
Method
requestExtensionCustomUi
( factory: unknown, options?: unknown, )
lib/rpc-manager.ts:696
↓ 1 callers
Method
requestExtensionUi
( request: ExtensionUiRequestBody, defaultValue: T, parseResponse: (response: ExtensionUiResponse)
lib/rpc-manager.ts:764
↓ 1 callers
Method
requestRender
(force?: boolean)
lib/custom-ui-terminal.ts:12
↓ 1 callers
Function
resolveAncestor
(id: string)
components/SessionSidebar.tsx:205
↓ 1 callers
Method
resolveExtensionUiResponse
(response: ExtensionUiResponse)
lib/rpc-manager.ts:616
↓ 1 callers
Function
revokeImagePreview
(image: AttachedImage)
components/ChatInput.tsx:152
↓ 1 callers
Function
safeDecode
(value: string)
lib/session-file-references-core.ts:9
↓ 1 callers
Function
safeJson
(value: unknown)
components/MessageView.tsx:1321
↓ 1 callers
Function
sanitizeBranchForDir
(branch: string)
lib/worktree.ts:169
↓ 1 callers
Function
saveUnreadSessionIds
(ids: Set<string>)
components/SessionSidebar.tsx:65
↓ 1 callers
Function
scale
(v: number)
lib/ansi.ts:126
↓ 1 callers
Function
scoreEntry
* TUI scoreEntry ladder (exact 100 / prefix 80 / substring 50 / path substring * 30, directories +10) plus a low-weight subsequence fallback so genui
lib/file-fuzzy.ts:97
↓ 1 callers
Function
searchSkillsApi
(query: string, limit: number)
app/api/skills/search/route.ts:57
↓ 1 callers
Function
section
( title: string, sectionRows: string[][], va
components/AppShell.tsx:1022
↓ 1 callers
Function
send
(eventName: string, data: Record<string, unknown>)
app/api/files/[...path]/route.ts:510
↓ 1 callers
Function
send
(controller: ReadableStreamDefaultController, data: unknown)
app/api/auth/login/[provider]/route.ts:52
↓ 1 callers
Method
setAutoCompactionEnabled
(enabled: boolean)
lib/pi-types.ts:151
↓ 1 callers
Method
setAutoRetryEnabled
(enabled: boolean)
lib/pi-types.ts:152
← previous
next →
301–400 of 703, ranked by callers