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

Function formatTasksReport

packages/acp-adapter/src/session.ts:1453–1465  ·  view source on GitHub ↗
(tasks: readonly BackgroundTaskInfo[])

Source from the content-addressed store, hash-verified

1451}
1452
1453function formatTasksReport(tasks: readonly BackgroundTaskInfo[]): string {
1454 if (tasks.length === 0) return 'No background tasks for this session.';
1455 return [
1456 `Background tasks (${tasks.length}):`,
1457 ...tasks.map((task) => {
1458 const parts = [`- ${task.taskId}: ${task.status}`, task.description];
1459 if (task.kind === 'process') parts.push(`command=${task.command}`);
1460 if (task.kind === 'agent' && task.subagentType !== undefined) parts.push(`subagent=${task.subagentType}`);
1461 if (task.stopReason !== undefined) parts.push(`reason=${task.stopReason}`);
1462 return parts.join(' · ');
1463 }),
1464 ].join('\n');
1465}
1466
1467function formatCompactionCompleted(result: CompactionCompletedResult): string {
1468 return [

Callers 1

runBuiltInCommandMethod · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected