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
↓ 23 callers
Function
browserStorage
()
src/renderer/src/lib/browser-storage.ts:16
↓ 23 callers
Function
buildContext
(workspace: string, overrides: Partial<ToolHostContext> = {})
kun/tests/builtin-tools.test.ts:61
↓ 23 callers
Function
defaultKeyboardShortcuts
()
src/shared/keyboard-shortcuts.ts:162
↓ 23 callers
Function
defaultTerminalSettings
()
src/shared/app-settings-terminal.ts:116
↓ 23 callers
Function
hasTopLevelHeading
(html: string)
src/renderer/src/design/html-quality/product-and-hero-content.ts:8
↓ 23 callers
Function
makeTask
(patch: Partial<ScheduledTaskV1> = {})
src/main/schedule-runtime.test.ts:25
↓ 23 callers
Function
normalizePath
(value: string)
src/renderer/src/write/write-workspace-store-helpers.ts:71
↓ 23 callers
Function
parseWriteInlineAction
( raw: string, options: { fallbackKind?: WriteInlineCompletionAction['kind'] editTarget?: WriteInl
src/main/services/write-inline-completion-service.ts:713
↓ 23 callers
Method
sendMessage
* Sends a plain text message (no parse mode) to a chat. Used for agent * replies that are forwarded verbatim. Splits long text at the Telegram *
src/main/telegram-runtime.ts:166
↓ 22 callers
Method
add
(input: AddTaskInput)
kun/src/tasks/task-graph.ts:71
↓ 22 callers
Method
append
(data: Buffer)
kun/src/adapters/tool/output-accumulator.ts:156
↓ 22 callers
Function
bindTokens
(foundation: TemplateFoundation, bindings: Record<string, string>)
src/renderer/src/design/canvas/design-system-template/foundation.ts:372
↓ 22 callers
Function
buildConversation
(overrides: Partial<ClawImConversationV1> = {})
src/main/claw-runtime.test.ts:77
↓ 22 callers
Function
buildThreadEventSink
( set: (partial: Partial<ChatState> | ((state: ChatState) => Partial<ChatState>)) => void, get: () => Chat
src/renderer/src/store/chat-store-runtime.ts:703
↓ 22 callers
Function
emptyDesignThreadRegistry
()
src/renderer/src/design/design-thread-registry.ts:75
↓ 22 callers
Function
tn
(value: string)
src/renderer/src/design/canvas/design-system-template/foundation.ts:145
↓ 22 callers
Function
toolBlock
(overrides: Partial<ToolBlock>)
src/renderer/src/components/chat/MessageTimeline.tool-summary.test.ts:45
↓ 22 callers
Function
visionChatProfile
( contextWindowTokens?: number, reasoning?: ModelProviderReasoningCapabilityV1, endpointFormat?: ModelEn
src/shared/model-provider-presets.ts:856
↓ 21 callers
Method
clear
(threadId?: string)
kun/src/adapters/tool/read-tracker.ts:82
↓ 21 callers
Method
handleWebhook
(req: IncomingMessage, res: ServerResponse)
src/main/claw-runtime.ts:2349
↓ 21 callers
Function
hasStaticPrimaryAction
(html: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:282
↓ 21 callers
Function
logError
(category: string, message: string, detail?: unknown)
src/main/logger.ts:83
↓ 21 callers
Function
nestedRecord
(value: unknown)
src/main/claw-runtime-helpers.ts:422
↓ 21 callers
Function
readDesignThreadRegistry
( storage: BrowserStorageLike | null = browserStorage() )
src/renderer/src/design/design-thread-registry.ts:133
↓ 21 callers
Method
resolveTurn
(input: { prompt: string workspace: string filePaths?: readonly string[] /** Per-call skill-id
kun/src/skills/skill-runtime.ts:160
↓ 21 callers
Function
round
(n: number)
src/renderer/src/design/canvas/canvas-snapshot.ts:571
↓ 21 callers
Function
shapeGeometry
(shape: CanvasShape)
src/renderer/src/design/canvas/canvas-types.ts:468
↓ 21 callers
Function
suggestionForMissingId
(missing: string)
src/renderer/src/design/canvas/shape-ops/context.ts:50
↓ 21 callers
Function
toggleWriteInlineFormat
( text: string, kind: WriteInlineFormatKind )
src/renderer/src/write/inline-format.ts:90
↓ 20 callers
Function
applyShapeOpsFromText
(text: string)
src/renderer/src/design/canvas/apply-shape-ops.ts:264
↓ 20 callers
Function
chatBlockFromItem
(item: CoreTurnItemJson, child?: CoreChildRuntimeMetadataJson)
src/renderer/src/agent/kun-mapper.ts:976
↓ 20 callers
Function
createSddDraft
(options: { id: string workspaceRoot: string absolutePath?: string now?: number })
src/renderer/src/sdd/sdd-draft-store.ts:195
↓ 20 callers
Function
defaultDesignArtifactNode
(index: number)
src/renderer/src/design/design-types.ts:168
↓ 20 callers
Function
designDocKey
( workspaceRoot: string | undefined | null, docId: string | undefined | null )
src/renderer/src/design/design-thread-registry.ts:47
↓ 20 callers
Method
enqueue
(turnId: string, entry: SteeringEntry)
kun/src/loop/steering-queue.ts:24
↓ 20 callers
Function
hasBrandLandingScreenSignal
(html: string, visibleText: string)
src/renderer/src/design/html-quality/product-and-hero-content.ts:291
↓ 20 callers
Function
initialSetupDrafts
(settings: AppSettingsV1)
src/renderer/src/components/initial-setup-save.ts:51
↓ 20 callers
Function
isJsonRecord
(value: unknown)
src/renderer/src/components/PluginMarketplaceView.tsx:145
↓ 20 callers
Function
isStr
(v: unknown)
src/renderer/src/design/design-artifact-persistence.ts:55
↓ 20 callers
Function
normalizeColor
(value: unknown, fallback: string)
src/shared/app-settings-terminal.ts:122
↓ 20 callers
Method
search
(request: WebSearchRequest)
kun/src/ports/web-provider.ts:39
↓ 20 callers
Function
tool
(name: string, inputSchema: Record<string, unknown> = {})
kun/src/runtime/agent-sdk/sdk-tool-bridge.test.ts:12
↓ 20 callers
Function
writeSkill
( folder: string, manifest: Record<string, unknown>, entry: string )
kun/tests/skill-runtime.test.ts:471
↓ 19 callers
Method
allocateSeq
Returns the next per-thread `seq` value, allocating one if needed.
kun/src/adapters/in-memory-event-bus.ts:66
↓ 19 callers
Function
buildPrototypeNavigationCaptureScript
(links: readonly PrototypePlayerLink[])
src/renderer/src/design/prototype-player/playback.ts:9
↓ 19 callers
Function
buildWriteRichMarkdownProjection
(doc: PMNode)
src/renderer/src/write/tiptap/markdown-projection.ts:219
↓ 19 callers
Method
cancel
(id: string)
kun/src/tasks/task-graph.ts:235
↓ 19 callers
Function
createAesEncryptor
(key: Buffer)
kun/src/security/secret-store.ts:28
↓ 19 callers
Method
createThread
(input: { workspace?: string; title?: string; titleAuto?: boolean; mode?: string; agentId?: string; providerId
src/renderer/src/agent/types.ts:462
↓ 19 callers
Function
dispatchKunRuntimeEvent
( event: CoreRuntimeEventJson, sink: ThreadEventSink, handleApprovalRequest: (event: CoreRuntimeEventJso
src/renderer/src/agent/kun-mapper.ts:1207
↓ 19 callers
Function
expandHomePath
(path: string)
src/main/kun-process.ts:292
↓ 19 callers
Function
expandHomePath
(raw: string)
src/main/services/workspace-paths.ts:23
↓ 19 callers
Function
isGuiPlanRelativePath
(value: string)
src/shared/gui-plan.ts:44
↓ 19 callers
Function
modelCapabilitiesForModel
( model: string | undefined, profiles: readonly ModelContextProfile[] = MODEL_CONTEXT_PROFILES )
kun/src/loop/model-context-profile.ts:150
↓ 19 callers
Function
r
(x: number, y: number, w: number, h: number)
src/renderer/src/design/canvas/canvas-snap.test.ts:4
↓ 19 callers
Function
record
(value: unknown)
src/shared/app-settings-workflow.ts:73
↓ 19 callers
Function
recordValue
(value: unknown, key?: string)
kun/src/adapters/model/compat-model-client.ts:2173
↓ 19 callers
Function
resolveWorkspacePath
(inputPath: string, context: ToolHostContext)
kun/src/adapters/tool/builtin-tool-utils.ts:62
↓ 19 callers
Function
rgbToHex
(value: string | null | undefined)
src/renderer/src/design/design-element-metrics.ts:44
↓ 19 callers
Function
spec
(name: string)
kun/src/loop/agent-loop.test.ts:12
↓ 18 callers
Function
artifact
(id: string, kind: DesignArtifact['kind'] = 'html')
src/renderer/src/design/design-composer-context.test.ts:21
↓ 18 callers
Function
createGitCheckpoint
(params: { dataDir: string workspaceRoot: string threadId: string checkpointId?: string storage?: Gi
src/main/services/git-checkpoint-service.ts:492
↓ 18 callers
Function
createRequest
()
src/main/services/write-inline-completion-service.test.ts:74
↓ 18 callers
Function
createStore
(overrides: Partial<AttachmentsCapabilityConfig> = {})
kun/tests/attachment-store.test.ts:638
↓ 18 callers
Function
errorMessage
(error: unknown)
src/main/claw-runtime.ts:109
↓ 18 callers
Function
finishPendingInfographic
(id: string)
src/renderer/src/write/infographic-pending.ts:37
↓ 18 callers
Function
formatRelativeTime
(input: string, locale: string)
src/renderer/src/lib/format-relative-time.ts:1
↓ 18 callers
Method
handleFeishuMessage
(channelId: string, message: NormalizedMessage)
src/main/claw-runtime.ts:1754
↓ 18 callers
Method
invalidateSettings
()
src/renderer/src/agent/runtime-client.ts:36
↓ 18 callers
Function
isComposerChatModelId
( modelId: string, nonTextModelIds: readonly string[] = [] )
src/shared/app-settings-provider.ts:267
↓ 18 callers
Method
note
Ask for one restart attempt; records it when allowed.
src/main/kun-runtime-supervisor.ts:54
↓ 18 callers
Function
parseKunConfigSection
( schema: SafeParseSchema, value: unknown )
src/main/kun-process.ts:1286
↓ 18 callers
Function
parseMcpConfigText
(text: string)
src/renderer/src/components/mcp/mcp-config-form.ts:163
↓ 18 callers
Function
provider
(overrides: Partial<ModelProviderProfileV1> = {})
src/renderer/src/components/provider-model-editor.test.ts:18
↓ 18 callers
Function
reduceField
(shapes: CanvasShape[], getter: (s: CanvasShape) => T)
src/renderer/src/components/design/canvas/properties-panel/primitives.tsx:12
↓ 18 callers
Method
retrieve
(input: { query: string; workspace?: string; limit: number })
kun/src/memory/memory-store.ts:20
↓ 18 callers
Function
role
( id: DesignAgentManagerRoleId, status: DesignAgentManagerStatus, detailKey: string, detailOptions?: R
src/renderer/src/design/agent-manager/design-agent-manager.ts:123
↓ 18 callers
Function
sanitizePromptLine
(text = '')
src/main/services/write-inline-completion-service.ts:191
↓ 18 callers
Function
setScreenArtifactFactory
(fn: ScreenArtifactFactory | null)
src/renderer/src/design/canvas/screen-artifact-bridge.ts:34
↓ 18 callers
Function
settings
()
src/main/ipc/register-app-ipc-handlers.test.ts:35
↓ 18 callers
Function
settingsWith
( tasks: ScheduledTaskV1[] = [], schedulePatch: AppSettingsPatch['schedule'] = {} )
src/main/schedule-runtime.test.ts:79
↓ 18 callers
Function
tCommon
(key: string, values?: Record<string, unknown>)
src/renderer/src/components/settings-section-claw.test.ts:85
↓ 18 callers
Function
traceStartup
(label: string, detail?: unknown)
src/main/index.ts:128
↓ 18 callers
Function
wf
(spec: WorkflowSpec)
src/main/workflow-runtime.nodes.test.ts:85
↓ 17 callers
Function
clearRuntimeStreamRecoveringError
(error: string | null)
src/renderer/src/store/chat-store-runtime.ts:229
↓ 17 callers
Function
code
(value: string | undefined)
src/renderer/src/design/design-contract/design-project-contract.ts:49
↓ 17 callers
Function
createBlankMcpServer
(transport: McpTransport = 'stdio')
src/renderer/src/components/mcp/mcp-config-form.ts:139
↓ 17 callers
Function
current
()
src/renderer/src/store/chat-store.ts:122
↓ 17 callers
Function
formatPercent
(value: number | null)
src/renderer/src/hooks/use-thread-usage.ts:78
↓ 17 callers
Method
generate
(request: MusicGenRequest)
kun/src/adapters/tool/media-gen-tool-provider.ts:63
↓ 17 callers
Method
getItem
(key: string)
src/renderer/src/store/chat-store-navigation-actions.test.ts:49
↓ 17 callers
Method
getThreadDetail
(threadId: string)
src/renderer/src/agent/types.ts:463
↓ 17 callers
Function
isConversationWorkspacePath
(path?: string, root?: string)
src/renderer/src/lib/workspace-path.ts:61
↓ 17 callers
Function
isCurrentStream
()
src/renderer/src/store/chat-store-runtime.ts:711
↓ 17 callers
Function
isSddAssistantThread
( thread: SddThreadLike | null | undefined, registry: SddThreadRegistry = readSddThreadRegistry() )
src/renderer/src/sdd/sdd-thread-registry.ts:246
↓ 17 callers
Function
normalizePositiveInteger
(value: unknown, fallback: number, min: number, max: number)
src/shared/app-settings-normalizers.ts:34
↓ 17 callers
Function
normalizeWorkflowSettings
(input: WorkflowSettingsPatchV1 | undefined)
src/shared/app-settings-workflow.ts:726
↓ 17 callers
Method
onError
(error: Error)
src/main/feishu-streamer.ts:49
↓ 17 callers
Function
patchSide
( state: ChatState, sideId: string, patch: (side: SideConversation) => SideConversation )
src/renderer/src/store/chat-store-side-actions.ts:54
↓ 17 callers
Method
pending
(threadId?: string)
kun/src/ports/approval-gate.ts:12
← previous
next →
201–300 of 9,736, ranked by callers