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.
This commit is contained in:
AlexKucera committed 2025-09-20 12:14:55 +02:00
1 parent 933f7ec405
commit a63d184448
7 files changed
+993 -135

No files matched your search

+4 -4
View File
@@ -1,15 +1,15 @@
{
"name": "obsidian-sample-plugin",
"name": "freewriting-cleanup",
"version": "1.0.0",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"description": "Use AI to clean up your freewriting typos and create a proper paragraph.",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
"author": "",
"keywords": ["obsidian", "plugin", "ai", "writing", "cleanup", "anthropic", "claude"],
"author": "Alexander Kucera",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",