MCPcopy Create free account

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

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

↓ 20 callersMethodread
Assemble the atomic snapshot for `sid`. Throws `SnapshotNotFoundError` when the session does not exist on disk.
packages/server/src/services/snapshot/snapshot.ts:16
↓ 20 callersMethodreadFile
(sessionId: string, input: { path: string; offset?: number; length?: number })
apps/kimi-web/src/api/types.ts:687
↓ 20 callersFunctionrecordingTelemetry
(records: TelemetryRecord[])
packages/agent-core/test/fixtures/telemetry.ts:12
↓ 20 callersMethodset
(id: ServiceIdentifier<T>, instanceOrDescriptor: any)
packages/agent-core/src/di/instantiation.ts:136
↓ 20 callersFunctionsetCellDimensions
(dims: CellDimensions)
packages/pi-tui/src/terminal-image.ts:40
↓ 20 callersMethodsetTodos
(todos: readonly TodoItem[])
apps/kimi-code/src/tui/components/chrome/todo-panel.ts:118
↓ 20 callersMethodshowNotice
(title: string, detail?: string)
apps/kimi-code/src/tui/commands/dispatch.ts:109
↓ 20 callersFunctionstrip
(text: string)
apps/kimi-code/test/tui/components/dialogs/question-dialog.test.ts:9
↓ 19 callersMethod_drainForTest
Settles when every queued dispatch for `sid` has completed.
packages/server/src/services/gateway/wsBroadcastService.ts:191
↓ 19 callersFunctionappOf
(r: RunningServer)
packages/server/test/workspaces.e2e.test.ts:65
↓ 19 callersFunctionappOf
(r: RunningServer)
packages/server/test/sessions-workspace.e2e.test.ts:60
↓ 19 callersFunctionbashTask
( taskId: string, status: BackgroundTaskInfo['status'], endedAt: number | null = null, )
packages/agent-core/test/services/task-service.test.ts:77
↓ 19 callersFunctionbootDaemon
()
packages/server/test/fs-git.e2e.test.ts:63
↓ 19 callersFunctioncall
(name: string, args: Record<string, unknown> = {})
apps/kimi-code/test/tui/components/messages/tool-renderers/registry.test.ts:19
↓ 19 callersFunctioncamelToSnake
(str: string)
packages/agent-core/src/config/toml.ts:37
↓ 19 callersFunctioncontext
(args: WriteInput)
packages/agent-core/test/tools/write.test.ts:9
↓ 19 callersFunctioncontext
(args: EditInput)
packages/agent-core/test/tools/edit.test.ts:9
↓ 19 callersFunctionconvertOpenAIError
(error: unknown)
packages/kosong/src/providers/openai-common.ts:92
↓ 19 callersFunctioncreateFakeFooter
()
apps/kimi-code/test/tui/controllers/clipboard-image-hint.test.ts:24
↓ 19 callersFunctioncreateSession
(r: RunningServer)
packages/server/test/prompt.e2e.test.ts:191
↓ 19 callersMethodgetAdditionalDirs
()
packages/agent-core/src/agent/index.ts:214
↓ 19 callersFunctiongetDataDir
()
apps/kimi-code/src/utils/paths.ts:33
↓ 19 callersMethodgetSession
Fetch one session by id (deep links beyond the first listSessions page).
apps/kimi-web/src/api/types.ts:651
↓ 19 callersMethodgethome
Return the home directory of the current user.
packages/kaos/src/kaos.ts:30
↓ 19 callersFunctionimportEngine
()
packages/agent-core/test/hooks/engine.test.ts:83
↓ 19 callersFunctionisPlainObject
(value: unknown)
packages/agent-core/src/config/toml.ts:712
↓ 19 callersFunctionisRetryableGenerateError
(error: unknown)
packages/kosong/src/errors.ts:91
↓ 19 callersFunctionjoinRender
(components: Component[], width = 100)
apps/kimi-code/test/tui/components/messages/tool-renderers/registry.test.ts:15
↓ 19 callersFunctionmakeHarness
(wall?: number)
packages/agent-core/test/tools/cron/cron-create.test.ts:36
↓ 19 callersFunctionmakePanel
(opts: { installed?: readonly (typeof superpowers)[]; initialTab?: 'installed' | 'official' | 'third-party
apps/kimi-code/test/tui/components/dialogs/plugins-selector.test.ts:71
↓ 19 callersFunctionmakeTempDir
()
packages/agent-core/test/harness/goal-session.test.ts:39
↓ 19 callersFunctionmessagesToGoogleGenAIContents
(messages: Message[])
packages/kosong/src/providers/google-genai.ts:348
↓ 19 callersFunctionmockSpawnExit
(code: number, signal: NodeJS.Signals | null = null)
apps/kimi-code/test/cli/update/preflight.test.ts:214
↓ 19 callersFunctionmsg
(turnId: string | undefined)
apps/kimi-code/test/tui/utils/transcript-window.test.ts:16
↓ 19 callersFunctionoutputParts
(result: ExecutableToolResult)
packages/agent-core/test/tools/read-media.test.ts:74
↓ 19 callersFunctionreadGlobal
()
packages/agent-core/test/logging/logger.test.ts:38
↓ 19 callersFunctionreduceWireRecords
(records: Iterable<AgentRecord>)
packages/agent-core/src/services/message/transcript.ts:111
↓ 19 callersFunctionresolveGithubSource
( input: GithubSourceInput, )
packages/agent-core/src/plugin/github-resolver.ts:38
↓ 19 callersFunctionresult
(output: string, isError = false)
apps/kimi-code/test/tui/components/messages/tool-renderers/registry.test.ts:23
↓ 19 callersMethodsetPalette
(palette: ColorPalette)
apps/kimi-code/src/tui/theme/theme.ts:29
↓ 19 callersFunctionsetupSession
( sessionDir: string, events: Array<Record<string, unknown>>, tools: readonly string[], generate?: Non
packages/agent-core/test/harness/goal-session.test.ts:77
↓ 19 callersFunctionstrip
(text: string)
apps/kimi-code/test/tui/tasks-browser.test.ts:13
↓ 19 callersMethodsubmitAndWait
* Submit a prompt and wait for its terminal event. `waitFor` defaults to * the synthesized `prompt.completed` event (broadcast after `turn.ended`
packages/server-e2e/src/client.ts:607
↓ 19 callersMethodwaitForFrame
* Wait for the next frame matching `predicate`. Drains queued frames first; * the first matching frame is consumed and returned. Times out cleanly.
packages/server-e2e/src/ws.ts:124
↓ 19 callersFunctionwithEnv
(overrides: Record<string, string | undefined>, fn: () => void)
packages/pi-tui/test/terminal-image.test.ts:37
↓ 18 callersFunctionapply
(env: Record<string, string | undefined>)
packages/agent-core/test/config/env-model.test.ts:15
↓ 18 callersMethodattach
( sessionId: string, terminalId: string, sink: TerminalAttachSink, options?: TerminalAttachOpt
packages/server/src/ws/connection.ts:84
↓ 18 callersFunctioncaptureRequestBody
Capture the request body by mocking the client's generateContentStream.
packages/kosong/test/google-genai.test.ts:48
↓ 18 callersMethodcloseSession
(reason: string)
apps/kimi-code/src/tui/controllers/auth-flow.ts:30
↓ 18 callersFunctioncontext
(args: Input, toolCallId = 'call_agent')
packages/agent-core/test/tools/agent.test.ts:14
↓ 18 callersFunctioncreateCommandKaos
(stdout: string)
packages/agent-core/test/agent/harness/agent.ts:122
↓ 18 callersFunctioncreateFakeTUI
()
apps/kimi-code/test/tui/controllers/clipboard-image-hint.test.ts:37
↓ 18 callersFunctionemptyUsage
()
packages/kosong/src/usage.ts:35
↓ 18 callersMethodexportSession
(input: ExportSessionInput)
packages/node-sdk/src/kimi-harness.ts:211
↓ 18 callersFunctionfakeAgent
(opts: { type?: 'main' | 'sub'; goal?: GoalMode } = {})
packages/agent-core/test/tools/goal.test.ts:25
↓ 18 callersFunctionformatEntry
(entry: LogEntry, options: FormatOptions = {})
packages/agent-core/src/logging/formatter.ts:161
↓ 18 callersMethodget
(id: ServiceIdentifier<T>)
packages/agent-core/src/di/instantiation.ts:105
↓ 18 callersFunctionhandleSwarmCommand
(host: SlashCommandHost, args: string)
apps/kimi-code/src/tui/commands/swarm.ts:15
↓ 18 callersMethodheader
(name: string, value: string | number)
packages/server/src/routes/files.ts:68
↓ 18 callersMethodinitialize
(params: InitializeRequest)
packages/acp-adapter/src/server.ts:214
↓ 18 callersFunctionlocalDate
( y: number, monthIndex: number, d: number, h = 0, m = 0, s = 0, )
packages/agent-core/test/tools/cron/jitter.test.ts:15
↓ 18 callersFunctionmakeGoalMode
()
packages/agent-core/test/agent/goal.test.ts:19
↓ 18 callersFunctionmakeTempDir
()
packages/agent-core/test/session/init.test.ts:656
↓ 18 callersMethodnotifySnapshotChange
Notifies the listener when internal state changes, if a group is attached.
apps/kimi-code/src/tui/components/messages/tool-call.ts:930
↓ 18 callersMethodoffload
(record: AgentRecord)
packages/agent-core/src/agent/records/blobref.ts:37
↓ 18 callersFunctionparseGoalCommand
(rawArgs: string)
apps/kimi-code/src/tui/commands/goal.ts:79
↓ 18 callersMethodpathClass
Return the path style used by this environment.
packages/kaos/src/kaos.ts:26
↓ 18 callersFunctionprovisionManagedKimiCodeConfig
( options: ProvisionManagedKimiCodeConfigOptions<TConfig>, )
packages/oauth/src/managed-kimi-code.ts:763
↓ 18 callersFunctionreadStringField
(object: RawObject, key: string)
packages/kosong/src/providers/openai-responses.ts:113
↓ 18 callersFunctionrenderRaw
(component: { render(width: number): string[] }, width = 120)
apps/kimi-code/test/tui/components/dialogs/plugins-selector.test.ts:34
↓ 18 callersFunctionrunSh
* Helper to run a shell command via /bin/sh -c and collect stdout/stderr/exitCode. * Since the new Kaos.exec(...args) doesn't take options, timeout i
packages/kaos/test/shell.test.ts:16
↓ 18 callersMethodsetLines
(lines: string[])
packages/pi-tui/test/tui-shrink.test.ts:13
↓ 18 callersFunctionsleep
(ms: number)
packages/server-e2e/src/wait.ts:54
↓ 18 callersMethodstart
Begin the auto-tick loop. Idempotent — calling twice is a no-op.
packages/agent-core/src/tools/cron/scheduler.ts:116
↓ 18 callersFunctionstartsWith
(buf: Buffer, prefix: Buffer | readonly number[])
packages/agent-core/src/tools/support/file-type.ts:164
↓ 18 callersFunctionstrip
(text: string)
apps/kimi-code/test/tui/task-output-viewer.test.ts:9
↓ 17 callersMethodappendMessage
(message: ContextMessage)
packages/agent-core/src/agent/context/index.ts:645
↓ 17 callersMethodbuildHeader
()
apps/kimi-code/src/tui/components/messages/tool-call.ts:1399
↓ 17 callersMethodcallTool
* Invoke a tool by name with the given JSON arguments. * * `signal`, when provided, is forwarded to the underlying transport so an * abort fr
packages/agent-core/src/mcp/types.ts:84
↓ 17 callersFunctioncomputeNextCronRun
(expr: ParsedCronExpression, fromMs: number)
packages/agent-core/src/tools/cron/cron-expr.ts:207
↓ 17 callersFunctioncontext
(args: Input, toolCallId = 'call_1')
packages/agent-core/test/tools/builtin-current.test.ts:72
↓ 17 callersFunctioncontext
(toolCallId: string, args: Input)
packages/agent-core/test/tools/background/task-tools.test.ts:33
↓ 17 callersFunctioncreateSession
(r: RunningServer)
packages/server/test/fs-git.e2e.test.ts:120
↓ 17 callersFunctioncreateTestRpc
(options?: { readonly homeDir?: string; readonly telemetry?: TelemetryClient; })
packages/agent-core/test/harness/skill-session.test.ts:679
↓ 17 callersFunctiondecodeKittyPrintable
(data: string)
packages/pi-tui/src/keys.ts:1349
↓ 17 callersFunctionenvelopeOf
(body: unknown)
packages/server/test/guiStore.e2e.test.ts:65
↓ 17 callersFunctionenvelopeOf
(body: unknown)
packages/server/test/workspaces.e2e.test.ts:88
↓ 17 callersFunctionestimateTokensForMessage
(message: TokenEstimatableMessage)
packages/agent-core/src/utils/tokens.ts:57
↓ 17 callersFunctionestimateTokensForMessages
(messages: readonly Message[])
packages/agent-core/src/utils/tokens.ts:39
↓ 17 callersFunctionevaluatePlanPolicy
( agent: Agent, toolName: string, args: unknown, mode: PermissionMode = 'manual', )
packages/agent-core/test/tools/plan-mode-hard-block.test.ts:73
↓ 17 callersMethodevent
()
packages/agent-core/src/base/common/event.ts:27
↓ 17 callersFunctionexpectErrorMessage
(error: unknown, message: string)
packages/agent-core/test/di/lifecycle.test.ts:53
↓ 17 callersFunctionfakeAgent
(calls: unknown[] = [])
packages/agent-core/test/mcp/tool-manager-mcp.test.ts:14
↓ 17 callersFunctionfetchWithReport
( input: Parameters<typeof fetch>[0], init?: Parameters<typeof fetch>[1], options?: FetchWithReportOptio
packages/server-e2e/src/report.ts:152
↓ 17 callersFunctiongetCurrentKaos
()
packages/kaos/src/current.ts:16
↓ 17 callersFunctiongetOpenPlatformById
(id: string)
packages/oauth/src/open-platform.ts:39
↓ 17 callersMethodgetStatus
(id: string)
packages/agent-core/src/services/session/session.ts:59
↓ 17 callersFunctiongoal
(id: string, objective: string)
apps/kimi-code/test/tui/components/dialogs/goal-queue-manager.test.ts:20
↓ 17 callersMethodhandleKey
* Handles the keys every picker shares: ↑/↓, PgUp/PgDn, and — when searchable — * Backspace and printable characters. Returns true when the key was
apps/kimi-code/src/tui/utils/searchable-list.ts:107
↓ 17 callersFunctionisAbortError
(err: unknown)
packages/agent-core/src/loop/errors.ts:22
← previousnext →501–600 of 12,222, ranked by callers