Ensures that the modal element is not null before attempting to append it to the document body or remove it from its parent node. This prevents potential errors if the modal element is not properly initialized.
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.
Adapts the Anthropic client to use the new structured content format
for messages and system prompts, ensuring compatibility with the API's
expected input structure. This change modifies both the standard
request and the test request within the Anthropic client.
Updates the license badge in the README to reflect the project's licensing under GPL v3. This ensures accurate and up-to-date information regarding the project's licensing terms.
Improves plugin structure by adopting a modular architecture
with separated services, commands, and settings.
Updates documentation to reflect the new architecture,
settings management, command registration, UI components,
and resource cleanup strategies.
This change enhances maintainability, testability, and
API interaction separation.
Updates the action used for creating releases to the latest major version.
This ensures continued compatibility and access to the newest features and bug fixes provided by the action.
Updates the downloads badge URL to link to the releases page
instead of the Obsidian plugins page. This provides a more
direct route to download the plugin files.
Implements a GitHub Actions workflow to automate the plugin release process.
This workflow:
- Builds the plugin
- Creates a zip package of the plugin
- Generates release notes from the changelog
- Creates a GitHub release with the package and notes
Adds a changelog file to document notable changes, following Keep a Changelog format and Semantic Versioning.
This file details the features, technical implementation, and initial release information for the Freewriting Cleanup plugin.
Creates a comprehensive README file that explains the plugin's features, installation, usage, configuration, troubleshooting, development setup, contribution guidelines, license, and support information.
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.
Replaces the existing proprietary license with the GNU General Public License version 3.
This ensures that the software adheres to the principles of free and open-source software.
Sets up the basic project structure for the "Freewriting Cleanup" Obsidian plugin.
This includes:
- Adding necessary configuration files (.gitignore, package-lock.json, tsconfig.json, etc.)
- Creating a manifest file with plugin metadata
- Adding initial project files
- Adding documentation about the project
This setup provides a foundation for developing the plugin's functionality to clean up freewriting typos using AI.