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
↓ 10 callers
Function
parseCanvasDocument
(raw: string)
src/renderer/src/design/canvas/canvas-persistence.ts:289
↓ 10 callers
Function
parseContextWindowInput
(raw: string)
src/renderer/src/components/provider-model-editor.ts:401
↓ 10 callers
Function
parseImageMarkdownLine
(line: string)
src/renderer/src/write/selected-image.ts:12
↓ 10 callers
Function
parsePendingInfographicId
(src: string | undefined)
src/renderer/src/write/infographic-pending.ts:58
↓ 10 callers
Function
pointer
( x: number, y: number, patch: Partial<Pick<CanvasPointerEvent, 'shiftKey' | 'altKey' | 'metaKey' | 'ctr
src/renderer/src/design/canvas/tools/linear-tool.test.ts:28
↓ 10 callers
Function
projectedOffsetForPos
( doc: PMNode, projection: WriteRichMarkdownProjection, pos: number )
src/renderer/src/write/tiptap/markdown-projection.ts:259
↓ 10 callers
Function
readWorkspaceFile
(payload: WorkspaceFileTarget)
src/main/services/workspace-files.ts:99
↓ 10 callers
Method
recordChildEvent
(record: ChildRunRecord)
kun/src/delegation/delegation-runtime.ts:685
↓ 10 callers
Function
redactSecretText
(value: string)
src/shared/secret-redaction.ts:29
↓ 10 callers
Function
rememberCodeWorkspaceRoots
( currentRoots: readonly string[], workspaceRoots: readonly (string | undefined | null)[] )
src/renderer/src/store/chat-store-helpers.ts:386
↓ 10 callers
Function
renderFallbackCodeHtml
(code: string)
src/renderer/src/lib/code-highlighting.ts:264
↓ 10 callers
Method
requireNut
()
kun/src/adapters/computer-use/host-control.ts:176
↓ 10 callers
Function
resolveConfiguredHooks
(config: HooksConfig | undefined)
kun/src/hooks/hook-config.ts:121
↓ 10 callers
Function
resolveOpenTargetPath
( rawPath: string, workspaceRoot?: string, options?: ResolveTargetOptions )
src/main/services/workspace-paths.ts:186
↓ 10 callers
Function
run
()
src/main/index.ts:293
↓ 10 callers
Function
runtimeJsonError
(code: string, message: string)
src/main/index.ts:182
↓ 10 callers
Function
saveDesignThreadRegistry
( registry: DesignThreadRegistry, storage: BrowserStorageLike | null = browserStorage() )
src/renderer/src/design/design-thread-registry.ts:146
↓ 10 callers
Method
shouldCompact
(items: TurnItem[], options?: CompactionTriggerOptions)
kun/src/loop/context-compactor.ts:92
↓ 10 callers
Function
spawnCapture
( file: string, args: string[], options: { cwd: string; signal?: AbortSignal } )
kun/src/adapters/tool/builtin-tool-utils.ts:546
↓ 10 callers
Function
str
(v: unknown)
src/renderer/src/components/chat/SubagentCallCard.tsx:61
↓ 10 callers
Function
syncMcpDiagnostic
( state: McpConnectionState, status: McpServerDiagnostic['status'] = state.status, toolCount = state.dia
kun/src/adapters/tool/mcp-tool-provider.ts:957
↓ 10 callers
Function
thread
(overrides: Partial<NormalizedThread> & Pick<NormalizedThread, 'id' | 'title'>)
src/renderer/src/lib/thread-sidebar-visibility.test.ts:10
↓ 10 callers
Function
threadUsagePath
(threadId: string)
src/renderer/src/hooks/use-thread-usage.test.ts:6
↓ 10 callers
Function
tokenPlanProviderId
(presetId: string)
src/shared/model-provider-presets.ts:719
↓ 10 callers
Function
toolError
(code: string, message: string, toolTelemetry?: Record<string, unknown>)
kun/src/adapters/tool/media-gen-tool-provider.ts:937
↓ 10 callers
Function
updateImageGeneration
(patch: Record<string, unknown>)
src/renderer/src/components/settings-section-image-generation.tsx:65
↓ 10 callers
Function
warm
(hit: number, miss: number)
kun/src/services/usage-service.test.ts:35
↓ 10 callers
Function
withInjectedPrototypeCapture
( script: string, baseURI: string, run: (ctx: { fakeWindow: { location: { hash: string }
src/renderer/src/design/prototype-player.scripted-navigation.test.ts:54
↓ 10 callers
Function
withToolBoundary
( run: () => Promise<{ output: unknown; isError?: boolean }> )
kun/src/adapters/tool/builtin-tool-utils.ts:42
↓ 10 callers
Function
writeAgents
(dir: string, text: string)
kun/tests/instruction-runtime.test.ts:147
↓ 9 callers
Function
acquireLspSession
(workspaceRoot: string, serverKey: string)
kun/src/adapters/tool/lsp-client.ts:359
↓ 9 callers
Function
addChild
(w: number, h: number)
src/renderer/src/design/canvas/canvas-auto-layout.test.ts:15
↓ 9 callers
Function
addUsage
(into: UsageSnapshot, delta: UsageSnapshot)
kun/src/domain/usage.ts:10
↓ 9 callers
Function
addWeightedTerms
(weights: Map<string, number>, text: string, weight: number)
src/main/services/write-retrieval-service.ts:475
↓ 9 callers
Function
aiRuntimeRequest
Build a runtimeRequest mock that drives the thread→turn→poll path and returns `replyText`.
src/main/workflow-runtime.nodes.test.ts:149
↓ 9 callers
Function
applyProviderModelForm
( provider: ModelProviderProfileV1, form: ProviderModelForm )
src/renderer/src/components/provider-model-editor.ts:256
↓ 9 callers
Function
artifact
(id: string, title: string)
src/renderer/src/design/design-turn-prompt/payload.test.ts:18
↓ 9 callers
Function
buildContext
()
kun/tests/web-tool-provider.test.ts:13
↓ 9 callers
Function
buildHarness
(overrides: Partial<ChatState> = {})
src/renderer/src/store/chat-store-side-actions.test.ts:102
↓ 9 callers
Function
buildHarness
(overrides?: { subscribeThreadEventsLive?: ReturnType<typeof vi.fn> recoverActiveTurn?: ReturnType<typeof
src/renderer/src/store/chat-store-navigation-actions.test.ts:58
↓ 9 callers
Function
buildRemoteMcpConfig
(servers: Record<string, string>)
src/renderer/src/components/PluginMarketplaceView.tsx:373
↓ 9 callers
Function
buildRuntimeCapabilityManifest
(input: { config?: KunCapabilitiesConfig model: ModelCapabilityMetadata mcp?: { configuredServers?:
kun/src/contracts/capabilities.ts:542
↓ 9 callers
Function
buildStitchDesignMarkdown
(options: BuildStitchDesignMarkdownOptions)
src/renderer/src/design/design-md-compat.ts:138
↓ 9 callers
Function
call
(argumentsValue: Record<string, unknown>)
kun/tests/tool-storm-breaker.test.ts:5
↓ 9 callers
Function
canonicalPath
(targetPath: string)
src/main/services/workspace-paths.ts:129
↓ 9 callers
Function
clearDesignOperationJournal
()
src/renderer/src/design/graph/design-operation-journal.ts:140
↓ 9 callers
Function
clearWatchedCompletionNotification
(threadId: string)
src/renderer/src/store/chat-store-runtime.ts:262
↓ 9 callers
Function
codeCanvasArtifactId
(threadId: string)
src/renderer/src/design/canvas/code-canvas.ts:12
↓ 9 callers
Function
composerReasoningEffortRequestValue
( value: ComposerReasoningEffort )
src/renderer/src/components/chat/FloatingComposerModelPicker.tsx:652
↓ 9 callers
Function
context
(workspace: string)
kun/src/adapters/tool/builtin-tool-utils.symlink.test.ts:9
↓ 9 callers
Function
createDesignArtifactId
()
src/renderer/src/design/design-types.ts:183
↓ 9 callers
Function
createGuiPlanArtifact
(options: { workspaceRoot: string threadId?: string | null relativePath: string absolutePath?: string
src/renderer/src/plan/plan-store.ts:177
↓ 9 callers
Function
createHybridStores
()
kun/tests/hybrid-store.test.ts:307
↓ 9 callers
Function
createSettings
(patch: Partial<AppSettingsV1['schedule']['internal']> = {})
src/main/claw-schedule-mcp-config.test.ts:30
↓ 9 callers
Function
createSettings
(workspaceRoot: string)
src/main/services/skill-service.test.ts:288
↓ 9 callers
Function
createWriteRecentEdit
(input: WriteRecentEditInput)
src/renderer/src/write/recent-edits.ts:67
↓ 9 callers
Function
customMcpConfigFragment
(id: string, raw: string, fallback: JsonRecord)
src/renderer/src/components/PluginMarketplaceView.tsx:453
↓ 9 callers
Function
cx
(...parts: Array<string | false | null | undefined>)
src/renderer/src/components/sidebar/SidebarPrimitives.tsx:4
↓ 9 callers
Function
defaultTerminalColors
()
src/shared/app-settings-terminal.ts:108
↓ 9 callers
Function
documentWithRect
(name: string, id?: string)
src/renderer/src/design/canvas/code-canvas.test.ts:18
↓ 9 callers
Function
emitJsonRpc
(proc: MockProcess, message: Record<string, unknown>)
kun/src/adapters/tool/lsp-client.test.ts:57
↓ 9 callers
Method
eq
(other: InlineCompletionWidget)
src/renderer/src/write/inline-completion/codemirror.ts:124
↓ 9 callers
Function
errorResponse
( body: RuntimeError, status: number )
kun/src/server/routes/runtime-error.ts:6
↓ 9 callers
Function
findDesignBoardArtifact
( artifacts: readonly DesignArtifact[] )
src/renderer/src/design/design-board.ts:49
↓ 9 callers
Function
findSnaps
( moving: Rect, statics: Rect[], zoom: number, gridSize: number | null = null )
src/renderer/src/design/canvas/canvas-snap.ts:36
↓ 9 callers
Function
getHeadCommit
(cwd: string)
src/main/services/worktree-service.ts:62
↓ 9 callers
Function
getModelProviderProfile
( settings: AppSettingsV1, providerId: string | undefined )
src/shared/app-settings-provider.ts:179
↓ 9 callers
Function
getRuntimeBaseUrlForSettings
(settings: AppSettingsV1)
src/main/runtime/kun-adapter.ts:71
↓ 9 callers
Function
hasClawPhoneChannel
( channels: ClawImChannelV1[], provider?: ClawImProvider )
src/renderer/src/components/chat/ConnectPhoneView.tsx:101
↓ 9 callers
Method
highestSeq
(threadId: string)
kun/src/ports/event-bus.ts:13
↓ 9 callers
Function
highlightCodeHtml
(code: string, language: string)
src/renderer/src/lib/code-highlighting.ts:291
↓ 9 callers
Function
initialSetupSelection
(settings: AppSettingsV1)
src/renderer/src/components/initial-setup-save.ts:75
↓ 9 callers
Function
invalidToolResult
( invocation: DesignToolInvocation, error: { code: string; message: string; suggestion?: string } )
src/renderer/src/design/tool-protocol/protocol-types.ts:32
↓ 9 callers
Function
isAllowedDocsUrl
(url: unknown)
src/renderer/src/components/PluginMarketplaceView.tsx:198
↓ 9 callers
Function
isFrontendPath
(filePath: string | undefined)
kun/src/quality/detect.ts:46
↓ 9 callers
Function
isKunBranchWorktreePath
(path: string)
src/shared/kun-worktree-path.ts:36
↓ 9 callers
Function
isSelectableRasterImageSrc
(src: string | undefined)
src/renderer/src/write/selected-image.ts:20
↓ 9 callers
Function
isWriteTextFileExtension
(ext: string)
src/shared/write-text-file.ts:26
↓ 9 callers
Function
kunToolPermissionModeFromSettings
( settings: Pick<KunRuntimeSettingsV1, 'approvalPolicy' | 'sandboxMode'> )
src/shared/app-settings-types.ts:388
↓ 9 callers
Function
kunToolPermissionModeSettings
( mode: KunToolPermissionMode )
src/shared/app-settings-types.ts:371
↓ 9 callers
Function
makeMapper
()
kun/src/runtime/agent-sdk/sdk-event-mapper.test.ts:6
↓ 9 callers
Method
markRunning
(id: string)
kun/src/tasks/task-graph.ts:184
↓ 9 callers
Function
markThreadFork
( threadId: string, parent: Pick<NormalizedThread, 'id' | 'title'>, options: { createdAt?: string
src/renderer/src/lib/thread-fork-registry.ts:95
↓ 9 callers
Function
mergeScheduleSettings
( current: ScheduleSettingsV1, patch: ScheduleSettingsPatchV1 | undefined )
src/shared/app-settings-schedule.ts:129
↓ 9 callers
Function
modelContextProfilesFromConfig
( config?: ContextCompactionConfig | ModelConfig | ModelProfileConfigSource )
kun/src/loop/model-context-profile.ts:168
↓ 9 callers
Function
nextVisibleLength
(current: number, target: number)
src/renderer/src/components/chat/StreamdownAssistant.tsx:30
↓ 9 callers
Function
normalizeDevPreviewUrlInput
(input: string)
src/shared/dev-preview-url.ts:45
↓ 9 callers
Function
normalizeGitBranchPrefix
(value: unknown)
src/shared/app-settings-normalize.ts:129
↓ 9 callers
Function
normalizeModelCapabilityKey
(modelId: string)
src/renderer/src/components/chat/FloatingComposerModelPicker.tsx:791
↓ 9 callers
Function
normalizeWorkspaceRoot
(value: string | undefined | null)
src/renderer/src/plan/plan-store.ts:57
↓ 9 callers
Method
onSseEvent
(event: Record<string, unknown>)
src/main/feishu-streamer.ts:136
↓ 9 callers
Function
onUpdate
({ editor: instance, transaction })
src/renderer/src/write/tiptap/WriteRichEditor.tsx:430
↓ 9 callers
Function
openAiCompatImageUrl
( baseUrl: string, endpoint: 'generations' | 'edits' )
kun/src/adapters/tool/image-gen-tool-provider.ts:441
↓ 9 callers
Function
percentile
(values: number[], quantile: number)
kun/src/benchmark/replay-benchmark.ts:858
↓ 9 callers
Function
planFeatureNameFromRequest
(request: string)
src/shared/gui-plan.ts:20
↓ 9 callers
Function
providerIdForComposerModel
( modelGroups: readonly ModelProviderModelGroup[], modelId: string )
src/renderer/src/store/chat-store-helpers.ts:170
↓ 9 callers
Method
readRange
(id: string, options: ReadRangeOptions)
kun/src/artifacts/artifact-store.ts:58
↓ 9 callers
Function
redactSecretText
(value: string)
kun/src/config/secret-redaction.ts:29
↓ 9 callers
Function
replacePendingInfographicInText
( content: string, pendingMarkdown: string, replacement: string | null )
src/renderer/src/write/infographic-pending.ts:86
↓ 9 callers
Function
requestSpeechTranscription
( settings: AppSettingsV1, request: SpeechTranscriptionRequest, options: { fetchImpl?: typeof fetch
src/main/services/speech-to-text-service.ts:38
← previous
next →
601–700 of 9,736, ranked by callers