Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/KunAgent/Kun
/ functions
Functions
9,736 in github.com/KunAgent/Kun
⨍
Functions
9,736
◇
Types & classes
326
↓ 2,192 callers
Method
map
(message: SdkMessage)
kun/src/runtime/agent-sdk/sdk-event-mapper.ts:133
↓ 1,456 callers
Function
t
(key: string, values?: Record<string, unknown>)
src/renderer/src/components/schedule/ScheduleTasksView.test.ts:16
↓ 1,427 callers
Function
t
(key: string, values?: Record<string, unknown>)
src/renderer/src/components/settings-section-claw.test.ts:81
↓ 982 callers
Method
push
(chunk: string | null)
src/main/feishu-streamer.ts:161
↓ 894 callers
Function
t
(key: string)
src/renderer/src/components/chat/MessageTimeline.tool-summary.test.ts:34
↓ 744 callers
Method
replace
(input: { default: ModelClient; providers?: Map<string, ModelClient> })
kun/src/adapters/model/multi-provider-model-client.ts:29
↓ 600 callers
Method
push
(chunk: string)
kun/src/benchmark/replay-benchmark.ts:543
↓ 551 callers
Method
get
(threadId: string)
kun/src/ports/thread-store.ts:18
↓ 479 callers
Method
has
(key: K)
kun/src/cache/lru-cache.ts:24
↓ 443 callers
Method
set
(key: K, value: V)
kun/src/cache/lru-cache.ts:36
↓ 376 callers
Method
add
(method: string, path: string, handler: RouteHandler)
kun/src/server/router.ts:23
↓ 370 callers
Function
set
(partial)
src/renderer/src/store/chat-store-runtime.test.ts:51
↓ 291 callers
Function
get
()
src/renderer/src/store/chat-store-runtime.test.ts:50
↓ 254 callers
Function
createEmptyDocument
()
src/renderer/src/design/canvas/canvas-types.ts:432
↓ 235 callers
Method
delete
(threadId: string)
kun/src/ports/thread-store.ts:20
↓ 225 callers
Method
now
()
kun/src/ports/clock.ts:6
↓ 189 callers
Function
auditDesignHtmlQuality
(input: DesignHtmlQualityAuditInput)
src/renderer/src/design/html-quality/static-audit.ts:9
↓ 189 callers
Function
executeOps
( rawOps: unknown[], label = 'shape-ops', options?: ExecuteOpsOptions )
src/renderer/src/design/canvas/shape-ops/executor.ts:27
↓ 185 callers
Function
attributeValue
(tag: string, name: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:225
↓ 170 callers
Method
keys
()
kun/src/cache/lru-cache.ts:59
↓ 169 callers
Method
match
Compiled path matcher.
src/main/ipc/app-ipc-schemas.ts:136
↓ 168 callers
Method
values
()
kun/src/cache/lru-cache.ts:63
↓ 159 callers
Method
execute
( call: ToolCallLike, context: ToolHostContext, onUpdate?: (item: TurnItem) => Promise<void> | voi
kun/src/ports/tool-host.ts:150
↓ 154 callers
Function
onChange
(e: MediaQueryListEvent)
src/renderer/src/components/chat/SubagentCallCard.tsx:145
↓ 153 callers
Function
createDefaultShape
(type: ShapeType, x: number, y: number)
src/renderer/src/design/canvas/canvas-types.ts:343
↓ 142 callers
Function
attributeValues
(html: string, name: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:134
↓ 132 callers
Function
defaultKunRuntimeSettings
( port = DEFAULT_KUN_PORT )
src/shared/app-settings-kun.ts:129
↓ 120 callers
Method
load
()
src/main/settings-store.ts:408
↓ 116 callers
Method
record
( threadId: string, usage: UsageSnapshot, signature?: CacheRequestSignature )
kun/src/services/usage-service.ts:41
↓ 115 callers
Method
get
(id: string)
kun/src/artifacts/artifact-store.ts:57
↓ 115 callers
Function
pairedTagMatches
(html: string, tagName: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:217
↓ 111 callers
Function
pushFinding
( findings: DesignHtmlQualityFinding[], finding: DesignHtmlQualityFinding )
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:10
↓ 107 callers
Method
create
(input: MemoryCreateRequest)
kun/src/memory/memory-store.ts:16
↓ 107 callers
Method
replaceAll
(entries: VirtualToolEntry<T>[])
kun/src/adapters/tool/virtual-tool-catalog.ts:38
↓ 100 callers
Method
runTurn
* Run a turn end-to-end. The loop returns the final turn status * (completed, failed, or aborted). All errors are caught and * surfaced through
kun/src/loop/agent-loop.ts:836
↓ 98 callers
Function
createHtmlFrameShape
( name: string, x: number, y: number, artifactId: string, preset: DevicePreset = 'desktop' )
src/renderer/src/design/canvas/canvas-types.ts:415
↓ 95 callers
Function
parseIpcPayload
(channel: string, schema: z.ZodType<T>, payload: unknown)
src/main/ipc/register-app-ipc-handlers.ts:253
↓ 93 callers
Method
defineTool
Tool builder helper for tests and feature scripts.
kun/src/adapters/tool/local-tool-host.ts:335
↓ 93 callers
Method
resolve
(inputId: string, resolution: UserInputResolution)
kun/src/ports/user-input-gate.ts:35
↓ 90 callers
Function
makeHarness
( model: ModelClient, options: { compactor?: ContextCompactor tools?: LocalTool[] /** Pre-buil
kun/tests/loop-test-harness.ts:73
↓ 86 callers
Method
stream
(request: ModelRequest)
kun/src/ports/model-client.ts:125
↓ 85 callers
Function
bootstrapThread
( h: Harness, options: { workspace?: string request?: Parameters<TurnService['startTurn']>[0]['req
kun/tests/loop-test-harness.ts:181
↓ 85 callers
Function
jsonResponse
(body: unknown, status = 200)
kun/src/server/response.ts:7
↓ 84 callers
Function
dispatchRequest
(router: Router, request: Request)
kun/src/server/http-server.ts:17
↓ 82 callers
Method
abort
()
src/main/feishu-streamer.ts:183
↓ 82 callers
Function
textContent
(html: string)
src/renderer/src/design/html-quality/patterns.ts:494
↓ 82 callers
Function
trimmedString
(max: number)
src/main/ipc/app-ipc-schemas.ts:92
↓ 80 callers
Function
normalizeWorkspaceRoot
(path?: string)
src/renderer/src/lib/workspace-path.ts:101
↓ 74 callers
Function
buildDesignHtmlQualityRepairPrompt
( findings: DesignHtmlQualityFinding[], mode: 'auto' | 'manual', designContext?: DesignContext )
src/renderer/src/design/html-quality/repair-prompt.ts:5
↓ 74 callers
Function
update
(partial: SettingsPatch)
src/renderer/src/components/SettingsView.tsx:908
↓ 73 callers
Method
clear
()
kun/src/cache/lru-cache.ts:55
↓ 73 callers
Function
get
()
src/renderer/src/lib/browser-storage.test.ts:44
↓ 73 callers
Function
testNode
Run one node in isolation against `mockJson` and return its result (throws on a runtime lookup failure).
src/main/workflow-runtime.nodes.test.ts:176
↓ 71 callers
Function
defaultModelProviderSettings
()
src/shared/app-settings-provider.ts:87
↓ 71 callers
Method
log
(message: string)
kun/src/loop/goal-resume-coordinator.ts:189
↓ 71 callers
Function
set
(partial)
src/renderer/src/write/write-workspace-file-actions.test.ts:63
↓ 70 callers
Function
asTrimmed
(value: unknown, fallback = '')
src/shared/app-settings-workflow.ts:79
↓ 70 callers
Method
loadItems
(threadId: string)
kun/src/ports/session-store.ts:39
↓ 67 callers
Function
dirname
(path: string)
src/renderer/src/sdd/sdd-draft-images.ts:64
↓ 67 callers
Function
runGit
( cwd: string, args: string[], timeout = 10_000 )
src/main/services/git-service.ts:38
↓ 65 callers
Method
read
()
kun/src/adapters/tool/mcp-oauth-store.ts:57
↓ 63 callers
Function
readJson
(response: Response)
kun/tests/http-server-test-harness.ts:181
↓ 61 callers
Method
runtimeRequest
(path: string, method?: string, body?: string)
src/renderer/src/agent/runtime-client.ts:41
↓ 60 callers
Function
artifact
(id: string, title: string, extra: Partial<DesignArtifact> = {})
src/renderer/src/design/prototype-player.selection-state-links.test.ts:26
↓ 60 callers
Function
getProvider
()
src/renderer/src/agent/registry.ts:6
↓ 58 callers
Method
has
(id: string)
kun/src/adapters/tool/virtual-tool-catalog.ts:113
↓ 56 callers
Method
stop
()
src/main/claw-runtime.ts:547
↓ 56 callers
Method
write
(record: MemoryRecord)
kun/src/memory/memory-store.ts:194
↓ 54 callers
Function
authorize
(request: Request, runtime: ServerRuntime)
kun/src/server/routes/index.ts:353
↓ 54 callers
Function
reject
( reason: string, context: InlineCompletionRequestContext, text = '', score = 0, mode: WriteInlineCo
src/renderer/src/write/inline-completion/feedback.ts:149
↓ 54 callers
Function
textChatProfile
( contextWindowTokens?: number, reasoning?: ModelProviderReasoningCapabilityV1, endpointFormat?: ModelEn
src/shared/model-provider-presets.ts:840
↓ 53 callers
Function
makeUserItem
(input: { id: string turnId: string threadId: string text: string displayText?: string messageSour
kun/src/domain/item.ts:6
↓ 52 callers
Function
get
()
src/renderer/src/write/write-workspace-file-actions.test.ts:67
↓ 51 callers
Function
createClawRuntime
(deps: ClawRuntimeDeps)
src/main/claw-runtime.ts:2523
↓ 51 callers
Function
getKunRuntimeSettings
( settings: AppSettingsV1 )
src/shared/app-settings-kun.ts:335
↓ 51 callers
Method
nowIso
()
kun/src/ports/clock.ts:7
↓ 51 callers
Method
upsert
(thread: ThreadRecord)
kun/src/ports/thread-store.ts:19
↓ 50 callers
Function
buildSettings
()
src/main/claw-runtime.test.ts:23
↓ 50 callers
Function
tagMatches
(html: string, tagName: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:209
↓ 50 callers
Method
update
(id: string, patch: MemoryUpdateRequest, access?: MemoryAccess)
kun/src/memory/memory-store.ts:17
↓ 49 callers
Function
buildHarness
()
kun/tests/http-server-test-harness.ts:84
↓ 49 callers
Function
recordString
(value: unknown, key: string)
kun/src/adapters/model/compat-model-client.ts:2184
↓ 48 callers
Function
basename
(path: string)
src/renderer/src/lib/workspace-text-preview.ts:61
↓ 48 callers
Function
buildRequest
(abortSignal: AbortSignal)
kun/tests/model-client.test.ts:13
↓ 47 callers
Function
runtimeErrorToError
(error: RuntimeError)
src/shared/runtime-error.ts:145
↓ 46 callers
Function
getModelProviderPreset
(id: string)
src/shared/model-provider-presets.ts:692
↓ 45 callers
Function
isHtmlFrame
(shape: CanvasShape)
src/renderer/src/design/canvas/canvas-types.ts:269
↓ 44 callers
Method
close
()
kun/src/adapters/hybrid/hybrid-thread-store.ts:123
↓ 44 callers
Method
getSettings
(options?: { forceRefresh?: boolean })
src/renderer/src/agent/runtime-client.ts:13
↓ 43 callers
Function
objectValue
(value: unknown)
src/main/kun-process.ts:1366
↓ 42 callers
Function
createWorkflowRuntime
(deps: ScheduleRuntimeDeps)
src/main/workflow-runtime.ts:2328
↓ 42 callers
Method
listTools
* List tools available for the current turn. Tool hosts MAY scope * the list by mode/GUI plan context (e.g. only expose `create_plan` * during p
kun/src/ports/tool-host.ts:142
↓ 41 callers
Function
createImmutablePrefix
(input?: { systemPrompt?: string tools?: ImmutablePrefix['tools'] pinnedConstraints?: string[] fewShot
kun/src/cache/immutable-prefix.ts:100
↓ 41 callers
Method
loadEventsSince
(threadId: string, sinceSeq: number)
kun/src/ports/session-store.ts:38
↓ 41 callers
Function
makeToolResultItem
(input: { id: string turnId: string threadId: string callId: string toolName: string toolKind?: 't
kun/src/domain/item.ts:110
↓ 41 callers
Function
parseOut
(result: WorkflowNodeRunResultV1)
src/main/workflow-runtime.nodes.test.ts:220
↓ 41 callers
Function
readRuntimeError
(body: string, fallback: string)
src/renderer/src/agent/kun-runtime.ts:85
↓ 40 callers
Function
artifact
( id: string, kind: DesignArtifact['kind'], extra: Partial<DesignArtifact> = {} )
src/renderer/src/design/design-board.test-helpers.ts:6
↓ 40 callers
Function
buildDefaultLocalTools
( planOptions: CreatePlanAdapterOptions = {}, builtinOptions: BuiltinLocalToolsOptions = {} )
kun/src/adapters/tool/local-tool-host.ts:588
↓ 40 callers
Method
diagnostics
()
kun/src/memory/memory-store.ts:21
next →
1–100 of 9,736, ranked by callers