Files
Agent-Workbench/examples/delivery-report/src/render.mjs
T

9 lines
375 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export function renderText(summary) {
const { total, counts, completedPercent, remainingMinutes } = summary;
return [
`交付进度:${counts.done}/${total}(${completedPercent}%)`,
`待办 ${counts.todo} · 进行中 ${counts.doing} · 已完成 ${counts.done} · 阻塞 ${counts.blocked}`,
`剩余预计:${remainingMinutes} 分钟`,
].join('\n');
}