Prevents errors when attempting to process an empty cache.
Deletes the cache entry if it is empty to avoid repeatedly
attempting to process an invalid cache entry.
Updates prompt generation to use the model type directly, removing the need for casting.
This change streamlines the prompt generation process and enhances type safety.
Initial implementation of the Freewriting Prompts plugin.
This commit introduces the core functionality for generating
AI-powered writing prompts using Anthropic's Claude API.
It includes:
- API client for interacting with the Anthropic API
- Services for generating and caching prompts
- Commands for displaying staggered prompts and appending prompts to notes
- Settings tab for configuring the plugin