Commit Graph
2 Commits
Author SHA1 Message Date
AlexKucera 69a92e02d2 Validates text selection before processing
Refactors text validation to ensure that the cleanup process only proceeds with valid text selections.

Removes the insertion position logic as it is no longer needed.
2025-09-26 08:56:33 +02:00
AlexKucera a63d184448 Implements freewriting cleanup plugin
Adds a plugin to clean up freewriting text using the Anthropic API.

This initial commit introduces core functionality, including:
- API client for interacting with Anthropic's Claude models.
- Service for orchestrating cleanup operations and managing API calls.
- Command for executing the cleanup process on selected text within Obsidian editor.
- Settings tab for configuring the API key, model, prompts, and commentary preferences.
- Type definitions for settings, API requests/responses, and cleanup results.

The plugin provides a command to clean up selected text, apply custom prompts, and optionally generate commentary on the freewriting session.
2025-09-20 12:14:55 +02:00