MCPcopy Create free account

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

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

↓ 83 callersMethodgetValue
()
packages/pi-tui/src/components/input.ts:39
↓ 83 callersMethodmock
(id: ServiceIdentifier<T>)
packages/agent-core/src/di/testInstantiationService.ts:55
↓ 83 callersMethodwaitForRender
Wait for TUI's throttled render pipeline to settle.
packages/pi-tui/test/virtual-terminal.ts:234
↓ 82 callersFunctioncontext
(args: GrepInput, abortSignal = signal)
packages/agent-core/test/tools/grep.test.ts:130
↓ 82 callersFunctiondefineRoute
( options: DefineRouteOptions<TBody, TParams, TQuery, TSuccessData>, handler: RouteDefinition<TBody, TPara
packages/server/src/middleware/defineRoute.ts:233
↓ 82 callersMethoddispatch
(event: AgentRecord)
packages/agent-core/test/agent/harness/agent.ts:299
↓ 81 callersMethodcwd
()
packages/agent-core/src/agent/config/index.ts:99
↓ 80 callersMethodappendExchange
( step: number, userText: string, assistantText: string, tokenTotal: number, )
packages/agent-core/test/agent/harness/agent.ts:326
↓ 80 callersFunctioncreateProvider
( model: string = 'k25', metadata?: Record<string, string>, )
packages/kosong/test/anthropic.test.ts:19
↓ 80 callersFunctionerrEnvelope
(code: number, msg: string, requestId: string)
packages/protocol/src/envelope.ts:24
↓ 80 callersFunctionmakeSession
(overrides: Record<string, unknown> = {})
apps/kimi-code/test/tui/kimi-tui-message-flow.test.ts:141
↓ 79 callersMethodend
()
packages/kaos/test/ssh.test.ts:1418
↓ 79 callersFunctionreadFile
(path: string)
packages/agent-core/src/loop/tool-access.ts:39
↓ 79 callersFunctionstrip
(text: string)
apps/kimi-code/test/tui/components/messages/tool-call.test.ts:14
↓ 79 callersMethodwrite
(chunk: string)
apps/kimi-code/src/cli/sub/upgrade.ts:26
↓ 78 callersFunctionformatErrorMessage
(error: unknown)
apps/kimi-code/src/tui/utils/event-payload.ts:95
↓ 78 callersFunctionprocessInput
(data: string | Buffer)
packages/pi-tui/test/stdin-buffer.test.ts:27
↓ 74 callersFunctionsetKittyProtocolActive
(active: boolean)
packages/pi-tui/src/keys.ts:31
↓ 74 callersMethodsubmit
* `POST /v1/sessions/{sid}/prompts` — submit a prompt for execution. * * Throws `SessionNotFoundError` (→ 40401) for unknown `sid`. * Returns
packages/agent-core/src/services/prompt/prompt.ts:132
↓ 73 callersFunctionrenderAndFlush
(tui: TUI, terminal: VirtualTerminal)
packages/pi-tui/test/overlay-non-capturing.test.ts:48
↓ 73 callersMethodshowStatus
(msg: string, color?: ColorToken)
apps/kimi-code/src/tui/commands/dispatch.ts:108
↓ 73 callersMethodtrack
(event: string, properties?: TelemetryProperties)
packages/agent-core/src/telemetry.ts:10
↓ 72 callersFunctioncaptureRequestBody
Capture the request body sent to Anthropic by mocking the client (non-stream mode).
packages/kosong/test/anthropic.test.ts:60
↓ 72 callersFunctiongetKimiWebApi
()
apps/kimi-web/src/api/index.ts:10
↓ 72 callersMethodsave
(name: string, token: TokenInfo)
packages/oauth/src/storage.ts:36
↓ 71 callersMethodabort
* `POST /v1/sessions/{sid}/prompts/{pid}:abort` — cancel an in-flight or * queued prompt. * * For an active prompt, this issues `core.rpc.can
packages/agent-core/src/services/prompt/prompt.ts:168
↓ 71 callersFunctiongetRootLogger
()
packages/agent-core/src/logging/logger.ts:271
↓ 71 callersFunctionmakeToolUseResponse
( toolCalls: ToolCall[], usage: Partial<TokenUsage> = {}, )
packages/agent-core/test/loop/fixtures/fake-llm.ts:148
↓ 70 callersFunctionparseCronExpression
(expr: string)
packages/agent-core/src/tools/cron/cron-expr.ts:47
↓ 70 callersMethodwrite
(chunk: string)
apps/kimi-code/src/cli/run-prompt.ts:75
↓ 69 callersMethodflush
Resolves to false when the pending batch could not be written.
packages/agent-core/src/logging/sinks.ts:22
↓ 69 callersFunctionprocessWithOutput
(stdout: string, stderr = '', exitCode = 0)
packages/agent-core/test/tools/grep.test.ts:68
↓ 69 callersFunctionrenderTranscript
(driver: MessageDriver)
apps/kimi-code/test/tui/kimi-tui-message-flow.test.ts:295
↓ 68 callersFunctionrealpath
(p: string)
packages/agent-core/test/skill/scanner.test.ts:13
↓ 67 callersMethodcreateGoal
({ sessionId, ...payload }: SessionAgentPayload<CreateGoalPayload>)
packages/agent-core/src/rpc/core-impl.ts:809
↓ 67 callersMethodinvalidate
* Invalidate any cached rendering state. * Called when theme changes or when component needs to re-render from scratch.
packages/pi-tui/src/tui.ts:94
↓ 66 callersMethodinstall
(args: InstallArgs)
packages/server/src/svc/types.ts:64
↓ 66 callersFunctionmakeTempDir
(tempDirs: string[], prefix: string)
packages/node-sdk/test/session-runtime-helpers.ts:19
↓ 65 callersMethodgetText
()
apps/kimi-code/src/utils/clipboard/clipboard-native.ts:20
↓ 65 callersMethodtoolResults
* Await all tool results dispatched during this step, returned in the * same order as {@link toolCalls}.
packages/kosong/test/fixtures/step.ts:48
↓ 64 callersFunctionT
(title: string, status: TodoItem['status'])
apps/kimi-code/test/tui/components/panels/todo-panel.test.ts:199
↓ 63 callersMethodlistSessions
(input?: PageRequest & { status?: AppSessionStatus; workspaceId?: string; includeArchive?: boolean; excludeEmp
apps/kimi-web/src/api/types.ts:648
↓ 63 callersFunctionpad
(content)
apps/kimi-code/scripts/postinstall/ui.mjs:119
↓ 63 callersMethodregisterTask
(task: BackgroundTask, options: RegisterBackgroundTaskOptions = {})
packages/agent-core/src/agent/background/index.ts:303
↓ 63 callersFunctiontoolOk
(opts: { output: string | ContentPart | ContentPart[]; message?: string; brief?: string; })
packages/kosong/test/fixtures/simple-toolset.ts:53
↓ 62 callersMethodbyType
(type: T)
packages/agent-core/test/loop/fixtures/collecting-sink.ts:79
↓ 62 callersMethodmatches
(data: string, keybinding: Keybinding)
packages/pi-tui/src/keybindings.ts:194
↓ 62 callersMethodnewSession
(params: NewSessionRequest)
packages/acp-adapter/src/server.ts:250
↓ 61 callersMethodappendUserMessage
( content: readonly ContentPart[], origin: PromptOrigin = USER_PROMPT_ORIGIN, )
packages/agent-core/src/agent/context/index.ts:65
↓ 61 callersMethodsetText
(text: string)
apps/kimi-code/src/utils/clipboard/clipboard-native.ts:21
↓ 61 callersFunctionstartServer
(opts: ServerStartOptions)
packages/server/src/start.ts:120
↓ 61 callersFunctionwriteSkill
( root: string, relativePath: string, lines: readonly string[], )
packages/agent-core/test/skill/scanner.test.ts:1383
↓ 60 callersFunctioncreateProvider
( stream: boolean = false, supportEfforts?: readonly string[], )
packages/kosong/test/kimi.test.ts:25
↓ 60 callersMethodgetRpc
()
packages/node-sdk/src/sdk-rpc-client.ts:97
↓ 60 callersFunctionmakeBridge
( opts: BridgeStubOptions = {}, )
packages/agent-core/test/services/prompt-service.test.ts:129
↓ 60 callersFunctionmakeBus
()
packages/agent-core/test/services/prompt-service.test.ts:255
↓ 60 callersFunctionmakeWorkspace
()
packages/agent-core/test/skill/scanner.test.ts:1326
↓ 60 callersFunctionstep
( provider: ChatProvider, systemPrompt: string, toolset: Toolset, history: Message[], callbacks?: St
packages/kosong/test/fixtures/step.ts:70
↓ 60 callersMethodwithCwd
Return a new Kaos with the given `cwd`.
packages/kaos/src/kaos.ts:39
↓ 60 callersMethodwrite
* Atomically write `value` to `<rootDir>/<subdir>/<id>.json`. Creates * the subdir on demand. Throws if `id` doesn't match `idRegex` * (path-tra
packages/agent-core/src/utils/per-id-json-store.ts:36
↓ 59 callersMethodinfo
(message: string, payload?: LogPayload)
packages/agent-core/src/logging/types.ts:22
↓ 59 callersFunctionreaddir
(_path: string, cb: (err: Error | null, list?: unknown[]) => void)
packages/kaos/test/ssh.test.ts:507
↓ 58 callersFunctionappOf
(r: RunningServer)
packages/server/test/sessions.e2e.test.ts:94
↓ 58 callersFunctionnewSvc
( bridge: ICoreProcessService, bus: IEventService, auth: IAuthSummaryService = makeAuth(), sessionServ
packages/agent-core/test/services/prompt-service.test.ts:343
↓ 58 callersFunctionregisterProcess
( manager: BackgroundManager, proc: KaosProcess, command: string, description: string, )
packages/agent-core/test/agent/background/helpers.ts:61
↓ 58 callersMethodtext
(status: number, body: string, headers?: Record<string, string>)
packages/kosong/test/e2e/fake-provider-harness.ts:17
↓ 57 callersMethoddata
()
packages/agent-core/src/agent/plan/index.ts:106
↓ 57 callersFunctiondim
(s: string)
apps/kimi-code/src/tui/utils/shell-output.ts:54
↓ 57 callersFunctionfixedTokenAuth
(token: string = DEFAULT_TOKEN)
packages/server/test/helpers/serverHarness.ts:43
↓ 57 callersFunctionhandler
()
apps/kimi-web/src/composables/client/useSoundNotification.ts:79
↓ 57 callersMethodstop
* Stop the auto-tick loop and clear any in-flight bookkeeping. * Idempotent.
packages/agent-core/src/tools/cron/scheduler.ts:122
↓ 56 callersMethodnewEvents
()
packages/agent-core/test/agent/harness/agent.ts:247
↓ 56 callersFunctionstat
(path: string, options?: { followSymlinks?: boolean })
packages/kaos/src/current.ts:82
↓ 54 callersMethodaddToHistory
Add text to history for up/down navigation
packages/pi-tui/src/editor-component.ts:40
↓ 54 callersMethoddestroy
()
packages/pi-tui/src/stdin-buffer.ts:431
↓ 54 callersMethodnow
()
packages/agent-core/test/tools/cron/scheduler.test.ts:31
↓ 54 callersFunctionresolveDefaultMaxTokens
(model: string, override?: number)
packages/kosong/src/providers/anthropic.ts:278
↓ 53 callersFunctioncacheWith
(version: string)
apps/kimi-code/test/cli/update/preflight.test.ts:110
↓ 53 callersMethodcancel
* Cancel a running task. Throws: * - `TaskNotFoundError` → 40406 * - `TaskAlreadyFinishedError` → 40904 (daemon emits custom envelope
packages/agent-core/src/services/task/task.ts:165
↓ 53 callersMethodchdir
Change the working directory to `path`.
packages/kaos/src/kaos.ts:37
↓ 53 callersMethodload
(id: string)
packages/agent-core/test/di/test-instantiation.test.ts:17
↓ 53 callersFunctionmkBody
* Default body for a submit() that exercises the per-turn override path — * all four runtime controls are populated, so bootstrap + diff-dispatch *
packages/agent-core/test/services/prompt-service.test.ts:74
↓ 53 callersMethodrestoreEditor
()
apps/kimi-code/src/tui/commands/dispatch.ts:113
↓ 52 callersMethodensureOpen
()
packages/node-sdk/src/session.ts:541
↓ 52 callersFunctionenvelopeOf
(body: unknown)
packages/server/test/sessions.e2e.test.ts:117
↓ 52 callersMethodgetTask
(sessionId: string, taskId: string, input?: { withOutput?: boolean; outputBytes?: number })
apps/kimi-web/src/api/types.ts:680
↓ 52 callersFunctionmakeDriver
(harness: ReturnType<typeof makeHarness>, input: KimiTUIStartupInput)
apps/kimi-code/test/tui/kimi-tui-startup.test.ts:215
↓ 52 callersFunctionmakeHarness
(session = makeSession(), overrides: Record<string, unknown> = {})
apps/kimi-code/test/tui/kimi-tui-startup.test.ts:191
↓ 52 callersFunctionmakeRecorder
(label: string, store: string[])
packages/agent-core/test/di/lifecycle.test.ts:28
↓ 52 callersFunctionmakeStartupInput
( cliOptions: Partial<KimiTUIStartupInput['cliOptions']> = {}, tuiConfig: Partial<KimiTUIStartupInput['tui
apps/kimi-code/test/tui/kimi-tui-startup.test.ts:72
↓ 52 callersMethodrequest
(key: string)
apps/kimi-web/src/lib/snapshotSync.ts:3
↓ 51 callersMethodgetGoal
({ sessionId, ...payload }: SessionAgentPayload<EmptyPayload>)
packages/agent-core/src/rpc/core-impl.ts:816
↓ 50 callersFunctionbuildSessionFixture
(name: string)
apps/vis/server/test/fixtures/build.ts:7
↓ 50 callersMethodenqueue
(line: string)
packages/agent-core/src/logging/sinks.ts:20
↓ 50 callersMethodsessionApi
(sessionId: string)
packages/agent-core/src/rpc/core-impl.ts:1008
↓ 50 callersFunctionuser
(text: string)
packages/agent-core/test/agent/context/projector.test.ts:108
↓ 49 callersMethodbold
(text: string)
apps/kimi-code/src/tui/theme/theme.ts:71
↓ 49 callersFunctionmakeSession
(overrides: Record<string, unknown> = {})
apps/kimi-code/test/tui/kimi-tui-startup.test.ts:102
↓ 49 callersFunctionmatchesKittySequence
(data: string, expectedCodepoint: number, expectedModifier: number)
packages/pi-tui/src/keys.ts:653
↓ 49 callersMethodrecord
(model: string, usage: TokenUsage, scope: UsageRecordScope = 'session')
packages/agent-core/src/agent/usage/index.ts:26
← previousnext →101–200 of 12,222, ranked by callers