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
↓ 6 callers
Function
parseModelIds
(stdout: string)
src/main/claude-subscription-models.ts:97
↓ 6 callers
Function
parseNewCommand
(input: string)
src/renderer/src/components/chat/floating-composer-commands.ts:91
↓ 6 callers
Function
parseServeOptions
( argv: readonly string[], env: Record<string, string | undefined> = {} )
kun/src/cli/serve.ts:22
↓ 6 callers
Function
parseTimestampMs
(value: string | null | undefined)
src/renderer/src/agent/thread-timing.ts:17
↓ 6 callers
Method
parseToolArguments
(raw: string)
kun/src/adapters/model/compat-model-client.ts:1636
↓ 6 callers
Function
patchBridge
(runtime: object, channelId: string, bridge: LarkBridge)
src/main/claw-runtime.test.ts:3975
↓ 6 callers
Function
pathExists
(p: string)
src/main/services/worktree-service.ts:53
↓ 6 callers
Function
payloadFor
(item: CoreTurnItemJson)
src/renderer/src/agent/kun-mapper.ts:214
↓ 6 callers
Function
persistSchedule
(patch: Parameters<typeof mergeScheduleSettings>[1])
src/renderer/src/components/schedule/ScheduleTasksView.tsx:434
↓ 6 callers
Function
placeRectInViewportAvoiding
( size: { width: number; height: number }, vbox: ViewBox, occupied: readonly Rect[], gap = CANVAS_SCRE
src/renderer/src/design/canvas/canvas-placement.ts:63
↓ 6 callers
Function
platformManifestName
()
src/main/gui-updater.test.ts:90
↓ 6 callers
Function
pointer
(x: number, y: number)
src/renderer/src/design/canvas/tools/hand-tool.test.ts:12
↓ 6 callers
Function
positive
(n: number, fallback = 1)
src/renderer/src/design/canvas/canvas-minimap.ts:36
↓ 6 callers
Function
prepareDesignPreviewFile
( workspaceRoot: string, relativePath: string, basePath?: string, api?: DesignPreviewPrepareApi )
src/renderer/src/design/design-preview-file.ts:202
↓ 6 callers
Function
prepareImageAttachmentUpload
( file: File, capabilities: ImageAttachmentUploadCapabilities, encoder: ImageAttachmentEncoder = encodeI
src/renderer/src/lib/image-attachment-upload.ts:44
↓ 6 callers
Function
preventEditorMouseHandling
(event: MouseEvent)
src/renderer/src/write/markdown-live-widgets.ts:34
↓ 6 callers
Function
productAppModuleSignalCount
(html: string)
src/renderer/src/design/html-quality/product-and-hero-content.ts:139
↓ 6 callers
Function
prototypeBackNavigationSteps
(navigationUrl: string)
src/renderer/src/design/prototype-player/routing.ts:359
↓ 6 callers
Function
providerProbeHeaders
( endpointFormat: ModelEndpointFormat, apiKey: string )
src/main/provider-connection.ts:28
↓ 6 callers
Function
providerTextModels
(settings: AppSettingsV1, provider: ModelProviderProfileV1)
src/main/claw-runtime.ts:196
↓ 6 callers
Method
publish
(event: RuntimeEvent)
kun/src/ports/event-bus.ts:9
↓ 6 callers
Function
pushUniqueModelId
(target: string[], seen: Set<string>, modelId: string)
src/renderer/src/components/provider-model-editor.ts:469
↓ 6 callers
Method
querySelectorAll
()
src/renderer/src/components/design/canvas/HtmlFrameOverlay.test.ts:60
↓ 6 callers
Function
readRegistry
(storage = browserStorage())
src/renderer/src/sdd/sdd-draft-store.ts:146
↓ 6 callers
Function
readTrimmedString
(value: unknown, max: number)
src/shared/ui-plugin.ts:110
↓ 6 callers
Function
readXmlTag
(xml: string, tag: string)
src/shared/background-shell-notice.ts:18
↓ 6 callers
Function
refresh
()
src/renderer/src/components/chat/ChatFileTreePanel.tsx:191
↓ 6 callers
Function
rememberThreadComposerSelection
( threadId: string, model: string, providerId = '' )
src/renderer/src/store/chat-store-helpers.ts:138
↓ 6 callers
Function
removeBrowserStorageItem
(key: string)
src/renderer/src/lib/browser-storage.ts:53
↓ 6 callers
Function
repairDispatchToolArguments
( raw: Record<string, unknown>, options: ToolCallArgumentRepairOptions = {} )
kun/src/loop/tool-call-repair.ts:34
↓ 6 callers
Function
repairModelHistoryItems
(items: TurnItem[])
kun/src/domain/model-history-repair.ts:11
↓ 6 callers
Function
replaceHtmlElementTextInSource
( source: string, element: DesignHtmlElementContext, nextText: string )
src/renderer/src/design/design-html-element-edit.ts:286
↓ 6 callers
Method
replaceWith
(next: SkillRuntime)
kun/src/skills/skill-runtime.ts:141
↓ 6 callers
Function
request
(model: string, providerId?: string)
kun/src/adapters/model/multi-provider-model-client.test.ts:27
↓ 6 callers
Function
requestDesignQualityRepairDispatch
( options: DesignQualityRepairDispatchOptions )
src/renderer/src/design/design-quality-repair-dispatch.ts:84
↓ 6 callers
Method
require
(id: string)
kun/src/tasks/task-graph.ts:264
↓ 6 callers
Method
resolveChannelWorkspaceRoot
(settings: AppSettingsV1, channel?: ClawImChannelV1)
src/main/claw-runtime.ts:956
↓ 6 callers
Method
resolveDefaultWorkspaceRoot
(settings: AppSettingsV1)
src/main/schedule-runtime.ts:764
↓ 6 callers
Function
resolveEventLoopStallThresholdMs
(env: NodeJS.ProcessEnv)
kun/src/server/event-loop-monitor.ts:59
↓ 6 callers
Function
resolveImageAnnotationOverlayModel
( options: ResolveImageAnnotationOverlayOptions )
src/renderer/src/components/design/canvas/DesignImageAnnotationOverlay.tsx:26
↓ 6 callers
Function
resolveKunExecutable
( appRoot: string, userBinaryPath: string )
src/main/resolve-kun-binary.ts:57
↓ 6 callers
Function
resolveModelContextProfile
( model: string | undefined, profiles: readonly ModelContextProfile[] = MODEL_CONTEXT_PROFILES )
kun/src/loop/model-context-profile.ts:116
↓ 6 callers
Function
resolvePoolDir
(projectPath: string, worktreeRoot?: string)
src/main/services/worktree-service.ts:47
↓ 6 callers
Function
resolveSelectedImageAnnotationAction
( surface: 'design' | 'code', doc: CanvasDocument, selectedIds: ReadonlySet<string>, viewport: { v
src/renderer/src/components/design/canvas/canvas-viewport/helpers.ts:57
↓ 6 callers
Function
resolveTurnPlanContext
( thread: ThreadRecord, turnId: string )
kun/src/runtime/agent-sdk/agent-sdk-runtime-factory.ts:99
↓ 6 callers
Function
resolveWorkspaceFile
( payload: WorkspaceFileTarget )
src/main/services/workspace-files.ts:635
↓ 6 callers
Function
resolveWriteInlineCompletionBaseUrl
(settings: AppSettingsV1)
src/shared/app-settings-write.ts:384
↓ 6 callers
Function
resolveWriteQuickActions
( actions: WriteQuickActionV1[], t: TranslateFn )
src/renderer/src/write/quick-actions.ts:57
↓ 6 callers
Method
rewriteItems
* Replace the canonical item stream for a thread. File-backed stores * should write atomically because this is used by load-time healing * and e
kun/src/ports/session-store.ts:36
↓ 6 callers
Function
rgbToHsl
({ r, g, b }: RGB)
src/renderer/src/design/design-tokens.ts:79
↓ 6 callers
Function
routeDesignPrompt
(options: DesignPromptRouterOptions)
src/renderer/src/design/design-prompt-router.ts:43
↓ 6 callers
Function
runClaudeSetupToken
( options: { spawnFn?: typeof spawn; timeoutMs?: number; binaryPath?: string } = {} )
src/main/claude-subscription-auth.ts:69
↓ 6 callers
Function
sampleRecord
(overrides: Partial<CoreMemoryRecordJson> = {})
src/renderer/src/components/settings-section-memory.test.ts:110
↓ 6 callers
Function
saveThreadWorktreeRegistry
( registry: ThreadWorktreeRegistry, storage: BrowserStorageLike | null = browserStorage() )
src/renderer/src/lib/thread-worktree-registry.ts:96
↓ 6 callers
Function
sddAssistantThreadIdForDraft
( draft: Pick<SddDraft, 'id' | 'workspaceRoot' | 'relativePath'>, registry: SddThreadRegistry = readSddThr
src/renderer/src/sdd/sdd-thread-registry.ts:181
↓ 6 callers
Function
sddChatTranscriptRelativePath
( draftRelativePath: string, threadId: string )
src/renderer/src/sdd/sdd-chat-transcript.ts:32
↓ 6 callers
Function
sddDraftRelativePathForPlanPath
(planRelativePath: string)
src/shared/sdd.ts:77
↓ 6 callers
Function
selectionRange
(content: string, selected: string)
src/renderer/src/write/inline-edit.test.ts:10
↓ 6 callers
Function
serializeMcpServer
(server: McpFormServer)
src/renderer/src/components/mcp/mcp-config-form.ts:206
↓ 6 callers
Function
serializeMemoryTags
(tags: ReadonlyArray<string> | undefined | null)
src/renderer/src/components/settings-section-memory.tsx:46
↓ 6 callers
Function
sessionPayload
( session: BashSession, options: { stopSent?: boolean } = {} )
kun/src/adapters/tool/builtin-bash-tool.ts:362
↓ 6 callers
Function
setLastLintFindings
(findings: LintFinding[], key: string = DEFAULT_LINT_KEY)
src/renderer/src/design/canvas/design-lint.ts:150
↓ 6 callers
Function
setSddRequirementStatus
( markdown: string, id: string, status: SddRequirementStatus )
src/shared/sdd-trace.ts:159
↓ 6 callers
Function
setTimer
(fn: () => void)
kun/tests/goal-resume.test.ts:11
↓ 6 callers
Function
settle
(exited: boolean)
src/main/kun-process.ts:1416
↓ 6 callers
Function
severityRank
(severity: DesignHtmlQualitySeverity)
src/renderer/src/design/html-quality/repair-prompt.ts:43
↓ 6 callers
Function
shellRuntimeInfo
(config: ShellConfig = shellConfig())
kun/src/adapters/tool/builtin-tool-utils.ts:383
↓ 6 callers
Function
shouldInjectPrototypeNavigationCapture
({ open, webviewUrl, webviewReady, hasExecuteJavaScript }: { open: boolean webviewUrl: string we
src/renderer/src/components/design/canvas/PrototypePlayerOverlay.tsx:44
↓ 6 callers
Function
shouldOpenImageAnnotation
( surface: 'design' | 'code', shape: CanvasDocument['objects'][string] | undefined )
src/renderer/src/components/design/canvas/canvas-viewport/helpers.ts:36
↓ 6 callers
Function
shouldShowGoalFloater
({ compact, hasActiveGoal, slashQuery, goalPanelOpen, composerMenuOpen }: { compact: boolean has
src/renderer/src/components/chat/FloatingComposer.tsx:456
↓ 6 callers
Function
shouldShowQuestionHeader
( question: UserInputQuestion, totalQuestions: number )
src/renderer/src/components/chat/user-input-panel-logic.ts:136
↓ 6 callers
Method
shutdown
Cancel all pending resumes; called on runtime shutdown.
kun/src/loop/goal-resume-coordinator.ts:161
↓ 6 callers
Method
snapshot
(threadId: string)
kun/src/telemetry/cache-telemetry.ts:42
↓ 6 callers
Function
snapshotCodeCanvasForPrompt
( options: CodeCanvasPromptSnapshotOptions )
src/renderer/src/design/canvas/code-canvas.ts:227
↓ 6 callers
Function
splitTableLine
(line: string)
src/renderer/src/write/markdown-live-preview.ts:187
↓ 6 callers
Function
startOfficialInstallQr
()
src/renderer/src/components/chat/ConnectPhoneView.tsx:298
↓ 6 callers
Function
startWriteWorkspaceFileWatch
(options: StartWriteFileWatchOptions)
src/renderer/src/write/write-file-watch.ts:32
↓ 6 callers
Function
stringArrayValue
(value: unknown)
src/main/kun-process.ts:710
↓ 6 callers
Function
summarizeDesignHtmlQualityStatus
( findings: DesignHtmlQualityFinding[] | undefined, checked: boolean )
src/renderer/src/design/html-quality/layout-and-runtime-findings.ts:235
↓ 6 callers
Function
summarizeForModel
(input: { content: string maxInlineChars: number /** Fraction of the budget devoted to the head excerpt
kun/src/artifacts/artifact-summary.ts:35
↓ 6 callers
Function
syncLoginItemSettings
( settings: AppSettingsV1, platform = process.platform )
src/main/desktop-behavior.ts:20
↓ 6 callers
Function
syncShape
(all: Point[])
src/renderer/src/design/canvas/tools/linear-tool.ts:40
↓ 6 callers
Function
syncTurnCompletionPoll
( set: (partial: Partial<ChatState> | ((state: ChatState) => Partial<ChatState>)) => void, get: () => Chat
src/renderer/src/store/chat-store-runtime.ts:578
↓ 6 callers
Function
takeLastCanvasOpErrors
(key: string = DEFAULT_ERROR_KEY)
src/renderer/src/design/canvas/apply-shape-ops.ts:45
↓ 6 callers
Function
takeNextReadyScreenGeneration
({ pendingScreens, document, currentTurnId, busy = false, pendingRuntimeWork = false, htmlArtifact
src/renderer/src/design/canvas/use-apply-shape-ops-live.ts:247
↓ 6 callers
Function
telemetry
(startedAt: number, provider: string)
kun/src/adapters/tool/media-gen-tool-provider.ts:933
↓ 6 callers
Function
textResult
(text: string, structuredContent?: Record<string, unknown>)
src/main/claw-schedule-mcp-server.ts:59
↓ 6 callers
Function
thread
( id: string, status: string, updatedAt: string, title = id, workspace = '/work/project' )
src/main/tray-session-menu.test.ts:58
↓ 6 callers
Function
titleFromSddDraftContent
(content: string, fallback: string)
src/renderer/src/sdd/sdd-draft-history.ts:48
↓ 6 callers
Function
todoContentHash
(value: string)
src/renderer/src/plan/plan-todo-sync.ts:9
↓ 6 callers
Function
todoContentHash
(value: string)
kun/src/shared/todos.ts:31
↓ 6 callers
Function
tokenColor
(foundation: TemplateFoundation, token: string)
src/renderer/src/design/canvas/design-system-template/board-builders.ts:428
↓ 6 callers
Function
toolCallCompletes
( chunks: ModelStreamChunk[] )
kun/src/adapters/model/compat-model-client.streaming-tool-calls.test.ts:70
↓ 6 callers
Function
toolbarIconButtonClass
(active = false)
src/renderer/src/components/write/write-workspace-view-utils.ts:134
↓ 6 callers
Function
touch
(path: string)
src/main/packaging-config.test.ts:20
↓ 6 callers
Function
trimmedString
(value: unknown, max: number)
src/shared/app-settings-design.ts:46
↓ 6 callers
Function
uid
(prefix: string)
src/renderer/src/components/workflow/workflow-types.ts:63
↓ 6 callers
Function
updateHistoryHygiene
(patch: Record<string, unknown>)
src/renderer/src/components/settings-section-agents.tsx:471
↓ 6 callers
Function
updateMcpSearch
(patch: Record<string, unknown>)
src/renderer/src/components/settings-section-agents.tsx:452
↓ 6 callers
Method
uploadAttachment
(input: { name: string mimeType?: string dataBase64: string documentText?: string pageCoun
src/renderer/src/agent/types.ts:512
← previous
next →
1,201–1,300 of 9,736, ranked by callers