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
↓ 9 callers
Function
resolveConfiguredApiKey
(settings: AppSettingsV1)
src/main/index.ts:176
↓ 9 callers
Function
resolveKeyboardShortcutBindings
( settings?: Partial<KeyboardShortcutsConfigV1> | null, platform?: KeyboardShortcutPlatform | null )
src/shared/keyboard-shortcuts.ts:186
↓ 9 callers
Function
resolveUiPluginFigure
( figures: UiPluginRuntimeFigures | null | undefined, slots: readonly UiPluginFigureSlot[] )
src/shared/ui-plugin.ts:305
↓ 9 callers
Function
sendMessage
()
src/renderer/src/design/design-pages-dispatch.test.ts:17
↓ 9 callers
Function
sendRequest
(session: LspSession, method: string, params: Record<string, unknown> | null)
kun/src/adapters/tool/lsp-client.ts:330
↓ 9 callers
Function
setRuntimeRequest
(runtimeRequest: RuntimeRequest)
src/renderer/src/hooks/use-thread-usage.test.ts:11
↓ 9 callers
Function
shellConfig
( platform: NodeJS.Platform = process.platform, lookup: SpawnSyncLike = spawnSync, fileExists: (path: st
kun/src/adapters/tool/builtin-tool-utils.ts:307
↓ 9 callers
Function
shellSpawnEnv
( env: NodeJS.ProcessEnv = process.env, platform: NodeJS.Platform = process.platform )
kun/src/adapters/tool/builtin-tool-utils.ts:348
↓ 9 callers
Function
snapshot
(graph: TaskGraph)
kun/src/adapters/tool/task-graph-tool.ts:30
↓ 9 callers
Function
staticHeadingTexts
(inner: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:398
↓ 9 callers
Function
summarizeToolBlock
( block: ToolBlock, t: (key: string, opts?: Record<string, unknown>) => string )
src/renderer/src/components/chat/message-timeline-process.tsx:1070
↓ 9 callers
Function
surface
( id: DesignModeSurfaceId, status: DesignModeSurfaceStatus, healthScore: number, toolIds: string[],
src/renderer/src/design/design-mode/design-mode-surface.ts:131
↓ 9 callers
Function
tagCount
(html: string, tag: string)
src/renderer/src/design/generator-lane/openui-html-normalizer.ts:132
↓ 9 callers
Function
thread
(id: string, workspace: string)
src/renderer/src/write/write-thread-registry.test.ts:31
↓ 9 callers
Method
threadDir
(threadId: string)
kun/src/adapters/file/file-session-store.ts:200
↓ 9 callers
Function
tokenPlanPresetForProfileId
(id: string)
src/renderer/src/components/settings-section-providers.tsx:138
↓ 9 callers
Function
updateForm
(patch: Partial<ProviderModelForm>)
src/renderer/src/components/settings-section-provider-models.tsx:304
↓ 9 callers
Function
usageNumber
(value: unknown)
src/renderer/src/hooks/use-thread-usage.ts:31
↓ 9 callers
Function
useDesignAgentActionRunner
( onSeedPrompt?: (prompt: string) => void )
src/renderer/src/components/design/useDesignAgentActionRunner.ts:11
↓ 9 callers
Function
validateFileReference
( target: FileReferenceTarget, workspaceRoot?: string )
src/renderer/src/lib/file-reference-validation.ts:68
↓ 9 callers
Function
validateProviderModelForm
( form: ProviderModelForm, provider: ModelProviderProfileV1 )
src/renderer/src/components/provider-model-editor.ts:220
↓ 9 callers
Function
visionContext
(image: boolean)
kun/src/adapters/tool/computer-use-tool-provider.test.ts:32
↓ 9 callers
Function
waitForKunHealth
(settings: AppSettingsV1, timeoutMs: number)
src/main/index.ts:708
↓ 9 callers
Function
withDescendants
( objects: Record<string, CanvasShape>, ids: Iterable<string> )
src/renderer/src/design/canvas/canvas-shape-store.ts:71
↓ 9 callers
Function
withFileMutationQueue
( filePath: string, fn: () => Promise<T> )
kun/src/adapters/tool/file-mutation-queue.ts:145
↓ 9 callers
Function
withTool
(draft: StepDraft)
src/renderer/src/design/design-mode/design-mode-workflow.ts:74
↓ 9 callers
Function
writeSelectionStatesEqual
( a: WriteEditorSelectionState, b: WriteEditorSelectionState )
src/renderer/src/write/write-selection.ts:80
↓ 8 callers
Function
addShape
(doc: CanvasDocument, item: CanvasShape, parentId = doc.rootId)
src/renderer/src/design/canvas/canvas-minimap.test.ts:19
↓ 8 callers
Function
addShapeForCreation
(shape: CanvasShape, parentId?: string)
src/renderer/src/design/canvas/tools/creation-undo.ts:13
↓ 8 callers
Function
alignShapes
( shapes: BoundsWithId[], axis: AlignAxis, target?: Rect )
src/renderer/src/design/canvas/canvas-align.ts:22
↓ 8 callers
Function
appendUrlPath
(baseUrl: string, path: string)
src/shared/openai-compat-url.ts:11
↓ 8 callers
Function
applyUiModeDom
(mode: string, runtime: UiPluginRuntime | null)
src/renderer/src/store/ui-plugin-store.ts:50
↓ 8 callers
Function
applyWriteBlockTypeToLines
(lines: string[], type: WriteBlockType)
src/renderer/src/write/block-type.ts:76
↓ 8 callers
Function
artifactId
(content: string | Buffer)
kun/src/artifacts/artifact-summary.ts:14
↓ 8 callers
Function
beginPendingInfographic
( kind: PendingInfographicKind = 'infographic' )
src/renderer/src/write/infographic-pending.ts:29
↓ 8 callers
Function
boardArtifact
()
src/renderer/src/design/design-turn-prompt/target.test.ts:31
↓ 8 callers
Function
buildContextCapacity
(input: ContextCapacityInput)
src/renderer/src/lib/context-capacity.ts:168
↓ 8 callers
Function
buildDesignPreviewSkeleton
(relativePath: string)
src/renderer/src/design/design-preview-file.ts:180
↓ 8 callers
Function
buildPrototypeHref
(fromHtmlPath: string | undefined, toHtmlPath: string)
src/renderer/src/design/design-turn-prompt/shared.ts:184
↓ 8 callers
Function
buildPrototypeLinksForPage
( entry: DesignPagePlanEntry, currentRelativePath: string, plannedPages: PlannedPrototypePage[] )
src/renderer/src/design/design-pages.ts:80
↓ 8 callers
Function
buildTool
(configOverrides = {}, controllerOverrides = {})
kun/src/adapters/tool/computer-use-tool-provider.test.ts:50
↓ 8 callers
Function
canvasDocumentKey
(workspaceRoot: string, artifactId: string, baseDir?: string)
src/renderer/src/design/canvas/canvas-persistence.ts:13
↓ 8 callers
Method
capture
()
kun/src/adapters/computer-use/host-control.ts:228
↓ 8 callers
Function
check
(command: VerificationCommand, exitCode = 0, output = '')
kun/src/adapters/tool/builtin-verify-tool.test.ts:50
↓ 8 callers
Function
clamp01
(n: number)
kun/src/quality/color.ts:25
↓ 8 callers
Function
clawInstallTargetLabel
( t: (k: string, opts?: Record<string, unknown>) => string, target: ClawInstallTarget )
src/renderer/src/components/chat/SidebarClawDialogHelpers.ts:247
↓ 8 callers
Method
clear
()
kun/src/services/llm-debug-recorder.ts:98
↓ 8 callers
Function
clearPoll
()
src/renderer/src/components/settings-section-providers.tsx:354
↓ 8 callers
Function
collectCanvasImageAssets
(document: CanvasDocument)
src/renderer/src/design/assets/design-asset-inventory.ts:36
↓ 8 callers
Function
collectiveBounds
(shapes: BoundsWithId[])
src/renderer/src/design/canvas/canvas-align.ts:102
↓ 8 callers
Function
commitCreatedShapeUndo
( state: CreatedShapeUndo | null, label = 'create-shape' )
src/renderer/src/design/canvas/tools/creation-undo.ts:30
↓ 8 callers
Function
compactNumbers
(values: Array<number | null | undefined>)
kun/src/benchmark/replay-benchmark.ts:873
↓ 8 callers
Function
compactStrings
(values: unknown)
src/shared/app-settings-normalizers.ts:16
↓ 8 callers
Function
compactText
(text = '')
src/renderer/src/write/inline-completion/feedback.ts:32
↓ 8 callers
Function
componentCard
( foundation: TemplateFoundation, label: string, x: number, y: number, width: number, height: numb
src/renderer/src/design/canvas/design-system-template/board-builders.ts:244
↓ 8 callers
Function
composeFrameworkGuidance
(ids: string[])
src/renderer/src/sdd/pm-skill-frameworks.ts:322
↓ 8 callers
Function
composerMenuSupportsModel
( group: Pick<ComposerModelMenuGroup, 'modelProfiles'>, modelId: string )
src/renderer/src/components/chat/FloatingComposerModelPicker.tsx:872
↓ 8 callers
Function
computeResizedBounds
( handle: ResizeHandle, start: Rect, dx: number, dy: number, shiftKey = false )
src/renderer/src/design/canvas/canvas-resize.ts:16
↓ 8 callers
Function
computeScheduleNextRunAt
(task: ScheduledTaskV1, from: Date)
src/main/schedule-runtime-helpers.ts:165
↓ 8 callers
Function
confinedPluginPath
(rootDir: string, pluginId: string, relativePath?: string)
src/main/services/ui-plugin-service.ts:40
↓ 8 callers
Function
connectPhoneProviderForTarget
(target: ClawInstallTarget)
src/renderer/src/components/chat/ConnectPhoneView.tsx:87
↓ 8 callers
Function
createApprovalRequest
(input: { id: string threadId: string turnId: string toolName: string summary: string createdAt?:
kun/src/domain/approval.ts:21
↓ 8 callers
Function
createBashLocalTool
(options: BashLocalToolOptions = {})
kun/src/adapters/tool/builtin-bash-tool.ts:687
↓ 8 callers
Function
createEmptyDesignSystem
()
src/renderer/src/design/canvas/design-system-types.ts:75
↓ 8 callers
Function
createReadLocalTool
(options: ReadLocalToolOptions = {})
kun/src/adapters/tool/builtin-read-tool.ts:14
↓ 8 callers
Function
createTaskGraphTool
(options: { rootDir?: string } = {})
kun/src/adapters/tool/task-graph-tool.ts:18
↓ 8 callers
Function
createThread
( service: ThreadService, request: Request )
kun/src/server/routes/threads.ts:66
↓ 8 callers
Function
defaultConversationWorkspaceRoot
()
src/renderer/src/lib/workspace-path.ts:52
↓ 8 callers
Method
deleteThread
(threadId: string)
src/renderer/src/agent/types.ts:554
↓ 8 callers
Function
describeNetworkError
(error: unknown)
kun/src/adapters/tool/image-gen-tool-provider.ts:55
↓ 8 callers
Function
detectFrontend
(source: string, options: DetectOptions = {})
kun/src/quality/detect.ts:60
↓ 8 callers
Function
diagnoseCacheUsage
(input: { usage: Pick<UsageSnapshot, 'promptTokens' | 'cacheHitTokens' | 'cacheMissTokens'> previous?: Cac
kun/src/cache/cache-diagnostics.ts:31
↓ 8 callers
Function
draft
(overrides: Partial<SddDraftHistoryItem> & Pick<SddDraftHistoryItem, 'id' | 'title'>)
src/renderer/src/components/chat/SidebarProjectsSection.test.ts:44
↓ 8 callers
Function
emptySelection
()
src/renderer/src/write/write-workspace-store-helpers.ts:237
↓ 8 callers
Function
entryKey
(kind: ProviderModelKind, modelId: string)
src/renderer/src/components/provider-model-import-dialog.tsx:38
↓ 8 callers
Function
estimateDeepseekCost
(input: { model: string cacheHitTokens: number cacheMissTokens: number outputTokens: number /** *
kun/src/adapters/model/deepseek-pricing.ts:80
↓ 8 callers
Function
estimateTokens
(text: string)
kun/src/loop/request-history-hygiene.ts:511
↓ 8 callers
Function
extractToolResultImages
(output: unknown)
kun/src/loop/tool-result-image.ts:70
↓ 8 callers
Function
extractUnifiedDiffText
(text: string | undefined)
src/renderer/src/lib/diff-stats.ts:31
↓ 8 callers
Function
fakeClient
()
kun/tests/mcp-tool-provider.test.ts:40
↓ 8 callers
Function
filterEditableShapeIds
(doc: CanvasDocument, ids: Iterable<string>)
src/renderer/src/design/canvas/canvas-editability.ts:40
↓ 8 callers
Function
formatAddressInput
(url: string)
src/renderer/src/components/DevBrowserPanel.tsx:90
↓ 8 callers
Function
formatTokenCount
(value: number, locale: string)
src/renderer/src/components/chat/InitialSessionUsageHeatmap.tsx:378
↓ 8 callers
Function
getActiveAgentApiKey
(settings: AppSettingsV1)
src/shared/app-settings-kun.ts:1069
↓ 8 callers
Function
getByPath
Drill into a value by a dot-path (e.g. "user.name"); empty path returns the value itself.
src/main/workflow-runtime.ts:215
↓ 8 callers
Function
getLocalWhisperModelStatus
( modelId: unknown = LOCAL_WHISPER_DEFAULT_MODEL_ID )
src/main/services/local-whisper-service.ts:60
↓ 8 callers
Function
guiPlanMatchesContext
( plan: GuiPlanArtifact, workspaceRoot: string, threadId?: string | null )
src/renderer/src/plan/plan-store.ts:226
↓ 8 callers
Function
hexToRgb
(hex: string)
src/renderer/src/design/design-tokens.ts:62
↓ 8 callers
Function
htmlFrameAutoSizeMeasurementCanWrite
({ artifactKind, sizeMode, previewStatus, parallelStatus, currentRenderableContent }: { artifactKi
src/renderer/src/components/design/canvas/html-frame/use-html-frame-auto-size.ts:83
↓ 8 callers
Function
htmlFramePreviewAsyncEpochMatches
( captured: HtmlFramePreviewAsyncEpoch | null, current: HtmlFramePreviewAsyncEpoch | null )
src/renderer/src/components/design/canvas/html-frame/html-frame-helpers.ts:314
↓ 8 callers
Function
installUiPluginFromDirectory
( userDataDir: string, sourceDir: string )
src/main/services/ui-plugin-service.ts:190
↓ 8 callers
Function
isChatAttachmentUploadEnabled
(input: AttachmentUploadAvailabilityInput)
src/renderer/src/lib/attachment-upload-availability.ts:9
↓ 8 callers
Function
isCurrentLoginRun
(runId: number)
src/renderer/src/components/settings-section-providers.tsx:365
↓ 8 callers
Function
isInternalTemporaryWorkspace
(path?: string)
src/renderer/src/lib/workspace-path.ts:27
↓ 8 callers
Function
isSddDraftRelativePath
(value: string)
src/shared/sdd.ts:23
↓ 8 callers
Function
isWorkspaceTextPreviewPath
(path: string)
src/renderer/src/lib/workspace-text-preview.ts:71
↓ 8 callers
Function
joinUrl
(base, ...parts)
scripts/publish-r2.mjs:188
↓ 8 callers
Function
jsonText
(value: unknown)
src/renderer/src/design/interop/design-resource-surface.ts:52
↓ 8 callers
Function
keyboardEventToShortcut
(event: KeyboardShortcutEventLike)
src/shared/keyboard-shortcuts.ts:242
↓ 8 callers
Function
make
(opts: { agentSdk: string[]; http: string[]; defaultIsAgentSdk: boolean })
kun/src/runtime/agent-sdk/agent-sdk-runtime-factory.test.ts:112
← previous
next →
701–800 of 9,736, ranked by callers