| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
| export { getAuthHeaders, getJsonHeaders, sanitizeHeaders } from './api-headers'; |
| export { apiFetch, apiFetchWithParams, apiPost, type ApiFetchOptions } from './api-fetch'; |
| export { validateApiKey } from './api-key-validation'; |
|
|
| |
| export { getAttachmentDisplayItems, isMcpPrompt, isMcpResource } from './attachment-display'; |
| export { isTextFile, isImageFile, isPdfFile, isAudioFile, isVideoFile } from './attachment-type'; |
|
|
| |
| export { default as autoResizeTextarea } from './autoresize-textarea'; |
|
|
| |
| export { |
| filterByLeafNodeId, |
| findMessageById, |
| findLeafNode, |
| findDescendantMessages, |
| getMessageSiblings, |
| buildSiblingInfoMap |
| } from './branching'; |
|
|
| |
| export { |
| highlightCode, |
| detectIncompleteCodeBlock, |
| splitGluedClosingCodeFences, |
| trimCodePadding, |
| type IncompleteCodeBlock |
| } from './code'; |
|
|
| |
| export { setConfigValue, getConfigValue, configToParameterRecord } from './config-helpers'; |
|
|
| |
| export { buildProxiedUrl, buildProxiedHeaders } from './cors-proxy'; |
|
|
| |
| export { extractRootDomain, sanitizeExternalUrl, canonicalizeServerUrl } from './url'; |
|
|
| |
| export { modelLoadFraction, modelLoadProgressText } from './progress'; |
|
|
| |
| export { createMessageCountMap, getMessageCount } from './conversation-utils'; |
|
|
| |
| export { |
| copyToClipboard, |
| copyCodeToClipboard, |
| formatMessageForClipboard, |
| parseClipboardContent, |
| hasClipboardAttachments |
| } from './clipboard'; |
|
|
| |
| export { getFileTypeLabel } from './file-preview'; |
| export { getPreviewText, generateConversationTitle } from './text'; |
|
|
| |
| export { |
| getFileTypeCategory, |
| getFileTypeCategoryByExtension, |
| getFileTypeByExtension, |
| isFileTypeSupported |
| } from './file-type'; |
|
|
| |
| export { |
| formatFileSize, |
| formatParameters, |
| formatNumber, |
| formatJsonPretty, |
| formatTime, |
| formatPerformanceTime, |
| formatAttachmentText |
| } from './formatters'; |
|
|
| |
| export { isIMEComposing } from './is-ime-composing'; |
|
|
| |
| export { maskInlineLaTeX, preprocessLaTeX } from './latex-protection'; |
|
|
| |
| export { |
| isFileTypeSupportedByModel, |
| filterFilesByModalities, |
| generateModalityErrorMessage |
| } from './modality-file-validation'; |
|
|
| |
| export { normalizeModelName, isValidModelName } from './model-names'; |
|
|
| |
| export { portalToBody } from './portal-to-body'; |
|
|
| |
| export { normalizeFloatingPoint, normalizeNumber } from './precision'; |
|
|
| |
| export { getLanguageFromFilename } from './syntax-highlight-language'; |
|
|
| |
| export { isTextFileByName, readFileAsText, isLikelyTextFile } from './text-files'; |
|
|
| |
| export { debounce } from './debounce'; |
|
|
| |
| export { sanitizeKeyValuePairKey, sanitizeKeyValuePairValue } from './sanitize'; |
|
|
| |
| export { getImageErrorFallbackHtml } from './image-error-fallback'; |
|
|
| |
| |
| export { parseSseJsonStream, type SseJsonEvent } from './sse'; |
|
|
| |
| export { |
| detectMcpTransportFromUrl, |
| parseMcpServerSettings, |
| getMcpLogLevelIcon, |
| getMcpLogLevelClass, |
| isImageMimeType, |
| parseResourcePath, |
| getDisplayName, |
| getResourceDisplayName, |
| isCodeResource, |
| isImageResource, |
| getResourceIcon, |
| getResourceTextContent, |
| getResourceBlobContent, |
| downloadResourceContent |
| } from './mcp'; |
|
|
| |
| export { |
| extractTemplateVariables, |
| expandTemplate, |
| isTemplateComplete, |
| normalizeResourceUri, |
| type UriTemplateVariable |
| } from './uri-template'; |
|
|
| |
| export { createBase64DataUrl } from './data-url'; |
|
|
| |
| export { parseHeadersToArray, serializeHeaders } from './headers'; |
|
|
| |
| export { |
| abbreviateWorkingDir, |
| abbreviateHome, |
| lastPathSegment, |
| formatCwdMessage, |
| parseCwdMessage, |
| CWD_CHANGED_PREFIX, |
| CWD_CLEARED_TEXT, |
| type CwdMessageInfo |
| } from './path-display'; |
|
|
| |
| export { |
| splitPathQuery, |
| buildCaseInsensitiveGlob, |
| buildGlobSearchArgs, |
| rankEntries, |
| joinPath, |
| highlightMatch, |
| type GlobEntry, |
| type GlobSearchArgs, |
| type PathQuery |
| } from './working-directory'; |
|
|
| |
| export { |
| runGlobSearch, |
| runGlobSearchWithChildren, |
| type GlobEntryResult, |
| type GlobSearchResult |
| } from './glob-search'; |
|
|
| |
| export { |
| findMentionToken, |
| takeMentionDismissSnapshot, |
| type MentionDismissSnapshot |
| } from './mention-token'; |
|
|
| |
| export { |
| findCommandToken, |
| takeCommandDismissSnapshot, |
| type CommandDismissSnapshot |
| } from './command-token'; |
|
|
| |
| export { |
| tokenizeContent, |
| containsCodeSpan, |
| isOffsetInCodeBlock, |
| domMatchesTokens, |
| syncCodeBlockHatches, |
| stripBlockBoundaryLineBreaks, |
| serializeContent, |
| buildFragment, |
| rangeToTextOffset, |
| textOffsetToRange, |
| badgeAwareWordJump, |
| leadingBadgeEdgeOffset, |
| type ContentToken |
| } from './contenteditable-tokenizer'; |
|
|
| |
| export { SourceHistory, type SourceHistoryEntry } from './source-history'; |
|
|
| |
| |
| export { |
| containsFileMentionLink, |
| fileMentionLinkRe, |
| encodeFileLinkPath, |
| decodeFileLinkPath, |
| MENTION_BADGE_CLASSNAME, |
| MENTION_BADGE_ICON_CLASSNAME, |
| MENTION_BADGE_SVG_ATTRIBUTES, |
| MENTION_BADGE_FILE_ICON_PATHS, |
| MENTION_BADGE_FOLDER_ICON_PATHS, |
| getMentionBadgeIconPaths, |
| getMentionBadgeLabel, |
| splitMentionSegments, |
| buildMentionInsertion |
| } from './mention-badge'; |
|
|
| |
| export { |
| deriveAgenticSections, |
| buildAssistantRawOutput, |
| parseToolResultWithImages, |
| splitSearchSummaryList, |
| hasAgenticContent, |
| classifyToolResult, |
| type AgenticSection, |
| type ToolResultLine |
| } from './agentic'; |
|
|
| |
| export { computeLineDiff, prefixFor, renderUnifiedDiff, type DiffLine } from './compute-line-diff'; |
|
|
| |
| export { parsePartialJsonArgs } from './parse-partial-json-args'; |
|
|
| |
| export { parseExecShellCommandError } from './parse-exec-shell-error'; |
| export { |
| parseExecShellCommandExitStatus, |
| isExitCodeSummaryLine, |
| type ExecShellExitStatus |
| } from './parse-exec-shell-status'; |
|
|
| |
| export { |
| SUPPORTED_WEB_SEARCH_TOOL_NAMES, |
| extractSearchResults, |
| extractSearchQuery, |
| faviconForUrl, |
| isWebSearchToolName, |
| type SearchResult |
| } from './search-results'; |
|
|
| |
| export { TTLCache, ReactiveTTLMap, type TTLCacheOptions } from './cache-ttl'; |
|
|
| |
| export { redactValue } from './redact'; |
|
|
| |
| export { |
| getRequestUrl, |
| getRequestMethod, |
| getRequestBody, |
| summarizeRequestBody, |
| formatDiagnosticErrorMessage, |
| extractJsonRpcMethods, |
| type RequestBodySummary |
| } from './request-helpers'; |
|
|
| |
| export { |
| throwIfAborted, |
| isAbortError, |
| createLinkedController, |
| createTimeoutSignal, |
| withAbortSignal |
| } from './abort'; |
|
|
| |
| |
| |
| |
| |
| |
| export { tryParseToolResultObject } from './tool-call-meta'; |
|
|
| |
| |
| |
| export { getBuiltinToolUi, type BuiltinToolUiEntry } from '$lib/constants/built-in-tools'; |
|
|
| |
|
|
| export { uuid } from './uuid'; |
|
|
| |
| export { remToPx } from './css'; |
|
|