MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / list

Method list

packages/agent-core/src/services/task/taskService.ts:30–38  ·  view source on GitHub ↗
(sessionId: string, query: TaskListQuery)

Source from the content-addressed store, hash-verified

28 }
29
30 async list(sessionId: string, query: TaskListQuery): Promise<readonly BackgroundTask[]> {
31 await this._requireSession(sessionId);
32 const raw = await this._getAllRaw(sessionId);
33 const all = raw.map((info) => toProtocolTask(sessionId, info));
34 if (query.status !== undefined) {
35 return all.filter((t) => t.status === query.status);
36 }
37 return all;
38 }
39
40 async get(
41 sessionId: string,

Callers

nothing calls this directly

Calls 3

_requireSessionMethod · 0.95
_getAllRawMethod · 0.95
toProtocolTaskFunction · 0.90

Tested by

no test coverage detected