build: color-code open and close outputs

This commit is contained in:
2026-03-21 01:05:17 +05:30
parent 17bb1130c8
commit 787fa75df4
6 changed files with 64 additions and 67 deletions
+1 -12
View File
@@ -25,17 +25,6 @@ export const closeTool = tool({
return result.error!;
}
let details = "";
if (result.cleanupPerformed) {
details += ` Removed ${result.worktreesRemoved?.length || 0} worktrees.`;
if (result.tagsCreated && result.tagsCreated.length > 0) {
details += ` Created backup tags: ${result.tagsCreated.join(", ")}.`;
}
if (result.warnings && result.warnings.length > 0) {
details += ` Warnings: ${result.warnings.join("; ")}.`;
}
}
return `Session "${result.sessionName}" has been closed.${details}`;
return result.instructions;
},
});