MCPcopy Create free account

hub / github.com/MoonshotAI/kimi-code / functions

Functions12,222 in github.com/MoonshotAI/kimi-code

↓ 48 callersMethodsendInput
* Simulate keyboard input
packages/pi-tui/test/virtual-terminal.ts:110
↓ 47 callersFunctioncreateAgentStub
(opts: AgentStubOptions = {})
packages/agent-core/test/agent/cron/harness/stub.ts:58
↓ 47 callersMethodisShowingAutocomplete
()
packages/pi-tui/src/components/editor.ts:2407
↓ 46 callersFunctionmakeToken
(overrides: Partial<TokenInfo> = {})
packages/oauth/test/oauth-manager.test.ts:48
↓ 46 callersFunctionmuted
(text: string)
apps/kimi-code/src/tui/components/messages/plugins-status-panel.ts:18
↓ 46 callersMethodresume
(options?: AgentRecordsReplayOptions)
packages/agent-core/src/agent/index.ts:321
↓ 45 callersMethodbeginCompaction
({ sessionId, ...payload }: SessionAgentPayload<BeginCompactionPayload>)
packages/agent-core/src/rpc/core-impl.ts:665
↓ 44 callersFunctionbashTool
( kaos: ConstructorParameters<typeof BashTool>[0], cwd = '/workspace', manager = createBackgroundManager
packages/agent-core/test/tools/bash.test.ts:254
↓ 44 callersFunctionborder
(s: string)
apps/kimi-code/src/tui/components/dialogs/plugins-selector.ts:282
↓ 44 callersMethoddispose
()
apps/kimi-code/src/tui/utils/component-capabilities.ts:6
↓ 44 callersMethodfire
(payload: string)
packages/agent-core/test/di/delayed.test.ts:94
↓ 44 callersMethodsend
(payload: unknown)
packages/server/src/routes/fs.ts:75
↓ 44 callersFunctionuserMessage
(text: string, origin?: ContextMessage['origin'])
packages/agent-core/test/services/message-transcript.test.ts:41
↓ 43 callersFunctionhandleGoalCommand
(host: SlashCommandHost, args: string)
apps/kimi-code/src/tui/commands/goal.ts:123
↓ 43 callersFunctionisImageLine
(line: string)
packages/pi-tui/src/terminal-image.ts:146
↓ 43 callersMethodkill
Send a signal to the process (defaults to `SIGTERM`).
packages/kaos/src/process.ts:24
↓ 43 callersFunctionproject
(history: readonly ContextMessage[], options?: ProjectOptions)
packages/agent-core/src/agent/context/projector.ts:99
↓ 43 callersFunctionrunUpdatePreflight
( currentVersion: string, options: RunUpdatePreflightOptions = {}, )
apps/kimi-code/src/cli/update/preflight.ts:664
↓ 43 callersMethodtick
* Run one check cycle synchronously. Safe to call before start() or * after stop().
packages/agent-core/src/tools/cron/scheduler.ts:128
↓ 43 callersFunctiontriggerSubscribers
(e: Event)
packages/agent-core/test/services/prompt-service.test.ts:271
↓ 42 callersFunctioncaptureOutput
()
apps/kimi-code/test/cli/update/preflight.test.ts:176
↓ 42 callersMethodensureFresh
( providerName?: string | undefined, options: { readonly force?: boolean | undefined; read
packages/oauth/src/toolkit.ts:241
↓ 42 callersFunctionmessage
( role: Role, content: readonly ContentPart[], extra: { readonly toolCalls?: readonly ToolCall[];
apps/kimi-code/test/tui/message-replay.test.ts:65
↓ 42 callersFunctionpushOperationFailure
( operation: string, err: unknown, opts?: { title?: string; message?: string; sessionId?: string }, )
apps/kimi-web/src/composables/useKimiWebClient.ts:1058
↓ 42 callersFunctionresolveSkillRoots
( options: ResolveSkillRootsOptions, )
packages/agent-core/src/skill/scanner.ts:61
↓ 41 callersFunctionagentTask
( completion: Promise<{ result: string }>, description: string, options: { readonly agentId?: string
packages/agent-core/test/agent/background/helpers.ts:70
↓ 41 callersFunctionappendMessage
(message: ContextMessage, time?: number)
packages/agent-core/test/services/message-transcript.test.ts:50
↓ 41 callersFunctionextractText
(message: Message, sep: string = '')
packages/kosong/src/message.ts:180
↓ 41 callersFunctionmakeEditor
()
apps/kimi-code/test/tui/components/editor/custom-editor.test.ts:12
↓ 41 callersFunctionmakeKimiHome
()
packages/agent-core/test/plugin/manager.test.ts:10
↓ 41 callersMethodpop
Pop and return the most recent snapshot, or undefined if empty.
packages/pi-tui/src/undo-stack.ts:16
↓ 41 callersMethodset
(patch: PatchConfigRequest)
packages/agent-core/src/services/config/config.ts:8
↓ 40 callersFunctionasRecord
(value: unknown)
packages/server/test/swagger.e2e.test.ts:75
↓ 40 callersFunctioncontext
(args: GlobInput)
packages/agent-core/test/tools/glob.test.ts:69
↓ 40 callersFunctiondiscoverSkills
( options: DiscoverSkillsOptions, )
packages/agent-core/src/skill/scanner.ts:132
↓ 40 callersMethodgetAgent
(agentId: string)
packages/agent-core/src/session/rpc.ts:293
↓ 40 callersMethodmkdir
Create a directory at `path`.
packages/kaos/src/kaos.ts:89
↓ 40 callersFunctionrunPrompt
( opts: CLIOptions, version: string, io: PromptRunIO = {}, )
apps/kimi-code/src/cli/run-prompt.ts:95
↓ 40 callersFunctionspawn
()
packages/server/test/start.test.ts:125
↓ 40 callersMethodtrigger
(event: string, args: HookEngineTriggerArgs = {})
packages/agent-core/src/session/hooks/engine.ts:36
↓ 39 callersFunctioncontext
(args: ReadInput)
packages/agent-core/test/tools/read.test.ts:36
↓ 39 callersFunctioncreateProvider
()
packages/kosong/test/openai-responses.test.ts:35
↓ 39 callersMethodreadText
* Read the file at `path` as a string. * * `errors` controls how decode errors are handled — mirrors Python's * `open(..., errors=)` paramete
packages/kaos/src/kaos.ts:71
↓ 39 callersFunctiontool
(toolCallId: string, text = 'ok')
packages/agent-core/test/agent/context/projector.test.ts:140
↓ 38 callersMethodbeginStep
()
packages/agent-core/src/agent/turn/tool-dedup.ts:141
↓ 38 callersFunctioncaptureRequestBody
Capture the request body sent to OpenAI by mocking the client.
packages/kosong/test/openai-legacy.test.ts:40
↓ 38 callersFunctioncontext
(args: BashInput, signal = new AbortController().signal)
packages/agent-core/test/tools/bash.test.ts:250
↓ 38 callersFunctioncreateComponent
( options: Partial<AgentSwarmProgressOptions> = {}, )
apps/kimi-code/test/tui/components/messages/agent-swarm-progress.test.ts:24
↓ 38 callersMethodemitEvent
(event: { type: string; payload: { value: number } })
packages/agent-core/test/rpc/create-rpc.test.ts:11
↓ 38 callersFunctionparse
(argv: string[])
apps/kimi-code/test/cli/options.test.ts:7
↓ 38 callersMethodrequest
( method: string, path: string, body: unknown, )
packages/server-e2e/src/http.ts:65
↓ 38 callersMethodthrowIfAborted
(signal: AbortSignal | undefined)
packages/oauth/src/oauth-manager.ts:466
↓ 37 callersMethoddim
(s: string)
apps/kimi-code/src/tui/components/messages/tool-call.ts:2164
↓ 37 callersMethodget
* Return a single background task. Throws `TaskNotFoundError` (→ 40406) * when the task id is not found. * * Pass `withOutput: true` to inclu
packages/agent-core/src/services/task/task.ts:157
↓ 37 callersMethodgetTransientHint
()
apps/kimi-code/test/tui/controllers/clipboard-image-hint.test.ts:21
↓ 37 callersMethodinit
()
apps/kimi-code/test/tui/kimi-tui-startup.test.ts:38
↓ 37 callersFunctionprojectContext
( entries: ReadonlyArray<WireEntry>, mode: 'model' | 'full' = 'model', )
apps/vis/server/src/lib/context-projector.ts:108
↓ 37 callersFunctionresolveRuntimeProvider
(input: { readonly config: KimiConfig; readonly model?: string; readonly kimiRequestHeaders?: Record<str
packages/agent-core/test/harness/runtime-provider.test.ts:11
↓ 37 callersMethodsetAutocompleteProvider
Set the autocomplete provider
packages/pi-tui/src/editor-component.ts:60
↓ 36 callersFunctionassistant
(toolCallIds: readonly string[], text = '')
packages/agent-core/test/agent/context/projector.test.ts:126
↓ 36 callersFunctioncreateClocks
(initial: number = WALL_ANCHOR)
packages/agent-core/test/agent/cron/harness/stub.ts:111
↓ 36 callersFunctiondetectFileType
( path: string, header?: Buffer | Uint8Array, type: DetectFileTypeMode = 'text', )
packages/agent-core/src/tools/support/file-type.ts:345
↓ 36 callersMethodgetBuffer
()
packages/pi-tui/src/stdin-buffer.ts:427
↓ 36 callersMethodgetcwd
Return the current working directory.
packages/kaos/src/kaos.ts:32
↓ 36 callersFunctionmakeFakeKaos
(sftp: unknown)
packages/kaos/test/ssh.test.ts:522
↓ 36 callersFunctionparseManifest
(pluginRoot: string)
packages/agent-core/src/plugin/manifest.ts:42
↓ 36 callersMethodsetValue
(value: string)
packages/pi-tui/src/components/input.ts:43
↓ 36 callersMethodstat
Return stat metadata for `path`.
packages/kaos/src/kaos.ts:48
↓ 36 callersFunctiontask
(overrides: Partial<BackgroundTaskInfo> = {})
apps/kimi-code/test/tui/tasks-browser.test.ts:44
↓ 35 callersFunctioncreateProvider
( options?: Partial<{ stream: boolean; reasoningKey: string; model: string; }>, )
packages/kosong/test/openai-legacy.test.ts:24
↓ 35 callersFunctioncreateRPC
()
packages/agent-core/src/rpc/client.ts:31
↓ 35 callersMethodgetSuggestions
( lines: string[], cursorLine: number, cursorCol: number, options: { signal: AbortSignal; force?: bool
packages/pi-tui/src/autocomplete.ts:247
↓ 35 callersMethodresolveExecution
(input: Input)
packages/agent-core/src/loop/types.ts:147
↓ 35 callersFunctionresolveThinkingEffort
( requested: ThinkingEffort | undefined, config: ThinkingConfig | undefined, model: ModelAlias | undefin
packages/agent-core/src/agent/config/thinking.ts:54
↓ 34 callersFunctioncaptureRequestBody
Capture the request body sent to the Responses API by mocking the client.
packages/kosong/test/openai-responses.test.ts:43
↓ 34 callersFunctiongitKaos
(options: { readonly markerPath?: string | undefined; readonly markerMode?: number | undefined; re
packages/agent-core/test/agent/permission.test.ts:2660
↓ 34 callersFunctionmakeTempDir
()
packages/node-sdk/test/list-sessions.test.ts:27
↓ 34 callersFunctionopts
(overrides: Partial<Parameters<typeof runPrompt>[0]> = {})
apps/kimi-code/test/cli/run-prompt.test.ts:129
↓ 34 callersMethodsend
(message: unknown)
packages/server/src/ws/connection.ts:708
↓ 34 callersFunctionstat
(kind: 'dir' | 'file')
packages/agent-core/test/session/subagent-host.test.ts:1612
↓ 34 callersMethodstub
( id: ServiceIdentifier<T>, // eslint-disable-next-line @typescript-eslint/no-explicit-any arg2: a
packages/agent-core/src/di/testInstantiationService.ts:111
↓ 34 callersFunctiontextMessage
(role: 'user' | 'assistant' | 'tool', text: string)
packages/agent-core/test/agent/compaction/handoff.test.ts:21
↓ 33 callersMethodabort
( sessionId: string, promptId: string, )
packages/server/src/ws/connection.ts:57
↓ 33 callersFunctioncaptureRequestBody
Capture the request body sent to OpenAI by mocking the client.
packages/kosong/test/kimi.test.ts:49
↓ 33 callersMethodclose
()
apps/kimi-web/src/api/types.ts:542
↓ 33 callersMethodcreateChild
* Returns a new logger that adds `ctx` to every entry it emits. The bound * context wins over per-call payload context, so callers can't accidental
packages/agent-core/src/logging/types.ts:34
↓ 33 callersMethodemit
(entry: LogEntry)
packages/agent-core/src/logging/logger.ts:120
↓ 33 callersMethodmountEditorReplacement
(panel: Component & Focusable)
apps/kimi-code/src/tui/commands/dispatch.ts:112
↓ 33 callersFunctionokResult
(text: string)
packages/agent-core/test/agent/turn/tool-dedup.test.ts:30
↓ 33 callersMethodrelease
Idempotent release: safe to call multiple times; best-effort on missing/mismatched lock.
packages/server/src/lock.ts:81
↓ 33 callersFunctionsafeSetString
(key: string, value: string)
apps/kimi-web/src/lib/storage.ts:63
↓ 32 callersFunctioncreateProvider
( options?: Partial<{ model: string; vertexai: boolean; stream: boolean }>, )
packages/kosong/test/google-genai.test.ts:36
↓ 32 callersMethodevaluate
( context: PermissionPolicyContext, )
packages/agent-core/src/agent/permission/types.ts:98
↓ 32 callersMethodfocus
Focus this overlay and bring it to the visual front
packages/pi-tui/src/tui.ts:233
↓ 32 callersMethodforEach
( // eslint-disable-next-line @typescript-eslint/no-explicit-any callback: (id: ServiceIdentifier<any>
packages/agent-core/src/di/instantiation.ts:141
↓ 32 callersMethodget
(fileId: string)
packages/agent-core/src/services/fileStore/fileStore.ts:49
↓ 32 callersMethodglob
Yield paths matching `pattern` under `path`.
packages/kaos/src/kaos.ts:52
↓ 32 callersFunctionisRecord
(value: unknown)
packages/oauth/src/utils.ts:1
↓ 32 callersMethodloadFromDisk
* Rehydrate the in-memory store from `<sessionDir>/cron/` after * `kimi resume`. No-op when persistence is not attached. Idempotent: * clears th
packages/agent-core/src/agent/cron/manager.ts:257
↓ 32 callersMethodlogRecord
(record: AgentRecord)
packages/agent-core/src/agent/records/index.ts:156
← previousnext →201–300 of 12,222, ranked by callers