mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-13 11:00:50 +00:00
17 lines
489 B
TypeScript
17 lines
489 B
TypeScript
export function formatResolvedUnresolvedNote(params: {
|
|
resolved: string[];
|
|
unresolved: string[];
|
|
}): string | undefined {
|
|
if (params.resolved.length === 0 && params.unresolved.length === 0) {
|
|
return undefined;
|
|
}
|
|
return [
|
|
params.resolved.length > 0 ? `Resolved: ${params.resolved.join(", ")}` : undefined,
|
|
params.unresolved.length > 0
|
|
? `Unresolved (kept as typed): ${params.unresolved.join(", ")}`
|
|
: undefined,
|
|
]
|
|
.filter(Boolean)
|
|
.join("\n");
|
|
}
|