fix: address Obsidian review bot issues

- Move inline styles from TypeScript to CSS for better theme compatibility
- Remove "Freewriting" from command names to follow Obsidian conventions
- Fix TypeScript type casting by properly typing model as AnthropicModel
- Update to latest Claude models including Opus 4.1 and Sonnet 4

Changes:
• commands/staggeredPrompts.ts: Replace inline styles with CSS class
• main.ts: Rename commands to "Show Staggered Prompts" and "Add Note Prompts"
• settings.ts: Remove 'as any' cast and update default model
• styles.css: Add .freewriting-prompt-notice class with proper styling
• types.ts: Change model field type from string to AnthropicModel

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarvis committed 2025-09-20 10:32:35 +02:00
1 parent cc63d92b6c
commit 49e3f5523c
5 files changed
+25 -25

No files matched your search

+6 -6
View File
@@ -59,19 +59,19 @@ export default class FreewritingPromptsPlugin extends Plugin {
// MARK: - Command Registration
private registerCommands() {
// Staggered Freewriting Prompts command
// Staggered prompts command
this.addCommand({
id: 'staggered-freewriting-prompts',
name: 'Staggered Freewriting Prompts',
id: 'staggered-prompts',
name: 'Show Staggered Prompts',
callback: async () => {
await this.executeStaggeredPrompts();
}
});
// Freewriting Prompt command (editor-based)
// Note prompt command (editor-based)
this.addCommand({
id: 'freewriting-prompt',
name: 'Freewriting Prompt',
id: 'note-prompts',
name: 'Add Note Prompts',
editorCallback: async (editor: Editor, view: MarkdownView) => {
await this.executeNotePrompts(editor, view);
}