Enhances code documentation and structure for plugin #3

Merged
AlexKucera merged 20 commits from docstrings into master 2025-10-25 10:50:22 +02:00
Showing only changes of commit ee892b3231 - Show all commits
+2
View File
@@ -66,6 +66,8 @@ export class AnthropicClient {
if (enableCommentary) { if (enableCommentary) {
if (commentaryStyle === 'custom' && customCommentaryPrompt) { if (commentaryStyle === 'custom' && customCommentaryPrompt) {
commentaryPrompt = customCommentaryPrompt; commentaryPrompt = customCommentaryPrompt;
} else if (commentaryStyle === 'custom') {
throw new Error('Custom commentary prompt is required when using custom style');
} else { } else {
commentaryPrompt = COMMENTARY_PRESETS[commentaryStyle as Exclude<CommentaryStyle, 'custom'>]; commentaryPrompt = COMMENTARY_PRESETS[commentaryStyle as Exclude<CommentaryStyle, 'custom'>];
} }