Tool factories

This commit is contained in:
Colin McDonnell
2025-12-15 23:04:20 -08:00
parent 0fced1dfa6
commit 26336d0ac2
21 changed files with 14461 additions and 15875 deletions
+2 -9
View File
@@ -48,16 +48,9 @@ export async function reportErrorToComment({
}
}
// if no comment ID available, try using reportProgress (requires MCP context)
// if no comment ID available, can't update comment
if (!commentId) {
try {
const { reportProgress } = await import("../mcp/comment.ts");
await reportProgress({ body: formattedError });
return;
} catch {
// MCP context not available, can't create/update comment
return;
}
return;
}
// update comment directly using GitHub API