MCPcopy Create free account

hub / github.com/KunAgent/Kun / functions

Functions9,736 in github.com/KunAgent/Kun

↓ 6 callersFunctionupsertItem
( projection: MutableProjection, item: TurnItem, mode: 'replace' | 'append-delta' )
kun/src/domain/runtime-event-reducer.ts:361
↓ 6 callersFunctionupsertWorkspace
(workspacePath: string, threads: NormalizedThread[] = [])
src/renderer/src/components/chat/SidebarProjectsSection.tsx:268
↓ 6 callersFunctionusage
(buckets = [bucket('2026-05-01', 1200), bucket('2026-05-02', 10000)])
src/renderer/src/components/chat/InitialSessionUsageHeatmap.test.ts:31
↓ 6 callersFunctionusage
(tokens: number)
kun/tests/loop.test.ts:3092
↓ 6 callersFunctionusageSnapshot
(overrides: Partial<UsageSnapshot> = {})
kun/tests/http-server-test-harness.ts:38
↓ 6 callersMethodvalidateBeforeTool
(input: { context: ToolHostContext; call: ToolCallLike })
kun/src/adapters/tool/read-tracker.ts:46
↓ 6 callersFunctionvalidationError
(message: string, issues: unknown)
kun/src/server/routes/threads.ts:392
↓ 6 callersFunctionwaitFor
(predicate: () => boolean | Promise<boolean>, timeoutMs = 2000)
kun/tests/delegation-runtime.test.ts:666
↓ 6 callersFunctionwithId
(item: TurnItem, id: string)
kun/tests/thread-service.test.ts:43
↓ 6 callersFunctionwithShape
(shape = createDefaultShape('image', 10, 20))
src/renderer/src/design/design-composer-context.test.ts:35
↓ 6 callersFunctionwithTimeout
(signal: AbortSignal, timeoutMs: number)
kun/src/adapters/tool/media-gen-tool-provider.ts:869
↓ 6 callersFunctionworkspaceRoot
(workspace: string)
kun/src/adapters/tool/builtin-tool-utils.ts:57
↓ 6 callersFunctionworktreePath
(poolDir: string, poolIndex: number)
src/main/services/worktree-service.ts:43
↓ 6 callersFunctionwriteJsonIfChanged
(filePath: string, value: unknown)
src/main/weixin-bridge-runtime.ts:335
↓ 6 callersFunctionwriteScript
(name: string, content: string)
src/main/kun-process.test.ts:69
↓ 6 callersFunctionwriteUiModePreference
(mode: string)
src/renderer/src/lib/ui-mode.ts:30
↓ 6 callersFunctionxiaomiTextChatProfile
(contextWindowTokens: number)
src/shared/model-provider-presets.ts:824
↓ 5 callersFunctionFIELD
(over: Record<string, unknown>)
src/main/workflow-runtime.nodes.test.ts:250
↓ 5 callersFunctionactiveDesignThreadForWorkspace
( workspaceRoot: string, docId: string, threads: NormalizedThread[], registry: DesignThreadRegistry =
src/renderer/src/design/design-thread-registry.ts:257
↓ 5 callersFunctionaddFrameWithChild
()
src/renderer/src/design/canvas/canvas-shortcuts.test.ts:42
↓ 5 callersFunctionaddReplacementPair
(pairs: ReplacementPair[], from: string, to: string)
src/main/legacy-data-migration.ts:317
↓ 5 callersFunctionaddShape
(doc: CanvasDocument, shape: CanvasShape, parentId = doc.rootId)
src/renderer/src/design/references/design-reference-panel.test.ts:28
↓ 5 callersFunctionanswerFromOption
( question: UserInputQuestion, option: UserInputOption )
src/renderer/src/components/chat/user-input-panel-logic.ts:49
↓ 5 callersFunctionanswersByQuestionId
( answers: UserInputAnswer[] | undefined )
src/renderer/src/components/chat/user-input-panel-logic.ts:39
↓ 5 callersFunctionapiPost
( baseUrl: string, endpoint: string, body: JsonRecord, options: { token?: string; timeoutMs?: number;
src/main/weixin-bridge-runtime.ts:235
↓ 5 callersFunctionapplyCursorSpotlightColor
(color: string | null | undefined)
src/renderer/src/lib/apply-theme.ts:72
↓ 5 callersFunctionapplyKunRuntimePatch
( settings: AppSettingsV1, patch: KunRuntimeSettingsPatchV1 | undefined )
src/shared/app-settings-kun.ts:1055
↓ 5 callersFunctionapplyTheme
(pref: ThemePreference)
src/renderer/src/lib/apply-theme.ts:25
↓ 5 callersFunctionartifact
(id: string, title: string, extra: Partial<DesignArtifact> = {})
src/renderer/src/design/prototype-player.form-submitters.test.ts:26
↓ 5 callersFunctionartifact
(id: string, title: string, extra: Partial<DesignArtifact> = {})
src/renderer/src/design/design-md-compat.test.ts:14
↓ 5 callersFunctionartifact
(kind: DesignArtifact['kind'] = 'html')
src/renderer/src/design/design-code-roundtrip.test.ts:13
↓ 5 callersFunctionartifact
(id: string, patch: Partial<DesignArtifact> = {})
src/renderer/src/design/directions/direction-scorecard.test.ts:12
↓ 5 callersFunctionartifactDesignMdPathOf
(relativePath: string)
src/renderer/src/design/design-artifact-persistence.ts:47
↓ 5 callersFunctionartifactDirPath
(docId: string, artifactId: string)
src/renderer/src/design/design-artifact-persistence.ts:22
↓ 5 callersFunctionasRecord
(value: unknown)
src/main/claw-platform-install.ts:33
↓ 5 callersFunctionassembleSdkOptions
(params: AssembleSdkOptionsParams)
kun/src/runtime/agent-sdk/sdk-options-builder.ts:195
↓ 5 callersFunctionassertExists
(path, label)
scripts/after-pack.cjs:33
↓ 5 callersFunctionassertMiniMaxOk
(baseResp: MiniMaxBaseResponse | undefined, label: string)
kun/src/adapters/tool/media-gen-tool-provider.ts:854
↓ 5 callersFunctionattemptCloseMemoryDialog
(args: { dialog: MemoryDialogState | null draft: MemoryDraft confirm: () => Promise<boolean> close: ()
src/renderer/src/components/settings-section-memory.tsx:87
↓ 5 callersFunctionautoModelHeuristic
(input: string, _currentModel = '')
kun/src/loop/auto-model-router.ts:83
↓ 5 callersFunctionbaseCtx
(overrides: Record<string, any> = {})
src/renderer/src/components/settings-section-memory.test.ts:89
↓ 5 callersFunctionbindingsFromDomSourceSnapshot
({ existingBindings = [], matches, capturedAt = new Date().toISOString(), scopeDesignObjectIds }: DomS
src/renderer/src/design/code-binding/dom-source-adapter.ts:115
↓ 5 callersFunctionbuildBridgedToolSpecs
( tools: readonly BridgeableTool[], execute: KunToolExecutor )
kun/src/runtime/agent-sdk/sdk-tool-bridge.ts:114
↓ 5 callersFunctionbuildDelegationToolProviders
(runtime: DelegationRuntime | undefined)
kun/src/adapters/tool/delegation-tool-provider.ts:5
↓ 5 callersFunctionbuildDesignAgentManagerModel
( options: BuildDesignAgentManagerModelOptions )
src/renderer/src/design/agent-manager/design-agent-manager.ts:310
↓ 5 callersFunctionbuildDesignCodeSyncViewModel
({ doc, workspaceRoot }: { doc: CanvasDocument workspaceRoot?: string })
src/renderer/src/design/code-binding/design-code-sync-view-model.ts:33
↓ 5 callersFunctionbuildDesignModeWorkflowRecommendation
( plan: DesignModeWorkflowPlan )
src/renderer/src/design/design-mode/design-mode-workflow.ts:378
↓ 5 callersFunctionbuildGoalLocalTools
(threadService: ThreadService)
kun/src/adapters/tool/goal-tools.ts:14
↓ 5 callersFunctionbuildGraph
(options: BuildDesignProjectContractMarkdownOptions)
src/renderer/src/design/design-contract/design-project-contract.ts:242
↓ 5 callersFunctionbuildHtmlFrameScrollbarSuppressionScript
(suppress: boolean)
src/renderer/src/components/design/canvas/html-frame/html-frame-helpers.ts:137
↓ 5 callersFunctionbuildPendingInfographicMarkdown
(alt: string, src: string)
src/renderer/src/write/infographic-pending.ts:64
↓ 5 callersFunctionbuildQuery
(options: Record<string, string | number | boolean | undefined>)
src/renderer/src/agent/kun-mapper.ts:37
↓ 5 callersFunctionbuildSddDraftToPlanPrompt
(options: { draftMarkdown: string draftRelativePath: string planRelativePath: string assistantContext?
src/renderer/src/sdd/sdd-plan-prompt.ts:43
↓ 5 callersFunctionbuildSddPrototypeTurnPrompt
(options: SddPrototypeTurnOptions)
src/renderer/src/sdd/sdd-prototype-prompt.ts:24
↓ 5 callersFunctionbuildSkillToolProviders
( skillRuntime: SkillRuntime | undefined )
kun/src/adapters/tool/skill-tool-provider.ts:15
↓ 5 callersFunctionbuildToolCatalogFingerprint
( tools: readonly ModelToolSpec[] )
kun/src/cache/tool-catalog-fingerprint.ts:11
↓ 5 callersFunctionbuildWriteExportFileName
(sourcePath: string, format: WriteExportFormat)
src/main/services/write-export-service.ts:370
↓ 5 callersFunctionbuildWriteRichExtensions
()
src/renderer/src/write/tiptap/markdown-manager.ts:16
↓ 5 callersFunctionbuildWriteTemplateShortcutExpansion
({ text, cursor, now = new Date() }: { text: string cursor: number now?: Date })
src/renderer/src/write/template-shortcuts.ts:16
↓ 5 callersFunctionbuildWriteTermPropagationChanges
( content: string, seed: WriteTermReplacementSeed )
src/renderer/src/write/term-propagation.ts:192
↓ 5 callersFunctioncanBindTcpPort
(port: number, host: string)
src/main/kun-process.ts:1622
↓ 5 callersFunctioncanImplementDesignArtifact
( artifact: DesignArtifact | null | undefined )
src/renderer/src/design/design-artifact-actions.ts:87
↓ 5 callersMethodcatalogInstruction
* Renders the global catalog for diagnostics and compatibility. Runtime turns * use resolveTurn so workspace-local skills stay out of the immutable
kun/src/skills/skill-runtime.ts:201
↓ 5 callersFunctioncheckoutGitBranchWorktree
( workspaceRoot: string, branchName: string, worktreeRoot?: string )
src/main/services/git-service.ts:258
↓ 5 callersFunctioncheckpointDir
(root: string, checkpointId: string)
src/main/services/git-checkpoint-service.ts:103
↓ 5 callersFunctionchoiceButtonClass
(active: boolean)
src/renderer/src/components/InitialSetupDialog.tsx:378
↓ 5 callersFunctionclampOffset
(content: string, offset: number)
src/renderer/src/write/term-propagation.ts:19
↓ 5 callersFunctionclampOffset
(content: string, offset: number)
src/renderer/src/write/inline-edit.ts:33
↓ 5 callersFunctionclassifyDesignAssetSource
(path: string)
src/renderer/src/design/assets/design-asset-inventory.ts:25
↓ 5 callersFunctionclawChannel
(provider: ClawImProvider, label: string, name = label)
src/shared/app-settings.test.ts:124
↓ 5 callersFunctionclawThreadIdForProvider
( channel: ClawImChannelV1, conversation?: ClawImChannelV1['conversations'][number] | null )
src/renderer/src/store/chat-store-claw-actions.ts:68
↓ 5 callersFunctioncleanPrototypePath
(value: string)
src/renderer/src/design/prototype-player/routing.ts:99
↓ 5 callersMethodcleanup
()
kun/src/adapters/computer-use/host-control.ts:362
↓ 5 callersFunctionclearComposerAttachments
(scope = composerAttachmentScopeRef.current)
src/renderer/src/components/workbench/useWorkbenchAttachmentRuntime.ts:125
↓ 5 callersFunctionclipMiddle
(text = '', maxChars = 0)
src/renderer/src/write/recent-edits.ts:48
↓ 5 callersFunctionclipSignaturePart
(text = '', head = 120, tail = 120)
src/renderer/src/write/inline-completion/codemirror.ts:83
↓ 5 callersMethodclose
()
kun/src/services/background-shell-output.ts:111
↓ 5 callersFunctioncode
(value: string | undefined)
src/renderer/src/design/design-md-compat.ts:53
↓ 5 callersFunctioncollectDescendants
(objects: Record<string, CanvasShape>, id: string)
src/renderer/src/design/canvas/canvas-shape-store.ts:55
↓ 5 callersFunctioncollectSddDraftImages
(input: { markdown: string draftRelativePath: string workspaceRoot: string readImage?: WorkspaceImageR
src/renderer/src/sdd/sdd-draft-images.ts:114
↓ 5 callersFunctioncompactRect
(rect: Rect)
src/renderer/src/design/canvas/canvas-snapshot.ts:507
↓ 5 callersFunctioncompactText
(text = '')
src/renderer/src/write/inline-completion/prompt.ts:18
↓ 5 callersFunctioncompactText
(text = '')
src/renderer/src/write/inline-completion/policy.ts:7
↓ 5 callersFunctioncompactText
(text = '')
src/main/services/write-retrieval-service.ts:138
↓ 5 callersFunctioncompleteOrNext
(done: boolean, next: DesignModeWorkflowStepStatus)
src/renderer/src/design/design-mode/design-mode-workflow.ts:83
↓ 5 callersFunctioncompleted
(chunks: ModelStreamChunk[])
kun/src/adapters/model/compat-model-client.streaming-tool-calls.test.ts:79
↓ 5 callersFunctioncomposeSddAssistantPrompt
(options: { userPrompt: string draftMarkdown: string draftRelativePath: string workspaceRoot: string
src/renderer/src/sdd/sdd-assistant-prompt.ts:3
↓ 5 callersFunctioncomposeWritePrompt
( input: string, selections: WriteQuotedSelection[], context: WritePromptContext = {} )
src/renderer/src/write/quoted-selection.ts:189
↓ 5 callersFunctioncomputeBlockSyncReplacement
( currentDoc: PMNode, nextDoc: PMNode )
src/renderer/src/write/tiptap/markdown-sync.ts:16
↓ 5 callersFunctioncomputeContentHash
(content: string | Buffer)
kun/src/supplychain/package-audit.ts:53
↓ 5 callersFunctioncomputeDisplayDims
( logicalWidth: number, logicalHeight: number, maxDimension: number )
kun/src/adapters/computer-use/host-control.ts:91
↓ 5 callersFunctionconnectPhoneInstallRequestOptions
( target: ClawInstallTarget )
src/renderer/src/components/chat/ConnectPhoneView.tsx:110
↓ 5 callersFunctioncontext
(artifactStore?: ToolHostContext['artifactStore'])
kun/src/adapters/tool/artifact-tool.test.ts:6
↓ 5 callersFunctioncontrastRatio
(a: string, b: string)
src/renderer/src/design/canvas/design-lint.ts:40
↓ 5 callersMethodcount
()
kun/src/skills/skill-runtime.ts:272
↓ 5 callersFunctioncreateAgentNoteShape
(note: CanvasAgentNote, options: CreateAgentNoteShapeOptions)
src/renderer/src/design/agent-notes/agent-note-shapes.ts:52
↓ 5 callersFunctioncreateAgentSession
(input: { threadId: string turnId: string startedAt?: string })
kun/src/domain/session.ts:22
↓ 5 callersFunctioncreateCanvasMinimapLayout
( doc: CanvasDocument, vbox: ViewBox, selectedIds: ReadonlySet<string>, size: { width: number; height:
src/renderer/src/design/canvas/canvas-minimap.ts:96
↓ 5 callersFunctioncreateCreatePlanTool
(options: CreatePlanAdapterOptions = {})
kun/src/adapters/tool/create-plan-tool.ts:216
↓ 5 callersFunctioncreateGrepLocalTool
(options: GrepLocalToolOptions = {})
kun/src/adapters/tool/builtin-search-tools.ts:181
← previousnext →1,301–1,400 of 9,736, ranked by callers