Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KunAgent/Kun
/ functions
Functions
9,736 in github.com/KunAgent/Kun
⨍
Functions
9,736
◇
Types & classes
326
↓ 5 callers
Function
createMcpOAuthProvider
( serverId: string, server: McpServerConfig, options: McpOAuthProviderOptions | undefined )
kun/src/adapters/tool/mcp-oauth-provider.ts:346
↓ 5 callers
Function
createMemoryStorage
()
src/renderer/src/sdd/sdd-thread-registry.test.ts:16
↓ 5 callers
Function
createRuntime
()
kun/tests/instruction-runtime.test.ts:139
↓ 5 callers
Function
cumulativeCacheHitRate
( usage: Pick<ThreadUsageSummary, 'cachedTokens' | 'cacheMissTokens' | 'cacheHitRate'> )
src/renderer/src/hooks/use-thread-usage.ts:99
↓ 5 callers
Method
currentVersion
()
kun/src/adapters/tool/virtual-tool-catalog.ts:30
↓ 5 callers
Function
deadlineExceeded
(deadline: number)
src/main/services/write-retrieval-service.ts:134
↓ 5 callers
Function
defaultMiniMaxMediaGenerationKunPatch
(input: { providers: readonly ModelProviderProfileV1[] currentKun?: Partial<KunRuntimeSettingsV1> kunPat
src/shared/app-settings-provider.ts:398
↓ 5 callers
Function
deferred
()
kun/tests/delegation-runtime.test.ts:656
↓ 5 callers
Function
delay
(ms: number)
src/renderer/src/design/design-pages-run/orchestration-support.ts:111
↓ 5 callers
Method
deleteIndexRow
(threadId: string)
kun/src/adapters/hybrid/hybrid-thread-store.ts:614
↓ 5 callers
Function
deleteWorkspaceEntry
( payload: WorkspaceEntryDeletePayload )
src/main/services/workspace-files.ts:605
↓ 5 callers
Function
describeProcessBlock
( block: ChatBlock, t: (key: string, opts?: Record<string, unknown>) => string )
src/renderer/src/components/chat/message-timeline-process.tsx:1240
↓ 5 callers
Function
designPreviewRenderState
(content: string)
src/renderer/src/design/design-preview-file.ts:167
↓ 5 callers
Function
designSelectedContextLocations
(input: { targets: readonly DesignComposerContextTarget[] /** The active board/canvas artifact, used to lo
src/renderer/src/design/design-composer-context.ts:298
↓ 5 callers
Function
designTargetContextChip
(input: { designTarget?: DesignTarget label: string detail?: string })
src/renderer/src/design/design-composer-context.ts:169
↓ 5 callers
Function
dimension
( id: CritiqueDimensionId, status: CritiqueDimensionStatus, findingCount: number, summary: string, n
src/renderer/src/design/tool-protocol/critique-report.ts:38
↓ 5 callers
Method
dispose
()
src/main/feishu-streamer.ts:190
↓ 5 callers
Function
documentShapeIdsInOrder
(doc: CanvasDocument)
src/renderer/src/design/design-board.ts:103
↓ 5 callers
Function
done
(result: ClaudeSubscriptionLoginResult)
src/main/claude-subscription-auth.ts:80
↓ 5 callers
Function
downloadPageUrl
()
src/main/gui-updater.ts:279
↓ 5 callers
Function
drain
(iterable: AsyncIterable<ModelStreamChunk>)
kun/src/adapters/model/compat-model-client.endpoint-format.test.ts:53
↓ 5 callers
Function
eachLineMatch
Run a per-line regex and emit a hit for each match.
kun/src/quality/rules.ts:119
↓ 5 callers
Function
editableSelectionRoots
()
src/renderer/src/design/canvas/canvas-shortcuts.ts:47
↓ 5 callers
Function
effectiveHistoryAfterLatestCompaction
(items: readonly TurnItem[])
kun/src/loop/compaction-history.ts:3
↓ 5 callers
Function
emitUpdate
()
kun/src/adapters/tool/builtin-bash-tool.ts:127
↓ 5 callers
Function
emptyCounters
()
kun/src/services/usage-service.ts:384
↓ 5 callers
Method
ensureDir
(path: string)
kun/src/adapters/file/file-session-store.ts:216
↓ 5 callers
Function
envWithLegacyFallback
(kunName, legacyName)
electron-builder.config.cjs:6
↓ 5 callers
Function
envWithLegacyFallback
(kunName: string, legacyName: string)
src/main/gui-updater.ts:29
↓ 5 callers
Function
escapeXml
(text: string)
kun/src/services/background-shell-notice.ts:11
↓ 5 callers
Function
estimateMiniMaxCost
(input: { model: string providerHost?: string inputTokens: number cacheReadTokens: number cacheWrite
kun/src/adapters/model/minimax-pricing.ts:116
↓ 5 callers
Function
executeDesignHtmlPreviewScript
( webview: Pick<DesignHtmlPreviewWebviewElement, 'executeJavaScript'> | null | undefined, code: string )
src/renderer/src/components/design/DesignHtmlPreviewHost.tsx:102
↓ 5 callers
Function
expandSettingsHomePathsForUse
( settings: AppSettingsV1, homeDir = currentHomeDir(), platform = currentPlatform() )
src/renderer/src/lib/settings-home-paths.ts:91
↓ 5 callers
Function
extractCanvasOpBlocksFromValue
(value: unknown)
src/renderer/src/design/canvas/apply-shape-ops.ts:142
↓ 5 callers
Function
extractQuotedField
(text: string, field: string)
src/renderer/src/components/chat/message-timeline-process.tsx:937
↓ 5 callers
Function
extractShapeOpsBlocks
(text: string)
src/renderer/src/design/canvas/apply-shape-ops.ts:55
↓ 5 callers
Function
fakeChild
()
src/main/claude-subscription-auth.test.ts:8
↓ 5 callers
Function
fallback
(value: string | undefined, empty = 'TBD')
src/renderer/src/design/design-artifact-markdown.ts:23
↓ 5 callers
Function
feishuSenderLabel
(message: NormalizedMessage)
src/main/claw-runtime-helpers.ts:112
↓ 5 callers
Function
fetchUpstreamModelIds
( settings: AppSettingsV1, _apiKey?: string )
src/main/upstream-models.ts:41
↓ 5 callers
Function
fieldError
(rowId: string, field: McpServerFieldError['field'])
src/renderer/src/components/mcp/McpServersEditor.tsx:119
↓ 5 callers
Function
filterScheduledTasks
(tasks: ScheduledTaskV1[], filter: TaskFilter)
src/renderer/src/components/schedule/ScheduleTasksView.tsx:340
↓ 5 callers
Function
filterThreadsForSidebar
( threads: NormalizedThread[], reader: ThreadDetailReader )
src/renderer/src/lib/thread-sidebar-visibility.ts:28
↓ 5 callers
Method
findChannelConversation
( channel: ClawImChannelV1, session: Pick<ClawImRemoteSessionV1, 'chatId' | 'threadId'> )
src/main/claw-runtime.ts:996
↓ 5 callers
Function
findFoundationArtifact
( artifacts: DesignArtifact[], role: DesignFoundationRole )
src/renderer/src/design/design-foundation.ts:29
↓ 5 callers
Function
findResizeSnaps
( bounds: Rect, handle: ResizeHandle, statics: Rect[], zoom: number, gridSize: number | null = null
src/renderer/src/design/canvas/canvas-snap.ts:214
↓ 5 callers
Function
firstLookupResult
( lookup: SpawnSyncLike, command: string, args: string[] )
kun/src/adapters/tool/builtin-tool-utils.ts:28
↓ 5 callers
Function
firstTagText
(html: string, tag: string)
src/renderer/src/design/generator-lane/openui-html-normalizer.ts:62
↓ 5 callers
Function
fitWorkbenchWidths
( containerWidth: number, leftWidth: number, rightWidth: number, panels: { leftPanelVisible: boolean;
src/renderer/src/components/workbench-layout.ts:103
↓ 5 callers
Function
flush
()
src/main/services/write-retrieval-service.ts:306
↓ 5 callers
Function
focusSourceAt
(view: EditorView, offset: number)
src/renderer/src/write/markdown-live-widgets.ts:22
↓ 5 callers
Function
forgetRememberedSddDraft
(draft: Pick<SddDraft, 'id' | 'workspaceRoot'>)
src/renderer/src/sdd/sdd-draft-store.ts:277
↓ 5 callers
Function
formFieldTags
(html: string)
src/renderer/src/design/html-quality/controls-forms-and-dialogs.ts:285
↓ 5 callers
Function
formatActionError
(error: unknown)
src/renderer/src/write/write-workspace-file-actions.ts:38
↓ 5 callers
Function
formatComposerFileMentionToken
(relativePath: string, isDirectory = false)
src/renderer/src/lib/composer-file-references.ts:86
↓ 5 callers
Function
formatDesignTargetFrameLines
(ctx: DesignContext | undefined)
src/renderer/src/design/design-turn-prompt/shared.ts:214
↓ 5 callers
Function
formatDuration
(ms: number)
src/renderer/src/components/chat/message-timeline-tools.ts:85
↓ 5 callers
Function
formatGoalElapsedSeconds
(seconds: number)
src/renderer/src/components/chat/FloatingComposer.tsx:439
↓ 5 callers
Function
formatMs
(value: number | null)
kun/src/cli/replay-entry.ts:177
↓ 5 callers
Function
formatRelativeUnit
( formatter: Intl.RelativeTimeFormat, locale: string, value: number, unit: RelativeTimeUnit )
src/renderer/src/lib/format-relative-time.ts:45
↓ 5 callers
Function
formatTokenNumber
(value: number)
src/renderer/src/components/settings-section-agents.tsx:227
↓ 5 callers
Function
formatUsd
(value)
kun/scripts/transcript-diff.mjs:107
↓ 5 callers
Function
formatWriteQuotedSelectionForPrompt
(selection: WriteQuotedSelection)
src/renderer/src/write/quoted-selection.ts:82
↓ 5 callers
Function
genImageResult
(id: string, isError = false)
kun/src/loop/tool-result-image.test.ts:36
↓ 5 callers
Function
getKunBaseUrl
(port: number, host = '127.0.0.1')
src/main/kun-base-url.ts:6
↓ 5 callers
Function
getProcessDetail
(block: ChatBlock, summaryText?: string)
src/renderer/src/components/chat/message-timeline-process.tsx:1125
↓ 5 callers
Function
getScreenCreationFactory
()
src/renderer/src/design/canvas/screen-artifact-bridge.ts:46
↓ 5 callers
Function
getSelectionBounds
( objects: Record<string, CanvasShape>, ids: Set<string> )
src/renderer/src/design/canvas/canvas-hit-test.ts:109
↓ 5 callers
Function
getWriteRenderSafety
({ isMarkdown, contentLength, fileSize, truncated }: WriteRenderSafetyOptions)
src/renderer/src/write/write-render-safety.ts:19
↓ 5 callers
Function
gitFailure
(error: unknown)
src/main/services/git-service.ts:56
↓ 5 callers
Function
goalFromCore
(goal: CoreThreadGoalJson)
src/renderer/src/agent/kun-mapper.ts:104
↓ 5 callers
Function
handleComposerImagePaste
({ canPickAttachment, clipboardData, preventDefault, onPickAttachments, onPasteClipboardImage }: {
src/renderer/src/components/chat/FloatingComposer.tsx:405
↓ 5 callers
Function
hasCachedFileReferenceValidation
( target: FileReferenceTarget, workspaceRoot?: string )
src/renderer/src/lib/file-reference-validation.ts:61
↓ 5 callers
Function
hasCachedHighlightCode
(code: string, language: string)
src/renderer/src/lib/code-highlighting.ts:246
↓ 5 callers
Function
hasTaskDependencyCycle
(taskId: string, tasks: readonly ScheduledTaskV1[])
src/main/schedule-runtime.ts:970
↓ 5 callers
Function
hasValidPort
(settings: AppSettingsV1)
src/renderer/src/components/settings-utils.ts:57
↓ 5 callers
Function
htmlFrameDrawingActive
({ foundationRole, previewStatus, parallelStatus, pagesRunPhase, pagesRunStep, chatBusy }: { fou
src/renderer/src/components/design/canvas/html-frame/html-frame-helpers.ts:411
↓ 5 callers
Function
htmlFrameMeasurementArtifactMatchesEpoch
( epoch: HtmlFrameMeasurementEpoch, artifact: DesignArtifact | undefined )
src/renderer/src/components/design/canvas/html-frame/use-html-frame-auto-size.ts:71
↓ 5 callers
Function
htmlFrameShouldApplyScrollbarSuppression
({ autoResizeEnabled, suppressScrollbars }: { autoResizeEnabled: boolean suppressScrollbars: boolean }
src/renderer/src/components/design/canvas/html-frame/html-frame-helpers.ts:127
↓ 5 callers
Function
htmlFrameShouldClearElementContextOnEditingChange
({ wasEditing, editing }: { wasEditing: boolean editing: boolean })
src/renderer/src/components/design/canvas/html-frame/html-frame-helpers.ts:295
↓ 5 callers
Function
htmlFrameShouldPromotePreviewToReady
({ previewStatus, previewRenderState, drawingActive, artifactRelativePath, previewRelativePath }: {
src/renderer/src/components/design/canvas/html-frame/html-frame-helpers.ts:330
↓ 5 callers
Function
htmlFrameShouldSuppressDocumentScrollbars
({ measuredHeight, documentHeight }: { measuredHeight: number documentHeight: number })
src/renderer/src/components/design/canvas/html-frame/html-frame-helpers.ts:117
↓ 5 callers
Function
htmlFrameWebviewCanvasStyle
({ canvasWidth, visualCanvasHeight, zoom, interactive }: { canvasWidth: number visualCanvasHeight:
src/renderer/src/components/design/canvas/html-frame/html-frame-helpers.ts:353
↓ 5 callers
Function
htmlFrameWebviewPartition
(shapeId: string)
src/renderer/src/components/design/canvas/html-frame/html-frame-helpers.ts:474
↓ 5 callers
Function
hydrateBlockModelLabels
(threadId: string, blocks: ChatBlock[])
src/renderer/src/store/chat-store-helpers.ts:527
↓ 5 callers
Function
imageFetchFailure
( url: string, error: unknown, request: { timeoutMs: number } )
kun/src/adapters/tool/image-gen-tool-provider.ts:81
↓ 5 callers
Function
imageFilesFromTransfer
(source: ComposerImageTransferSource | null | undefined)
src/renderer/src/components/chat/FloatingComposer.tsx:375
↓ 5 callers
Function
initialState
()
src/renderer/src/write/write-workspace-store-helpers.ts:270
↓ 5 callers
Function
initialTerminalTabState
()
src/renderer/src/components/terminal/TerminalPanel.tsx:75
↓ 5 callers
Function
installListDirectory
( impl: (options: { workspaceRoot: string; path?: string }) => unknown )
src/renderer/src/lib/workspace-file-index.test.ts:26
↓ 5 callers
Function
isBackgroundShellNoticeUserMessage
(input: { text: string meta?: Record<string, unknown> | null })
src/shared/background-shell-notice.ts:61
↓ 5 callers
Function
isCodeSidebarThread
( thread: NormalizedThread, clawChannels: ClawImChannelV1[] = [], writeRegistry?: WriteThreadRegistry,
src/renderer/src/store/chat-store-runtime.ts:412
↓ 5 callers
Function
isCodexPluginCacheRoot
(path: string)
src/main/services/skill-service.ts:329
↓ 5 callers
Function
isCurrentAttach
()
src/renderer/src/components/terminal/TerminalPanel.tsx:266
↓ 5 callers
Function
isCustomModelEndpointFormat
(format: ModelEndpointFormat)
kun/src/contracts/model-endpoint-format.ts:54
↓ 5 callers
Function
isGuiPlanRelativePath
(value: string)
kun/src/shared/gui-plan.ts:22
↓ 5 callers
Function
isImageMimeType
(value: string | undefined)
src/renderer/src/components/chat/FloatingComposer.tsx:318
↓ 5 callers
Function
isInlineCompletionEmptyFeedback
(reason = '')
src/renderer/src/write/inline-completion/codemirror.ts:115
↓ 5 callers
Function
isInternalGuiPlanPrompt
(text: string)
src/renderer/src/plan/plan-request.ts:4
↓ 5 callers
Function
isKunHealthResponseBody
(body: string)
src/main/kun-health.ts:1
← previous
next →
1,401–1,500 of 9,736, ranked by callers