Adds dynamic Claude model fetching and management #1

Merged
AlexKucera merged 60 commits from dynamic-models into master 2025-10-31 13:42:04 +01:00
Showing only changes of commit 9ee37cd087 - Show all commits
+4 -1
View File
@@ -158,7 +158,10 @@ export class NotePromptsCommand {
let formatted = `## Writing Prompts (${timestamp})\n\n`; let formatted = `## Writing Prompts (${timestamp})\n\n`;
prompts.forEach((prompt, index) => { prompts.forEach((prompt, index) => {
formatted += `${index + 1}. ${prompt}\n\n`; // Sanitize to single line: collapse whitespace and trim
// Prevents malformed prompts with newlines from breaking list formatting
const oneLine = String(prompt).replace(/\s+/g, ' ').trim();
formatted += `${index + 1}. ${oneLine}\n\n`;
}); });
return formatted; return formatted;