Skip to content

Refactor pubmed_review to write MD files directly with vault path configuration (v0.1.5)

Choose a tag to compare

@kmaneesh kmaneesh released this 08 Jan 15:54
· 8 commits to main since this release

Summary

Refactors the pubmed_review function to write markdown files directly to disk with configurable vault and storage paths, simplifying the interface and improving integration with Obsidian vaults.

Changes

Breaking Changes

  • Removed parameters:

    • output_path: Replaced with obsidian_vault + storage_path
    • format: Now uses full format only (complete abstracts)
  • New parameters:

    • obsidian_vault: Path to Obsidian vault root directory
    • storage_path: Relative path within vault to store files
  • Behavior change:

    • Function now writes files directly instead of returning content
    • Filename auto-generated with format: YYYYMMDD_HHMMSS_query_slug.md
    • Returns filepath instead of content in response

Features

  • ✅ Auto-generates timestamped filenames based on query
  • ✅ Creates directories automatically if they don't exist
  • ✅ Simplified interface with only full format (complete abstracts + metadata)
  • ✅ Better Obsidian integration with vault path configuration
  • ✅ Environment variable support (OBSIDIAN_VAULT_PATH, PUBMED_STORAGE_PATH)