Removes conditional logic for setting the cursor position
after inserting a prompt. Now, the cursor is consistently
placed at the end of the inserted text, regardless of the
previous cursor location. This change ensures consistent behavior
and simplifies the code.
Adds a flag to prevent the timed prompt execution from running concurrently, avoiding potential race conditions and unexpected behavior.
Also, addresses edge case in the status check where the displayed current prompt number could be inaccurate.
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.
Corrects several broken links in the README file:
- Updates the download badge link
- Corrects the manual installation link to GitHub releases
- Updates the BRAT repository link
These changes ensure users can access the correct resources.
Corrects the URL for the CodeRabbit Reviews badge in the README.
The previous URL was malformed, preventing the badge from displaying correctly. This change ensures the badge accurately reflects the status of CodeRabbit reviews.
- Replace any types with proper Obsidian API types
- Add App type import for better type safety
- Add ButtonComponent type for settings button parameter
- Add null safety for button text content
- Remove redundant "Settings" from settings tab heading
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Refines prompt generation by incorporating modifiers based on the prompt type.
This ensures that staggered prompts are short and direct, while also enforcing a consistent output format across all prompt types by appending specific instructions to the system prompt.
The user message is also updated to ensure the model returns only the numbered prompts, nothing else.
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.
Ensures prompt notifications display correctly
by adjusting the notification duration based
on the configured delay. Prevents potential overlap
between successive prompts.
- 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>
Sets up a GitHub Actions workflow to automatically build, package, and release the Obsidian plugin when a new tag is pushed.
This workflow:
- Checks out the code, sets up Node.js, and installs dependencies.
- Builds the plugin using `npm run build`.
- Creates a zip package containing the necessary files (main.js, manifest.json, and styles.css).
- Extracts the version from `manifest.json` and changelog from `CHANGELOG.md`.
- Creates a GitHub release with the extracted version and changelog, including installation instructions and file information.
Creates a new CHANGELOG.md file to document notable
changes to the project, adhering to Keep a Changelog format
and Semantic Versioning.
This file details the features, technical aspects, and security
considerations introduced in version 1.0.0, as well as a link
to the unreleased changes.
Updates the default staggered example prompt to provide a more open-ended starting point. This aims to encourage more creative and diverse initial responses from users.
Ignores Sublime Text project and workspace files to prevent them from being tracked in the repository. This ensures a cleaner repository state and avoids accidental inclusion of user-specific settings.
Adds a GitHub Actions workflow to automate plugin releases upon tagging.
Includes a LICENSE file with the GNU General Public License v3.
Removes old LICENSE and manifest files.
Removes console logs from the main plugin file to reduce noise.
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
Adds the package-lock.json file to the repository to ensure consistent dependency versions across different environments.
This file helps to maintain the integrity and reproducibility of the project's dependencies.
Adds a CLAUDE.md file to provide guidance for Claude Code (claude.ai/code) when working with this repository.
Also, adds `logs/stack-exchange-mcp-server.log` to the .gitignore file to prevent it from being tracked.