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
↓ 11 callers
Function
entry
(path: string, type: 'file' | 'directory')
src/renderer/src/lib/workspace-file-index.test.ts:15
↓ 11 callers
Function
errorMessage
(error: unknown)
kun/src/adapters/tool/web-tool-provider.ts:621
↓ 11 callers
Function
filePathToUri
(filePath: string)
kun/src/adapters/tool/lsp-client.ts:533
↓ 11 callers
Function
findNearestGitRoot
(start: string)
src/main/services/git-discovery.ts:21
↓ 11 callers
Method
forThread
(threadId: string)
kun/src/services/usage-service.ts:70
↓ 11 callers
Function
formatCost
(costUsd: number | null | undefined, locale = fallbackLocale(), costCny?: number | null)
src/renderer/src/hooks/use-thread-usage.ts:64
↓ 11 callers
Function
getGitBranches
(workspaceRoot: string)
src/main/services/git-service.ts:172
↓ 11 callers
Function
isChineseLocale
(settings: AppSettingsV1)
src/main/claw-runtime.ts:176
↓ 11 callers
Function
isDeadHrefTarget
(target: string | undefined, html?: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:237
↓ 11 callers
Function
isInternalDeepSeekGuiWorkspace
(path?: string)
src/renderer/src/lib/workspace-path.ts:85
↓ 11 callers
Function
jsonResponse
(body: unknown, status = 200)
src/main/claw-platform-install.test.ts:11
↓ 11 callers
Function
jsonResponse
(value: unknown, status = 200)
kun/src/benchmark/replay-benchmark.test.ts:368
↓ 11 callers
Function
load
()
src/renderer/src/components/design/DesignAIRail.tsx:216
↓ 11 callers
Function
lookup
(results: Record<string, string>)
kun/src/adapters/tool/builtin-tool-utils.test.ts:16
↓ 11 callers
Function
makeSilentModel
()
kun/tests/loop-test-harness.ts:63
↓ 11 callers
Function
migrateLegacyAppSettings
(parsed: LegacyAppSettingsShape)
src/shared/app-settings-kun.ts:1132
↓ 11 callers
Function
normalizeChatContentMaxWidth
(value: unknown)
src/shared/app-settings-types.ts:57
↓ 11 callers
Function
normalizeKeyboardShortcuts
( settings?: Partial<KeyboardShortcutsConfigV1> | null )
src/shared/keyboard-shortcuts.ts:166
↓ 11 callers
Function
normalizeModelProviderId
(value: unknown)
src/shared/app-settings-provider.ts:1254
↓ 11 callers
Function
normalizeSddRelativePath
(value: string)
src/shared/sdd.ts:15
↓ 11 callers
Function
oauthServer
()
kun/tests/mcp-tool-provider.test.ts:1093
↓ 11 callers
Function
oneOf
(value: unknown, values: T)
kun/src/adapters/tool/design-canvas-tool.ts:585
↓ 11 callers
Function
parseCompactCommand
(input: string)
src/renderer/src/components/chat/floating-composer-commands.ts:77
↓ 11 callers
Function
pathExists
(targetPath: string)
src/main/services/workspace-paths.ts:43
↓ 11 callers
Function
persistArtifactMeta
(workspaceRoot: string, artifact: DesignArtifact)
src/renderer/src/design/design-artifact-persistence.ts:241
↓ 11 callers
Function
providerCapabilityState
( enabled: boolean, disabledReason: string, availableProvider: boolean, unavailableReason: string )
kun/src/contracts/capabilities.ts:781
↓ 11 callers
Function
put
(key: string, value: string | undefined)
src/main/kun-process.ts:1021
↓ 11 callers
Function
readRememberedGuiPlan
( workspaceRoot: string, threadId?: string | null )
src/renderer/src/plan/plan-store.ts:237
↓ 11 callers
Method
recordPipelineStage
( threadId: string, turnId: string, stage: PipelineStage, details?: Record<string, unknown>
kun/src/loop/agent-loop.ts:2804
↓ 11 callers
Method
request
(approval: ApprovalRequest)
kun/src/ports/approval-gate.ts:10
↓ 11 callers
Method
resolveContent
(id: string, scope: { threadId?: string; workspace?: string })
kun/src/attachments/attachment-store.ts:27
↓ 11 callers
Function
resolveDesignComposerContextTargets
(input: { artifacts: readonly DesignArtifact[] activeArtifactId: string | null canvasDocument: CanvasDoc
src/renderer/src/design/design-composer-context.ts:54
↓ 11 callers
Function
resolveKunImageGenerationSettings
(settings: AppSettingsV1)
src/shared/app-settings-provider.ts:826
↓ 11 callers
Function
resolveKunStartupTimeoutMs
( platform: NodeJS.Platform, env: NodeJS.ProcessEnv )
src/main/kun-process.ts:127
↓ 11 callers
Function
resolveModelProviderProxyUrl
(settings: AppSettingsV1)
src/shared/app-settings-provider.ts:166
↓ 11 callers
Function
resolvePlanModeToolSpecs
( toolSpecs: ModelToolSpec[], options: { planTurnActive: boolean createPlanSatisfied: boolean
kun/src/loop/agent-loop.ts:278
↓ 11 callers
Function
restoreGitCheckpoint
(params: { dataDir: string checkpointId: string storage?: GitCheckpointStorageOptions /** * Opt-in
src/main/services/git-checkpoint-service.ts:631
↓ 11 callers
Function
result
(input: { id: string toolName: string toolKind: 'file_change' | 'command_execution' path?: string tu
kun/src/loop/agent-loop.test.ts:23
↓ 11 callers
Function
runAgentCommand
( command: Exclude<KunCliCommand, 'serve' | 'help'>, argv: readonly string[], io: CliIo )
kun/src/cli/agent-cli.ts:96
↓ 11 callers
Method
runPrompt
(settings: AppSettingsV1, options: RunPromptOptions)
src/main/claw-runtime.ts:565
↓ 11 callers
Method
sendUserMessage
( threadId: string, text: string, options?: { mode?: string model?: string provi
src/renderer/src/agent/types.ts:477
↓ 11 callers
Function
serializeCanvasDocument
(doc: CanvasDocument)
src/renderer/src/design/canvas/canvas-persistence.ts:17
↓ 11 callers
Method
setItem
(key: string, value: string)
src/renderer/src/store/chat-store-navigation-actions.test.ts:53
↓ 11 callers
Function
showExportNotice
(notice: WriteNotice)
src/renderer/src/components/write/WriteWorkspaceView.tsx:248
↓ 11 callers
Method
subscribe
(threadId: string, handler: (event: RuntimeEvent) => void)
kun/src/ports/event-bus.ts:10
↓ 11 callers
Method
sync
(settings: AppSettingsV1)
src/main/claw-runtime.ts:439
↓ 11 callers
Function
t
(key: string)
src/renderer/src/write/quick-actions.test.ts:6
↓ 11 callers
Function
toolError
(code: string, message: string)
kun/src/adapters/tool/computer-use-tool-provider.ts:101
↓ 11 callers
Function
toolError
(code: string, message: string, toolTelemetry?: Record<string, unknown>)
kun/src/adapters/tool/image-gen-tool-provider.ts:1001
↓ 11 callers
Function
trim
(value: string | undefined)
kun/src/loop/title-generator.ts:155
↓ 11 callers
Function
update
(patch: Partial<WorkflowNodeInputV1>)
src/renderer/src/components/workflow/NodeConfigPanel.tsx:366
↓ 11 callers
Method
updateTask
( taskId: string, updater: (task: ScheduledTaskV1, settings: AppSettingsV1) => ScheduledTaskV1 )
src/main/schedule-runtime.ts:438
↓ 10 callers
Function
addLayer
(doc: CanvasDocument, shape: CanvasShape, parentId = doc.rootId)
src/renderer/src/design/canvas/canvas-layer-tree.test.ts:18
↓ 10 callers
Function
addRect
()
src/renderer/src/design/canvas/design-system.test.ts:23
↓ 10 callers
Function
analyzeCacheRegression
(input: { current: number | null baseline: readonly (number | null)[] reasons?: readonly CacheMissReason
kun/src/cache/cache-regression.ts:65
↓ 10 callers
Function
applyRequestHistoryHygiene
( items: TurnItem[], options: RequestHistoryHygieneOptions = {}, scope: RequestHistoryHygieneScope = {}
kun/src/loop/request-history-hygiene.ts:68
↓ 10 callers
Function
armBusyWatchdog
( set: (partial: Partial<ChatState> | ((state: ChatState) => Partial<ChatState>)) => void, get: () => Chat
src/renderer/src/store/chat-store-runtime.ts:556
↓ 10 callers
Function
buildHtmlSiblingManifest
( artifacts: DesignArtifact[], excludeId: string | null, limit = 8 )
src/renderer/src/design/design-pages.ts:156
↓ 10 callers
Function
buildPlanRelativePath
(featureName: string, suffix?: number)
src/shared/gui-plan.ts:34
↓ 10 callers
Function
canUpgradeThreadTitle
(thread: { title?: string | null; titleAuto?: boolean })
kun/src/loop/agent-loop.ts:177
↓ 10 callers
Function
cancelExternalSyncAnimation
()
src/renderer/src/write/write-workspace-store.ts:48
↓ 10 callers
Function
capture
(overrides: Partial<CliIo> = {})
kun/tests/cli-agent.test.ts:24
↓ 10 callers
Function
clampWidth
(value: number, min: number, max: number)
src/renderer/src/components/workbench-layout.ts:55
↓ 10 callers
Function
compactCodeWorkspaceRoots
(workspaceRoots: readonly (string | undefined | null)[])
src/renderer/src/store/chat-store-helpers.ts:309
↓ 10 callers
Function
completionNotificationDedupeKeyForWatchedThread
( threadId: string | null | undefined, now = Date.now() )
src/renderer/src/store/chat-store-runtime.ts:86
↓ 10 callers
Function
concreteDataSignalCount
(text: string)
src/renderer/src/design/html-quality/product-and-hero-content.ts:81
↓ 10 callers
Function
configureLinuxWaylandImeSwitches
( platform = process.platform, env: LinuxImeEnv = process.env )
src/main/app-command-line.ts:28
↓ 10 callers
Function
defaultDevicePresetForDesignTarget
(target: unknown)
src/renderer/src/design/design-context.ts:62
↓ 10 callers
Function
defaultRuntimeRequest
()
src/main/workflow-runtime.nodes.test.ts:146
↓ 10 callers
Function
docFromMarkdown
(markdown: string)
src/renderer/src/write/tiptap/markdown-sync.test.ts:10
↓ 10 callers
Function
emit
(state: SdkDownloadState)
src/main/agent-sdk-installer.ts:175
↓ 10 callers
Function
emitRendererSettingsChanged
(settings: AppSettingsV1)
src/renderer/src/lib/keyboard-shortcut-settings.ts:11
↓ 10 callers
Function
emptyThreadForkRegistry
()
src/renderer/src/lib/thread-fork-registry.ts:21
↓ 10 callers
Function
estimateText
(text?: string)
kun/src/loop/model-request-estimator.ts:75
↓ 10 callers
Function
estimateTokensFromText
(text: string)
src/renderer/src/lib/context-capacity.ts:97
↓ 10 callers
Function
execute
()
kun/tests/attachment-store.test.ts:689
↓ 10 callers
Function
fakeImage
(empty: boolean)
src/main/index.test.ts:136
↓ 10 callers
Function
filterEditableRootShapeIds
(doc: CanvasDocument, ids: Iterable<string>)
src/renderer/src/design/canvas/canvas-editability.ts:51
↓ 10 callers
Function
formatWorkspacePickerError
(error: unknown)
src/renderer/src/lib/format-workspace-picker-error.ts:3
↓ 10 callers
Function
frame
(payload: unknown)
kun/src/adapters/model/compat-model-client.streaming-tool-calls.test.ts:28
↓ 10 callers
Function
gate
(input: Partial<DesignMultiPageGateInput> = {})
src/renderer/src/design/design-pages-gate.test.ts:22
↓ 10 callers
Function
getLanguageServer
(key: string)
kun/src/adapters/tool/lsp-servers.ts:170
↓ 10 callers
Method
getTurn
(threadId: string, turnId: string)
kun/src/services/turn-service.ts:459
↓ 10 callers
Function
groupDesignArtifacts
( artifacts: readonly DesignArtifact[], screenLinkedIds?: ReadonlySet<string> )
src/renderer/src/design/design-artifact-actions.ts:41
↓ 10 callers
Method
handlesProvider
True when this runtime owns the given provider (kind: 'agent-sdk').
kun/src/runtime/agent-sdk/agent-sdk-runtime.ts:92
↓ 10 callers
Function
hasProductAppScreenSignal
(html: string, visibleText: string)
src/renderer/src/design/html-quality/product-and-hero-content.ts:123
↓ 10 callers
Function
imageGenConfig
(overrides: Record<string, unknown> = {})
kun/tests/image-gen-tool-provider.test.ts:43
↓ 10 callers
Method
interruptTurn
(threadId: string, turnId: string, options?: { discard?: boolean })
src/renderer/src/agent/types.ts:544
↓ 10 callers
Function
isCodeThread
( thread: NormalizedThread, clawChannels: ClawImChannelV1[] = [], writeRegistry?: WriteThreadRegistry,
src/renderer/src/store/chat-store-runtime.ts:403
↓ 10 callers
Function
isMemoryDraftDirty
( dialog: MemoryDialogState, draft: MemoryDraft )
src/renderer/src/components/settings-section-memory.tsx:60
↓ 10 callers
Function
isWriteThreadId
( threadId: string | null | undefined, registry: WriteThreadRegistry = readWriteThreadRegistry() )
src/renderer/src/write/write-thread-registry.ts:164
↓ 10 callers
Function
loadThreadUsage
(threadId: string)
src/renderer/src/hooks/use-thread-usage.ts:134
↓ 10 callers
Function
looksLikeStandaloneImageAssetPrompt
(text: string)
src/renderer/src/design/design-image-intent.ts:19
↓ 10 callers
Function
makeErrorItem
(input: { id: string turnId: string threadId: string message: string code?: string details?: unkno
kun/src/domain/item.ts:256
↓ 10 callers
Function
normalizeDeepseekBaseUrl
(baseUrl: string | null | undefined)
src/shared/app-settings-normalizers.ts:11
↓ 10 callers
Function
normalizePositiveInteger
(value: unknown, fallback: number)
kun/src/adapters/tool/builtin-tool-utils.ts:676
↓ 10 callers
Function
normalizeProviderModels
(models: unknown)
src/shared/app-settings-provider.ts:1243
↓ 10 callers
Function
normalizeTerminalColors
( input: Partial<TerminalColorSettingsV1> | undefined )
src/shared/app-settings-terminal.ts:142
↓ 10 callers
Function
noteRuntimeHealthy
Record a healthy runtime: reset the crash budget and watchdog, announce recovery.
src/main/index.ts:809
↓ 10 callers
Method
now
()
kun/src/delegation/delegation-runtime.ts:723
← previous
next →
501–600 of 9,736, ranked by callers