MCPcopy Index your code

hub / github.com/KunAgent/Kun / functions

Functions9,736 in github.com/KunAgent/Kun

↓ 2,192 callersMethodmap
(message: SdkMessage)
kun/src/runtime/agent-sdk/sdk-event-mapper.ts:133
↓ 1,456 callersFunctiont
(key: string, values?: Record<string, unknown>)
src/renderer/src/components/schedule/ScheduleTasksView.test.ts:16
↓ 1,427 callersFunctiont
(key: string, values?: Record<string, unknown>)
src/renderer/src/components/settings-section-claw.test.ts:81
↓ 982 callersMethodpush
(chunk: string | null)
src/main/feishu-streamer.ts:161
↓ 894 callersFunctiont
(key: string)
src/renderer/src/components/chat/MessageTimeline.tool-summary.test.ts:34
↓ 744 callersMethodreplace
(input: { default: ModelClient; providers?: Map<string, ModelClient> })
kun/src/adapters/model/multi-provider-model-client.ts:29
↓ 600 callersMethodpush
(chunk: string)
kun/src/benchmark/replay-benchmark.ts:543
↓ 551 callersMethodget
(threadId: string)
kun/src/ports/thread-store.ts:18
↓ 479 callersMethodhas
(key: K)
kun/src/cache/lru-cache.ts:24
↓ 443 callersMethodset
(key: K, value: V)
kun/src/cache/lru-cache.ts:36
↓ 376 callersMethodadd
(method: string, path: string, handler: RouteHandler)
kun/src/server/router.ts:23
↓ 370 callersFunctionset
(partial)
src/renderer/src/store/chat-store-runtime.test.ts:51
↓ 291 callersFunctionget
()
src/renderer/src/store/chat-store-runtime.test.ts:50
↓ 254 callersFunctioncreateEmptyDocument
()
src/renderer/src/design/canvas/canvas-types.ts:432
↓ 235 callersMethoddelete
(threadId: string)
kun/src/ports/thread-store.ts:20
↓ 225 callersMethodnow
()
kun/src/ports/clock.ts:6
↓ 189 callersFunctionauditDesignHtmlQuality
(input: DesignHtmlQualityAuditInput)
src/renderer/src/design/html-quality/static-audit.ts:9
↓ 189 callersFunctionexecuteOps
( rawOps: unknown[], label = 'shape-ops', options?: ExecuteOpsOptions )
src/renderer/src/design/canvas/shape-ops/executor.ts:27
↓ 185 callersFunctionattributeValue
(tag: string, name: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:225
↓ 170 callersMethodkeys
()
kun/src/cache/lru-cache.ts:59
↓ 169 callersMethodmatch
Compiled path matcher.
src/main/ipc/app-ipc-schemas.ts:136
↓ 168 callersMethodvalues
()
kun/src/cache/lru-cache.ts:63
↓ 159 callersMethodexecute
( call: ToolCallLike, context: ToolHostContext, onUpdate?: (item: TurnItem) => Promise<void> | voi
kun/src/ports/tool-host.ts:150
↓ 154 callersFunctiononChange
(e: MediaQueryListEvent)
src/renderer/src/components/chat/SubagentCallCard.tsx:145
↓ 153 callersFunctioncreateDefaultShape
(type: ShapeType, x: number, y: number)
src/renderer/src/design/canvas/canvas-types.ts:343
↓ 142 callersFunctionattributeValues
(html: string, name: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:134
↓ 132 callersFunctiondefaultKunRuntimeSettings
( port = DEFAULT_KUN_PORT )
src/shared/app-settings-kun.ts:129
↓ 120 callersMethodload
()
src/main/settings-store.ts:408
↓ 116 callersMethodrecord
( threadId: string, usage: UsageSnapshot, signature?: CacheRequestSignature )
kun/src/services/usage-service.ts:41
↓ 115 callersMethodget
(id: string)
kun/src/artifacts/artifact-store.ts:57
↓ 115 callersFunctionpairedTagMatches
(html: string, tagName: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:217
↓ 111 callersFunctionpushFinding
( findings: DesignHtmlQualityFinding[], finding: DesignHtmlQualityFinding )
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:10
↓ 107 callersMethodcreate
(input: MemoryCreateRequest)
kun/src/memory/memory-store.ts:16
↓ 107 callersMethodreplaceAll
(entries: VirtualToolEntry<T>[])
kun/src/adapters/tool/virtual-tool-catalog.ts:38
↓ 100 callersMethodrunTurn
* 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 callersFunctioncreateHtmlFrameShape
( name: string, x: number, y: number, artifactId: string, preset: DevicePreset = 'desktop' )
src/renderer/src/design/canvas/canvas-types.ts:415
↓ 95 callersFunctionparseIpcPayload
(channel: string, schema: z.ZodType<T>, payload: unknown)
src/main/ipc/register-app-ipc-handlers.ts:253
↓ 93 callersMethoddefineTool
Tool builder helper for tests and feature scripts.
kun/src/adapters/tool/local-tool-host.ts:335
↓ 93 callersMethodresolve
(inputId: string, resolution: UserInputResolution)
kun/src/ports/user-input-gate.ts:35
↓ 90 callersFunctionmakeHarness
( model: ModelClient, options: { compactor?: ContextCompactor tools?: LocalTool[] /** Pre-buil
kun/tests/loop-test-harness.ts:73
↓ 86 callersMethodstream
(request: ModelRequest)
kun/src/ports/model-client.ts:125
↓ 85 callersFunctionbootstrapThread
( h: Harness, options: { workspace?: string request?: Parameters<TurnService['startTurn']>[0]['req
kun/tests/loop-test-harness.ts:181
↓ 85 callersFunctionjsonResponse
(body: unknown, status = 200)
kun/src/server/response.ts:7
↓ 84 callersFunctiondispatchRequest
(router: Router, request: Request)
kun/src/server/http-server.ts:17
↓ 82 callersMethodabort
()
src/main/feishu-streamer.ts:183
↓ 82 callersFunctiontextContent
(html: string)
src/renderer/src/design/html-quality/patterns.ts:494
↓ 82 callersFunctiontrimmedString
(max: number)
src/main/ipc/app-ipc-schemas.ts:92
↓ 80 callersFunctionnormalizeWorkspaceRoot
(path?: string)
src/renderer/src/lib/workspace-path.ts:101
↓ 74 callersFunctionbuildDesignHtmlQualityRepairPrompt
( findings: DesignHtmlQualityFinding[], mode: 'auto' | 'manual', designContext?: DesignContext )
src/renderer/src/design/html-quality/repair-prompt.ts:5
↓ 74 callersFunctionupdate
(partial: SettingsPatch)
src/renderer/src/components/SettingsView.tsx:908
↓ 73 callersMethodclear
()
kun/src/cache/lru-cache.ts:55
↓ 73 callersFunctionget
()
src/renderer/src/lib/browser-storage.test.ts:44
↓ 73 callersFunctiontestNode
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 callersFunctiondefaultModelProviderSettings
()
src/shared/app-settings-provider.ts:87
↓ 71 callersMethodlog
(message: string)
kun/src/loop/goal-resume-coordinator.ts:189
↓ 71 callersFunctionset
(partial)
src/renderer/src/write/write-workspace-file-actions.test.ts:63
↓ 70 callersFunctionasTrimmed
(value: unknown, fallback = '')
src/shared/app-settings-workflow.ts:79
↓ 70 callersMethodloadItems
(threadId: string)
kun/src/ports/session-store.ts:39
↓ 67 callersFunctiondirname
(path: string)
src/renderer/src/sdd/sdd-draft-images.ts:64
↓ 67 callersFunctionrunGit
( cwd: string, args: string[], timeout = 10_000 )
src/main/services/git-service.ts:38
↓ 65 callersMethodread
()
kun/src/adapters/tool/mcp-oauth-store.ts:57
↓ 63 callersFunctionreadJson
(response: Response)
kun/tests/http-server-test-harness.ts:181
↓ 61 callersMethodruntimeRequest
(path: string, method?: string, body?: string)
src/renderer/src/agent/runtime-client.ts:41
↓ 60 callersFunctionartifact
(id: string, title: string, extra: Partial<DesignArtifact> = {})
src/renderer/src/design/prototype-player.selection-state-links.test.ts:26
↓ 60 callersFunctiongetProvider
()
src/renderer/src/agent/registry.ts:6
↓ 58 callersMethodhas
(id: string)
kun/src/adapters/tool/virtual-tool-catalog.ts:113
↓ 56 callersMethodstop
()
src/main/claw-runtime.ts:547
↓ 56 callersMethodwrite
(record: MemoryRecord)
kun/src/memory/memory-store.ts:194
↓ 54 callersFunctionauthorize
(request: Request, runtime: ServerRuntime)
kun/src/server/routes/index.ts:353
↓ 54 callersFunctionreject
( reason: string, context: InlineCompletionRequestContext, text = '', score = 0, mode: WriteInlineCo
src/renderer/src/write/inline-completion/feedback.ts:149
↓ 54 callersFunctiontextChatProfile
( contextWindowTokens?: number, reasoning?: ModelProviderReasoningCapabilityV1, endpointFormat?: ModelEn
src/shared/model-provider-presets.ts:840
↓ 53 callersFunctionmakeUserItem
(input: { id: string turnId: string threadId: string text: string displayText?: string messageSour
kun/src/domain/item.ts:6
↓ 52 callersFunctionget
()
src/renderer/src/write/write-workspace-file-actions.test.ts:67
↓ 51 callersFunctioncreateClawRuntime
(deps: ClawRuntimeDeps)
src/main/claw-runtime.ts:2523
↓ 51 callersFunctiongetKunRuntimeSettings
( settings: AppSettingsV1 )
src/shared/app-settings-kun.ts:335
↓ 51 callersMethodnowIso
()
kun/src/ports/clock.ts:7
↓ 51 callersMethodupsert
(thread: ThreadRecord)
kun/src/ports/thread-store.ts:19
↓ 50 callersFunctionbuildSettings
()
src/main/claw-runtime.test.ts:23
↓ 50 callersFunctiontagMatches
(html: string, tagName: string)
src/renderer/src/design/html-quality/interaction-and-accessibility.ts:209
↓ 50 callersMethodupdate
(id: string, patch: MemoryUpdateRequest, access?: MemoryAccess)
kun/src/memory/memory-store.ts:17
↓ 49 callersFunctionbuildHarness
()
kun/tests/http-server-test-harness.ts:84
↓ 49 callersFunctionrecordString
(value: unknown, key: string)
kun/src/adapters/model/compat-model-client.ts:2184
↓ 48 callersFunctionbasename
(path: string)
src/renderer/src/lib/workspace-text-preview.ts:61
↓ 48 callersFunctionbuildRequest
(abortSignal: AbortSignal)
kun/tests/model-client.test.ts:13
↓ 47 callersFunctionruntimeErrorToError
(error: RuntimeError)
src/shared/runtime-error.ts:145
↓ 46 callersFunctiongetModelProviderPreset
(id: string)
src/shared/model-provider-presets.ts:692
↓ 45 callersFunctionisHtmlFrame
(shape: CanvasShape)
src/renderer/src/design/canvas/canvas-types.ts:269
↓ 44 callersMethodclose
()
kun/src/adapters/hybrid/hybrid-thread-store.ts:123
↓ 44 callersMethodgetSettings
(options?: { forceRefresh?: boolean })
src/renderer/src/agent/runtime-client.ts:13
↓ 43 callersFunctionobjectValue
(value: unknown)
src/main/kun-process.ts:1366
↓ 42 callersFunctioncreateWorkflowRuntime
(deps: ScheduleRuntimeDeps)
src/main/workflow-runtime.ts:2328
↓ 42 callersMethodlistTools
* 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 callersFunctioncreateImmutablePrefix
(input?: { systemPrompt?: string tools?: ImmutablePrefix['tools'] pinnedConstraints?: string[] fewShot
kun/src/cache/immutable-prefix.ts:100
↓ 41 callersMethodloadEventsSince
(threadId: string, sinceSeq: number)
kun/src/ports/session-store.ts:38
↓ 41 callersFunctionmakeToolResultItem
(input: { id: string turnId: string threadId: string callId: string toolName: string toolKind?: 't
kun/src/domain/item.ts:110
↓ 41 callersFunctionparseOut
(result: WorkflowNodeRunResultV1)
src/main/workflow-runtime.nodes.test.ts:220
↓ 41 callersFunctionreadRuntimeError
(body: string, fallback: string)
src/renderer/src/agent/kun-runtime.ts:85
↓ 40 callersFunctionartifact
( id: string, kind: DesignArtifact['kind'], extra: Partial<DesignArtifact> = {} )
src/renderer/src/design/design-board.test-helpers.ts:6
↓ 40 callersFunctionbuildDefaultLocalTools
( planOptions: CreatePlanAdapterOptions = {}, builtinOptions: BuiltinLocalToolsOptions = {} )
kun/src/adapters/tool/local-tool-host.ts:588
↓ 40 callersMethoddiagnostics
()
kun/src/memory/memory-store.ts:21
next →1–100 of 9,736, ranked by callers